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 ecd5eed0
authored
Apr 23, 2025
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
阳光激励分润
1 parent
dabc26d7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
77 additions
and
70 deletions
src/views/orderManage/components/detailDialog.vue
src/views/orderManage/components/newSignRefundDialog.vue
src/views/pointManagement/components/detailDialog.vue
src/views/pointManagement/pointExamine.vue
src/views/orderManage/components/detailDialog.vue
View file @
ecd5eed
This diff is collapsed.
Click to expand it.
src/views/orderManage/components/newSignRefundDialog.vue
View file @
ecd5eed
...
...
@@ -1069,40 +1069,43 @@ export default {
(
infoValid
)
=>
{
//开启分润
if
(
this
.
isValid
(
"remnantPoints"
))
{
infoValid
=
true
this
.
clearValid
(
"refundPoints"
)
}
if
(
this
.
isValid
(
"remnantPoints2"
))
{
infoValid
=
true
this
.
clearValid
(
"refundPoints2"
)
}
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
((
valid
)
=>
{
if
(
this
.
ref
)
if
(
infoValid
&&
valid
)
{
this
.
okParams
=
deepClone
(
this
.
infoForm
)
const
attachmentList
=
this
.
okParams
.
attachmentList
for
(
var
i
=
0
;
i
<
attachmentList
.
length
;
i
++
)
{
if
(
attachmentList
[
i
].
fileUrl
==
""
)
{
attachmentList
.
splice
(
i
,
1
)
i
--
// 需要将i减1,因为数组长度已经减少了1
}
if
(
infoValid
&&
valid
)
{
this
.
okParams
=
deepClone
(
this
.
infoForm
)
const
attachmentList
=
this
.
okParams
.
attachmentList
for
(
var
i
=
0
;
i
<
attachmentList
.
length
;
i
++
)
{
if
(
attachmentList
[
i
].
fileUrl
==
""
)
{
attachmentList
.
splice
(
i
,
1
)
i
--
// 需要将i减1,因为数组长度已经减少了1
}
this
.
okParams
.
bankAccountNo
=
this
.
okParams
.
bankAccountNo
.
replace
(
/
\s
*/g
,
""
)
this
.
okParams
.
yqMerchantName
=
this
.
baseData
.
yqMerchantList
.
find
(
(
item
)
=>
item
.
yqMerchantId
==
this
.
okParams
.
yqMerchantId
)?.
yqMerchantName
||
""
this
.
okParams
.
shopMerchantName
=
this
.
baseData
.
shopMerchantList
.
find
(
(
item
)
=>
item
.
merchantId
==
this
.
okParams
.
shopMerchantId
)?.
merchantName
||
""
this
.
dealMerchant
()
// console.log('this.okParams------------', this.okParams)
addRefundApplyRecord
(
this
.
okParams
).
then
((
res
)
=>
{
this
.
notice
.
okTips
(
"操作成功"
)
this
.
visible
=
true
})
}
this
.
okParams
.
bankAccountNo
=
this
.
okParams
.
bankAccountNo
.
replace
(
/
\s
*/g
,
""
)
this
.
okParams
.
yqMerchantName
=
this
.
baseData
.
yqMerchantList
.
find
(
(
item
)
=>
item
.
yqMerchantId
==
this
.
okParams
.
yqMerchantId
)?.
yqMerchantName
||
""
this
.
okParams
.
shopMerchantName
=
this
.
baseData
.
shopMerchantList
.
find
(
(
item
)
=>
item
.
merchantId
==
this
.
okParams
.
shopMerchantId
)?.
merchantName
||
""
this
.
dealMerchant
()
// console.log('this.okParams------------', this.okParams)
addRefundApplyRecord
(
this
.
okParams
).
then
((
res
)
=>
{
this
.
notice
.
okTips
(
"操作成功"
)
this
.
visible
=
true
})
}
})
}
)
...
...
src/views/pointManagement/components/detailDialog.vue
View file @
ecd5eed
...
...
@@ -147,7 +147,7 @@
<el-col
:span=
"8"
v-if=
"
detailInfo.status == '已审核' ||
detailInfo.failType == '退款'
detailInfo.status == '已审核' || detailInfo.failType == '退款'
"
>
<el-form-item
label=
"订单总积分:"
class=
"halfItem"
>
...
...
@@ -239,7 +239,7 @@ export default {
id
:
{
type
:
Number
,
default
:
""
}
,
}
},
computed
:
{
dialogShow
:
{
...
...
@@ -272,9 +272,8 @@ export default {
width
:
"1080px"
}
},
addScore
:
0
,
detailInfo
:
{
},
addScore
:
0
,
detailInfo
:
{},
operationList
:
[],
loading
:
false
,
imgVisible
:
false
,
...
...
@@ -310,7 +309,7 @@ export default {
if
(
this
.
detailInfo
.
status
==
"已审核"
||
this
.
detailInfo
.
failType
==
'退款'
this
.
detailInfo
.
failType
==
"退款"
)
{
this
.
getScore
()
this
.
getOrderOperateData
()
...
...
@@ -322,18 +321,12 @@ export default {
getOrderByScore
({
orderCode
:
this
.
detailInfo
.
orderCode
}).
then
((
res
)
=>
{
this
.
addScore
=
res
.
addScore
// this.$set(this.detailInfo, "addScore", res.addScore)
})
},
getOrderOperateData
()
{
let
params
=
{
operationType
:
1
}
if
(
this
.
detailInfo
.
status
==
'已失效'
){
params
.
id
=
this
.
id
}
else
{
params
.
orderCode
=
this
.
detailInfo
.
orderCode
}
let
params
=
{
operationType
:
1
,
id
:
this
.
id
}
getOperationRecord
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
operationList
=
res
...
...
@@ -515,7 +508,7 @@ export default {
}
</
style
>
<
style
>
<
style
>
.detailDialog-tooltip-width
{
max-width
:
500px
;
}
...
...
src/views/pointManagement/pointExamine.vue
View file @
ecd5eed
...
...
@@ -165,11 +165,11 @@ export default {
if
(
isNaN
(
value
)
||
value
<=
0
)
{
callback
(
new
Error
(
"输入大于0的数字"
))
}
else
{
callback
()
}
callback
()
}
}
return
{
isRefund
:
true
,
isRefund
:
true
,
show
:
true
,
handleFormRef
:
"handleFormRef"
,
refundVisible
:
false
,
...
...
@@ -346,7 +346,7 @@ export default {
refundType
:
""
,
refundPoints
:
""
,
firstInto
:
true
,
refundAmount
:
''
refundAmount
:
""
},
formRules
:
{
refundType
:
[
...
...
@@ -652,6 +652,8 @@ export default {
//标记退款
handleRefund
(
data
)
{
this
.
refundVisible
=
true
this
.
refundForm
.
employeeUserId
=
data
.
staffUuid
this
.
refundForm
.
employeeName
=
data
.
staffName
this
.
refundForm
.
orderCode
=
data
.
orderCode
this
.
refundForm
.
tempPoints
=
data
.
integralIncome
this
.
refundForm
.
refundPoints
=
data
.
integralIncome
//退还积分
...
...
@@ -670,13 +672,17 @@ export default {
// this.refundForm.remainAmount = res.remainAmount //剩余金额
this
.
refundForm
.
firstInto
=
true
this
.
refundForm
.
refundType
=
1
//退款类型(1:全退,2:部分退),
this
.
refundFormData
[
this
.
findAttrIdx
(
"refundType"
)].
optionList
[
0
].
isDisabled
=
false
this
.
refundFormData
[
this
.
findAttrIdx
(
"refundType"
)
].
optionList
[
0
].
isDisabled
=
false
}
else
{
this
.
refundForm
.
remainingScore
=
res
.
remainingScore
// this.refundForm.remainAmount = res.remainAmount //剩余金额
this
.
refundForm
.
firstInto
=
false
this
.
refundForm
.
refundType
=
2
this
.
refundFormData
[
this
.
findAttrIdx
(
"refundType"
)].
optionList
[
0
].
isDisabled
=
true
this
.
refundFormData
[
this
.
findAttrIdx
(
"refundType"
)
].
optionList
[
0
].
isDisabled
=
true
}
this
.
updateDisable
()
})
...
...
@@ -686,8 +692,10 @@ export default {
if
(
this
.
refundForm
.
refundType
==
1
)
{
this
.
refundForm
.
refundPoints
=
this
.
refundForm
.
tempPoints
}
this
.
refundFormData
[
this
.
findAttrIdx
(
"refundPoints"
)].
isDisabled
=
disabled
this
.
refundFormData
[
this
.
findAttrIdx
(
"refundAmount"
)].
isDisabled
=
disabled
this
.
refundFormData
[
this
.
findAttrIdx
(
"refundPoints"
)].
isDisabled
=
disabled
this
.
refundFormData
[
this
.
findAttrIdx
(
"refundAmount"
)].
isDisabled
=
disabled
this
.
refundFormData
=
deepClone
(
this
.
refundFormData
)
},
findAttrIdx
(
attrName
)
{
...
...
@@ -700,29 +708,32 @@ export default {
},
// 确定标记退款
handleRefundConfirm
()
{
if
(
this
.
isRefund
)
{
if
(
this
.
isRefund
)
{
this
.
$refs
.
refundFormRef
.
$refs
[
this
.
handleFormRef
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
isRefund
=
false
markAsRefunded
({
orderCode
:
this
.
refundForm
.
orderCode
,
refundType
:
this
.
refundForm
.
refundType
,
refundPoints
:
this
.
refundForm
.
refundPoints
,
refundAmount
:
this
.
refundForm
.
refundAmount
}).
then
((
res
)
=>
{
if
(
res
)
{
this
.
$message
.
success
(
"退款成功!"
)
this
.
refundVisible
=
false
this
.
refundForm
.
id
=
""
this
.
handleSearch
()
}
}).
finally
(()
=>
{
this
.
isRefund
=
true
})
}
})
if
(
valid
)
{
this
.
isRefund
=
false
markAsRefunded
({
orderCode
:
this
.
refundForm
.
orderCode
,
refundType
:
this
.
refundForm
.
refundType
,
refundPoints
:
this
.
refundForm
.
refundPoints
,
refundAmount
:
this
.
refundForm
.
refundAmount
,
employeeUserId
:
this
.
refundForm
.
employeeUserId
,
employeeName
:
this
.
refundForm
.
employeeName
})
.
then
((
res
)
=>
{
if
(
res
)
{
this
.
$message
.
success
(
"退款成功!"
)
this
.
refundVisible
=
false
this
.
refundForm
.
id
=
""
this
.
handleSearch
()
}
})
.
finally
(()
=>
{
this
.
isRefund
=
true
})
}
})
}
},
//刷新
handleRefresh
()
{
...
...
@@ -829,4 +840,4 @@ export default {
border-top
:
1px
solid
#e5e5e5
;
}
}
</
style
>
\ No newline at end of file
</
style
>
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