From f2b3c45b78bb9fc021869c4ae35e6de039b50bbf Mon Sep 17 00:00:00 2001 From: chengsc <Demo@DESKTOP-CPA90BF> Date: 星期五, 18 十月 2024 18:40:52 +0800 Subject: [PATCH] 修改问题 --- HTML/views/ASNSetting/ArrivalNotice.html | 522 +++++++++++++++++++-------------------------------------- 1 files changed, 172 insertions(+), 350 deletions(-) diff --git a/HTML/views/ASNSetting/ArrivalNotice.html b/HTML/views/ASNSetting/ArrivalNotice.html index 1ab7926..6190fca 100644 --- a/HTML/views/ASNSetting/ArrivalNotice.html +++ b/HTML/views/ASNSetting/ArrivalNotice.html @@ -62,13 +62,14 @@ <option value="1">姝e湪鎵ц</option> <option value="2">鎵ц瀹屾垚</option> <option value="3">璁㈠崟鍏抽棴</option> + <option value="4">涓婁紶瀹屾瘯</option> </select> </div> </div> <div class="layui-inline"> - <label class="layui-form-label">鎵规鍙�</label> + <label class="layui-form-label">杩涘巶缂栧彿</label> <div class="layui-input-inline"> - <input type="text" id="LotNo" name="LotNo" placeholder="鎵规鍙�" autocomplete="off" + <input type="text" id="LotNo" name="LotNo" placeholder="杩涘巶缂栧彿" autocomplete="off" class="layui-input"> </div> </div> @@ -91,9 +92,18 @@ <div class="layui-input-inline"> <select name="Type" id="Type" lay-filter="Type" lay-search> <option value=""></option> + <!-- JC24 --> + <option value="0">鎴愬搧鍏ュ簱</option> + <option value="1">閲囪喘鍏ュ簱</option> + <option value="2">涓棿鍝佸叆搴�</option> + <option value="3">閫�璐у叆搴�</option> + <option value="4">杞﹂棿浣欐枡閫�鍥炲叆搴�</option> + <option value="5">鍏跺畠鍏ュ簱</option> + <option value="6">浠e偍鍏ュ簱</option> + <option value="7">瀵勫瓨鍏ュ簱</option> <!-- JC09 --> - <option value="0">鏍囧噯浜у搧鍏ュ簱</option> - <option value="1">闈炴爣浜у搧鍏ュ簱</option> + <!-- <option value="0">鏍囧噯浜у搧鍏ュ簱</option> + <option value="1">闈炴爣浜у搧鍏ュ簱</option> --> <!-- JC08 --> <!-- <option value="0">鎴愬搧鍏ュ簱</option> <option value="1">鍘熸枡鍏ュ簱</option> @@ -163,25 +173,25 @@ <script type="text/html" id="toolbarDemo1"> {{# function GetBtn1(d){ var html = ''; + if (d.Status == '0' && d.Origin == '褰曞叆') { + html += `<a class="layui-btn layui-btn-normal layui-btn-xs editClass" lay-event="edit"> + <i class="layui-icon layui-icon-edit"></i>缂栬緫</a>`; + } switch (d.Status) { case "0" : - html += `<a class="layui-btn layui-btn-normal layui-btn-xs editClass" lay-event="edit"> - <i class="layui-icon layui-icon-edit"></i>缂栬緫</a> - <a class="layui-btn layui-btn-danger layui-btn-xs delClass" lay-event="del"> - <i class="layui-icon layui-icon-delete"></i>鍒犻櫎</a> - <a class="layui-btn layui-btn-normal layui-btn-xs clossClass" lay-event="closs"> - <i class="layui-icon layui-icon-ok"></i>璁㈠崟鍏抽棴</a>`; + html += `<a class="layui-btn layui-btn-danger layui-btn-xs delClass" lay-event="del"> + <i class="layui-icon layui-icon-delete"></i>鍒犻櫎</a>`; break; case "1" : - html += `<a class="layui-btn layui-btn-normal layui-btn-xs clossClass" lay-event="closs"> <i class="layui-icon layui-icon-ok"></i>璁㈠崟鍏抽棴</a> - <a class="layui-btn layui-btn-danger layui-btn-xs cheXiaoClass" lay-event="chexiao"> <i class="layui-icon layui-icon-delete"></i>鎾ら攢</a>`; + html += `<a class="layui-btn layui-btn-normal layui-btn-xs clossClass" lay-event="closs"> <i class="layui-icon layui-icon-ok"></i>鍏冲崟</a> + <a class="layui-btn layui-btn-danger layui-btn-xs cheXiaoClass" lay-event="chexiao"> <i class="layui-icon layui-icon-delete"></i>鎾ら攢</a>`; break; case "2" : - html += `<a class="layui-btn layui-btn-normal layui-btn-xs clossClass" lay-event="closs"> <i class="layui-icon layui-icon-ok"></i>璁㈠崟鍏抽棴</a> - <a class="layui-btn layui-btn-danger layui-btn-xs cheXiaoClass" lay-event="chexiao"> <i class="layui-icon layui-icon-delete"></i>鎾ら攢</a>`; + html += `<a class="layui-btn layui-btn-normal layui-btn-xs clossClass" lay-event="closs"> <i class="layui-icon layui-icon-ok"></i>鍏冲崟</a> + <a class="layui-btn layui-btn-danger layui-btn-xs cheXiaoClass" lay-event="chexiao"> <i class="layui-icon layui-icon-delete"></i>鎾ら攢</a>`; break; case "3" : - html += `<a class="layui-btn layui-btn-normal layui-btn-xs clossClass" lay-event="check"> <i class="layui-icon layui-icon-ok"></i>澶嶆牳</a>`; + html += `<a class="layui-btn layui-btn-normal layui-btn-xs checkClass" lay-event="check"> <i class="layui-icon layui-icon-ok"></i>澶嶆牳</a>`; break; default : break; @@ -206,6 +216,8 @@ html = `<button class="layui-btn layui-btn-radius layui-btn-normal layui-btn-xs">鎵ц瀹屾瘯</button>`; } else if(d.Status=='3') { html = `<button class="layui-btn layui-btn-radius layui-btn-normal layui-btn-xs">璁㈠崟鍏抽棴</button>`; + } else if(d.Status=='4') { + html = `<button class="layui-btn layui-btn-radius layui-btn-normal layui-btn-xs">涓婁紶瀹屾瘯</button>`; } else { } @@ -219,10 +231,22 @@ {{# function GetBtn4(d){ var html = ``; if(d.Type=='0'){ - html = `鏍囧噯浜у搧鍏ュ簱`; + html = `鎴愬搧鍏ュ簱`; } else if(d.Type=='1') { - html = `闈炴爣浜у搧鍏ュ簱`; - } else { + html = `閲囪喘鍏ュ簱`; + } else if(d.Type=='2') { + html = `涓棿鍝佸叆搴揱; + }else if(d.Type=='3') { + html = `閫�璐у叆搴揱; + }else if(d.Type=='4') { + html = `杞﹂棿浣欐枡閫�鍥炲叆搴揱; + }else if(d.Type=='5') { + html = `鍏跺畠鍏ュ簱`; + }else if(d.Type=='6') { + html = `浠e偍鍏ュ簱`; + }else if(d.Type=='7') { + html = `瀵勫瓨鍏ュ簱`; + }else { } return html; @@ -254,6 +278,14 @@ }} {{ GetBtn7(d) }} </script> + + <script type="text/html" id="templetCheckTime"> + {{# function GetBtn11(d){ + return formatDate(d.CheckTime); + } + }} + {{ GetBtn11(d) }} + </script> <!-- #endregion --> </div> <div class="position-relative"><!-- class="position-relative" --><!-- 鑷畾涔夎〃澶村姞涓� --> @@ -273,11 +305,24 @@ </script> <script type="text/html" id="toolbarDemoList"> - {{# function GetBtn2(d){ + {{# function GetBtn2(d){ + console.log(d); var html = ``; if(d.Status == "0"){ html = `<a class="layui-btn layui-btn-danger layui-btn-xs delClass" lay-event="del"> <i class="layui-icon layui-icon-delete"></i>鍒犻櫎</a>`; + } + if(d.AsnType =="1" && (d.Status == "0" || d.Status == "1")){ + html += `<a class="layui-btn layui-btn-normal layui-btn-xs addLabelClass" lay-event="Addlabel"> + <i class="layui-icon layui-icon-edit"></i>鐢熸垚鏍囩</a>`; + } + if(d.AsnType == "4"&& (d.Status == "0" || d.Status == "1")){ + html += `<a class="layui-btn layui-btn-normal layui-btn-xs addLabelClass" lay-event="Addlabel2"> + <i class="layui-icon layui-icon-edit"></i>鐢熸垚鏍囩</a>`; + } + if(d.AsnType == "5"&& (d.Status == "0" || d.Status == "1") && (d.PackagNo != ""|| d.PackagNo!=null)){ + html += `<a class="layui-btn layui-btn-normal layui-btn-xs addLabelClass" lay-event="Addlabel"> + <i class="layui-icon layui-icon-edit"></i>鐢熸垚鏍囩</a>`; } return html; } @@ -362,7 +407,7 @@ elem: '#EndTime' , format: 'yyyy-MM-dd' //鍙换鎰忕粍鍚� }); - + var h1 = GetTableTopHeight(); var h2 = GetTableBottomHeight(); @@ -374,163 +419,26 @@ var TotalColsArr = [[ {field: '',title: '搴忓彿',type:'numbers',width: 50,align: 'center',fixed: 'left', "disabled": true}, {field: 'ASNNo',title: '鍏ュ簱鍗曞彿',align: 'center',fixed: 'left',sort: true,width: 180, "disabled": true}, - {field: 'Status',title: '鎵ц鐘舵��',align: 'center',templet: '#buttonTpl'}, + {field: 'Status',title: '鎵ц鐘舵��',align: 'center',width: 100,templet: '#buttonTpl'}, {field: 'Origin',title: '鏉ユ簮',align: 'center',width: 80}, + {field: 'OrderCode',title: '涓婃父鍗曞彿',align: 'center',width: 180}, + {field: 'CustomerName',title: '瀹㈡埛鍚嶇О',align: 'center'}, - {field: 'Type',title: '鍗曟嵁绫诲瀷',align: 'center',templet: '#templetType'}, - {field: 'CompleteTime',title: '瀹屾垚鏃堕棿',align: 'center',templet: '#templetCompleteTime'}, + {field: 'Type',title: '鍗曟嵁绫诲瀷',align: 'center',width: 100,templet: '#templetType'}, + {field: 'CompleteTime',title: '瀹屾垚鏃堕棿',align: 'center',width: 165,templet: '#templetCompleteTime'}, {field: 'Demo',title: '澶囨敞',align: 'center',width: 180}, {field: 'CreateUserName',title: '鍒涘缓浜�',align: 'center',width: 110}, - {field: 'CreateTime',title: '鍒涘缓鏃堕棿',align: 'center',templet: '#templetCreateTime'}, + {field: 'CreateTime',title: '鍒涘缓鏃堕棿',align: 'center',width: 165,templet: '#templetCreateTime'}, {field: 'UpdateUserName',title: '淇敼浜�',align: 'center',width: 110}, - {field: 'UpdateTime',title: '淇敼鏃堕棿',align: 'center',templet: '#templetUpdateTime'}, + {field: 'UpdateTime',title: '淇敼鏃堕棿',align: 'center',width: 165,templet: '#templetUpdateTime'}, + {field: 'CheckUserName',title: '澶嶆牳浜�',align: 'center',width: 110}, + {field: 'CheckTime',title: '澶嶆牳鏃堕棿',align: 'center',width: 165,templet: '#templetCheckTime'}, {field: 'caozuo',title: '鎿嶄綔',fixed: 'right',width: 280,align: 'center',toolbar: '#toolbarDemo1', "disabled": true} ]]; var TotalColsSysArr=encodeURIComponent(encodeURIComponent(JSON.stringify(TotalColsArr)))//灏嗚〃澶存暟鎹繘琛寀rl缂栫爜 //#endregion function refreshTable() { - //#region 鍘熷闈炶嚜瀹氫箟鍒� - // var param = { - // ASNNo: $("#ASNNo").val(), - // Type: $("#Type").val(), - // Status: $("#Status").val(), - // CustomerName: $("#CustomerName").val(), - // LotNo: $("#LotNo").val(), - // SkuNo: $("#SkuNo").val(), - // SkuName: $("#SkuName").val(), - // StartTime:$("#StartTime").val(), - // EndTime: $("#EndTime").val() - // }; - // table.render({ - // elem: '#LAY-app-content-list', - // url: IP + "/BllAsn/GetArrivalNoticeList", - // method: 'POST', - // height: h1, - // id: 'LAY-app-content-list', - // where: param, - // contentType: 'application/json', - // headers:{ToKen:$.cookie('token')}, - // page: true, - // even: true, - // limit: pageCnt, - // limits: pageLimits, - // cellMinWidth: 60, //鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板 - // done: function(res) { - // setRight(); - - // //aaa = $('#LAY-app-content-list').next().find('.layui-table-main').find('tr[data-index="0"]').find('td[data-field="ASNNo"]'); - // // refreshTablemx(res.data[0].ASNNo); - // }, - // cols: [ - // [{ - - // title: '搴忓彿', - // type: 'numbers', - // width: 50, - // align: 'center', - // fixed: 'left' - // }, - // { - // field: 'ASNNo', - // title: '鍏ュ簱鍗曞彿', - // align: 'center', - // fixed: 'left', - // sort: true, - // width: 180 - // }, - // { - // field: 'Status', - // title: '鎵ц鐘舵��', - // align: 'center', - // templet: function (d) { - // switch (d.Status) { - // case "0" : return '<button class="layui-btn layui-btn-radius layui-btn-xs">绛夊緟鎵ц</button>'; - // case "1" : return '<button class="layui-btn layui-btn-radius layui-btn-danger layui-btn-xs">姝e湪鎵ц</button>'; - // case "2" : return '<button class="layui-btn layui-btn-radius layui-btn-normal layui-btn-xs">鎵ц瀹屾瘯</button>'; - // case "3" : return '<button class="layui-btn layui-btn-radius layui-btn-normal layui-btn-xs">璁㈠崟鍏抽棴</button>'; - // default : return ""; - // } - // } - // }, - // { - // field: 'Origin', - // title: '鏉ユ簮', - // align: 'center', - // width: 80 - // }, - // { - // field: 'CustomerName', - // title: '瀹㈡埛鍚嶇О', - // align: 'center' - // }, - // { - // field: 'Type', - // title: '鍗曟嵁绫诲瀷', - // align: 'center', - // templet: function (d) { - // switch (d.Type) { - // case "0" : return "鏍囧噯浜у搧鍏ュ簱"; - // case "1" : return "闈炴爣浜у搧鍏ュ簱"; - // default : return ""; - // } - // // JC08 - // // switch (d.Status) { - // // case "0" : return "鎴愬搧鍏ュ簱"; - // // case "1" : return "鍘熸枡鍏ュ簱"; - // // case "2" : return "閫�璐у叆搴�"; - // // default : return ""; - // // } - // } - // }, - // { - // field: 'CompleteTime', - // title: '瀹屾垚鏃堕棿', - // align: 'center', - // hide:true, - // templet: function (d) { - // return formatDate2(d.CompleteTime); - // } - // }, - // { - // field: 'CreateUserName', - // title: '鍒涘缓浜�', - // align: 'center', - // width: 110 - // }, - // { - // field: 'CreateTime', - // title: '鍒涘缓鏃堕棿', - // align: 'center', - // templet: function (d) { - // return formatDate(d.CreateTime); - // } - // }, - // { - // field: 'UpdateUserName', - // title: '淇敼浜�', - // align: 'center', - // hide:false, - // width: 110 - // }, - // { - // field: 'UpdateTime', - // title: '淇敼鏃堕棿', - // align: 'center', - // hide:false, - // templet: function (d) { - // return formatDate(d.UpdateTime); - // } - // }, { - // title: '鎿嶄綔', - // fixed: 'right', - // width: 240, - // align: 'center', - // toolbar: '#toolbarDemo1' - // }] - // ] - // }); - //#endregion - + //#region 鑷畾涔夎〃澶� var colsJson var param1={ @@ -593,8 +501,8 @@ {field: 'SkuNo',title: '鐗╂枡缂栫爜',align: 'center',width: 100}, {field: 'SkuName',title: '鐗╂枡鍚嶇О',align: 'center',width: 200}, {field: 'Standard',title: '鐗╂枡瑙勬牸',align: 'center',width: 130}, - {field: 'LotNo',title: '鎵规鍙�',align: 'center',width: 100}, - {field: 'SupplierLot',title: '渚涜揣鎵规',align: 'center',width: 100}, + {field: 'LotNo',title: '杩涘巶缂栧彿',align: 'center',width: 100}, + {field: 'SupplierLot',title: '鍘熷巶鎵瑰彿',align: 'center',width: 100}, {field: 'Qty',title: '鏁伴噺',align: 'center',width: 70}, {field: 'FactQty',title: '宸茬粍鏁伴噺',align: 'center',width: 90}, {field: 'CompleteQty',title: '瀹屾垚鏁伴噺',align: 'center',width: 90}, @@ -606,6 +514,7 @@ {field: 'PackagName',title: '鍖呰鍚嶇О',align: 'center',width: 110,}, {field: 'IsBale',title: '鏄惁瑁瑰寘',align: 'center',width: 150}, {field: 'IsBelt',title: '鏄惁鎵撳甫',align: 'center',width: 150}, + {field: 'OrderDetailCode',title: '涓婃父鍗曞彿',align: 'center',width: 180}, {field: 'UDF1',title: '鑷畾涔夊垪1',align: 'center',width: 140}, {field: 'UDF2',title: '鑷畾涔夊垪2',align: 'center',width: 140}, {field: 'UDF3',title: '鑷畾涔夊垪3',align: 'center',width: 140}, @@ -615,191 +524,12 @@ {field: 'CreateTime',title: '鍒涘缓鏃堕棿',align: 'center',width: 160,templet: '#templetCreateTime2'}, {field: 'UpdateUserName',title: '淇敼浜�',align: 'center',width: 150,}, {field: 'UpdateTime',title: '淇敼鏃堕棿',align: 'center',width: 150,templet: '#templetUpdateTime3'}, - {field: 'caozuo',title: '鎿嶄綔',fixed: 'right',width: 100,align: 'left',toolbar: '#toolbarDemoList', "disabled": true} + {field: 'caozuo',title: '鎿嶄綔',fixed: 'right',width: 150,align: 'left',toolbar: '#toolbarDemoList', "disabled": true} ]]; var DetailColsSysArr=encodeURIComponent(encodeURIComponent(JSON.stringify(DetailColsArr)))//灏嗚〃澶存暟鎹繘琛寀rl缂栫爜 //#endregion function refreshTablemx(asnNo) { - //#region 鍘熷闈炶嚜瀹氫箟鍒� - // var param = { - // ASNNo:asnNo - // }; - // table.render({ - // elem: '#LAY-app-content-list2', - // url: IP + "/BllAsn/GetArrivalNoticeDetailList", - // method: 'POST', - // height: h2, - // id: 'LAY-app-content-list2', - // where: param, - // contentType: 'application/json', - // toolbar:'#toolbarDemo', - // defaultToolbar: ['filter'], //'print', 'exports' - // headers:{ToKen:$.cookie('token')}, - // page: true, - // limit: pageCnt, - // limits: pageLimits, - // cellMinWidth: 60, //鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板 - // done: function() { - // setRight() - // }, - // cols: [ - // [{ - - // title: '搴忓彿', - // type: 'numbers', - // width: 50, - // align: 'center', - // fixed: 'left' - // }, - // { - // field: 'ASNNo', - // title: '鍏ュ簱鍗曞彿', - // align: 'center', - // fixed: 'left', - // sort: true, - // width: 180 - // }, - // { - // field: 'SkuNo', - // title: '鐗╂枡缂栫爜', - // align: 'center', - // width: 100 - // }, { - // field: 'SkuName', - // title: '鐗╂枡鍚嶇О', - // align: 'center', - // width: 200 - // }, { - // field: 'Standard', - // title: '鐗╂枡瑙勬牸', - // align: 'center', - // width: 130 - // }, { - // field: 'LotNo', - // title: '鎵规鍙�', - // align: 'center', - // width: 100 - // },{ - // field: 'SupplierLot', - // title: '渚涜揣鎵规', - // align: 'center', - // fixed: 'right', - // width: 100, - // hide:true - // }, { - // field: 'Qty', - // title: '鏁伴噺', - // align: 'center', - // width: 70 - // }, { - // field: 'FactQty', - // title: '宸茬粍鏁伴噺', - // align: 'center', - // width: 90 - // }, { - // field: 'CompleteQty', - // title: '瀹屾垚鏁伴噺', - // align: 'center', - // width: 90 - // }, - // { - // field: 'CompleteTime', - // title: '瀹屾垚鏃堕棿', - // align: 'center', - // width: 160, - // templet: function (d) { - // return formatDate(d.CompleteTime); - // } - // }, - // { - // field: 'UnitName', - // title: '璁¢噺鍗曚綅', - // align: 'center', - // width: 90 - // }, - // { - // field: 'Price', - // title: '鍗曚环', - // align: 'center', - // width: 65, - // hide:true - // }, { - // field: 'Money', - // title: '閲戦', - // align: 'center', - // width: 65, - // hide:true - // }, - // { - // field: 'LotText', - // title: '鎵规鎻忚堪', - // align: 'center', - // width: 120 - // },{ - // field: 'PackagName', - // title: '鍖呰鍚嶇О', - // align: 'center', - // width: 110, - // }, { - // field: 'IsBale', - // title: '鏄惁瑁瑰寘', - // align: 'center', - // width: 150, - // hide:true - // }, { - // field: 'IsBelt', - // title: '鏄惁鎵撳甫', - // align: 'center', - // width: 150, - // hide:true - // },{ - // field: 'CreateUserName', - // title: '鍒涘缓浜�', - // align: 'center', - // width: 100 - // }, - // { - // field: 'CreateTime', - // title: '鍒涘缓鏃堕棿', - // align: 'center', - // width: 160, - // templet: function (d) { - // return formatDate(d.CreateTime); - // } - // }, - // // { - // // field: 'Id', - // // title: '鍏ュ簱鏄庣粏Id', - // // align: 'center', - // // hide: true, - // // width: 150, - // // }, - // { - // field: 'UpdateUserName', - // title: '淇敼浜�', - // align: 'center', - // hide:true, - // width: 150, - // }, - // { - // field: 'UpdateTime', - // title: '淇敼鏃堕棿', - // align: 'center', - // hide:true, - // width: 150, - // templet: function (d) { - // return formatDate(d.UpdateTime); - // } - // }, { - // title: '鎿嶄綔', - // fixed: 'right', - // width: 100, - // align: 'left', - // toolbar: '#toolbarDemoList' - // }] - // ] - // }); - //#endregion + //#region 鑷畾涔夎〃澶� var colsJson2 @@ -854,6 +584,9 @@ $(".cheXiaoClass").hide(); $(".clossClass").hide(); $(".editDemoClass").hide();//澶囨敞 + $(".checkClass").hide(); //澶嶆牳 + $(".addLabelClass").hide(); //澶嶆牳 + }); sendData(IP + "/Basis/GetRoleRightList", {}, 'get', function(res) { if (res.code == 0) { //鎴愬姛 @@ -886,6 +619,16 @@ if (res.data[k].MenuName == "缁存姢鍏ュ簱鍗曞娉�") { $(function() { $(".editDemoClass").show(); + }); + } + if (res.data[k].MenuName == "澶嶆牳鍏ュ簱鍗�") { + $(function() { + $(".checkClass").show(); + }); + } + if (res.data[k].MenuName == "鐢熸垚鏍囩") { + $(function() { + $(".addLabelClass").show(); }); } } @@ -1103,6 +846,7 @@ //鏄庣粏琛ㄦ搷浣滄爮浜嬩欢 table.on('tool(LAY-app-content-list2)', function (obj) { var data = obj.data; + var id = data.Id; switch(obj.event) { case "del" : @@ -1132,6 +876,84 @@ }); break; + case "Addlabel" : + layer.open({ + type: 2, + title: '鐢熸垚鏍囩', + content: 'LabelPrintSelect.html?Id='+id+'&SupplierLot='+data.SupplierLot, + maxmin: true, + area: ['480px', '615px'], + btn: ['纭畾','鍙栨秷'], + yes: function(index, layero){ + var iframeWindow = window['layui-layer-iframe'+ index] + ,submitID = 'layuiadmin-app-form-edit' + ,submit = layero.find('iframe').contents().find('#'+ submitID); + //鐩戝惉鎻愪氦 + iframeWindow.layui.form.on('submit('+ submitID +')', function(data){ + var field = data.field; //鑾峰彇鎻愪氦鐨勫瓧娈� + console.log(field); + //鎻愪氦 Ajax 鎴愬姛鍚庯紝闈欐�佹洿鏂拌〃鏍间腑鐨勬暟鎹� + //"&Level="+field.level+"&Type="+field.type+"&BoxType="+field.boxType+"&Qty="+field.qty+ + var str = "Id="+id+"&IsReset="+field.reset+"&ArriveQty="+field.arriveQty + +"&ProductionTime="+field.productionTime+"&ExpirationTime="+field.expirationTime + +"&StoreTime="+field.storeTime+"&SupplierLot="+field.SupplierLot; + + layer.open({ + type: 2, + title: '鐢熸垚鏍囩', + content: 'LabelPrint.html?'+str, + maxmin: true, + area: ['660px', '660px'], + btn: ['鍙栨秷'], + + + }); + }); + submit.trigger('click'); + } + + }); + + break; + case "Addlabel2" : + layer.open({ + type: 2, + title: '鐢熸垚鏍囩', + content: 'LabelPrintSelect.html?Id='+id+'&Type=4'+'&SupplierLot='+data.SupplierLot, + maxmin: true, + area: ['480px', '615px'], + btn: ['纭畾','鍙栨秷'], + yes: function(index, layero){ + var iframeWindow = window['layui-layer-iframe'+ index] + ,submitID = 'layuiadmin-app-form-edit' + ,submit = layero.find('iframe').contents().find('#'+ submitID); + //鐩戝惉鎻愪氦 + iframeWindow.layui.form.on('submit('+ submitID +')', function(data){ + var field = data.field; //鑾峰彇鎻愪氦鐨勫瓧娈� + console.log(field); + //鎻愪氦 Ajax 鎴愬姛鍚庯紝闈欐�佹洿鏂拌〃鏍间腑鐨勬暟鎹� + //"&Level="+field.level+"&Type="+field.type+"&BoxType="+field.boxType+"&Qty="+field.qty+ + var str = "Id="+id+"&IsReset="+field.reset+"&ArriveQty="+field.arriveQty + +"&ProductionTime="+field.productionTime+"&ExpirationTime="+field.expirationTime + +"&StoreTime="+field.storeTime+'&SupplierLot='+field.SupplierLot; + + layer.open({ + type: 2, + title: '鐢熸垚鏍囩', + content: 'LabelPrint.html?'+str, + maxmin: true, + area: ['660px', '660px'], + btn: ['鍙栨秷'], + + + }); + }); + submit.trigger('click'); + } + + }); + + break; default:break; } }); -- Gitblit v1.8.0