|
@@ -127,6 +127,14 @@
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-form-item label="商户属性" prop="companyType">
|
|
|
+ <el-radio-group v-model="step1Form.companyType">
|
|
|
+ <el-radio :label="1">销售</el-radio>
|
|
|
+ <el-radio :label="2">售后</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="以旧换新抵扣方式" prop="yjhxDkFlag">
|
|
|
<el-radio-group v-model="step1Form.yjhxDkFlag">
|
|
@@ -135,6 +143,31 @@
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+
|
|
|
+ <el-col :span="24">
|
|
|
+ <div style="margin-bottom: 20px">小程序底部菜单排序 <span style="color: #fb8c45;margin-left: 20px;"> 数字越小越靠前</span></div>
|
|
|
+ <el-table :data="step1Form.appModuleJson" style="width: 50%" element-loading-text="Loading" border fit highlight-current-row stripe>
|
|
|
+ <el-table-column prop="" align="center" label="类型">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{typeFilter(scope.row.type)}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="" align="center" label="名称">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-form-item :prop="'appModuleJson.' + scope.$index + '.name'" :rules="[{ required: true, message: `请输入名称`, trigger: 'blur' }]" label-width="0">
|
|
|
+ <el-input type="text" v-model="scope.row.name" placeholder="请输入"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="" align="center" label="排序">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-form-item :prop="'appModuleJson.' + scope.$index + '.sort'" :rules="[{ required: true, message: `请输入排序`, trigger: 'blur' }]" label-width="0">
|
|
|
+ <el-input type="number" v-model="scope.row.sort" placeholder="请输入"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
</el-card>
|
|
@@ -520,7 +553,9 @@ export default {
|
|
|
moduleZl:'',
|
|
|
moduleEs:'',
|
|
|
storePay: '',
|
|
|
+ companyType: 2,
|
|
|
yjhxDkFlag: '',
|
|
|
+ appModuleJson: []
|
|
|
},
|
|
|
|
|
|
passwordType1: 'password',
|
|
@@ -612,6 +647,17 @@ export default {
|
|
|
userType() {
|
|
|
return JSON.parse(localStorage.getItem('greemall_user')).type
|
|
|
},
|
|
|
+ typeFilter(){
|
|
|
+ return function(type){
|
|
|
+ let obj = {
|
|
|
+ home: '首页',
|
|
|
+ order: '工单',
|
|
|
+ shop: '商城',
|
|
|
+ my: '我的'
|
|
|
+ }
|
|
|
+ return obj[type]
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
created() {
|
|
|
const { id, type } = this.$route.query;
|
|
@@ -644,21 +690,23 @@ export default {
|
|
|
this.step1Form.password = '************';
|
|
|
this.step1Form.companyExpireTime = res.data.companyExpireTime
|
|
|
this.step1Form.moduleMaterialPart = res.data.moduleMaterialPart
|
|
|
- this.step1Form.billTitle = res.data.billTitle
|
|
|
+ this.step1Form.billTitle = res.data.billTitle
|
|
|
this.step1Form.moduleYb = res.data.moduleYb
|
|
|
this.step1Form.moduleWb = res.data.moduleWb
|
|
|
this.step1Form.joinCode = res.data.joinCode
|
|
|
this.step1Form.moduleZl = res.data.moduleZl
|
|
|
this.step1Form.moduleEs = res.data.moduleEs
|
|
|
this.step1Form.storePay = res.data.storePay
|
|
|
+ this.step1Form.companyType = res.data.companyType
|
|
|
this.step1Form.yjhxDkFlag = res.data.yjhxDkFlag
|
|
|
+ this.step1Form.appModuleJson = JSON.parse(res.data.appModuleJson)
|
|
|
|
|
|
this.img1_url = res.data.minLogo1;
|
|
|
this.img2_url = res.data.minLogo2;
|
|
|
this.img3_url = res.data.minLogo3;
|
|
|
this.qrcode1_url = res.data.qrcode1;
|
|
|
this.qrcode2_url = res.data.qrcode2;
|
|
|
- this.qrcode3_url = res.data.payQrcode;
|
|
|
+ this.qrcode3_url = res.data.payQrcode;
|
|
|
|
|
|
this.step3Form.enterpriseId = res.data.corpId;
|
|
|
this.step3Form.listSecret = res.data.secret2;
|
|
@@ -788,28 +836,34 @@ export default {
|
|
|
},
|
|
|
|
|
|
submitStep1Form() {
|
|
|
- this.formLoading = true;
|
|
|
- let params = {
|
|
|
- // adminUserId: this.id,
|
|
|
- companyWechatId: this.companyWechatId,
|
|
|
- moduleMaterialPart: this.step1Form.moduleMaterialPart,
|
|
|
- billTitle: this.step1Form.billTitle,
|
|
|
- moduleYb: this.step1Form.moduleYb,
|
|
|
- moduleWb: this.step1Form.moduleWb,
|
|
|
- joinCode: this.step1Form.joinCode,
|
|
|
- moduleZl: this.step1Form.moduleZl,
|
|
|
- moduleEs: this.step1Form.moduleEs,
|
|
|
- storePay: this.step1Form.storePay,
|
|
|
- yjhxDkFlag: this.step1Form.yjhxDkFlag,
|
|
|
- }
|
|
|
- editAccount(params).then(res => {
|
|
|
- this.$successMsg('保存成功');
|
|
|
- setTimeout(() => {
|
|
|
- this.goBack();
|
|
|
- }, 1500)
|
|
|
- }).finally(res => {
|
|
|
- this.formLoading = false;
|
|
|
- })
|
|
|
+ this.$refs.step1Form.validate(valid => {
|
|
|
+ if (valid) {
|
|
|
+ this.formLoading = true;
|
|
|
+ let params = {
|
|
|
+ // adminUserId: this.id,
|
|
|
+ companyWechatId: this.companyWechatId,
|
|
|
+ moduleMaterialPart: this.step1Form.moduleMaterialPart,
|
|
|
+ billTitle: this.step1Form.billTitle,
|
|
|
+ moduleYb: this.step1Form.moduleYb,
|
|
|
+ moduleWb: this.step1Form.moduleWb,
|
|
|
+ joinCode: this.step1Form.joinCode,
|
|
|
+ moduleZl: this.step1Form.moduleZl,
|
|
|
+ moduleEs: this.step1Form.moduleEs,
|
|
|
+ storePay: this.step1Form.storePay,
|
|
|
+ companyType: this.step1Form.companyType,
|
|
|
+ yjhxDkFlag: this.step1Form.yjhxDkFlag,
|
|
|
+ appModuleJson: JSON.stringify(this.step1Form.appModuleJson)
|
|
|
+ }
|
|
|
+ editAccount(params).then(res => {
|
|
|
+ this.$successMsg('保存成功');
|
|
|
+ setTimeout(() => {
|
|
|
+ this.goBack();
|
|
|
+ }, 1500)
|
|
|
+ }).finally(res => {
|
|
|
+ this.formLoading = false;
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
|
|
|
submitStep2Form() {
|