Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-LayUI
| | |
| | | <Content Include="views\WMSæ«ç 模å\å®¢æ·æ¡ç æ«æ\Gy_getCusBarCodeBillList_BarCodeList.html" /> |
| | | <Content Include="views\WMSæ«ç 模å\å®¢æ·æ¡ç æ«æ\Gy_getCusBarCodeBill_PDA.html" /> |
| | | <Content Include="views\WMSæ«ç 模å\å®¢æ·æ¡ç æ«æ\Gy_getCusBarCodeBillList_PDA.html" /> |
| | | <Content Include="views\WMSæ«ç 模å\åºåæ¥è¯¢\KF_ICInventoryByCLD_PDA.html" /> |
| | | <Content Include="views\WMSæ«ç 模å\æ«ç éªè¯\Gy_BarCodeConfirmBill_PDA.html" /> |
| | | <Content Include="views\WMSæ«ç 模å\æ«ç éªè¯\Gy_BarCodeConfirmBillList_PDA.html" /> |
| | | <Content Include="views\WMSæ«ç 模å\æ«ç éªè¯\Gy_BarCodeConfirmBillList.html" /> |
| | |
| | | <Content Include="views\åºç¡èµæ\éç¨åºç¡èµæ\Gy_CommonBaseData.html" /> |
| | | <Content Include="views\åºç¡èµæ\éèå设置\Gy_GridView_Hide_New.html" /> |
| | | <Content Include="views\å·¥èµç®¡ç\å®é¢ç³è¯·\Pay_ProcPriceRequestBillCheckQuery.html" /> |
| | | <Content Include="views\å·¥èµç®¡ç\å·¥èµæ¥è¡¨\Pay_PaymentEntryReport.html" /> |
| | | <Content Include="views\å·¥èµç®¡ç\å·¥èµæ¥è¡¨\Pay_PayWorkShopSumReport.html" /> |
| | | <Content Include="views\å·¥èµç®¡ç\å·¥èµæ¥è¡¨\Pay_PaymentDayCheckReport.html" /> |
| | | <Content Include="views\å·¥èµç®¡ç\å·¥èµæ¥è¡¨\Pay_PaymentMonthSumReport.html" /> |
| | |
| | | <Content Include="views\ç产管ç\ç产æ¥è¡¨\Sc_QualityReportBillMonth.html" /> |
| | | <Content Include="views\ç产管ç\ç产æ¥è¡¨\Sc_QualityReportBillDay.html" /> |
| | | <Content Include="views\ç产管ç\ç产计åå¹³å°\JIT_DayPlanPlatForm_BCP.html" /> |
| | | <Content Include="views\ç产管ç\è´¨éæ±æ¥å\Sc_QualityReportBill_PDA.html" /> |
| | | <Content Include="views\ç产管ç\è´¨éæ±æ¥å\Sc_QualityReportBillSumSave.html" /> |
| | | <Content Include="views\çæ¿\éè´æ¶æ\KB_CGSL.html" /> |
| | | <Content Include="views\çæ¿\éå®åè´§\KB_XSFH.html" /> |
| | |
| | | <Content Include="views\设å¤ç®¡ç\设å¤å¼æºå\Sb_EquipBeginBillList_PDA.html" /> |
| | | <Content Include="views\设å¤ç®¡ç\设å¤å¼æºå\Sb_EquipBeginBill_PDA.html" /> |
| | | <Content Include="views\设å¤ç®¡ç\è®¾å¤æ¥è¡¨\Sb_EquipDotCheckTaskReport.html" /> |
| | | <Content Include="views\设å¤ç®¡ç\è®¾å¤æ¥è¡¨\SB_EquipICMOTechParamReport.html" /> |
| | | <Content Include="views\设å¤ç®¡ç\è®¾å¤æ¥è¡¨\Sb_EquipMentCollectionTechParam_Temp.html" /> |
| | | <Content Include="views\设å¤ç®¡ç\è®¾å¤æ¥è¡¨\Sb_EquipMentCollectionTechParam.html" /> |
| | | <Content Include="views\设å¤ç®¡ç\è®¾å¤æ¥è¡¨\Sb_EquipRepairMonthSumReport.html" /> |
| | |
| | | <Content Include="views\车é´ç®¡ç\产线\Gy_WorkDay.html" /> |
| | | <Content Include="views\车é´ç®¡ç\产线\MES_AssemblyTraceability.html" /> |
| | | <Content Include="views\车é´ç®¡ç\产线\MES_AssemblyTraceabilityList.html" /> |
| | | <Content Include="views\车é´ç®¡ç\产线\MES_ProductionLinePackaging_MXG.html" /> |
| | | <Content Include="views\车é´ç®¡ç\产线\MES_ProductionLinePackaging.html" /> |
| | | <Content Include="views\车é´ç®¡ç\产线\MES_ProductionLinePackagingList.html" /> |
| | | <Content Include="views\车é´ç®¡ç\产线\MES_WhiteLabelGeneration.html" /> |
| | |
| | | <PropertyGroup> |
| | | <NameOfLastUsedPublishProfile>D:\æºäºè¿æ\MES\MES-WEB-LayUI\WebTM\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> |
| | | <ProjectView>ProjectFiles</ProjectView> |
| | | <LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig> |
| | | <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig> |
| | | <UseIISExpress>true</UseIISExpress> |
| | | <Use64BitIISExpress /> |
| | | <IISExpressSSLPort /> |
| | |
| | | <IISExpressUseClassicPipelineMode /> |
| | | <UseGlobalApplicationHostFile /> |
| | | </PropertyGroup> |
| | | <ProjectExtensions /> |
| | | <ProjectExtensions> |
| | | <VisualStudio> |
| | | <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"> |
| | | <WebProjectProperties> |
| | | <StartPageUrl> |
| | | </StartPageUrl> |
| | | <StartAction>CurrentPage</StartAction> |
| | | <AspNetDebugging>True</AspNetDebugging> |
| | | <SilverlightDebugging>False</SilverlightDebugging> |
| | | <NativeDebugging>False</NativeDebugging> |
| | | <SQLDebugging>False</SQLDebugging> |
| | | <ExternalProgram> |
| | | </ExternalProgram> |
| | | <StartExternalURL> |
| | | </StartExternalURL> |
| | | <StartCmdLineArguments> |
| | | </StartCmdLineArguments> |
| | | <StartWorkingDirectory> |
| | | </StartWorkingDirectory> |
| | | <EnableENC>True</EnableENC> |
| | | <AlwaysStartWebServerOnDebug>False</AlwaysStartWebServerOnDebug> |
| | | </WebProjectProperties> |
| | | </FlavorProperties> |
| | | </VisualStudio> |
| | | </ProjectExtensions> |
| | | </Project> |
| | |
| | | //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/API/";*/ //æ½æµæ¸¸æ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/API/"; //å¼ ç广æ¬å°é
ç½® |
| | | var WEBURL = "http://localhost:81/API/" //ç¿æ¶æ¶æ¬å°é
ç½® |
| | | /* var WEBURL = "http://localhost:81/API/" //ç¿æ¶æ¶æ¬å°é
ç½®*/ |
| | | //var WEBURL = "http://47.96.97.237/API/"; //æºäºæå¡å¨ |
| | | /*var WEBURL = "http://localhost:8082/LuBaoAPI/"; */ //ä½ææ°æ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8088/ARAPI/"; //ä½ææ°æ¬å°é
ç½®(å®ç) |
| | |
| | | } |
| | | parent.layer.close(index); |
| | | }); |
| | | RoadQuery($('#Value').val()); |
| | | table.render({ |
| | | elem: '#mainTable' |
| | | // , url: '/demo/table/user/' |
| | |
| | | , limits: [50, 500, 5000, 50000], |
| | | limit: 50 |
| | | }); |
| | | RoadQuery($('#Value').val()); |
| | | |
| | | ///å è½½æ¾ç¤ºæ°æ® |
| | | function RoadQuery(Where) { |
| | | var Value = " and HUSEORGID = " + sessionStorage["OrganizationID"] + ""; |
| | |
| | | , shade: 0.6 |
| | | , maxmin: false |
| | | , anim: 0 |
| | | , content: ['è´¨é管ç/é¦ä»¶æ£éªå/QC_Add_Edit_FirstPieceCheckBill.html?OperationType=2&linterid=' + HProcExchInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HICMOEntryID, 'yes'] |
| | | , content: ['è´¨é管ç/é¦ä»¶æ£éªå/QC_Add_Edit_FirstPieceCheckBill.html?OperationType=2&linterid=' + HProcExchInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HICMOEntryID + '&HSourceEntryID=' + HSourceEntryID+'', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | } |
| | |
| | | , shade: 0.6 |
| | | , maxmin: false |
| | | , anim: 0 |
| | | , content: ['è´¨é管ç/å·¡æ£è®°å½å/QC_Add_Edit_PatrolProcCheckOtherill.html?OperationType=2&linterid=' + HProcExchInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HICMOEntryID, 'yes'] |
| | | , content: ['è´¨é管ç/å·¡æ£è®°å½å/QC_Add_Edit_PatrolProcCheckOtherill.html?OperationType=2&linterid=' + HProcExchInterID + '&HSouceBillType=' + HBillType + '&HICMOEntryID=' + HICMOEntryID+ '&HSourceEntryID=' + HSourceEntryID+'', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | |
New file |
| | |
| | | <!DOCTYPE html> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | | <title>ERPåæ¶åºåæ¥è¯¢</title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| | | <!--å¼ç¨layuiæ ·å¼æä»¶--> |
| | | <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> |
| | | <!--å¼ç¨layui jsæä»¶--> |
| | | <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/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <style> |
| | | .layui-col-xs8 { |
| | | width: 55.666667%; |
| | | } |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid" style="padding:0"> |
| | | <div class="layui-card" style="padding: 1px"> |
| | | <div class="layui-card-body" style="padding: 0px; height:800px;"> |
| | | <form class="layui-form" action="" lay-filter="component-form-group"> |
| | | <div style="background-color:#0085E8;"> |
| | | <span style="color: white;"><i class="layui-icon layui-icon-form"></i>ERPåæ¶åºåæ¥è¯¢</span> |
| | | </div> |
| | | <div class="layui-form-item" style="margin: 1% 2%;text-align: right;"> |
| | | <button type="button" lay-submit="" lay-filter="cmdSearch" class="layui-btn layui-btn-radius" id="cmdSearch">æ¥è¯¢</button> |
| | | <button type="button" lay-submit="" lay-filter="cmdCancel" class="layui-btn layui-btn-radius layui-btn-danger" id="cmdCancel">éåº</button> |
| | | </div> |
| | | <div class="layui-collapse"> |
| | | <div class="layui-colla-item"> |
| | | <div class="layui-colla-title layui-inline"> |
| | | <div class="layui-inline"> |
| | | <span>æ´å¤</span> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:30px;padding-left:0px;">æ¡ç </label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HBarCode" id="HBarCode" lay-verify="HBarCode" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-colla-content" style="padding: 6px; margin-left: 6%;"> |
| | | <div class="layui-row" style="margin-top:5px"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:30px;padding-left:0px;">ä»åº</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HWHName" id="HWHName" lay-verify="HWHName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | <input type="hidden" name="HWHID" id="HWHID" lay-verify="HWHID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" lay-filter="HWHID-BT" class="layui-btn" id="HWHID-BT">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-top:5px"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:30px;padding-left:0px;">ä»ä½</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HStockPlaceName" id="HStockPlaceName" lay-verify="HStockPlaceName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | <input type="hidden" name="HStockPlaceID" id="HStockPlaceID" lay-verify="HStockPlaceID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" lay-filter="HSpID-BT" class="layui-btn" id="HSpID-BT">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab layui-col-xs12" lay-filter="tab-KF_ICInventoryByCLD_PDA"> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | | <li lay-id="1" style="padding:1px;">åæ¶åºåä¿¡æ¯</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <!--åæ¶åºåä¿¡æ¯--> |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs12"> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"></div> |
| | | <table class="layui-hide" id="wl-table" lay-filter="wl-table"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <script> |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'laydate', 'table', 'element'], function () { |
| | | |
| | | //#region å
Œ
±åé |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , laydate = layui.laydate |
| | | , element = layui.element; |
| | | var HStockOrgID = sessionStorage["OrganizationID"] //ç»ç»ID |
| | | var listOption = []; |
| | | var columns = ""; |
| | | var HModName = "KF_ICInventoryByCLD_PDA"; |
| | | var titleData = []; //ä¸éè¦æ¾ç¤ºçåæ®µ |
| | | var params = get_UrlVars(); |
| | | var OperationType = params[params[0]] == null ? 1 : params[params[0]]; //1ä¸ºç´æ¥æ¨¡åæå¼ 2为ä»å
¶ä»æ¨¡å跳转æå¼ |
| | | var HMaterNumber = params[params[1]]; //ç©æä»£ç |
| | | |
| | | //#endregion |
| | | |
| | | //夿æ¯å¦ç»å½ æªç»å½åè·³å°ç»å½é¡µ |
| | | if (sessionStorage.login != "login") { |
| | | layer.confirm("ç»å½å¤±æï¼è¯·éæ°ç»å½ï¼", { |
| | | icon: 4, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['éæ°ç»å½'] |
| | | }, function () { window.location.href = "../../user/login.html"; }); |
| | | } |
| | | |
| | | |
| | | //#region åå§åçé¢ |
| | | |
| | | set_ClearBill(); |
| | | |
| | | function set_ClearBill() { |
| | | set_InitGrid(); //åå§åè¡¨æ ¼ |
| | | |
| | | var data = []; |
| | | listOption.cols = [[ |
| | | { field: 'æ°é', title: 'æ°é', width: 100 } |
| | | , { field: 'ä»åº', title: 'ä»åº', width: 100 } |
| | | , { field: 'ä»ä½', title: 'ä»ä½', width: 100 } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 100 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 100 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 100 } |
| | | , { field: 'æ¹æ¬¡', title: 'æ¹æ¬¡', width: 100 } |
| | | , { field: 'è¾
å©å±æ§', title: 'è¾
å©å±æ§', width: 100 } |
| | | , { field: 'çäº§æ¥æ', title: 'çäº§æ¥æ', width: 100 } |
| | | , { field: 'æææè³', title: 'æææè³', width: 100 } |
| | | , { field: 'ç»ç»', title: 'ç»ç»', width: 100 } |
| | | ]]; |
| | | listOption.data = data; |
| | | table.render(listOption); |
| | | |
| | | if (OperationType == 2) { |
| | | //è¿åç©æä»£ç |
| | | $("#HBarCode").val(HMaterNumber); |
| | | //æ¾ç¤ºè¡¨ä½æç» |
| | | DisBillEntryList(); |
| | | } |
| | | } |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | function set_InitGrid() { |
| | | //æ¡ç ä¿¡æ¯ |
| | | listOption = { |
| | | elem: '#wl-table' |
| | | //, toolbar: '#toolbarDemo' |
| | | //, totalRow: true |
| | | , height: 'full-60' |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | | }; |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | |
| | | //#region åºç¡èµæéæ© |
| | | |
| | | //#region ä»åº |
| | | //æ«æä»åºæ¡ç |
| | | $('#HWHName').on('keydown', function (event) { |
| | | if (event.keyCode == 13) { |
| | | var HWHName = $('#HWHName').val() |
| | | if (HWHName == '') { |
| | | playSound(); |
| | | $("#HWHID").val("0"); |
| | | $("#HWHName").val(""); |
| | | $("#HStockPlaceID").val("0"); |
| | | $("#HStockPlaceName").val(""); |
| | | $("#HStockPlaceName").removeAttr("disabled"); |
| | | $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//æé®æ¢å¤æ£å¸¸ç¶æ |
| | | layer.msg("ä»åºæ¡ç 为空ï¼", { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HWHName").select(); |
| | | $("#HWHName").focus(); |
| | | }); |
| | | return; |
| | | } |
| | | |
| | | layer.load(3); |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/WEBSController/GetWarehouse_Json", |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "HBarCode": HWHName, "HStockOrgID": HStockOrgID }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | $("#HWHID").val(result.data[0].HItemID); |
| | | $("#HWHName").val(result.data[0].HName); |
| | | $("#HStockPlaceID").val("0"); |
| | | $("#HStockPlaceName").val(""); |
| | | if (result.data[0].HSPFlag == 0) { |
| | | $("#HStockPlaceName").attr("disabled", "disabled"); |
| | | $('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//æé®ç¦ç¨ |
| | | } |
| | | else { |
| | | $("#HStockPlaceName").removeAttr("disabled"); |
| | | $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//æé®æ¢å¤æ£å¸¸ç¶æ |
| | | } |
| | | element.tabChange('tab-Kf_POStockInBill_PDA', '2'); |
| | | //å
æ æ¾ç¤ºå°æ¡ç ä¸ |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | | } |
| | | else { |
| | | playSound(); |
| | | $("#HWHID").val("0"); |
| | | $("#HWHName").val(""); |
| | | $("#HStockPlaceID").val("0"); |
| | | $("#HStockPlaceName").val(""); |
| | | $("#HStockPlaceName").removeAttr("disabled"); |
| | | $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//æé®æ¢å¤æ£å¸¸ç¶æ |
| | | layer.msg(result.Message, { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HWHName").select(); |
| | | $("#HWHName").focus(); |
| | | }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | complete: function (XHR, TS) { XHR = null }//åæ¶èµæº |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | //ä»åºæé® |
| | | form.on('submit(HWHID-BT)', function () { |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'ä»åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_WarehouseListNew.html?Type=HWHID&HOrgID=' + HStockOrgID + '', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | //#region ä»ä½ |
| | | //æ«æä»ä½æ¡ç |
| | | $('#HStockPlaceName').on('keydown', function (event) { |
| | | if (event.keyCode == 13) { |
| | | //ä»åºææ¬æ¡ä¸ºç©ºæ¶ï¼æ¸
空对åºID |
| | | if ($("#HWHName").val() == '') { |
| | | $("#HWHID").val("0"); |
| | | } |
| | | var sHWHID = $("#HWHID").val() |
| | | var HStockPlaceName = $('#HStockPlaceName').val() |
| | | if (HStockPlaceName == '') { |
| | | playSound(); |
| | | $("#HWHID").val("0"); |
| | | $("#HWHName").val(""); |
| | | $("#HStockPlaceID").val("0"); |
| | | $("#HStockPlaceName").val(""); |
| | | layer.msg("ä»ä½æ¡ç 为空ï¼", { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HStockPlaceName").select(); |
| | | $("#HStockPlaceName").focus(); |
| | | }); |
| | | return; |
| | | } |
| | | |
| | | layer.load(3); |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/WEBSController/GetStockPlace_Json", |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "HBarCode": HStockPlaceName, "HWhID": sHWHID, "HStockOrgID": HStockOrgID }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | $("#HStockPlaceName").val(result.data[0].HName); |
| | | $("#HStockPlaceID").val(result.data[0].HItemID); |
| | | $("#HWHName").val(result.data[0].HWhName); |
| | | $("#HWHID").val(result.data[0].HWHID); |
| | | element.tabChange('tab-Kf_POStockInBill_PDA', '2'); |
| | | //å
æ æ¾ç¤ºå°æ¡ç ä¸ |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | | } |
| | | else { |
| | | playSound(); |
| | | $("#HWHID").val("0"); |
| | | $("#HWHName").val(""); |
| | | $("#HStockPlaceID").val("0"); |
| | | $("#HStockPlaceName").val(""); |
| | | layer.msg(result.Message, { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HStockPlaceName").select(); |
| | | $("#HStockPlaceName").focus(); |
| | | }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | complete: function (XHR, TS) { XHR = null }//åæ¶èµæº |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | //ä»ä½æé® |
| | | form.on('submit(HSpID-BT)', function () { |
| | | //ä»åºææ¬æ¡ä¸ºç©ºæ¶ï¼æ¸
空对åºID |
| | | if ($("#HWHName").val() == '') { |
| | | $("#HWHID").val("0"); |
| | | } |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'ä»ä½å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_StockPlaceListNew.html?HWhID=' + $("#HWHID").val() + '&Type=HSpID&HOrgID=' + HStockOrgID + '', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | //#endregion |
| | | |
| | | |
| | | //#region æ«æç©ææ¡ç |
| | | |
| | | //æ«ææ¡ç |
| | | $('#HBarCode').on('keydown', function (event) { |
| | | if (event.keyCode == 13) { |
| | | DisBillEntryList(); |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | |
| | | //#region åè½æ§ä»¶ |
| | | |
| | | //#region æ¥è¯¢ |
| | | form.on('submit(cmdSearch)', function (data) { |
| | | DisBillEntryList(); |
| | | layer.closeAll("loading"); |
| | | }); |
| | | |
| | | function DisBillEntryList() { |
| | | //ä»åºãä»ä½ææ¬æ¡ä¸ºç©ºæ¶ï¼æ¸
空对åºID |
| | | if ($("#HWHName").val() == '') { |
| | | $("#HWHID").val("0"); |
| | | } |
| | | if ($("#HStockPlaceName").val() == '') { |
| | | $("#HStockPlaceID").val("0"); |
| | | } |
| | | var sHBarCode = $('#HBarCode').val() |
| | | var sHWHID = $("#HWHID").val() |
| | | var sHSPID = $("#HStockPlaceID").val() |
| | | |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + '/KF_ICInventoryByMaterID/GetBillEntry_TmpList_Pack1', |
| | | async: true, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "HBarCode": sHBarCode, "sHWHID": sHWHID, "sHSPID": sHSPID, "HOWNERID": HStockOrgID, "sWhere": '' }, |
| | | success: function (result) { |
| | | var data = []; |
| | | var col = []; |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | //ç»ç©ºçæ°ç»èµå¼ |
| | | for (var key in result.list) { |
| | | //卿è·åå表ææåå |
| | | data.push({ "id": result.list[key].ColmCols, "name": result.list[key].ColmCols, "Type": result.list[key].ColmType }); |
| | | //è·åä¸éè¦æ¾ç¤ºçåï¼Hå¼å¤´çå䏿¾ç¤ºï¼ |
| | | var patrn = new RegExp(/^h/i); |
| | | if (patrn.test(result.list[key].ColmCols)) { |
| | | titleData[key] = result.list[key].ColmCols; |
| | | } |
| | | } |
| | | |
| | | //å¨å表左边添å å¾éæ¡ |
| | | col.push({ type: 'radio' }); |
| | | for (var i = 0; i < data.length; i++) { |
| | | if ($.inArray(data[i].name, titleData) > -1) { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //éèidå |
| | | } |
| | | else { |
| | | switch (data[i].Type) { |
| | | //int |
| | | case 'DateTime': |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 200 }); |
| | | break; |
| | | default: |
| | | |
| | | if (data[i].name == 'ä»åº') { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', width: 120 }); |
| | | } else if (data[i].name == 'ç©æä»£ç ' || data[i].name == 'ç©æåç§°' || data[i].name == 'è§æ ¼åå·' || data[i].name == 'ç»ç»') { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', width: 180 }); |
| | | } else { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center' }); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | columns = col; |
| | | listOption.cols = [columns]; |
| | | listOption.data = result.data; |
| | | //listOption.totalRow = true; |
| | | table.cache['wl-table'] = null; //æ¸
ç©ºè¡¨æ ¼ç¼åæ°æ® |
| | | table.render(listOption); |
| | | } |
| | | else { |
| | | listOption.cols = [[ |
| | | { field: 'æ°é', title: 'æ°é', width: 100 } |
| | | , { field: 'ä»åº', title: 'ä»åº', width: 100 } |
| | | , { field: 'ä»ä½', title: 'ä»ä½', width: 100 } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 100 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 100 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 100 } |
| | | , { field: 'æ¹æ¬¡', title: 'æ¹æ¬¡', width: 100 } |
| | | , { field: 'è¾
å©å±æ§', title: 'è¾
å©å±æ§', width: 100 } |
| | | , { field: 'çäº§æ¥æ', title: 'çäº§æ¥æ', width: 100 } |
| | | , { field: 'æææè³', title: 'æææè³', width: 100 } |
| | | , { field: 'ç»ç»', title: 'ç»ç»', width: 100 } |
| | | ]]; |
| | | listOption.data = data; |
| | | //listOption.totalRow = true; |
| | | table.render(listOption); |
| | | //layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | complete: function (XHR, TS) { XHR = null }//åæ¶èµæº |
| | | }); |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | //#region éåº |
| | | form.on('submit(cmdCancel)', function () { |
| | | //layer.confirm('æ¨ç¡®å®è¦éåºåï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | if (OperationType == 2) { |
| | | var index = parent.layer.getFrameIndex(window.name); //å
å¾å°å½åiframeå±çç´¢å¼ |
| | | //parent.location.reload(); //å·æ°ç¶é¡µé¢ï¼æ³¨æä¸å®è¦å¨å
³éå½åiframeå±ä¹åæ§è¡å·æ° |
| | | parent.layer.close(index); //åæ§è¡å
³é |
| | | } |
| | | else { |
| | | parent.location.href = "../../../views/index_Mobile.html"; |
| | | } |
| | | //}); |
| | | }) |
| | | |
| | | //#endregion |
| | | |
| | | //#endregion |
| | | |
| | | }); |
| | | |
| | | //以ä¸ä¸ºlayui模å |
| | | //æ¤å¤æ¹æ³æ¶åå°è¢«å¤é¨é¡µé¢parent.æ¹æ³åè°ç¨çå¿
é¡»æ¾å¨Layuiæ¹æ³å¤é¨ |
| | | |
| | | //ç¹å»æé®éæ©å è¿åä»åºä¿¡æ¯ |
| | | function GetHWHValue(obj) { |
| | | if (obj.length > 0) { |
| | | $("#HWHName").val(obj[0].HName); |
| | | $("#HWHID").val(obj[0].HItemID); |
| | | $("#HStockPlaceName").val(""); |
| | | $("#HStockPlaceID").val("0"); |
| | | if (obj[0].HSPFlag == 0) { |
| | | $("#HStockPlaceName").attr("disabled", "disabled"); |
| | | $('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//æé®ç¦ç¨ |
| | | } |
| | | else { |
| | | $("#HStockPlaceName").removeAttr("disabled"); |
| | | $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//æé®æ¢å¤æ£å¸¸ç¶æ |
| | | } |
| | | } |
| | | } |
| | | //ç¹å»æé®éæ©å è¿åä»ä½ä¿¡æ¯ |
| | | function GetHSpValue(obj) { |
| | | if (obj.length > 0) { |
| | | $("#HStockPlaceName").val(obj[0].HName); |
| | | $("#HStockPlaceID").val(obj[0].HItemID); |
| | | $("#HWHName").val(obj[0].HWhName); |
| | | $("#HWHID").val(obj[0].HWHID); |
| | | } |
| | | } |
| | | |
| | | </script> |
| | | |
| | | </body> |
| | | </html> |
| | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:30px;padding-left:0px;">ä»åº</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HWHName" id="HWHName" lay-verify="HWHName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | <input type="hidden" name="HWHID" id="HWHID" lay-verify="HWHID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" lay-filter="HWHID-BT" class="layui-btn" id="HWHID-BT">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:30px;padding-left:0px;">ä»ä½</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HStockPlaceName" id="HStockPlaceName" lay-verify="HStockPlaceName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | <input type="hidden" name="HStockPlaceID" id="HStockPlaceID" lay-verify="HStockPlaceID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" lay-filter="HSpID-BT" class="layui-btn" id="HSpID-BT">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:30px;padding-left:0px;">ä¿ç®¡</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | |
| | | </div> |
| | | <!--ç©æä¿¡æ¯--> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:30px;padding-left:0px;">ä»åº</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HWHName" id="HWHName" lay-verify="HWHName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | <input type="hidden" name="HWHID" id="HWHID" lay-verify="HWHID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" lay-filter="HWHID-BT" class="layui-btn" id="HWHID-BT">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:30px;padding-left:0px;">ä»ä½</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HStockPlaceName" id="HStockPlaceName" lay-verify="HStockPlaceName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | <input type="hidden" name="HStockPlaceID" id="HStockPlaceID" lay-verify="HStockPlaceID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" lay-filter="HSpID-BT" class="layui-btn" id="HSpID-BT">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs12"> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"></div> |
| | |
| | | $(obj.tr.selector).attr({ "style": "background:#ceedfa;color:black" }); //æ¹åå½åtrèæ¯é¢è²ååä½é¢è² |
| | | }) |
| | | //#endregion |
| | | |
| | | //#region çå¬ç½æ ¼è¡¨ä½äºä»¶ |
| | | table.on('tool(wl-table)', function (obj) { |
| | | var data = obj.data; |
| | | |
| | | //ç©æä»£ç è¶
龿¥ |
| | | if (obj.event == 'ç©æä»£ç ') { //æ£æ¥ obj.event æ¯å¦çäºå符串 'ç©æä»£ç 'ã妿çäºï¼åæ§è¡ifå¾ªç¯ |
| | | var HMaterNumber = data.ç©æä»£ç .toString(); //声æåéHMaterNumber 为 data.ç©æä»£ç |
| | | layer.open({ //ä½¿ç¨ layerçopenæå¼å¼¹åº å± |
| | | type: 2 //表示弹åºå±çå
容æ¯ä¸ä¸ª iframe |
| | | , area: ['100%', '100%'] |
| | | , title: 'åæ¶åºåä¿¡æ¯' //设置弹åºå±çååååé |
| | | , closeBtn: 1 //æ¾ç¤ºå
³éæé® |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: '../../WMSæ«ç 模å/åºåæ¥è¯¢/KF_ICInventoryByCLD_PDA.html?OperationType=2&HMaterNumber=' + HMaterNumber //设置 iframe ç URLï¼URL ä¸å
å«äºæ¥è¯¢åæ°ï¼æ¥è°ç¨æéè¦çå¼ |
| | | , resize: false, //æ¯å¦å
è®¸ç¨æ·è°æ´å¼¹åºå¤§å° |
| | | end: function () { //å½å
³éæ¶è°ç¨ |
| | | } |
| | | , cancel: function () { //ç¹å»åæ¶æ¶ä½¿ç¨åè° |
| | | } |
| | | }) |
| | | } |
| | | }); |
| | | //#endregion |
| | | |
| | | //夿æ¯å¦æ°å¢ï¼è·åæå¤§åæ®å· |
| | | if (HInterID != 0) { |
| | |
| | | for (var i = 0; i < data.length; i++) { |
| | | if ($.inArray(data[i].name, titleData) > -1) { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //éèidå |
| | | } |
| | | else { |
| | | } else if (data[i].name == 'ç©æä»£ç ') { |
| | | col.push({ |
| | | field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 120, event: 'ç©æä»£ç ', event: 'ç©æä»£ç ', templet: function (d) { |
| | | return '<span style="color: blue;">' + d.ç©æä»£ç + '</span>' |
| | | }, style: 'cursor: pointer;' |
| | | }); |
| | | } else { |
| | | switch (data[i].Type) { |
| | | //int |
| | | case 'DateTime': |
| | |
| | | |
| | | if (data[i].name == 'æ°é' || data[i].name == 'æºåæ°é' || data[i].name == 'æ¡ç 个æ°') { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', totalRow: true }); |
| | | } else if (data[i].name == 'ç©æåç§°' || data[i].name == 'è§æ ¼åå·') { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', width: 180 }); |
| | | } else { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center' }); |
| | | } |
| | |
| | | <div carousel-item=""> |
| | | <ul class="layui-row layui-col-space10 layui-this"> |
| | | <li class="layui-col-xs6"> |
| | | <a href="javascript:void(0);"> |
| | | <a lay-href="../views/计å管ç/å·¥èºè·¯çº¿/Gy_RoutingBillCheckQuery.html"> |
| | | <!--<a lay-href="app/content/comment.html" class="layadmin-backlog-body">--> |
| | | <h3>å¾
审忮</h3> |
| | | <p><cite>0</cite></p> |
| | | <h3>å·¥èºå¾
审忮</h3> |
| | | <p id="needCheckNumber"><cite>0</cite></p> |
| | | </a> |
| | | </li> |
| | | <li class="layui-col-xs6"> |
| | |
| | | |
| | | get_Display(); |
| | | get_Notices(); |
| | | getNeedCheckRouting(); |
| | | } |
| | | |
| | | //页é¢å
¶å®æ¹æ³ |
| | |
| | | }); |
| | | layer.close(index); |
| | | } |
| | | |
| | | function getNeedCheckRouting() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Gy_Routing/NeedChecklist", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "user": sessionStorage["HUserName"], "userid": sessionStorage["Czybm"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | const uniqueHinterIDs = new Set(data1.data.map(item => item.hmainid)); |
| | | const uniqueHinterIDCount = uniqueHinterIDs.size; |
| | | $("#needCheckNumber").text(uniqueHinterIDCount); |
| | | if (data1.data.length != 0) { |
| | | $("#needCheckNumber").css("color", "red"); |
| | | } |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | }); |
| | | </script> |
| | | </body> |
| | |
| | | </li> |
| | | |
| | | <li class="layui-col-xs3"> |
| | | <a href="../ä»å管ç/æ¡ç åºå/KF_ICInventoryByMaterID.html" target="main_self_frame"> |
| | | <a href="../WMSæ«ç 模å/åºåæ¥è¯¢/KF_ICInventoryByCLD_PDA.html" target="main_self_frame"> |
| | | <i class="layui-icon layui-icon-find-fill"></i> |
| | | <cite>åºåæ¥è¯¢</cite> |
| | | <cite>ERPåæ¶åºåæ¥è¯¢</cite> |
| | | </a> |
| | | </li> |
| | | <li class="layui-col-xs3"> |
| | |
| | | <dd><a lay-href="车é´ç®¡ç/产线/MES_AssemblyTraceability.html">产线ç»è£
追溯å</a></dd> |
| | | <dd><a lay-href="车é´ç®¡ç/产线/MES_AssemblyTraceabilityList.html">产线ç»è£
追溯åå表</a></dd> |
| | | <dd><a lay-href="车é´ç®¡ç/产线/MES_ProductionLinePackaging.html">产线å
è£
å</a></dd> |
| | | <dd><a lay-href="车é´ç®¡ç/产线/MES_ProductionLinePackaging_MXG.html">产线å
è£
å_墨西å¥</a></dd> |
| | | <dd><a lay-href="车é´ç®¡ç/产线/MES_ProductionLinePackagingList.html">产线å
è£
åå表</a></dd> |
| | | <dd><a lay-href="车é´ç®¡ç/产线/Sc_PackUnionBillCacheList.html">产线å
è£
åç¼åå表</a></dd> |
| | | <dd><a lay-href="车é´ç®¡ç/产线/Sc_GroupOrderBill.html">äº§çº¿ç»æå</a></dd> |
| | |
| | | </a> |
| | | <dl class="layui-nav-child"> |
| | | <!--<dd> |
| | | <a lay-href="车é´ç®¡ç/å·¥åºæµè½¬/MES_StationInBill_PDA_OLD.html" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å·¥åºè¿ç«æ¥æ¶å |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | | <a lay-href="车é´ç®¡ç/å·¥åºè¿ç«æ¥æ¶å/Sc_StationInBill_Mul_PDA.html" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å·¥åºè¿ç«æ¥æ¶åæ¹é |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | | <a lay-href="车é´ç®¡ç/å·¥åºæµè½¬/MES_StationOutBill_PDA_OLD.html" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å·¥åºåºç«æ±æ¥å |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | | <a lay-href="车é´ç®¡ç/å·¥åºåºç«æ±æ¥å/Sc_StationOutBill_Mul_PDA.html" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å·¥åºåºç«æ±æ¥åæ¹é |
| | | </a> |
| | | </dd>--> |
| | | <a lay-href="车é´ç®¡ç/å·¥åºæµè½¬/MES_StationInBill_PDA_OLD.html" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å·¥åºè¿ç«æ¥æ¶å |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | | <a lay-href="车é´ç®¡ç/å·¥åºè¿ç«æ¥æ¶å/Sc_StationInBill_Mul_PDA.html" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å·¥åºè¿ç«æ¥æ¶åæ¹é |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | | <a lay-href="车é´ç®¡ç/å·¥åºæµè½¬/MES_StationOutBill_PDA_OLD.html" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å·¥åºåºç«æ±æ¥å |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | | <a lay-href="车é´ç®¡ç/å·¥åºåºç«æ±æ¥å/Sc_StationOutBill_Mul_PDA.html" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å·¥åºåºç«æ±æ¥åæ¹é |
| | | </a> |
| | | </dd>--> |
| | | <!--<dd> |
| | | <a lay-href="车é´ç®¡ç/å§å¤å·¥åºååºå/Cj_StationEntrustInBill_PDA.html" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å·¥åºå§å¤ååºå |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | | <a lay-href="车é´ç®¡ç/å§å¤å·¥åºååºå/Cj_StationEntrustInBill_Mul_PDA.html" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å·¥åºå§å¤ååºåæ¹é |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | | <a lay-href="车é´ç®¡ç/å§å¤å·¥åºæ¥æ¶å/Cj_StationEntrustOutBill_PDA.html" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å·¥åºå§å¤æ¥æ¶å |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | | <a lay-href="车é´ç®¡ç/å§å¤å·¥åºæ¥æ¶å/Cj_StationEntrustOutBill_Mul_PDA.html" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å·¥åºå§å¤æ¥æ¶åæ¹é |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | | <a lay-href="ç产工åºç®¡ç/å·¥åºæ±æ¥å/Sc_ProcessReportOverList.html" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å·¥åºæ±æ¥å
¥åºå表 |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | | <a lay-href="ç»è£
å/Sc_PCruxBindingPDA.html" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | 产线å
³é®ä»¶ç»å® |
| | | </a> |
| | | </dd>--> |
| | | <a lay-href="车é´ç®¡ç/å§å¤å·¥åºååºå/Cj_StationEntrustInBill_PDA.html" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å·¥åºå§å¤ååºå |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | | <a lay-href="车é´ç®¡ç/å§å¤å·¥åºååºå/Cj_StationEntrustInBill_Mul_PDA.html" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å·¥åºå§å¤ååºåæ¹é |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | | <a lay-href="车é´ç®¡ç/å§å¤å·¥åºæ¥æ¶å/Cj_StationEntrustOutBill_PDA.html" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å·¥åºå§å¤æ¥æ¶å |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | | <a lay-href="车é´ç®¡ç/å§å¤å·¥åºæ¥æ¶å/Cj_StationEntrustOutBill_Mul_PDA.html" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å·¥åºå§å¤æ¥æ¶åæ¹é |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | | <a lay-href="ç产工åºç®¡ç/å·¥åºæ±æ¥å/Sc_ProcessReportOverList.html" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å·¥åºæ±æ¥å
¥åºå表 |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | | <a lay-href="ç»è£
å/Sc_PCruxBindingPDA.html" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | 产线å
³é®ä»¶ç»å® |
| | | </a> |
| | | </dd>--> |
| | | <!--<dd> |
| | | <a lay-href="" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å·¥åºæ±æ¥ånull |
| | | </a> |
| | | </dd>--> |
| | | <a lay-href="" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å·¥åºæ±æ¥ånull |
| | | </a> |
| | | </dd>--> |
| | | <!--<dd> |
| | | <a lay-href="" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å§å¤å·¥åºè®¡å转åºånull |
| | | </a> |
| | | </dd>--> |
| | | <a lay-href="" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å§å¤å·¥åºè®¡å转åºånull |
| | | </a> |
| | | </dd>--> |
| | | <!--<dd> |
| | | <a lay-href="" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å§å¤å·¥åºè®¡åæ±æ¥ånull |
| | | </a> |
| | | </dd>--> |
| | | <a lay-href="" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å§å¤å·¥åºè®¡åæ±æ¥ånull |
| | | </a> |
| | | </dd>--> |
| | | <dd> |
| | | <a href="车é´ç®¡ç/å·¥åºæµè½¬/MES_StationInBill_PDA.html?type=jzd" target="main_self_frame" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | |
| | | <a href="车é´ç®¡ç/å·¥åºæµè½¬/MES_StationOutBill_PDA.html?type=czd" target="main_self_frame" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å·¥åºåºç«æ±æ¥å |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | | <a href="ç产管ç/è´¨éæ±æ¥å/Sc_QualityReportBill_PDA.html" target="main_self_frame" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | çäº§è´¨éæ±æ¥å |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | | <a href="ä»å管ç/æ¡ç åºå/KF_ICInventoryByMaterID.html" target="main_self_frame" style="color: aqua;"> |
| | | <a href="WMSæ«ç 模å/åºåæ¥è¯¢/KF_ICInventoryByCLD_PDA.html" target="main_self_frame" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | åºåæ¥è¯¢ |
| | | ERPåæ¶åºåæ¥è¯¢ |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | |
| | | |
| | | //#region å¤æå¹¶è®¾ç½®æä½ç±»åã页é¢åå§å |
| | | if (OperationType == null || OperationType == 1) { //æ°å¢ |
| | | ////ç¦ç¨ç»ç»é项 |
| | | //$("#HOrgID").attr("disabled", true); |
| | | OperationType = 1; |
| | | |
| | | OperationType = 1; |
| | | //åå§å项ç®é¶æ®µè¡¨ |
| | | get_InitGrid(); |
| | | |
| | | //çæå¹¶è®¾ç½®ä¸»è¡¨çå
ç ååæ®å· |
| | | createBillNo(); |
| | | |
| | | |
| | | //åå§åå¶å人åå¶åæ¶é´ |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | $("#HMakerDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | |
| | | //åå§åæ¥æ |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | |
| | | |
| | | } |
| | | else if (OperationType == 2) {//å¦æä¿®æ¹åèµ°ä¸é¢ new //ç¼è¾ |
| | | |
| | | //åå§å项ç®é¶æ®µè¡¨ |
| | | get_InitGrid(); |
| | | RoadBillMain(linterid); |
| | | //çæå¹¶è®¾ç½®ä¸»è¡¨çå
ç ååæ®å· |
| | | createBillNo(); |
| | | //åå§åå¶å人åå¶åæ¶é´ |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | $("#HMakerDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | //åå§åæ¥æ |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | OperationType = 1; |
| | | } |
| | | else if (OperationType == 3) {//å¦æä¿®æ¹åèµ°ä¸é¢ new //ç¼è¾ |
| | | ////ç¦ç¨ç»ç»é项 |
| | |
| | | |
| | | //主表 èµå¼ |
| | | form.val("formData", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HInterID": data[0]["hmainid"] |
| | | , "HBillNo": data[0]["åæ®å·"] |
| | | , "HDate": formatDate(data[0]["æ¥æ"]) |
| | | "HInterID": OperationType == 2 ? "" :data[0]["hmainid"] |
| | | , "HBillNo": OperationType == 2 ? "" :data[0]["åæ®å·"] |
| | | , "HDate": OperationType == 2 ? "" :formatDate(data[0]["æ¥æ"]) |
| | | , "HDeptID": data[0]["HDeptID"] |
| | | , "HDeptName": data[0]["é¨é¨åç§°"] |
| | | , "HPostID": data[0]["HPostID"] |
| | |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_AddNew"><i class="layui-icon layui-icon-file-b"></i>æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ShowBill"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_Copy" id="set_Copy"><i class="layui-icon layui-icon-form"></i>å¤å¶</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_DeleteBill"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Audit"><i class="layui-icon layui-icon-radio"></i>å®¡æ ¸</button> |
| | |
| | | break; |
| | | //ç¼è¾ |
| | | case 'set_ShowBill': set_ShowBill(); |
| | | break; |
| | | //å¤å¶ |
| | | case 'set_Copy': set_Copy(); |
| | | break; |
| | | //å é¤ |
| | | case 'set_DeleteBill': set_DeleteBill(); |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //å¤å¶ |
| | | function set_Copy() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var linterid = data[0].hmainid.toString(); |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'æ°å¢' + HPageTitle |
| | | , shift: 0//å¼¹åºå¨ç» |
| | | , content: '../../å·¥èµç®¡ç/å²ä½æè½æ¸
å/HR_PostSkillBill.html?OperationType=2&linterid=' + linterid + '&HSouceBillType=' |
| | | , end: function () { |
| | | //å·æ°é¡µé¢, |
| | | location.reload(); |
| | | } |
| | | }) |
| | | } else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ç¼è¾ï¼'); |
| | | } |
| | | } |
| | | |
| | | //#region å é¤ |
| | | function set_DeleteBill() { |
| | |
| | | option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 'full-180' |
| | | , page: true |
| | | , height: 'full-80' |
| | | , page: false |
| | | , cellMinWidth: 90 |
| | | , totalRow: true |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , limit: Number.MAX_VALUE |
| | | //, limits: [50, 500, 5000, 20000] |
| | | , done: function (res, curr, count) { |
| | | soulTable.render(this); |
| | | } |
| | |
| | | option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 'full-180' |
| | | , page: true |
| | | , height: 'full-80' |
| | | , page: false |
| | | , cellMinWidth: 90 |
| | | , totalRow: true |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , limit: Number.MAX_VALUE |
| | | //, limits: [50, 500, 5000, 20000] |
| | | , done: function (res, curr, count) { |
| | | soulTable.render(this); |
| | | } |
New file |
| | |
| | | <!DOCTYPE html> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | | <title>ç³»ç»è®¡ä»¶æ¥è¡¨</title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></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/layui/layui.js"></script> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid"> |
| | | <div class="layui-col-md12"> |
| | | <div class="layui-card" style="padding: 1px"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="component-form-group"> |
| | | <div class="layui-collapse"> |
| | | <div class="layui-colla-item"> |
| | | <div class="layui-colla-title layui-inline"> |
| | | <div class="layui-inline"> |
| | | <span>æ´å¤</span> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç产车é´</label> |
| | | <div class="layui-input-block"> |
| | | <select name="HDeptID" id="HDeptID" lay-verify="required" lay-search class="layui-input ForFilteringSchemes"> |
| | | <!--å¨ææ¸²æè½¦é´--> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">çç»<label style="color:red"></label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HGroupName" id="HGroupName" readonly class="layui-input" value="" style="background-color: #efefef4d; float: left; width: 150px;"> |
| | | <input type="hidden" name="HGroupID" id="HGroupID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HGroupList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">èå</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HEmpName" id="HEmpName" style="float:left;width:150px;" readonly> |
| | | <input type="hidden" class="layui-input" name="HEmpID" id="HEmpID" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HEmpList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¼å§æ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" name="HBDate" id="HBDate" style="width:150px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç»ææ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" name="HEDate" id="HEDate" style="width:150px;"> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">éç½®</button> |
| | | </div> |
| | | </div> |
| | | <table class="" id="mainTable" lay-filter="mainTable"></table> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-reload"><i class="layui-icon layui-icon-refresh"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_export" id="get_export"><i class="layui-icon layui-icon-export"></i>导åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | </div> |
| | | </script> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <script> |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index', //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate', 'soulTable'], function () { |
| | | |
| | | //#region å
Œ
±åé |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element |
| | | , laypage = layui.laypage |
| | | , laydate = layui.laydate |
| | | , soulTable = layui.soulTable |
| | | var ins; |
| | | var sWhere = ""; |
| | | var option = []; |
| | | var HModName = "Pay_PaymentEntryReport"; |
| | | var titleData = [];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | | |
| | | //åå§åçé¢ |
| | | set_ClearBill(); |
| | | //#endregion |
| | | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | |
| | | //æ¥è¯¢æé® |
| | | form.on('submit(btnSearch)', function (data) { |
| | | get_FastQuery(); |
| | | }); |
| | | |
| | | //éç½®æé® |
| | | form.on('submit(btnReSearch)', function (data) { |
| | | //æ¸
ç©ºè¿æ»¤æ¡ä»¶ |
| | | set_ClearQuery(); |
| | | get_FastQuery(); |
| | | }); |
| | | |
| | | //#region éæ©çç»æé® |
| | | form.on('submit(HGroupList)', function () { |
| | | get_checkGroup(); |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region éæ©èå |
| | | form.on('submit(HEmpList)', function () { |
| | | get_checkEmp() |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region 头工å
·æ äºä»¶ |
| | | table.on('toolbar(mainTable)', function (obj) { |
| | | var checkStatus = table.checkStatus(obj.config.id);//è·åéä¸è¡ æ°æ® |
| | | switch (obj.event) { |
| | | //å设置 |
| | | case 'set_HideColumn': |
| | | get_HideColumn(); |
| | | break; |
| | | case 'btn-reload': |
| | | get_FastQuery(); |
| | | break; |
| | | //导åºexcel |
| | | case 'get_export': |
| | | get_Export(); |
| | | break; |
| | | //éåº |
| | | case 'btn-exit': Pub_Close(2); |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢ææçæ¹æ³ |
| | | |
| | | //#region åå§åçé¢ |
| | | function set_ClearBill() { |
| | | get_Dept(); |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | $("#HBDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd")); |
| | | $("#HEDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | //æ¥è¯¢ |
| | | get_FastQuery(1); |
| | | } |
| | | //#endregion |
| | | |
| | | function set_InitGrid() { |
| | | option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 'full-80' |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , totalRow: true |
| | | , limit: 5000 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , done: function (res, curr, count) { |
| | | soulTable.render(this); |
| | | } |
| | | , cols: [[]] |
| | | }; |
| | | } |
| | | |
| | | //çäº§è½¦é´ |
| | | function get_Dept() { |
| | | //è·å车é´å |
| | | var HDeptID = '<option value="0" style="color:red;" selected>å
¨é¨è½¦é´</option>'; |
| | | $.ajax({ |
| | | type: "get", |
| | | url: GetWEBURL() + "/Sc_ICMOBill/GetHDeptList", |
| | | async: false, |
| | | data: { "HOrgID": sessionStorage["OrganizationID"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data; |
| | | for (var i = 0; i < data.length; i++) { |
| | | HDeptID += '<option style="color:blue;" value="' + data[i].HItemID + '" >' + data[i].HName + '</option>'; |
| | | } |
| | | $("#HDeptID").append(HDeptID); |
| | | |
| | | if (sessionStorage["HDeptID"] != "0") { |
| | | $("#HDeptID").val(sessionStorage["HDeptID"]); |
| | | //ç¨æ·ç»å®ç车é´ä¸åå¨ï¼åé»è®¤æ¾ç¤ºå
¨é¨è½¦é´ |
| | | if ($("#HDeptID").val() == null || $("#HDeptID").val() == undefined) { |
| | | $("#HDeptID").val(0); |
| | | } |
| | | } |
| | | |
| | | //$("#HDeptName").val("0"); |
| | | |
| | | form.render('select'); |
| | | |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | //#region éç½®è¿æ»¤æ¡ä»¶æ¹æ³ |
| | | function set_ClearQuery() { |
| | | $("#HBDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));//å¼å§æ¥æ |
| | | $("#HEDate").val(Format(new Date(), "yyyy-MM-dd"));//ç»ææ¥æ |
| | | $("#HDeptID").val(0); //é¨é¨ |
| | | $("#HEmpID").val(0); //èå |
| | | $("#HEmpName").val(""); |
| | | $("#HGroupID").val(0); //çç» |
| | | $("#HGroupName").val(""); |
| | | form.render('select'); |
| | | sWhere = ""; |
| | | } |
| | | //#endregion |
| | | |
| | | //#region æ¥è¯¢ |
| | | function get_Display(sWhere) { |
| | | var ajaxLoad = layer.load(0, { shade: false }); |
| | | $.ajax({ |
| | | //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum", |
| | | url: GetWEBURL() + '/Pay_PaymentEntryReport/list', |
| | | type: "GET", |
| | | data: { sWhere: sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | var data = [];//ååæ®µæ°æ® |
| | | var col = []; |
| | | var totalArray = []; |
| | | //ç»ç©ºçæ°ç»èµå¼ |
| | | for (var key in data1.list) {//循åºéåæ°ç» |
| | | data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType });//仿¯ä¸ªå¯¹è±¡ä¸æåæ°æ® |
| | | } |
| | | //å¨å表左边添å å¾éæ¡ |
| | | col.push({ type: 'checkbox', fixed: 'left', totalRowText: 'å计' }); |
| | | for (var i = 0; i < data.length; i++) {//éådataæ°ç»éçæ°æ® |
| | | // if (data[i].name == 'HInterID' || data[i].name == 'HBillType' || data[i].name == 'hmainid') { |
| | | if ($.inArray(data[i].name, titleData) > -1) {//æ£æ¥dataãiã.nameæ¯å¦å¨æ°ç»ä¸ //计ç®å |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //éèidå |
| | | } |
| | | else if ($.inArray(data[i].name, totalArray) > -1) { //计ç®å |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, totalRow: true, width: 120 }); |
| | | } else if (data[i].name == 'åæ®å·') { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200, event: 'åæ®å·' }); |
| | | } else { |
| | | switch (data[i].Type) { |
| | | //int |
| | | case 'DateTime': |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + (data[i].name == "è¡å
³éæ¥æ" ? "è¡å
³é人" : data[i].name) + " ==''?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd HH:mm:ss')}}</div>", width: 200 }); |
| | | break; |
| | | default: |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 }); |
| | | } |
| | | } |
| | | } |
| | | |
| | | option.cols = [col] |
| | | option.data = data1.data; |
| | | table.render(option); |
| | | layer.close(ajaxLoad); |
| | | |
| | | DisPlay_HideColumn(); |
| | | //layer.alert("æ¥è¯¢æå", { icon: 1 }); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region å¿«éè¿æ»¤ |
| | | function get_FastQuery() { |
| | | var HBDate = $("#HBDate").val();//å¼å§æ¶é´ |
| | | var HEDate = $("#HEDate").val();//ç»ææ¶é´ |
| | | var HDeptID = $("#HDeptID").val(); |
| | | var HEmpID = $("#HEmpID").val(); |
| | | var HGroupID = $("#HGroupID").val(); |
| | | sWhere = "'" + HBDate + "','" + HEDate + "','" + HDeptID + "','" + HGroupID + "','" + HEmpID + "'"; |
| | | get_Display(sWhere); |
| | | sWhere = "";//è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | } |
| | | //#endregion |
| | | |
| | | //#region éæ©èå |
| | | function get_checkEmp() { |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'èå', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_EmployeeList.html?Type=HEmpList', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HEmpID").val(checkStatus.data[0].HItemID); |
| | | $("#HEmpName").val(checkStatus.data[0].èååç§°); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | | //#endregion |
| | | |
| | | //#region 导åºExecel |
| | | function get_Export() { |
| | | var ModRightNameCheck = "Pay_PaymentEntryReportExcel"; |
| | | |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/LMES/getReportByModRightNameCheck", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "ModRightNameCheck": ModRightNameCheck, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | var data = option.data |
| | | data.forEach((item) => { |
| | | for (let itemobj in item) { |
| | | if (item[itemobj] == null) { |
| | | item[itemobj] = ""; |
| | | } |
| | | if (item[itemobj].length > 0) { // åè®¾åæ®µå为field |
| | | item[itemobj] = item[itemobj].toString().replace(/[\r\n]+/g, ''); // å°æ¢è¡ç¬¦æ¿æ¢ä¸ºç©ºå符串 |
| | | } |
| | | } |
| | | }); |
| | | table.exportFile(ins.config.id, option.data, "xls"); |
| | | } else { |
| | | layer.alert("å½åæ¨¡åæ²¡æå¯¼åºæé!", { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region éæ©çç» |
| | | function get_checkGroup() { |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "çç»å表" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ['../../åºç¡èµæ/å·¥èµåºç¡èµæ/Gy_Group.html?Type=HGroup', 'yes'] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //æé®ä¸ çåè° |
| | | var iframeWindow = window["layui-layer-iframe" + index]; //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus("mainTable"); //è·åéä¸çæ°æ® |
| | | |
| | | if (checkStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | $("#HGroupName").val(checkStatus.data[0].çç»åç§°); |
| | | $("#HGroupID").val(checkStatus.data[0].HItemID); |
| | | |
| | | layer.close(index); //å
³éå¼¹çª å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | , end: function () { |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | //#region éèå设置 |
| | | function get_HideColumn() { |
| | | var colName = ""; |
| | | for (var i = 1; i < option.cols[0].length; i++) { |
| | | colName += option.cols[0][i]["field"] + ","; |
| | | } |
| | | |
| | | colName = encodeURI(colName.substring(0, colName.length - 1));//对 URI è¿è¡ç¼ç |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "éèå设置" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["50%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ['../../åºç¡èµæ/éèå设置/Gy_GridView_Hide_New.html?HModName=' + HModName + '&colName=' + colName, "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | DisPlay_HideColumn(); |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //#region æ¾ç¤ºåæ°æ® |
| | | function DisPlay_HideColumn() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HModName": HModName, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.data.length != 0) { |
| | | |
| | | var dataCol = [];//æ°æ®åºæ¥è¯¢åºçåæ°æ® |
| | | var newCols = [[]];//å¯¹åºæ°æ®åºå顺åºcol |
| | | newCols[0].push(option.cols[0][0]);//æ¾å
¥ç¬¬ä¸ä¸ªcheckbox |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | | //åè®¾ç½®åæ°ä¸é¡µé¢åæ°æ¯å¦ä¸è´ |
| | | if (dataCol.length == option.cols[0].length - 1) { |
| | | //éå寻æ¾å设置对åºåæé¡ºåºæå
¥ |
| | | for (var j = 0; j < option.cols[0].length - 1; j++) { |
| | | for (var i = 0; i < option.cols[0].length - 1; i++) { |
| | | var dataCols = dataCol[j].split('|'); |
| | | //éæ©ä¸datacolsç¸åºåè¿è¡ä¿®æ¹ |
| | | if (option.cols[0][i + 1]["field"] == dataCols[5]) { |
| | | //éèå |
| | | if (dataCols[1] == 1) { |
| | | option.cols[0][i + 1]["hide"] = true; |
| | | } |
| | | //设置å宽 |
| | | if (dataCols[3] > 0) { |
| | | option.cols[0][i + 1]["width"] = dataCols[3]; |
| | | } |
| | | //设置å
容åä½å¤§å° |
| | | if (data1.data[0].HFontSize != 0) { |
| | | option.cols[0][i + 1]["style"] = "font-size:" + data1.data[0].HFontSize + "px;"; |
| | | } else { |
| | | option.cols[0][i + 1]["style"] = "font-size:100%"; |
| | | } |
| | | //æ¾ç¤ºå |
| | | if (dataCols[1] == 0 && $.inArray(option.cols[0][i + 1]["title"], titleData) == -1) { |
| | | option.cols[0][i + 1]["hide"] = false; |
| | | } |
| | | //ç»è®¡å |
| | | if (dataCols[6] == 1) { |
| | | option.cols[0][i + 1]["totalRow"] = true; |
| | | } |
| | | //å使å¨ä½ç½®(å·¦ å±
ä¸ å³) |
| | | switch (dataCols[2]) { |
| | | case "L": |
| | | option.cols[0][i + 1]["align"] = "left"; |
| | | break; |
| | | case "M": |
| | | option.cols[0][i + 1]["align"] = "center"; |
| | | break; |
| | | case "R": |
| | | option.cols[0][i + 1]["align"] = "right"; |
| | | break; |
| | | } |
| | | //è®¾ç½®è¡¨æ ¼title屿§æ¾ç¤ºå«å |
| | | if (dataCols[4] != null && dataCols[4] != "") { |
| | | option.cols[0][i + 1]["title"] = dataCols[4]; |
| | | } |
| | | newCols[0].push(option.cols[0][i + 1]); |
| | | } |
| | | } |
| | | } |
| | | //éå循ç¯å夿坹åºåæ°æ¯å¦ä¸è´ |
| | | if (dataCol.length == newCols[0].length - 1) { |
| | | option.cols = newCols; |
| | | //åæ¶å»ç»å |
| | | for (var i = 1; i < option.cols[0].length - 1; i++) { |
| | | if (option.cols[0][i]["fixed"] != null) { |
| | | option.cols[0][i]["fixed"] = null; |
| | | } |
| | | else { |
| | | break; |
| | | } |
| | | } |
| | | //å»ç»å |
| | | if (data1.data[0].HFixCols != 0) { |
| | | for (var i = 0; i < data1.data[0].HFixCols; i++) { |
| | | if ($.inArray(option.cols[0][i + 1]["title"], titleData) != -1) { |
| | | data1.data[0].HFixCols += 1; |
| | | } |
| | | option.cols[0][i + 1]["fixed"] = "left"; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ins = table.render(option); |
| | | } else { |
| | | ins = table.render(option); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //#region ç¹å»è¡éä¸é«äº® |
| | | //table.on('row(mainTable)', function (obj) { |
| | | // //éä¸è¡æ¹åé¢è² |
| | | // var flag = !obj.tr.find(':checkbox:first').prop('checked'); |
| | | // obj.tr.find(':checkbox').prop('checked', flag); |
| | | // if (flag) { |
| | | // obj.tr.find('.layui-form-checkbox').addClass('layui-form-checked'); //设置å¤éæ¡é䏿 ·å¼ |
| | | // $(obj.tr.selector).attr({ "style": "background:#ceedfa;color:black" });//æ¹åå½åtrèæ¯é¢è²ååä½é¢è² |
| | | // } else { |
| | | // obj.tr.find('.layui-form-checkbox').removeClass('layui-form-checked');//åæ¶å¤éæ¡é䏿 ·å¼ |
| | | // $(obj.tr.selector).attr({ "style": "background:" });//åæ¶å½åtré¢è² |
| | | // } |
| | | // //mainTable ä¸ºè¡¨æ ¼ID æ³¨ææ¤å¤å¦æID䏿£ç¡®å°å¯¼è´ä½ å¨çå¬å¤éæ¡æ¶è·åä¸å°ä½ éæ©çæ°æ®ï¼åé¢çåªæ¯æ·»å æå é¤é䏿ªé䏿 ·å¼ä»¥åè®¾ç½®èæ¯è²ï¼åä½é¢è² |
| | | // layui.each(table.cache.mainTable, function (i, l) { |
| | | // if (obj.tr.index() == l.LAY_TABLE_INDEX) { |
| | | // l.LAY_CHECKED = flag; |
| | | // } |
| | | // }); |
| | | //}) |
| | | //#endregion |
| | | |
| | | |
| | | //以䏿¯layui模å |
| | | }); |
| | | function GetHEmpListValue(obj) { //è¿åèå |
| | | $("#HEmpID").val(obj.HItemID); |
| | | $("#HEmpName").val(obj.èååç§°); |
| | | } |
| | | function GetHGroupValue(obj) //è¿åçç» |
| | | { |
| | | $("#HGroupName").val(obj[0].çç»åç§°); |
| | | $("#HGroupID").val(obj[0].HItemID); |
| | | } |
| | | |
| | | |
| | | |
| | | </script> |
| | | |
| | | </body> |
| | | </html> |
| | |
| | | option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 'full-180' |
| | | , page: true |
| | | , height: 'full-80' |
| | | , page: false |
| | | , cellMinWidth: 90 |
| | | , totalRow: true |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , limit: Number.MAX_VALUE |
| | | //, limits: [50, 500, 5000, 20000] |
| | | , done: function (res, curr, count) { |
| | | soulTable.render(this); |
| | | } |
| | |
| | | option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 'full-180' |
| | | , page: true |
| | | , height: 'full-80' |
| | | , page: false |
| | | , cellMinWidth: 90 |
| | | , totalRow: true |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , limit: Number.MAX_VALUE |
| | | //, limits: [50, 500, 5000, 20000] |
| | | , done: function (res, curr, count) { |
| | | soulTable.render(this); |
| | | } |
| | |
| | | option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 'full-180' |
| | | , page: true |
| | | , height: 'full-80' |
| | | , page: false |
| | | , cellMinWidth: 90 |
| | | , totalRow: true |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , limit: Number.MAX_VALUE |
| | | //, limits: [50, 500, 5000, 20000] |
| | | , done: function (res, curr, count) { |
| | | soulTable.render(this); |
| | | } |
| | |
| | | <input type="text" class="layui-input ForFilteringSchemes" name="HBillNo" id="HBillNo"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">çç»</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input ForFilteringSchemes" name="HGroupName" id="HGroupName"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">èå</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input ForFilteringSchemes" name="HEmpName" id="HEmpName"> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | |
| | | $("#HBeginDate").val(Pub_Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));//å¼å§æ¥æ |
| | | $("#HEndDate").val(Pub_Format(new Date(), "yyyy-MM-dd"));;//ç»ææ¥æ |
| | | $("#HBillNo").val("");//åæ®å· |
| | | $("#HGroupName").val(""); |
| | | $("#HEmpName").val(""); |
| | | $("#ColContent").val(""); |
| | | $("#ColName").val("0"); |
| | | $("#Comparator").val("0"); |
| | |
| | | var HBeginDate = $("#HBeginDate").val();//å¼å§æ¥æ |
| | | var HEndDate = $("#HEndDate").val();//ç»ææ¥æ |
| | | var HBillNo = $("#HBillNo").val();//åæ®å· |
| | | var HGroupName = $("#HGroupName").val();//çç» |
| | | var HEmpName = $("#HEmpName").val();//èå |
| | | var ColName = $("#ColName").val();//å¤éæ¡ |
| | | var Comparator = $("#Comparator").val() |
| | | var ColContent = $("#ColContent").val(); |
| | |
| | | } |
| | | if (HBillNo) { |
| | | sWhere += " and åæ®å· like '%" + HBillNo + "%'"; |
| | | } |
| | | if (HGroupName) { |
| | | sWhere += " and çç» like '%" + HGroupName + "%'"; |
| | | } |
| | | if (HEmpName) { |
| | | sWhere += " and èååç§° like '%" + HEmpName + "%'"; |
| | | } |
| | | get_DisplayPage(sWhere); |
| | | sWhere = "";//è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | |
| | | |
| | | columns = col; |
| | | option.cols = [col]; |
| | | //option.data = data1.data; |
| | | //设置å表åä¸ä¸ªåæ®åªæç¬¬ä¸æ¡æ°æ®æ¾ç¤ºä¸»è¡¨ä¿¡æ¯ï¼å
¶å®è®°å½åªæ¾ç¤ºåè¡¨ä¿¡æ¯ |
| | | //è·ååè¡¨åæ°æ® |
| | | var colList = []; |
| | | for (var i = 0; i < option.cols[0].length; i++) { |
| | | colList.push(option.cols[0][i].field); |
| | | } |
| | | //è®¾ç½®æ°æ® |
| | | var result = data1.data; |
| | | var temp = ""; |
| | | for (var i = 0; i < result.length; i++) { |
| | | if (temp != result[i]["åæ®å·"]) { |
| | | temp = result[i]["åæ®å·"]; |
| | | } else { |
| | | var initIndex = $.inArray("åæ®å·", colList); |
| | | var lastIndex = $.inArray("hsubid", colList); |
| | | for (var j = initIndex; j < lastIndex; j++) { |
| | | var fieldName = colList[j]; |
| | | result[i][fieldName] = ""; |
| | | } |
| | | } |
| | | } |
| | | option.data = result; |
| | | option.data = data1.data; |
| | | |
| | | option.totalRow = true; |
| | | laypage.render(optionPage); |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | |
| | | <input type="text" class="layui-input ForFilteringSchemes" name="HBillNo" id="HBillNo"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">çç»</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input ForFilteringSchemes" name="HGroupName" id="HGroupName"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">èå</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input ForFilteringSchemes" name="HEmpName" id="HEmpName"> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | |
| | | $("#HBeginDate").val(Pub_Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));//å¼å§æ¥æ |
| | | $("#HEndDate").val(Pub_Format(new Date(), "yyyy-MM-dd"));;//ç»ææ¥æ |
| | | $("#HBillNo").val("");//åæ®å· |
| | | $("#HGroupName").val(""); |
| | | $("#HEmpName").val(""); |
| | | $("#ColContent").val(""); |
| | | $("#ColName").val("0"); |
| | | $("#Comparator").val("0"); |
| | |
| | | var HBeginDate = $("#HBeginDate").val();//å¼å§æ¥æ |
| | | var HEndDate = $("#HEndDate").val();//ç»ææ¥æ |
| | | var HBillNo = $("#HBillNo").val();//åæ®å· |
| | | var HGroupName = $("#HGroupName").val();//çç» |
| | | var HEmpName = $("#HEmpName").val();//èå |
| | | var ColName = $("#ColName").val();//å¤éæ¡ |
| | | var Comparator = $("#Comparator").val() |
| | | var ColContent = $("#ColContent").val(); |
| | |
| | | } |
| | | if (HBillNo) { |
| | | sWhere += " and åæ®å· like '%" + HBillNo + "%'"; |
| | | } |
| | | if (HGroupName) { |
| | | sWhere += " and çç» like '%" + HGroupName + "%'"; |
| | | } |
| | | if (HEmpName) { |
| | | sWhere += " and èååç§° like '%" + HEmpName + "%'"; |
| | | } |
| | | get_DisplayPage(sWhere); |
| | | sWhere = "";//è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | |
| | | |
| | | columns = col; |
| | | option.cols = [col]; |
| | | //option.data = data1.data; |
| | | //设置å表åä¸ä¸ªåæ®åªæç¬¬ä¸æ¡æ°æ®æ¾ç¤ºä¸»è¡¨ä¿¡æ¯ï¼å
¶å®è®°å½åªæ¾ç¤ºåè¡¨ä¿¡æ¯ |
| | | //è·ååè¡¨åæ°æ® |
| | | var colList = []; |
| | | for (var i = 0; i < option.cols[0].length; i++) { |
| | | colList.push(option.cols[0][i].field); |
| | | } |
| | | //è®¾ç½®æ°æ® |
| | | var result = data1.data; |
| | | var temp = ""; |
| | | for (var i = 0; i < result.length; i++) { |
| | | if (temp != result[i]["åæ®å·"]) { |
| | | temp = result[i]["åæ®å·"]; |
| | | } else { |
| | | var initIndex = $.inArray("åæ®å·", colList); |
| | | var lastIndex = $.inArray("hsubid", colList); |
| | | for (var j = initIndex; j < lastIndex; j++) { |
| | | var fieldName = colList[j]; |
| | | result[i][fieldName] = ""; |
| | | } |
| | | } |
| | | } |
| | | option.data = result; |
| | | option.data = data1.data; |
| | | |
| | | option.totalRow = true; |
| | | laypage.render(optionPage); |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | |
| | | $("#HSourceBillNo").val(""); |
| | | $("#HMaterNumber").val(""); |
| | | sWhere = ""; |
| | | get_Display(sWhere); |
| | | get_DisplayPage(sWhere); |
| | | |
| | | break; |
| | | //ä½åºæé® |
| | |
| | | //do something |
| | | page = obj.curr; |
| | | size = obj.limit; |
| | | get_DisplayPage(""); |
| | | // å设æé®æä¸ä¸ªID为"myButton" |
| | | $("#btnSearch").trigger("click"); |
| | | } |
| | | } |
| | | } |
| | |
| | | <div class="layui-input-block"> |
| | | <select name="HMouldStatus" lay-filter="HMouldStatus" id="HMouldStatus"> |
| | | <option value="å¨åº" selected="selected">å¨åº</option> |
| | | <option value="䏿º">䏿º</option> |
| | | <option value="åºåº">åºåº</option> |
| | | <option value="å¨é">å¨é</option> |
| | | <option value="丢失">丢失</option> |
| | | <option value="éå®">éå®</option> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ææ´¾å¤ç人:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HHandleEmpName" id="HHandleEmpName" class="layui-input" value="" style="float:left;" disabled> |
| | | <input type="hidden" name="HHandleEmpID" id="HHandleEmpID" class="layui-input" value="0" style="float:left;"> |
| | | <input type="text" name="HHandleEmpName" id="HHandleEmpName" class="layui-input" value="" style="float:left;width:150px;" disabled> |
| | | <input type="hidden" name="HHandleEmpID" id="HHandleEmpID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HHandleEmpList" id="HHandleEmpList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | $("#HHandleEmpName").val("åæé"); //ææ´¾å¤ç人 |
| | | $("#HHandleEmpID").val(162622); //ææ´¾å¤ç人 |
| | | } else if ($("#HErrMsgBackTypeName").val() == "ç¯å¢åå ") { |
| | | $("#HHandleEmpName").val("åæé"); //ææ´¾å¤ç人 |
| | | $("#HHandleEmpID").val(162622); //ææ´¾å¤ç人 |
| | | //$("#HHandleEmpName").val("åæé"); //ææ´¾å¤ç人 |
| | | //$("#HHandleEmpID").val(162622); //ææ´¾å¤ç人 |
| | | } |
| | | } |
| | | else if (sessionStorage["HDept"] == "ç产é¨1-éè¯") { |
| | | if ($("#HErrMsgBackTypeName").val() == "人ååå ") { |
| | | $("#HHandleEmpName").val("ç¨å¸"); //ææ´¾å¤ç人 |
| | | $("#HHandleEmpID").val(161720); //ææ´¾å¤ç人 |
| | | } else if ($("#HErrMsgBackTypeName").val() == "设å¤åå ") { |
| | | $("#HHandleEmpName").val("å¾å»ºæ´ª"); //ææ´¾å¤ç人 |
| | | $("#HHandleEmpID").val(162576); //ææ´¾å¤ç人 |
| | | } else if ($("#HErrMsgBackTypeName").val() == "ææåå ") { |
| | | $("#HHandleEmpName").val("ç¨å¸"); //ææ´¾å¤ç人 |
| | | $("#HHandleEmpID").val(161720); //ææ´¾å¤ç人 |
| | | } else if ($("#HErrMsgBackTypeName").val() == "å·¥èºåå ") { |
| | | $("#HHandleEmpName").val("ç强"); //ææ´¾å¤ç人 |
| | | $("#HHandleEmpID").val(163378); //ææ´¾å¤ç人 |
| | | } else if ($("#HErrMsgBackTypeName").val() == "模å
·åå ") { |
| | | //$("#HHandleEmpName").val("å´æ"); //ææ´¾å¤ç人 |
| | | //$("#HHandleEmpID").val(162686); //ææ´¾å¤ç人 |
| | | } else if ($("#HErrMsgBackTypeName").val() == "æµè¯åå ") { |
| | | $("#HHandleEmpName").val("å¼ å»ºé¹"); //ææ´¾å¤ç人 |
| | | $("#HHandleEmpID").val(162525); //ææ´¾å¤ç人 |
| | | } else if ($("#HErrMsgBackTypeName").val() == "ç¯å¢åå ") { |
| | | $("#HHandleEmpName").val("å忣"); //ææ´¾å¤ç人 |
| | | $("#HHandleEmpID").val(162526); //ææ´¾å¤ç人 |
| | | } |
| | | } |
| | | else if (sessionStorage["HDept"] == "ç产é¨1-ç»è£
") { |
| | | if ($("#HErrMsgBackTypeName").val() == "人ååå ") { |
| | | $("#HHandleEmpName").val("ç¨å¸"); //ææ´¾å¤ç人 |
| | | $("#HHandleEmpID").val(161720); //ææ´¾å¤ç人 |
| | | } else if ($("#HErrMsgBackTypeName").val() == "设å¤åå ") { |
| | | $("#HHandleEmpName").val("æ¾ä¸é«"); //ææ´¾å¤ç人 |
| | | $("#HHandleEmpID").val(162573); //ææ´¾å¤ç人 |
| | | } else if ($("#HErrMsgBackTypeName").val() == "ææåå ") { |
| | | $("#HHandleEmpName").val("ç¨å¸"); //ææ´¾å¤ç人 |
| | | $("#HHandleEmpID").val(161720); //ææ´¾å¤ç人 |
| | | } else if ($("#HErrMsgBackTypeName").val() == "å·¥èºåå ") { |
| | | $("#HHandleEmpName").val("æ¯è¯æ"); //ææ´¾å¤ç人 |
| | | $("#HHandleEmpID").val(162661); //ææ´¾å¤ç人 |
| | | } else if ($("#HErrMsgBackTypeName").val() == "模å
·åå ") { |
| | | //$("#HHandleEmpName").val("å´æ"); //ææ´¾å¤ç人 |
| | | //$("#HHandleEmpID").val(162686); //ææ´¾å¤ç人 |
| | | } else if ($("#HErrMsgBackTypeName").val() == "æµè¯åå ") { |
| | | $("#HHandleEmpName").val("åé¾é£"); //ææ´¾å¤ç人 |
| | | $("#HHandleEmpID").val(163180); //ææ´¾å¤ç人 |
| | | } else if ($("#HErrMsgBackTypeName").val() == "ç¯å¢åå ") { |
| | | $("#HHandleEmpName").val("å忣"); //ææ´¾å¤ç人 |
| | | $("#HHandleEmpID").val(162526); //ææ´¾å¤ç人 |
| | | } |
| | | } |
| | | } |
| | |
| | | EquipNumber = LoadData[0].设å¤ç¼ç ; //产ååç§° |
| | | } |
| | | else { |
| | | EquipNumber = ""; |
| | | layer.alert(data.Message, { icon: 5 }); |
| | | |
| | | } |
| | |
| | | }); |
| | | }); |
| | | |
| | | //ææ´¾å¤çäººå¼¹çª |
| | | form.on('submit(HHandleEmpList)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'åé人å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_EmployeeList.html?Type=HEmp', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HHandleEmpID").val(checkStatus.data[0].HItemID); |
| | | $("#HHandleEmpName").val(checkStatus.data[0].èååç§°); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | $("#HDescription").val(generateString(Datetime, Person, HSourceName, HICMOBillNo, HType, EquipNumber)); |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //æ¥æ¶é¨é¨ |
| | | form.on('submit(HRecDeptList)', function () { |
| | |
| | | if (DeptName == "ç产é¨3") { |
| | | $("#HQEMan").val(162622); |
| | | $("#HQEManName").val("åæé"); |
| | | } else{ |
| | | $("#HQEMan").val(162525); |
| | | $("#HQEManName").val("å¼ å»ºé¹"); |
| | | } |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
New file |
| | |
| | | <!DOCTYPE html> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | | <title class="gxcz">çäº§è´¨éæ±æ¥å</title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| | | <!--å¼ç¨layuiæ ·å¼æä»¶--> |
| | | <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> |
| | | <!--å¼ç¨layui jsæä»¶--> |
| | | <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/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <!--èªå®ä¹æ ·å¼--> |
| | | <style> |
| | | .layui-form-label { |
| | | font-size: 14px; |
| | | width: 85px; |
| | | text-align: inherit; |
| | | } |
| | | /*å
¨å±è®¾ç½®è¾å
¥æ¡é«åº¦*/ |
| | | .layui-input { |
| | | height: 30px; |
| | | } |
| | | /*设置表头è¾å
¥æ¡*/ |
| | | .t1_input { |
| | | padding: 1%; |
| | | } |
| | | /*æ¬ç«ä¿¡æ¯td*/ |
| | | .bz_td { |
| | | display: -webkit-box; /*设置æé®ä¸æ¢è¡*/ |
| | | padding: 1%; /*设置è¾å
¥æ¡è¾¹è·*/ |
| | | } |
| | | /*设置æ¬ç«ä¿¡æ¯æé®é«åº¦*/ |
| | | .bz_btu { |
| | | height: 30px; |
| | | width: 60px; |
| | | line-height: 30px; |
| | | } |
| | | th { |
| | | width: 70px; |
| | | text-align: left; |
| | | font-size: 17px; |
| | | } |
| | | /* 鲿¢ä¸ææ¡ç䏿å表被éè---å¿
须设置--- */ |
| | | .layui-table-cell { |
| | | overflow: visible !important; |
| | | } |
| | | /* 使å¾ä¸ææ¡ä¸åå
æ ¼å好åé */ |
| | | td .layui-form-select { |
| | | margin-top: -10px; |
| | | margin-left: -15px; |
| | | margin-right: -15px; |
| | | } |
| | | </style> |
| | | </head> |
| | | |
| | | <body> |
| | | <div class="layui-fluid" style="padding: 0;"> |
| | | <div class="layui-card"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="formData" id="formData" style="background-color:white;"> |
| | | <div style="background-color:#0085E8;"> |
| | | <span style="color: white;" class="sczlhbd"><i class="layui-icon layui-icon-form"></i>çäº§è´¨éæ±æ¥å</span> |
| | | </div> |
| | | <div class="layui-form-item" style="margin: 1% 2%;text-align: right;"> |
| | | <button type="button" lay-submit="" lay-filter="Add" class="layui-btn layui-btn-radius" id="Add">æ°å¢</button> |
| | | <button type="button" lay-submit="" lay-filter="Saver" class="layui-btn layui-btn-radius" id="Saver">ä¿å</button> |
| | | <button type="button" lay-submit="" lay-filter="Cancel" class="layui-btn layui-btn-radius layui-btn-danger">éåº</button> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-tab layui-tab-card" lay-filter="TabTest"> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">æ¡å½¢ç </label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HBarCode" class="layui-input" id="HBarCode" placeholder="请è¾å
¥æ¡å½¢ç åå车" style="border-radius: 50px;"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="QueDin" style="line-height: 30px;">ç¡®å®</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">æµæ°´å·</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HProcNo" class="layui-input" id="HProcNo" value="" placeholder="è¯·éæ©æµæ°´å·åå车" style="border-radius: 50px;"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="SerialNum-BT" id="SerialNum-BT" style="font-weight:bolder">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">å½åå·¥åº</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HProcName" class="layui-input" id="HProcName" placeholder="å½åå·¥åº" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HProcID" id="HProcID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">çäº§èµæº</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HSourceName" class="layui-input" id="HSourceName" placeholder="éæ©çäº§èµæº" style="border-radius: 50px;"> |
| | | <input type="hidden" name="HSourceID" id="HSourceID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="ProductionResources-BT" id="ProductionResources-BT" style="font-weight:bolder">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">æä½å</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HEmpName" class="layui-input" id="HEmpName" placeholder="éæ©æä½å" style="background-color:#efefef4d;border-radius: 50px;" readonly> |
| | | <input type="hidden" name="HEmpID" id="HEmpID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HEmployeeID-BT" id="HEmployeeID-BT" style="font-weight:bolder">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">ç产çç»</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HGroupName" class="layui-input" id="HGroupName" placeholder="éæ©ç产çç»" style="background-color:#efefef4d;border-radius: 50px;"> |
| | | <input type="hidden" name="HGroupID" id="HGroupID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="ProductionTeam-BT" id="ProductionTeam-BT" style="font-weight:bolder">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">ç产车é´</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HDeptName" class="layui-input" id="HDeptName" placeholder="éæ©ç产车é´" style="background-color:#efefef4d;border-radius: 50px;"> |
| | | <input type="hidden" name="HDeptID" id="HDeptID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HDept-BT" id="HDept-BT" style="font-weight:bolder">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">产ååç§°</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HMaterName" class="layui-input" id="HMaterName" placeholder="产ååç§°" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HMaterID" id="HMaterID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">产ååç§°</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HMaterModel" class="layui-input" id="HMaterModel" placeholder="è§æ ¼åå·" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">计éåä½</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HUnitName" class="layui-input" id="HUnitName" placeholder="éæ©è®¡éåä½" style="background-color:#efefef4d;border-radius: 50px;"> |
| | | <input type="hidden" name="HUnitID" id="HUnitID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">夿³¨</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HRemark" class="layui-input" id="HRemark" placeholder="请è¾å
¥å¤æ³¨ä¿¡æ¯" style="border-radius: 50px;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">ç产ç»ç»</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HSTOCKORG" class="layui-input" id="HSTOCKORG" placeholder="ç产ç»ç»" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HSTOCKORGID" id="HSTOCKORGID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">ç产订å</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HICMOBillNo" class="layui-input" id="HICMOBillNo" placeholder="ç产订åå·" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HICMOInterID" id="HICMOInterID" value="0" autocomplete="off" class="layui-input"> |
| | | <input type="hidden" name="HICMOEntryID" id="HICMOEntryID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">åæ®å·</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HBillNo" class="layui-input" id="HBillNo" placeholder="åæ®å·" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HInterID" id="HInterID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">åæ®å·</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HDate" class="layui-input" id="HDate" style="border-radius: 50px;" placeholder="è¯·éæ©æ¥æ"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!--æç»ä¿¡æ¯--> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">ä¸è¯æ¡ç </label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HBarCode1" class="layui-input" id="HBarCode1" placeholder="请è¾å
¥æ¡å½¢ç åå车" style="border-radius: 50px;"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HBarCodeList" style="line-height: 30px;">ç¡®å®</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <table class="" id="mainTable" lay-filter="mainTable"></table> |
| | | <script type="text/html" id="xuhao"> |
| | | {{d.LAY_TABLE_INDEX+1}} |
| | | </script> |
| | | <!--å é¤--> |
| | | <script type="text/html" id="barDemo"> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">å é¤</a> |
| | | </script> |
| | | <!--è¡ä¸æéæ©(åææ¹æ³)--> |
| | | <script type="text/html" id="HResult"> |
| | | <select name="HResult" lay-filter="HResult" id="HResult{{d.LAY_TABLE_INDEX+1}}"> |
| | | <option value="">è¯·éæ©</option> |
| | | <option value="æ¥åº">æ¥åº</option> |
| | | <option value="å·¥åº">å·¥åº</option> |
| | | <option value="æåº">æåº</option> |
| | | <option value="è¿å·¥">è¿å·¥</option> |
| | | <option value="ç¹é">ç¹é</option> |
| | | <option value="æ¾è¡">æ¾è¡</option> |
| | | </select> |
| | | </script> |
| | | </div> |
| | | <!--å¶åä¿¡æ¯--> |
| | | <div class="layui-tab-item"> |
| | | <table style="width:80%;"> |
| | | <tbody> |
| | | <tr> |
| | | <th>å¶å人</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HMaker" class="layui-input" id="HMaker" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>å¶åæ¥æ</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HMakeDate" class="layui-input" id="HMakeDate" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>ä¿®æ¹äºº</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HUpDater" class="layui-input" id="HUpDater" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>ä¿®æ¹æ¥æ</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HUpDateDate" class="layui-input" id="HUpDateDate" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>å®¡æ ¸äºº</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HChecker" class="layui-input" id="HChecker" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>å®¡æ ¸æ¥æ</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HCheckDate" class="layui-input" id="HCheckDate" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>å
³é人</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HCloseMan" class="layui-input" id="HCloseMan" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>å
³éæ¥æ</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HCloseDate" class="layui-input" id="HCloseDate" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>ä½åºäºº</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HDeleteMan" class="layui-input" id="HDeleteMan" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>ä½åºæ¥æ</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HDeleteDate" class="layui-input" id="HDeleteDate" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | </div> |
| | | <ul class="layui-tab-title"> |
| | | <li class="layui-this">åæ®ä¿¡æ¯</li> |
| | | <li>æç»ä¿¡æ¯</li> |
| | | <li>å¶åä¿¡æ¯</li> |
| | | </ul> |
| | | </div> |
| | | </div> |
| | | <!--éèåæ®µ--> |
| | | <input type="hidden" name="HMainSourceInterID" id="HMainSourceInterID" value="0"> |
| | | <input type="hidden" name="HMainSourceEntryID" id="HMainSourceEntryID" value="0"> |
| | | <input type="hidden" name="HMainSourceBillNo" id="HMainSourceBillNo" value=""> |
| | | <input type="hidden" name="HMainSourceBillType" id="HMainSourceBillType" value=""> |
| | | <input type="hidden" name="HProcExchInterID" id="HProcExchInterID" value="0"> |
| | | <input type="hidden" name="HProcExchEntryID" id="HProcExchEntryID" value="0"> |
| | | <input type="hidden" name="HProcExchBillNo" id="HProcExchBillNo" value=""> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <script> |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'laydate', 'table', 'element', 'upload'], function () { |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , laydate = layui.laydate |
| | | , upload = layui.upload |
| | | , element = layui.element; |
| | | var params = get_UrlVars(); |
| | | var option = []; |
| | | var titleData = []; |
| | | //#region åå§åé¡µé¢ |
| | | |
| | | |
| | | //è¿å
¥é¡µé¢é»è®¤å
æ 卿¡å½¢ç ä¸ |
| | | $("#HBarCode").focus(); |
| | | var option; |
| | | var HModName = "MES_StationOutBill_PDA"; |
| | | |
| | | /*åºå®ä»£ç ï¼æ¯å¼ åæ®é½è¦begin*/ |
| | | /* 1.æ æºåæ°å¢ |
| | | * 2.ææºåæ°å¢ |
| | | * 3.ç¼è¾ |
| | | * 4.æµè§ |
| | | * 5.åæ´ |
| | | */ |
| | | //è·ååæ° |
| | | function getUrlVars() { |
| | | var vars = [], hash; |
| | | var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); |
| | | for (var i = 0; i < hashes.length; i++) { |
| | | hash = hashes[i].split('='); |
| | | vars.push(hash[0]); |
| | | vars[hash[0]] = hash[1]; |
| | | } |
| | | return vars; |
| | | } |
| | | |
| | | var params = getUrlVars(); |
| | | if (typeof (params[params[0]]) == "undefined") { |
| | | var OperationType = 1;//æä½ç±»å |
| | | var closeType = 2; //å
³éç±»å |
| | | } |
| | | /*åºå®ä»£ç ï¼æ¯å¼ åæ®é½è¦begin*/ |
| | | |
| | | //æµè½¬å¡æ¯å¦æ«ææ è®° |
| | | var HProcExchBillNoFlag = false; |
| | | |
| | | //夿æ¯å¦æ°å¢ |
| | | if (OperationType == 1 || OperationType == 2 || OperationType == 5) { |
| | | $("#HInterID").val(""); |
| | | $("#HBillNo").val(""); |
| | | //è·åæå¤§åæ®å· |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | data: { "HBillType": '3717' }, |
| | | success: function (d) { |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | } |
| | | }); |
| | | //è·åå½åç¨æ·é»è®¤å¼ |
| | | GetDefValByUser(); |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | } |
| | | |
| | | //#region éè¿ç»å½ç¨æ·è·åé»è®¤å¼ |
| | | function GetDefValByUser() { |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Cj_StationInBill/GetDefValByUser", |
| | | type: "GET", |
| | | data: { "Czybm": sessionStorage["Czybm"], "Czymc": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | var data = result.data[0]; |
| | | |
| | | form.val("formData", { |
| | | "HSourceID": data.HSourceID, |
| | | "HSourceName": data.çäº§èµæºåç§°, |
| | | "HGroupID": data.HGroupID, |
| | | "HGroupName": data.ç产çç»åç§°, |
| | | "HEmpID": data.HEmpID, |
| | | "HEmpNumber": data.æä½å代ç , |
| | | "HEmpName": data.æä½ååç§°, |
| | | }); |
| | | layer.close(index); |
| | | } |
| | | , error: function () { |
| | | layer.close(index); |
| | | layer.msg("æ¥å£è¯·æ±å¤±è´¥"); |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | //åå§åºæ¬ä¿¡æ¯èµå¼ |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); |
| | | $("#HDate").val(Pub_Format(new Date(), "yyyy-MM-dd")); |
| | | |
| | | |
| | | //æ¡å½¢ç åè½¦æ¹æ³ æµè½¬å¡ |
| | | $('#HBarCode').on('keydown', function (event) { |
| | | var HBarCode = $('#HBarCode').val(); |
| | | if (event.keyCode == 13) { |
| | | if (!HBarCode) { |
| | | layer.msg("æ¡å½¢ç ä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } |
| | | txtHBarCode_KeyDown(HBarCode); |
| | | } |
| | | }); |
| | | |
| | | //æ¡å½¢ç åè½¦æ¹æ³ ä¸è¯åå |
| | | $('#HBarCode1').on('keydown', function (event) { |
| | | var HBarCode1 = $('#HBarCode1').val(); |
| | | var HProcName = $('#HProcName').val(); |
| | | var HSourceName = $('#HSourceName').val(); |
| | | var HDeptName = $('#HDeptName').val(); |
| | | if (event.keyCode == 13) { |
| | | if (!HBarCode1) { |
| | | layer.msg("æ¡å½¢ç ä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } |
| | | if (!HProcName) { |
| | | layer.msg("å·¥åºä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } |
| | | if (!HSourceName) { |
| | | layer.msg("çäº§èµæºä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } |
| | | if (!HDeptName) { |
| | | layer.msg("ç产车é´ä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } |
| | | txtHBarCode_KeyDown1(HBarCode1); |
| | | } |
| | | }); |
| | | //æµè½¬å¡ |
| | | function txtHBarCode_KeyDown(HBarCode) { |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Cj_StationBill/txtHBarCode_KeyDown2", |
| | | type: "GET", |
| | | data: { "HBarCode": HBarCode, "HInterID": $('#HProcExchInterID').val(), "UserID": sessionStorage["Czybm"], "HBillType": "Out" }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | var data = result.data[0]; |
| | | form.val("formData", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HProcExchInterID": data.hmainid, |
| | | "HProcExchEntryID": 0, |
| | | "HProcExchBillNo": data.åæ®å·, |
| | | "HICMOInterID": data.hicmointerid, |
| | | "HICMOInterID": data.HICMOEntryID, |
| | | "HICMOBillNo": data.ä»»å¡åå·, |
| | | "HMaterID": data.HMaterID, |
| | | "HMaterName": data.产å, |
| | | "HMaterModel": data.è§æ ¼åå·, |
| | | "HUnitID": data.HUnitID, |
| | | "HUnitName": data.åä½, |
| | | "HDeptID": data.HWorkShopID, |
| | | "HDeptName": data.ç产车é´, |
| | | "HSTOCKORGID": data.ç»ç», |
| | | "HSTOCKORG": data.ç»ç»åç§°, |
| | | |
| | | "HMainSourceBillType": data.HBillSubType, |
| | | "HMainSourceInterID": data.hicmointerid, |
| | | "HMainSourceEntryID": data.HICMOEntryID, |
| | | "HMainSourceBillNo": data.ç产订åå· |
| | | }); |
| | | $("#HProcNo").attr('disabled', 'disabled'); |
| | | HProcExchBillNoFlag = true; |
| | | |
| | | var HProcExchInterID = $('#HProcExchInterID').val(); |
| | | var HInterID = data.hmainid; |
| | | //èªå¨å¹é
æµæ°´å· |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Sc_StationInBill/autoGetProcNo", |
| | | type: "GET", |
| | | data: { "HUserID": sessionStorage["Czybm"], "HInterID": HInterID, "BillType": "Out" }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | var data = data1.data[0]; |
| | | form.val("formData", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HProcName": data.å·¥åº, |
| | | "HProcID": data.å·¥åºID, |
| | | "HProcNo": data.æµæ°´å·, |
| | | "HCenterName": data.å·¥ä½ä¸å¿, |
| | | "HCenterID": data.HCenterID, |
| | | }); |
| | | |
| | | $("#HProcNo").attr("readonly", "readonly"); |
| | | $("#HProcNo").css("background-color", "#efefef4d"); |
| | | } |
| | | } |
| | | }) |
| | | |
| | | layer.close(index); |
| | | //æ¸
空æ¡ç æ¡ |
| | | $('#HBarCode').val(""); |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.close(index); |
| | | layer.msg("æ¥å£è¯·æ±å¤±è´¥ï¼" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | } |
| | | //ä¸è¯åå |
| | | function txtHBarCode_KeyDown1(HBarCode1) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Sc_QualityReportStepBill/get_HBadReasonID", |
| | | type: "GET", |
| | | data: { "HBadReasonNumber": HBarCode1 }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | var rowdata = { |
| | | "HMaterID": $("#HMaterID").val(), "HMaterName": $("#HMaterName").val(), "HUnitID": $("#HUnitID").val(), "HUnitName": $("#HUnitName").val(), |
| | | "HEmpID": $("#HEmpID").val(), "HEmpName": $("#HEmpName").val(), "HSourceID": $("#HSourceID").val(), "HSourceName": $("#HSourceName").val(), |
| | | "HBadReasonID": result.data[0].HItemID, "HBadReasonNumber": result.data[0].HNumber, "HBadReasonName": result.data[0].HName, "HQty": "1", |
| | | "HResult": "", "HProcID": $("#HProcID").val(), "HProcName": $("#HProcName").val(), |
| | | "HNowProcID": "0", "HNowProcName": "", "HBadProcID": "0", |
| | | "HBadProcName": "", "HAddr": "", "HReportType": "1", "HRemark": "", |
| | | "HICMOInterID": $("#HICMOInterID").val(), "HICMOEntryID": $("#HICMOEntryID").val(), "HICMOBillNo": $("#HICMOBillNo").val(), |
| | | "HProcExchInterID": $("#HProcExchInterID").val(), "HProcExchEntryID": $("#HProcExchEntryID").val(), "HProcExchBillNo": $("#HProcExchBillNo").val(), |
| | | "HSourceInterID": $("#HICMOInterID").val(), "HSourceEntryID": $("#HICMOEntryID").val(), "HSourceBillNo": $("#HICMOBillNo").val(), "HSourceBillType": $("#HMainSourceBillType").val(), |
| | | "HMaker": $("#HEmpName").val(), |
| | | "HMakeDate": Format(new Date(), 'yyyy-MM-dd hh:mm:ss') |
| | | }; |
| | | option.data.push(rowdata); |
| | | table.render(option); |
| | | for (var i = 1; i <= option.data.length; i++) { |
| | | $('#HResult' + i + '').find("option[value='" + option.data[i - 1].HResult + "']").attr("selected", true); |
| | | } |
| | | form.render('select'); |
| | | $("#HBarCode1").val(""); |
| | | } else { |
| | | layer.alert(result.Message, { icon: 5 }); |
| | | $("#HBarCode1").val(""); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | $("#HBarCode1").val(""); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | table.on('tool(mainTable)', function (obj) { |
| | | set_GridDelete(obj); //è¡å
å é¤ |
| | | }); |
| | | |
| | | //#region [åºç¡èµæåè½¦æ¹æ³] |
| | | //çäº§èµæº |
| | | $('#HSourceName').on('keydown', function (event) { |
| | | var sBillNo = $('#HSourceName').val(); |
| | | if (event.keyCode == 13) { |
| | | if (!HProcExchBillNoFlag) { |
| | | layer.msg("æµè½¬å¡æ²¡ææ«æï¼æè
没ææå车é®ï¼è¯·æ«ææµè½¬å¡æè
卿µè½¬å¡ææ¬æ¡ä¸æå车é®ï¼"); |
| | | return; |
| | | } |
| | | BasicInfo_KeyDown(sBillNo); |
| | | } |
| | | }) |
| | | |
| | | //ç产çç» |
| | | $('#HGroupName').on('keydown', function (event) { |
| | | var sBillNo = $('#HGroupName').val(); |
| | | if (event.keyCode == 13) { |
| | | if (!HProcExchBillNoFlag) { |
| | | layer.msg("æµè½¬å¡æ²¡ææ«æï¼æè
没ææå车é®ï¼è¯·æ«ææµè½¬å¡æè
卿µè½¬å¡ææ¬æ¡ä¸æå车é®ï¼"); |
| | | return; |
| | | } |
| | | BasicInfo_KeyDown(sBillNo); |
| | | } |
| | | }) |
| | | |
| | | //æä½å |
| | | $('#HEmpNumber').on('keydown', function (event) { |
| | | var sBillNo = $('#HEmpNumber').val(); |
| | | if (event.keyCode == 13) { |
| | | if (!HProcExchBillNoFlag) { |
| | | layer.msg("æµè½¬å¡æ²¡ææ«æï¼æè
没ææå车é®ï¼è¯·æ«ææµè½¬å¡æè
卿µè½¬å¡ææ¬æ¡ä¸æå车é®ï¼"); |
| | | return; |
| | | } |
| | | BasicInfo_KeyDown(sBillNo); |
| | | } |
| | | }) |
| | | |
| | | //æä½ååè½¦æ¹æ³ |
| | | function Operator_KeyDown(sBillNo) { |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Cj_StationBill/txtHBarCode_KeyDown_Operator", |
| | | type: "GET", |
| | | data: { "HBarCode": sBillNo, "HInterID": $('#HProcExchInterID').val(), "UserID": sessionStorage["Czybm"], "HBillType": "Out" }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | var data = result.data[0]; |
| | | |
| | | form.val("formData", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HEmpID": data.HItemID, |
| | | "HEmpNumber": data.èå代ç , |
| | | "HEmpName": data.èååç§° |
| | | }); |
| | | |
| | | layer.close(index); |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.close(index); |
| | | layer.msg("æ¥å£è¯·æ±å¤±è´¥ï¼" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | //æµæ°´å·ï¼å·¥åºå·ï¼åè½¦æ¹æ³ |
| | | $('#HProcNo').on('keydown', function (event) { |
| | | var sProcNo = $('#HProcNo').val(); |
| | | var sBillNo = $('#HProcExchBillNo').val(); |
| | | if (event.keyCode == 13) { |
| | | if (!HProcExchBillNoFlag) { |
| | | layer.msg("æµè½¬å¡æ²¡ææ«æï¼æè
没ææå车é®ï¼è¯·æ«ææµè½¬å¡æè
卿µè½¬å¡ææ¬æ¡ä¸æå车é®ï¼"); |
| | | return; |
| | | } |
| | | txtHProcNo_KeyDown(sBillNo, sProcNo); |
| | | } |
| | | }); |
| | | |
| | | function txtHProcNo_KeyDown(sBillNo, sProcNo) { |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Cj_StationInBill/txtHProcNo_KeyDown", |
| | | type: "GET", |
| | | data: { "sBillNo": sBillNo, "sProcNo": sProcNo }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | var data = result.data[0]; |
| | | form.val("formData", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HProcExchEntryID": data.hsubid, |
| | | "HProcName": data.å·¥åº, |
| | | "HProcID": data.HProcID, |
| | | "HSourceID": data.HSourceID, |
| | | "HSourceName": data.çäº§èµæº |
| | | }); |
| | | $("#HProcNo").attr("readonly", "readonly"); |
| | | $("#HProcNo").css("background-color", "#efefef4d"); |
| | | layer.close(index); |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.close(index); |
| | | layer.msg("æ¥å£è¯·æ±å¤±è´¥ï¼" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //æäº¤ |
| | | form.on('submit(Saver)', function (data) {//æäº¤ |
| | | if ($("#HProcNo").val() == "") { |
| | | layer.msg("æµæ°´å·æ²¡æéæ©ï¼è¯·è¾å
¥æµæ°´å·åå车ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | //è·ååè¡¨æ°æ® |
| | | var num = []; |
| | | for (var i = 0; i < table.cache["mainTable"].length; i++) { |
| | | if (table.cache["mainTable"][i] != "") { |
| | | table.cache["mainTable"][i].LAY_TABLE_INDEX = i; |
| | | num.push(table.cache["mainTable"][i]) |
| | | } |
| | | } |
| | | //è·åæä½æ¹å¼ |
| | | var refSav = ""; |
| | | if (OperationType == 1 || OperationType == 2 || OperationType == 4) { |
| | | refSav = "Add"; |
| | | } |
| | | //è¥ä¸ºç¼è¾-ä¿åï¼åæ´æ°ä¿®æ¹äººåä¿®æ¹æ¶é´ |
| | | if (OperationType == 3) { |
| | | refSav = "Update"; |
| | | data.field.HUpdater = sessionStorage["HUserName"]; |
| | | data.field.HUpdaterDate = Format(new Date(), "yyyy-MM-dd"); |
| | | $("#HUpdater").val(sessionStorage["HUserName"]); |
| | | $("#HUpdaterDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | } |
| | | |
| | | //è·åè¡¨å¤´æ°æ®å¹¶åºåå |
| | | var sMainStr = JSON.stringify(data.field); //ä¸»è¡¨æ°æ® |
| | | //åè¡¨æ°æ®åºåå |
| | | var sSubStr = JSON.stringify(num); |
| | | |
| | | //æ¼æ¥åºååçæ°æ® |
| | | var sMainSub = sMainStr + ';' + sSubStr + ';' + refSav + ";" + sessionStorage["HUserName"]; |
| | | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "Sc_QualityReportBill/SaveSc_QualityReportBill_PDA", |
| | | async: true, |
| | | data: { "msg": sMainSub }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { |
| | | //æ¸
空æ¡å½¢ç è¾å
¥æ¡å
容 |
| | | $("#HBarCode").val(""); |
| | | layer.close(index); |
| | | layer.msg("æäº¤æå"); |
| | | $("#Add").attr("style", "display:inline;");//æ¾ç¤ºæ°å¢æé® |
| | | $('#Saver').addClass("layui-btn-disabled").attr("disabled", true);//ç¦ç¨ä¿åæé® |
| | | } |
| | | else { |
| | | //æ¸
空æ¡å½¢ç è¾å
¥æ¡å
容 |
| | | $("#HBarCode").val(""); |
| | | layer.close(index); |
| | | layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.close(index); |
| | | layer.msg("é误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | // ç¡®å®æé® |
| | | form.on('submit(QueDin)', function (data) {// |
| | | var HBarCode = $('#HBarCode').val(); |
| | | |
| | | if (!HBarCode) { |
| | | layer.msg("æ¡å½¢ç ä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } |
| | | txtHBarCode_KeyDown(HBarCode); |
| | | }); |
| | | |
| | | //ä¸è¯åå æ¡ç ç¡®å®æé® |
| | | form.on('submit(HBarCodeList)', function (data) {// |
| | | var HBarCode1 = $('#HBarCode1').val(); |
| | | |
| | | if (!HBarCode1) { |
| | | layer.msg("æ¡å½¢ç ä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } |
| | | txtHBarCode_KeyDown1(HBarCode1); |
| | | }); |
| | | |
| | | // æä½åç¡®å®æé® |
| | | form.on('submit(QueDin_CZY)', function (data) {// |
| | | var sBillNo = $('#HEmpNumber').val(); |
| | | if (!HProcExchBillNoFlag) { |
| | | layer.msg("æµè½¬å¡æ²¡ææ«æï¼æè
没ææå车é®ï¼è¯·æ«ææµè½¬å¡æè
卿µè½¬å¡ææ¬æ¡ä¸æå车é®ï¼"); |
| | | return; |
| | | } |
| | | Operator_KeyDown(sBillNo); |
| | | }); |
| | | |
| | | //éæ©é¨é¨å¼¹çª |
| | | form.on('submit(HDept-BT)', function () {//é¨é¨ |
| | | layer.open({ |
| | | type: 2 //ç±»å |
| | | , skin: 'layui-layer-rim'//å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'é¨é¨å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_DepartmentList.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HDeptID").val(checkStatus.data[0].HItemID); |
| | | $("#HDeptName").val(checkStatus.data[0].HName); |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | |
| | | //éæ©æµæ°´å·å¼¹çª |
| | | form.on('submit(SerialNum-BT)', function () {//çäº§èµæº |
| | | var value = $("#HProcExchInterID").val(); |
| | | // 夿æ¯å¦å·²ç»è¾å
¥æµæ°´å·ï¼æ¯åå¼¹åºæ¨¡ææ¡ï¼å¦åç»åºæç¤º |
| | | if (value) { |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'æµæ°´å·' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | //, maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: [`../../Baseset/åºç¡èµæ/Gy_GetProcNoList.html?HInterID=${value}`, 'yes'] |
| | | , resize: false |
| | | , cancel: function (index, layero) { |
| | | } |
| | | , end: function () { |
| | | var sProcNo = $('#HProcNo').val(); |
| | | var sBillNo = $('#HProcExchBillNo').val(); |
| | | if (sProcNo != "") { |
| | | txtHProcNo_KeyDown(sBillNo, sProcNo); |
| | | } |
| | | } |
| | | }) |
| | | } else { |
| | | layer.alert('请æ¨ç¡®è®¤è¾å
¥æµè½¬å¡å·åéè¯^_^', { icon: 7 }); |
| | | } |
| | | }); |
| | | |
| | | //éæ©ç产çç»å¼¹çª |
| | | form.on('submit(ProductionTeam-BT)', function () {//éæ©ç产çç» |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ç产çç»' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_GetProductionTeamList.html', 'yes'] |
| | | , resize: false |
| | | , cancel: function (index, layero) { |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //éæ©æä½å |
| | | form.on('submit(HEmployeeID-BT)', function () {//éæ©è´£ä»»äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HWorker', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HEmpName").val(checkStatus.data[0].HName); |
| | | $("#HEmpName_second").val(checkStatus.data[0].HName); |
| | | $("#HEmpID").val(checkStatus.data[0].HItemID); |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | }); |
| | | |
| | | //éæ©çäº§èµæºå¼¹çª |
| | | form.on('submit(ProductionResources-BT)', function () {//çäº§èµæº |
| | | console.log($('#HProcNo').val()) |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'çäº§èµæº' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | //, maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_GetProductionResourcesList.html', 'yes'] |
| | | , resize: false |
| | | , cancel: function (index, layero) { |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | // æ°å¢æé® |
| | | form.on('submit(Add)', function () {//æäº¤ |
| | | layer.confirm('æ°å¢å页颿°æ®å°æ¶å¤±ï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | location.replace('Sc_QualityReportBill_PDA.html'); |
| | | }); |
| | | }) |
| | | |
| | | //éåº--å
¨å±ç |
| | | form.on('submit(Cancel)', function () { |
| | | layer.confirm('æ¨ç¡®å®è¦éåºåï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | parent.location.href = "../../../views/index_Mobile.html"; |
| | | }); |
| | | }) |
| | | |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | function set_InitGrid() { |
| | | //表头 |
| | | columns = [ |
| | | { templet: '#xuhao', title: 'åºå·', event: "qwe", width: 50 } |
| | | , { field: 'HMaterID', title: 'ç©æid', templet: '#HDotCheckResult', width: 55, hide: true } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', edit: 'text', width: 115 } |
| | | , { field: 'HUnitID', title: '计éåä½', edit: 'text', hide: true } |
| | | , { field: 'HUnitName', title: '计éåä½', edit: 'text'} |
| | | , { field: 'HEmpID', title: 'æ£éªåid', edit: 'text', hide: true } |
| | | , { field: 'HEmpName', title: 'æ£éªå', edit: 'text' } |
| | | , { field: 'HSourceID', title: 'çäº§èµæºid', edit: 'text', hide: true } |
| | | , { field: 'HSourceName', title: 'çäº§èµæº', edit: 'text' } |
| | | , { field: 'HBadReasonID', title: 'ä¸è¯åå ', edit: 'text', hide: true } |
| | | , { field: 'HBadReasonNumber', title: 'ä¸è¯åå 代ç ', edit: 'text', width: 100 } |
| | | , { field: 'HBadReasonName', title: 'ä¸è¯åå åç§°', edit: 'text', width: 150 } |
| | | , { field: 'HQty', title: 'æ°é', edit: 'text'} |
| | | , { field: 'HResult', title: 'å¤å®ç»æ', templet: '#HResult', event: 'HResult' } |
| | | , { field: 'HProcID', title: 'å·¥åºid', edit: 'text', hide: true } |
| | | , { field: 'HProcName', title: 'å·¥åºåç§°', edit: 'text',width: 150} |
| | | , { field: 'HNowProcID', title: 'å½åå·¥åºid', edit: 'text', hide: true } |
| | | , { field: 'HNowProcName', title: 'å½åå·¥åº', edit: 'text', width: 150,hide: true} |
| | | , { field: 'HBadProcID', title: '责任工åºid', edit: 'text', hide: true } |
| | | , { field: 'HBadProcName', title: '责任工åº', edit: 'text', width: 150, hide: true} |
| | | , { field: 'HICMOInterID', title: 'ç产订åå
ç ', edit: 'text', hide: true } |
| | | , { field: 'HICMOEntryID', title: 'ç产订ååç ', edit: 'text', hide: true} |
| | | , { field: 'HICMOBillNo', title: 'ç产订åå·', edit: 'text', hide: true} |
| | | , { field: 'HProcExchInterID', title: 'æµè½¬å¡å
ç ', edit: 'text', hide: true} |
| | | , { field: 'HProcExchEntryID', title: 'æµè½¬å¡åç ', edit: 'text', hide: true} |
| | | , { field: 'HProcExchBillNo', title: 'æµè½¬å¡å·', edit: 'text', hide: true } |
| | | , { field: 'HAddr', title: 'MACæº', edit: 'text', hide: true } |
| | | , { field: 'HReportType', title: 'æ±æ¥ç±»å', edit: 'text', hide: true } |
| | | , { field: 'HMaker', title: 'æ«æäºº', edit: 'text' } |
| | | , { field: 'HMakeDate', title: 'æ«ææ¶é´', edit: 'text' } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | | , { field: 'HSourceInterID', title: 'æºåå
ç ', edit: 'text', hide: true } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', edit: 'text', hide: true } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', edit: 'text', hide: true } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', edit: 'text', hide: true } |
| | | , { title: 'æä½', toolbar: '#barDemo', width: 80 } |
| | | ]; |
| | | option = { |
| | | id: 'mainTable' |
| | | , elem: '#mainTable' |
| | | , page: false |
| | | , cellMinWidth: 100 |
| | | , limit: 100 |
| | | , height: 'full-205' |
| | | , cols: [columns] |
| | | , done: function (res, curr, count) { |
| | | option.data = res.data; |
| | | //廿䏿æ¡å¤±ç¦äºä»¶å¦åå¨ä¸ææ¡éè¾å
¥å¼ |
| | | $('.layui-form-select').find('input').unbind("blur"); |
| | | //è¡¨æ ¼éè½½åæ¾ä¸ææ¡éçæ°æ® |
| | | $('tr').each(function (e) { |
| | | var $cr = $(this); |
| | | var dataIndex = $cr.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TNDEX == dataIndex) { |
| | | //$cr.find('input').val(value.HResult); |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | }; |
| | | |
| | | option.data = []; |
| | | |
| | | table.render(option); |
| | | } |
| | | |
| | | // è¡¨æ ¼è¡å
äºä»¶å é¤ |
| | | function set_GridDelete(obj) { |
| | | var data = obj.data; |
| | | var rowIndex = $(obj.tr).attr("data-index"); |
| | | if (obj.event === 'del') { |
| | | layer.confirm('ççå é¤è¡ä¹', function (index) { |
| | | console.log("ç´¢å¼ä¸º:" + rowIndex); |
| | | if (rowIndex === '0') { |
| | | layer.msg('é¦è¡æ æ³å é¤ï¼ï¼ï¼'); |
| | | } else { |
| | | //obj.del(); |
| | | //layer.close(index); |
| | | var oldData = table.cache["mainTable"]; |
| | | oldData.splice(obj.tr.data('index'), 1); |
| | | table.reload('mainTable', { data: oldData }); |
| | | layer.close(index); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | |
| | | //è¡éæ©å¤çï¼åææ¹æ³ï¼ |
| | | form.on('select(HResult)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | | var elem = data.othis.parents('tr'); |
| | | var dataindex = elem.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TABLE_INDEX == dataindex) { |
| | | value.HResult = data.value;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | //以ä¸ä¸ºlayui模å |
| | | }); |
| | | |
| | | |
| | | //è¿åæµæ°´å· |
| | | function GetProcNoValue(obj) { |
| | | $("#HProcNo").val(obj[0].æµæ°´å·); |
| | | } |
| | | //è¿åç产çç» |
| | | function GetProductionTeamValue(obj) { |
| | | $("#HGroupName").val(obj[0].çç»); |
| | | $("#HGroupID").val(obj[0].HItemID); |
| | | } |
| | | //è¿åæ£éªå |
| | | function GetHSecManagerValue(obj) { |
| | | $("#HQCCheckName").val(obj[0].HName); |
| | | $("#HQCCheckID").val(obj[0].HItemID); |
| | | } |
| | | //è¿åçäº§èµæº |
| | | function GetProductionResourcesValue(obj) { |
| | | $("#HSourceName").val(obj[0].çäº§èµæº); |
| | | $("#HSourceID").val(obj[0].HItemID); |
| | | } |
| | | //è¿åæä½å |
| | | function GetHWorkerValue(obj) { |
| | | $("#HEmpName").val(obj[0].HName); |
| | | $("#HEmpID").val(obj[0].HItemID); |
| | | } |
| | | //è¿åå·¥åº |
| | | function GetHProcValue(obj) { |
| | | $("#HProcName").val(obj[0].å·¥åº); |
| | | $("#HProcID").val(obj[0].HItemID); |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å·¥èºè·¯çº¿åç§°<label style="color:red"> * </label></label> |
| | | <label class="layui-form-label" style="width: 90px;">å·¥èºè·¯çº¿åç§°*</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" lay-verify="HName" name="HName" id="HName"> |
| | | </div> |
| | |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">产å代ç *</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <div class="layui-input-block" style="margin-left: 83px;"> |
| | | <input type="text" class="layui-input" lay-verify="HMaterNumber" name="HMaterNumber" id="HMaterNumber" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchMater" id="btnSearchMater" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">计éåä½*</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <div class="layui-input-block" style="margin-left: 83px;"> |
| | | <input type="text" class="layui-input" name="HUnitName" lay-verify="HUnitName" id="HUnitName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HUnitID" id="HUnitID" lay-verify="HUnitID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnUnit" id="btnUnit" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-block" style="margin-left: 96px;"> |
| | | <div class="layui-input-block" style="margin-left: 0px;"> |
| | | <input type="checkbox" name="checkboxHStandard" id="checkboxHStandard" lay-skin="primary" lay-filter="checkboxHStandard" checked title="æ¯å¦é»è®¤å·¥èº"> |
| | | <input type="hidden" value="true" name="HStandard" id="HStandard" lay-verify="HStandard"> |
| | | <!--<input type="checkbox" name="checkboxHUseFlag" id="checkboxHUseFlag" title="æ¯å¦å¯ç¨" lay-skin="primary" lay-filter="checkboxHUseFlag"> |
| | | <input type="hidden" value="false" name="HUseFlag" id="HUseFlag">--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ç»ç»*</label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 501px;"> |
| | | <select name="HOrgID" id="HOrgID" lay-verify="HOrgID"> |
| | | <!--å¨ææ¸²æç»ç»--> |
| | | </select> |
| | | </div> |
| | | </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="date" class="layui-input" lay-verify="HBeginDate" name="HBeginDate" id="HBeginDate" style="padding-left: 80px;"> |
| | | <input type="date" class="layui-input" lay-verify="HBeginDate" name="HBeginDate" id="HBeginDate" style="padding-left: 20px;"> |
| | | </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="date" class="layui-input" lay-verify="HEndDate" name="HEndDate" id="HEndDate" style="padding-left: 80px;"> |
| | | </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="hidden" class="layui-input" name="HMaker" id="HMaker" lay-verify="HMaker" value=""> |
| | | <input type="text" class="layui-input" name="HRemark" id="HRemark" lay-verify="HRemark" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value" style=" width: 500px;"> |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-inline"> |
| | |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <!--<div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">夿³¨</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="hidden" class="layui-input" name="HMaker" id="HMaker" lay-verify="HMaker" value=""> |
| | | <input type="text" class="layui-input" name="HRemark" id="HRemark" lay-verify="HRemark" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value" style=" width: 500px;"> |
| | | </div> |
| | | </div> |
| | | </div>--> |
| | | |
| | | |
| | | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <!--<div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ç»ç»*</label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 501px;"> |
| | | <select name="HOrgID" id="HOrgID" lay-verify="HOrgID"> |
| | | <select name="HOrgID" id="HOrgID" lay-verify="HOrgID">--> |
| | | <!--å¨ææ¸²æç»ç»--> |
| | | </select> |
| | | <!--</select> |
| | | </div> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | //åå§è¡¨æ ¼æ°æ® |
| | | var rowdata = [{ |
| | | "HProcNo": "10", "HProcID_S": 0, "HProcType": "主工åº", "HCenterID_S": 0, "HCenterID_SName": "" |
| | | "HProcNo": "10", "HProcID_S": 0, "HProcType": "主工åº", "HCenterID_S": 0, "HCenterID_SName": "","å·¥åºä»£ç ":"" |
| | | , "HWorkQty_S": 0, "HSubStdEmpQty_S": 0, "HMouldNo": "", "HChangeMould": 0, "HPackStd": "" |
| | | , "HPack": "", "HPutArea": "", "HMyWorkDays": 0, "HMyFixWorkDays": 0, "å·¥åº": "","工段":"" |
| | | , "HProcID": 0, "å·¥ä½ä¸å¿ä»£ç ": "", "HCenterID": 0, "å·¥ä½ä¸å¿": "", "HSupID": 0 |
| | |
| | | , limit: 500 //æ¯é¡µé»è®¤æ¾ç¤ºçæ°é |
| | | , totalRow: true |
| | | //, cellMinWidth: 120 |
| | | , height: 400 |
| | | , height: 450 |
| | | , cols: [[ //表头 |
| | | { type: 'checkbox', totalRowText: 'å计è¡' } |
| | | , { type: 'numbers', field: 'åºå·', title: 'åºå·', totalRow: true } |
| | | , { field: 'HProcNo', title: 'æµæ°´å·', edit: 'text' } |
| | | , { field: 'HProcID', title: 'å·¥åºID', hide: true }//, hide: true |
| | | , { field: 'HProcID', title: 'å·¥åºID', hide: true }//, hide: true |
| | | , { field: 'å·¥åºä»£ç ', title: 'å·¥åºä»£ç '} |
| | | , { field: 'å·¥åº', title: 'å·¥åº', edit: 'text', event: "CheckHProcID" }//f7 |
| | | , { field: 'HProcID_S', title: '工段ID', hide: true }//, hide: true |
| | | , { field: '工段', title: '工段', edit: 'text', event: "CheckHProcMulID" }//f7 |
| | |
| | | var j = 0; |
| | | for (var i = (NowNum - 1); i < option.data.length; i++) { |
| | | option.data[i]["å·¥åº"] = WorkCente[j]["å·¥åºåç§°"]; |
| | | option.data[i]["å·¥åºä»£ç "] = ProcessNumber[j].substring(1, ProcessNumber[j].length - 1); |
| | | option.data[i]["HProcID"] = WorkCente[j]["HProcID"]; |
| | | option.data[i]["å·¥ä½ä¸å¿"] = WorkCente[j]["å·¥ä½ä¸å¿åç§°"]; |
| | | option.data[i]["HCenterID"] = WorkCente[j]["HCenterID"]; |
| | |
| | | //å¨ä¸æ¹æ·»å æ°çè¡¨æ ¼æ°æ® |
| | | for (var i = 0; i < num; i++) { |
| | | option.data.push({ |
| | | "HProcNo": (table.cache["mainTable"].length + i + 1) * 10, "HProcID_S": 0, "HProcType": "主工åº", "HCenterID_S": 0, "HCenterID_SName": "" |
| | | "HProcNo": (table.cache["mainTable"].length + i + 1) * 10, "HProcID_S": 0, "HProcType": "主工åº", "HCenterID_S": 0, "HCenterID_SName": "", "å·¥åºä»£ç ": ProcessNumber[j].substring(1, ProcessNumber[j].length - 1) |
| | | , "HWorkQty_S": 0, "HSubStdEmpQty_S": 0, "HMouldNo": "", "HChangeMould": 0, "HPackStd": "" |
| | | , "HPack": "", "HPutArea": "", "HMyWorkDays": 0, "HMyFixWorkDays": 0, "å·¥åº": WorkCente[j]["å·¥åºåç§°"] |
| | | , "HProcID": WorkCente[j]["HProcID"], "å·¥ä½ä¸å¿ä»£ç ": WorkCente[j]["å·¥ä½ä¸å¿ä»£ç "], "HCenterID": WorkCente[j]["HCenterID"], "å·¥ä½ä¸å¿": WorkCente[j]["å·¥ä½ä¸å¿åç§°"], "HSupID": 0 |
| | |
| | | var j = 0; |
| | | for (var i = (NowNum - 1); i < (NowNum - 1) + ProcessNumber.length; i++) { |
| | | option.data[i]["å·¥åº"] = WorkCente[j]["å·¥åºåç§°"]; |
| | | option.data[i]["å·¥åºä»£ç "] = ProcessNumber[j].substring(1, ProcessNumber[j].length - 1); |
| | | option.data[i]["HProcID"] = WorkCente[j]["HProcID"]; |
| | | option.data[i]["å·¥ä½ä¸å¿"] = WorkCente[j]["å·¥ä½ä¸å¿åç§°"]; |
| | | option.data[i]["HCenterID"] = WorkCente[j]["HCenterID"]; |
| | |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "å·¥åº": OptionData[0].å·¥åºåç§° |
| | | , "å·¥åºä»£ç ": OptionData[0].å·¥åºä»£ç |
| | | , "HProcID": OptionData[0].HItemID |
| | | , "å·¥ä½ä¸å¿": OptionData[0].å·¥ä½ä¸å¿ |
| | | , "HCenterID": OptionData[0].HWorkCenterID |
| | |
| | | for (var i = 0; i < d.data.length; i++) { |
| | | rowdata.push( |
| | | { |
| | | "HProcNo": d.data[i].å·¥åºå·, "HProcID_S": d.data[i].工段, "HProcType": d.data[i].å·¥åºç±»å, "HCenterID_S": d.data[i].HCenterID_S, "HCenterID_SName": d.data[i].产线ä¸å¿ |
| | | "HProcNo": d.data[i].å·¥åºå·, "HProcID_S": d.data[i].工段, "HProcType": d.data[i].å·¥åºç±»å, "HCenterID_S": d.data[i].HCenterID_S, "HCenterID_SName": d.data[i].产线ä¸å¿, "å·¥åºä»£ç ": d.data[i].å·¥åºä»£ç |
| | | , "HWorkQty_S": d.data[i].产线产è½, "HSubStdEmpQty_S": d.data[i].产线人æ°, "HMouldNo": d.data[i].模å
·ç¼å·, "HChangeMould": d.data[i].æ¢æ¨¡æ¶é´, "HPackStd": d.data[i].å¨è½¬ç®±æ å |
| | | , "HPack": d.data[i].å¨è½¬ç®±, "HPutArea": d.data[i].ææ¾åº, "HMyWorkDays": d.data[i].çäº§å¨æ, "HMyFixWorkDays": d.data[i].åºå®ç产天æ°, "å·¥åº": d.data[i].å·¥åº, "工段": d.data[i].工段åç§° |
| | | , "HProcID": d.data[i].HProcID, "å·¥ä½ä¸å¿ä»£ç ": d.data[i].å·¥ä½ä¸å¿ä»£ç , "HCenterID": d.data[i].HCenterID, "å·¥ä½ä¸å¿": d.data[i].å·¥ä½ä¸å¿åç§°, "HSupID": d.data[i].HSupID |
| | |
| | | <h1 style="text-align:center;margin-bottom:7px;margin-top:7px;"><b>å·¥èºè·¯çº¿æ¥è¯¢</b></h1> |
| | | <div class="layui-tab layui-tab-card" lay-filter="table"> |
| | | <ul class="layui-tab-title"> |
| | | <li class="layui-this">æå建ç</li> |
| | | <li>éè¦æå®¡æ ¸ç</li> |
| | | <li>æå建ç</li> |
| | | <li class="layui-this">éè¦æå®¡æ ¸ç</li> |
| | | <li>æå·²å®¡æ ¸ç</li> |
| | | </ul> |
| | | <div class="layui-tab-content" style=""> |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-tab-item "> |
| | | <script type="text/html" id="toolbarDemoSend"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | |
| | | </script> |
| | | <table class="" id="mainTableSend" lay-filter="mainTableSend"></table> |
| | | </div> |
| | | <div class="layui-tab-item "> |
| | | <div class="layui-tab-item layui-show"> |
| | | <script type="text/html" id="toolbarDemoNeedCheck"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | //æ¥è¯¢ |
| | | get_Display(1); |
| | | get_Display(2); |
| | | //get_Display(2); |
| | | //get_Display(3); |
| | | //#endregion |
| | |
| | | var url = ""; |
| | | var user = sessionStorage["HUserName"]; |
| | | if (type == 1) { |
| | | var sWhere = "and å¶å人 = '" + user + "'" |
| | | var sWhere = "and å¶å人 = '" + user + "'" + " and å·¥åºä»£ç != '9999' and HBillSubType<>'SUB'" + "and å®¡æ ¸äºº = ''" |
| | | url = '/LEMS/MES_Gy_RoutingBillList_Json'; |
| | | userData = { "sWhere": sWhere, "user": sessionStorage["HUserName"], "HBillSubType": "3301" }; |
| | | |
| | |
| | | option = optionNeedCheck; |
| | | } |
| | | else if (type == 3) { |
| | | optionChecked.data = data1.data; |
| | | optionChecked.data = data1.data.slice(0, 1000);//è·åå1000 |
| | | //设置å表åä¸ä¸ªåæ®åªæç¬¬ä¸æ¡æ°æ®æ¾ç¤ºä¸»è¡¨ä¿¡æ¯ï¼å
¶å®è®°å½åªæ¾ç¤ºåè¡¨ä¿¡æ¯ |
| | | //è·ååè¡¨åæ°æ® |
| | | var colList = []; |
| | |
| | | function set_CheckBill_Flow(num, tableName) { |
| | | var checkStatus = table.checkStatus(tableName) |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var InterID = data[0].hmainid.toString(); |
| | | if (checkStatus.data.length != 0) { |
| | | var uniqueIds = [...new Set(data.map(obj => obj.hmainid))];//å°å¯¹è±¡æ°ç»idæåå»é |
| | | var queryString = uniqueIds.join(",");//å°idsåææ°ç» |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Gy_Routing/AuditFlow", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID, "IsAudit": num, "CurUserName": sessionStorage["HUserName"], "CurUserID": sessionStorage["Czybm"] }, |
| | | url: GetWEBURL() + "/Gy_Routing/CheckAllFlow", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterIDS": queryString, "IsAudit": num, "CurUserName": sessionStorage["HUserName"], "CurUserID": sessionStorage["Czybm"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | layer.msg('è¯·éæ©è³å°ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | } |
| | | } |
| | | //#endregion |
| | |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-top:10px;margin-left:5%;"> |
| | | <!--å
¶ä»æ¡ä»¶--> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 76px;">ç©æåç§°</label> |
| | | <div class="layui-input-block" style="margin-left: 107px;"> |
| | | <input type="text" class="layui-input" name="HMaterName" id="HMaterName"> |
| | | </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="HModel" id="HModel"> |
| | | </div> |
| | | <!--å
¶ä»æ¡ä»¶--> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 76px;">ç©æåç§°</label> |
| | | <div class="layui-input-block" style="margin-left: 107px;"> |
| | | <input type="text" class="layui-input" name="HMaterName" id="HMaterName"> |
| | | </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="HModel" id="HModel"> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-row" style="margin-top:5px;margin-left:82px;margin-bottom:5px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ç产订åç»ç»</label> |
| | |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_AddNew" id="set_AddNew"><i class="layui-icon layui-icon-file-b"></i>æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_AddNewSub" id="set_AddNewSub"><i class="layui-icon layui-icon-file-b"></i>æ°å¢å路线</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="set_AddNewSub" id="set_AddNewSub"><i class="layui-icon layui-icon-file-b"></i>æ°å¢å路线</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ShowBill" id="set_ShowBill"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_Copy" id="set_Copy"><i class="layui-icon layui-icon-form"></i>å¤å¶</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_DeleteBill" id="set_DeleteBill"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="set_Copy" id="set_Copy"><i class="layui-icon layui-icon-form"></i>å¤å¶</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_DeleteBill" id="set_DeleteBill"><i class="layui-icon layui-icon-delete"></i>å é¤</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh" id="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit" id="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_CheckBill" id="CheckBill"><i class="layui-icon layui-icon-form"></i>å®¡æ ¸</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="set_CheckBill" id="CheckBill"><i class="layui-icon layui-icon-form"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_AbandonCheck" id="AbandonCheck"><i class="layui-icon layui-icon-form"></i>åå®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_defaultRoute" id="set_defaultRoute"><i class="layui-icon layui-icon-form"></i>å¯ç¨é»è®¤</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_closeOtherRoute" id="set_closeOtherRoute"><i class="layui-icon layui-icon-form"></i>ç¦ç¨å
¶å®</button> |
| | |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_RejectCheck_Flow" id="RejectCheck_Flow"><i class="layui-icon layui-icon-form"></i>驳å</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_CloseBill" id="set_CloseBill"><i class="layui-icon layui-icon-form"></i>å
³é</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_CancelCloseBill" id="set_CancelCloseBill"><i class="layui-icon layui-icon-form"></i>åå
³é</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-ProcPriceRequestBills" id="btn-ProcPriceRequestBills"><i class="layui-icon layui-icon-delete"></i>å¤è¡ä¸æ¨(å®é¢ç³è¯·å)</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-ProcPriceRequestBills" id="btn-ProcPriceRequestBills"><i class="layui-icon layui-icon-delete"></i>å¤è¡ä¸æ¨(å®é¢ç³è¯·å)</button>--> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-view"><i class="layui-icon layui-icon-tips"></i>é¢è§</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-print"><i class="layui-icon layui-icon-print"></i>æå°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-audit"><i class="layui-icon layui-icon-repeat"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Faudit"><i class="layui-icon layui-icon-refresh"></i>åå®¡æ ¸</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn" id="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_export" id="get_export"><i class="layui-icon layui-icon-export"></i>导åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideButton" id="set_HideButton"><i class="layui-icon layui-icon-form"></i>æé®è®¾ç½®</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideButton" id="set_HideButton"><i class="layui-icon layui-icon-form"></i>æé®è®¾ç½®</button>--> |
| | | </div> |
| | | </script> |
| | | </form> |
| | |
| | | var option = []; |
| | | var HBillType = 3301; |
| | | var ins; //ç¨äºå¯¼åºexcel |
| | | var HModName = "Gy_RoutingBillList"; |
| | | var HModName = "Gy_RoutingBillToInvalidatedList"; |
| | | var titleData = [];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | //è·ååæ° |
| | | function getUrlVars() { |
| | |
| | | option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 'full-150' |
| | | , page: false |
| | | , cols: [[]] |
| | | , data: [[]] |
| | | , height: 800 |
| | | , page: true |
| | | , totalRow: true |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , done: function (res, curr, count) { |
| | | soulTable.render(this); |
| | | } |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | /* { field: 'hmainid', title: 'hmainid', width: 110 }*/ |
| | | , { field: 'åæ®å·', title: 'åæ®å·', sort: true, width: 165 } |
| | | , { field: 'å·¥èºåç§°', title: 'å·¥èºåç§°', width: 170, sort: true } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 160, sort: true } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 160, sort: true } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 160, sort: true } |
| | | , { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 115, sort: true } |
| | | , { field: '计éåä½', title: '计éåä½', sort: true } |
| | | , { field: 'è¡¨å¤´å¤æ³¨', title: 'è¡¨å¤´å¤æ³¨', sort: true } |
| | | , { field: 'å·¥åºå·', title: 'å·¥åºå·', sort: true } |
| | | , { field: 'å·¥åºä»£ç ', title: 'å·¥åºä»£ç ', sort: true } |
| | | , { field: 'å·¥åº', title: 'å·¥åº', sort: true } |
| | | , { field: 'å·¥ä½ä¸å¿ä»£ç ', title: 'å·¥ä½ä¸å¿ä»£ç ', width: 115, sort: true } |
| | | , { field: 'å·¥ä½ä¸å¿åç§°', title: 'å·¥ä½ä¸å¿åç§°', width: 115, sort: true } |
| | | , { field: 'å¶å人', title: 'å¶å人', sort: true } |
| | | , { field: 'å¶åæ¥æ', title: 'å¶åæ¥æ', width: 195, sort: true } |
| | | , { field: 'å®¡æ ¸äºº', title: 'å®¡æ ¸äºº', sort: true } |
| | | , { field: 'å®¡æ ¸æ¥æ', title: 'å®¡æ ¸æ¥æ', width: 180, sort: true } |
| | | , { field: 'ä¿®æ¹äºº', title: 'ä¿®æ¹äºº', sort: true } |
| | | , { field: 'ä¿®æ¹æ¥æ', title: 'ä¿®æ¹æ¥æ', width: 180, sort: true } |
| | | , { field: 'é»è®¤å·¥èº', title: 'é»è®¤å·¥èº', sort: true } |
| | | //, { field: 'åæ®ç±»å', title: 'åæ®ç±»å' } |
| | | ////, { field: 'hmaterid', title: 'hmaterid', width: 165 } |
| | | //, { field: 'ç»ç»', title: 'ç»ç»' } |
| | | ////, { field: 'hsubid', title: 'hsubid', width: 80 } |
| | | //, { field: 'å§å¤æ è®°', title: 'å§å¤æ è®°' } |
| | | ////, { field: 'hprocid', title: 'hprocid', width: 105 } |
| | | ////, { field: 'HSupID', title: 'HSupID', width: 105 } |
| | | //, { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ' } |
| | | //, { field: 'ä¾åºå', title: 'ä¾åºå' } |
| | | ////, { field: 'HCenterID', title: 'HCenterID', width: 105 } |
| | | //, { field: 'æ¶é´åä½', title: 'æ¶é´åä½' } |
| | | //, { field: 'è¿è¡æ¶é´', title: 'è¿è¡æ¶é´' } |
| | | //, { field: 'å å·¥æ°é', title: 'å å·¥æ°é' } |
| | | //, { field: 'å夿¶é´', title: 'å夿¶é´' } |
| | | //, { field: 'æéæ¶é´', title: 'æéæ¶é´' } |
| | | //, { field: '转移æ¶é´', title: '转移æ¶é´' } |
| | | //, { field: 'è¯ç', title: 'è¯ç' } |
| | | //, { field: '累计è¯ç', title: '累计è¯ç' } |
| | | //, { field: '表ä½å¤æ³¨', title: '表ä½å¤æ³¨' } |
| | | //, { field: 'ä½åºäºº', title: 'ä½åºäºº' } |
| | | //, { field: 'ä½åºæ¥æ', title: 'ä½åºæ¥æ' } |
| | | ////, { field: 'HDayWorkQty', title: 'HDayWorkQty', width: 105 } |
| | | ////, { field: 'HGroupID', title: 'HGroupID', width: 105 } |
| | | ////, { field: 'HWorkerID', title: 'HWorkerID', width: 105 } |
| | | ////, { field: 'HSourceID', title: 'HSourceID', width: 105 } |
| | | //, { field: 'å å·¥åä»·', title: 'å å·¥åä»·' } |
| | | ////, { field: 'HNextProcFlag', title: 'HNextProcFlag', width: 105 } |
| | | //, { field: 'ä¸éæµè½¬å·¥åº', title: 'ä¸éæµè½¬å·¥åº', width: 150 } |
| | | //, { field: 'æµè½¬å·¥åº', title: 'æµè½¬å·¥åº' } |
| | | ]] |
| | | }; |
| | | } |
| | | |
| | | } |
| | | //#region æåºåéæ© |
| | |
| | | } |
| | | } |
| | | } |
| | | //卿æ¾ç¤ºåå |
| | | option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , cols: [col] |
| | | , data: data1.data |
| | | , height: 800 |
| | | , page: true |
| | | , totalRow: true |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , done: function (res, curr, count) { |
| | | soulTable.render(this); |
| | | } |
| | | } |
| | | |
| | | option.cols=[col]; |
| | | option.data = data1.data; |
| | | //设置å表åä¸ä¸ªåæ®åªæç¬¬ä¸æ¡æ°æ®æ¾ç¤ºä¸»è¡¨ä¿¡æ¯ï¼å
¶å®è®°å½åªæ¾ç¤ºåè¡¨ä¿¡æ¯ |
| | | //è·ååè¡¨åæ°æ® |
| | | var colList = []; |
| | |
| | | //#region å·æ° |
| | | function get_Refresh() { |
| | | set_ClearQuery(); |
| | | get_DisplayPage(sWhere); |
| | | get_FastQuery(); |
| | | } |
| | | |
| | | //å¯ç¨é»è®¤ |
| | |
| | | } |
| | | $("#HEquipMaintainRuleInterNo").val(checkStatus.data[0].åæ®å·); |
| | | $("#HEquipMaintainRuleInterID").val(checkStatus.data[0].hmainid); |
| | | $("#HPlanNo").val(checkStatus.data[0].ä¿å
»è®¡åå); |
| | | $("#HEquipMaintainPlanInterID").val(checkStatus.data[0].ä¿å
»è®¡åID); |
| | | $("#HEquipMaintainPlanEntryID").val(checkStatus.data[0].ä¿å
»è®¡ååID); |
| | | get_DocCheckItem2(); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
New file |
| | |
| | | <!DOCTYPE html> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | | <title>设å¤å·¥èºåæ°æ¥è¡¨</title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <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/HideButton.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src='../../../layuiadmin/lib/extend/echarts.min.js'></script> |
| | | |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid"> |
| | | <div class="layui-col-md12"> |
| | | <div class="layui-card" style="padding: 1px"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="component-form-group"> |
| | | <div class="layui-collapse"> |
| | | <div class="layui-colla-item"> |
| | | <div class="layui-colla-title layui-inline"> |
| | | <div class="layui-inline"> |
| | | <span>æ´å¤</span> |
| | | </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="HEquipNumber" id="HEquipNumber" value="" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">设å¤åç§°</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" lay-verify="HEquipName" name="HEquipName" id="HEquipName" value="" style="background-color:#efefef4d;width: 75%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHEquip" id="btnHEquip" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¼å§æ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input ForFilteringSchemes" id="HDate" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç»ææ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input ForFilteringSchemes" id="HDate1" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-top:5px;margin-left:82px;margin-bottom:5px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">模å
·ç¼å·</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="hidden" class="layui-input" lay-verify="HMouldID" name="HMouldID" id="HMouldID" value="0"> |
| | | <input type="text" class="layui-input" name="HMouldNumber" id="HMouldNumber" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHMould" id="btnHMould" style="padding: 0 10px; margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ç©æä»£ç </label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="hidden" class="layui-input" lay-verify="HMaterID" name="HMaterID" id="HMaterID" value="0"> |
| | | <input type="text" class="layui-input" name="HMaterNumber" id="HMaterNumber" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHMaterID" id="btnHMaterID" style="padding: 0 10px; margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </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="HMaterName" id="HMaterName" 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="HMaterModel" id="HMaterModel" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch" style="padding: 0 10px;margin-left: 20px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">éç½®</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <table class="" id="mainTable" lay-filter="mainTable"></table> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh" id="RefreshButton"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_Export" id="btn_Export"><i class="layui-icon layui-icon-export"></i>导åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn" id="HideButton"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit" id="ExitButton"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | </div> |
| | | </script> |
| | | |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <script> |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index', //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate'], function () { |
| | | //#region å
Œ
±åé |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element |
| | | , laypage = layui.laypage |
| | | , laydate = layui.laydate |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = ""; |
| | | var option = []; |
| | | var HModName = "SB_EquipICMOTechParamReport"; |
| | | //ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | var titleData = []; |
| | | var ins; //ç¨äºå¯¼åºexcel |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢æ¢å è½½ |
| | | //åå§åçé¢ |
| | | set_ClearBill(); |
| | | //#endregion |
| | | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | //头工å
·æ äºä»¶ |
| | | table.on('toolbar(mainTable)', function (obj) { |
| | | var checkStatus = table.checkStatus(obj.config.id); |
| | | switch (obj.event) { |
| | | //å·æ° |
| | | case 'get_Refresh': get_Refresh(); |
| | | break; |
| | | //éåºæé® |
| | | case 'get_Exit': Pub_Close(2); |
| | | break; |
| | | //导åºexcel |
| | | case 'btn_Export': btn_Export(); |
| | | break; |
| | | //å设置 |
| | | case 'set_HideColumn': get_HideColumn(); |
| | | break; |
| | | }; |
| | | }); |
| | | //æ¥è¯¢æé® |
| | | form.on('submit(btnSearch)', function (data) { |
| | | get_FastQuery(); |
| | | }); |
| | | // éç½®æé® |
| | | form.on('submit(btnReSearch)', function (data) { |
| | | set_ClearQuery(); |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region ç¹å»è¡éä¸é«äº® |
| | | table.on('row(mainTable)', function (obj) { |
| | | //éä¸è¡æ¹åé¢è² |
| | | var flag = !obj.tr.find(':checkbox:first').prop('checked'); |
| | | obj.tr.find(':checkbox').prop('checked', flag); |
| | | if (flag) { |
| | | obj.tr.find('.layui-form-checkbox').addClass('layui-form-checked'); //设置å¤éæ¡é䏿 ·å¼ |
| | | $(obj.tr.selector).attr({ "style": "background:#ceedfa;color:black" });//æ¹åå½åtrèæ¯é¢è²ååä½é¢è² |
| | | } else { |
| | | obj.tr.find('.layui-form-checkbox').removeClass('layui-form-checked');//åæ¶å¤éæ¡é䏿 ·å¼ |
| | | $(obj.tr.selector).attr({ "style": "background:" });//åæ¶å½åtré¢è² |
| | | } |
| | | //mainTable ä¸ºè¡¨æ ¼ID æ³¨ææ¤å¤å¦æID䏿£ç¡®å°å¯¼è´ä½ å¨çå¬å¤éæ¡æ¶è·åä¸å°ä½ éæ©çæ°æ®ï¼åé¢çåªæ¯æ·»å æå é¤é䏿ªé䏿 ·å¼ä»¥åè®¾ç½®èæ¯è²ï¼åä½é¢è² |
| | | layui.each(table.cache.mainTable, function (i, l) { |
| | | if (obj.tr.index() == l.LAY_TABLE_INDEX) { |
| | | l.LAY_CHECKED = flag; |
| | | } |
| | | }); |
| | | }) |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢æææ¹æ³ |
| | | // åå§åçé¢ |
| | | function set_ClearBill() { |
| | | $("#HDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd")); |
| | | $("#HDate1").val(Format(new Date, "yyyy-MM-dd")); |
| | | set_InitGrid(); //åå§åè¡¨æ ¼ |
| | | get_FastQuery(); |
| | | |
| | | } |
| | | //åå§åè¡¨æ ¼ |
| | | function set_InitGrid() { |
| | | option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , totalRow: true |
| | | , height: 'full-50' |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | | , data: [] |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [[ ]] |
| | | }; |
| | | table.render(option) |
| | | } |
| | | |
| | | |
| | | //å¿«éæ¥è¯¢ |
| | | function get_FastQuery() { |
| | | var HEquipNumber = $("#HEquipNumber").val(); |
| | | var HEquipName = $("#HEquipName").val(); |
| | | var HMaterNumber = $("#HMaterNumber").val(); |
| | | var HMaterName = $("#HMaterName").val(); |
| | | var HMouldID = $("#HMouldID").val(); |
| | | var HDate = $("#HDate").val(); //å¼å§æ¥æ |
| | | var HDate1 = $("#HDate1").val();//ç»ææ¥æ |
| | | |
| | | |
| | | if (HEquipNumber != "" || HMaterNumber != "") { |
| | | sWhere = { |
| | | HEquipNumber: HEquipNumber |
| | | , HEquipName: HEquipName |
| | | , HMaterNumber: HMaterNumber |
| | | , HMaterName: HMaterName |
| | | , HMouldID: HMouldID |
| | | , HDate: HDate |
| | | , HDate1: HDate1 |
| | | } |
| | | get_Display(JSON.stringify(sWhere)); |
| | | sWhere = "";//è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | } |
| | | |
| | | } |
| | | |
| | | //éç½®å¿«éæ¥è¯¢ |
| | | function set_ClearQuery() { |
| | | $("#HEquipNumber").val(""); |
| | | $("#HEquipName").val(""); |
| | | $("#HMaterNumber").val(""); |
| | | $("#HMaterName").val(""); |
| | | $("#HMouldID").val(""); |
| | | $("#HMouldNumber").val(""); |
| | | $("#HDate").val(Format(new Date, "yyyy-MM-dd")); |
| | | |
| | | $("#btnSearch").click(); |
| | | form.render('select'); |
| | | |
| | | sWhere = ""; |
| | | } |
| | | |
| | | //å·æ° |
| | | function get_Refresh() { |
| | | $("#btnSearch").trigger('click'); |
| | | } |
| | | |
| | | //æ¥è¯¢ |
| | | function get_Display(sWhere) { |
| | | var index = layer.load(0, { shade: false }); |
| | | var ajaxLoad = layer.load(); |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sb_EquipReportController/Get_SB_EquipICMOTechParamList', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | var data = []; |
| | | var col = []; |
| | | //ç»ç©ºçæ°ç»èµå¼ |
| | | for (var key in data1.list) { |
| | | data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType }); |
| | | } |
| | | //å¨å表左边添å å¾éæ¡ |
| | | col.push({ type: 'checkbox', fixed: 'left' }); |
| | | for (var i = 0; i < data.length; i++) { |
| | | if ($.inArray(data[i].name, titleData) > -1) { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //éèidå |
| | | } |
| | | else { |
| | | switch (data[i].Type) { |
| | | //int |
| | | case 'DateTime': |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 200 }); |
| | | break; |
| | | default: |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 }); |
| | | } |
| | | } |
| | | } |
| | | |
| | | //卿æ¾ç¤ºåå |
| | | option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , cols: [col] |
| | | , data: data1.data |
| | | , height: 'full-80' |
| | | , page: true |
| | | , limits: [50, 500, 5000, 50000] |
| | | , limit: 50 |
| | | , cellMinWidth: 90 |
| | | } |
| | | ins = table.render(option); |
| | | |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | DisPlay_HideColumn(); |
| | | |
| | | layer.close(ajaxLoad); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | layer.close(index); |
| | | } |
| | | |
| | | //#region 导åºExecel |
| | | function btn_Export() { |
| | | table.exportFile(ins.config.id, option.data, "xls"); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region 设å¤å¼¹çª |
| | | form.on('submit(btnHEquip)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'è®¾å¤æ¡£æ¡å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../../views/设å¤ç®¡ç/è®¾å¤æ¡£æ¡/Gy_EquipFileMainList.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HEquipNumber").val(checkStatus.data[0].设å¤ç¼ç ); |
| | | $("#HEquipName").val(checkStatus.data[0].设å¤åç§°); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region 产åç¼ç |
| | | form.on('submit(btnHMaterID)', function (data) { |
| | | layer.open({ |
| | | type: 2 //ç±»å |
| | | , skin: 'layui-layer-rim'//å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'ç©æå表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Material.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HMaterID").val(checkStatus.data[0].HItemID); |
| | | $("#HMaterNumber").val(checkStatus.data[0].ç©æä»£ç ); |
| | | $("#HMaterName").val(checkStatus.data[0].ç©æåç§°); |
| | | $("#HMaterModel").val(checkStatus.data[0].è§æ ¼åå·); |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region 模å
·ç¼ç |
| | | form.on('submit(btnHMould)', function (data) { |
| | | layer.open({ |
| | | type: 2 //ç±»å |
| | | , skin: 'layui-layer-rim'//å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: '模å
·æ¡£æ¡'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../模治å
·ç®¡ç/模治å
·ç®¡ç/Gy_MouldFileList.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HMouldID").val(checkStatus.data[0].hmainid); |
| | | $("#HMouldNumber").val(checkStatus.data[0].å¨å
·ç¼å·); |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region éèå设置 |
| | | function get_HideColumn() { |
| | | var colName = ""; |
| | | var contentUrl = ""; |
| | | for (var i = 1; i < option.cols[0].length; i++) { |
| | | colName += option.cols[0][i]["title"] + ","; |
| | | } |
| | | var urlStr = window.document.location.pathname;//è·åæä»¶è·¯å¾ |
| | | var urlLen = urlStr.split('/'); |
| | | for (var i = 0; i < urlLen.length - 4; i++) { |
| | | contentUrl += "../"; |
| | | } |
| | | colName = encodeURI(colName.substring(0, colName.length - 1));//对 URI è¿è¡ç¼ç |
| | | |
| | | contentUrl += 'åºç¡èµæ/éèå设置/Gy_GridView_Hide.html?HModName=' + HModName + '&colName=' + colName; |
| | | |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "éèå设置" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["50%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: [contentUrl, "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | DisPlay_HideColumn(); |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //#region æ¾ç¤ºåæ°æ® |
| | | function DisPlay_HideColumn() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HModName": HModName, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.data.length != 0) { |
| | | |
| | | var dataCol = [];//æ°æ®åºæ¥è¯¢åºçåæ°æ® |
| | | //var titleData = ["åæ®ID", "HMouldID", "hsubid", "HManagerID", "æºå主å
ç ", "æºååå
ç "];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | | |
| | | for (var i = 0; i < option.cols[0].length - 1; i++) { |
| | | var dataCols = dataCol[i].split('|'); |
| | | //éèå |
| | | if (dataCols[1] == 1) { |
| | | option.cols[0][i + 1]["hide"] = true; |
| | | } |
| | | //设置å宽 |
| | | if (dataCols[3] > 0) { |
| | | option.cols[0][i + 1]["width"] = dataCols[3]; |
| | | } |
| | | //设置å
容åä½å¤§å° |
| | | if (data1.data[0].HFontSize != 0) { |
| | | option.cols[0][i + 1]["style"] = "font-size:" + data1.data[0].HFontSize + "px;"; |
| | | } else { |
| | | option.cols[0][i + 1]["style"] = "font-size:100%"; |
| | | } |
| | | //设置å宽 |
| | | //if (data1.data[0].HColumnWidth != 0) { |
| | | // option.cols[0][i + 1]["width"] = data1.data[0].HColumnWidth + "px;"; |
| | | //} else { |
| | | // option.cols[0][i + 1]["width"] = ""; |
| | | //} |
| | | //æ¾ç¤ºå |
| | | if (dataCols[1] == 0 && $.inArray(option.cols[0][i + 1]["title"], titleData) == -1) { |
| | | option.cols[0][i + 1]["hide"] = false; |
| | | } |
| | | //å使å¨ä½ç½®(å·¦ å±
ä¸ å³) |
| | | switch (dataCols[2]) { |
| | | case "L": |
| | | option.cols[0][i + 1]["align"] = "left"; |
| | | break; |
| | | case "M": |
| | | option.cols[0][i + 1]["align"] = "center"; |
| | | break; |
| | | case "R": |
| | | option.cols[0][i + 1]["align"] = "right"; |
| | | break; |
| | | } |
| | | } |
| | | |
| | | //åæ¶å»ç»å |
| | | for (var i = 1; i < option.cols[0].length - 1; i++) { |
| | | if (option.cols[0][i]["fixed"] != null) { |
| | | option.cols[0][i]["fixed"] = null; |
| | | } |
| | | else { |
| | | break; |
| | | } |
| | | } |
| | | //å»ç»å |
| | | if (data1.data[0].HFixCols != 0) { |
| | | for (var i = 0; i < data1.data[0].HFixCols; i++) { |
| | | if ($.inArray(option.cols[0][i + 1]["title"], titleData) != -1) { |
| | | data1.data[0].HFixCols += 1; |
| | | } |
| | | option.cols[0][i + 1]["fixed"] = "left"; |
| | | } |
| | | } |
| | | table.render(option); |
| | | } else { |
| | | table.render(option); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //以䏿¯layui模å |
| | | }); |
| | | </script> |
| | | |
| | | </body> |
| | | </html> |
| | |
| | | var linterid = params[params[1]];//æºåid |
| | | var HSouceBillType = params[params[2]];//æºåç±»å |
| | | var HICMOEntryID = params[params[3]];//æºååid |
| | | var HEntryID = params[params[4]];//æºååid |
| | | } |
| | | /*åºå®ä»£ç ï¼æ¯å¼ åæ®é½è¦begin*/ |
| | | //////æµè¯ç¨æ°æ® |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/QC_PatrolProcCheckOtherBill/get_ProcessExchangeBill', |
| | | type: "GET", |
| | | data: { "HInterID": linterid, "user": sessionStorage["HUserName"] }, |
| | | data: { "HInterID": linterid, "HEntryID": HEntryID, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | var data = result.data[0]; |
| | | if (result.count == 1) { |
| | |
| | | |
| | | //è¡¨å¤´ä¿¡æ¯æ£éªæ¹æ¡å¼¹çª |
| | | form.on('submit(btnSearchQCScheme)', function () { |
| | | var HName = $("#HMaterName").val(); |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../è´¨é管ç/æ£éªæ¹æ¡å/QC_CheckProjectList.html', 'yes'], |
| | | content: ['../../è´¨é管ç/æ£éªæ¹æ¡å/QC_CheckProjectList.html?OperationType=1&HName=' + HName + '', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">产åå
ç </label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HMaterID" id="HMaterID" value="0" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" name="HMaterName" id="HMaterName" value="0" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HMaterID" id="HMaterID" value="0" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchMater" id="btnSearchMater" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | |
| | | var linterid = params[params[1]];//æºåid |
| | | var HSouceBillType = params[params[2]];//æºåç±»å |
| | | var HICMOEntryID = params[params[3]];//æºååid |
| | | var HEntryID = params[params[4]];//æºååid |
| | | } |
| | | /*åºå®ä»£ç ï¼æ¯å¼ åæ®é½è¦begin*/ |
| | | |
| | |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | LoadingInformation_StationOutBill(); |
| | | } |
| | | //å·¥åºæµè½¬å¡åè¡¨é¦æ£ |
| | | //å·¥åºæµè½¬å¡åè¡¨å·¥åºæ£ |
| | | else if (HSouceBillType == 3772) { |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | LoadingInformation_ProcExchange(); |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/CheckBill/get_ProcessExchangeBill', |
| | | type: "GET", |
| | | data: { "HInterID": linterid, "user": sessionStorage["HUserName"] }, |
| | | data: { "HInterID": linterid, "HEntryID": HEntryID, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | var data = result.data[0]; |
| | | if (result.count == 1) { |
| | |
| | | |
| | | //è¡¨å¤´ä¿¡æ¯æ£éªæ¹æ¡å¼¹çª |
| | | form.on('submit(btnSearchQCScheme)', function () { |
| | | var HName = $("#HMaterName").val(); |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../è´¨é管ç/æ£éªæ¹æ¡å/QC_CheckProjectList.html', 'yes'], |
| | | content: ['../../è´¨é管ç/æ£éªæ¹æ¡å/QC_CheckProjectList.html?OperationType=1&HName=' + HName +'', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | <div class="layui-card" style="padding: 1px"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="component-form-group"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">äºä»¶ç¶æ</label> |
| | | <div class="layui-input-block"> |
| | | <select id="HReadFlag" name="HReadFlag" lay-filter="HReadFlag" class="ForFilteringSchemes" style="width:190px;"> |
| | | <option value="" selected="selected">å
¨é¨</option> |
| | | <option value="2">å·²åé¦</option> |
| | | <option value="13">å·²ç¾å°</option> |
| | | <option value="9">å·²å¤ç</option> |
| | | <option value="10">å·²éªæ¶</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">çäº§èµæº</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" lay-verify="HSourceName" name="HSourceName" id="HSourceName" value="" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" lay-verify="HSourceID" name="HSourceID" id="HSourceID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHDeptID" id="btnHDeptID" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¼å§æ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input ForFilteringSchemes" id="HBeginDate" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç»ææ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input ForFilteringSchemes" id="HEndDate" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">éç½®</button> |
| | | <div class="layui-tab layui-tab-card" style="margin-top:20px;"> |
| | | <ul class="layui-tab-title"> |
| | | <li class="layui-this">ææ¥æ¶ç</li> |
| | |
| | | set_InitGrid_send(); |
| | | //åå§åæéå表 |
| | | set_InitGrid_copy(); |
| | | $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd")); |
| | | $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | //æ¥è¯¢ |
| | | get_Display(); |
| | | get_FastQuery(); |
| | | } |
| | | |
| | | table.on('toolbar(mainTable_receive)', function (obj) { |
| | |
| | | }; |
| | | }); |
| | | |
| | | //æ¥è¯¢æé® |
| | | form.on('submit(btnSearch)', function (data) { |
| | | get_FastQuery(); |
| | | }); |
| | | |
| | | //éç½®æé® |
| | | form.on('submit(btnReSearch)', function (data) { |
| | | set_ClearQuery(); |
| | | }); |
| | | |
| | | //åå§åæ¥æ¶å表 |
| | | function set_InitGrid_notStart() { |
| | |
| | | url: GetWEBURL() + '/Sc_MESTransFerWorkBill/GetSc_MESTransFerWorkBillQuery', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "user": sessionStorage["HUserName"] }, |
| | | data: { "sWhere":sWhere,"user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | function get_FastQuery() { |
| | | var HStatus = $("#HReadFlag").val();//é
è¯»ç¶æ |
| | | var HBeginDate = $("#HBeginDate").val();//å¼å§æ¥æ |
| | | var HEndDate = $("#HEndDate").val();//ç»ææ¥æ |
| | | var HSourceID = $("#HSourceID").val();//åé人 |
| | | sWhere = { |
| | | HStatus: HStatus |
| | | , HBeginDate: HBeginDate |
| | | , HEndDate: HEndDate |
| | | , HSourceID: HSourceID |
| | | } |
| | | get_Display(JSON.stringify(sWhere)); |
| | | //è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | sWhere = ""; |
| | | } |
| | | |
| | | //éç½®è¿æ»¤æ¡ä»¶ |
| | | function set_ClearQuery() { |
| | | $('#HReadFlag').val(""); |
| | | $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd")); |
| | | $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HSourceName").val(""); |
| | | $('#HSourceID').val("0"); |
| | | sWhere = ""; |
| | | get_Display(sWhere); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region 导åºExecel |
| | | function get_Export() { |
| | | var data = option_receive.data |
| | |
| | | <div class="layui-card" style="padding: 1px"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="component-form-group"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">äºä»¶ç¶æ</label> |
| | | <div class="layui-input-block"> |
| | | <select id="HReadFlag" name="HReadFlag" lay-filter="HReadFlag" class="ForFilteringSchemes" style="width:190px;"> |
| | | <option value="" selected="selected">å
¨é¨</option> |
| | | <option value="2">å·²åé¦</option> |
| | | <option value="13">å·²ç¾å°</option> |
| | | <option value="9">å·²å¤ç</option> |
| | | <option value="10">å·²éªæ¶</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">çäº§èµæº</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" lay-verify="HSourceName" name="HSourceName" id="HSourceName" value="" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" lay-verify="HSourceID" name="HSourceID" id="HSourceID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHDeptID" id="btnHDeptID" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¼å§æ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input ForFilteringSchemes" id="HBeginDate" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç»ææ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input ForFilteringSchemes" id="HEndDate" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">éç½®</button> |
| | | <div class="layui-tab layui-tab-card" style="margin-top:20px;"> |
| | | <ul class="layui-tab-title"> |
| | | <li class="layui-this">æªéªæ¶</li> |
| | | <li class="layui-this">æªéªæ¶</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | | <!--æåéç--> |
| | | <table class="layui-hide" id="mainTable_send" lay-filter="mainTable_send"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <script type="text/html" id="toolbarDemo"> |
| | |
| | | </script> |
| | | <script type="text/html" id="toolbarDemo1"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-normal" lay-submit="" lay-event="btn-XTCheck" lay-filter="btn-XTCheck" id="btn-XTCheck" style="/* display: inline; */height: 100px;margin-left: 100px;">䏿¨éªæ¶å</button> |
| | | <button type="button" class="layui-btn layui-btn-normal" lay-submit="" lay-event="btn-View1" lay-filter="btn-View1" id="btn-View1" style="/* display: inline; */ height: 100px; width: 100px; margin-left: 100px;">æ¥ç</button> |
| | | <button type="button" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="btnEdit" id="btnEdit" style="/* display: inline; */ height: 100px; width: 100px; margin-left: 100px;">éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-normal" lay-submit="" lay-event="btn-XTCheck" lay-filter="btn-XTCheck" id="btn-XTCheck" style="/* display: inline; */height: 100px;margin-left: 100px;">䏿¨éªæ¶å</button> |
| | | <button type="button" class="layui-btn layui-btn-normal" lay-submit="" lay-event="btn-View1" lay-filter="btn-View1" id="btn-View1" style="/* display: inline; */ height: 100px; width: 100px; margin-left: 100px;">æ¥ç</button> |
| | | <button type="button" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="btnEdit" id="btnEdit" style="/* display: inline; */ height: 100px; width: 100px; margin-left: 100px;">éåº</button> |
| | | </div> |
| | | </script> |
| | | <script type="text/html" id="toolbarDemo2"> |
| | |
| | | //åå§åæéå表 |
| | | set_InitGrid_copy(); |
| | | //æ¥è¯¢ |
| | | get_Display(); |
| | | $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd")); |
| | | $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | //æ¥è¯¢ |
| | | get_FastQuery(); |
| | | } |
| | | |
| | | table.on('toolbar(mainTable_receive)', function (obj) { |
| | |
| | | break; |
| | | }; |
| | | }); |
| | | |
| | | //æ¥è¯¢æé® |
| | | form.on('submit(btnSearch)', function (data) { |
| | | get_FastQuery(); |
| | | }); |
| | | |
| | | //éç½®æé® |
| | | form.on('submit(btnReSearch)', function (data) { |
| | | set_ClearQuery(); |
| | | }); |
| | | |
| | | |
| | | //éåº |
| | | form.on('submit(btnEdit)', function () { |
| | |
| | | //#region æ¥è¯¢ |
| | | function get_Display(sWhere) { |
| | | var ajaxLoad = layer.load(); |
| | | |
| | | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_MESTransFerWorkBill/GetSc_MESTransFerWorkBillQuery', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "user": sessionStorage["HUserName"] }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | function get_FastQuery() { |
| | | var HStatus = $("#HReadFlag").val();//é
è¯»ç¶æ |
| | | var HBeginDate = $("#HBeginDate").val();//å¼å§æ¥æ |
| | | var HEndDate = $("#HEndDate").val();//ç»ææ¥æ |
| | | var HSourceID = $("#HSourceID").val();//åé人 |
| | | sWhere = { |
| | | HStatus: HStatus |
| | | , HBeginDate: HBeginDate |
| | | , HEndDate: HEndDate |
| | | , HSourceID: HSourceID |
| | | } |
| | | get_Display(JSON.stringify(sWhere)); |
| | | //è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | sWhere = ""; |
| | | } |
| | | |
| | | //éç½®è¿æ»¤æ¡ä»¶ |
| | | function set_ClearQuery() { |
| | | $('#HReadFlag').val(""); |
| | | $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd")); |
| | | $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HSourceName").val(""); |
| | | $('#HSourceID').val("0"); |
| | | sWhere = ""; |
| | | get_Display(sWhere); |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | //#region 导åºExecel |
| | | function get_Export() { |
| | | var data = option_receive.data |
| | |
| | | //è·å页é¢è·³è½¬åæ° //åæ®ç¼è¾ç¶æï¼ 1.æ æºåæ°å¢Â  2.ææºåæ°å¢Â  3.ç¼è¾Â 4.æµè§Â 5.åæ´ |
| | | var params = get_UrlVars(); |
| | | if (typeof (params[params[0]]) == "undefined") { |
| | | var OperationType = 1;//æä½ç±»å |
| | | var OperationType = 1;//æä½ç±»å |
| | | } else { |
| | | var OperationType = params[params[0]];//æä½ç±»å |
| | | var HName = decodeURI(params[params[1]]);//ç©æåç§° |
| | | } |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | //æ¥è¯¢ |
| | | get_Display(sWhere); |
| | | if (HName=="") { |
| | | get_Display(sWhere); |
| | | } else { |
| | | sWhere += " and ç©æåç§° = '" + HName + "'"; |
| | | get_Display(sWhere); |
| | | } |
| | | |
| | | } |
| | | |
| | | //åå§åç½æ ¼ |
| | |
| | | </div> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_Export" id="btn_Export"><i class="layui-icon layui-icon-export"></i>导åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | </div> |
| | | </script> |
| | |
| | | , soulTable = layui.soulTable |
| | | var sWhere = ""; |
| | | var option = []; |
| | | var ins; //ç¨äºå¯¼åºexcel |
| | | var HModName = "QC_BadProductsReport"; |
| | | var titleData = ["HInterID", "HEntryID", "HBadReasonID", "HSourceInterID", "HSourceEntryID"];//å表ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | |
| | |
| | | switch (obj.event) { |
| | | //å设置 |
| | | case 'set_HideColumn': get_HideColumn(); |
| | | break; |
| | | //å¯¼åºæé® |
| | | case 'btn_Export': btn_Export(); |
| | | break; |
| | | }; |
| | | }); |
| | |
| | | } |
| | | } |
| | | table.render(option); |
| | | |
| | | ins = table.render(option); |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | DisPlay_HideColumn(); |
| | | |
| | |
| | | }); |
| | | |
| | | |
| | | //#region 导åºExecel |
| | | function btn_Export() { |
| | | table.exportFile(ins.config.id, option.data, "xls"); |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | //éèå设置 |
| | | function get_HideColumn() { |
| | | var colName = ""; |
| | |
| | | </div> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_Export" id="btn_Export"><i class="layui-icon layui-icon-export"></i>导åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | </div> |
| | | </script> |
| | |
| | | , soulTable = layui.soulTable |
| | | var sWhere = ""; |
| | | var option = []; |
| | | var ins; //ç¨äºå¯¼åºexcel |
| | | var HModName = "QC_ErrManagerLedgerReport"; |
| | | var titleData = ["HInterID", "HEntryID", "HBadReasonID", "HSourceInterID", "HSourceEntryID"];//å表ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | |
| | |
| | | switch (obj.event) { |
| | | //å设置 |
| | | case 'set_HideColumn': get_HideColumn(); |
| | | break; |
| | | //å¯¼åºæé® |
| | | case 'btn_Export': btn_Export(); |
| | | break; |
| | | }; |
| | | }); |
| | |
| | | } |
| | | } |
| | | table.render(option); |
| | | ins = table.render(option); |
| | | |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | DisPlay_HideColumn(); |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //#region 导åºExecel |
| | | function btn_Export() { |
| | | table.exportFile(ins.config.id, option.data, "xls"); |
| | | } |
| | | //#endregion |
| | | |
| | | //éèå设置 |
| | | function get_HideColumn() { |
| | | var colName = ""; |
| | |
| | | </div> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_Export" id="btn_Export"><i class="layui-icon layui-icon-export"></i>导åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="HideColumn"><i class="layui-icon layui-icon-form"></i>éèå设置</button> |
| | | </div> |
| | |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = ""; |
| | | var option = []; |
| | | var ins; //ç¨äºå¯¼åºexcel |
| | | var HModName = "QC_ErrManagerLedgerReport_EquipTop3Issue"; |
| | | var HEquipIssue = []; //设å¤é®é¢ |
| | | //#endregion |
| | |
| | | case 'HideColumn': |
| | | get_HideColumn(); |
| | | break; |
| | | //å¯¼åºæé® |
| | | case 'btn_Export': btn_Export(); |
| | | break; |
| | | }; |
| | | }); |
| | | //éç½®æé® |
| | |
| | | option.data = data1.data; |
| | | |
| | | table.render(option); |
| | | ins = table.render(option); |
| | | layer.close(wait); |
| | | } else { |
| | | layer.close(wait); |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //#region 导åºExecel |
| | | function btn_Export() { |
| | | table.exportFile(ins.config.id, option.data, "xls"); |
| | | } |
| | | //#endregion |
| | | |
| | | //éèå设置 |
| | | function get_HideColumn() { |
| | | var colName = ""; |
| | |
| | | </div> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_Export" id="btn_Export"><i class="layui-icon layui-icon-export"></i>导åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="HideColumn"><i class="layui-icon layui-icon-form"></i>éèå设置</button> |
| | | </div> |
| | |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = ""; |
| | | var option = []; |
| | | var ins; //ç¨äºå¯¼åºexcel |
| | | var HModName = "QC_ErrManagerLedgerReport_Issue"; |
| | | var HIssueType = []; //é®é¢ç±»å |
| | | //#endregion |
| | |
| | | case 'HideColumn': |
| | | get_HideColumn(); |
| | | break; |
| | | //å¯¼åºæé® |
| | | case 'btn_Export': btn_Export(); |
| | | break; |
| | | }; |
| | | }); |
| | | //éç½®æé® |
| | |
| | | option.data = data1.data; |
| | | |
| | | table.render(option); |
| | | ins = table.render(option); |
| | | layer.close(wait); |
| | | } else { |
| | | layer.close(wait); |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //#region 导åºExecel |
| | | function btn_Export() { |
| | | table.exportFile(ins.config.id, option.data, "xls"); |
| | | } |
| | | //#endregion |
| | | |
| | | //éèå设置 |
| | | function get_HideColumn() { |
| | | var colName = ""; |
| | |
| | | </div> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_Export" id="btn_Export"><i class="layui-icon layui-icon-export"></i>导åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="HideColumn"><i class="layui-icon layui-icon-form"></i>éèå设置</button> |
| | | </div> |
| | |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = ""; |
| | | var option = []; |
| | | var ins; //ç¨äºå¯¼åºexcel |
| | | var HModName = "QC_ErrManagerLedgerReport_Source"; |
| | | var HSourceName = []; //çäº§èµæºåç§° |
| | | //#endregion |
| | |
| | | case 'HideColumn': |
| | | get_HideColumn(); |
| | | break; |
| | | //å¯¼åºæé® |
| | | case 'btn_Export': btn_Export(); |
| | | break; |
| | | }; |
| | | }); |
| | | //éç½®æé® |
| | |
| | | option.data = data1.data; |
| | | |
| | | table.render(option); |
| | | ins = table.render(option); |
| | | layer.close(wait); |
| | | } else { |
| | | layer.close(wait); |
| | |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | //#endregion |
| | | |
| | | //#region 导åºExecel |
| | | function btn_Export() { |
| | | table.exportFile(ins.config.id, option.data, "xls"); |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | //éèå设置 |
| | | function get_HideColumn() { |
| | |
| | | </div> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_Export" id="btn_Export"><i class="layui-icon layui-icon-export"></i>导åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="HideColumn"><i class="layui-icon layui-icon-form"></i>éèå设置</button> |
| | | </div> |
| | |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = ""; |
| | | var option = []; |
| | | var ins; //ç¨äºå¯¼åºexcel |
| | | var HModName = "QC_ErrManagerLedgerReport_SourceOfTheProblem"; |
| | | var HSourceOfTheProblem = []; //å¼å¸¸é®é¢æ¥æº |
| | | //#endregion |
| | |
| | | case 'HideColumn': |
| | | get_HideColumn(); |
| | | break; |
| | | //å¯¼åºæé® |
| | | case 'btn_Export': btn_Export(); |
| | | break; |
| | | }; |
| | | }); |
| | | //éç½®æé® |
| | |
| | | option.data = data1.data; |
| | | |
| | | table.render(option); |
| | | ins = table.render(option); |
| | | layer.close(wait); |
| | | } else { |
| | | layer.close(wait); |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //#region 导åºExecel |
| | | function btn_Export() { |
| | | table.exportFile(ins.config.id, option.data, "xls"); |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | //éèå设置 |
| | | function get_HideColumn() { |
| | | var colName = ""; |
| | |
| | | </div> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_Export" id="btn_Export"><i class="layui-icon layui-icon-export"></i>导åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="HideColumn"><i class="layui-icon layui-icon-form"></i>éèå设置</button> |
| | | </div> |
| | |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = ""; |
| | | var option = []; |
| | | var ins; //ç¨äºå¯¼åºexcel |
| | | var HModName = "QC_InspectionFormReport"; |
| | | var optionAVG = []; |
| | | var optionS = []; |
| | |
| | | //éèå设置 |
| | | case 'HideColumn': |
| | | get_HideColumn(); |
| | | break; |
| | | //å¯¼åºæé® |
| | | case 'btn_Export': btn_Export(); |
| | | break; |
| | | }; |
| | | }); |
| | |
| | | optionAVG[0] = data1.data[limit + 1]; |
| | | optionS[0] = data1.data[limit + 2]; |
| | | table.render(option); |
| | | ins = table.render(option); |
| | | set_PPK(); |
| | | set_CPK(); |
| | | set_Line(); |
| | |
| | | return sum; |
| | | } |
| | | |
| | | //#region 导åºExecel |
| | | function btn_Export() { |
| | | table.exportFile(ins.config.id, option.data, "xls"); |
| | | } |
| | | //#endregion |
| | | |
| | | //æçº¿å¾ |
| | | function set_Line() { |
| | | //#regionãæçº¿å¾ã |
| | |
| | | </div> |
| | | <script type="text/html" id="toolbarDemo1"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_Export" id="btn_Export"><i class="layui-icon layui-icon-export"></i>导åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | </div> |
| | | </script> |
| | |
| | | , soulTable = layui.soulTable |
| | | var sWhere = ""; |
| | | var option = []; |
| | | var ins; //ç¨äºå¯¼åºexcel |
| | | var HModName = "QC_MoistureContentDataLedger"; |
| | | var titleData = ["HInterID", "HEntryID", "HBadReasonID", "HSourceInterID", "HSourceEntryID"];//å表ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | |
| | |
| | | switch (obj.event) { |
| | | //å设置 |
| | | case 'set_HideColumn': get_HideColumn(); |
| | | break; |
| | | //å¯¼åºæé® |
| | | case 'btn_Export': btn_Export(); |
| | | break; |
| | | }; |
| | | }); |
| | |
| | | } |
| | | |
| | | table.render(option); |
| | | |
| | | ins = table.render(option); |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | DisPlay_HideColumn(); |
| | | layer.close(ajaxLoad); |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //#region 导åºExecel |
| | | function btn_Export() { |
| | | table.exportFile(ins.config.id, option.data, "xls"); |
| | | } |
| | | //#endregion |
| | | |
| | | //éèå设置 |
| | | function get_HideColumn() { |
| | |
| | | </div> |
| | | <script type="text/html" id="toolbarDemo1"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_Export" id="btn_Export"><i class="layui-icon layui-icon-export"></i>导åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | </div> |
| | | </script> |
| | |
| | | , soulTable = layui.soulTable |
| | | var sWhere = ""; |
| | | var option = []; |
| | | var ins; //ç¨äºå¯¼åºexcel |
| | | var HModName = "QC_PerformanceScrapLedger"; |
| | | var titleData = ["HInterID", "HEntryID", "HBadReasonID", "HSourceInterID", "HSourceEntryID"];//å表ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | |
| | |
| | | switch (obj.event) { |
| | | //å设置 |
| | | case 'set_HideColumn': get_HideColumn(); |
| | | break; |
| | | //å¯¼åºæé® |
| | | case 'btn_Export': btn_Export(); |
| | | break; |
| | | }; |
| | | }); |
| | |
| | | } |
| | | |
| | | table.render(option); |
| | | |
| | | ins = table.render(option); |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | DisPlay_HideColumn(); |
| | | |
| | | //if ($("#Comparator").val() == 0 && $("#ColContent").val() == "") { |
| | | // ColFilter(); |
| | | //} |
| | | DisPlay_HideColumn(); |
| | | |
| | | layer.close(ajaxLoad); |
| | | } else { |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //#region 导åºExecel |
| | | function btn_Export() { |
| | | table.exportFile(ins.config.id, option.data, "xls"); |
| | | } |
| | | //#endregion |
| | | |
| | | //éèå设置 |
| | | function get_HideColumn() { |
| | |
| | | </div> |
| | | <script type="text/html" id="toolbarDemo1"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_Export" id="btn_Export"><i class="layui-icon layui-icon-export"></i>导åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | </div> |
| | | </script> |
| | |
| | | , soulTable = layui.soulTable |
| | | var sWhere = ""; |
| | | var option = []; |
| | | var ins; //ç¨äºå¯¼åºexcel |
| | | var HModName = "QC_QualityStatisticsDailyReport"; |
| | | var titleData = ["HInterID", "HEntryID", "HBadReasonID", "HSourceInterID", "HSourceEntryID"];//å表ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | |
| | |
| | | switch (obj.event) { |
| | | //å设置 |
| | | case 'set_HideColumn': get_HideColumn(); |
| | | break; |
| | | //å¯¼åºæé® |
| | | case 'btn_Export': btn_Export(); |
| | | break; |
| | | }; |
| | | }); |
| | |
| | | $("#HMonth").val(new Date().getMonth()+1); |
| | | form.render('select'); |
| | | } |
| | | |
| | | //#region 导åºExecel |
| | | function btn_Export() { |
| | | table.exportFile(ins.config.id, option.data, "xls"); |
| | | } |
| | | //#endregion |
| | | |
| | | //çäº§è½¦é´ |
| | | function DeptName() { |
| | |
| | | |
| | | option.data=data1.data |
| | | table.render(option); |
| | | |
| | | ins = table.render(option); |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | DisPlay_HideColumn(); |
| | | |
| | |
| | | </div> |
| | | <script type="text/html" id="toolbarDemo1"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_Export" id="btn_Export"><i class="layui-icon layui-icon-export"></i>导åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | </div> |
| | | </script> |
| | |
| | | , soulTable = layui.soulTable |
| | | var sWhere = ""; |
| | | var option = []; |
| | | var ins; //ç¨äºå¯¼åºexcel |
| | | var HModName = "QC_RegistrationForTestingReport"; |
| | | var titleData = ["HInterID", "HEntryID", "HBadReasonID", "HSourceInterID", "HSourceEntryID"];//å表ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | |
| | |
| | | switch (obj.event) { |
| | | //å设置 |
| | | case 'set_HideColumn': get_HideColumn(); |
| | | break; |
| | | //å¯¼åºæé® |
| | | case 'btn_Export': btn_Export(); |
| | | break; |
| | | }; |
| | | }); |
| | |
| | | option.data = data1.data |
| | | } |
| | | |
| | | |
| | | table.render(option); |
| | | |
| | | ins = table.render(option); |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | DisPlay_HideColumn(); |
| | | |
| | | //if ($("#Comparator").val() == 0 && $("#ColContent").val() == "") { |
| | | // ColFilter(); |
| | | //} |
| | | |
| | | layer.close(ajaxLoad); |
| | | } else { |
| | |
| | | } |
| | | }); |
| | | |
| | | |
| | | //#region 导åºExecel |
| | | function btn_Export() { |
| | | table.exportFile(ins.config.id, option.data, "xls"); |
| | | } |
| | | //#endregion |
| | | |
| | | //éèå设置 |
| | | function get_HideColumn() { |
| | |
| | | var linterid = params[params[1]];//æºåid |
| | | var HSouceBillType = params[params[2]];//æºåç±»å |
| | | var HICMOEntryID = params[params[3]];//æºååid |
| | | var HEntryID = params[params[4]];//æºååid |
| | | } |
| | | /*åºå®ä»£ç ï¼æ¯å¼ åæ®é½è¦begin*/ |
| | | //////æµè¯ç¨æ°æ® |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/QC_WorkSelfCheckBill/get_ProcessExchangeBill', |
| | | type: "GET", |
| | | data: { "HInterID": linterid, "user": sessionStorage["HUserName"] }, |
| | | data: { "HInterID": linterid, "HEntryID": HEntryID, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | var data = result.data[0]; |
| | | if (result.count == 1) { |
| | |
| | | |
| | | //è¡¨å¤´ä¿¡æ¯æ£éªæ¹æ¡å¼¹çª |
| | | form.on('submit(btnSearchQCScheme)', function () { |
| | | var HName = $("#HMaterName").val(); |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../è´¨é管ç/æ£éªæ¹æ¡å/QC_CheckProjectList.html', 'yes'], |
| | | content: ['../../è´¨é管ç/æ£éªæ¹æ¡å/QC_CheckProjectList.html?OperationType=1&HName=' + HName + '', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | var linterid = params[params[1]];//æºåid |
| | | var HSouceBillType = params[params[2]];//æºåç±»å |
| | | var HICMOEntryID = params[params[3]];//æºååid |
| | | var HEntryID = params[params[4]];//æºååid |
| | | } |
| | | /*åºå®ä»£ç ï¼æ¯å¼ åæ®é½è¦begin*/ |
| | | //////æµè¯ç¨æ°æ® |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/CheckBill/get_ProcessExchangeBill', |
| | | type: "GET", |
| | | data: { "HInterID": linterid, "user": sessionStorage["HUserName"] }, |
| | | data: { "HInterID": linterid, "HEntryID": HEntryID, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | var data = result.data[0]; |
| | | if (result.count == 1) { |
| | |
| | | |
| | | //è¡¨å¤´ä¿¡æ¯æ£éªæ¹æ¡å¼¹çª |
| | | form.on('submit(btnSearchQCScheme)', function () { |
| | | var HName = $("#HMaterName").val(); |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../è´¨é管ç/æ£éªæ¹æ¡å/QC_CheckProjectList.html', 'yes'], |
| | | content: ['../../è´¨é管ç/æ£éªæ¹æ¡å/QC_CheckProjectList.html?OperationType=1&HName=' + HName+'', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //#region ãåºå¼ä»£ç ã |
| | | //#region ãåºå¼ä»£ç (æ¯è«å°å·²å¯ç¨)ã |
| | | table.on('edit(mainTable)', function (obj) { |
| | | // åå
æ ¼ç¼è¾ä¹åçå¼ |
| | | var oldText = $(this).prev().text(); |
| | | var value = obj.value //å¾å°ä¿®æ¹åçå¼ |
| | | , data = obj.data //å¾å°æå¨è¡ææé®å¼ |
| | | , field = obj.field; //å¾å°å段 |
| | | //layer.msg('[ID: ' + data.id + '] ' + field + ' åæ®µæ´æ¹ä¸ºï¼' + value); |
| | | |
| | | , field = obj.field; //å¾å°å段 |
| | | var HInspectVal = $("#HInspectVal").val(); //æ£éªå¼ |
| | | var HTargetVal = $("#HTargetVal").val(); //ç®æ å¼ |
| | | var HComparator = $("#HComparator").val(); //æ¯è¾ç¬¦ |
| | | var HEntryID = $("#HEntryID").val() - 1; |
| | | var HAnalysisMethod = table.cache["mainTable"][HEntryID].HAnalysisMethod; //åææ¹æ³ |
| | | var HUpLimit = table.cache["mainTable"][HEntryID].HUpLimit; //ä¸éå¼ |
| | | var HDownLimit = table.cache["mainTable"][HEntryID].HDownLimit; //ä¸éå¼ |
| | | switch (field) { |
| | | case "HInspectVal": //æ£éªå¼ |
| | | value = isNaN(value) ? 0 : value; |
| | | if (HInspectVal) { |
| | | if (HInspectVal < HUpLimit && HInspectVal > HDownLimit) { |
| | | |
| | | } |
| | | |
| | |
| | | <input type="text" style="border-radius: 50px;width: 140%;" name="åä»¶æ¡ç " id="SubBarcode" autocomplete="off" placeholder="请è¾å
¥åä»¶æ¡ç " class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class=""> |
| | | <label class="layui-inline" style="width:60px;">æ¯å¦æ··ç®±</label> |
| | | <div class="layui-inline"> |
| | | <input type="checkbox" id="HMixedBox" name="HMixedBox" lay-skin="primary" value="" lay-filter="HMixedBox"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class=""> |
| | |
| | | return util.toDateString(time, "yyyy-MM-dd"); |
| | | } |
| | | } |
| | | //, { field: 'HBarCode_Pack', title: 'æ¡å½¢ç ', width: 145 } |
| | | , { field: 'HSourceBillNo', title: 'æ¡å½¢ç ', width: 145 } |
| | | , { field: 'HBillNo', title: 'æºååå·', width: 125 } |
| | | , { field: 'HBarCode', title: 'å¯ä¸ç ', width: 125 } |
| | |
| | | return; |
| | | } |
| | | //夿è£
ç®±æ°éä¸è½å¤§äºå©ä½æ°é |
| | | if (zxQty > icmoQtyNow) { |
| | | if (zxQty > icmoQtyNow && $("#HMixedBox").val()=="") { |
| | | playSound(); |
| | | layer.msg("è£
ç®±æ°éä¸å
è®¸å¤§äºæµè½¬å¡å©ä½æ°éï¼å©ä½æ°é为" + icmoQtyNow, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | |
| | | } |
| | | } |
| | | }); |
| | | |
| | | |
| | | form.on('checkbox(HMixedBox)', function (obj) { |
| | | if (icmoQtyNow == 0) { |
| | | playSound(); |
| | | layer.msg("å©ä½æ°é为" + icmoQtyNow + ",ä¸å
许混箱ï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | $("input[name='HMixedBox']").prop("checked", false); |
| | | form.render('checkbox'); |
| | | return; |
| | | } |
| | | if (obj.value == "") { |
| | | $("#HMixedBox").val("1"); |
| | | } else { |
| | | $("#HMixedBox").val(""); |
| | | } |
| | | |
| | | }); |
| | | |
| | | |
| | | //åä»¶æ¡ç åè½¦æ¹æ³ |
| | | $('#SubBarcode').on('keydown', function (event) { //æ«æ¡å½¢ç |
| | |
| | | url: GetWEBURL() + "/LEMS/SNBarcodeProcCtrl", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "SubBarcode": SubBarcode, "HProcExchBillNo": HProcExchBillNo }, |
| | | data: { "SubBarcode": SubBarcode, "HProcExchBillNo": HProcExchBillNo, "HMixedBox": $("#HMixedBox").val(), "HBillNo": HBillNo2 }, |
| | | success: function (result) { |
| | | if (result.count == 0) { |
| | | a = 1; |
| | |
| | | layer.alert("å
è£
æ°éå·²çäºæµè½¬å¡æ°éï¼ä¸å
许æ«ç ï¼", { icon: 1 }); |
| | | return; |
| | | } else { |
| | | $.ajax({//表ä½åtemp表 |
| | | url: GetWEBURL() + "/LEMS/SaveSubBarcode_Json", |
| | | type: "GET", |
| | | async: false, |
| | | data: { |
| | | "HBillNo": HBillNo |
| | | , "SubBarcode": SubBarcode |
| | | , "HInterID": HInterID |
| | | , "HBillNo2": HBillNo2 |
| | | , "HBillType": HBillType |
| | | , "sMaker": sMaker |
| | | , "HBarCode": $("#HBarCode_wym").val() |
| | | , "HNumber": $("#HNumber").val() |
| | | , "HName": $("#HMaterName").val() |
| | | , "HModel": $("#HModel").val() |
| | | }, |
| | | success: function (result) { |
| | | var data = result.data; |
| | | if (result.Message == "该åä»¶æ¡ç å·²åå¨") { |
| | | playSound(); |
| | | layer.alert("该åä»¶æ¡ç å·²åå¨", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } else { |
| | | if (data[0].Column1 == 1) { // 说æéªè¯æåäºï¼ |
| | | $('#SubBarcode').val(""); |
| | | $("#SubBarcode").focus(); |
| | | table.reload('smjl-table', { |
| | | url: GetWEBURL1() + '/LEMS/Update_HBillNo_SubBarcodeList_Json' |
| | | , where: { |
| | | HBillNo: HBillNo2 |
| | | , HBarCode: HBillNo |
| | | } |
| | | }); |
| | | zxQtyFlag++; |
| | | pcmQtyFlag++ |
| | | $("#zxQty").val("" + zxQtyFlag + "/" + zxQty + ""); |
| | | $("#pcmQty").val("" + pcmQtyFlag + "/" + pcmQty + ""); |
| | | layer.msg("æ«ææå", { time: 5000, icon: 6 }); |
| | | $.ajax({//æ¥è¯¢æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³ |
| | | url: GetWEBURL() + "/LEMS/Select_Gy_BarCodeBill_HQty", |
| | | type: "GET", |
| | | async: false, |
| | | data: { |
| | | "HBarCode": $("#HBarCode_wym").val() |
| | | }, |
| | | success: function (result) { |
| | | var HQty = result.data[0].HQty; |
| | | HQty++; |
| | | $.ajax({//æ´æ°æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³ |
| | | url: GetWEBURL() + "/LEMS/Update_Gy_BarCodeBill_HQty", |
| | | type: "GET", |
| | | async: false, |
| | | data: { |
| | | "HBarCode": $("#HBarCode_wym").val(), |
| | | "HQty": HQty |
| | | }, |
| | | success: function (result) { |
| | | var HQty = result.data; |
| | | ZJTMFlag = true; |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æ´æ°æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æ¥è¯¢æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } else { |
| | | //夿è£
ç®±æ°éä¸è½å¤§äºå©ä½æ°é |
| | | if (AllHqty > icmoQtyNow && $("#HMixedBox").val() == "") { |
| | | playSound(); |
| | | layer.msg("è£
ç®±æ°éä¸å
è®¸å¤§äºæµè½¬å¡å©ä½æ°éï¼å©ä½æ°é为" + icmoQtyNow, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } else { |
| | | $.ajax({//表ä½åtemp表 |
| | | url: GetWEBURL() + "/LEMS/SaveSubBarcode_Json", |
| | | type: "GET", |
| | | async: false, |
| | | data: { |
| | | "HBillNo": HBillNo |
| | | , "SubBarcode": SubBarcode |
| | | , "HInterID": HInterID |
| | | , "HBillNo2": HBillNo2 |
| | | , "HBillType": HBillType |
| | | , "sMaker": sMaker |
| | | , "HBarCode": $("#HBarCode_wym").val() |
| | | , "HNumber": $("#HNumber").val() |
| | | , "HName": $("#HMaterName").val() |
| | | , "HModel": $("#HModel").val() |
| | | }, |
| | | success: function (result) { |
| | | var data = result.data; |
| | | if (result.Message == "该åä»¶æ¡ç å·²åå¨") { |
| | | playSound(); |
| | | // $("#verifycode").click(); |
| | | //layer.msg(result.Message, { icon: 5 }); |
| | | layer.alert("æå
¥ç¼å表失败", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | layer.alert("该åä»¶æ¡ç å·²åå¨", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } else { |
| | | if (data[0].Column1 == 1) { // 说æéªè¯æåäºï¼ |
| | | $('#SubBarcode').val(""); |
| | | $("#SubBarcode").focus(); |
| | | table.reload('smjl-table', { |
| | | url: GetWEBURL1() + '/LEMS/Update_HBillNo_SubBarcodeList_Json' |
| | | , where: { |
| | | HBillNo: HBillNo2 |
| | | , HBarCode: HBillNo |
| | | } |
| | | }); |
| | | zxQtyFlag++; |
| | | pcmQtyFlag++ |
| | | $("#zxQty").val("" + zxQtyFlag + "/" + zxQty + ""); |
| | | $("#pcmQty").val("" + pcmQtyFlag + "/" + pcmQty + ""); |
| | | layer.msg("æ«ææå", { time: 5000, icon: 6 }); |
| | | $.ajax({//æ¥è¯¢æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³ |
| | | url: GetWEBURL() + "/LEMS/Select_Gy_BarCodeBill_HQty", |
| | | type: "GET", |
| | | async: false, |
| | | data: { |
| | | "HBarCode": $("#HBarCode_wym").val() |
| | | }, |
| | | success: function (result) { |
| | | var HQty = result.data[0].HQty; |
| | | HQty++; |
| | | $.ajax({//æ´æ°æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³ |
| | | url: GetWEBURL() + "/LEMS/Update_Gy_BarCodeBill_HQty", |
| | | type: "GET", |
| | | async: false, |
| | | data: { |
| | | "HBarCode": $("#HBarCode_wym").val(), |
| | | "HQty": HQty |
| | | }, |
| | | success: function (result) { |
| | | var HQty = result.data; |
| | | ZJTMFlag = true; |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æ´æ°æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æ¥è¯¢æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } else { |
| | | playSound(); |
| | | // $("#verifycode").click(); |
| | | //layer.msg(result.Message, { icon: 5 }); |
| | | layer.alert("æå
¥ç¼å表失败", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } |
| | | } |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("åä»¶æ¡ç æ¹æ³åçé误!", { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("åä»¶æ¡ç æ¹æ³åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | } |
| | | }, error: function () { |
| | | playSound(); |
| | |
| | | //æ¸
ç©ºæ«æè®°å½çè£
ç®±æ°é |
| | | zxQtyFlag = 0; |
| | | pcmQtyFlag = 0; |
| | | $("#HMixedBox").val(""); |
| | | $("input[name='HMixedBox']").prop("checked", false); |
| | | form.render('checkbox'); |
| | | //è·ååæ®å· |
| | | getBillno(); |
| | | //æ«ææ¡ç |
New file |
| | |
| | | <!DOCTYPE html> |
| | | <html xmlns="http://www.w3.org/1999/xhtml" style="background-color:white;"> |
| | | <head> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | | <title>产线å
è£
å</title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <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/grwebapp.js"></script> |
| | | <style> |
| | | .layui-form-label { |
| | | font-size: 14px; |
| | | width: 85px; |
| | | text-align: inherit; |
| | | } |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid"> |
| | | <div class="layui-card"> |
| | | <!--<div class="layui-card-header"></div>--> |
| | | <div class="layui-card-body" style="padding: 15px;"> |
| | | <form class="layui-form" action="" lay-filter="component-form-group"> |
| | | <div class="layui-form-item" style="margin-bottom: 20px;"> |
| | | <button type="button" lay-submit="" lay-filter="HAddBT" class="layui-btn layui-btn-radius">æ°å¢</button> |
| | | <!--<button type="button" lay-submit="" lay-filter="" class="layui-btn layui-btn-radius">æ¸
空</button>--> |
| | | <button type="button" lay-submit="" lay-filter="Saver" class="layui-btn layui-btn-radius">ä¿å</button> |
| | | <button type="button" lay-submit="" lay-filter="Close" class="layui-btn layui-btn-radius layui-btn-danger">éåº</button> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-block"> |
| | | <select name="city" lay-verify="required" id="dymb"> |
| | | <!--<option value="æªéæ©">è¯·éæ©æå°æ¨¡æ¿</option>--> |
| | | <option value="HBarCodePrint">ç©ææ¡ç 模æ¿</option> |
| | | <!--<option value="HPOInStockBill">éè´§å</option>--> |
| | | <!--<option value="HPOInStockBill">éè´§å(æ ç¾çº¸)</option>--> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <button type="button" lay-submit="" lay-filter="Print" id="Print" class="layui-btn layui-btn-radius">æå°</button> |
| | | <button type="button" lay-submit="" lay-filter="Print2" id="Print2" hidden="hidden" ></button> |
| | | <div class="layui-inline" style="width: 200px;"> |
| | | <div class="layui-input-block"> |
| | | <select name="PrintName" lay-verify="required" id="PrintName"> |
| | | <option value="æ¯è«å°" selected>æ¯è«å°</option> |
| | | <option value="æ®è²ç¹">æ®è²ç¹</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-block"> |
| | | <select name="LDM" lay-verify="required" id="LDM"> |
| | | <option value="DU3" selected>DU3</option> |
| | | <option value="QDR">QDR</option> |
| | | <option value="AAA">15车é´</option> |
| | | <option value="å
¶ä»">å
¶ä»</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-block"> |
| | | <select name="BBM" lay-verify="required" id="BBM"> |
| | | <option value="1099081-00-E">1099081-00-E</option> |
| | | <option value="1786947-00-B">1786947-00-B</option> |
| | | <option value="1607222-00-B">1607222-00-B</option> |
| | | <option value="1943600-00-B">1943600-00-B</option> |
| | | <option value="1941600-00-B">1941600-00-B</option> |
| | | <option value="1941600-00-C">1941600-00-C</option> |
| | | <option value="1943600-00-C">1943600-00-C</option> |
| | | <option value="å
¶ä»" selected>å
¶ä»</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row" style="padding:10px 0"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <fieldset class="layui-elem-field layui-field-title" style="text-align:center;"> |
| | | <legend>产线å
è£
å</legend> |
| | | </fieldset> |
| | | </div> |
| | | <div class="layui-col-xs1 layui-inline"> |
| | | <img src="222.jpg" style="width:70%;height:50%;" /> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <div class=""> |
| | | <label class="layui-inline" style="width:60px;">æµè½¬å¡å·</label> |
| | | <div class="layui-inline"> |
| | | <input type="text" style="border-radius: 50px;width: 140%;" name="æµè½¬å¡å·" id="HFbarcode" placeholder="请è¾å
¥æµè½¬å¡å·" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class=""> |
| | | <label class="layui-inline" style="width:60px;">åä»¶æ¡ç æ°é</label> |
| | | <div class="layui-inline"> |
| | | <input type="text" lay-verify="verifyPcmQty" style="border-radius: 50px;width: 140%;" name="åä»¶æ¡ç æ°é" id="pcmQty" autocomplete="off" placeholder="请è¾å
¥åä»¶æ¡ç æ°é" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class=""> |
| | | <label class="layui-inline" style="width:60px;">åä»¶æ¡ç </label> |
| | | <div class="layui-inline"> |
| | | <input type="text" style="border-radius: 50px;width: 140%;" name="åä»¶æ¡ç " id="SubBarcode" autocomplete="off" placeholder="请è¾å
¥åä»¶æ¡ç " class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class=""> |
| | | <label class="layui-inline" style="width:60px;">æ¯å¦æ··ç®±</label> |
| | | <div class="layui-inline"> |
| | | <input type="checkbox" id="HMixedBox" name="HMixedBox" lay-skin="primary" value="" lay-filter="HMixedBox"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class=""> |
| | | <label class="layui-inline" style="width:60px;">è£
ç®±æ°é</label> |
| | | <div class="layui-inline"> |
| | | <input type="text" style="border-radius: 50px;" name="" id="zxQty" placeholder="请è¾å
¥è£
ç®±æ°é" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class=""> |
| | | <label class="layui-inline" style="width:60px;">䏿»¡ç®±æ è¯</label> |
| | | <div class="layui-inline"> |
| | | <input type="text" style="border-radius: 50px;" name="" id="HRemark" autocomplete="off" placeholder="请è¾å
¥ä¸æ»¡ç®±æ è¯" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class=""> |
| | | <label class="layui-inline" style="width:60px;">ç½æ å·</label> |
| | | <div class="layui-inline"> |
| | | <input type="text" style="border-radius: 50px;" name="" id="HBarCode_White" autocomplete="off" placeholder="ç½æ å·" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!--å¾
æ¥æ¶å·¥å&仿¥è¿ç«--> |
| | | <div class="layui-card layui-form-item"> |
| | | <div class="layui-card-body"> |
| | | <div class="layui-tab"> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | | <li data-status="" class="layui-this">æ«ç è®°å½</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs12"> |
| | | <table class="layui-hide" id="smjl-table" lay-filter="smjl-table"></table> |
| | | <script type="text/html" id="smjl-toolbar"> |
| | | <div class="layui-btn-container"> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-getCheckData"><i class="layui-icon layui-icon-tips"></i>é¢è§</button>--> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-reload"><i class="layui-icon layui-icon-refresh"></i>å·æ°</button>--> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-confirm" id="btn_confirm"><i class="layui-icon layui-icon-ok-circle"></i>确认</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-back" id="btn_back"><i class="layui-icon layui-icon-close-fill"></i>å è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-details"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-generate"><i class="layui-icon layui-icon-file"></i>çæéè´§å</button>--> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>éåº</button>--> |
| | | </div> |
| | | </script> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!--å½åå·¥å&å
¶ä»ä¿¡æ¯--> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-col-md8 layui-card-body layui-inline"> |
| | | <div class="layui-tab"> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | | <li data-status="" class="layui-this">å
è£
ä¿¡æ¯</li> |
| | | <li data-status="2">å
¶ä»ä¿¡æ¯</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show" style="height:250px;"> |
| | | <table> |
| | | <tbody> |
| | | <tr> |
| | | <th style="width:80px;padding:10px">æµè½¬å¡å·</th> |
| | | <td> |
| | | <input type="text" name="æµè½¬å¡å·" id="HProcExchBillNo" lay-verify="" autocomplete="off" placeholder="æµè½¬å¡å·" class="layui-input" style="background-color:#efefef4d" readonly> |
| | | <input type="hidden" name="æµè½¬å¡ID" id="HFbarcodeID"> |
| | | </td> |
| | | <th style="width:80px;padding:10px">ç»è£
æ¶é´</th> |
| | | <td> |
| | | <input type="text" name="ç»è£
æ¶é´" class="layui-input" id="HDateNow" placeholder="ç»è£
æ¶é´" style="background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th style="width:80px;padding:10px">ç产订åå·</th> |
| | | <td> |
| | | <input type="text" name="ç产订åå·" id="HSourceBillNo" lay-verify="" autocomplete="off" placeholder="ç产订åå·" class="layui-input" style="background-color:#efefef4d" readonly> |
| | | </td> |
| | | <th style="width:80px;padding:10px">产å代ç </th> |
| | | <td> |
| | | <input type="text" name="产å代ç " class="layui-input" id="HNumber" placeholder="产å代ç " style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="ç©æå
ç " id="HMaterID"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th style="width:80px;padding:10px">产ååç§°</th> |
| | | <td> |
| | | <input type="text" name="产ååç§°" id="HMaterName" lay-verify="" autocomplete="off" placeholder="产ååç§°" class="layui-input" style="background-color:#efefef4d" readonly> |
| | | </td> |
| | | <th style="width:80px;padding:10px">è§æ ¼åå·</th> |
| | | <td> |
| | | <input type="text" name="è§æ ¼åå·" class="layui-input" id="HModel" placeholder="è§æ ¼åå·" style="background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th style="width:80px;padding:10px">计éåä½</th> |
| | | <td> |
| | | <input type="text" name="计éåä½" id="" lay-verify="" autocomplete="off" placeholder="计éåä½" class="layui-input" style="background-color:#efefef4d" readonly> |
| | | </td> |
| | | <th style="width:80px;padding:10px">æµè½¬å¡æ°é</th> |
| | | <td> |
| | | <input type="text" name="æµè½¬å¡æ°é" class="layui-input" id="" placeholder="æµè½¬å¡æ°é" style="background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th style="width:80px;padding:10px">çäº§è®¢åæ°é</th> |
| | | <td> |
| | | <input type="text" name="çäº§è®¢åæ°é" id="" lay-verify="" autocomplete="off" placeholder="çäº§è®¢åæ°é" class="layui-input" style="background-color:#efefef4d" readonly> |
| | | </td> |
| | | <th style="width:80px;padding:10px">åæ®å·</th> |
| | | <td> |
| | | <input type="text" name="åæ®å·" class="layui-input" id="HBillNo2" placeholder="åæ®å·" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="åæ®å·ID" id="HInterID"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th style="width:80px;padding:10px">订åè·è¸ªå·</th> |
| | | <td> |
| | | <input type="text" name="订åè·è¸ªå·" id="" lay-verify="" autocomplete="off" placeholder="订åè·è¸ªå·" class="layui-input" style="background-color:#efefef4d" readonly> |
| | | </td> |
| | | <th style="width:80px;padding:10px">ææ¡ç </th> |
| | | <td> |
| | | <input type="text" name="ææ¡ç " class="layui-input" id="HBarCode_wym" placeholder="ææ¡ç " style="background-color:#efefef4d;" readonly> |
| | | <!--éèåæ®µ--> |
| | | <input type="hidden" name="HUnitID" id="HUnitID"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th style="width:80px;padding:10px">项ç®å·</th> |
| | | <td> |
| | | <input type="text" name="项ç®å·" id="HProjectNum" lay-verify="" autocomplete="off" placeholder="项ç®å·" class="layui-input" style="background-color:#efefef4d" readonly> |
| | | </td> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | <div class="layui-tab-item" style="height:250px;"> |
| | | <table> |
| | | <tbody> |
| | | <tr> |
| | | <th style="width:80px;padding:10px">å¶å人</th> |
| | | <td> |
| | | <input type="text" name="å¶å人" id="" lay-verify="" autocomplete="off" placeholder="å¶å人" class="layui-input" style="background-color:#efefef4d" readonly> |
| | | </td> |
| | | <th style="width:80px;padding:10px">å¶åæ¥æ</th> |
| | | <td> |
| | | <input type="text" name="å¶åæ¥æ" class="layui-input" id="" placeholder="å¶åæ¥æ" style="background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th style="width:80px;padding:10px">ä¿®æ¹äºº</th> |
| | | <td> |
| | | <input type="text" name="ä¿®æ¹äºº" id="" lay-verify="" autocomplete="off" placeholder="ä¿®æ¹äºº" class="layui-input" style="background-color:#efefef4d" readonly> |
| | | </td> |
| | | <th style="width:80px;padding:10px">ä¿®æ¹æ¥æ</th> |
| | | <td> |
| | | <input type="text" name="ä¿®æ¹æ¥æ" class="layui-input" id="" placeholder="ä¿®æ¹æ¥æ" style="background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th style="width:80px;padding:10px">å®¡æ ¸äºº</th> |
| | | <td> |
| | | <input type="text" name="å®¡æ ¸äºº" id="" lay-verify="" autocomplete="off" placeholder="å®¡æ ¸äºº" class="layui-input" style="background-color:#efefef4d" readonly> |
| | | </td> |
| | | <th style="width:80px;padding:10px">å®¡æ ¸æ¥æ</th> |
| | | <td> |
| | | <input type="text" name="å®¡æ ¸æ¥æ" class="layui-input" id="" placeholder="å®¡æ ¸æ¥æ" style="background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!--失败æç¤ºé³--> |
| | | <div id="" style="display:none;"> |
| | | <audio id="cs" hidden controls> |
| | | <source src="../../video/jingbao.wav" type="audio/ogg"> |
| | | </audio> |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <script type="text/html" id="toolBar"> |
| | | <a class="layui-btn layui-btn-xs" lay-event="del" style="background-color: red;">å é¤</a> |
| | | </script> |
| | | |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/json2.js" type="text/javascript"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig2.js"></script> |
| | | <script src="../../CreateControl.js"></script> |
| | | <script> |
| | | //CreateReport("Report"); |
| | | function getUrlVars() { |
| | | var vars = [], hash; |
| | | var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); |
| | | for (var i = 0; i < hashes.length; i++) { |
| | | hash = hashes[i].split('='); |
| | | vars.push(hash[0]); |
| | | vars[hash[0]] = hash[1]; |
| | | } |
| | | return vars; |
| | | } |
| | | var params = getUrlVars(); |
| | | var BillStatusjson = params[params[0]]; |
| | | var InterID = params[params[1]]; |
| | | |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'laydate', 'table', 'element'], function () { |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , element = layui.element |
| | | , layer = layui.layer |
| | | , laydate = layui.laydate |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , util = layui.util; |
| | | |
| | | //夿æ¯å¦ç»å½ æªç»å½åè·³å°ç»å½é¡µ |
| | | if (sessionStorage.login != "login") { |
| | | layer.confirm("ç»å½å¤±æï¼è¯·éæ°ç»å½ï¼", { |
| | | icon: 4, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['éæ°ç»å½'] |
| | | }, function () { parent.location.href = "../user/login.html"; }); |
| | | return; |
| | | } |
| | | var option = []; |
| | | set_InitGrid(); |
| | | |
| | | //åå§åæç»è¡¨æ ¼ |
| | | function set_InitGrid() { |
| | | columns = [ |
| | | { type: 'numbers', title: 'åºå·' } |
| | | , { |
| | | field: time, title: 'æ«ç æ¥æ', width: 110, templet: function (d) { |
| | | return util.toDateString(time, "yyyy-MM-dd"); |
| | | } |
| | | } |
| | | //, { field: 'HBarCode_Pack', title: 'æ¡å½¢ç ', width: 145 } |
| | | , { field: 'HSourceBillNo', title: 'æ¡å½¢ç ', width: 145 } |
| | | , { field: 'HBillNo', title: 'æºååå·', width: 125 } |
| | | , { field: 'HBarCode', title: 'å¯ä¸ç ', width: 125 } |
| | | , { field: 'HNumber', title: 'ç©æç¼ç ', width: 105 } |
| | | , { field: 'HName', title: 'ç©æåç§°', width: 105 } |
| | | , { field: 'HModel', title: 'è§æ ¼åå·', width: 105 } |
| | | , { field: 'HQty', title: 'æ°é', width: 80 } |
| | | //, { field: 'HWhID', title: 'ä»åº', width: 80 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 80 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 195 } |
| | | , { toolbar: '#toolBar', width: 65, fixed: 'right' } |
| | | ]; |
| | | option = { |
| | | id: 'smjl-table' |
| | | , elem: '#smjl-table' |
| | | //, toolbar: '#toolbarDemo' |
| | | , page: false |
| | | //, cellMinWidth: 120 |
| | | //, height: 500 |
| | | , cols: [columns] |
| | | //, limit: 500 //æ¯é¡µé»è®¤æ¾ç¤ºçæ°é |
| | | , done: function (res, curr, count) { |
| | | } |
| | | }; |
| | | } |
| | | //å
¨å±åé |
| | | var ZJTMFlag = false;//åä»¶æ¡ç è¾å
¥æ è®° |
| | | //è·åå½åæ¶é´å¤ç |
| | | var data = new Date(); |
| | | var year = data.getFullYear(); //è·åå¹´ |
| | | var month = data.getMonth() + 1; //è·åæ |
| | | var day = data.getDate(); //è·åæ¥ |
| | | var time = year + "-" + month + "-" + day; |
| | | |
| | | var sMaker = sessionStorage["HMaker"]; |
| | | var zxQty;//è¾å
¥çè£
ç®±æ°é |
| | | var zxQtyFlag = 0; |
| | | var pcmQty;//è¾å
¥çæ¹æ¬¡ç æ°é |
| | | var pcmQtyFlag = 0; |
| | | var icmoQty = 0;//æµè½¬å¡æ°é |
| | | var icmoQtyNow = 0;//æµè½¬å¡å©ä½æ°é |
| | | //console.log(sessionStorage); |
| | | |
| | | //页é¢åå§åèµå¼ |
| | | layer.load(3); |
| | | //è·ååæ®å· |
| | | getBillno(); |
| | | |
| | | $("#HDateNow").val(time);//å è½½å½åæ¶é´ |
| | | $("#zxQty").focus(); |
| | | //$("#HFbarcode").css("box-shadow", "0 0 0 1px #00ff00"); |
| | | $("#SubBarcode").attr("readonly", "readonly");//åä»¶æ¡ç åªè¯» |
| | | $("#SubBarcode").css("background-color", "#efefef4d"); |
| | | //$("#zxQty").attr("readonly", "readonly");//æ°éåªè¯» |
| | | //$("#zxQty").css("background-color", "#efefef4d"); |
| | | $("#HFbarcode").attr("readonly", "readonly"); |
| | | $("#HFbarcode").css("background-color", "#efefef4d"); |
| | | $("#pcmQty").attr("readonly", "readonly");//æ°éåªè¯» |
| | | $("#pcmQty").css("background-color", "#efefef4d"); |
| | | |
| | | |
| | | //å¡«åè£
ç®±æ°éåå
æ 跳走 |
| | | $('#zxQty').on('keydown', function (event) { |
| | | zxQty = $("#zxQty").val(); |
| | | if (event.keyCode == 13) { |
| | | if (!(/(^[1-9]\d*$)/.test(zxQty))) { |
| | | playSound(); |
| | | layer.msg("请è¾å
¥æ£ç¡®çæ´æ°ï¼"); |
| | | return; |
| | | } |
| | | |
| | | if (zxQty == "" || zxQty <= 0) { |
| | | playSound(); |
| | | layer.msg("请è¾å
¥æ£ç¡®çæ°éï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } else { |
| | | $("#zxQty").attr("readonly", "readonly");//æ°éåªè¯» |
| | | $("#zxQty").css("background-color", "#efefef4d"); |
| | | $("#zxQty").css("box-shadow", "none"); |
| | | |
| | | pcmQty = zxQty; |
| | | $("#pcmQty").val(zxQty);//åä»¶æ¡ç æ°é é»è®¤ä¸º = è£
ç®±æ°é |
| | | $("#SubBarcode").removeAttr("readonly");//ç§»é¤åä»¶æ¡ç åªè¯» |
| | | $("#SubBarcode").css("background-color", "white"); |
| | | $("#SubBarcode").focus(); |
| | | $("#SubBarcode").css("box-shadow", "0 0 0 1px #00ff00"); |
| | | HFbarcodeKeydown(); |
| | | } |
| | | } |
| | | }); |
| | | |
| | | //å¡«ååä»¶æ¡ç æ°éåå
æ 跳走 |
| | | $('#pcmQty').on('keydown', function (event) { |
| | | pcmQty = $("#pcmQty").val(); |
| | | if (event.keyCode == 13) { |
| | | if (!(/(^[1-9]\d*$)/.test(pcmQty))) { |
| | | playSound(); |
| | | layer.msg("请è¾å
¥æ£ç¡®çæ´æ°ï¼"); |
| | | return; |
| | | } |
| | | //å¤æææ¬æ¡æ¯å¦ææ°æ® new |
| | | if (pcmQty > icmoQty) { |
| | | playSound(); |
| | | layer.msg("åä»¶æ¡ç æ°éä¸å
è®¸å¤§äºæµè½¬å¡æ°éï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | if (pcmQty == "" || pcmQty <= 0) { |
| | | playSound(); |
| | | layer.msg("请è¾å
¥æ£ç¡®çæ°éï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } else { |
| | | $("#pcmQty").attr("readonly", "readonly");//æ°éåªè¯» |
| | | $("#pcmQty").css("background-color", "#efefef4d"); |
| | | $("#pcmQty").css("box-shadow", "none"); |
| | | $("#SubBarcode").removeAttr("readonly");//ç§»é¤åä»¶æ¡ç åªè¯» |
| | | $("#SubBarcode").css("background-color", "white"); |
| | | $("#SubBarcode").focus(); |
| | | $("#SubBarcode").css("box-shadow", "0 0 0 1px #00ff00"); |
| | | } |
| | | } |
| | | }); |
| | | |
| | | |
| | | form.on('checkbox(HMixedBox)', function (obj) { |
| | | if (icmoQtyNow == 0) { |
| | | playSound(); |
| | | layer.msg("å©ä½æ°é为" + icmoQtyNow + ",ä¸å
许混箱ï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | $("input[name='HMixedBox']").prop("checked", false); |
| | | form.render('checkbox'); |
| | | return; |
| | | } |
| | | if (obj.value == "") { |
| | | $("#HMixedBox").val("1"); |
| | | } else { |
| | | $("#HMixedBox").val(""); |
| | | } |
| | | |
| | | }); |
| | | |
| | | |
| | | //åä»¶æ¡ç åè½¦æ¹æ³ |
| | | $('#SubBarcode').on('keydown', function (event) { //æ«æ¡å½¢ç |
| | | |
| | | var SubBarcode = $('#SubBarcode').val(); |
| | | var HBillNo = $('#HFbarcode').val(); |
| | | var HInterID = $("#HInterID").val(); |
| | | var HBillNo2 = $("#HBillNo2").val(); |
| | | var HBillType = "3783"; |
| | | var LDM = $("#LDM").val();//æ¡ç 车é´ç±»å DU3/QDR/å
¶å® |
| | | var BBM = $("#BBM").val();// |
| | | var reg = /[a-z]/; |
| | | |
| | | if (event.keyCode == 13) { |
| | | if (LDM != "å
¶ä»" && BBM != "å
¶ä»" && SubBarcode.length != 29) { |
| | | playSound(); |
| | | layer.alert("åä»¶æ¡ç é¿åº¦ä¸ä¸º29ä½!", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | |
| | | if (LDM == "AAA" && SubBarcode.length != 50) { |
| | | playSound(); |
| | | layer.alert("åä»¶æ¡ç é¿åº¦ä¸ä¸º50ä½!", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | |
| | | if (SubBarcode.match(/[^\x00-\xff]/g) != null) { |
| | | playSound(); |
| | | layer.alert("å¿
é¡»æ¯åè§å符!", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | |
| | | if (SubBarcode.length == 50) { |
| | | if (LDM != "å
¶ä»" && reg.test(SubBarcode)) { |
| | | playSound(); |
| | | layer.alert("请æ¥çåä»¶æ¡ç 大忝妿£ç¡®!", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | } else { |
| | | if (LDM != "å
¶ä»" && BBM != "å
¶ä»" && reg.test(SubBarcode)) { |
| | | playSound(); |
| | | layer.alert("请æ¥çåä»¶æ¡ç 大忝妿£ç¡®!", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | if (LDM != "å
¶ä»" && BBM != "å
¶ä»" && SubBarcode.indexOf(BBM) == -1) { |
| | | playSound(); |
| | | layer.alert("è¯·æ«ææ£ç¡®çåä»¶æ¡ç !", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | |
| | | if (LDM != "å
¶ä»") { |
| | | if (SubBarcode.indexOf(LDM) == -1) { |
| | | playSound(); |
| | | layer.alert("å½åæ¡ç ä¸å±äº" + LDM + "车é´", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | } |
| | | if (SubBarcode == "") { |
| | | playSound(); |
| | | layer.alert("åä»¶æ¡ç 为空ï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | if (zxQty == zxQtyFlag) { |
| | | playSound(); |
| | | layer.alert("è£
ç®±æ°éå·²æ«å®ï¼è¯·ç¹å»ä¿åï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | $("#HRemark").attr("readonly", "readonly");//䏿»¡ç®±æ è¯åªè¯» |
| | | $("#HRemark").css("background-color", "#efefef4d"); |
| | | return; |
| | | } |
| | | if (pcmQty == pcmQtyFlag) { |
| | | playSound(); |
| | | layer.alert("åä»¶æ¡ç æ°éå·²æ«å®ï¼è¯·ç¹å»ä¿åï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | //var a = 0; |
| | | |
| | | //$.ajax({//夿æ¡ç çç¶æ |
| | | // url: GetWEBURL() + "/LEMS/HbadStaus", |
| | | // type: "GET", |
| | | // async: false, |
| | | // data: { "SubBarcode": SubBarcode }, |
| | | // success: function (result) { |
| | | // if (result.count == 0) { |
| | | // a = 1; |
| | | // playSound(); |
| | | // layer.alert(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't' }); |
| | | // return false; |
| | | // } |
| | | // } |
| | | //}) |
| | | //if (a == 1) { |
| | | // a = 0; |
| | | // return false; |
| | | //} |
| | | //var HProcExchBillNo = $("#HProcExchBillNo").val(); |
| | | ////夿æ¡ç ä¹åçå·¥åºæ¯å¦åºç« |
| | | //$.ajax({ |
| | | // url: GetWEBURL() + "/LEMS/SNBarcodeProcCtrl", |
| | | // type: "GET", |
| | | // async: false, |
| | | // data: { "SubBarcode": SubBarcode, "HProcExchBillNo": HProcExchBillNo, "HMixedBox": $("#HMixedBox").val(), "HBillNo": HBillNo2 }, |
| | | // success: function (result) { |
| | | // if (result.count == 0) { |
| | | // a = 1; |
| | | // playSound(); |
| | | // layer.alert(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't' }); |
| | | // return false; |
| | | // } |
| | | // } |
| | | //}) |
| | | |
| | | //if (a == 1) { |
| | | // a = 0; |
| | | // return false; |
| | | //} |
| | | |
| | | $.ajax({//æ¥è¯¢åä»¶æ¡ç çå计æ°é |
| | | url: GetWEBURL() + "/LEMS/Select_Gy_BarCodeBill_HQty", |
| | | type: "GET", |
| | | async: false, |
| | | data: { |
| | | "HBarCode": $("#HBarCode_wym").val() |
| | | }, |
| | | success: function (result) { |
| | | var AllHqty = result.data[0].HQty; |
| | | if (AllHqty >= icmoQty) { |
| | | playSound(); |
| | | layer.alert("å
è£
æ°éå·²çäºæµè½¬å¡æ°éï¼ä¸å
许æ«ç ï¼", { icon: 1 }); |
| | | return; |
| | | } else { |
| | | //夿è£
ç®±æ°éä¸è½å¤§äºå©ä½æ°é |
| | | if (AllHqty > icmoQtyNow && $("#HMixedBox").val() == "") { |
| | | playSound(); |
| | | layer.msg("è£
ç®±æ°éä¸å
è®¸å¤§äºæµè½¬å¡å©ä½æ°éï¼å©ä½æ°é为" + icmoQtyNow, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } else { |
| | | $.ajax({//表ä½åtemp表 |
| | | url: GetWEBURL() + "/LEMS/SaveSubBarcode_Json_MXG", |
| | | type: "GET", |
| | | async: false, |
| | | data: { |
| | | "HBillNo": HBillNo |
| | | , "SubBarcode": SubBarcode |
| | | , "HInterID": HInterID |
| | | , "HBillNo2": HBillNo2 |
| | | , "HBillType": HBillType |
| | | , "sMaker": sMaker |
| | | , "HBarCode": $("#HBarCode_wym").val() |
| | | , "HNumber": $("#HNumber").val() |
| | | , "HName": $("#HMaterName").val() |
| | | , "HModel": $("#HModel").val() |
| | | }, |
| | | success: function (result) { |
| | | var data = result.data; |
| | | if (result.Message == "该åä»¶æ¡ç å·²åå¨") { |
| | | playSound(); |
| | | layer.alert("该åä»¶æ¡ç å·²åå¨", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } else { |
| | | if (data[0].Column1 == 1) { // 说æéªè¯æåäºï¼ |
| | | $('#SubBarcode').val(""); |
| | | $("#SubBarcode").focus(); |
| | | table.reload('smjl-table', { |
| | | url: GetWEBURL1() + '/LEMS/Update_HBillNo_SubBarcodeList_Json' |
| | | , where: { |
| | | HBillNo: HBillNo2 |
| | | , HBarCode: HBillNo |
| | | } |
| | | }); |
| | | zxQtyFlag++; |
| | | pcmQtyFlag++ |
| | | $("#zxQty").val("" + zxQtyFlag + "/" + zxQty + ""); |
| | | $("#pcmQty").val("" + pcmQtyFlag + "/" + pcmQty + ""); |
| | | layer.msg("æ«ææå", { time: 5000, icon: 6 }); |
| | | $.ajax({//æ¥è¯¢æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³ |
| | | url: GetWEBURL() + "/LEMS/Select_Gy_BarCodeBill_HQty", |
| | | type: "GET", |
| | | async: false, |
| | | data: { |
| | | "HBarCode": $("#HBarCode_wym").val() |
| | | }, |
| | | success: function (result) { |
| | | var HQty = result.data[0].HQty; |
| | | HQty++; |
| | | $.ajax({//æ´æ°æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³ |
| | | url: GetWEBURL() + "/LEMS/Update_Gy_BarCodeBill_HQty", |
| | | type: "GET", |
| | | async: false, |
| | | data: { |
| | | "HBarCode": $("#HBarCode_wym").val(), |
| | | "HQty": HQty |
| | | }, |
| | | success: function (result) { |
| | | var HQty = result.data; |
| | | ZJTMFlag = true; |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æ´æ°æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æ¥è¯¢æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } else { |
| | | playSound(); |
| | | // $("#verifycode").click(); |
| | | //layer.msg(result.Message, { icon: 5 }); |
| | | layer.alert("æå
¥ç¼å表失败", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } |
| | | } |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("åä»¶æ¡ç æ¹æ³åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æ¥è¯¢æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | //ä¿åæé® |
| | | form.on('submit(Saver)', function (data) {//æäº¤ |
| | | //debugger; |
| | | if (parseInt(zxQty) > zxQtyFlag) { |
| | | var HRemark = $('#HRemark').val(); |
| | | if (!HRemark) { |
| | | playSound(); |
| | | layer.alert("è£
ç®±æ°éæªæ«å®ï¼è¯·æ«å®è£
ç®±æ°éæå¡«å䏿»¡ç®±æ è¯ï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | } |
| | | if (!ZJTMFlag) { |
| | | playSound(); |
| | | layer.alert("åä»¶æ¡ç æªæ«æï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | //å¢å æ ¡éªç½æ å· |
| | | var LDM = $("#LDM").val();// |
| | | var BBM = $("#BBM").val();// |
| | | var HBarCode_White = $("#HBarCode_White").val();//ç½æ å· |
| | | |
| | | if (HBarCode_White == "") { |
| | | playSound(); |
| | | layer.alert("ç½æ å·ä¸è½ä¸ºç©º!", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | |
| | | //var BBMs = BBM.replace(/-/g, ""); |
| | | //if (LDM != "å
¶ä»" && BBM != "å
¶ä»" && HBarCode_White.indexOf(BBMs) == -1) { |
| | | // playSound(); |
| | | // layer.alert("è¯·æ«ææ£ç¡®ç½æ å·", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | // return; |
| | | //} |
| | | if ($('#dymb').val() == "æªéæ©") { |
| | | playSound(); |
| | | layer.alert("è¯·éæ©æå°æ¨¡æ¿", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var datas = table.cache["smjl-table"]; |
| | | var HBillNo = $('#HBillNo2').val(); |
| | | var lenth = datas.length; |
| | | var HRemark = $("#HRemark").val(); |
| | | if (!HRemark) { |
| | | HRemark = "æ "; |
| | | } |
| | | //var HProjectNum = $("#HProjectNum").val(); |
| | | var HProjectNum = "æµè¯"; |
| | | if (!HProjectNum) { |
| | | playSound(); |
| | | layer.alert("项ç®å·ä¸ºç©ºï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | $.ajax({//æå
¥ä¸»è¡¨ |
| | | url: GetWEBURL() + "/LEMS/SaveToSc_PackUnionBillMain_MXG", |
| | | type: "GET", |
| | | async: false, |
| | | data: { |
| | | "HBillNo": HBillNo |
| | | , "HRemark": HRemark |
| | | , "HProjectNum": HProjectNum |
| | | , "HBarCode_White": HBarCode_White |
| | | , "zxQty": zxQty |
| | | , "BBM": BBM |
| | | , "LDM": LDM |
| | | , "HMaterNumber": $("#HNumber").val() |
| | | }, |
| | | success: function (result) { |
| | | var data = result.data; |
| | | if (result.count == 1) { |
| | | playSound(); |
| | | layer.msg("æ«ææå", { time: 5000, icon: 6 }); |
| | | } else { |
| | | playSound(); |
| | | // $("#verifycode").click(); |
| | | //layer.msg(result.Message, { icon: 5 }); |
| | | layer.alert("æå
¥ä¸»è¡¨å¤±è´¥", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æµæ°´å·æ¹æ³åçé误!", { icon: 5 }); |
| | | return; |
| | | } |
| | | }); |
| | | for (var i = 0; i < datas.length; i++) { |
| | | var HitemID = datas[i].HitemID; |
| | | var HBillType = datas[i].HBillType; |
| | | if (HBillType != 3772) { |
| | | var HRemark = $("#HRemark").val(); |
| | | if (!HRemark) { |
| | | HRemark = "æ "; |
| | | } |
| | | $.ajax({//æå
¥å表 |
| | | url: GetWEBURL() + "/LEMS/SaveToSc_PackUnionBillSub", |
| | | type: "GET", |
| | | async: false, |
| | | data: { |
| | | "HitemID": HitemID |
| | | , "HRemark": HRemark |
| | | }, |
| | | success: function (result) { |
| | | var data = result.data; |
| | | if (result.count == 1) { |
| | | //layer.msg("æ«ææå", { time: 5000, icon: 6 }); |
| | | } else { |
| | | playSound(); |
| | | // $("#verifycode").click(); |
| | | //layer.msg(result.Message, { icon: 5 }); |
| | | layer.alert("æå
¥å表失败", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æå
¥åè¡¨æ¹æ³åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | for (var i = 0; i < datas.length; i++) { |
| | | var HitemID = datas[i].HitemID |
| | | $.ajax({//æ´æ°temp表æ è®°åæ®µ |
| | | url: GetWEBURL() + "/LEMS/Update_Flag_HRelationInterID", |
| | | type: "GET", |
| | | async: false, |
| | | data: { |
| | | "HitemID": HitemID |
| | | }, |
| | | success: function (result) { |
| | | var data = result.data; |
| | | if (result.count == 1) { |
| | | //layer.msg("æ«ææå", { time: 5000, icon: 6 }); |
| | | } else { |
| | | playSound(); |
| | | layer.alert("æå
¥ä¸»è¡¨å¤±è´¥", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æ´æ°æ è®°æ¹æ³åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | $("#HBarCode_White").val(""); |
| | | //åä»¶æ¡ç æ°éå·²æ«å® æ¡ç æ«å®å |
| | | if (pcmQty == pcmQtyFlag) { |
| | | $.ajax({//æ¥è¯¢åä»¶æ¡ç çå计æ°é |
| | | url: GetWEBURL() + "/LEMS/Select_Gy_BarCodeBill_HQty", |
| | | type: "GET", |
| | | async: false, |
| | | data: { |
| | | "HBarCode": $("#HBarCode_wym").val() |
| | | }, |
| | | success: function (result) { |
| | | var AllHqty = result.data[0].HQty; |
| | | if (AllHqty == icmoQty) { |
| | | location.reload(); |
| | | return; |
| | | } |
| | | } |
| | | }) |
| | | //æ¸
ç©ºæ«æè®°å½çè£
ç®±æ°é |
| | | zxQtyFlag = 0; |
| | | pcmQtyFlag = 0; |
| | | $("#HMixedBox").val(""); |
| | | $("input[name='HMixedBox']").prop("checked", false); |
| | | form.render('checkbox'); |
| | | |
| | | //åæ¶æµè½¬å¡å·åªè¯»(åæ¶å伿°æ®éå¤) |
| | | //$("#HFbarcode").removeAttr("readonly", "readonly");//æµè½¬å¡å·åªè¯» |
| | | //$("#HFbarcode").css("background-color", "white"); |
| | | //$("#HFbarcode").css("box-shadow", "0 0 0 1px #00ff00"); |
| | | //è£
ç®±æ°é åå
æ ¼ 卿µè½¬å¡å·å车æ¶å å·²è¢«åæ¶åªè¯»ä»¥åæ·»å æ ·å¼ |
| | | //éæ°èµå¼è£
ç®±æ°éååä»¶æ¡ç æ°é å¼ä¸ºåæ¥çå¼ |
| | | $("#zxQty").val(pcmQty); |
| | | //åä»¶æ¡ç æ°é é»è®¤ä¸º = è£
ç®±æ°é ç¶åå
æ ç§»å¨å° "åä»¶æ¡ç " åå
æ ¼ |
| | | $("#pcmQty").val(pcmQty);//åä»¶æ¡ç æ°é é»è®¤ä¸º = è£
ç®±æ°é |
| | | //ç§»é¤åä»¶æ¡ç åªè¯» |
| | | $("#SubBarcode").removeAttr("readonly"); |
| | | $("#SubBarcode").css("background-color", "white"); |
| | | $("#SubBarcode").focus(); |
| | | $("#SubBarcode").css("box-shadow", "0 0 0 1px #00ff00"); |
| | | } |
| | | layer.confirm( |
| | | 'ä¿åæåï¼è¯·ç»§ç»éæ©æä½ï¼', |
| | | { |
| | | skin: 'layui-layer-lan', |
| | | closeBtn: 0, |
| | | btn: ['æ°å¢', 'å
³é'], |
| | | btn2: function () {//æ°å¢ |
| | | parent.layui.admin.events.closeThisTabs(); |
| | | } |
| | | }, function () {//å
³é |
| | | window.location.reload(); |
| | | } |
| | | ); |
| | | }); |
| | | |
| | | //失败æç¤ºé³ |
| | | function playSound() { |
| | | console.log("playSound"); |
| | | var audio = document.getElementById("cs"); |
| | | audio.play(); |
| | | } |
| | | |
| | | //éåºæé® |
| | | form.on('submit(Close)', function (data) {//éåº |
| | | layer.confirm('æ¨ç¡®å®è¦å
³éæ¬é¡µåï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | parent.layui.admin.events.closeThisTabs(); |
| | | }); |
| | | }); |
| | | |
| | | //æ°å¢æé® |
| | | form.on('submit(HAddBT)', function (data) {//éåº |
| | | layer.confirm('æ¨ç¡®å®è¦æ°å¢åï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | window.location.reload(); |
| | | }); |
| | | }); |
| | | |
| | | //æå°æé® |
| | | form.on('submit(Print2)', function (data) {//éåº |
| | | //æå¼æå°æ¨¡æ¿ |
| | | 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 * from h_v_SRM_BarCodeBillList where HItemID in(" + linterid + ") order by ç©æä»£ç "; |
| | | $.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]["项ç®ç¼å·"] } |
| | | ); |
| | | |
| | | var Customer = { |
| | | "Table": dataPrint |
| | | } |
| | | |
| | | var report1 = ""; |
| | | var parintName = $("#PrintName").val(); |
| | | if (parintName == "æ¯è«å°") { |
| | | report1 = urlAddRandomNo("../../grf/å
è£
åç©ææ è¯å¡(ç½é¡µç).grf"); |
| | | } else { |
| | | report1 = urlAddRandomNo("../../grf/å
è£
åç©ææ è¯å¡(ç½é¡µç)2.grf"); |
| | | } |
| | | |
| | | var args = { |
| | | type: "print", |
| | | showOptionDlg: false, //妿䏿¾ç¤ºæå°å¯¹è¯æ¡èç´æ¥æå°ï¼å°æ¤è¡æ³¨é廿å³å¯ |
| | | report: report1, |
| | | 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 }); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //æå°æé® |
| | | form.on('submit(Print)', function (data) {//éåº |
| | | //æå¼æå°æ¨¡æ¿ |
| | | var linterid = $("#HInterID").val(); |
| | | var Type = "HBarCodePrint"; |
| | | var OpenTmp = "ç½æ æå°1"; |
| | | //var ReportViewer = document.getElementById("ReportViewer"); |
| | | window.open("../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/HBarPlanPrint.html?linterid=" + linterid.toString() + "&Type=" + Type.toString() + "&OpenTmp=" + OpenTmp.toString()); |
| | | $("#Print2").click(); |
| | | }); |
| | | |
| | | //çå¬è¡¨æ ¼ä¸è¡å·¥å
·äºä»¶ |
| | | table.on('tool(smjl-table)', function (obj) { //注ï¼tool æ¯å·¥å
·æ¡äºä»¶åï¼test æ¯ table åå§å®¹å¨ç屿§ lay-filter="对åºçå¼" |
| | | var data = obj.data //è·å¾å½åè¡æ°æ® |
| | | , layEvent = obj.event; //è·å¾ lay-event 对åºçå¼ |
| | | if (layEvent === 'detail') { |
| | | layer.msg('æ¥çæä½'); |
| | | } else if (layEvent === 'del') { |
| | | if (data.HBillType == "3772") { |
| | | layer.msg("æµè½¬å¡å·ä¸å
许å é¤ï¼"); |
| | | return; |
| | | } |
| | | layer.confirm('ççå é¤è¡ä¹', function (index) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/LEMS/DelProductionLinePackagingTable', |
| | | type: "GET", |
| | | data: { "sHInterID": data.HInterID, "HSourceBillNo": data.HSourceBillNo }, |
| | | success: function (data) { |
| | | if (data.count == 1) { |
| | | zxQtyFlag--; |
| | | pcmQtyFlag-- |
| | | $("#zxQty").val("" + zxQtyFlag + "/" + zxQty + ""); |
| | | $("#pcmQty").val("" + pcmQtyFlag + "/" + pcmQty + ""); |
| | | layer.close(index); |
| | | obj.del(); //å é¤å¯¹åºè¡ï¼trï¼çDOMç»æ |
| | | $.ajax({//æ¥è¯¢æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³ |
| | | url: GetWEBURL() + "/LEMS/Select_Gy_BarCodeBill_HQty", |
| | | type: "GET", |
| | | async: false, |
| | | data: { |
| | | "HBarCode": $("#HBarCode_wym").val() |
| | | }, |
| | | success: function (result) { |
| | | var HQty = result.data[0].HQty; |
| | | HQty--; |
| | | $.ajax({//æ´æ°æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³ |
| | | url: GetWEBURL() + "/LEMS/Update_Gy_BarCodeBill_HQty", |
| | | type: "GET", |
| | | async: false, |
| | | data: { |
| | | "HBarCode": $("#HBarCode_wym").val(), |
| | | "HQty": HQty |
| | | }, |
| | | success: function (result) { |
| | | var HQty = result.data; |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æ´æ°æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æ¥è¯¢æ¡ç æ¡£æ¡è¡¨éçééæ¡ç çå计æ°éæ¹æ³åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } else { |
| | | playSound(); |
| | | layer.alert(data.code + data.msg, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.msg("æ¥å£è¯·æ±å¤±è´¥!", { |
| | | icon: 5, btn: ['确认'], time: 100000, offset: 't', |
| | | skin: 'layui-layer-lan', title: "温馨æç¤º" |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | } else if (layEvent === 'edit') { |
| | | layer.msg('ç¼è¾æä½'); |
| | | } |
| | | }); |
| | | |
| | | //æµè½¬å¡å· å车äºä»¶ |
| | | function HFbarcodeKeydown() { |
| | | var HFbarcode = $('#HFbarcode').val(); |
| | | var HInterID = $("#HInterID").val(); |
| | | var HBillNo2 = $("#HBillNo2").val();//åæ®å· |
| | | |
| | | icmoQty = 20; |
| | | icmoQtyNow = 20; |
| | | // |
| | | $.ajax({//çæå¯ä¸ç |
| | | url: GetWEBURL() + "/LEMS/SaveBarCode_json", |
| | | type: "GET", |
| | | async: false, |
| | | data: { |
| | | "sHBarcodeNo": $("#HSourceBillNo").val(), |
| | | "sHMaterID": $("#HMaterID").val(), |
| | | "sHUnitID": $("#HUnitID").val(), |
| | | "sHMaterName": $("#HMaterName").val() |
| | | }, |
| | | success: function (result) { |
| | | var data = result.data; |
| | | if (data[0].HBarCode) { |
| | | $("#HBarCode_wym").val(data[0].HBarCode); |
| | | } else { |
| | | playSound(); |
| | | // $("#verifycode").click(); |
| | | //layer.msg(result.Message, { icon: 5 }); |
| | | layer.alert("æå
¥ä¸»è¡¨å¤±è´¥", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æ´æ°æ è®°æ¹æ³åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | // |
| | | $.ajax({//表头åtemp表 |
| | | url: GetWEBURL() + "/LEMS/SaveCirculationCard_Json_MXG", |
| | | type: "GET", |
| | | async: false, |
| | | data: { |
| | | "HBillNo": HFbarcode |
| | | , "HInterID": HInterID |
| | | , "HBillNo2": HBillNo2 |
| | | , "HBarCode": $("#HBarCode_wym").val() |
| | | , "HNumber": $("#HNumber").val() |
| | | , "HName": $("#HMaterName").val() |
| | | , "HModel": $("#HModel").val() |
| | | }, |
| | | success: function (result) { |
| | | var data = result.data; |
| | | if (data[0].Column1 == 1) { // 说æéªè¯æåäºï¼ |
| | | $("#HFbarcode").attr("readonly", "readonly");//æµè½¬å¡å·åªè¯» |
| | | $("#HFbarcode").css("background-color", "#efefef4d"); |
| | | $("#HFbarcode").css("box-shadow", "none"); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/LEMS/Update_HBillNo_SubBarcodeList_Json', |
| | | type: "GET", |
| | | data: { "HBillNo": HBillNo2 }, |
| | | async: false, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | option.data = result.data; |
| | | table.render(option); |
| | | } |
| | | else { |
| | | playSound(); |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | } |
| | | , error: function () { |
| | | playSound(); |
| | | layer.close(index0); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }) |
| | | } else { |
| | | playSound(); |
| | | // $("#verifycode").click(); |
| | | //layer.msg(result.Message, { icon: 5 }); |
| | | layer.alert("æ æ¤æµè½¬å¡å·ï¼", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.alert("æ«æµè½¬å¡å·æ¹æ³åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //è·ååæ®å· |
| | | function getBillno() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HBillType": '3783' }, |
| | | success: function (d) { |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo2").val(d.data[0].HBillNo); |
| | | layer.closeAll("loading"); |
| | | }, error: function () { |
| | | playSound(); |
| | | layer.closeAll("loading"); |
| | | layer.alert("è·ååæ®å·å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //以ä¸ä¸ºlayui模å |
| | | }); |
| | | |
| | | function GetHWorkerValue(obj) { //è¿åæ¥æ¶äºº |
| | | $("#Operator").val(obj[0].HName); |
| | | $("#OperatorID").val(obj[0].HNumber); |
| | | $("#Operator").css("box-shadow", "none"); |
| | | if ($("#ProductionTeam").val()) { |
| | | $("#ProductionTeam").css("box-shadow", "none"); |
| | | } else { |
| | | $("#ProductionTeam").css("box-shadow", "0 0 1px 2px #00ff00"); |
| | | } |
| | | } |
| | | |
| | | function GetProductionTeamValue(obj) { //è¿åç产çç» |
| | | $("#ProductionTeam").val(obj[0].çç»); |
| | | $("#ProductionTeamID").val(obj[0].çç»ä»£ç ); |
| | | $("#ProductionTeam").css("box-shadow", "none"); |
| | | if ($("#ProductionResources").val()) { |
| | | $("#ProductionResources").css("box-shadow", "none"); |
| | | } else { |
| | | $("#ProductionResources").css("box-shadow", "0 0 1px 2px #00ff00"); |
| | | } |
| | | } |
| | | |
| | | function GetProductionResourcesValue(obj) { //è¿åçäº§èµæº |
| | | if ($("#ProductionResources").val()) { |
| | | $("#ProductionResources").css("box-shadow", "none"); |
| | | } |
| | | $("#ProductionResources").val(obj[0].çäº§èµæº); |
| | | $("#ProductionResourcesID").val(obj[0].çäº§èµæºä»£ç ); |
| | | $("#ProductionResources").css("box-shadow", "none"); |
| | | } |
| | | |
| | | |
| | | function GetOrgValue(obj) //è¿åç产ç»ç» |
| | | { |
| | | $("#HOrganization").val(obj[0].HName); |
| | | $("#HOrganizationID").val(obj[0].HNumber); |
| | | } |
| | | |
| | | |
| | | </script> |
| | | </body> |
| | | </html> |
| | |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">å
é¨é¡¹ç®å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="ProjectNo" id="ProjectNo" lay-verify="ProjectNo" value="" autocomplete="off" placeholder="" class="layui-input"> |
| | | <input type="text" name="ProjectNo" id="ProjectNo" lay-verify="ProjectNo" value="C331015" autocomplete="off" placeholder="" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">Ordering-Code</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="OrderingCode" id="OrderingCode" lay-verify="OrderingCode" value="" autocomplete="off" placeholder="" class="layui-input"> |
| | | <input type="text" name="OrderingCode" id="OrderingCode" lay-verify="OrderingCode" value="C331015" autocomplete="off" placeholder="" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | |
| | | $('#HOrgID').attr("disabled", true); |
| | | |
| | | } |
| | | |
| | | else if (OperationType == 2) {//å¦æä¿®æ¹åèµ°ä¸é¢ new //ç¼è¾ |
| | | |
| | | //åå§å项ç®é¶æ®µè¡¨ |
| | | get_InitGrid(); |
| | | RoadBillMain(linterid); |
| | | //çæå¹¶è®¾ç½®ä¸»è¡¨çå
ç ååæ®å· |
| | | createBillNo(); |
| | | //åå§åå¶å人åå¶åæ¶é´ |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | $("#HMakerDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | //åå§åæ¥æ |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | OperationType = 1; |
| | | } |
| | | else if (OperationType == 3) {//å¦æä¿®æ¹åèµ°ä¸é¢ new |
| | | |
| | | //åå§åå表 |
| | |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_AddNew"><i class="layui-icon layui-icon-file-b"></i>æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ShowBill"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_Copy" id="set_Copy"><i class="layui-icon layui-icon-form"></i>å¤å¶</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_DeleteBill"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Audit"><i class="layui-icon layui-icon-radio"></i>å®¡æ ¸</button> |
| | |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_SaveScheme" id="set_SaveScheme"><i class="layui-icon layui-icon-template"></i>ä¿åæ¹æ¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ReadScheme" id="set_ReadScheme"><i class="layui-icon layui-icon-set"></i>è¯»åæ¹æ¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ReadScheme" id="set_ReadScheme"><i class="layui-icon layui-icon-set"></i>è¯»åæ¹æ¡</button> |
| | | </div> |
| | | </script> |
| | | </form> |
| | |
| | | break; |
| | | //ç¼è¾ |
| | | case 'set_ShowBill': set_ShowBill(); |
| | | break; |
| | | //å¤å¶ |
| | | case 'set_Copy': set_Copy(); |
| | | break; |
| | | //å é¤ |
| | | case 'set_DeleteBill': set_DeleteBill(); |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //å¤å¶ |
| | | function set_Copy() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var linterid = data[0].HInterID.toString(); |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: '设å¤å¯å¨ç¹æ£æ¸
åå表-æ°å¢' |
| | | , shift: 0//å¼¹åºå¨ç» |
| | | , content: '../../车é´ç®¡ç/å¯å¨ç¹æ£å/Gy_WorkBeginDotCheckListBill.html?OperationType=2&linterid=' + linterid + '&HSouceBillType=' |
| | | , end: function () { |
| | | //å·æ°é¡µé¢, |
| | | location.reload(); |
| | | } |
| | | }) |
| | | } else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ç¼è¾ï¼'); |
| | | } |
| | | } |
| | | |
| | | |
| | | //#region å é¤ |
| | | function set_DeleteBill() { |
| | |
| | | function set_FirstPieceCheck() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | var checkStatus2 = table.checkStatus('mainTable2') |
| | | , data2 = checkStatus2.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var linterid = data[0].hmainid.toString(); |
| | | var OperationType = 2; |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'é¦ä»¶æ£éªå-ç¼è¾' |
| | | , shade: 0.6 |
| | | , maxmin: false |
| | | , anim: 0 |
| | | , content: ['../../è´¨é管ç/é¦ä»¶æ£éªå/QC_Add_Edit_FirstPieceCheckBill.html?OperationType=' + OperationType + '&linterid=' + linterid + '&HSouceBillType=3772&HICMOEntryID=0', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | btnIs(); |
| | | } |
| | | , end: function () { |
| | | get_FastQuery(); |
| | | } |
| | | }) |
| | | if (data2.length > 0) { |
| | | var HEntryID = data2[0].HEntryID.toString(); |
| | | var OperationType = 2; |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'é¦ä»¶æ£éªå-ç¼è¾' |
| | | , shade: 0.6 |
| | | , maxmin: false |
| | | , anim: 0 |
| | | , content: ['../../è´¨é管ç/é¦ä»¶æ£éªå/QC_Add_Edit_FirstPieceCheckBill.html?OperationType=' + OperationType + '&linterid=' + linterid + '&HSouceBillType=3772&HICMOEntryID=0&HEntryID=' + HEntryID + '', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | btnIs(); |
| | | } |
| | | , end: function () { |
| | | get_FastQuery(); |
| | | } |
| | | }) |
| | | } else { |
| | | layer.msg('请å¨ä¸æ¹è¡¨æ ¼éæ©å¯¹åºçå·¥åºï¼'); |
| | | } |
| | | } else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ç¼è¾ï¼'); |
| | | } |
| | |
| | | function set_ProcessCheck() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | var checkStatus2 = table.checkStatus('mainTable2') |
| | | , data2 = checkStatus2.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var linterid = data[0].hmainid.toString(); |
| | | var OperationType = 2; |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'å·¥åºè½¬ç§»æ£éªå-ç¼è¾' |
| | | , shade: 0.6 |
| | | , maxmin: false |
| | | , anim: 0 |
| | | , content: ['../../è´¨é管ç/å·¥åºæ£éªå/QC_ProcessCheckBill.html?OperationType=' + OperationType + '&linterid=' + linterid + '&HSouceBillType=3772&HICMOEntryID=0', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | btnIs(); |
| | | } |
| | | , end: function () { |
| | | get_FastQuery(); |
| | | } |
| | | }) |
| | | if (data2.length > 0) { |
| | | var HEntryID = data2[0].HEntryID.toString(); |
| | | var OperationType = 2; |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'å·¥åºè½¬ç§»æ£éªå-ç¼è¾' |
| | | , shade: 0.6 |
| | | , maxmin: false |
| | | , anim: 0 |
| | | , content: ['../../è´¨é管ç/å·¥åºæ£éªå/QC_ProcessCheckBill.html?OperationType=' + OperationType + '&linterid=' + linterid + '&HSouceBillType=3772&HICMOEntryID=0&HEntryID=' + HEntryID +'', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | btnIs(); |
| | | } |
| | | , end: function () { |
| | | get_FastQuery(); |
| | | } |
| | | }) |
| | | } else { |
| | | layer.msg('请å¨ä¸æ¹è¡¨æ ¼éæ©å¯¹åºçå·¥åºï¼'); |
| | | } |
| | | } else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ç¼è¾ï¼'); |
| | | } |
| | | } |
| | | } |
| | | |
| | | //å·¡æ£ |
| | | function set_PatrolCheck() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | var checkStatus2 = table.checkStatus('mainTable2') |
| | | , data2 = checkStatus2.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var linterid = data[0].hmainid.toString(); |
| | | var OperationType = 2; |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'å·¡æ£è®°å½å-ç¼è¾' |
| | | , shade: 0.6 |
| | | , maxmin: false |
| | | , anim: 0 |
| | | , content: ['../../è´¨é管ç/å·¡æ£è®°å½å/QC_Add_Edit_PatrolProcCheckOtherill.html?OperationType=' + OperationType + '&linterid=' + linterid + '&HSouceBillType=3772&HICMOEntryID=0', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | btnIs(); |
| | | } |
| | | , end: function () { |
| | | get_FastQuery(); |
| | | } |
| | | }) |
| | | if (data2.length > 0) { |
| | | var HEntryID = data2[0].HEntryID.toString(); |
| | | var OperationType = 2; |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'å·¡æ£è®°å½å-ç¼è¾' |
| | | , shade: 0.6 |
| | | , maxmin: false |
| | | , anim: 0 |
| | | , content: ['../../è´¨é管ç/å·¡æ£è®°å½å/QC_Add_Edit_PatrolProcCheckOtherill.html?OperationType=' + OperationType + '&linterid=' + linterid + '&HSouceBillType=3772&HICMOEntryID=0&HEntryID=' + HEntryID +'', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | btnIs(); |
| | | } |
| | | , end: function () { |
| | | get_FastQuery(); |
| | | } |
| | | }) |
| | | } else { |
| | | layer.msg('请å¨ä¸æ¹è¡¨æ ¼éæ©å¯¹åºçå·¥åºï¼'); |
| | | } |
| | | } else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ç¼è¾ï¼'); |
| | | } |
| | | } |
| | | } |
| | | |
| | | //车é´èªæ£ |
| | | function set_WorkCheck() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | var checkStatus2 = table.checkStatus('mainTable2') |
| | | , data2 = checkStatus2.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var linterid = data[0].hmainid.toString(); |
| | | var OperationType = 2; |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: '车é´èªæ£å-ç¼è¾' |
| | | , shade: 0.6 |
| | | , maxmin: false |
| | | , anim: 0 |
| | | , content: ['../../è´¨é管ç/车é´èªæ£å/QC_Add_Edit_WorkSelfCheckBill.html?OperationType=' + OperationType + '&linterid=' + linterid + '&HSouceBillType=3772&HICMOEntryID=0', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | btnIs(); |
| | | } |
| | | , end: function () { |
| | | get_FastQuery(); |
| | | } |
| | | }) |
| | | if (data2.length > 0) { |
| | | var HEntryID = data2[0].HEntryID.toString(); |
| | | var OperationType = 2; |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: '车é´èªæ£å-ç¼è¾' |
| | | , shade: 0.6 |
| | | , maxmin: false |
| | | , anim: 0 |
| | | , content: ['../../è´¨é管ç/车é´èªæ£å/QC_Add_Edit_WorkSelfCheckBill.html?OperationType=' + OperationType + '&linterid=' + linterid + '&HSouceBillType=3772&HICMOEntryID=0&HEntryID=' + HEntryID +'', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | btnIs(); |
| | | } |
| | | , end: function () { |
| | | get_FastQuery(); |
| | | } |
| | | }) |
| | | } else { |
| | | layer.msg('请å¨ä¸æ¹è¡¨æ ¼éæ©å¯¹åºçå·¥åºï¼'); |
| | | } |
| | | } else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ç¼è¾ï¼'); |
| | | } |
| | | } |
| | | } |
| | | |
| | | //çäº§è´¨éæ±æ¥å |
| | |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-inline"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">é¨é¨åç§°</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" id="txtHDeptName" style="width:190px;"> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-block"> |
| | | <input type="checkbox" name="chkHShowUnFinish" id="chkHShowUnFinish" lay-skin="primary" lay-filter="chkHShowUnFinish" title="åªæ¾ç¤ºæªå®å·¥"> |
| | |
| | | } |
| | | sWhere += " and " + ColName2 + " " + com2; |
| | | } |
| | | sWhere = "'" + txtHOrderProcNo + "','" + txtHMaterNumber + "','" + check + "'" ; |
| | | sWhere = "'" + txtHOrderProcNo + "','" + txtHMaterNumber + "','" + check + "'" + ",'" + txtHDeptName + "'" ; |
| | | get_Display(sWhere); |
| | | //è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | sWhere = ""; |