From 161669bc16a62898c18b40725ff0744887038275 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周二, 20 5月 2025 18:16:43 +0800
Subject: [PATCH] 高级查询样式整改(其实我发现并没有什么变化啊)
---
HIAWms/hiawms_web/src/widgets/WmsTask/Controllers/WmsTask.ts | 37 +++++++++++++++++++++++++------------
1 files changed, 25 insertions(+), 12 deletions(-)
diff --git a/HIAWms/hiawms_web/src/widgets/WmsTask/Controllers/WmsTask.ts b/HIAWms/hiawms_web/src/widgets/WmsTask/Controllers/WmsTask.ts
index 5233f95..c81cd4e 100644
--- a/HIAWms/hiawms_web/src/widgets/WmsTask/Controllers/WmsTask.ts
+++ b/HIAWms/hiawms_web/src/widgets/WmsTask/Controllers/WmsTask.ts
@@ -67,6 +67,11 @@
title: '',
})
+ const dialogChangeToPlaceConfig = reactive({
+ visible: false,
+ title: '',
+ isAdd: false,
+ })
/**
* 鍒嗛〉鏁版嵁
*/
@@ -84,6 +89,14 @@
sort.value = row.sort
}
+ const openChangToPlace = (row: any) => {
+ current.value = row
+ dialogChangeToPlaceConfig.visible = true
+ dialogChangeToPlaceConfig.title = '淇敼鐩爣搴撲綅'
+ dialogChangeToPlaceConfig.isAdd = false
+ console.log('row', row)
+ }
+
const contextMenu = [
{
label: '灞曞紑璇︽儏',
@@ -95,18 +108,16 @@
divided: true,
icon: 'o',
},
- // {
- // label: '鍚戜笂娣诲姞',
- // fn: (c: CurrentType, pageNum: number) => {
- // current.value = null
- // sort.value = c.index + 1 + (pageNum - 1) * 50
- // dialogConfig.visible = true
- // dialogConfig.title = '娣诲姞'
- // dialogConfig.isAdd = false
- // },
- // divided: true,
- // icon: 'up',
- // },
+ {
+ label: '淇敼鐩爣搴撲綅',
+ fn: (c: CurrentType) => {
+ current.value = null
+ sort.value = c.row.sort
+ nextTick(() => openChangToPlace(c.row))
+ },
+ divided: true,
+ icon: 'up',
+ },
{
label: '寮哄埗瀹屾垚',
fn: async (c: CurrentType) => {
@@ -278,6 +289,7 @@
dialogConfig,
dialogConfigForQuery,
dialogSettingConfig,
+ dialogChangeToPlaceConfig,
tableRef,
current,
search,
@@ -289,6 +301,7 @@
onError,
onSuccess,
openDetail,
+ openChangToPlace,
onSearch,
onExport,
onRowClick,
--
Gitblit v1.9.3