|
@@ -2,7 +2,7 @@
|
|
|
<el-card v-loading="loading">
|
|
|
<div style="text-align: center; font-size: 30px; padding: 8px; font-weight: 700">{{ props.rowData.departmentName }}-胜德体育对账单</div>
|
|
|
<div style="text-align: center; font-size: 18px; padding-bottom: 8px; font-weight: 700">( 对账时间: {{ rowData.timePeriod }} )</div>
|
|
|
- <div style="height: calc(100vh - 264px - 88px); overflow-y: auto; overflow-x: hidden">
|
|
|
+ <div style="height: calc(100vh - 235px - 88px); overflow-y: auto; overflow-x: hidden">
|
|
|
<el-auto-resizer>
|
|
|
<template #default="{ height, width }">
|
|
|
<el-table-v2 :columns="columns" :data="tableData" :width="width" :height="height" fixed :cache="20" :header-height="35" :row-height="35">
|
|
@@ -13,9 +13,9 @@
|
|
|
</template>
|
|
|
</el-auto-resizer>
|
|
|
</div>
|
|
|
- <div style="padding: 8px; text-align: center">
|
|
|
- <el-button @click="clickCancel" size="large">关 闭</el-button>
|
|
|
- <el-button type="primary" @click="deriveExcel()" size="large" v-preReClick>导 出</el-button>
|
|
|
+ <div style="padding: 4px; text-align: center">
|
|
|
+ <el-button @click="clickCancel">关 闭</el-button>
|
|
|
+ <el-button type="primary" @click="deriveExcel()" v-preReClick>导 出</el-button>
|
|
|
</div>
|
|
|
</el-card>
|
|
|
</template>
|
|
@@ -26,7 +26,7 @@ import { cloneVNode } from "vue";
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
const props = defineProps({
|
|
|
rowData: Object,
|
|
|
- activeName: String,
|
|
|
+ tabValues: Object,
|
|
|
});
|
|
|
const loading = ref(false);
|
|
|
const tableData = ref([]);
|
|
@@ -41,13 +41,15 @@ const getAggregate = (data) => {
|
|
|
}
|
|
|
return total;
|
|
|
};
|
|
|
+const tabsCard = ref();
|
|
|
watch(
|
|
|
- () => props.activeName,
|
|
|
+ () => props.tabValues,
|
|
|
(val) => {
|
|
|
- if (val === "order" && !(tableData.value && tableData.value.length > 0)) {
|
|
|
+ if (val.activeName === "order" && val.tabsCard != tabsCard.value) {
|
|
|
+ tabsCard.value = val.tabsCard;
|
|
|
if (props.rowData && props.rowData.id) {
|
|
|
loading.value = true;
|
|
|
- proxy.post("/statementOfAccount/getDocumentByOrder", { id: props.rowData.id }).then(
|
|
|
+ proxy.post("/statementOfAccount/getDocumentByOrder", { id: props.rowData.id, orderClassify: props.tabValues.tabsCard }).then(
|
|
|
(res) => {
|
|
|
let total = getAggregate(proxy.deepClone(res));
|
|
|
let list = [];
|
|
@@ -127,7 +129,7 @@ const clickCancel = () => {
|
|
|
};
|
|
|
const deriveExcel = () => {
|
|
|
loading.value = true;
|
|
|
- proxy.getFile("/statementOfAccount/exportDocumentByOrder", { id: props.rowData.id }).then(
|
|
|
+ proxy.getFile("/statementOfAccount/exportDocumentByOrder", { id: props.rowData.id, orderClassify: props.tabValues.tabsCard }).then(
|
|
|
() => {
|
|
|
emit("clickCancel", true);
|
|
|
// proxy.downloadFile(res, "订单对账单.xlsx");
|
|
@@ -301,4 +303,7 @@ const Row = ({ rowData, cells }) => {
|
|
|
::v-deep(.el-table-v2__header-cell) {
|
|
|
background-color: #eeeeee !important;
|
|
|
}
|
|
|
+::v-deep(.el-card__body) {
|
|
|
+ padding: 10px !important;
|
|
|
+}
|
|
|
</style>
|