Commit 2b7c938b authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

🐞 fix(商品询价): 修复bug

parent af110b65
......@@ -94,7 +94,7 @@ const AddedFormLayout: React.FC<AddedFormLayoutProps> = (props: any) => {
}
const getMemberInfo = (value) => {
form.setFieldsValue({ "memberName": value.name });
form.setFieldsValue({ "memberName": value.name, "shopId": undefined });
setMenberInfo(value)
setInquiryProduct([])
form.setFieldsValue({
......
......@@ -54,13 +54,6 @@ const BasicInfoLayout: React.FC<BasicInfoLayoutProps> = (props: any) => {
}
]
useEffect(() => {
let shopList = GlobalConfig.web.shopInfo.filter(v => (v.type == 1 && v.environment == 1)).map(
v => v
)
setStoreList(shopList)
}, [])
const handleFetchData = useCallback((params: any) => {
return new Promise(resolve => {
PublicApi.getMemberManagePlatformProviderPage({ ...params }).then(res => {
......@@ -78,8 +71,24 @@ const BasicInfoLayout: React.FC<BasicInfoLayoutProps> = (props: any) => {
setVisible(flag)
}
const getShopListFn = (memberId: number, roleId: number) => {
PublicApi.postManageWebShopWebAll({
siteId: GlobalConfig.global.siteInfo.id,
environment: 1,
hasMemberType: 1,
memberId,
roleId,
}, {ctlType: 'none'}).then(res => {
if (res.code !== 1000) {
return
}
setStoreList(res.data)
})
}
const handleLogisticOnOk = (selectRowKeys: string[] | number[], selectRowRecord: any) => {
const target = selectRowRecord[0];
getShopListFn(target.memberId, target.roleId);
getMemberInfo(target)
setMember(target)
toggle(false)
......
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