This commit is contained in:
2024-09-26 14:12:01 +08:00
parent 732ca54eef
commit b6763f37aa
3 changed files with 164 additions and 25 deletions

View File

@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2024-01-17 09:58:41
* @LastEditors: zwq
* @LastEditTime: 2024-02-22 14:07:03
* @LastEditTime: 2024-09-23 14:05:14
* @Description:
-->
<template>
@@ -12,18 +12,20 @@
ref="searchBarForm"
@headBtnClick="buttonClick" />
<div class="tips">
<el-tag
effect="dark"
color="#16DC09"
style="border: none">
</el-tag>
<el-button
type="primary"
size="mini"
style="margin-right: 50px"
@click="stackerBtn">
巷道开关
</el-button>
<el-tag effect="dark" color="#16DC09" style="border: none"></el-tag>
<el-tag effect="dark" color="#d3d3d3" style="border: none"></el-tag>
<el-tag effect="dark" color="#7362F3" style="border: none"></el-tag>
<el-tag effect="dark" color="#ff0000" style="border: none">不可用</el-tag>
</div>
<div class="mainbody">
<!-- @click="showDia()" -->
<!-- @click="showDia()" -->
<div v-for="i in listQuery.total" :key="i">
<el-row style="margin-bottom: 10px">
<el-col :span="24">
@@ -65,10 +67,10 @@
j.deactivate === 0 || j.warehouseStorehouseState === 1
? 'not-allowed'
: 'pointer',
background:
j.deactivate === 1
? bgColor[j.warehouseStorehouseState]
: '#ff0000',
background:
j.deactivate === 1
? bgColor[j.warehouseStorehouseState]
: '#ff0000',
}" />
</el-popover>
</div>
@@ -108,10 +110,10 @@
j.deactivate === 0 || j.warehouseStorehouseState === 1
? 'not-allowed'
: 'pointer',
background:
j.deactivate === 1
? bgColor[j.warehouseStorehouseState]
: '#ff0000',
background:
j.deactivate === 1
? bgColor[j.warehouseStorehouseState]
: '#ff0000',
}" />
</el-popover>
</div>
@@ -155,10 +157,10 @@
j.deactivate === 0 || j.warehouseStorehouseState === 1
? 'not-allowed'
: 'pointer',
background:
j.deactivate === 1
? bgColor[j.warehouseStorehouseState]
: '#ff0000',
background:
j.deactivate === 1
? bgColor[j.warehouseStorehouseState]
: '#ff0000',
}" />
</el-popover>
</div>
@@ -196,10 +198,10 @@
j.deactivate === 0 || j.warehouseStorehouseState === 1
? 'not-allowed'
: 'pointer',
background:
j.deactivate === 1
? bgColor[j.warehouseStorehouseState]
: '#ff0000',
background:
j.deactivate === 1
? bgColor[j.warehouseStorehouseState]
: '#ff0000',
}" />
</el-popover>
</div>
@@ -213,6 +215,10 @@
ref="dialogRef"
v-if="diaVisible"
@refreshDataList="getDataList"></pot-dialog>
<stacker-dialog
ref="stackerRef"
v-if="stackerVisible"
:warehouse-id="listQuery.aId"></stacker-dialog>
</div>
</template>
@@ -223,6 +229,7 @@ import {
exportWarehouseStorehouseExcel,
} from '@/api/asrs/warehouseStorehouse';
import potDialog from './potDialog';
import stackerDialog from './stackerDialog';
export default {
mixins: [basicPage],
@@ -236,6 +243,7 @@ export default {
wareLayer: 1,
},
diaVisible: false,
stackerVisible: false,
wareData: [],
bgColor: ['#d3d3d3', '#7362F3', '#16DC09'], //空,锁,满
formConfig: [
@@ -271,6 +279,7 @@ export default {
},
components: {
potDialog,
stackerDialog,
},
created() {},
methods: {
@@ -302,6 +311,12 @@ export default {
this.$refs.dialogRef.init();
});
},
stackerBtn() {
this.stackerVisible = true;
this.$nextTick(() => {
this.$refs.stackerRef.init();
});
},
},
};
</script>
@@ -357,7 +372,7 @@ export default {
width: 100%;
height: 30px;
&:hover {
border: 1px #000000 dashed;
border: 1px #000000 dashed;
transform: scale(1.3);
}
}