|
@@ -336,7 +336,7 @@ class revisePriceCalc {
|
|
|
this.ctx.helper.assignRelaData(bills, [
|
|
|
{ data: curBillsData, fields: ['id', 'contract_qty', 'qc_qty', 'positive_qc_qty', 'negative_qc_qty', 'times', 'order', 'postil'], prefix: 'cur_', relaId: 'lid' },
|
|
|
{ data: preBillsData, fields: ['id', 'contract_qty', 'contract_tp', 'qc_qty', 'qc_tp', 'unit_price', 'positive_qc_qty', 'negative_qc_qty', 'positive_qc_tp', 'negative_qc_tp'], prefix: 'pre_', relaId: 'lid' },
|
|
|
- ]);
|
|
|
+ ], 'id', true);
|
|
|
const billsTree = new Ledger.billsTree(this.ctx, { id: 'ledger_id', pid: 'ledger_pid', order: 'order', level: 'level', rootId: -1, calcFields: [] });
|
|
|
billsTree.loadDatas(bills);
|
|
|
const stageChange = await this.ctx.service.stageChange.getFinalStageData(stage.tid, stage.id);
|
|
@@ -418,7 +418,7 @@ class revisePriceCalc {
|
|
|
// 加载树结构
|
|
|
this.ctx.helper.assignRelaData(bills, [
|
|
|
{ data: curBillsData, fields: ['id', 'contract_qty', 'qc_qty', 'positive_qc_qty', 'negative_qc_qty', 'times', 'order', 'postil'], prefix: 'cur_', relaId: 'lid' },
|
|
|
- ]);
|
|
|
+ ], 'id', true);
|
|
|
const billsTree = new Ledger.billsTree(this.ctx, { id: 'ledger_id', pid: 'ledger_pid', order: 'order', level: 'level', rootId: -1, calcFields: [] });
|
|
|
billsTree.loadDatas(bills);
|
|
|
const stageChange = await this.ctx.service.stageChange.getFinalStageData(stage.tid, stage.id);
|