Commit 26f2c014 authored by 王安伟's avatar 王安伟

【商保系统】-回款管理-账单列表和已关联账单分tab展示支持搜索;回款单关联账单以及账单报表,增加备注列

parent d3c07fd9
<template> <template>
<div ref="burt" class="white_bg burt-container"> <div ref="burt" class="white_bg burt-container">
<Goback title="回款详情" /> <Goback ref="goback" title="回款详情" />
<a-tabs v-model="activeKey" @change="paneChange"> <a-tabs v-model="activeKey" @change="paneChange">
<a-tab-pane v-for="pane in panes" :key="pane.key" :tab="pane.title"> <a-tab-pane v-for="pane in panes" :key="pane.key" :tab="pane.title">
<a-form-model ref="form" :model="form"> <a-form-model ref="form" :model="form">
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
</a-form-model> </a-form-model>
<template v-if="activeKey === '1'"> <template v-if="activeKey === '1'">
<div class="bill-content"> <div class="bill-content">
<a-tabs type="card" v-model="activeKey1" @change="paneChange"> <a-tabs type="card" v-model="activeKey1">
<a-tab-pane v-for="pane in panes1" :key="pane.key" :tab="pane.title"> <a-tab-pane v-for="pane in panes1" :key="pane.key" :tab="pane.title">
<div> <div>
<a-row class="search-form"> <a-row class="search-form">
...@@ -204,7 +204,7 @@ ...@@ -204,7 +204,7 @@
<!-- table --> <!-- table -->
<template v-if="isEdit"> <template v-if="isEdit">
<a-table <a-table
class="table-content" class="table-content all-list"
:columns="columns" :columns="columns"
:data-source="dataList" :data-source="dataList"
:scroll="{ x: '100%', y: tableHeight }" :scroll="{ x: '100%', y: tableHeight }"
...@@ -507,10 +507,10 @@ export default { ...@@ -507,10 +507,10 @@ export default {
} }
this.getData(); this.getData();
} }
this._getNewEOBList();
}, },
mounted() { mounted() {
this.calcTableHeight(); this.calcTableHeight();
this._getNewEOBList();
}, },
methods: { methods: {
moment, moment,
...@@ -518,11 +518,16 @@ export default { ...@@ -518,11 +518,16 @@ export default {
calcTableHeight() { calcTableHeight() {
const dom = this.$refs.burt; const dom = this.$refs.burt;
const containterH = dom.clientHeight; const containterH = dom.clientHeight;
const gobackH = document.querySelector('.back-container').clientHeight;
console.log(gobackH);
const style = window.getComputedStyle(dom, null); const style = window.getComputedStyle(dom, null);
const paddingT = parseFloat(style.getPropertyValue('padding-top')); const paddingT = parseFloat(style.getPropertyValue('padding-top'));
const paddingB = parseFloat(style.getPropertyValue('padding-bottom')); const paddingB = parseFloat(style.getPropertyValue('padding-bottom'));
const paddingSum = paddingT + paddingB; const paddingSum = paddingT + paddingB;
this.tableHeight = containterH - 400 - paddingSum; this.tableHeight = containterH - 350 - gobackH - paddingSum;
// 设置每页展示条数
const pageSize = Math.floor((this.tableHeight - 10) / 32);
this.$set(this.pagination, 'pageSize', pageSize);
}, },
// 已关联账单表格行类名 // 已关联账单表格行类名
rowClassName(record) { rowClassName(record) {
...@@ -769,24 +774,23 @@ export default { ...@@ -769,24 +774,23 @@ export default {
}; };
return file; return file;
}); });
console.log(formData);
// this.$apis.SAVEBACKMONEY(formData).then((res) => { this.$apis.SAVEBACKMONEY(formData).then((res) => {
// if (res.returnCode == '0000') { if (res.returnCode == '0000') {
// this.backMoneyNo = res.content; this.backMoneyNo = res.content;
// this.savedStatus = true; this.savedStatus = true;
// this.$message.success('成功'); this.$message.success('成功');
// this.selectedRowKeys = []; this.selectedRowKeys = [];
// this.getData(); this.getData();
// this._getNewEOBList(); this._getNewEOBList();
// // this.$router.go(-1); // this.$router.go(-1);
// resolve(); resolve();
// } else { } else {
// this.$message.error(res.returnMsg); this.$message.error(res.returnMsg);
// reject(); reject();
// } }
// }); });
}); });
}, },
...@@ -903,6 +907,9 @@ export default { ...@@ -903,6 +907,9 @@ export default {
padding-right: 12px; padding-right: 12px;
.pagination { .pagination {
margin-top: 10px; margin-top: 10px;
::v-deep .jump-page {
height: 30px;
}
} }
} }
::v-deep .bill-form { ::v-deep .bill-form {
......
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