|
|
|
@ -28,7 +28,8 @@ export default {
|
|
|
|
|
return{
|
|
|
|
|
type:'pwpg',
|
|
|
|
|
gridOptions:{},
|
|
|
|
|
list:{},
|
|
|
|
|
list:[],
|
|
|
|
|
tmpList:[],
|
|
|
|
|
setExt:null,
|
|
|
|
|
zyq:null,
|
|
|
|
|
deviceId:null,
|
|
|
|
@ -36,16 +37,15 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
EventBus.$on('pwtg', item => {
|
|
|
|
|
if (this.list[0]?.dwId!==item.dwId){
|
|
|
|
|
if (this.tmpList[0]?.dwId!==item.dwId){
|
|
|
|
|
this.$message.warning('垛位不符,请选择正确垛位再取消')
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.list.forEach(data=>{
|
|
|
|
|
this.tmpList.forEach(data=>{
|
|
|
|
|
if (data.id===item.id){
|
|
|
|
|
data.zt=item.zt
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
console.log(this.list)
|
|
|
|
|
// this.gridOptions.data = this.list
|
|
|
|
|
this.showData(this.list)
|
|
|
|
|
})
|
|
|
|
@ -63,7 +63,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
sockets:{
|
|
|
|
|
zyjhzx(data){
|
|
|
|
|
console.log(this.list)
|
|
|
|
|
if (this.deviceId!==data.msg.deviceId&&data.msg.actionType!=='开始派工'){
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
@ -85,7 +84,11 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
methods:{
|
|
|
|
|
showData(list){
|
|
|
|
|
this.list=list.filter(item=>item.zt==='BF')
|
|
|
|
|
if (this.tmpList.length===0){
|
|
|
|
|
this.tmpList=list
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.list=this.tmpList.filter(item=>item.zt==='BF')
|
|
|
|
|
this.gridOptions.data = this.list
|
|
|
|
|
},
|
|
|
|
|
// initData(){
|
|
|
|
|