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
186a9d0e
Commit
186a9d0e
authored
Apr 14, 2022
by
Bill
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-material-links' into 'v2-220418'
fix: 修改首页订单模块路由链接 See merge request linkseeks-design/pro-platform!283
parents
3eb34615
a33da1db
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
add.tsx
src/pages/commodity/material/materialPendingAdd/add.tsx
+3
-1
OrderCenter.tsx
src/pages/home/components/Centers/OrderCenter.tsx
+2
-2
useGetAuth.tsx
src/pages/home/hooks/useGetAuth.tsx
+5
-5
No files found.
src/pages/commodity/material/materialPendingAdd/add.tsx
View file @
186a9d0e
...
...
@@ -80,6 +80,7 @@ const MaterialAdd = (props) => {
if
(
!
formatInitialValue
)
{
return
}
console
.
log
(
formatInitialValue
?.
interiorState
,
"formatInitialValue?.interiorState"
)
if
(
formatInitialValue
?.
interiorState
===
HAS_CONFIRM
)
{
formActions
.
setFieldState
(
'changeCard'
,
(
state
)
=>
{
FormPath
.
setIn
(
state
,
'visible'
,
true
);
...
...
@@ -173,6 +174,7 @@ const MaterialAdd = (props) => {
phone,
userName,
materialGroup,
type,
...rest
} = value;
const formatGoodsPic = goodsPic?.map((_item) => _item.url);
...
...
@@ -250,12 +252,12 @@ const MaterialAdd = (props) => {
costPrice: costPrice,
remark: remark,
unitId: unitId,
type: type,
...formatBrand,
...withId,
...withSourceList,
...withMaterialGroup,
...withChangeData,
...rest,
}
console.log("postData", postData)
setSubmitLoading(true);
...
...
src/pages/home/components/Centers/OrderCenter.tsx
View file @
186a9d0e
...
...
@@ -8,8 +8,8 @@ import useGetAuth from '../../hooks/useGetAuth';
interface
Iprops
{
};
const
{
StaticsDataList
}
=
Layout
const
purchaseOrderUrl
=
'/memberCenter/
tranactionAbility
/purchaseOrder/orderList'
;
const
saleOrderUrl
=
'/memberCenter/
tranactionAbility
/saleOrder/orderList'
const
purchaseOrderUrl
=
'/memberCenter/
order
/purchaseOrder/orderList'
;
const
saleOrderUrl
=
'/memberCenter/
order
/saleOrder/orderList'
const
KEY_TITLE
=
{
saleOrderList
:
getIntl
().
formatMessage
({
id
:
'home.orderCenter.saleOrderList'
}),
...
...
src/pages/home/hooks/useGetAuth.tsx
View file @
186a9d0e
...
...
@@ -46,10 +46,10 @@ const useGetAuth = () => {
const
abilityUrls
=
useMemo
(()
=>
{
return
{
"orderAbility"
:
[
"/memberCenter/
tranactionAbility/saleOrder/
"
,
"/memberCenter/
tranactionAbility
/supplierEvaluation/"
,
"/memberCenter/
tranactionAbility
/purchaseOrder/"
,
"/memberCenter/
tranactionAbility
/purchaserEvaluation/"
,
"/memberCenter/
order/saleOrder
"
,
"/memberCenter/
order
/supplierEvaluation/"
,
"/memberCenter/
order
/purchaseOrder/"
,
"/memberCenter/
order
/purchaserEvaluation/"
,
],
"shopAbility"
:
[
'/memberCenter/commodityAbility/commodity/products'
,
...
...
@@ -136,7 +136,7 @@ const useGetAuth = () => {
*/
const
getLayoutCenters
=
useCallback
(()
=>
{
const
name2link
=
{
'/memberCenter/
tranactionAbility
'
:
"订单中心"
,
'/memberCenter/
order
'
:
"订单中心"
,
'/memberCenter/shopAbility'
:
"店铺中心"
,
// '/memberCenter/tranactionAbility': "交易中心",
'/memberCenter/tranactionAbility/productInquiry'
:
'交易中心'
,
...
...
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