material.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. 'use strict';
  2. /**
  3. * 材料调差
  4. *
  5. * @author ELlisran
  6. * @date 2019/10/20
  7. * @version
  8. */
  9. // 调差类型
  10. const t_type = [
  11. { text: '消耗量', value: 1 },
  12. { text: '费用', value: 2 },
  13. ];
  14. // 工料分类
  15. const m_type = [
  16. { text: '分类', value: 1 },
  17. { text: '钢材', value: 2 },
  18. { text: '地材', value: 3 },
  19. { text: '油料', value: 4 },
  20. { text: '水泥', value: 5 },
  21. { text: '半成品', value: 6 },
  22. { text: '砂石料', value: 8 },
  23. { text: '沥青', value: 9 },
  24. { text: '其他', value: 7 },
  25. ];
  26. // 指数调差类型
  27. const ex_type = [
  28. { text: '定值', value: 1 },
  29. { text: '变值', value: 2 },
  30. ];
  31. const ex_basic_text = {
  32. bqht: '所选期合同计量金额',
  33. bqbg: '所选期变更计量金额',
  34. bqwc: '所选期完成计量金额',
  35. zdy: '自定义金额',
  36. };
  37. // 金额
  38. const decimal = {
  39. up: 3, // 单价
  40. qty: 3, // 数量
  41. tp: 2, // 金额
  42. };
  43. const ex_calc = [
  44. {
  45. code: 'bqht',
  46. text: '所选期合同计量金额',
  47. value: '',
  48. select: false,
  49. },
  50. {
  51. code: 'bqbg',
  52. text: '所选期变更计量金额',
  53. value: '',
  54. select: false,
  55. },
  56. {
  57. code: 'bqwc',
  58. text: '所选期完成计量金额',
  59. value: '',
  60. select: true,
  61. },
  62. {
  63. code: 'zdy',
  64. text: '自定义金额',
  65. value: '',
  66. select: false,
  67. },
  68. ];
  69. const is_summary = {
  70. yes: 1,
  71. no: 2,
  72. };
  73. const qty_source = [
  74. {
  75. value: 1,
  76. name: '完成计量',
  77. key: 'gather_qty',
  78. },
  79. {
  80. value: 2,
  81. name: '合同计量',
  82. key: 'contract_qty',
  83. },
  84. {
  85. value: 3,
  86. name: '完成计量(含不计价变更)',
  87. key: 'gather_minus_qty',
  88. },
  89. ];
  90. const qty_source_value = {
  91. gather_qty: 1,
  92. contract_qty: 2,
  93. gather_minus_qty: 3,
  94. };
  95. module.exports = {
  96. t_type,
  97. m_type,
  98. ex_type,
  99. is_summary,
  100. ex_calc,
  101. ex_basic_text,
  102. decimal,
  103. qty_source,
  104. qty_source_value,
  105. };