|
@@ -76,7 +76,7 @@ type ServiceLogItemProps = {
|
|
|
export const ServiceLogItem: React.FC<ServiceLogItemProps> = ({ item, logType, updatePayload }) => {
|
|
export const ServiceLogItem: React.FC<ServiceLogItemProps> = ({ item, logType, updatePayload }) => {
|
|
|
const dispatchModal = useModal()
|
|
const dispatchModal = useModal()
|
|
|
const dispatch = useDispatch()
|
|
const dispatch = useDispatch()
|
|
|
- const { run: truUpdate, loading: comfirmLoading } = useRequest(
|
|
|
|
|
|
|
+ const { run: truUpdate } = useRequest(
|
|
|
logType === ServiceLogType.COMPANY ? updateCustomerService : updateClientService,
|
|
logType === ServiceLogType.COMPANY ? updateCustomerService : updateClientService,
|
|
|
{
|
|
{
|
|
|
manual: true,
|
|
manual: true,
|
|
@@ -150,7 +150,7 @@ export const ServiceLogItem: React.FC<ServiceLogItemProps> = ({ item, logType, u
|
|
|
</div>
|
|
</div>
|
|
|
{item.isOperation ? (
|
|
{item.isOperation ? (
|
|
|
<div className="mt-2">
|
|
<div className="mt-2">
|
|
|
- <Button size="small" onClick={() => handleOnEdit(item)} loading={comfirmLoading}>
|
|
|
|
|
|
|
+ <Button size="small" onClick={() => handleOnEdit(item)}>
|
|
|
编辑
|
|
编辑
|
|
|
</Button>
|
|
</Button>
|
|
|
<Popconfirm title="确认删除该服务记录吗?" onConfirm={() => truDel({ id: item.id })}>
|
|
<Popconfirm title="确认删除该服务记录吗?" onConfirm={() => truDel({ id: item.id })}>
|