Commit ae283fa9 by 匡雅琴

客户认证管理接口联调

1 parent 2f811ade
...@@ -15,7 +15,7 @@ const integrateApi = { ...@@ -15,7 +15,7 @@ const integrateApi = {
}, },
// 积分兑换 // 积分兑换
convert(data = {}) { convert(data = {}) {
data.method = `${defaultPath}convert` data.method = 'scrm.api.renewal.integral.convert'
return request(data) return request(data)
} }
} }
......
Skip to content
Toggle navigation
glsx-web / glsx-oss-account
This project
Search
0
0
28
Avatar
ProjectRepositoryIssues 0Merge Requests 0PipelinesWikiSettings
FilesCommitsBranchesTagsContributorsGraphCompareCharts
master
glsx-oss-account src components d2-table index.vue
cwq0219's avatar
bug修复
cwq0219 committed 11 months ago
index.vue 8 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
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
<!-- 表格+分页 --> <!-- 表格+分页 -->
<template> <template>
<div class="d2-table"> <div class="d2-table">
......
...@@ -32,8 +32,14 @@ ...@@ -32,8 +32,14 @@
:pageConf="pageConf" :pageConf="pageConf"
> >
<div slot="authStatus" slot-scope="scope"> <div slot="authStatus" slot-scope="scope">
<span v-if="scope.scope.authStatus == 1">已认证</span> <span v-if="scope.scope.authStatus == 1">
<span v-if="scope.scope.authStatus == 0">未认证</span> <div class="status-dot2"></div>
已认证
</span>
<span v-if="scope.scope.authStatus == 0">
<div class="status-dot1"></div>
未认证
</span>
</div> </div>
<template slot="auth-button" slot-scope="scope"> <template slot="auth-button" slot-scope="scope">
<el-button v-if="scope.scope.authStatus == 0" type="text" @click="handleCertificate(scope.scope)">认证</el-button> <el-button v-if="scope.scope.authStatus == 0" type="text" @click="handleCertificate(scope.scope)">认证</el-button>
...@@ -65,7 +71,7 @@ ...@@ -65,7 +71,7 @@
<div>{{conversionInfo.bankNo}}</div> <div>{{conversionInfo.bankNo}}</div>
<div>{{conversionInfo.cardName}}</div> <div>{{conversionInfo.cardName}}</div>
<div> <div>
<el-input size="small" v-model="integralInput" clearable placeholder="请输入发放积分值" oninput ="value=value.replace(/^(0+)|[^\d]+/g,'')"></el-input> <el-input size="small" v-model="integralInput" @change="getValue" clearable placeholder="请输入发放积分值" oninput ="value=value.replace(/^(0+)|[^\d]+/g,'')"></el-input>
</div> </div>
<span>备注:1积分价值=1元</span> <span>备注:1积分价值=1元</span>
</div> </div>
...@@ -120,7 +126,8 @@ export default { ...@@ -120,7 +126,8 @@ export default {
}, },
{ {
label: '手机号', label: '手机号',
prop: 'mobile' prop: 'mobile',
width: 150
}, },
{ {
label: '车牌号', label: '车牌号',
...@@ -132,7 +139,8 @@ export default { ...@@ -132,7 +139,8 @@ export default {
}, },
{ {
label: '银行卡号', label: '银行卡号',
prop: 'bankNo' prop: 'bankNo',
width: 200
}, },
{ {
label: '持卡人', label: '持卡人',
...@@ -140,7 +148,8 @@ export default { ...@@ -140,7 +148,8 @@ export default {
}, },
{ {
label: '申请时间', label: '申请时间',
prop: 'createdDate' prop: 'createdDate',
width: 200
}, },
{ {
label: '关联订单', label: '关联订单',
...@@ -157,7 +166,8 @@ export default { ...@@ -157,7 +166,8 @@ export default {
}, },
{ {
label: '认证时间', label: '认证时间',
prop: 'authDate' prop: 'authDate',
width: 200
} }
] ]
}, },
...@@ -182,8 +192,6 @@ export default { ...@@ -182,8 +192,6 @@ export default {
console.log(res) console.log(res)
}) })
}, },
// 搜索框搜索
handleSearch() {},
// 重置搜索框搜索 // 重置搜索框搜索
handleReset() { handleReset() {
this.searchForm = { this.searchForm = {
...@@ -192,7 +200,13 @@ export default { ...@@ -192,7 +200,13 @@ export default {
plateNo: '', plateNo: '',
authStatus: '' authStatus: ''
} }
this.handleSearch() this.$nextTick(() => {
this.$refs.certificationTable.refreshTable()
})
},
// 获取输入积分兑换值
getValue(e) {
this.integralInput = e
}, },
// 认证 // 认证
handleCertificate(row) { handleCertificate(row) {
...@@ -210,11 +224,18 @@ export default { ...@@ -210,11 +224,18 @@ export default {
) )
.then(() => { .then(() => {
integrateApi.authentication(params).then(res => { integrateApi.authentication(params).then(res => {
console.log(res) if (res.code == 0) {
// this.$message({ this.$message({
// type: 'success', type: 'success',
// message: '认证成功!' message: '认证成功!'
// }) })
this.$refs.certificationTable.refreshTable()
} else {
this.$message({
type: 'error',
message: res.message
})
}
}) })
}) })
.catch(() => { .catch(() => {
...@@ -241,10 +262,23 @@ export default { ...@@ -241,10 +262,23 @@ export default {
console.log(this.integralInput) console.log(this.integralInput)
var params = {} var params = {}
if (this.integralInput) { if (this.integralInput) {
params.userId = conversionInfo.id params.userId = this.conversionInfo.id
params.amount = this.integralInput params.amount = this.integralInput
integrateApi.convert(params).then(res => { integrateApi.convert(params).then(res => {
console.log(res) console.log(res)
if (res.code == 0) {
this.$message({
type: 'success',
message: '积分兑换成功!'
})
this.closeDialog()
this.$refs.certificationTable.refreshTable()
} else {
this.$message({
type: 'error',
message: res.message
})
}
}) })
} else { } else {
this.$message({ this.$message({
...@@ -275,4 +309,18 @@ export default { ...@@ -275,4 +309,18 @@ export default {
color: #f56c6c; color: #f56c6c;
margin-right: 4px; margin-right: 4px;
} }
.status-dot1 {
display: inline-block;
width: 6px;
height: 6px;
background: #babdc2;
border-radius: 4px;
}
.status-dot2 {
display: inline-block;
width: 6px;
height: 6px;
background: #2cca74;
border-radius: 4px;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!