|
@@ -510,6 +510,9 @@ module.exports = app => {
|
|
|
const rptProject = await ctx.service.rptTreeNode.getDataByCondition({ pid: ctx.session.sessionProject.id, name: '01.支付审批报表' });
|
|
|
const rptProjectList = rptProject && rptProject.items ? JSON.parse(rptProject.items) : [];
|
|
|
const tenderRptList = await ctx.service.paymentTenderRpt.getProcessList(ctx.tender.id);
|
|
|
+ if (tenderRptList === -1) {
|
|
|
+ throw '未配置审批模块,请联系管理员处理';
|
|
|
+ }
|
|
|
return await ctx.service.paymentTenderRpt.checkAndUpdateList(tenderRptList, rptProjectList, formProcess);
|
|
|
}
|
|
|
return await ctx.service.paymentTenderRpt.getList(ctx.tender.id, ctx.session.sessionUser.accountId);
|
|
@@ -597,8 +600,11 @@ module.exports = app => {
|
|
|
async rptList(ctx) {
|
|
|
try {
|
|
|
const tenderRptList = await this._returnRptProjectList(ctx);
|
|
|
+ if (tenderRptList === -1) {
|
|
|
+ throw '未配置审批模块,请联系管理员处理';
|
|
|
+ }
|
|
|
if (tenderRptList.length === 0) {
|
|
|
- throw '当前报表表单您无权打开或还没进行模块或表单审批设置';
|
|
|
+ throw '未配置表单设置,请联系管理员处理';
|
|
|
}
|
|
|
for (const tr of tenderRptList) {
|
|
|
tr.have_notice = await ctx.service.paymentDetail.haveNotice2TenderRpt(tr.id, ctx.session.sessionUser.accountId);
|