gcl_gather.js 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578
  1. 'use strict';
  2. /**
  3. *
  4. * 清单汇总(需使用 decimal.min.js, zh_calc.js, path_tree.js, lodash.js)
  5. *
  6. * @author Mai
  7. * @date
  8. * @version
  9. */
  10. const gclGatherModel = (function () {
  11. // 需要汇总计算的字段
  12. const ledgerGatherFields = ['quantity', 'total_price', 'deal_qty', 'deal_tp',
  13. 'contract_qty', 'contract_tp', 'qc_qty', 'qc_tp', 'qc_minus_qty',
  14. 'pre_contract_qty', 'pre_contract_tp', 'pre_qc_qty', 'pre_qc_tp', 'pre_qc_minus_qty',
  15. 'end_contract_qty', 'end_contract_tp', 'end_qc_qty', 'end_qc_tp', 'end_qc_minus_qty'];
  16. const posGatherFields = ['quantity', 'contract_qty', 'qc_qty', 'gather_qty','qc_minus_qty',
  17. 'pre_contract_qty', 'pre_qc_qty', 'pre_gather_qty', 'pre_qc_minus_qty',
  18. 'end_contract_qty', 'end_qc_qty', 'end_gather_qty', 'end_qc_minus_qty'];
  19. // 初始化 清单树
  20. const gsTreeSetting = {
  21. id: 'ledger_id',
  22. pid: 'ledger_pid',
  23. order: 'order',
  24. level: 'level',
  25. rootId: -1,
  26. keys: ['id', 'tender_id', 'ledger_id'],
  27. stageId: 'id',
  28. };
  29. gsTreeSetting.updateFields = ['contract_qty', 'contract_tp', 'qc_qty', 'qc_tp'];
  30. const gsTree = createNewPathTree('stage', gsTreeSetting);
  31. // 初始化 部位明细
  32. const posSetting = {
  33. id: 'id', ledgerId: 'lid',
  34. updateFields: ['contract_qty', 'qc_qty'],
  35. };
  36. const gsPos = new StagePosData(posSetting);
  37. let deal = [], change;
  38. const gclList = [], leafXmjs = [];
  39. const mergeChar = ';';
  40. let tpDecimal = 0;
  41. function loadDecimal(decimal) {
  42. tpDecimal = decimal.tp;
  43. }
  44. /**
  45. * 将所有数据加载至树结构
  46. *
  47. * @param ledger - 台账数据
  48. * @param curStage - 当期计量数据
  49. * @param preStage - 截止上期计量数据
  50. * @param bgl - 变更令数据
  51. */
  52. function loadLedgerData (ledger, curStage, preStage) {
  53. // 加载树结构数据
  54. gsTree.loadDatas(ledger);
  55. // 加载本期计量数据
  56. if (curStage) {
  57. gsTree.loadCurStageData(curStage);
  58. }
  59. if (preStage) {
  60. gsTree.loadPreStageData(preStage);
  61. }
  62. }
  63. function loadPosData(pos, curPos, prePos) {
  64. gsPos.loadDatas(pos);
  65. gsPos.loadCurStageData(curPos);
  66. gsPos.loadPreStageData(prePos);
  67. }
  68. function loadDealBillsData(dealBills) {
  69. deal = dealBills;
  70. }
  71. function loadChangeBillsData(data) {
  72. change = data;
  73. }
  74. function gatherfields(obj, src, fields) {
  75. if (obj && src) {
  76. for (const f of fields) {
  77. obj[f] = ZhCalc.add(obj[f], src[f]);
  78. }
  79. }
  80. }
  81. /**
  82. * 新建 清单汇总节点
  83. * @param node - 最底层 工程量清单节点
  84. * @returns {{b_code: *|string[], name, unit, unit_price: *|string[], leafXmjs: Array}}
  85. */
  86. function newGclNode(node) {
  87. const gcl = {
  88. b_code: node.b_code,
  89. name: node.name,
  90. unit: node.unit,
  91. unit_price: node.unit_price,
  92. leafXmjs: [],
  93. };
  94. gclList.push(gcl);
  95. return gcl;
  96. }
  97. /**
  98. * 获取清单汇总节点
  99. *
  100. * @param node - 最底层清单节点
  101. * @returns {*}
  102. */
  103. function getGclNode(node) {
  104. const gcl = gclList.find(function (g) {
  105. return g.b_code === node.b_code &&
  106. (g.name || node.name ? g.name === node.name : true) &&
  107. (g.unit || node.unit ? g.unit === node.unit : true) &&
  108. checkZero(ZhCalc.sub(g.unit_price, node.unit_price));
  109. });
  110. if (gcl) {
  111. return gcl
  112. } else {
  113. return newGclNode(node);
  114. }
  115. }
  116. /**
  117. * 检查 text 是否是Peg
  118. * e.g. K123+000(true) Kab+123(false) K123.234+234(false) K12+324.234(true)
  119. *
  120. * @param text
  121. * @returns {*}
  122. * @constructor
  123. */
  124. function CheckPeg(text) {
  125. const pegReg = /[a-zA-Z]*[kK][0-9]+[++][0-9]{3}([.][0-9]+)?/;
  126. return pegReg.test(text);
  127. }
  128. /**
  129. * 获取 桩号节点
  130. * @param node - 检索起始节点
  131. * @returns {*}
  132. */
  133. function getPegNode (node) {
  134. if (node) {
  135. if (CheckPeg(node.name)) {
  136. return node;
  137. } else {
  138. const parent = gsTree.getParent(node);
  139. return parent ? getPegNode(parent) : null;
  140. }
  141. }
  142. }
  143. /**
  144. * 获取节点的第N层父节点
  145. *
  146. * @param node - 节点(检索起点)
  147. * @param level - 第N层
  148. * @returns {*}
  149. */
  150. function getNodeByLevel(node, level) {
  151. let cur = node;
  152. while (cur && cur.level > level) {
  153. cur = gsTree.getParent(cur);
  154. }
  155. return cur;
  156. }
  157. /**
  158. * 获取 单位工程
  159. *
  160. * @param xmj - 计量单元(最底层项目节)
  161. * @returns {string}
  162. */
  163. function getDwgc(peg, xmj) {
  164. if (peg) {
  165. return peg.name;
  166. } else {
  167. const node = getNodeByLevel(xmj, 2);
  168. return node ? node.name : '';
  169. }
  170. }
  171. /**
  172. * 获取 分部工程
  173. *
  174. * @param peg - 桩号节点
  175. * @param xmj - 计量单元(最底层项目节)
  176. * @returns {string}
  177. */
  178. function getFbgc(peg, xmj) {
  179. if (peg && peg.id !== xmj.id) {
  180. const node = getNodeByLevel(xmj, peg.level + 1);
  181. return node ? node.name : '';
  182. } else {
  183. const node = getNodeByLevel(xmj, 3);
  184. return node ? node.name : '';
  185. }
  186. }
  187. /**
  188. * 获取 分项工程
  189. *
  190. * @param peg - 桩号节点
  191. * @param xmj - 计量单元(最底层项目节)
  192. * @returns {string}
  193. */
  194. function getFxgc(peg, xmj) {
  195. if (!peg) {
  196. const node = getNodeByLevel(xmj, 4);
  197. return node ? node.name : '';
  198. } else if (peg.id === xmj.id) {
  199. if (xmj.level > 4) {
  200. let value = '';
  201. for (let level = 4; level < xmj.level; level++) {
  202. const node = getNodeByLevel(xmj, level);
  203. value = value === '' ? node.name : value + mergeChar + node.name;
  204. }
  205. return value;
  206. } else {
  207. return '';
  208. }
  209. } else {
  210. if (peg.level + 2 < xmj.level) {
  211. let value = '';
  212. for (let level = peg.level + 2; level < xmj.level; level++) {
  213. const node = getNodeByLevel(xmj, level);
  214. value = value === '' ? node.name : value + mergeChar + node.name;
  215. }
  216. return value;
  217. } else {
  218. return '';
  219. }
  220. }
  221. }
  222. /**
  223. * 新建 最底层项目节 缓存数据
  224. * @param leafXmj
  225. * @returns {{id, code: *|string[], jldy, fbgc: string, fxgc: string, dwgc: string, bwmx: string, drawing_code: string}}
  226. */
  227. function newCacheLeafXmj(leafXmj) {
  228. const peg = getPegNode(leafXmj);
  229. const cacheLX = {
  230. id: leafXmj.id,
  231. code: leafXmj.code,
  232. jldy: leafXmj.name,
  233. fbgc: getFbgc(peg, leafXmj),
  234. fxgc: getFxgc(peg, leafXmj),
  235. dwgc: getDwgc(peg, leafXmj),
  236. drawing_code: leafXmj.drawing_code,
  237. };
  238. leafXmjs.push(cacheLX);
  239. return cacheLX;
  240. }
  241. /**
  242. * 获取缓存的最底层项目节数据
  243. *
  244. * @param leafXmj - 最底层项目节
  245. * @returns {*}
  246. */
  247. function getCacheLeafXmj(leafXmj) {
  248. const cacheLX = leafXmjs.find(function (lx) {
  249. return lx.id === leafXmj.id;
  250. });
  251. if (!cacheLX) {
  252. return newCacheLeafXmj(leafXmj);
  253. } else {
  254. return cacheLX;
  255. }
  256. }
  257. /**
  258. * 汇总节点
  259. * @param node - 最底层 工程量清单 节点
  260. * @param leafXmj - 所属 最底层 项目节
  261. */
  262. function loadGatherGclNode(node, leafXmj) {
  263. const gcl = getGclNode(node);
  264. gatherfields(gcl, node, ledgerGatherFields);
  265. const cacheLeafXmj = getCacheLeafXmj(leafXmj);
  266. const posRange = gsPos.getLedgerPos(node.id);
  267. const detail = posRange && posRange.length > 0 ? posRange : [node];
  268. for (const d of detail) {
  269. const dx = _.assign({}, cacheLeafXmj);
  270. gatherfields(dx, d, posGatherFields);
  271. dx.gcl_id = node.id;
  272. if (d.name !== node.name) {
  273. dx.bwmx = d.name;
  274. dx.mx_id = d.id;
  275. }
  276. if (d.drawing_code) {
  277. dx.drawing_code = d.drawing_code;
  278. }
  279. gcl.leafXmjs.push(dx);
  280. }
  281. }
  282. /**
  283. * (递归)汇总树节点
  284. * @param nodes - 汇总节点列表
  285. * @param leafXmj - 汇总节点所属的底层项目节
  286. */
  287. function recursiveGatherGclData(nodes, leafXmj) {
  288. for (const node of nodes) {
  289. if (node.b_code) {
  290. if (node.children.length > 0) {
  291. const gcl = getGclNode(node);
  292. recursiveGatherGclData(node.children, leafXmj);
  293. } else {
  294. loadGatherGclNode(node, leafXmj);
  295. }
  296. } else if (node.children.length > 0) {
  297. recursiveGatherGclData(node.children, node);
  298. }
  299. }
  300. }
  301. function gatherDealBillsData() {
  302. if (deal && deal.length > 0) {
  303. for (const node of deal) {
  304. node.b_code = node.code;
  305. const gcl = getGclNode(node);
  306. if (!node.quantity || !node.unit_price) continue;
  307. gcl.deal_bills_qty = ZhCalc.add(gcl.deal_bills_qty, node.quantity);
  308. gcl.deal_bills_tp = ZhCalc.add(gcl.deal_bills_tp, node.total_price);
  309. }
  310. }
  311. }
  312. function gatherChangeBillsData() {
  313. if (change && change.length > 0) {
  314. for (const node of change) {
  315. node.b_code = node.code;
  316. node.quantity = parseFloat(node.samount);
  317. node.total_price = ZhCalc.mul(node.quantity, node.unit_price, node.tp_decimal);
  318. const gcl = getGclNode(node);
  319. gcl.change_bills_qty = ZhCalc.add(gcl.change_bills_qty, node.quantity);
  320. gcl.change_bills_tp = ZhCalc.add(gcl.change_bills_tp, node.total_price);
  321. }
  322. }
  323. }
  324. function calculateGatherData() {
  325. for (const gcl of gclList) {
  326. gcl.pre_gather_qty = ZhCalc.add(gcl.pre_contract_qty, gcl.pre_qc_qty);
  327. gcl.pre_gather_tp = ZhCalc.add(gcl.pre_contract_tp, gcl.pre_qc_tp);
  328. gcl.gather_qty = ZhCalc.add(gcl.contract_qty, gcl.qc_qty);
  329. gcl.end_contract_qty = ZhCalc.add(gcl.pre_contract_qty, gcl.contract_qty);
  330. gcl.end_qc_qty = ZhCalc.add(gcl.pre_qc_qty, gcl.qc_qty);
  331. gcl.end_gather_qty = ZhCalc.add(gcl.pre_gather_qty, gcl.gather_qty);
  332. gcl.gather_tp = ZhCalc.add(gcl.contract_tp, gcl.qc_tp);
  333. gcl.end_qc_minus_qty = ZhCalc.add(gcl.pre_qc_minus_qty, gcl.qc_minus_qty);
  334. gcl.end_contract_tp = ZhCalc.add(gcl.pre_contract_tp, gcl.contract_tp);
  335. gcl.end_qc_tp = ZhCalc.add(gcl.pre_qc_tp, gcl.qc_tp);
  336. gcl.end_gather_tp = ZhCalc.add(gcl.pre_gather_tp, gcl.gather_tp);
  337. gcl.dgn_price = ZhCalc.round(ZhCalc.div(gcl.total_price, gcl.dgn_qty1), 2);
  338. gcl.end_final_qty = ZhCalc.add(gcl.end_qc_qty, gcl.quantity);
  339. gcl.end_final_tp = ZhCalc.add(gcl.end_qc_tp, gcl.total_price);
  340. gcl.final_qty = ZhCalc.add(gcl.quantity, gcl.change_bills_qty);
  341. gcl.final_tp = ZhCalc.add(gcl.total_price, gcl.change_bills_tp);
  342. gcl.deal_final_qty = ZhCalc.add(gcl.deal_qty, gcl.change_bills_qty);
  343. gcl.deal_final_tp = ZhCalc.add(gcl.deal_tp, gcl.change_bills_tp);
  344. gcl.final_1_qty = ZhCalc.add(gcl.quantity, gcl.end_qc_minus_qty);
  345. gcl.final_1_tp = ZhCalc.mul(gcl.unit_price, gcl.final_1_qty, tpDecimal);
  346. gcl.deal_final_1_qty = ZhCalc.add(gcl.deal_qty, gcl.end_qc_minus_qty);
  347. gcl.deal_final_1_tp = ZhCalc.add(gcl.unit_price, gcl.deal_final_1_qty, tpDecimal);
  348. gcl.end_gather_percent = gcl.end_final_qty && gcl.end_gather_qty
  349. ? ZhCalc.mul(ZhCalc.div(gcl.end_gather_qty, gcl.end_final_qty), 100, 2)
  350. : ZhCalc.mul(ZhCalc.div(gcl.end_gather_tp, gcl.end_final_tp), 100, 2);
  351. gcl.final_percent = gcl.final_qty && gcl.end_gather_qty
  352. ? ZhCalc.mul(ZhCalc.div(gcl.end_gather_qty, gcl.final_qty), 100, 2)
  353. : ZhCalc.mul(ZhCalc.div(gcl.end_gather_tp, gcl.final_tp), 100, 2);
  354. for (const xmj of gcl.leafXmjs) {
  355. xmj.pre_gather_qty = ZhCalc.add(xmj.pre_contract_qty, xmj.pre_qc_qty);
  356. xmj.gather_qty = ZhCalc.add(xmj.contract_qty, xmj.qc_qty);
  357. xmj.end_contract_qty = ZhCalc.add(xmj.pre_contract_qty, xmj.contract_qty);
  358. xmj.end_qc_qty = ZhCalc.add(xmj.pre_qc_qty, xmj.qc_qty);
  359. xmj.end_gather_qty = ZhCalc.add(xmj.pre_gather_qty, xmj.gather_qty);
  360. xmj.end_final_qty = ZhCalc.add(xmj.end_qc_qty, xmj.quantity);
  361. xmj.end_qc_minus_qty = ZhCalc.add(xmj.pre_qc_minus_qty, xmj.qc_minus_qty);
  362. xmj.final_1_qty = ZhCalc.add(xmj.quantity, xmj.end_qc_minus_qty);
  363. xmj.end_gather_percent = ZhCalc.mul(ZhCalc.div(xmj.end_gather_qty, xmj.end_final_qty), 100, 2);
  364. }
  365. }
  366. }
  367. function compareCode(str1, str2, symbol = '-') {
  368. if (!str1) {
  369. return 1;
  370. } else if (!str2) {
  371. return -1;
  372. }
  373. function compareSubCode(code1, code2) {
  374. if (numReg.test(code1)) {
  375. if (numReg.test(code2)) {
  376. return parseInt(code1) - parseInt(code2);
  377. } else {
  378. return -1
  379. }
  380. } else {
  381. if (numReg.test(code2)) {
  382. return 1;
  383. } else {
  384. return code1 === code2 ? 0 : (code1 < code2 ? -1 : 1); //code1.localeCompare(code2);
  385. }
  386. }
  387. }
  388. const numReg = /^[0-9]+$/;
  389. const aCodes = str1.split(symbol), bCodes = str2.split(symbol);
  390. for (let i = 0, iLength = Math.min(aCodes.length, bCodes.length); i < iLength; ++i) {
  391. const iCompare = compareSubCode(aCodes[i], bCodes[i]);
  392. if (iCompare !== 0) {
  393. return iCompare;
  394. }
  395. }
  396. return aCodes.length - bCodes.length;
  397. }
  398. /**
  399. * 根据树结构 清单汇总
  400. */
  401. function gatherGclData() {
  402. // 清空旧数据
  403. if (gclList.length > 0) {
  404. gclList.length = 0; //splice(0, gclList.length);
  405. }
  406. recursiveGatherGclData(gsTree.children, null);
  407. gatherDealBillsData();
  408. gatherChangeBillsData();
  409. calculateGatherData();
  410. gclList.sort(function (a, b) {
  411. return compareCode(a.b_code, b.b_code) || ZhCalc.sub(a.unit_price, b.unit_price);
  412. });
  413. return gclList;
  414. }
  415. function checkDiffer(gclList) {
  416. for (const gcl of gclList) {
  417. gcl.differ = false;
  418. }
  419. for (const [i, gcl] of gclList.entries()) {
  420. if (i === gclList.length - 1) continue;
  421. const next = gclList[i+1];
  422. if (gcl.b_code === next.b_code) {
  423. if (gcl.name !== next.name || gcl.unit !== next.unit || !checkZero(gcl.unit_price - next.unit_price)) {
  424. gcl.differ = true;
  425. next.differ = true;
  426. }
  427. }
  428. }
  429. }
  430. function _getCalcChapter(chapter, option) {
  431. const gclChapter = [], otherChapter = {}, gclChapterFilter = [];
  432. let serialNo = 1;
  433. for (const c of chapter) {
  434. const cc = { code: c.code, name: c.name, cType: 1 };
  435. cc.serialNo = serialNo++;
  436. cc.filter = '^[^0-9]*' + c.code.substr(0, c.code.length - 2) + '[0-9]{2}(-|$)';
  437. gclChapter.push(cc);
  438. }
  439. gclChapter.push({ name: '未计入章节清单合计', cType: 21, serialNo: serialNo+1 });
  440. otherChapter.hj = { name: '合计(C=A+B+Z)', cType: 41, serialNo: serialNo+5, deal_bills_tp: option.zlj.deal_bills_tp };
  441. gclChapterFilter.push({node_type: option.jrg.value});
  442. gclChapterFilter.push({field: 'name', part: option.jrg.text});
  443. const zlChapter = {
  444. name: '暂列金额(Z)', cType: 32, serialNo: serialNo+4,
  445. deal_bills_tp: option.zlj.deal_bills_tp, match: [], matchPath: []
  446. };
  447. zlChapter.match.push({node_type: option.zlj.value});
  448. zlChapter.match.push({field: 'name', part: option.zlj.text});
  449. otherChapter.zlj = zlChapter;
  450. otherChapter.qd = { name: '清单小计(A)', cType: 11, serialNo: serialNo+2 };
  451. otherChapter.fqd = { name: '非清单项费用(B)', cType: 31, serialNo: serialNo+3 };
  452. return [gclChapter, otherChapter, gclChapterFilter];
  453. }
  454. function _gatherChapterFields(chapter, data, fields) {
  455. for (const f of fields) {
  456. chapter[f] = ZhCalc.add(chapter[f], data[f]);
  457. }
  458. }
  459. function _getGclChapter(chapter, data) {
  460. for (const c of chapter) {
  461. if (c.filter) {
  462. const reg = new RegExp(c.filter);
  463. if (reg.test(data.b_code)) {
  464. return c;
  465. }
  466. } else {
  467. return c;
  468. }
  469. }
  470. }
  471. function _checkFilter(d, filter) {
  472. for (const f of filter) {
  473. if (f.node_type && f.node_type === d.node_type) return true;
  474. if (f.field) {
  475. if (f.part && d[f.field] && d[f.field].indexOf(f.part) >= 0) return true;
  476. if (f.all && d[f.all] && d[f.all] === f.all) return true;
  477. }
  478. }
  479. return false;
  480. }
  481. function gatherChapterData(chapter, option, fields) {
  482. const chapterFilterPath = [];
  483. const checkFilterPath = function (data, filterPath) {
  484. for (const fp of filterPath) {
  485. if (data.full_path.indexOf(fp + '-') === 0 || data.full_path === fp) return true;
  486. }
  487. return false;
  488. };
  489. const [gclChapter, otherChapter, gclChapterFilter] = _getCalcChapter(chapter, option);
  490. for (const d of gsTree.nodes) {
  491. if (_checkFilter(d, gclChapterFilter)) chapterFilterPath.push(d.full_path);
  492. if (_checkFilter(d, otherChapter.zlj.match)) otherChapter.zlj.matchPath.push(d.full_path);
  493. if (d.children && d.children.length > 0) continue;
  494. if (checkFilterPath(d,otherChapter.zlj.matchPath)) {
  495. gatherfields(otherChapter.zlj, d, fields);
  496. gatherfields(otherChapter.hj, d, fields);
  497. } else {
  498. gatherfields(otherChapter.hj, d, fields);
  499. if (d.b_code) {
  500. gatherfields(otherChapter.qd, d, fields);
  501. }
  502. if (!d.b_code || d.b_code === '') {
  503. gatherfields(otherChapter.fqd, d, fields);
  504. }
  505. if (d.b_code) {
  506. const c = checkFilterPath(d, chapterFilterPath)
  507. ? gclChapter.find(x => { return x.cType === 21})
  508. : _getGclChapter(gclChapter, d);
  509. gatherfields(c, d, fields);
  510. }
  511. }
  512. }
  513. for (const d of deal) {
  514. if (!d.quantity || !d.unit_price) continue;
  515. otherChapter.hj.deal_bills_tp = ZhCalc.add(otherChapter.hj.deal_bills_tp, d.total_price);
  516. otherChapter.qd.deal_bills_tp = ZhCalc.add(otherChapter.qd.deal_bills_tp, d.total_price);
  517. const c = _getGclChapter(gclChapter, d);
  518. c.deal_bills_tp = ZhCalc.add(c.deal_bills_tp, d.total_price);
  519. }
  520. const result = gclChapter.concat([otherChapter.hj, otherChapter.zlj, otherChapter.qd, otherChapter.fqd]);
  521. result.sort((x, y) => {return x.serialNo - y.serialNo});
  522. return result;
  523. }
  524. return {
  525. loadDecimal,
  526. loadLedgerData,
  527. loadPosData,
  528. loadDealBillsData,
  529. loadChangeBillsData,
  530. gatherGclData,
  531. checkDiffer,
  532. gatherChapterData,
  533. };
  534. })();