Просмотр исходного кода

fix(produceOrder): 根据路由参数way处理不同的订单操作

liujt 2 месяцев назад
Родитель
Сommit
91685e5554
1 измененных файлов с 6 добавлено и 1 удалено
  1. 6 1
      src/views/produceOrder/index.vue

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

@@ -942,8 +942,13 @@
         this.tabValue = '1';
         this.$nextTick(() => {
           const item = JSON.parse(this.$route.query?.item);
+          const way = this.$route.query?.way;
           console.log(item);
-          this.handleOrderPublish(item)
+          if (way == 'todo') {
+            this.handleOrderPublish(item)
+          } else {
+            this.goDetail(item)
+          }
         })
       }
       this.getFieldModel();