Merge pull request 'fix:更新BUG档案' (#9) from develop into main
All checks were successful
Build and Push Docker Image / build (push) Successful in 5m4s

Reviewed-on: #9
This commit is contained in:
zsq 2026-04-08 17:56:29 +08:00
commit e6a4474b3f
2 changed files with 12 additions and 3 deletions

View File

@ -17,9 +17,9 @@ export default defineConfig({
}, },
proxy: { proxy: {
'/api/': { '/api/': {
// target: 'http://10.39.13.78:8001/', target: 'http://10.39.13.78:8002/',
// 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: { '^': '' },
}, },

View File

@ -16,6 +16,15 @@ 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}
@ -26,7 +35,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={props.item?.house_occupants?.length} disabled={GetOwners()}
type="primary" type="primary"
/> />
} }