|
|
|
|
@ -4,7 +4,7 @@ |
|
|
|
|
<view class="task" > |
|
|
|
|
<span>扫描托盘条码:</span> |
|
|
|
|
<u-input v-model="dataForm.containerCode" border style="background-color: #ffffff;margin-bottom: 20px;" |
|
|
|
|
placeholder="请输入或输入要搬运的托盘条码" @confirm="changeCode()"></u-input> |
|
|
|
|
placeholder="请输入或输入要搬运的托盘条码" :focus="focusFlag" @confirm="changeCode()"></u-input> |
|
|
|
|
|
|
|
|
|
<span>搬运起始点位:</span> |
|
|
|
|
<u-input v-model="begin" border type="select" placeholder="请选择起始点位" prop="wareHouse" class="u-input" |
|
|
|
|
@ -35,7 +35,9 @@ |
|
|
|
|
return { |
|
|
|
|
show: false, |
|
|
|
|
showTwo:false, |
|
|
|
|
focusFlag:true, |
|
|
|
|
begin:'', |
|
|
|
|
endValue:'', |
|
|
|
|
end:'', |
|
|
|
|
list:[], |
|
|
|
|
showList:[], |
|
|
|
|
@ -74,6 +76,7 @@ |
|
|
|
|
methods:{ |
|
|
|
|
|
|
|
|
|
changeCode() { |
|
|
|
|
this.focusFlag=false |
|
|
|
|
// this.query = { |
|
|
|
|
// pageNum: 1, |
|
|
|
|
// pageSize: 10 |
|
|
|
|
@ -83,15 +86,15 @@ |
|
|
|
|
// console.log(res); |
|
|
|
|
this.endValue = res.data |
|
|
|
|
this.pointList.forEach(item=>{ |
|
|
|
|
if(this.endValue == item.value){ |
|
|
|
|
if(res.data == item.value){ |
|
|
|
|
this.end = item.label |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
// this.end = res.data |
|
|
|
|
this.pointList1 = this.pointList.filter(item=>item.value != this.beginValue && item.value != this.endPoint) |
|
|
|
|
this.dataForm.endPoint = res.data |
|
|
|
|
this.endValue=res.data |
|
|
|
|
this.pointList = this.pointList.filter(item=>item.value != this.beginValue && item.value != this.dataForm.endPoint) |
|
|
|
|
this.pointList1 = this.pointList.filter(item=>item.value != this.beginValue&& item.value != this.endValue) |
|
|
|
|
// this.dataForm.endPoint = res.data |
|
|
|
|
// this.endValue=res.data |
|
|
|
|
this.pointList = this.pointList.filter(item=>item.value != this.beginValue && item.value != this.endValue) |
|
|
|
|
} |
|
|
|
|
) |
|
|
|
|
}, |
|
|
|
|
@ -141,6 +144,7 @@ |
|
|
|
|
this.dataForm.startPoint='' |
|
|
|
|
this.dataForm.containerCode='' |
|
|
|
|
this.dataForm.endPoint='' |
|
|
|
|
this.focusFlag=true |
|
|
|
|
this.judge() |
|
|
|
|
this.$u.api.AvgCarry.getPointList({pageNum: 1, |
|
|
|
|
pageSize: 100}).then(res=>{ |
|
|
|
|
|