Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d7c6bd9c
authored
May 20, 2026
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
理赔过的单拦截退款/撤销工单/标记错误工单
1 parent
963245e9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
4 deletions
packageEquity/api.js
packageEquity/pages/carQuotation/index/index.js
packageEquity/api.js
View file @
d7c6bd9
...
@@ -245,5 +245,9 @@ module.exports = {
...
@@ -245,5 +245,9 @@ module.exports = {
// 工资申述入口判断
// 工资申述入口判断
hasPerformanceConfig
(
data
)
{
hasPerformanceConfig
(
data
)
{
return
api
.
post
(
'dj.staff.api.has.performance.config.formerchant'
,
data
,
[],
'/rop-dj-staff-miniprogram/router'
)
return
api
.
post
(
'dj.staff.api.has.performance.config.formerchant'
,
data
,
[],
'/rop-dj-staff-miniprogram/router'
)
},
// 校验订单是否理赔过,不可退单退款
checkOrderCalimStatus
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.checkChargeBackAllowed'
,
data
)
}
}
}
}
packageEquity/pages/carQuotation/index/index.js
View file @
d7c6bd9
...
@@ -10,7 +10,8 @@ import {
...
@@ -10,7 +10,8 @@ import {
updateCustomerInfo
,
updateCustomerInfo
,
errorOrderById
,
errorOrderById
,
updateZyInfo
,
updateZyInfo
,
getMoreBtnAPI
getMoreBtnAPI
,
checkOrderCalimStatus
}
from
'../../../api'
}
from
'../../../api'
import
{
import
{
checkDailyReport
,
checkDailyReport
,
...
@@ -1188,6 +1189,15 @@ Component({
...
@@ -1188,6 +1189,15 @@ Component({
}
}
this
.
repeal
(
repealId
,
repealReason
)
this
.
repeal
(
repealId
,
repealReason
)
},
},
showClaimModal
()
{
wx
.
showModal
({
title
:
'提示'
,
content
:
'由于您的车辆有理赔案件处理当中,请先联系权益服务官18938907441进行处理'
,
confirmText
:
'确定'
,
confirmColor
:
'#347BFF'
,
showCancel
:
false
})
},
async
toConfirmReturanOrder
(
e
)
{
async
toConfirmReturanOrder
(
e
)
{
// 校验是否填写昨日日报
// 校验是否填写昨日日报
let
staffCheck
=
await
checkDailyReport
(
true
)
let
staffCheck
=
await
checkDailyReport
(
true
)
...
@@ -1198,8 +1208,10 @@ Component({
...
@@ -1198,8 +1208,10 @@ Component({
// 校验异常订单
// 校验异常订单
let
abnormalOrderCheck
=
await
checkAbnormalOrder
()
let
abnormalOrderCheck
=
await
checkAbnormalOrder
()
if
(
abnormalOrderCheck
)
return
false
if
(
abnormalOrderCheck
)
return
false
console
.
log
(
e
.
currentTarget
.
dataset
,
'e.currentTarget.dataset'
)
const
{
id
,
repeal
,
status
,
payid
}
=
e
.
currentTarget
.
dataset
const
{
id
,
repeal
,
status
,
payid
}
=
e
.
currentTarget
.
dataset
// 五月份小版本 校验是否理赔阶段
let
orderCalimResult
=
await
checkOrderCalimStatus
({
orderCode
:
payid
,
requestSource
:
3
})
if
(
!
orderCalimResult
?.
data
?.
allowChargeBack
)
return
this
.
showClaimModal
()
let
_this
=
this
let
_this
=
this
if
(
repeal
&&
status
==
-
1
)
{
if
(
repeal
&&
status
==
-
1
)
{
this
.
setData
({
this
.
setData
({
...
@@ -1306,8 +1318,11 @@ Component({
...
@@ -1306,8 +1318,11 @@ Component({
// 校验异常订单
// 校验异常订单
let
abnormalOrderCheck
=
await
checkAbnormalOrder
()
let
abnormalOrderCheck
=
await
checkAbnormalOrder
()
if
(
abnormalOrderCheck
)
return
false
if
(
abnormalOrderCheck
)
return
false
const
{
item
,
payid
}
=
e
.
currentTarget
.
dataset
// 五月份小版本 校验是否理赔阶段
let
orderCalimResult
=
await
checkOrderCalimStatus
({
orderCode
:
payid
,
requestSource
:
3
})
if
(
!
orderCalimResult
?.
data
?.
allowChargeBack
)
return
this
.
showClaimModal
()
let
_this
=
this
let
_this
=
this
const
{
item
}
=
e
.
currentTarget
.
dataset
_this
.
setData
(
_this
.
setData
(
{
{
showErrorId
:
item
.
payId
showErrorId
:
item
.
payId
...
@@ -1426,7 +1441,7 @@ Component({
...
@@ -1426,7 +1441,7 @@ Component({
moreBtnVisible
:
!
moreBtnVisible
moreBtnVisible
:
!
moreBtnVisible
})
})
},
},
handleBtnClick
(
e
)
{
async
handleBtnClick
(
e
)
{
const
btnName
=
e
.
detail
.
name
const
btnName
=
e
.
detail
.
name
let
{
btnOrderInfo
}
=
this
.
data
let
{
btnOrderInfo
}
=
this
.
data
switch
(
btnName
)
{
switch
(
btnName
)
{
...
@@ -1435,11 +1450,17 @@ Component({
...
@@ -1435,11 +1450,17 @@ Component({
this
.
handleInvoiceDetail
()
this
.
handleInvoiceDetail
()
break
break
case
'申请退款'
:
case
'申请退款'
:
// 五月份小版本 退款拦截判断
const
orderCalimResult
=
await
checkOrderCalimStatus
({
orderCode
:
btnOrderInfo
?.
payId
,
requestSource
:
3
})
if
(
!
orderCalimResult
?.
data
?.
allowChargeBack
)
return
this
.
showClaimModal
()
// 申请退款点击埋点
// 申请退款点击埋点
wx
.
$track
.
setTrackData
(
0
,
'apply_refund_page'
,
{},
''
,
0
)
wx
.
$track
.
setTrackData
(
0
,
'apply_refund_page'
,
{},
''
,
0
)
this
.
toRefund
()
this
.
toRefund
()
break
break
case
'标记退款'
:
case
'标记退款'
:
// 五月份小版本 退款拦截判断
let
orderCalimRes
=
await
checkOrderCalimStatus
({
orderCode
:
btnOrderInfo
?.
payId
,
requestSource
:
3
})
if
(
!
orderCalimRes
?.
data
?.
allowChargeBack
)
return
this
.
showClaimModal
()
this
.
toRefund
(
true
)
this
.
toRefund
(
true
)
break
break
case
'退款详情'
:
case
'退款详情'
:
...
...
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