Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 f5b026ca
authored
Oct 18, 2024
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
订单管理
1 parent
60e700aa
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
87 additions
and
15 deletions
src/views/orderManage/components/newSignRefundDialog.vue
src/views/orderManage/components/refundUpdateDialog.vue
src/views/orderManage/configUpgradation.vue
src/views/orderManage/crowdfunding.vue
src/views/orderManage/integralShopping.vue
src/views/orderManage/order.vue
src/views/orderManage/orderDetail.vue
src/views/orderManage/refundExamine.vue
src/views/orderManage/components/newSignRefundDialog.vue
View file @
f5b026c
...
@@ -176,6 +176,7 @@ export default {
...
@@ -176,6 +176,7 @@ export default {
optionLabel
:
'confLabel'
,
optionLabel
:
'confLabel'
,
optionsName
:
'refundList'
,
optionsName
:
'refundList'
,
optionList
:
[],
optionList
:
[],
isDisabled
:
false
,
style
:
{
width
:
'520px'
},
style
:
{
width
:
'520px'
},
handleRadioChange
:
()
=>
{
}
handleRadioChange
:
()
=>
{
}
},
},
...
@@ -400,6 +401,7 @@ export default {
...
@@ -400,6 +401,7 @@ export default {
type
:
Array
,
type
:
Array
,
default
:
()
=>
{
}
default
:
()
=>
{
}
},
},
// 标记精品升级,区分退款审核弹窗字段
scene
:
{
scene
:
{
type
:
String
,
type
:
String
,
default
:
''
default
:
''
...
@@ -460,13 +462,16 @@ export default {
...
@@ -460,13 +462,16 @@ export default {
console
.
log
(
"this.detail"
,
this
.
detail
)
console
.
log
(
"this.detail"
,
this
.
detail
)
console
.
log
(
"this.orderList"
,
this
.
orderList
)
console
.
log
(
"this.orderList"
,
this
.
orderList
)
this
.
infoForm
.
orderType
=
this
.
orderType
this
.
infoForm
.
orderType
=
this
.
orderType
// 入口:精品升级、会员权益升级、次新车转化,售后众筹、积分商城
if
(
this
.
detail
)
{
if
(
this
.
detail
)
{
this
.
orderInfoList
.
push
({
this
.
orderInfoList
.
push
({
orderCode
:
this
.
detail
.
orderCode
,
orderCode
:
this
.
detail
.
orderCode
,
price
:
this
.
detail
.
totalPrice
price
:
this
.
detail
.
totalPrice
})
})
this
.
infoForm
.
bizOrderCodeList
.
push
(
this
.
detail
.
orderCode
)
this
.
infoForm
.
bizOrderCodeList
.
push
(
this
.
detail
.
orderCode
)
// 加判断---------------
// 判断是否部分退款
this
.
judgeRefundType
()
// 订单的退款的基本信息
this
.
getOrderDefaultInfo
()
this
.
getOrderDefaultInfo
()
}
else
if
(
this
.
orderList
&&
this
.
orderList
.
length
>
0
)
{
}
else
if
(
this
.
orderList
&&
this
.
orderList
.
length
>
0
)
{
let
yqIdTemp
=
this
.
orderList
[
0
].
yqMerchantId
let
yqIdTemp
=
this
.
orderList
[
0
].
yqMerchantId
...
@@ -516,6 +521,17 @@ export default {
...
@@ -516,6 +521,17 @@ export default {
}
}
},
},
findAttrIdx
(
attrName
)
{
return
this
.
infoEditFormData
.
findIndex
(
item
=>
item
.
name
==
attrName
)
},
judgeRefundType
()
{
if
(
this
.
detail
.
refundType
==
2
)
{
this
.
infoForm
.
refundType
=
'2'
this
.
infoEditFormData
[
this
.
findAttrIdx
(
'refundType'
)].
isDisabled
=
true
}
},
getOrderDefaultInfo
()
{
getOrderDefaultInfo
()
{
var
params
=
{
var
params
=
{
orderCode
:
this
.
detail
.
orderCode
orderCode
:
this
.
detail
.
orderCode
...
@@ -526,13 +542,18 @@ export default {
...
@@ -526,13 +542,18 @@ export default {
this
.
infoForm
.
yqMerchantName
=
res
.
yqMerchantName
this
.
infoForm
.
yqMerchantName
=
res
.
yqMerchantName
this
.
infoForm
.
shopMerchantId
=
res
.
shopMerchantId
this
.
infoForm
.
shopMerchantId
=
res
.
shopMerchantId
this
.
infoForm
.
shopMerchantName
=
res
.
shopMerchantName
this
.
infoForm
.
shopMerchantName
=
res
.
shopMerchantName
this
.
infoForm
.
shopRefundAmount
=
+
res
.
shopDivisionMoney
/** refundType:1-全额退款,2-部分退款
this
.
infoForm
.
installMerchantId
=
res
.
installMerchantId
* 部分退款时,除了“所属服务对接”和“所属流量方”,其他不写入
this
.
infoForm
.
installMerchantName
=
res
.
installMerchantName
* */
this
.
infoForm
.
installCost
=
+
res
.
installCost
if
(
this
.
detail
.
refundType
!=
2
)
{
this
.
infoForm
.
marketingMerchantId
=
res
.
marketingMerchantId
this
.
infoForm
.
shopRefundAmount
=
+
res
.
shopDivisionMoney
this
.
infoForm
.
marketingMerchantName
=
res
.
marketingMerchantName
this
.
infoForm
.
installMerchantId
=
res
.
installMerchantId
this
.
infoForm
.
marketingCost
=
res
.
marketingCost
+
res
.
rewardAndPenaltyCost
this
.
infoForm
.
installMerchantName
=
res
.
installMerchantName
this
.
infoForm
.
installCost
=
+
res
.
installCost
this
.
infoForm
.
marketingMerchantId
=
res
.
marketingMerchantId
this
.
infoForm
.
marketingMerchantName
=
res
.
marketingMerchantName
this
.
infoForm
.
marketingCost
=
res
.
marketingCost
+
res
.
rewardAndPenaltyCost
}
})
})
},
},
...
...
src/views/orderManage/components/refundUpdateDialog.vue
View file @
f5b026c
...
@@ -86,6 +86,13 @@ export default {
...
@@ -86,6 +86,13 @@ export default {
trigger
:
"blur"
trigger
:
"blur"
}
}
],
],
payReason
:
[
{
required
:
true
,
message
:
"请输入付款事由"
,
trigger
:
"blur"
}
],
attachmentList
:
[
attachmentList
:
[
{
{
required
:
false
,
required
:
false
,
...
@@ -142,6 +149,15 @@ export default {
...
@@ -142,6 +149,15 @@ export default {
}
}
}
}
},
{
},
{
label
:
"付款事由"
,
name
:
"payReason"
,
type
:
"input"
,
maxlength
:
50
,
inputType
:
"textarea"
,
showLimit
:
true
,
rows
:
2
,
width
:
"370px"
},
{
label
:
"结算凭证"
,
label
:
"结算凭证"
,
name
:
"attachmentList"
,
name
:
"attachmentList"
,
isHide
:
true
,
isHide
:
true
,
...
...
src/views/orderManage/configUpgradation.vue
View file @
f5b026c
...
@@ -208,7 +208,7 @@
...
@@ -208,7 +208,7 @@
:data=
"scope.scope"
/>
:data=
"scope.scope"
/>
</span>
</span>
<!-- 尾款状态 0待支付 1已支付 2已退款 -->
<!-- 尾款状态 0待支付 1已支付 2已退款 -->
<span
v-if=
"
scope.scope.tailOrderStatus == '1'
&& signRefundFlag"
>
<span
v-if=
"
[1, 2].includes(scope.scope.tailOrderStatus)
&& signRefundFlag"
>
<el-button
type=
"text"
<el-button
type=
"text"
size=
"mini"
size=
"mini"
style=
"margin-left: 10px"
style=
"margin-left: 10px"
...
...
src/views/orderManage/crowdfunding.vue
View file @
f5b026c
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
:data=
"scope.scope"
/>
:data=
"scope.scope"
/>
</span>
</span>
<!-- 尾款状态 0待支付 1已支付 2已退款 -->
<!-- 尾款状态 0待支付 1已支付 2已退款 -->
<span
v-if=
"
scope.scope.tailOrderStatus == '1'
&& signRefundFlag"
>
<span
v-if=
"
[1, 2].includes(scope.scope.tailOrderStatus)
&& signRefundFlag"
>
<el-button
type=
"text"
<el-button
type=
"text"
size=
"mini"
size=
"mini"
style=
"margin-left: 10px"
style=
"margin-left: 10px"
...
...
src/views/orderManage/integralShopping.vue
View file @
f5b026c
...
@@ -177,7 +177,7 @@
...
@@ -177,7 +177,7 @@
:data=
"scope.scope"
/>
:data=
"scope.scope"
/>
</span>
</span>
<!-- 尾款状态 0待支付 1已支付 2已退款 -->
<!-- 尾款状态 0待支付 1已支付 2已退款 -->
<span
v-if=
"
scope.scope.tailOrderStatus == '1'
&& signRefundFlag"
>
<span
v-if=
"
[1, 2].includes(scope.scope.tailOrderStatus)
&& signRefundFlag"
>
<el-button
type=
"text"
<el-button
type=
"text"
size=
"mini"
size=
"mini"
style=
"margin-left: 10px"
style=
"margin-left: 10px"
...
...
src/views/orderManage/order.vue
View file @
f5b026c
...
@@ -1285,7 +1285,7 @@ export default {
...
@@ -1285,7 +1285,7 @@ export default {
query
:
{
query
:
{
detail
:
JSON
.
stringify
(
data
.
row
),
detail
:
JSON
.
stringify
(
data
.
row
),
signRefundFlag
:
this
.
signRefundFlag
,
signRefundFlag
:
this
.
signRefundFlag
,
scene
:
'jpsj'
scene
:
'jpsj'
// 标记精品升级,区分退款审核弹窗字段
}
}
}
)
}
)
}
,
}
,
...
...
src/views/orderManage/orderDetail.vue
View file @
f5b026c
...
@@ -9,8 +9,13 @@
...
@@ -9,8 +9,13 @@
退款审核中
退款审核中
</span>
</span>
<span
v-else
>
<span
v-else
>
<!--
1、订单状态:已支付-status-4
2、订单状态:已评价-status-6
3、已退款且部分尾款:①已退款-status-12;②部分退款-refundType-2
-->
<el-button
size=
"mini"
<el-button
size=
"mini"
v-if=
"signRefundFlag &&
[4, 6].includes(detail.status
)"
v-if=
"signRefundFlag &&
([4, 6].includes(detail.status) || ([12].includes(detail.status) && [2].includes(detail.refundType))
)"
class=
"signRefundBtn"
class=
"signRefundBtn"
@
click=
"refund"
>
@
click=
"refund"
>
<img
class=
"signRefundIcon"
<img
class=
"signRefundIcon"
...
...
src/views/orderManage/refundExamine.vue
View file @
f5b026c
...
@@ -120,7 +120,9 @@ export default {
...
@@ -120,7 +120,9 @@ export default {
title
:
''
,
title
:
''
,
platformMerchantId
:
''
,
platformMerchantId
:
''
,
status
:
''
,
status
:
''
,
matchBizOrderCode
:
''
matchBizOrderCode
:
''
,
payee
:
''
,
applyTime
:
''
},
},
searchFormSearch
:
{},
searchFormSearch
:
{},
showFormData
:
[{
showFormData
:
[{
...
@@ -171,6 +173,18 @@ export default {
...
@@ -171,6 +173,18 @@ export default {
type
:
'input'
,
type
:
'input'
,
maxlength
:
'20'
,
maxlength
:
'20'
,
isClear
:
true
isClear
:
true
},
{
label
:
'收款人'
,
name
:
'payee'
,
type
:
'input'
,
maxlength
:
'20'
,
isClear
:
true
},
{
label
:
'申请时间'
,
name
:
"applyTime"
,
type
:
"datePicker"
,
isClear
:
true
,
pickerOptions
:
"rangePickerOptions"
}],
}],
getListApi
:
refundApplyRecordPage
,
getListApi
:
refundApplyRecordPage
,
tableParams
:
{
tableParams
:
{
...
@@ -308,11 +322,27 @@ export default {
...
@@ -308,11 +322,27 @@ export default {
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
this
.
searchFormSearch
=
deepClone
(
this
.
searchForm
)
this
.
searchFormSearch
=
this
.
getParams
(
)
resolve
()
resolve
()
})
})
},
},
getParams
()
{
var
params
=
deepClone
(
this
.
searchForm
)
if
(
this
.
searchForm
.
applyTime
?.
length
)
{
params
.
startCreatedDate
=
new
Date
(
this
.
searchForm
.
applyTime
[
0
])
.
toLocaleDateString
()
.
replace
(
/
\/
/g
,
"-"
)
+
" 00:00:00"
params
.
endCreatedDate
=
new
Date
(
this
.
searchForm
.
applyTime
[
1
])
.
toLocaleDateString
()
.
replace
(
/
\/
/g
,
"-"
)
+
" 23:59:59"
}
delete
params
.
applyTime
return
params
},
getOptionsList
()
{
getOptionsList
()
{
this
.
showFormData
.
forEach
((
item
,
index
)
=>
{
this
.
showFormData
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
type
===
'select'
)
{
if
(
item
.
type
===
'select'
)
{
...
...
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