From d36530e3550cfa30e9a91d73f202943782545eeb Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 03 十一月 2025 16:12:51 +0800
Subject: [PATCH] 生产排产-工序下拉取消,改为手动填入

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

diff --git a/src/views/productionManagement/productionDispatching/index.vue b/src/views/productionManagement/productionDispatching/index.vue
index 5aebfc3..527880f 100644
--- a/src/views/productionManagement/productionDispatching/index.vue
+++ b/src/views/productionManagement/productionDispatching/index.vue
@@ -27,6 +27,7 @@
 			</div>
 			<div>
 				<el-button type="primary" @click="openForm('add')">鐢熶骇娲惧伐</el-button>
+				<el-button @click="handleOut">瀵煎嚭</el-button>
 			</div>
 		</div>
 		<div class="table_list">
@@ -51,26 +52,19 @@
 import FormDia from "@/views/productionManagement/productionDispatching/components/formDia.vue";
 import dayjs from "dayjs";
 import {schedulingListPage} from "@/api/productionManagement/productionOrder.js";
+import { ElMessageBox } from "element-plus";
 
 const data = reactive({
 	searchForm: {
 		customerName: "",
 		projectName: "",
-		entryDate: [
-			dayjs().format("YYYY-MM-DD"),
-			dayjs().add(1, "day").format("YYYY-MM-DD"),
-		], // 褰曞叆鏃ユ湡
-		entryDateStart: dayjs().format("YYYY-MM-DD"),
-		entryDateEnd: dayjs().add(1, "day").format("YYYY-MM-DD"),
+		entryDate: null, // 褰曞叆鏃ユ湡
+		entryDateStart: undefined,
+		entryDateEnd: undefined,
 	},
 });
 const { searchForm } = toRefs(data);
 const tableColumn = ref([
-	{
-		label: "褰曞叆鏃ユ湡",
-		prop: "entryDate",
-		width: 120,
-	},
 	{
 		label: "鍚堝悓鍙�",
 		prop: "salesContractNo",
@@ -105,6 +99,11 @@
 		label: "鍗曚綅",
 		prop: "unit",
 		width:90
+	},
+	{
+		label: "褰曞叆鏃ユ湡",
+		prop: "entryDate",
+		width: 120,
 	},
 	{
 		label: "鏁伴噺",
@@ -190,13 +189,22 @@
 	})
 };
 
+// 瀵煎嚭
+const handleOut = () => {
+	ElMessageBox.confirm("閫変腑鐨勫唴瀹瑰皢琚鍑猴紝鏄惁纭瀵煎嚭锛�", "瀵煎嚭", {
+		confirmButtonText: "纭",
+		cancelButtonText: "鍙栨秷",
+		type: "warning",
+	})
+		.then(() => {
+			proxy.download("/salesLedger/scheduling/exportOne", {}, "鐢熶骇娲惧伐.xlsx");
+		})
+		.catch(() => {
+			proxy.$modal.msg("宸插彇娑�");
+		});
+};
+
 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