|
@@ -170,7 +170,7 @@ module.exports = app => {
|
|
|
name: auditor.name, company: auditor.company, role: auditor.role, mobile: auditor.mobile, telephone: auditor.telephone,
|
|
|
});
|
|
|
await transaction.update(this.tableName, {
|
|
|
- id: delStage.tid, stage_count: preStage.order, stage_status: preStage.status,
|
|
|
+ id: delStage.tid, stage_count: preStage.order, stage_complete_count: preStage.order, stage_status: preStage.status,
|
|
|
stage_flow_cur_uid: 0, stage_flow_cur_info: '', stage_flow_cur_tp: '',
|
|
|
stage_flow_pre_uid: auditor.aid, stage_flow_pre_info: user_info, stage_flow_pre_tp: tp,
|
|
|
});
|
|
@@ -230,6 +230,7 @@ module.exports = app => {
|
|
|
info.status = status;
|
|
|
data.stage_flow_cur_info = JSON.stringify(info);
|
|
|
}
|
|
|
+ if (status === auditConst.stage.status.checked && !auditor) data.stage_complete_count = data.stage_count;
|
|
|
data.stage_flow_cur_tp = JSON.stringify(tp);
|
|
|
await transaction.update(this.tableName, data);
|
|
|
}
|