|
|
|
@ -121,7 +121,88 @@ |
|
|
|
|
|
|
|
|
|
|
|
</Form> |
|
|
|
</Form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div style="height: 60px;"> |
|
|
|
|
|
|
|
<el-checkbox |
|
|
|
|
|
|
|
:checked="layer['level-0']" |
|
|
|
|
|
|
|
v-model="layer['level-0']" |
|
|
|
|
|
|
|
@change="layerHandler('level-0')" |
|
|
|
|
|
|
|
style="font-size:22px" |
|
|
|
|
|
|
|
>一层</el-checkbox> |
|
|
|
|
|
|
|
<el-checkbox |
|
|
|
|
|
|
|
:checked="layer['level-2']" |
|
|
|
|
|
|
|
v-model="layer['level-2']" |
|
|
|
|
|
|
|
@change="layerHandler('level-2')" |
|
|
|
|
|
|
|
style="font-size:22px" |
|
|
|
|
|
|
|
>二层</el-checkbox> |
|
|
|
|
|
|
|
<el-checkbox |
|
|
|
|
|
|
|
:checked="layer['level-3']" |
|
|
|
|
|
|
|
v-model="layer['level-3']" |
|
|
|
|
|
|
|
@change="layerHandler('level-3')" |
|
|
|
|
|
|
|
style="font-size:22px" |
|
|
|
|
|
|
|
>三层</el-checkbox> |
|
|
|
|
|
|
|
<el-checkbox |
|
|
|
|
|
|
|
:checked="layer['level-4']" |
|
|
|
|
|
|
|
v-model="layer['level-4']" |
|
|
|
|
|
|
|
@change="layerHandler('level-4')" |
|
|
|
|
|
|
|
style="font-size:18px" |
|
|
|
|
|
|
|
>四层</el-checkbox> |
|
|
|
|
|
|
|
<el-checkbox |
|
|
|
|
|
|
|
:checked="layer['level-5']" |
|
|
|
|
|
|
|
v-model="layer['level-5']" |
|
|
|
|
|
|
|
@change="layerHandler('level-5')" |
|
|
|
|
|
|
|
style="font-size:18px" |
|
|
|
|
|
|
|
>五层</el-checkbox> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<i |
|
|
|
|
|
|
|
class="el-icon-location-information" |
|
|
|
|
|
|
|
@click="searchModel.show = true" |
|
|
|
|
|
|
|
style="font-size:28px;margin-left:60px;cursor: pointer;" |
|
|
|
|
|
|
|
></i> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- v-model="checked" --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div style="display: inline-block;margin-left:80px"> |
|
|
|
|
|
|
|
<ul style="list-style-type:none;display:flex"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li>空</li> |
|
|
|
|
|
|
|
<li style="width: 30px;height: 20px;background-color: #ecf0f1;margin-left:8px;margin-right:20px"></li> |
|
|
|
|
|
|
|
<li>有货</li> |
|
|
|
|
|
|
|
<li style="width: 30px;height: 20px;background-color: #3742fa;margin-left:8px;margin-right:20px"></li> |
|
|
|
|
|
|
|
<!-- <li>空台车</li> |
|
|
|
|
|
|
|
<li style="width: 30px;height: 20px;background-color: #70a1ff;margin-left:8px;margin-right:20px"></li> --> |
|
|
|
|
|
|
|
<li>已分配</li> |
|
|
|
|
|
|
|
<li style="width: 30px;height: 20px;background-color: #eccc68;margin-left:8px;margin-right:20px"></li> |
|
|
|
|
|
|
|
<li>锁定库存</li> |
|
|
|
|
|
|
|
<li style="width: 30px;height: 20px;background-color: #ff7675;margin-left:8px;margin-right:20px"></li> |
|
|
|
|
|
|
|
<li>禁用库存</li> |
|
|
|
|
|
|
|
<li style="width: 30px;height: 20px;background-color: #d63031;margin-left:8px;margin-right:20px"></li> |
|
|
|
|
|
|
|
</ul> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div style="display:inline-block;"> |
|
|
|
|
|
|
|
<div style="margin-left:50px;display: flex;"> |
|
|
|
|
|
|
|
<p style="width: 60px;display: flex;flex-direction:column;border-right:1px solid #ccc"> |
|
|
|
|
|
|
|
<span style="font-size:16px">库位数</span> |
|
|
|
|
|
|
|
<span v-show="layer['level-1']">{{locationObj.num1}}</span> |
|
|
|
|
|
|
|
<span v-show="layer['level-2']">{{locationObj.num2}}</span> |
|
|
|
|
|
|
|
<span v-show="layer['level-3']">{{locationObj.num3}}</span> |
|
|
|
|
|
|
|
<span v-show="layer['level-4']">{{locationObj.num4}}</span> |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
<p style="width: 78px;display: flex;flex-direction:column;border-right:1px solid #ccc"> |
|
|
|
|
|
|
|
<span style="font-size:16px">已用库位</span> |
|
|
|
|
|
|
|
<span v-show="layer['level-1']">{{locationObj2.num1}}</span> |
|
|
|
|
|
|
|
<span v-show="layer['level-2']">{{locationObj2.num2}}</span> |
|
|
|
|
|
|
|
<span v-show="layer['level-3']">{{locationObj2.num3}}</span> |
|
|
|
|
|
|
|
<span v-show="layer['level-4']">{{locationObj2.num4}}</span> |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
<p style="width: 60px;display: flex;flex-direction:column;border-right:1px solid #ccc"> |
|
|
|
|
|
|
|
<span style="font-size:16px">总库位</span> |
|
|
|
|
|
|
|
<span>1604</span> |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
<div |
|
|
|
<div |
|
|
|
id="mapContainer" |
|
|
|
id="mapContainer" |
|
|
|
class="map-container" |
|
|
|
class="map-container" |
|
|
|
@ -190,7 +271,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
layer: JSON.parse(localStorage.getItem('layerItem')) || { freightSpace: true, pointId: false, 'level-1': true, 'level-2': false, 'level-3': false, 'level-4': false }, |
|
|
|
layer: JSON.parse(localStorage.getItem('layerItem')) || { freightSpace: true, pointId: false, 'level-0': true, 'level-2': false, 'level-3': false, 'level-4': false, 'level-5': false }, |
|
|
|
lattice: {}, // 点阵关系对照 |
|
|
|
lattice: {}, // 点阵关系对照 |
|
|
|
searchModel: { |
|
|
|
searchModel: { |
|
|
|
show: false, |
|
|
|
show: false, |
|
|
|
@ -308,8 +389,10 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
mounted() { |
|
|
|
// this.startMap() |
|
|
|
// this.startMap() |
|
|
|
// this.init('fourwayCar') |
|
|
|
this.init('fourwayCar') |
|
|
|
this.init('piler') |
|
|
|
var layerId1 = localStorage.getItem('level') || 'level-1' |
|
|
|
|
|
|
|
this.mapControl.layerControl(layerId1, this.layer[layerId1], layerId1.slice(6, 7)) |
|
|
|
|
|
|
|
// this.init('piler') |
|
|
|
// var layerId1 = localStorage.getItem('level') || 'level-1' |
|
|
|
// var layerId1 = localStorage.getItem('level') || 'level-1' |
|
|
|
// this.mapControl.layerControl(layerId1, this.layer[layerId1], layerId1.slice(6, 7)) |
|
|
|
// this.mapControl.layerControl(layerId1, this.layer[layerId1], layerId1.slice(6, 7)) |
|
|
|
// console.log(layerId1, this.layer[layerId1], layerId1.slice(6, 7), this.layer) |
|
|
|
// console.log(layerId1, this.layer[layerId1], layerId1.slice(6, 7), this.layer) |
|
|
|
@ -394,7 +477,7 @@ export default { |
|
|
|
// console.log(111) |
|
|
|
// console.log(111) |
|
|
|
var layerId1 = localStorage.getItem('level') |
|
|
|
var layerId1 = localStorage.getItem('level') |
|
|
|
console.log(layerId1) |
|
|
|
console.log(layerId1) |
|
|
|
if (layerId1 === 'level-1') { |
|
|
|
if (layerId1 === 'level-0') { |
|
|
|
this.initWareHouseInfo(this.config.latticeForFourwayCar1) |
|
|
|
this.initWareHouseInfo(this.config.latticeForFourwayCar1) |
|
|
|
} else if (layerId1 === 'level-2') { |
|
|
|
} else if (layerId1 === 'level-2') { |
|
|
|
this.initWareHouseInfo(this.config.latticeForFourwayCar2) |
|
|
|
this.initWareHouseInfo(this.config.latticeForFourwayCar2) |
|
|
|
@ -402,6 +485,8 @@ export default { |
|
|
|
this.initWareHouseInfo(this.config.latticeForFourwayCar3) |
|
|
|
this.initWareHouseInfo(this.config.latticeForFourwayCar3) |
|
|
|
} else if (layerId1 === 'level-4') { |
|
|
|
} else if (layerId1 === 'level-4') { |
|
|
|
this.initWareHouseInfo(this.config.latticeForFourwayCar4) |
|
|
|
this.initWareHouseInfo(this.config.latticeForFourwayCar4) |
|
|
|
|
|
|
|
} else if (layerId1 === 'level-5') { |
|
|
|
|
|
|
|
this.initWareHouseInfo(this.config.latticeForFourwayCar5) |
|
|
|
} |
|
|
|
} |
|
|
|
break |
|
|
|
break |
|
|
|
case 'piler': |
|
|
|
case 'piler': |
|
|
|
|