浏览代码

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

xieyong 22 小时之前
父节点
当前提交
e9544de270
共有 1 个文件被更改,包括 3 次插入 和 1 次删除
  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 }">