liujie
2026-09-21 20051550f01227ecebbe0bf064e188dd242f58f2
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
import request from '@/utils/request'
 
export function listCard(data) {
  return request({ url: '/system/card/page', method: 'post', data })
}
 
export function getCard(cardId) {
  return request({
    url: '/system/card/detail',
    method: 'post',
    data: {
      cardId: cardId
    }
  })
}
 
export function findCardEmployee(employeeName) {
  return request({
    url: '/system/card/employee',
    method: 'post',
    data: {
      employeeName: employeeName
    },
    silentError: true
  })
}
 
export function addCard(data) {
  return request({ url: '/system/card/add', method: 'post', data })
}
 
export function updateCard(data) {
  return request({ url: '/system/card/edit', method: 'post', data })
}
 
export function bindCard(data) {
  return request({ url: '/system/card/bind', method: 'post', data })
}
 
export function unbindCard(data) {
  return request({ url: '/system/card/unbind', method: 'post', data })
}
 
export function delCard(cardIds) {
  return request({
    url: '/system/card/delete',
    method: 'post',
    data: {
      cardIds: cardIds
    }
  })
}
 
export function importCardData(data) {
  return request({
    url: '/system/card/importData',
    method: 'post',
    data,
    headers: { 'Content-Type': 'multipart/form-data' }
  })
}
 
export function exportCard(data) {
  return request({ url: '/system/card/export', method: 'post', data, responseType: 'blob' })
}
 
export function downloadCardTemplate() {
  return request({ url: '/system/card/importTemplate', method: 'post', responseType: 'blob' })
}