Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wechat
Project
Project
Details
Activity
Releases
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
陈卓 Joechan Chen
wechat
Commits
416456ee
Commit
416456ee
authored
Jun 26, 2023
by
陈卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改在途
parent
1d76e1a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
7 deletions
+44
-7
index.js
src/views/dstributorOnTheWayQuery/index.js
+44
-7
No files found.
src/views/dstributorOnTheWayQuery/index.js
View file @
416456ee
...
...
@@ -52,19 +52,19 @@ class DstributorOnTheWayQuery extends React.Component {
localStorage
.
setItem
(
"partid"
,
value
);
}
query
(){
if
(
!
this
.
state
.
id
&&
!
this
.
state
.
boxnum
){
Toast
.
info
(
"请输入注册号或者箱号"
)
if
(
!
this
.
state
.
id
&&
!
this
.
state
.
boxnum
&&
!
this
.
state
.
ordernum
){
Toast
.
info
(
"请输入注册号或者箱号
或订单号
"
)
this
.
setState
({
data
:[]
})
}
else
{
if
(
this
.
state
.
box
num
){
if
(
this
.
state
.
order
num
){
//根据箱号查询
var
box_number
=
this
.
state
.
box
num
var
ordernum
=
this
.
state
.
order
num
let
code
=
this
.
state
.
userInfo
.
code
||
""
//站点
Toast
.
loading
(
'Loading...'
,
0
,
()
=>
{
},
true
);
pdaApi
.
getqueryinfo
({
box_number
,
code
}).
then
(
res
=>
{
pdaApi
.
getqueryinfo
({
ordernum
,
code
}).
then
(
res
=>
{
Toast
.
hide
();
console
.
log
(
'在途查询--箱号'
,
res
);
if
(
res
.
code
==
1
&&
res
.
result
.
length
!=
0
){
...
...
@@ -82,6 +82,30 @@ class DstributorOnTheWayQuery extends React.Component {
})
return
}
if
(
this
.
state
.
boxnum
){
//根据箱号查询
var
box_number
=
this
.
state
.
boxnum
let
code
=
this
.
state
.
userInfo
.
code
||
""
//站点
Toast
.
loading
(
'Loading...'
,
0
,
()
=>
{
},
true
);
pdaApi
.
getqueryinfo
({
box_number
,
code
}).
then
(
res
=>
{
Toast
.
hide
();
console
.
log
(
'在途查询--箱号'
,
res
);
if
(
res
.
code
==
1
&&
res
.
result
.
length
!=
0
){
this
.
setState
({
data
:
res
.
result
,
onthewayinfoshow
:
true
,
onthewayinfoshowtype
:
1
})
}
else
{
Toast
.
info
(
'没有查询到在途信息'
)
this
.
setState
({
data
:[]
})
}
})
return
}
if
(
this
.
state
.
id
){
//根据注册号查询
var
pacid
=
this
.
state
.
partid
||
''
...
...
@@ -213,9 +237,16 @@ class DstributorOnTheWayQuery extends React.Component {
icon
=
{
clear
}
/
>
<
/SingleItem
>
<
SingleItem
outerStyle
=
{{
marginTop
:
'0.5rem'
}}
name
=
"订单号"
>
<
SingleInput
name
=
"ordernum"
onChange
=
{
this
.
handleInputChange
}
value
=
{
this
.
state
.
ordernum
}
/
>
<
SingleInput
name
=
"ordernum"
onChange
=
{
this
.
handleInputChange
}
value
=
{
this
.
state
.
ordernum
}
onIconClick
=
{()
=>
{
this
.
clear
(
'ordernum'
)}}
iconStyle
=
{{
marginTop
:
'.2rem'
}}
icon
=
{
clear
}
/
>
<
/SingleItem
>
<
SingleItem
name
=
"箱号"
...
...
@@ -329,7 +360,13 @@ class DstributorOnTheWayQuery extends React.Component {
id
:
''
})
localStorage
.
removeItem
(
"id"
);
}
else
{
}
else
if
(
type
==
"ordernum"
){
this
.
setState
({
ordernum
:
''
})
localStorage
.
removeItem
(
"ordernum"
);
}
else
{
this
.
setState
({
boxnum
:
''
})
...
...
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