物资厂家文件上传回显
This commit is contained in:
parent
acf7f69d8e
commit
c2e5ba2dec
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue