From c9c208ff1fe0f050c46f81704a7d56f191e39d32 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期三, 22 四月 2026 10:03:21 +0800
Subject: [PATCH] 通过添加产品名称显示逻辑并优化行显示条件,来增强销售订单的打印功能。引入了产品名称的备用机制,并更新 renderRows 函数以根据产品名称的变化有条件地显示产品行。

---
 src/views/qualityManagement/rawMaterialInspection/components/filesDia.vue |   15 ++++-----------
 1 files changed, 4 insertions(+), 11 deletions(-)

diff --git a/src/views/qualityManagement/rawMaterialInspection/components/filesDia.vue b/src/views/qualityManagement/rawMaterialInspection/components/filesDia.vue
index 9907fbe..9b89a3b 100644
--- a/src/views/qualityManagement/rawMaterialInspection/components/filesDia.vue
+++ b/src/views/qualityManagement/rawMaterialInspection/components/filesDia.vue
@@ -26,20 +26,14 @@
           rowKey="id"
           :column="tableColumn"
           :tableData="tableData"
+          :page="page"
           :tableLoading="tableLoading"
           :isSelection="true"
           @selection-change="handleSelectionChange"
+          @pagination="paginationSearch"
           height="500"
       >
       </PIMTable>
-			<pagination
-				style="margin: 10px 0"
-				v-show="total > 0"
-				@pagination="paginationSearch"
-				:total="total"
-				:page="page.current"
-				:limit="page.size"
-			/>
       <template #footer>
         <div class="dialog-footer">
           <el-button @click="closeDia">鍙栨秷</el-button>
@@ -60,7 +54,6 @@
   qualityInspectFileDel,
   qualityInspectFileListPage
 } from "@/api/qualityManagement/qualityInspectFile.js";
-import Pagination from "@/components/PIMTable/Pagination.vue";
 const { proxy } = getCurrentInstance()
 const emit = defineEmits(['close'])
 
@@ -97,8 +90,8 @@
 const page = reactive({
 	current: 1,
 	size: 100,
+	total: 0,
 });
-const total = ref(0);
 const tableData = ref([]);
 const fileList = ref([]);
 const tableLoading = ref(false);
@@ -122,7 +115,7 @@
 const getList = () => {
   qualityInspectFileListPage({inspectId: currentId.value, ...page}).then(res => {
     tableData.value = res.data.records;
-		total.value = res.data.total;
+		page.total = res.data.total;
   })
 }
 // 琛ㄦ牸閫夋嫨鏁版嵁

--
Gitblit v1.9.3