فهرست منبع

转生产计划回显

longfenglin 1 سال پیش
والد
کامیت
86d47ac1ae
2فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 3 1
      src/views/saleOrder/components/order-search.vue
  2. 2 0
      src/views/saleOrder/salesToProductionNewTwo.vue

+ 3 - 1
src/views/saleOrder/components/order-search.vue

@@ -564,6 +564,7 @@
         const factoriesId = this.selection[0].factoriesId;
         const bomCategoryId = this.selection[0].bomCategoryId
         const saleType = this.selection[0].saleType;
+        const produceType=this.selection[0].produceType[0];
 
         // if(!factoriesId){
         //   this.$message.warning('工厂未选择!');
@@ -601,7 +602,8 @@
             produceRoutingId: produceRoutingId,
             produceRoutingName: this.selection[0].produceRoutingName,
             factoriesId: factoriesId,
-            bomCategoryId: bomCategoryId
+            bomCategoryId: bomCategoryId,
+            produceType:produceType
           }
         });
       },

+ 2 - 0
src/views/saleOrder/salesToProductionNewTwo.vue

@@ -720,6 +720,8 @@ export default {
                     res.produceRoutingId || this.$route.query.produceRoutingId;
                 this.form.factoriesId =
                     res.factoriesId || this.$route.query.factoriesId;
+                this.form.produceType= res.produceType || parseInt(this.$route.query.produceType);
+                this.changeProduceType()
                 this.form.bomCategoryId=res.bomCategoryId || this.$route.query.bomCategoryId;
                 this.changeBomId()
                 console.log(this.form.factoriesId, '99999999999999')