| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| | | <PropertyGroup> |
| | | <NameOfLastUsedPublishProfile>D:\ç½ç«åå¸\å端代ç \MES-WEB-TM\MESWMS-LayUI\WebTM\Properties\PublishProfiles\JFTM.pubxml</NameOfLastUsedPublishProfile> |
| | | <NameOfLastUsedPublishProfile>F:\GITä»åº\ZYMESWEBUI\WebTM\Properties\PublishProfiles\JFTM.pubxml</NameOfLastUsedPublishProfile> |
| | | <ProjectView>ProjectFiles</ProjectView> |
| | | <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig> |
| | | <UseIISExpress>true</UseIISExpress> |
| | |
| | | //var WEBURL = "http://192.168.16.80:8011/"; //åå
¬å®¤æå¡å¨ |
| | | //var WEBURL = "http://localhost:8081/SWEAPI/"; //chæ¬å°*/ |
| | | //var WEBURL = "http://61.164.86.218:8099/ABAPI/"; |
| | | //var WEBURL = "http://localhost/API/"; //颿忬å°é
ç½® |
| | | var WEBURL = "http://localhost/API/"; //颿忬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/LuBaoAPI/"; //æ¨ä¹æ¬å°é
ç½® |
| | | var WEBURL = "http://localhost:8082/API/"; //æè´ºæ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/API/"; //æè´ºæ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:81/API/"; //éé¯éæ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/LuBaoAPI/"; //ä½ææ°æ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8088/ARAPI/"; //ä½ææ°æ¬å°é
ç½®(å®ç) |
| | |
| | | <button type="button" lay-submit="" lay-filter="cmdAdd" class="layui-btn" id="cmdAdd">æ°å¢</button> |
| | | <button type="button" lay-submit="" lay-filter="cmdSaver" class="layui-btn" id="cmdSaver">æäº¤</button> |
| | | <!--<button type="button" lay-submit="" lay-filter="cmdModify" class="layui-btn" id="cmdModify">ç¼è¾</button>--> |
| | | <button type="button" lay-submit="" lay-filter="cmdDelete" class="layui-btn" id="cmdDelete">å é¤</button> |
| | | <button type="button" lay-submit="" lay-filter="cmdDelete" class="layui-btn" id="cmdDelete">æ¸
空</button> |
| | | <button type="button" lay-submit="" lay-filter="cmdCancel" class="layui-btn" id="cmdCancel">éåº</button> |
| | | </div> |
| | | </div> |
| | |
| | | parent.location.href = "../../WMSæ«ç 模å/éå®åºåº/Kf_SellOutBillList_QiaoYi_PDA.html"; |
| | | } |
| | | else { |
| | | parent.location.href = "../../../views/index_Mobile.html"; |
| | | parent.location.href = "../../../views/index_Mobile_QiaoYi.html"; |
| | | } |
| | | }//å
³é |
| | | } |
| | |
| | | |
| | | //#endregion |
| | | |
| | | //#region å é¤ |
| | | //#region æ¸
空 |
| | | |
| | | form.on('submit(cmdDelete)', function () { |
| | | var checkStatus = table.checkStatus('wl-table') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length == 1) { |
| | | layer.confirm("确认è¦å é¤éä¸è¡æææ«ç è®°å½ï¼å é¤åå°ä¸å¯æ¢å¤ï¼", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | layer.confirm("ç¡®è®¤è¦æ¸
空éä¸è¡æææ«ç è®°å½ï¼æ¸
空åå°ä¸å¯æ¢å¤ï¼", { title: "æ¸
空确认" }, function (index) { |
| | | var sMaterID = data[0].HMaterID |
| | | var sAuxPropID = data[0].HAuxPropID |
| | | var sMTONo = data[0].HMTONo |
| | |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡è®°å½ï¼è¿è¡å é¤ï¼'); |
| | | layer.msg('è¯·éæ©ä¸è¡è®°å½ï¼è¿è¡æ¸
空ï¼'); |
| | | } |
| | | }); |
| | | |
| | |
| | | <link rel="stylesheet" href="../layuiadmin/style/admin.css" media="all"> |
| | | <script src="../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <script src="../layuiadmin/Scripts/jquery-3.5.1.min.js"></script> |
| | | |
| | | <script language="JavaScript"> |
| | | //å±è½åéæé® |
| | | history.pushState(null, null, document.URL); |
| | | window.addEventListener('popstate', function () { |
| | | history.pushState(null, null, document.URL); |
| | | }); |
| | | </script> |
| | | <script> |
| | | /^http(s*):\/\//.test(location.href) || alert('请å
é¨ç½²å° localhost ä¸å访é®'); |
| | | </script> |
| | |
| | | <link rel="stylesheet" href="../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../layuiadmin/style/admin.css" media="all"> |
| | | <script src="../layuiadmin/Scripts/jquery-3.5.1.min.js"></script> |
| | | |
| | | <script language="JavaScript">//å±è½åéæé® |
| | | history.pushState(null, null, document.URL); |
| | | window.addEventListener('popstate', function () { |
| | | history.pushState(null, null, document.URL); |
| | | }); |
| | | </script> |
| | | <script> |
| | | /^http(s*):\/\//.test(location.href) || alert('请å
é¨ç½²å° localhost ä¸å访é®'); |
| | | </script> |
| | |
| | | //æ¾ç¤ºä¾§è¾¹èå |
| | | function set_sideMenuDisPlay() { |
| | | //å¤æç¨æ·æ¯ç§»å¨ç«¯è¿æ¯PC端 |
| | | var judgeMorPCflag = judgeMorPC(); |
| | | if (!judgeMorPCflag) {//ç§»å¨ç«¯ |
| | | var dd = '<dd><a href="车é´ç®¡ç/å·¥åºæµè½¬/MES_StationInBill_PDA.html">å·¥åºè¿ç«æ¥æ¶åPDA</a ></dd > <dd><a href="车é´ç®¡ç/å·¥åºæµè½¬/MES_StationOutBill_PDA.html">å·¥åºåºç«æ±æ¥åPDA</a></dd>'; |
| | | $("#append").prepend(dd); |
| | | } |
| | | if (!judgeMorPCflag) {//ç§»å¨ç«¯ |
| | | window.location.href = 'index_Mobile.html' |
| | | } |
| | | //var judgeMorPCflag = judgeMorPC(); |
| | | //if (!judgeMorPCflag) {//ç§»å¨ç«¯ |
| | | // var dd = '<dd><a href="车é´ç®¡ç/å·¥åºæµè½¬/MES_StationInBill_PDA.html">å·¥åºè¿ç«æ¥æ¶åPDA</a ></dd > <dd><a href="车é´ç®¡ç/å·¥åºæµè½¬/MES_StationOutBill_PDA.html">å·¥åºåºç«æ±æ¥åPDA</a></dd>'; |
| | | // $("#append").prepend(dd); |
| | | //} |
| | | //if (!judgeMorPCflag) {//ç§»å¨ç«¯ |
| | | // window.location.href = 'index_Mobile.html' |
| | | //} |
| | | |
| | | var ajaxLoad = layer.load(); |
| | | //è·åèååè¡¨æ°æ® |
| | |
| | | if (sessionStorage.login != "login") { |
| | | layer.confirm("ç»å½å¤±æï¼è¯·éæ°ç»å½ï¼", { |
| | | icon: 4, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['éæ°ç»å½'] |
| | | }, function () { window.location.href = "user/login.html"; }); |
| | | }, function () { window.location.href = "user/login_pda.html"; }); |
| | | } |
| | | |
| | | //å¤æç¨æ·æ¯ç§»å¨ç«¯è¿æ¯PC端 |
| | | var judgeMorPCflag = judgeMorPC(); |
| | | if (judgeMorPCflag) {//PC端 |
| | | window.location.href = 'index.html' |
| | | } |
| | | ////å¤æç¨æ·æ¯ç§»å¨ç«¯è¿æ¯PC端 |
| | | //var judgeMorPCflag = judgeMorPC(); |
| | | //if (judgeMorPCflag) {//PC端 |
| | | // window.location.href = 'index.html' |
| | | //} |
| | | |
| | | }); |
| | | |
| | |
| | | <link rel="stylesheet" href="../layuiadmin/style/admin.css" media="all"> |
| | | <script src="../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <script src="../layuiadmin/Scripts/jquery-3.5.1.min.js"></script> |
| | | |
| | | <script language="JavaScript"> |
| | | //å±è½åéæé® |
| | | history.pushState(null, null, document.URL); |
| | | window.addEventListener('popstate', function () { |
| | | history.pushState(null, null, document.URL); |
| | | }); |
| | | </script> |
| | | <script> |
| | | /^http(s*):\/\//.test(location.href) || alert('请å
é¨ç½²å° localhost ä¸å访é®'); |
| | | </script> |
| | |
| | | <link rel="stylesheet" href="../layuiadmin/style/admin.css" media="all"> |
| | | <script src="../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <script src="../layuiadmin/Scripts/jquery-3.5.1.min.js"></script> |
| | | |
| | | <script language="JavaScript"> |
| | | //å±è½åéæé® |
| | | history.pushState(null, null, document.URL); |
| | | window.addEventListener('popstate', function () { |
| | | history.pushState(null, null, document.URL); |
| | | }); |
| | | </script> |
| | | <script> |
| | | /^http(s*):\/\//.test(location.href) || alert('请å
é¨ç½²å° localhost ä¸å访é®'); |
| | | </script> |
| | |
| | | if (sessionStorage.login != "login") { |
| | | layer.confirm("ç»å½å¤±æï¼è¯·éæ°ç»å½ï¼", { |
| | | icon: 4, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['éæ°ç»å½'] |
| | | }, function () { window.location.href = "user/login.html"; }); |
| | | }, function () { window.location.href = "user/login_pb.html"; }); |
| | | } |
| | | |
| | | $("#LAY_app_flexible").click(); |
| | |
| | | sessionStorage["HManagerID"] = result.data[0].HSecManagerID; |
| | | sessionStorage["HManagerName"] = result.data[0].HSecManager; |
| | | //sessionStorage["IP"] = System.Configuration.ConfigurationSettings.AppSettings("name"); |
| | | if (!judgeMorPCflag) {//ç§»å¨ç«¯ |
| | | window.location.href = '../../views/index_Mobile.html' |
| | | } else {//PC端 |
| | | //if (!judgeMorPCflag) {//ç§»å¨ç«¯ |
| | | // window.location.href = '../../views/index_Mobile.html' |
| | | //} else {//PC端 |
| | | window.location.href = '../../views/indexMenu.html' |
| | | } |
| | | //} |
| | | get_WriteConfigFile(); |
| | | } |
| | | else { |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HInterID = data[0].hmainid.toString(); |
| | | var HBillNo = data[0].åæ®å·.toString(); |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | var wait = layer.load(); |
| | | //é»è¾å 餿¹æ³ |
| | |
| | | success: function (result) { |
| | | console.log('gouba' + result); |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { icon: 1 }, function () { |
| | | layer.msg("åæ®å·ï¼" + HBillNo + " å 餿åï¼", { icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HInterID = data[0].hmainid.toString(); |
| | | var HBillNo = data[0].åæ®å·.toString(); |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | var wait = layer.load(); |
| | | //é»è¾å 餿¹æ³ |
| | |
| | | success: function (result) { |
| | | console.log('gouba' + result); |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { icon: 1 }, function () { |
| | | layer.msg("åæ®å·ï¼" + HBillNo + " å 餿åï¼", { icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HInterID = data[0].hmainid.toString(); |
| | | var HBillNo = data[0].åæ®å·.toString(); |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | var wait = layer.load(); |
| | | //é»è¾å 餿¹æ³ |
| | |
| | | success: function (result) { |
| | | console.log('gouba' + result); |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { icon: 1 }, function () { |
| | | layer.msg("åæ®å·ï¼" + HBillNo+" å 餿åï¼", { icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å®¡æ ¸äºº</label> |
| | | <label class="layui-form-label" style="width: 85px;">ä¿®æ¹äºº</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HChecker" id="HChecker" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HUpdater" id="HUpdater" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å
³é人</label> |
| | | <label class="layui-form-label" style="width: 85px;">å®¡æ ¸äºº</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HCloseMan" id="HCloseMan" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HChecker" id="HChecker" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å®¡æ ¸æ¥æ</label> |
| | | <label class="layui-form-label" style="width: 85px;">ä¿®æ¹æ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HCheckDate" id="HCheckDate" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HUpdaterDate" id="HUpdaterDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å®¡æ ¸æ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HCheckerDate" id="HCheckerDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å
³é人</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HCloseMan" id="HCloseMan" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ä½åºäºº</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HDeleteMan" id="HDeleteMan" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">éå人</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HBacker" id="HBacker" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å
³éæ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HCloseDate" id="HCloseDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ä¿®æ¹æ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HUpDateDate" id="HUpDateDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ä½åºæ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">é忥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HBackerDate" id="HBackerDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">éååå </label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HBackRemark" id="HBackRemark" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | if (OperationType == 1) { |
| | | $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | $("#HCheckDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HChecker").val(sessionStorage["HUserName"]); |
| | | $("#HUpDateDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HUpDater").val(sessionStorage["HUserName"]); |
| | | $("#HCloseDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HDeleteDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | //åå§å è½½è¡¨æ ¼{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": " ", "HSQProcName": " ","HProcID":0, "HZRProcName": " ", "HMRBChecker": " ", "HRemark": " ", "HPSProcName": " ", "HCloseMan": " " } |
| | | option.data = [{ |
| | | "HEmpID": "", "HEmpNumber": "", "HEmpName": "", "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HProcID": "", "HProcNumber": "", "HProcName": "" |
| | |
| | | , "HExplanation": data.æè¦ //æè¦ |
| | | , "HRemark": data.è¡¨å¤´å¤æ³¨ //夿³¨ |
| | | , "HMaker": data.å¶å人 |
| | | , "HUpdater": data.ä¿®æ¹äºº |
| | | , "HChecker": data.å®¡æ ¸äºº |
| | | , "HCloseMan": data.å
³é人 |
| | | , "HMakeDate": data.å¶åæ¥æ |
| | | , "HCheckDate": data.å®¡æ ¸æ¥æ |
| | | , "HCloseDate": data.å
³éæ¥æ |
| | | , "HUpDateDate": data.ä¿®æ¹æ¥æ |
| | | , "HDeleteDate": data.ä½åºæ¥æ |
| | | , "HDeleteMan": data.ä½åºäºº |
| | | , "HMakeDate": data.å¶åæ¥æ == null ? "" : Format(data.å¶åæ¥æ, "yyyy-MM-dd hh:mm:ss") |
| | | , "HUpdaterDate": data.ä¿®æ¹æ¥æ == null ? "" : Format(data.ä¿®æ¹æ¥æ, "yyyy-MM-dd hh:mm:ss") |
| | | , "HCheckerDate": data.å®¡æ ¸æ¥æ == null ? "" : Format(data.å®¡æ ¸æ¥æ, "yyyy-MM-dd hh:mm:ss") |
| | | , "HCloseDate": data.å
³éæ¥æ == null ? "" : Format(data.å
³éæ¥æ, "yyyy-MM-dd hh:mm:ss") |
| | | , "HDeleteDate": data.ä½åºæ¥æ == null ? "" : Format(data.ä½åºæ¥æ, "yyyy-MM-dd hh:mm:ss") |
| | | }); |
| | | |
| | | } else { |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var InterID = data[0].hmainid.toString(); |
| | | var HBillNo = data[0].åæ®å·.toString(); |
| | | //é»è¾å 餿¹æ³ |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | $.ajax({ |
| | |
| | | data: { "HInterID": InterID, "user": sessionStorage["HUserName"]}, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | layer.msg("åæ®å·ï¼" + HBillNo + " å 餿åï¼", { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HInterID = data[0].hmainid.toString(); |
| | | var HBillNo = data[0].åæ®å·.toString(); |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | var wait = layer.load(); |
| | | //é»è¾å 餿¹æ³ |
| | |
| | | success: function (result) { |
| | | console.log('gouba' + result); |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { icon: 1 }, function () { |
| | | layer.msg("åæ®å·ï¼" + HBillNo + " å 餿åï¼", { icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ä¿®æ¹äºº</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HUpDater" id="HUpDater" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ä½åºäºº</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HDeleteMan" id="HDeleteMan" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å¶åæ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HMakeDate" id="HMakeDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å®¡æ ¸æ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ä¿®æ¹äºº</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HUpDater" id="HUpDater" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ä½åºäºº</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HDeleteMan" id="HDeleteMan" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ä¿®æ¹æ¥æ</label> |
| | |
| | | if (OperationType == 1) { |
| | | $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | $("#HCheckDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HChecker").val(sessionStorage["HUserName"]); |
| | | $("#HUpDateDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HUpDater").val(sessionStorage["HUserName"]); |
| | | $("#HCloseDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HDeleteDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HDeleteMan").val(sessionStorage["HUserName"]); |
| | | $("#HCloseMan").val(sessionStorage["HUserName"]); |
| | | //åå§å è½½è¡¨æ ¼{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": " ", "HSQProcName": " ","HProcID":0, "HZRProcName": " ", "HMRBChecker": " ", "HRemark": " ", "HPSProcName": " ", "HCloseMan": " " } |
| | | option.data = [{ |
| | | "HEmpID": "", "HEmpNumber": "", "HEmpName": "", "HEmpID": "", "HEmpRate": 0 |
| | |
| | | , "HMaker": data.å¶å人 |
| | | , "HChecker": data.å®¡æ ¸äºº |
| | | , "HCloseMan": data.å
³é人 |
| | | , "HMakeDate": data.å¶åæ¥æ |
| | | , "HCheckDate": data.å®¡æ ¸æ¥æ |
| | | , "HCloseDate": data.å
³éæ¥æ |
| | | , "HUpDateDate": data.ä¿®æ¹æ¥æ |
| | | , "HDeleteDate": data.ä½åºæ¥æ |
| | | , "HUpDater": data.ä¿®æ¹äºº |
| | | , "HDeleteMan": data.ä½åºäºº |
| | | , "HMakeDate": data.å¶åæ¥æ == null ? "" : Format(data.å¶åæ¥æ, "yyyy-MM-dd hh:mm:ss") |
| | | , "HCheckDate": data.å®¡æ ¸æ¥æ == null ? "" : Format(data.å®¡æ ¸æ¥æ, "yyyy-MM-dd hh:mm:ss") |
| | | , "HCloseDate": data.å
³éæ¥æ == null ? "" : Format(data.å
³éæ¥æ, "yyyy-MM-dd hh:mm:ss") |
| | | , "HUpDateDate": data.ä¿®æ¹æ¥æ == null ? "" : Format(data.ä¿®æ¹æ¥æ, "yyyy-MM-dd hh:mm:ss") |
| | | , "HDeleteDate": data.ä½åºæ¥æ == null ? "" : Format(data.ä½åºæ¥æ, "yyyy-MM-dd hh:mm:ss") |
| | | }); |
| | | |
| | | } else { |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var InterID = data[0].hmainid.toString(); |
| | | var HBillNo = data[0].åæ®å·.toString(); |
| | | //é»è¾å 餿¹æ³ |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | $.ajax({ |
| | |
| | | data: { "HInterID": InterID, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | layer.msg("åæ®å·ï¼" + HBillNo + " å 餿åï¼", { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | |
| | | }; |
| | | } |
| | | |
| | | //æ¥å·¥å¹³å°è¿å
¥(ææºå) |
| | | //æ¥å·¥å¹³å°è¿å
¥(ææºå) åªè½çå°å½åçäº§èµæºä¸å¼å·¥äºçç产订åçäº§éæ±æ¥å |
| | | function set_AddNew() |
| | | { |
| | | sWhere = " where a.HSourceID='" + HSourceID + "' and a.HICMOBillNo='" + workcode + "' and HICMOInterID='" + (HICMOInterID == "null" ? 0 : HICMOInterID) + "' and HICMOEntryID='" + (HICMOEntryID == "null" ? 0 : HICMOEntryID) + "' and HMaker='" + HMaker + "' "; |
| | | sWhere = " where HSourceID='" + HSourceID + "' and HICMOBillNo='" + workcode + "' and HICMOInterID='" + (HICMOInterID == "null" ? 0 : HICMOInterID) + "' and HICMOEntryID='" + (HICMOEntryID == "null" ? 0 : HICMOEntryID) + "' and HMaker='" + HMaker + "' "; |
| | | SchWhere = sWhere; |
| | | console.log(sWhere); |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | |
| | | var Source = $("#Source").val(); //èµæº |
| | | sWhere += SchWhere; |
| | | if (HDate) { |
| | | sWhere += " and CONVERT(varchar(100),a.HDate, 23) >= '" + HDate + "'"; |
| | | sWhere += " and CONVERT(varchar(100),HDate, 23) >= '" + HDate + "'"; |
| | | } |
| | | if (HDate1) { |
| | | sWhere += " and CONVERT(varchar(100),a.HDate, 23) <= '" + HDate1 + "'"; |
| | | sWhere += " and CONVERT(varchar(100),HDate, 23) <= '" + HDate1 + "'"; |
| | | } |
| | | if (HBillNo) { |
| | | sWhere += " and a.HBillNo like '%" + HBillNo + "%'"; |
| | | sWhere += " and HBillNo like '%" + HBillNo + "%'"; |
| | | } |
| | | if (Part) { |
| | | sWhere += " and concat(m.HNumber,m.HName,m.HModel) like '%" + Part + "%'"; |
| | | sWhere += " and concat(HNumber,HName,HModel) like '%" + Part + "%'"; |
| | | } |
| | | if (Source) { |
| | | sWhere += " and s.HName like '%" + Dept + "%'"; |
| | | sWhere += " and HName like '%" + Dept + "%'"; |
| | | } |
| | | $.ajax({ |
| | | //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum", |
| | |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , done: function (res, curr, count) { |
| | | soulTable.render(this); |
| | | } |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { field: 'HInterID', title: 'HInterID', sort: true, hide: true, width: 200 } |
| | |
| | | //, { field: 'HReportType', title: 'æ±æ¥ç±»å', width: 200 , sort: true} |
| | | , { field: 'HRelationInterID', title: 'æ¯å¦æ¥æ£ç³è¯·', width: 200, hide: true, sort: true } |
| | | ]] |
| | | , done: function (res, curr, count) { |
| | | soulTable.render(this); |
| | | |
| | | $.each(res.data, function (index, item) { |
| | | //å¤æäº§éæ±æ¥ä¸´æ¶æ°æ®æ¯å¦å·²æå
³èï¼æåæ·»å èæ¯è²æ è®° |
| | | if (item.HRelationInterID != 0) { |
| | | //// æ¹æ³1ï¼æ²¡çå°æææï¼æ²¡æè¿è¡è°è¯ï¼ |
| | | //$("#table-id").next().find('tbody tr[data-index="' + index + |
| | | // '"]').css("background-color", "#EA08C1"); |
| | | // æ¹æ³2ï¼å¯ç¨ï¼ |
| | | var i = index + 1; |
| | | $('tr').eq(i).css("background-color", "#FAAAED"); |
| | | } |
| | | }); |
| | | } |
| | | }; |
| | | } |
| | | |
| | |
| | | var AddRow = table.cache['mainTable']; |
| | | var NewRow = { |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", |
| | | "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, "HRemark": "" |
| | | "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, |
| | | "HICMOBillNo": "", "HICMOInterID": "0","HICMOEntryID":"0","HRemark": "" |
| | | }; |
| | | |
| | | switch (obj.event) { |
| | | //æ°å¢ä¸è¡ |
| | | case 'btn-AddLine': btnAddLine(NewRow); |
| | |
| | | , btn1: function (index, layero) { |
| | | option.data = [{ |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", |
| | | "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, "HRemark": "" |
| | | "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, |
| | | "HICMOBillNo": "", "HICMOInterID": "0", "HICMOEntryID": "0", "HRemark": "" |
| | | }]; |
| | | table.render(option); |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | //var NewRow = { "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HRemark": "" }; |
| | | table.cache["mainTable"].push({ |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", |
| | | "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, "HRemark": "" |
| | | "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, "HICMOBillNo": "", "HICMOInterID": "0", "HICMOEntryID": "0", "HRemark": "" |
| | | }); |
| | | option.data = table.cache["mainTable"]; |
| | | table.render(option); |
| | |
| | | , { field: 'HWorkerName', title: 'æä½ååç§°', edit: 'text', width: 100 } |
| | | , { field: 'HQty', title: 'ç产æ°é', edit: 'text', width: 100 } |
| | | , { field: 'HBadQty', title: 'ä¸è¯æ°é', edit: 'text', width: 100 } |
| | | , { field: 'HICMOBillNo', title: 'ç产订å', edit: 'text', width: 100 } |
| | | , { field: 'HICMOInterID', title: 'ç产订åå
ç ', edit: 'text', width: 100, hide: true} |
| | | , { field: 'HICMOEntryID', title: 'ç产订ååå
ç ', edit: 'text', width: 100, hide: true} |
| | | |
| | | , { field: 'HRemark', title: '表ä½å¤æ³¨', edit: 'text', width: 100 } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 150 } |
| | | ]; |
| | |
| | | $('#get_PrintReport').addClass("layui-btn-disabled").attr("disabled", true); |
| | | option.data = [{ |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", |
| | | "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, "HRemark": "" |
| | | "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, |
| | | "HICMOBillNo": "", "HICMOInterID": "0", "HICMOEntryID": "0", "HRemark": "" |
| | | }]; |
| | | table.render(option); |
| | | } |
| | |
| | | "HMaterID": data[i].ç©æID, "HMaterCode": data[i].ç©æä»£ç , "HMaterName": data[i].ç©æåç§°, "HMaterSpec": data[i].è§æ ¼åå·, |
| | | "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HSourceID": data[i].çäº§èµæºID, "HSourceCode": data[i].çäº§èµæºä»£ç , |
| | | "HSourceName": data[i].çäº§èµæºåç§°, "HWorkerid": data[i].æä½åID, "HWorkerCode": data[i].æä½å代ç , |
| | | "HWorkerName": data[i].æä½ååç§°, "HQty": data[i].产é, "HBadQty": data[i].ä¸è¯æ°é, "HRemark": "" |
| | | "HWorkerName": data[i].æä½ååç§°, "HQty": data[i].产é, "HBadQty": data[i].ä¸è¯æ°é, "HICMOBillNo": data[i].ç产订åå·, |
| | | "HICMOInterID": data[i].HICMOInterID, "HICMOEntryID": data[i].HICMOEntryID, "HRemark": "" |
| | | }); |
| | | } |
| | | |
| | |
| | | }); |
| | | |
| | | option.data = arr; |
| | | console.log(option.data ); |
| | | table.render(option); |
| | | |
| | | option_prodReport.data = arr_detail; |
| | |
| | | } else { |
| | | option.data = [{ |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", |
| | | "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, "HRemark": "" |
| | | "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, |
| | | "HICMOBillNo": "", "HICMOInterID": "0", "HICMOEntryID": "0", "HRemark": "" |
| | | }]; |
| | | table.render(option); |
| | | } |
| | |
| | | set_EditGrid(linterid); //ç¼è¾è·åè¡¨ä½ |
| | | option.data = [{ |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", |
| | | "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, "HRemark": "" |
| | | "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, |
| | | "HICMOBillNo": "", "HICMOInterID": "0", "HICMOEntryID": "0", "HRemark": "" |
| | | }]; |
| | | table.render(option); |
| | | } |
| | |
| | | data: { "HInterID": InterID, "IsAudit": 0, "CurUserName": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | layer.msg(result.Message, { time: 1 * 10000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |