From bc07cf1a936795d229a0f51d24cd2032580db542 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 20 一月 2026 16:34:51 +0800
Subject: [PATCH] 湟水峡 1.头部修改

---
 src/views/inventoryManagement/dispatchLog/index.vue |   25 +++++++------------------
 1 files changed, 7 insertions(+), 18 deletions(-)

diff --git a/src/views/inventoryManagement/dispatchLog/index.vue b/src/views/inventoryManagement/dispatchLog/index.vue
index 751a92d..b485aa7 100644
--- a/src/views/inventoryManagement/dispatchLog/index.vue
+++ b/src/views/inventoryManagement/dispatchLog/index.vue
@@ -21,9 +21,12 @@
 					clearable
 					@change="handleQuery"
 				/>
-				<el-button type="primary" @click="handleQuery" style="margin-left: 10px">鎼滅储</el-button>
+				<el-button type="primary" @click="handleQuery" style="margin-left: 10px"
+				>鎼滅储</el-button
+				>
 			</div>
 			<div>
+				<!-- <el-button type="primary" @click="openForm('add')">鏂板</el-button> -->
 				<el-button @click="handleOut">瀵煎嚭</el-button>
 				<el-button type="danger" plain @click="handleDelete">鍒犻櫎</el-button>
 				<el-button type="primary" plain @click="handlePrint">鎵撳嵃</el-button>
@@ -255,9 +258,10 @@
 
 <script setup>
 import pagination from "@/components/PIMTable/Pagination.vue";
-import { ref, reactive, toRefs, onMounted, getCurrentInstance } from "vue";
+import { ref } from "vue";
 import { ElMessageBox } from "element-plus";
 import useUserStore from "@/store/modules/user";
+import { getCurrentDate } from "@/utils/index.js";
 import {
 	getStockOutPage,
 	delStockOut,
@@ -319,13 +323,7 @@
 };
 const getList = () => {
 	tableLoading.value = true;
-	const params = { 
-		...page,
-		supplierName: searchForm.value.supplierName,
-		timeStr: searchForm.value.timeStr
-	}
-	
-	getStockOutPage(params)
+	getStockOutPage({ ...searchForm.value, ...page })
 		.then((res) => {
 			tableLoading.value = false;
 			tableData.value = res.data.records;
@@ -338,7 +336,6 @@
 			tableLoading.value = false;
 		});
 };
-
 
 // 琛ㄦ牸閫夋嫨鏁版嵁
 const handleSelectionChange = (selection) => {
@@ -686,14 +683,6 @@
 	const seconds = String(date.getSeconds()).padStart(2, "0");
 	return `${year}/${month}/${day} ${hours}:${minutes}:${seconds}`;
 };
-// 鑾峰彇褰撳墠鏃ユ湡骞舵牸寮忓寲涓� YYYY-MM-DD
-function getCurrentDate() {
-	const today = new Date();
-	const year = today.getFullYear();
-	const month = String(today.getMonth() + 1).padStart(2, "0"); // 鏈堜唤浠�0寮�濮�
-	const day = String(today.getDate()).padStart(2, "0");
-	return `${year}-${month}-${day}`;
-}
 onMounted(() => {
 	getList();
 });

--
Gitblit v1.9.3