|
@@ -584,7 +584,6 @@
|
|
|
const bomCategoryId = this.selection[0].bomCategoryId;
|
|
const bomCategoryId = this.selection[0].bomCategoryId;
|
|
|
const saleType = this.selection[0].saleType;
|
|
const saleType = this.selection[0].saleType;
|
|
|
let produceType = this.selection[0].produceType[0];
|
|
let produceType = this.selection[0].produceType[0];
|
|
|
-
|
|
|
|
|
// if(!factoriesId){
|
|
// if(!factoriesId){
|
|
|
// this.$message.warning('工厂未选择!');
|
|
// this.$message.warning('工厂未选择!');
|
|
|
// return;
|
|
// return;
|
|
@@ -656,6 +655,10 @@
|
|
|
let obj = arr.find((el) => el.code == produceType);
|
|
let obj = arr.find((el) => el.code == produceType);
|
|
|
produceType = obj ? produceType : arr[0].code;
|
|
produceType = obj ? produceType : arr[0].code;
|
|
|
}
|
|
}
|
|
|
|
|
+ if(arr.length == 0){
|
|
|
|
|
+ produceType = '';
|
|
|
|
|
+ }
|
|
|
|
|
+ console.log(produceType,'produceType')
|
|
|
console.log(arr, 'arr 222');
|
|
console.log(arr, 'arr 222');
|
|
|
// const res = await findBomCategoryByCategoryId(categoryId);
|
|
// const res = await findBomCategoryByCategoryId(categoryId);
|
|
|
// let arr = [];
|
|
// let arr = [];
|