|
|
|
@ -31,8 +31,10 @@
|
|
|
|
<!--渲染默认巷道框架规格 定位浮在 已有巷道上做对应-->
|
|
|
|
<!--渲染默认巷道框架规格 定位浮在 已有巷道上做对应-->
|
|
|
|
<span
|
|
|
|
<span
|
|
|
|
class="default"
|
|
|
|
class="default"
|
|
|
|
:id="`${direction}-${side}-${random.row[0] + random.row[1] - rowIndex - 1}-${column}`"
|
|
|
|
:id="`${direction}-${side}-${random.row[0] + random.row[1] - rowIndex - 1}-${column}`"
|
|
|
|
@click="tocheckPage(random.row[0] + random.row[1] - rowIndex - 1,column)">
|
|
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<!-- @click="tocheckPage(random.row[0] + random.row[1] - rowIndex - 1,column)"> -->
|
|
|
|
<!-- {{column}}-{{ random.row[0] + random.row[1] - rowIndex - 1}} -->
|
|
|
|
<!-- {{column}}-{{ random.row[0] + random.row[1] - rowIndex - 1}} -->
|
|
|
|
{{column}}
|
|
|
|
{{column}}
|
|
|
|
|
|
|
|
|
|
|
|
@ -209,6 +211,10 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
getTrayCode(row,column,direction){
|
|
|
|
|
|
|
|
console.log(row,column,direction);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
changeTab(value){
|
|
|
|
changeTab(value){
|
|
|
|
document.cookie = "s"+this.streetId+"d"+this.direction+"e"+this.side + "c"+ "=" +value;
|
|
|
|
document.cookie = "s"+this.streetId+"d"+this.direction+"e"+this.side + "c"+ "=" +value;
|
|
|
|
|
|
|
|
|
|
|
|
@ -241,7 +247,7 @@ export default {
|
|
|
|
return this.getRandom(val, this.latticeColumn, this.nums.column, this.total.column).split(' - ').map(item => Number(item));
|
|
|
|
return this.getRandom(val, this.latticeColumn, this.nums.column, this.total.column).split(' - ').map(item => Number(item));
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
getStatusBg(row,column,status) {
|
|
|
|
getStatusBg(row,column,status,trayCode) {
|
|
|
|
var dom = document.getElementById(this.direction+"-"+this.side+"-"+row+'-'+column);
|
|
|
|
var dom = document.getElementById(this.direction+"-"+this.side+"-"+row+'-'+column);
|
|
|
|
var color;
|
|
|
|
var color;
|
|
|
|
if(status == -1){
|
|
|
|
if(status == -1){
|
|
|
|
@ -258,6 +264,11 @@ export default {
|
|
|
|
color = '#bfbfbf'
|
|
|
|
color = '#bfbfbf'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
dom.style.background = color
|
|
|
|
dom.style.background = color
|
|
|
|
|
|
|
|
console.log(trayCode);
|
|
|
|
|
|
|
|
if (trayCode != null && trayCode !== "") {
|
|
|
|
|
|
|
|
dom.title ="rfid扫描结果:"+ trayCode
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getStatus(){
|
|
|
|
getStatus(){
|
|
|
|
|
|
|
|
|
|
|
|
@ -287,7 +298,7 @@ export default {
|
|
|
|
if(res.code == 200){
|
|
|
|
if(res.code == 200){
|
|
|
|
if(res.data.stocks){
|
|
|
|
if(res.data.stocks){
|
|
|
|
for(let a of res.data.stocks){
|
|
|
|
for(let a of res.data.stocks){
|
|
|
|
this.getStatusBg(a.row,a.column,a.status)
|
|
|
|
this.getStatusBg(a.row,a.column,a.status,a.trayCode)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|