/** * 贴息方案 */ import ApiModel from '@/utils/core/apiModel' // 表单信息 const formList = [ { type: 'input', label: '期限单位', value: '', name: 'termUnitDesc', attrs: ['readonly'] }, { type: 'input', label: '还款方式', value: '', name: 'paymenName', attrs: ['readonly'] }, { type: 'input', label: '最低贷款期限', value: '', name: 'minCreditTerm', attrs: ['readonly'] }, { type: 'input', label: '最高贷款期限', value: '', name: 'maxCreditTerm', attrs: ['readonly'] }, { type: 'input', label: '最低贷款金额', value: '', name: 'minBusinessSum', attrs: ['readonly'], isMoney: true }, { type: 'input', label: '最高贷款金额', value: '', name: 'maxBusinessSum', attrs: ['readonly'], isMoney: true }, { type: 'input', label: '贴利息类型', value: '', name: 'isAllPostedInterestDesc', attrs: ['readonly'] }, { type: 'input', label: '贴息前X期', value: '', name: 'discountTerm', attrs: ['readonly'] }, { type: 'input', label: '贴息月利率', value: '', name: 'discountRate', attrs: ['readonly'] }, { type: 'input', label: '贴息固额', value: '', name: 'discountSum', attrs: ['readonly'] }, { type: 'input', label: '贴手续费类型', value: '', name: 'isAllPostedPoundageDesc', attrs: ['readonly'] }, { type: 'input', label: '贴手续费前X期', value: '', name: 'discountPoundageTerm', attrs: ['readonly'] }, { type: 'input', label: '贴手续费率', value: '', name: 'poundageRate', attrs: ['readonly'] }, { type: 'input', label: '贴手续费固额', value: '', name: 'poundageSum', attrs: ['readonly'] }, { type: 'input', label: '贴平台服务费类型', value: '', name: 'isAllPostedServiceDesc', attrs: ['readonly'] }, { type: 'input', label: '贴平台服务费前X期', value: '', name: 'discountServiceTerm', attrs: ['readonly'] }, { type: 'input', label: '贴平台服务费率', value: '', name: 'serviceRate', attrs: ['readonly'] }, { type: 'input', label: '贴平台服务费固额', value: '', name: 'serviceSum', attrs: ['readonly'] }, { type: 'input', label: '贴担保费类型', value: '', name: 'isAllPostedGuarantyDesc', attrs: ['readonly'] }, { type: 'input', label: '贴担保费前X期', value: '', name: 'discountGuarantyTerm', attrs: ['readonly'] }, { type: 'input', label: '贴担保费费率', value: '', name: 'guarantyRate', attrs: ['readonly'] }, { type: 'input', label: '贴担保费固额', value: '', name: 'guarantySum', attrs: ['readonly'] }, { type: 'input', label: '提前还款额外贴息计算方式', value: '', name: 'discountTypeForPrepaymentDesc', attrs: ['readonly'] }, { type: 'input', label: '提前还款额外贴息费率', value: '', name: 'discountRateForPrepayment', attrs: ['readonly'] }, { type: 'input', label: '提前还款额外贴息计算月数', value: '', name: 'discountMonthsForPrepayment', attrs: ['readonly'] } ] export default options => { // 接口地址,required const api = 'server/queryDiscountProgramInfo' return new ApiModel({ api, formList, request(params) { return this.post(params) } }) }