lsun 协议管理

This commit is contained in:
lSun 2024-11-12 18:43:01 +08:00
parent 4ddaf1aee1
commit 9d5bcd5b4f
1 changed files with 8 additions and 3 deletions

View File

@ -645,7 +645,9 @@ export default {
//** */ //** */
submitForm() { submitForm() {
this.$refs["form"].validate(async valid => { this.$refs["form"].validate(async valid => {
if (valid) { this.form.projectId = this.form.proId;
await this.addAgreementTemp(this.form);
/*if (valid) {
if (this.form.supplierId != undefined) { if (this.form.supplierId != undefined) {
const reqData = new FormData(); const reqData = new FormData();
if(this.businessLicenseListTemp.length!=0){ if(this.businessLicenseListTemp.length!=0){
@ -658,15 +660,18 @@ export default {
} }
} else { } else {
console.log(1)
if(this.businessLicenseListTemp.length!=0){ if(this.businessLicenseListTemp.length!=0){
console.log(2)
await this.getImaUpload(), await this.getImaUpload(),
await this.addAgreementTemp(this.form); await this.addAgreementTemp(this.form);
}else{ }else{
console.log(3)
await this.addAgreementTemp(this.form); await this.addAgreementTemp(this.form);
} }
} }
} }*/
}); });
this.uploadKey = Date.now(); this.uploadKey = Date.now();
}, },
@ -679,7 +684,7 @@ export default {
console.log('res',res) console.log('res',res)
if (res.code === 200) { if (res.code === 200) {
res.data.forEach(item=>{ res.data.forEach(item=>{
let objTwo = { 'name': item.name, 'url': item.url,'modelId': null, 'fileType':4, 'taskType':9}; let objTwo = { 'name': item.name, 'url': item.url, 'taskType':10};
this.businessLicenseFileList.push(objTwo); this.businessLicenseFileList.push(objTwo);
}) })
} else { } else {