From 04259fe9c84d819791cab926b959cab8dc6584b6 Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期二, 02 七月 2024 13:57:56 +0800
Subject: [PATCH] 高级表单多子表更新

---
 src/views/tigerprojects/system/lowcode/entityts/BAS_REASON_GRP.ts |   52 ++++++++++++++++++++++++++++++----------------------
 1 files changed, 30 insertions(+), 22 deletions(-)

diff --git a/src/views/tigerprojects/system/lowcode/entityts/BAS_REASON_GRP.ts b/src/views/tigerprojects/system/lowcode/entityts/BAS_REASON_GRP.ts
index cc90c02..ca3d931 100644
--- a/src/views/tigerprojects/system/lowcode/entityts/BAS_REASON_GRP.ts
+++ b/src/views/tigerprojects/system/lowcode/entityts/BAS_REASON_GRP.ts
@@ -4,7 +4,7 @@
  * @version:
  * @Date: 2024-06-19 20:34:27
  * @LastEditors: Ben Lin
- * @LastEditTime: 2024-06-25 18:32:20
+ * @LastEditTime: 2024-07-01 20:15:46
  */
 
 import { ActionItem, BasicColumn } from '/@/components/Table';
@@ -15,24 +15,6 @@
 const { t } = useI18n();
 
 function _default() {
-  /**
-   * @description: 鑷畾涔夌紪杈戞柟娉曪紝璺宠浆鍒伴珮绾ч〉闈�
-   * @param {Fn} args
-   * @param {*} params
-   * @return {*}
-   */
-  function rsnGrpEdit(args: Fn[], params: {}) {
-    const param = {
-      CODE: params['record']['RSNG_CODE'],
-      ID: params['record']['ID'],
-      Name: 'BAS_REASON',
-      Title: `缂栬緫涓嶈壇鍘熷洜缁勶細${params['record']['RSNG_CODE']}`,
-      pCode: 'RSNG_CODE',
-      IsID: false,
-    };
-    args[5](`/BAS_REASON/High/${encodeURI(JSON.stringify(param))}`);
-  }
-
   const ActionColumn: BasicColumn = {
     width: 180,
     title: '鎿嶄綔',
@@ -41,6 +23,10 @@
     fixed: undefined,
   };
 
+  /**
+   * @description: 涓�浜涜嚜瀹氫箟鏂规硶
+   * @return {*}
+   */
   const methods = {
     /**
      * @description: 鑾峰彇鏂板鎸夐挳鐨勮涓�
@@ -57,6 +43,7 @@
           Title: '鏂板涓嶈壇鍘熷洜缁�',
           pCode: 'RSNG_CODE',
           IsID: false,
+          drawers: [{ name: 'BAS_REASON', code: 'RSNG_CODE' }], //drawers鏄彸杈瑰脊鍑哄鏀逛晶妗嗙殑鍚嶅瓧鍒楄〃
         },
       };
     },
@@ -75,7 +62,7 @@
         RSNG_CODE: d.values['val'],
       };
     },
-    OpenSelectItem:(openItemModal: Fn) => {
+    OpenSelectItem: (openItemModal: Fn, ...args) => {
       openItemModal(true, {
         title: '涓嶈壇鍘熷洜缁勫垪琛�',
         schemas: [
@@ -106,11 +93,32 @@
         ],
         tableName: 'BAS_REASON_GRP',
         rowKey: 'RSNG_CODE',
-        searchInfo: {TABLE_NAME: 'BAS_REASON_GRP'}
+        searchInfo: { TABLE_NAME: 'BAS_REASON_GRP' },
       });
-    }
+    },
   };
 
+  /* 浠ヤ笅鏄唴閮ㄦ柟娉曪紝涓峞xport锛屼緵涓婇潰鐨勬柟娉曡皟鐢� */
+
+  /**
+   * @description: 鑷畾涔夌紪杈戞柟娉曪紝璺宠浆鍒伴珮绾ч〉闈�
+   * @param {Fn} args
+   * @param {*} params
+   * @return {*}
+   */
+  function rsnGrpEdit(args: Fn[], params: {}) {
+    const param = {
+      CODE: params['record']['RSNG_CODE'],
+      ID: params['record']['ID'],
+      Name: 'BAS_REASON',
+      Title: `缂栬緫涓嶈壇鍘熷洜缁勶細${params['record']['RSNG_CODE']}`,
+      pCode: 'RSNG_CODE',
+      IsID: false,
+      drawers: [{ name: 'BAS_REASON', code: 'RSNG_CODE' }], //drawers鏄彸杈瑰脊鍑哄鏀逛晶妗嗙殑鍚嶅瓧鍒楄〃
+    };
+    args[5](`/BAS_REASON/High/${encodeURI(JSON.stringify(param))}`);
+  }
+
   return [methods, ActionColumn];
 }
 

--
Gitblit v1.9.3