|
|
@ -48,6 +48,14 @@ |
|
|
<span v-else-if="item.columnProp === 'autoCallBlankPallet'"> |
|
|
<span v-else-if="item.columnProp === 'autoCallBlankPallet'"> |
|
|
{{ scope.row.autoCallBlankPallet === 'Y' ? '是' : '否' }} |
|
|
{{ scope.row.autoCallBlankPallet === 'Y' ? '是' : '否' }} |
|
|
</span> |
|
|
</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> |
|
|
<span v-else>{{ scope.row[item.columnProp] }}</span> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
@ -60,10 +68,10 @@ |
|
|
width="220" |
|
|
width="220" |
|
|
label="操作"> |
|
|
label="操作"> |
|
|
<template slot-scope="scope"> |
|
|
<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> |
|
|
<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> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
@ -249,7 +257,7 @@ export default { |
|
|
fixed: "" |
|
|
fixed: "" |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
columnProp: "status", |
|
|
|
|
|
|
|
|
columnProp: "statusDb", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
align: "center", |
|
|
align: "center", |
|
|
columnLabel: "站点状态", |
|
|
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 |
|
|
// 保存续盘设置 - rqrq |
|
|
saveAutoCallSetting() { |
|
|
saveAutoCallSetting() { |
|
|
this.saveAutoCallLoading = true |
|
|
this.saveAutoCallLoading = true |
|
|
|