ソースを参照

fix: 合同管理报表签名缺单位章

Tony Kang 1 週間 前
コミット
84407792b9
1 ファイル変更5 行追加0 行削除
  1. 5 0
      app/controller/report_controller.js

+ 5 - 0
app/controller/report_controller.js

@@ -510,6 +510,7 @@ module.exports = app => {
                 const roleList = await ctx.service.signatureRole.getSignatureRolesByTenderId(tender.id);
                 const usedList = await ctx.service.signatureUsed.getSignatureUsedByTenderId(tender.id);
                 const prjAccList = await this._getPrjAccList(ctx, pageShow);
+                this._resetAccCompanySignPath(ctx, prjAccList);
                 // 分类列表 todo 支付审批 目前没有所属子项目,自定义分类暂无法按所属子项目取值
                 const categoryData = await this.ctx.service.category.getAllCategory(this.ctx.subProject.id);
                 // 获取用户权限
@@ -649,6 +650,7 @@ module.exports = app => {
                 const roleList = await ctx.service.signatureRole.getSignatureRolesByTenderId(tender.id);
                 const usedList = await ctx.service.signatureUsed.getSignatureUsedByTenderId(tender.id);
                 const prjAccList = await this._getPrjAccList(ctx, pageShow);
+                this._resetAccCompanySignPath(ctx, prjAccList);
                 // 分类列表 todo 支付审批 目前没有所属子项目,自定义分类暂无法按所属子项目取值
                 const categoryData = await this.ctx.service.category.getAllCategory(this.ctx.subProject.id);
                 // 获取用户权限
@@ -781,6 +783,7 @@ module.exports = app => {
                 const roleList = [];
                 const usedList = [];
                 const prjAccList = await this._getPrjAccList(ctx, pageShow);
+                this._resetAccCompanySignPath(ctx, prjAccList);
                 // 分类列表
                 const categoryData = await this.ctx.service.category.getAllCategory(ctx.subProject);
                 // 获取用户权限
@@ -987,6 +990,7 @@ module.exports = app => {
                 const roleList = [];
                 const usedList = await ctx.service.signatureUsed.getSignatureUsedByTenderId(tenderId);
                 const prjAccList = await this._getPrjAccList(ctx, pageShow);
+                this._resetAccCompanySignPath(ctx, prjAccList);
                 // 分类列表
                 const categoryData = await this.ctx.service.category.getAllCategory(ctx.subProject);
                 // 获取用户权限
@@ -1171,6 +1175,7 @@ module.exports = app => {
                 const usedList = await ctx.service.signatureUsed.getSignatureUsedByTenderId(tenderId);
                 const isAdmin = ctx.session.sessionUser.is_admin;
                 const prjAccList = await this._getPrjAccList(ctx, pageShow);
+                this._resetAccCompanySignPath(ctx, prjAccList);
                 for (const prjAcc of prjAccList) {
                     prjAcc.account_group = prjAcc.company;
                 }