<add>[important]添加库前输送机状态查询,仅使用卡特
This commit is contained in:
parent
959f4fb57a
commit
cc7435dc52
|
|
@ -5,5 +5,9 @@ export default {
|
||||||
getStackerConveyInfo() {
|
getStackerConveyInfo() {
|
||||||
return axios.get('/api/wcs/stackerConvey/queryStackerConveyInfo')
|
return axios.get('/api/wcs/stackerConvey/queryStackerConveyInfo')
|
||||||
},
|
},
|
||||||
|
// 查询库前输送机状态
|
||||||
|
getStackerConveyStatus() {
|
||||||
|
return axios.get('/api/wcs/stackerConvey/queryStackerConveyStatus')
|
||||||
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -12,6 +12,7 @@ const routes = [
|
||||||
// 系统状态
|
// 系统状态
|
||||||
{ path: 'runningInfo', name: 'runningInfo', component:() => import('../view/tab/systemStatus/RunningInfo.vue') }, // 运行信息
|
{ path: 'runningInfo', name: 'runningInfo', component:() => import('../view/tab/systemStatus/RunningInfo.vue') }, // 运行信息
|
||||||
{ path: 'stackerStatus', name: 'stackerStatus', component:() => import('../view/tab/systemStatus/StackerStatus.vue') }, // 堆垛机状态
|
{ path: 'stackerStatus', name: 'stackerStatus', component:() => import('../view/tab/systemStatus/StackerStatus.vue') }, // 堆垛机状态
|
||||||
|
{ path: 'stackerConveyStatus', name: 'stackerConveyStatus', component:() => import('../view/tab/systemStatus/StackerConveyStatus.vue')}, // 库前输送机状态
|
||||||
{ path: 'conveyStatus', name: 'conveyStatus', component:() => import('../view/tab/systemStatus/ConveyStatus.vue') }, // 输送机状态
|
{ path: 'conveyStatus', name: 'conveyStatus', component:() => import('../view/tab/systemStatus/ConveyStatus.vue') }, // 输送机状态
|
||||||
{ path: 'containerStatus', name: 'containerStatus', component:() => import('../view/tab/systemStatus/ContainerStatus.vue') }, // 智能货柜状态
|
{ path: 'containerStatus', name: 'containerStatus', component:() => import('../view/tab/systemStatus/ContainerStatus.vue') }, // 智能货柜状态
|
||||||
{ path: 'shuttleStatus', name: 'shuttleStatus', component:() => import('../view/tab/systemStatus/ShuttleStatus.vue') }, // 穿梭车状态
|
{ path: 'shuttleStatus', name: 'shuttleStatus', component:() => import('../view/tab/systemStatus/ShuttleStatus.vue') }, // 穿梭车状态
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,8 @@ export default {
|
||||||
const loading = ElLoading.service({
|
const loading = ElLoading.service({
|
||||||
lock: true,
|
lock: true,
|
||||||
text: '加载中...',
|
text: '加载中...',
|
||||||
})
|
});
|
||||||
|
this.stackerConveyInfo = [];
|
||||||
stackerConveyApi.getStackerConveyInfo().then(res=>{
|
stackerConveyApi.getStackerConveyInfo().then(res=>{
|
||||||
const responseData = res.data
|
const responseData = res.data
|
||||||
if(responseData.code === 0){
|
if(responseData.code === 0){
|
||||||
|
|
@ -74,7 +75,7 @@ export default {
|
||||||
message: '查询成功',
|
message: '查询成功',
|
||||||
type: 'success',
|
type: 'success',
|
||||||
})
|
})
|
||||||
this.stackerConveyInfo = Object.freeze(responseData["returnData"])
|
this.stackerConveyInfo = Object.freeze(responseData["returnData"]);
|
||||||
}else{
|
}else{
|
||||||
ElMessage({
|
ElMessage({
|
||||||
message: '服务器返回失败:' + responseData.msg,
|
message: '服务器返回失败:' + responseData.msg,
|
||||||
|
|
|
||||||
131
src/view/tab/systemStatus/StackerConveyStatus.vue
Normal file
131
src/view/tab/systemStatus/StackerConveyStatus.vue
Normal file
|
|
@ -0,0 +1,131 @@
|
||||||
|
<!-- -->
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-row>
|
||||||
|
<el-button type="primary" style="margin-left: 0.5rem" @click="query">加载库前输送机状态</el-button>
|
||||||
|
</el-row>
|
||||||
|
<el-row style="width: calc(100vw - 270px)">
|
||||||
|
<h5>库前输送机状态</h5>
|
||||||
|
<el-table :data="stackerConveyStatus" border stripe style="width: 100%;" max-height="calc(100vh - 350px)">
|
||||||
|
<el-table-column fixed prop="wcsLocation" label="WCS 点位" width="100px" align="center" show-overflow-tooltip/>
|
||||||
|
<el-table-column fixed prop="wmsLocation" label="WMS 点位" width="250px" align="center" show-overflow-tooltip/>
|
||||||
|
<el-table-column prop="plcLocation" label="PLC 点位" align="center" width="150px"/>
|
||||||
|
<el-table-column prop="locationName" label="点位名称" align="center" width="150px"/>
|
||||||
|
<el-table-column prop="area" label="区域" align="center"/>
|
||||||
|
<el-table-column prop="locationType" label="点位类型" align="center"/>
|
||||||
|
<el-table-column prop="locationStatus" label="点位状态" align="center" width="180px">
|
||||||
|
<template #default="scope">
|
||||||
|
<el-tag class="ml-2" :type=formatterOnOrOffEnum(scope.row.locationStatus).type>
|
||||||
|
{{formatterOnOrOffEnum(scope.row.locationStatus).label}}</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="writeType" label="写入方式" align="center"/>
|
||||||
|
<el-table-column prop="msg" label="查询结果" align="center"/>
|
||||||
|
<el-table-column prop="code" label="当前载具号" align="center"/>
|
||||||
|
<el-table-column prop="allowAction" label="允许取卸货" align="center"/>
|
||||||
|
<el-table-column prop="remark" label="备注" align="center"/>
|
||||||
|
<!-- <el-table-column fixed="right" label="操作" align="center" width="80">-->
|
||||||
|
<!-- <template #default="scope">-->
|
||||||
|
<!-- <el-button-group class="ml-4">-->
|
||||||
|
<!-- <el-tooltip content="编辑" placement="top" effect="light">-->
|
||||||
|
<!-- <el-button type="primary" size="small" @click="edit(scope.row)">-->
|
||||||
|
<!-- <el-icon><Edit/></el-icon>-->
|
||||||
|
<!-- </el-button>-->
|
||||||
|
<!-- </el-tooltip>-->
|
||||||
|
<!-- </el-button-group>-->
|
||||||
|
<!-- </template>-->
|
||||||
|
<!-- </el-table-column>-->
|
||||||
|
</el-table>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
// import 《组件名称》 from '《组件路径》 ';
|
||||||
|
import {formatterOnOrOffEnum} from "@/enum/base/on.off.enum";
|
||||||
|
import stackerConveyApi from "@/axios/stacker.convey";
|
||||||
|
import {ElLoading, ElMessage} from "element-plus";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
// import 引入的组件需要注入到对象中才能使用
|
||||||
|
components: {},
|
||||||
|
props: [],
|
||||||
|
emits: [],
|
||||||
|
data() {
|
||||||
|
// 这里存放数据
|
||||||
|
return {
|
||||||
|
formatterOnOrOffEnum,
|
||||||
|
// 库前输送机信息
|
||||||
|
stackerConveyStatus: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 计算属性 类似于 data 概念
|
||||||
|
computed: {},
|
||||||
|
// 监控 data 中的数据变化
|
||||||
|
watch: {},
|
||||||
|
// 方法集合
|
||||||
|
methods: {
|
||||||
|
query() {
|
||||||
|
const loading = ElLoading.service({
|
||||||
|
lock: true,
|
||||||
|
text: '加载中...',
|
||||||
|
});
|
||||||
|
this.stackerConveyStatus = [];
|
||||||
|
stackerConveyApi.getStackerConveyStatus().then(res=>{
|
||||||
|
const responseData = res.data
|
||||||
|
if(responseData.code === 0){
|
||||||
|
ElMessage({
|
||||||
|
message: '查询成功',
|
||||||
|
type: 'success',
|
||||||
|
});
|
||||||
|
this.stackerConveyStatus = Object.freeze(responseData["returnData"]);
|
||||||
|
}else{
|
||||||
|
ElMessage({
|
||||||
|
message: '服务器返回失败:' + responseData.msg,
|
||||||
|
type: 'warning',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}).catch(ex=>{
|
||||||
|
ElMessage({
|
||||||
|
message: '请求服务器失败:' + ex,
|
||||||
|
type: 'error',
|
||||||
|
});
|
||||||
|
}).finally(()=>{
|
||||||
|
loading.close();
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 组合式 API
|
||||||
|
setup() {
|
||||||
|
},
|
||||||
|
// 创建之前
|
||||||
|
beforeCreate() {
|
||||||
|
},
|
||||||
|
// 创建完成(可以访问 this 实例)
|
||||||
|
created() {
|
||||||
|
},
|
||||||
|
// 生命周期 - 挂载之前
|
||||||
|
beforeMount() {
|
||||||
|
},
|
||||||
|
// 生命周期 - 挂载完成(可以访问 DOM 元素)
|
||||||
|
mounted() {
|
||||||
|
},
|
||||||
|
// 更新之前
|
||||||
|
beforeUpdate() {
|
||||||
|
},
|
||||||
|
// 更新之后
|
||||||
|
updated() {
|
||||||
|
},
|
||||||
|
// 销毁之前
|
||||||
|
beforeUnmount() {
|
||||||
|
},
|
||||||
|
// 销毁完成
|
||||||
|
unmounted() {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
|
|
||||||
|
</style>
|
||||||
Loading…
Reference in New Issue
Block a user