Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-renewal
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2f811ade
authored
Aug 05, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
接口调用
1 parent
6a902284
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
630 additions
and
212 deletions
package-lock.json
package.json
src/api/integrate.js
src/components/d2-table/index.vue
src/views/insurance/order/index/index.vue
src/views/insurance/order/orderDetail/index.vue
src/views/integrate/certification/index.vue
package-lock.json
View file @
2f811ad
...
@@ -2671,6 +2671,11 @@
...
@@ -2671,6 +2671,11 @@
"integrity"
:
"sha1-tUc7M9yXxCTl2Y3IfVXU2KKci/I="
,
"integrity"
:
"sha1-tUc7M9yXxCTl2Y3IfVXU2KKci/I="
,
"dev"
:
true
"dev"
:
true
},
},
"charenc"
:
{
"version"
:
"0.0.2"
,
"resolved"
:
"https://registry.npmmirror.com/charenc/-/charenc-0.0.2.tgz"
,
"integrity"
:
"sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA=="
},
"check-types"
:
{
"check-types"
:
{
"version"
:
"7.4.0"
,
"version"
:
"7.4.0"
,
"resolved"
:
"http://registry.npm.taobao.org/check-types/download/check-types-7.4.0.tgz"
,
"resolved"
:
"http://registry.npm.taobao.org/check-types/download/check-types-7.4.0.tgz"
,
...
@@ -3338,6 +3343,11 @@
...
@@ -3338,6 +3343,11 @@
"which"
:
"^1.2.9"
"which"
:
"^1.2.9"
}
}
},
},
"crypt"
:
{
"version"
:
"0.0.2"
,
"resolved"
:
"https://registry.npmmirror.com/crypt/-/crypt-0.0.2.tgz"
,
"integrity"
:
"sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow=="
},
"crypto-browserify"
:
{
"crypto-browserify"
:
{
"version"
:
"3.12.0"
,
"version"
:
"3.12.0"
,
"resolved"
:
"http://registry.npm.taobao.org/crypto-browserify/download/crypto-browserify-3.12.0.tgz"
,
"resolved"
:
"http://registry.npm.taobao.org/crypto-browserify/download/crypto-browserify-3.12.0.tgz"
,
...
@@ -3722,6 +3732,11 @@
...
@@ -3722,6 +3732,11 @@
"integrity"
:
"sha1-6vQ5/U1ISK105cx9vvIAZyueNFs="
,
"integrity"
:
"sha1-6vQ5/U1ISK105cx9vvIAZyueNFs="
,
"dev"
:
true
"dev"
:
true
},
},
"dayjs"
:
{
"version"
:
"1.11.4"
,
"resolved"
:
"https://registry.npmmirror.com/dayjs/-/dayjs-1.11.4.tgz"
,
"integrity"
:
"sha512-Zj/lPM5hOvQ1Bf7uAvewDaUcsJoI6JmNqmHhHl3nyumwe0XHwt8sWdOVAPACJzCebL8gQCi+K49w7iKWnGwX9g=="
},
"de-indent"
:
{
"de-indent"
:
{
"version"
:
"1.0.2"
,
"version"
:
"1.0.2"
,
"resolved"
:
"http://registry.npm.taobao.org/de-indent/download/de-indent-1.0.2.tgz"
,
"resolved"
:
"http://registry.npm.taobao.org/de-indent/download/de-indent-1.0.2.tgz"
,
...
@@ -5425,9 +5440,9 @@
...
@@ -5425,9 +5440,9 @@
}
}
},
},
"glsx-vue-common"
:
{
"glsx-vue-common"
:
{
"version"
:
"
1.2.9
"
,
"version"
:
"
2.0.5
"
,
"resolved"
:
"https://registry.npm
js.org/glsx-vue-common/-/glsx-vue-common-1.2.9
.tgz"
,
"resolved"
:
"https://registry.npm
mirror.com/glsx-vue-common/-/glsx-vue-common-2.0.5
.tgz"
,
"integrity"
:
"sha512-
oG7tbd5ex0xmcmrBzmYYrRj8aXjFpfBl2/etUqzwHhuSswNl7hAxuhmJxF1JhnOoOcOjgq/HqIFYtnv3eGt1jw
=="
,
"integrity"
:
"sha512-
YMwjcuc0svvm/nbqnut1E0Obp3JFMfi1Rx/+RU2LGRiVKI0/RQveVYsy7CXbOGgL6hlnIL/GwLCMwJ57qtaWpg
=="
,
"requires"
:
{
"requires"
:
{
"vue"
:
"^2.5.10"
"vue"
:
"^2.5.10"
}
}
...
@@ -10309,6 +10324,15 @@
...
@@ -10309,6 +10324,15 @@
"safe-buffer"
:
"^5.0.1"
"safe-buffer"
:
"^5.0.1"
}
}
},
},
"sha1"
:
{
"version"
:
"1.1.1"
,
"resolved"
:
"https://registry.npmmirror.com/sha1/-/sha1-1.1.1.tgz"
,
"integrity"
:
"sha512-dZBS6OrMjtgVkopB1Gmo4RQCDKiZsqcpAQpkV/aaj+FCrCg8r4I4qMkDPQjBgLIxlmu9k4nUbWq6ohXahOneYA=="
,
"requires"
:
{
"charenc"
:
">= 0.0.1"
,
"crypt"
:
">= 0.0.1"
}
},
"shallow-clone"
:
{
"shallow-clone"
:
{
"version"
:
"1.0.0"
,
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npmjs.org/shallow-clone/-/shallow-clone-1.0.0.tgz"
,
"resolved"
:
"https://registry.npmjs.org/shallow-clone/-/shallow-clone-1.0.0.tgz"
,
...
...
package.json
View file @
2f811ad
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
},
},
"dependencies"
:
{
"dependencies"
:
{
"axios"
:
"^0.18.0"
,
"axios"
:
"^0.18.0"
,
"dayjs"
:
"^1.11.4"
,
"element-ui"
:
"^2.15.1"
,
"element-ui"
:
"^2.15.1"
,
"glsx-vue-common"
:
"^2.0.5"
,
"glsx-vue-common"
:
"^2.0.5"
,
"lodash"
:
"^4.17.10"
,
"lodash"
:
"^4.17.10"
,
...
...
src/api/integrate.js
View file @
2f811ad
import
request
from
'./request'
import
request
from
'./request'
const
defaultPath
=
'scrm.api.work.wechat.account.'
const
defaultPath
=
'scrm.api.renewal.customer.'
// const url = 'http://192.168.3.101:8247/rop-scrm-renewal'
const
integrateApi
=
{
const
integrateApi
=
{
listCustomizedAgentWithPage
(
data
=
{})
{
// 获取客户认证管理列表
data
.
method
=
`
${
defaultPath
}
listCustomizedAgentWithPage`
customerList
(
data
=
{})
{
data
.
method
=
`
${
defaultPath
}
list`
return
request
(
data
)
},
// 客户认证
authentication
(
data
=
{})
{
data
.
method
=
`
${
defaultPath
}
authentication`
return
request
(
data
)
},
// 积分兑换
convert
(
data
=
{})
{
data
.
method
=
`
${
defaultPath
}
convert`
return
request
(
data
)
return
request
(
data
)
}
}
}
}
...
...
src/components/d2-table/index.vue
View file @
2f811ad
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"
>
<el-table
<el-table
:ref=
"tableParams.mutiSelectName + 'MutiTable' || '
m
utiTable'"
:ref=
"tableParams.mutiSelectName + 'MutiTable' || '
M
utiTable'"
:data=
"getListApi ? data : tableData"
:data=
"getListApi ? data : tableData"
:row-key=
"tableParams.mutiSelectUniqueKey || ''"
:row-key=
"tableParams.mutiSelectUniqueKey || ''"
v-loading=
"loading"
v-loading=
"loading"
...
@@ -26,7 +354,7 @@
...
@@ -26,7 +354,7 @@
width=
"60px"
width=
"60px"
label=
"序号"
label=
"序号"
type=
'index'
type=
'index'
:index=
"index=>index+(page
.currentPage - 1) * page.pageSize
+ 1"
:index=
"index=>index+(page
[this.pageConf.pageNum] - 1) * page[this.pageConf.pageSize]
+ 1"
></el-table-column>
></el-table-column>
<el-table-column
<el-table-column
v-for=
"(item, index) in tableParams.tableColumns"
v-for=
"(item, index) in tableParams.tableColumns"
...
@@ -93,16 +421,15 @@
...
@@ -93,16 +421,15 @@
background
background
@
size-change=
"handleSizeChange"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
@
current-change=
"handleCurrentChange"
:current-page=
"page
.currentPage
"
:current-page=
"page
[this.pageConf.pageNum]
"
:page-sizes=
"[10,20,30,40]"
:page-sizes=
"[10,20,30,40]"
:page-size=
"page
.pageSize
"
:page-size=
"page
[this.pageConf.pageSize]
"
:total=
"getListApi ? total : tableTotal"
:total=
"getListApi ? total : tableTotal"
:layout=
"layout"
:layout=
"layout"
>
>
</el-pagination>
</el-pagination>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'd2-table'
,
name
:
'd2-table'
,
...
@@ -111,10 +438,7 @@ export default {
...
@@ -111,10 +438,7 @@ export default {
loading
:
false
,
loading
:
false
,
data
:
[],
data
:
[],
// 页码
// 页码
page
:
{
page
:
{},
pageSize
:
10
,
currentPage
:
1
},
total
:
10
,
total
:
10
,
// 排序
// 排序
sortColum
:
''
,
sortColum
:
''
,
...
@@ -123,12 +447,11 @@ export default {
...
@@ -123,12 +447,11 @@ export default {
mutiSelectArr
:
{}
mutiSelectArr
:
{}
}
}
},
},
props
:
{
props
:
{
// 搜索条件
// 搜索条件
searchForm
:
{
searchForm
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
[]
default
:
()
=>
{}
},
},
// 表格数据-外部传入
// 表格数据-外部传入
tableData
:
{
tableData
:
{
...
@@ -158,6 +481,14 @@ export default {
...
@@ -158,6 +481,14 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
true
default
:
true
},
},
pageConf
:
{
type
:
Object
,
default
:
()
=>
({
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'totalCount'
})
},
// 分页组件配置
// 分页组件配置
layout
:
{
layout
:
{
type
:
String
,
type
:
String
,
...
@@ -211,46 +542,41 @@ export default {
...
@@ -211,46 +542,41 @@ export default {
}
}
}
}
},
},
mounted
()
{
mounted
()
{
this
.
page
=
{}
this
.
page
[
this
.
pageConf
.
pageSize
]
=
10
this
.
page
[
this
.
pageConf
.
pageNum
]
=
1
const
btn
=
document
.
getElementById
(
this
.
tableParams
.
btnId
)
const
btn
=
document
.
getElementById
(
this
.
tableParams
.
btnId
)
btn
&&
btn
.
addEventListener
(
'click'
,
this
.
refreshEmit
)
btn
&&
btn
.
addEventListener
(
'click'
,
this
.
refreshEmit
)
this
.
getListApi
&&
this
.
refreshTable
()
this
.
getListApi
&&
this
.
refreshTable
()
},
},
methods
:
{
methods
:
{
// 排序
// 排序
sortChange
({
column
,
prop
,
order
})
{
sortChange
({
column
,
prop
,
order
})
{
this
.
sortColum
=
order
?
prop
:
''
this
.
sortColum
=
order
?
prop
:
''
this
.
sort
=
order
this
.
sort
=
order
this
.
refreshTable
()
this
.
refreshTable
()
},
},
// 多选
// 多选
handleSelect
(
val
)
{
handleSelect
(
val
)
{
this
.
mutiSelectArr
[
this
.
tableParams
.
mutiSelectName
]
=
val
this
.
mutiSelectArr
[
this
.
tableParams
.
mutiSelectName
]
=
val
},
},
// 清空多选
// 清空多选
clearMutiSelect
()
{
clearMutiSelect
()
{
this
.
mutiSelectArr
[
this
.
tableParams
.
mutiSelectName
]
=
[]
this
.
mutiSelectArr
[
this
.
tableParams
.
mutiSelectName
]
=
[]
this
.
$refs
[
this
.
tableParams
.
mutiSelectName
+
'MutiTable'
].
clearSelection
()
this
.
$refs
[
this
.
tableParams
.
mutiSelectName
+
'MutiTable'
].
clearSelection
()
},
},
// 发布事件,以期查询条件改变后,页面图表需要刷新
// 发布事件,以期查询条件改变后,页面图表需要刷新
refreshEmit
()
{
refreshEmit
()
{
this
.
$emit
(
'searchChange'
)
this
.
$emit
(
'searchChange'
)
this
.
refreshTable
(
true
,
true
)
this
.
refreshTable
(
true
,
true
)
},
},
refreshTable
(
clearMuti
=
true
,
resetPageNum
=
false
)
{
refreshTable
(
clearMuti
=
true
,
resetCurrentPage
=
false
)
{
this
.
beforeSearchFn
().
then
(
res
=>
{
this
.
beforeSearchFn
().
then
(
res
=>
{
// console.log(res)
// 清空多选
// 清空多选
clearMuti
&&
this
.
clearMutiSelect
()
clearMuti
&&
this
.
clearMutiSelect
()
this
.
loading
=
true
this
.
loading
=
true
reset
CurrentPage
&&
(
this
.
page
.
currentPage
=
1
)
reset
PageNum
&&
(
this
.
page
.
pageNum
=
1
)
var
params
=
{
var
params
=
{
...
this
.
page
,
...
this
.
page
,
...
this
.
searchForm
...
this
.
searchForm
...
@@ -259,30 +585,42 @@ export default {
...
@@ -259,30 +585,42 @@ export default {
params
.
sortColum
=
this
.
sortColum
params
.
sortColum
=
this
.
sortColum
params
.
sort
=
this
.
sort
===
'descending'
?
1
:
0
params
.
sort
=
this
.
sort
===
'descending'
?
1
:
0
}
}
this
.
getListApi
(
params
).
then
(
res
=>
{
this
.
getListApi
(
params
)
this
.
data
=
res
[
this
.
tableParams
.
listName
]
.
then
(
res
=>
{
this
.
total
=
res
.
pagination
.
totalCount
console
.
log
(
res
)
this
.
loading
=
false
this
.
data
=
this
.
findVal
(
res
,
this
.
tableParams
.
listName
)
}).
catch
(()
=>
{
this
.
total
=
this
.
findVal
(
res
,
this
.
pageConf
.
totalCount
)
this
.
loading
=
false
this
.
loading
=
false
})
})
.
catch
(()
=>
{
this
.
loading
=
false
})
})
})
},
},
// 找返回值
findVal
(
res
,
rankStr
,
attr
)
{
var
rankList
=
rankStr
.
split
(
'.'
)
if
(
!
rankStr
)
{
return
res
}
return
this
.
findVal
(
res
[
rankList
[
0
]],
rankList
.
splice
(
1
).
join
(
'.'
),
attr
)
},
// 每页条数
// 每页条数
handleSizeChange
(
value
)
{
handleSizeChange
(
value
)
{
this
.
page
.
pageSize
=
value
this
.
page
[
this
.
pageConf
.
pageSize
]
=
value
this
.
getListApi
?
this
.
refreshTable
(
false
)
:
this
.
$emit
(
'refreshTable'
,
this
.
page
)
this
.
getListApi
?
this
.
refreshTable
(
false
)
:
this
.
$emit
(
'refreshTable'
,
this
.
page
)
},
},
// 页码
// 页码
handleCurrentChange
(
value
)
{
handleCurrentChange
(
value
)
{
this
.
page
.
currentPage
=
value
this
.
page
[
this
.
pageConf
.
pageNum
]
=
value
this
.
getListApi
?
this
.
refreshTable
(
false
)
:
this
.
$emit
(
'refreshTable'
,
this
.
page
)
this
.
getListApi
?
this
.
refreshTable
(
false
)
:
this
.
$emit
(
'refreshTable'
,
this
.
page
)
}
}
}
}
}
}
</
script
>
</
script
>
<
style
>
<
style
>
.a-click
{
.a-click
{
...
...
src/views/insurance/order/index/index.vue
View file @
2f811ad
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<
template
>
<
template
>
<div>
<div>
<div>
<div>
<el-form
:inline=
"true"
:model=
"searchForm"
>
<el-form
:inline=
"true"
:model=
"searchForm"
>
<el-form-item
label=
"订单编号:"
>
<el-form-item
label=
"订单编号:"
>
<el-input
v-model=
"searchForm.orderNo"
size=
"small"
placeholder=
"请输入订单编码"
></el-input>
<el-input
v-model=
"searchForm.orderNo"
size=
"small"
placeholder=
"请输入订单编码"
></el-input>
</el-form-item>
</el-form-item>
...
@@ -18,26 +18,29 @@
...
@@ -18,26 +18,29 @@
<el-form-item
label=
"所属商户:"
>
<el-form-item
label=
"所属商户:"
>
<el-input
v-model=
"searchForm.merchantName"
size=
"small"
placeholder=
"请输入商户名称"
></el-input>
<el-input
v-model=
"searchForm.merchantName"
size=
"small"
placeholder=
"请输入商户名称"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"业务归属机构:"
>
<el-input
v-model=
"searchForm.orgnization"
size=
"small"
placeholder=
"请输入业务归属机构"
></el-input>
</el-form-item>
<el-form-item
label=
"订单时间:"
>
<el-form-item
label=
"订单时间:"
>
<el-date-picker
<el-date-picker
v-model=
"searchForm.orderTime"
v-model=
"searchForm.orderTime"
type=
"daterange"
type=
"daterange"
size=
"small"
size=
"small"
range-separator=
"至
"
value-format=
"yyyy-MM-dd HH:mm:ss
"
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
>
end-placeholder=
"结束日期"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
"业务归属机构:"
>
<el-input
v-model=
"searchForm.orgnization"
size=
"small"
placeholder=
"请输入业务归属机构"
></el-input>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
plain
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
plain
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
<el-button
size=
"small"
type=
"primary"
style=
"margin-bottom: 20px"
>
导出
</el-button>
<div
class=
"table-top"
>
<div>
订单列表
</div>
<el-button
class=
"output-btn"
size=
"small"
style=
"margin-bottom: 20px"
@
click=
"handlerOutput"
>
导出
</el-button>
</div>
<div>
<div>
<d2-table
<d2-table
ref=
"certificationTable"
ref=
"certificationTable"
...
@@ -45,9 +48,9 @@
...
@@ -45,9 +48,9 @@
:pageConf=
"pageConf"
:pageConf=
"pageConf"
:tableData=
"tableData"
:tableData=
"tableData"
>
>
<template
slot=
"auth-button"
slot-scope=
"scope"
>
<template
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"handleViewDetail(scope.scope)"
>
查看详情
</el-button>
<el-button
type=
"text"
@
click=
"handleViewDetail(scope.scope)"
>
查看
</el-button>
</
template
>
</
template
>
</d2-table>
</d2-table>
</div>
</div>
</div>
</div>
...
@@ -139,7 +142,13 @@ export default {
...
@@ -139,7 +142,13 @@ export default {
methods
:
{
methods
:
{
// 搜索框搜索
// 搜索框搜索
handleSearch
()
{},
handleSearch
()
{
if
(
this
.
searchForm
.
orderTime
)
{
this
.
searchForm
.
orderTime
=
this
.
searchForm
.
orderTime
[
0
]
+
'-'
+
this
.
searchForm
.
orderTime
[
1
]
}
console
.
log
(
this
.
searchForm
)
},
// 重置搜索框搜索
// 重置搜索框搜索
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
{
this
.
searchForm
=
{
...
@@ -162,9 +171,21 @@ export default {
...
@@ -162,9 +171,21 @@ export default {
'订单管理'
,
'订单管理'
,
'*订单管理详情'
'*订单管理详情'
])
])
}
},
// 导出
handlerOutput
()
{}
}
}
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.table-top
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
}
.output-btn
{
border-color
:
#1994f9
;
color
:
#1994f9
;
margin-bottom
:
10px
!important
;
}
</
style
>
</
style
>
src/views/insurance/order/orderDetail/index.vue
View file @
2f811ad
...
@@ -5,20 +5,32 @@
...
@@ -5,20 +5,32 @@
</div>
</div>
<div
class=
"orderinfo-box"
>
<div
class=
"orderinfo-box"
>
<div
class=
"orderinfo-left"
>
<div
class=
"orderinfo-left"
>
<div>
客户名称:
</div>
<div>
<div>
手机号:
</div>
<div
class=
"customer-info-title"
>
客户名称:
</div>
<div>
服务关联手机号:
</div>
<span>
xxxxxx
</span>
<div>
身份证号:
</div>
</div>
<div>
客户地址:
</div>
<div>
<div>
所属商户:
</div>
<div
class=
"customer-info-title"
>
服务关联手机号:
</div>
<span>
xxxxxx
</span>
</div>
<div>
<div
class=
"customer-info-title"
>
客户地址:
</div>
<span>
xxxxxx
</span>
</div>
</div>
</div>
<div
class=
"orderinfo-right"
>
<div
class=
"orderinfo-right"
>
<div>
xxxxxxx
</div>
<div>
<div>
xxxxxxxxxxxx
</div>
<div
class=
"customer-info-title"
>
手机号:
</div>
<div>
xxxxxxxxxxxx
</div>
<span>
xxxxxx
</span>
<div>
xxxxxxxxxxxx
</div>
</div>
<div>
xxxxxxxxxxxx
</div>
<div>
<div>
xxxxxxxxxxxx
</div>
<div
class=
"customer-info-title"
>
身份证号:
</div>
<span>
xxxxxx
</span>
</div>
<div>
<div
class=
"customer-info-title"
>
所属商户:
</div>
<span>
xxxxxx
</span>
</div>
</div>
</div>
</div>
</div>
<div
class=
"title"
>
<div
class=
"title"
>
...
@@ -26,37 +38,69 @@
...
@@ -26,37 +38,69 @@
</div>
</div>
<div
class=
"orderinfo-box"
>
<div
class=
"orderinfo-box"
>
<div
class=
"orderinfo-left"
>
<div
class=
"orderinfo-left"
>
<div>
车牌号:
</div>
<div>
<div>
车架号:
</div>
<div
class=
"customer-info-title"
>
车牌号:
</div>
<span>
xxxxxx
</span>
</div>
</div>
</div>
<div
class=
"orderinfo-right"
>
<div
class=
"orderinfo-right"
>
<div>
{{
orderInfo
.
cardName
}}
</div>
<div>
<div>
{{
orderInfo
.
cardName
}}
</div>
<div
class=
"customer-info-title"
>
车架号:
</div>
<span>
xxxxxx
</span>
</div>
</div>
</div>
</div>
</div>
<div
class=
"title"
>
<div
class=
"title"
>
<span
class=
"title-name"
>
保险信息
</span>
<span
class=
"title-name"
>
保险信息
</span>
</div>
</div>
<div
class=
"orderinfo-box"
>
<div>
<div
class=
"orderinfo-
left
"
>
<div
class=
"orderinfo-
box
"
>
<div>
商业险保单号:
</div
>
<div
class=
"orderinfo-left"
>
<div
>
商业险保费
:
</div>
<div
class=
"customer-info-title"
>
商业险保单号
:
</div>
<
div>
交强险保单号:
</div
>
<
span>
xxxxx
</span
>
<div>
交强险保费:
</div>
</div>
<div>
非车险保单号:
</div
>
<div
class=
"orderinfo-left"
>
<div
>
非车
险保费:
</div>
<div
class=
"customer-info-title"
>
商业
险保费:
</div>
<
div>
总保费:
</div
>
<
span>
xxxxx
</span
>
<div>
起保日期:
</div>
</div>
</div>
</div>
<div
class=
"orderinfo-right"
>
<div
class=
"orderinfo-box"
>
<div>
{{
orderInfo
.
name
}}
</div>
<div
class=
"orderinfo-left"
>
<div>
{{
orderInfo
.
mobile
}}
</div>
<div
class=
"customer-info-title"
>
商业险起保日期:
</div>
<div>
{{
orderInfo
.
plateNo
}}
</div>
<span>
xxxxx
</span>
<div>
{{
orderInfo
.
bankName
}}
</div>
</div>
<div>
{{
orderInfo
.
bankNo
}}
</div>
</div>
<div>
{{
orderInfo
.
cardName
}}
</div>
<div
class=
"orderinfo-box"
>
<div>
{{
orderInfo
.
cardName
}}
</div>
<div
class=
"orderinfo-left"
>
<div>
{{
orderInfo
.
cardName
}}
</div>
<div
class=
"customer-info-title"
>
交强险保单号:
</div>
<span>
xxxxx
</span>
</div>
<div
class=
"orderinfo-left"
>
<div
class=
"customer-info-title"
>
交强险保费:
</div>
<span>
xxxxx
</span>
</div>
</div>
<div
class=
"orderinfo-box"
>
<div
class=
"orderinfo-left"
>
<div
class=
"customer-info-title"
>
交强险起保日期:
</div>
<span>
xxxxx
</span>
</div>
</div>
<div
class=
"orderinfo-box"
>
<div
class=
"orderinfo-left"
>
<div
class=
"customer-info-title"
>
非车险保单号:
</div>
<span>
xxxxx
</span>
</div>
<div
class=
"orderinfo-left"
>
<div
class=
"customer-info-title"
>
非车险保费:
</div>
<span>
xxxxx
</span>
</div>
</div>
<div
class=
"orderinfo-box"
>
<div
class=
"orderinfo-left"
>
<div
class=
"customer-info-title"
>
总保费:
</div>
<span>
xxxxx
</span>
</div>
</div>
</div>
</div>
</div>
<div
class=
"title"
>
<div
class=
"title"
>
...
@@ -64,7 +108,7 @@
...
@@ -64,7 +108,7 @@
</div>
</div>
<div
class=
"server-info"
>
<div
class=
"server-info"
>
<table>
<table>
<thead>
<thead
class=
"table-head"
>
<td>
服务名称
</td>
<td>
服务名称
</td>
<td>
服务代码
</td>
<td>
服务代码
</td>
<td>
服务单价
</td>
<td>
服务单价
</td>
...
@@ -73,14 +117,14 @@
...
@@ -73,14 +117,14 @@
</thead>
</thead>
<tbody>
<tbody>
<tr>
<tr>
<td>
健康咨询
</td>
<td
class=
"table-head"
>
健康咨询
</td>
<td>
xxx
</td>
<td>
xxx
</td>
<td>
xxx
</td>
<td>
xxx
</td>
<td>
xxx
</td>
<td>
xxx
</td>
<td>
xxx
</td>
<td>
xxx
</td>
</tr>
</tr>
<tr>
<tr>
<td>
无忧服务
</td>
<td
class=
"table-head"
>
无忧服务
</td>
<td>
xxx
</td>
<td>
xxx
</td>
<td>
xxx
</td>
<td>
xxx
</td>
<td>
xxx
</td>
<td>
xxx
</td>
...
@@ -93,27 +137,29 @@
...
@@ -93,27 +137,29 @@
<span
class=
"title-name"
>
订单信息
</span>
<span
class=
"title-name"
>
订单信息
</span>
</div>
</div>
<div
class=
"orderinfo-box"
>
<div
class=
"orderinfo-box"
>
<div
class=
"orderinfo-left"
>
<div
class=
"orderinfo-left"
>
<div>
订单编号:
</div>
<div
class=
"customer-info-title"
>
订单编号:
</div>
<div>
订单时间:
</div>
<span>
xxxxx
</span>
<div>
业务归属机构:
</div>
</div>
<div
class=
"orderinfo-left"
>
<div
class=
"customer-info-title"
>
订单时间:
</div>
<span>
xxxxx
</span>
</div>
</div>
</div>
<div
class=
"orderinfo-right"
>
<div
class=
"orderinfo-box"
>
<div>
{{
orderInfo
.
cardName
}}
</div>
<div
class=
"orderinfo-left"
>
<div>
{{
orderInfo
.
cardName
}}
</div>
<div
class=
"customer-info-title"
>
业务归属机构:
</div>
<div>
{{
orderInfo
.
cardName
}}
</div>
<span>
xxxxx
</span>
</div>
</div>
</div>
</div>
<div
class=
"btn-class"
>
<div
class=
"btn-class"
>
<el-button
size=
"medium"
type=
"primary
"
>
返回
</el-button>
<el-button
size=
"medium"
@
click=
"back
"
>
返回
</el-button>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'GlsxOssRenewalIndex'
,
data
()
{
data
()
{
return
{
return
{
// 订单信息
// 订单信息
...
@@ -121,9 +167,24 @@ export default {
...
@@ -121,9 +167,24 @@ export default {
}
}
},
},
mounted
()
{},
mounted
()
{
this
.
getOrderInfo
()
},
methods
:
{}
methods
:
{
// 获取订单详情
getOrderInfo
()
{},
// 返回
back
()
{
this
.
$root
.
to
([
'ubi续保'
,
'续保'
,
'保险渠道管理'
,
'订单管理'
,
'订单管理列表'
])
}
}
}
}
</
script
>
</
script
>
...
@@ -131,15 +192,18 @@ export default {
...
@@ -131,15 +192,18 @@ export default {
.contents
{
.contents
{
height
:
100%
;
height
:
100%
;
overflow
:
auto
;
overflow
:
auto
;
padding
:
0
16px
;
}
}
.title
{
.title
{
height
:
40px
;
height
:
40px
;
align-items
:
center
;
line-height
:
40px
;
border-bottom
:
1px
solid
#e5e5e5
;
background
:
#f7f8fa
;
margin-bottom
:
10px
;
}
}
.title-name
{
.title-name
{
padding-left
:
20px
;
padding-left
:
20px
;
font-size
:
20px
;
font-size
:
16px
;
font-weight
:
500
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
color
:
#333333
;
color
:
#333333
;
}
}
...
@@ -147,18 +211,22 @@ export default {
...
@@ -147,18 +211,22 @@ export default {
display
:
flex
;
display
:
flex
;
margin-bottom
:
15px
;
margin-bottom
:
15px
;
}
}
.orderinfo-left
{
width
:
15%
;
text-align
:
right
;
}
.orderinfo-left
,
.orderinfo-left
,
.orderinfo-right
{
.orderinfo-right
{
font-size
:
16px
;
width
:
50%
;
font-size
:
14px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
font-weight
:
400
;
color
:
#666666
;
color
:
#333333
;
line-height
:
40px
;
}
.orderinfo-left
.customer-info-title
,
.orderinfo-right
.customer-info-title
{
width
:
154px
;
text-align
:
right
;
display
:
inline-block
;
padding
:
5px
0
;
}
}
.server-info
{
.server-info
{
padding
:
20px
;
padding
:
20px
;
}
}
...
@@ -171,12 +239,16 @@ table {
...
@@ -171,12 +239,16 @@ table {
border
:
1px
solid
#e5e5e5
;
border
:
1px
solid
#e5e5e5
;
border-collapse
:
collapse
;
border-collapse
:
collapse
;
border-spacing
:
0
;
border-spacing
:
0
;
text-align
:
center
;
}
}
td
{
td
{
border
:
1px
solid
#e5e5e5
;
border
:
1px
solid
#e5e5e5
;
}
}
td
,
td
,
th
{
th
{
padding
:
10px
40px
;
padding
:
8px
60px
;
}
.table-head
{
background
:
#f7f8fa
;
}
}
</
style
>
</
style
>
src/views/integrate/certification/index.vue
View file @
2f811ad
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div>
<div>
<el-form
:inline=
"true"
:model=
"searchForm"
>
<el-form
:inline=
"true"
:model=
"searchForm"
>
<el-form-item
label=
"客户姓名:"
>
<el-form-item
label=
"客户姓名:"
>
<el-input
v-model=
"searchForm.
n
ame"
size=
"small"
placeholder=
"请输入客户姓名"
></el-input>
<el-input
v-model=
"searchForm.
customerN
ame"
size=
"small"
placeholder=
"请输入客户姓名"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"手机号:"
>
<el-form-item
label=
"手机号:"
>
<el-input
v-model=
"searchForm.mobile"
size=
"small"
placeholder=
"请输入手机号"
></el-input>
<el-input
v-model=
"searchForm.mobile"
size=
"small"
placeholder=
"请输入手机号"
></el-input>
...
@@ -17,17 +17,19 @@
...
@@ -17,17 +17,19 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleSearch
"
>
查询
</el-button>
<el-button
type=
"primary"
size=
"small"
:id=
"tableParams.btnId
"
>
查询
</el-button>
<el-button
plain
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
plain
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
<div>
<div>
<!-- :tableData="tableData" -->
<d2-table
<d2-table
ref=
"certificationTable"
ref=
"certificationTable"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:pageConf=
"pageConf"
:tableData=
"tableData"
>
>
<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>
...
@@ -69,8 +71,8 @@
...
@@ -69,8 +71,8 @@
</div>
</div>
</div>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"closeDialog"
>
取消
</el-button>
<el-button
@
click=
"closeDialog"
size=
"small"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handelSave"
>
保存
</el-button>
<el-button
type=
"primary"
@
click=
"handelSave"
size=
"small"
>
保存
</el-button>
</span>
</span>
</el-dialog>
</el-dialog>
</div>
</div>
...
@@ -94,7 +96,7 @@ export default {
...
@@ -94,7 +96,7 @@ export default {
return
{
return
{
statusOptions
,
statusOptions
,
searchForm
:
{
searchForm
:
{
n
ame
:
''
,
customerN
ame
:
''
,
mobile
:
''
,
mobile
:
''
,
plateNo
:
''
,
plateNo
:
''
,
authStatus
:
''
authStatus
:
''
...
@@ -105,9 +107,11 @@ export default {
...
@@ -105,9 +107,11 @@ export default {
conversionInfo
:
{},
conversionInfo
:
{},
// 积分兑换值
// 积分兑换值
integralInput
:
''
,
integralInput
:
''
,
getListApi
:
integrateApi
.
customerList
,
// 表格参数
// 表格参数
tableParams
:
{
tableParams
:
{
listName
:
'data'
,
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'data.list'
,
tableOption
:
true
,
tableOption
:
true
,
tableColumns
:
[
tableColumns
:
[
{
{
...
@@ -160,104 +164,30 @@ export default {
...
@@ -160,104 +164,30 @@ export default {
pageConf
:
{
pageConf
:
{
pageSize
:
'pageSize'
,
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
totalCount
:
'data.total'
},
}
// 模拟表格数据
tableData
:
[
{
id
:
1
,
name
:
'kyky'
,
mobile
:
'19515864585'
,
plateNo
:
'111'
,
bankName
:
'招商银行'
,
bankNo
:
'4582569452'
,
cardName
:
'kkk'
,
createdDate
:
'2022-5-8'
,
orderCodeList
:
'glsx'
,
authStatus
:
1
,
authUserName
:
'认证ren'
,
authDate
:
'2022-8-1'
},
{
id
:
2
,
name
:
'kyky'
,
mobile
:
'19515864585'
,
plateNo
:
'111'
,
bankName
:
'招商银行'
,
bankNo
:
'4582569452'
,
cardName
:
'kkk'
,
createdDate
:
'2022-5-8'
,
orderCodeList
:
'glsx'
,
authStatus
:
1
,
authUserName
:
'认证ren'
,
authDate
:
'2022-8-1'
},
{
id
:
3
,
name
:
'kyky'
,
mobile
:
'19515864585'
,
plateNo
:
'111'
,
bankName
:
'招商银行'
,
bankNo
:
'4582569452'
,
cardName
:
'kkk'
,
createdDate
:
'2022-5-8'
,
orderCodeList
:
'glsx'
,
authStatus
:
1
,
authUserName
:
'认证ren'
,
authDate
:
'2022-8-1'
},
{
id
:
4
,
name
:
'kyky'
,
mobile
:
'19515864585'
,
plateNo
:
'111'
,
bankName
:
'平安银行'
,
bankNo
:
'4582569452'
,
cardName
:
'kkk'
,
createdDate
:
'2022-5-8'
,
orderCodeList
:
'glsx'
,
authStatus
:
0
,
authUserName
:
'认证ren'
,
authDate
:
'2022-8-1'
},
{
id
:
5
,
name
:
'kyky'
,
mobile
:
'19515864585'
,
plateNo
:
'111'
,
bankName
:
'招商银行'
,
bankNo
:
'4582569452'
,
cardName
:
'kkk'
,
createdDate
:
'2022-5-8'
,
orderCodeList
:
'glsx'
,
authStatus
:
0
,
authUserName
:
'认证ren'
,
authDate
:
'2022-8-1'
}
]
// getListApi:functionApi.getListApi
}
}
},
},
mounted
()
{
mounted
()
{
this
.
listCustomizedAgentWithPage
()
// this.getCustomerList
()
},
},
methods
:
{
methods
:
{
// listCustomizedAgentWithPage
() {
getCustomerList
()
{
//
var params = JSON.parse(JSON.stringify(this.searchForm))
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
// params.pageNum = 1,
params
.
pageNum
=
1
//
params.pageSize = 10
params
.
pageSize
=
10
// integrateApi.listCustomizedAgentWithPage
(params).then(res => {
integrateApi
.
customerList
(
params
).
then
(
res
=>
{
//
console.log(res)
console
.
log
(
res
)
//
})
})
//
},
},
// 搜索框搜索
// 搜索框搜索
handleSearch
()
{},
handleSearch
()
{},
// 重置搜索框搜索
// 重置搜索框搜索
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
{
this
.
searchForm
=
{
n
ame
:
''
,
customerN
ame
:
''
,
mobile
:
''
,
mobile
:
''
,
plateNo
:
''
,
plateNo
:
''
,
authStatus
:
''
authStatus
:
''
...
@@ -267,6 +197,8 @@ export default {
...
@@ -267,6 +197,8 @@ export default {
// 认证
// 认证
handleCertificate
(
row
)
{
handleCertificate
(
row
)
{
console
.
log
(
row
)
console
.
log
(
row
)
var
params
=
{}
params
.
userId
=
row
.
id
this
.
$confirm
(
this
.
$confirm
(
'进行认证操作后,即客户符合积分兑换资格是否确定认证?'
,
'进行认证操作后,即客户符合积分兑换资格是否确定认证?'
,
'提示'
,
'提示'
,
...
@@ -277,9 +209,12 @@ export default {
...
@@ -277,9 +209,12 @@ export default {
}
}
)
)
.
then
(()
=>
{
.
then
(()
=>
{
this
.
$message
({
integrateApi
.
authentication
(
params
).
then
(
res
=>
{
type
:
'success'
,
console
.
log
(
res
)
message
:
'认证成功!'
// this.$message({
// type: 'success',
// message: '认证成功!'
// })
})
})
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
...
@@ -302,7 +237,22 @@ export default {
...
@@ -302,7 +237,22 @@ export default {
this
.
conversionInfo
=
{}
this
.
conversionInfo
=
{}
},
},
// 保存积分兑换
// 保存积分兑换
handelSave
()
{}
handelSave
()
{
console
.
log
(
this
.
integralInput
)
var
params
=
{}
if
(
this
.
integralInput
)
{
params
.
userId
=
conversionInfo
.
id
params
.
amount
=
this
.
integralInput
integrateApi
.
convert
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
})
}
else
{
this
.
$message
({
type
:
'info'
,
message
:
'请输入积分兑换值'
})
}
}
}
}
}
}
</
script
>
</
script
>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment