Browse Source

修复bug

laiguoran 4 years ago
parent
commit
46ce021735

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

@@ -193,7 +193,7 @@ $(document).ready(() => {
                     // 判断是否大于等于限制值,否则无法更改
                     const usedInfo = _.find(changeUsedData, { id: select.id });
                     if (usedInfo && validText < usedInfo.used_qty) {
-                        toastr.error('清单变更数值必须大于等于已调用值');
+                        toastr.error('清单变更数值必须大于等于已调用值 ' + usedInfo.used_qty);
                         SpreadJsObj.reLoadRowData(info.sheet, info.row);
                         changeSpreadObj.setRowValueAndSum(select, info.row, info.col);
                         return;

+ 2 - 2
app/service/stage_bonus.js

@@ -36,7 +36,7 @@ module.exports = app => {
 
         async getStageData(sid) {
             const data = await this.getAllDataByCondition({where: { sid: sid }});
-            if (this.ctx.stage && this.ctx.stage.readOnly && this.ctx.stage.status !== auditConst.status.checked) {
+            if (this.ctx.stage && this.ctx.stage.readOnly && !this.ctx.tender.isTourist && this.ctx.stage.status !== auditConst.status.checked) {
                 for (const d of data) {
                     const his = d.shistory ? JSON.parse(d.shistory) : [];
                     const h = this.ctx.helper._.find(his, {
@@ -217,4 +217,4 @@ module.exports = app => {
     }
 
     return StageBonus;
-};
+};

+ 1 - 1
app/service/stage_jgcl.js

@@ -24,7 +24,7 @@ module.exports = app => {
 
         async getStageData(stage) {
             const data = await this.getAllDataByCondition({where: { sid: stage.id }});
-            if (stage && stage.readOnly && stage.status !== auditConst.status.checked) {
+            if (stage && stage.readOnly && !this.ctx.tender.isTourist && stage.status !== auditConst.status.checked) {
                 for (const d of data) {
                     const his = d.shistory ? JSON.parse(d.shistory) : [];
                     const h = this.ctx.helper._.find(his, {

+ 1 - 1
app/service/stage_other.js

@@ -24,7 +24,7 @@ module.exports = app => {
 
         async getStageData(stage) {
             const data = await this.getAllDataByCondition({where: { sid: stage.id }});
-            if (stage && stage.readOnly && stage.status !== auditConst.status.checked) {
+            if (stage && stage.readOnly && !this.ctx.tender.isTourist && stage.status !== auditConst.status.checked) {
                 for (const d of data) {
                     const his = d.shistory ? JSON.parse(d.shistory) : [];
                     const h = this.ctx.helper._.find(his, {