From 2a97deaa6deb2b5e94b2edba33a3e885cab4892b Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 22 十二月 2025 17:11:21 +0800
Subject: [PATCH] 1.海川开心-设备保养添加定时任务 2.海川开心-销售管理、采购管理展示字段修改

---
 src/views/productionManagement/productionOrder/index.vue |   59 +++++++++++++++++++++++++++++++++++++++--------------------
 1 files changed, 39 insertions(+), 20 deletions(-)

diff --git a/src/views/productionManagement/productionOrder/index.vue b/src/views/productionManagement/productionOrder/index.vue
index e65fd3b..03b8ae4 100644
--- a/src/views/productionManagement/productionOrder/index.vue
+++ b/src/views/productionManagement/productionOrder/index.vue
@@ -11,15 +11,24 @@
 					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" />
@@ -58,24 +67,38 @@
 		width: 120,
 	},
 	{
-		label: "鍚堝悓鍙�",
+		label: "閿�鍞悎鍚屽彿",
 		prop: "salesContractNo",
 		width: 220,
 	},
-	{
-		label: "瀹㈡埛鍚堝悓鍙�",
-		prop: "customerContractNo",
-		width: 250,
-	},
+	// {
+	// 	label: "瀹㈡埛鍚堝悓鍙�",
+	// 	prop: "customerContractNo",
+	// 	width: 250,
+	// },
 	{
 		label: "瀹㈡埛鍚嶇О",
 		prop: "customerName",
 		width: 250,
 	},
+	// {
+	// 	label: "椤圭洰鍚嶇О",
+	// 	prop: "projectName",
+	// 	width:300
+	// },
 	{
-		label: "椤圭洰鍚嶇О",
-		prop: "projectName",
-		width:300
+		label: "浠樻鐘舵��",
+		prop: "status",
+		dataType: "tag",
+		formatType: (params) => {
+			if (params == '鏈畬鎴�') {
+				return "danger";
+			} else if (params == '宸插畬鎴�') {
+				return "success";
+			} else {
+				return null;
+			}
+		},
 	},
 	{
 		label: "浜у搧澶х被",
@@ -118,10 +141,12 @@
 const data = reactive({
 	searchForm: {
 		customerName: "",
+		salesContractNo: "",
 		projectName: "",
-		entryDate: [], // 褰曞叆鏃ユ湡
-		entryDateStart: '',
-		entryDateEnd: '',
+		status: "",
+		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);
@@ -177,12 +202,6 @@
 };
 
 onMounted(() => {
-	searchForm.value.entryDate = [
-		dayjs().format("YYYY-MM-DD"),
-		dayjs().add(1, "day").format("YYYY-MM-DD"),
-	]
-	searchForm.value.entryDateStart = dayjs().format("YYYY-MM-DD")
-	searchForm.value.entryDateEnd = dayjs().add(1, "day").format("YYYY-MM-DD")
 	getList();
 });
 </script>

--
Gitblit v1.9.3