|
@@ -15,6 +15,7 @@ import {default as EngineeringConst, List as EngineeringList} from "../../common
|
|
|
import BillsTemplateModel from "../models/bills_template_model";
|
|
|
import {default as BillsFixedFlagConst, List as BillsFixedFlagList} from "../../common/const/bills_fixed.js";
|
|
|
import EngineeringLibModel from "../models/engineering_lib_model";
|
|
|
+import STDLabourCoesModel from "../../common/std/std_labour_coes_model";
|
|
|
|
|
|
class CompilationController extends BaseController {
|
|
|
|
|
@@ -204,8 +205,9 @@ class CompilationController extends BaseController {
|
|
|
let stdFeeRateLibsModel = new STDFeeRateLibsModel();
|
|
|
feeRateList = await stdFeeRateLibsModel.getFeeRateList();
|
|
|
|
|
|
- // 获取人工系数标准库 @todo 更改为数据库获取
|
|
|
- artificialCoefficientList = [{name: '2006标准', id: 1}];
|
|
|
+ // 获取人工系数标准库
|
|
|
+ let stdLabourCoesModel = new STDLabourCoesModel();
|
|
|
+ artificialCoefficientList = await stdLabourCoesModel.getLabourCoesList();
|
|
|
|
|
|
// 获取对应的计价规则数据
|
|
|
[valuationData, valuationList] = await compilationModel.getValuation(selectedCompilation._id, valuationId, section);
|