/** * 提前结清试算 */ import ApiModel from '@/utils/core/apiModel' // 表单信息 const formList = [ { type: 'input', label: '申请编号', value: '', name: 'applySerialno', attrs: ['readonly'] }, { type: 'input', label: '借据编号', value: '', name: 'loanSerialno', attrs: ['readonly'] }, { type: 'input', label: '客户名称', value: '', name: 'customerName', attrs: ['readonly'] }, { type: 'input', label: '产品名称', value: '', name: 'productName', attrs: ['readonly'] }, // { // type: 'input', // label: '放款资金单元', // value: '', // name: '', // attrs: ['readonly'] // }, // { // type: 'input', // label: '逾期部分应还本金', // value: '', // name: 'overduePrincipalBalance', // attrs: ['readonly'] // }, // { // type: 'input', // label: '逾期部分应还利息', // value: '', // name: 'overdueInterestBalance', // attrs: ['readonly'] // }, // { // type: 'input', // label: '逾期部分应还手续费', // value: '', // name: 'overdueInterestBalanceA1', // attrs: ['readonly'] // }, // { // type: 'input', // label: '逾期部分应还担保费', // value: '', // name: 'overdueInterestBalanceA3', // attrs: ['readonly'] // }, // { // type: 'input', // label: '逾期部分应还平台服务费', // value: '', // name: 'overdueInterestBalanceA2', // attrs: ['readonly'] // }, { type: 'input', label: '逾期应还罚息', value: '', name: 'overduePalpenaltyBalance', attrs: ['readonly'] }, // { // type: 'input', // label: '逾期部分应还总金额', // value: '', // name: 'overdueAllBalance', // attrs: ['readonly'] // }, // { // type: 'input', // label: '产品名称', // value: '', // name: 'productName', // attrs: ['readonly'] // }, { type: 'input', label: '提前结清应还本金', value: '', name: 'prePrincipalBalance', attrs: ['readonly'], isMoney: true }, { type: 'input', label: '提前结清应还利息', value: '', name: 'preInterestBalance', attrs: ['readonly'], isMoney: true }, // { // type: 'input', // label: '提前结清部分应还违约金', // value: '', // name: 'interestBalanceA5', // attrs: ['readonly'], // isMoney: true // }, // { // type: 'input', // label: '提前结清部分应还担保费', // value: '', // name: 'preInterestBalanceA3', // attrs: ['readonly'], // isMoney: true // }, // { // type: 'input', // label: '提前结清部分应还手续费', // value: '', // name: 'preInterestBalanceA1', // attrs: ['readonly'], // isMoney: true // }, // { // type: 'input', // label: '提前结清部分应还平台服务费', // value: '', // name: 'preInterestBalanceA2', // attrs: ['readonly'], // isMoney: true // }, { type: 'input', label: '提前结清应还总金额', value: '', name: 'repayBalance', attrs: ['readonly'] }, // { // type: 'input', // label: '产品名称', // value: '', // name: 'productName', // attrs: ['readonly'] // }, // { // type: 'input', // label: '归还展期费金额', // value: '', // name: 'interestBalanceA6', // attrs: ['readonly'], // isMoney: true // }, // { // type: 'input', // label: '归还还款计划变更费金额', // value: '', // name: 'interestBalanceA8', // attrs: ['readonly'], // isMoney: true // }, // { // type: 'input', // label: '归还逾期罚息金额', // value: '', // name: 'palpenaltyBalance', // attrs: ['readonly'], // isMoney: true // }, // { // type: 'input', // label: '提前结清减免金额', // value: '', // name: 'reliefBalance', // attrs: ['readonly'], // isMoney: true // }, { type: 'date', label: '结清日期', value: '', name: 'trialDate' }, { type: 'input', label: '实际提前结清应还总金额', value: '', name: 'balance', attrs: ['readonly'], isMoney: true }, ] export default options => { // 接口地址,required const api = 'server/trial' return new ApiModel({ api, formList, request(params) { return this.post(params) } }) }