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
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
29 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,13 +1069,14 @@ export default {
...
@@ -1069,13 +1069,14 @@ export default {
(
infoValid
)
=>
{
(
infoValid
)
=>
{
//开启分润
//开启分润
if
(
this
.
isValid
(
"remnantPoints"
))
{
if
(
this
.
isValid
(
"remnantPoints"
))
{
infoValid
=
true
this
.
clearValid
(
"refundPoints"
)
this
.
clearValid
(
"refundPoints"
)
}
}
if
(
this
.
isValid
(
"remnantPoints2"
))
{
if
(
this
.
isValid
(
"remnantPoints2"
))
{
infoValid
=
true
this
.
clearValid
(
"refundPoints2"
)
this
.
clearValid
(
"refundPoints2"
)
}
}
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
((
valid
)
=>
{
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
((
valid
)
=>
{
if
(
this
.
ref
)
if
(
infoValid
&&
valid
)
{
if
(
infoValid
&&
valid
)
{
this
.
okParams
=
deepClone
(
this
.
infoForm
)
this
.
okParams
=
deepClone
(
this
.
infoForm
)
const
attachmentList
=
this
.
okParams
.
attachmentList
const
attachmentList
=
this
.
okParams
.
attachmentList
...
@@ -1085,8 +1086,10 @@ export default {
...
@@ -1085,8 +1086,10 @@ export default {
i
--
// 需要将i减1,因为数组长度已经减少了1
i
--
// 需要将i减1,因为数组长度已经减少了1
}
}
}
}
this
.
okParams
.
bankAccountNo
=
this
.
okParams
.
bankAccountNo
=
this
.
okParams
.
bankAccountNo
.
replace
(
this
.
okParams
.
bankAccountNo
.
replace
(
/
\s
*/g
,
""
)
/
\s
*/g
,
""
)
this
.
okParams
.
yqMerchantName
=
this
.
okParams
.
yqMerchantName
=
this
.
baseData
.
yqMerchantList
.
find
(
this
.
baseData
.
yqMerchantList
.
find
(
(
item
)
=>
item
.
yqMerchantId
==
this
.
okParams
.
yqMerchantId
(
item
)
=>
item
.
yqMerchantId
==
this
.
okParams
.
yqMerchantId
...
...
src/views/pointManagement/components/detailDialog.vue
View file @
ecd5eed
...
@@ -239,7 +239,7 @@ export default {
...
@@ -239,7 +239,7 @@ export default {
id
:
{
id
:
{
type
:
Number
,
type
:
Number
,
default
:
""
default
:
""
}
,
}
},
},
computed
:
{
computed
:
{
dialogShow
:
{
dialogShow
:
{
...
@@ -272,9 +272,8 @@ export default {
...
@@ -272,9 +272,8 @@ export default {
width
:
"1080px"
width
:
"1080px"
}
}
},
},
addScore
:
0
,
addScore
:
0
,
detailInfo
:
{
detailInfo
:
{},
},
operationList
:
[],
operationList
:
[],
loading
:
false
,
loading
:
false
,
imgVisible
:
false
,
imgVisible
:
false
,
...
@@ -310,7 +309,7 @@ export default {
...
@@ -310,7 +309,7 @@ export default {
if
(
if
(
this
.
detailInfo
.
status
==
"已审核"
||
this
.
detailInfo
.
status
==
"已审核"
||
this
.
detailInfo
.
failType
==
'退款'
this
.
detailInfo
.
failType
==
"退款"
)
{
)
{
this
.
getScore
()
this
.
getScore
()
this
.
getOrderOperateData
()
this
.
getOrderOperateData
()
...
@@ -322,18 +321,12 @@ export default {
...
@@ -322,18 +321,12 @@ export default {
getOrderByScore
({
getOrderByScore
({
orderCode
:
this
.
detailInfo
.
orderCode
orderCode
:
this
.
detailInfo
.
orderCode
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
this
.
addScore
=
res
.
addScore
this
.
addScore
=
res
.
addScore
// this.$set(this.detailInfo, "addScore", res.addScore)
// this.$set(this.detailInfo, "addScore", res.addScore)
})
})
},
},
getOrderOperateData
()
{
getOrderOperateData
()
{
let
params
=
{
operationType
:
1
}
let
params
=
{
operationType
:
1
,
id
:
this
.
id
}
if
(
this
.
detailInfo
.
status
==
'已失效'
){
params
.
id
=
this
.
id
}
else
{
params
.
orderCode
=
this
.
detailInfo
.
orderCode
}
getOperationRecord
(
params
).
then
((
res
)
=>
{
getOperationRecord
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
this
.
operationList
=
res
this
.
operationList
=
res
...
@@ -515,7 +508,7 @@ export default {
...
@@ -515,7 +508,7 @@ export default {
}
}
</
style
>
</
style
>
<
style
>
<
style
>
.detailDialog-tooltip-width
{
.detailDialog-tooltip-width
{
max-width
:
500px
;
max-width
:
500px
;
}
}
...
...
src/views/pointManagement/pointExamine.vue
View file @
ecd5eed
...
@@ -169,7 +169,7 @@ export default {
...
@@ -169,7 +169,7 @@ export default {
}
}
}
}
return
{
return
{
isRefund
:
true
,
isRefund
:
true
,
show
:
true
,
show
:
true
,
handleFormRef
:
"handleFormRef"
,
handleFormRef
:
"handleFormRef"
,
refundVisible
:
false
,
refundVisible
:
false
,
...
@@ -346,7 +346,7 @@ export default {
...
@@ -346,7 +346,7 @@ export default {
refundType
:
""
,
refundType
:
""
,
refundPoints
:
""
,
refundPoints
:
""
,
firstInto
:
true
,
firstInto
:
true
,
refundAmount
:
''
refundAmount
:
""
},
},
formRules
:
{
formRules
:
{
refundType
:
[
refundType
:
[
...
@@ -652,6 +652,8 @@ export default {
...
@@ -652,6 +652,8 @@ export default {
//标记退款
//标记退款
handleRefund
(
data
)
{
handleRefund
(
data
)
{
this
.
refundVisible
=
true
this
.
refundVisible
=
true
this
.
refundForm
.
employeeUserId
=
data
.
staffUuid
this
.
refundForm
.
employeeName
=
data
.
staffName
this
.
refundForm
.
orderCode
=
data
.
orderCode
this
.
refundForm
.
orderCode
=
data
.
orderCode
this
.
refundForm
.
tempPoints
=
data
.
integralIncome
this
.
refundForm
.
tempPoints
=
data
.
integralIncome
this
.
refundForm
.
refundPoints
=
data
.
integralIncome
//退还积分
this
.
refundForm
.
refundPoints
=
data
.
integralIncome
//退还积分
...
@@ -670,13 +672,17 @@ export default {
...
@@ -670,13 +672,17 @@ export default {
// this.refundForm.remainAmount = res.remainAmount //剩余金额
// this.refundForm.remainAmount = res.remainAmount //剩余金额
this
.
refundForm
.
firstInto
=
true
this
.
refundForm
.
firstInto
=
true
this
.
refundForm
.
refundType
=
1
//退款类型(1:全退,2:部分退),
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
{
}
else
{
this
.
refundForm
.
remainingScore
=
res
.
remainingScore
this
.
refundForm
.
remainingScore
=
res
.
remainingScore
// this.refundForm.remainAmount = res.remainAmount //剩余金额
// this.refundForm.remainAmount = res.remainAmount //剩余金额
this
.
refundForm
.
firstInto
=
false
this
.
refundForm
.
firstInto
=
false
this
.
refundForm
.
refundType
=
2
this
.
refundForm
.
refundType
=
2
this
.
refundFormData
[
this
.
findAttrIdx
(
"refundType"
)].
optionList
[
0
].
isDisabled
=
true
this
.
refundFormData
[
this
.
findAttrIdx
(
"refundType"
)
].
optionList
[
0
].
isDisabled
=
true
}
}
this
.
updateDisable
()
this
.
updateDisable
()
})
})
...
@@ -686,8 +692,10 @@ export default {
...
@@ -686,8 +692,10 @@ export default {
if
(
this
.
refundForm
.
refundType
==
1
)
{
if
(
this
.
refundForm
.
refundType
==
1
)
{
this
.
refundForm
.
refundPoints
=
this
.
refundForm
.
tempPoints
this
.
refundForm
.
refundPoints
=
this
.
refundForm
.
tempPoints
}
}
this
.
refundFormData
[
this
.
findAttrIdx
(
"refundPoints"
)].
isDisabled
=
disabled
this
.
refundFormData
[
this
.
findAttrIdx
(
"refundPoints"
)].
isDisabled
=
this
.
refundFormData
[
this
.
findAttrIdx
(
"refundAmount"
)].
isDisabled
=
disabled
disabled
this
.
refundFormData
[
this
.
findAttrIdx
(
"refundAmount"
)].
isDisabled
=
disabled
this
.
refundFormData
=
deepClone
(
this
.
refundFormData
)
this
.
refundFormData
=
deepClone
(
this
.
refundFormData
)
},
},
findAttrIdx
(
attrName
)
{
findAttrIdx
(
attrName
)
{
...
@@ -700,29 +708,32 @@ export default {
...
@@ -700,29 +708,32 @@ export default {
},
},
// 确定标记退款
// 确定标记退款
handleRefundConfirm
()
{
handleRefundConfirm
()
{
if
(
this
.
isRefund
)
{
if
(
this
.
isRefund
)
{
this
.
$refs
.
refundFormRef
.
$refs
[
this
.
handleFormRef
].
validate
((
valid
)
=>
{
this
.
$refs
.
refundFormRef
.
$refs
[
this
.
handleFormRef
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
isRefund
=
false
this
.
isRefund
=
false
markAsRefunded
({
markAsRefunded
({
orderCode
:
this
.
refundForm
.
orderCode
,
orderCode
:
this
.
refundForm
.
orderCode
,
refundType
:
this
.
refundForm
.
refundType
,
refundType
:
this
.
refundForm
.
refundType
,
refundPoints
:
this
.
refundForm
.
refundPoints
,
refundPoints
:
this
.
refundForm
.
refundPoints
,
refundAmount
:
this
.
refundForm
.
refundAmount
refundAmount
:
this
.
refundForm
.
refundAmount
,
}).
then
((
res
)
=>
{
employeeUserId
:
this
.
refundForm
.
employeeUserId
,
employeeName
:
this
.
refundForm
.
employeeName
})
.
then
((
res
)
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
$message
.
success
(
"退款成功!"
)
this
.
$message
.
success
(
"退款成功!"
)
this
.
refundVisible
=
false
this
.
refundVisible
=
false
this
.
refundForm
.
id
=
""
this
.
refundForm
.
id
=
""
this
.
handleSearch
()
this
.
handleSearch
()
}
}
}).
finally
(()
=>
{
})
this
.
isRefund
=
true
.
finally
(()
=>
{
this
.
isRefund
=
true
})
})
}
}
})
})
}
}
},
},
//刷新
//刷新
handleRefresh
()
{
handleRefresh
()
{
...
...
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