Commit cc505399 authored by zhouliufang's avatar zhouliufang

寄送账单列表支持全选

parent 0f607098
......@@ -119,6 +119,7 @@
<span class="blue-text">{{ totalAmount }}</span>
<span :style="{color: 'red'}" v-if="invalidActualAmount > 0">(无效{{ invalidActualAmount }}元)</span>
</div>
<a-button v-if="isEditNewBill" size="small" type="primary" @click="checkAll">全选</a-button>
</div>
<a-form-model-item label="button">
<a-button type="primary" @click="handlerSearch">
......@@ -335,6 +336,28 @@ export default {
}
this.selectedRowKeys = arr;
},
// 全选
checkAll() {
this.$apis.QUERYNOSENDRECEIPLIST({
pageNum: 1,
pageSize: this.pagination.total,
payorCode: this.form.payorCode,
...this.searchData
})
.then((res) => {
if (res.returnCode == "0000") {
const dataList = res.content.list || [];
const selectedRowKeys = dataList.map((item, index) => index);
this.onSelectChange(selectedRowKeys)
const index = Math.ceil(dataList.length / this.pagination.pageSize)
for(let i = 1; i < index + 1 ; i++) {
this.cacheDataList[i] = dataList.slice((i-1)*this.pagination.pageSize, i*this.pagination.pageSize)
}
} else {
this.$message.error(res.returnMsg);
}
});
},
// 分页回调
getPageData(pager) {
if(pager){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment