Commit 71df50a9 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 处理新建价格策略自营商城取参数错误问题

parent 064523f4
...@@ -46,14 +46,12 @@ const ProductModal: React.FC<ProductModalProps> = (props) => { ...@@ -46,14 +46,12 @@ const ProductModal: React.FC<ProductModalProps> = (props) => {
// 指定商品 // 指定商品
const fetchProductList = async (params) => { const fetchProductList = async (params) => {
const shopId = schemaAction.getFieldValue('shopId') const values = schemaAction.getFieldState('shopId')['values']
let shopInfo: any = GlobalConfig.web.shopInfo.filter(item => item.id === shopId)
const res = await getProductCommodityGetStrategyCommodityList({ const res = await getProductCommodityGetStrategyCommodityList({
...params, ...params,
type: shopInfo[0]["type"], type: values[1]["type"],
environment: shopInfo[0].environment, environment: values[1]['environment'],
shopId, shopId: values[0],
// priceTypeList: [1, 2], // priceTypeList: [1, 2],
}) })
return res.data return res.data
......
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