| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230 | 
							- 'use strict';
 
- /**
 
-  *
 
-  *
 
-  * @author Mai
 
-  * @date
 
-  * @version
 
-  */
 
- const parseInfo = ['deal_info', 'construction_unit', 'tech_param', 'decimal', 'precision', 'deal_param', 'display', 'pay_account', 'shenpi', 'bid_info', 'ledger_check', 'fun_rela'];
 
- const arrayInfo = ['chapter'];
 
- const defaultInfo = {
 
-     // 合同信息
 
-     deal_info: {
 
-         buildName: '',
 
-         dealCode: '',
 
-         dealName: '',
 
-         projectType: '',
 
-         dealType: '',
 
-         finalCode: '',
 
-         budgetApprovalCode: '',
 
-     },
 
-     // 参建单位
 
-     construction_unit: {
 
-         build: {
 
-             company: '',
 
-             corporation: '',
 
-             date: '',
 
-         },
 
-         sub_build: {
 
-             company: '',
 
-             corporation: '',
 
-             date: '',
 
-         },
 
-         contract1: {
 
-             company: '',
 
-             corporation: '',
 
-             date: '',
 
-             management: '',
 
-         },
 
-         contract2: {
 
-             company: '',
 
-             corporation: '',
 
-             date: '',
 
-         },
 
-         supervision1: {
 
-             company: '',
 
-             corporation: '',
 
-             date: '',
 
-         },
 
-         supervision2: {
 
-             company: '',
 
-             corporation: '',
 
-             date: '',
 
-         },
 
-         detect: {
 
-             company: '',
 
-             corporation: '',
 
-             date: '',
 
-         },
 
-         audit: {
 
-             company: '',
 
-             corporation: '',
 
-             date: '',
 
-         }
 
-     },
 
-     // 技术参数
 
-     tech_param: {
 
-         loadLevel: 0,
 
-         loadLength: 0,
 
-         startPeg: '',
 
-         endPeg: '',
 
-         laneCount: 0,
 
-         dealPeriod: '',
 
-         startDate: '',
 
-         planEndDate: '',
 
-         realStartDate: '',
 
-         realEndDate: '',
 
-         structureScale: '',
 
-         mainContent: '',
 
-     },
 
-     bid_info: {
 
-         controlPrice: 0,
 
-         bidPrice: 0,
 
-         bidStartDate: '',
 
-         bidType: '公开招标',
 
-         dealCalcType: '单价合同',
 
-         bidYuPrice: 0,
 
-     },
 
-     // 小数位数
 
-     decimal: {
 
-         up: 2,
 
-         qty: 3,
 
-         tp: 0,
 
-         pay: false,
 
-         payTp: 0,
 
-         extra: false,
 
-         extraTp: 0,
 
-     },
 
-     precision: {
 
-         t: { unit: 't', value: 3 },
 
-         km: { unit: 'km', value: 3 },
 
-         m: { unit: 'm', value: 3 },
 
-         m2: { unit: 'm2', value: 2 },
 
-         m3: { unit: 'm3', value: 2 },
 
-         kg: { unit: 'kg', value: 2 },
 
-         ge: { unit: '个', value: 0 },
 
-         tai: { unit: '台', value: 0 },
 
-         tao: { unit: '套', value: 0 },
 
-         ke: { unit: '棵', value: 0 },
 
-         zu: { unit: '组', value: 0 },
 
-         xitong: { unit: '系统', value: 0 },
 
-         other: { value: 3 },
 
-     },
 
-     // 合同参数
 
-     deal_param: {
 
-         contractPrice: 0,
 
-         zanLiePrice: 0,
 
-         startAdvance: 0,
 
-         materialAdvance: 0,
 
-         safeAdvance: 0,
 
-         dustAdvance: 0,
 
-     },
 
-     // 显示设置
 
-     display: {
 
-         ledger: {
 
-             deal: false,
 
-             dgnQty: false,
 
-             clQty: false,
 
-         },
 
-         exMemo: true,
 
-         thousandth: false,
 
-         stage: {
 
-             realComplete: false,
 
-             correct: true,
 
-             priceDiff: false,
 
-         },
 
-         dayMode: false,
 
-     },
 
-     chapter: [
 
-         {code: '100', name: '总则'},
 
-         {code: '200', name: '路基'},
 
-         {code: '300', name: '路面'},
 
-         {code: '400', name: '桥梁、涵洞'},
 
-         {code: '500', name: '隧道'},
 
-         {code: '600', name: '安全设施及预埋管线'},
 
-         {code: '700', name: '绿化及环境保护'},
 
-         {code: '800', name: '机电工程'},
 
-         {code: '900', name: '房建工程'},
 
-         {code: '1000', name: '收费系统'},
 
-         {code: '1100', name: '通信系统'},
 
-         {code: '1200', name: '消防系统'},
 
-         {code: '1300', name: '供配电及照明系统'},
 
-     ],
 
-     pay_account: {
 
-         project: {
 
-             name: '',
 
-             bank: '',
 
-             account: '',
 
-             rate: '',
 
-             contact: '',
 
-             phone: '',
 
-             num: '',
 
-         },
 
-         worker: {
 
-             name: '',
 
-             bank: '',
 
-             account: '',
 
-             rate: '',
 
-             contact: '',
 
-             phone: '',
 
-             num: '',
 
-         },
 
-     },
 
-     shenpi: {
 
-         advance: 1,
 
-         ledger: 1,
 
-         revise: 1,
 
-         stage: 1,
 
-         settle: 1,
 
-         change: 1,
 
-         material: 1,
 
-     },
 
-     ledger_check: {
 
-         same_code: true,
 
-         sibling: true,
 
-         over: true,
 
-         banMinusChangeBills: true,
 
-     },
 
-     fun_rela: {
 
-         hintOver: true,
 
-         stage_change: {
 
-             minusNoValue: true,
 
-         },
 
-         sum_load: {
 
-             ignoreParent: false,
 
-         },
 
-         stage_rela: {
 
-             show: false,
 
-         },
 
-     },
 
- };
 
- const gclDefaultInfo = (function () {
 
-     const result = JSON.parse(JSON.stringify(defaultInfo));
 
-     result.display.ledger.deal = true;
 
-     return result;
 
- })(defaultInfo);
 
- const tzDefaultInfo = (function () {
 
-     const result = JSON.parse(JSON.stringify(defaultInfo));
 
-     return result;
 
- })(defaultInfo);
 
- const paymentDefaultInfo = (function () {
 
-     const result = {};
 
-     result.deal_info = JSON.parse(JSON.stringify(defaultInfo.deal_info));
 
-     result.construction_unit = JSON.parse(JSON.stringify(defaultInfo.construction_unit));
 
-     result.tech_param = JSON.parse(JSON.stringify(defaultInfo.tech_param));
 
-     result.pay_account = JSON.parse(JSON.stringify(defaultInfo.pay_account));
 
-     return result;
 
- })(defaultInfo);
 
- module.exports = {
 
-     parseInfo,
 
-     arrayInfo,
 
-     defaultInfo,
 
-     gclDefaultInfo,
 
-     tzDefaultInfo,
 
-     paymentDefaultInfo,
 
- };
 
 
  |