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
linweijiong
jinfa-platform
Commits
07bfe748
Commit
07bfe748
authored
Jul 28, 2021
by
alwayOnlie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加catch异常处理
parent
d87a9ce6
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
49 additions
and
15 deletions
+49
-15
index.tsx
src/pages/contract/components/examine/index.tsx
+3
-0
index.tsx
...ontract/contractexecution/contractexecutionList/index.tsx
+3
-1
DetailedList.tsx
...act/contractexecution/details/components/DetailedList.tsx
+3
-1
DrawerModal.tsx
...ract/contractexecution/details/components/DrawerModal.tsx
+3
-1
index.tsx
src/pages/contract/contractexecution/details/index.tsx
+2
-0
crossSellProducts.tsx
...tract/coordination/components/modal/crossSellProducts.tsx
+3
-1
selectProduct.tsx
.../contract/coordination/components/modal/selectProduct.tsx
+3
-1
DetailedList.tsx
...contract/coordination/details/components/DetailedList.tsx
+3
-1
Popup.tsx
src/pages/contract/coordination/details/components/Popup.tsx
+3
-1
PurchaseList.tsx
...contract/coordination/details/components/PurchaseList.tsx
+2
-0
SituationList.tsx
...ontract/coordination/details/components/SituationList.tsx
+2
-0
index.tsx
src/pages/contract/coordination/details/index.tsx
+3
-1
index.tsx
src/pages/contract/template/addContract/index.tsx
+10
-5
index.tsx
src/pages/contract/template/classSearch/index.tsx
+3
-1
index.tsx
src/pages/contract/template/templateList/index.tsx
+3
-1
No files found.
src/pages/contract/components/examine/index.tsx
View file @
07bfe748
...
...
@@ -102,7 +102,10 @@ const Examine: React.FC<Iprops> = ({
}
}).
finally
(()
=>
{
msg
();
}).
catch
((
err
)
=>
{
});
};
const
onFinishFailed
=
(
errorInfo
:
any
)
=>
{
console
.
log
(
'Failed:'
,
errorInfo
);
...
...
src/pages/contract/contractexecution/contractexecutionList/index.tsx
View file @
07bfe748
...
...
@@ -144,7 +144,9 @@ const contractexecutionList = () => {
...
params
,
}).
then
(
res
=>
{
resolve
(
res
.
data
)
})
}).
catch
((
err
)
=>
{
resolve
([])
});
})
}
return
(
...
...
src/pages/contract/contractexecution/details/components/DetailedList.tsx
View file @
07bfe748
...
...
@@ -82,7 +82,9 @@ const DetailedList: React.FC<Iprops> = ({
}
else
{
}
})
}).
catch
((
err
)
=>
{
resolve
([])
});
})
}
return
(
...
...
src/pages/contract/contractexecution/details/components/DrawerModal.tsx
View file @
07bfe748
...
...
@@ -83,7 +83,9 @@ const DrawerModal: React.FC<Iprops> = ({
console
.
log
(
res
.
data
,
'请求查看付款明细'
)
resolve
(
res
)
}
})
}).
catch
((
err
)
=>
{
resolve
([])
});
})
}
...
...
src/pages/contract/contractexecution/details/index.tsx
View file @
07bfe748
...
...
@@ -90,6 +90,8 @@ const Details = (props: any) => {
}
}).
finally
(()
=>
{
setListLoading
(
false
);
}).
catch
((
err
)
=>
{
resolve
([])
});
}
/* 执行请款的选中 */
...
...
src/pages/contract/coordination/components/modal/crossSellProducts.tsx
View file @
07bfe748
...
...
@@ -56,7 +56,9 @@ const CrossSellProducts: React.FC<IProps> = (props: any) => {
let
{
data
}
=
res
||
{}
setAttribute
(
data
)
}
})
}).
catch
((
err
)
=>
{
});
}
/**选择报价商品回调 */
...
...
src/pages/contract/coordination/components/modal/selectProduct.tsx
View file @
07bfe748
...
...
@@ -55,7 +55,9 @@ const SelectProduct: React.FC<Iprops> = (props: any) => {
return
new
Promise
(
resolve
=>
{
PublicApi
.
getProductCommodityCommonGetCommodityListBySeller
({
...
params
,
environment
:
1
,
shopType
:
1
}).
then
(
res
=>
{
resolve
(
res
.
data
)
})
}).
catch
((
err
)
=>
{
resolve
([])
});
})
}
/** 关闭 */
...
...
src/pages/contract/coordination/details/components/DetailedList.tsx
View file @
07bfe748
...
...
@@ -75,7 +75,9 @@ const DetailedList: React.FC<Iprops> = ({
}
else
{
}
})
}).
catch
((
err
)
=>
{
resolve
([])
});
})
}
return
(
...
...
src/pages/contract/coordination/details/components/Popup.tsx
View file @
07bfe748
...
...
@@ -110,7 +110,9 @@ const PopupDrawer: React.FC<Iprops> = ({
setpayAmount
(
payAmount
)
setorderAmount
(
orderAmount
)
}
})
}).
catch
((
err
)
=>
{
resolve
([])
});
})
}
...
...
src/pages/contract/coordination/details/components/PurchaseList.tsx
View file @
07bfe748
...
...
@@ -157,6 +157,8 @@ const purchaseList: React.FC<Iprops> = ({
}
}).
finally
(()
=>
{
setListLoading
(
false
);
}).
catch
((
err
)
=>
{
});
}
...
...
src/pages/contract/coordination/details/components/SituationList.tsx
View file @
07bfe748
...
...
@@ -76,6 +76,8 @@ const situationList: React.FC<Iprops> = ({ contractId }) => {
}
}).
finally
(()
=>
{
setListLoading
(
false
);
}).
catch
((
err
)
=>
{
});
}
const
rowSelection
:
any
=
{
...
...
src/pages/contract/coordination/details/index.tsx
View file @
07bfe748
...
...
@@ -128,7 +128,9 @@ const Details = (props: any) => {
setcontractNo
(
basics
.
contractNo
)
setcontractAbstract
(
contractAbstract
)
}
})
}).
catch
((
err
)
=>
{
});
}
useEffect
(()
=>
{
let
tab
=
[]
...
...
src/pages/contract/template/addContract/index.tsx
View file @
07bfe748
...
...
@@ -57,7 +57,8 @@ const AddContract: React.FC<parmas> = (props) => {
useEffect
(()
=>
{
PublicApi
.
getContractContractTemplateExample
().
then
(
res
=>
{
setFileExampleUrl
(
res
.
data
)
})
}).
catch
((
err
)
=>
{
});
},
[])
/**新增&修改 */
...
...
@@ -67,14 +68,16 @@ const AddContract: React.FC<parmas> = (props) => {
setTimeout
(()
=>
{
history
.
goBack
()
},
1000
)
})
}).
catch
((
err
)
=>
{
});
}
else
{
parmas
.
id
=
id
;
await
PublicApi
.
postContractContractTemplateUpdate
(
parmas
).
then
(
res
=>
{
setTimeout
(()
=>
{
history
.
goBack
()
},
1000
)
})
}).
catch
((
err
)
=>
{
});
}
}
...
...
@@ -131,7 +134,8 @@ const AddContract: React.FC<parmas> = (props) => {
form
.
setFieldsValue
(
res
.
data
)
}
})
}).
catch
((
err
)
=>
{
});
}
},
[
id
])
...
...
@@ -149,7 +153,8 @@ const AddContract: React.FC<parmas> = (props) => {
if
(
res
.
code
===
1000
)
{
window
.
open
(
res
.
data
.
contractUrl
)
}
})
}).
catch
((
err
)
=>
{
});
}
...
...
src/pages/contract/template/classSearch/index.tsx
View file @
07bfe748
...
...
@@ -38,7 +38,9 @@ const ClassSearch = () => {
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getContractContractParamPage
({
...
filterParams
,
...
params
}).
then
(
res
=>
{
resolve
(
res
.
data
)
})
}).
catch
(()
=>
{
reject
();
});
})
}
// 搜索
...
...
src/pages/contract/template/templateList/index.tsx
View file @
07bfe748
...
...
@@ -99,7 +99,9 @@ const Template: React.FC<{}> = () => {
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getContractContractTemplatePage
({
...
params
}).
then
(
res
=>
{
resolve
(
res
.
data
)
})
}).
catch
(()
=>
{
reject
();
});
})
}
...
...
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