/** * 贴息开票明细列表查询 */ import ApiModel from '@/utils/core/apiModel' // 表单信息 const formList = [ { type: 'input', label: '申请编号', value: '', name: 'applySerialno' }, { type: 'input', label: '客户名称', value: '', name: 'customerName' }, { type: 'select', label: '项目名称', value: [], name: 'projectNameArray', options: [], attrs: ['filterable', 'multiple', 'clearable', 'collapse-tags'] }, { type: 'input', label: '客户手机号', value: '', name: 'phone' }, { type: 'select', label: '贴息类型', value: [], name: 'discountTypeArray', options: [], attrs: ['filterable', 'multiple', 'clearable', 'collapse-tags'] }, { type: 'input', label: '期数', value: '', name: 'periodNo' }, { type: 'select', label: '回款状态', value: '', name: 'receivableStatus', options: [] }, { type: 'dateRange', label: '回款日期', value: [], name: 'receivableDate', names: ['beginReceivableDate', 'endReceivableDate'] }, { type: 'input', label: '发票代码', value: '', name: 'invoiceCode' }, { type: 'input', label: '发票金额', name: 'disountInvoiceAmount', children: [ { type: 'input', value: '', name: 'beginDisountInvoiceAmount' }, { type: 'input', value: '', name: 'endDisountInvoiceAmount' } ] }, { type: 'input', label: '发票购买方', value: '', name: 'invoiceBuyer' }, { type: 'input', label: '开票金额', name: 'invoiceAmount', children: [ { type: 'input', value: '', name: 'beginInvoiceAmount' }, { type: 'input', value: '', name: 'endInvoiceAmount' } ] } ] // 表格信息 const tableList = [ { label: '申请编号', prop: 'applySerialno' }, { label: '客户名称', prop: 'customerName' }, { label: '客户手机号', prop: 'phone' }, { label: '贷款金额', prop: 'businessSum', isMoney: true }, { label: '项目名称', prop: 'projectName' }, { label: '合作商名称', prop: 'enterpriseName' }, { label: '贴息类型', prop: 'discountTypeDesc' }, { label: '期数', prop: 'periodNo' }, { label: '贴利息金额', prop: 'discountInterestAmount', isMoney: true }, { label: '贴手续费金额', prop: 'discountPoundageAmount', isMoney: true }, { label: '贴担保费金额', prop: 'discountGuaranteAmount', isMoney: true }, { label: '贴服务费金额', prop: 'discountServiceFeeAmount', isMoney: true }, { label: '贴息总金额', prop: 'summoney', isMoney: true }, { label: '回款状态', prop: 'receivableStatusDesc' }, { label: '回款日期', prop: 'receivableDate' }, { label: '发票代码', prop: 'invoiceCode' }, { label: '发票金额', prop: 'disountInvoiceAmount', isMoney: true }, { label: '发票销售方', prop: 'invoiceSeller' }, { label: '发票购买方', prop: 'invoiceBuyer' }, { label: '开票金额', prop: 'invoiceAmount', isMoney: true }, { label: '开票日期', prop: 'invoiceDate' }, { prop: 'action', label: '操作管理', attrs: { // width: '260px', fixed: 'right' }, type: 'buttons' } ] export default options => { // 接口地址,required const api = 'server/discountInvoiceDetailList' return new ApiModel({ api, formList, tableList, request(params) { return this.post(params) } }) }