|
|
@@ -13,11 +13,11 @@ import { useModal } from '@/components/Modal'
|
|
|
const dataTypeEunm = {
|
|
|
0: {
|
|
|
key: 'client',
|
|
|
- title: '新增联系人'
|
|
|
+ title: '新增客户'
|
|
|
},
|
|
|
1: {
|
|
|
key: 'customer',
|
|
|
- title: '新增客户'
|
|
|
+ title: '新增单位'
|
|
|
},
|
|
|
2: {
|
|
|
key: 'business',
|
|
|
@@ -47,8 +47,8 @@ const renderBadge = (count, active = false) => {
|
|
|
const ServiceRatioPanels = ({ staffIds, cyclical, dataPermission }) => {
|
|
|
const { toggleDrawer, setDrawerProps } = useModal()
|
|
|
const activeKeyMap = {
|
|
|
- 0: { key: 'clientName', title: '联系人', id: 'clientId' },
|
|
|
- 1: { key: 'customerName', title: '客户', id: 'customerId' },
|
|
|
+ 0: { key: 'clientName', title: '客户', id: 'clientId' },
|
|
|
+ 1: { key: 'customerName', title: '单位', id: 'customerId' },
|
|
|
2: { key: 'businessName', title: '商机', id: 'businessId' }
|
|
|
}
|
|
|
const [state, setState] = useState({
|
|
|
@@ -132,7 +132,7 @@ const ServiceRatioPanels = ({ staffIds, cyclical, dataPermission }) => {
|
|
|
key: '0',
|
|
|
label: (
|
|
|
<span>
|
|
|
- 联系人
|
|
|
+ 客户
|
|
|
{renderBadge(state.total, state.activeKey === '0')}
|
|
|
</span>
|
|
|
)
|
|
|
@@ -141,7 +141,7 @@ const ServiceRatioPanels = ({ staffIds, cyclical, dataPermission }) => {
|
|
|
key: '1',
|
|
|
label: (
|
|
|
<span>
|
|
|
- 客户
|
|
|
+ 单位
|
|
|
{renderBadge(state.total, state.activeKey === '1')}
|
|
|
</span>
|
|
|
)
|
|
|
@@ -194,7 +194,7 @@ const RatioPanels = ({ dataType, staffIds, retioCyclical, dataPermission }) => {
|
|
|
})
|
|
|
toggleDrawer()
|
|
|
}
|
|
|
- // 展示客户
|
|
|
+ // 展示单位
|
|
|
const showDrawerComapny = id => {
|
|
|
setDrawerProps({
|
|
|
zIndex: '1200',
|
|
|
@@ -212,7 +212,7 @@ const RatioPanels = ({ dataType, staffIds, retioCyclical, dataPermission }) => {
|
|
|
0: [
|
|
|
{
|
|
|
dataIndex: 'clientName',
|
|
|
- title: '联系人名称',
|
|
|
+ title: '客户名称',
|
|
|
width: '10%',
|
|
|
render: (clientName, record) => (
|
|
|
<span
|
|
|
@@ -224,7 +224,7 @@ const RatioPanels = ({ dataType, staffIds, retioCyclical, dataPermission }) => {
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'companyName',
|
|
|
- title: '客户名称',
|
|
|
+ title: '单位名称',
|
|
|
width: '16%'
|
|
|
},
|
|
|
{
|
|
|
@@ -261,7 +261,7 @@ const RatioPanels = ({ dataType, staffIds, retioCyclical, dataPermission }) => {
|
|
|
1: [
|
|
|
{
|
|
|
dataIndex: 'companyName',
|
|
|
- title: '客户名称',
|
|
|
+ title: '单位名称',
|
|
|
width: '16%',
|
|
|
render: (companyName, record) => (
|
|
|
<span
|
|
|
@@ -278,13 +278,13 @@ const RatioPanels = ({ dataType, staffIds, retioCyclical, dataPermission }) => {
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'nature',
|
|
|
- title: '客户性质',
|
|
|
+ title: '单位性质',
|
|
|
ellipsis: true,
|
|
|
width: '14%'
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'phone',
|
|
|
- title: '客户电话',
|
|
|
+ title: '单位电话',
|
|
|
width: '5%'
|
|
|
},
|
|
|
{
|
|
|
@@ -306,7 +306,7 @@ const RatioPanels = ({ dataType, staffIds, retioCyclical, dataPermission }) => {
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'customerName',
|
|
|
- title: '客户名称',
|
|
|
+ title: '单位名称',
|
|
|
width: '20%'
|
|
|
},
|
|
|
{
|