diff --git a/src/views/basic/corpMaintain/corpMaintain.vue b/src/views/basic/corpMaintain/corpMaintain.vue index 937b91d..7b639ba 100644 --- a/src/views/basic/corpMaintain/corpMaintain.vue +++ b/src/views/basic/corpMaintain/corpMaintain.vue @@ -209,14 +209,7 @@ - 添加资质证书 - + @@ -353,6 +346,11 @@ export default { }, data() { return { + BASE_URL: process.env.VUE_APP_BASE_API, + certFileUrl: '', + uploadUrl: '', + fileList: [], + fileUrl: '', pmQuery: { customerId: null, companyIdFk: null, @@ -988,6 +986,26 @@ export default { this.getList(); //this.getSyncConfig(); //this.getBasicThirdSys(); + if (this.editType == 0) { + this.inputQuery.manufacturerId = getUUID('') + } else { + this.certQuery.customerId = this.inputQuery.customerId + this.selectedOptions = this.inputQuery.placeAreaCode.split(',') + if (this.inputQuery.productionAreaCode != '' && this.inputQuery.productionAreaCode != null && this.inputQuery.productionAreaCode != undefined) { + this.selectedOptions2 = this.inputQuery.productionAreaCode.split(',') + } + + } + this.certQuery.manufacturerIdFk = this.inputQuery.manufacturerId + this.manufacturerId = this.inputQuery.manufacturerId + this.customerId = this.inputQuery.customerId + // this.getData(); + this.getCompanyCertList() + this.findMethod() + this.uploadUrl = this.BASE_URL + '/udiwms/upload/register/file' + this.fileUrl = this.BASE_URL + '/udiwms/image/register/file/getImage?type=image2&name=' + this.certFileUrl = this.BASE_URL + '/udiwms/image/register/file/getImage?type=image2&name=' + }