瀏覽代碼

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

liujt 2 月之前
父節點
當前提交
b57d989d85
共有 1 個文件被更改,包括 6 次插入0 次删除
  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();