zhaoxiaoqiang1
2026-01-04 f1d30d03186c79ca2cbcfe60d6d2ce7d73fba97b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
/*
 * @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)
    }
  })
}