Explorar el Código

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

zhaohuanhuan hace 3 semanas
padre
commit
9e734d46c9
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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) => {