From 3efe2606474fba1905fa4edab82b713b9cfb5ef3 Mon Sep 17 00:00:00 2001
From: baoshiwei <baoshiwei@shlanbao.cn>
Date: 星期二, 01 八月 2023 08:22:03 +0800
Subject: [PATCH] 完成车间大屏

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

diff --git a/src/views/dry/DryOrderList.vue b/src/views/dry/DryOrderList.vue
index 0e1ee0b..bfd9690 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,8 +143,8 @@
 	function getTableAction(record) {
 		return [
 			{
-				label: '缂栬緫',
-				onClick: handleEdit.bind(null, record),
+				label: '鎿嶄綔璁板綍',
+				onClick: openReport.bind(null, record),
 			},
 		]
 	}
@@ -151,6 +153,10 @@
 	 */
 	function getDropDownAction(record) {
 		return [
+			{
+				label: '缂栬緫',
+				onClick: handleEdit.bind(null, record),
+			},
 			{
 				label: '璇︽儏',
 				onClick: handleDetail.bind(null, record),
@@ -164,6 +170,17 @@
 			},
 		]
 	}
+
+	/**鎵撳紑鎶ヨ〃 */
+	function openReport(record: Recordable) {
+		console.log(`output->record`, record)
+		router.push({
+			path: '/dry/order/report',
+			query: {
+				batch: record.code,
+			},
+		})
+	}
 </script>
 
 <style scoped></style>

--
Gitblit v1.9.3