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/consumablesLogistics/receiptManagement/Record.vue | 32 +++++++++++++++++++++++++-------
1 files changed, 25 insertions(+), 7 deletions(-)
diff --git a/src/views/consumablesLogistics/receiptManagement/Record.vue b/src/views/consumablesLogistics/receiptManagement/Record.vue
index 30d52b6..6108498 100644
--- a/src/views/consumablesLogistics/receiptManagement/Record.vue
+++ b/src/views/consumablesLogistics/receiptManagement/Record.vue
@@ -107,13 +107,24 @@
prop="weighingOperator"
v-if="type === '0'"
show-overflow-tooltip/>
+ <el-table-column label="鎿嶄綔"
+ width="120"
+ align="center">
+ <template #default="scope">
+ <el-button 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>
@@ -152,7 +163,7 @@
const stockRecordTypeOptions = ref([]);
const page = reactive({
current: 1,
- size: 100,
+ size: 10,
});
const total = ref(0);
@@ -174,6 +185,13 @@
return stockRecordTypeOptions.value.find(item => item.value === recordType)?.label || ''
}
+// 瀵煎嚭杩囩鍗�
+const handlePreview = (row) => {
+ console.log(row);
+ console.log(row.weighbridgeDocPath);
+ proxy.$download.name(row.weighbridgeDocPath);
+}
+
const pageProductChange = obj => {
page.current = obj.page;
page.size = obj.limit;
--
Gitblit v1.9.3