/** * 贴息开票申请列表 */ import ApiModel from '@/utils/core/apiModel' // 表单信息 const formList = [ // { // type: 'input', // label: '申请编号', // value: '', // name: 'invoiceSerialno' // }, // { // type: 'input', // label: '开票申请主题', // value: '', // name: 'invoiceTheMes' // }, { type: 'select', label: '当前流程状态', value: [], name: 'phaseNoArray', options: [], attrs: ['filterable', 'multiple', 'clearable', 'collapse-tags'] }, { type: 'select', label: '开票种类', value: [], name: 'invoiceClassArray', options: [], attrs: ['filterable', 'multiple', 'clearable', 'collapse-tags'] //多选设置 }, { type: 'select', label: '开票类型', value: [], name: 'invoiceTypeArray', options: [], attrs: ['filterable', 'multiple', 'clearable', 'collapse-tags'] //多选设置 }, { type: 'input', label: '开票申请金额', name: 'invoiceApplyAmount', children: [ { type: 'input', value: '', name: 'beginInvoiceApplyAmount' }, { type: 'input', value: '', name: 'endInvoiceApplyAmount' } ] }, { type: 'input', label: '发票购买方', value: '', name: 'invoiceBuyer' }, { type: 'input', label: '申请人', value: '', name: 'userName' }, { type: 'dateRange', label: '申请时间', value: [], name: 'applyTime', names: ['beginApplyTime', 'endApplyTime'] } ] // 表格信息 const tableList = [ { label: '发票申请编号', prop: 'invoiceSerialno' }, // { // label: '开票申请主题', // prop: 'invoiceTheMes' // }, { label: '开票种类', prop: 'invoiceClassDesc', }, { label: '开票类型', prop: 'invoiceTypeDesc' }, { label: '开票申请金额', prop: 'invoiceApplyAmount', isMoney: true }, { label: '发票购买方', prop: 'invoiceBuyer' }, { label: '发票销售方', prop: 'invoiceSeller' }, { label: '开票申请说明', prop: 'invoiceApplyState' }, { label: '当前流程状态', prop: 'phaseName' }, // { // label: '当前处理人', // prop: 'currentUserName' // }, // { // label: '当前处理人所属机构', // prop: 'currentOrgName' // }, { label: '申请人', prop: 'inputUserName' }, // { // label: '申请人所属机构', // prop: 'inputOrgName' // }, { label: '申请时间', prop: 'applyTime' }, { prop: 'action', label: '操作管理', attrs: { width: '130px', fixed: 'right' }, type: 'buttons' } ] export default options => { // 接口地址,required const api = 'server/applyDiscountInvoiceList' return new ApiModel({ api, formList, tableList, request(params) { return this.post(params) } }) }