|
@@ -103,38 +103,37 @@ const LockTabList = props => {
|
|
|
toggleDrawer(true)
|
|
toggleDrawer(true)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- const renderLongleCon = longleService => {
|
|
|
|
|
- // console.log(longleService)
|
|
|
|
|
- const renderNewLog = () => {
|
|
|
|
|
- const { NewKeyNum } = longleService
|
|
|
|
|
- // if (!NewKeyNum) return <span>{longleService.mark}</span>
|
|
|
|
|
- let newLongleService
|
|
|
|
|
- if (!Array.isArray(NewKeyNum)) {
|
|
|
|
|
- newLongleService = NewKeyNum.split('->')
|
|
|
|
|
- }
|
|
|
|
|
- if (newLongleService[1] && !longleService.newLongleId) {
|
|
|
|
|
- return `${newLongleService[0]} -> ${newLongleService[1]}`
|
|
|
|
|
- }
|
|
|
|
|
- if (newLongleService[1] && longleService.newLongleId) {
|
|
|
|
|
- return (
|
|
|
|
|
- <>
|
|
|
|
|
- {`${newLongleService[0]} ->`}
|
|
|
|
|
- <span
|
|
|
|
|
- className="textPurple text-hex-967bbd cursor-pointer"
|
|
|
|
|
- onClick={() => showLongleClick(longleService.newLongleId)}>
|
|
|
|
|
- {newLongleService[1]}
|
|
|
|
|
- </span>
|
|
|
|
|
- </>
|
|
|
|
|
- )
|
|
|
|
|
- }
|
|
|
|
|
- return newLongleService[0]
|
|
|
|
|
|
|
+ const renderNewLog = longleService => {
|
|
|
|
|
+ const { NewKeyNum } = longleService
|
|
|
|
|
+ let newLongleService
|
|
|
|
|
+ if (!Array.isArray(NewKeyNum)) {
|
|
|
|
|
+ newLongleService = NewKeyNum.split('->')
|
|
|
|
|
+ }
|
|
|
|
|
+ if (newLongleService[1] && !longleService.newLongleId) {
|
|
|
|
|
+ return `${newLongleService[0]} -> ${newLongleService[1]}`
|
|
|
}
|
|
}
|
|
|
|
|
+ if (newLongleService[1] && longleService.newLongleId) {
|
|
|
|
|
+ return (
|
|
|
|
|
+ <>
|
|
|
|
|
+ {`${newLongleService[0]} ->`}
|
|
|
|
|
+ <span
|
|
|
|
|
+ className="textPurple text-hex-967bbd cursor-pointer"
|
|
|
|
|
+ onClick={() => showLongleClick(longleService.newLongleId)}
|
|
|
|
|
+ >
|
|
|
|
|
+ {newLongleService[1]}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </>
|
|
|
|
|
+ )
|
|
|
|
|
+ }
|
|
|
|
|
+ return newLongleService[0]
|
|
|
|
|
+ }
|
|
|
|
|
+ const renderLongleCon = longleService => {
|
|
|
return (
|
|
return (
|
|
|
<>
|
|
<>
|
|
|
{showProductsStatus.includes(longleService.status) && (
|
|
{showProductsStatus.includes(longleService.status) && (
|
|
|
<ProductLabel data={longleService.product} />
|
|
<ProductLabel data={longleService.product} />
|
|
|
)}
|
|
)}
|
|
|
- {showNewLongleStatus.includes(longleService.status) && renderNewLog()}
|
|
|
|
|
|
|
+ {showNewLongleStatus.includes(longleService.status) && renderNewLog(longleService)}
|
|
|
{showMarkStatus.includes(longleService.status) ? <span>{longleService.mark}</span> : null}
|
|
{showMarkStatus.includes(longleService.status) ? <span>{longleService.mark}</span> : null}
|
|
|
</>
|
|
</>
|
|
|
)
|
|
)
|
|
@@ -174,7 +173,8 @@ 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(item.clientId)}>
|
|
|
|
|
|
|
+ onClick={() => handleClientClick(item.clientId)}
|
|
|
|
|
+ >
|
|
|
{item.status !== 6 ? <>{item.client}</> : null}
|
|
{item.status !== 6 ? <>{item.client}</> : null}
|
|
|
</span>
|
|
</span>
|
|
|
<br />
|
|
<br />
|
|
@@ -198,7 +198,8 @@ const LockTabList = props => {
|
|
|
title="确认删除"
|
|
title="确认删除"
|
|
|
onConfirm={() => delLonglelog(item.id)}
|
|
onConfirm={() => delLonglelog(item.id)}
|
|
|
okText="确认"
|
|
okText="确认"
|
|
|
- cancelText="取消">
|
|
|
|
|
|
|
+ cancelText="取消"
|
|
|
|
|
+ >
|
|
|
<Button className="mt-2" type="primary" ghost size="small" danger>
|
|
<Button className="mt-2" type="primary" ghost size="small" danger>
|
|
|
删除
|
|
删除
|
|
|
</Button>
|
|
</Button>
|
|
@@ -222,7 +223,8 @@ const LockTabList = props => {
|
|
|
className="mr-3px"
|
|
className="mr-3px"
|
|
|
onClick={() =>
|
|
onClick={() =>
|
|
|
setAddLonglelog({ ...setAddLonglelog, visible: true, type: lockTypeEnum.RECEIVE })
|
|
setAddLonglelog({ ...setAddLonglelog, visible: true, type: lockTypeEnum.RECEIVE })
|
|
|
- }>
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ >
|
|
|
接收
|
|
接收
|
|
|
</Button>
|
|
</Button>
|
|
|
) : null}
|
|
) : null}
|
|
@@ -234,7 +236,8 @@ 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>
|
|
|
) : null}
|
|
) : null}
|
|
@@ -261,7 +264,8 @@ const LockTabList = props => {
|
|
|
visible: true,
|
|
visible: true,
|
|
|
type: lockTypeEnum.CHANGE
|
|
type: lockTypeEnum.CHANGE
|
|
|
})
|
|
})
|
|
|
- }>
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ >
|
|
|
更换
|
|
更换
|
|
|
</Button>
|
|
</Button>
|
|
|
) : null}
|
|
) : null}
|
|
@@ -273,7 +277,8 @@ 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>
|
|
|
) : null}
|
|
) : null}
|
|
@@ -283,7 +288,8 @@ 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>
|
|
|
|
|
|