|
|
@@ -230,14 +230,14 @@ $(document).ready(() => {
|
|
|
|
|
|
treeSetting.calcFields = ['sum_total_price', 'sum_contract_tp', 'sum_qc_tp', 'sum_gather_tp', 'sum_end_contract_tp', 'sum_end_qc_tp', 'sum_end_gather_tp'];
|
|
|
for (let i = 1; i <= result.length; i++) {
|
|
|
- treeSetting.calcFields.push('total_price_' + i, 'contract_tp_' + i, 'qc_tp_' + i, 'gather_tp_' + i, 'end_contract_tp_' + i, 'end_qc_tp_' + i, 'end_gather_tp_' + i);
|
|
|
+ treeSetting.calcFields.push('total_price_' + i, 'contract_tp_' + i, 'qc_tp_' + i, 'gather_tp_' + i, 'end_contract_tp_' + i, 'end_qc_tp_' + i, 'end_gather_tp_' + i, 'pre_contract_tp_' + i, 'pre_qc_tp_' + i, 'pre_gather_tp_' + i);
|
|
|
}
|
|
|
|
|
|
const tenderTreeSetting = {
|
|
|
id: 'ledger_id', pid: 'ledger_pid', order: 'order', level: 'level',
|
|
|
rootId: -1,
|
|
|
keys: ['id', 'tender_id', 'ledger_id'],
|
|
|
- calcFields: ['total_price', 'contract_tp', 'qc_tp', 'gather_tp', 'end_contract_tp', 'end_qc_tp', 'end_gather_tp'],
|
|
|
+ calcFields: ['total_price', 'contract_tp', 'qc_tp', 'gather_tp', 'pre_contract_tp', 'pre_qc_tp', 'pre_gather_tp', 'end_contract_tp', 'end_qc_tp', 'end_gather_tp'],
|
|
|
calcFun: function(node) {
|
|
|
if (!node.children || node.children.length === 0) {
|
|
|
node.pre_gather_qty = ZhCalc.add(node.pre_contract_qty, node.pre_qc_qty);
|