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 6e7bc2a3
authored
Apr 02, 2022
by
张权
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
合并代码
1 parent
86f2d00e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
84 additions
and
65 deletions
src/views/claims/components/material.vue
src/views/claims/components/repair.vue
src/views/claims/components/report.vue
src/views/claims/order.vue
src/views/claims/components/material.vue
View file @
6e7bc2a
<
template
>
<
template
>
<div
class=
"report-components"
>
<div
class=
"report-components"
>
<div
class=
"title"
>
上传资料
</div>
<div
class=
"title"
>
上传资料
</div>
<div
class=
"material"
>
<div
v-for=
"item in materialData"
:key=
"item.name"
>
<div
v-for=
"item in materialData"
:key=
"item.name"
>
<div>
{{
item
.
label
}}
</div>
<div>
{{
item
.
label
}}
</div>
<el-upload
:class=
"[(item.imgList ? item.limit != item.imgList.length : true) ? '' : 'hidePlusBtn']"
:limit=
"item.limit"
action=
"#"
:before-upload=
"beforeAvatarUpload"
list-type=
"picture-card"
:ref=
"item.name + 'Ref'"
:on-preview=
"handlePictureCardPreview"
:on-remove=
"e => handleRemove(e, item.name)"
:http-request=
"e => httpRequest(e, item.name)"
>
<el-upload
:file-list=
"item.imgList"
:class=
"[(item.imgList ? item.limit != item.imgList.length : true) ? '' : 'hidePlusBtn']"
:limit=
"item.limit"
action=
"#"
:before-upload=
"beforeAvatarUpload"
list-type=
"picture-card"
:ref=
"item.name + 'Ref'"
:on-preview=
"handlePictureCardPreview"
:on-remove=
"e => handleRemove(e, item.name)"
:http-request=
"e => httpRequest(e, item.name)"
>
<i
slot=
"default"
class=
"el-icon-plus"
></i>
<i
slot=
"default"
class=
"el-icon-plus"
></i>
</el-upload>
</el-upload>
<el-dialog
:visible
.
sync=
"dialogVisible"
>
<el-dialog
:visible
.
sync=
"dialogVisible"
>
...
@@ -11,6 +12,7 @@
...
@@ -11,6 +12,7 @@
</el-dialog>
</el-dialog>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -31,11 +33,6 @@ export default {
...
@@ -31,11 +33,6 @@ export default {
billInfo
:
''
,
billInfo
:
''
,
otherInfo
:
''
otherInfo
:
''
},
},
fieldInfo
:
{
cardInfo
:
[],
billInfo
:
[],
otherInfo
:
[]
},
materialData
:
[
materialData
:
[
{
{
label
:
'身份证'
,
label
:
'身份证'
,
...
@@ -53,7 +50,7 @@ export default {
...
@@ -53,7 +50,7 @@ export default {
label
:
'其他'
,
label
:
'其他'
,
name
:
'otherInfo'
,
name
:
'otherInfo'
,
limit
:
1
,
limit
:
1
,
imgList
:
[]
imgList
:
[
{
url
:
'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'
}
]
}
}
]
]
}
}
...
@@ -83,10 +80,9 @@ export default {
...
@@ -83,10 +80,9 @@ export default {
const
targetNameList
=
e
.
name
.
split
(
'.'
)
const
targetNameList
=
e
.
name
.
split
(
'.'
)
const
fileInfo
=
targetNameList
[
targetNameList
.
length
-
1
]
+
'@'
+
arrBase64
[
1
]
const
fileInfo
=
targetNameList
[
targetNameList
.
length
-
1
]
+
'@'
+
arrBase64
[
1
]
this
.
$apis
.
ghBeforeSale
.
uploadImgApi
({
file
:
fileInfo
}).
then
(
res
=>
{
this
.
$apis
.
ghBeforeSale
.
uploadImgApi
({
file
:
fileInfo
}).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
)
{
if
(
res
)
{
let
targetItem
=
this
.
materialData
.
find
(
item
=>
item
.
name
===
fieldName
)
let
targetItem
=
this
.
materialData
.
find
(
item
=>
item
.
name
===
fieldName
)
targetItem
.
imgList
.
push
(
res
)
targetItem
.
imgList
.
push
(
{
url
:
res
}
)
this
.
fieldInfo
[
fieldName
].
push
(
e
.
uid
)
this
.
fieldInfo
[
fieldName
].
push
(
e
.
uid
)
}
else
{
}
else
{
this
.
handleRemove
(
e
,
fieldName
,
1
)
this
.
handleRemove
(
e
,
fieldName
,
1
)
...
@@ -95,13 +91,12 @@ export default {
...
@@ -95,13 +91,12 @@ export default {
}
}
},
},
handleRemove
(
e
,
fieldName
,
isDel
)
{
handleRemove
(
e
,
fieldName
,
isDel
)
{
console
.
log
(
e
,
fieldName
)
if
(
isDel
)
{
if
(
isDel
)
{
let
id
=
this
.
$refs
[
fieldName
+
'Ref'
][
0
].
uploadFiles
.
findIndex
(
item
=>
item
.
uid
===
e
.
uid
)
let
id
=
this
.
$refs
[
fieldName
+
'Ref'
][
0
].
uploadFiles
.
findIndex
(
item
=>
item
.
uid
===
e
.
uid
)
this
.
$refs
[
fieldName
+
'Ref'
][
0
].
uploadFiles
.
splice
(
id
,
1
)
this
.
$refs
[
fieldName
+
'Ref'
][
0
].
uploadFiles
.
splice
(
id
,
1
)
}
else
{
}
else
{
console
.
log
(
this
.
fieldInfo
[
fieldName
],
e
.
uid
)
console
.
log
(
e
,
fieldName
)
let
targetId
=
this
.
fieldInfo
[
fieldName
].
findIndex
(
item
=>
item
===
e
.
uid
)
console
.
log
(
targetId
)
}
}
},
},
handlePictureCardPreview
(
file
)
{
handlePictureCardPreview
(
file
)
{
...
@@ -117,8 +112,13 @@ export default {
...
@@ -117,8 +112,13 @@ export default {
display
:
none
;
display
:
none
;
}
}
}
}
//
上传闪屏问题
/
deep
/
.el-upload-list__item.is-ready
{
display
:
none
;
}
.report-components
{
.report-components
{
background
:
white
;
background
:
white
;
margin-top
:
20px
;
.title
{
.title
{
padding
:
0
20px
;
padding
:
0
20px
;
font-size
:
16px
;
font-size
:
16px
;
...
...
src/views/claims/components/repair.vue
View file @
6e7bc2a
...
@@ -4,17 +4,18 @@
...
@@ -4,17 +4,18 @@
<div
class=
"title"
>
报案信息(店面补充)
</div>
<div
class=
"title"
>
报案信息(店面补充)
</div>
<glsx-combi-form
class=
"edit-form-container"
ref=
"handlerRef"
:formRules=
"accountRule"
labelWidth=
"144px"
defaultWidth=
"320px"
:formObj=
"accountForm"
:formData=
"handlerForm"
></glsx-combi-form>
<glsx-combi-form
class=
"edit-form-container"
ref=
"handlerRef"
:formRules=
"accountRule"
labelWidth=
"144px"
defaultWidth=
"320px"
:formObj=
"accountForm"
:formData=
"handlerForm"
></glsx-combi-form>
</div>
</div>
<div
class=
"report-components"
>
<div
class=
"report-components
repair-wrap
"
>
<div
class=
"title"
>
维修信息
</div>
<div
class=
"title"
>
维修信息
</div>
<div>
<div
class=
"repair-body"
>
<div>
<div>
<label
for=
""
>
批准金额:
</label>
<label
for=
""
>
批准金额:
</label>
<div
class=
"service-wrap"
>
<div
class=
"service-wrap"
>
<div
class=
"service-item"
v-for=
"
item
in equityList"
:key=
"item.name"
>
<div
class=
"service-item"
v-for=
"
(item, index)
in equityList"
:key=
"item.name"
>
<p>
{{
item
.
name
}}
</p>
<p>
{{
item
.
name
}}
</p>
<div
class=
"price"
>
<div
class=
"price"
>
<label
for=
""
>
定损批准金额:
</label>
<label
for=
""
>
定损批准金额:
</label>
<el-input
placeholder=
"请选择定损批准金额"
v-model=
"item.price"
></el-input>
<el-input
@
input=
"validPrice($event, index)"
placeholder=
"请选择定损批准金额"
v-model=
"item.price"
></el-input>
<!--
<el-input
@
input=
"validPrice($event, index)"
placeholder=
"请选择定损批准金额"
v-model=
"item.price"
></el-input>
-->
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -29,11 +30,7 @@
...
@@ -29,11 +30,7 @@
<el-radio
v-model=
"accountForm.collectOwner"
label=
"other"
>
其他
</el-radio>
<el-radio
v-model=
"accountForm.collectOwner"
label=
"other"
>
其他
</el-radio>
</div>
</div>
<div
class=
"account-info"
>
<div
class=
"account-info"
>
<glsx-combi-form
ref=
"accountRef"
:formRules=
"accountRule"
labelWidth=
"144px"
defaultWidth=
"320px"
:formObj=
"accountForm"
:formData=
"accountData"
>
<glsx-combi-form
ref=
"accountRef"
:formRules=
"accountRule"
labelWidth=
"144px"
defaultWidth=
"320px"
:formObj=
"accountForm"
:formData=
"accountData"
></glsx-combi-form>
<!--
<template
slot=
"collectCity"
>
<city-select
@
onChange=
"selectAddress"
></city-select>
</
template
>
-->
</glsx-combi-form>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -46,7 +43,9 @@ const phoneReg = /^(13[0-9]|15[0-9]|16[0-9]|17[0-9]|18[0-9]|19[0-9]|14[0-9])[0-9
...
@@ -46,7 +43,9 @@ const phoneReg = /^(13[0-9]|15[0-9]|16[0-9]|17[0-9]|18[0-9]|19[0-9]|14[0-9])[0-9
export
default
{
export
default
{
name
:
'repair'
,
name
:
'repair'
,
props
:
{
props
:
{
accountForm
:
Object
accountForm
:
Object
,
equityList
:
Array
,
totalPrice
:
Number
},
},
components
:
{
components
:
{
glsxCombiForm
,
glsxCombiForm
,
...
@@ -89,7 +88,15 @@ export default {
...
@@ -89,7 +88,15 @@ export default {
{
{
label
:
'收款账号所在省市'
,
label
:
'收款账号所在省市'
,
name
:
'collectCity'
,
name
:
'collectCity'
,
addHtml
:
'collectCity'
type
:
'cascader'
,
isClear
:
true
,
handleChange
:
cellValue
=>
{
if
(
!
cellValue
||
!
cellValue
.
length
)
{
return
}
let
nodesInfo
=
this
.
$refs
.
accountRef
.
$refs
.
cascader
[
0
].
getCheckedNodes
()[
0
].
pathLabels
this
.
currentAddress
=
nodesInfo
}
},
},
{
{
label
:
'收款人证件类型'
,
label
:
'收款人证件类型'
,
...
@@ -178,48 +185,32 @@ export default {
...
@@ -178,48 +185,32 @@ export default {
}
}
],
],
},
},
equityList
:[
{
name
:
'huiyuan痊愈'
,
price
:
100
},
{
name
:
'会员权益'
,
price
:
92
},
{
name
:
'核赔申请'
,
price
:
65
},
{
name
:
'定损定损'
,
price
:
63
},
]
}
},
computed
:{
totalPrice
(){
return
this
.
equityList
.
reduce
(
function
(
prev
,
cur
)
{
return
prev
+
(
+
cur
.
price
)
},
0
);
}
}
},
},
mounted
()
{
mounted
()
{
},
},
methods
:{
methods
:{
selectAddress
(
e
)
{
validPrice
(
e
,
id
){
this
.
accountForm
.
collectCity
=
e
.
label
.
join
(
''
)
let
checkPlan
=
''
+
this
.
equityList
[
id
].
price
},
checkPlan
=
checkPlan
.
replace
(
/
[^\d
.
]
/g
,
''
).
replace
(
/
\.{2,}
/g
,
'.'
).
replace
(
/^
\.
/g
,
''
).
replace
(
'.'
,
'$#$'
).
replace
(
/
\.
/g
,
''
).
replace
(
'$#$'
,
'.'
);
getParams
(){
if
(
checkPlan
.
indexOf
(
'.'
)
<
0
&&
checkPlan
!==
''
)
{
return
{
equityList
:
this
.
equityList
,
totalPrice
:
this
.
totalPrice
}
// 以上已经过滤,此处控制的是如果没有小数点,首位不能为类似于 01、02的金额
},
checkPlan
=
parseFloat
(
checkPlan
)
+
''
}
else
if
(
checkPlan
.
indexOf
(
'.'
)
>=
0
)
{
checkPlan
=
checkPlan
.
replace
(
/^
()
*
(\d
+
)\.(\d\d)
.*$/
,
'$1$2.$3'
)
// 只能输入两个小数
}
this
.
$set
(
this
.
equityList
[
id
],
'price'
,
checkPlan
)
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.repair-wrap
{
.repair-body
{
padding
:
20px
;
}
}
.report-components
{
.report-components
{
background
:
white
;
background
:
white
;
margin-top
:
20px
;
margin-top
:
20px
;
...
...
src/views/claims/components/report.vue
View file @
6e7bc2a
<
template
>
<
template
>
<div
class=
"report-components"
>
<div
class=
"report-components"
>
<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"
:formRules=
"editRule"
></glsxCombiForm>
<glsxCombiForm
class=
"edit-form-container "
ref=
"editFormRefReport"
labelWidth=
"144px"
defaultWidth=
"320px"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
></glsxCombiForm>
</div>
</div>
</
template
>
</
template
>
...
...
src/views/claims/order.vue
View file @
6e7bc2a
<!-- 权益订单 -->
<!-- 权益订单 -->
<
template
>
<
template
>
<div
class=
"app"
>
<div
class=
"app"
>
<report
:pageType=
"pageType"
:editForm
.
sync=
"editForm"
></report>
<report
ref=
"reportRef"
:pageType=
"pageType"
:editForm
.
sync=
"editForm"
></report>
<repair
ref=
"repairRef"
:accountForm
.
sync=
"accountForm"
></repair>
<repair
ref=
"repairRef"
:
equityList
.
sync=
"equityList"
:totalPrice
.
sync=
"totalPrice"
:
accountForm
.
sync=
"accountForm"
></repair>
<material
ref=
"materialRef"
:materialForm
.
sync=
"materialForm"
></material>
<material
ref=
"materialRef"
:materialForm
.
sync=
"materialForm"
></material>
<el-button
type=
"primary"
size=
"small"
@
click=
"validAccountInfo"
>
校验
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"validAccountInfo"
>
校验
</el-button>
</div>
</div>
...
@@ -43,15 +43,41 @@ export default {
...
@@ -43,15 +43,41 @@ export default {
handlerName
:
''
,
handlerName
:
''
,
handlerPhone
:
''
handlerPhone
:
''
},
},
materialForm
:
{}
materialForm
:
{},
equityList
:
[
{
name
:
'huiyuan痊愈'
,
price
:
100
},
{
name
:
'会员权益'
,
price
:
92
},
{
name
:
'核赔申请'
,
price
:
65
},
{
name
:
'定损定损'
,
price
:
63
}
]
}
}
},
},
created
()
{
created
()
{
const
urlParam
=
this
.
$route
.
params
// const urlParam = this.$route.params
const
urlQuery
=
JSON
.
parse
(
decodeURIComponent
(
urlParam
.
id
))
// const urlQuery = JSON.parse(decodeURIComponent(urlParam.id))
this
.
pageType
=
urlQuery
.
editNo
// this.pageType = urlQuery.editNo
this
.
routeInfo
=
urlQuery
// this.routeInfo = urlQuery
this
.
handleFormInfo
(
urlQuery
.
contractNo
,
urlQuery
.
isGH
)
// this.handleFormInfo(urlQuery.contractNo, urlQuery.isGH)
},
computed
:
{
totalPrice
()
{
let
total
=
this
.
equityList
.
reduce
(
function
(
prev
,
cur
)
{
return
prev
+
parseInt
(
cur
.
price
*
100
)
},
0
)
return
total
/
100
}
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
...
@@ -68,12 +94,14 @@ export default {
...
@@ -68,12 +94,14 @@ export default {
this
.
editForm
.
contractNo
=
contractNo
this
.
editForm
.
contractNo
=
contractNo
},
},
validAccountInfo
()
{
validAccountInfo
()
{
console
.
log
(
this
.
$refs
.
rep
air
Ref
)
console
.
log
(
this
.
$refs
.
rep
ort
Ref
)
this
.
$refs
.
repairRef
.
$refs
.
accountRef
.
$refs
.
formRef
.
validate
(
valid
=>
{
this
.
$refs
.
repairRef
.
$refs
.
accountRef
.
$refs
.
formRef
.
validate
(
valid
=>
{
this
.
$refs
.
repairRef
.
$refs
.
handlerRef
.
$refs
.
formRef
.
validate
(
valid
=>
{
this
.
$refs
.
repairRef
.
$refs
.
handlerRef
.
$refs
.
formRef
.
validate
(
valid
=>
{
this
.
$refs
.
reportRef
.
$refs
.
editFormRefReport
.
$refs
.
formRef
.
validate
(
valid
=>
{
console
.
log
(
this
.
editForm
,
this
.
accountForm
,
this
.
$refs
.
repairRef
.
getParams
())
console
.
log
(
this
.
editForm
,
this
.
accountForm
,
this
.
$refs
.
repairRef
.
getParams
())
})
})
})
})
})
}
}
}
}
}
}
...
...
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