|
|
@@ -4,13 +4,26 @@ import { dayjsFormat } from '@/utils/utils'
|
|
|
import consts from '@/consts'
|
|
|
import { apiSoftwareAddLonglelog } from '@/services/lock'
|
|
|
import { ProductLabel } from '@/pages/Product/Lock/LockStore'
|
|
|
-import { lockTypeEnum } from './LockModal'
|
|
|
-import LockModal from './LockModal'
|
|
|
+import LockModal, { lockTypeEnum } from './LockModal'
|
|
|
import ClientDetail from '@/pages/Customer/Client/components/ClientDetail'
|
|
|
import { servicelogEnum, showProductsStatus, showNewLongleStatus, showMarkStatus } from './consts'
|
|
|
import { useDispatch } from 'dva'
|
|
|
import { useModal } from '@/components/Modal'
|
|
|
|
|
|
+const RenderLongleCon = ({ longleService }) => {
|
|
|
+ return (
|
|
|
+ <>
|
|
|
+ {showProductsStatus.includes(longleService.status) ? (
|
|
|
+ <ProductLabel data={longleService.product} />
|
|
|
+ ) : null}
|
|
|
+ {showNewLongleStatus.includes(longleService.status) ? (
|
|
|
+ <span>{longleService.NewKeyNum}</span>
|
|
|
+ ) : null}
|
|
|
+ {showMarkStatus.includes(longleService.status) ? <span>{longleService.mark}</span> : null}
|
|
|
+ </>
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
const LockTabList = props => {
|
|
|
const { longleLog, longleId, keyNum, clientId } = props
|
|
|
const { toggleDrawer, setDrawerProps } = useModal()
|
|
|
@@ -166,19 +179,4 @@ const LockTabList = props => {
|
|
|
)
|
|
|
}
|
|
|
|
|
|
-const RenderLongleCon = ({ longleService }) => {
|
|
|
- // console.log(longleService)
|
|
|
- return (
|
|
|
- <>
|
|
|
- {showProductsStatus.includes(longleService.status) ? (
|
|
|
- <ProductLabel data={longleService.product} />
|
|
|
- ) : null}
|
|
|
- {showNewLongleStatus.includes(longleService.status) ? (
|
|
|
- <span>{longleService.NewKeyNum}</span>
|
|
|
- ) : null}
|
|
|
- {showMarkStatus.includes(longleService.status) ? <span>{longleService.mark}</span> : null}
|
|
|
- </>
|
|
|
- )
|
|
|
-}
|
|
|
-
|
|
|
export default LockTabList
|