| @@ -17,7 +17,7 @@ | |||
| </div> | |||
| <div class="edit-item"> | |||
| <el-form-item label="商家授权路径" label-width="180px"> | |||
| <el-form-item label="商家授权函" label-width="180px"> | |||
| <el-upload | |||
| action="/T/merchantPoi/upload_material" | |||
| class="upload-demo" | |||
| @@ -60,8 +60,8 @@ | |||
| </div> | |||
| <div class="edit-item"> | |||
| <el-form-item label="其他补充资质" label-width="180px" > | |||
| <el-select v-model="additionalQualType" placeholder="请选择" clearable > | |||
| <el-form-item label="其他补充资质" label-width="180px"> | |||
| <el-select v-model="additionalQualType" placeholder="请选择" clearable> | |||
| <el-option | |||
| v-for="(item,index) in additionalLsit" | |||
| :key="index" | |||
| @@ -99,15 +99,15 @@ export default { | |||
| appId: "", | |||
| expireTime: "", | |||
| supplierExtId: "", | |||
| additionalQualType:"1", | |||
| additionalLsit:[ | |||
| additionalQualType: "1", | |||
| additionalLsit: [ | |||
| { | |||
| name:"身份证", | |||
| val:"1" | |||
| name: "身份证", | |||
| val: "1" | |||
| }, | |||
| { | |||
| name:"健康证", | |||
| val:"2" | |||
| name: "健康证", | |||
| val: "2" | |||
| } | |||
| ], | |||
| ruleForm: { | |||
| @@ -151,14 +151,17 @@ export default { | |||
| } | |||
| }, | |||
| industryRemove(file, fileList) { | |||
| //dei商铺行业资质材料信息 | |||
| console.log(file, fileList); | |||
| console.log(this.ruleForm.qualMaterial); | |||
| let tempArr = []; | |||
| fileList.map(item => { | |||
| tempArr.push({ path: item.response.data }); | |||
| }); | |||
| this.ruleForm.qualMaterial = []; | |||
| this.ruleForm.qualMaterial = tempArr; | |||
| }, | |||
| industry(file, fileList) { | |||
| @@ -169,7 +172,7 @@ export default { | |||
| } else { | |||
| this.$message.error(file.message); | |||
| } | |||
| // this.dialogVisible = true; | |||
| }, | |||
| @@ -179,7 +182,7 @@ export default { | |||
| fileList.map(item => { | |||
| tempArr.push({ path: item.response.data }); | |||
| }); | |||
| this.ruleForm.restsUrlLsit = []; | |||
| this.ruleForm.restsUrlLsit = tempArr; | |||
| console.log(file, fileList); | |||
| }, | |||
| @@ -191,7 +194,7 @@ export default { | |||
| } else { | |||
| this.$message.error(file.message); | |||
| } | |||
| // this.dialogVisible = true; | |||
| }, | |||
| @@ -207,28 +210,30 @@ export default { | |||
| this.$message.error("请填写过期时间!"); | |||
| } else { | |||
| let parmer = {}; | |||
| parmer.bizLicencePath = this.ruleForm.bizLicencePath | |||
| parmer.contractPath = this.ruleForm.contractPath | |||
| parmer.bizLicencePath = this.ruleForm.bizLicencePath; | |||
| parmer.contractPath = this.ruleForm.contractPath; | |||
| parmer.qualMaterial = JSON.stringify(this.ruleForm.qualMaterial); | |||
| console.log(this.ruleForm.qualMaterial); | |||
| parmer.additionalQual=[] | |||
| if (this.ruleForm.restsUrlLsit.length > 0) { | |||
| parmer.additionalQual = []; | |||
| parmer.additionalQual.push({ | |||
| additional_qual_type: this.additionalQualType, | |||
| paths: this.ruleForm.restsUrlLsit | |||
| }); | |||
| parmer.additionalQual = JSON.stringify(parmer.additionalQual); | |||
| } | |||
| parmer.additionalQual.push({ | |||
| additional_qual_type:this.additionalQualType, | |||
| paths:this.ruleForm.restsUrlLsit | |||
| }) | |||
| parmer.additionalQual = JSON.stringify(parmer.additionalQual) | |||
| // parmer.restsUrlLsit = JSON.stringify(parmer.restsUrlLsit); | |||
| parmer.appId = this.appId; | |||
| parmer.supplierExtId = this.supplierExtId; | |||
| parmer.expireTime = this.expireTime; | |||
| this.postFetch(configUrl.material, parmer).then(res => { | |||
| this.$message.success("提交成功!") | |||
| this.$router.back(-1) | |||
| }).catch(err=>{ | |||
| this.$message.error(err.message) | |||
| }) | |||
| this.postFetch(configUrl.material, parmer) | |||
| .then(res => { | |||
| this.$message.success("提交成功!"); | |||
| this.$router.back(-1); | |||
| }) | |||
| .catch(err => { | |||
| this.$message.error(err.message); | |||
| }); | |||
| } | |||
| } | |||
| }, | |||