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 */