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 fe721437
authored
Feb 25, 2025
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
积分需求对接
1 parent
dd762e7e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
78 additions
and
35 deletions
src/views/goods/shelfManage/components/editCon/DivisionConfig.vue
src/views/goods/shelfManage/components/editCon/FinanceConfig.vue
src/views/goods/shelfManage/components/editCon/components/classificationCpt.vue
src/views/goods/shelfManage/components/editCon/components/tableAccount.vue
src/views/goods/shelfManage/editContract.vue
src/views/orderManage/components/newSignRefundDialog.vue
src/views/pointManagement/pointExamine.vue
src/views/systemConfig/merchant/merchantStep/merchantCheck.vue
src/views/goods/shelfManage/components/editCon/DivisionConfig.vue
View file @
fe72143
...
@@ -187,6 +187,7 @@ export default {
...
@@ -187,6 +187,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
submitParams
:
''
,
verificationCodeVisible
:
false
,
verificationCodeVisible
:
false
,
merchantTestVisible
:
false
,
merchantTestVisible
:
false
,
rulesTestParams
:
{},
rulesTestParams
:
{},
...
@@ -400,7 +401,6 @@ export default {
...
@@ -400,7 +401,6 @@ export default {
djzhySubMerchantId
,
djzhySubMerchantId
,
djzhySubMerchantName
djzhySubMerchantName
}
=
this
.
financialObj
}
=
this
.
financialObj
// console.log(realityShopMerchantName, dizhySubMerchantId, this.financialObj, 'this.financialObj')
return
{
return
{
realityPlatformMerchantId
,
// 实际分账平台方商户id(嘀加智慧云为-1)
realityPlatformMerchantId
,
// 实际分账平台方商户id(嘀加智慧云为-1)
realityPlatformMerchantName
,
// 实际分账平台方商户名称
realityPlatformMerchantName
,
// 实际分账平台方商户名称
...
@@ -490,6 +490,11 @@ export default {
...
@@ -490,6 +490,11 @@ export default {
Promise
.
all
(
eventArr
).
then
(()
=>
{
Promise
.
all
(
eventArr
).
then
(()
=>
{
this
.
checkSelectEmpty
()
this
.
checkSelectEmpty
()
})
})
this
.
$EventBus
.
$on
(
'shelfUpdateConstractMer'
,(
obj
)
=>
{
console
.
log
(
obj
)
this
.
financialObj
.
realityPlatformMerchantId
=
obj
.
merchantId
this
.
financialObj
.
realityPlatformMerchantName
=
obj
.
merchantName
})
},
},
methods
:
{
methods
:
{
...
mapActions
(
"FinancialRules"
,
[
"reset"
]),
...
mapActions
(
"FinancialRules"
,
[
"reset"
]),
...
@@ -544,7 +549,6 @@ export default {
...
@@ -544,7 +549,6 @@ export default {
pageSize
:
100000
pageSize
:
100000
}).
then
((
result
)
=>
{
}).
then
((
result
)
=>
{
result
=
result
.
list
result
=
result
.
list
console
.
log
(
result
,
"result"
)
this
.
classificationObj
=
result
.
reduce
(
this
.
classificationObj
=
result
.
reduce
(
(
prev
,
item
)
=>
{
(
prev
,
item
)
=>
{
const
{
const
{
...
@@ -1187,7 +1191,6 @@ export default {
...
@@ -1187,7 +1191,6 @@ export default {
})
})
},
},
getSubmitData
()
{
getSubmitData
()
{
// console.log(this.routerInfo.scene, 'getSubmitData')
return
{
return
{
...
this
.
getParams
(),
...
this
.
getParams
(),
sceneType
:
this
.
routerInfo
.
scene
// 在后面避免被覆盖
sceneType
:
this
.
routerInfo
.
scene
// 在后面避免被覆盖
...
@@ -1467,7 +1470,6 @@ export default {
...
@@ -1467,7 +1470,6 @@ export default {
})
})
},
},
removeTab
(
targetName
)
{
removeTab
(
targetName
)
{
console
.
log
(
targetName
)
// 获取当前tab 对应的对象
// 获取当前tab 对应的对象
const
goodsTypeGroupRules
=
this
.
getAllParams
()
const
goodsTypeGroupRules
=
this
.
getAllParams
()
console
.
log
(
goodsTypeGroupRules
,
"goodsTypeGroupRules"
)
console
.
log
(
goodsTypeGroupRules
,
"goodsTypeGroupRules"
)
...
...
src/views/goods/shelfManage/components/editCon/FinanceConfig.vue
View file @
fe72143
...
@@ -105,6 +105,7 @@ export default {
...
@@ -105,6 +105,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
submitParams
:
''
,
effectStartDateDate
:
""
,
effectStartDateDate
:
""
,
effectStartDate
:
false
,
// 规则时间 true 表示可以立即生效 是否立即生效
effectStartDate
:
false
,
// 规则时间 true 表示可以立即生效 是否立即生效
sceneList
,
sceneList
,
...
@@ -888,7 +889,13 @@ export default {
...
@@ -888,7 +889,13 @@ export default {
this
.
submitFormData
()
this
.
submitFormData
()
},
},
// 提交信息
// 提交信息
async
submitFormData
()
{
async
submit
()
{
let
res
=
await
this
.
verifyFormData
()
if
(
!
this
.
checkParamsType
(
res
))
{
return
this
.
$message
.
error
(
"请完善对账规则"
)
}
// 检验已经通过了
this
.
errorIndex
=
-
1
const
{
const
{
shopMerchantTotalFeeCalculateType
,
shopMerchantTotalFeeCalculateType
,
shopMerchantExpenseCategoryValue
,
shopMerchantExpenseCategoryValue
,
...
@@ -906,14 +913,8 @@ export default {
...
@@ -906,14 +913,8 @@ export default {
partnerMerchantTotalFeeCalculateType
,
partnerMerchantTotalFeeCalculateType
,
partnerMerchantExpenseCategoryValue
partnerMerchantExpenseCategoryValue
}
}
const
result
=
await
saveRuleApi
({
json
:
JSON
.
stringify
(
params
)
})
this
.
submitParams
=
params
if
(
result
)
{
console
.
log
(
this
.
submitParams
)
this
.
$message
({
message
:
"提交成功"
,
type
:
"success"
})
this
.
$router
.
push
({
name
:
"merchantManage"
})
}
},
},
// 校验所有form数据
// 校验所有form数据
async
verifyFormData
()
{
async
verifyFormData
()
{
...
@@ -954,10 +955,6 @@ export default {
...
@@ -954,10 +955,6 @@ export default {
}
}
console
.
log
(
this
.
goodsTypeGroupRulesAll
,
"this.goodsTypeGroupRulesAll"
)
console
.
log
(
this
.
goodsTypeGroupRulesAll
,
"this.goodsTypeGroupRulesAll"
)
return
this
.
goodsTypeGroupRulesAll
return
this
.
goodsTypeGroupRulesAll
},
// 取消
handleReset
()
{
this
.
$router
.
go
(
-
1
)
}
}
},
},
beforeDestroy
()
{
beforeDestroy
()
{
...
...
src/views/goods/shelfManage/components/editCon/components/classificationCpt.vue
View file @
fe72143
...
@@ -485,8 +485,10 @@ export default {
...
@@ -485,8 +485,10 @@ export default {
},
},
// table
// table
// 分账金额设置 对应的选项
// 分账金额设置 对应的选项
// 分账对象选项 1:平台方 2:服务商 3:流量方 4:子商户
tableSelectOptions
:
{
tableSelectOptions
:
{
get
()
{
get
()
{
console
.
log
(
this
.
financialLedgerParty
,
"this.financialLedgerParty"
)
const
info
=
this
.
financialLedgerParty
const
info
=
this
.
financialLedgerParty
// 平台方
// 平台方
const
platformSideobj
=
{
const
platformSideobj
=
{
...
...
src/views/goods/shelfManage/components/editCon/components/tableAccount.vue
View file @
fe72143
...
@@ -82,7 +82,7 @@ export default {
...
@@ -82,7 +82,7 @@ export default {
}
}
},
},
// 分账对象选项 1:平台方 2:服务商 3:
导流
方 4:子商户
// 分账对象选项 1:平台方 2:服务商 3:
流量
方 4:子商户
tableSelectOptions
:
{
tableSelectOptions
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
[]
default
:
()
=>
[]
...
@@ -94,7 +94,7 @@ export default {
...
@@ -94,7 +94,7 @@ export default {
const
name
=
{
const
name
=
{
1
:
"平台方"
,
1
:
"平台方"
,
2
:
"服务商"
,
2
:
"服务商"
,
3
:
"
导流
方"
,
3
:
"
流量
方"
,
4
:
"平台方"
4
:
"平台方"
}
}
const
type
=
val
.
targetMerchantType
const
type
=
val
.
targetMerchantType
...
@@ -176,7 +176,6 @@ export default {
...
@@ -176,7 +176,6 @@ export default {
},
},
tableSelectOptions
:
{
tableSelectOptions
:
{
handler
()
{
handler
()
{
console
.
log
(
this
.
tableSelectOptions
,
"🚀🚀"
)
// this.initList()
// this.initList()
this
.
changFormList
()
this
.
changFormList
()
},
},
...
@@ -215,6 +214,7 @@ export default {
...
@@ -215,6 +214,7 @@ export default {
this
.
form
=
form
this
.
form
=
form
},
},
changFormList
()
{
changFormList
()
{
console
.
log
(
this
.
form
,
'this.form'
)
// 判断id是否有在选项里面 没有就去掉
// 判断id是否有在选项里面 没有就去掉
for
(
const
key
in
this
.
form
)
{
for
(
const
key
in
this
.
form
)
{
const
element
=
this
.
form
[
key
]
const
element
=
this
.
form
[
key
]
...
...
src/views/goods/shelfManage/editContract.vue
View file @
fe72143
<!--
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2025-02-24 21:48:44
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2025-02-25 17:57:05
* @FilePath: \dj-car-life-system\src\views\goods\shelfManage\editContract.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!-- 编辑 - 运营确认 -->
<!-- 编辑 - 运营确认 -->
<
template
>
<
template
>
<d2-container
class=
"edit-contract"
v-loading=
"isLoad"
>
<d2-container
class=
"edit-contract"
v-loading=
"isLoad"
>
...
@@ -10,9 +18,9 @@
...
@@ -10,9 +18,9 @@
<!-- 上架商品及测算 -->
<!-- 上架商品及测算 -->
<goods-info></goods-info>
<goods-info></goods-info>
<!-- 分账配置 -->
<!-- 分账配置 -->
<division-config></division-config>
<division-config
ref=
"divisionConfig"
></division-config>
<!-- 对账配置 -->
<!-- 对账配置 -->
<finance-config></finance-config>
<finance-config
ref=
"financeConfig"
></finance-config>
<div
style=
"margin-top: 40px;text-align: center;"
>
<div
style=
"margin-top: 40px;text-align: center;"
>
<el-button
type=
"primary"
@
click=
"handleConfirm(1)"
>
<el-button
type=
"primary"
@
click=
"handleConfirm(1)"
>
提交
提交
...
@@ -71,7 +79,10 @@ export default {
...
@@ -71,7 +79,10 @@ export default {
console
.
log
(
'新建---'
)
console
.
log
(
'新建---'
)
this
.
addMerVisible
=
!
this
.
addMerVisible
this
.
addMerVisible
=
!
this
.
addMerVisible
},
},
handleConfirm
()
{},
handleConfirm
()
{
this
.
$refs
.
divisionConfig
.
submit
()
this
.
$refs
.
financeConfig
.
submit
()
},
handleCancel
()
{
handleCancel
()
{
this
.
close
({
tagName
:
'/shelfManage'
})
this
.
close
({
tagName
:
'/shelfManage'
})
this
.
$router
.
push
({
name
:
'shelfManage'
})
this
.
$router
.
push
({
name
:
'shelfManage'
})
...
...
src/views/orderManage/components/newSignRefundDialog.vue
View file @
fe72143
This diff is collapsed.
Click to expand it.
src/views/pointManagement/pointExamine.vue
View file @
fe72143
...
@@ -94,6 +94,7 @@
...
@@ -94,6 +94,7 @@
:isBlock=
"true"
:isBlock=
"true"
ref=
"refundFormRef"
ref=
"refundFormRef"
label-width=
"220px"
label-width=
"220px"
:form-ref=
"handleFormRef"
default-width=
"400px"
default-width=
"400px"
:form-rules=
"formRules"
:form-rules=
"formRules"
:form-obj=
"refundForm"
:form-obj=
"refundForm"
...
@@ -127,11 +128,10 @@ export default {
...
@@ -127,11 +128,10 @@ export default {
if
(
!
value
)
{
if
(
!
value
)
{
return
callback
(
new
Error
(
"请输入退回积分"
))
return
callback
(
new
Error
(
"请输入退回积分"
))
}
}
console
.
log
(
Number
.
isInteger
(
+
value
))
if
(
!
Number
.
isInteger
(
+
value
))
{
if
(
!
Number
.
isInteger
(
+
value
))
{
callback
(
new
Error
(
"请输入数字值"
))
callback
(
new
Error
(
"请输入数字值"
))
}
else
{
}
else
{
if
(
value
>
18
)
{
if
(
value
>
this
.
refundForm
.
maXPoints
)
{
callback
(
new
Error
(
"输入的积分超过当前订单最大积分"
))
callback
(
new
Error
(
"输入的积分超过当前订单最大积分"
))
}
else
{
}
else
{
callback
()
callback
()
...
@@ -140,6 +140,7 @@ export default {
...
@@ -140,6 +140,7 @@ export default {
}
}
return
{
return
{
show
:
true
,
show
:
true
,
handleFormRef
:
'handleFormRef'
,
refundVisible
:
false
,
refundVisible
:
false
,
activeName
:
"4"
,
activeName
:
"4"
,
tabPaneList
:
[
tabPaneList
:
[
...
@@ -309,13 +310,16 @@ export default {
...
@@ -309,13 +310,16 @@ export default {
}
}
],
],
refundForm
:
{
refundForm
:
{
id
:
""
id
:
""
,
orderCode
:
""
,
refundType
:
""
,
refundPoints
:
""
},
},
formRules
:
{
formRules
:
{
refundType
:
[
refundType
:
[
{
required
:
true
,
message
:
"请选择退款类型"
,
trigger
:
"change"
}
{
required
:
true
,
message
:
"请选择退款类型"
,
trigger
:
"change"
}
],
],
integral
:
[{
validator
:
checkIntegral
,
trigger
:
"blur"
}]
refundPoints
:
[{
validator
:
checkIntegral
,
trigger
:
"blur"
}]
},
},
refundFormData
:
[
refundFormData
:
[
{
{
...
@@ -324,17 +328,22 @@ export default {
...
@@ -324,17 +328,22 @@ export default {
type
:
"radio"
,
type
:
"radio"
,
optionId
:
"confId"
,
optionId
:
"confId"
,
optionLabel
:
"confName"
,
optionLabel
:
"confName"
,
isDisabled
:
false
,
optionList
:
[
optionList
:
[
{
confId
:
"1"
,
confName
:
"全额退款"
},
{
confId
:
1
,
confName
:
"全额退款"
},
{
confId
:
"2"
,
confName
:
"部分退款"
}
{
confId
:
2
,
confName
:
"部分退款"
}
],
],
handleRadioChange
:
(
val
)
=>
{}
handleRadioChange
:
(
val
)
=>
{
console
.
log
(
val
)
this
.
updateDisable
()
}
},
},
{
{
label
:
"退回积分"
,
label
:
"退回积分"
,
name
:
"
integral
"
,
name
:
"
refundPoints
"
,
type
:
"input"
,
type
:
"input"
,
width
:
"290px"
width
:
"290px"
,
isDisabled
:
false
}
}
]
]
}
}
...
@@ -602,6 +611,19 @@ export default {
...
@@ -602,6 +611,19 @@ export default {
handleRefund
(
data
)
{
handleRefund
(
data
)
{
this
.
refundVisible
=
true
this
.
refundVisible
=
true
this
.
refundForm
.
id
=
data
.
id
this
.
refundForm
.
id
=
data
.
id
this
.
refundForm
.
orderCode
=
data
.
orderCode
this
.
refundForm
.
refundType
=
1
//退款类型(1:全退,2:部分退),
this
.
refundForm
.
refundPoints
=
10000
this
.
refundForm
.
maXPoints
=
10000
if
(
data
.
operator
==
true
){
//对应订单若操作过一次部分退款,则后续进来后只能选择“部分退款”,全部退款默认置灰不可选
this
.
refundFormData
[
0
].
optionList
[
0
].
isDisabled
=
true
}
this
.
updateDisable
()
},
updateDisable
()
{
let
disabled
=
this
.
refundForm
.
refundType
==
2
?
false
:
true
this
.
refundFormData
[
1
].
isDisabled
=
disabled
},
},
//关闭标记退款
//关闭标记退款
handleRefundClose
()
{
handleRefundClose
()
{
...
@@ -610,10 +632,13 @@ export default {
...
@@ -610,10 +632,13 @@ export default {
},
},
// 确定标记退款
// 确定标记退款
handleRefundConfirm
()
{
handleRefundConfirm
()
{
this
.
$refs
.
refundFormRef
.
validate
((
valid
)
=>
{
console
.
log
(
this
.
$refs
.
refundFormRef
)
this
.
$refs
.
refundFormRef
.
$refs
[
this
.
handleFormRef
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
markAsRefunded
({
markAsRefunded
({
orderCode
:
data
.
orderCode
orderCode
:
this
.
refundForm
.
orderCode
,
refundType
:
this
.
refundForm
.
refundType
,
refundPoints
:
this
.
refundForm
.
refundPoints
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
$message
.
success
(
"退款成功!"
)
this
.
$message
.
success
(
"退款成功!"
)
...
...
src/views/systemConfig/merchant/merchantStep/merchantCheck.vue
View file @
fe72143
...
@@ -746,9 +746,15 @@ export default {
...
@@ -746,9 +746,15 @@ export default {
},
},
// 提交信息
// 提交信息
async
submitFormData
()
{
async
submitFormData
()
{
let
res
=
await
this
.
verifyFormData
()
if
(
!
this
.
checkParamsType
(
res
))
{
return
this
.
$message
.
error
(
"请完善对账规则"
)
}
// 检验已经通过了
this
.
errorIndex
=
-
1
this
.
effectStartDateDate
=
effectStartDate
?
effectStartDate
+
' 00:00:00'
:
''
const
{
shopMerchantTotalFeeCalculateType
,
shopMerchantExpenseCategoryValue
,
partnerMerchantTotalFeeCalculateType
,
partnerMerchantExpenseCategoryValue
}
=
this
.
formObj
const
{
shopMerchantTotalFeeCalculateType
,
shopMerchantExpenseCategoryValue
,
partnerMerchantTotalFeeCalculateType
,
partnerMerchantExpenseCategoryValue
}
=
this
.
formObj
const
params
=
{
const
params
=
{
smsCode
:
this
.
smsCode
,
effectStartDate
:
this
.
effectStartDateDate
,
effectStartDate
:
this
.
effectStartDateDate
,
merchantId
:
this
.
merchantRow
.
merchantId
,
merchantId
:
this
.
merchantRow
.
merchantId
,
sceneType
:
this
.
merchantRow
.
scene
,
sceneType
:
this
.
merchantRow
.
scene
,
...
...
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