/* * @Author: lixiong * @Date: 2019-08-21 14:35:07 * @Last Modified by: lixiong * @Last Modified time: 2019-10-22 17:50:55 */ /** * 扣款挂起确认 */ 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: 'loanUpRemark', rules: ['required'] }, { type: 'date', label: '挂起结束日期', value: '', name: 'loanUpEndDate', rules: ['required'], attrs: [ { 'picker-options': { disabledDate(time){ return time.getTime() < Date.now() - 8.64e7 } } } ] } ] export default options => { // 接口地址,required const api = 'server/withholdUp' return new ApiModel({ api, formList, request(params) { return this.post(params) } }) }