diff --git a/supervise-customer-ui/src/views/supervise/tobaccopurchaseapplication/tobaccopurchaseapplicationAdd.vue b/supervise-customer-ui/src/views/supervise/tobaccopurchaseapplication/tobaccopurchaseapplicationAdd.vue
index db55d453..09a209c9 100644
--- a/supervise-customer-ui/src/views/supervise/tobaccopurchaseapplication/tobaccopurchaseapplicationAdd.vue
+++ b/supervise-customer-ui/src/views/supervise/tobaccopurchaseapplication/tobaccopurchaseapplicationAdd.vue
@@ -32,6 +32,7 @@
:data="currentOrderSid"
name="filename"
:file-list="fileListDetails"
+ :before-upload="beforeUploadDetail"
:on-success="handleSuccessDetail"
:multiple="true"
:show-file-list="false"
@@ -39,6 +40,7 @@
上传《报烟明细.csv》
+ 重新加载订单数据
关闭
@@ -131,13 +133,13 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -180,6 +182,7 @@ export default {
updateActionDetails: process.env.VUE_APP_BASE_API + '/purchaserequisitiontobaccodetails/importCsvBatch',
fileList: [],
fileListDetails: [],
+ deatilsNum: 0,
amountInTotal: '', // 合计金额
currentOrderSid: {
sid: ''
@@ -294,14 +297,23 @@ export default {
this.$message({ showClose: true, type: 'error', message: resp.msg })
}
},
+ beforeUploadDetail(file) {
+ this.deatilsNum = 0
+ },
handleSuccessDetail(resp, file, fileList) {
// this.fileListDetails = []
const _this = this
+ _this.deatilsNum++
+ console.log('_this.deatilsNum: ' + _this.deatilsNum + '--- _this.fileListDetails.length= ' + fileList.length)
if (resp.success) {
this.$message({ showClose: true, type: 'success', message: '导入成功' })
- _this.loadData()
+ if (_this.deatilsNum == fileList.length) {
+ _this.loadData()
+ _this.fileListDetails = []
+ }
} else {
this.$message({ showClose: true, type: 'error', message: resp.msg })
+ _this.fileListDetails = []
}
},
loadData() {