From 265fa2b9f6816f62fffac3db611fcb1fc9dfe1a6 Mon Sep 17 00:00:00 2001
From: bklLiudl <673013083@qq.com>
Date: 星期四, 17 十月 2024 18:47:53 +0800
Subject: [PATCH] 修改问题
---
Pda/View/AsnSetting/productEnterQuantity.html | 36 ++++++++++++++++++++++++++----------
1 files changed, 26 insertions(+), 10 deletions(-)
diff --git a/Pda/View/AsnSetting/productEnterQuantity.html b/Pda/View/AsnSetting/productEnterQuantity.html
index c8ec00d..6550d26 100644
--- a/Pda/View/AsnSetting/productEnterQuantity.html
+++ b/Pda/View/AsnSetting/productEnterQuantity.html
@@ -586,14 +586,12 @@
form.render('select');
var param = {
- Type: "0,1,3"
+ Type: "0"
};
sendData(IP + "/PdaAsn/GetArrivalNotices", param, 'post', function (res) {
if (res.code == 0) { //鎴愬姛
for (var i = 0; i < res.data.length; i++) {
- $("#bar").append('<option value =' + res.data[i].ASNNo + '>' + res.data[i]
- .ASNNo +
- '</option>');
+ $("#bar").append('<option value =' + res.data[i] + '>' + res.data[i] + '</option>');
}
form.render('select');
@@ -621,14 +619,13 @@
form.render('select');
var param = {
- Type: "2,5,6,7"
+ Type: "1"
};
sendData(IP + "/PdaAsn/GetArrivalNotices", param, 'post', function (res) {
if (res.code == 0) { //鎴愬姛
+ console.log(res.data);
for (var i = 0; i < res.data.length; i++) {
- $("#bar1").append('<option value =' + res.data[i].ASNNo + '>' + res.data[i]
- .ASNNo +
- '</option>');
+ $("#bar1").append('<option value =' + res.data[i] + '>' + res.data[i] +'</option>');
}
form.render('select');
@@ -732,8 +729,10 @@
BoxNo: $("#BOXCODE").val(),
IsContinue: isContinue,
TailBoxNo: $("#BOXCODE2").val(),
- Origin: "PDA"
+ Origin: "PDA",
+ TableType: xianshiyemian,
}
+ console.log(param)
//缁勭洏
sendData(IP + "/PdaAsn/BindPallet", param, 'post', function (res) {
if (res.code == 0) { //鎴愬姛
@@ -786,7 +785,8 @@
LotNo: $("#goodSelect1").find("option:selected").text(), //鐗╂枡鎵规
SkuQty: parseInt($("#SkuQty").val()), //鐗╂枡鏁伴噺
Demo: $("#NoticeDemo").val(), //鐗╂枡鏁伴噺
- Origin: "PDA"
+ Origin: "PDA",
+ TableType: xianshiyemian,
}
console.log(param)
@@ -905,6 +905,13 @@
console.log("鍑哄簱鍙o細" + JSON.stringify(res))
if (res.code == 0) { //鎴愬姛
asnDetails = res.data;
+ if (asnDetails.length <= 0) {
+ layer.msg('褰撳墠鍗曟嵁涓嬩笉瀛樺湪璐存爣鐗╂枡', {
+ icon: 2,
+ time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+ });
+ return;
+ }
for (var i = 0; i < res.data.length; i++) {
if (skuNo != '' && skuNo == res.data[i].SkuNo) {
if (res.data[i].LotNo == '' || res.data[i].LotNo == null) {
@@ -968,6 +975,14 @@
console.log("鍑哄簱鍙o細" + JSON.stringify(res))
if (res.code == 0) { //鎴愬姛
asnDetails = res.data;
+ // console.log(asnDetails.length)
+ if (asnDetails.length <= 0) {
+ layer.msg('褰撳墠鍗曟嵁涓嬩笉瀛樺湪涓嶈创鏍囩墿鏂�', {
+ icon: 2,
+ time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+ });
+ return;
+ }
for (var i = 0; i < res.data.length; i++) {
if (skuNo != '' && skuNo == res.data[i].SkuNo) {
@@ -1232,6 +1247,7 @@
function checkBoxInfo() {
var param = {
"BoxNo": $("#BOXCODE").val(),
+ "AsnNo":$("#bar").val(),
}
sendData(IP + "/PdaAsn/GetBindBoxInfos", param, 'post', function (res) {
if (res.code == 0) { //鎴愬姛
--
Gitblit v1.8.0