|
@@ -943,8 +943,9 @@ module.exports = app => {
|
|
|
return { groupName: item.name, groupList };
|
|
|
});
|
|
|
// 获取固定审批流 or 固定终审
|
|
|
- for (const sp of shenpiConst.sp_lc) {
|
|
|
- sp.status = ctx.tender.info.shenpi ? ctx.tender.info.shenpi[sp.code] : shenpiConst.sp_status.sqspr;
|
|
|
+ const spConst = ctx.helper._.cloneDeep(shenpiConst);
|
|
|
+ for (const sp of spConst.sp_lc) {
|
|
|
+ sp.status = ctx.tender.info.shenpi ? ctx.tender.info.shenpi[sp.code] : spConst.sp_status.sqspr;
|
|
|
if (sp.status === shenpiConst.sp_status.gdspl) {
|
|
|
sp.groupList = await ctx.service.shenpiGroup.getGroupList(ctx.tender.id, sp.type) || [];
|
|
|
if (sp.groupList && sp.groupList.length > 0) {
|
|
@@ -975,7 +976,7 @@ module.exports = app => {
|
|
|
const cooperationNum = await ctx.service.ledgerCooperation.count({ tid: ctx.tender.id, status: 1 });
|
|
|
|
|
|
const renderData = {
|
|
|
- shenpi: shenpiConst,
|
|
|
+ shenpi: spConst,
|
|
|
accountList,
|
|
|
accountGroup: accountGroupList,
|
|
|
tenders,
|