From 2be1922b035c182c3c516427aa68be54badd6938 Mon Sep 17 00:00:00 2001 From: IPC-610 <IPC-610@DESKTOP-6LEOOS3> Date: 星期四, 26 九月 2024 15:15:52 +0800 Subject: [PATCH] 登录页修改 --- HTML/views/ASNSetting/LabelPrint.html | 69 ++++++++++++++++++++-------------- 1 files changed, 41 insertions(+), 28 deletions(-) diff --git a/HTML/views/ASNSetting/LabelPrint.html b/HTML/views/ASNSetting/LabelPrint.html index 7c4577e..9bd7c63 100644 --- a/HTML/views/ASNSetting/LabelPrint.html +++ b/HTML/views/ASNSetting/LabelPrint.html @@ -118,39 +118,52 @@ var productionTime = getQueryString('ProductionTime'); var expirationTime = getQueryString('ExpirationTime'); var storeTime = getQueryString('StoreTime'); - + + var supplierLot=getQueryString('SupplierLot'); //渚涜揣鎵规 + $("#SupplierLot").html(supplierLot); + console.log(supplierLot); + var doing = true; // console.log(productionTime); // console.log(expirationTime); // console.log(storeTime); //鐢熸垚 $('#btnAdd').on('click', function () { - var param = { - Id: parseInt(id), - IsReset:reset, - ArriveQty:arriveQty, - ProductionTime:productionTime, - ExpirationTime:expirationTime, - StoreTime:storeTime - }; - // console.log(param); - synData(IP + "/BllAsn/AddLabelBox", param , 'post', function (res) { - if (res.code == 0) { //鎴愬姛 - layer.msg(res.msg, { - icon: 1, - time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 - }, function () { - parent.location.reload(); - parent.layer.close(layer.index); - }); - - } else { //涓嶆垚鍔� - layer.msg(res.msg, { - icon: 2, - time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 - }, function () { }); - } - }); + if(doing){ + doing= false; + + + var param = { + Id: parseInt(id), + IsReset:reset, + ArriveQty:arriveQty, + ProductionTime:productionTime, + ExpirationTime:expirationTime, + StoreTime:storeTime, + SupplierLot:supplierLot//渚涜揣鎵规 + }; + // console.log(param); + synData(IP + "/BllAsn/AddLabelBox", param , 'post', function (res) { + if (res.code == 0) { //鎴愬姛 + layer.msg(res.msg, { + icon: 1, + time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 + }, function () { + parent.location.reload(); + parent.layer.close(layer.index); + doing = true; + }); + + } else { //涓嶆垚鍔� + layer.msg(res.msg, { + icon: 2, + time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 + }, function () { + doing = true; + }); + } + }); + } }); //鎵撳嵃 $('#btnPrint').on('click', function () { @@ -173,7 +186,7 @@ $("#Standard").html(res.data.Standard); $("#PackageStandard").html(res.data.PackageStandard); $("#SkuNo").html(res.data.SkuNo); - $("#SupplierLot").html(res.data.SupplierLot); + $("#ExpirationTime").html(expirationTime); $("#StoreTime").html( storeTime); -- Gitblit v1.8.0