|
@@ -6,11 +6,14 @@ import { apiSoftwareAddLonglelog } from '@/services/lock'
|
|
|
import { ProductLabel } from '@/pages/Product/Lock/LockStore'
|
|
import { ProductLabel } from '@/pages/Product/Lock/LockStore'
|
|
|
import { lockTypeEnum } from './LockModal'
|
|
import { lockTypeEnum } from './LockModal'
|
|
|
import LockModal from './LockModal'
|
|
import LockModal from './LockModal'
|
|
|
|
|
+import ClientDetail from '@/pages/Customer/Client/components/ClientDetail'
|
|
|
import { servicelogEnum, showProductsStatus, showNewLongleStatus, showMarkStatus } from './consts'
|
|
import { servicelogEnum, showProductsStatus, showNewLongleStatus, showMarkStatus } from './consts'
|
|
|
import { useDispatch } from 'dva'
|
|
import { useDispatch } from 'dva'
|
|
|
|
|
+import { useModal } from '@/components/Modal'
|
|
|
|
|
|
|
|
const LockTabList = props => {
|
|
const LockTabList = props => {
|
|
|
- const { longleLog, longleId, keyNum } = props
|
|
|
|
|
|
|
+ const { longleLog, longleId, keyNum, clientId } = props
|
|
|
|
|
+ const { toggleDrawer, setDrawerProps } = useModal()
|
|
|
const dispatch = useDispatch()
|
|
const dispatch = useDispatch()
|
|
|
const [state, setState] = useState({
|
|
const [state, setState] = useState({
|
|
|
visible: false
|
|
visible: false
|
|
@@ -43,6 +46,20 @@ const LockTabList = props => {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ const handleClientClick = () => {
|
|
|
|
|
+ toggleDrawer()
|
|
|
|
|
+ setDrawerProps({
|
|
|
|
|
+ closable: true,
|
|
|
|
|
+ onClose: () => toggleDrawer(),
|
|
|
|
|
+ bodyStyle: {
|
|
|
|
|
+ height: '100vh',
|
|
|
|
|
+ overflowY: 'hidden'
|
|
|
|
|
+ },
|
|
|
|
|
+ children: <ClientDetail dataId={clientId} />
|
|
|
|
|
+ })
|
|
|
|
|
+ toggleDrawer()
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
return (
|
|
return (
|
|
|
<div>
|
|
<div>
|
|
|
<div className="pl-4">
|
|
<div className="pl-4">
|
|
@@ -60,7 +77,10 @@ const LockTabList = props => {
|
|
|
<List.Item>
|
|
<List.Item>
|
|
|
<Row className="w-full">
|
|
<Row className="w-full">
|
|
|
<Col span="8">
|
|
<Col span="8">
|
|
|
- {servicelogEnum[item.status]} <a>{item.client}</a>
|
|
|
|
|
|
|
+ {servicelogEnum[item.status]}{' '}
|
|
|
|
|
+ <span className="textPurple" onClick={handleClientClick}>
|
|
|
|
|
+ {item.client}
|
|
|
|
|
+ </span>
|
|
|
<br />
|
|
<br />
|
|
|
<a>@{item.operator}</a>{' '}
|
|
<a>@{item.operator}</a>{' '}
|
|
|
<span className="text-gray-500">
|
|
<span className="text-gray-500">
|