From f10e29b77659f6b7db1cf8d0e0fc5387b958e2c5 Mon Sep 17 00:00:00 2001 From: wxw <Administrator@DESKTOP-5BIMHQ3> Date: 星期三, 17 七月 2024 16:54:08 +0800 Subject: [PATCH] Merge branch 'wxw' --- HTML/views/SOSetting/ExportNotice.html | 70 +++++++++++++++++++++++------------ 1 files changed, 46 insertions(+), 24 deletions(-) diff --git a/HTML/views/SOSetting/ExportNotice.html b/HTML/views/SOSetting/ExportNotice.html index 0568bea..ffa8410 100644 --- a/HTML/views/SOSetting/ExportNotice.html +++ b/HTML/views/SOSetting/ExportNotice.html @@ -324,6 +324,21 @@ }} {{ GetBtn9(d) }} </script> + + <script type="text/html" id="templetIsMixBox"> + {{# function GetBtn10(d){ + switch (d.IsMixBox) { + case "0": + return "鍚�"; + case "1": + return "鏄�"; + default: + return ""; + } + } + }} + {{ GetBtn10(d) }} + </script> <!-- #endregion --> </div> @@ -770,6 +785,7 @@ { field: 'CompleteQty', title: '鎷h揣鏁伴噺', align: 'center', width: 100 }, { field: 'IsBale', title: '鏄惁瑁瑰寘', align: 'center', templet: '#templetIsBale', width: 90 }, { field: 'IsBelt', title: '鏄惁鎵撳甫', align: 'center', templet: '#templetIsBelt', width: 90 }, + { field: 'IsMixBox', title: '鏄惁鎷肩', align: 'center', templet: '#templetIsMixBox', width: 90 }, { field: 'LotText', title: '鎵规鎻忚堪', align: 'center', width: 100 }, { field: 'PackagName', title: '鍖呰鍚嶇О', align: 'center', width: 120 }, { field: 'SupplierLot', title: '渚涜揣鎵规', align: 'center', width: 120 }, @@ -1181,31 +1197,37 @@ isChongFu = true; }); } else { //涓嶆垚鍔� - - layer.confirm('褰撳墠鍗曟嵁鎵规鍑哄簱鏄法鎵瑰嚭搴擄紝鏄惁璺ㄦ壒鍑哄簱锛�', function () { - var param1 = { - soNo: SoNo, - tab: "1" - }; - sendData(IP + "/BllSo/ExportAutoAllot", param1, 'get', function (res) { - if (res.code == 0) { //鎴愬姛 - layer.msg("鎿嶄綔鎴愬姛锛�", { - icon: 1, - time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 - }, function () { - refreshTable(); - isChongFu = true; - }); - } else { - layer.msg(res.msg, { - icon: 2, - time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 - }, function () { - isChongFu = true; - }); - } + if(res.code==2){ + layer.confirm('褰撳墠鍗曟嵁鎵规鍑哄簱鏄法鎵瑰嚭搴擄紝鏄惁璺ㄦ壒鍑哄簱锛�', function () { + var param1 = { + soNo: SoNo, + tab: "1" + }; + sendData(IP + "/BllSo/ExportAutoAllot", param1, 'get', function (res) { + if (res.code == 0) { //鎴愬姛 + layer.msg("鎿嶄綔鎴愬姛锛�", { + icon: 1, + time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 + }, function () { + refreshTable(); + isChongFu = true; + }); + } else { + layer.msg(res.msg, { + icon: 2, + time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 + }, function () { + isChongFu = true; + }); + } + }) }) - }) + }else{ + layer.msg(res.msg, { + icon: 2, + time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 + }); + } isChongFu = true; } }); -- Gitblit v1.8.0