From de4a3a2c1b39c128d4ecd23367db5fcbda957bdd Mon Sep 17 00:00:00 2001 From: zs <zhousong@weben-smart.com> Date: 周二, 13 5月 2025 11:21:21 +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