From 5bea8c0f7b92afa947b4de6ecf4cb94741afedb5 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期五, 17 四月 2026 15:27:54 +0800
Subject: [PATCH] 打印样式重构
---
src/views/qualityManagement/finalInspection/index.vue | 22 ++++++++++++++++++++--
1 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/src/views/qualityManagement/finalInspection/index.vue b/src/views/qualityManagement/finalInspection/index.vue
index 2a2360b..625429c 100644
--- a/src/views/qualityManagement/finalInspection/index.vue
+++ b/src/views/qualityManagement/finalInspection/index.vue
@@ -101,6 +101,11 @@
width: 120
},
{
+ label: "鐢熶骇鎵瑰彿",
+ prop: "batchNo",
+ width: 140
+ },
+ {
label: "妫�楠屽憳",
prop: "checkName",
},
@@ -113,12 +118,21 @@
prop: "model",
},
{
+ label: "鏂欏彿",
+ prop: "materialCode",
+ },
+ {
label: "鍗曚綅",
prop: "unit",
},
{
label: "鏁伴噺",
prop: "quantity",
+ width: 100
+ },
+ {
+ label: "鍚堟牸鏁伴噺",
+ prop: "qualifiedQuantity",
width: 100
},
{
@@ -277,7 +291,11 @@
params.entryDate = undefined
qualityInspectListPage({...params, inspectType: 2}).then(res => {
tableLoading.value = false;
- tableData.value = res.data.records
+ const records = res.data.records || [];
+ tableData.value = records.map((row) => ({
+ ...row,
+ batchNo: row.batchNo ?? row.productionBatchNo ?? "",
+ }));
page.total = res.data.total;
}).catch(err => {
tableLoading.value = false;
@@ -339,7 +357,7 @@
type: "warning",
})
.then(() => {
- proxy.download("/quality/qualityInspect/export", {inspectType: 2}, "鍑哄巶妫�楠�.xlsx");
+ proxy.download("/quality/qualityInspect/export", {inspectType: 2}, "鎴愬搧妫�楠�.xlsx");
})
.catch(() => {
proxy.$modal.msg("宸插彇娑�");
--
Gitblit v1.9.3