|
@@ -1115,7 +1115,7 @@ module.exports = app => {
|
|
|
const checkCancelAuditors = [], checkingAuditors = [];
|
|
|
stage.preAuditors.forEach(x => {
|
|
|
checkCancelAuditors.push({
|
|
|
- tid: x.tid, sid: x.sid, aid: x.aid,
|
|
|
+ tid: stage.tid, sid: stage.id, aid: x.aid,
|
|
|
times: x.times, order: x.order + 1,
|
|
|
status: x.aid === selfAuditor.aid ? auditConst.status.checkCancel : auditConst.status.checkSkip,
|
|
|
begin_time: time, end_time: time, opinion: '',
|
|
@@ -1124,7 +1124,7 @@ module.exports = app => {
|
|
|
});
|
|
|
stage.preAuditors.forEach(x => {
|
|
|
checkingAuditors.push({
|
|
|
- tid: x.tid, sid: x.sid, aid: x.aid,
|
|
|
+ tid: stage.tid, sid: stage.id, aid: x.aid,
|
|
|
times: x.times, order: x.order + 2,
|
|
|
status: auditConst.status.checking,
|
|
|
begin_time: time, end_time: time, opinion: '',
|
|
@@ -1145,7 +1145,7 @@ module.exports = app => {
|
|
|
yf_tp: yfPay.tp,
|
|
|
sf_tp: sfPay.tp,
|
|
|
};
|
|
|
- this.ctx.stage.tp_history.push({ times, order: selfAuditor.order + 1, ...stageTp });
|
|
|
+ this.ctx.stage.tp_history.push({ times: stage.times, order: selfAuditor.order + 1, ...stageTp });
|
|
|
// 同步 期信息
|
|
|
await transaction.update(this.ctx.service.stage.tableName, {
|
|
|
id: stage.id,
|
|
@@ -1210,7 +1210,7 @@ module.exports = app => {
|
|
|
const newAuditors = [];
|
|
|
stage.preAuditors.forEach(x => {
|
|
|
newAuditors.push({
|
|
|
- tid: x.tid, sid: x.sid, aid: x.aid,
|
|
|
+ tid: stage.tid, sid: stage.id, aid: x.aid,
|
|
|
times: x.times, order: x.order + 1,
|
|
|
status: x.aid === selfAuditor.aid ? auditConst.status.checkCancel : auditConst.status.checkSkip,
|
|
|
begin_time: time, end_time: time, opinion: '',
|