|
@@ -10,6 +10,7 @@
|
|
|
<h1 class="title">
|
|
<h1 class="title">
|
|
|
宝时立库
|
|
宝时立库
|
|
|
<span class="title-meta">· 总库位 {{ locations.length }}</span>
|
|
<span class="title-meta">· 总库位 {{ locations.length }}</span>
|
|
|
|
|
+ <span class="title-meta">· 可用库位 {{ availableLocationsCount }}</span>
|
|
|
<span class="title-legend">
|
|
<span class="title-legend">
|
|
|
<span class="legend-chip legend-chip-a">A</span>
|
|
<span class="legend-chip legend-chip-a">A</span>
|
|
|
<span class="legend-chip legend-chip-b">B</span>
|
|
<span class="legend-chip legend-chip-b">B</span>
|
|
@@ -18,7 +19,7 @@
|
|
|
</h1>
|
|
</h1>
|
|
|
<div class="controls">
|
|
<div class="controls">
|
|
|
<label class="filter-item">
|
|
<label class="filter-item">
|
|
|
- <span class="selector-label">资源类型</span>
|
|
|
|
|
|
|
+ <span class="selector-label">库位类型</span>
|
|
|
<select v-model="selectedCategory" class="level-select">
|
|
<select v-model="selectedCategory" class="level-select">
|
|
|
<option value="">全部</option>
|
|
<option value="">全部</option>
|
|
|
<option v-for="category in categoryOptions" :key="category" :value="category">
|
|
<option v-for="category in categoryOptions" :key="category" :value="category">
|
|
@@ -293,6 +294,10 @@ const categoryOptions = computed(() => {
|
|
|
return [...new Set(locations.value.map((loc) => loc.category).filter(Boolean))].sort()
|
|
return [...new Set(locations.value.map((loc) => loc.category).filter(Boolean))].sort()
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
+const availableLocationsCount = computed(() => {
|
|
|
|
|
+ return locations.value.filter((loc) => loc.locationAttribute === 'OK').length
|
|
|
|
|
+})
|
|
|
|
|
+
|
|
|
const locationAttributeOptions = computed<LocationAttributeCode[]>(() => {
|
|
const locationAttributeOptions = computed<LocationAttributeCode[]>(() => {
|
|
|
return [...new Set(locations.value.map((loc) => loc.locationAttribute).filter(Boolean))] as LocationAttributeCode[]
|
|
return [...new Set(locations.value.map((loc) => loc.locationAttribute).filter(Boolean))] as LocationAttributeCode[]
|
|
|
})
|
|
})
|