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 444df556
authored
Aug 17, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'xuyl_v2.8.0' into 'v2.8.0'
Xuyl v2.8.0 See merge request
!25
2 parents
a348f8de
8b2f3523
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
38 deletions
src/base.js
src/views/insurance/customer/addNamelist/index.vue
src/views/insurance/customer/index/index.vue
src/base.js
View file @
444df55
...
...
@@ -67,8 +67,8 @@ var mixin = {
})
}
},
close
()
{
this
.
$$parent
.
close
()
close
(
title
)
{
this
.
$$parent
.
close
(
title
)
}
}
}
...
...
src/views/insurance/customer/addNamelist/index.vue
View file @
444df55
...
...
@@ -400,7 +400,13 @@ export default {
}
},
back
()
{
window
.
history
.
go
(
-
1
)
this
.
$root
.
to
([
'ubi续保'
,
'续保'
,
'保险渠道管理'
,
'客户名单管理'
,
'客户名单管理'
])
this
.
dialogVisible
=
false
if
(
this
.
uploadStatus
==
'success'
)
{
this
.
ruleForm
=
{}
...
...
src/views/insurance/customer/index/index.vue
View file @
444df55
...
...
@@ -34,7 +34,7 @@
<el-select
v-model=
"merchantSearchForm.status"
placeholder=
"请选择状态"
>
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
label=
"未同步"
value=
"0"
></el-option>
<
el-option
label=
"同步中"
value=
"1"
></el-option
>
<
!--
<el-option
label=
"同步中"
value=
"1"
></el-option>
--
>
<el-option
label=
"已同步"
value=
"2"
></el-option>
<el-option
label=
"同步失败"
value=
"3"
></el-option>
</el-select>
...
...
@@ -59,8 +59,6 @@
{{
scope
.
scope
.
status
==
0
?
'未同步'
:
scope
.
scope
.
status
==
1
?
'同步中'
:
scope
.
scope
.
status
==
2
?
'已同步'
:
'同步失败'
...
...
@@ -119,7 +117,7 @@ export default {
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'data.total'
totalCount
:
'data.total'
,
},
getListApi
:
customerApi
.
searchCustomerList
,
merchantTableParams
:
{
...
...
@@ -128,23 +126,23 @@ export default {
tableColumns
:
[
{
label
:
'商户名称'
,
prop
:
'merchantName'
prop
:
'merchantName'
,
},
{
label
:
'商户号'
,
prop
:
'merchantId'
prop
:
'merchantId'
,
},
{
label
:
'主营品牌'
,
prop
:
'mainBrandName'
prop
:
'mainBrandName'
,
},
{
label
:
'客户数量'
,
prop
:
'customerNumber'
prop
:
'customerNumber'
,
},
{
label
:
'有效客户数量'
,
prop
:
'validCustomerNumber'
prop
:
'validCustomerNumber'
,
},
{
label
:
'批次号'
,
...
...
@@ -153,38 +151,45 @@ export default {
{
label
:
'状态'
,
prop
:
'status'
,
addHtml
:
'status'
addHtml
:
'status'
,
},
{
label
:
'创建人'
,
prop
:
'createdBy'
prop
:
'createdBy'
,
},
{
label
:
'创建时间'
,
prop
:
'createdDateStr'
prop
:
'createdDateStr'
,
},
{
label
:
'操作'
,
prop
:
'optionBtns'
,
addHtml
:
'optionBtns'
,
fixed
:
'right'
}
]
}
fixed
:
'right'
,
}
,
]
,
}
,
}
},
methods
:
{
gotoNamelist
()
{
window
.
location
.
href
=
'./addNamelist.html'
this
.
$root
.
to
([
'ubi续保'
,
'续保'
,
'保险渠道管理'
,
'客户名单管理'
,
'*添加名单'
,
])
this
.
$root
.
close
(
'客户名单管理列表'
)
},
gotoDetail
(
id
)
{
this
.
$root
.
to
(
[
'
UBI
续保'
,
'续保'
,
'保险渠道管理'
,
'客户名单管理'
,
'*查看客户名单'
],
[
'
ubi
续保'
,
'续保'
,
'保险渠道管理'
,
'客户名单管理'
,
'*查看客户名单'
],
{
merchantId
:
id
}
)
},
reset
()
{
Object
.
keys
(
this
.
merchantSearchForm
).
forEach
(
key
=>
{
Object
.
keys
(
this
.
merchantSearchForm
).
forEach
(
(
key
)
=>
{
this
.
merchantSearchForm
[
key
]
=
''
})
this
.
$nextTick
(()
=>
{
...
...
@@ -202,33 +207,44 @@ export default {
'确定同步后,客户名单会自动发送给对应的保险合作渠道。是否确认同步?'
}
},
comfirmDialog
(
type
)
{
async
comfirmDialog
(
type
)
{
if
(
type
==
'cogradient'
)
{
// 合并
customerApi
.
synchroCustomerList
({
id
:
this
.
optionsId
}).
then
(
res
=>
{
if
(
res
.
code
==
'0'
)
{
this
.
$message
.
success
(
'同步成功'
)
}
else
{
this
.
$message
.
error
(
'同步失败'
)
await
customerApi
.
synchroCustomerList
({
id
:
this
.
optionsId
}).
then
(
(
res
)
=>
{
console
.
log
(
res
)
if
(
res
.
code
==
'0'
)
{
this
.
$message
.
success
(
'同步成功'
)
}
else
{
this
.
$message
.
error
(
'同步失败'
)
}
},
(
err
)
=>
{
this
.
$message
.
error
(
err
)
}
}
)
)
this
.
dialogVisible
=
false
this
.
$refs
.
merchantTable
.
refreshTable
()
}
// 删除
if
(
type
==
'delete'
)
{
customerApi
.
deleteCustomerList
({
id
:
this
.
optionsId
}).
then
(
res
=>
{
if
(
res
.
code
==
'0'
)
{
this
.
$message
.
success
(
'删除成功'
)
this
.
$refs
.
merchantTable
.
refreshTable
()
}
else
{
this
.
$message
.
success
(
'删除失败'
)
customerApi
.
deleteCustomerList
({
id
:
this
.
optionsId
}).
then
(
(
res
)
=>
{
if
(
res
.
code
==
'0'
)
{
this
.
$message
.
success
(
'删除成功'
)
this
.
$refs
.
merchantTable
.
refreshTable
()
}
else
{
this
.
$message
.
success
(
'删除失败'
)
}
},
(
err
)
=>
{
this
.
$message
.
error
(
err
)
}
}
)
)
this
.
dialogVisible
=
false
}
}
}
}
,
}
,
}
</
script
>
<
style
scoped
>
...
...
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