/** * 财务额外收入业务交易明细列表 */ import ApiModel from '@/utils/core/apiModel'; // 表单信息 const formList = [ { type: 'dateRange', label: '交易日期', value: [], name: 'bookDate', names: ['beginBookDate', 'endBookDate'] }, { type: 'input', label: '收入金额', name: 'amount', children: [ { type: 'input', value: '', name: 'beginAmount', isMoney: true }, { type: 'input', value: '', name: 'endAmount', isMoney: true } ] }, { type: 'input', label: '结算账户号', value: '', name: 'acctNo' }, { type: 'input', label: '结算账户名', value: '', name: 'acctName' }, { type: 'input', label: '银行名称', value: '', name: 'bankName' }, { type: 'dateRange', label: '收款日期', value: [], name: 'etydat', names: ['beginEtydat', 'endEtydat'] }, { type: 'input', label: '收款金额', name: 'crtAmt', children: [ { type: 'input', value: '', name: 'beginCrtAmt', isMoney: true }, { type: 'input', value: '', name: 'endCrtAmt', isMoney: true } ] } ]; // 表格信息 const tableList = [ // { // label: '交易日期', // prop: 'transDate' // }, // { // label: '收入金额', // prop: 'amount', // isMoney: true // }, // { // label: '银行流水', // prop: 'trxnbr' // }, // { // label: '结算户账号', // prop: 'acctNo' // }, // { // label: '结算户户名', // prop: 'acctName' // }, // { // label: '银行名称', // prop: 'bankName' // }, // { // label: '收款日期', // prop: 'etydat' // }, // { // label: '收款金额', // prop: 'crtAmt', // isMoney: true // }, { label: '交易日期', attrs: { width: 'auto' }, prop: 'bookDate' }, { label: '金额', attrs: { width: 'auto' }, prop: 'amount', isMoney: true }, { label: '银行流水', attrs: { width: 'auto' }, prop: 'trxnbr' }, { label: '结算户', attrs: { width: 'auto' }, prop: 'acctNo' }, { label: '结算户名称', attrs: { width: 'auto' }, prop: 'acctName' }, { label: '收款日期', attrs: { width: 'auto' }, prop: 'etydat' }, { label: '收款金额', attrs: { width: 'auto' }, prop: 'crtAmt', isMoney: true } ]; export default options => { // 接口地址,required const api = 'voucherDetail/queryEWSRBusinessTrans'; return new ApiModel({ api, formList, tableList, request(params) { return this.post(params); } }); };