From 6d97adcf82344dcbb084354a7a93240ba52f4f4c Mon Sep 17 00:00:00 2001
From: ZN <zhang_12370@163.com>
Date: 星期一, 16 三月 2026 14:44:26 +0800
Subject: [PATCH] feat: 在多个记录页面添加导出过磅单功能
---
src/views/inventoryManagement/dispatchLog/Record.vue | 14 ++++++++++++++
src/views/inventoryManagement/stockManagement/Qualified.vue | 1 +
src/views/consumablesLogistics/receiptManagement/Record.vue | 16 ++++++++++++++++
src/views/inventoryManagement/receiptManagement/Record.vue | 14 ++++++++++++++
src/views/consumablesLogistics/dispatchLog/Record.vue | 14 ++++++++++++++
5 files changed, 59 insertions(+), 0 deletions(-)
diff --git a/src/views/consumablesLogistics/dispatchLog/Record.vue b/src/views/consumablesLogistics/dispatchLog/Record.vue
index a9d69ae..d47db1e 100644
--- a/src/views/consumablesLogistics/dispatchLog/Record.vue
+++ b/src/views/consumablesLogistics/dispatchLog/Record.vue
@@ -98,6 +98,15 @@
prop="licensePlateNo"
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"
@@ -214,6 +223,11 @@
};
const expandedRowKeys = ref([]);
+// 瀵煎嚭杩囩鍗�
+const handlePreview = (row) => {
+ proxy.$download.name(row.weighbridgeDocPath);
+}
+
// 瀵煎嚭
const handleOut = () => {
ElMessageBox.confirm("鏄惁纭瀵煎嚭锛�", "瀵煎嚭", {
diff --git a/src/views/consumablesLogistics/receiptManagement/Record.vue b/src/views/consumablesLogistics/receiptManagement/Record.vue
index 30d52b6..84bda74 100644
--- a/src/views/consumablesLogistics/receiptManagement/Record.vue
+++ b/src/views/consumablesLogistics/receiptManagement/Record.vue
@@ -107,6 +107,15 @@
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"
@@ -174,6 +183,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;
diff --git a/src/views/inventoryManagement/dispatchLog/Record.vue b/src/views/inventoryManagement/dispatchLog/Record.vue
index 08cbd74..80a1bff 100644
--- a/src/views/inventoryManagement/dispatchLog/Record.vue
+++ b/src/views/inventoryManagement/dispatchLog/Record.vue
@@ -118,6 +118,15 @@
prop="weighingOperator"
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"
@@ -234,6 +243,11 @@
};
const expandedRowKeys = ref([]);
+// 瀵煎嚭杩囩鍗�
+const handlePreview = (row) => {
+ proxy.$download.name(row.weighbridgeDocPath);
+}
+
// 瀵煎嚭
const handleOut = () => {
ElMessageBox.confirm("鏄惁纭瀵煎嚭锛�", "瀵煎嚭", {
diff --git a/src/views/inventoryManagement/receiptManagement/Record.vue b/src/views/inventoryManagement/receiptManagement/Record.vue
index d8866b9..9ba8c41 100644
--- a/src/views/inventoryManagement/receiptManagement/Record.vue
+++ b/src/views/inventoryManagement/receiptManagement/Record.vue
@@ -107,6 +107,15 @@
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"
@@ -218,6 +227,11 @@
const expandedRowKeys = ref([]);
+// 瀵煎嚭杩囩鍗�
+const handlePreview = (row) => {
+ proxy.$download.name(row.weighbridgeDocPath);
+}
+
// 瀵煎嚭
const handleOut = () => {
ElMessageBox.confirm("鏄惁纭瀵煎嚭锛�", "瀵煎嚭", {
diff --git a/src/views/inventoryManagement/stockManagement/Qualified.vue b/src/views/inventoryManagement/stockManagement/Qualified.vue
index 6c5be2a..5498f80 100644
--- a/src/views/inventoryManagement/stockManagement/Qualified.vue
+++ b/src/views/inventoryManagement/stockManagement/Qualified.vue
@@ -142,6 +142,7 @@
// 鐐瑰嚮棰嗙敤
const showSubtractModal = (row) => {
+ console.log('row', row)
record.value = row
isShowSubtractModal.value = true
}
--
Gitblit v1.9.3