完善商品的导入界面的展示逻辑

This commit is contained in:
季圣华
2022-09-23 19:47:56 +08:00
parent 4830d6903a
commit 6aba675d25
3 changed files with 7 additions and 6 deletions

View File

@@ -4,6 +4,7 @@
:width="400" :width="400"
:visible="visible" :visible="visible"
:confirm-loading="confirmLoading" :confirm-loading="confirmLoading"
:maskClosable="false"
@cancel="handleCancel" @cancel="handleCancel"
wrapClassName="ant-modal-cust-warp" wrapClassName="ant-modal-cust-warp"
style="top:25%;height: 45%;overflow-y: hidden"> style="top:25%;height: 45%;overflow-y: hidden">

View File

@@ -311,7 +311,7 @@ export const JeecgListMixin = {
}, },
/* 导入 */ /* 导入 */
handleImportExcel(info){ handleImportExcel(info){
this.loading = true this.confirmLoading = true
if (info.file.status !== 'uploading') { if (info.file.status !== 'uploading') {
console.log(info.file, info.fileList); console.log(info.file, info.fileList);
} }
@@ -323,16 +323,16 @@ export const JeecgListMixin = {
} else { } else {
this.$message.warning(info.file.response.data) this.$message.warning(info.file.response.data)
} }
this.loading = false this.confirmLoading = false
this.visible = false this.visible = false
this.$emit('ok') this.$emit('ok')
} else { } else {
this.$message.error(`${info.file.name} ${info.file.response.data}.`); this.$message.error(`${info.file.name} ${info.file.response.data}.`);
this.loading = false this.confirmLoading = false
} }
} else if (info.file.status === 'error') { } else if (info.file.status === 'error') {
this.$message.error(`文件上传失败: ${info.file.msg} `) this.$message.error(`文件上传失败: ${info.file.msg} `)
this.loading = false this.confirmLoading = false
} }
}, },
/* 图片预览 */ /* 图片预览 */

View File

@@ -391,8 +391,6 @@
}, },
created () { created () {
this.maxBarCodeAction(); this.maxBarCodeAction();
this.loadTreeData();
this.loadUnitListData();
this.loadParseMaterialProperty(); this.loadParseMaterialProperty();
}, },
methods: { methods: {
@@ -436,6 +434,8 @@
autoJumpNextInput('materialDetailModal') autoJumpNextInput('materialDetailModal')
}); });
this.initMaterialAttribute() this.initMaterialAttribute()
this.loadTreeData()
this.loadUnitListData()
// 加载子表数据 // 加载子表数据
if (this.model.id) { if (this.model.id) {
//禁用多属性开关 //禁用多属性开关