Explorar el Código

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

xieyong hace 23 horas
padre
commit
3f05de9202
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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 }">