Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-task
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 cd24825f
authored
Dec 05, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
a11b6389
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
src/views/profitManagement/profitList/index.vue
src/views/profitManagement/profitList/index.vue
View file @
cd24825
...
@@ -85,6 +85,7 @@ export default {
...
@@ -85,6 +85,7 @@ export default {
dialogVisible
:
false
,
dialogVisible
:
false
,
totalScore
:
''
,
totalScore
:
''
,
choiceData
:
[],
choiceData
:
[],
choiceDataBack
:[],
pageConf
:
{
pageConf
:
{
pageSize
:
'pageSize'
,
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
pageNum
:
'pageNum'
,
...
@@ -166,12 +167,11 @@ export default {
...
@@ -166,12 +167,11 @@ export default {
})
})
return
return
}
}
this
.
choiceData
.
forEach
(
item
=>
{
this
.
verificationWriteOff
=
this
.
choiceData
.
every
(
item
=>
{
if
(
item
.
isWithdrawal
==
'1'
||
item
.
exchangeStatus
==
'1'
)
{
if
(
!
item
.
isWithdrawal
||
item
.
isWithdrawal
==
'1'
||
item
.
exchangeStatus
==
'1'
)
{
console
.
log
(
item
)
return
false
this
.
verificationWriteOff
=
false
}
else
{
}
else
{
this
.
verificationWriteOff
=
true
return
true
}
}
})
})
if
(
!
this
.
verificationWriteOff
)
{
if
(
!
this
.
verificationWriteOff
)
{
...
@@ -187,6 +187,7 @@ export default {
...
@@ -187,6 +187,7 @@ export default {
let
obj
=
{}
let
obj
=
{}
let
numberOfStoresArr
=
[]
let
numberOfStoresArr
=
[]
let
totalPoints
=
0
let
totalPoints
=
0
this
.
choiceDataBack
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
choiceData
))
this
.
processArray
=
this
.
choiceData
.
reduce
((
curr
,
next
)
=>
{
this
.
processArray
=
this
.
choiceData
.
reduce
((
curr
,
next
)
=>
{
obj
[
next
.
staffPhone
]
?
''
:
obj
[
next
.
staffPhone
]
=
curr
.
push
(
next
)
obj
[
next
.
staffPhone
]
?
''
:
obj
[
next
.
staffPhone
]
=
curr
.
push
(
next
)
numberOfStoresArr
.
includes
(
next
.
merchantName
)
?
''
:
numberOfStoresArr
.
push
((
next
.
merchantName
))
numberOfStoresArr
.
includes
(
next
.
merchantName
)
?
''
:
numberOfStoresArr
.
push
((
next
.
merchantName
))
...
@@ -207,7 +208,7 @@ export default {
...
@@ -207,7 +208,7 @@ export default {
},
},
async
comfirmDialog
()
{
async
comfirmDialog
()
{
let
arr
=
[]
let
arr
=
[]
this
.
processArray
&&
this
.
processArray
.
forEach
(
item
=>
arr
.
push
(
item
.
id
))
this
.
choiceDataBack
&&
this
.
choiceDataBack
.
forEach
(
item
=>
arr
.
push
(
item
.
id
))
const
params
=
{
idList
:
arr
}
const
params
=
{
idList
:
arr
}
await
profitApi
.
verificationPoints
({
...
params
}).
then
(
res
=>
{
await
profitApi
.
verificationPoints
({
...
params
}).
then
(
res
=>
{
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
...
...
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