MaiXinRong 8 часов назад
Родитель
Сommit
1d31abb757
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      app/lib/rm/safe_stage.js
  2. 1 1
      app/service/stage_stash.js

+ 1 - 1
app/lib/rm/safe_stage.js

@@ -35,7 +35,7 @@ class rptMemChange extends RptMemBase {
     }
 
     async getSafeBills() {
-        const bills = this.ctx.detail.readOnly
+        const bills = this.ctx.safeStage.readOnly
             ? await this.ctx.service.safeStageBills.getReadData(this.ctx.safeStage)
             : await this.ctx.service.safeStageBills.getEditData(this.ctx.safeStage);
         const setting = {

+ 1 - 1
app/service/stage_stash.js

@@ -281,6 +281,7 @@ module.exports = app => {
         }
 
         async reCalcStashData(stage, data) {
+            const decimal = this.ctx.tender.info.decimal;
             const correct = this.ctx.subProject.page_show.correctCalcContractTp;
             const calcContractTp = function(helper, info, stageBills, bills) {
                 if (info.calc_type === 'tp') {
@@ -303,7 +304,6 @@ module.exports = app => {
                     }
                 }
             };
-            const decimal = this.ctx.tender.info.decimal;
             const insertBillsData = [], insertPosData = [], insertChangeData = [];
             const settleStatus = this.ctx.service.settle.settleStatus;