| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- 'use strict';
- /**
- * 合同管理
- *
- * @author ELlisran
- * @date 2019/10/20
- * @version
- */
- // 类型
- const type = {
- expenses: 1,
- income: 2,
- };
- const typeMap = {
- 1: 'expenses',
- 2: 'income',
- };
- const typeName = {
- 1: '支付',
- 2: '回款',
- };
- const colSet = {
- [type.expenses]: [
- { name: '累计应付', field: 'yf_price', fixed: ['alias'] },
- { name: '应付进度', field: 'stackedBar', fixed: ['alias'] },
- { name: '累计实付', field: 'sf_price', fixed: ['alias'] },
- { name: '实付进度', field: 'stackedBarSf', fixed: ['alias'] },
- { name: '备注1', field: 'remark', fixed: [] },
- { name: '备注2', field: 'remark2', fixed: [] },
- { name: '计算1', field: 'calc', fixed: [] },
- { name: '计算2', field: 'calc2', fixed: [] },
- ],
- [type.income]: [
- { name: '累计回款', field: 'yf_price', fixed: ['alias'] },
- { name: '回款进度', field: 'stackedBar', fixed: ['alias'] },
- { name: '累计实回', field: 'sf_price', fixed: ['alias'] },
- { name: '实回进度', field: 'stackedBarSf', fixed: ['alias'] },
- { name: '备注1', field: 'remark', fixed: [] },
- { name: '备注2', field: 'remark2', fixed: [] },
- { name: '计算1', field: 'calc', fixed: [] },
- { name: '计算2', field: 'calc2', fixed: [] },
- ],
- };
- const defaultColSet = {
- [type.expenses]: [
- { field: 'yf_price', show: 1 },
- { field: 'stackedBar', show: 1 },
- { field: 'sf_price', show: 0 },
- { field: 'stackedBarSf', show: 0 },
- { field: 'remark', show: 0, alias: '文本框1' },
- { field: 'remark2', show: 0, alias: '文本框2' },
- { field: 'calc', show: 0, alias: '计算1' },
- { field: 'calc2', show: 0, alias: '计算2' },
- ],
- [type.income]: [
- { field: 'yf_price', show: 1 },
- { field: 'stackedBar', show: 1 },
- { field: 'sf_price', show: 0 },
- { field: 'stackedBarSf', show: 0 },
- { field: 'remark', show: 0, alias: '文本框1' },
- { field: 'remark2', show: 0, alias: '文本框2' },
- { field: 'calc', show: 0, alias: '计算1' },
- { field: 'calc2', show: 0, alias: '计算2' },
- ],
- };
- module.exports = {
- type,
- typeMap,
- typeName,
- colSet,
- defaultColSet,
- };
|