|
|
|
|
@ -9,17 +9,18 @@ |
|
|
|
|
<span>搬运起始点位:</span> |
|
|
|
|
<u-input v-model="begin" border type="select" placeholder="请选择起始点位" prop="wareHouse" class="u-input" |
|
|
|
|
placeholder-style="color:#000000" @click="show = true" /> |
|
|
|
|
<u-select v-model="show" :list="pointList" @confirm="confirm" mode="single-column" ></u-select> |
|
|
|
|
<u-select v-model="show" :list="pointList1" @confirm="confirm" mode="single-column" ></u-select> |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
<view class="" style="text-align: center;"> |
|
|
|
|
<img src="/static/down.png" alt="" srcset="" style="width: 400rpx;"> |
|
|
|
|
<view class="img1" style="text-align: center;"> |
|
|
|
|
<!-- <img src="@/static/icon/down.png" alt="" style="width: 300rpx;"> --> |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
<view class="task" > |
|
|
|
|
<span>搬运目标点位:</span> |
|
|
|
|
<u-input v-model="dataForm.endPoint" border type="select" placeholder="请选择目标点位" prop="wareHouse" class="u-input" |
|
|
|
|
<u-input v-model="end" border type="select" placeholder="请选择目标点位" prop="wareHouse" class="u-input" |
|
|
|
|
placeholder-style="color:#000000" @click="showTwo = true" /> |
|
|
|
|
<u-select v-model="showTwo" :list="pointList" @confirm="confirmTwo" mode="single-column"></u-select> |
|
|
|
|
<u-select v-model="showTwo" :list="pointList1" @confirm="confirmTwo" mode="single-column"></u-select> |
|
|
|
|
</view> |
|
|
|
|
<view class="footer" style="position: absolute;bottom:8%;left: 50%;transform: translateX(-50%);"> |
|
|
|
|
<u-button type="success" @click="checkOutPick()" style="width: 400rpx;">开始搬运</u-button> |
|
|
|
|
@ -41,7 +42,8 @@ |
|
|
|
|
containerCode:'', |
|
|
|
|
endPoint:'', |
|
|
|
|
}, |
|
|
|
|
pointList:[] |
|
|
|
|
pointList:[], |
|
|
|
|
pointList1:[], |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onLoad(){ |
|
|
|
|
@ -50,15 +52,16 @@ |
|
|
|
|
this.$u.api.AvgCarry.getPointList({pageNum: 1, |
|
|
|
|
pageSize: 100}).then(res=>{ |
|
|
|
|
this.pointList=[] |
|
|
|
|
this.pointList1=[] |
|
|
|
|
if(res.code==200){ |
|
|
|
|
let dataArry = res.rows; |
|
|
|
|
for (var i = 0; i < dataArry.length; i++) { |
|
|
|
|
var obj = { |
|
|
|
|
value: dataArry[i].pointName, |
|
|
|
|
value: dataArry[i].pointNo, |
|
|
|
|
label: dataArry[i].pointName, |
|
|
|
|
}; |
|
|
|
|
this.pointList.push(obj); |
|
|
|
|
console.log(this.pointList); |
|
|
|
|
this.pointList1.push(obj); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
@ -76,8 +79,15 @@ |
|
|
|
|
// } |
|
|
|
|
// this.getDataList() |
|
|
|
|
this.$u.api.AvgCarry.queryBillingDByContainerCode({containerCode:this.dataForm.containerCode}).then(res=>{ |
|
|
|
|
this.dataForm.endPoint = res.data |
|
|
|
|
this.pointList = this.pointList.filter(item=>item.value != this.beginValue && item.value != this.dataForm.endPoint) |
|
|
|
|
// console.log(res); |
|
|
|
|
this.endValue = res.data |
|
|
|
|
this.pointList.forEach(item=>{ |
|
|
|
|
if(this.endValue == item.value){ |
|
|
|
|
this.end = item.label |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
// this.end = res.data |
|
|
|
|
this.pointList1 = this.pointList.filter(item=>item.value != this.beginValue && item.value != this.endPoint) |
|
|
|
|
} |
|
|
|
|
) |
|
|
|
|
}, |
|
|
|
|
@ -91,7 +101,31 @@ |
|
|
|
|
// this.judge() |
|
|
|
|
// } |
|
|
|
|
// }).catch(err=>console.log(err)) |
|
|
|
|
this.$u.api.AvgCarry.agvCarry({startPoint:this.begin,toLocation:this.dataForm.endPoint,containerCode:this.dataForm.containerCode}).then(res=>{ |
|
|
|
|
if(this.dataForm.containerCode == null |
|
|
|
|
|| this.dataForm.containerCode === '' |
|
|
|
|
|| this.dataForm.containerCode === 0 |
|
|
|
|
|| this.dataForm.containerCode === undefined |
|
|
|
|
|| this.dataForm.containerCode ==='undefined'){ |
|
|
|
|
this.$u.toast("请扫描台车编号"); |
|
|
|
|
return; |
|
|
|
|
} if(this.beginValue == null |
|
|
|
|
|| this.beginValue === '' |
|
|
|
|
|| this.beginValue === 0 |
|
|
|
|
|| this.beginValue === undefined |
|
|
|
|
|| this.beginValue ==='undefined'){ |
|
|
|
|
this.$u.toast("请选择起始位置"); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if(this.endValue == null |
|
|
|
|
|| this.endValue === '' |
|
|
|
|
|| this.endValue === 0 |
|
|
|
|
|| this.endValue === undefined |
|
|
|
|
|| this.endValue ==='undefined'){ |
|
|
|
|
this.$u.toast("请选择目标位置"); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
this.$u.api.AvgCarry.agvCarry({startPoint:this.beginValue,toLocation:this.endValue, |
|
|
|
|
containerCode:this.dataForm.containerCode}).then(res=>{ |
|
|
|
|
this.$u.toast(res.msg) |
|
|
|
|
if(res.code==200){ |
|
|
|
|
this.begin='' |
|
|
|
|
@ -103,19 +137,21 @@ |
|
|
|
|
this.$u.api.AvgCarry.getPointList({pageNum: 1, |
|
|
|
|
pageSize: 100}).then(res=>{ |
|
|
|
|
this.pointList=[] |
|
|
|
|
this.pointList1=[] |
|
|
|
|
if(res.code==200){ |
|
|
|
|
let dataArry = res.rows; |
|
|
|
|
for (var i = 0; i < dataArry.length; i++) { |
|
|
|
|
var obj = { |
|
|
|
|
value: dataArry[i].pointName, |
|
|
|
|
value: dataArry[i].pointNo, |
|
|
|
|
label: dataArry[i].pointName, |
|
|
|
|
}; |
|
|
|
|
this.pointList.push(obj); |
|
|
|
|
this.pointList1.push(obj); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}).catch(err=>console.log(err)) |
|
|
|
|
}).catch(err=>{}) |
|
|
|
|
}, |
|
|
|
|
//获取点位 |
|
|
|
|
async getList(){ |
|
|
|
|
@ -141,7 +177,7 @@ |
|
|
|
|
judge(e){ |
|
|
|
|
// console.log(e); |
|
|
|
|
// console.log(this.pointList); |
|
|
|
|
this.pointList = this.pointList.filter(item=>item.value != this.beginValue && item.value != this.endValue) |
|
|
|
|
this.pointList1 = this.pointList.filter(item=>item.value != this.beginValue && item.value != this.endValue) |
|
|
|
|
}, |
|
|
|
|
confirm(e) { |
|
|
|
|
this.begin = e[0].label |
|
|
|
|
@ -149,7 +185,8 @@ |
|
|
|
|
this.judge(e) |
|
|
|
|
}, |
|
|
|
|
confirmTwo(e) { |
|
|
|
|
this.dataForm.endPoint= e[0].label |
|
|
|
|
// this.dataForm.endPoint= e[0].label |
|
|
|
|
this.end= e[0].label |
|
|
|
|
this.endValue = e[0].value |
|
|
|
|
this.judge(e) |
|
|
|
|
}, |
|
|
|
|
@ -159,4 +196,11 @@ |
|
|
|
|
|
|
|
|
|
<style lang="scss"> |
|
|
|
|
@import "index.scss"; |
|
|
|
|
.img1{ |
|
|
|
|
height: 220px; |
|
|
|
|
background-image: url(@/static/down.png); |
|
|
|
|
background-size: 50% 100%; |
|
|
|
|
background-repeat: no-repeat; |
|
|
|
|
background-position:center; |
|
|
|
|
} |
|
|
|
|
</style> |