ysy 1 سال پیش
والد
کامیت
d697fb0572
1فایلهای تغییر یافته به همراه7 افزوده شده و 1 حذف شده
  1. 7 1
      src/views/saleOrder/salesToProduction.vue

+ 7 - 1
src/views/saleOrder/salesToProduction.vue

@@ -558,7 +558,7 @@ export default {
         produceRoutingName: '',
         marginCoefficient: '1.0',
         batchNo: null,
-        produceType: ''
+        produceType: 2
       },
 
       marginList: [],
@@ -590,6 +590,7 @@ export default {
     }
   },
   created() {
+
     this.requestDict('按单按库');
     this.requestDict('订单类型');
     this.requestDict('交付要求');
@@ -605,6 +606,8 @@ export default {
     async getPlanInfo(id) {
       const data = await getUpdateInfoById(id);
       this.form = data;
+
+    
     },
     async _getInventory() {
       const res = await getInventory(this.form.productCode, this.form.planType);
@@ -666,6 +669,9 @@ export default {
       productionToPlan(params).then((res) => {
         console.log(res);
         this.form = deepClone(res);
+        if(!this.form.produceType) {
+          this.form.produceType = 2;
+         }
         this.form.produceRoutingName =
           res.produceRoutingName || this.$route.query.produceRoutingName;
         this.form.produceRoutingId =