Browse Source

修复终审因重新审批及修订问题导致页面展示不更新问题

ellisran 1 year ago
parent
commit
51461d3f46

+ 2 - 0
app/service/change.js

@@ -1630,6 +1630,7 @@ module.exports = app => {
                     tp_decimal: null,
                     up_decimal: null,
                     is_revise: 1,
+                    final_auditor_str: '',
                 };
                 const options = {
                     where: {
@@ -1797,6 +1798,7 @@ module.exports = app => {
                     cin_time: Date.parse(time) / 1000,
                     sin_time: null,
                     total_price,
+                    final_auditor_str: '',
                 };
                 const options = {
                     where: {

+ 2 - 0
app/service/change_apply_audit.js

@@ -963,6 +963,7 @@ module.exports = app => {
                     decimal: null,
                     status: auditConst.status.revise,
                     times: change.times + 1,
+                    final_auditor_str: '',
                 });
                 await transaction.commit();
                 result = true;
@@ -1077,6 +1078,7 @@ module.exports = app => {
                     notice_code: null,
                     notice_uid: null,
                     decimal: null,
+                    final_auditor_str: '',
                 });
                 //  检查三方特殊推送
                 await this.ctx.service.specMsg.addChangeApplyMsg(transaction, this.ctx.session.sessionProject.id, this.ctx.change, pushOperate.change_apply.flow);

+ 2 - 0
app/service/change_plan_audit.js

@@ -1040,6 +1040,7 @@ module.exports = app => {
                     decimal: null,
                     status: auditConst.status.revise,
                     times: change.times + 1,
+                    final_auditor_str: '',
                 });
 
                 await transaction.commit();
@@ -1151,6 +1152,7 @@ module.exports = app => {
                 await transaction.update(this.ctx.service.changePlan.tableName, {
                     id: change.id,
                     status: auditConst.status.checking,
+                    final_auditor_str: '',
                 });
                 // 清除上一人的值并调整spamount值
                 const updateList = [];

+ 2 - 0
app/service/change_project_audit.js

@@ -1101,6 +1101,7 @@ module.exports = app => {
                     id: change.id,
                     status: auditConst.status.revise,
                     times: change.times + 1,
+                    final_auditor_str: '',
                 });
 
                 await transaction.commit();
@@ -1212,6 +1213,7 @@ module.exports = app => {
                 await transaction.update(this.ctx.service.changeProject.tableName, {
                     id: change.id,
                     status: auditConst.status.checking,
+                    final_auditor_str: '',
                 });
                 //  检查三方特殊推送
                 await this.ctx.service.specMsg.addChangeProjectMsg(transaction, this.ctx.session.sessionProject.id, this.ctx.change, pushOperate.change_project.flow);