rev:仓位管理页面优化

This commit is contained in:
2024-09-11 15:21:23 +08:00
parent 66417d8095
commit 5215e0f047
2 changed files with 32 additions and 13 deletions

View File

@@ -81,12 +81,12 @@ public class StructattrServiceImpl implements StructattrService {
map.put("is_used", (String) whereJson.get("is_used"));
map.put("is_have", (String) whereJson.get("is_have"));
// 如果是二期仓库则将层数删除
/* // 如果是二期仓库则将层数删除
if (ObjectUtil.isNotEmpty(whereJson.get("stor_id"))) {
if ( whereJson.get("stor_id").equals(IOSEnum.STOR_ID.code("二期"))) {
map.put("layer_num", "");
}
}
}*/
//获取人员对应的仓库
UserStorServiceImpl userStorService = new UserStorServiceImpl();
String in_stor_id = userStorService.getInStor();

View File

@@ -331,16 +331,8 @@
{{ dict.label.placement_type[scope.row.placement_type] }}
</template>
</el-table-column>
<el-table-column prop="zdepth" label="深度" min-width="120" show-overflow-tooltip>
<template slot-scope="scope">
{{ dict.label.zdepth[scope.row.zdepth] }}
</template>
</el-table-column>
<el-table-column prop="storagevehicle_type" label="托盘类型" min-width="120" show-overflow-tooltip>
<template slot-scope="scope">
{{ dict.label.storagevehicle_type[scope.row.storagevehicle_type] }}
</template>
</el-table-column>
<el-table-column prop="zdepth" label="深度" min-width="120" show-overflow-tooltip :formatter="zdepthType" />
<el-table-column prop="storagevehicle_type" label="托盘类型" min-width="120" show-overflow-tooltip :formatter="formattTwo" />
<el-table-column label="是否启用" align="center" prop="is_used">
<template slot-scope="scope">
<el-switch
@@ -472,7 +464,15 @@ export default {
layerList: [
{ 'label': '1层', 'value': '1' },
{ 'label': '2层', 'value': '2' },
{ 'label': '3层', 'value': '3' }
{ 'label': '3层', 'value': '3' },
{ 'label': '4层', 'value': '4' },
{ 'label': '5层', 'value': '5' },
{ 'label': '6层', 'value': '6' },
{ 'label': '7层', 'value': '7' },
{ 'label': '8层', 'value': '8' },
{ 'label': '9层', 'value': '9' },
{ 'label': '10层', 'value': '10' },
{ 'label': '11层', 'value': '11' }
],
isHaveList: [
{ 'label': '空位', 'value': '1' },
@@ -626,6 +626,25 @@ export default {
this.dialogVisible2 = false
this.crud.toQuery()
})
},
zdepthType(row) {
if (row.zdepth === '1') {
return '浅货位'
}
if (row.zdepth === '2') {
return '深货位'
}
if (row.zdepth === '3') {
return '无'
}
},
formattTwo(row) {
if (row.storagevehicle_type === '1') {
return '小托盘'
}
if (row.storagevehicle_type === '2') {
return '大托盘'
}
}
}
}