From aac76f64bb882834b867617d2342e00c9e2a930f Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期日, 04 一月 2026 15:48:31 +0800
Subject: [PATCH] 海川开心: 1.弹框可以拖拽 2.入库管理的材料入库不要数量字段 3.质量管理一些字段赋默认值 4.材料入库删除接口传参修改

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

diff --git a/src/views/qualityManagement/rawMaterialInspection/components/filesDia.vue b/src/views/qualityManagement/rawMaterialInspection/components/filesDia.vue
index 9907fbe..eb46972 100644
--- a/src/views/qualityManagement/rawMaterialInspection/components/filesDia.vue
+++ b/src/views/qualityManagement/rawMaterialInspection/components/filesDia.vue
@@ -4,6 +4,7 @@
         v-model="dialogFormVisible"
         title="涓婁紶闄勪欢"
         width="50%"
+				draggable
         @close="closeDia"
     >
       <div style="margin-bottom: 10px;text-align: right">
@@ -30,16 +31,10 @@
           :isSelection="true"
           @selection-change="handleSelectionChange"
           height="500"
+					:page="page"
+					@pagination="pagination"
       >
       </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 +55,6 @@
   qualityInspectFileDel,
   qualityInspectFileListPage
 } from "@/api/qualityManagement/qualityInspectFile.js";
-import Pagination from "@/components/PIMTable/Pagination.vue";
 const { proxy } = getCurrentInstance()
 const emit = defineEmits(['close'])
 
@@ -97,6 +91,7 @@
 const page = reactive({
 	current: 1,
 	size: 100,
+	total: 0
 });
 const total = ref(0);
 const tableData = ref([]);
@@ -114,15 +109,16 @@
   currentId.value = row.id;
   getList()
 }
-const paginationSearch = (obj) => {
+const pagination = (obj) => {
 	page.current = obj.page;
 	page.size = obj.limit;
 	getList();
 };
+
 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