Commit 61c91834 authored by XieZhiXiong's avatar XieZhiXiong

chore: 删除 确认本单已完成所有退款

parent 247ac4f2
......@@ -2,7 +2,5 @@ export default {
'returnManage.returnPrAddWarehousing.verify.title':'Confirm review operation',
'returnManage.returnPrAddWarehousing.verify.content':'Are you sure to review the return storage order with the return storage order number {returnStorageNo}? ',
'returnManage.returnPrReturn.allRefund':'Confirm that all refunds for this order have been completed',
'returnManage.returnValetApply.vale':'Valet return application',
}
\ No newline at end of file
......@@ -2,7 +2,5 @@ export default {
'returnManage.returnPrAddWarehousing.verify.title': '감사 작업 확인',
'returnManage.returnPrAddWarehousing.verify.content': '반품 입고증 번호가 {returnStorageNo}인 반품 입고증을 검토하시겠습니까?',
'returnManage.returnPrReturn.allRefund': '모든 환불 완료 확인',
'returnManage.returnValetApply.vale': '대리 반품 신청',
}
\ No newline at end of file
......@@ -2,7 +2,5 @@ export default {
'returnManage.returnPrAddWarehousing.verify.title': '确认审核操作',
'returnManage.returnPrAddWarehousing.verify.content': '是否确认审核退货入库单号为{returnStorageNo}的退货入库单?',
'returnManage.returnPrReturn.allRefund': '确认本单已完成所有退款',
'returnManage.returnValetApply.vale': '代客退货申请',
}
\ No newline at end of file
......@@ -5,52 +5,18 @@
* @LastEditTime: 2021-11-17 20:07:58
* @Description:
*/
import React, { useState } from 'react';
import { Button } from 'antd';
import { history, useIntl } from 'umi';
import { FormOutlined } from '@ant-design/icons';
import React from 'react';
import { usePageStatus } from '@/hooks/usePageStatus';
import DetailInfo from '../components/DetailInfo';
import { postAsReturnGoodsCompleteRefund } from '@/services/AfterServiceV2Api';
const ReturnPrReturnVerify: React.FC = () => {
const { id } = usePageStatus();
const [visible, setVisible] = useState(false);
const [submitLoading, setSubmitLoading] = useState(false);
const intl = useIntl();
const handleSubmit = () => {
if (!id) {
return;
}
setSubmitLoading(true);
postAsReturnGoodsCompleteRefund({
dataId: +id,
}).then(res => {
if (res.code === 1000) {
history.goBack();
}
}).finally(() => {
setSubmitLoading(false);
});
};
return (
<>
<DetailInfo
id={id}
target="/memberCenter/afterService/returnManage/returnPrReturn"
headExtra={() => (
<Button
type="primary"
icon={<FormOutlined />}
loading={submitLoading}
onClick={handleSubmit}
>
{intl.formatMessage({ id: 'returnManage.returnPrReturn.allRefund' }, { default: '确认本单已完成所有退款' })}
</Button>
)}
isEditRefund
/>
</>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment