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