Browse Source

优化档口管理

tags/小炒逻辑变更前
yangwenhua 2 years ago
parent
commit
5b6e8610da
2 changed files with 23 additions and 3 deletions
  1. +3
    -3
      src/pages/card/gateAdmin/index.jsx
  2. +20
    -0
      src/pages/card/service.js

+ 3
- 3
src/pages/card/gateAdmin/index.jsx View File

@@ -157,7 +157,7 @@ const GateAdmin = () => {
const onFinish = async (values) => { const onFinish = async (values) => {
if (values.id) { if (values.id) {
values.remaek = html; values.remaek = html;
const response = await cardAPI.UpdateGateInfo(values, TenantId);
const response = await cardAPI.UpdateGateInfoNew(values, TenantId);
if (response.statusCode === 200) { if (response.statusCode === 200) {
message.success('更新档口成功!'); message.success('更新档口成功!');
setIsModalOpen(false); setIsModalOpen(false);
@@ -193,10 +193,10 @@ const GateAdmin = () => {
request={ request={
async () => { async () => {
if (currentStore && TenantId) { 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) { if (response.statusCode === 200) {
return { return {
data: response.data.data,
data: response.data.data.data,
success: true, success: true,
total: response.data.total total: response.data.total
} }


+ 20
- 0
src/pages/card/service.js View File

@@ -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查询 档口列表 //根据门店ID查询 档口列表
GetGateListByStoreList(StoreId) { GetGateListByStoreList(StoreId) {
return request(`/kitchen/api/GateInfo/gatealllist?StoreId=${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 */ /** 档口管理:End */


/** 刷卡机管理:Start */ /** 刷卡机管理:Start */


Loading…
Cancel
Save