Compare commits
No commits in common. "e6a4474b3fbc3f5282075b75203951c1b989c279" and "7573bd79341942a9ab4be393a8b7b7407a5a41f4" have entirely different histories.
e6a4474b3f
...
7573bd7934
@ -17,9 +17,9 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api/': {
|
'/api/': {
|
||||||
target: 'http://10.39.13.78:8002/',
|
// target: 'http://10.39.13.78:8001/',
|
||||||
// target: 'https://test-company.linyikj.com.cn/',
|
// target: 'https://test-company.linyikj.com.cn/',
|
||||||
// target: 'https://company.linyikj.com.cn/',
|
target: 'https://company.linyikj.com.cn/',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: { '^': '' },
|
pathRewrite: { '^': '' },
|
||||||
},
|
},
|
||||||
|
|||||||
@ -16,15 +16,6 @@ import { Form, message } from 'antd';
|
|||||||
|
|
||||||
export default function Delivery(props: MyBetaModalFormProps) {
|
export default function Delivery(props: MyBetaModalFormProps) {
|
||||||
const [form] = Form.useForm();
|
const [form] = Form.useForm();
|
||||||
|
|
||||||
const GetOwners = () => {
|
|
||||||
let owner =
|
|
||||||
props.item?.house_occupants?.filter(
|
|
||||||
(res: any) => res?.house_relation === 'Owner',
|
|
||||||
) || [];
|
|
||||||
return owner?.length > 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<BetaSchemaForm<ApiTypes.Archive.HouseRegisters.Store>
|
<BetaSchemaForm<ApiTypes.Archive.HouseRegisters.Store>
|
||||||
{...MyModalFormProps.props}
|
{...MyModalFormProps.props}
|
||||||
@ -35,7 +26,7 @@ export default function Delivery(props: MyBetaModalFormProps) {
|
|||||||
<MyButtons.View
|
<MyButtons.View
|
||||||
title={props.title}
|
title={props.title}
|
||||||
size={props.item?.size || 'small'}
|
size={props.item?.size || 'small'}
|
||||||
disabled={GetOwners()}
|
disabled={props.item?.house_occupants?.length}
|
||||||
type="primary"
|
type="primary"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user