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
b17718de
Commit
b17718de
authored
Sep 29, 2020
by
LeeJiancong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'新建物流计算'
parent
b4834b24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
19 deletions
+34
-19
toOrderSubmitDetail.tsx
src/pages/logistics/logisticsSubmit/toOrderSubmitDetail.tsx
+34
-19
No files found.
src/pages/logistics/logisticsSubmit/toOrderSubmitDetail.tsx
View file @
b17718de
...
...
@@ -3,7 +3,7 @@
* @Date: 2020-07-28 11:25:30
* @LastEditors: LeeJiancong
* @Copyright: 1549414730@qq.com
* @LastEditTime: 2020-09-2
6 17:37:12
* @LastEditTime: 2020-09-2
9 10:05:44
*/
import
React
,
{
Component
,
useEffect
,
useRef
,
useState
,
ReactNode
}
from
'react'
...
...
@@ -326,7 +326,8 @@ const Deatail: React.FC<{}> = () => {
}
})
return
}
else
{
//订单
}
if
(
query
.
invoicesId
){
//订单
PublicApi
.
getOrderLogisticsOrderList
({
current
:
'1'
,
pageSize
:
'100000'
...
...
@@ -340,9 +341,6 @@ const Deatail: React.FC<{}> = () => {
}
})
}
}
return
()
=>
{
...
...
@@ -628,6 +626,22 @@ const Deatail: React.FC<{}> = () => {
*/
const
handleConfirmProduct
=
()
=>
{
console
.
log
(
'goodRowCtl'
,
goodRowCtl
)
let
list
=
[...
goodRowCtl
.
selectRow
]
list
.
forEach
((
val
:
any
)
=>
{
if
(
!
val
.
hasOwnProperty
(
'amount'
)){
val
[
'amount'
]
=
null
}
if
(
!
val
.
hasOwnProperty
(
'carton'
)){
val
[
'carton'
]
=
null
}
if
(
!
val
.
hasOwnProperty
(
'weight'
)){
val
[
'weight'
]
=
null
}
if
(
!
val
.
hasOwnProperty
(
'volume'
)){
val
[
'volume'
]
=
null
}
})
actions
.
setFieldValue
(
"detailList"
,
goodRowCtl
.
selectRow
)
setvisibleObj
({
...
visibleObj
,
ModalSeletOrder3
:
false
})
}
...
...
@@ -781,13 +795,13 @@ const Deatail: React.FC<{}> = () => {
</
Row
>
{
state
.
value
.
map
((
item
:
any
,
index
:
any
)
=>
{
const
onRemove
=
(
index
:
number
)
=>
{
mutators
.
remove
(
index
)
console
.
log
(
index
)
// let _list = list.splice(index, 1)
// console.log('_list', _list,mutators)
mutators
.
remove
(
index
)
let
list
=
actions
.
getFieldValue
(
'detailList'
)
let
_list
=
list
.
splice
(
1
,
index
)
console
.
log
(
'_list'
,
_list
)
actions
.
setFieldValue
(
'detailList'
,
...
_list
)
computedALL
(
_list
)
// actions.setFieldValue('detailList', ...list)
computedALL
(
list
)
}
return
(
<>
...
...
@@ -853,14 +867,15 @@ const Deatail: React.FC<{}> = () => {
<
Col
span=
{
2
}
>
<
FormItem
name=
{
`detailList.${index}.weight`
}
component=
{
Input
}
// rules=
{
// [
//
{
// pattern:''
//
}
// ]
//
}
component=
{
NumberPicker
}
rules=
{
[
{
// pattern:''
message
:
'请输入数值'
}
]
}
required
/>
...
...
@@ -868,7 +883,7 @@ const Deatail: React.FC<{}> = () => {
<
Col
span=
{
2
}
>
<
FormItem
name=
{
`detailList.${index}.volume`
}
component=
{
Input
}
component=
{
NumberPicker
}
required
/>
...
...
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