Selaa lähdekoodia

【修改授权函文案】

master
chenshengle 3 vuotta sitten
vanhempi
commit
85e239f4a3
1 muutettua tiedostoa jossa 34 lisäystä ja 29 poistoa
  1. +34
    -29
      src/components/ttpoiList/addCertification.vue

+ 34
- 29
src/components/ttpoiList/addCertification.vue Näytä tiedosto

@@ -17,7 +17,7 @@
</div> </div>


<div class="edit-item"> <div class="edit-item">
<el-form-item label="商家授权路径" label-width="180px">
<el-form-item label="商家授权" label-width="180px">
<el-upload <el-upload
action="/T/merchantPoi/upload_material" action="/T/merchantPoi/upload_material"
class="upload-demo" class="upload-demo"
@@ -60,8 +60,8 @@
</div> </div>


<div class="edit-item"> <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 <el-option
v-for="(item,index) in additionalLsit" v-for="(item,index) in additionalLsit"
:key="index" :key="index"
@@ -99,15 +99,15 @@ export default {
appId: "", appId: "",
expireTime: "", expireTime: "",
supplierExtId: "", supplierExtId: "",
additionalQualType:"1",
additionalLsit:[
additionalQualType: "1",
additionalLsit: [
{ {
name:"身份证",
val:"1"
name: "身份证",
val: "1"
}, },
{ {
name:"健康证",
val:"2"
name: "健康证",
val: "2"
} }
], ],
ruleForm: { ruleForm: {
@@ -151,14 +151,17 @@ export default {
} }
}, },



industryRemove(file, fileList) { industryRemove(file, fileList) {
//dei商铺行业资质材料信息 //dei商铺行业资质材料信息
console.log(file, fileList); console.log(file, fileList);
console.log(this.ruleForm.qualMaterial);
let tempArr = []; let tempArr = [];
fileList.map(item => { fileList.map(item => {
tempArr.push({ path: item.response.data }); tempArr.push({ path: item.response.data });
}); });
this.ruleForm.qualMaterial = [];
this.ruleForm.qualMaterial = tempArr;
}, },


industry(file, fileList) { industry(file, fileList) {
@@ -169,7 +172,7 @@ export default {
} else { } else {
this.$message.error(file.message); this.$message.error(file.message);
} }
// this.dialogVisible = true; // this.dialogVisible = true;
}, },


@@ -179,7 +182,7 @@ export default {
fileList.map(item => { fileList.map(item => {
tempArr.push({ path: item.response.data }); tempArr.push({ path: item.response.data });
}); });
this.ruleForm.restsUrlLsit = [];
this.ruleForm.restsUrlLsit = tempArr;
console.log(file, fileList); console.log(file, fileList);
}, },


@@ -191,7 +194,7 @@ export default {
} else { } else {
this.$message.error(file.message); this.$message.error(file.message);
} }
// this.dialogVisible = true; // this.dialogVisible = true;
}, },


@@ -207,28 +210,30 @@ export default {
this.$message.error("请填写过期时间!"); this.$message.error("请填写过期时间!");
} else { } else {
let parmer = {}; 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); parmer.qualMaterial = JSON.stringify(this.ruleForm.qualMaterial);
console.log(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.appId = this.appId;
parmer.supplierExtId = this.supplierExtId; parmer.supplierExtId = this.supplierExtId;
parmer.expireTime = this.expireTime; 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);
});
} }
} }
}, },


Ladataan…
Peruuta
Tallenna