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 46c986c5
authored
Mar 28, 2024
by
张权
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' into 'v3.26.1'
Master See merge request
!56
2 parents
9033eeb1
101a3f67
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
87 additions
and
38 deletions
src/views/beforeSale/editEquity.vue
src/views/claims/components/check/index.vue
src/views/claims/components/checkClaims/index.vue
src/views/claims/components/repair.vue
src/views/claims/ghIndex.vue
src/views/claims/index.vue
src/views/claims/order.vue
src/views/beforeSale/editEquity.vue
View file @
46c986c
...
@@ -153,7 +153,7 @@
...
@@ -153,7 +153,7 @@
<div
v-for=
"(item, index) in customProductList"
:key=
"index"
class=
"product_wrapper"
>
<div
v-for=
"(item, index) in customProductList"
:key=
"index"
class=
"product_wrapper"
>
<div
style=
"padding-left: 73px"
>
<div
style=
"padding-left: 73px"
>
<el-checkbox
@
change=
"changeRaido($event, item, index)"
:label=
"item.packageName"
:disabled=
"item.disabled"
>
<el-checkbox
@
change=
"changeRaido($event, item, index)"
:label=
"item.packageName"
:disabled=
"item.disabled"
>
<div>
{{ item.packageName }}
</div>
<div>
{{ item.pa
rentName ? item.packageName + '-' + item.parentName : item.pa
ckageName }}
</div>
</el-checkbox>
</el-checkbox>
<p
class=
"h20_title product_intro"
>
包括服务项目:{{ item.serviceItems }}
</p>
<p
class=
"h20_title product_intro"
>
包括服务项目:{{ item.serviceItems }}
</p>
</div>
</div>
...
@@ -1279,6 +1279,10 @@ export default {
...
@@ -1279,6 +1279,10 @@ export default {
packageCode
:
pack
.
packageCode
,
packageCode
:
pack
.
packageCode
,
printType
:
pack
.
printType
printType
:
pack
.
printType
}
}
if
(
pack
.
parentId
&&
pack
.
parentName
)
{
temp
.
parentId
=
pack
.
parentId
temp
.
parentName
=
pack
.
parentName
}
this
.
productModal
[
pack
.
idName
]
=
{
this
.
productModal
[
pack
.
idName
]
=
{
...
temp
,
...
temp
,
...
orgin
,
...
orgin
,
...
@@ -1373,11 +1377,17 @@ export default {
...
@@ -1373,11 +1377,17 @@ export default {
let
attrStr
=
`attributes[
${
j
}
].packageCode`
let
attrStr
=
`attributes[
${
j
}
].packageCode`
let
contractNoStr
=
`attributes[
${
j
}
].contractNo`
let
contractNoStr
=
`attributes[
${
j
}
].contractNo`
let
printType
=
`attributes[
${
j
}
].printType`
let
printType
=
`attributes[
${
j
}
].printType`
let
parentId
=
`attributes[
${
j
}
].parentId`
let
parentName
=
`attributes[
${
j
}
].parentName`
let
temp
=
{
let
temp
=
{
[
attrStr
]:
codeList
[
j
],
[
attrStr
]:
codeList
[
j
],
[
contractNoStr
]:
arr
[
i
].
contractNo
,
[
contractNoStr
]:
arr
[
i
].
contractNo
,
[
printType
]:
arr
[
i
].
printType
[
printType
]:
arr
[
i
].
printType
}
}
if
(
arr
[
i
].
parentName
)
{
temp
[
parentId
]
=
arr
[
i
].
parentId
temp
[
parentName
]
=
arr
[
i
].
parentName
}
newArr
.
push
(
temp
)
newArr
.
push
(
temp
)
}
}
}
}
...
@@ -1673,6 +1683,10 @@ export default {
...
@@ -1673,6 +1683,10 @@ export default {
params
.
tireFlag
=
1
params
.
tireFlag
=
1
}
}
this
.
$apis
.
beforeSale
.
getNewPackageListApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
beforeSale
.
getNewPackageListApi
(
params
).
then
(
res
=>
{
//新增的时候过滤已下架副套餐的产品
if
(
this
.
routeInfo
.
addOrEdit
==
1
)
{
res
=
res
?.
filter
(
item
=>
item
.
shelfStatus
!==
0
)
||
[]
}
this
.
allProdList
=
res
||
[]
this
.
allProdList
=
res
||
[]
res
.
forEach
((
item
,
index
)
=>
{
res
.
forEach
((
item
,
index
)
=>
{
let
obj
=
null
let
obj
=
null
...
@@ -1730,6 +1744,11 @@ export default {
...
@@ -1730,6 +1744,11 @@ export default {
packCode
=
[]
packCode
=
[]
detailInfo
.
attributes
.
forEach
(
item
=>
{
detailInfo
.
attributes
.
forEach
(
item
=>
{
let
targetItem
=
productArrData
.
find
(
k
=>
k
.
packageCode
==
item
.
packageCode
)
let
targetItem
=
productArrData
.
find
(
k
=>
k
.
packageCode
==
item
.
packageCode
)
//编辑时,把详情里面的副套餐parentId覆盖without产品列表里的parentId
if
(
targetItem
&&
item
.
parentId
)
{
targetItem
.
parentId
=
item
.
parentId
targetItem
.
parentName
=
item
.
parentName
}
const
defalutAttr
=
this
.
handleDefaultValue
(
targetItem
,
item
.
attributeDTOList
)
const
defalutAttr
=
this
.
handleDefaultValue
(
targetItem
,
item
.
attributeDTOList
)
if
(
defalutAttr
.
length
)
{
if
(
defalutAttr
.
length
)
{
item
.
attributeDTOList
=
this
.
handlerAttrSetValue
(
this
.
unique
(
defalutAttr
),
item
.
attributeDTOList
)
item
.
attributeDTOList
=
this
.
handlerAttrSetValue
(
this
.
unique
(
defalutAttr
),
item
.
attributeDTOList
)
...
...
src/views/claims/components/check/index.vue
View file @
46c986c
...
@@ -284,7 +284,10 @@ export default {
...
@@ -284,7 +284,10 @@ export default {
if
(
Number
(
e
.
target
.
value
)
<
minPrice
)
{
if
(
Number
(
e
.
target
.
value
)
<
minPrice
)
{
this
.
$set
(
this
.
itemList
[
id
],
key
,
1
)
this
.
$set
(
this
.
itemList
[
id
],
key
,
1
)
}
}
const
maxPrice
=
200000
let
maxPrice
=
200000
if
(
key
==
'lossAssessmentAmount'
)
{
maxPrice
=
2000000
}
if
(
Number
(
e
.
target
.
value
)
>
maxPrice
)
{
if
(
Number
(
e
.
target
.
value
)
>
maxPrice
)
{
this
.
$set
(
this
.
itemList
[
id
],
key
,
maxPrice
)
this
.
$set
(
this
.
itemList
[
id
],
key
,
maxPrice
)
}
}
...
...
src/views/claims/components/checkClaims/index.vue
View file @
46c986c
...
@@ -335,7 +335,10 @@ export default {
...
@@ -335,7 +335,10 @@ export default {
if
(
Number
(
e
.
target
.
value
)
<
minPrice
)
{
if
(
Number
(
e
.
target
.
value
)
<
minPrice
)
{
this
.
$set
(
this
.
itemsList
[
id
],
type
,
1
)
this
.
$set
(
this
.
itemsList
[
id
],
type
,
1
)
}
}
const
maxPrice
=
200000
let
maxPrice
=
200000
if
(
type
==
'lossAssessmentAmount'
)
{
maxPrice
=
2000000
}
if
(
Number
(
e
.
target
.
value
)
>
maxPrice
)
{
if
(
Number
(
e
.
target
.
value
)
>
maxPrice
)
{
this
.
$set
(
this
.
itemsList
[
id
],
type
,
maxPrice
)
this
.
$set
(
this
.
itemsList
[
id
],
type
,
maxPrice
)
}
}
...
...
src/views/claims/components/repair.vue
View file @
46c986c
...
@@ -29,6 +29,10 @@
...
@@ -29,6 +29,10 @@
<label
class=
"label"
for=
""
>
定损批准金额:
</label>
<label
class=
"label"
for=
""
>
定损批准金额:
</label>
<el-input
:disabled=
"pageType == 2 || renewDisable"
maxlength=
"10"
@
input=
"validPrice($event, index, 'approveAmount')"
@
blur=
"changePrice($event, index, 'approveAmount')"
placeholder=
"请输入"
v-model=
"item.approveAmount"
></el-input>
<el-input
:disabled=
"pageType == 2 || renewDisable"
maxlength=
"10"
@
input=
"validPrice($event, index, 'approveAmount')"
@
blur=
"changePrice($event, index, 'approveAmount')"
placeholder=
"请输入"
v-model=
"item.approveAmount"
></el-input>
</div>
</div>
<div
v-if=
"!isGH && !isXB"
class=
"price-wrap"
>
<label
class=
"label"
for=
""
>
申请金额:
</label>
<el-input
:disabled=
"pageType == 2 || renewDisable || !item.approveAmount"
maxlength=
"10"
@
input=
"validPrice($event, index, 'customerApplyAmount')"
@
blur=
"changePrice($event, index, 'customerApplyAmount')"
placeholder=
"请输入"
v-model=
"item.customerApplyAmount"
></el-input>
</div>
<div
v-if=
"!isXB && item.lossAssessmentFlag"
class=
"price-wrap"
>
<div
v-if=
"!isXB && item.lossAssessmentFlag"
class=
"price-wrap"
>
<label
class=
"label"
for=
""
>
保险公司定损金额:
</label>
<label
class=
"label"
for=
""
>
保险公司定损金额:
</label>
<el-input
:disabled=
"pageType == 2 || renewDisable || !item.approveAmount"
maxlength=
"10"
@
input=
"validPrice($event, index, 'lossAssessmentAmount')"
@
blur=
"changePrice($event, index, 'lossAssessmentAmount')"
placeholder=
"请输入"
v-model=
"item.lossAssessmentAmount"
></el-input>
<el-input
:disabled=
"pageType == 2 || renewDisable || !item.approveAmount"
maxlength=
"10"
@
input=
"validPrice($event, index, 'lossAssessmentAmount')"
@
blur=
"changePrice($event, index, 'lossAssessmentAmount')"
placeholder=
"请输入"
v-model=
"item.lossAssessmentAmount"
></el-input>
...
@@ -337,7 +341,10 @@ export default {
...
@@ -337,7 +341,10 @@ export default {
if
(
Number
(
e
.
target
.
value
)
<
minPrice
)
{
if
(
Number
(
e
.
target
.
value
)
<
minPrice
)
{
this
.
$set
(
this
.
serviceItemsList
[
id
],
key
,
1
)
this
.
$set
(
this
.
serviceItemsList
[
id
],
key
,
1
)
}
}
const
maxPrice
=
2000000
let
maxPrice
=
200000
if
(
key
==
'lossAssessmentAmount'
)
{
maxPrice
=
2000000
}
if
(
Number
(
e
.
target
.
value
)
>
maxPrice
)
{
if
(
Number
(
e
.
target
.
value
)
>
maxPrice
)
{
this
.
$set
(
this
.
serviceItemsList
[
id
],
key
,
maxPrice
)
this
.
$set
(
this
.
serviceItemsList
[
id
],
key
,
maxPrice
)
}
}
...
...
src/views/claims/ghIndex.vue
View file @
46c986c
...
@@ -229,7 +229,7 @@ const followList = [
...
@@ -229,7 +229,7 @@ const followList = [
const
tableStatus
=
[
'待提交国任'
,
'待支付'
,
'校验不通过'
,
'支付成功'
,
'支付失败'
,
'待受理'
,
'待定损'
,
'定损不通过'
,
'定损通过'
,
'待主管审核'
,
'主管审核不通过'
,
'待客户签字授权'
,
'待核赔'
,
'核赔不通过'
,
'核赔通过'
,
''
,
''
,
''
,
''
,
''
,
''
,
''
,
''
,
''
,
''
,
''
,
'待运营经理审核'
,
'运营经理审核通过'
,
'运营经理审核不通过'
,
'已失效'
,
'已删除'
,
'已结束案件'
]
const
tableStatus
=
[
'待提交国任'
,
'待支付'
,
'校验不通过'
,
'支付成功'
,
'支付失败'
,
'待受理'
,
'待定损'
,
'定损不通过'
,
'定损通过'
,
'待主管审核'
,
'主管审核不通过'
,
'待客户签字授权'
,
'待核赔'
,
'核赔不通过'
,
'核赔通过'
,
''
,
''
,
''
,
''
,
''
,
''
,
''
,
''
,
''
,
''
,
''
,
'待运营经理审核'
,
'运营经理审核通过'
,
'运营经理审核不通过'
,
'已失效'
,
'已删除'
,
'已结束案件'
]
const
colors
=
[
'#FDB757'
,
'#FDB757'
,
'#EB4E4E'
,
' #2CCA74'
,
'#EB4E4E'
,
'#FDB757'
,
'#FDB757'
,
'#EB4E4E'
,
' #2CCA74'
,
'#FDB757'
,
'#EB4E4E'
,
'#FDB757'
,
'#FDB757'
,
'#EB4E4E'
,
'#2CCA74'
,
''
,
''
,
''
,
''
,
''
,
''
,
''
,
''
,
''
,
''
,
''
,
'#FDB757'
,
'#2CCA74'
,
'#EB4E4E'
,
'#999'
,
'#999'
,
'#999'
]
const
colors
=
[
'#FDB757'
,
'#FDB757'
,
'#EB4E4E'
,
' #2CCA74'
,
'#EB4E4E'
,
'#FDB757'
,
'#FDB757'
,
'#EB4E4E'
,
' #2CCA74'
,
'#FDB757'
,
'#EB4E4E'
,
'#FDB757'
,
'#FDB757'
,
'#EB4E4E'
,
'#2CCA74'
,
''
,
''
,
''
,
''
,
''
,
''
,
''
,
''
,
''
,
''
,
''
,
'#FDB757'
,
'#2CCA74'
,
'#EB4E4E'
,
'#999'
,
'#999'
,
'#999'
]
// 操作对应状态
// 操作对应状态
const
WATCH
=
[
5
,
7
,
13
,
8
,
9
,
10
,
11
,
1
,
3
,
4
,
26
,
27
,
28
,
29
,
30
,
31
]
// 查看
const
WATCH
=
[
5
,
7
,
13
,
8
,
9
,
10
,
11
,
1
2
,
14
,
1
,
3
,
4
,
26
,
27
,
28
,
29
,
30
,
31
]
// 查看
const
FOLLOW_HISTORY
=
[
5
,
6
,
12
,
7
,
13
,
8
,
9
,
10
,
11
,
2
,
1
,
3
]
//跟进记录和历史赔付
const
FOLLOW_HISTORY
=
[
5
,
6
,
12
,
7
,
13
,
8
,
9
,
10
,
11
,
2
,
1
,
3
]
//跟进记录和历史赔付
const
CHECK
=
[
6
]
// 定损审核
const
CHECK
=
[
6
]
// 定损审核
const
CHECK_HP
=
[
12
]
// 核赔审核
const
CHECK_HP
=
[
12
]
// 核赔审核
...
@@ -363,7 +363,7 @@ export default {
...
@@ -363,7 +363,7 @@ export default {
}
}
},
},
{
{
type
:
'
GLB
utton'
,
type
:
'
el-b
utton'
,
name
:
row
=>
{
name
:
row
=>
{
return
'查看'
return
'查看'
},
},
...
...
src/views/claims/index.vue
View file @
46c986c
...
@@ -111,12 +111,12 @@ export default {
...
@@ -111,12 +111,12 @@ export default {
}
}
},
},
{
{
type
:
'
GLB
utton'
,
type
:
'
el-b
utton'
,
name
:
row
=>
{
name
:
row
=>
{
return
'查看'
return
'查看'
},
},
condition
:
row
=>
{
condition
:
row
=>
{
return
[
1
,
3
,
4
,
21
,
24
].
includes
(
row
.
scope
.
status
)
return
row
.
scope
.
status
!=
19
},
},
attrs
:
{
attrs
:
{
type
:
'text'
,
type
:
'text'
,
...
@@ -411,10 +411,10 @@ export default {
...
@@ -411,10 +411,10 @@ export default {
mounted
()
{
mounted
()
{
// this.handleUploadBefore()
// this.handleUploadBefore()
},
},
beforeDestroy
(){
beforeDestroy
()
{
const
{
pageNum
,
pageSize
}
=
this
.
$refs
?.
equityRef
?.
page
||
{}
const
{
pageNum
,
pageSize
}
=
this
.
$refs
?.
equityRef
?.
page
||
{}
const
djPageInfo
=
{
...
this
.
searchForm
,
pageNum
,
pageSize
}
const
djPageInfo
=
{
...
this
.
searchForm
,
pageNum
,
pageSize
}
window
.
sessionStorage
.
setItem
(
'djPageInfo'
,
JSON
.
stringify
(
djPageInfo
))
window
.
sessionStorage
.
setItem
(
'djPageInfo'
,
JSON
.
stringify
(
djPageInfo
))
},
},
methods
:
{
methods
:
{
getClaimsCount
()
{
getClaimsCount
()
{
...
@@ -430,9 +430,9 @@ export default {
...
@@ -430,9 +430,9 @@ export default {
},
},
batchAudit
()
{
batchAudit
()
{
const
data
=
this
.
$refs
.
equityRef
?.
mutiSelectArr
?.[
this
.
tableParams
.
mutiSelectName
]
||
[]
const
data
=
this
.
$refs
.
equityRef
?.
mutiSelectArr
?.[
this
.
tableParams
.
mutiSelectName
]
||
[]
if
(
!
data
?.
length
)
return
this
.
$message
.
error
(
'请选择需要审批的记录'
)
if
(
!
data
?.
length
)
return
this
.
$message
.
error
(
'请选择需要审批的记录'
)
const
_target
=
data
.
find
(
item
=>
item
.
status
!=
21
&
item
.
status
!=
23
)
//批量操作只操作 待审核 和 待运营经理审核
const
_target
=
data
.
find
(
item
=>
(
item
.
status
!=
21
)
&
(
item
.
status
!=
23
))
//批量操作只操作 待审核 和 待运营经理审核
if
(
_target
)
return
this
.
$message
.
error
(
'请选择待审核的记录'
)
if
(
_target
)
return
this
.
$message
.
error
(
'请选择待审核的记录'
)
const
parmas
=
{
const
parmas
=
{
idList
:
data
.
map
(
item
=>
item
.
id
)
idList
:
data
.
map
(
item
=>
item
.
id
)
}
}
...
@@ -442,14 +442,17 @@ export default {
...
@@ -442,14 +442,17 @@ export default {
spinner
:
'el-icon-loading'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.3)'
background
:
'rgba(0, 0, 0, 0.3)'
})
})
this
.
$apis
.
claims
.
batchPassApi
(
parmas
).
then
(
res
=>
{
this
.
$apis
.
claims
if
(
res
)
{
.
batchPassApi
(
parmas
)
this
.
$message
.
success
(
'操作成功'
)
.
then
(
res
=>
{
this
.
handleOkFn
()
if
(
res
)
{
}
this
.
$message
.
success
(
'操作成功'
)
}).
finally
(
end
=>
{
this
.
handleOkFn
()
loading
.
close
()
}
})
})
.
finally
(
end
=>
{
loading
.
close
()
})
},
},
// 1.新增 2.查看 3.重新提交 4.去处理 5.运营经理审核 6 核赔审核
// 1.新增 2.查看 3.重新提交 4.去处理 5.运营经理审核 6 核赔审核
handleEdit
(
editNo
,
row
)
{
handleEdit
(
editNo
,
row
)
{
...
@@ -483,17 +486,17 @@ export default {
...
@@ -483,17 +486,17 @@ export default {
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
searchParams
=
{
...
this
.
getParams
()
}
this
.
searchParams
=
{
...
this
.
getParams
()
}
const
{
pageNum
,
pageSize
}
=
JSON
.
parse
(
window
.
sessionStorage
.
getItem
(
'djPageInfo'
)
||
'{}'
)
const
{
pageNum
,
pageSize
}
=
JSON
.
parse
(
window
.
sessionStorage
.
getItem
(
'djPageInfo'
)
||
'{}'
)
if
(
pageNum
&&
pageSize
)
{
if
(
pageNum
&&
pageSize
)
{
this
.
searchParams
.
pageNum
=
pageNum
this
.
searchParams
.
pageNum
=
pageNum
this
.
searchParams
.
pageSize
=
pageSize
this
.
searchParams
.
pageSize
=
pageSize
}
}
resolve
()
resolve
()
})
})
},
},
setTableFinishFun
(){
setTableFinishFun
()
{
const
{
pageNum
,
pageSize
}
=
JSON
.
parse
(
window
.
sessionStorage
.
getItem
(
'djPageInfo'
)
||
'{}'
)
const
{
pageNum
,
pageSize
}
=
JSON
.
parse
(
window
.
sessionStorage
.
getItem
(
'djPageInfo'
)
||
'{}'
)
if
(
pageNum
&&
pageSize
)
{
if
(
pageNum
&&
pageSize
)
{
this
.
$refs
.
equityRef
.
page
.
pageNum
=
pageNum
this
.
$refs
.
equityRef
.
page
.
pageNum
=
pageNum
this
.
$refs
.
equityRef
.
page
.
pageSize
=
pageSize
this
.
$refs
.
equityRef
.
page
.
pageSize
=
pageSize
this
.
$forceUpdate
()
this
.
$forceUpdate
()
...
@@ -503,10 +506,10 @@ export default {
...
@@ -503,10 +506,10 @@ export default {
getParams
()
{
getParams
()
{
const
sessionInfo
=
window
.
sessionStorage
.
getItem
(
'djPageInfo'
)
const
sessionInfo
=
window
.
sessionStorage
.
getItem
(
'djPageInfo'
)
const
searchForm
=
JSON
.
parse
(
sessionInfo
||
'{}'
)
const
searchForm
=
JSON
.
parse
(
sessionInfo
||
'{}'
)
if
(
sessionInfo
)
{
if
(
sessionInfo
)
{
delete
searchForm
.
pageNum
delete
searchForm
.
pageNum
delete
searchForm
.
pageSize
delete
searchForm
.
pageSize
this
.
searchForm
=
{
...
this
.
searchForm
,
...
searchForm
}
this
.
searchForm
=
{
...
this
.
searchForm
,
...
searchForm
}
}
}
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
Array
.
isArray
(
params
.
commitDate
)
&&
params
.
commitDate
.
length
>
0
)
{
if
(
Array
.
isArray
(
params
.
commitDate
)
&&
params
.
commitDate
.
length
>
0
)
{
...
...
src/views/claims/order.vue
View file @
46c986c
...
@@ -257,15 +257,18 @@ export default {
...
@@ -257,15 +257,18 @@ export default {
params
.
reimbursementCountiesCode
=
params
.
reimbursementAddress
[
2
]
params
.
reimbursementCountiesCode
=
params
.
reimbursementAddress
[
2
]
}
}
params
.
approveAmounts
=
''
params
.
approveAmounts
=
''
let
tagetObj
=
{}
let
tagetObj
=
{},
let
lossAssessmentTarget
=
{}
lossAssessmentTarget
=
{},
customesPriceObj
=
{}
this
.
serviceItemsList
.
forEach
(
item
=>
{
this
.
serviceItemsList
.
forEach
(
item
=>
{
tagetObj
[
item
.
serviceItemCode
]
=
item
.
approveAmount
tagetObj
[
item
.
serviceItemCode
]
=
item
.
approveAmount
customesPriceObj
[
item
.
serviceItemCode
]
=
item
.
customerApplyAmount
if
(
item
.
lossAssessmentFlag
)
{
if
(
item
.
lossAssessmentFlag
)
{
lossAssessmentTarget
[
item
.
serviceItemCode
]
=
item
.
lossAssessmentAmount
lossAssessmentTarget
[
item
.
serviceItemCode
]
=
item
.
lossAssessmentAmount
}
}
})
})
params
.
approveAmounts
=
JSON
.
stringify
(
tagetObj
)
params
.
approveAmounts
=
JSON
.
stringify
(
tagetObj
)
params
.
customerApplyAmounts
=
JSON
.
stringify
(
customesPriceObj
)
params
.
lossAssessmentAmounts
=
JSON
.
stringify
(
lossAssessmentTarget
)
params
.
lossAssessmentAmounts
=
JSON
.
stringify
(
lossAssessmentTarget
)
delete
params
.
reimbursementAddress
delete
params
.
reimbursementAddress
params
.
fileList
=
[]
params
.
fileList
=
[]
...
@@ -502,17 +505,21 @@ export default {
...
@@ -502,17 +505,21 @@ export default {
})
})
})
})
if
(
!
valid
)
return
valid
if
(
!
valid
)
return
valid
let
requirePrice
=
true
let
requirePrice
=
true
,
let
lossAssTipItem
=
null
lossAssTipItem
=
null
,
let
approItem
=
null
approItem
=
null
,
custPriTag
=
null
this
.
serviceItemsList
.
forEach
(
item
=>
{
this
.
serviceItemsList
.
forEach
(
item
=>
{
if
(
item
.
approveAmount
>
0
)
{
if
(
item
.
approveAmount
>
0
)
{
requirePrice
=
false
requirePrice
=
false
}
}
if
(
item
.
approveAmount
>
0
&&
!
item
.
customerApplyAmount
)
{
custPriTag
=
item
}
if
(
item
.
approveAmount
&&
item
.
lossAssessmentFlag
&&
!
item
.
lossAssessmentAmount
)
{
if
(
item
.
approveAmount
&&
item
.
lossAssessmentFlag
&&
!
item
.
lossAssessmentAmount
)
{
lossAssTipItem
=
item
lossAssTipItem
=
item
}
}
if
(
!
item
.
approveAmount
&&
item
.
lossAssessmentFlag
&&
item
.
lossAssessmentAmount
)
{
if
(
!
item
.
approveAmount
&&
((
item
.
lossAssessmentFlag
&&
item
.
lossAssessmentAmount
)
||
item
.
customerApplyAmount
)
)
{
approItem
=
item
approItem
=
item
}
}
})
})
...
@@ -520,6 +527,10 @@ export default {
...
@@ -520,6 +527,10 @@ export default {
this
.
$message
.
error
(
'至少输入一项服务的定损批准金额'
)
this
.
$message
.
error
(
'至少输入一项服务的定损批准金额'
)
return
false
return
false
}
}
if
(
custPriTag
)
{
this
.
$message
.
error
(
`请输入
${
custPriTag
.
serviceItemName
}
的申请金额`
)
return
false
}
if
(
approItem
)
{
if
(
approItem
)
{
this
.
$message
.
error
(
`请输入
${
approItem
.
serviceItemName
}
的定损批准金额`
)
this
.
$message
.
error
(
`请输入
${
approItem
.
serviceItemName
}
的定损批准金额`
)
return
false
return
false
...
@@ -572,15 +583,18 @@ export default {
...
@@ -572,15 +583,18 @@ export default {
params
.
reimbursementCountiesCode
=
params
.
reimbursementAddress
[
2
]
params
.
reimbursementCountiesCode
=
params
.
reimbursementAddress
[
2
]
}
}
params
.
approveAmounts
=
''
params
.
approveAmounts
=
''
let
tagetObj
=
{}
let
tagetObj
=
{},
let
lossAssessmentTarget
=
{}
lossAssessmentTarget
=
{},
customesPriceObj
=
{}
this
.
serviceItemsList
.
forEach
(
item
=>
{
this
.
serviceItemsList
.
forEach
(
item
=>
{
tagetObj
[
item
.
serviceItemCode
]
=
item
.
approveAmount
tagetObj
[
item
.
serviceItemCode
]
=
item
.
approveAmount
customesPriceObj
[
item
.
serviceItemCode
]
=
item
.
customerApplyAmount
if
(
item
.
lossAssessmentFlag
)
{
if
(
item
.
lossAssessmentFlag
)
{
lossAssessmentTarget
[
item
.
serviceItemCode
]
=
item
.
lossAssessmentAmount
lossAssessmentTarget
[
item
.
serviceItemCode
]
=
item
.
lossAssessmentAmount
}
}
})
})
params
.
approveAmounts
=
JSON
.
stringify
(
tagetObj
)
params
.
approveAmounts
=
JSON
.
stringify
(
tagetObj
)
params
.
customerApplyAmounts
=
JSON
.
stringify
(
customesPriceObj
)
params
.
lossAssessmentAmounts
=
JSON
.
stringify
(
lossAssessmentTarget
)
params
.
lossAssessmentAmounts
=
JSON
.
stringify
(
lossAssessmentTarget
)
delete
params
.
reimbursementAddress
delete
params
.
reimbursementAddress
params
.
fileList
=
[]
params
.
fileList
=
[]
...
...
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