Procházet zdrojové kódy

转生产计划回显

longfenglin před 1 rokem
rodič
revize
86d47ac1ae

+ 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')