From 7c863257d23fd7f01c84a8996677e682d9d50b07 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 30 十二月 2025 09:38:38 +0800
Subject: [PATCH] 1.海川开心-部分页面添加默认值

---
 src/views/productionManagement/productionDispatching/index.vue |   61 ++++++++++++++++++++++--------
 1 files changed, 44 insertions(+), 17 deletions(-)

diff --git a/src/views/productionManagement/productionDispatching/index.vue b/src/views/productionManagement/productionDispatching/index.vue
index e976013..ec72c6e 100644
--- a/src/views/productionManagement/productionDispatching/index.vue
+++ b/src/views/productionManagement/productionDispatching/index.vue
@@ -38,22 +38,37 @@
 					clearable
 					prefix-icon="Search"
 				/>
-				<span class="search_title ml10">椤圭洰鍚嶇О锛�</span>
+				<span class="search_title ml10">鍚堝悓鍙凤細</span>
 				<el-input
-					v-model="searchForm.projectName"
+					v-model="searchForm.salesContractNo"
 					style="width: 240px"
 					placeholder="璇疯緭鍏�"
 					@change="handleQuery"
 					clearable
 					prefix-icon="Search"
 				/>
+<!--				<span class="search_title ml10">椤圭洰鍚嶇О锛�</span>-->
+<!--				<el-input-->
+<!--					v-model="searchForm.projectName"-->
+<!--					style="width: 240px"-->
+<!--					placeholder="璇疯緭鍏�"-->
+<!--					@change="handleQuery"-->
+<!--					clearable-->
+<!--					prefix-icon="Search"-->
+<!--				/>-->
 				<span class="search_title ml10">褰曞叆鏃ユ湡锛�</span>
 				<el-date-picker v-model="searchForm.entryDate" value-format="YYYY-MM-DD" format="YYYY-MM-DD" type="daterange"
 										placeholder="璇烽�夋嫨" clearable @change="changeDaterange" />
+				<el-checkbox
+					style="margin-left: 10px"
+					v-model="searchForm.status"
+					label="涓嶆樉绀哄緟鎺掓暟閲忎负0"
+					@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 type="primary" @click="openForm('add')">鐢熶骇娲惧伐</el-button>-->
 			<el-button type="success" @click="openAutoDispatch">鑷姩娲惧伐</el-button>
 			<el-button @click="handleOut">瀵煎嚭</el-button>
 		</div>
@@ -87,10 +102,12 @@
 const data = reactive({
 	searchForm: {
 		customerName: "",
+		salesContractNo: "",
 		projectName: "",
-		entryDate: null, // 褰曞叆鏃ユ湡
-		entryDateStart: undefined,
-		entryDateEnd: undefined,
+		status: true,
+		entryDate: [dayjs().format("YYYY-MM-DD"), dayjs().format("YYYY-MM-DD")], // 褰曞叆鏃ユ湡锛岄粯璁ゅ綋澶�
+		entryDateStart: dayjs().format("YYYY-MM-DD"),
+		entryDateEnd: dayjs().format("YYYY-MM-DD"),
 	},
 });
 const { searchForm } = toRefs(data);
@@ -101,19 +118,9 @@
 		width: 220,
 	},
 	{
-		label: "瀹㈡埛鍚堝悓鍙�",
-		prop: "customerContractNo",
-		width: 250,
-	},
-	{
 		label: "瀹㈡埛鍚嶇О",
 		prop: "customerName",
 		width: 250,
-	},
-	{
-		label: "椤圭洰鍚嶇О",
-		prop: "projectName",
-		width:300
 	},
 	{
 		label: "浜у搧澶х被",
@@ -128,7 +135,7 @@
 	{
 		label: "缁戝畾鏈哄櫒",
 		prop: "speculativeTradingName",
-		width: 220,
+		width: 160,
 	},
 	{
 		label: "鍗曚綅",
@@ -140,6 +147,18 @@
 		prop: "entryDate",
 		width: 120,
 	},
+	// {
+	// 	label: "鐢熶骇杩涘害",
+	// 	prop: "progress",
+	// 	formatData: (cellValue) => {
+	// 		// 濡傛灉鍊间负绌烘垨undefined锛屾樉绀虹┖瀛楃涓�
+	// 		if (cellValue === null || cellValue === undefined || cellValue === '') {
+	// 			return '';
+	// 		}
+	// 		// 鐩存帴鍦ㄦ暟瀛楀悗闈㈡坊鍔犵櫨鍒嗗彿
+	// 		return `${cellValue}%`;
+	// 	}
+	// },
 	{
 		label: "鏁伴噺",
 		prop: "quantity",
@@ -153,6 +172,7 @@
 		label: "寰呮帓鏁伴噺",
 		prop: "pendingQuantity",
 		width: 100,
+		fixed: 'right',
 	},
 ]);
 const tableData = ref([]);
@@ -587,3 +607,10 @@
 	white-space: nowrap;
 }
 </style>
+
+
+
+
+
+
+

--
Gitblit v1.9.3