Преглед на файлове

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

liujt преди 2 месеца
родител
ревизия
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();