浏览代码

施工图预算工程量清单显示问题

MaiXinRong 3 年之前
父节点
当前提交
6af0c083f7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/controller/budget_controller.js

+ 1 - 1
app/controller/budget_controller.js

@@ -237,7 +237,7 @@ module.exports = app => {
         }
         async _getNeedGcl() {
             if (!this.ctx.params.btype) throw '参数错误';
-            const funRela = this.ctx.service.project.getFunRela(this.ctx.session.sessionProject.id);
+            const funRela = await this.ctx.service.project.getFunRela(this.ctx.session.sessionProject.id);
             return this.ctx.params.btype === 'yu' && !!funRela.needGcl;
         }