|
|
@@ -1133,7 +1133,7 @@
|
|
|
// this.form.endTime = new Date(data.endTime);
|
|
|
// }
|
|
|
this.form.productionRequirements =
|
|
|
- data?.salesOrders[0]?.productionRequirements || '';
|
|
|
+ data?.salesOrders[0]?.productionRequirements || '';
|
|
|
if (!data.bomCategoryId || data.bomCategoryId == null) {
|
|
|
this.form.produceType = '';
|
|
|
this.selectionRowShow = true;
|
|
|
@@ -1305,13 +1305,14 @@
|
|
|
res.factoriesId || this.$route.query.factoriesId;
|
|
|
}
|
|
|
|
|
|
- // this.form.produceType =
|
|
|
- // res.produceType || this.$route.query.produceType
|
|
|
- // ? parseInt(this.$route.query.produceType)
|
|
|
- // : null;
|
|
|
- this.form.produceType = this.$route.query.produceType
|
|
|
- ? parseInt(this.$route.query.produceType)
|
|
|
- : res.produceType;
|
|
|
+ this.form.produceType =
|
|
|
+ res.produceType ||
|
|
|
+ (this.$route.query.produceType
|
|
|
+ ? parseInt(this.$route.query.produceType)
|
|
|
+ : null);
|
|
|
+ // this.form.produceType = this.$route.query.produceType
|
|
|
+ // ? parseInt(this.$route.query.produceType)
|
|
|
+ // : res.produceType;
|
|
|
console.log('this.form', this.form, res);
|
|
|
this.changeProduceType('init');
|
|
|
this.form.bomCategoryId =
|
|
|
@@ -1459,7 +1460,7 @@
|
|
|
let flag = this.parameterVerification();
|
|
|
// 必填参数校验
|
|
|
if (!flag) return;
|
|
|
- this.$refs.form.validate((valid,obj) => {
|
|
|
+ this.$refs.form.validate((valid, obj) => {
|
|
|
if (valid) {
|
|
|
if (this.form.produceType == 1) {
|
|
|
this.$message.warning('请选择MBOM或者ABOM');
|