Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
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-admin
Commits
96c4b91d
Commit
96c4b91d
authored
Jul 30, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 添加 catch
parent
86c83dd6
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
4 deletions
+22
-4
detail.tsx
src/pages/exchangeManage/query/detail.tsx
+5
-1
detail.tsx
src/pages/repairManage/query/detail.tsx
+5
-1
index.tsx
src/pages/returnManage/components/DetailInfo/index.tsx
+5
-1
index.tsx
...ges/returnManage/components/RefundModal/Balance/index.tsx
+2
-0
index.tsx
...ages/returnManage/components/RefundModal/Credit/index.tsx
+2
-0
index.tsx
...age/components/RefundModal/UploadPaymentVoucher/index.tsx
+2
-0
index.tsx
src/pages/returnManage/returnPrReturn/index.tsx
+1
-1
No files found.
src/pages/exchangeManage/query/detail.tsx
View file @
96c4b91d
...
...
@@ -67,10 +67,12 @@ const DetailInfo: React.FC = () => {
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
);
});
...
...
@@ -92,6 +94,8 @@ const DetailInfo: React.FC = () => {
}
}).
finally
(()
=>
{
setExchangeGoodsLoading
(
false
);
}).
catch
((
err
)
=>
{
console
.
warn
(
err
);
});
};
...
...
src/pages/repairManage/query/detail.tsx
View file @
96c4b91d
...
...
@@ -110,10 +110,12 @@ const DetailInfo: React.FC = () => {
faultFileList
,
supplierName
,
...
rest
,
fileList
:
faultFileList
.
map
(
item
=>
normalizeFiledata
(
item
.
filePath
)),
fileList
:
faultFileList
?
.
map
(
item
=>
normalizeFiledata
(
item
.
filePath
)),
repairAddress
:
isJSONStr
(
repairAddress
)
||
null
,
});
}
}).
catch
((
err
)
=>
{
console
.
warn
(
err
);
}).
finally
(()
=>
{
setInfoLoading
(
false
);
});
...
...
@@ -133,6 +135,8 @@ const DetailInfo: React.FC = () => {
if
(
res
.
code
===
1000
)
{
setRepairGoodsList
(
res
.
data
);
}
}).
catch
((
err
)
=>
{
console
.
warn
(
err
);
}).
finally
(()
=>
{
setRepairGoodsLoading
(
false
);
});
...
...
src/pages/returnManage/components/DetailInfo/index.tsx
View file @
96c4b91d
...
...
@@ -209,10 +209,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
);
});
...
...
@@ -232,6 +234,8 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
if
(
res
.
code
===
1000
)
{
setReturnGoodsList
(
res
.
data
);
}
}).
catch
((
err
)
=>
{
console
.
warn
(
err
);
}).
finally
(()
=>
{
setReturnGoodsLoading
(
false
);
});
...
...
src/pages/returnManage/components/RefundModal/Balance/index.tsx
View file @
96c4b91d
...
...
@@ -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/returnManage/components/RefundModal/Credit/index.tsx
View file @
96c4b91d
...
...
@@ -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/returnManage/components/RefundModal/UploadPaymentVoucher/index.tsx
View file @
96c4b91d
...
...
@@ -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/returnManage/returnPrReturn/index.tsx
View file @
96c4b91d
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-12-18 15:31:25
* @LastEditors: XieZhiXiong
* @LastEditTime: 202
0-12-18 15:32:37
* @LastEditTime: 202
1-07-30 15:14:34
* @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