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
8aa0090a
Commit
8aa0090a
authored
Dec 31, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into dev
parents
d923106a
39595dd3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
8 deletions
+23
-8
index.tsx
src/pages/handling/assign/detail/index.tsx
+13
-4
DetailTab.tsx
.../handling/components/ReceiptDeliveryDetails/DetailTab.tsx
+0
-1
index.tsx
src/pages/systemSetting/message/index.tsx
+10
-3
No files found.
src/pages/handling/assign/detail/index.tsx
View file @
8aa0090a
...
...
@@ -72,6 +72,13 @@ const EXAM_SERVICE = {
}
const
{
TabPane
}
=
Tabs
;
enum
SourceEnum
{
order
=
1
,
product
=
2
,
}
const
Detail
:
React
.
FC
<
{}
>
=
()
=>
{
const
pathname
=
history
.
location
.
pathname
;
const
isSupplier
=
pathname
.
includes
(
'assign'
)
;
...
...
@@ -110,6 +117,8 @@ const Detail: React.FC<{}> = () => {
}
return
res
;
},
[
info
])
// 生产通知单收发货明细 columns
const
receiptAndDeliveryDetailsColumns
=
info
.
source
===
SourceEnum
.
order
?
pnoReceiveDeliverDetailDOListColumns
:
pnoReceiveDeliverDetailDOListColumns
.
slice
(
1
);
const
getInfo
=
()
=>
{
const
service
=
SERVICE_MAP
[
pathname
];
...
...
@@ -359,7 +368,7 @@ const Detail: React.FC<{}> = () => {
<
Descriptions
.
Item
span=
{
3
}
label=
"通知单摘要:"
style=
{
{
overflow
:
'hidden'
}
}
>
{
info
?.
summary
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"加工企业:"
>
{
info
?.
processName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"单据时间:"
>
{
info
&&
info
.
createTime
&&
moment
(
info
.
createTime
).
format
(
'YYYY-MM-DD'
)
||
null
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"通知单来源:"
>
{
info
?.
source
==
'1'
?
'订单加工'
:
'商品加工'
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"通知单来源:"
>
{
info
?.
source
==
=
SourceEnum
.
order
?
'订单加工'
:
'商品加工'
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"外部状态:"
>
<
StatusTag
type=
{
SUPPLIER_OUTER_STATUS_COLOR
[
info
.
outerStatus
]
}
title=
{
info
.
outerStatusName
}
/>
</
Descriptions
.
Item
>
...
...
@@ -424,7 +433,7 @@ const Detail: React.FC<{}> = () => {
<
div
style=
{
{
marginTop
:
'20px'
}
}
>
<
Card
>
<
h1
style=
{
{
fontSize
:
'16px'
,
marginBottom
:
'16px'
}
}
><
strong
>
通知单明细
</
strong
></
h1
>
<
Table
rowKey=
{
"id"
}
dataSource=
{
info
?.
details
}
columns=
{
info
.
source
===
2
?
orderDetailColumn
:
columns
}
/>
<
Table
rowKey=
{
"id"
}
dataSource=
{
info
?.
details
}
columns=
{
info
.
source
===
SourceEnum
.
order
?
columns
:
orderDetailColumn
}
/>
</
Card
>
</
div
>
...
...
@@ -433,13 +442,13 @@ const Detail: React.FC<{}> = () => {
info
&&
info
.
outerTaskType
!==
29
?
<
div
style=
{
{
marginTop
:
'20px'
}
}
>
<
ReceiptDeliveryDetailsCard
>
<
StatisticsTab
tab=
"收发货统计"
columns=
{
receiveColumns
(
info
.
source
===
2
?
'product'
:
'order
'
)
}
dataSource=
{
info
.
details
}
></
StatisticsTab
>
<
StatisticsTab
tab=
"收发货统计"
columns=
{
receiveColumns
(
info
.
source
===
SourceEnum
.
order
?
'order'
:
'product
'
)
}
dataSource=
{
info
.
details
}
></
StatisticsTab
>
{
info
.
pnoReceiveDeliverDetailDOList
&&
info
.
pnoReceiveDeliverDetailDOList
.
length
>
0
?
<
DetailTab
tab=
"收发货明细"
columns=
{
pnoReceiveDeliverDetailDOList
Columns
}
columns=
{
receiptAndDeliveryDetails
Columns
}
dataSource=
{
info
.
pnoReceiveDeliverDetailDOList
}
handleConfirm=
{
handleConfirm
}
/>
...
...
src/pages/handling/components/ReceiptDeliveryDetails/DetailTab.tsx
View file @
8aa0090a
...
...
@@ -136,7 +136,6 @@ const DetailTab: React.FC<Iprops> = (props) => {
<
span
className=
{
styles
.
title
}
>
内部状态
</
span
>
<
span
className=
{
styles
.
value
}
>
{
INNER_TEXT
[
`${activeData.deliverStatus}_${activeData.receiveStatus}_${activeData.receiptStatus}`
]
}
</
span
>
</
div
>
</
Col
>
...
...
src/pages/systemSetting/message/index.tsx
View file @
8aa0090a
...
...
@@ -38,8 +38,7 @@ const Message: React.FC<{}> = () => {
}
const
handleRead
=
(
id
,
url
:
string
)
=>
{
console
.
log
(
url
);
PublicApi
.
getReportMessageMemberRead
({
id
:
id
})
PublicApi
.
postReportMessageMemberRead
({
id
:
id
})
.
then
((
data
)
=>
{
if
(
url
)
{
if
(
/http/
.
test
(
url
))
{
...
...
@@ -52,6 +51,14 @@ const Message: React.FC<{}> = () => {
}
})
}
const
handleAllMessageRead
=
()
=>
{
PublicApi
.
postReportMessageMemberReadAll
()
.
then
((
data
)
=>
{
if
(
data
.
code
===
1000
)
{
getList
(
pagination
)
}
})
}
const
renderMessage
=
(
data
)
=>
{
const
type
=
data
.
type
...
...
@@ -73,7 +80,7 @@ const Message: React.FC<{}> = () => {
<
Card
title=
"消息列表"
extra=
{
(
<
div
><
Button
type=
"link"
>
全部已读
</
Button
></
div
>
<
div
><
Button
type=
"link"
onClick=
{
handleAllMessageRead
}
>
全部已读
</
Button
></
div
>
)
}
>
<
List
...
...
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