MaiXinRong 3 年之前
父節點
當前提交
21f23aa9ea
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      app/base/base_budget_service.js
  2. 2 2
      app/lib/analysis_excel.js

+ 1 - 1
app/base/base_budget_service.js

@@ -300,7 +300,7 @@ class BaseBudget extends TreeService {
                         calcData.unit_price = 0;
                         calcData.total_price = helper.round(row.total_price, this.ctx.budget.decimal.tp);
                     }
-                    updateData = this._filterUpdateInvalidField(updateNode.id, this._.default(row, calcData));
+                    updateData = this._filterUpdateInvalidField(updateNode.id, this._.defaults(row, calcData));
                 } else {
                     updateData = this._filterUpdateInvalidField(updateNode.id, row);
                 }

+ 2 - 2
app/lib/analysis_excel.js

@@ -491,9 +491,9 @@ class AnalysisExcelTree {
             this.precision = ctx.tender.info.precision;
         } else if (ctx.budget) {
             this.mid = ctx.budget.id;
-            this.decimal = { up: 2, tp: 2};
+            this.decimal = ctx.budget.decimal;
             this.precision = {
-                other: { value: 2 },
+                other: { value: ctx.budget.decimal.qty },
             };
         }
         this.colsDef = null;