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
317301fb
Commit
317301fb
authored
Apr 12, 2021
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改加工单的bug
parent
5402d508
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
50 additions
and
60 deletions
+50
-60
index.tsx
src/pages/handling/assign/detail/index.tsx
+36
-16
index.tsx
src/pages/handling/components/Query/index.tsx
+1
-0
DetailTab.tsx
.../handling/components/ReceiptDeliveryDetails/DetailTab.tsx
+4
-4
ReceiptDeliveryDetailsCard.tsx
...nts/ReceiptDeliveryDetails/ReceiptDeliveryDetailsCard.tsx
+0
-32
StatisticsTab.tsx
...dling/components/ReceiptDeliveryDetails/StatisticsTab.tsx
+4
-2
index.tsx
...ages/handling/components/ReceiptDeliveryDetails/index.tsx
+3
-4
index.tsx
src/pages/systemSetting/message/index.tsx
+2
-2
No files found.
src/pages/handling/assign/detail/index.tsx
View file @
317301fb
...
...
@@ -93,6 +93,8 @@ const Detail: React.FC<{}> = () => {
const
[
loading
,
setLoading
]
=
useState
<
boolean
>
(
false
);
const
[
deliverAddressOption
,
setDeliverAddressOption
]
=
useState
([]);
const
[
activeAddress
,
setActiveAddress
]
=
useState
<
string
|
null
>
(
null
)
const
[
activeKey
,
setActiveKey
]
=
useState
<
string
>
(
"1"
);
const
hasProductNoDelievery
=
useMemo
(()
=>
{
let
res
=
false
if
(
pathname
===
`
${
PENDING_RECEIPT_PATH
}
/detail`
)
{
...
...
@@ -140,6 +142,12 @@ const Detail: React.FC<{}> = () => {
}
},
[
id
]);
useEffect
(()
=>
{
if
(
info
?.
pnoReceiveDeliverDetailDOList
?.
length
>
0
)
{
setActiveKey
(
"2"
);
}
},
[
info
.
pnoReceiveDeliverDetailDOList
])
// 确认生产通知单 -> 待提交审核生产通知单时需要同时提交他的发货地址
useEffect
(()
=>
{
if
(
isSetDeliverAddress
)
{
...
...
@@ -343,6 +351,14 @@ const Detail: React.FC<{}> = () => {
})
}
/**
* tab change
*/
const
handleTabChange
=
(
tabKey
)
=>
{
console
.
log
(
tabKey
)
setActiveKey
(
tabKey
);
}
return
(
<
PageHeaderWrapper
title=
{
...
...
@@ -444,22 +460,26 @@ const Detail: React.FC<{}> = () => {
{
info
&&
info
.
outerTaskType
!==
29
?
<
div
style=
{
{
marginTop
:
'20px'
}
}
>
<
ReceiptDeliveryDetailsCard
defaultActiveKey=
"1"
>
<
StatisticsTab
tabKey=
"1"
tab=
"收发货统计"
columns=
{
receiveColumns
(
info
.
source
===
SourceEnum
.
order
?
'order'
:
'product'
)
}
dataSource=
{
info
.
details
}
></
StatisticsTab
>
{
info
.
pnoReceiveDeliverDetailDOList
&&
info
.
pnoReceiveDeliverDetailDOList
.
length
>
0
?
<
DetailTab
tabKey=
"2"
tab=
"收发货明细"
columns=
{
receiptAndDeliveryDetailsColumns
}
dataSource=
{
info
.
pnoReceiveDeliverDetailDOList
}
handleConfirm=
{
handleConfirm
}
/>
:
null
}
</
ReceiptDeliveryDetailsCard
>
<
Card
bodyStyle=
{
{
padding
:
'10px 24px 24px 24px'
}
}
>
<
Tabs
activeKey=
{
activeKey
}
onChange=
{
handleTabChange
}
>
<
TabPane
key=
"1"
tab=
"收发货统计"
>
<
StatisticsTab
columns=
{
receiveColumns
(
info
.
source
===
SourceEnum
.
order
?
'order'
:
'product'
)
}
dataSource=
{
info
.
details
}
></
StatisticsTab
>
</
TabPane
>
{
info
.
pnoReceiveDeliverDetailDOList
&&
info
.
pnoReceiveDeliverDetailDOList
.
length
>
0
?
<
TabPane
key=
"2"
tab=
"收发货明细"
>
<
DetailTab
columns=
{
receiptAndDeliveryDetailsColumns
}
dataSource=
{
info
.
pnoReceiveDeliverDetailDOList
}
handleConfirm=
{
handleConfirm
}
/>
</
TabPane
>
:
null
}
</
Tabs
>
</
Card
>
</
div
>
:
null
}
...
...
src/pages/handling/components/Query/index.tsx
View file @
317301fb
...
...
@@ -258,6 +258,7 @@ const Query: React.FC<{}> = (props) => {
service
(
params
).
then
(({
data
,
code
})
=>
{
setBatchLoading
(
false
);
if
(
code
===
1000
)
{
selectRowFns
.
setSelectedRowKeys
([]);
formActions
.
submit
();
}
})
...
...
src/pages/handling/components/ReceiptDeliveryDetails/DetailTab.tsx
View file @
317301fb
...
...
@@ -7,10 +7,10 @@ import { history, Link } from 'umi'
import
{
ASSIGN_PENDING_RECEIVE_DETAIL
,
PENDING_DELIVERD_PATH
,
PENDING_RECEIPT_PATH
}
from
'../../common'
;
interface
Iprops
{
tab
:
string
,
//
tab: string,
columns
:
ColumnsType
<
any
>
,
dataSource
:
any
[],
tabKey
:
string
,
//
tabKey: string,
handleConfirm
:
(
type
:
string
,
params
:
any
)
=>
void
}
...
...
@@ -80,8 +80,8 @@ const DetailTab: React.FC<Iprops> = (props) => {
}
const
sorted
=
dataSource
&&
dataSource
.
sort
((
a
,
b
)
=>
a
.
deliveryBatch
-
b
.
deliveryBatch
)
||
[]
return
(
<
div
>
<
div
>
<
div
>
<
div
>
<
Radio
.
Group
value=
{
activeBatch
}
onChange=
{
handleOnChange
}
>
{
sorted
.
map
((
item
,
key
)
=>
{
...
...
src/pages/handling/components/ReceiptDeliveryDetails/ReceiptDeliveryDetailsCard.tsx
deleted
100644 → 0
View file @
5402d508
import
React
from
'react'
;
import
{
Card
,
Tabs
}
from
'antd'
;
const
TabPane
=
Tabs
.
TabPane
interface
Iprops
{
defaultActiveKey
:
string
};
const
ReceiptDeliveryDetailsCard
:
React
.
FC
<
Iprops
>
=
(
props
)
=>
{
const
newChildren
=
React
.
Children
.
map
(
props
.
children
,
(
child
:
any
,
index
)
=>
{
if
(
child
)
{
return
(
<
TabPane
tab=
{
child
.
props
.
tab
}
key=
{
child
.
props
.
tabKey
.
toString
()
||
index
.
toString
()
}
>
{
child
}
</
TabPane
>
)
}
else
{
return
null
}
})
console
.
log
(
props
.
defaultActiveKey
)
return
(
<
Card
bodyStyle=
{
{
padding
:
'10px 24px 24px 24px'
}
}
>
<
Tabs
defaultActiveKey=
{
props
.
defaultActiveKey
}
>
{
newChildren
}
</
Tabs
>
</
Card
>
)
}
export
default
ReceiptDeliveryDetailsCard
src/pages/handling/components/ReceiptDeliveryDetails/StatisticsTab.tsx
View file @
317301fb
...
...
@@ -2,12 +2,14 @@ import React from 'react';
import
{
Table
}
from
'antd'
;
import
{
ColumnsType
}
from
'antd/es/table'
;
interface
Iprops
{
tab
:
string
,
//
tab: string,
columns
:
ColumnsType
<
any
>
,
dataSource
:
any
[],
tabKey
:
string
,
//
tabKey: string,
}
const
StatisticsTab
:
React
.
FC
<
Iprops
>
=
(
props
)
=>
{
const
{
columns
,
dataSource
}
=
props
;
return
(
...
...
src/pages/handling/components/ReceiptDeliveryDetails/index.tsx
View file @
317301fb
import
ReceiptDeliveryDetailsCard
from
'./ReceiptDeliveryDetailsCard'
;
//
import ReceiptDeliveryDetailsCard from './ReceiptDeliveryDetailsCard';
import
DetailTab
from
'./DetailTab'
;
import
StatisticsTab
from
'./StatisticsTab'
;
export
{
ReceiptDeliveryDetailsCard
,
//
ReceiptDeliveryDetailsCard,
DetailTab
,
StatisticsTab
}
\ No newline at end of file
}
src/pages/systemSetting/message/index.tsx
View file @
317301fb
...
...
@@ -93,8 +93,8 @@ const Message: React.FC<{}> = () => {
className=
{
styles
.
customList
}
pagination=
{
{
onChange
:
handlePaginationChange
,
pageSize
:
10
,
s
ize
:
"small"
,
pageSize
:
pagination
.
pageSize
,
s
howSizeChanger
:
true
,
showQuickJumper
:
true
,
total
:
dataSource
.
totalCount
,
showTotal
:
showTotal
,
...
...
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