wlzboy
2025-09-27 c8a3df8ef73d08de60ca49e09a343e87bcc66a91
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
import request from '@/utils/request'
 
// 获取评价维度配置
export function getEvaluationDimensions() {
  return request({
    url: '/evaluation/dimensions',
    method: 'get'
  })
}
 
// 提交客户评价
export function submitEvaluation(data) {
  return request({
    url: '/evaluation/submit',
    method: 'post',
    data: data
  })
}
 
// 生成微信授权URL
export function getWechatAuthUrl(redirectUri, state) {
  return request({
    url: '/evaluation/wechat/authurl',
    method: 'get',
    params: { redirectUri, state }
  })
}
 
// 获取微信用户信息
export function getWechatUserInfo(code) {
  return request({
    url: '/evaluation/wechat/userinfo',
    method: 'get',
    params: { code }
  })
}
 
// 查询客户评价列表
export function listEvaluation(query) {
  return request({
    url: '/evaluation/list',
    method: 'get',
    params: query
  })
}
 
// 查询客户评价详细
export function getEvaluation(evaluationId) {
  return request({
    url: '/evaluation/' + evaluationId,
    method: 'get'
  })
}
 
// 新增客户评价
export function addEvaluation(data) {
  return request({
    url: '/evaluation',
    method: 'post',
    data: data
  })
}
 
// 修改客户评价
export function updateEvaluation(data) {
  return request({
    url: '/evaluation',
    method: 'put',
    data: data
  })
}
 
// 删除客户评价
export function delEvaluation(evaluationId) {
  return request({
    url: '/evaluation/' + evaluationId,
    method: 'delete'
  })
}
 
// 生成车辆评价二维码
export function generateQrcode(data) {
  return request({
    url: '/evaluation/qrcode/generate',
    method: 'post',
    data: data
  })
}
 
// 批量生成车辆评价二维码
export function batchGenerateQrcode(data) {
  return request({
    url: '/evaluation/qrcode/batch',
    method: 'post',
    data: data
  })
}
 
// 查询评价维度配置列表
export function listDimension(query) {
  return request({
    url: '/evaluation/dimension/list',
    method: 'get',
    params: query
  })
}
 
// 查询评价维度配置详细
export function getDimension(dimensionId) {
  return request({
    url: '/evaluation/dimension/' + dimensionId,
    method: 'get'
  })
}
 
// 新增评价维度配置
export function addDimension(data) {
  return request({
    url: '/evaluation/dimension',
    method: 'post',
    data: data
  })
}
 
// 修改评价维度配置
export function updateDimension(data) {
  return request({
    url: '/evaluation/dimension',
    method: 'put',
    data: data
  })
}
 
// 删除评价维度配置
export function delDimension(dimensionId) {
  return request({
    url: '/evaluation/dimension/' + dimensionId,
    method: 'delete'
  })
}
 
// 查询车辆评价二维码列表
export function listQrcode(query) {
  return request({
    url: '/evaluation/qrcode/list',
    method: 'get',
    params: query
  })
}
 
// 查询车辆评价二维码详细
export function getQrcode(qrcodeId) {
  return request({
    url: '/evaluation/qrcode/' + qrcodeId,
    method: 'get'
  })
}
 
// 删除车辆评价二维码
export function delQrcode(qrcodeId) {
  return request({
    url: '/evaluation/qrcode/' + qrcodeId,
    method: 'delete'
  })
}
 
// 查询客户评价列表(用于统计页面)
export function listCustomerEvaluation(query) {
  return request({
    url: '/evaluation/list',
    method: 'get',
    params: query
  })
}
 
// 查询客户评价详细(用于统计页面)
export function getCustomerEvaluation(evaluationId) {
  return request({
    url: '/evaluation/' + evaluationId,
    method: 'get'
  })
}
 
// 获取评价统计数据
export function getEvaluationStatistics(query) {
  return request({
    url: '/evaluation/evaluation/statistics',
    method: 'get',
    params: query
  })
}