From 9dc4e69ef4065f724fbfd2ea69c79e21b7450f09 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期三, 18 三月 2026 14:12:40 +0800
Subject: [PATCH] 1.报表管理(报表管理:原材料、半成品、成品的数据统计,做成入厂检、车间检、出厂检的数据统计)
---
src/views/inventoryManagement/receiptManagement/Record.vue | 24 ++++++++++++++++--------
1 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/src/views/inventoryManagement/receiptManagement/Record.vue b/src/views/inventoryManagement/receiptManagement/Record.vue
index 9ba8c41..9de4963 100644
--- a/src/views/inventoryManagement/receiptManagement/Record.vue
+++ b/src/views/inventoryManagement/receiptManagement/Record.vue
@@ -54,6 +54,10 @@
label="搴忓彿"
type="index"
width="60"/>
+ <el-table-column label="浜у搧绫诲瀷"
+ prop="productType"
+ width="100"
+ show-overflow-tooltip/>
<el-table-column label="鍏ュ簱鎵规"
prop="inboundBatches"
width="280"
@@ -111,18 +115,21 @@
width="120"
align="center">
<template #default="scope">
- <el-button type="primary"
+ <el-button v-if="scope.row.recordType === '0'"
+ type="primary"
size="mini"
@click="handlePreview(scope.row)">瀵煎嚭杩囩鍗�</el-button>
</template>
</el-table-column>
</el-table>
- <pagination v-show="total > 0"
- :total="total"
- layout="total, sizes, prev, pager, next, jumper"
- :page="page.current"
- :limit="page.size"
- @pagination="pageProductChange"/>
+ <div style="margin-top: 12px; display: flex; justify-content: flex-end;">
+ <pagination v-show="total > 0"
+ :total="total"
+ layout="total, sizes, prev, pager, next, jumper"
+ :page="page.current"
+ :limit="page.size"
+ @pagination="pageProductChange"/>
+ </div>
</div>
</div>
</template>
@@ -162,7 +169,7 @@
const stockRecordTypeOptions = ref([]);
const page = reactive({
current: 1,
- size: 100,
+ size: 10,
});
const total = ref(0);
@@ -200,6 +207,7 @@
getStockInRecordListPage(params)
.then(res => {
tableData.value = res.data.records;
+ total.value = res.data.total ?? 0;
}).finally(() => {
tableLoading.value = false;
})
--
Gitblit v1.9.3