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
黄庭坚
jinfa-platform
Commits
a92e4fc4
Commit
a92e4fc4
authored
Jul 30, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 添加 catch
parent
68aa56a6
Show whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
69 additions
and
18 deletions
+69
-18
index.tsx
...ges/afterService/components/RefundModal/Balance/index.tsx
+2
-0
index.tsx
...ages/afterService/components/RefundModal/Credit/index.tsx
+2
-0
index.tsx
...ice/components/RefundModal/UploadPaymentVoucher/index.tsx
+2
-0
index.tsx
...rvice/exchangeApplication/components/DetailInfo/index.tsx
+5
-1
verify.tsx
...vice/exchangeApplication/exchangePrConfirmBack/verify.tsx
+4
-4
verify.tsx
...Service/exchangeApplication/exchangePrFinished/verify.tsx
+1
-1
verify.tsx
...Service/exchangeApplication/exchangePrReceived/verify.tsx
+1
-1
index.ts
...exchangePrSubmit/components/ExchangeForm/effects/index.ts
+5
-0
index.tsx
...cation/exchangePrSubmit/components/ExchangeForm/index.tsx
+4
-1
index.tsx
...terService/exchangeManage/components/DetailInfo/index.tsx
+5
-1
verify.tsx
...afterService/exchangeManage/exchangePrReceived/verify.tsx
+1
-1
index.tsx
...Service/repairApplication/components/DetailInfo/index.tsx
+3
-1
index.tsx
...pplication/repairPrSubmit/components/RepairForm/index.tsx
+8
-1
index.tsx
...afterService/repairManage/components/DetailInfo/index.tsx
+4
-0
index.tsx
...Service/returnApplication/components/DetailInfo/index.tsx
+4
-0
verify.tsx
...ervice/returnApplication/returnPrConfirmFinish/verify.tsx
+1
-1
index.ts
...ion/returnPrSubmit/components/ReturnForm/effects/index.ts
+3
-0
index.tsx
...pplication/returnPrSubmit/components/ReturnForm/index.tsx
+6
-1
index.tsx
...afterService/returnManage/components/DetailInfo/index.tsx
+5
-1
verify.tsx
...ges/afterService/returnManage/returnPrReceived/verify.tsx
+1
-1
verify.tsx
...pages/afterService/returnManage/returnPrReturn/verify.tsx
+1
-1
index.tsx
src/pages/afterService/returnManage/returnQuery/index.tsx
+1
-1
No files found.
src/pages/afterService/components/RefundModal/Balance/index.tsx
View file @
a92e4fc4
...
...
@@ -46,6 +46,8 @@ const Balance: React.FC<BalanceProps> = ({
if
(
res
.
code
===
1000
)
{
setBalance
(
res
.
data
);
}
}).
catch
((
err
)
=>
{
console
.
warn
(
err
);
}).
finally
(()
=>
{
setLoading
(
false
);
});
...
...
src/pages/afterService/components/RefundModal/Credit/index.tsx
View file @
a92e4fc4
...
...
@@ -75,6 +75,8 @@ const Credit: React.FC<BalanceProps> = ({
if
(
res
.
code
===
1000
)
{
setCredit
(
res
.
data
);
}
}).
catch
((
err
)
=>
{
console
.
warn
(
err
);
}).
finally
(()
=>
{
setLoading
(
false
);
});
...
...
src/pages/afterService/components/RefundModal/UploadPaymentVoucher/index.tsx
View file @
a92e4fc4
...
...
@@ -155,6 +155,8 @@ const UploadPaymentVoucher: React.FC<IProps> = (props: IProps) => {
if
(
res
.
code
===
1000
)
{
setBankAccount
(
res
.
data
);
}
}).
catch
((
err
)
=>
{
console
.
warn
(
err
);
}).
finally
(()
=>
{
setLoading
(
false
);
});
...
...
src/pages/afterService/exchangeApplication/components/DetailInfo/index.tsx
View file @
a92e4fc4
...
...
@@ -232,10 +232,12 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
setDetailInfo
({
faultFileList
,
fileList
:
faultFileList
.
map
(
item
=>
normalizeFiledata
(
item
.
filePath
)),
fileList
:
faultFileList
?
.
map
(
item
=>
normalizeFiledata
(
item
.
filePath
)),
...
rest
,
});
}
}).
catch
((
err
)
=>
{
console
.
warn
(
err
);
}).
finally
(()
=>
{
setInfoloading
(
false
);
});
...
...
@@ -255,6 +257,8 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
if
(
res
.
code
===
1000
)
{
setReplaceGoodsList
(
res
.
data
);
}
}).
catch
((
err
)
=>
{
console
.
warn
(
err
);
}).
finally
(()
=>
{
setExchangeGoodsLoading
(
false
);
});
...
...
src/pages/afterService/exchangeApplication/exchangePrConfirmBack/verify.tsx
View file @
a92e4fc4
...
...
@@ -33,7 +33,7 @@ const ExchangePrConfirmBackVerify: React.FC = () => {
content
:
`您还有未退货发货的商品,是否确认全部退货发货都已完成?`
,
onOk
()
{
return
PublicApi
.
postAsReplaceGoodsConfirmAllReturnGoodsReceipt
({
dataId
:
id
,
dataId
:
+
id
,
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
history
.
goBack
();
...
...
@@ -55,7 +55,7 @@ const ExchangePrConfirmBackVerify: React.FC = () => {
content
:
`是否确认全部退货发货单已收到回单?`
,
onOk
()
{
return
PublicApi
.
postAsReplaceGoodsConfirmAllReturnGoodsReceipt
({
dataId
:
id
,
dataId
:
+
id
,
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
history
.
goBack
();
...
...
@@ -85,7 +85,7 @@ const ExchangePrConfirmBackVerify: React.FC = () => {
content
:
`您商品都已退货发货,是否确认还需要继续退货发货?`
,
onOk
()
{
return
PublicApi
.
postAsReplaceGoodsContinueReturnDeliveryGoods
({
dataId
:
id
,
dataId
:
+
id
,
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
history
.
goBack
();
...
...
@@ -106,7 +106,7 @@ const ExchangePrConfirmBackVerify: React.FC = () => {
content
:
`是否继续退货发货?`
,
onOk
()
{
return
PublicApi
.
postAsReplaceGoodsContinueReturnDeliveryGoods
({
dataId
:
id
,
dataId
:
+
id
,
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
history
.
goBack
();
...
...
src/pages/afterService/exchangeApplication/exchangePrFinished/verify.tsx
View file @
a92e4fc4
...
...
@@ -25,7 +25,7 @@ const ExchangePrFinishedDetailVerify: React.FC = () => {
}
setConfirmLoading
(
true
);
PublicApi
.
postAsReplaceGoodsConfirmComplete
({
replaceId
:
id
,
replaceId
:
+
id
,
evaluate
:
values
,
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
...
...
src/pages/afterService/exchangeApplication/exchangePrReceived/verify.tsx
View file @
a92e4fc4
...
...
@@ -26,7 +26,7 @@ const ExchangePrReceivedVerify: React.FC = () => {
}
setSubmitLoading
(
true
);
PublicApi
.
postAsReplaceGoodsConfirmManualReplaceReceiveGoods
({
dataId
:
id
,
dataId
:
+
id
,
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
history
.
goBack
();
...
...
src/pages/afterService/exchangeApplication/exchangePrSubmit/components/ExchangeForm/effects/index.ts
View file @
a92e4fc4
...
...
@@ -21,6 +21,8 @@ export const createEffects = (context, actions) => {
state
.
props
[
'x-component-props'
].
dataSource
=
res
.
data
;
});
}
}).
catch
((
err
)
=>
{
console
.
warn
(
err
);
});
// 获取发货地址
...
...
@@ -30,5 +32,7 @@ export const createEffects = (context, actions) => {
state
.
props
[
'x-component-props'
].
dataSource
=
res
.
data
;
});
}
}).
catch
((
err
)
=>
{
console
.
warn
(
err
);
});
};
\ No newline at end of file
src/pages/afterService/exchangeApplication/exchangePrSubmit/components/ExchangeForm/index.tsx
View file @
a92e4fc4
...
...
@@ -351,7 +351,7 @@ const ExchangeForm: React.FC<BillsFormProps> = ({
PublicApi
.
getOrderProcurementOrderDetails
({
id
:
`
${
orderId
}
`
,
orderNo
:
''
,
})
}
as
any
)
.
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
const
{
...
...
@@ -385,6 +385,9 @@ const ExchangeForm: React.FC<BillsFormProps> = ({
});
}
})
.
catch
((
err
)
=>
{
console
.
warn
(
err
);
})
.
finally
(()
=>
{
setInfoLoading
(
false
);
});
...
...
src/pages/afterService/exchangeManage/components/DetailInfo/index.tsx
View file @
a92e4fc4
...
...
@@ -131,10 +131,12 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
setDetailInfo
({
faultFileList
,
fileList
:
faultFileList
.
map
(
item
=>
normalizeFiledata
(
item
.
filePath
)),
fileList
:
faultFileList
?
.
map
(
item
=>
normalizeFiledata
(
item
.
filePath
)),
...
rest
,
});
}
}).
catch
((
err
)
=>
{
console
.
warn
(
err
);
}).
finally
(()
=>
{
setInfoloading
(
false
);
});
...
...
@@ -154,6 +156,8 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
if
(
res
.
code
===
1000
)
{
setReplaceGoodsList
(
res
.
data
);
}
}).
catch
((
err
)
=>
{
console
.
warn
(
err
);
}).
finally
(()
=>
{
setExchangeGoodsLoading
(
false
);
});
...
...
src/pages/afterService/exchangeManage/exchangePrReceived/verify.tsx
View file @
a92e4fc4
...
...
@@ -26,7 +26,7 @@ const ExchangePrReceivedVerify: React.FC = () => {
}
setSubmitLoading
(
true
);
PublicApi
.
postAsReplaceGoodsConfirmManualReturnReceiveGoods
({
dataId
:
id
,
dataId
:
+
id
,
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
history
.
goBack
();
...
...
src/pages/afterService/repairApplication/components/DetailInfo/index.tsx
View file @
a92e4fc4
...
...
@@ -182,7 +182,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
supplierMemberId
,
supplierRoleId
,
...
rest
}
=
res
.
data
;
}
=
res
.
data
as
any
;
setDetailInfo
({
faultFileList
,
...
...
@@ -211,6 +211,8 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
if
(
res
.
code
===
1000
)
{
setRepairGoodsList
(
res
.
data
);
}
}).
catch
((
err
)
=>
{
console
.
warn
(
err
);
}).
finally
(()
=>
{
setRepairGoodsLoading
(
false
);
});
...
...
src/pages/afterService/repairApplication/repairPrSubmit/components/RepairForm/index.tsx
View file @
a92e4fc4
...
...
@@ -234,6 +234,8 @@ const RepairForm: React.FC<BillsFormProps> = ({
})));
setGoodsValue
(
res
.
data
&&
res
.
data
.
data
?
res
.
data
.
data
.
map
(
item
=>
item
.
orderRecordId
)
:
[]);
}
}).
catch
((
err
)
=>
{
console
.
warn
(
err
);
}).
finally
(()
=>
{
setRepairGoodsLoading
(
false
);
});
...
...
@@ -292,6 +294,8 @@ const RepairForm: React.FC<BillsFormProps> = ({
...
rest
,
});
}
}).
catch
((
err
)
=>
{
console
.
warn
(
err
);
}).
finally
(()
=>
{
setInfoLoading
(
false
);
});
...
...
@@ -306,7 +310,7 @@ const RepairForm: React.FC<BillsFormProps> = ({
PublicApi
.
getOrderProcurementOrderDetails
({
id
:
`
${
orderId
}
`
,
orderNo
:
''
,
})
}
as
any
)
.
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
const
{
...
...
@@ -340,6 +344,9 @@ const RepairForm: React.FC<BillsFormProps> = ({
});
}
})
.
catch
((
err
)
=>
{
console
.
warn
(
err
);
})
.
finally
(()
=>
{
setInfoLoading
(
false
);
});
...
...
src/pages/afterService/repairManage/components/DetailInfo/index.tsx
View file @
a92e4fc4
...
...
@@ -190,6 +190,8 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
repairAddress
:
isJSONStr
(
repairAddress
)
||
null
,
});
}
}).
catch
((
err
)
=>
{
console
.
warn
(
err
);
}).
finally
(()
=>
{
setInfoLoading
(
false
);
});
...
...
@@ -209,6 +211,8 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
if
(
res
.
code
===
1000
)
{
setRepairGoodsList
(
res
.
data
);
}
}).
catch
((
err
)
=>
{
console
.
warn
(
err
);
}).
finally
(()
=>
{
setRepairGoodsLoading
(
false
);
});
...
...
src/pages/afterService/returnApplication/components/DetailInfo/index.tsx
View file @
a92e4fc4
...
...
@@ -295,6 +295,8 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
...
rest
,
});
}
}).
catch
((
err
)
=>
{
console
.
warn
(
err
);
}).
finally
(()
=>
{
setInfoloading
(
false
);
});
...
...
@@ -314,6 +316,8 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
if
(
res
.
code
===
1000
)
{
setReturnGoodsList
(
res
.
data
);
}
}).
catch
((
err
)
=>
{
console
.
warn
(
err
);
}).
finally
(()
=>
{
setReturnGoodsLoading
(
false
);
});
...
...
src/pages/afterService/returnApplication/returnPrConfirmFinish/verify.tsx
View file @
a92e4fc4
...
...
@@ -25,7 +25,7 @@ const ReturnPrConfirmFinishVerify: React.FC = () => {
}
setConfirmLoading
(
true
);
PublicApi
.
postAsReturnGoodsConfirmComplete
({
returnId
:
id
,
returnId
:
+
id
,
evaluate
:
values
,
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
...
...
src/pages/afterService/returnApplication/returnPrSubmit/components/ReturnForm/effects/index.ts
View file @
a92e4fc4
...
...
@@ -21,5 +21,7 @@ export const createEffects = (context, actions) => {
state
.
props
[
'x-component-props'
].
dataSource
=
res
.
data
;
});
}
}).
catch
((
err
)
=>
{
console
.
warn
(
err
);
});
};
\ No newline at end of file
src/pages/afterService/returnApplication/returnPrSubmit/components/ReturnForm/index.tsx
View file @
a92e4fc4
...
...
@@ -340,6 +340,8 @@ const ReturnForm: React.FC<BillsFormProps> = ({
})));
setGoodsValue
(
goodsDetailList
.
map
(
item
=>
item
.
orderRecordId
));
}
}).
catch
((
err
)
=>
{
console
.
warn
(
err
);
}).
finally
(()
=>
{
setInfoLoading
(
false
);
});
...
...
@@ -354,7 +356,7 @@ const ReturnForm: React.FC<BillsFormProps> = ({
PublicApi
.
getOrderProcurementOrderDetails
({
id
:
`
${
orderId
}
`
,
orderNo
:
''
,
})
}
as
any
)
.
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
const
{
...
...
@@ -388,6 +390,9 @@ const ReturnForm: React.FC<BillsFormProps> = ({
});
}
})
.
catch
((
err
)
=>
{
console
.
warn
(
err
);
})
.
finally
(()
=>
{
setInfoLoading
(
false
);
});
...
...
src/pages/afterService/returnManage/components/DetailInfo/index.tsx
View file @
a92e4fc4
...
...
@@ -332,10 +332,12 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
setDetailInfo
({
faultFileList
,
fileList
:
faultFileList
.
map
(
item
=>
normalizeFiledata
(
item
.
filePath
)),
fileList
:
faultFileList
?
.
map
(
item
=>
normalizeFiledata
(
item
.
filePath
)),
...
rest
,
});
}
}).
catch
((
err
)
=>
{
console
.
warn
(
err
);
}).
finally
(()
=>
{
setInfoloading
(
false
);
});
...
...
@@ -355,6 +357,8 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
if
(
res
.
code
===
1000
)
{
setReturnGoodsList
(
res
.
data
);
}
}).
catch
((
err
)
=>
{
console
.
warn
(
err
);
}).
finally
(()
=>
{
setReturnGoodsLoading
(
false
);
});
...
...
src/pages/afterService/returnManage/returnPrReceived/verify.tsx
View file @
a92e4fc4
...
...
@@ -26,7 +26,7 @@ const ReturnPrReceivedVerify: React.FC = () => {
}
setSubmitLoading
(
true
);
PublicApi
.
postAsReturnGoodsConfirmManualReturnReceiveGoods
({
dataId
:
id
,
dataId
:
+
id
,
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
history
.
goBack
();
...
...
src/pages/afterService/returnManage/returnPrReturn/verify.tsx
View file @
a92e4fc4
...
...
@@ -24,7 +24,7 @@ const ReturnPrReturnVerify: React.FC = () => {
}
setSubmitLoading
(
true
);
PublicApi
.
postAsReturnGoodsCompleteRefund
({
dataId
:
id
,
dataId
:
+
id
,
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
history
.
goBack
();
...
...
src/pages/afterService/returnManage/returnQuery/index.tsx
View file @
a92e4fc4
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-05 14:25:41
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
1-13 15:32:32
* @LastEditTime: 2021-0
7-30 13:45:07
* @Description: 退货申请单查询
*/
import
React
,
{
useState
,
useRef
}
from
'react'
;
...
...
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