|
@@ -55,7 +55,7 @@ module.exports = app => {
|
|
rootId: -1,
|
|
rootId: -1,
|
|
keys: ['id', 'tender_id', 'ledger_id'],
|
|
keys: ['id', 'tender_id', 'ledger_id'],
|
|
stageId: 'id',
|
|
stageId: 'id',
|
|
- calcFields: ['deal_tp', 'total_price', 'contract_tp', 'qc_tp', 'gather_tp'],
|
|
|
|
|
|
+ calcFields: ['deal_tp', 'total_price', 'contract_tp', 'qc_tp', 'gather_tp', 'pre_contract_tp', 'pre_qc_tp', 'pre_gather_tp'],
|
|
calc: function (node) {
|
|
calc: function (node) {
|
|
if (node.children && node.children.length === 0) {
|
|
if (node.children && node.children.length === 0) {
|
|
node.pre_gather_qty = self.ctx.helper.add(node.pre_contract_qty, node.pre_qc_qty);
|
|
node.pre_gather_qty = self.ctx.helper.add(node.pre_contract_qty, node.pre_qc_qty);
|