|
@@ -9,6 +9,7 @@ const SyncClient = ({ customer, client }) => {
|
|
|
const dispatch = useDispatch()
|
|
const dispatch = useDispatch()
|
|
|
const [state, setState] = useState({
|
|
const [state, setState] = useState({
|
|
|
visible: false,
|
|
visible: false,
|
|
|
|
|
+ disable: false,
|
|
|
selectedKeys: null,
|
|
selectedKeys: null,
|
|
|
checkValues: ['district', 'address']
|
|
checkValues: ['district', 'address']
|
|
|
})
|
|
})
|
|
@@ -81,14 +82,15 @@ const SyncClient = ({ customer, client }) => {
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
- const { checkValues, visible } = state
|
|
|
|
|
|
|
+ const { checkValues, visible, disable } = state
|
|
|
return (
|
|
return (
|
|
|
<>
|
|
<>
|
|
|
<Button
|
|
<Button
|
|
|
size="small"
|
|
size="small"
|
|
|
ghost
|
|
ghost
|
|
|
type="primary"
|
|
type="primary"
|
|
|
- onClick={() => setState({ ...state, visible: true })}>
|
|
|
|
|
|
|
+ disabled={disable}
|
|
|
|
|
+ onClick={() => setState({ ...state, visible: true, disable: true })}>
|
|
|
<Copy theme="two-tone" fill={['#333', '#886ab5']} />
|
|
<Copy theme="two-tone" fill={['#333', '#886ab5']} />
|
|
|
<span className="ml-1">同步地址信息</span>
|
|
<span className="ml-1">同步地址信息</span>
|
|
|
{/* <div className="flex items-center justify-center">
|
|
{/* <div className="flex items-center justify-center">
|
|
@@ -100,7 +102,7 @@ const SyncClient = ({ customer, client }) => {
|
|
|
title={`同步 ${customer.companyName} 信息`}
|
|
title={`同步 ${customer.companyName} 信息`}
|
|
|
getContainer={false}
|
|
getContainer={false}
|
|
|
visible={visible}
|
|
visible={visible}
|
|
|
- onCancel={() => setState({ ...state, visible: false })}
|
|
|
|
|
|
|
+ onCancel={() => setState({ ...state, visible: false, disable: false })}
|
|
|
onOk={handleOnConfirm}>
|
|
onOk={handleOnConfirm}>
|
|
|
<div className="rounded-3 p-4 mb-2 pt-0">
|
|
<div className="rounded-3 p-4 mb-2 pt-0">
|
|
|
<Checkbox.Group
|
|
<Checkbox.Group
|