| | |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/grwebapp.js"></script> |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/MESLanguage.js"></script> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <style> |
| | | .layui-form-select .layui-input { |
| | | padding-right: 0px; |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ç»ç»åç§°</label> |
| | | <label class="layui-form-label" style="width: 85px;" id="BT_HOrgName">ç»ç»åç§°</label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 185px;"> |
| | | <select name="HOrgID" id="HOrgID" lay-verify="HOrgID" class="ForFilteringSchemes"> |
| | | <!--å¨ææ¸²æç»ç»--> |
| | |
| | | function set_ClearBill() { |
| | | //åå§åç»ç» |
| | | Organ(); |
| | | //åå§åæ¥æé´éãå¼å§æ¥æãç»ææ¥æ |
| | | setSelect_HInitTimeCycle(); |
| | | //è¥æ¥æé´éä¸ä¸º ä»»æé´éï¼åç¦ç¨å¼å§æ¥æä¸ç»ææ¥æçéæ© |
| | | var HInitTimeCycle = $("#HInitTimeCycle").val() * 1; |
| | | if (HInitTimeCycle != -1) { |
| | | $('#HBeginDate').prop('disabled', true); |
| | | $('#HEndDate').prop('disabled', true); |
| | | } else { |
| | | $('#HBeginDate').prop('disabled', false); |
| | | $('#HEndDate').prop('disabled', false); |
| | | } |
| | | |
| | | //æ ¹æ®æ¥æé´é设置å¼å§æ¶é´ä¸ç»ææ¶é´ |
| | | $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * HInitTimeCycle), "yyyy-MM-dd")); |
| | | $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | //æ¥è¯¢ |
| | | get_FastQuery(); |
| | | } |
| | |
| | | sWhere += " and åæ®å· like '%" + åæ®å· + "%'"; |
| | | } |
| | | if (HBeginDate != "") { |
| | | sWhere += " and å¶åæ¥æ >= '" + HBeginDate + "'"; |
| | | sWhere += " and convert(varchar(10),å¶åæ¥æ,120) >= '" + HBeginDate + "'"; |
| | | } |
| | | if (HEndDate != "") { |
| | | sWhere += " and å¶åæ¥æ <= '" + HEndDate + "'"; |
| | | sWhere += " and convert(varchar(10),å¶åæ¥æ,120) <= '" + HEndDate + "'"; |
| | | } |
| | | sWhere += getOrgIDByUser();//ç¨æ·å
³èç»ç»æ¥è¯¢è¿æ»¤ |
| | | |
| | |
| | | |
| | | function get_Display(sWhere) { |
| | | $.ajax({ |
| | | url: GetWEBURL1() + '/LEMS/MES_ProductionLinePackagingList_Json', |
| | | url: GetWEBURL() + '/LEMS/MES_ProductionLinePackagingList_Json', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "sWhere": sWhere }, |
| | |
| | | //æ æ³¨é䏿 ·å¼ |
| | | obj.tr.addClass('layui-table-click').siblings().removeClass('layui-table-click'); |
| | | }); |
| | | |
| | | //#region æå° |
| | | //form.on('submit(Print)', function (obj) {//éåº |
| | | // var checkStatus = table.checkStatus("mainTable"); //è·åéä¸è¡ç¶æ |
| | | // var linterid = checkStatus.data[0].HInterID; |
| | | // ////æå¼æå°æ¨¡æ¿ |
| | | // ////var linterid = $("#HInterID").val(); |
| | | // ////var linterid = "28973"; |
| | | // //var Type = "HBarCodePrint"; |
| | | // //var OpenTmp = "å
è£
åç©ææ è¯å¡(ç½é¡µç)"; |
| | | // ////var ReportViewer = document.getElementById("ReportViewer"); |
| | | // //window.open("../../views/BaseSet/HBarPlanPrint.html?linterid=" + linterid.toString() + "&Type=" + Type.toString() + "&OpenTmp=" + OpenTmp.toString()); |
| | | |
| | | |
| | | // var sWhere = "select a.HBarCode_White HBarCode_White,temp.HSupPartName HSupPartName,temp.HSupBarCodeNumber MFGPartNumber,temp.HCountryType CountryofOrigin,(select REPLACE(item, 'Q', '') from split(a.HBarCode_White, ':') where id = 6) Quantity, temp.HGrossWeight GrossWeight, temp.HPARTNAME PartName , (select item from split(a.HBarCode_White, ':') where id = 2) ContentLabelID , temp.HSupNumber Supplier, REPLACE(convert(varchar(10), GETDATE(), 20), '-', '') + ' ' + convert(varchar(5), GETDATE(), 24) MFGDate , REPLACE(convert(varchar(10), GETDATE(), 20), '-', '') SupplierLotCode , (select REPLACE(item, 'P', '') from split(a.HBarCode_White, ':') where id = 4) BBM from Sc_PackUnionBillMain a left join Gy_Material m on a.HMaterID = m.HItemID left join Sc_PackUnionBillBarCode_temp temp on m.HNumber = temp.HMaterNumber where a.HInterID=" + linterid; |
| | | |
| | | // $.ajax({ |
| | | // type: "GET", |
| | | // url: GetWEBURL() + "/Gy_SOPBillList/WindowPrintList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | // async: true, |
| | | // data: { "sWhere": sWhere }, |
| | | // success: function (data) { |
| | | // if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | |
| | | // if (data.data.length != 0) { |
| | | // var dataPrint = []; |
| | | // dataPrint.push(data.data[0] |
| | | // //{ "产ååç§°": data.data[0]["产ååç§°"], "æ¡ç ç¼å·": data.data[0]["æ¡ç ç¼å·"], "æ°é": data.data[0]["æ°é"], "æ¥æ": data.data[0]["æ¥æ"], "ç产任å¡å": data.data[0]["ç产任å¡å"], "æµè½¬å¡ç¼å·": data.data[0]["æµè½¬å¡ç¼å·"], "èªå®ä¹å段": data.data[0]["èªå®ä¹å段"], "项ç®ç¼å·": data.data[0]["项ç®ç¼å·"] } |
| | | // ); |
| | | |
| | | // var Customer = { |
| | | // "Table": dataPrint |
| | | // } |
| | | |
| | | // var args = { |
| | | // type: "print", |
| | | // showOptionDlg: false, //妿䏿¾ç¤ºæå°å¯¹è¯æ¡èç´æ¥æå°ï¼å°æ¤è¡æ³¨é廿å³å¯ |
| | | // report: urlAddRandomNo("../../grf/ç½æ æå°.grf"), |
| | | // data: Customer |
| | | // }; |
| | | // //var args = { |
| | | // // report: urlAddRandomNo("../../views/grf/å
è£
åç©ææ è¯å¡(ç½é¡µç).grf"), |
| | | // // data: Customer |
| | | // //}; |
| | | // webapp_ws_ajax_run(args); |
| | | // } else { |
| | | // layer.msg("æ¥æ æ°æ®!"); |
| | | // } |
| | | |
| | | // } |
| | | // else { |
| | | // layer.msg(data.Message, { icon: 5 }); |
| | | // } |
| | | // layer.closeAll("loading"); |
| | | // }, |
| | | // error: function (err) { |
| | | // layer.msg("é误:" + err, { icon: 5 }); |
| | | // } |
| | | // }) |
| | | |
| | | //}); |
| | | //#endregion |
| | | |
| | | |
| | | //ç½æ çæä¿å |
| | | form.on('submit(WhiteSave)', function (obj) {//éåº |
| | | var checkStatus = table.checkStatus("mainTable"); //è·åéä¸è¡ç¶æ |
| | |
| | | } |
| | | }); |
| | | |
| | | |
| | | //æ¯è«å°æå° |
| | | form.on('submit(Print)', function (obj) {//éåº |
| | | var checkStatus = table.checkStatus("mainTable"); //è·åéä¸è¡ç¶æ |
| | | var linterid = checkStatus.data[0].HInterID; |
| | | ////æå¼æå°æ¨¡æ¿ |
| | | ////var linterid = $("#HInterID").val(); |
| | | ////var linterid = "28973"; |
| | | var Type = "HBarCodePrint"; |
| | | var OpenTmp = "ç½æ æå°15"; |
| | | //var ReportViewer = document.getElementById("ReportViewer"); |
| | | window.open("../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/HBarPlanPrint.html?linterid=" + linterid.toString() + "&Type=" + Type.toString() + "&OpenTmp=" + OpenTmp.toString()); |
| | | var HOrgID = $("#HOrgID").val(); |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'æå°æ¨¡çéæ©' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid='+ linterid.toString() + '|' + HOrgID + '&MyMsg=&Type=' + HModName, 'yes'] |
| | | , resize: false |
| | | }) |
| | | }); |
| | | |
| | | //æå°æé® |
| | | //æå°æé® æ®è²ç¹æå° |
| | | form.on('submit(Print1)', function (obj) {//éåº |
| | | var checkStatus = table.checkStatus("mainTable"); //è·åéä¸è¡ç¶æ |
| | | var linterid = checkStatus.data[0].HInterID; |
| | |
| | | $("#HInitTimeCycle").append(HInitTimeCycle_ArrayList); //使ç¨appendæ¹æ³æå»ºä¹åHInitTimeCycle_ArrayListå符串 çå
å®¹ä¼ å
¥HInitTimeCycle |
| | | form.render('select'); //è°ç¨ éæ°æ¸²æselectå
ç´ |
| | | |
| | | $("#HInitTimeCycle").val("29"); //使ç¨jQueryçval()æ¹æ³å°ä¸æå表çéä¸å¼è®¾ç½®ä¸º"29 ï¼ä¸æ¾ç¤ºãè¿ä¸æå¤©ã |
| | | $("#HInitTimeCycle").val("1"); //使ç¨jQueryçval()æ¹æ³å°ä¸æå表çéä¸å¼è®¾ç½®ä¸º"29 ï¼ä¸æ¾ç¤ºãè¿ä¸æå¤©ã |
| | | } |
| | | //#endregion |
| | | |
| | |
| | | $.ajax({ |
| | | type: "get", |
| | | async: false, |
| | | url: GetWEBURlLanguage() + "/Web/GetOrganizations", |
| | | url: GetWEBURL() + "/Web/GetOrganizations", |
| | | success: function (result) { |
| | | var Organization = ""; |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | |
| | | $.ajax({ |
| | | type: "GET", |
| | | async: false, |
| | | url: GetWEBURlLanguage() + "/Xt_User/getOrgIDListByUser", //æ¹æ³æå¨é¡µé¢åæ¹æ³å ä¼ å ç»ç»å¿
é¡»æ¯åè¡¨å¤´é¨æ¥è¯¢çç»ç» ä¸è½ä½¿ç¨ç¨æ·é»è®¤ |
| | | url: GetWEBURL() + "/Xt_User/getOrgIDListByUser", //æ¹æ³æå¨é¡µé¢åæ¹æ³å ä¼ å ç»ç»å¿
é¡»æ¯åè¡¨å¤´é¨æ¥è¯¢çç»ç» ä¸è½ä½¿ç¨ç¨æ·é»è®¤ |
| | | data: { "UserID": sessionStorage["Czybm"], "UserName": sessionStorage["HUserName"], HOrgID: $("#HOrgID").val() }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |