fix:更新装修验收指派 #24
@ -1,4 +1,4 @@
|
||||
import { MyColumns, MyProTableProps } from '@/common';
|
||||
import { MyColumns, MyPageContainer, MyProTableProps } from '@/common';
|
||||
import { Selects } from '@/components/Select';
|
||||
import { Apis } from '@/gen/Apis';
|
||||
import {
|
||||
@ -18,8 +18,14 @@ export const RenovationWorkOrdersStatusEnum = {
|
||||
Closed: { text: '已关闭', color: '#6C757D', value: 'Closed' },
|
||||
};
|
||||
|
||||
export default function Index({ title = '装修巡检' }) {
|
||||
export default function Index({ title = '装修验收' }) {
|
||||
return (
|
||||
<MyPageContainer
|
||||
title={title}
|
||||
enableTabs={true}
|
||||
tabKey="renovation_inspection_list"
|
||||
tabLabel={title}
|
||||
>
|
||||
<ProTable<Record<any, any>>
|
||||
{...MyProTableProps.props}
|
||||
headerTitle={title}
|
||||
@ -131,7 +137,11 @@ export default function Index({ title = '装修巡检' }) {
|
||||
MyColumns.Option({
|
||||
render: (_, item: any, index, action) => (
|
||||
<Space key={index}>
|
||||
<WorkOrderShow item={item} title="详情" reload={action?.reload} />
|
||||
<WorkOrderShow
|
||||
item={item}
|
||||
title="详情"
|
||||
reload={action?.reload}
|
||||
/>
|
||||
<RenovationAssign
|
||||
item={item}
|
||||
reload={action?.reload}
|
||||
@ -142,5 +152,6 @@ export default function Index({ title = '装修巡检' }) {
|
||||
}),
|
||||
]}
|
||||
/>
|
||||
</MyPageContainer>
|
||||
);
|
||||
}
|
||||
|
||||
@ -28,10 +28,8 @@ export default function WorkOrderAssign(
|
||||
<MyButtons.Default
|
||||
title={props.title || '指派'}
|
||||
disabled={
|
||||
!(
|
||||
props?.item.assign_status === 'Unassigned' &&
|
||||
props?.item.assign_status !== 'Unassigned' &&
|
||||
props?.item.type === 'RenovationAcceptance'
|
||||
)
|
||||
}
|
||||
type="primary"
|
||||
/>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user