Ver Fonte

修改bug

chenrui há 6 meses atrás
pai
commit
f67e1c0b1c

+ 4 - 4
src/views/purchasingManagement/purchaseReceipt/edit.vue

@@ -116,7 +116,7 @@
       :itemSn="itemSn"
       :openModal="openAddModal"
       :nowData="detailsData"
-      @ok="resetTable"
+      @ok="resetTable(true)"
       @close="openAddModal=false" />
     <!-- 导入弹窗 -->
     <importGuideModal :openModal="openGuideModal" :params="{sparePartsSn: $route.query.sn}" @close="openGuideModal=false" @ok="hanldleImportOk" />
@@ -278,7 +278,7 @@ export default {
           purchaseDetailDel({ sn: row.sparePartsDetailSn })
             .then(res => {
               if (res.status == 200) {
-                _this.resetTable()
+                _this.resetTable(false)
               }
               _this.$message.info(res.message)
               _this.delLoading = false
@@ -292,9 +292,9 @@ export default {
       })
     },
     // 刷新列表  更新操作时间
-    resetTable () {
+    resetTable (flag) {
       this.itemSn = undefined
-      this.$refs.table.refresh(true)
+      this.$refs.table.refresh(flag)
     },
     //  重置
     resetSearchForm () {

+ 1 - 1
src/views/purchasingManagement/purchaseReceipt/list.vue

@@ -402,7 +402,7 @@ export default {
           purchaseCancel({ sn: row.sparePartsSn }).then(res => {
             if (res.status == 200) {
               _this.$message.success(res.message)
-              _this.$refs.table.refresh(true)
+              _this.$refs.table.refresh()
               _this.spinning = false
             } else {
               _this.spinning = false