|
@@ -13,6 +13,7 @@ import AddRecord from '@/pages/Customer/Client/components/ClientDetail/AddRecord
|
|
|
import Detail from '@/pages/Customer/Business/components/BusinessDetail'
|
|
import Detail from '@/pages/Customer/Business/components/BusinessDetail'
|
|
|
import SyncClient from './SyncClient'
|
|
import SyncClient from './SyncClient'
|
|
|
import { longleSellStatusNum } from '@/pages/Product/Lock/LockStore/index'
|
|
import { longleSellStatusNum } from '@/pages/Product/Lock/LockStore/index'
|
|
|
|
|
+import { renderBadge } from '@/pages/Workbench/Dashboard/components/RatioPanels'
|
|
|
|
|
|
|
|
const CompanyTabList = ({ initData, customerId, client, software, customer, business }) => {
|
|
const CompanyTabList = ({ initData, customerId, client, software, customer, business }) => {
|
|
|
const dispatch = useDispatch()
|
|
const dispatch = useDispatch()
|
|
@@ -134,7 +135,8 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
|
|
|
render: (clientName, record) => (
|
|
render: (clientName, record) => (
|
|
|
<span
|
|
<span
|
|
|
onClick={() => showLongleDrawer(record.id)}
|
|
onClick={() => showLongleDrawer(record.id)}
|
|
|
- className="text-primary cursor-pointer hover:text-[#967bbd]">
|
|
|
|
|
|
|
+ className="text-primary cursor-pointer hover:text-[#967bbd]"
|
|
|
|
|
+ >
|
|
|
{clientName}
|
|
{clientName}
|
|
|
</span>
|
|
</span>
|
|
|
)
|
|
)
|
|
@@ -166,7 +168,8 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
|
|
|
render: (text, record) => (
|
|
render: (text, record) => (
|
|
|
<span
|
|
<span
|
|
|
onClick={() => showDrawerBusiness(record.id)}
|
|
onClick={() => showDrawerBusiness(record.id)}
|
|
|
- className="text-primary cursor-pointer hover:text-[#967bbd]">
|
|
|
|
|
|
|
+ className="text-primary cursor-pointer hover:text-[#967bbd]"
|
|
|
|
|
+ >
|
|
|
{text}
|
|
{text}
|
|
|
</span>
|
|
</span>
|
|
|
)
|
|
)
|
|
@@ -231,7 +234,7 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
|
|
|
<div>
|
|
<div>
|
|
|
<div className="pl-15px">
|
|
<div className="pl-15px">
|
|
|
<Tabs>
|
|
<Tabs>
|
|
|
- <TabPane tab="客户" key="客户">
|
|
|
|
|
|
|
+ <TabPane tab={<span>客户{renderBadge(client.total, true)}</span>} key="客户">
|
|
|
<div className="sheet-right-panel" ref={tRef}>
|
|
<div className="sheet-right-panel" ref={tRef}>
|
|
|
<ProTable
|
|
<ProTable
|
|
|
size="small"
|
|
size="small"
|