Sfoglia il codice sorgente

宝时快上-组合商品取消数量不够组合设置为1

zhaohuanhuan 3 settimane fa
parent
commit
9e734d46c9
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      src/views/inbound/putaway/task/index.vue

+ 2 - 1
src/views/inbound/putaway/task/index.vue

@@ -415,7 +415,8 @@ const setPutawayCombine = ({ dataList }) => {
 // 组合商品取消
 const onCombineCancel = () => {
   const qtyPerSet = putawayCombineData.value?.quantity ?? 1
-  searchCount.value = String(qtyPerSet)
+  const total = barcodeQuantity(barcodeActiveList.value)
+  searchCount.value = String(total < qtyPerSet ? 1 : qtyPerSet)
 }
 // 选择单据
 const onDetailActive = (item) => {