Commit 391d27ee authored by linweijiong's avatar linweijiong

fix:到货区域需调用接口返回

parent a66d9bfb
......@@ -11,7 +11,7 @@ import { createFormActions } from '@formily/antd'
// import HeaderSelectCompany from '@common/components/HeaderSelectCompany'
import { useAsyncInitSelect } from '@/formSchema/effects/useAsyncInitSelect'
// import { getManagePaasCurrencyPaasCurrencyAll } from '@linkseeks/apis'
import {getMemberAbilityMaintenancePageitems} from '@/services/MemberV2Api';
import {getMemberAbilityMaintenancePageitems,getMemberParameterManageGetArrivalArea} from '@/services/MemberV2Api';
import { FORM_FILTER_PATH } from '@/formSchema/const'
import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilterSearch'
/**
......@@ -213,6 +213,22 @@ const Index = () => {
currencyType: [],
}
}
const getManageGetArrivalArea = async () => {
const res = await getMemberParameterManageGetArrivalArea()
if (res.code === 1000) {
const List = res?.data || []
return {
area: List.map((item) => ({
label: item.name,
value: String(item.key),
})),
}
}
return {
area: [],
}
}
return (
<PageHeaderWrapper
......@@ -237,6 +253,7 @@ const Index = () => {
}}
effects={($, actions) => {
useAsyncInitSelect(['currencyType'], getCurrencyIdList)
useAsyncInitSelect(['area'], getManageGetArrivalArea)
useStateFilterSearchLinkageEffect($, actions, 'vendor', FORM_FILTER_PATH)
}}
/>
......
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