Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-platform
Commits
88238577
Commit
88238577
authored
Mar 10, 2022
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 删除 确认本单所有退款到账按钮相关
parent
61c91834
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
62 deletions
+1
-62
returnApplication.ts
src/locales/en-US/afterService/returnApplication.ts
+0
-4
returnApplication.ts
src/locales/ko-KR/afterService/returnApplication.ts
+0
-4
returnApplication.ts
src/locales/zh-CN/afterService/returnApplication.ts
+0
-4
verify.tsx
...ervice/returnApplication/returnPrConfirmResult/verify.tsx
+1
-50
No files found.
src/locales/en-US/afterService/returnApplication.ts
View file @
88238577
...
...
@@ -8,10 +8,6 @@ export default {
'returnApplication.returnPrConfirmBack.back'
:
'Confirm return slip'
,
'returnApplication.returnPrConfirmFinish.finish'
:
'Confirm after-sales completion'
,
'returnApplication.returnPrConfirmResult.allRefund'
:
'Confirm that all refunds of this order are received'
,
'returnApplication.returnPrConfirmResult.allRefund.tip'
:
'Tips'
,
'returnApplication.returnPrConfirmResult.allRefund.content'
:
'Are all refunds of this order confirmed to the account? '
,
'returnApplication.returnPrDeliver.allRefund.deliver'
:
'Return Delivery'
,
...
...
src/locales/ko-KR/afterService/returnApplication.ts
View file @
88238577
...
...
@@ -8,10 +8,6 @@ export default {
'returnApplication.returnPrConfirmBack.back'
:
'반품 확인서'
,
'returnApplication.returnPrConfirmFinish.finish'
:
'판매 후 완료 확인'
,
'returnApplication.returnPrConfirmResult.allRefund'
:
'본 계약서의 모든 환불 입금을 확인하다'
,
'returnApplication.returnPrConfirmResult.allRefund.tip'
:
'프롬프트'
,
'returnApplication.returnPrConfirmResult.allRefund.content'
:
'본 계약서의 모든 환불이 입금되었습니까?'
,
'returnApplication.returnPrDeliver.allRefund.deliver'
:
'반품 출하'
,
...
...
src/locales/zh-CN/afterService/returnApplication.ts
View file @
88238577
...
...
@@ -8,10 +8,6 @@ export default {
'returnApplication.returnPrConfirmBack.back'
:
'确认退货回单'
,
'returnApplication.returnPrConfirmFinish.finish'
:
'确认售后完成'
,
'returnApplication.returnPrConfirmResult.allRefund'
:
'确认本单所有退款到账'
,
'returnApplication.returnPrConfirmResult.allRefund.tip'
:
'提示'
,
'returnApplication.returnPrConfirmResult.allRefund.content'
:
'是否本单所有退款确认到账?'
,
'returnApplication.returnPrDeliver.allRefund.deliver'
:
'退货发货'
,
...
...
src/pages/afterService/returnApplication/returnPrConfirmResult/verify.tsx
View file @
88238577
...
...
@@ -6,65 +6,16 @@
* @Description:
*/
import
React
from
'react'
;
import
{
Button
,
Modal
}
from
'antd'
;
import
{
history
,
useIntl
}
from
'umi'
;
import
{
postAsReturnGoodsConfirmAllRefund
}
from
'@/services/AfterServiceV2Api'
;
import
{
FormOutlined
,
ExclamationCircleOutlined
}
from
'@ant-design/icons'
;
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
;
import
{
REFUND_OUTER_STATUS_RECEIVED
,
REFUND_OUTER_STATUS_NEED_NOT
}
from
'../../constants'
;
import
DetailInfo
,
{
DetailInfoData
}
from
'../components/DetailInfo'
;
const
{
confirm
}
=
Modal
;
import
DetailInfo
from
'../components/DetailInfo'
;
const
ReturnPrConfirmResultVerify
:
React
.
FC
=
()
=>
{
const
{
id
}
=
usePageStatus
();
const
intl
=
useIntl
();
const
handleSubmit
=
values
=>
{
if
(
!
id
)
{
return
;
}
confirm
({
title
:
intl
.
formatMessage
({
id
:
'returnApplication.returnPrConfirmResult.allRefund.tip'
},
{
default
:
'提示'
}),
icon
:
<
ExclamationCircleOutlined
/>,
content
:
intl
.
formatMessage
({
id
:
'returnApplication.returnPrConfirmResult.allRefund.content'
},
{
default
:
'是否本单所有退款确认到账?'
}),
onOk
()
{
return
postAsReturnGoodsConfirmAllRefund
({
dataId
:
+
id
,
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
history
.
goBack
();
}
});
},
});
};
return
(
<>
<
DetailInfo
id=
{
id
}
headExtra=
{
(
info
:
DetailInfoData
)
=>
{
const
{
refundList
=
[]
}
=
info
||
{};
// 是否全部已退款,只有当退款明细中所有退款金额大于0的记录的状态都为确认退款到账时本按钮才可点击
// 或 该批次无需退款
const
isAllRefunded
=
refundList
.
every
((
item
)
=>
item
.
detailList
.
every
((
detail
)
=>
(
detail
.
refundAmount
>
0
&&
detail
.
outerStatus
===
REFUND_OUTER_STATUS_RECEIVED
)
||
detail
.
outerStatus
===
REFUND_OUTER_STATUS_NEED_NOT
));
return
[
isAllRefunded
?
(
<
Button
type=
"primary"
icon=
{
<
FormOutlined
/>
}
onClick=
{
handleSubmit
}
key=
"confirmAllRefunded"
>
{
intl
.
formatMessage
({
id
:
'returnApplication.returnPrConfirmResult.allRefund'
},
{
default
:
'确认本单所有退款到账'
})
}
</
Button
>
)
:
null
,
]
}
}
target=
"/memberCenter/afterService/returnApplication/returnPrConfirmResult"
isEditRefund
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment