123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- <template>
- <el-container>
- <el-header style="height: 40px">
- <div>
- <div class="divLeft colorYellow">
- 任务中
- </div>
- <div class="divLeft colorGreen">
- 空
- </div>
- <div class="divLeft colorRed">
- 占用
- </div>
- <div class="divLeft">
- 空托盘<svg-icon class-name="pallet-icon" icon-class="pallet" @click.stop="click" />
- </div>
- </div>
- </el-header>
- <el-main>
- <el-card v-for="zone in locationZoneList" v-bind:key="zone.zoneName" class="box-card">
- <div slot="header" class="clearfix">
- <span style="font-weight: bold">{{zone.zoneName}}</span>
- </div>
- <div class="divBoxCol" v-for="col in zone.basLocationGuiColDTOS">
- <div v-for="o in col.baseLocationGuiDTOList" v-bind:key="o.id" class="text item divBox" @click="changeLocation(o)">
- <div class="divMinBox" v-show="o.locationNo!=null">
- {{o.locationNo}}{{o.agvStation}}
- </div>
- <div>
- <div v-show="o.isEmpty=='Y'" :class="{'locDiv': true,'colorGreen': true, 'colorYellow': o.stockStatus!='00'}">
- </div>
- <div v-show="o.isEmpty=='N'" :class="{'locDiv': true,'colorRed': o.isEmptyPlate != 'Y', 'colorYellow': o.stockStatus!='00'}">
- <div class="divMinFontBox" v-show="o.isEmpty=='N' && o.isEmptyPlate != 'Y' ">
- <div style="color: #FFFFFF;font-size:10px;">{{o.lotatt07}} </div>
- <div v-show="o.sku!=null" style="color: #FFFFFF;font-size:10px;">{{o.sku}}</div>
- <div v-show="o.lotatt02!=null" style="color: #FFFFFF;font-size:10px;">{{o.lotatt02}}</div>
- {{o.lotatt05}}
- {{o.lotatt08}}
- </div>
- <div class="divMinFontBoxEmptyPlate" v-show="o.isEmptyPlate == 'Y'">
- <svg-icon class-name="pallet-icon" icon-class="pallet" @click.stop="click" style="width: 60px;height: 35px;">{{o.id}}</svg-icon>
- <div style="color: #191970;font-size:12px;">{{o.skuName}} </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </el-card>
- </el-main>
- </el-container>
- </template>
- <script>
- import { locationInvView } from "@/api/ams/locationView";
- export default {
- data () {
- return {
- dataForm: {
- zoneId: ''
- },
- queryParams: {
- zoneId: '',
- warehouseId: ''
- },
- locationZoneList: [],
- locationList: {'a': [1, 2, 3]},
- locationClearVisible: false
- }
- },
- mounted () {
- },
- activated () {
- },
- created () {
- this.getDataList()
- this.timer = setInterval(this.getDataList, 5000)
- },
- beforeDestroy () {
- clearInterval(this.timer)
- },
- methods: {
- getDataList () {
- this.dataListLoading = true
- locationInvView(this.queryParams).then(response => {
- this.locationZoneList = response.data
- })
- this.dataListLoading = false
- },
- changeLocation(o){
-
- }
- }
- }
- </script>
- <style>
- .pointcss{
- color: hotpink;
- }
- .divBoxCol {
- width: 150px;
- display: block;
- float: left;
- }
- .divBox {
- width: 130px;
- height: 90px;
- display: block;
- float: left;
- margin-left: 2px;
- }
- .divMinBox {
- margin-top: 0px;
- height: 15px;
- width: 100%;
- text-align: center;
- font-weight: bold;
- }
- .divMinFontBox {
- margin-top: 2px;
- height: 10px;
- width: 100%;
- text-align: center;
-
- }
- .locDiv {
- float: left;
- display: inline-block;
- width: 130px;
- height: 70px;
- margin-top: 1px;
- text-align: center;
- margin-left: 1px;
- border: solid 1px;
- }
- .colorGreen {
- background-color: #19a708;
- }
- .colorRed {
- background-color: #c73c2d;
- }
- .colorYellow {
- background-color: #e2cd0f;
- }
- .divLeft {
- border-top: 1px;
- border-color: #2b373d;
- text-align: left;
- display: inline-block;
- height: 30px;
- width: 80px;
- text-align: center;
- margin-top: 10px;
- padding-top: 5px;
- }
- .box-card{
- width: 100%;
- display:inline-block;
- overflow: hidden;
- }
- </style>
|