|
|
@@ -1137,7 +1137,8 @@ module.exports = app => {
|
|
|
const stage_order = -1;
|
|
|
const sorder = -1;
|
|
|
const stage_times = -1;
|
|
|
- const stage_status = -1;
|
|
|
+ // const stage_status = -1;
|
|
|
+ const stage_status = 3; // 目前强制为通过,等后续审核逻辑完善后再改
|
|
|
const project_id = ctx.contract.project_id;
|
|
|
// const { treeNodes, custCfg, commonArrs } = await this._createNodes(ctx, sourceTypeConst.sourceType.contract, project_id);
|
|
|
const { treeNodes, custCfg, commonArrs, allTreeItems, allIndivTreeItems } = await this._createNodes(ctx, sourceTypeConst.sourceType.contract, project_id);
|
|
|
@@ -1447,6 +1448,14 @@ module.exports = app => {
|
|
|
}
|
|
|
});
|
|
|
break;
|
|
|
+ case -600: // 合同
|
|
|
+ // const options = { spid: params.sp_id };
|
|
|
+ // const contractAudit = await ctx.service.contractAudit.getList(options);
|
|
|
+ // contractAudit.forEach(audit => {
|
|
|
+ // stgAudit.push({ aid: audit.uid, status: audit.audit_status, opinion: audit.opinion, end_time: audit.audit_time, order: audit.audit_order });
|
|
|
+ // });
|
|
|
+ // 暂未实现(2026-03-23)
|
|
|
+ break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
@@ -1545,7 +1554,7 @@ module.exports = app => {
|
|
|
const payment = paymentDetailList[0];
|
|
|
stageList.push({ id: params.stage_id, user_id: payment.uid, status: payment.status });
|
|
|
}
|
|
|
- } else if ([-150, -300, -301, -302, -303, -400, -500].includes(params.stage_id)) {
|
|
|
+ } else if ([-150, -300, -301, -302, -303, -400, -500, -600].includes(params.stage_id)) {
|
|
|
// 变更令、预付款、材差相关的
|
|
|
stgAudit = [];
|
|
|
stgAuditForOrg = [];
|
|
|
@@ -1679,7 +1688,7 @@ module.exports = app => {
|
|
|
const payment = paymentDetailList[0];
|
|
|
stageList.push({ id: params.stage_id, user_id: payment.uid, status: payment.status });
|
|
|
}
|
|
|
- } else if ([-150, -300, -301, -302, -303, -400, -500].includes(params.stage_id)) {
|
|
|
+ } else if ([-150, -300, -301, -302, -303, -400, -500, -600].includes(params.stage_id)) {
|
|
|
stgAudit = [];
|
|
|
stageFlow = [];
|
|
|
await this._commonGetAudit(ctx, params, stgAudit, stageFlow);
|