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 37d4a930
authored
Apr 03, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix 联调bug修复
1 parent
db4c878c
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
233 additions
and
159 deletions
src/views/systemConfig/merchant/financialRules/components/channelSelectDialog.vue
src/views/systemConfig/merchant/financialRules/index.vue
src/views/systemConfig/merchant/merchantStep/components/ledgerAccount.vue
src/views/systemConfig/merchant/merchantStep/components/reconciliation.vue
src/views/systemConfig/merchant/merchantStep/merchantCheckDetail.vue
src/views/systemConfig/ruleReview/components/ledgerAccount.vue
src/views/systemConfig/ruleReview/components/reconciliation.vue
src/views/systemConfig/merchant/financialRules/components/channelSelectDialog.vue
View file @
37d4a93
<!-- 分账测试渠道 -->
<!-- 分账测试渠道 -->
<
template
>
<
template
>
<d2-dialog
title=
"选择分账测试渠道"
:is-visible=
"verificationCodeVisible"
width=
"750px"
@
closeDialog=
"handleClose"
<d2-dialog
title=
"选择分账测试渠道"
:is-visible=
"verificationCodeVisible"
width=
"750px"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleConfirm"
>
@
confirmDialog=
"handleConfirm"
>
<!--
<div
class=
"box"
v-for=
"(item, index) in accountValidMerchants"
:key=
"index"
>
-->
<!--
<div
class=
"box"
v-for=
"(item, index) in accountValidMerchants"
:key=
"index"
>
-->
<el-radio-group
v-model=
"paymentChannelId"
>
<el-radio-group
v-model=
"paymentChannelId"
>
<el-radio
:label=
"item.paymentChannelId"
class=
"verificationCode"
v-for=
"(item, index) in divisionRuleTests"
<el-radio
:label=
"item.paymentChannelId"
class=
"verificationCode"
v-for=
"(item, index) in divisionRuleTests"
:key=
"index"
>
{{
:key=
"index"
>
{{
item
.
paymentChannelName
}}
</el-radio>
item
.
paymentChannelName
}}
</el-radio>
</el-radio-group>
</el-radio-group>
<!--
</div>
-->
<!--
</div>
-->
</d2-dialog>
</d2-dialog>
</
template
>
</
template
>
<
script
>
<
script
>
// import { sendSms, getAdminInfo } from '@api/merchant'
// import { sendSms, getAdminInfo } from '@api/merchant'
import
{
mapActions
}
from
'vuex'
import
{
mapActions
}
from
'vuex'
export
default
{
export
default
{
name
:
'ChannelSelectDialog'
,
name
:
'ChannelSelectDialog'
,
props
:
{
props
:
{
visible
:
{
visible
:
{
// 弹窗是否展示
// 弹窗是否展示
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
},
accountValidMerchants
:
{
accountValidMerchants
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
[]
default
:
()
=>
[]
},
},
divisionRuleTests
:
{
divisionRuleTests
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
[]
default
:
()
=>
[]
}
}
},
},
computed
:
{
computed
:
{
verificationCodeVisible
:
{
verificationCodeVisible
:
{
// return this.
// return this.
get
()
{
get
()
{
return
this
.
visible
return
this
.
visible
},
},
set
(
val
)
{
set
(
val
)
{
this
.
$emit
(
'update:visible'
,
false
)
this
.
$emit
(
'update:visible'
,
false
)
}
}
},
},
paymentChannelObj
()
{
paymentChannelObj
()
{
return
this
.
divisionRuleTests
.
find
(
item
=>
item
.
paymentChannelId
===
this
.
paymentChannelId
)
return
this
.
divisionRuleTests
.
find
(
item
=>
item
.
paymentChannelId
===
this
.
paymentChannelId
)
}
}
},
},
data
()
{
data
()
{
return
{
return
{
paymentChannelId
:
''
paymentChannelId
:
''
}
}
},
},
methods
:
{
methods
:
{
...
mapActions
({
...
mapActions
({
close
:
'd2admin/page/close'
close
:
'd2admin/page/close'
}),
}),
handleClose
()
{
handleClose
()
{
// this.$emit('dialogClose')
// this.$emit('dialogClose')
// this.$update
// this.$update
this
.
verificationCodeVisible
=
false
this
.
verificationCodeVisible
=
false
},
},
// handleApply() {
// handleApply() {
// },
// },
// 选择并确认
// 选择并确认
handleConfirm
()
{
handleConfirm
()
{
if
(
!
this
.
paymentChannelId
)
{
if
(
!
this
.
paymentChannelId
)
{
return
this
.
$message
.
error
(
'请选择渠道'
);
return
this
.
$message
.
error
(
'请选择渠道'
);
}
}
this
.
$emit
(
'handleConfirm'
,
this
.
paymentChannelObj
)
this
.
$emit
(
'handleConfirm'
,
this
.
paymentChannelObj
)
this
.
handleClose
()
this
.
handleClose
()
// this.$router.push({ name: 'accountList_new' })
// this.$router.push({ name: 'accountList_new' })
// this.close({ tagName: '/merchantDetail' })
// this.close({ tagName: '/merchantDetail' })
}
}
}
}
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.verificationCode
{
.verificationCode
{
&+.verificationCode
{
&+.verificationCode
{
margin-top
:
20px
;
margin-top
:
20px
;
}
}
width
:
100
%;
width
:
100
%;
}
}
.container
{
.container
{
padding
:
16px
44px
;
padding
:
16px
44px
;
color
:
#333333
;
color
:
#333333
;
background
:
#f6f8fa
;
background
:
#f6f8fa
;
}
}
.channel
{
.channel
{
color
:
#333333
;
color
:
#333333
;
font-size
:
16px
;
font-size
:
16px
;
}
}
.info
{
.info
{
color
:
#666666
;
color
:
#666666
;
font-size
:
14px
;
font-size
:
14px
;
}
}
</
style
>
</
style
>
src/views/systemConfig/merchant/financialRules/index.vue
View file @
37d4a93
...
@@ -792,7 +792,6 @@ export default {
...
@@ -792,7 +792,6 @@ export default {
// console.log(result)
// console.log(result)
// 判空处理
// 判空处理
// result.goodsTypeGroupRules = [...result?.goodsTypeGroupRules, ...result?.goodsTypeGroupRules, ...result?.goodsTypeGroupRules]
// result.goodsTypeGroupRules = [...result?.goodsTypeGroupRules, ...result?.goodsTypeGroupRules, ...result?.goodsTypeGroupRules]
const
goodsTypeGroupRules
=
result
?.
goodsTypeGroupRules
result
=
result
||
this
.
financialObj
result
=
result
||
this
.
financialObj
// result.autoFlag = null
// result.autoFlag = null
// result.settleTimeType = null
// result.settleTimeType = null
...
@@ -834,14 +833,24 @@ export default {
...
@@ -834,14 +833,24 @@ export default {
// 如果有分账配置
// 如果有分账配置
result
&&
(
this
.
financialObj
=
result
)
result
&&
(
this
.
financialObj
=
result
)
// 详情未返回分账品类(null / 非数组 / 空数组)时:默认一条「全部品类」,首个 Tab 激活
let
goodsTypeGroupRules
=
this
.
financialObj
.
goodsTypeGroupRules
if
(
!
Array
.
isArray
(
goodsTypeGroupRules
))
{
goodsTypeGroupRules
=
[]
}
if
(
!
goodsTypeGroupRules
.
length
)
{
goodsTypeGroupRules
=
[{
groupType
:
1
}]
this
.
$set
(
this
.
financialObj
,
"goodsTypeGroupRules"
,
goodsTypeGroupRules
)
}
const
upgradeArr
=
[]
const
upgradeArr
=
[]
const
packageArr
=
[]
const
packageArr
=
[]
let
startNum
=
0
let
startNum
=
0
if
(
goodsTypeGroupRules
&&
goodsTypeGroupRules
[
0
].
groupType
==
2
)
{
this
.
editableTabs
=
[]
if
(
goodsTypeGroupRules
[
0
].
groupType
==
2
)
{
goodsTypeGroupRules
.
unshift
({
groupType
:
1
})
goodsTypeGroupRules
.
unshift
({
groupType
:
1
})
}
}
goodsTypeGroupRules
&&
goodsTypeGroupRules
.
forEach
((
item
,
index
)
=>
{
goodsTypeGroupRules
.
forEach
((
item
,
index
)
=>
{
if
(
index
==
0
&&
item
.
groupType
==
2
)
{
if
(
index
==
0
&&
item
.
groupType
==
2
)
{
startNum
=
1
startNum
=
1
}
}
...
...
src/views/systemConfig/merchant/merchantStep/components/ledgerAccount.vue
View file @
37d4a93
<!-- 分账 -->
<!-- 分账 -->
<
template
>
<
template
>
<div
v-if=
"items && items.goodsTypeGroupRules"
>
<div
v-if=
"items && items.goodsTypeGroupRules"
>
<div
class=
"type"
>
<el-tabs
:value=
"String(activeType)"
type=
"card"
class=
"ledger-goods-type-tabs"
@
tab-click=
"onGoodsTypeTabClick"
>
<template
v-for=
"(item, index) in items.goodsTypeGroupRules"
>
<template
v-for=
"(item, index) in items.goodsTypeGroupRules"
>
<div
class=
"btn"
:key=
"index + 'type'"
v-if=
"item.groupType == 1"
:class=
"
{ act: activeType == index }"
<el-tab-pane
@click="handleType(index)">全部分类
</div>
v-if=
"item.groupType == 1 || item.groupType == 2"
<div
class=
"btn"
:key=
"index + 'type'"
v-if=
"item.groupType == 2"
:class=
"
{ act: activeType == index }"
:key=
"index + '-goods-type-tab'"
@click="handleType(index)">特殊品类
{{
items
.
goodsTypeGroupRules
[
0
].
groupType
==
1
?
index
:
index
+
1
}}
</div>
:label=
"getGoodsGroupTabLabel(item, index)"
:name=
"String(index)"
/>
</
template
>
</
template
>
</
div
>
</
el-tabs
>
<div
class=
"content"
v-for=
"(item, index) in items.goodsTypeGroupRules.filter((v, i) => i == activeType)"
<div
class=
"content"
v-for=
"(item, index) in items.goodsTypeGroupRules.filter((v, i) => i == activeType)"
:key=
"index + 'ledger'"
>
:key=
"index + 'ledger'"
>
<div
class=
"part1"
>
<div
class=
"part1"
>
...
@@ -483,8 +490,14 @@ export default {
...
@@ -483,8 +490,14 @@ export default {
}
}
return
res
return
res
},
},
handleType
(
num
)
{
onGoodsTypeTabClick
(
tab
)
{
this
.
activeType
=
num
this
.
activeType
=
Number
(
tab
.
name
)
},
getGoodsGroupTabLabel
(
item
,
index
)
{
if
(
item
.
groupType
==
1
)
return
'全部分类'
const
first
=
this
.
items
.
goodsTypeGroupRules
[
0
]
const
num
=
first
&&
first
.
groupType
==
1
?
index
:
index
+
1
return
`特殊品类
${
num
}
`
},
},
chooseDate
()
{
chooseDate
()
{
this
.
$refs
.
datePicker
.
focus
()
this
.
$refs
.
datePicker
.
focus
()
...
@@ -685,6 +698,22 @@ export default {
...
@@ -685,6 +698,22 @@ export default {
}
}
}
}
.ledger-goods-type-tabs
{
margin-top
:
6px
;
::v-deep
.el-tabs__header
{
margin-bottom
:
0
;
}
::v-deep
.el-tabs__content
{
display
:
none
;
}
::v-deep
.el-tabs__nav-wrap.is-scrollable
{
padding
:
0
28px
;
}
}
.more
{
.more
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
...
...
src/views/systemConfig/merchant/merchantStep/components/reconciliation.vue
View file @
37d4a93
<!-- 对账 -->
<!-- 对账 -->
<
template
>
<
template
>
<div>
<div>
<!-- shopMerchantTotalFeeCalculateType,
<!-- shopMerchantTotalFeeCalculateType,
...
...
src/views/systemConfig/merchant/merchantStep/merchantCheckDetail.vue
View file @
37d4a93
...
@@ -8,10 +8,6 @@
...
@@ -8,10 +8,6 @@
<el-tab-pane
label=
"对账规则"
name=
"second"
></el-tab-pane>
<el-tab-pane
label=
"对账规则"
name=
"second"
></el-tab-pane>
</el-tabs>
</el-tabs>
</div>
</div>
<!--
<div
class=
"type"
>
<div
class=
"btn"
:class=
"
{act:activeType==1}" @click="handleType(1)">全部分类
</div>
<div
class=
"btn"
:class=
"
{act:activeType==2}" @click="handleType(2)">特殊品类
</div>
</div>
-->
<!-- 商户关系 -->
<!-- 商户关系 -->
<template
v-if=
"activeName == 'third'"
>
<template
v-if=
"activeName == 'third'"
>
...
...
src/views/systemConfig/ruleReview/components/ledgerAccount.vue
View file @
37d4a93
<!-- 分账 -->
<!-- 分账 -->
<
template
>
<
template
>
<div
v-if=
"detailInfo && detailInfo.goodsTypeGroupRules"
>
<div
v-if=
"detailInfo && detailInfo.goodsTypeGroupRules"
>
<div
class=
"type"
>
<el-tabs
:value=
"String(activeType)"
type=
"card"
class=
"ledger-goods-type-tabs"
@
tab-click=
"onGoodsTypeTabClick"
>
<template
v-for=
"(item, index) in detailInfo.goodsTypeGroupRules"
>
<template
v-for=
"(item, index) in detailInfo.goodsTypeGroupRules"
>
<div
class=
"btn"
:key=
"index + 'type'"
v-if=
"item.groupType == 1"
<el-tab-pane
:class=
"
{ act: activeType == index, isRed: (filterIsRed(item, 1) || filterIsRed(item)) }"
v-if=
"item.groupType == 1 || item.groupType == 2"
@click="handleType(index)">全部分类
</div>
:key=
"index + '-goods-type-tab'"
<div
class=
"btn"
:key=
"index + 'type'"
v-if=
"item.groupType == 2"
:name=
"String(index)"
:class=
"
{ act: activeType == index, isRed: (filterIsRed(item, 1) || filterIsRed(item)) }"
>
@click="handleType(index)">特殊品类
{{
detailInfo
.
goodsTypeGroupRules
[
0
].
groupType
==
1
?
index
:
index
+
1
}}
<span
slot=
"label"
:class=
"
{ isRed: filterIsRed(item, 1) || filterIsRed(item) }">
</div>
{{
getGoodsGroupTabLabel
(
item
,
index
)
}}
</span>
</el-tab-pane>
</
template
>
</
template
>
</
div
>
</
el-tabs
>
<div
class=
"content channelList"
<div
class=
"content channelList"
v-for=
"(item, index) in detailInfo.goodsTypeGroupRules.filter((v, i) => i == activeType)"
:key=
"index + 'ledger'"
>
v-for=
"(item, index) in detailInfo.goodsTypeGroupRules.filter((v, i) => i == activeType)"
:key=
"index + 'ledger'"
>
<!-- <template v-if="(activeType == index)"> -->
<!-- <template v-if="(activeType == index)"> -->
...
@@ -497,8 +504,14 @@ export default {
...
@@ -497,8 +504,14 @@ export default {
}
}
return
res
return
res
},
},
handleType
(
num
)
{
onGoodsTypeTabClick
(
tab
)
{
this
.
activeType
=
num
this
.
activeType
=
Number
(
tab
.
name
)
},
getGoodsGroupTabLabel
(
item
,
index
)
{
if
(
item
.
groupType
==
1
)
return
'全部分类'
const
first
=
this
.
detailInfo
.
goodsTypeGroupRules
[
0
]
const
num
=
first
&&
first
.
groupType
==
1
?
index
:
index
+
1
return
`特殊品类
${
num
}
`
},
},
getTypeText
(
type
,
arr
)
{
getTypeText
(
type
,
arr
)
{
let
res
=
''
let
res
=
''
...
@@ -620,6 +633,22 @@ export default {
...
@@ -620,6 +633,22 @@ export default {
<
style
lang=
'scss'
scoped
>
<
style
lang=
'scss'
scoped
>
$
color
:
#2a58ad
;
$
color
:
#2a58ad
;
.ledger-goods-type-tabs
{
margin-top
:
6px
;
::v-deep
.el-tabs__header
{
margin-bottom
:
0
;
}
::v-deep
.el-tabs__content
{
display
:
none
;
}
::v-deep
.el-tabs__nav-wrap.is-scrollable
{
padding
:
0
28px
;
}
}
.content
{
.content
{
padding-top
:
20px
;
padding-top
:
20px
;
}
}
...
...
src/views/systemConfig/ruleReview/components/reconciliation.vue
View file @
37d4a93
<!-- 对账 -->
<!-- 对账 -->
<
template
>
<
template
>
<div>
<div>
<div
class=
"type"
>
<el-tabs
:value=
"String(activeType)"
type=
"card"
class=
"ledger-goods-type-tabs"
@
tab-click=
"onGoodsTypeTabClick"
>
<template
v-for=
"(item, index) in items"
>
<template
v-for=
"(item, index) in items"
>
<div
<el-tab-pane
class=
"btn"
v-if=
"item.groupType == 1 || item.groupType == 2"
:key=
"index + 'type'"
:key=
"index + '-goods-type-tab'"
v-if=
"item.groupType == 1"
:name=
"String(index)"
:class=
"
{
act: activeType == index,
isRed: filterIsRed(item, 1) || filterIsRed(item)
}"
@click="handleType(index)"
>
全部分类
</div>
<div
class=
"btn"
:key=
"index + 'type'"
v-if=
"item.groupType == 2"
:class=
"
{
act: activeType == index,
isRed: filterIsRed(item, 1) || filterIsRed(item)
}"
@click="handleType(index)"
>
>
特殊品类
{{
items
[
0
].
groupType
==
1
?
index
:
index
+
1
}}
<span
slot=
"label"
:class=
"
{ isRed: filterIsRed(item, 1) || filterIsRed(item) }">
</div>
{{
getGoodsGroupTabLabel
(
item
,
index
)
}}
</span>
</el-tab-pane>
</
template
>
</
template
>
</
div
>
</
el-tabs
>
<div
class=
"content"
v-for=
"(item, index) in items"
:key=
"index + 'reconc'"
>
<div
class=
"content"
v-for=
"(item, index) in items"
:key=
"index + 'reconc'"
>
<
template
v-if=
"activeType == index"
>
<
template
v-if=
"activeType == index"
>
<div
class=
"part1"
>
<div
class=
"part1"
>
...
@@ -635,8 +625,14 @@ export default {
...
@@ -635,8 +625,14 @@ export default {
}
}
return
item
.
diffTypes
&&
item
.
diffTypes
.
some
((
v
)
=>
v
==
num
)
return
item
.
diffTypes
&&
item
.
diffTypes
.
some
((
v
)
=>
v
==
num
)
},
},
handleType
(
num
)
{
onGoodsTypeTabClick
(
tab
)
{
this
.
activeType
=
num
this
.
activeType
=
Number
(
tab
.
name
)
},
getGoodsGroupTabLabel
(
item
,
index
)
{
if
(
item
.
groupType
==
1
)
return
"全部分类"
const
first
=
this
.
items
[
0
]
const
num
=
first
&&
first
.
groupType
==
1
?
index
:
index
+
1
return
`特殊品类
${
num
}
`
},
},
formatGoodsTypeGroupRelations
(
type
,
arr
)
{
formatGoodsTypeGroupRelations
(
type
,
arr
)
{
let
res
=
""
let
res
=
""
...
@@ -735,6 +731,22 @@ export default {
...
@@ -735,6 +731,22 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.ledger-goods-type-tabs
{
margin-top
:
6px
;
::v-deep
.el-tabs__header
{
margin-bottom
:
0
;
}
::v-deep
.el-tabs__content
{
display
:
none
;
}
::v-deep
.el-tabs__nav-wrap.is-scrollable
{
padding
:
0
28px
;
}
}
.header
{
.header
{
height
:
72px
;
height
:
72px
;
background
:
#ffffff
;
background
:
#ffffff
;
...
...
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