|
@@ -58,8 +58,7 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
|
|
|
if (key !== defaultSelectedKey) {
|
|
if (key !== defaultSelectedKey) {
|
|
|
changePriority(key, id)
|
|
changePriority(key, id)
|
|
|
}
|
|
}
|
|
|
- }}
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ }}>
|
|
|
<Menu.Item key="1">1</Menu.Item>
|
|
<Menu.Item key="1">1</Menu.Item>
|
|
|
<Menu.Item key="2">2</Menu.Item>
|
|
<Menu.Item key="2">2</Menu.Item>
|
|
|
<Menu.Item key="3">3</Menu.Item>
|
|
<Menu.Item key="3">3</Menu.Item>
|
|
@@ -87,12 +86,10 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
|
|
|
title: '所有部门',
|
|
title: '所有部门',
|
|
|
dataIndex: 'department',
|
|
dataIndex: 'department',
|
|
|
width: 100,
|
|
width: 100,
|
|
|
- filters: Array.from(
|
|
|
|
|
- new Set(client.client?.map(item => item.department)).map(item => ({
|
|
|
|
|
- text: item,
|
|
|
|
|
- value: item
|
|
|
|
|
- }))
|
|
|
|
|
- ),
|
|
|
|
|
|
|
+ filters: Array.from(new Set(client.client?.map(item => item.department))).map(item => ({
|
|
|
|
|
+ text: item,
|
|
|
|
|
+ value: item
|
|
|
|
|
+ })),
|
|
|
onFilter: (value, item) => item.department === value
|
|
onFilter: (value, item) => item.department === value
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -104,8 +101,7 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
|
|
|
<div className="text-primary hover:text-hex-967bbd">
|
|
<div className="text-primary hover:text-hex-967bbd">
|
|
|
<span
|
|
<span
|
|
|
onClick={() => dispatchModal('D_CLIENT_DETAIL', { dataId: record.id })}
|
|
onClick={() => dispatchModal('D_CLIENT_DETAIL', { dataId: record.id })}
|
|
|
- className="cursor-pointer "
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ className="cursor-pointer ">
|
|
|
{clientName}
|
|
{clientName}
|
|
|
</span>
|
|
</span>
|
|
|
</div>
|
|
</div>
|
|
@@ -140,8 +136,7 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
|
|
|
onClick={() => dispatchModal('D_LOCK_DETAIL', { dataId: record.id })}
|
|
onClick={() => dispatchModal('D_LOCK_DETAIL', { dataId: record.id })}
|
|
|
className={classNames('cursor-pointer hover:text-hex-967bbd', {
|
|
className={classNames('cursor-pointer hover:text-hex-967bbd', {
|
|
|
'text-primary': record.preserveStatus === 3
|
|
'text-primary': record.preserveStatus === 3
|
|
|
- })}
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ })}>
|
|
|
{record.preserveStatus === 3 ? (
|
|
{record.preserveStatus === 3 ? (
|
|
|
<Text delete type="secondary">
|
|
<Text delete type="secondary">
|
|
|
{clientName}
|
|
{clientName}
|
|
@@ -278,8 +273,7 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
|
|
|
dataId: record.ssoId,
|
|
dataId: record.ssoId,
|
|
|
projectType: record.project_type
|
|
projectType: record.project_type
|
|
|
})
|
|
})
|
|
|
- }
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ }>
|
|
|
{text}
|
|
{text}
|
|
|
</div>
|
|
</div>
|
|
|
)
|
|
)
|
|
@@ -428,8 +422,7 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
|
|
|
ghost
|
|
ghost
|
|
|
size="small"
|
|
size="small"
|
|
|
className="mr-1"
|
|
className="mr-1"
|
|
|
- onClick={() => dispatchModal('M_RECORD_ADD', { onConfirm: handleAddCustomerService })}
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ onClick={() => dispatchModal('M_RECORD_ADD', { onConfirm: handleAddCustomerService })}>
|
|
|
<Plus className="mr-1" /> 添加服务记录
|
|
<Plus className="mr-1" /> 添加服务记录
|
|
|
</Button>
|
|
</Button>
|
|
|
<Button
|
|
<Button
|
|
@@ -448,8 +441,7 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
|
|
|
landmarks: customer.landmarks
|
|
landmarks: customer.landmarks
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
- }
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ }>
|
|
|
<Plus className="mr-1" />
|
|
<Plus className="mr-1" />
|
|
|
客户
|
|
客户
|
|
|
</Button>
|
|
</Button>
|