Commit 272eb81d authored by 陈卓's avatar 陈卓

提交修改代码

parent c9a1907c
...@@ -58,13 +58,15 @@ class DstributorOnTheWayQuery extends React.Component { ...@@ -58,13 +58,15 @@ class DstributorOnTheWayQuery extends React.Component {
data:[] data:[]
}) })
}else{ }else{
var pacid=this.state.partid ||''
if(this.state.ordernum){ if(this.state.ordernum){
//根据箱号查询 //根据箱号查询
var ordernum=this.state.ordernum var ordernum=this.state.ordernum
let code=this.state.userInfo.code || ""//站点 let code=this.state.userInfo.code || ""//站点
Toast.loading('Loading...', 0, () => { Toast.loading('Loading...', 0, () => {
},true); },true);
pdaApi.getqueryinfo({ordernum,code}).then(res=>{ pdaApi.getqueryinfo({ordernum,pacid,code}).then(res=>{
Toast.hide(); Toast.hide();
console.log('在途查询--箱号',res); console.log('在途查询--箱号',res);
if(res.code==1&&res.result.length!=0){ if(res.code==1&&res.result.length!=0){
...@@ -88,7 +90,7 @@ class DstributorOnTheWayQuery extends React.Component { ...@@ -88,7 +90,7 @@ class DstributorOnTheWayQuery extends React.Component {
let code=this.state.userInfo.code || ""//站点 let code=this.state.userInfo.code || ""//站点
Toast.loading('Loading...', 0, () => { Toast.loading('Loading...', 0, () => {
},true); },true);
pdaApi.getqueryinfo({box_number,code}).then(res=>{ pdaApi.getqueryinfo({box_number,pacid,code}).then(res=>{
Toast.hide(); Toast.hide();
console.log('在途查询--箱号',res); console.log('在途查询--箱号',res);
if(res.code==1&&res.result.length!=0){ if(res.code==1&&res.result.length!=0){
...@@ -108,7 +110,6 @@ class DstributorOnTheWayQuery extends React.Component { ...@@ -108,7 +110,6 @@ class DstributorOnTheWayQuery extends React.Component {
} }
if(this.state.id){ if(this.state.id){
//根据注册号查询 //根据注册号查询
var pacid=this.state.partid ||''
var regid=this.state.id var regid=this.state.id
let code=this.state.userInfo.code || ""//站点 let code=this.state.userInfo.code || ""//站点
Toast.loading('Loading...', 0, () => { Toast.loading('Loading...', 0, () => {
...@@ -237,7 +238,6 @@ class DstributorOnTheWayQuery extends React.Component { ...@@ -237,7 +238,6 @@ class DstributorOnTheWayQuery extends React.Component {
icon={clear}/> icon={clear}/>
</SingleItem> </SingleItem>
<SingleItem <SingleItem
outerStyle={{marginTop:'0.5rem'}}
name="订单号" name="订单号"
> >
<SingleInput <SingleInput
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment