/** * 财务分录明细列表 */ import ApiModel from '@/utils/core/apiModel'; // 表单信息 const formList = [ { type: 'select', label: 'ORACLE入账状态', value: '', name: 'executeStatus', options: [], attrs: ['filterable', 'clearable', 'collapse-tags'] }, { type: 'input', label: 'ORCLE客户号', value: '', name: 'oracleBookMap', }, { type: 'dateRange', label: '记账日期', value: [], name: 'accountingDate', names: ['endAccountingDate', 'beginAccountingDate'] }, { type: 'select', label: '借贷方向', value: '', name: 'direction', options: [], attrs: ['filterable', 'clearable', 'collapse-tags'] }, { type: 'input', label: '会计科目', value: '', name: 'item1' }, { type: 'input', label: '备注', value: '', name: 'lineMemo' }, { type: 'input', label: '申请编号', value: '', name: 'applySerialNo' }, { type: 'input', label: '账户名称', value: '', name: 'serialNo' }, { type: 'input', label: '入账失败原因', value: '', name: 'imporacleeRrors' }, { type: 'input', label: 'ORACLE凭证号', value: '', name: 'headerMemo' }, ]; // 表格信息 const tableList = [ { label: '账户名称', prop: 'serialNo', }, { label: '申请编号', prop: 'applySerialNo', }, { label: 'ORCLE客户号', prop: 'oracleBookMap', }, { label: '记账日期', prop: 'bookDate', }, { label: '借贷方向', prop: 'direction', }, { label: '交易金额', prop: 'amount', isMoney: true }, { label: '会计科目', prop: 'subject', }, { label: '备注', prop: 'memo', }, { label: 'ORACLE入账状态', prop: 'executeStatus', }, { label: 'ORACLE凭证号', prop: 'headerMemo', }, { label: '入账失败原因', prop: 'imporacleeRrors', } ]; export default options => { // 接口地址,required const api = 'voucherDetail/queryFinanceBook'; return new ApiModel({ api, formList, tableList, request(params) { return this.post(params); } }); };