Quellcode durchsuchen

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

linwenxin vor 1 Jahr
Ursprung
Commit
2d3e3b3e0e
1 geänderte Dateien mit 16 neuen und 6 gelöschten Zeilen
  1. 16 6
      src/views/workOrder/workOrderPool/index.vue

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

@@ -197,16 +197,26 @@ export default {
     initFun() {
       if (this.$route.path === "/workOrder/workOrderPool") {
         if (this.$route.query.id) {
-          this.id = this.$route.query.id
+          this.createFormBool = false
+          this.detailFormBool = false
+          this.recordSelected = []
           this.$nextTick(() => {
-            this.detailFormBool = true
+            this.id = this.$route.query.id
+            this.$nextTick(() => {
+              this.detailFormBool = true
+            })
           })
         }
         if (this.$route.query.saleOrderId) {
-          this.defaultSearchData = [{ "param": "a.sale_order_id", "compare": "like", "value": this.$route.query.saleOrderId, label: "销售订单号" }]
-          this.$nextTick(()=>{
-            this.defaultSearchData = []
-            this.$router.push({name: "workOrderPool",params: {},query: {}})
+          this.createFormBool = false
+          this.detailFormBool = false
+          this.recordSelected = []
+          this.$nextTick(() => {
+            this.defaultSearchData = [{ "param": "a.sale_order_id", "compare": "like", "value": this.$route.query.saleOrderId, label: "销售订单号" }]
+            this.$nextTick(() => {
+              this.defaultSearchData = []
+              this.$router.push({ name: "workOrderPool", params: {}, query: {} })
+            })
           })
         }
       }