Explorar el Código

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

liujt hace 2 meses
padre
commit
91685e5554
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  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();