test.js
2.47 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
import {
GlAxios
} from 'glsx-vue-common'
const path = 'memberInfo'
// function getdetailsMemberInfo(params) {
// return GlAxios.get(`${path}/detailsMemberInfo`, { params })
// }
// function getlistMemberInfo(params) {
// return GlAxios.get(`${path}/listMemberInfo`, { params })
// }
function insertMemberCardDefineRf(params) {
return GlAxios.post(`${path}/insertMemberCardDefineRf`, params, { headers: { 'Content-Type': 'application/json; charset=utf-8' }, requestType: 'jsonString' })
}
function generateMemberBatch(params) {
return GlAxios.post(`${path}/generateMemberBatch`, params, { headers: { 'Content-Type': 'application/json; charset=utf-8' }, requestType: 'jsonString' })
}
function listMemberCardDefine(params) {
return GlAxios.post(`${path}/listMemberCardDefine`, params, { headers: { 'Content-Type': 'application/json; charset=utf-8' }, requestType: 'jsonString' })
}
function getlistByCardName(params) {
return GlAxios.get(`${path}/listByCardName`, { params })
}
function exportMemberCard(params) {
return GlAxios.post(`${path}/exportMemberCard`, params, { headers: { 'Content-Type': 'application/blob; charset=GBK' }, requestType: 'jsonString' })
}
// 查询权益卡详情
// export function memberCardDetails(data) {
// data.method = 'memberInfo/detailsMemberInfo'
// return request(data)
// }
function listMemberBatch(params) {
return GlAxios.post(`${path}/listMemberBatch`, params, { headers: { 'Content-Type': 'application/json; charset=utf-8' }, requestType: 'jsonString' })
}
function listMemberCard(params) {
return GlAxios.post(`${path}/listMemberCard`, params, { headers: { 'Content-Type': 'application/json; charset=utf-8' }, requestType: 'jsonString' })
}
function listRequisitionMemberCard(params) {
return GlAxios.post(`${path}/listRequisitionMemberCard`, params, { headers: { 'Content-Type': 'application/json; charset=utf-8' }, requestType: 'jsonString' })
}
function getMemberCardDetail(params) {
return GlAxios.get(`${path}/getMemberCardDetail`,{ params })
}
function exportMemberCardByBatchId(params) {
return GlAxios.post(`${path}/exportMemberCardByBatchId`,params, { headers: { 'Content-Type': 'application/json; charset=utf-8' }, requestType: 'jsonString' })
}
export {
// getdetailsMemberInfo,
// getlistMemberInfo,
generateMemberBatch,
insertMemberCardDefineRf,
listMemberCardDefine,
getlistByCardName,
exportMemberCard,
listMemberBatch,
listMemberCard,
listRequisitionMemberCard,
getMemberCardDetail,
exportMemberCardByBatchId
}