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
| /**
| * 转账认领导入
| */
|
|
| import ApiModel from '@/utils/core/apiModel';
|
| export default options => {
|
| // 接口地址: required
| let api = ''
| // 接口地址: required
| switch (options) {
| case 'upload':
| // 转账认领导入
| api = 'repaymentReceive/uploadBatchReceive';
| break;
| case 'export':
| // 转账认领导出
| api = '/repaymentReceive/exportReceive';
| break;
| case 'del':
| // 转账认领删除
| api = '/repaymentReceive/deleteReceive';
| break;
| case 'account':
| // 转账认领入账
| api = '/repaymentReceive/accountReceive';
| break;
| default:
| break;
| }
|
| return new ApiModel({
| api,
| request(body) {
| switch (options) {
| case 'upload':
| // 转账认领导入
| return this.upload(body);
| case 'export':
| // 转账认领导出
| return this.submit(body);
| case 'del':
| case 'account':
| // 转账认领删除\入账
| return this.post(body);
|
| }
| }
| });
| };
|
|