upload.js
2.05 KB
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
const url = '/rop-scrm-equity/router'
const car_url = '/rop-scrm-carlife/router'
export default {
/**获取员工销售的无忧卡订单列表 */
orderListApi(data) {
data.method = 'scrm.api.equity.service.h5.service.order.get'
return window.$HTTP({
url,
data,
returnAll: false
})
},
/**获取列表总数 */
orderCountApi(data){
data.method = 'scrm.api.equity.service.h5.service.order.dataprefection.count'
return window.$HTTP({
url,
data,
returnAll: false
})
},
/**获取附件值 */
fileDataApi(data) {
data.method = 'scrm.api.equity.service.package.order.attachments.value.get.multiple'
return window.$HTTP({
url,
data,
returnAll: true
})
},
/**获取附件信息 */
fileInfoApi(data) {
data.method = 'scrm.api.equity.service.package.order.attachment.get'
return window.$HTTP({
url,
data,
returnAll: true
})
},
/**上传附件 */
uploadFileApi(data) {
data.method = 'scrm.api.equity.service.order.attachment.add'
return window.$HTTP({
url,
data,
returnAll: true
})
},
/**删除附件 */
deleteFileApi(data) {
data.method = 'scrm.api.equity.service.order.attachment.delete'
return window.$HTTP({
url,
data,
returnAll: true
})
},
/**上传图片 */
uploadImageApi(data){
// data.method = 'scrm.api.equity.common.upload.image'
data.method = 'scrm.api.carlife.common.uploadImg'
return window.$HTTP({
// url,
url:car_url,
data,
returnAll: true,
sign: true,
noSignAttr: ['file'],
})
},
// 核赔资料图片上传列表
claimsClassifyApi(data){
data.method = 'scrm.api.equity.service.attachment.classify.list'
return window.$HTTP({
url,
data,
returnAll: true
})
},
// 核赔资料图片上传
claimsClassifyuploadApi(data){
data.method = 'scrm.api.equity.service.claims.phone.attachment.save'
return window.$HTTP({
url,
data,
returnAll: true
})
},
}