/** * 财务贴息开票列表 */ import ApiModel from '@/utils/core/apiModel' // 表单信息 const formList = [ { type: 'input', label: '申请编号', value: '', name: 'invoiceSerialno' }, { type: 'input', label: '发票代码', value: '', name: 'invoiceCode' }, { type: 'select', label: '当前流程状态', value: ['0030'], name: 'phaseNoArray', options: [], attrs: ['filterable', 'multiple', 'clearable', 'collapse-tags'] }, { type: 'input', label: '开票申请主题', value: '', name: 'invoiceTheMes' }, { type: 'select', label: '状态', value: [], name: 'invoiceStatusArray', options: [], attrs: ['filterable', 'multiple', 'clearable', 'collapse-tags'] }, { type: 'select', label: '开票类型', value: [], name: 'invoiceTypeArray', options: [], attrs: ['filterable', 'multiple', 'clearable', 'collapse-tags'] }, { type: 'input', label: '开票金额', name: 'invoiceAmount', children: [ { type: 'input', value: '', name: 'beginInvoiceAmount' }, { type: 'input', value: '', name: 'endInvoiceAmount' } ] }, { type: 'dateRange', label: '开票日期', value: [], name: 'invoiceDate', names: ['beginInvoiceDate', 'endInvoiceDate'] }, { type: 'input', label: '发票购买方', value: '', name: 'invoiceBuyer' }, { type: 'input', label: '申请人', value: '', name: 'userName' } ] // 表格信息 const tableList = [ { label: '申请编号', prop: 'invoiceSerialno' }, { label: '开票申请主题', prop: 'invoiceTheMes' }, { label: '发票代码', prop: 'discountCode' }, { label: '开票类型', prop: 'invoiceTypeDesc' }, { label: '开票申请金额', prop: 'invoiceApplyAmount', isMoney: true }, { label: '开票金额', prop: 'invoiceApplyAmount', isMoney: true }, { label: '开票日期', prop: 'invoiceDate' }, { label: '发票购买方', prop: 'invoiceBuyer' }, { label: '发票销售方', prop: 'invoiceSeller' }, { label: '状态', prop: 'discountStatusDesc' }, { label: '已关联贴息金额', prop: 'relativeDiscountAmt', isMoney: true }, { label: '未关联贴息金额', prop: 'noRelativeDiscountAmt', isMoney: true }, { label: '当前流程阶段', prop: 'phaseName' }, { label: '申请人', prop: 'inputUserName' }, { label: '申请人所属机构', prop: 'inputOrgName' }, { label: '申请时间', prop: 'applyTime' }, { label: '当前处理人', prop: 'currentUserName' }, { label: '当前处理人所属机构', prop: 'currentOrgName' }, { label: '任务接收时间', prop: 'taskAcceptTime' }, { prop: 'action', label: '操作管理', attrs: { // width: '260px', fixed: 'right' }, type: 'buttons' } ] export default options => { // 接口地址,required const api = 'server/discountInvoiceList' return new ApiModel({ api, formList, tableList, request(params) { return this.post(params) } }) }