@@ -180,7 +180,7 @@ $(function () {
const select_ledger = _.filter(ledgerTree.nodes, { 'is_select': 1 });
console.log(select_ledger);
if (select_ledger.length === 0) {
- toastr.error('请选择清单项');
+ toastr.error('请至少勾选一个节点');
return;
}
$(this).attr('disabled', true);
@@ -22,6 +22,9 @@ $(function () {
level: 'level',
rootId: -1,
fullPath: 'full_path',
+ calcFun: function (node) {
+ node.dgn_price = ZhCalc.round(ZhCalc.div(node.total_price, node.dgn_qty1), 2);
+ }
//treeCacheKey: 'ledger_bills_fold' + '_' + getTenderId(),
// markFoldKey: 'bills-fold',
// markFoldSubKey: window.location.pathname.split('/')[2],
calcFields: ['plan_tp', 'next_plan_tp', 'end_plan_tp', 'year_plan_tp', 'total_price'],
};
const ledgerTree = createNewPathTree('filter', treeSetting);