tender_info.js 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. 'use strict';
  2. /**
  3. *
  4. *
  5. * @author Mai
  6. * @date
  7. * @version
  8. */
  9. const parseInfo = ['deal_info', 'construction_unit', 'tech_param', 'decimal', 'precision', 'deal_param', 'display', 'pay_account', 'shenpi', 'bid_info', 'ledger_check', 'fun_rela'];
  10. const arrayInfo = ['chapter'];
  11. const defaultInfo = {
  12. // 合同信息
  13. deal_info: {
  14. buildName: '',
  15. dealCode: '',
  16. dealName: '',
  17. projectType: '',
  18. dealType: '',
  19. finalCode: '',
  20. budgetApprovalCode: '',
  21. },
  22. // 参建单位
  23. construction_unit: {
  24. build: {
  25. company: '',
  26. corporation: '',
  27. date: '',
  28. },
  29. contract1: {
  30. company: '',
  31. corporation: '',
  32. date: '',
  33. management: '',
  34. },
  35. contract2: {
  36. company: '',
  37. corporation: '',
  38. date: '',
  39. },
  40. supervision1: {
  41. company: '',
  42. corporation: '',
  43. date: '',
  44. },
  45. supervision2: {
  46. company: '',
  47. corporation: '',
  48. date: '',
  49. },
  50. detect: {
  51. company: '',
  52. corporation: '',
  53. date: '',
  54. },
  55. audit: {
  56. company: '',
  57. corporation: '',
  58. date: '',
  59. }
  60. },
  61. // 技术参数
  62. tech_param: {
  63. loadLevel: 0,
  64. loadLength: 0,
  65. startPeg: '',
  66. endPeg: '',
  67. laneCount: 0,
  68. dealPeriod: '',
  69. startDate: '',
  70. planEndDate: '',
  71. realStartDate: '',
  72. realEndDate: '',
  73. structureScale: '',
  74. },
  75. bid_info: {
  76. controlPrice: 0,
  77. bidPrice: 0,
  78. bidStartDate: '',
  79. bidType: '公开招标',
  80. dealCalcType: '单价合同',
  81. },
  82. // 小数位数
  83. decimal: {
  84. up: 2,
  85. qty: 3,
  86. tp: 0,
  87. pay: false,
  88. payTp: 0,
  89. extra: false,
  90. extraTp: 0,
  91. },
  92. precision: {
  93. t: { unit: 't', value: 3 },
  94. km: { unit: 'km', value: 3 },
  95. m: { unit: 'm', value: 3 },
  96. m2: { unit: 'm2', value: 2 },
  97. m3: { unit: 'm3', value: 2 },
  98. kg: { unit: 'kg', value: 2 },
  99. ge: { unit: '个', value: 0 },
  100. tai: { unit: '台', value: 0 },
  101. tao: { unit: '套', value: 0 },
  102. ke: { unit: '棵', value: 0 },
  103. zu: { unit: '组', value: 0 },
  104. xitong: { unit: '系统', value: 0 },
  105. other: { value: 3 },
  106. },
  107. // 合同参数
  108. deal_param: {
  109. contractPrice: 0,
  110. zanLiePrice: 0,
  111. startAdvance: 0,
  112. materialAdvance: 0,
  113. safeAdvance: 0,
  114. dustAdvance: 0,
  115. },
  116. // 显示设置
  117. display: {
  118. ledger: {
  119. deal: false,
  120. dgnQty: false,
  121. clQty: false,
  122. },
  123. exMemo: true,
  124. thousandth: false,
  125. stage: {
  126. realComplete: false,
  127. correct: true,
  128. priceDiff: false,
  129. },
  130. dayMode: false,
  131. },
  132. chapter: [
  133. {code: '100', name: '总则'},
  134. {code: '200', name: '路基'},
  135. {code: '300', name: '路面'},
  136. {code: '400', name: '桥梁、涵洞'},
  137. {code: '500', name: '隧道'},
  138. {code: '600', name: '安全设施及预埋管线'},
  139. {code: '700', name: '绿化及环境保护'},
  140. {code: '800', name: '机电工程'},
  141. {code: '900', name: '房建工程'},
  142. {code: '1000', name: '收费系统'},
  143. {code: '1100', name: '通信系统'},
  144. {code: '1200', name: '消防系统'},
  145. {code: '1300', name: '供配电及照明系统'},
  146. ],
  147. pay_account: {
  148. project: {
  149. name: '',
  150. bank: '',
  151. account: '',
  152. rate: '',
  153. contact: '',
  154. phone: '',
  155. num: '',
  156. },
  157. worker: {
  158. name: '',
  159. bank: '',
  160. account: '',
  161. rate: '',
  162. contact: '',
  163. phone: '',
  164. num: '',
  165. },
  166. },
  167. shenpi: {
  168. advance: 1,
  169. ledger: 1,
  170. revise: 1,
  171. stage: 1,
  172. change: 1,
  173. material: 1,
  174. },
  175. ledger_check: {
  176. same_code: true,
  177. sibling: true,
  178. over: true,
  179. banMinusChangeBills: true,
  180. },
  181. fun_rela: {
  182. hintOver: true,
  183. stage_change: {
  184. minusNoValue: true,
  185. },
  186. sum_load: {
  187. ignoreParent: false,
  188. },
  189. stage_rela: {
  190. show: false,
  191. },
  192. },
  193. };
  194. const gclDefaultInfo = (function () {
  195. const result = JSON.parse(JSON.stringify(defaultInfo));
  196. result.display.ledger.deal = true;
  197. return result;
  198. })(defaultInfo);
  199. const tzDefaultInfo = (function () {
  200. const result = JSON.parse(JSON.stringify(defaultInfo));
  201. return result;
  202. })(defaultInfo);
  203. const paymentDefaultInfo = (function () {
  204. const result = {};
  205. result.deal_info = JSON.parse(JSON.stringify(defaultInfo.deal_info));
  206. result.construction_unit = JSON.parse(JSON.stringify(defaultInfo.construction_unit));
  207. result.tech_param = JSON.parse(JSON.stringify(defaultInfo.tech_param));
  208. result.pay_account = JSON.parse(JSON.stringify(defaultInfo.pay_account));
  209. return result;
  210. })(defaultInfo);
  211. module.exports = {
  212. parseInfo,
  213. arrayInfo,
  214. defaultInfo,
  215. gclDefaultInfo,
  216. tzDefaultInfo,
  217. paymentDefaultInfo,
  218. };