From 2bb63edc363896ca8d1fe96fdf36328892c26732 Mon Sep 17 00:00:00 2001 From: yuyou_x <2336760928@qq.com> Date: 星期二, 20 二月 2024 10:25:34 +0800 Subject: [PATCH] 修改箱支明细更改判断 --- Pda/View/AsnSetting/productEnterQuantity.html | 33 +++++++++++++++++++++++---------- 1 files changed, 23 insertions(+), 10 deletions(-) diff --git a/Pda/View/AsnSetting/productEnterQuantity.html b/Pda/View/AsnSetting/productEnterQuantity.html index da587ad..771b746 100644 --- a/Pda/View/AsnSetting/productEnterQuantity.html +++ b/Pda/View/AsnSetting/productEnterQuantity.html @@ -311,6 +311,7 @@ </div> </div> </td> + <td></td> </tr> <tr> <td> @@ -921,17 +922,29 @@ if (res.code == 0) { //鎴愬姛 asnDetails = res.data; for (var i = 0; i < res.data.length; i++) { - if (i == 0) { - $("#goodSelect1").append('<option value =' + res.data[i].Id + ' selected>' + res.data[i] - .SkuName); - } else { - $("#goodSelect1").append('<option value =' + res.data[i].Id + '>' + res.data[i] - .SkuName); - } - if (res.data[i].LotNo != null) - { - $("#goodSelect1").append("-" + res.data[i].LotNo + + if(skuNo!='' && skuNo==res.data[i].SkuNo){ + if (i == 0) { + $("#goodSelect1").append('<option value =' + res.data[i].Id + ' selected>' + res.data[i] + .SkuName); + } else { + $("#goodSelect1").append('<option value =' + res.data[i].Id + '>' + res.data[i] + .SkuName); + } + if (res.data[i].LotNo != null) + { + $("#goodSelect1").append("-" + res.data[i].LotNo + + '</option>'); + } + }else { + if(res.data[i].LotNo=='' || res.data[i].LotNo == null){ + $("#goodSelect1").append('<option value =' + res.data[i].Id + ' selected>' + res.data[i] + .SkuName + '</option>'); + }else{ + $("#goodSelect1").append('<option value =' + res.data[i].Id + ' selected>' + res.data[i] + .SkuName + "-" + res.data[i].LotNo + + '</option>'); + } } } -- Gitblit v1.8.0