From 5b6e8610da2642692106de751fa5a530c2c1d029 Mon Sep 17 00:00:00 2001 From: yangwenhua <1289978696@qq.com> Date: Fri, 14 Oct 2022 16:14:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=A1=A3=E5=8F=A3=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/card/gateAdmin/index.jsx | 6 +++--- src/pages/card/service.js | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/src/pages/card/gateAdmin/index.jsx b/src/pages/card/gateAdmin/index.jsx index 068f7a9..a840fd3 100644 --- a/src/pages/card/gateAdmin/index.jsx +++ b/src/pages/card/gateAdmin/index.jsx @@ -157,7 +157,7 @@ const GateAdmin = () => { const onFinish = async (values) => { if (values.id) { values.remaek = html; - const response = await cardAPI.UpdateGateInfo(values, TenantId); + const response = await cardAPI.UpdateGateInfoNew(values, TenantId); if (response.statusCode === 200) { message.success('更新档口成功!'); setIsModalOpen(false); @@ -193,10 +193,10 @@ const GateAdmin = () => { request={ async () => { if (currentStore && TenantId) { - const response = await cardAPI.GetGateListByStorePage(currentStore, current, pageSize, TenantId); + const response = await cardAPI.GetGateListByStorePageNew(currentStore, current, pageSize, TenantId); if (response.statusCode === 200) { return { - data: response.data.data, + data: response.data.data.data, success: true, total: response.data.total } diff --git a/src/pages/card/service.js b/src/pages/card/service.js index 1a02770..eeae322 100644 --- a/src/pages/card/service.js +++ b/src/pages/card/service.js @@ -77,6 +77,16 @@ export default { }); }, + //根据门店ID查询 档口分页列表 + GetGateListByStorePageNew(StoreId, Current, PageSize, TenantId = '') { + return request(`/kitchen/api/one-card/gate-list?StoreId=${StoreId}&Current=${Current}&PageSize=${PageSize}`, { + method: 'GET', + headers: { + TenantId: TenantId + } + }); + }, + //根据门店ID查询 档口列表 GetGateListByStoreList(StoreId) { return request(`/kitchen/api/GateInfo/gatealllist?StoreId=${StoreId}`, { @@ -95,6 +105,16 @@ export default { }); }, + UpdateGateInfoNew(data, TenantId = '') { + return request(`/kitchen/api/one-card`, { + method: 'PUT', + data, + headers: { + TenantId: TenantId + } + }); + }, + /** 档口管理:End */ /** 刷卡机管理:Start */