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 b21f8a5f
authored
May 30, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
dcd3a56b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
22 deletions
src/api/modules/claims.js
src/views/GH/Renew/detail.vue
src/views/GH/Renew/renew.vue
src/views/claims/ghIndex.vue
src/api/modules/claims.js
View file @
b21f8a5
...
...
@@ -259,7 +259,6 @@ const checkOrderApi = params => {
})
}
// 核赔审核
const
checkClaimsOrderApi
=
params
=>
{
params
.
method
=
'scrm.api.equity.service.claims.audit'
...
...
@@ -282,7 +281,6 @@ const cancelClaims = params => {
})
}
// 定损保存草稿
const
saveCG
=
params
=>
{
params
.
method
=
'scrm.api.equity.service.claims.merchant.lossDeter.draft.or.commit'
...
...
@@ -348,4 +346,15 @@ const getMerchantApi = params => {
sign
:
true
})
}
export
default
{
getMerchantApi
,
getMidMerchantApi
,
getBigMerchantApi
,
saveSign
,
saveClaimsCG
,
saveCG
,
cancelClaims
,
checkClaimsOrderApi
,
checkOrderApi
,
getOrderOherInfo
,
uploadImgApi
,
getGHCountApi
,
getGHPhoneImageApi
,
getGHattachmentApi
,
getGHClaimsDetailApi
,
getGHhistoryListApi
,
checkGHClaimsListApi
,
exportGHClaimsListApi
,
getGHClaimFollowsListApi
,
addGHClaimFollowsListApi
,
getGHClaimsListApi
,
getclaimsList
,
getclaimsCount
,
resubmitOrder
,
commitClaimsOrder
,
getClaimsDetail
,
exportClaimsData
,
checkContractNo
,
getDetailByWOCode
,
getBankList
,
getCityList
,
getAccountInfo
}
//广汇续保定损审核接口
const
renewalAudit
=
params
=>
{
params
.
method
=
'scrm.api.equity.service.claims.renewal.audit'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
renewalAudit
,
getMerchantApi
,
getMidMerchantApi
,
getBigMerchantApi
,
saveSign
,
saveClaimsCG
,
saveCG
,
cancelClaims
,
checkClaimsOrderApi
,
checkOrderApi
,
getOrderOherInfo
,
uploadImgApi
,
getGHCountApi
,
getGHPhoneImageApi
,
getGHattachmentApi
,
getGHClaimsDetailApi
,
getGHhistoryListApi
,
checkGHClaimsListApi
,
exportGHClaimsListApi
,
getGHClaimFollowsListApi
,
addGHClaimFollowsListApi
,
getGHClaimsListApi
,
getclaimsList
,
getclaimsCount
,
resubmitOrder
,
commitClaimsOrder
,
getClaimsDetail
,
exportClaimsData
,
checkContractNo
,
getDetailByWOCode
,
getBankList
,
getCityList
,
getAccountInfo
}
src/views/GH/Renew/detail.vue
View file @
b21f8a5
<!-- 权益订单 -->
<
template
>
<div>
<report
@
toSearchOrderDetail=
"toSearchOrderDetail"
ref=
"reportRef"
:isGH=
"routeInfo.isGH"
:pageType=
"pageType"
:editForm
.
sync=
"editForm"
></report>
<repair
ref=
"repairRef"
@
changeObjectType=
"changeObjectType"
:isGH=
"routeInfo.isGH"
:pageType=
"pageType"
:serviceItemsList
.
sync=
"serviceItemsList"
:totalPrice
.
sync=
"totalPrice"
:accountForm
.
sync=
"accountForm"
></repair>
<material
ref=
"materialRef"
:pageType=
"pageType"
:materialForm
.
sync=
"materialForm"
></material>
<report
@
toSearchOrderDetail=
"toSearchOrderDetail"
ref=
"reportRef"
:isGH=
"routeInfo.isGH"
:pageType=
"pageType"
:editForm
.
sync=
"editForm"
></report>
<repair
ref=
"repairRef"
@
changeObjectType=
"changeObjectType"
:isGH=
"routeInfo.isGH"
:pageType=
"pageType"
:serviceItemsList
.
sync=
"serviceItemsList"
:totalPrice
.
sync=
"totalPrice"
:accountForm
.
sync=
"accountForm"
></repair>
<material
ref=
"materialRef"
:pageType=
"pageType"
:materialForm
.
sync=
"materialForm"
></material>
<caseDesc></caseDesc>
<claimsNote></claimsNote>
<div
class=
"page-btm-btn"
v-if=
"pageType == 0"
>
<el-button
type=
"primary"
@
click=
"confirmSubmit(1)"
>
提交
</el-button>
<el-button
type=
"primary"
plain
@
click=
"confirmSubmit(2)"
>
草稿
</el-button>
</div>
<div
class=
"page-btm-btn"
v-if=
"orderStatus ==
6
"
>
<div
class=
"page-btm-btn"
v-if=
"orderStatus ==
15
"
>
<el-button
@
click=
"toShowSP"
type=
"primary"
>
定损通过
</el-button>
<el-button
@
click=
"toShowSPNoPass"
type=
"primary"
plain
>
定损不通过
</el-button>
</div>
...
...
@@ -19,7 +19,7 @@
<div
class=
"set-price"
>
<li>
<label
for=
""
>
批准金额/元:
</label>
<el-input
size=
"small"
maxlength=
"10"
placeholder=
"请输入定损批准金额"
></el-input>
<el-input
size=
"small"
maxlength=
"10"
placeholder=
"请输入定损批准金额"
v-model=
"approveAmounts"
></el-input>
</li>
</div>
</div>
...
...
@@ -52,6 +52,7 @@ export default {
permitDraft
:
false
,
routeInfo
:
null
,
isGH
:
false
,
approveAmounts
:
0
,
editForm
:
{
contractNo
:
''
,
reportDate
:
''
,
...
...
@@ -141,15 +142,13 @@ export default {
},
computed
:
{
totalPrice
()
{
let
total
=
this
.
serviceItemsList
.
reduce
(
function
(
prev
,
cur
)
{
let
total
=
this
.
serviceItemsList
.
reduce
(
function
(
prev
,
cur
)
{
return
prev
+
+
(
cur
.
approveAmount
*
100
).
toFixed
(
0
)
},
0
)
return
total
/
100
}
},
mounted
()
{
},
mounted
()
{},
methods
:
{
changeObjectType
(
newVal
)
{
if
(
newVal
===
1
)
{
...
...
@@ -167,7 +166,7 @@ export default {
},
//详情
getDetailById
()
{
this
.
$apis
.
claims
.
getClaimsDetail
({
id
:
this
.
routeInfo
.
orderId
}).
then
(
res
=>
{
this
.
$apis
.
claims
.
getClaimsDetail
({
id
:
this
.
routeInfo
.
orderId
,
needDetail
:
true
}).
then
(
res
=>
{
// 以下是report数据
for
(
let
key
in
this
.
editForm
)
{
this
.
editForm
[
key
]
=
res
[
key
]
...
...
@@ -363,6 +362,13 @@ export default {
},
// 定损审核通过
comfirmPass
()
{
console
.
log
(
this
.
accountForm
,
this
.
saveObj
)
const
sc
=
[
'SC0002'
,
'SC0003'
,
'SC0005'
,
'SC0006'
,
'SC0007'
,
'SC0008'
,
'SC0011'
],
sc_obg
=
{}
for
(
let
i
=
0
;
i
<
sc
.
length
;
i
++
)
{
sc_obg
[
sc
[
i
]]
=
this
.
approveAmounts
}
this
.
$apis
.
claims
.
renewalAudit
({
...
this
.
editForm
,
operation
:
4
,
id
:
this
.
routeInfo
.
orderId
,
...
this
.
accountForm
,
approveAmounts
:
JSON
.
stringify
(
sc_obg
)
}).
then
(
res
=>
{})
this
.
canclePass
()
},
canclePass
()
{
...
...
src/views/GH/Renew/renew.vue
View file @
b21f8a5
...
...
@@ -80,7 +80,7 @@ export default {
return
'去处理'
},
condition
:
row
=>
{
return
[
0
,
6
].
includes
(
row
.
scope
.
status
)
return
[
15
].
includes
(
row
.
scope
.
status
)
},
attrs
:
{
type
:
'text'
,
...
...
@@ -112,7 +112,7 @@ export default {
return
'重新提交'
},
condition
:
row
=>
{
return
[
2
].
includes
(
row
.
scope
.
status
)
return
[
16
].
includes
(
row
.
scope
.
status
)
},
attrs
:
{
type
:
'text'
,
...
...
@@ -310,15 +310,15 @@ export default {
// isGH: true,
contractNo
:
editNo
==
1
?
''
:
row
.
contractNo
,
// 嘀加的用合同号
orderId
:
editNo
==
1
?
''
:
row
.
id
,
status
:
row
.
status
status
:
row
.
status
}
if
(
this
.
showGh
)
{
// 广汇的用核销码
urlParam
.
contractNo
=
editNo
==
1
?
''
:
row
.
writeOffCode
}
const
title
=
this
.
jumpTitle
(
editNo
)
const
title
=
this
.
jumpTitle
(
editNo
)
const
temp
=
encodeURIComponent
(
JSON
.
stringify
(
urlParam
))
this
.
$router
.
push
({
path
:
'/GH/Renew/detail/'
+
temp
,
query
:
{
$title
:
title
}
})
this
.
$router
.
push
({
path
:
'/GH/Renew/detail/'
+
temp
,
query
:
{
$title
:
title
}
})
},
handleOkFn
()
{
this
.
getParams
()
...
...
@@ -362,7 +362,7 @@ export default {
})
},
jumpTitle
(
addOrEdit
)
{
// 1.新增 2.查看 3.重新提交 4.去处理
// 1.新增 2.查看 3.重新提交 4.去处理
let
title
=
'查看'
switch
(
addOrEdit
)
{
case
1
:
...
...
src/views/claims/ghIndex.vue
View file @
b21f8a5
...
...
@@ -716,7 +716,7 @@ export default {
isGH
:
true
,
contractNo
:
editNo
==
4
?
row
.
writeOffCode
:
''
,
orderId
:
editNo
==
4
?
row
.
id
:
''
,
status
:
editNo
==
4
?
row
.
status
:
''
,
status
:
editNo
==
4
?
row
.
status
:
''
}
const
temp
=
encodeURIComponent
(
JSON
.
stringify
(
urlParam
))
this
.
$router
.
push
({
path
:
'/claims/order/'
+
temp
,
query
:
{
$title
:
title
}
})
...
...
@@ -727,7 +727,7 @@ export default {
this
.
getTableData
()
},
handleRestFn
()
{
this
.
searchForm
=
{
this
.
searchForm
=
{
searchText
:
''
,
status
:
''
,
commitDate
:
''
,
...
...
@@ -750,7 +750,7 @@ export default {
params
.
commitTimeStart
=
dayjs
(
params
.
commitDate
[
0
]).
format
(
'YYYY-MM-DD'
)
+
' 00:00:00'
params
.
commitTimeEnd
=
dayjs
(
params
.
commitDate
[
1
]).
format
(
'YYYY-MM-DD'
)
+
' 23:59:59'
}
if
(
Array
.
isArray
(
params
.
shopDate
)
&&
params
.
shopDate
.
length
>
0
)
{
if
(
Array
.
isArray
(
params
.
shopDate
)
&&
params
.
shopDate
.
length
>
0
)
{
params
.
merchantCommitStart
=
dayjs
(
params
.
shopDate
[
0
]).
format
(
'YYYY-MM-DD'
)
+
' 00:00:00'
params
.
merchantCommitEnd
=
dayjs
(
params
.
shopDate
[
1
]).
format
(
'YYYY-MM-DD'
)
+
' 23:59:59'
}
...
...
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