|
|
@@ -272,7 +272,6 @@
|
|
|
i.ruleId = this.ruleId;
|
|
|
i.outputType = this.outputType;
|
|
|
i.bomCategoryId = this.bomCategoryId;
|
|
|
- i.id = null;
|
|
|
return i;
|
|
|
}
|
|
|
);
|
|
|
@@ -414,7 +413,7 @@
|
|
|
if (this.outputType == 1) {
|
|
|
// 取值产出清单
|
|
|
const outputItem = this.localOutputDetails.find(
|
|
|
- (item) => item.categoryCode === row.categoryCode
|
|
|
+ (item) => item.id === row.id
|
|
|
);
|
|
|
|
|
|
if (outputItem) {
|
|
|
@@ -467,7 +466,7 @@
|
|
|
formatter: (row) => {
|
|
|
if (this.outputType == 1) {
|
|
|
const outputItem = this.localOutputDetails.find(
|
|
|
- (item) => item.categoryCode == row.categoryCode
|
|
|
+ (item) => item.id == row.id
|
|
|
);
|
|
|
|
|
|
// 查询其他工单sumOutputDetails中已产生的bom标准产出和在制品的累计消耗数量
|
|
|
@@ -840,7 +839,7 @@
|
|
|
|
|
|
data.forEach((newItem) => {
|
|
|
const index = this.localPickDetails.findIndex(
|
|
|
- (item) => item.categoryCode === newItem.categoryCode
|
|
|
+ (item) => item.id === newItem.id
|
|
|
);
|
|
|
if (index !== -1) {
|
|
|
// 存在则替换数量
|
|
|
@@ -968,7 +967,7 @@
|
|
|
if (row.selected) {
|
|
|
// 判断是否存在
|
|
|
const index = this.localOutputDetails.findIndex(
|
|
|
- (item) => item.categoryId === row.categoryId
|
|
|
+ (item) => item.id === row.id
|
|
|
);
|
|
|
|
|
|
if (index === -1) {
|
|
|
@@ -989,7 +988,6 @@
|
|
|
// 不存在则添加
|
|
|
this.localOutputDetails.push({
|
|
|
...row,
|
|
|
- id: null,
|
|
|
reportQuantity: 0,
|
|
|
reportQuantityCopy: 0,
|
|
|
qualifiedQuantity: 0,
|