/* * @Author: Pengjiantian * @Date: 2020-07-22 09:39:04 * @Last Modified by: Pengjiantian * @Last Modified time: 2020-08-13 14:56:43 */ /** * 任务调整 */ import ApiModel from '@/utils/core/apiModel' // 兜底机构-表单信息 const formList = [ { type: 'input', label: '申请编号', value: '', name: 'objectNo' }, { type: 'input', label: '兜底机构名称', value: '', name: 'fundName' }, { type: 'select', label: '当前阶段', value: [], name: 'phaseNoArray', options: [], attrs: ['filterable', 'multiple', 'clearable', 'collapse-tags'] }, { type: 'select', label: '兜底机构类型', value: '', name: 'fundType', options: [], attrs: ['filterable', 'clearable', 'collapse-tags'] }, { type: 'input', label: '兜底机构编码', value: '', name: 'fundCode' }, { type: 'dateRange', label: '申请日期', value: [], name: 'dateEnd', names: ['applyDateBegin', 'applyDateEnd'] } ] // 兜底机构-表格信息 const tableList = [ { label: '申请编号', prop: 'objectNo' }, { label: '兜底机构类型', prop: 'fundTypeDesc' }, { label: '兜底机构编码', prop: 'fundCode' }, { label: '兜底机构名称', prop: 'fundName' }, { label: '当前阶段', prop: 'phaseName' }, { label: '当前处理人', prop: 'currentUserName' }, { label: '当前处理人直属机构', prop: 'currentOrgName' }, { label: '申请日期', prop: 'inputDate' }, // { // label: '申请时间', // prop: 'inputTime' // }, { label: '申请人', prop: 'applyUserName' }, { label: '申请人直属机构', prop: 'applyOrgName' }, { prop: 'action', label: '操作管理', attrs: { fixed: 'right' }, type: 'buttons' } ] export default options => { // 接口地址,required const { queryType } = options let typeName = '' // 01 贷款机构 02 资金单元 03 业务通道 04 兜底机构 if (queryType === '01') { typeName = '贷款机构' } else if (queryType === '02') { typeName = '资金单元' } else if (queryType === '03') { typeName = '业务通道' } else if (queryType === '04') { typeName = '兜底机构' } formList[1].label = typeName + formList[1].label.slice(4) formList[3].label = typeName + formList[3].label.slice(4) formList[4].label = typeName + formList[4].label.slice(4) tableList[1].label = typeName + tableList[1].label.slice(4) tableList[2].label = typeName + tableList[2].label.slice(4) tableList[3].label = typeName + tableList[3].label.slice(4) // 资金单元 删除名称字段 if (queryType === '02') { formList.splice(3, 1) tableList.splice(3, 1) } const api = 'server/queryFlowManagerList' return new ApiModel({ api, formList, tableList, request(params) { return this.post(params) } }) }