Browse Source

merge dev into test: 同步物品/批次维度库存展示兜底逻辑

xieyong 22 giờ trước cách đây
mục cha
commit
e9544de270
1 tập tin đã thay đổi với 3 bổ sung và 1 xóa
  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 }">