Compare commits

...

2 Commits

Author SHA1 Message Date
zsq
e6a4474b3f 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
2026-04-08 17:56:29 +08:00
Your Name
2040d6ee3a fix:更新BUG档案
All checks were successful
Build and Push Docker Image / build (push) Successful in 5m22s
2026-04-08 16:49:13 +08:00
2 changed files with 12 additions and 3 deletions

View File

@ -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: { '^': '' },
},

View File

@ -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 (
<BetaSchemaForm<ApiTypes.Archive.HouseRegisters.Store>
{...MyModalFormProps.props}
@ -26,7 +35,7 @@ export default function Delivery(props: MyBetaModalFormProps) {
<MyButtons.View
title={props.title}
size={props.item?.size || 'small'}
disabled={props.item?.house_occupants?.length}
disabled={GetOwners()}
type="primary"
/>
}