Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
merchant-manage-ui
Commits
da36d2d8
Commit
da36d2d8
authored
Apr 19, 2023
by
武广
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改获取门店列表接口
parent
f4426a89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
6 deletions
+17
-6
index.jsx
src/pages/ServiceGoods/index.jsx
+1
-1
service.js
src/pages/ServiceGoods/service.js
+16
-5
No files found.
src/pages/ServiceGoods/index.jsx
View file @
da36d2d8
...
@@ -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
);
}
}
};
};
...
...
src/pages/ServiceGoods/service.js
View file @
da36d2d8
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment