/* * @Author: Pengjiantian * @Date: 2020-02-28 11:29:42 * @Last Modified by: Pengjiantian * @Last Modified time: 2020-02-28 11:43:16 */ /** * 客户额度列表 */ import ApiModel from '@/utils/core/apiModel' const formList = [ { type: 'input', label: '客户名称', value: '', name: 'customerName' }, { type: 'input', label: '证件号码', value: '', name: 'certId' }, { type: 'select', label: '额度状态', value: '', name: 'quotaStatus', options: [], attrs: ['filterable', 'clearable', 'collapse-tags'] }, { type: 'input', label: '客户编号', value: '', name: 'customerId' }, { type: 'select', label: '额度类型', value: '', name: 'quotaType', options: [], attrs: ['filterable', 'clearable', 'collapse-tags'] }, { type: 'select', label: '产品', value: '', name: 'productArray', options: [], attrs: ['filterable', 'multiple', 'clearable', 'collapse-tags'] }, { type: 'select', label: '修改审核状态', value: '', name: 'approveStatus', options: [], attrs: ['filterable', 'clearable', 'collapse-tags'] } ] // 表格信息 const tableList = [ { label: '客户编号', prop: 'customerId' }, { label: '客户名称', prop: 'customerName' }, { label: '证件类型', prop: 'certTypeDesc' }, { label: '证件号码', prop: 'certId' }, { label: '额度类型', prop: 'quotaTypeDesc' }, { label: '产品', prop: 'productName' }, { label: '周期性', prop: 'cyclicalDesc' }, { label: '额度状态', prop: 'quotaStatusDesc' }, { label: '修改审核状态', prop: 'approveStatusDesc' }, { label: '现金剩余额度', prop: 'cashRemainAmt', isMoney: true }, { label: '消费剩余额度', prop: 'consumRemainAmt', isMoney: true }, { label: '专项剩余额度', prop: 'specialRemainAmt', isMoney: true }, { label: '额度生效日', prop: 'effectiveDate' }, { label: '额度失效日', prop: 'disEffectiveDate' }, { prop: 'action', label: '操作管理', attrs: { fixed: 'right' }, type: 'buttons' } ] export default options => { // 接口地址,required const api = 'server/qryCustQuotaList' return new ApiModel({ api, formList, tableList, request(params) { return this.post(params) } }) }