Sfoglia il codice sorgente

Merge branch 'linwenxin_workOrder' of ssh://gogs.zfire.top:2222/zfire-front/zfire-newmall-admin

linwenxin 1 anno fa
parent
commit
f6c43eb196
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  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 || "" })
         })
       }
     },