laiguoran пре 4 година
родитељ
комит
ec2c49118b

+ 1 - 1
app/public/js/schedule_ledger.js

@@ -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);

+ 3 - 0
app/public/js/schedule_plan.js

@@ -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],

+ 3 - 0
app/public/js/schedule_stage_gcl.js

@@ -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],

+ 3 - 0
app/public/js/schedule_stage_tp.js

@@ -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);
+        }
         calcFields: ['plan_tp', 'next_plan_tp', 'end_plan_tp', 'year_plan_tp', 'total_price'],
     };
     const ledgerTree = createNewPathTree('filter', treeSetting);