diff --git a/.umirc.ts b/.umirc.ts index 9a83ff9..437b3a3 100644 --- a/.umirc.ts +++ b/.umirc.ts @@ -17,9 +17,9 @@ export default defineConfig({ }, proxy: { '/api/': { - // target: 'http://10.39.13.78:8001/', + target: 'http://10.39.13.78:8002/', // target: 'https://test-company.linyikj.com.cn/', - target: 'https://company.linyikj.com.cn/', + // target: 'https://company.linyikj.com.cn/', changeOrigin: true, pathRewrite: { '^': '' }, }, diff --git a/src/pages/customer/archive/modals/Delivery.tsx b/src/pages/customer/archive/modals/Delivery.tsx index de3c8f5..fa9ab2a 100644 --- a/src/pages/customer/archive/modals/Delivery.tsx +++ b/src/pages/customer/archive/modals/Delivery.tsx @@ -16,6 +16,15 @@ import { Form, message } from 'antd'; export default function Delivery(props: MyBetaModalFormProps) { const [form] = Form.useForm(); + + const GetOwners = () => { + let owner = + props.item?.house_occupants?.filter( + (res: any) => res?.house_relation === 'Owner', + ) || []; + return owner?.length > 0; + }; + return ( {...MyModalFormProps.props} @@ -26,7 +35,7 @@ export default function Delivery(props: MyBetaModalFormProps) { }