jinhui.wang

状态变更

......@@ -176,12 +176,12 @@ export default {
},
//导入Excel
upload() {
this.loading = true;
if (this.formData.file != null && this.formData.file != '') {
this.$refs['addForm'].validate(val => {
if (val) {
const file = this.formData.file;
let goodsStation = this.formData.uploadGoodsStation
this.loading = true;
uploadGoodsExcel(file, goodsStation).then((res) => {
this.loading = false;
if (res.code != 200) {
......@@ -206,9 +206,12 @@ export default {
this.close()
}, 1000);
});
} else {
this.loading = false;
}
})
} else {
this.loading = false;
this.msgWarning('请选择文件后再导入!')
}
},
......