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
b60cfb09
Commit
b60cfb09
authored
Jul 24, 2020
by
LeeJiancong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改部分状态-查看,收货编辑
parent
121eb5d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
addressForm.tsx
src/pages/logistics/list/components/addressForm.tsx
+7
-8
No files found.
src/pages/logistics/list/components/addressForm.tsx
View file @
b60cfb09
...
...
@@ -2,7 +2,7 @@
* @Author: LeeJiancong
* @Date: 2020-07-15 10:31:55
* @LastEditors: LeeJiancong
* @LastEditTime: 2020-07-24
19:48:44
* @LastEditTime: 2020-07-24
20:42:21
*/
import
React
,
{
Component
,
useState
,
useEffect
}
from
'react'
;
import
ReactDOM
from
'react-dom'
...
...
@@ -31,7 +31,6 @@ import korenImg from '../../../../../mockStatic/koren.png'
import
us
from
'../../../../../mockStatic/us.png'
const
_width
:
number
=
24
const
_height
:
number
=
17
const
{
location
}
=
history
interface
countryItem
{
name
:
string
,
key
:
string
,
...
...
@@ -102,8 +101,8 @@ const diaLogForm: React.FC<ListProps> = (props) => {
*/
const
formSubmit
=
(
values
)
=>
{
console
.
log
(
values
)
let
id
=
location
.
query
.
id
//0新建
let
type
=
location
.
query
.
type
//'1' 发货 '2'收货
let
id
=
history
.
location
.
query
.
id
//0新建
let
type
=
history
.
location
.
query
.
type
//'1' 发货 '2'收货
let
value
=
{
...
values
}
value
.
isDefault
=
values
.
isDefault
?
1
:
0
if
(
type
==
1
)
{
...
...
@@ -185,7 +184,7 @@ const diaLogForm: React.FC<ListProps> = (props) => {
})
setProvinceList
(
list
)
})
if
(
id
!=
=
0
&&
location
.
query
.
type
==
'1'
)
{
if
(
id
!=
0
&&
history
.
location
.
query
.
type
==
'1'
)
{
PublicApi
.
getLogisticsShipperAddressGet
({
id
:
id
.
toString
()
}).
then
(
res
=>
{
if
(
res
.
code
==
1000
)
{
let
data
=
res
.
data
...
...
@@ -205,7 +204,7 @@ const diaLogForm: React.FC<ListProps> = (props) => {
}
//收货
if
(
id
===
0
&&
location
.
query
.
type
==
'2'
)
{
if
(
id
!=
0
&&
history
.
location
.
query
.
type
==
'2'
)
{
PublicApi
.
getLogisticsReceiverAddressGet
({
id
:
id
.
toString
()
}).
then
(
res
=>
{
if
(
res
.
code
==
1000
)
{
let
data
=
res
.
data
...
...
@@ -295,7 +294,7 @@ const diaLogForm: React.FC<ListProps> = (props) => {
>
<
FormMegaLayout
labelCol=
{
4
}
labelAlign=
"left"
>
{
location
.
query
.
type
==
'1'
?
history
.
location
.
query
.
type
==
'1'
?
<
Field
required
title=
"发货人"
...
...
@@ -319,7 +318,7 @@ const diaLogForm: React.FC<ListProps> = (props) => {
/>
}
<
FormMegaLayout
label=
{
location
.
query
.
type
==
'1'
?
'发货地区'
:
'收货地区'
}
grid
full
autoRow
required
>
<
FormMegaLayout
label=
{
history
.
location
.
query
.
type
==
'1'
?
'发货地区'
:
'收货地区'
}
grid
full
autoRow
required
>
<
Field
x
-
mega
-
props=
{
{
span
:
1
}
}
x
-
component=
"Select"
...
...
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