From 86301bd8e636e53667bc34c501b49149e663ec66 Mon Sep 17 00:00:00 2001
From: bsw215583320 <baoshiwei121@163.com>
Date: 星期一, 27 五月 2024 16:14:29 +0800
Subject: [PATCH] 机台监控界面效率和能耗对比优化

---
 src/views/dry/DryOrderList.vue |   30 ++++++++++++++++++++++++++++--
 1 files changed, 28 insertions(+), 2 deletions(-)

diff --git a/src/views/dry/DryOrderList.vue b/src/views/dry/DryOrderList.vue
index 0e1ee0b..e442b45 100644
--- a/src/views/dry/DryOrderList.vue
+++ b/src/views/dry/DryOrderList.vue
@@ -53,6 +53,8 @@
 	import { BasicTable, TableAction } from '/@/components/Table'
 	import { useListPage } from '/@/hooks/system/useListPage'
 	import { downloadFile } from '/@/utils/common/renderUtils'
+	import { router } from '/@/router'
+
 	const checkedKeys = ref<Array<string | number>>([])
 	//娉ㄥ唽model
 	const [registerModal, { openModal }] = useModal()
@@ -141,9 +143,13 @@
 	function getTableAction(record) {
 		return [
 			{
-				label: '缂栬緫',
-				onClick: handleEdit.bind(null, record),
+				label: '鎿嶄綔璁板綍',
+				onClick: openReport.bind(null, record),
 			},
+			{
+				label: '杩囩▼瓒嬪娍',
+				onClick: openProcessTendency.bind(null, record),
+			}
 		]
 	}
 	/**
@@ -151,6 +157,10 @@
 	 */
 	function getDropDownAction(record) {
 		return [
+			{
+				label: '缂栬緫',
+				onClick: handleEdit.bind(null, record),
+			},
 			{
 				label: '璇︽儏',
 				onClick: handleDetail.bind(null, record),
@@ -164,6 +174,22 @@
 			},
 		]
 	}
+
+	/**鎵撳紑鎶ヨ〃 */
+	function openReport(record: Recordable) {
+		//console.log(`output->record`, record)
+		router.push({
+			path: '/dry/order/report',
+			query: {
+				batch: record.code,
+			},
+		})
+	}
+
+	/** 鎵撳紑杩囩▼瓒嬪娍璧板娍鍥剧獥鍙� */
+	function openProcessTendency(record: Recordable) {
+		console.log(`output->record`, record)
+	}
 </script>
 
 <style scoped></style>

--
Gitblit v1.9.3