Browse Source

bug fixed

zhangweicheng 7 years ago
parent
commit
9754b7e3c5

+ 1 - 1
modules/users/models/compilation_model.js

@@ -43,7 +43,7 @@ class CompilationModel extends BaseModel {
     async getCompilationById(id) {
         let condition = {_id: id, is_release: true};
         let compilationData = await this.findDataByCondition(condition);
-        if (compilationData.bill_valuation === undefined) {
+        if (!compilationData  || compilationData.bill_valuation === undefined) {
             return compilationData;
         }
 

+ 1 - 1
web/building_saas/pm/js/pm_newMain.js

@@ -2166,7 +2166,7 @@ function AddTender() {
         }
         // 一个项目里面,这两个文件必须得有,而界面又没有像费率、单价文件那样给出可选项。所以这里给出提示。
         if (!libs.artificial_lib)  throw '编办没有绑定人工系数标准文件';
-        if (!libs.program_lib)  throw '编办没有绑定计算程序标准文件';
+        //if (!libs.program_lib)  throw '编办没有绑定计算程序标准文件';
 
         let engineeringName = $('#tender-engineering').children("option:selected").text();
         let calcProgramName = $('#tender-calcProgram').children("option:selected").text();