/** * 放款业务交易明细列表 */ import ApiModel from '@/utils/core/apiModel'; // 表单信息 const formList = [ { type: 'dateRange', label: '放款日期', value: [], name: 'putOutDate', names: ['beginPutOutDate', 'endPutOutDate'] }, { type: 'input', label: '客户名称', value: '', name: 'customerName' }, { type: 'input', label: '实际放款金额', name: 'businessSum', children: [ { type: 'input', value: '', name: 'beginBusinessSum', isMoney: true }, { type: 'input', value: '', name: 'endBusinessSum', isMoney: true } ] }, { type: 'select', label: '产品名称', value: [], name: 'productIdArray', options: [], attrs: ['filterable', 'multiple', 'clearable', 'collapse-tags'] }, { type: 'input', label: '申请编号', value: '', name: 'applySerialNo' } ]; // 表格信息 const tableList = [ { label: '放款日期', prop: 'putOutDate', attrs: { width: 'auto' } }, { label: '账户名称', prop: 'offlinePutOutAccountName', attrs: { width: 'auto' } }, { label: '银行账户', prop: 'offlinePutOutAccountNo', attrs: { width: 'auto' } }, { label: '申请编号', prop: 'applySerialNo', attrs: { width: 'auto' } }, { label: '产品名称', prop: 'productName', attrs: { width: 'auto' } }, { label: '客户名称', prop: 'customerName', attrs: { width: 'auto' } }, { label: '实际放款金额', prop: 'businessSum', attrs: { width: 'auto' }, isMoney: true } ]; export default options => { // 接口地址,required const api = 'voucherDetail/queryFKBusinessTrans'; return new ApiModel({ api, formList, tableList, request(params) { return this.post(params); } }); };