<add>[important]添加库前输送机状态查询,仅使用卡特

This commit is contained in:
葛林强 2024-06-25 09:13:09 +08:00
parent 959f4fb57a
commit cc7435dc52
4 changed files with 139 additions and 2 deletions

View File

@ -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')
},
} }

View File

@ -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') }, // 穿梭车状态

View File

@ -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,

View 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>