|
@@ -0,0 +1,31 @@
|
|
|
+'use strict';
|
|
|
+
|
|
|
+/**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * @author Zhong
|
|
|
+ * @date 2018/10/23
|
|
|
+ * @version
|
|
|
+ */
|
|
|
+
|
|
|
+/*import mongoose from 'mongoose';
|
|
|
+const Schema = mongoose.Schema;
|
|
|
+const coeSchema = new Schema({
|
|
|
+ coeType: String, // 系数类型,指作用范围:
|
|
|
+ // 单个(如:111量0.001)、人工类、材料类、机械类、全部(如:定额×0.925)。
|
|
|
+ gljID: Number, // 要调整的工料机ID(当coeType=0时有效)
|
|
|
+ operator: String, // 运算符(*、+、-、=)
|
|
|
+ amount: String, // 调整的量
|
|
|
+ _id: false
|
|
|
+});
|
|
|
+
|
|
|
+const coeListSchema = new Schema({
|
|
|
+ libID: Number, // 所属定额定ID
|
|
|
+ ID: Number, // 系数ID(流水号ID)
|
|
|
+ serialNo: Number, //编号
|
|
|
+ name: String, // 名称
|
|
|
+ content: String, // 说明
|
|
|
+ coes: [coeSchema]
|
|
|
+}, {versionKey: false});
|
|
|
+
|
|
|
+mongoose.model('std_ration_lib_coe_list', coeListSchema, 'std_ration_lib_coe_list');*/
|