|
@@ -243,6 +243,9 @@ module.exports = app => {
|
|
if (details && details.length > 0) {
|
|
if (details && details.length > 0) {
|
|
const detailInfo = details[0];
|
|
const detailInfo = details[0];
|
|
if (detailInfo.status === auditConst.status.uncheck || detailInfo.status === auditConst.status.checkNo) {
|
|
if (detailInfo.status === auditConst.status.uncheck || detailInfo.status === auditConst.status.checkNo) {
|
|
|
|
+ // 判断该人是否在审批流程里,是则移除并调整order
|
|
|
|
+ const result2 = await this.ctx.service.paymentDetailAudit.updateAuditByReport(transaction, detailInfo.id, detailInfo.times, uid);
|
|
|
|
+ // 更新为上报人
|
|
return await transaction.update(this.tableName, { id: detailInfo.id, uid });
|
|
return await transaction.update(this.tableName, { id: detailInfo.id, uid });
|
|
}
|
|
}
|
|
}
|
|
}
|