瀏覽代碼

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

xieyong 22 小時之前
父節點
當前提交
3f05de9202
共有 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 }">