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

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

Loading…
Cancel
Save