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