From c2e5ba2dec40ffef0ea6fbe87e24f9d0bf4367d1 Mon Sep 17 00:00:00 2001 From: jjLv <1981429112@qq.com> Date: Wed, 30 Oct 2024 09:50:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E8=B5=84=E5=8E=82=E5=AE=B6=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=B8=8A=E4=BC=A0=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/material/ma/supplier/index.vue | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/views/material/ma/supplier/index.vue b/src/views/material/ma/supplier/index.vue index 9b387df5..2136e827 100644 --- a/src/views/material/ma/supplier/index.vue +++ b/src/views/material/ma/supplier/index.vue @@ -364,7 +364,7 @@ //上传组件-图片查看 picturePreview(file) { - console.log('file',file) + this.dialogImageUrl = file.url; const parts = file.name.split('.'); const extension = parts.pop(); @@ -374,6 +374,7 @@ }else{ this.dialogVisible = true } + }, handleRemoveElectricianImgList(file, fileList) { let sum = 0 @@ -482,8 +483,8 @@ const supplierId = row.supplierId getFacturerDetail(supplierId).then((response) => { this.form = response.data; - if(response.data.businessLicenseFileList!=null){ - this.businessLicenseListTemp = response.data.businessLicenseFileList; + if(response.data.bmFileInfos!=null){ + this.businessLicenseListTemp = response.data.bmFileInfos; }else{ this.businessLicenseListTemp = []; } @@ -538,8 +539,7 @@ let res = await imgUpLoadThree(fileTwo); if (res.code === 200) { res.data.forEach(item=>{ - let objTwo = { 'fileName': item.name, 'fileUrl': item.url,'modelId': null, 'dicId':4 }; - console.log('obj', objTwo); + let objTwo = { 'name': item.name, 'url': item.url,'modelId': null, 'dicId':4 }; this.businessLicenseFileList.push(objTwo); }) } else { @@ -548,8 +548,7 @@ }, async addFacturerTemp(form){ - console.log('businessLicenseFileList',this.businessLicenseFileList) - this.form.businessLicenseFileList=this.businessLicenseFileList + this.form.bmFileInfos=this.businessLicenseFileList addFacturer(form).then(response => { this.$modal.msgSuccess("新增成功"); this.showHouse = false;