linwenxin 6 hónapja
szülő
commit
afaddcaedd

+ 7 - 3
src/packageMaterial/pages/newSale/orderList.vue

@@ -177,11 +177,15 @@ export default {
     }
   },
 
-  onLoad({ type, oid }) {
+  onLoad({ type, oid, tabCurrent }) {
     this.type = type
     if (oid) {
       this.oid = oid
     }
+    if (tabCurrent) {
+      this.tabCurrent = Number(tabCurrent)
+      this.status = this.tabList?.[this.tabCurrent]?.value
+    }
     this.getCount()
     this.getList()
   },
@@ -194,9 +198,9 @@ export default {
         })
         .then(res => {
           if (!res.data) return false
-          // this.tabList[0].badge.value = res.data.qb || 0;
+          this.tabList[0].badge.value = res.data.qb || 0
           this.tabList[1].badge.value = res.data.dzf || 0
-          // this.tabList[2].badge.value = res.data.yzf || 0;
+          this.tabList[2].badge.value = res.data.yzf || 0
           this.tabList[3].badge.value = res.data.yqx || 0
         })
     },

+ 7 - 3
src/packageMaterial/pages/sale/orderList.vue

@@ -177,10 +177,14 @@ export default {
     }
   },
 
-  onLoad({ type, oid }) {
+  onLoad({ type, oid, tabCurrent }) {
     if (oid) {
       this.oid = oid
     }
+    if (tabCurrent) {
+      this.tabCurrent = Number(tabCurrent)
+      this.status = this.tabList?.[this.tabCurrent]?.value
+    }
     this.type = type
     this.getCount()
     this.getList()
@@ -194,9 +198,9 @@ export default {
         })
         .then(res => {
           if (!res.data) return false
-          // this.tabList[0].badge.value = res.data.qb || 0;
+          this.tabList[0].badge.value = res.data.qb || 0
           this.tabList[1].badge.value = res.data.dzf || 0
-          // this.tabList[2].badge.value = res.data.yzf || 0;
+          this.tabList[2].badge.value = res.data.yzf || 0
           this.tabList[3].badge.value = res.data.yqx || 0
         })
     },

+ 2 - 2
src/pages/index/index.vue

@@ -397,13 +397,13 @@ export default {
       otherList: [
         // 其他列表
         { code: 1, title: '辅材管理', url: `/packageMaterial/pages/stock/index` },
-        { code: 2, title: '辅材收款', url: `/packageMaterial/pages/sale/orderList?type=M` }
+        { code: 2, title: '辅材收款', url: `/packageMaterial/pages/sale/orderList?type=M&tabCurrent=1` }
         // { code: 2, title: '辅材收款', url: `/packageMaterial/pages/sale/index?type=M` }
       ],
       otherList2: [
         // 其他列表
         { code: 1, title: '配件管理', url: `/packageAttachment/pages/fittingsManagement/index` },
-        { code: 2, title: '配件收款', url: `/packageMaterial/pages/newSale/orderList?type=P` }
+        { code: 2, title: '配件收款', url: `/packageMaterial/pages/newSale/orderList?type=P&tabCurrent=1` }
         // { code: 2, title: '配件收款', url: `/packageMaterial/pages/newSale/index?type=P` }
       ],
       bannerList: [], // 轮播图列表