/** * 转账认领查询(批量) */ import ApiModel from '@/utils/core/apiModel' // 表单信息 const formList = [ { type: 'textarea', label: '申请编号', value: '', name: 'applyno', multiRow: true, }, { type: 'textarea', label: '银行流水', value: '', name: 'bankSerialNumber', multiRow: true }, { type: 'input', label: '转账付方户名', value: '', name: 'repaymentName' }, { type: 'select', label: '入账方式', value: '', name: 'accountType', options: [ {label: '正常入账', value: 'NORMAL'}, {label: '正常入账结清', value: 'NORMAL_PAY'}, {label: '提前结清', value: 'PRE'} ], attrs: ['filterable', 'clearable', 'collapse-tags'] }, { type: 'dateRange', label: '交易日期', value: [], name: 'tradeDate', names: ['startTradeDate', 'endTradeDate'] }, { type: 'select', label: '状态', value: '', name: 'receiveStatus', options: [ {label: '导入成功', value: '00'}, {label: '入账成功', value: '01'}, {label: '入账失败', value: '02'} ], attrs: ['filterable', 'clearable', 'collapse-tags'] }, { type: 'input', label: '对公账号', value: '', name: 'publicAccount' }, { type: 'dateRange', label: '操作日期', value: [], name: 'updateDate', names: ['startDate', 'endDate'] }, ] // 表格信息 const tableList = [ { label: '申请编号', prop: 'applyno', attrs: { width: '120px', } }, { label: '交易日期', prop: 'tradeDate', attrs: { width: '100px', } }, { label: '收付金额', prop: 'receiveAmount', attrs: { width: '100px', } }, { label: '转账付方户名', prop: 'repaymentName', attrs: { width: '110px', }, }, { label: '转账付方账号', prop: 'repaymentAccount', attrs: { width: '160px', } }, { label: '对公账号', prop: 'publicAccount', attrs: { width: '180px', } }, { label: '银行流水', prop: 'bankSerialNumber', attrs: { width: '140px', } }, { label: '备注', prop: 'remark', attrs: { width: '160px', } }, { label: '入账方式', prop: 'accountTypeDesc', attrs: { width: '130px', } }, // { // label: '剩余金额', // prop: 'remainderAmount', // isMoney: true, // attrs: { // width: '100px', // } // }, { label: '状态', prop: 'receiveStatusDesc', attrs: { width: '100px', } }, { label: '虚拟补账金额', prop: 'differenceAmount', attrs: { width: '110px', }, slot: true }, { label: '最近操作用户', prop: 'inputUserid', attrs: { width: '110px', } }, { label: '最近操作时间', prop: 'updateDate', attrs: { width: '160px', } }, { label: '返回信息', prop: 'returnMsg', attrs: { width: '150px', } }, { prop: 'action', label: '操作管理', attrs: { // width: '260px', fixed: 'right' }, type: 'buttons' } ] export default options => { // 接口地址,required const api = 'repaymentReceive/getReceive' return new ApiModel({ api, formList, tableList, request(params) { return this.post(params) }, computedItem(item) { // let { accountType, receiveStatus } = item // let accountTypeDesc = '' // let receiveStatusDesc = '' // switch (accountType) { // case 'NORMAL': // accountTypeDesc = '正常入账' // break; // case 'PRE': // accountTypeDesc = '提前结清' // break; // default: // break; // } // switch (receiveStatus) { // case '00': // receiveStatusDesc = '导入成功' // break; // case '01': // receiveStatusDesc = '入账成功' // break; // case '02': // receiveStatusDesc = '入账失败' // break; // default: // break; // } return { ...item } } }) }