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 545b0f65
authored
Mar 31, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
完善理赔业务逻辑
1 parent
627da615
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
101 additions
and
17 deletions
src/views/claims/components/citySelect.vue
src/views/claims/components/report.vue
src/views/claims/order.vue
src/views/claims/components/citySelect.vue
View file @
545b0f6
<
template
>
<
template
>
<div
class=
"city-select-components"
>
<div
class=
"city-select-components"
>
<el-cascader
ref=
"cascader"
style=
"width:320px"
placeholder=
"请选择省/请选择市/请选择区"
size=
"small "
:options=
"regionData"
v-model=
"selectedOptions"
@
change=
"handleChange"
></el-cascader>
<el-cascader
:disabled=
"isDisabled"
ref=
"cascader"
style=
"width:320px"
placeholder=
"请选择省/请选择市/请选择区"
size=
"small "
:options=
"regionData"
v-model=
"selectedOptions"
@
change=
"handleChange"
></el-cascader>
</div>
</div>
</
template
>
</
template
>
...
@@ -14,6 +14,12 @@ export default {
...
@@ -14,6 +14,12 @@ export default {
selectedOptions
:
''
selectedOptions
:
''
}
}
},
},
props
:
{
isDisabled
:
{
type
:
Boolean
,
default
:
false
}
},
methods
:
{
methods
:
{
handleChange
(
e
)
{
handleChange
(
e
)
{
let
nodesInfo
=
this
.
$refs
.
cascader
.
getCheckedNodes
()[
0
].
pathLabels
let
nodesInfo
=
this
.
$refs
.
cascader
.
getCheckedNodes
()[
0
].
pathLabels
...
...
src/views/claims/components/report.vue
View file @
545b0f6
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"title"
>
报案信息(客户提交)
</div>
<div
class=
"title"
>
报案信息(客户提交)
</div>
<glsxCombiForm
class=
"edit-form-container "
ref=
"editFormRefReport"
labelWidth=
"144px"
defaultWidth=
"320px"
formRef=
"editRefReport"
:formObj=
"editForm"
:formData=
"editFormData"
>
<glsxCombiForm
class=
"edit-form-container "
ref=
"editFormRefReport"
labelWidth=
"144px"
defaultWidth=
"320px"
formRef=
"editRefReport"
:formObj=
"editForm"
:formData=
"editFormData"
>
<template
slot=
"citySelect"
>
<template
slot=
"citySelect"
>
<city-select
@
onChange=
"selectAddress"
></city-select>
<city-select
:isDisabled=
"pageType == 'add' ? false : true"
@
onChange=
"selectAddress"
></city-select>
</
template
>
</
template
>
</glsxCombiForm>
</glsxCombiForm>
</div>
</div>
...
@@ -19,16 +19,45 @@ export default {
...
@@ -19,16 +19,45 @@ export default {
'city-select'
:
citySelect
'city-select'
:
citySelect
},
},
props
:
{
props
:
{
editForm
:
Object
editForm
:
Object
,
pageType
:
{
type
:
String
,
default
:
'add'
//add为新增 look为查看加编辑
}
},
},
data
()
{
data
()
{
return
{
return
{
editFormData
:
[
editFormData
:
[],
showGh
:
false
}
},
created
()
{
this
.
diffHost
()
},
methods
:
{
selectAddress
(
e
)
{
this
.
editForm
.
reimbursementAddress
=
e
.
label
.
join
(
''
)
},
// 从域名判断是不是广汇的
diffHost
()
{
let
href
=
window
.
location
.
host
if
(
href
.
indexOf
(
'cgacar'
)
!=
-
1
)
{
this
.
showGh
=
true
}
else
{
this
.
showGh
=
false
}
this
.
diffKeyHandle
(
this
.
showGh
)
},
// 处理广汇嘀加不同字段显示
diffKeyHandle
(
showGh
)
{
const
isDisabled
=
this
.
pageType
==
'add'
?
false
:
true
const
dj
=
[
{
{
label
:
'合同号'
,
label
:
'合同号'
,
name
:
'contractNo'
,
name
:
'contractNo'
,
type
:
'input'
,
type
:
'input'
,
maxlength
:
100
maxlength
:
100
,
isDisabled
},
},
{
{
label
:
'报案日期'
,
label
:
'报案日期'
,
...
@@ -36,7 +65,8 @@ export default {
...
@@ -36,7 +65,8 @@ export default {
type
:
'datePicker'
,
type
:
'datePicker'
,
dateType
:
'datetime'
,
dateType
:
'datetime'
,
valueFormat
:
'yyyy-MM-dd'
,
valueFormat
:
'yyyy-MM-dd'
,
pickerOptions
:
'afterTodayRangePickerOptions'
pickerOptions
:
'afterTodayRangePickerOptions'
,
isDisabled
},
},
{
{
label
:
'出险日期'
,
label
:
'出险日期'
,
...
@@ -44,31 +74,78 @@ export default {
...
@@ -44,31 +74,78 @@ export default {
type
:
'datePicker'
,
type
:
'datePicker'
,
dateType
:
'datetime'
,
dateType
:
'datetime'
,
valueFormat
:
'yyyy-MM-dd'
,
valueFormat
:
'yyyy-MM-dd'
,
pickerOptions
:
'afterTodayRangePickerOptions'
pickerOptions
:
'afterTodayRangePickerOptions'
,
isDisabled
},
},
{
{
label
:
'出险地点'
,
label
:
'出险地点'
,
name
:
'reimbursementAddress'
,
name
:
'reimbursementAddress'
,
addHtml
:
'citySelect'
addHtml
:
'citySelect'
,
isDisabled
},
},
{
{
label
:
'报案人'
,
label
:
'报案人'
,
name
:
'reportName'
,
name
:
'reportName'
,
type
:
'input'
,
type
:
'input'
,
maxlength
:
100
maxlength
:
100
,
isDisabled
},
},
{
{
label
:
'报案人联系号码'
,
label
:
'报案人联系号码'
,
name
:
'reportPhone'
,
name
:
'reportPhone'
,
type
:
'input'
,
type
:
'input'
,
maxlength
:
11
maxlength
:
11
,
isDisabled
}
}
]
]
}
const
gh
=
[
},
{
methods
:
{
label
:
'核销码'
,
selectAddress
(
e
)
{
name
:
'writeOffCode'
,
this
.
editForm
.
reimbursementAddress
=
e
.
label
.
join
(
''
)
type
:
'input'
,
maxlength
:
8
,
isDisabled
},
{
label
:
'报案日期'
,
name
:
'reportDate'
,
type
:
'datePicker'
,
dateType
:
'datetime'
,
valueFormat
:
'yyyy-MM-dd'
,
pickerOptions
:
'afterTodayRangePickerOptions'
,
isDisabled
},
{
label
:
'出险日期'
,
name
:
'reimbursementDate'
,
type
:
'datePicker'
,
dateType
:
'datetime'
,
valueFormat
:
'yyyy-MM-dd'
,
pickerOptions
:
'afterTodayRangePickerOptions'
,
isDisabled
},
{
label
:
'出险地点'
,
name
:
'reimbursementAddress'
,
addHtml
:
'citySelect'
,
isDisabled
},
{
label
:
'报案人'
,
name
:
'reportName'
,
type
:
'input'
,
maxlength
:
100
,
isDisabled
},
{
label
:
'报案人联系号码'
,
name
:
'reportPhone'
,
type
:
'input'
,
maxlength
:
11
,
isDisabled
}
]
this
.
editFormData
=
showGh
?
gh
:
dj
}
}
}
}
}
}
...
...
src/views/claims/order.vue
View file @
545b0f6
<!-- 权益订单 -->
<!-- 权益订单 -->
<
template
>
<
template
>
<div
class=
"app"
>
<div
class=
"app"
>
<report
:editForm
.
sync=
"editForm"
></report>
<report
:
pageType=
"pageType"
:
editForm
.
sync=
"editForm"
></report>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -20,7 +20,8 @@ export default {
...
@@ -20,7 +20,8 @@ export default {
reimbursementAddress
:
''
,
reimbursementAddress
:
''
,
reportName
:
''
,
reportName
:
''
,
reportPhone
:
''
reportPhone
:
''
}
},
pageType
:
'add'
}
}
},
},
created
()
{},
created
()
{},
...
...
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