Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-points
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 8b4df4e0
authored
Oct 22, 2025
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复层级选择期二次切换数据bug
1 parent
c882a894
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
src/views/withdraw/approve.vue
src/views/withdraw/payApproval.vue
src/views/withdraw/approve.vue
View file @
8b4df4e
...
@@ -299,22 +299,22 @@ export default {
...
@@ -299,22 +299,22 @@ export default {
props
:
{
props
:
{
lazy
:
true
,
lazy
:
true
,
lazyLoad
:
(
node
,
resolve
)
=>
{
lazyLoad
:
(
node
,
resolve
)
=>
{
console
.
log
(
node
,
'node'
)
const
{
level
,
value
}
=
node
const
{
level
,
value
}
=
node
let
res
let
res
let
obj
=
{
let
obj
=
{
0
:
async
()
=>
{
0
:
async
()
=>
{
console
.
log
(
await
this
.
getlistChannel
(),
'await this.getlistChannel()'
)
res
=
await
this
.
getlistChannel
()
res
=
await
this
.
getlistChannel
()
resolve
(
res
)
resolve
(
res
)
},
},
1
:
async
()
=>
{
1
:
async
()
=>
{
this
.
searchForm
.
channel
=
value
res
=
await
this
.
getListPaymentEntity
(
value
)
res
=
await
this
.
getListPaymentEntity
(
value
)
resolve
(
res
)
resolve
(
res
)
},
},
2
:
async
()
=>
{
2
:
async
()
=>
{
this
.
searchForm
.
paymentSubjectId
=
value
this
.
searchForm
.
paymentSubjectId
=
value
res
=
await
this
.
getListPayLevy
(
value
)
let
channel
=
node
.
parent
?
node
.
parent
.
value
:
''
res
=
await
this
.
getListPayLevy
(
value
,
channel
)
resolve
(
res
)
resolve
(
res
)
},
},
3
:
async
()
=>
{
3
:
async
()
=>
{
...
@@ -356,10 +356,10 @@ export default {
...
@@ -356,10 +356,10 @@ export default {
})
})
return
list
return
list
},
},
async
getListPayLevy
(
value
)
{
async
getListPayLevy
(
paymentEntityId
,
channel
)
{
let
arr
=
await
this
.
$apis
.
withdraw
.
getListPayLevy
({
let
arr
=
await
this
.
$apis
.
withdraw
.
getListPayLevy
({
paymentEntityId
:
value
,
paymentEntityId
,
channel
:
this
.
searchForm
.
channel
channel
})
})
let
list
=
arr
.
map
(
item
=>
{
let
list
=
arr
.
map
(
item
=>
{
return
{
return
{
...
...
src/views/withdraw/payApproval.vue
View file @
8b4df4e
...
@@ -142,6 +142,7 @@ export default {
...
@@ -142,6 +142,7 @@ export default {
props
:
{
props
:
{
lazy
:
true
,
lazy
:
true
,
lazyLoad
:
(
node
,
resolve
)
=>
{
lazyLoad
:
(
node
,
resolve
)
=>
{
console
.
log
(
node
,
node
.
value
)
const
{
level
,
value
}
=
node
const
{
level
,
value
}
=
node
let
res
let
res
let
obj
=
{
let
obj
=
{
...
@@ -150,13 +151,13 @@ export default {
...
@@ -150,13 +151,13 @@ export default {
resolve
(
res
)
resolve
(
res
)
},
},
1
:
async
()
=>
{
1
:
async
()
=>
{
this
.
payForm
.
channel
=
value
res
=
await
this
.
getListPaymentEntity
(
value
)
res
=
await
this
.
getListPaymentEntity
(
value
)
resolve
(
res
)
resolve
(
res
)
},
},
2
:
async
()
=>
{
2
:
async
()
=>
{
this
.
payForm
.
paymentSubjectId
=
value
this
.
payForm
.
paymentSubjectId
=
value
res
=
await
this
.
getListPayLevy
(
value
)
let
channel
=
node
.
parent
?
node
.
parent
.
value
:
''
res
=
await
this
.
getListPayLevy
(
value
,
channel
)
resolve
(
res
)
resolve
(
res
)
},
},
3
:
async
()
=>
{
3
:
async
()
=>
{
...
@@ -206,10 +207,10 @@ export default {
...
@@ -206,10 +207,10 @@ export default {
})
})
return
list
return
list
},
},
async
getListPayLevy
(
value
)
{
async
getListPayLevy
(
paymentEntityId
,
channel
)
{
this
.
baseData
.
paymentEntityList
=
await
this
.
$apis
.
withdraw
.
getListPayLevy
({
this
.
baseData
.
paymentEntityList
=
await
this
.
$apis
.
withdraw
.
getListPayLevy
({
paymentEntityId
:
value
,
paymentEntityId
,
channel
:
this
.
payForm
.
channel
channel
})
})
let
list
=
this
.
baseData
.
paymentEntityList
.
map
(
item
=>
{
let
list
=
this
.
baseData
.
paymentEntityList
.
map
(
item
=>
{
return
{
return
{
...
@@ -220,13 +221,14 @@ export default {
...
@@ -220,13 +221,14 @@ export default {
})
})
return
list
return
list
},
},
selectAddAttr
(
e
,
formName
)
{
async
selectAddAttr
(
e
,
formName
)
{
console
.
log
(
e
)
console
.
log
(
e
)
this
.
payForm
.
paymentSubjectId
=
''
this
.
payForm
.
paymentSubjectId
=
''
let
[
value1
,
value2
,
value3
]
=
e
let
[
value1
,
value2
,
value3
]
=
e
if
(
value1
)
this
[
formName
].
channel
=
value1
if
(
value1
)
this
[
formName
].
channel
=
value1
if
(
value2
)
this
[
formName
].
paymentSubjectId
=
value2
if
(
value2
)
this
[
formName
].
paymentSubjectId
=
value2
if
(
value3
)
this
[
formName
].
paymentChannelId
=
value3
//代征主体
if
(
value3
)
this
[
formName
].
paymentChannelId
=
value3
//代征主体
await
this
.
getListPayLevy
(
value2
,
value1
)
//重新获取代征主体获取最新的税率
this
.
recordInfo
.
taxRate
=
this
.
baseData
.
paymentEntityList
.
find
(
item
=>
item
.
id
===
value3
).
tax
+
'%'
this
.
recordInfo
.
taxRate
=
this
.
baseData
.
paymentEntityList
.
find
(
item
=>
item
.
id
===
value3
).
tax
+
'%'
this
.
getAdmin
()
this
.
getAdmin
()
this
.
calculateAmount
()
this
.
calculateAmount
()
...
...
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