|
@@ -618,9 +618,9 @@ module.exports = app => {
|
|
|
if (!userCompany) {
|
|
|
throw '请联系管理员添加用户所在单位信息';
|
|
|
}
|
|
|
- const userOrderList = await ctx.service.financialPayStage.getUserOrderList(ctx.subProject.id, userCompany ? userCompany.id : 0);
|
|
|
- const userCompanyList = await ctx.service.financialPayStage.getUserCompanyList(ctx.subProject.id, userCompany ? userCompany.id : 0, unitList);
|
|
|
const companyInfo = company ? ctx.helper._.find(unitList, { name: company }) : null;
|
|
|
+ const userOrderList = await ctx.service.financialPayStage.getUserOrderList(ctx.subProject.id, userCompany ? userCompany.id : 0, companyInfo ? companyInfo.id : null);
|
|
|
+ const userCompanyList = await ctx.service.financialPayStage.getUserCompanyList(ctx.subProject.id, userCompany ? userCompany.id : 0, unitList, qi);
|
|
|
const payList = await ctx.service.financialPayStage.getListByStatus(ctx.subProject.id, companyInfo ? companyInfo.id : null, userCompany ? userCompany.id : 0, qi);
|
|
|
const total = await ctx.service.financialPayStage.getCountByStatus(ctx.subProject.id, companyInfo ? companyInfo.id : null, userCompany ? userCompany.id : 0, qi);
|
|
|
// 分页相关
|
|
@@ -1026,12 +1026,12 @@ module.exports = app => {
|
|
|
if (!userCompany) {
|
|
|
throw '请联系管理员添加用户所在单位信息';
|
|
|
}
|
|
|
- const userOrderList = await ctx.service.financialPayStage.getUserOrderList(ctx.subProject.id, userCompany ? userCompany.id : 0);
|
|
|
- const userCompanyList = await ctx.service.financialPayStage.getUserCompanyList(ctx.subProject.id, userCompany ? userCompany.id : 0, unitList);
|
|
|
+ const companyInfo = company ? ctx.helper._.find(unitList, { name: company }) : null;
|
|
|
+ const userCompanyList = await ctx.service.financialPayStage.getUserCompanyList(ctx.subProject.id, userCompany ? userCompany.id : 0, unitList, qi);
|
|
|
+ const userOrderList = await ctx.service.financialPayStage.getUserOrderList(ctx.subProject.id, userCompany ? userCompany.id : 0, companyInfo ? companyInfo.id : null);
|
|
|
const userTenderList = await ctx.service.financialPay.getUserTenderList(ctx.subProject.id, ctx.session.sessionUser.accountId);
|
|
|
let fpsidList = [];
|
|
|
if (company || qi) {
|
|
|
- const companyInfo = company ? ctx.helper._.find(unitList, { name: company }) : null;
|
|
|
const fpstageList = await ctx.service.financialPayStage.getListByStatus(ctx.subProject.id, companyInfo ? companyInfo.id : null, userCompany ? userCompany.id : 0, qi, 0);
|
|
|
fpsidList = ctx.helper._.map(fpstageList, 'id');
|
|
|
}
|