master
Mr.sun 2 years ago
commit 04ae640af4
  1. 26
      pages/AvgCarry/index.vue

@ -1,16 +1,17 @@
<template>
<view class="sh-content" style="padding: 50rpx 50rpx;">
<view class="task" >
<span>扫描托盘条码:</span>
<u-input v-model="dataForm.containerCode" border style="background-color: #ffffff;margin-bottom: 20px;"
placeholder="请输入或输入要搬运的托盘条码" @confirm="changeCode()"></u-input>
<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="pointList1" @confirm="confirm" mode="single-column" ></u-select>
</view>
<view class="img1" style="text-align: center;">
<!-- <img src="@/static/icon/down.png" alt="" style="width: 300rpx;"> -->
@ -40,7 +41,7 @@
showList:[],
dataForm:{
containerCode:'',
endPoint:'',
endPoint:'',
},
pointList:[],
pointList1:[],
@ -48,7 +49,7 @@
},
onLoad(){
// this.getDic()
this.$u.api.AvgCarry.getPointList({pageNum: 1,
pageSize: 100}).then(res=>{
this.pointList=[]
@ -67,11 +68,11 @@
})
// this.getList()
},
methods:{
changeCode() {
// this.query = {
// pageNum: 1,
@ -88,6 +89,9 @@
})
// 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)
}
)
},
@ -124,12 +128,14 @@
this.$u.toast("请选择目标位置");
return;
}
this.$u.api.AvgCarry.agvCarry({startPoint:this.beginValue,toLocation:this.endValue,
containerCode:this.dataForm.containerCode}).then(res=>{
// }).catch(err=>console.log(err))
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=''
this.end=''
this.beginValue=''
this.endValue=''
this.dataForm.startPoint=''
this.dataForm.containerCode=''
this.dataForm.endPoint=''
@ -203,4 +209,4 @@
background-repeat: no-repeat;
background-position:center;
}
</style>
</style>

Loading…
Cancel
Save