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 141f0db1
authored
Jul 17, 2025
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
申请退款联调修改
1 parent
a7ca0110
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
27 deletions
tabWorkOrder/index.wxs
tabWorkOrder/pages/refundApply/components/reviewStatus/reviewStatus.js
tabWorkOrder/pages/refundApply/refundApply.js
tabWorkOrder/pages/refundApply/refundApply.sass
tabWorkOrder/pages/refundApply/refundApply.wxml
tabWorkOrder/index.wxs
View file @
141f0db
...
@@ -88,18 +88,16 @@ var filterShowBtn = function (list) {
...
@@ -88,18 +88,16 @@ var filterShowBtn = function (list) {
}
}
// 判断子订单数据和退款申请已选子订单数据状态
// 判断子订单数据和退款申请已选子订单数据状态
var filterOrderStatus = function (infoData
, userInfo
) {
var filterOrderStatus = function (infoData) {
var flag = true
var flag = true
var afterStatus = infoData.afterStatus
var subOrderList = infoData.subOrderList
var subOrderList = infoData.subOrderList
var refundApplyDetailList = infoData.refundApplyDetailList
var refundApplyDetailList = infoData.refundApplyDetailList
var loginRole = userInfo.loginRole
subOrderList.forEach(function (val) {
subOrderList.forEach(function (val) {
refundApplyDetailList && refundApplyDetailList.forEach(function (v) {
refundApplyDetailList && refundApplyDetailList.forEach(function (v) {
if (val.subOrderCode == v.subOrderCode && val.status == 2) flag = false
if (val.subOrderCode == v.subOrderCode && val.status == 2) flag = false
})
})
})
})
return
afterStatus === '' || (afterStatus == 5 && flag && loginRole != 3)
return
flag
}
}
// 判断退款详情是否可操作
// 判断退款详情是否可操作
...
...
tabWorkOrder/pages/refundApply/components/reviewStatus/reviewStatus.js
View file @
141f0db
...
@@ -87,7 +87,9 @@ Component({
...
@@ -87,7 +87,9 @@ Component({
const
transfer
=
transferStatus
??
''
const
transfer
=
transferStatus
??
''
// 确定当前状态
// 确定当前状态
let
currentStatus
let
currentStatus
if
(
before
===
''
&&
after
===
''
)
{
if
(
transfer
==
3
)
{
currentStatus
=
STATUS
.
REFUNDED
}
else
if
(
before
===
''
&&
after
===
''
)
{
currentStatus
=
STATUS
.
INITIATE
currentStatus
=
STATUS
.
INITIATE
}
else
if
(
before
===
''
&&
after
==
6
)
{
}
else
if
(
before
===
''
&&
after
==
6
)
{
currentStatus
=
STATUS
.
APPLIED
currentStatus
=
STATUS
.
APPLIED
...
@@ -100,13 +102,11 @@ Component({
...
@@ -100,13 +102,11 @@ Component({
}
else
if
([
0
,
1
,
2
,
8
].
includes
(
before
)
&&
[
0
,
1
,
2
,
3
].
includes
(
after
))
{
}
else
if
([
0
,
1
,
2
,
8
].
includes
(
before
)
&&
[
0
,
1
,
2
,
3
].
includes
(
after
))
{
currentStatus
=
STATUS
.
HEAD_REVIEW
currentStatus
=
STATUS
.
HEAD_REVIEW
}
else
if
(
before
==
3
&&
after
==
4
)
{
}
else
if
(
before
==
3
&&
after
==
4
)
{
currentStatus
=
STATUS
.
HEAD_PASS
currentStatus
=
STATUS
.
PENDING_REFUND
}
else
if
([
0
,
1
,
2
,
3
].
includes
(
before
)
&&
after
==
5
)
{
}
else
if
([
0
,
1
,
2
,
3
].
includes
(
before
)
&&
after
==
5
)
{
currentStatus
=
STATUS
.
HEAD_REJECT
currentStatus
=
STATUS
.
HEAD_REJECT
}
else
if
(
after
==
4
)
{
}
else
if
(
after
==
4
)
{
currentStatus
=
STATUS
.
PENDING_REFUND
currentStatus
=
STATUS
.
PENDING_REFUND
}
else
if
(
transfer
==
3
)
{
currentStatus
=
STATUS
.
REFUNDED
}
}
// 更新状态列表
// 更新状态列表
const
{
statusList
}
=
this
.
data
const
{
statusList
}
=
this
.
data
...
...
tabWorkOrder/pages/refundApply/refundApply.js
View file @
141f0db
...
@@ -34,6 +34,7 @@ Page({
...
@@ -34,6 +34,7 @@ Page({
orderCode
:
''
,
orderCode
:
''
,
beforeStatus
:
''
,
beforeStatus
:
''
,
afterStatus
:
''
,
afterStatus
:
''
,
transferStatus
:
''
,
refundType
:
''
,
refundType
:
''
,
refundAmount
:
''
,
refundAmount
:
''
,
subOrderList
:
[],
subOrderList
:
[],
...
@@ -136,6 +137,13 @@ Page({
...
@@ -136,6 +137,13 @@ Page({
wx
.
$util
.
showToast
(
message
)
wx
.
$util
.
showToast
(
message
)
return
return
}
}
data
?.
refundedOrderList
?.
forEach
(
val
=>
{
if
(
val
.
refundTime
)
val
.
refundTime
=
new
Date
(
val
.
refundTime
).
format
(
"yyyy-MM-dd hh:mm:ss"
)
val
?.
refundApplyDetailList
?.
forEach
(
v
=>
{
let
listShowSpecificationData
=
this
.
filterSpeciation
(
v
)
v
.
upgradeGoodsName
=
listShowSpecificationData
?
`
${
v
.
goodsName
}
(
${
listShowSpecificationData
}
)`
:
v
.
goodsName
})
})
let
subOrderList
=
[]
let
subOrderList
=
[]
// 审核不通过并且是驻店进入页面 获取子订单数据
// 审核不通过并且是驻店进入页面 获取子订单数据
if
(
res
.
data
.
afterStatus
==
5
&&
userInfo
.
loginRole
!=
3
)
{
if
(
res
.
data
.
afterStatus
==
5
&&
userInfo
.
loginRole
!=
3
)
{
...
@@ -172,6 +180,7 @@ Page({
...
@@ -172,6 +180,7 @@ Page({
yqMerchantId
:
userInfo
?.
merchantId
,
yqMerchantId
:
userInfo
?.
merchantId
,
beforeStatus
:
res
.
data
.
beforeStatus
,
beforeStatus
:
res
.
data
.
beforeStatus
,
afterStatus
:
res
.
data
.
afterStatus
,
afterStatus
:
res
.
data
.
afterStatus
,
transferStatus
:
res
.
data
.
transferStatus
,
subOrderList
,
subOrderList
,
refundTime
:
res
.
data
.
refundTime
,
// 状态流转下展示的退款成功时间
refundTime
:
res
.
data
.
refundTime
,
// 状态流转下展示的退款成功时间
payAmount
:
res
.
data
.
payAmount
,
// 状态流转下展示的实际退款金额
payAmount
:
res
.
data
.
payAmount
,
// 状态流转下展示的实际退款金额
...
@@ -407,7 +416,9 @@ Page({
...
@@ -407,7 +416,9 @@ Page({
icon
:
"success"
icon
:
"success"
})
})
// 跳转到退款审批列表
// 跳转到退款审批列表
wx
.
$router
.
back
()
setTimeout
(()
=>
{
wx
.
$router
.
back
()
},
300
)
}
else
{
}
else
{
wx
.
$util
.
showToast
(
message
)
wx
.
$util
.
showToast
(
message
)
}
}
...
@@ -441,8 +452,10 @@ Page({
...
@@ -441,8 +452,10 @@ Page({
title
:
"操作成功"
,
title
:
"操作成功"
,
icon
:
"success"
icon
:
"success"
})
})
wx
.
$router
.
back
()
this
.
cancelRepeal
()
this
.
cancelRepeal
()
setTimeout
(()
=>
{
wx
.
$router
.
back
()
},
300
)
}
else
{
}
else
{
wx
.
$util
.
showToast
(
message
)
wx
.
$util
.
showToast
(
message
)
}
}
...
@@ -556,7 +569,9 @@ Page({
...
@@ -556,7 +569,9 @@ Page({
title
:
"操作成功"
,
title
:
"操作成功"
,
icon
:
"success"
icon
:
"success"
})
})
wx
.
$router
.
back
()
setTimeout
(()
=>
{
wx
.
$router
.
back
()
},
300
)
}
else
{
}
else
{
wx
.
$util
.
showToast
(
message
)
wx
.
$util
.
showToast
(
message
)
}
}
...
...
tabWorkOrder/pages/refundApply/refundApply.sass
View file @
141f0db
...
@@ -18,11 +18,6 @@ page{
...
@@ -18,11 +18,6 @@ page{
font-family
:
PingFangSC-Medium
;
font-family
:
PingFangSC-Medium
;
margin
:
var
(
--
fontSize32
)
;
margin
:
var
(
--
fontSize32
)
;
}
}
.choose_box
{
.radio_box
:last-child
{
border-bottom
:
none
;
}
}
.radio_box
{
.radio_box
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
@@ -109,7 +104,7 @@ page{
...
@@ -109,7 +104,7 @@ page{
}
}
}
}
.refund_log
{
.refund_log
{
margin
:
var
(
--
fontSize24
)
var
(
--
fontSize32
)
;
margin
-top
:
var
(
--
fontSize24
)
;
font-size
:
var
(
--
fontSize24
)
;
font-size
:
var
(
--
fontSize24
)
;
font-family
:
PingFangSC-Medium
;
font-family
:
PingFangSC-Medium
;
.log_item
{
.log_item
{
...
@@ -126,6 +121,9 @@ page{
...
@@ -126,6 +121,9 @@ page{
color
:
#666666
;
color
:
#666666
;
line-height
:
var
(
--
fontSize36
)
;
line-height
:
var
(
--
fontSize36
)
;
}
}
&
:last-child
{
margin-bottom
:
0
;
}
}
}
}
}
}
}
...
...
tabWorkOrder/pages/refundApply/refundApply.wxml
View file @
141f0db
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<view class="form-item">
<view class="form-item">
<view class="item_title">退款明细</view>
<view class="item_title">退款明细</view>
<view class="choose_box">
<view class="choose_box">
<block wx:if="{{(infoData.afterStatus === '' && !filter.filterShowBtn(infoData.subOrderList).length) || (infoData.afterStatus == 5 && userInfo.loginRole != 3 && !filter.filterShowBtn(infoData.subOrderList).length) || infoData.refundType == 1}}">
<block wx:if="{{(infoData.afterStatus === '' && !filter.filterShowBtn(infoData.subOrderList).length) || (infoData.afterStatus == 5 && userInfo.loginRole != 3 &&
filter.filterOrderStatus(infoData) &&
!filter.filterShowBtn(infoData.subOrderList).length) || infoData.refundType == 1}}">
<view class="radio_box">
<view class="radio_box">
<block wx:if="{{infoData.refundType == 1}}">
<block wx:if="{{infoData.refundType == 1}}">
<image src="/components/images/radio.png" />
<image src="/components/images/radio.png" />
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
</view>
</view>
</view>
</view>
</block>
</block>
<block wx:if="{{infoData.afterStatus === '' || (infoData.afterStatus == 5 && userInfo.loginRole != 3 && filter.filter
ShowBtn(infoData.subOrderList).length != infoData.subOrderList.length
) || infoData.refundType == 2}}">
<block wx:if="{{infoData.afterStatus === '' || (infoData.afterStatus == 5 && userInfo.loginRole != 3 && filter.filter
OrderStatus(infoData)
) || infoData.refundType == 2}}">
<view class="radio_box">
<view class="radio_box">
<block wx:if="{{infoData.refundType == 2}}">
<block wx:if="{{infoData.refundType == 2}}">
<image src="/components/images/radio.png" />
<image src="/components/images/radio.png" />
...
@@ -99,16 +99,13 @@
...
@@ -99,16 +99,13 @@
<view class="sub_item" wx:for="{{item.refundApplyDetailList}}" wx:for-item="li" wx:for-key="idx" wx:key="idx">
<view class="sub_item" wx:for="{{item.refundApplyDetailList}}" wx:for-item="li" wx:for-key="idx" wx:key="idx">
<view>{{li.upgradeGoodsName}}支付金额 ¥{{li.totalPrice}},申请退款 ¥{{li.refundAmount}}</view>
<view>{{li.upgradeGoodsName}}支付金额 ¥{{li.totalPrice}},申请退款 ¥{{li.refundAmount}}</view>
</view>
</view>
<view class="sub_item">{{item.refundTime}}退款成功,实际退款
¥
{{item.payAmount}}</view>
<view class="sub_item">{{item.refundTime}}退款成功,实际退款
¥
{{item.payAmount}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</block>
</block>
</view>
</view>
<view class="computed_price_box">
</view>
<gl-cell border valueAlign="right" label="收款人姓名" requiredAfter labelWidth="var(--fontSize280)" required>
<gl-cell border valueAlign="right" label="收款人姓名" requiredAfter labelWidth="var(--fontSize280)" required>
<input placeholder="点击输入" class="input" maxlength="20" placeholder-class="placeholder-class" value="{{ infoData.payee }}" bindinput="input" data-name="payee" disabled="{{ filter.filterRefundDisabled(infoData, userInfo) }}" always-embed></input>
<input placeholder="点击输入" class="input" maxlength="20" placeholder-class="placeholder-class" value="{{ infoData.payee }}" bindinput="input" data-name="payee" disabled="{{ filter.filterRefundDisabled(infoData, userInfo) }}" always-embed></input>
</gl-cell>
</gl-cell>
...
@@ -127,15 +124,15 @@
...
@@ -127,15 +124,15 @@
<textarea value="{{ infoData.remark }}" disabled="{{filter.filterRefundDisabled(infoData, userInfo)}}" placeholder="请输入 (200字以内)" placeholder-class="placeholder-class" class="textarea" maxlength="200" bindinput="input" data-name="remark" />
<textarea value="{{ infoData.remark }}" disabled="{{filter.filterRefundDisabled(infoData, userInfo)}}" placeholder="请输入 (200字以内)" placeholder-class="placeholder-class" class="textarea" maxlength="200" bindinput="input" data-name="remark" />
</view>
</view>
</view>
</view>
<view class="upload_box" wx:if="{{infoData.afterStatus === '' ||
infoData.afterStatus == 5
|| infoData.attachmentList.length}}">
<view class="upload_box" wx:if="{{infoData.afterStatus === '' ||
(infoData.afterStatus == 5 && !filter.filterRefundDisabled(infoData, userInfo))
|| infoData.attachmentList.length}}">
<view class="label">上传图片</view>
<view class="label">上传图片</view>
<view class="label-tips">权益产品退款需上传自愿退款协议及告知客户退款后服务作废凭证截图</view>
<view class="label-tips">权益产品退款需上传自愿退款协议及告知客户退款后服务作废凭证截图</view>
<view class="content_box">
<view class="content_box">
<view class="image_content" wx:for="{{infoData.attachmentList}}" wx:key="index">
<view class="image_content" wx:for="{{infoData.attachmentList}}" wx:key="index">
<image bindtap="previewImage" class="image_box" data-url="{{infoData.attachmentList}}" data-index="{{index}}" src="{{item.fileUrl}}"/>
<image bindtap="previewImage" class="image_box" data-url="{{infoData.attachmentList}}" data-index="{{index}}" src="{{item.fileUrl}}"/>
<image class="del_icon" wx:if="{{
filter.filterOrderStatus
(infoData, userInfo)}}" src="{{IMG_URL}}zy_paf_del_icon.png" mode="" bindtap="deleteFile" data-index="{{index}}" />
<image class="del_icon" wx:if="{{
!filter.filterRefundDisabled
(infoData, userInfo)}}" src="{{IMG_URL}}zy_paf_del_icon.png" mode="" bindtap="deleteFile" data-index="{{index}}" />
</view>
</view>
<view class="upload_content" bindtap="uploadImages" wx:if="{{
filter.filterOrderStatus
(infoData, userInfo) && infoData.attachmentList.length < 9}}">
<view class="upload_content" bindtap="uploadImages" wx:if="{{
!filter.filterRefundDisabled
(infoData, userInfo) && infoData.attachmentList.length < 9}}">
<image src="{{IMG_URL}}zy-upload_icon.png"></image>
<image src="{{IMG_URL}}zy-upload_icon.png"></image>
<text class="text">最多9张</text>
<text class="text">最多9张</text>
</view>
</view>
...
@@ -148,7 +145,7 @@
...
@@ -148,7 +145,7 @@
<view class="btn no_pass_btn" bindtap="review" data-type="2">审核不通过</view>
<view class="btn no_pass_btn" bindtap="review" data-type="2">审核不通过</view>
</view>
</view>
</view>
</view>
<view class="btns {{ isFullSucreen?'isFullSucreen-btn':'' }}" wx:if="{{
filter.filterOrderStatus
(infoData, userInfo)}}">
<view class="btns {{ isFullSucreen?'isFullSucreen-btn':'' }}" wx:if="{{
!filter.filterRefundDisabled
(infoData, userInfo)}}">
<view class="btns-con">
<view class="btns-con">
<view class="confirm text-center" bindtap="submit">{{infoData.afterStatus === '' ? '提交' : '重新提交'}}</view>
<view class="confirm text-center" bindtap="submit">{{infoData.afterStatus === '' ? '提交' : '重新提交'}}</view>
</view>
</view>
...
...
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