|
@@ -25,7 +25,7 @@ const RenderLongleCon = ({ longleService }) => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const LockTabList = props => {
|
|
const LockTabList = props => {
|
|
|
- const { longleLog, longleId, keyNum, clientId, logStatus, upgradeProduct } = props
|
|
|
|
|
|
|
+ const { longleLog, longleId, keyNum, clientId, logStatus, upgradeProduct, sellStatus } = props
|
|
|
const { toggleDrawer, setDrawerProps } = useModal()
|
|
const { toggleDrawer, setDrawerProps } = useModal()
|
|
|
const dispatch = useDispatch()
|
|
const dispatch = useDispatch()
|
|
|
const { TabPane } = Tabs
|
|
const { TabPane } = Tabs
|
|
@@ -89,8 +89,7 @@ const LockTabList = props => {
|
|
|
{servicelogEnum[item.status]}{' '}
|
|
{servicelogEnum[item.status]}{' '}
|
|
|
<span
|
|
<span
|
|
|
className="textPurple text-hex-967bbd cursor-pointer"
|
|
className="textPurple text-hex-967bbd cursor-pointer"
|
|
|
- onClick={handleClientClick}
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ onClick={handleClientClick}>
|
|
|
{item.client}
|
|
{item.client}
|
|
|
</span>
|
|
</span>
|
|
|
<br />
|
|
<br />
|
|
@@ -121,11 +120,10 @@ const LockTabList = props => {
|
|
|
className="mr-3px"
|
|
className="mr-3px"
|
|
|
onClick={() =>
|
|
onClick={() =>
|
|
|
setAddLonglelog({ ...setAddLonglelog, visible: true, type: lockTypeEnum.SALE })
|
|
setAddLonglelog({ ...setAddLonglelog, visible: true, type: lockTypeEnum.SALE })
|
|
|
- }
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ }>
|
|
|
借出/销售/赠送
|
|
借出/销售/赠送
|
|
|
</Button>
|
|
</Button>
|
|
|
- <Button
|
|
|
|
|
|
|
+ {/* <Button
|
|
|
type="primary"
|
|
type="primary"
|
|
|
ghost
|
|
ghost
|
|
|
size="small"
|
|
size="small"
|
|
@@ -135,22 +133,23 @@ const LockTabList = props => {
|
|
|
}
|
|
}
|
|
|
>
|
|
>
|
|
|
升级
|
|
升级
|
|
|
- </Button>
|
|
|
|
|
- <Button
|
|
|
|
|
- type="primary"
|
|
|
|
|
- ghost
|
|
|
|
|
- size="small"
|
|
|
|
|
- className="mr-1"
|
|
|
|
|
- onClick={() =>
|
|
|
|
|
- setAddLonglelog({
|
|
|
|
|
- ...setAddLonglelog,
|
|
|
|
|
- visible: true,
|
|
|
|
|
- type: lockTypeEnum.CHANGE
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- >
|
|
|
|
|
- 更换
|
|
|
|
|
- </Button>
|
|
|
|
|
|
|
+ </Button> */}
|
|
|
|
|
+ {sellStatus !== 0 ? (
|
|
|
|
|
+ <Button
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ ghost
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ className="mr-1"
|
|
|
|
|
+ onClick={() =>
|
|
|
|
|
+ setAddLonglelog({
|
|
|
|
|
+ ...setAddLonglelog,
|
|
|
|
|
+ visible: true,
|
|
|
|
|
+ type: lockTypeEnum.CHANGE
|
|
|
|
|
+ })
|
|
|
|
|
+ }>
|
|
|
|
|
+ 更换
|
|
|
|
|
+ </Button>
|
|
|
|
|
+ ) : null}
|
|
|
<Button
|
|
<Button
|
|
|
type="primary"
|
|
type="primary"
|
|
|
ghost
|
|
ghost
|
|
@@ -158,8 +157,7 @@ const LockTabList = props => {
|
|
|
className="mr-1"
|
|
className="mr-1"
|
|
|
onClick={() =>
|
|
onClick={() =>
|
|
|
setAddLonglelog({ ...setAddLonglelog, visible: true, type: lockTypeEnum.RECOVER })
|
|
setAddLonglelog({ ...setAddLonglelog, visible: true, type: lockTypeEnum.RECOVER })
|
|
|
- }
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ }>
|
|
|
收回
|
|
收回
|
|
|
</Button>
|
|
</Button>
|
|
|
<Button
|
|
<Button
|
|
@@ -168,8 +166,7 @@ const LockTabList = props => {
|
|
|
size="small"
|
|
size="small"
|
|
|
onClick={() =>
|
|
onClick={() =>
|
|
|
setAddLonglelog({ ...setAddLonglelog, visible: true, type: lockTypeEnum.REMARK })
|
|
setAddLonglelog({ ...setAddLonglelog, visible: true, type: lockTypeEnum.REMARK })
|
|
|
- }
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ }>
|
|
|
备注
|
|
备注
|
|
|
</Button>
|
|
</Button>
|
|
|
|
|
|