|
@@ -82,6 +82,36 @@ let rationAssItemSchema = new Schema({
|
|
|
maxValue: String
|
|
|
}, { _id: false });
|
|
|
|
|
|
+//安装增加费-费用规则
|
|
|
+let feeRuleSchema = new Schema({
|
|
|
+ ID: String,
|
|
|
+ sectionId: String, //分册章节id
|
|
|
+ code: String,
|
|
|
+ rule: String,
|
|
|
+ base: String,
|
|
|
+ feeRate: Number,
|
|
|
+ labour: Number,
|
|
|
+ material: Number,
|
|
|
+ machine: Number
|
|
|
+});
|
|
|
+
|
|
|
+//安装增加费-分册章节
|
|
|
+let installSectionSchema = new Schema({
|
|
|
+ ID: String,
|
|
|
+ feeItemId: String,
|
|
|
+ name: String,
|
|
|
+ feeRule: [feeRuleSchema]
|
|
|
+});
|
|
|
+
|
|
|
+//安装增加费-费用项
|
|
|
+let installFeeItemSchema = new Schema({
|
|
|
+ ID: String,
|
|
|
+ feeItem: String, //费用项
|
|
|
+ feeType: String, //费用类型
|
|
|
+ position: String, //记取位置
|
|
|
+ section: []
|
|
|
+});
|
|
|
+
|
|
|
//定额
|
|
|
var rationItemSchema = new Schema({
|
|
|
ID:Number,
|
|
@@ -132,7 +162,9 @@ let coeListModel = db.model("std_ration_lib_coe_list",coeListSchema, "std_ration
|
|
|
let rationRepository = db.model("std_ration_lib_map", RepositoryMapSchema, "std_ration_lib_map");
|
|
|
let rationChapterTreeModel = db.model("std_ration_lib_ration_chapter_trees", rationChapterTreeSchema, "std_ration_lib_ration_chapter_trees");
|
|
|
let rationItemModel = db.model("std_ration_lib_ration_items",rationItemSchema, "std_ration_lib_ration_items");
|
|
|
+let installSectionModel = db.model("std_ration_lib_installationSection", installSectionSchema, "std_ration_lib_installationSection")
|
|
|
+let installFeeItemModel = db.model("std_ration_lib_installation", installFeeItemSchema, "std_ration_lib_installation");
|
|
|
//补充定额
|
|
|
let compleRationModel = db.model('complementary_ration_items', compleRationSchema, 'complementary_ration_items');
|
|
|
|
|
|
-export{coeListModel, rationRepository, rationChapterTreeModel, rationItemModel, compleRationModel};
|
|
|
+export{coeListModel, rationRepository, rationChapterTreeModel, rationItemModel, installFeeItemModel, installSectionModel, compleRationModel};
|