Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bims
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙海亮
bims
Commits
0f607098
Commit
0f607098
authored
1 year ago
by
zhouliufang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
回款账单列表支持全选
parent
b54bd4fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
1 deletion
+40
-1
collectionDetail.vue
src/views/verification/collectionDetail.vue
+40
-1
No files found.
src/views/verification/collectionDetail.vue
View file @
0f607098
...
...
@@ -145,7 +145,11 @@
</a-form-model>
<
template
v-if=
"activeKey === '1'"
>
<div
class=
"bill-content"
>
<div
class=
"checked-count"
>
已勾选账单:
<span
class=
"blue-text"
>
{{
selectedRowKeys
.
length
||
0
}}
</span>
条
<span
v-if=
"selectedRows.filter(v=> v.status == 2).length != 0"
>
,其中:无效
<span
style=
"color: red;"
>
{{
selectedRows
.
filter
(
v
=>
v
.
status
==
2
).
length
||
0
}}
</span>
条
</span></div>
<div
class=
"checked-count"
>
<a-button
type=
"primary"
size=
"small"
@
click=
"selectAllList"
>
全选
</a-button>
已勾选账单:
<span
class=
"blue-text"
>
{{
selectedRowKeys
.
length
||
0
}}
</span>
条
<span
v-if=
"selectedRows.filter(v=> v.status == 2).length != 0"
>
,其中:无效
<span
style=
"color: red;"
>
{{
selectedRows
.
filter
(
v
=>
v
.
status
==
2
).
length
||
0
}}
</span>
条
</span>
</div>
<a-tabs
type=
"card"
v-model=
"activeKey1"
>
<a-tab-pane
v-for=
"pane in panes1"
:key=
"pane.key"
:tab=
"pane.title"
>
<div>
...
...
@@ -725,6 +729,37 @@ export default {
}
this
.
addNewEvt
(
0
);
},
// 全选
selectAllList
()
{
let
billDate
=
this
.
searchForm
.
billDate
||
[];
this
.
$apis
.
QUERYBACKRECEIPTINFOLIST
({
pageNum
:
1
,
pageSize
:
this
.
pagination
.
total
,
backMoneyNo
:
this
.
backMoneyNo
,
payorCode
:
this
.
form
.
payorCode
,
...
this
.
searchForm
,
receiptEndDate
:
billDate
[
1
]
?
billDate
[
1
]
+
'
23:59:59
'
:
undefined
,
receiptStartDate
:
billDate
[
0
]
?
billDate
[
0
]
+
'
00:00:00
'
:
undefined
})
.
then
((
res
)
=>
{
if
(
res
.
returnCode
==
'
0000
'
)
{
let
content
=
res
.
content
||
{};
const
dataList
=
content
.
list
.
map
((
item
)
=>
{
item
.
arrearsAmountShow
=
item
.
arrearsAmount
;
item
.
arrearsAmount
=
''
;
return
item
;
})
||
[];
//
this
.
selectedRowKeys
=
dataList
.
map
(
item
=>
item
.
id
)
this
.
selectedRows
=
dataList
this
.
addNewEvt
(
0
);
}
else
{
this
.
$message
.
error
(
res
.
returnMsg
);
}
});
},
delRecord
(
record
,
index
)
{
this
.
selectedRowKeys
.
splice
(
index
,
1
);
this
.
selectedRows
.
splice
(
index
,
1
);
...
...
@@ -1110,5 +1145,9 @@ export default {
position: absolute;
top: 14px;
left: 210px;
z-index: 10;
button {
margin-right: 6px;
}
}
</
style
>
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment