material.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. module.exports = {
  74. t_type,
  75. m_type,
  76. ex_type,
  77. is_summary,
  78. ex_calc,
  79. ex_basic_text,
  80. decimal,
  81. };