|
@@ -46,7 +46,8 @@ 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>
|
|
@@ -90,7 +91,10 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
|
|
|
ellipsis: true,
|
|
ellipsis: true,
|
|
|
render: (clientName, record) => (
|
|
render: (clientName, record) => (
|
|
|
<div className="text-primary hover:text-hex-967bbd">
|
|
<div className="text-primary hover:text-hex-967bbd">
|
|
|
- <span onClick={() => dispatchModal('D_CLIENT_DETAIL', { dataId: record.id })} className="cursor-pointer ">
|
|
|
|
|
|
|
+ <span
|
|
|
|
|
+ onClick={() => dispatchModal('D_CLIENT_DETAIL', { dataId: record.id })}
|
|
|
|
|
+ className="cursor-pointer "
|
|
|
|
|
+ >
|
|
|
{clientName}
|
|
{clientName}
|
|
|
</span>
|
|
</span>
|
|
|
</div>
|
|
</div>
|
|
@@ -123,9 +127,11 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
|
|
|
render: (clientName, record) => (
|
|
render: (clientName, record) => (
|
|
|
<span
|
|
<span
|
|
|
onClick={() => dispatchModal('D_LOCK_DETAIL', { dataId: record.id })}
|
|
onClick={() => dispatchModal('D_LOCK_DETAIL', { dataId: record.id })}
|
|
|
- className={['cursor-pointer hover:text-hex-967bbd', record.preserveStatus === 3 ? null : 'text-primary'].join(
|
|
|
|
|
- ' '
|
|
|
|
|
- )}>
|
|
|
|
|
|
|
+ className={[
|
|
|
|
|
+ 'cursor-pointer hover:text-hex-967bbd',
|
|
|
|
|
+ record.preserveStatus === 3 ? null : 'text-primary'
|
|
|
|
|
+ ].join(' ')}
|
|
|
|
|
+ >
|
|
|
{record.preserveStatus === 3 ? (
|
|
{record.preserveStatus === 3 ? (
|
|
|
<Text delete type="secondary">
|
|
<Text delete type="secondary">
|
|
|
{clientName}
|
|
{clientName}
|
|
@@ -214,7 +220,8 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
|
|
|
render: (text, record) => (
|
|
render: (text, record) => (
|
|
|
<span
|
|
<span
|
|
|
onClick={() => dispatchModal('D_BUSINESS_DETAIL', { dataId: record.id })}
|
|
onClick={() => dispatchModal('D_BUSINESS_DETAIL', { dataId: record.id })}
|
|
|
- className="text-primary cursor-pointer hover:text-[#967bbd]">
|
|
|
|
|
|
|
+ className="text-primary cursor-pointer hover:text-[#967bbd]"
|
|
|
|
|
+ >
|
|
|
{text}
|
|
{text}
|
|
|
</span>
|
|
</span>
|
|
|
)
|
|
)
|
|
@@ -260,6 +267,7 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
|
|
|
payload: updatePayload
|
|
payload: updatePayload
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
+ return code === consts.RET_CODE.SUCCESS
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const handleAddClient = async values => {
|
|
const handleAddClient = async values => {
|
|
@@ -298,14 +306,6 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
|
|
|
scroll={{ y: clientHeight }}
|
|
scroll={{ y: clientHeight }}
|
|
|
components={vList}
|
|
components={vList}
|
|
|
/>
|
|
/>
|
|
|
- {/* <Table
|
|
|
|
|
- virtualized
|
|
|
|
|
- scroll={{ y: clientHeight }}
|
|
|
|
|
- border={false}
|
|
|
|
|
- columns={columns}
|
|
|
|
|
- data={client.client}
|
|
|
|
|
- pagination={false}
|
|
|
|
|
- /> */}
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</TabPane>
|
|
</TabPane>
|
|
|
<TabPane tab={<span>软件锁{renderBadge(software.total, true)}</span>} key="2">
|
|
<TabPane tab={<span>软件锁{renderBadge(software.total, true)}</span>} key="2">
|
|
@@ -341,6 +341,15 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
|
|
|
<div className="sheet-btns pl-15px pt-15px flex items-center">
|
|
<div className="sheet-btns pl-15px pt-15px flex items-center">
|
|
|
<Button
|
|
<Button
|
|
|
type="primary"
|
|
type="primary"
|
|
|
|
|
+ ghost
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ className="mr-1"
|
|
|
|
|
+ onClick={() => dispatchModal('M_RECORD_ADD', { onConfirm: handleAddCustomerService })}
|
|
|
|
|
+ >
|
|
|
|
|
+ <Plus className="mr-1" /> 添加服务记录
|
|
|
|
|
+ </Button>
|
|
|
|
|
+ <Button
|
|
|
|
|
+ type="primary"
|
|
|
className="mr-1"
|
|
className="mr-1"
|
|
|
size="small"
|
|
size="small"
|
|
|
ghost
|
|
ghost
|
|
@@ -355,11 +364,11 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
|
|
|
landmarks: customer.landmarks
|
|
landmarks: customer.landmarks
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
- }>
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ >
|
|
|
<Plus className="mr-1" />
|
|
<Plus className="mr-1" />
|
|
|
客户
|
|
客户
|
|
|
</Button>
|
|
</Button>
|
|
|
- <AddRecord onConfirm={handleAddCustomerService} />
|
|
|
|
|
<SyncClient actionPayload={updatePayload} customer={customer} client={client.client} />
|
|
<SyncClient actionPayload={updatePayload} customer={customer} client={client.client} />
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|