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