Explorar o código

修改入库管理导入错误无法再次导入

caojunjie %!s(int64=2) %!d(string=hai) anos
pai
achega
3a89bdfefc
Modificáronse 1 ficheiros con 10 adicións e 6 borrados
  1. 10 6
      src/views/purchasingManagement/inStock/detailsPage.vue

+ 10 - 6
src/views/purchasingManagement/inStock/detailsPage.vue

@@ -535,12 +535,16 @@ export default {
       window.open(`/api/trade-purchase/woodHarvestingCloud/export-template?${this.website.tokenHeader}=${getToken()}`)
     },
     uploadAfter(res, done, loading, column) {
-      res.forEach(item => this.itemsVOList.push({
-        ...item,
-        $cellEdit: true
-      }))
-      this.excelBox = false
-      done();
+      if (!res.message){
+        res.forEach(item => this.itemsVOList.push({
+          ...item,
+          $cellEdit: true
+        }))
+        this.excelBox = false
+        done();
+      }else {
+        loading()
+      }
     },
     //返回列表
     backToList() {