소스 검색

bug 修复

lilei 2 년 전
부모
커밋
067943ce09
2개의 변경된 파일13개의 추가작업 그리고 16개의 파일을 삭제
  1. 1 1
      public/version.json
  2. 12 15
      src/views/numsGoodsShelves/replenishmentManagement/list.vue

+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
-  "version": 1659076515138
+  "version": 1659317689720
 }

+ 12 - 15
src/views/numsGoodsShelves/replenishmentManagement/list.vue

@@ -189,7 +189,14 @@ export default {
         { title: '单位', dataIndex: 'product.unit', width: '8%', align: 'center', customRender: function (text) { return text || '--' } }
       ],
       listData: [],
-      tabPaneData: [],
+      tabPaneData: [
+        { bizName: '全部', bizType: 'ALL', countNum: 0 },
+        { bizName: '待确认', bizType: 'WAIT_CONFIRM', countNum: 0 },
+        { bizName: '待出库', bizType: 'WAIT_OUT_STOCK', countNum: 0 },
+        { bizName: '待签收', bizType: 'WAIT_CHECK', countNum: 0 },
+        { bizName: '已完成', bizType: 'FINISH', countNum: 0 },
+        { bizName: '已取消', bizType: 'CANCEL', countNum: 0 }
+      ],
       nowData: null,
       openConfirmModal: false,
       openStockModal: false,
@@ -389,11 +396,9 @@ export default {
     // 选择类型
     handleTabChange (key) {
       this.expandedRowKeys = []
-      setTimeout(() => {
-        this.queryParam.bizType = key
-        this.$refs.table.refresh(true)
-        this.curBizType = key
-      }, 100)
+      this.queryParam.bizType = key
+      this.curBizType = key
+      this.$refs.table.refresh(true)
     },
     // 客户 change
     custChange (obj) {
@@ -405,20 +410,12 @@ export default {
       delete params.bizType
       shelfReplenishStateCount(params).then(res => {
         if (res.data && res.status == 200) {
-          this.tabPaneData = [
-            { bizName: '全部', bizType: 'ALL', countNum: 0 },
-            { bizName: '待确认', bizType: 'WAIT_CONFIRM', countNum: 0 },
-            { bizName: '待出库', bizType: 'WAIT_OUT_STOCK', countNum: 0 },
-            { bizName: '待签收', bizType: 'WAIT_CHECK', countNum: 0 },
-            { bizName: '已完成', bizType: 'FINISH', countNum: 0 },
-            { bizName: '已取消', bizType: 'CANCEL', countNum: 0 }
-          ]
-          this.queryParam.bizType = 'ALL'
           this.tabPaneData[1].countNum = res.data.WAIT_CONFIRM || 0
           this.tabPaneData[2].countNum = res.data.WAIT_OUT_STOCK || 0
           this.tabPaneData[3].countNum = res.data.WAIT_CHECK || 0
           this.tabPaneData[4].countNum = res.data.FINISH || 0
           this.tabPaneData[5].countNum = res.data.CANCEL || 0
+          this.queryParam.bizType = this.curBizType
           this.$refs.table.refresh(true)
         }
       })