|
@@ -29,6 +29,7 @@ class loadGclBaseTree {
|
|
|
this.baseNodes = [];
|
|
|
|
|
|
this.ignoreParent = setting.ignoreParent;
|
|
|
+ this.ignoreNotFind = setting.ignoreNotFind;
|
|
|
|
|
|
// 缓存
|
|
|
this.keyNodeId = setting.maxId ? setting.maxId + 1 : 1;
|
|
@@ -432,8 +433,10 @@ class gatherStageGclTree extends loadGclBaseTree {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- for (const i of this.items) {
|
|
|
- result.errors.push({ b_code: i.b_code, name: i.name, unit: i.unit, qty: i.contract_qty, qc_qty: i.qc_qty, qc_minus_qty: i.qc_minus_qty, type: 'miss' });
|
|
|
+ if (!this.ignoreNotFind) {
|
|
|
+ for (const i of this.items) {
|
|
|
+ result.errors.push({ b_code: i.b_code, name: i.name, unit: i.unit, qty: i.contract_qty, qc_qty: i.qc_qty, qc_minus_qty: i.qc_minus_qty, type: 'miss' });
|
|
|
+ }
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
@@ -541,10 +544,10 @@ class sumLoad {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- async stageGatherGcl(select, maxId, tenders, defaultData, cover) {
|
|
|
+ async stageGatherGcl(select, maxId, tenders, defaultData, cover, ignore) {
|
|
|
const ignoreParent = this.ctx.tender.info.fun_rela.sum_load.ignoreParent;
|
|
|
this.loadTree = new gatherStageGclTree(this.ctx, {
|
|
|
- parent: select, maxId, type: 'ledger', defaultData, ignoreParent, cover,
|
|
|
+ parent: select, maxId, type: 'ledger', defaultData, ignoreParent, cover, ignoreNotFind: ignore,
|
|
|
});
|
|
|
const posterity = await this.ctx.service.ledger.getPosterityByParentId(this.ctx.tender.id, select.ledger_id);
|
|
|
const extraData = await this.ctx.service.ledgerExtra.getData(this.ctx.tender.id, ['is_tp']);
|