compleRation_coe.js 974 B

12345678910111213141516171819202122232425262728293031323334353637
  1. 'use strict';
  2. /**
  3. *
  4. *
  5. * @author Zhong
  6. * @date 2018/10/23
  7. * @version
  8. */
  9. /*
  10. * 补充定额库用户新增子目换算
  11. * 用户ID与费用定额ID绑定子目换算
  12. * */
  13. import mongoose from 'mongoose';
  14. const Schema = mongoose.Schema;
  15. const coeSchema = new Schema({
  16. coeType: String, // 系数类型
  17. gljCode: String, //要调整的人材机编码
  18. gljName: String,
  19. operator: String, // 运算符(*、+、-、=)
  20. amount: String, // 调整的量
  21. _id: false
  22. });
  23. const coeListSchema = new Schema({
  24. userId: String,
  25. compilationId: String,
  26. ID: String, // uuid
  27. serialNo: Number, //编号
  28. name: String, // 名称
  29. content: String, // 说明
  30. coes: [coeSchema]
  31. }, {versionKey: false});
  32. mongoose.model('complementary_ration_coe_list', coeListSchema, 'complementary_ration_coe_list');