compleRation_coe.js 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. 'use strict';
  2. /**
  3. *
  4. *
  5. * @author Zhong
  6. * @date 2018/10/23
  7. * @version
  8. */
  9. /*import mongoose from 'mongoose';
  10. const Schema = mongoose.Schema;
  11. const coeSchema = new Schema({
  12. coeType: String, // 系数类型,指作用范围:
  13. // 单个(如:111量0.001)、人工类、材料类、机械类、全部(如:定额×0.925)。
  14. gljID: Number, // 要调整的工料机ID(当coeType=0时有效)
  15. operator: String, // 运算符(*、+、-、=)
  16. amount: String, // 调整的量
  17. _id: false
  18. });
  19. const coeListSchema = new Schema({
  20. libID: Number, // 所属定额定ID
  21. ID: Number, // 系数ID(流水号ID)
  22. serialNo: Number, //编号
  23. name: String, // 名称
  24. content: String, // 说明
  25. coes: [coeSchema]
  26. }, {versionKey: false});
  27. mongoose.model('std_ration_lib_coe_list', coeListSchema, 'std_ration_lib_coe_list');*/