| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 | 
							- 'use strict';
 
- /**
 
-  * 合同支付相关
 
-  *
 
-  * @author Mai
 
-  * @date
 
-  * @version
 
-  */
 
- const payType = {
 
-     normal: 1,
 
-     yf: 2,
 
-     sf: 3,
 
-     wc: 4
 
- };
 
- const payTemplate = [
 
-     {order: 1, name: '本期应付', ptype: payType.yf, minus: false, expr: null, sexpr: null, rexpr: null},
 
-     {order: 2, name: '本期实付', ptype: payType.sf, minus: false},
 
-     {order: 3, name: '本期完成计量', ptype: payType.wc, minus: false, expr: 'bqwc'},
 
-     {order: 4, name: '质量保证金', ptype: payType.normal, minus: true},
 
-     {order: 5, name: '扣回开工预付款', ptype: payType.normal, minus: true, expr: '(bqwc/htj)*2*kgyfk', sexpr: 'htj*30%', rexpr: 'kgyfk'},
 
- ];
 
- const calcBase = [
 
-     {name: '签约合同价', code: 'htj', sort: 10},
 
-     {name: '暂列金额', code: 'zlje', sort: 2},
 
-     {name: '签约合同价(不含暂列金)', code: 'htjszl', sort: 1},
 
-     {name: '签约开工预付款', code: 'kgyfk', sort: 2},
 
-     {name: '签约材料预付款', code: 'clyfk', sort: 2},
 
-     {name: '本期完成计量', code: 'bqwc', limit: true, sort: 10},
 
-     {name: '本期合同计量', code: 'bqht', limit: true, sort: 10},
 
-     {name: '本期变更计量', code: 'bqbg', limit: true, sort: 10},
 
-     {name: '本期一般变更计量', code: 'ybbqbg', limit: true, sort: 5},
 
-     {name: '本期较大变更计量', code: 'jdbqbg', limit: true, sort: 5},
 
-     {name: '本期重大变更计量', code: 'zdbqbg', limit: true, sort: 5},
 
-     {name: '100章本期完成计量', code: 'ybbqwc', limit: true, sort: 1},
 
-     {name: '本期应付', code: 'bqyf', limit: true, ptNormalLimit: true, sort: 20},
 
- ];
 
- const materialCalcBase = [
 
-     {name: '签约合同价', code: 'htj', sort: 10},
 
-     {name: '暂列金额', code: 'zlje', sort: 2},
 
-     {name: '签约合同价(不含暂列金)', code: 'htjszl', sort: 1},
 
-     {name: '签约开工预付款', code: 'kgyfk', sort: 2},
 
-     {name: '签约材料预付款', code: 'clyfk', sort: 2},
 
-     {name: '本期完成计量', code: 'bqwc', limit: true, sort: 10},
 
-     {name: '本期合同计量', code: 'bqht', limit: true, sort: 10},
 
-     {name: '本期变更计量', code: 'bqbg', limit: true, sort: 10},
 
-     {name: '本期一般变更计量', code: 'ybbqbg', limit: true, sort: 5},
 
-     {name: '本期较大变更计量', code: 'jdbqbg', limit: true, sort: 5},
 
-     {name: '本期重大变更计量', code: 'zdbqbg', limit: true, sort: 5},
 
-     {name: '100章本期完成计量', code: 'yib', code2: 'ybbqwc', cType: 1, filter: '^[^0-9]*1[0-9]{2}(-|$)', limit: true, sort: 1},
 
-     {name: '200章本期完成计量', code: 'erb', cType: 1, filter: '^[^0-9]*2[0-9]{2}(-|$)', limit: true, sort: 1},
 
-     {name: '300章本期完成计量', code: 'sanb', cType: 1, filter: '^[^0-9]*3[0-9]{2}(-|$)', limit: true, sort: 1},
 
-     {name: '400章本期完成计量', code: 'sib', cType: 1, filter: '^[^0-9]*4[0-9]{2}(-|$)', limit: true, sort: 1},
 
-     {name: '500章本期完成计量', code: 'wub', cType: 1, filter: '^[^0-9]*5[0-9]{2}(-|$)', limit: true, sort: 1},
 
-     {name: '600章本期完成计量', code: 'liub', cType: 1, filter: '^[^0-9]*6[0-9]{2}(-|$)', limit: true, sort: 1},
 
-     {name: '700章本期完成计量', code: 'qib', cType: 1, filter: '^[^0-9]*7[0-9]{2}(-|$)', limit: true, sort: 1},
 
-     {name: '800章本期完成计量', code: 'bab', cType: 1, filter: '^[^0-9]*8[0-9]{2}(-|$)', limit: true, sort: 1},
 
-     {name: '900章本期完成计量', code: 'jiub', cType: 1, filter: '^[^0-9]*9[0-9]{2}(-|$)', limit: true, sort: 1},
 
-     {name: '本期应付', code: 'bqyf', limit: true, ptNormalLimit: true, sort: 20},
 
- ];
 
- const chapterDetailType = {
 
-     chapter: 1,
 
-     withoutChapter: 21,
 
-     gclSum: 11,
 
-     xmjSum: 31,
 
-     sum: 41
 
- };
 
- const deadlineType = {
 
-     none: { value: 0, name: '无' },
 
-     count: { value: 1, name: '计量期数' },
 
-     tp: {
 
-         value: 2, name: '计量金额',
 
-         tpType: {
 
-             gather: { value: 'gather', name: '累计完成计量金额'},
 
-             contract: { value: 'contract', name: '累计合同计量金额'},
 
-             qc: { value: 'qc', name: '累计变更计量金额'}
 
-         },
 
-     },
 
- };
 
- const chapterDetail = [
 
-     {name: '清单 第100章 总则', cType: 1, serialNo: 1, filter: '^[^0-9]*1[0-9]{2}(-|$)'},
 
-     {name: '清单 第200章 路基', cType: 1, serialNo: 2, filter: '^[^0-9]*2[0-9]{2}(-|$)'},
 
-     {name: '清单 第300章 路面', cType: 1, serialNo: 3, filter: '^[^0-9]*3[0-9]{2}(-|$)'},
 
-     {name: '清单 第400章 桥梁、涵洞', cType: 1, serialNo: 4, filter: '^[^0-9]*4[0-9]{2}(-|$)'},
 
-     {name: '清单 第500章 隧道', cType: 1, serialNo: 5, filter: '^[^0-9]*5[0-9]{2}(-|$)'},
 
-     {name: '清单 第600章 安全设施及预埋管线', cType: 1, serialNo: 6, filter: '^[^0-9]*6[0-9]{2}(-|$)'},
 
-     {name: '清单 第700章 绿化及环境保护', cType: 1, serialNo: 7, filter: '^[^0-9]*7[0-9]{2}(-|$)'},
 
-     {name: '清单 第800章 机电工程', cType: 1, serialNo: 6, filter: '^[^0-9]*8[0-9]{2}(-|$)'},
 
-     {name: '清单 第900章 房建工程', cType: 1, serialNo: 7, filter: '^[^0-9]*9[0-9]{2}(-|$)'},
 
-     {name: '未计入章节清单合计', cType: 21, serialNo: 8},
 
-     {name: '清单小计(A)', cType: 11, serialNo: 9},
 
-     {name: '非清单项费用(B)', cType: 31, serialNo: 10},
 
-     {name: '合计(C=A+B)', cType: 41, serialNo: 11},
 
- ];
 
- module.exports = {
 
-     payType,
 
-     payTemplate,
 
-     calcBase,
 
-     materialCalcBase,
 
-     chapterDetail,
 
-     deadlineType,
 
- };
 
 
  |