|
@@ -30,7 +30,17 @@ const placeholderEnum = {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const OpreateLock = props => {
|
|
const OpreateLock = props => {
|
|
|
- const { onConfirm, onCancel, loading, type, longleId, keyNum, prodList, upgradeProduct, ...resetModalProps } = props
|
|
|
|
|
|
|
+ const {
|
|
|
|
|
+ onConfirm,
|
|
|
|
|
+ onCancel,
|
|
|
|
|
+ loading,
|
|
|
|
|
+ type,
|
|
|
|
|
+ longleId,
|
|
|
|
|
+ keyNum,
|
|
|
|
|
+ prodList,
|
|
|
|
|
+ upgradeProduct,
|
|
|
|
|
+ ...resetModalProps
|
|
|
|
|
+ } = props
|
|
|
const [form] = Form.useForm()
|
|
const [form] = Form.useForm()
|
|
|
const dispatch = useDispatch()
|
|
const dispatch = useDispatch()
|
|
|
const scrollRef = useRef()
|
|
const scrollRef = useRef()
|
|
@@ -258,7 +268,8 @@ const OpreateLock = props => {
|
|
|
</Button>
|
|
</Button>
|
|
|
</div>
|
|
</div>
|
|
|
)
|
|
)
|
|
|
- }>
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ >
|
|
|
{type === lockTypeEnum.SALE ? (
|
|
{type === lockTypeEnum.SALE ? (
|
|
|
<div className="text-center mb-6">
|
|
<div className="text-center mb-6">
|
|
|
<Radio.Group value={state.sellStatus} buttonStyle="solid" onChange={checkGroupOnChange}>
|
|
<Radio.Group value={state.sellStatus} buttonStyle="solid" onChange={checkGroupOnChange}>
|
|
@@ -284,7 +295,8 @@ const OpreateLock = props => {
|
|
|
title="确认选择ta"
|
|
title="确认选择ta"
|
|
|
onConfirm={() => connectClient(item.id)}
|
|
onConfirm={() => connectClient(item.id)}
|
|
|
okText="确认"
|
|
okText="确认"
|
|
|
- cancelText="取消">
|
|
|
|
|
|
|
+ cancelText="取消"
|
|
|
|
|
+ >
|
|
|
<Button type="primary" size="small">
|
|
<Button type="primary" size="small">
|
|
|
选择ta
|
|
选择ta
|
|
|
</Button>
|
|
</Button>
|
|
@@ -302,7 +314,8 @@ const OpreateLock = props => {
|
|
|
title="确认选择ta"
|
|
title="确认选择ta"
|
|
|
onConfirm={() => connectLongle(item.id)}
|
|
onConfirm={() => connectLongle(item.id)}
|
|
|
okText="确认"
|
|
okText="确认"
|
|
|
- cancelText="取消">
|
|
|
|
|
|
|
+ cancelText="取消"
|
|
|
|
|
+ >
|
|
|
<Button type="primary" size="small">
|
|
<Button type="primary" size="small">
|
|
|
更换
|
|
更换
|
|
|
</Button>
|
|
</Button>
|
|
@@ -335,7 +348,8 @@ const OpreateLock = props => {
|
|
|
return Promise.resolve(value)
|
|
return Promise.resolve(value)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
- ]}>
|
|
|
|
|
|
|
+ ]}
|
|
|
|
|
+ >
|
|
|
<Select
|
|
<Select
|
|
|
placeholder="请选择产品"
|
|
placeholder="请选择产品"
|
|
|
onDropdownVisibleChange={async e => {
|
|
onDropdownVisibleChange={async e => {
|