Browse Source

永久材料,审批通过后,数据相关

MaiXinRong 11 months ago
parent
commit
ed5450efff
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/public/js/se_yjcl.js
  2. 1 1
      app/service/stage_yjcl.js

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

@@ -266,7 +266,7 @@ $(document).ready(() => {
                     case 'arrive_time':
                     case 'source':
                     case 'bills_code':
-                    case 'position':
+                    case 'location':
                     case 'prepare_pos':
                         info.cancel = readOnly || node.add_sid !== stageId;
                         break;

+ 1 - 1
app/service/stage_yjcl.js

@@ -26,7 +26,7 @@ module.exports = app => {
 
         async getStageData(stage) {
             const data = await this.getAllDataByCondition({ where: { sid: stage.id } });
-            if (!stage.readOnly) return data;
+            if (!stage.readOnly || stage.status === auditConst.status.checked) return data;
 
             for (const d of data) {
                 const his = d.shistory ? JSON.parse(d.shistory) : [];