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/LabelPrintSelect.html | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 42 insertions(+), 1 deletions(-) diff --git a/HTML/views/ASNSetting/LabelPrintSelect.html b/HTML/views/ASNSetting/LabelPrintSelect.html index 1b021e4..882b7c7 100644 --- a/HTML/views/ASNSetting/LabelPrintSelect.html +++ b/HTML/views/ASNSetting/LabelPrintSelect.html @@ -11,6 +11,12 @@ <body> <div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;"> + <div class="layui-form-item"> + <label class="layui-form-label">渚涜揣鎵规</label> + <div class="layui-input-block"> + <input type="text" name="SupplierLot" id="SupplierLot" placeholder="璇疯緭鍏ヤ緵璐ф壒娆�" autocomplete="off" class="layui-input"> + </div> + </div> <div class="layui-form-item"> <label class="layui-form-label">鐢熶骇鏃ユ湡</label> <div class="layui-input-block"> @@ -32,7 +38,7 @@ <div class="layui-form-item"> <label class="layui-form-label">閲嶇疆鎵瑰彿</label> <div class="layui-input-block"> - <select name="reset" id="reset" lay-verify="required"> + <select name="reset" id="reset" lay-filter="reset" lay-verify="required"> <option value="1">鏄�</option> <option value="0">鍚�</option> </select> @@ -115,6 +121,34 @@ , format: 'yyyy-MM-dd' //鍙换鎰忕粍鍚� }); + var id = getQueryString('Id'); + var SupplierLot=getQueryString('SupplierLot');//渚涜揣鎵规 + $('#SupplierLot').val(SupplierLot); + console.log(SupplierLot); + var asnType = getQueryString('Type'); + console.log(asnType); + console.log(asnType == 4); + if(asnType == 4){ + + $("#reset option[value='0']").attr("selected","selected"); //鎬у埆 + $("#reset").attr("disabled","disabled"); + form.render('select'); + } + + var param = { + id: parseInt(id), + }; + + synData(IP + "/BllAsn/GetAsnDetailQtyList", param , 'get', function (res) { + if (res.code == 0) { //鎴愬姛 + $("#arriveQty").val(res.data); + } else { //涓嶆垚鍔� + layer.msg(res.msg, { + icon: 2, + time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 + }, function () { }); + } + }); // form.on('select(levelFil)', function(data){ // console.log($("#type").val()); // var type = $("#type").val(); @@ -170,6 +204,13 @@ // } // }); + // 鑾峰彇浼犻�掑弬鏁� + function getQueryString(name) { + var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); + var r = window.location.search.substr(1).match(reg); + if (r != null) return unescape(r[2]); + return null; + } }) </script> -- Gitblit v1.8.0