Browse Source

fix: 更新物品维度和批次维度的库存展示逻辑,确保信息准确性(使用wms的逻辑)

xieyong 21 hours ago
parent
commit
3f05de9202
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/views/pick/pickApply/components/newPickingList.vue

+ 3 - 1
src/views/pick/pickApply/components/newPickingList.vue

@@ -95,7 +95,9 @@
             </template>
 
             <template v-slot:measureQuantity="{ row }">
-              {{ row.measureQuantity }} {{ row.measureUnit }}
+              <!--  物品维度后端回填的是 measureQuantity(物品聚合库存),
+               批次维度回填的是 stockCountBase(批次库存),两者兜底展示 -->
+              {{ row.stockCountBase ?? row.measureQuantity }} {{ row.measureUnit }}
             </template>
 
             <template v-slot:weight="{ row }">