Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
linweijiong
jinfa-platform
Commits
11e921cc
Commit
11e921cc
authored
Apr 22, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 渠道商城进货单相关接口添加参数
parent
ac44fb24
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
index.tsx
src/pages/lxMall/commodityDetail/index.tsx
+2
-0
index.tsx
src/pages/lxMall/index/index.tsx
+1
-1
index.tsx
src/pages/lxMall/purchaseOrder/index.tsx
+5
-1
No files found.
src/pages/lxMall/commodityDetail/index.tsx
View file @
11e921cc
...
...
@@ -461,6 +461,7 @@ const CommodityDetail = (props) => {
param
.
commodityType
=
2
param
.
channelCommodityUnitPriceId
=
selectCommodityId
param
.
commodityUnitPriceId
=
selectCommodityUnitPriceId
param
.
channelMemberId
=
memberId
postFn
=
PublicApi
.
postSearchShopPurchaseChannelSaveOrUpdatePurchase
break
;
case
LAYOUT_TYPE
.
ichannel
:
...
...
@@ -470,6 +471,7 @@ const CommodityDetail = (props) => {
param
.
commodityType
=
2
param
.
channelCommodityUnitPriceId
=
selectCommodityId
param
.
commodityUnitPriceId
=
selectCommodityUnitPriceId
param
.
channelMemberId
=
memberId
postFn
=
PublicApi
.
postSearchShopPurchaseChannelSaveOrUpdatePurchase
break
;
default
:
...
...
src/pages/lxMall/index/index.tsx
View file @
11e921cc
import
React
,
{
useMemo
,
useEffect
,
useState
}
from
'react'
import
QuickNav
from
'../components/QuickNav'
import
Information
from
'../components/Information'
import
FindMore
from
'../components/FindMore'
//
import FindMore from '../components/FindMore'
import
{
inject
,
observer
}
from
'mobx-react'
import
FloorAnchor
from
'../components/FloorAnchor'
import
{
PublicApi
}
from
'@/services/api'
...
...
src/pages/lxMall/purchaseOrder/index.tsx
View file @
11e921cc
...
...
@@ -60,13 +60,16 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
const
headers
:
{
type
:
number
}
=
{
type
:
1
}
const
param
:
any
=
{}
switch
(
layoutType
)
{
case
LAYOUT_TYPE
.
channel
:
headers
.
type
=
3
param
.
channelMemberId
=
shopInfo
.
memberId
getFn
=
PublicApi
.
getSearchShopPurchaseChannelGetPurchaseList
break
;
case
LAYOUT_TYPE
.
ichannel
:
headers
.
type
=
4
param
.
channelMemberId
=
shopInfo
.
memberId
getFn
=
PublicApi
.
getSearchShopPurchaseChannelGetPurchaseList
break
;
default
:
...
...
@@ -75,7 +78,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
break
;
}
getFn
&&
getFn
(
{}
,
{
headers
}).
then
(
res
=>
{
getFn
&&
getFn
(
param
,
{
headers
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
initPurchaseList
(
res
.
data
)
getCategoryIds
(
res
.
data
)
...
...
@@ -278,6 +281,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
switch
(
layoutType
)
{
case
LAYOUT_TYPE
.
channel
:
case
LAYOUT_TYPE
.
ichannel
:
param
.
channelMemberId
=
shopInfo
.
memberId
param
.
commodityType
=
2
postFn
=
PublicApi
.
postSearchShopPurchaseChannelSaveOrUpdatePurchase
break
...
...
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