Browse Source

fix(produceOrder): 修复从路由参数初始化生产订单时未处理item的问题

liujt 2 months ago
parent
commit
b57d989d85
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/views/produceOrder/index.vue

+ 6 - 0
src/views/produceOrder/index.vue

@@ -937,8 +937,14 @@
     },
     created() {
       const isWt = this.$route.query?.isWt;
+      
       if (isWt) {
         this.tabValue = '1';
+        this.$nextTick(() => {
+          const item = JSON.parse(this.$route.query?.item);
+          console.log(item);
+          this.handleOrderPublish(item)
+        })
       }
       this.getFieldModel();
       this.getPlanDotLine();