tender_info.js 5.5 KB

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