Commit 11e921cc authored by GuanHua's avatar GuanHua

fix: 渠道商城进货单相关接口添加参数

parent ac44fb24
......@@ -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:
......
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'
......
......@@ -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
......
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