|
|
@@ -827,7 +827,8 @@
|
|
|
{ label: '外销计划', value: 2 },
|
|
|
{ label: '预制计划', value: 3 },
|
|
|
{ label: '改型计划', value: 4 },
|
|
|
- { label: '返工返修计划', value: 5 }
|
|
|
+ { label: '返工返修计划', value: 5 },
|
|
|
+ { label: '受托计划', value: 6 }
|
|
|
],
|
|
|
loading: false,
|
|
|
form: {
|
|
|
@@ -898,7 +899,11 @@
|
|
|
callback();
|
|
|
return;
|
|
|
}
|
|
|
- if (value === undefined || value === null || String(value).trim() === '') {
|
|
|
+ if (
|
|
|
+ value === undefined ||
|
|
|
+ value === null ||
|
|
|
+ String(value).trim() === ''
|
|
|
+ ) {
|
|
|
callback(new Error('请选择销售订单号'));
|
|
|
} else {
|
|
|
callback();
|
|
|
@@ -1019,12 +1024,16 @@
|
|
|
v.productType = '';
|
|
|
}
|
|
|
if (v.productType) {
|
|
|
- this.$set(productList[index], 'bomVersionList',
|
|
|
+ this.$set(
|
|
|
+ productList[index],
|
|
|
+ 'bomVersionList',
|
|
|
await this.bomListVersionFn(v.productType, v.categoryId)
|
|
|
);
|
|
|
}
|
|
|
if (v.bomCategoryId) {
|
|
|
- this.$set(productList[index], 'routingList',
|
|
|
+ this.$set(
|
|
|
+ productList[index],
|
|
|
+ 'routingList',
|
|
|
await this.changeBomIdFn(v.bomCategoryId, productList[index])
|
|
|
);
|
|
|
}
|
|
|
@@ -1034,7 +1043,9 @@
|
|
|
|
|
|
const [resAll, infoAll] = await Promise.all([
|
|
|
Promise.all(
|
|
|
- productList.map((item) => findBomCategoryByCategoryId(item.categoryId))
|
|
|
+ productList.map((item) =>
|
|
|
+ findBomCategoryByCategoryId(item.categoryId)
|
|
|
+ )
|
|
|
),
|
|
|
Promise.all(
|
|
|
productList.map(async (item) => {
|
|
|
@@ -1051,8 +1062,16 @@
|
|
|
const info = infoAll[index] || {};
|
|
|
const colorKey = info.colorKey || '';
|
|
|
const modelKey = info.modelKey || '';
|
|
|
- this.$set(productList[index], 'colorList', colorKey ? colorKey.split(',') : []);
|
|
|
- this.$set(productList[index], 'modelList', modelKey ? modelKey.split(',') : []);
|
|
|
+ this.$set(
|
|
|
+ productList[index],
|
|
|
+ 'colorList',
|
|
|
+ colorKey ? colorKey.split(',') : []
|
|
|
+ );
|
|
|
+ this.$set(
|
|
|
+ productList[index],
|
|
|
+ 'modelList',
|
|
|
+ modelKey ? modelKey.split(',') : []
|
|
|
+ );
|
|
|
this.$set(
|
|
|
productList[index],
|
|
|
'colorKey',
|
|
|
@@ -1080,7 +1099,9 @@
|
|
|
|
|
|
if (!item.factoriesId) {
|
|
|
this.$set(productList[index], 'factoriesId', this.factoriesId);
|
|
|
- this.$set(productList[index], 'factoriesName',
|
|
|
+ this.$set(
|
|
|
+ productList[index],
|
|
|
+ 'factoriesName',
|
|
|
this.factoryList?.find((f) => f.id === this.factoriesId)?.name
|
|
|
);
|
|
|
}
|