From 0a8a3f71f2e50f0603077197d9b1971431a64b36 Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期三, 28 八月 2024 23:24:33 +0800
Subject: [PATCH] 条码规则更新

---
 src/api/tigerapi/wms/region.ts |   39 +++------------------------------------
 1 files changed, 3 insertions(+), 36 deletions(-)

diff --git a/src/api/tigerapi/wms/region.ts b/src/api/tigerapi/wms/region.ts
index 3902d7a..a2bc1a1 100644
--- a/src/api/tigerapi/wms/region.ts
+++ b/src/api/tigerapi/wms/region.ts
@@ -1,40 +1,7 @@
 import { buildUUID } from '../../../utils/uuid';
-import { ApiActionPage } from '../../model/baseModel';
-import {
-  RegionListItem,
-  RegionPageParams,
-  RegionPageListGetResultModel,
-} from '../model/warehoueseModel';
-import { genAction, Api, genActionPage } from '../system';
+import { RegionListItem } from '../model/warehoueseModel';
+import { genAction, Api } from '../system';
 import { defHttp } from '/@/utils/http/axios';
-
-/*
- * 鑾峰彇鍖哄煙鍒嗛〉鍒楄〃
- */
-export const getRegionListByPage = async (params: RegionPageParams) => {
-  let sqlcmd = '';
-  if (params?.REGION_CODE != undefined && params?.REGION_CODE != '') {
-    sqlcmd += "And REGION_CODE like '%" + params?.REGION_CODE + "%'";
-  }
-  if (params?.REGION_NAME != undefined && params?.REGION_NAME != '') {
-    sqlcmd += "And REGION_NAME = '" + params?.REGION_NAME + "'";
-  }
-  const rParams = genActionPage('WMS_REGION', sqlcmd, params.page, params.pageSize);
-  return getRegionListByPageAsync(rParams);
-};
-async function getRegionListByPageAsync(params: ApiActionPage) {
-  const data = await defHttp.post<ApiActionPage>(
-    { url: Api.EntityPageList, params },
-    {
-      isTransformResponse: false,
-    },
-  );
-  const model: RegionPageListGetResultModel = {
-    items: data.Data.data,
-    total: data.Data.totals,
-  };
-  return model;
-}
 
 export const SaveRegion = async (params: RegionListItem, isUpdate: boolean) => {
   let data;
@@ -68,4 +35,4 @@
       isTransformResponse: false,
     },
   );
-};
\ No newline at end of file
+};

--
Gitblit v1.9.3