linwenxin 1 tahun lalu
induk
melakukan
a0461232c0
1 mengubah file dengan 4 tambahan dan 4 penghapusan
  1. 4 4
      src/views/workOrder/workOrderPool/index.vue

+ 4 - 4
src/views/workOrder/workOrderPool/index.vue

@@ -239,8 +239,8 @@ export default {
     },
 
     // 获取统计
-    getOrderBaseStatusCount() {
-      orderBaseStatusCount().then(res => {
+    getOrderBaseStatusCount(...p) {
+      orderBaseStatusCount(...p).then(res => {
         this.orderStatusList = [{
           label: "待预约",
           value: "DYY"
@@ -280,8 +280,8 @@ export default {
 
     // 列表请求函数
     getList(p, cb) {
+      var pam = JSON.parse(JSON.stringify(p))
       try {
-        var pam = JSON.parse(JSON.stringify(p))
         if (pam.orderStatus) {
           pam.params.push({ "param": "a.order_status", "compare": "=", "value": pam.orderStatus })
         }
@@ -293,7 +293,7 @@ export default {
       } catch (err) {
       } finally {
         this.$nextTick(() => {
-          this.getOrderBaseStatusCount()
+          this.getOrderBaseStatusCount({ orderSmallType: pam.orderSmallType || "" })
         })
       }
     },