gaoluyang
6 天以前 3712799f3e0904f28e4268deaa5c5ee291323c38
src/views/inventoryManagement/receiptManagement/components/formDia.vue
@@ -277,19 +277,20 @@
         }
         return exceedsAddLimit(product);
      })
      if (invalidProducts.length > 0) {
         proxy.$modal.msgWarning('本次入库数量不能大于待入库数量,且需大于0');
         return;
      proxy.$modal.msgError('本次入库数量需大于0,且不能超过待入库数量')
      return
      }
      
      const stockInData = {
         ...form.value,
         inboundTime: formatDateTime(),
      inboundTime: formatDateTime(form.value.inboundTime),
         nickName: userStore.nickName,
         details: selectedRows.value.map(product => ({
            id: product.id,
            inboundQuantity: Number(product.quantityStock),
            unitPrice: Number(product.taxInclusiveUnitPrice),
            taxInclusiveUnitPrice: Number(product.taxInclusiveUnitPrice),
            taxInclusiveTotalPrice: Number(product.taxInclusiveTotalPrice)
         })),
      };