Browse Source

栈板点位特殊处理

master
常熟吴彦祖 1 month ago
parent
commit
6de27c4403
  1. 32
      src/views/modules/wcsSystem/agvStation.vue
  2. 38
      src/views/modules/wcsSystem/agvStationSpecialAction.vue

32
src/views/modules/wcsSystem/agvStation.vue

@ -64,6 +64,14 @@
<span v-else-if="item.columnProp === 'autoCallBlankPallet'">
{{ scope.row.autoCallBlankPallet === 'Y' ? '是' : '否' }}
</span>
<!-- 站点状态根据statusDb映射显示 - rqrq -->
<span v-else-if="item.columnProp === 'statusDb'">
<el-tag
:type="getStatusType(scope.row.statusDb)"
size="small">
{{ getStatusText(scope.row.statusDb) }}
</el-tag>
</span>
<span v-else>{{ scope.row[item.columnProp] }}</span>
</template>
</el-table-column>
@ -348,7 +356,7 @@ export default {
fixed: ""
},
{
columnProp: "status",
columnProp: "statusDb",
headerAlign: "center",
align: "center",
columnLabel: "站点状态",
@ -451,6 +459,28 @@ export default {
this.loadOptions()
},
methods: {
// - rqrq
getStatusText(statusDb) {
const statusMap = {
0: '空闲',
1: '有货',
2: '待放货',
3: '待取货'
}
return statusMap[statusDb] !== undefined ? statusMap[statusDb] : '未知'
},
// - rqrq
getStatusType(statusDb) {
const typeMap = {
0: 'success', // - 绿
1: 'warning', // -
2: 'primary', // -
3: 'danger' // -
}
return typeMap[statusDb] !== undefined ? typeMap[statusDb] : 'info'
},
// - rqrq
getDataList() {
this.dataListLoading = true

38
src/views/modules/wcsSystem/agvStationSpecialAction.vue

@ -48,6 +48,14 @@
<span v-else-if="item.columnProp === 'autoCallBlankPallet'">
{{ scope.row.autoCallBlankPallet === 'Y' ? '是' : '否' }}
</span>
<!-- 站点状态根据statusDb映射显示 - rqrq -->
<span v-else-if="item.columnProp === 'statusDb'">
<el-tag
:type="getStatusType(scope.row.statusDb)"
size="small">
{{ getStatusText(scope.row.statusDb) }}
</el-tag>
</span>
<span v-else>{{ scope.row[item.columnProp] }}</span>
</template>
</el-table-column>
@ -60,10 +68,10 @@
width="220"
label="操作">
<template slot-scope="scope">
<a type="text" @click="correctStatus(scope.row)" v-if="!scope.row.correctLoading">纠正状态</a>
<a type="text" @click="correctStatus(scope.row)" v-if="!scope.row.correctLoading&&!scope.row.stationId!=='D1'&&!scope.row.stationId!=='D2'">纠正状态</a>
<span v-if="scope.row.correctLoading" style="color: #999;">处理中...</span>
<a type="text" @click="viewPallets(scope.row)" style="margin-left: 10px;">查看栈板</a>
<a type="text" @click="openAutoCallSetting(scope.row)" style="margin-left: 10px;">续盘设置</a>
<a type="text" @click="viewPallets(scope.row)" style="margin-left: 10px;" v-if="!scope.row.stationId!=='D1'&&!scope.row.stationId!=='D2'">查看栈板</a>
<a type="text" @click="openAutoCallSetting(scope.row)" style="margin-left: 10px;" v-if="!scope.row.stationId!=='D1'&&!scope.row.stationId!=='D2'">续盘设置</a>
</template>
</el-table-column>
</el-table>
@ -249,7 +257,7 @@ export default {
fixed: ""
},
{
columnProp: "status",
columnProp: "statusDb",
headerAlign: "center",
align: "center",
columnLabel: "站点状态",
@ -529,6 +537,28 @@ export default {
})
},
// - rqrq
getStatusText(statusDb) {
const statusMap = {
0: '空闲',
1: '有货',
2: '待放货',
3: '待取货'
}
return statusMap[statusDb] !== undefined ? statusMap[statusDb] : '未知'
},
// - rqrq
getStatusType(statusDb) {
const typeMap = {
0: 'success', // - 绿
1: 'warning', // -
2: 'primary', // -
3: 'danger' // -
}
return typeMap[statusDb] !== undefined ? typeMap[statusDb] : 'info'
},
// - rqrq
saveAutoCallSetting() {
this.saveAutoCallLoading = true

Loading…
Cancel
Save