|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<el-card v-loading="loading">
|
|
<el-card v-loading="loading">
|
|
- <div style="height: calc(100vh - 264px); overflow-y: auto; overflow-x: hidden">
|
|
+ <div style="height: calc(100vh - 235px); overflow-y: auto; overflow-x: hidden">
|
|
<el-table :data="tableData" border :row-style="{ height: '35px' }" header-row-class-name="tableHeader" show-summary :summary-method="getSummaries">
|
|
<el-table :data="tableData" border :row-style="{ height: '35px' }" header-row-class-name="tableHeader" show-summary :summary-method="getSummaries">
|
|
<el-table-column align="center">
|
|
<el-table-column align="center">
|
|
<template #header>
|
|
<template #header>
|
|
@@ -24,9 +24,9 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
- <div style="padding: 8px; text-align: center">
|
|
+ <div style="padding: 4px; text-align: center">
|
|
- <el-button @click="clickCancel" size="large">关 闭</el-button>
|
|
+ <el-button @click="clickCancel">关 闭</el-button>
|
|
- <el-button type="primary" @click="deriveExcel()" size="large" v-preReClick>导 出</el-button>
|
|
+ <el-button type="primary" @click="deriveExcel()" v-preReClick>导 出</el-button>
|
|
</div>
|
|
</div>
|
|
</el-card>
|
|
</el-card>
|
|
</template>
|
|
</template>
|
|
@@ -37,17 +37,19 @@ import { ElMessage } from "element-plus";
|
|
const { proxy } = getCurrentInstance();
|
|
const { proxy } = getCurrentInstance();
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
rowData: Object,
|
|
rowData: Object,
|
|
- activeName: String,
|
|
+ tabValues: Object,
|
|
});
|
|
});
|
|
const loading = ref(false);
|
|
const loading = ref(false);
|
|
const tableData = ref([]);
|
|
const tableData = ref([]);
|
|
|
|
+const tabsCard = ref();
|
|
watch(
|
|
watch(
|
|
- () => props.activeName,
|
|
+ () => props.tabValues,
|
|
(val) => {
|
|
(val) => {
|
|
- if (val === "sku" && !(tableData.value && tableData.value.length > 0)) {
|
|
+ if (val.activeName === "sku" && val.tabsCard != tabsCard.value) {
|
|
|
|
+ tabsCard.value = val.tabsCard;
|
|
if (props.rowData && props.rowData.id) {
|
|
if (props.rowData && props.rowData.id) {
|
|
loading.value = true;
|
|
loading.value = true;
|
|
- proxy.post("/statementOfAccount/getDocumentBySku", { id: props.rowData.id }).then(
|
|
+ proxy.post("/statementOfAccount/getDocumentBySku", { id: props.rowData.id, orderClassify: props.tabValues.tabsCard }).then(
|
|
(res) => {
|
|
(res) => {
|
|
tableData.value = Object.freeze(res);
|
|
tableData.value = Object.freeze(res);
|
|
loading.value = false;
|
|
loading.value = false;
|
|
@@ -203,4 +205,7 @@ const deriveExcel = () => {
|
|
::v-deep(.el-table__footer .el-table__cell) {
|
|
::v-deep(.el-table__footer .el-table__cell) {
|
|
border-right: 0px;
|
|
border-right: 0px;
|
|
}
|
|
}
|
|
|
|
+::v-deep(.el-card__body) {
|
|
|
|
+ padding: 10px !important;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|