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 29bd05fc
authored
Aug 16, 2022
by
wuwx
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
修改第一轮BUG
2 parents
17d80251
d7875d16
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
68 additions
and
58 deletions
src/api/addNamelist.js
src/base.js
src/views/insurance/customer/addNamelist/index.vue
src/views/insurance/customer/index/index.vue
src/views/insurance/order/index/index.vue
src/views/integrate/certification/index.vue
src/views/integrate/integral/index.vue
src/api/addNamelist.js
View file @
29bd05f
...
@@ -4,19 +4,19 @@ const addNamelistApi = {
...
@@ -4,19 +4,19 @@ const addNamelistApi = {
getMerchantsList
(
data
=
{})
{
getMerchantsList
(
data
=
{})
{
// 'http://rop-merchant.dev.glsx.com.cn/rop-merchants'
// 'http://rop-merchant.dev.glsx.com.cn/rop-merchants'
data
.
method
=
'merchants.api.open.findMerchantList'
data
.
method
=
'merchants.api.open.findMerchantList'
return
request
(
data
)
return
request
(
data
,
'merchants.api.open.findMerchantList'
,
[],
'http://rop-merchant.test.glsx.com.cn/rop-merchants'
)
},
},
// 根据商户名称和渠道类型查询商户列表-分页查询
// 根据商户名称和渠道类型查询商户列表-分页查询
getMerchantsListByPages
(
data
=
{})
{
getMerchantsListByPages
(
data
=
{})
{
// 'http://rop-merchant.dev.glsx.com.cn/rop-merchants'
// 'http://rop-merchant.dev.glsx.com.cn/rop-merchants'
data
.
method
=
'merchants.api.menu.findMerchantByPage'
data
.
method
=
'merchants.api.menu.findMerchantByPage'
return
request
(
data
)
return
request
(
data
,
'merchants.api.menu.findMerchantByPage'
,
[],
'http://rop-merchant.test.glsx.com.cn/rop-merchants'
)
},
},
// 根据商户号查询商户详情
// 根据商户号查询商户详情
findMerchantDetailByMerchantNo
(
data
=
{})
{
findMerchantDetailByMerchantNo
(
data
=
{})
{
// 'http://rop-merchant.dev.glsx.com.cn/rop-merchants'
// 'http://rop-merchant.dev.glsx.com.cn/rop-merchants'
data
.
method
=
'merchants.api.open.findMerchantDetailByMerchantNo'
data
.
method
=
'merchants.api.open.findMerchantDetailByMerchantNo'
return
request
(
data
)
return
request
(
data
,
'merchants.api.open.findMerchantDetailByMerchantNo'
,
[],
'http://rop-merchant.test.glsx.com.cn/rop-merchants'
)
}
}
}
}
...
...
src/base.js
View file @
29bd05f
...
@@ -87,7 +87,7 @@ const getConfig = (url = URL + '/renwal-config') => {
...
@@ -87,7 +87,7 @@ const getConfig = (url = URL + '/renwal-config') => {
}
}
/* eslint-disable no-new */
/* eslint-disable no-new */
const
render
=
App
=>
{
const
render
=
App
=>
{
new
Vue
({
window
.
vm
=
new
Vue
({
el
:
'#app'
,
el
:
'#app'
,
mixins
:
[
mixin
],
mixins
:
[
mixin
],
render
:
h
=>
h
(
App
)
render
:
h
=>
h
(
App
)
...
...
src/views/insurance/customer/addNamelist/index.vue
View file @
29bd05f
...
@@ -110,7 +110,7 @@
...
@@ -110,7 +110,7 @@
</span>
</span>
</
template
>
</
template
>
<
template
v-if=
"uploadStatus == 'fail'"
>
<
template
v-if=
"uploadStatus == 'fail'"
>
<span>
数据导入失败,请重试!
</span>
<span>
数据导入失败,
{{
uploadErrorMsg
}}
,
请重试!
</span>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
plain
type=
"primary"
@
click=
"dialogVisible = false"
<el-button
plain
type=
"primary"
@
click=
"dialogVisible = false"
>
取消
</el-button
>
取消
</el-button
...
@@ -131,6 +131,7 @@ export default {
...
@@ -131,6 +131,7 @@ export default {
return
{
return
{
fullscreenLoading
:
false
,
fullscreenLoading
:
false
,
uploadSuccessMsg
:
''
,
uploadSuccessMsg
:
''
,
uploadErrorMsg
:
''
,
marchantNameCopy
:
''
,
//存放搜索的商户名
marchantNameCopy
:
''
,
//存放搜索的商户名
dataItems
:
[],
//下拉框显示的数据
dataItems
:
[],
//下拉框显示的数据
pageData
:
{
pageData
:
{
...
@@ -254,7 +255,6 @@ export default {
...
@@ -254,7 +255,6 @@ export default {
this
.
merchantList
(
this
.
pageData
,
searchVal
)
this
.
merchantList
(
this
.
pageData
,
searchVal
)
},
300
)
},
300
)
}
}
console
.
log
(
this
.
timer
)
}
else
{
}
else
{
this
.
dataItems
=
[]
this
.
dataItems
=
[]
this
.
merchantList
({
this
.
merchantList
({
...
@@ -274,6 +274,7 @@ export default {
...
@@ -274,6 +274,7 @@ export default {
await
addNamelistApi
await
addNamelistApi
.
findMerchantDetailByMerchantNo
({
merchantId
:
this
.
merchantId
})
.
findMerchantDetailByMerchantNo
({
merchantId
:
this
.
merchantId
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
console
.
log
(
res
)
let
brandTreeList
=
res
.
data
.
data
&&
res
.
data
.
data
.
brandTreeList
let
brandTreeList
=
res
.
data
.
data
&&
res
.
data
.
data
.
brandTreeList
let
brandTreeListName
=
let
brandTreeListName
=
brandTreeList
&&
brandTreeList
.
map
((
item
)
=>
item
.
name
)
brandTreeList
&&
brandTreeList
.
map
((
item
)
=>
item
.
name
)
...
@@ -313,15 +314,16 @@ export default {
...
@@ -313,15 +314,16 @@ export default {
spinner
:
'el-icon-loading'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.7)'
,
background
:
'rgba(0, 0, 0, 0.7)'
,
})
})
if
(
res
.
data
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
loading
.
close
()
loading
.
close
()
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
this
.
uploadStatus
=
'success'
this
.
uploadStatus
=
'success'
this
.
uploadSuccessMsg
=
res
.
data
.
data
this
.
uploadSuccessMsg
=
res
.
data
}
else
{
}
else
{
loading
.
close
()
loading
.
close
()
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
this
.
uploadStatus
=
'fail'
this
.
uploadStatus
=
'fail'
this
.
uploadErrorMsg
=
res
.
message
}
}
})
})
}
else
{
}
else
{
...
...
src/views/insurance/customer/index/index.vue
View file @
29bd05f
<
template
>
<
template
>
<div
style=
"margin:16px"
>
<div
style=
"margin: 16px"
>
<el-button
size=
"small"
class=
"addList"
type=
"primary"
@
click=
"gotoNamelist"
>
<el-button
size=
"small"
class=
"addList"
type=
"primary"
@
click=
"gotoNamelist"
>
<i
class=
"el-icon-plus"
></i>
添加名单
</el-button
<i
class=
"el-icon-plus"
></i>
添加名单
</el-button
>
>
<el-form
<el-form
...
@@ -109,9 +114,8 @@ export default {
...
@@ -109,9 +114,8 @@ export default {
optionsId
:
''
,
optionsId
:
''
,
dialogVisible
:
false
,
dialogVisible
:
false
,
dialogStatus
:
''
,
dialogStatus
:
''
,
dialogVisibleText
:
''
,
dialogVisibleText
:
''
,
merchantSearchForm
:
{
merchantSearchForm
:
{},
},
pageConf
:
{
pageConf
:
{
pageSize
:
'pageSize'
,
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
pageNum
:
'pageNum'
,
...
@@ -196,36 +200,34 @@ export default {
...
@@ -196,36 +200,34 @@ export default {
this
.
optionsId
=
id
this
.
optionsId
=
id
if
(
type
==
'delete'
)
{
if
(
type
==
'delete'
)
{
this
.
dialogVisibleText
=
'删除后不可恢复,是否确认删除?'
this
.
dialogVisibleText
=
'删除后不可恢复,是否确认删除?'
}
else
{
}
else
{
this
.
dialogVisibleText
=
'确定同步后,客户名单会自动发送给对应的保险合作渠道。是否确认同步?'
this
.
dialogVisibleText
=
'确定同步后,客户名单会自动发送给对应的保险合作渠道。是否确认同步?'
}
}
},
},
comfirmDialog
(
type
)
{
comfirmDialog
(
type
)
{
if
(
type
==
'cogradient'
)
{
if
(
type
==
'cogradient'
)
{
// 合并
// 合并
customerApi
.
synchroCustomerList
({
id
:
this
.
optionsId
}).
then
(
customerApi
.
synchroCustomerList
({
id
:
this
.
optionsId
}).
then
((
res
)
=>
{
(
res
)
=>
{
if
(
res
.
code
==
'0'
)
{
console
.
log
(
res
)
this
.
$message
.
success
(
'同步成功'
)
this
.
$message
.
success
(
'同步成功'
)
},
}
else
{
(
err
)
=>
{
this
.
$message
.
error
(
'同步失败'
)
this
.
$message
.
error
(
'同步失败'
)
}
}
)
}
)
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
this
.
$refs
.
merchantTable
.
refreshTable
()
}
}
// 删除
// 删除
if
(
type
==
'delete'
)
{
if
(
type
==
'delete'
)
{
customerApi
.
deleteCustomerList
({
id
:
this
.
optionsId
}).
then
(
customerApi
.
deleteCustomerList
({
id
:
this
.
optionsId
}).
then
((
res
)
=>
{
(
res
)
=>
{
if
(
res
.
code
==
'0'
)
{
console
.
log
(
res
)
this
.
$message
.
success
(
'删除成功'
)
this
.
$message
.
success
(
'删除成功'
)
this
.
$refs
.
merchantTable
.
refreshTable
()
this
.
$refs
.
merchantTable
.
refreshTable
()
},
}
else
{
(
err
)
=>
{
this
.
$message
.
success
(
'删除失败'
)
this
.
$message
.
error
(
'删除失败'
)
}
}
)
}
)
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
}
}
},
},
...
@@ -233,7 +235,7 @@ export default {
...
@@ -233,7 +235,7 @@ export default {
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
*
{
*
{
margin
:
0
;
margin
:
0
;
padding
:
0
;
padding
:
0
;
}
}
...
...
src/views/insurance/order/index/index.vue
View file @
29bd05f
...
@@ -163,7 +163,7 @@ export default {
...
@@ -163,7 +163,7 @@ export default {
handleViewDetail
(
scope
)
{
handleViewDetail
(
scope
)
{
console
.
log
(
scope
)
console
.
log
(
scope
)
this
.
$root
.
to
(
this
.
$root
.
to
(
[
'
ubi
续保'
,
'续保'
,
'保险渠道管理'
,
'订单管理'
,
'*订单管理详情'
],
[
'
UBI
续保'
,
'续保'
,
'保险渠道管理'
,
'订单管理'
,
'*订单管理详情'
],
scope
.
id
scope
.
id
)
)
},
},
...
@@ -173,23 +173,10 @@ export default {
...
@@ -173,23 +173,10 @@ export default {
this
.
searchForm
.
orderDateBegin
=
this
.
orderTime
[
0
]
this
.
searchForm
.
orderDateBegin
=
this
.
orderTime
[
0
]
this
.
searchForm
.
orderDateEnd
=
this
.
orderTime
[
1
]
this
.
searchForm
.
orderDateEnd
=
this
.
orderTime
[
1
]
}
}
const
{
pageNum
,
pageSize
}
=
this
.
$refs
.
orderTable
.
page
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
params
.
pageNum
=
pageNum
params
.
pageSize
=
pageSize
customerApi
.
orderListExport
(
params
).
then
(
res
=>
{
customerApi
.
orderListExport
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
console
.
log
(
res
.
data
)
this
.
$Utils
.
exportFn
(
res
.
data
)
this
.
$Utils
.
exportFn
(
res
.
data
)
// let browserType = getExplorer()
// if (browserType == 'QQ') {
// window.open(url)
// return
// }
// let iframe = document.createElement('iframe')
// iframe.style.display = 'none'
// iframe.src = url
// document.body.appendChild(iframe)
}
}
})
})
}
}
...
@@ -201,6 +188,7 @@ export default {
...
@@ -201,6 +188,7 @@ export default {
margin
:
16px
;
margin
:
16px
;
}
}
.table-top
{
.table-top
{
height
:
50px
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
...
@@ -208,6 +196,12 @@ export default {
...
@@ -208,6 +196,12 @@ export default {
.output-btn
{
.output-btn
{
border-color
:
#1994f9
;
border-color
:
#1994f9
;
color
:
#1994f9
;
color
:
#1994f9
;
margin-bottom
:
10px
!important
;
margin-bottom
:
0px
!important
;
}
.el-form-item
{
margin-bottom
:
16px
;
}
.el-dialog__body
{
padding
:
20px
!important
;
}
}
</
style
>
</
style
>
src/views/integrate/certification/index.vue
View file @
29bd05f
...
@@ -31,6 +31,11 @@
...
@@ -31,6 +31,11 @@
:getListApi=
"getListApi"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:pageConf=
"pageConf"
>
>
<div
slot=
"orderCodeList"
slot-scope=
"scope"
>
<div
v-for=
"item in scope.scope.orderCodeList"
:key=
"item"
>
<div>
{{
item
}}
</div>
</div>
</div>
<div
slot=
"authStatus"
slot-scope=
"scope"
>
<div
slot=
"authStatus"
slot-scope=
"scope"
>
<span
v-if=
"scope.scope.authStatus == 1"
>
<span
v-if=
"scope.scope.authStatus == 1"
>
<div
class=
"status-dot2"
></div>
<div
class=
"status-dot2"
></div>
...
@@ -71,7 +76,7 @@
...
@@ -71,7 +76,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"
@
change=
"getValue"
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,'')"
maxlength=
"7"
></el-input>
</div>
</div>
<span>
备注:1积分价值=1元
</span>
<span>
备注:1积分价值=1元
</span>
</div>
</div>
...
@@ -153,7 +158,9 @@ export default {
...
@@ -153,7 +158,9 @@ export default {
},
},
{
{
label
:
'关联订单'
,
label
:
'关联订单'
,
prop
:
'orderCodeList'
prop
:
'orderCodeList'
,
addHtml
:
'orderCodeList'
,
width
:
200
},
},
{
{
label
:
'状态'
,
label
:
'状态'
,
...
@@ -204,12 +211,14 @@ export default {
...
@@ -204,12 +211,14 @@ export default {
var
params
=
{}
var
params
=
{}
params
.
userId
=
row
.
id
params
.
userId
=
row
.
id
this
.
$confirm
(
this
.
$confirm
(
'进行认证操作后,即客户符合积分兑换资格是否确定认证?'
,
'进行认证操作后,即客户符合积分兑换资格
。
是否确定认证?'
,
'提示'
,
'提示'
,
{
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
dangerouslyUseHTMLString
:
true
,
closeOnClickModal
:
false
,
iconClass
:
'withdraw-warning el-icon-warning'
}
}
)
)
.
then
(()
=>
{
.
then
(()
=>
{
...
@@ -316,4 +325,12 @@ export default {
...
@@ -316,4 +325,12 @@ export default {
background
:
#2cca74
;
background
:
#2cca74
;
border-radius
:
4px
;
border-radius
:
4px
;
}
}
.warning-text
{
margin
:
15px
0
;
color
:
#444
;
font-size
:
15px
;
}
.withdraw-warning
{
top
:
22px
!important
;
}
</
style
>
</
style
>
src/views/integrate/integral/index.vue
View file @
29bd05f
...
@@ -140,7 +140,6 @@ export default {
...
@@ -140,7 +140,6 @@ export default {
}
}
]
]
}
}
}
}
},
},
...
@@ -158,18 +157,14 @@ export default {
...
@@ -158,18 +157,14 @@ export default {
this
.
$refs
.
dictTable
.
refreshTable
()
this
.
$refs
.
dictTable
.
refreshTable
()
})
})
},
},
aToExport
(
url
)
{
var
a
=
document
.
createElement
(
'a'
)
a
.
setAttribute
(
'id'
,
'exportToExport'
)
a
.
setAttribute
(
'href'
,
url
)
a
.
setAttribute
(
'target'
,
'_blank'
)
document
.
body
.
appendChild
(
a
)
a
.
click
()
},
handleExport
()
{
handleExport
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
orderExportApi
.
orderExport
(
params
).
then
(
res
=>
{
orderExportApi
.
orderExport
(
params
).
then
(
res
=>
{
this
.
aToExport
(
res
.
data
)
if
(
res
.
code
==
0
)
{
this
.
$Utils
.
exportFn
(
res
.
data
)
}
else
if
(
res
.
code
==
-
1
)
{
this
.
$message
.
error
(
res
.
message
)
}
})
})
}
}
}
}
...
...
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