material.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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: 7 },
  23. ];
  24. // 指数调差类型
  25. const ex_type = [
  26. { text: '定值', value: 1 },
  27. { text: '变值', value: 2 },
  28. ];
  29. const ex_basic_text = {
  30. bqht: '所选期合同计量金额',
  31. bqbg: '所选期变更计量金额',
  32. bqwc: '所选期完成计量金额',
  33. zdy: '自定义金额',
  34. };
  35. // 金额
  36. const decimal = {
  37. up: 3, // 单价
  38. qty: 3, // 数量
  39. tp: 2, // 金额
  40. };
  41. const ex_calc = [
  42. {
  43. code: 'bqht',
  44. text: '所选期合同计量金额',
  45. value: '',
  46. select: false,
  47. },
  48. {
  49. code: 'bqbg',
  50. text: '所选期变更计量金额',
  51. value: '',
  52. select: false,
  53. },
  54. {
  55. code: 'bqwc',
  56. text: '所选期完成计量金额',
  57. value: '',
  58. select: true,
  59. },
  60. {
  61. code: 'zdy',
  62. text: '自定义金额',
  63. value: '',
  64. select: false,
  65. },
  66. ];
  67. const is_summary = {
  68. yes: 1,
  69. no: 2,
  70. };
  71. module.exports = {
  72. t_type,
  73. m_type,
  74. ex_type,
  75. is_summary,
  76. ex_calc,
  77. ex_basic_text,
  78. decimal,
  79. };