From 68d75a540ec8b3168c3af956ea00b898036d92cd Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期四, 04 七月 2024 00:17:17 +0800
Subject: [PATCH] 包装规则更新

---
 src/views/tigerprojects/system/lowcode/entityts/V_BAS_PROD.ts |   60 +++++++++++++++++++++++++++++++++---------------------------
 1 files changed, 33 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..ec88e63 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-06-28 10:58:43
  */
 
 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: 鑾峰彇鏂板鎸夐挳鐨勮涓�
@@ -66,11 +45,38 @@
         },
       ];
     },
-    OthersValues: (val: string, id: string) => {
+    KeyFieldValues: (val: string, id: string) => {
       return { RSNG_CODE: val };
     },
   };
 
+  /* 浠ヤ笅鏄唴閮ㄦ柟娉曪紝涓峞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