/* * @Author: Pengjiantian * @Date: 2020-07-22 14:59:51 * @Last Modified by: Pengjiantian * @Last Modified time: 2020-07-22 15:37:05 */ /** * 任务调整流程流转(正常指派) */ import ApiModel from '@/utils/core/apiModel' // 表格信息 const formList = [ { type: 'input', attrs: ['readonly'], label: '申请编号', name: 'objectNo' }, { type: 'input', attrs: ['readonly'], label: '贷款机构类型', name: 'fundTypeDesc' }, { type: 'input', attrs: ['readonly'], label: '贷款机构编码', name: 'fundCode' }, { type: 'input', attrs: ['readonly'], label: '贷款机构名称', name: 'fundName' }, { type: 'input', attrs: ['readonly'], label: '当前阶段', name: 'phaseName' }, { type: 'input', attrs: ['readonly'], label: '当前处理人', name: 'currentUserName' }, { type: 'select', label: '新指派处理人', value: '', name: 'taskUserName', options: [], attrs: ['clearable', 'filterable', 'remote'], rules: ['required'] } ] export default options => { // 接口地址: required const api = 'server/turnFlowUserList' 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[2].label = typeName + formList[2].label.slice(4) formList[3].label = typeName + formList[3].label.slice(4) return new ApiModel({ api, formList, request(body) { return this.post(body) } }) }