Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-presale
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 b9d09012
authored
Sep 25, 2025
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V4.56.2' into 'master'
上线合并 See merge request
!92
2 parents
e4271ea8
658f7f96
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
273 additions
and
39 deletions
src/api/modules/addWorryFree.js
src/views/addCards/index.vue
src/views/claims/index.vue
src/views/worryFree/index.vue
src/api/modules/addWorryFree.js
View file @
b9d0901
...
@@ -27,7 +27,7 @@ const downLoads = params => {
...
@@ -27,7 +27,7 @@ const downLoads = params => {
}
}
const
getTypelistApi
=
params
=>
{
const
getTypelistApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
service.package.select.
get
`
params
.
method
=
`
${
defaultPath
}
service.package.select.
page
`
return
http
({
return
http
({
url
:
'rop-scrm-equity/router'
,
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
...
src/views/addCards/index.vue
View file @
b9d0901
...
@@ -11,7 +11,16 @@
...
@@ -11,7 +11,16 @@
</GLTable>
</GLTable>
<!-- 生成弹窗 -->
<!-- 生成弹窗 -->
<GLDialog
class=
"gl-form-page gl-form-min"
title=
"生成无忧卡"
mode=
"mid"
v-if=
"addDialog"
:visible
.
sync=
"addDialog"
:before-close=
"handleClose"
@
onOk=
"submitForm('detailForm')"
@
onCancel=
"cancelDetailDialog"
>
<GLDialog
class=
"gl-form-page gl-form-min"
title=
"生成无忧卡"
mode=
"mid"
v-if=
"addDialog"
:visible
.
sync=
"addDialog"
:before-close=
"handleClose"
@
onOk=
"submitForm('detailForm')"
@
onCancel=
"cancelDetailDialog"
>
<glsx-combi-form
ref=
"productCard"
labelWidth=
"154px"
defaultWidth=
"284px"
formRef=
"detailForm"
:formObj=
"addDialogForm"
:formData=
"addDialogFormData"
:formRules=
"addDialogRules"
></glsx-combi-form>
<glsx-combi-form
ref=
"productCard"
labelWidth=
"154px"
defaultWidth=
"284px"
formRef=
"detailForm"
:formObj=
"addDialogForm"
:formData=
"addDialogFormData"
:formRules=
"addDialogRules"
>
<div
slot=
"codeSlot"
>
<el-select
v-model=
"addDialogForm.packageCode"
remote
reserve-keyword
@
visible-change=
"visibleChangePackageCode"
:remote-method=
"remoteMethodPackageCode"
v-el-select-loadmore=
"interestsLoadmore"
clearable
filterable
>
<el-option
v-for=
"(subItem, subIndex) in codeTypeList"
:key=
"subIndex"
:label=
"subItem.packageName"
:value=
"subItem.packageCode"
/>
</el-select>
</div>
</glsx-combi-form>
</GLDialog>
</GLDialog>
</div>
</div>
</div>
</div>
...
@@ -85,6 +94,7 @@ export default {
...
@@ -85,6 +94,7 @@ export default {
}
}
],
],
getWorryBatcnList
:
this
.
$apis
.
addWorryFree
.
getWorryBatcnList
,
getWorryBatcnList
:
this
.
$apis
.
addWorryFree
.
getWorryBatcnList
,
codeTypeList
:
[],
// 适用类型
addDialogForm
:
{
addDialogForm
:
{
batchType
:
''
,
batchType
:
''
,
packageCode
:
''
,
packageCode
:
''
,
...
@@ -114,10 +124,7 @@ export default {
...
@@ -114,10 +124,7 @@ export default {
{
{
label
:
'适用类型'
,
label
:
'适用类型'
,
name
:
'packageCode'
,
name
:
'packageCode'
,
type
:
'select'
,
addHtml
:
'codeSlot'
optionList
:
[],
optionId
:
'packageCode'
,
optionLabel
:
'packageName'
},
},
{
{
type
:
'input'
,
type
:
'input'
,
...
@@ -211,21 +218,83 @@ export default {
...
@@ -211,21 +218,83 @@ export default {
// minWidth: '200'
// minWidth: '200'
}
}
]
]
},
pageNum
:
1
,
pageSize
:
20
}
},
directives
:
{
"el-select-loadmore"
:
{
bind
(
el
,
binding
)
{
let
isTriggered
=
false
const
debounceTime
=
300
// 防抖时间
const
waitForDropdown
=
()
=>
{
const
SELECTWRAP_DOM
=
el
.
querySelector
(
'.el-select-dropdown .el-select-dropdown__wrap'
);
if
(
SELECTWRAP_DOM
)
{
SELECTWRAP_DOM
.
addEventListener
(
'scroll'
,
function
()
{
const
condition
=
this
.
scrollHeight
-
this
.
scrollTop
<=
this
.
clientHeight
+
1
if
(
condition
&&
!
isTriggered
)
{
isTriggered
=
true
binding
.
value
()
// 延迟重置触发状态
setTimeout
(()
=>
{
isTriggered
=
false
},
debounceTime
)
}
})
}
else
{
// 如果没有找到下拉框DOM,延迟重试
setTimeout
(
waitForDropdown
,
50
)
}
}
waitForDropdown
()
}
}
}
}
},
},
created
()
{
created
()
{
this
.
getTypelist
()
//
this.getTypelist()
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
getTypelist
(){
getTypelist
(){
this
.
$apis
.
addWorryFree
.
getTypelistApi
({}).
then
(
res
=>
{
this
.
$apis
.
addWorryFree
.
getTypelistApi
({
if
(
!
res
?.
length
)
return
;
packageName
:
this
.
packageNameKeyword
,
let
target
=
this
.
addDialogFormData
.
find
(
item
=>
item
.
name
==
'packageCode'
)
pageNum
:
this
.
pageNum
,
target
.
optionList
=
res
pageSize
:
this
.
pageSize
}).
then
(
res
=>
{
let
arr
=
this
.
codeTypeList
.
concat
(
res
.
list
)
this
.
allPages
=
res
.
page
this
.
codeTypeList
=
arr
})
})
},
},
interestsLoadmore
()
{
console
.
log
(
'22222222'
)
setTimeout
(()
=>
{
this
.
pageNum
=
this
.
pageNum
+
1
if
(
this
.
allPages
<
this
.
pageNum
)
{
this
.
pageNum
=
this
.
allPages
return
}
this
.
getTypelist
()
},
10
)
},
remoteMethodPackageCode
(
query
)
{
this
.
packageNameKeyword
=
query
this
.
pageNum
=
1
this
.
codeTypeList
=
[]
this
.
getTypelist
()
// 请求接口
},
visibleChangePackageCode
(
data
)
{
// 获取焦点重新渲染下拉框数据
if
(
data
)
{
if
(
this
.
packageNameKeyword
)
{
this
.
packageNameKeyword
=
""
this
.
pageNum
=
1
this
.
codeTypeList
=
[]
this
.
getTypelist
()
}
}
},
// changePgCode(e){
// changePgCode(e){
// const arr = [{
// const arr = [{
// value: '1',
// value: '1',
...
@@ -267,6 +336,9 @@ export default {
...
@@ -267,6 +336,9 @@ export default {
},
},
add
()
{
add
()
{
this
.
addDialog
=
true
this
.
addDialog
=
true
this
.
codeTypeList
=
[]
this
.
pageNum
=
1
this
.
getTypelist
()
},
},
// 关闭弹窗界面
// 关闭弹窗界面
cancelDetailDialog
()
{
cancelDetailDialog
()
{
...
...
src/views/claims/index.vue
View file @
b9d0901
...
@@ -210,7 +210,7 @@ export default {
...
@@ -210,7 +210,7 @@ export default {
}
}
},
},
{
{
type
:
'GLButton'
,
type
:
'GLButton'
,
// 校验不通过 重新提交
name
:
row
=>
{
name
:
row
=>
{
return
'重新提交'
return
'重新提交'
},
},
...
@@ -226,13 +226,12 @@ export default {
...
@@ -226,13 +226,12 @@ export default {
}
}
},
},
{
{
type
:
'GLButton'
,
type
:
'GLButton'
,
// c端小程序报案的单是运营经理审核不通过/核赔不通过
name
:
row
=>
{
name
:
row
=>
{
return
'重新提交'
return
'重新提交'
},
},
condition
:
row
=>
{
condition
:
row
=>
{
// c端小程序报案的单是运营经理审核不通过/核赔不通过/定损不通过
return
[
22
,
25
].
includes
(
row
.
scope
.
status
)
&&
row
.
scope
.
source
==
4
return
[
22
,
25
,
35
].
includes
(
row
.
scope
.
status
)
&&
row
.
scope
.
source
==
4
},
},
attrs
:
{
attrs
:
{
type
:
'text'
,
type
:
'text'
,
...
@@ -243,6 +242,22 @@ export default {
...
@@ -243,6 +242,22 @@ export default {
}
}
},
},
{
{
type
:
'GLButton'
,
// c端小程序报案的单是定损不通过
name
:
row
=>
{
return
'定损重新提交'
},
condition
:
row
=>
{
return
[
35
].
includes
(
row
.
scope
.
status
)
&&
row
.
scope
.
source
==
4
},
attrs
:
{
type
:
'text'
,
fn
:
'定损重新提交'
},
listeners
:
{
click
:
row
=>
this
.
handleView
(
row
.
scope
,
3
)
}
},
{
type
:
'GLButton'
,
type
:
'GLButton'
,
name
:
row
=>
{
name
:
row
=>
{
return
'运营经理审核'
return
'运营经理审核'
...
...
src/views/worryFree/index.vue
View file @
b9d0901
<
template
>
<
template
>
<div
class=
"equity-wrap"
>
<div
class=
"equity-wrap"
>
<div
class=
"equity-wrap contain"
>
<div
class=
"equity-wrap contain"
>
<GLCombiForm
ref=
"showSearch"
:formObj=
"detailForm"
:formData=
"detailFormData"
@
handleOk=
"detailSelect('select')"
@
handleRest=
"detailSelect('reset')"
></GLCombiForm>
<GLCombiForm
ref=
"showSearch"
:formObj=
"detailForm"
:formData=
"detailFormData"
@
handleOk=
"detailSelect('select')"
@
handleRest=
"detailSelect('reset')"
>
<div
slot=
"codeSlot"
>
<el-select
v-model=
"detailForm.packageCode"
remote
reserve-keyword
@
visible-change=
"visibleChangePackageCode"
:remote-method=
"remoteMethodPackageCode"
v-el-select-loadmore=
"interestsLoadmore"
clearable
filterable
>
<el-option
v-for=
"(subItem, subIndex) in codeTypeList"
:key=
"subIndex"
:label=
"subItem.packageName"
:value=
"subItem.packageCode"
/>
</el-select>
</div>
</GLCombiForm>
<el-alert
:closable=
"false"
type=
"info"
show-icon
>
总计
{{
line
.
total
}}
张,已使用
{{
line
.
usedAmount
}}
张
</el-alert>
<el-alert
:closable=
"false"
type=
"info"
show-icon
>
总计
{{
line
.
total
}}
张,已使用
{{
line
.
usedAmount
}}
张
</el-alert>
<GLTable
ref=
"detailTable"
:searchForm=
"detailForm"
:tableParams=
"detailParams"
:pageConf=
"detailPageConf"
:getListApi=
"getDetailList"
:beforeSearchFn=
"check"
style=
"margin-top: 10px"
>
<GLTable
ref=
"detailTable"
:searchForm=
"detailForm"
:tableParams=
"detailParams"
:pageConf=
"detailPageConf"
:getListApi=
"getDetailList"
:beforeSearchFn=
"check"
style=
"margin-top: 10px"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
...
@@ -12,7 +21,16 @@
...
@@ -12,7 +21,16 @@
</div>
</div>
<!-- 详情弹窗 -->
<!-- 详情弹窗 -->
<GLDialog
class=
"gl-form-page gl-form-min"
title=
"修改无忧卡"
v-if=
"detailDialog"
:visible
.
sync=
"detailDialog"
mode=
"mid"
:before-close=
"handleClose"
@
onOk=
"submitForm('detailForm')"
@
onCancel=
"cancelDetailDialog"
>
<GLDialog
class=
"gl-form-page gl-form-min"
title=
"修改无忧卡"
v-if=
"detailDialog"
:visible
.
sync=
"detailDialog"
mode=
"mid"
:before-close=
"handleClose"
@
onOk=
"submitForm('detailForm')"
@
onCancel=
"cancelDetailDialog"
>
<glsx-combi-form
ref=
"product"
labelWidth=
"154px"
defaultWidth=
"284px"
formRef=
"detailForm"
:formObj=
"detailDialogForm"
:formData=
"addDialogFormData"
:formRules=
"detailDialogRules"
></glsx-combi-form>
<glsx-combi-form
ref=
"product"
labelWidth=
"154px"
defaultWidth=
"284px"
formRef=
"detailForm"
:formObj=
"detailDialogForm"
:formData=
"addDialogFormData"
:formRules=
"detailDialogRules"
>
<div
slot=
"codeSlotDialog"
>
<el-select
v-model=
"detailDialogForm.packageCode"
remote
reserve-keyword
@
visible-change=
"visibleDialogChangePackageCode"
:remote-method=
"remoteMethodDialogPackageCode"
v-el-select-loadmore-dialog=
"interestsLoadmoreDialog"
clearable
filterable
>
<el-option
v-for=
"(subItem, subIndex) in dialogCodeTypeList"
:key=
"subIndex"
:label=
"subItem.packageName"
:value=
"subItem.packageCode"
/>
</el-select>
</div>
</glsx-combi-form>
</GLDialog>
</GLDialog>
</div>
</div>
</
template
>
</
template
>
...
@@ -52,7 +70,6 @@ export default {
...
@@ -52,7 +70,6 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
applyTypelist
:
[],
date_format
,
date_format
,
buttonList
:
[
buttonList
:
[
{
{
...
@@ -140,11 +157,7 @@ export default {
...
@@ -140,11 +157,7 @@ export default {
{
{
label
:
'适用类型'
,
label
:
'适用类型'
,
name
:
'packageCode'
,
name
:
'packageCode'
,
type
:
'select'
,
addHtml
:
'codeSlot'
isClear
:
true
,
optionList
:
[],
optionId
:
'packageCode'
,
optionLabel
:
'packageName'
},
},
{
{
label
:
'状态'
,
label
:
'状态'
,
...
@@ -236,10 +249,7 @@ export default {
...
@@ -236,10 +249,7 @@ export default {
{
{
label
:
'适用类型'
,
label
:
'适用类型'
,
name
:
'packageCode'
,
name
:
'packageCode'
,
type
:
'select'
,
addHtml
:
'codeSlotDialog'
optionList
:
[],
optionId
:
'packageCode'
,
optionLabel
:
'packageName'
},
},
{
{
type
:
'input'
,
type
:
'input'
,
...
@@ -442,11 +452,7 @@ export default {
...
@@ -442,11 +452,7 @@ export default {
},
},
{
{
label
:
'适用类型'
,
label
:
'适用类型'
,
prop
:
'packageCode'
,
prop
:
'packageName'
,
formatter
:
cellValue
=>
{
let
targer
=
this
.
applyTypelist
.
find
(
item
=>
item
.
packageCode
==
cellValue
.
packageCode
)
return
targer
&&
targer
.
packageName
?
targer
.
packageName
:
'--'
},
width
:
220
width
:
220
},
},
{
{
...
@@ -478,6 +484,63 @@ export default {
...
@@ -478,6 +484,63 @@ export default {
width
:
100
width
:
100
}
}
]
]
},
pageNum
:
1
,
pageSize
:
20
,
dialogPageNum
:
1
,
codeTypeList
:
[],
dialogCodeTypeList
:
[]
}
},
directives
:
{
"el-select-loadmore"
:
{
bind
(
el
,
binding
)
{
let
triggered
=
false
const
threshold
=
50
const
debounceTime
=
300
// 防抖时间
const
waitForDropdown
=
()
=>
{
const
SELECTWRAP_DOM
=
el
.
querySelector
(
'.el-select-dropdown .el-select-dropdown__wrap'
)
if
(
SELECTWRAP_DOM
)
{
SELECTWRAP_DOM
.
addEventListener
(
'scroll'
,
function
()
{
const
scrollBottom
=
this
.
scrollHeight
-
this
.
scrollTop
-
this
.
clientHeight
if
(
scrollBottom
<=
threshold
&&
!
triggered
)
{
triggered
=
true
binding
.
value
()
// 执行加载更多
// 无论是否是异步操作,都延迟重置
setTimeout
(()
=>
{
triggered
=
false
},
debounceTime
)
}
})
}
}
waitForDropdown
()
}
},
"el-select-loadmore-dialog"
:
{
bind
(
el
,
binding
)
{
let
isTriggered
=
false
const
debounceTime
=
300
// 防抖时间
const
waitForDropdown
=
()
=>
{
const
SELECTWRAP_DOM
=
el
.
querySelector
(
'.el-select-dropdown .el-select-dropdown__wrap'
);
if
(
SELECTWRAP_DOM
)
{
SELECTWRAP_DOM
.
addEventListener
(
'scroll'
,
function
()
{
const
condition
=
this
.
scrollHeight
-
this
.
scrollTop
<=
this
.
clientHeight
+
1
if
(
condition
&&
!
isTriggered
)
{
isTriggered
=
true
binding
.
value
()
// 延迟重置触发状态
setTimeout
(()
=>
{
isTriggered
=
false
},
debounceTime
)
}
})
}
else
{
// 如果没有找到下拉框DOM,延迟重试
setTimeout
(
waitForDropdown
,
50
)
}
}
waitForDropdown
()
}
}
}
}
},
},
...
@@ -486,16 +549,96 @@ export default {
...
@@ -486,16 +549,96 @@ export default {
this
.
getTypelist
()
this
.
getTypelist
()
},
},
methods
:
{
methods
:
{
/**筛选条件适用类型开始 */
getTypelist
()
{
getTypelist
()
{
this
.
$apis
.
addWorryFree
.
getTypelistApi
({}).
then
(
res
=>
{
this
.
$apis
.
addWorryFree
.
getTypelistApi
({
if
(
!
res
?.
length
)
return
pageNum
:
this
.
pageNum
,
let
target
=
this
.
addDialogFormData
.
find
(
item
=>
item
.
name
==
'packageCode'
)
pageSize
:
this
.
pageSize
,
target
.
optionList
=
res
packageName
:
this
.
packageNameKeyword
let
serachTarget
=
this
.
detailFormData
.
find
(
item
=>
item
.
name
==
'packageCode'
)
}).
then
(
res
=>
{
serachTarget
.
optionList
=
[{
packageCode
:
''
,
packageName
:
'全部'
},
...
res
]
let
arr
=
this
.
codeTypeList
.
concat
(
res
.
list
)
this
.
applyTypelist
=
res
this
.
allPages
=
res
.
page
this
.
codeTypeList
=
arr
if
(
!
this
.
codeTypeList
?.
find
(
val
=>
val
.
packageCode
==
''
&&
val
.
packageName
==
'全部'
))
this
.
codeTypeList
.
unshift
({
packageCode
:
''
,
packageName
:
'全部'
})
})
},
interestsLoadmore
()
{
setTimeout
(()
=>
{
this
.
pageNum
=
this
.
pageNum
+
1
if
(
this
.
allPages
<
this
.
pageNum
)
{
this
.
pageNum
=
this
.
allPages
return
}
this
.
getTypelist
()
},
10
)
},
remoteMethodPackageCode
(
query
)
{
this
.
packageNameKeyword
=
query
this
.
pageNum
=
1
this
.
codeTypeList
=
[]
this
.
getTypelist
()
// 请求接口
},
visibleChangePackageCode
(
data
)
{
// 获取焦点重新渲染下拉框数据
if
(
data
)
{
if
(
this
.
packageNameKeyword
)
{
this
.
packageNameKeyword
=
""
this
.
pageNum
=
1
this
.
codeTypeList
=
[]
this
.
getTypelist
()
}
}
},
/**筛选条件适用类型结束 */
/**修改弹窗适用类型开始 */
getDialogTypeList
(
defaultSelect
)
{
this
.
$apis
.
addWorryFree
.
getTypelistApi
({
pageNum
:
this
.
dialogPageNum
,
pageSize
:
this
.
pageSize
,
packageName
:
this
.
dialogPackageNameKeyword
}).
then
(
res
=>
{
let
arr
=
this
.
dialogCodeTypeList
.
concat
(
res
.
list
)
this
.
dialogAllPages
=
res
.
page
if
(
defaultSelect
?.
length
)
arr
=
defaultSelect
.
concat
(
arr
)
this
.
dialogCodeTypeList
=
this
.
unique
(
arr
)
})
})
},
},
// 根据packageCode去重
unique
(
arr
)
{
const
res
=
new
Map
()
return
arr
.
filter
(
(
a
)
=>
!
res
.
has
(
a
.
packageCode
)
&&
res
.
set
(
a
.
packageCode
,
1
)
)
},
interestsLoadmoreDialog
()
{
setTimeout
(()
=>
{
this
.
dialogPageNum
=
this
.
dialogPageNum
+
1
if
(
this
.
dialogAllPages
<
this
.
dialogPageNum
)
{
this
.
dialogPageNum
=
this
.
dialogAllPages
return
}
this
.
getDialogTypeList
()
},
10
)
},
remoteMethodDialogPackageCode
(
query
)
{
this
.
dialogPackageNameKeyword
=
query
this
.
dialogAllPages
=
1
this
.
dialogCodeTypeList
=
[]
this
.
getDialogTypeList
()
// 请求接口
},
visibleDialogChangePackageCode
(
data
)
{
// 获取焦点重新渲染下拉框数据
if
(
data
)
{
if
(
this
.
dialogPackageNameKeyword
)
{
this
.
dialogPackageNameKeyword
=
""
this
.
dialogPageNum
=
1
this
.
dialogCodeTypeList
=
[]
this
.
getDialogTypeList
()
}
}
},
/**修改弹窗适用类型结束 */
// changePgCode(e){
// changePgCode(e){
// const arr = [{
// const arr = [{
// value: '1',
// value: '1',
...
@@ -574,6 +717,10 @@ export default {
...
@@ -574,6 +717,10 @@ export default {
}
else
{
}
else
{
this
.
detailDialogForm
.
batchType
=
'畅享版'
this
.
detailDialogForm
.
batchType
=
'畅享版'
}
}
let
defaultArr
=
[{
packageCode
:
obj
.
packageCode
,
packageName
:
obj
.
packageName
}]
this
.
dialogCodeTypeList
=
[]
this
.
dialogPageNum
=
1
this
.
getDialogTypeList
(
defaultArr
)
},
},
// 清空无忧卡使用状态
// 清空无忧卡使用状态
clearStatus
(
row
)
{
clearStatus
(
row
)
{
...
...
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