From 60a702a3dbcbe6e16a26faab49e66d710d1f8656 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 28 十一月 2025 14:57:36 +0800
Subject: [PATCH] 湟水峡-销售台账/采购台账,有可能同一个公司不同单子,但是开票登记的时候会一起,一对多或者多对一

---
 src/views/inventoryManagement/dispatchLog/index.vue |   27 +++++++++++++++++++++------
 1 files changed, 21 insertions(+), 6 deletions(-)

diff --git a/src/views/inventoryManagement/dispatchLog/index.vue b/src/views/inventoryManagement/dispatchLog/index.vue
index 65c90e8..751a92d 100644
--- a/src/views/inventoryManagement/dispatchLog/index.vue
+++ b/src/views/inventoryManagement/dispatchLog/index.vue
@@ -11,12 +11,19 @@
 					clearable
 					prefix-icon="Search"
 				/>
-				<el-button type="primary" @click="handleQuery" style="margin-left: 10px"
-				>鎼滅储</el-button
-				>
+				<span class="search_title ml10">鍑哄簱鏃ユ湡锛�</span>
+				<el-date-picker
+					v-model="searchForm.timeStr"
+					type="date"
+					placeholder="璇烽�夋嫨鏃ユ湡"
+					value-format="YYYY-MM-DD"
+					format="YYYY-MM-DD"
+					clearable
+					@change="handleQuery"
+				/>
+				<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>
@@ -248,7 +255,7 @@
 
 <script setup>
 import pagination from "@/components/PIMTable/Pagination.vue";
-import { ref } from "vue";
+import { ref, reactive, toRefs, onMounted, getCurrentInstance } from "vue";
 import { ElMessageBox } from "element-plus";
 import useUserStore from "@/store/modules/user";
 import {
@@ -275,6 +282,7 @@
 const data = reactive({
 	searchForm: {
 		supplierName: "",
+		timeStr: "",
 	},
 	form: {
 		supplierId: null,
@@ -311,7 +319,13 @@
 };
 const getList = () => {
 	tableLoading.value = true;
-	getStockOutPage({ ...searchForm.value, ...page })
+	const params = { 
+		...page,
+		supplierName: searchForm.value.supplierName,
+		timeStr: searchForm.value.timeStr
+	}
+	
+	getStockOutPage(params)
 		.then((res) => {
 			tableLoading.value = false;
 			tableData.value = res.data.records;
@@ -325,6 +339,7 @@
 		});
 };
 
+
 // 琛ㄦ牸閫夋嫨鏁版嵁
 const handleSelectionChange = (selection) => {
 	// 杩囨护鎺夊瓙鏁版嵁

--
Gitblit v1.9.3