Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
zhangzhonghua
/
BoneHouse_Business_APP
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
aca17d51
authored
Aug 10, 2020
by
Denglingling
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
增加为空时的提示信息
(cherry picked from commit
30919775
)
parent
1917c173
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
app/containers/quickOrder/QuickOrderPage.js
app/containers/quickOrder/QuickOrderPage.js
View file @
aca17d51
...
@@ -733,6 +733,10 @@ class EquipConsuPage extends Component {
...
@@ -733,6 +733,10 @@ class EquipConsuPage extends Component {
let
{
data
:
{
customers
}
}
=
cusResult
let
{
data
:
{
customers
}
}
=
cusResult
props
.
requestListDataSuccess
(
customers
)
props
.
requestListDataSuccess
(
customers
)
let
filterOpt
=
dedupQuoteArray
(
customers
,
'customer_code'
)
let
filterOpt
=
dedupQuoteArray
(
customers
,
'customer_code'
)
if
(
filterOpt
.
length
===
0
)
{
show
(
`当前客户名称为空`
)
return
}
if
(
filterOpt
.
length
===
1
)
{
if
(
filterOpt
.
length
===
1
)
{
let
{
listOptionData
}
=
state
let
{
listOptionData
}
=
state
listOptionData
[
2
].
name
=
filterOpt
[
0
].
customer_name
listOptionData
[
2
].
name
=
filterOpt
[
0
].
customer_name
...
@@ -789,6 +793,10 @@ class EquipConsuPage extends Component {
...
@@ -789,6 +793,10 @@ class EquipConsuPage extends Component {
let
{
localCustomersOption
,
listOptionData
}
=
this
.
state
let
{
localCustomersOption
,
listOptionData
}
=
this
.
state
let
that
=
this
let
that
=
this
let
tempLocalOption
=
localCustomersOption
.
filter
(
item
=>
item
.
customer_code
===
listOptionData
[
2
].
value
)
let
tempLocalOption
=
localCustomersOption
.
filter
(
item
=>
item
.
customer_code
===
listOptionData
[
2
].
value
)
if
(
tempLocalOption
.
length
===
0
)
{
show
(
`当前收单地点为空`
)
return
}
if
(
tempLocalOption
.
length
===
1
)
{
if
(
tempLocalOption
.
length
===
1
)
{
listOptionData
[
3
].
name
=
tempLocalOption
[
0
].
bill_to_site_name
listOptionData
[
3
].
name
=
tempLocalOption
[
0
].
bill_to_site_name
listOptionData
[
3
].
value
=
tempLocalOption
[
0
].
bill_to_site_code
listOptionData
[
3
].
value
=
tempLocalOption
[
0
].
bill_to_site_code
...
@@ -833,6 +841,10 @@ class EquipConsuPage extends Component {
...
@@ -833,6 +841,10 @@ class EquipConsuPage extends Component {
let
{
localCustomersOption
,
listOptionData
}
=
this
.
state
let
{
localCustomersOption
,
listOptionData
}
=
this
.
state
let
that
=
this
let
that
=
this
let
tempLocalOption
=
localCustomersOption
.
filter
(
item
=>
item
.
customer_code
===
listOptionData
[
2
].
value
)
let
tempLocalOption
=
localCustomersOption
.
filter
(
item
=>
item
.
customer_code
===
listOptionData
[
2
].
value
)
if
(
tempLocalOption
.
length
===
0
)
{
show
(
`当前收货地点为空`
)
return
}
if
(
tempLocalOption
.
length
===
1
)
{
if
(
tempLocalOption
.
length
===
1
)
{
listOptionData
[
4
].
name
=
tempLocalOption
[
0
].
ship_to_site_name
listOptionData
[
4
].
name
=
tempLocalOption
[
0
].
ship_to_site_name
listOptionData
[
4
].
value
=
tempLocalOption
[
0
].
ship_to_site_code
listOptionData
[
4
].
value
=
tempLocalOption
[
0
].
ship_to_site_code
...
...
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