From aa0bc81d06736cc1a1bd210dde61f57736585d43 Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期五, 07 六月 2024 10:37:05 +0800
Subject: [PATCH] 很多更新

---
 src/api/tigerapi/system.ts |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/src/api/tigerapi/system.ts b/src/api/tigerapi/system.ts
index 3ead966..c961bb2 100644
--- a/src/api/tigerapi/system.ts
+++ b/src/api/tigerapi/system.ts
@@ -28,6 +28,7 @@
   iSYS_ROLE_WH,
   EntityParams,
   EntityList,
+  iSYS_ROLE_PROD,
 } from './model/systemModel';
 import { defHttp } from '/@/utils/http/axios';
 import { isNullOrEmpty, isTimeType } from '/@/utils/is';
@@ -50,6 +51,7 @@
   DeleteList = '/Base/DeleteList',
   DeleteWhere = '/Base/DeleteWhere',
   GetOrgTreeList = '/SYS/getOrgTreeList',
+  GetProdTreeList = '/SYS/getProdTreeList',
   GetHouseTreeList = '/WMS/GetHouseModel',
   GetHouseOrgTreeList = '/WMS/GetHouseModelOrg',
   GetCreateBillCode = '/WMS/CreateBillCode',
@@ -433,6 +435,24 @@
   return data.Data;
 }
 
+export function getProdList(params: string) {
+  const rmParams = genAction('SYS_ROLE_PROD', " ROLE_CODE = '" + params + "'");
+  return getRoleProd(rmParams);
+}
+async function getRoleProd(params: ApiAction<string>) {
+  const data = await defHttp.post<ApiAction<iSYS_ROLE_PROD[]>>(
+    {
+      url: Api.EntityList,
+      params,
+    },
+    {
+      errorMessageMode: 'modal',
+      isTransformResponse: false,
+    },
+  );
+  return data.Data;
+}
+
 /*
  * 鑾峰彇瑙掕壊浠撳簱鍒楄〃锛岀敤浜庤鑹叉巿鏉冧粨搴撳垪琛�
  */

--
Gitblit v1.9.3