|
|
@@ -148,8 +148,7 @@ const LockTabList: React.FC<LockTabListProps> = ({
|
|
|
className="rounded-1/2 w-8 h-8"
|
|
|
style={{
|
|
|
backgroundImage: `url(${
|
|
|
- (isDevMode() ? 'http://cld2qa.com' : 'http://zhcld.com') +
|
|
|
- (item.avatar ?? consts.DEFAULT_AVATAR)
|
|
|
+ (isDevMode() && 'http://cld2qa.com') + (item.avatar ?? consts.DEFAULT_AVATAR)
|
|
|
})`,
|
|
|
backgroundSize: 'cover'
|
|
|
}}
|
|
|
@@ -235,50 +234,50 @@ const LockTabList: React.FC<LockTabListProps> = ({
|
|
|
</Tabs>
|
|
|
</div>
|
|
|
<div className="sheet-btns pl-4 pt-4 flex">
|
|
|
- {[StockStatus.CHUKU].includes(stockStatus) ? (
|
|
|
- <Button
|
|
|
- type="primary"
|
|
|
- ghost
|
|
|
- size="small"
|
|
|
- className="mr-3px"
|
|
|
- onClick={() => openLockModal(lockTypeEnum.RECEIVE)}>
|
|
|
- 接收
|
|
|
- </Button>
|
|
|
- ) : null}
|
|
|
- {([StockStatus.CHUKU, StockStatus.CREATE].includes(stockStatus) &&
|
|
|
- [SellStatus.NONE].includes(sellStatus)) ||
|
|
|
- [PreserveStatus.REPLACE].includes(preserveStatus) ? (
|
|
|
- <Button
|
|
|
- type="primary"
|
|
|
- ghost
|
|
|
- size="small"
|
|
|
- className="mr-1"
|
|
|
- onClick={() => openLockModal(lockTypeEnum.SALE)}>
|
|
|
- 借销赠
|
|
|
- </Button>
|
|
|
- ) : null}
|
|
|
- {[SellStatus.SALES, SellStatus.LENDING].includes(sellStatus) &&
|
|
|
- [PreserveStatus.SAFEGUARD, PreserveStatus.REPLACE].includes(preserveStatus) ? (
|
|
|
- <Button
|
|
|
- type="primary"
|
|
|
- ghost
|
|
|
- size="small"
|
|
|
- className="mr-1"
|
|
|
- onClick={() => openLockModal(lockTypeEnum.CHANGE)}>
|
|
|
- 更换
|
|
|
- </Button>
|
|
|
- ) : null}
|
|
|
- {[PreserveStatus.NONE, PreserveStatus.SAFEGUARD, PreserveStatus.UPGRADE].includes(preserveStatus) ? (
|
|
|
- <Button
|
|
|
- type="primary"
|
|
|
- ghost
|
|
|
- size="small"
|
|
|
- className="mr-1"
|
|
|
- onClick={() => openLockModal(lockTypeEnum.RECOVER)}>
|
|
|
- 收回
|
|
|
- </Button>
|
|
|
- ) : null}
|
|
|
- {/* <Button
|
|
|
+ {[StockStatus.CHUKU].includes(stockStatus) ? (
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ ghost
|
|
|
+ size="small"
|
|
|
+ className="mr-3px"
|
|
|
+ onClick={() => openLockModal(lockTypeEnum.RECEIVE)}>
|
|
|
+ 接收
|
|
|
+ </Button>
|
|
|
+ ) : null}
|
|
|
+ {([StockStatus.CHUKU, StockStatus.CREATE].includes(stockStatus) &&
|
|
|
+ [SellStatus.NONE].includes(sellStatus)) ||
|
|
|
+ [PreserveStatus.REPLACE].includes(preserveStatus) ? (
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ ghost
|
|
|
+ size="small"
|
|
|
+ className="mr-1"
|
|
|
+ onClick={() => openLockModal(lockTypeEnum.SALE)}>
|
|
|
+ 借销赠
|
|
|
+ </Button>
|
|
|
+ ) : null}
|
|
|
+ {[SellStatus.SALES, SellStatus.LENDING].includes(sellStatus) &&
|
|
|
+ [PreserveStatus.SAFEGUARD, PreserveStatus.REPLACE].includes(preserveStatus) ? (
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ ghost
|
|
|
+ size="small"
|
|
|
+ className="mr-1"
|
|
|
+ onClick={() => openLockModal(lockTypeEnum.CHANGE)}>
|
|
|
+ 更换
|
|
|
+ </Button>
|
|
|
+ ) : null}
|
|
|
+ {[PreserveStatus.NONE, PreserveStatus.SAFEGUARD, PreserveStatus.UPGRADE].includes(preserveStatus) ? (
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ ghost
|
|
|
+ size="small"
|
|
|
+ className="mr-1"
|
|
|
+ onClick={() => openLockModal(lockTypeEnum.RECOVER)}>
|
|
|
+ 收回
|
|
|
+ </Button>
|
|
|
+ ) : null}
|
|
|
+ {/* <Button
|
|
|
type="primary"
|
|
|
ghost
|
|
|
size="small"
|
|
|
@@ -289,9 +288,9 @@ const LockTabList: React.FC<LockTabListProps> = ({
|
|
|
>
|
|
|
升级
|
|
|
</Button> */}
|
|
|
- <Button type="primary" ghost size="small" onClick={() => openLockModal(lockTypeEnum.REMARK)}>
|
|
|
- 备注
|
|
|
- </Button>
|
|
|
+ <Button type="primary" ghost size="small" onClick={() => openLockModal(lockTypeEnum.REMARK)}>
|
|
|
+ 备注
|
|
|
+ </Button>
|
|
|
</div>
|
|
|
</div>
|
|
|
)
|