From eed29804d3973801f8eac3ad9bead1e608f05b6a Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期六, 20 七月 2024 22:31:56 +0800 Subject: [PATCH] 工单及自定义弹出窗口更新 --- src/views/tigerprojects/system/lowcode/entityts/V_BAS_PROD.ts | 64 ++++++++++++++++++------------- 1 files changed, 37 insertions(+), 27 deletions(-) diff --git a/src/views/tigerprojects/system/lowcode/entityts/V_BAS_PROD.ts b/src/views/tigerprojects/system/lowcode/entityts/V_BAS_PROD.ts index eccc002..b639ceb 100644 --- a/src/views/tigerprojects/system/lowcode/entityts/V_BAS_PROD.ts +++ b/src/views/tigerprojects/system/lowcode/entityts/V_BAS_PROD.ts @@ -4,37 +4,12 @@ * @version: * @Date: 2024-06-19 20:34:27 * @LastEditors: Ben Lin - * @LastEditTime: 2024-06-24 15:50:03 + * @LastEditTime: 2024-07-20 21:28:51 */ import { ActionItem, BasicColumn } from '/@/components/Table'; function _default() { - /** - * @description: 璺宠浆浜у搧宸ヨ壓缁戝畾椤甸潰 - * @param {*} params - * @return {*} - */ - function handleBinding(go: Fn, params: Recordable<any>) { - const id = { - ID: params['record'].ID, - Name: 'ProdRouteBinding', - CODE: params['record'].ITEM_CODE, - Title: `浜у搧[${params['record'].ITEM_CODE}]宸ヨ壓缁戝畾`, - colSlots: [], - crudColSlots: [], - dense: true, - pageTitle: `浜у搧宸ヨ壓缁戝畾`, - pageContent: `杩欓噷鏄鐞嗕骇鍝佺殑宸ヨ壓缁戝畾锛屼竴涓骇鍝佸彲浠ョ粦瀹氬涓伐鑹鸿矾绾縛, - }; - go(`/ProdRouteBinding/CP/${encodeURI(JSON.stringify(id))}`); - // let obj = JSON.stringify(id); - // push({ - // path: '/ProdRouteBinding', - // state: {obj}, //HTML5 History API 鐨勪紶鍙傦紝鍙傛暟闅愯棌涓嶅湪鍦板潃鏍忔樉绀猴紙history锛� - // }) - } - const ActionColumn: BasicColumn = { width: 80, title: '鎿嶄綔', @@ -43,6 +18,10 @@ fixed: undefined, }; + /** + * @description: 涓�浜涜嚜瀹氫箟鏂规硶 + * @return {*} + */ const methods = { /** * @description: 鑾峰彇鏂板鎸夐挳鐨勮涓� @@ -63,14 +42,45 @@ icon: 'binding|svg', tooltip: '缁戝畾宸ヨ壓', onClick: handleBinding.bind(null, args[5], params), + name: undefined }, ]; }, - OthersValues: (val: string, id: string) => { + KeyFieldValues: (val: string, id: string) => { return { RSNG_CODE: val }; }, + GetUseForm: () => { + return {}; + }, }; + /* 浠ヤ笅鏄唴閮ㄦ柟娉曪紝涓峞xport锛屼緵涓婇潰鐨勬柟娉曡皟鐢� */ + + /** + * @description: 璺宠浆浜у搧宸ヨ壓缁戝畾椤甸潰 + * @param {*} params + * @return {*} + */ + function handleBinding(go: Fn, params: Recordable<any>) { + const id = { + ID: params['record'].ID, + Name: 'ProdRouteBinding', + CODE: params['record'].ITEM_CODE, + Title: `浜у搧[${params['record'].ITEM_CODE}]宸ヨ壓缁戝畾`, + colSlots: [] /* 琛ㄦ牸鍐呯殑鏌ヨ琛ㄥ崟瀛楁鐨勬彃妲藉垪琛紝涓�鑸敤浜庡脊鍑洪�夋嫨妗嗘寜閽� */, + crudColSlots: [] /* 澧炲垹鏀硅〃鍗曞瓧娈电殑鎻掓Ы鍒楄〃锛屼竴鑸敤浜庡脊鍑洪�夋嫨妗嗘寜閽� */, + dense: true, + pageTitle: `浜у搧宸ヨ壓缁戝畾`, + pageContent: `杩欓噷鏄鐞嗕骇鍝佺殑宸ヨ壓缁戝畾锛屼竴涓骇鍝佸彲浠ョ粦瀹氬涓伐鑹鸿矾绾縛, + }; + go(`/ProdRouteBinding/CP/${encodeURI(JSON.stringify(id))}`); + // let obj = JSON.stringify(id); + // push({ + // path: '/ProdRouteBinding', + // state: {obj}, //HTML5 History API 鐨勪紶鍙傦紝鍙傛暟闅愯棌涓嶅湪鍦板潃鏍忔樉绀猴紙history锛� + // }) + } + return [methods, ActionColumn]; } -- Gitblit v1.9.3