|
@@ -544,8 +544,6 @@ module.exports = app => {
|
|
|
|
|
|
// 根据auditStatus获取审批人列表
|
|
// 根据auditStatus获取审批人列表
|
|
const auditList = await ctx.service.changeAudit.getListByStatus(change, auditStatus);
|
|
const auditList = await ctx.service.changeAudit.getListByStatus(change, auditStatus);
|
|
- // 获取已选清单
|
|
|
|
- let changeList = await ctx.service.changeAuditList.getList(change.cid);
|
|
|
|
|
|
|
|
// 获取用户人验证手机号
|
|
// 获取用户人验证手机号
|
|
const pa = await ctx.service.projectAccount.getDataById(ctx.session.sessionUser.accountId);
|
|
const pa = await ctx.service.projectAccount.getDataById(ctx.session.sessionUser.accountId);
|
|
@@ -561,7 +559,6 @@ module.exports = app => {
|
|
attList,
|
|
attList,
|
|
whiteList,
|
|
whiteList,
|
|
auditList,
|
|
auditList,
|
|
- changeList,
|
|
|
|
tpUnit: ctx.tender.info.decimal.tp,
|
|
tpUnit: ctx.tender.info.decimal.tp,
|
|
upUnit: ctx.tender.info.decimal.up,
|
|
upUnit: ctx.tender.info.decimal.up,
|
|
authMobile: auth_mobile,
|
|
authMobile: auth_mobile,
|
|
@@ -610,6 +607,9 @@ module.exports = app => {
|
|
// 获取公司列表
|
|
// 获取公司列表
|
|
const companyList = await ctx.service.changeCompany.getAllDataByCondition({ where: { tid: ctx.tender.id } });
|
|
const companyList = await ctx.service.changeCompany.getAllDataByCondition({ where: { tid: ctx.tender.id } });
|
|
renderData.companyList = companyList;
|
|
renderData.companyList = companyList;
|
|
|
|
+ // 获取已选清单
|
|
|
|
+ const changeList = await ctx.service.changeAuditList.getList(change.cid);
|
|
|
|
+ renderData.changeList = changeList;
|
|
} else if (auditStatus === 3 || auditStatus === 4 || auditStatus === 5 || auditStatus === 7) {
|
|
} else if (auditStatus === 3 || auditStatus === 4 || auditStatus === 5 || auditStatus === 7) {
|
|
// 展示页左侧审批流程列表和清单审批列表数据
|
|
// 展示页左侧审批流程列表和清单审批列表数据
|
|
const times = change.status === audit.flow.status.back ?
|
|
const times = change.status === audit.flow.status.back ?
|
|
@@ -636,6 +636,9 @@ module.exports = app => {
|
|
}
|
|
}
|
|
renderData.auditList3 = auditList3;
|
|
renderData.auditList3 = auditList3;
|
|
|
|
|
|
|
|
+ // 获取已选清单
|
|
|
|
+ let changeList = await ctx.service.changeAuditList.getAllDataByCondition({ where: { cid: ctx.params.cid } });
|
|
|
|
+
|
|
changeList = JSON.parse(JSON.stringify(changeList.sort())).sort().sort();
|
|
changeList = JSON.parse(JSON.stringify(changeList.sort())).sort().sort();
|
|
for (const cl of changeList) {
|
|
for (const cl of changeList) {
|
|
const audit_amount = cl.audit_amount !== null && cl.audit_amount !== '' ? cl.audit_amount.split(',') : '';
|
|
const audit_amount = cl.audit_amount !== null && cl.audit_amount !== '' ? cl.audit_amount.split(',') : '';
|
|
@@ -681,6 +684,9 @@ module.exports = app => {
|
|
}
|
|
}
|
|
renderData.auditList4 = auditList4;
|
|
renderData.auditList4 = auditList4;
|
|
|
|
|
|
|
|
+ // 获取已选清单
|
|
|
|
+ let changeList = await ctx.service.changeAuditList.getAllDataByCondition({ where: { cid: ctx.params.cid } });
|
|
|
|
+
|
|
changeList = JSON.parse(JSON.stringify(changeList.sort())).sort().sort();
|
|
changeList = JSON.parse(JSON.stringify(changeList.sort())).sort().sort();
|
|
for (const cl of changeList) {
|
|
for (const cl of changeList) {
|
|
const audit_amount = cl.audit_amount !== null && cl.audit_amount !== '' ? cl.audit_amount.split(',') : '';
|
|
const audit_amount = cl.audit_amount !== null && cl.audit_amount !== '' ? cl.audit_amount.split(',') : '';
|