소스 검색

工单列表 已打开其他的工单工单详情页面,进入商城订单列表点查看工单,应跳转到工单列表查看该工单,目前跳转到已打开其他的工单详情页面

linwenxin 1 년 전
부모
커밋
c83f0fdd57
1개의 변경된 파일16개의 추가작업 그리고 6개의 파일을 삭제
  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: {} })
+            })
           })
         }
       }