Commit da36d2d8 authored by 武广's avatar 武广

fix: 修改获取门店列表接口

parent f4426a89
...@@ -244,7 +244,7 @@ const ServiceGoods = options => { ...@@ -244,7 +244,7 @@ const ServiceGoods = options => {
const shopGetBySupplierIdResponse = async () => { const shopGetBySupplierIdResponse = async () => {
if (!supplierIdList.length) { if (!supplierIdList.length) {
const result = await shopGetBySupplierId(); const result = await shopGetBySupplierId(3);
setSupplierIdList(result.data); setSupplierIdList(result.data);
} }
}; };
......
...@@ -87,11 +87,22 @@ export const supplierListQuery = () => ...@@ -87,11 +87,22 @@ export const supplierListQuery = () =>
// supplierId: 供应商id(优先使用token中的supplierId,这里可以传任意值,建议传0) // supplierId: 供应商id(优先使用token中的supplierId,这里可以传任意值,建议传0)
// state: 状态:-1-全部,1-启用,0-禁用 // state: 状态:-1-全部,1-启用,0-禁用
export const shopGetBySupplierId = (state = 1, supplierId = 0) => // export const shopGetBySupplierId = (state = 1, supplierId = 0) =>
request.get(`/shop/getBySupplierId/${supplierId}/${state}`, { // request.get(`/shop/getBySupplierId/${supplierId}/${state}`, {
prefix: goodsApi, // prefix: goodsApi,
headers, // headers,
}); // });
export const shopGetBySupplierId = (productBusiness, state = 1) =>
request.get(
`/api/merchants/shops/getBySupplierId?${stringify({
state,
productBusiness,
})}`,
{
prefix: goodsApi,
headers,
},
);
export const getByProductType = type => export const getByProductType = type =>
request.get(`/product/category/getByProductType/${type}`, { request.get(`/product/category/getByProductType/${type}`, {
prefix: goodsApi, prefix: goodsApi,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment