Sfoglia il codice sorgente

宝时快上-无单据收货key处理问题

zhaohuanhuan 5 giorni fa
parent
commit
23d6dae5ed
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/views/inbound/putaway/task/index.vue

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

@@ -645,7 +645,7 @@ const _getRecommendedLocation = async (item, options = {}) => {
   const uniqueLocationIds = fromChangeLocation ? getExcludedLocationIds(excludedLocations.value) : undefined
   const uniqueLocationIds = fromChangeLocation ? getExcludedLocationIds(excludedLocations.value) : undefined
   try {
   try {
     const total = barcodeQuantity(barcodeActiveList.value)
     const total = barcodeQuantity(barcodeActiveList.value)
-    const statisticsKey=barcodeActiveList.value[0].taskNo+'_'+barcodeActiveList.value[0].lotNumber
+    const statisticsKey=barcodeActiveList.value[0].taskNo || barcodeActiveList.value[0].businessNo +'_'+barcodeActiveList.value[0].lotNumber
     const params = { warehouse, lotNum: lotNumber, owner, sku, qty: total, lotAtt08}
     const params = { warehouse, lotNum: lotNumber, owner, sku, qty: total, lotAtt08}
     if (locationType.value) params.locationUse = locationType.value
     if (locationType.value) params.locationUse = locationType.value
     if (options.changeTypeName) params.locationType = options.changeTypeName
     if (options.changeTypeName) params.locationType = options.changeTypeName