Explorar o código

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

MaiXinRong %!s(int64=3) %!d(string=hai) anos
pai
achega
6af0c083f7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
         }