|
|
@@ -91,7 +91,7 @@
|
|
|
|
|
|
<div class="list-body list-wrap">
|
|
|
<div ref="pendingPaymentTableWrapRef" class="table-scroll bx-list-table-wrap">
|
|
|
- <ListTable table-key="bx-payment"
|
|
|
+ <ListTable ref="pendingPaymentTableRef" :height="pendingPaymentTableHeight" table-key="bx-payment"
|
|
|
class="list-table"
|
|
|
:data="rows"
|
|
|
v-loading="loading"
|
|
|
@@ -182,6 +182,8 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</ListTable>
|
|
|
+ </div>
|
|
|
+ <div ref="pendingPaymentBelowRef">
|
|
|
<ListColumnStatsRow
|
|
|
ref="pendingPaymentStatsRowRef"
|
|
|
storage-key="bx-payment-pending-column-stats"
|
|
|
@@ -190,9 +192,8 @@
|
|
|
:table-wrap-el="pendingPaymentTableWrapRef"
|
|
|
:get-cell-value="getPaymentStatCellValue"
|
|
|
/>
|
|
|
- </div>
|
|
|
|
|
|
- <div class="pagination list-pager-bar">
|
|
|
+ <div class="pagination list-pager-bar">
|
|
|
<div class="list-pager-selected">
|
|
|
已选 <span class="sel-num">{{ selectedRows.length }}</span> 项
|
|
|
</div>
|
|
|
@@ -207,6 +208,7 @@
|
|
|
@size-change="onSizeChange"
|
|
|
/>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
|
|
|
@@ -296,7 +298,7 @@
|
|
|
|
|
|
<div class="list-body list-wrap">
|
|
|
<div ref="processedPaymentTableWrapRef" class="table-scroll bx-list-table-wrap">
|
|
|
- <ListTable table-key="bx-payment-2"
|
|
|
+ <ListTable ref="processedPaymentTableRef" :height="processedPaymentTableHeight" table-key="bx-payment-2"
|
|
|
class="list-table"
|
|
|
:data="processedRows"
|
|
|
v-loading="processedLoading"
|
|
|
@@ -410,6 +412,8 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</ListTable>
|
|
|
+ </div>
|
|
|
+ <div ref="processedPaymentBelowRef">
|
|
|
<ListColumnStatsRow
|
|
|
ref="processedPaymentStatsRowRef"
|
|
|
storage-key="bx-payment-processed-column-stats"
|
|
|
@@ -418,9 +422,8 @@
|
|
|
:table-wrap-el="processedPaymentTableWrapRef"
|
|
|
:get-cell-value="getPaymentStatCellValue"
|
|
|
/>
|
|
|
- </div>
|
|
|
|
|
|
- <div class="pagination list-pager-bar">
|
|
|
+ <div class="pagination list-pager-bar">
|
|
|
<span class="list-range">{{ processedRangeText }}</span>
|
|
|
<el-pagination
|
|
|
v-model:current-page="processedCurrentPage"
|
|
|
@@ -431,6 +434,7 @@
|
|
|
@size-change="processedOnSizeChange"
|
|
|
/>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
@@ -714,7 +718,8 @@ import ListColumnStatsRow from '@/components/business/list-column-stats-row/inde
|
|
|
import { useDbInstantSearch } from '@/composables/useDbInstantSearch'
|
|
|
import { usePersistedListColumns } from '@/composables/usePersistedListColumns'
|
|
|
import ListQuickSearchInput from '@/components/business/list-quick-search-input/index.vue'
|
|
|
-import { reactive, ref, computed, onMounted } from 'vue'
|
|
|
+import { reactive, ref, computed, onMounted, nextTick} from 'vue'
|
|
|
+import { useListTableViewportHeight } from '@/composables/useListTableViewportHeight'
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
import {
|
|
|
View,
|
|
|
@@ -764,8 +769,27 @@ const {
|
|
|
|
|
|
const PAYMENT_MONEY_PROPS = new Set(['amount', 'offsetAmount', 'payAmount'])
|
|
|
|
|
|
+const activeTab = ref('pending')
|
|
|
const pendingPaymentTableWrapRef = ref<HTMLElement | null>(null)
|
|
|
+const pendingPaymentBelowRef = ref<HTMLElement | null>(null)
|
|
|
+const pendingPaymentTableRef = ref<any>(null)
|
|
|
+const { tableHeight: pendingPaymentTableHeight, recalc: recalcPendingPaymentHeight } = useListTableViewportHeight({
|
|
|
+ tableEl: pendingPaymentTableWrapRef,
|
|
|
+ pagerEl: pendingPaymentBelowRef,
|
|
|
+ tableRef: pendingPaymentTableRef,
|
|
|
+ enabled: computed(() => activeTab.value === 'pending')
|
|
|
+})
|
|
|
+
|
|
|
const processedPaymentTableWrapRef = ref<HTMLElement | null>(null)
|
|
|
+const processedPaymentBelowRef = ref<HTMLElement | null>(null)
|
|
|
+const processedPaymentTableRef = ref<any>(null)
|
|
|
+const { tableHeight: processedPaymentTableHeight, recalc: recalcProcessedPaymentHeight } = useListTableViewportHeight({
|
|
|
+ tableEl: processedPaymentTableWrapRef,
|
|
|
+ pagerEl: processedPaymentBelowRef,
|
|
|
+ tableRef: processedPaymentTableRef,
|
|
|
+ enabled: computed(() => activeTab.value === 'processed')
|
|
|
+})
|
|
|
+
|
|
|
const pendingPaymentStatsRowRef = ref<{ resync?: () => void } | null>(null)
|
|
|
const processedPaymentStatsRowRef = ref<{ resync?: () => void } | null>(null)
|
|
|
|
|
|
@@ -925,7 +949,6 @@ const paymentExportColumns = computed(() => {
|
|
|
return cols
|
|
|
})
|
|
|
|
|
|
-const activeTab = ref('pending')
|
|
|
const tabLoaded = reactive({ pending: true, processed: false })
|
|
|
|
|
|
const processedFilterForm = reactive({
|