diff --git a/ruoyi-admin/src/main/resources/templates/inventory/outer/edit.html b/ruoyi-admin/src/main/resources/templates/inventory/outer/edit.html index 00517089..834062ee 100644 --- a/ruoyi-admin/src/main/resources/templates/inventory/outer/edit.html +++ b/ruoyi-admin/src/main/resources/templates/inventory/outer/edit.html @@ -483,12 +483,13 @@ // return // } } else { + // arrays= productSnData.map(item => item.productSn) // if (productSnData.length != quantity) { // $.modal.msgError(`产品选中数量应与发货数量一致,应发货数量为[${quantity}]`) // return // } } - if (arrays.length<=0){ + if (productSnData.length <= 0 && arrays.length <= 0) { $.modal.msgError(`应发货数量应该大于0`) return } @@ -498,7 +499,7 @@ productSnList: arrays, logisticsCode: $('#logisticsCode').val(), productCode: productCode, - quantity: arrays.length, + quantity: productSnData.length <= 0 ? arrays.length : productSnData.length, warehouseId: warehouseId, logisticsCompany: $('#logisticsCompany').val(), deliveryType: $('#deliveryType').val(), diff --git a/ruoyi-admin/src/main/resources/templates/layout/product-list.html b/ruoyi-admin/src/main/resources/templates/layout/product-list.html index 5228b2fc..0c76e05d 100644 --- a/ruoyi-admin/src/main/resources/templates/layout/product-list.html +++ b/ruoyi-admin/src/main/resources/templates/layout/product-list.html @@ -25,7 +25,7 @@