瀏覽代碼

fix: 更新库存展示逻辑,支持物品维度和批次维度的兜底展示(同步调整)

xieyong 18 小時之前
父節點
當前提交
be817ce0e9
共有 1 個文件被更改,包括 3 次插入 和 1 次删除
  1. 3 1
      src/views/pick/pickApply/components/selfBuildPick.vue

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

@@ -123,7 +123,9 @@
 
           <el-table-column label="计量库存数量" prop="measureQuantity">
             <template slot-scope="{ row, $index }">
-              {{ row.measureQuantity }} {{ row.measuringUnit }}
+              <!--  物品维度后端回填的是 measureQuantity(物品聚合库存),
+               批次维度回填的是 stockCountBase(批次库存),两者兜底展示 -->
+              {{ row.stockCountBase ?? row.measureQuantity }} {{ row.measuringUnit }}
             </template>
           </el-table-column>