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
e9e04d90
Commit
e9e04d90
authored
Jan 29, 2021
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改首页物流显示bug,加工审核不通过选择bug, 加工物流单修改bug
parent
855eb0bb
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
32 additions
and
28 deletions
+32
-28
index.tsx
src/pages/handling/assign/detail/index.tsx
+3
-1
index.tsx
src/pages/handling/assign/processStock/index.tsx
+2
-2
index.tsx
src/pages/handling/components/DeliveryInformation/index.tsx
+0
-2
index.tsx
src/pages/handling/components/ExamineModal/index.tsx
+12
-17
LogisticsCenter.tsx
src/pages/home/components/Centers/LogisticsCenter.tsx
+4
-4
index.tsx
...pages/member/memberImport/components/MemberForm/index.tsx
+11
-1
editMySelf.tsx
src/pages/member/memberImport/editMySelf.tsx
+0
-1
No files found.
src/pages/handling/assign/detail/index.tsx
View file @
e9e04d90
...
@@ -80,6 +80,8 @@ enum SourceEnum {
...
@@ -80,6 +80,8 @@ enum SourceEnum {
product
=
2
,
product
=
2
,
}
}
const
innerStatusFail
=
9
;
// 内部状态审核不通过时, 单据审核默认不通过
const
Detail
:
React
.
FC
<
{}
>
=
()
=>
{
const
Detail
:
React
.
FC
<
{}
>
=
()
=>
{
const
pathname
=
history
.
location
.
pathname
;
const
pathname
=
history
.
location
.
pathname
;
...
@@ -246,7 +248,7 @@ const Detail: React.FC<{}> = () => {
...
@@ -246,7 +248,7 @@ const Detail: React.FC<{}> = () => {
const
renderExtra
=
()
=>
{
const
renderExtra
=
()
=>
{
const
ExamineComponent
=
(
const
ExamineComponent
=
(
<
ExamineModal
onOk=
{
examOnOk
}
modalType=
{
"basic"
}
>
<
ExamineModal
onOk=
{
examOnOk
}
modalType=
{
"basic"
}
defaultChecked=
{
info
?.
innerStatus
===
innerStatusFail
?
0
:
1
}
>
<
Button
loading=
{
loading
}
type=
"primary"
>
单据审核
</
Button
>
<
Button
loading=
{
loading
}
type=
"primary"
>
单据审核
</
Button
>
</
ExamineModal
>
</
ExamineModal
>
)
)
...
...
src/pages/handling/assign/processStock/index.tsx
View file @
e9e04d90
...
@@ -189,7 +189,7 @@ const processStock: React.FC<{}> = () => {
...
@@ -189,7 +189,7 @@ const processStock: React.FC<{}> = () => {
),
),
[
OuterAndInnerStatus
.
pending_add_logistics
]:
<
Link
to
=
{
`
${
ADD_LOGISTICS_PATH
}
?createType=3&id=
${
record
.
id
}
`
}
>
新增物流单
<
/Link>
,
[
OuterAndInnerStatus
.
pending_add_logistics
]:
<
Link
to
=
{
`
${
ADD_LOGISTICS_PATH
}
?createType=3&id=
${
record
.
id
}
`
}
>
新增物流单
<
/Link>
,
[
OuterAndInnerStatus
.
pending_confirm_logistics
]:
<
Link
to
=
{
`
${
DETAIL_LOGISTICS_PATH
}
?id=
${
record
.
logisticsOrderId
}
`
}
>
查看物流单
<
/Link>
,
[
OuterAndInnerStatus
.
pending_confirm_logistics
]:
<
Link
to
=
{
`
${
DETAIL_LOGISTICS_PATH
}
?id=
${
record
.
logisticsOrderId
}
`
}
>
查看物流单
<
/Link>
,
[
OuterAndInnerStatus
.
editing_logistics
]:
<
Link
to
=
{
`
memberCenter/logisticsAbility/logisticsSubmit/toOrderSumitList/edit?id=
${
record
.
logisticsOrderId
}
`
}
>
<
/
Link
>
,
[
OuterAndInnerStatus
.
editing_logistics
]:
<
Link
to
=
{
`
/memberCenter/logisticsAbility/logisticsSubmit/toOrderSumitList/edit?id=
${
record
.
logisticsOrderId
}
`
}
>
编辑
<
/Link>
,
[
OuterAndInnerStatus
.
pending_confirm_deliver
]:
<
Link
to
=
{
`
${
PENDING_DELIVERD_PATH
}
/detail?id=
${
record
.
id
}
`
}
>
发货
<
/Link>
,
[
OuterAndInnerStatus
.
pending_confirm_deliver
]:
<
Link
to
=
{
`
${
PENDING_DELIVERD_PATH
}
/detail?id=
${
record
.
id
}
`
}
>
发货
<
/Link>
,
[
OuterAndInnerStatus
.
pending_add_process_in_warehouse
]:
(
[
OuterAndInnerStatus
.
pending_add_process_in_warehouse
]:
(
<
Link
<
Link
...
@@ -215,7 +215,7 @@ const processStock: React.FC<{}> = () => {
...
@@ -215,7 +215,7 @@ const processStock: React.FC<{}> = () => {
[
OuterAndInnerStatus
.
pending_confirm_receive
]:
<
Link
to
=
{
`
${
ASSIGN_PENDING_RECEIVE
}
/detail?id=
${
record
.
id
}
`
}
>
收货
<
/Link>
,
[
OuterAndInnerStatus
.
pending_confirm_receive
]:
<
Link
to
=
{
`
${
ASSIGN_PENDING_RECEIVE
}
/detail?id=
${
record
.
id
}
`
}
>
收货
<
/Link>
,
[
OuterAndInnerStatus
.
pending_confirm_receipt
]:
<
Link
to
=
{
`
${
PENDING_RECEIPT_PATH
}
/detail?id=
${
record
.
id
}
`
}
>
确认回单
<
/Link
>
[
OuterAndInnerStatus
.
pending_confirm_receipt
]:
<
Link
to
=
{
`
${
PENDING_RECEIPT_PATH
}
/detail?id=
${
record
.
id
}
`
}
>
确认回单
<
/Link
>
}
}
return MAP[`$
{
outerStatus
}
_$
{
innerStatus
}
`]
return
MAP
[
`
${
outerStatus
}
_
${
innerStatus
}
`
]
;
}
}
}
}
]
]
...
...
src/pages/handling/components/DeliveryInformation/index.tsx
View file @
e9e04d90
...
@@ -26,9 +26,7 @@ interface Iprops {
...
@@ -26,9 +26,7 @@ interface Iprops {
}
}
const
DeliveryInfomation
:
React
.
FC
<
Iprops
>
=
(
props
)
=>
{
const
DeliveryInfomation
:
React
.
FC
<
Iprops
>
=
(
props
)
=>
{
console
.
log
(
props
);
const
manualDeliverInfo
=
props
.
manualDeliver
&&
props
.
manualDeliver
.
deliveryAddress
?.
split
(
"/"
);
const
manualDeliverInfo
=
props
.
manualDeliver
&&
props
.
manualDeliver
.
deliveryAddress
?.
split
(
"/"
);
console
.
log
(
manualDeliverInfo
)
return
(
return
(
<
Card
title=
"交付信息"
>
<
Card
title=
"交付信息"
>
<
Row
>
<
Row
>
...
...
src/pages/handling/components/ExamineModal/index.tsx
View file @
e9e04d90
...
@@ -18,20 +18,21 @@ interface Iparams {
...
@@ -18,20 +18,21 @@ interface Iparams {
enum
ImodalType
{
enum
ImodalType
{
BAICE
=
"basic"
,
BAICE
=
"basic"
,
HASADDRESS
=
"hasAddress"
,
HASADDRESS
=
"hasAddress"
,
}
}
interface
Iprops
{
interface
Iprops
{
onOk
?:
(
params
:
Iparams
)
=>
void
,
onOk
?:
(
params
:
Iparams
)
=>
void
,
modalType
:
string
modalType
:
string
,
defaultChecked
:
number
}
}
const
ExamineModal
:
React
.
FC
<
Iprops
>
=
(
props
)
=>
{
const
ExamineModal
:
React
.
FC
<
Iprops
>
=
(
props
)
=>
{
const
[
visible
,
setVisible
]
=
useState
<
boolean
>
(
false
);
const
[
visible
,
setVisible
]
=
useState
<
boolean
>
(
false
);
const
[
status
,
setStatus
]
=
useState
<
number
>
(
1
);
const
[
status
,
setStatus
]
=
useState
<
number
>
(
props
.
defaultChecked
);
const
[
text
,
setText
]
=
useState
(
""
);
const
[
text
,
setText
]
=
useState
(
""
);
const
[
receiveAddress
,
setReceiveAddress
]
=
useState
([]);
const
[
receiveAddress
,
setReceiveAddress
]
=
useState
([]);
const
[
activeAddress
,
setActiveAddress
]
=
useState
<
number
>
(
null
);
const
[
activeAddress
,
setActiveAddress
]
=
useState
<
number
>
(
null
);
const
handleOnOk
=
()
=>
{
const
handleOnOk
=
()
=>
{
if
(
status
===
0
&&
text
==
''
)
{
if
(
status
===
0
&&
text
==
''
)
{
message
.
error
(
"不通过原因不能为空"
);
message
.
error
(
"不通过原因不能为空"
);
...
@@ -72,19 +73,16 @@ const ExamineModal: React.FC<Iprops> = (props) => {
...
@@ -72,19 +73,16 @@ const ExamineModal: React.FC<Iprops> = (props) => {
pageSize
:
'15'
pageSize
:
'15'
}).
then
(({
data
,
code
})
=>
{
}).
then
(({
data
,
code
})
=>
{
if
(
code
===
1000
)
{
if
(
code
===
1000
)
{
// const temp = data.data.map((item) => {
// return {
// label: item.fullAddress + " / " + item.receiverName + " / " + item.phone,item.fullAddress + " / " + item.receiverName + " / " + item.phone,
// value: item.id,
// otherMsg: item,
// }
// })
setReceiveAddress
(
data
.
data
)
setReceiveAddress
(
data
.
data
)
}
}
})
})
}
}
},
[
props
.
modalType
])
},
[
props
.
modalType
])
useEffect
(()
=>
{
setStatus
(
props
.
defaultChecked
)
},
[
props
.
defaultChecked
])
const
handleSelectChange
=
(
value
)
=>
{
const
handleSelectChange
=
(
value
)
=>
{
setActiveAddress
(
value
)
setActiveAddress
(
value
)
}
}
...
@@ -95,8 +93,6 @@ const ExamineModal: React.FC<Iprops> = (props) => {
...
@@ -95,8 +93,6 @@ const ExamineModal: React.FC<Iprops> = (props) => {
{
{
props
.
children
props
.
children
}
}
{
/* <Button type="primary" >单据审核</Button> */
}
</
div
>
</
div
>
<
Modal
<
Modal
visible=
{
visible
}
visible=
{
visible
}
...
@@ -118,7 +114,7 @@ const ExamineModal: React.FC<Iprops> = (props) => {
...
@@ -118,7 +114,7 @@ const ExamineModal: React.FC<Iprops> = (props) => {
</
Select
>
</
Select
>
</
div
>
</
div
>
<
Radio
.
Group
onChange=
{
onChange
}
value=
{
status
}
>
<
Radio
.
Group
onChange=
{
onChange
}
value=
{
status
}
>
<
Radio
value=
{
1
}
>
审核通过
</
Radio
>
<
Radio
value=
{
1
}
disabled=
{
props
.
defaultChecked
===
0
}
>
审核通过
</
Radio
>
<
Radio
value=
{
0
}
>
审核不通过
</
Radio
>
<
Radio
value=
{
0
}
>
审核不通过
</
Radio
>
</
Radio
.
Group
>
</
Radio
.
Group
>
<
div
style=
{
status
===
1
?
{
display
:
'none'
}
:
{}
}
>
<
div
style=
{
status
===
1
?
{
display
:
'none'
}
:
{}
}
>
...
@@ -130,7 +126,7 @@ const ExamineModal: React.FC<Iprops> = (props) => {
...
@@ -130,7 +126,7 @@ const ExamineModal: React.FC<Iprops> = (props) => {
</
div
>
</
div
>
</
Modal
>
</
Modal
>
</
div
>
</
div
>
)
)
}
}
...
@@ -138,4 +134,4 @@ ExamineModal.defaultProps = {
...
@@ -138,4 +134,4 @@ ExamineModal.defaultProps = {
modalType
:
ImodalType
.
BAICE
modalType
:
ImodalType
.
BAICE
}
}
export
default
ExamineModal
export
default
ExamineModal
\ No newline at end of file
src/pages/home/components/Centers/LogisticsCenter.tsx
View file @
e9e04d90
...
@@ -76,10 +76,10 @@ const LogisticsCenter: React.FC<Iprops> = () => {
...
@@ -76,10 +76,10 @@ const LogisticsCenter: React.FC<Iprops> = () => {
<
div
className=
{
styles
.
centerRow
}
>
<
div
className=
{
styles
.
centerRow
}
>
{
{
data
.
map
((
item
)
=>
{
data
.
map
((
item
)
=>
{
const
hasAuth
=
!
urls
.
includes
(
item
.
url
);
//
const hasAuth = !urls.includes(item.url);
if
(
!
hasAuth
)
{
//
if(!hasAuth)
{
return
null
//
return null
}
//
}
return
(
return
(
<
Link
key=
{
item
.
text
}
to=
{
item
.
url
}
className=
{
styles
.
tagsItem
}
>
<
Link
key=
{
item
.
text
}
to=
{
item
.
url
}
className=
{
styles
.
tagsItem
}
>
<
div
className=
{
styles
.
icon
}
>
<
div
className=
{
styles
.
icon
}
>
...
...
src/pages/member/memberImport/components/MemberForm/index.tsx
View file @
e9e04d90
...
@@ -15,6 +15,7 @@ import { useLinkageUtils } from '@/utils/formEffectUtils';
...
@@ -15,6 +15,7 @@ import { useLinkageUtils } from '@/utils/formEffectUtils';
import
{
PublicApi
}
from
'@/services/api'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
GetMemberAbilitySubGetResponse
}
from
'@/services/MemberApi'
;
import
{
GetMemberAbilitySubGetResponse
}
from
'@/services/MemberApi'
;
import
{
initDetailSchema
}
from
'./schema'
;
import
{
initDetailSchema
}
from
'./schema'
;
import
{
getAuth
}
from
'@/utils/auth'
;
const
formActions
=
createFormActions
();
const
formActions
=
createFormActions
();
const
{
const
{
...
@@ -164,7 +165,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
...
@@ -164,7 +165,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
mode
===
"myself"
)
{
if
(
mode
===
"myself"
)
{
formActions
.
setFieldState
(
'tabs.tab-1.
*
'
,
state
=>
{
formActions
.
setFieldState
(
'tabs.tab-1.
MEGA_LAYOUT1.*(memberTypeId, MEGA_LAYOUT1_1.*, roleId, level)
'
,
state
=>
{
state
.
editable
=
false
;
state
.
editable
=
false
;
});
});
}
}
...
@@ -267,11 +268,20 @@ const MemberForm: React.FC<MemberFormProps> = ({
...
@@ -267,11 +268,20 @@ const MemberForm: React.FC<MemberFormProps> = ({
duration
:
0
,
duration
:
0
,
});
});
PublicApi
.
postMemberMainpageDetailUpdate
({
PublicApi
.
postMemberMainpageDetailUpdate
({
email
,
detail
:
rest
,
detail
:
rest
,
}).
then
(({
data
,
code
})
=>
{
}).
then
(({
data
,
code
})
=>
{
if
(
code
!==
1000
)
{
if
(
code
!==
1000
)
{
return
;
return
;
}
}
const
auth
=
getAuth
();
localStorage
.
setItem
(
"auth"
,
JSON
.
stringify
({
...
auth
,
validateMsg
:
null
,
validateStatus
:
1
,
validateStatusDesc
:
"待审核"
}))
setUnsaved
(
false
);
setUnsaved
(
false
);
setTimeout
(()
=>
{
setTimeout
(()
=>
{
history
.
push
(
'/memberCenter/home'
)
history
.
push
(
'/memberCenter/home'
)
...
...
src/pages/member/memberImport/editMySelf.tsx
View file @
e9e04d90
...
@@ -4,7 +4,6 @@ import MemberForm from './components/MemberForm';
...
@@ -4,7 +4,6 @@ import MemberForm from './components/MemberForm';
const
EditMySelf
:
React
.
FC
=
()
=>
{
const
EditMySelf
:
React
.
FC
=
()
=>
{
const
{
id
,
validateId
}
=
usePageStatus
();
const
{
id
,
validateId
}
=
usePageStatus
();
console
.
log
(
123
);
return
(
return
(
<
MemberForm
id=
{
+
id
}
validateId=
{
+
validateId
}
isEdit=
{
true
}
mode=
{
"myself"
}
/>
<
MemberForm
id=
{
+
id
}
validateId=
{
+
validateId
}
isEdit=
{
true
}
mode=
{
"myself"
}
/>
...
...
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