Browse Source

no message

linwenxin 4 months ago
parent
commit
f41b62eafe

+ 8 - 6
src/views/workOrder/workOrderPool/index.vue

@@ -260,11 +260,7 @@ export default {
               label: '全部',
               value: ''
             },
-            ...this.orderStatusList,
-            {
-              label: '待支付',
-              value: 'fucaidaizhifu'
-            }
+            ...this.orderStatusList
           ]
         }
       ]
@@ -580,9 +576,15 @@ export default {
           {
             label: '配件已取消',
             value: 'PJYQX'
+          },
+          {
+            label: '待支付',
+            value: 'fucaidaizhifu'
           }
         ].map(item => {
-          if (this.fuhezhuangtai[item.value]) {
+          if (item.value === 'fucaidaizhifu') {
+            item.label = `${item.label}(${res.data.find(val => val.orderStatus == 'DZF')?.total || 0})`
+          } else if (this.fuhezhuangtai[item.value]) {
             var num = 0
             this.fuhezhuangtai[item.value].map(status => {
               num += res.data.find(val => val.orderStatus == status)?.total || 0

+ 8 - 6
src/views/workOrder/workOrderPool2/index.vue

@@ -263,11 +263,7 @@ export default {
               label: '全部',
               value: ''
             },
-            ...this.orderStatusList,
-            {
-              label: '待支付',
-              value: 'fucaidaizhifu'
-            }
+            ...this.orderStatusList
           ]
         }
       ]
@@ -583,9 +579,15 @@ export default {
           {
             label: '配件已取消',
             value: 'PJYQX'
+          },
+          {
+            label: '待支付',
+            value: 'fucaidaizhifu'
           }
         ].map(item => {
-          if (this.fuhezhuangtai[item.value]) {
+          if (item.value === 'fucaidaizhifu') {
+            item.label = `${item.label}(${res.data.find(val => val.orderStatus == 'DZF')?.total || 0})`
+          } else if (this.fuhezhuangtai[item.value]) {
             var num = 0
             this.fuhezhuangtai[item.value].map(status => {
               num += res.data.find(val => val.orderStatus == status)?.total || 0