From a220d9ef3f3c6c66353a39e0847bd5e6ff4e2fc5 Mon Sep 17 00:00:00 2001
From: yuyou_x <2336760928@qq.com>
Date: 星期日, 04 二月 2024 16:11:10 +0800
Subject: [PATCH] 添加入库单需根据单据类型验证是否要填写批次号,增加托盘绑定无批次时只显示物料信息。
---
Pda/View/AsnSetting/productEnterQuantity .html | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/Pda/View/AsnSetting/productEnterQuantity .html b/Pda/View/AsnSetting/productEnterQuantity .html
index caaa38d..cf8d80e 100644
--- a/Pda/View/AsnSetting/productEnterQuantity .html
+++ b/Pda/View/AsnSetting/productEnterQuantity .html
@@ -598,7 +598,7 @@
form.render('select');
var param = {
- Type: "2,5,6"
+ Type: "2,5,6,7"
};
sendData(IP + "/PdaAsn/GetArrivalNotices", param, 'post', function (res) {
if (res.code == 0) { //鎴愬姛
@@ -903,11 +903,14 @@
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 + "-" + res.data[i].LotNo +
- '</option>');
+ .SkuName);
} else {
$("#goodSelect1").append('<option value =' + res.data[i].Id + '>' + res.data[i]
- .SkuName + "-" + res.data[i].LotNo +
+ .SkuName);
+ }
+ if (res.data[i].LotNo != null)
+ {
+ $("#goodSelect1").append("-" + res.data[i].LotNo +
'</option>');
}
--
Gitblit v1.8.0