|
@@ -98,6 +98,9 @@ module.exports = app => {
|
|
|
});
|
|
|
// 审批人数据锁定
|
|
|
const locking = await this.getAllDataByCondition({ where: { sid: stage.id, times: stage.curTimes, user_id: uid, confirm: 1 } });
|
|
|
+ locking.forEach(x => {
|
|
|
+ x.locked_ledger_id = x.ass_ledger_id.split(',');
|
|
|
+ });
|
|
|
if (locking.length > 0) {
|
|
|
const updateLock = locking.map(x => { return { id: x.id, locked: 1 }; });
|
|
|
await transaction.updateRows(this.tableName, updateLock);
|