Commit 8c56bf1a authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 处理新增编辑商品区域选择变为只选省级报错问题

parent 344c771f
......@@ -207,7 +207,7 @@ const AddProducts: React.FC<{}> = (props) => {
let _temp: any = {}
let pobj = areaOption.filter(_ => _.code === _itme[0])[0]
let cobj = pobj.areaResponses.filter(__ => __.code === _itme[1])[0]
let robj = cobj.areaResponses ? cobj.areaResponses.filter(___ => ___.code === _itme[2])[0] : null
let robj = cobj?.areaResponses ? cobj.areaResponses.filter(___ => ___.code === _itme[2])[0] : null
_temp.provinceCode = pobj?.code || null
_temp.provinceName = pobj?.name || null
_temp.cityCode = cobj?.code || null
......
......@@ -145,7 +145,6 @@ const BatchPositionSetting: React.FC<BatchPositionSettingProps> = (props) => {
const handleAddMemberBtn = () => {
const shopType = addSchemaAction.getFieldValue('shopType');
const itemNo = addSchemaAction.getFieldValue('commodityList');
console.log(shopType, itemNo, 'iii')
if (!shopType) {
message.error(intl.formatMessage({ id: 'repositories.components.batchPositionSetting.error.1' }));
return;
......
......@@ -16,7 +16,7 @@ import SearchSelect from '@/components/NiceForm/components/SearchSelect'
import Search from '@/components/NiceForm/components/Search'
import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilterSearch'
import Submit from '@/components/NiceForm/components/Submit'
import { MALL_TYPE } from '@/constants';
import { MALL_TYPE } from '@/constants'
import { fectchShopListsSource } from '@/utils/type'
import { getMemberManagePageitems, postMemberManageAllPageByshoptype } from '@/services/MemberV2Api'
import { getProductCommodityCommonGetCommodityListByStock, getProductFreightSpaceDetails, getProductFreightSpaceMamberList, getProductGoodsGetGoods, getProductSelectGetSelectBrand, getProductSelectGetSelectCustomerCategory } from '@/services/ProductV2Api'
......@@ -544,7 +544,6 @@ const PositionSetting: React.FC<PositionSettingProps> = (props) => {
}
}
})
// FormEffectHooks.
}}
onSubmit={handleSubmit}
......
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