Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
dj-digital-equlity
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 dd63f7af
authored
Dec 18, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
保险定损联调
1 parent
7fb68c42
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
28 deletions
src/views/beforeSale/writeOff/components/repairInfo.vue
src/views/beforeSale/writeOff/damage.vue
src/views/beforeSale/writeOff/writeOff.vue
src/views/beforeSale/writeOff/components/repairInfo.vue
View file @
dd63f7a
...
@@ -23,6 +23,10 @@
...
@@ -23,6 +23,10 @@
预估损失金额/元:
预估损失金额/元:
<span>
{{
item
.
applyAmount
}}
</span>
<span>
{{
item
.
applyAmount
}}
</span>
</label>
</label>
<label
v-if=
"item.lossAssessmentFlag"
for=
""
>
保险公司定损金额/元:
<span>
{{
item
.
lossAssessmentAmount
}}
</span>
</label>
<label
for=
""
>
<label
for=
""
>
定损批准金额/元:
定损批准金额/元:
<span>
{{
item
.
approveAmount
}}
</span>
<span>
{{
item
.
approveAmount
}}
</span>
...
@@ -377,8 +381,8 @@ export default {
...
@@ -377,8 +381,8 @@ export default {
/
deep
/
.el-form-item__label
{
/
deep
/
.el-form-item__label
{
padding
:
0
;
padding
:
0
;
}
}
/
deep
/
.el-select
{
/
deep
/
.el-select
{
.el-input__inner{
.el-input__inner
{
vertical-align
:
bottom
!important
;
vertical-align
:
bottom
!important
;
}
}
}
}
...
...
src/views/beforeSale/writeOff/damage.vue
View file @
dd63f7a
...
@@ -37,9 +37,15 @@
...
@@ -37,9 +37,15 @@
<el-checkbox
:disabled=
"item.lossType && item.lossType.length > 0 && !item.lossType.includes('3')"
label=
"3"
>
钥匙
</el-checkbox>
<el-checkbox
:disabled=
"item.lossType && item.lossType.length > 0 && !item.lossType.includes('3')"
label=
"3"
>
钥匙
</el-checkbox>
<el-checkbox
:disabled=
"item.lossType && item.lossType.length > 0 && !item.lossType.includes('4')"
label=
"4"
>
车牌重置
</el-checkbox>
<el-checkbox
:disabled=
"item.lossType && item.lossType.length > 0 && !item.lossType.includes('4')"
label=
"4"
>
车牌重置
</el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
<div
class=
"unit-price"
>
<div>
<label
class=
"required"
for=
""
>
预估损失金额/元:
</label>
<div
class=
"unit-price"
>
<el-input
maxlength=
"13"
:disabled=
"disabled || !item.checked"
@
input=
"validPrice($event, index)"
@
blur=
"changePrice($event, index)"
placeholder=
"请输入定损预估损失金额"
v-model=
"item.applyAmount"
></el-input>
<label
class=
"required"
for=
""
>
预估损失金额/元:
</label>
<el-input
maxlength=
"13"
:disabled=
"disabled || !item.checked"
@
input=
"validPrice($event, index, 'applyAmount')"
@
blur=
"changePrice($event, index, 'applyAmount')"
placeholder=
"请输入"
v-model=
"item.applyAmount"
></el-input>
</div>
<div
v-if=
"item.lossAssessmentFlag"
class=
"unit-price"
>
<label
class=
"required"
for=
""
>
保险公司定损金额/元:
</label>
<el-input
maxlength=
"13"
:disabled=
"disabled || !item.checked"
@
input=
"validPrice($event, index, 'lossAssessmentAmount')"
@
blur=
"changePrice($event, index, 'lossAssessmentAmount')"
placeholder=
"请输入"
v-model=
"item.lossAssessmentAmount"
></el-input>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -468,30 +474,30 @@ export default {
...
@@ -468,30 +474,30 @@ export default {
}
}
]
]
},
},
validPrice
(
e
,
id
){
validPrice
(
e
,
id
,
key
){
let
checkPlan
=
''
+
this
.
serviceCodesList
[
id
]
.
applyAmount
let
checkPlan
=
''
+
this
.
serviceCodesList
[
id
]
[
key
]
checkPlan
=
checkPlan
.
replace
(
/
[^\d
.
]
/g
,
''
).
replace
(
/
\.{2,}
/g
,
'.'
).
replace
(
/^
\.
/g
,
''
).
replace
(
'.'
,
'$#$'
).
replace
(
/
\.
/g
,
''
).
replace
(
'$#$'
,
'.'
);
checkPlan
=
checkPlan
.
replace
(
/
[^\d
.
]
/g
,
''
).
replace
(
/
\.{2,}
/g
,
'.'
).
replace
(
/^
\.
/g
,
''
).
replace
(
'.'
,
'$#$'
).
replace
(
/
\.
/g
,
''
).
replace
(
'$#$'
,
'.'
);
if
(
checkPlan
.
indexOf
(
'.'
)
<
0
&&
checkPlan
!==
''
)
{
if
(
checkPlan
.
indexOf
(
'.'
)
<
0
&&
checkPlan
!==
''
)
{
checkPlan
=
parseFloat
(
checkPlan
)
+
''
checkPlan
=
parseFloat
(
checkPlan
)
+
''
}
else
if
(
checkPlan
.
indexOf
(
'.'
)
>=
0
)
{
}
else
if
(
checkPlan
.
indexOf
(
'.'
)
>=
0
)
{
checkPlan
=
checkPlan
.
replace
(
/^
()
*
(\d
+
)\.(\d\d)
.*$/
,
'$1$2.$3'
)
// 只能输入两个小数
checkPlan
=
checkPlan
.
replace
(
/^
()
*
(\d
+
)\.(\d\d)
.*$/
,
'$1$2.$3'
)
// 只能输入两个小数
}
}
this
.
$set
(
this
.
serviceCodesList
[
id
],
'applyAmount'
,
checkPlan
)
this
.
$set
(
this
.
serviceCodesList
[
id
],
key
,
checkPlan
)
},
},
changePrice
(
e
,
id
){
changePrice
(
e
,
id
,
key
){
if
(
!
e
.
target
.
value
)
return
;
if
(
!
e
.
target
.
value
)
return
;
const
len
=
e
.
target
.
value
.
length
const
len
=
e
.
target
.
value
.
length
let
lastStr
=
e
.
target
.
value
.
charAt
(
len
-
1
)
let
lastStr
=
e
.
target
.
value
.
charAt
(
len
-
1
)
if
(
lastStr
===
'.'
){
if
(
lastStr
===
'.'
){
this
.
$set
(
this
.
serviceCodesList
[
id
],
'applyAmount'
,
e
.
target
.
value
.
substr
(
0
,
len
-
1
))
this
.
$set
(
this
.
serviceCodesList
[
id
],
key
,
e
.
target
.
value
.
substr
(
0
,
len
-
1
))
}
}
const
minPrice
=
1
const
minPrice
=
1
if
(
Number
(
e
.
target
.
value
)
<
minPrice
){
if
(
Number
(
e
.
target
.
value
)
<
minPrice
){
this
.
$set
(
this
.
serviceCodesList
[
id
],
'applyAmount'
,
1
)
this
.
$set
(
this
.
serviceCodesList
[
id
],
key
,
1
)
}
}
const
maxPrice
=
200000
const
maxPrice
=
200000
if
(
Number
(
e
.
target
.
value
)
>
maxPrice
){
if
(
Number
(
e
.
target
.
value
)
>
maxPrice
){
this
.
$set
(
this
.
serviceCodesList
[
id
],
'applyAmount'
,
maxPrice
)
this
.
$set
(
this
.
serviceCodesList
[
id
],
key
,
maxPrice
)
}
}
},
},
transportPic
(){
transportPic
(){
...
@@ -633,6 +639,7 @@ export default {
...
@@ -633,6 +639,7 @@ export default {
//服务list
//服务list
res
.
data
.
itemsList
.
map
(
item
=>
{
res
.
data
.
itemsList
.
map
(
item
=>
{
item
.
applyAmount
=
item
.
applyAmount
?
(
item
.
applyAmount
/
100
).
toFixed
(
2
)
:
item
.
applyAmount
item
.
applyAmount
=
item
.
applyAmount
?
(
item
.
applyAmount
/
100
).
toFixed
(
2
)
:
item
.
applyAmount
item
.
lossAssessmentAmount
=
item
.
lossAssessmentAmount
&&
item
.
lossAssessmentFlag
?
(
item
.
lossAssessmentAmount
/
100
).
toFixed
(
2
)
:
item
.
lossAssessmentAmount
item
.
approveAmount
=
item
.
approveAmount
?
(
item
.
approveAmount
/
100
).
toFixed
(
2
)
:
item
.
approveAmount
item
.
approveAmount
=
item
.
approveAmount
?
(
item
.
approveAmount
/
100
).
toFixed
(
2
)
:
item
.
approveAmount
if
(
item
.
serviceItemCode
==
'SC0003'
&&
!
item
.
lossType
)
item
.
lossType
=
'1'
if
(
item
.
serviceItemCode
==
'SC0003'
&&
!
item
.
lossType
)
item
.
lossType
=
'1'
if
(
item
.
serviceItemCode
==
'SC0006'
)
{
if
(
item
.
serviceItemCode
==
'SC0006'
)
{
...
@@ -719,12 +726,14 @@ export default {
...
@@ -719,12 +726,14 @@ export default {
this
.
serviceCodesList
.
forEach
(
ele
=>
{
this
.
serviceCodesList
.
forEach
(
ele
=>
{
if
(
ele
.
checked
){
if
(
ele
.
checked
){
checkedCode
.
push
(
ele
.
serviceItemCode
)
checkedCode
.
push
(
ele
.
serviceItemCode
)
let
{
id
,
serviceItemCode
,
serviceItemName
,
writeOffCode
,
contractNo
,
approveAmount
,
lossType
,
claimsId
,
applyAmount
}
=
ele
let
{
id
,
serviceItemCode
,
serviceItemName
,
writeOffCode
,
contractNo
,
approveAmount
,
lossType
,
claimsId
,
applyAmount
,
lossAssessmentAmount
}
=
ele
if
(
serviceItemCode
==
'SC0006'
&&
lossType
)
lossType
=
lossType
?.
join
(
','
)
if
(
serviceItemCode
==
'SC0006'
&&
lossType
)
lossType
=
lossType
?.
join
(
','
)
if
(
!
applyAmount
){
if
(
!
applyAmount
){
errorTarget
=
ele
errorTarget
=
ele
}
}
itemsList
.
push
({
id
,
serviceItemCode
,
serviceItemName
,
writeOffCode
,
contractNo
,
approveAmount
:
0
,
lossType
,
claimsId
:
claimsId
||
this
.
resData
.
id
,
applyAmount
:
parseInt
(
applyAmount
*
100
)
})
let
lasAmount
=
lossAssessmentAmount
?
Number
((
lossAssessmentAmount
*
100
).
toFixed
(
0
))
:
0
let
ayAmount
=
applyAmount
?
Number
((
applyAmount
*
100
).
toFixed
(
0
))
:
0
itemsList
.
push
({
id
,
serviceItemCode
,
serviceItemName
,
writeOffCode
,
contractNo
,
approveAmount
:
0
,
lossType
,
claimsId
:
claimsId
||
this
.
resData
.
id
,
applyAmount
:
ayAmount
,
lossAssessmentAmount
:
lasAmount
})
}
}
});
});
if
(
type
==
1
&&
!
itemsList
.
length
)
return
{
error
:
'errorTip'
,
tip
:
`请至少选择一项服务`
}
if
(
type
==
1
&&
!
itemsList
.
length
)
return
{
error
:
'errorTip'
,
tip
:
`请至少选择一项服务`
}
...
@@ -874,11 +883,16 @@ export default {
...
@@ -874,11 +883,16 @@ export default {
.unit-price
{
.unit-price
{
display
:
flex
;
display
:
flex
;
flex-wrap
:
nowrap
;
flex-wrap
:
nowrap
;
margin-bottom
:
10px
;
&:last-child
{
margin-bottom
:
0
;
}
.required
{
.required
{
width
:
154px
;
width
:
154px
;
text-align
:
right
;
text-align
:
right
;
font-weight
:
400
;
font-weight
:
400
;
font-size
:
14px
;
font-size
:
14px
;
white-space
:
nowrap
;
}
}
.el-input
{
.el-input
{
width
:
432px
;
width
:
432px
;
...
...
src/views/beforeSale/writeOff/writeOff.vue
View file @
dd63f7a
...
@@ -17,11 +17,11 @@
...
@@ -17,11 +17,11 @@
<
p
>
寄回发票物流信息
<
/p
>
<
p
>
寄回发票物流信息
<
/p
>
<
div
class
=
"express-item"
>
<
div
class
=
"express-item"
>
<
label
class
=
"label"
for
=
""
>
快递公司:
<
/label
>
<
label
class
=
"label"
for
=
""
>
快递公司:
<
/label
>
<
el
-
input
:
disabled
=
"disabled"
class
=
"input"
size
=
"small"
v
-
model
=
"expressObj.expressName"
type
=
"text"
><
/el-input
>
<
el
-
input
:
disabled
=
"disabled"
class
=
"input"
size
=
"small"
v
-
model
=
"expressObj.expressName"
type
=
"text"
><
/el-input
>
<
/div
>
<
/div
>
<
div
class
=
"express-item"
>
<
div
class
=
"express-item"
>
<
label
class
=
"label"
for
=
""
>
快递单号:
<
/label
>
<
label
class
=
"label"
for
=
""
>
快递单号:
<
/label
>
<
el
-
input
:
disabled
=
"disabled"
class
=
"input"
size
=
"small"
v
-
model
=
"expressObj.expressNo"
type
=
"text"
><
/el-input
>
<
el
-
input
:
disabled
=
"disabled"
class
=
"input"
size
=
"small"
v
-
model
=
"expressObj.expressNo"
type
=
"text"
><
/el-input
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/Card
>
<
/Card
>
...
@@ -233,8 +233,8 @@ export default {
...
@@ -233,8 +233,8 @@ export default {
accountCityCode
:
''
,
accountCityCode
:
''
,
openBankCode
:
''
,
openBankCode
:
''
,
accountNo
:
''
,
accountNo
:
''
,
accountType
:
0
,
accountType
:
0
,
cardNo
:
''
,
cardNo
:
''
,
cardTypeCode
:
''
,
cardTypeCode
:
''
,
phone
:
''
phone
:
''
}
}
...
@@ -308,7 +308,7 @@ export default {
...
@@ -308,7 +308,7 @@ export default {
this
.
accountForm
[
key
]
=
bankAccountDTO
[
key
]
?
bankAccountDTO
[
key
]
:
formatKey
.
includes
(
key
)
?
0
:
''
this
.
accountForm
[
key
]
=
bankAccountDTO
[
key
]
?
bankAccountDTO
[
key
]
:
formatKey
.
includes
(
key
)
?
0
:
''
}
}
this
.
getAccountInfo
(
res
.
data
.
contractNo
)
this
.
getAccountInfo
(
res
.
data
.
contractNo
)
//说明list
//说明list
if
(
!
res
.
data
?.
supplementList2
?.
length
){
if
(
!
res
.
data
?.
supplementList2
?.
length
){
...
@@ -346,11 +346,12 @@ export default {
...
@@ -346,11 +346,12 @@ export default {
res
.
data
.
itemsList
.
map
(
item
=>
{
res
.
data
.
itemsList
.
map
(
item
=>
{
item
.
applyAmount
=
item
.
applyAmount
?
(
item
.
applyAmount
/
100
).
toFixed
(
2
)
:
item
.
applyAmount
item
.
applyAmount
=
item
.
applyAmount
?
(
item
.
applyAmount
/
100
).
toFixed
(
2
)
:
item
.
applyAmount
item
.
approveAmount
=
item
.
approveAmount
?
(
item
.
approveAmount
/
100
).
toFixed
(
2
)
:
item
.
approveAmount
item
.
approveAmount
=
item
.
approveAmount
?
(
item
.
approveAmount
/
100
).
toFixed
(
2
)
:
item
.
approveAmount
item
.
lossAssessmentAmount
=
item
.
lossAssessmentAmount
?
(
item
.
lossAssessmentAmount
/
100
).
toFixed
(
2
)
:
item
.
lossAssessmentAmount
if
(
item
.
serviceItemCode
==
'SC0003'
&&
!
item
.
lossType
)
item
.
lossType
=
'1'
if
(
item
.
serviceItemCode
==
'SC0003'
&&
!
item
.
lossType
)
item
.
lossType
=
'1'
if
(
item
.
serviceItemCode
==
'SC0006'
){
if
(
item
.
serviceItemCode
==
'SC0006'
){
item
.
lossType
=
item
.
lossType
?
item
.
lossType
?.
split
(
','
)
:
[]
item
.
lossType
=
item
.
lossType
?
item
.
lossType
?.
split
(
','
)
:
[]
this
.
curLossType
=
[...
item
.
lossType
]
this
.
curLossType
=
[...
item
.
lossType
]
}
}
item
.
checked
=
item
.
checked
==
1
item
.
checked
=
item
.
checked
==
1
}
)
}
)
const
targetService
=
res
.
data
.
itemsList
.
find
(
item
=>
item
.
checked
)
const
targetService
=
res
.
data
.
itemsList
.
find
(
item
=>
item
.
checked
)
...
@@ -440,9 +441,12 @@ export default {
...
@@ -440,9 +441,12 @@ export default {
const
supplementList2
=
[]
const
supplementList2
=
[]
this
.
serviceCodesList
.
forEach
(
ele
=>
{
this
.
serviceCodesList
.
forEach
(
ele
=>
{
if
(
ele
.
checked
){
if
(
ele
.
checked
){
let
{
id
,
serviceItemCode
,
serviceItemName
,
writeOffCode
,
contractNo
,
approveAmount
,
lossType
,
claimsId
,
applyAmount
}
=
ele
let
{
id
,
serviceItemCode
,
serviceItemName
,
lossAssessmentAmount
,
writeOffCode
,
contractNo
,
approveAmount
,
lossType
,
claimsId
,
applyAmount
}
=
ele
if
(
serviceItemCode
==
'SC0006'
&&
lossType
)
lossType
=
lossType
?.
join
(
','
)
if
(
serviceItemCode
==
'SC0006'
&&
lossType
)
lossType
=
lossType
?.
join
(
','
)
itemsList
.
push
({
id
,
serviceItemCode
,
serviceItemName
,
writeOffCode
,
contractNo
,
approveAmount
:
parseInt
(
approveAmount
*
100
),
lossType
,
claimsId
:
claimsId
||
this
.
resData
.
id
,
applyAmount
:
parseInt
(
applyAmount
*
100
)
}
)
let
aprice
=
approveAmount
?
Number
((
approveAmount
*
100
).
toFixed
(
0
))
:
approveAmount
let
apyprice
=
applyAmount
?
Number
((
applyAmount
*
100
).
toFixed
(
0
))
:
applyAmount
let
lprice
=
lossAssessmentAmount
?
Number
((
lossAssessmentAmount
*
100
).
toFixed
(
0
))
:
lossAssessmentAmount
itemsList
.
push
({
id
,
serviceItemCode
,
serviceItemName
,
writeOffCode
,
contractNo
,
approveAmount
:
aprice
,
lossType
,
claimsId
:
claimsId
||
this
.
resData
.
id
,
applyAmount
:
apyprice
,
lossAssessmentAmount
:
lprice
}
)
}
}
}
);
}
);
let
target
=
null
let
target
=
null
...
@@ -599,8 +603,8 @@ export default {
...
@@ -599,8 +603,8 @@ export default {
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.
original
{
.
original
{
/
deep
/
.
add
-
btn
{
/
deep
/
.
add
-
btn
{
display
:
none
;
display
:
none
;
}
}
}
}
...
@@ -675,18 +679,18 @@ export default {
...
@@ -675,18 +679,18 @@ export default {
}
}
}
}
.
express
-
wrap
{
.
express
-
wrap
{
font
-
weight
:
400
;
font
-
weight
:
400
;
font
-
size
:
14
px
;
font
-
size
:
14
px
;
color
:
#
333333
;
color
:
#
333333
;
.
express
-
item
{
.
express
-
item
{
display
:
flex
;
display
:
flex
;
align
-
items
:
center
;
align
-
items
:
center
;
margin
-
bottom
:
8
px
;
margin
-
bottom
:
8
px
;
.
label
{
.
label
{
text
-
align
:
right
;
text
-
align
:
right
;
}
}
.
input
{
.
input
{
width
:
432
px
;
width
:
432
px
;
}
}
}
}
...
...
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