Merge branch 'master' of http://101.37.171.70:10101/r/MESWMS-LayUI
| | |
| | | <Content Include="views\ç产管ç\ç产å¼å·¥å\Sc_Add_MESBeginWorkBillList - å¤å¶.html" /> |
| | | <Content Include="views\ç产管ç\ç产å¼å·¥å\Sc_Add_MESBeginWorkBillList.html" /> |
| | | <Content Include="views\ç产管ç\ç产å¼å·¥å\Sc_MESBeginWorkBillList.html" /> |
| | | <Content Include="views\ç产管ç\ç产æç®±å\Sc_PackSplitBill_Fast.html" /> |
| | | <Content Include="views\ç产管ç\çäº§æ±æ¥å\Sc_ICMOReportBill_FastNew.html" /> |
| | | <Content Include="views\ç产管ç\çäº§æ±æ¥å\Sc_Add_ICMOReportBillList.html" /> |
| | | <Content Include="views\ç产管ç\ç产ç»è£
追溯å\Sc_AssemblyBillList.html" /> |
| | |
| | | <Content Include="views\设å¤ç®¡ç\Sb_EqpConkBookBillList.html" /> |
| | | <Content Include="views\设å¤ç®¡ç\Sb_EqpMaintenanceBillList.html" /> |
| | | <Content Include="views\设å¤ç®¡ç\Sb_EqpMaintenanceBillList_PDA.html" /> |
| | | <Content Include="views\设å¤ç®¡ç\Sb_EqpMaintenanceBillList_PDAEdit.html" /> |
| | | <Content Include="views\设å¤ç®¡ç\Sb_EqpRepairCheckBillList.html" /> |
| | | <Content Include="views\设å¤ç®¡ç\Sb_EquipDocCheckItemBillList_PDAEdit.html" /> |
| | | <Content Include="views\设å¤ç®¡ç\Sb_EquipDotCheckBillEdit.html" /> |
| | |
| | | <ItemGroup> |
| | | <Folder Include="views\ä»å管ç\è°æ¨åæ ¸å¯¹\" /> |
| | | <Folder Include="views\ä»å管ç\è°æ¨åç¨½æ ¸\" /> |
| | | <Folder Include="views\ç产管ç\ç产æç®±å\" /> |
| | | </ItemGroup> |
| | | <PropertyGroup> |
| | | <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion> |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| | | <PropertyGroup> |
| | | <NameOfLastUsedPublishProfile>JFTM</NameOfLastUsedPublishProfile> |
| | | <NameOfLastUsedPublishProfile>D:\æºäºMES\Lay-Ui\MESWMS-LayUI\WebTM\Properties\PublishProfiles\JFTM.pubxml</NameOfLastUsedPublishProfile> |
| | | <ProjectView>ShowAllFiles</ProjectView> |
| | | <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig> |
| | | <UseIISExpress>true</UseIISExpress> |
| | |
| | | "HMaker": sessionStorage["HUserName"], //sessionStorage["HUserName"] |
| | | "Czybm": sessionStorage["Czybm"], |
| | | //"HEmpID": "0", //sessionStorage["HEmpID"] |
| | | "HSourceInterID": HSourceInterID, |
| | | "HSourceBillType": HSourceBillType, |
| | | "HProcID": HProcID |
| | | }); |
| | |
| | | <cite>å§å¤å·¥åºååºå</cite> |
| | | </a> |
| | | </li> |
| | | <!--<li class="layui-col-xs3"> |
| | | <a lay-href="set/user/info.html"> |
| | | <i class="layui-icon layui-icon-set"></i> |
| | | <cite>æçèµæ</cite> |
| | | <li class="layui-col-xs3"> |
| | | <a href="../ç产管ç/ç产æç®±å/Sc_PackSplitBill_Fast.html" target="main_self_frame"> |
| | | <i class="layui-icon layui-icon-find-fill"></i> |
| | | <cite>ç产æç®±å</cite> |
| | | </a> |
| | | </li>--> |
| | | </li> |
| | | <!--<li class="layui-col-xs3"> |
| | | <a lay-href="set/user/info.html"> |
| | | <i class="layui-icon layui-icon-set"></i> |
| | | <cite>æçèµæ</cite> |
| | | </a> |
| | | </li>--> |
| | | </ul> |
| | | </div> |
| | | <div class="layui-carousel-ind"><ul><li class="layui-this"></li><li class=""></li></ul></div><button class="layui-icon layui-carousel-arrow" lay-type="sub">î</button><button class="layui-icon layui-carousel-arrow" lay-type="add">î</button> |
| | |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | | <a lay-href="" style="color: aqua;"> |
| | | <a lay-href="设å¤ç®¡ç/Sb_EqpMaintenanceBillList_PDA.html" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | 设å¤ç»´ä¿®è®°å½ånull |
| | | 设å¤ç»´ä¿®è®°å½å |
| | | </a> |
| | | </dd> |
| | | </dl> |
| | |
| | | , { field: 'åæ®å·', title: 'åæ®å·', width: 195 } |
| | | , { field: 'åæ®ç±»å', title: 'åæ®ç±»å', width: 110 } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 110 } |
| | | , { field: 'HSupTypeID', title: 'HSupTypeID', width: 200, hide: true } |
| | | , { field: '徿¥ç±»ååç§°', title: '徿¥ç±»å', width: 200 } |
| | | , { field: 'HSupID', title: 'HSupID', width: 200, hide: true } |
| | | , { field: '徿¥åä½', title: '徿¥åä½', width: 200 } |
| | | , { field: 'HWHID', title: 'HWHID', width: 200, hide: true } |
| | | , { field: 'ä»åºä»£ç ', title: 'ä»åºä»£ç ', width: 125 } |
| | | , { field: 'ä»åº', title: 'ä»åº', width: 125 } |
| | |
| | | , { field: 'HDeptID', title: 'HDeptID', width: 200, hide: true } |
| | | , { field: 'é¨é¨ä»£ç ', title: 'é¨é¨ä»£ç ', width: 115 } |
| | | , { field: 'é¨é¨', title: 'é¨é¨', width: 125 } |
| | | , { field: 'HSupTypeID', title: 'HSupTypeID', width: 200, hide: true } |
| | | , { field: '徿¥ç±»ååç§°', title: '徿¥ç±»å', width: 200 } |
| | | , { field: 'HSupID', title: 'HSupID', width: 200, hide: true } |
| | | , { field: '徿¥åä½', title: '徿¥åä½', width: 200 } |
| | | , { field: 'æè¦', title: 'æè¦', width: 125 } |
| | | , { field: 'è¡¨å¤´å¤æ³¨', title: 'è¡¨å¤´å¤æ³¨', width: 125 } |
| | | //, { field: 'å
é¨åæ®å·', title: 'å
é¨åæ®å·', width: 115 } |
| | |
| | | |
| | | //#endregion |
| | | |
| | | //å¤æç¨æ·æ¯å¦ææ¥è¯¢æé |
| | | //$.ajax({ |
| | | // url: GetWEBURL() + "/Sc_MouldProdOutBill/QueryUserRight", |
| | | // type: "GET", |
| | | // data: { "UserName": sessionStorage["HUserName"] }, |
| | | // success: function (result) { |
| | | // if (result.code == 1) { // 说æéªè¯æåäºï¼ |
| | | |
| | | // }); |
| | | |
| | | // } else { |
| | | // layer.alert(result.msg, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | // } |
| | | // }, error: function () { |
| | | // layer.alert("åçé误!", { icon: 5 }); |
| | | // } |
| | | //}); |
| | | // |
| | | |
| | | //#region è¿å
¥é¡µé¢æ¢å è½½ |
| | | //åå§å表åæä»¶ |
| | | set_InitFrom(); |
| | |
| | | , { field: 'åæ®å·', title: 'åæ®å·', width: 195 } |
| | | , { field: 'åæ®ç±»å', title: 'åæ®ç±»å', width: 110 } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 110 } |
| | | , { field: 'HSupTypeID', title: 'HSupTypeID', width: 200, hide: true } |
| | | , { field: '徿¥ç±»ååç§°', title: '徿¥ç±»å', width: 200 } |
| | | , { field: 'HSupID', title: 'HSupID', width: 200, hide: true } |
| | | , { field: '徿¥åä½', title: '徿¥åä½', width: 200 } |
| | | , { field: 'HWHID', title: 'HWHID', width: 200, hide: true } |
| | | , { field: 'ä»åºä»£ç ', title: 'ä»åºä»£ç ', width: 125 } |
| | | , { field: 'ä»åº', title: 'ä»åº', width: 125 } |
| | |
| | | , { field: 'HDeptID', title: 'HDeptID', width: 200, hide: true } |
| | | , { field: 'é¨é¨ä»£ç ', title: 'é¨é¨ä»£ç ', width: 115 } |
| | | , { field: 'é¨é¨', title: 'é¨é¨', width: 125 } |
| | | , { field: 'HSupTypeID', title: 'HSupTypeID', width: 200, hide: true } |
| | | , { field: '徿¥ç±»ååç§°', title: '徿¥ç±»å', width: 200 } |
| | | , { field: 'HSupID', title: 'HSupID', width: 200, hide: true } |
| | | , { field: '徿¥åä½', title: '徿¥åä½', width: 200 } |
| | | , { field: 'æè¦', title: 'æè¦', width: 125 } |
| | | , { field: 'è¡¨å¤´å¤æ³¨', title: 'è¡¨å¤´å¤æ³¨', width: 125 } |
| | | , { field: 'å
é¨åæ®å·', title: 'å
é¨åæ®å·', width: 115 } |
| | |
| | | , { field: 'åæ®å·', title: 'åæ®å·', width: 160 } |
| | | , { field: 'åæ®ç±»å', title: 'åæ®ç±»å', width: 160 } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 110 } |
| | | , { field: 'HSupTypeID', title: 'HSupTypeID', width: 200, hide: true } |
| | | , { field: '徿¥ç±»ååç§°', title: '徿¥ç±»å', width: 200 } |
| | | , { field: 'HSupID', title: 'HSupID', width: 200, hide: true } |
| | | , { field: '徿¥åä½', title: '徿¥åä½', width: 200 } |
| | | , { field: 'HManagerID', title: 'HManagerID', width: 200, hide: true } |
| | | , { field: 'è´è´£äººä»£ç ', title: 'è´è´£äººä»£ç ', width: 200 } |
| | | , { field: 'è´è´£äººåç§°', title: 'è´è´£äººåç§°', width: 200 } |
| | |
| | | , { field: 'HDeptID', title: 'HDeptID', width: 200, hide: true } |
| | | , { field: 'é¨é¨ä»£ç ', title: 'é¨é¨ä»£ç ', width: 115 } |
| | | , { field: 'é¨é¨åç§°', title: 'é¨é¨åç§°', width: 200 } |
| | | , { field: 'HSupTypeID', title: 'HSupTypeID', width: 200, hide: true } |
| | | , { field: '徿¥ç±»ååç§°', title: '徿¥ç±»å', width: 200 } |
| | | , { field: 'HSupID', title: 'HSupID', width: 200, hide: true } |
| | | , { field: '徿¥åä½', title: '徿¥åä½', width: 200 } |
| | | , { field: 'æè¦', title: 'æè¦', width: 200 } |
| | | , { field: 'å
é¨åæ®å·', title: 'å
é¨åæ®å·', width: 115 } |
| | | , { field: '夿³¨', title: '夿³¨', width: 200 } |
| | |
| | | , { field: 'æ¥æ', title: 'æ¥æ', width: 125, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', width: 195 } |
| | | , { field: 'åæ®ç±»å', title: 'åæ®ç±»å', width: 110 } |
| | | , { field: 'HSupTypeID', title: 'HSupTypeID', width: 200, hide: true } |
| | | , { field: '徿¥ç±»ååç§°', title: '徿¥ç±»å', width: 200 } |
| | | , { field: 'HSupID', title: 'HSupID', width: 200, hide: true } |
| | | , { field: '徿¥åä½', title: '徿¥åä½', width: 200 } |
| | | , { field: 'HWHID', title: 'HWHID', width: 200, hide: true } |
| | | , { field: 'ä»åºä»£ç ', title: 'ä»åºä»£ç ', width: 125 } |
| | | , { field: 'ä»åº', title: 'ä»åº', width: 125 } |
| | |
| | | dataType: "json",//æ°æ®ç±»åå¯ä»¥ä¸º text xml json script jsonp |
| | | async: false, |
| | | success: function (datas) { |
| | | var LoadData = datas.data.Sc_ICMOBillWorkQtyStatus_Tmp; |
| | | var LoadData = datas.data.Sc_ProcessReportSub; |
| | | var HQty = LoadData[0].HQty; |
| | | var HBadQty = LoadData[0].HBadQty; |
| | | var HWasterQty = LoadData[0].HWasterQty; |
| | |
| | | <form id="form0" class="layui-form" lay-filter="component-form-group" action=""> |
| | | <div class="layui-card-header"> |
| | | <div class="layui-btn-group"> |
| | | |
| | | <button type="button" id="add-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Saver">ä¿å</button> |
| | | <button type="button" id="Saver" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Saver">ä¿å</button> |
| | | <button type="button" id="VerIfySaver" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="VerIfySaver">å®¡æ ¸</button> |
| | | <button type="button" id="ReVerIfySaver" class="layui-btn layui-btn-normal layui-btn-circle" lay-submit="" lay-filter="ReVerIfySaver">åå®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Exit">éåº</button> |
| | |
| | | <script> |
| | | //è·ååæ° |
| | | var HBillType = ""; //åæ®ç±»å |
| | | var HSourceInterID = ""; //æºå主å
ç |
| | | var HSourceInterID = ""; //æºå主å
ç ï¼çäº§ç¶æä¸´æ¶è¡¨ä¸»å
ç ï¼ |
| | | var HSourceEntryID = ""; //æºååå
ç |
| | | var HSourceBillNo = ""; //æºååå· |
| | | var HSourceBillType = ""; //æºåç±»å |
| | |
| | | $("#HSourceName").val(LoadData[0].HSourceName); //çäº§èµæº |
| | | $("#HSourceBillNo").val(LoadData[0].HICMOBillNo); //æºååå·ï¼ææ¶åå¼è®¢åç¼å·ï¼ |
| | | $("#HSourceInterID").val(LoadData[0].HSourceInterID); //æºå主å
ç (åå¼HInterID) |
| | | //$("#HSourceInterID").val(LoadData[0].HICMOInterID); //æºå主å
ç |
| | | $("#HSourceEntryID").val(LoadData[0].HSourceEntryID); //æºååå
ç (æºåè¡å·) |
| | | $("#HSourceBillType").val(HSourceBillType); //æºåç±»å |
| | | $("#HGroupID").val(LoadData[0].HDeptID); //çç»ID |
| | |
| | | |
| | | |
| | | //ä¿åæäº¤ |
| | | form.on('submit(Saver)', function (data) { |
| | | form.on('submit(Saver)', function (objdata) { |
| | | if (!AllowLoadData())//æ°æ®éªè¯ |
| | | { |
| | | return false; |
| | | } |
| | | OverStepQty(data); |
| | | OverStepQty(objdata); |
| | | |
| | | }); |
| | | |
| | |
| | | |
| | | |
| | | //éªè¯æ±æ¥æ°éæ¯å¦è¶
è¿è®¡åæ°é |
| | | function OverStepQty(data) { |
| | | function OverStepQty(objdata) { |
| | | var sWhere = ""; |
| | | if (OperationType == 3) //ç¼è¾ |
| | | { |
| | |
| | | HSourceBillNo = $("#HSourceBillNo").val(); |
| | | HSourceBillType = $("#HSourceBillType").val(); |
| | | } |
| | | sWhere = " where HSourceID='" + $("#HSourceID").val() + "' and HSourceInterID='" + HSourceInterID + "' and HSourceEntryID='" + HSourceEntryID + "' and HSourceBillNo='" + HSourceBillNo + "' and HSourceBillType='" + HSourceBillType + "' "; |
| | | sWhere = " where HSourceID='" + $("#HSourceID").val() + "' and HProcID='" + $("#HProcID").val() + "' and HSourceInterID='" + $("#HSourceInterID").val() + "' and HSourceEntryID='" + HSourceEntryID + "' and HSourceBillNo='" + HSourceBillNo + "' and HSourceBillType='" + HSourceBillType + "' "; |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Sc_MESBeginStepWorkBill/GetMESOverStepQty", |
| | | type: "GET", |
| | |
| | | dataType: "json",//æ°æ®ç±»åå¯ä»¥ä¸º text xml json script jsonp |
| | | async: false, |
| | | success: function (datas) { |
| | | var LoadData = datas.data.Sc_ICMOBillWorkQtyStatus_Tmp; |
| | | var LoadData = datas.data.Sc_ProcessReportSub; |
| | | var HQty = LoadData[0].HQty; |
| | | var HBadCount = LoadData[0].HBadCount; |
| | | var HBadCount = LoadData[0].HBadQty; |
| | | var HWasterQty = LoadData[0].HWasterQty; |
| | | var HWasterQty2 = LoadData[0].HWasterQty2; |
| | | var yessqty = HQty + HBadCount + HWasterQty + HWasterQty2; |
| | |
| | | }); |
| | | } |
| | | else { |
| | | Submit(data); |
| | | Submit(objdata); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | |
| | | } |
| | | |
| | | //æäº¤è¯·æ±ajax |
| | | function Submit(data) { |
| | | if (data.field.HBadCount == "" || data.field.HBadCount == null) { |
| | | data.field.HBadCount = 0; |
| | | function Submit(objdata) { |
| | | if (objdata.field.HBadCount == "" || objdata.field.HBadCount == null) { |
| | | objdata.field.HBadCount = 0; |
| | | } |
| | | if (data.field.HWasterQty == "" || data.field.HWasterQty == null) { |
| | | data.field.HWasterQty = 0; |
| | | if (objdata.field.HWasterQty == "" || objdata.field.HWasterQty == null) { |
| | | objdata.field.HWasterQty = 0; |
| | | } |
| | | if (data.field.HWasterQty2 == "" || data.field.HWasterQty2 == null) { |
| | | data.field.HWasterQty2 = 0; |
| | | if (objdata.field.HWasterQty2 == "" || objdata.field.HWasterQty2 == null) { |
| | | objdata.field.HWasterQty2 = 0; |
| | | } |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sMainSub = sMainStr + ';' + refSav; |
| | | var sMainStr = JSON.stringify(objdata.field); |
| | | var sMainSub = sMainStr + ';'+ refSav; |
| | | |
| | | |
| | | $.ajax({ |
| | | type: "POST", |
| | |
| | | layer.msg("产åç¼ç ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | if ($("#HRelBeginDate").val() == '' || $("#HWorkBeginDate").val() == null) { |
| | | if ($("#HRelBeginDate").val() == '' || $("#HRelBeginDate").val() == null) { |
| | | layer.msg("å¼å·¥æ¶é´ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | |
| | | var HSourceID = ""; //èµæºID |
| | | var HICMOInterID = ""; //ç产订å主ID |
| | | var HICMOEntryID = ""; //ç产订ååID |
| | | var HSourceInterID = ""; //çäº§ç¶æä¸´æ¶è¡¨ä¸»ID |
| | | var HSourceBillType = ""; //æºåç±»å |
| | | var HProcID = ""; //å·¥åºID |
| | | var SchWhere = ""; //æé®æ¥è¯¢åæ° |
| | |
| | | HICMOEntryID = data[0].HICMOEntryID; |
| | | HMaker = data[0].HMaker; |
| | | Czybm = data[0].Czybm; |
| | | HSourceInterID = data[0].HSourceInterID; |
| | | HSourceBillType = data[0].HSourceBillType; |
| | | HProcID = data[0].HProcID; |
| | | } |
| | |
| | | //æ¥å·¥å¹³å°è¿å
¥(ææºå) |
| | | function set_AddNew() |
| | | { |
| | | sWhere = " where b.HSourceID='" + HSourceID + "' and b.HSourceBillNo='" + workcode + "' and b.HSourceInterID='" + (HICMOInterID == "null" ? 0 : HICMOInterID) + "' and b.HSourceEntryID='" + (HICMOEntryID == "null" ? 0 : HICMOEntryID) + "' and a.HMaker='" + HMaker + "' "; |
| | | sWhere = " where b.HSourceID='" + HSourceID + "' and b.HSourceBillNo='" + workcode + "' and b.HSourceInterID='" + (HSourceInterID == "null" ? 0 : HSourceInterID) + "' and b.HSourceEntryID='" + (HICMOEntryID == "null" ? 0 : HICMOEntryID) + "' and a.HMaker='" + HMaker + "' "; |
| | | SchWhere = sWhere; |
| | | console.log(sWhere); |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | |
| | | <button type="button" id="Saver" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Saver">ä¿å</button> |
| | | <button type="button" id="VerIfySaver" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="VerIfySaver">å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Exit">éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="a_href" id="a_href">导åº</button> |
| | | </div> |
| | | |
| | | |
| | | </div> |
| | | <div class="layui-card-body"> |
| | | <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief"> |
| | |
| | | success: function (d) { |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | $("#HInterID").val(0); |
| | | //$("#HGroupID").val(sessionStorage["HGroupID"]); //é»è®¤çç»ID |
| | | //$("#HGroupName").val(sessionStorage["HGroup"]); //é»è®¤çç» |
| | | //$("#HEmpID").val(sessionStorage["HKeeperID"]); //é»è®¤æä½åID |
| | | //$("#HEmpName").val(sessionStorage["HKeeper"]); //é»è®¤æä½å |
| | | } |
| | | }); |
| | | } |
| | |
| | | OperationType = 2; |
| | | } |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //ä¿åæäº¤ |
| | |
| | | sWhere += " and èµæºä»£ç like '%" + HSource + "%' or èµæºåç§° like '%" + HSource + "%'"; |
| | | } |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_MESBeginStepWorkBill/GetMESBeginStepWorkBillStaus', |
| | | url: GetWEBURL() + '/Sc_MESBeginStepWorkBill/GetMESBeginStepWorkBill', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | success: function (data1) { |
| | |
| | | function get_Display() |
| | | { |
| | | var ajaxLoad = layer.load(); |
| | | var HDate = $("#HDate").val();//å¼å§æ¥æ |
| | | var HDate1 = $("#HDate1").val();//ç»ææ¥æ |
| | | if (HDate) { |
| | | sWhere += " and CONVERT(varchar(100),æ¥æ, 23) >= '" + HDate + "'"; |
| | | } |
| | | if (HDate1) { |
| | | sWhere += " and CONVERT(varchar(100),æ¥æ, 23) <= '" + HDate1 + "'"; |
| | | } |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_MESBeginStepWorkBill/GetMESBeginStepWorkBill', |
| | |
| | | var checkStatus = table.checkStatus('wl-table') |
| | | , data = checkStatus.data; |
| | | var sInterID = $('#HInterID').val() |
| | | var sMaterID = data[0].HMaterID |
| | | var sBillType = '1202' |
| | | var sAuxPropID = data[0].HAuxPropID |
| | | //var sMTONo = data[0].HMTONo |
| | | var sMTONo = '' |
| | | var sSourceInterID = data[0].HSourceInterID |
| | | var sSourceEntryID = data[0].HSourceEntryID |
| | | var HBillNo = $("#HBillNo").val() |
| | | var sMouldManagerCtl = 'N' |
| | | var sFIFOCtl = 'N' |
| | | var HBarCode = data[0].HBarCode |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | //url: "http://61.130.49.162:9090/WMSAPI///ProductIn/Delete_Json", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | url: GetWEBURL() + "/ProductIn/Delete_Json_AN", |
| | | url: GetWEBURL() + "/PackSplit/Delete", |
| | | async: true, |
| | | data: { "HInterID": sInterID, "HMaterID": sMaterID, "HAuxPropID": sAuxPropID, "HMTONo": sMTONo, "HSourceInterID": sSourceInterID, "HSourceEntryID": sSourceEntryID, "sHBillType": sBillType, }, |
| | | data: { "HInterID": sInterID, "HBarCode": HBarCode, "HBillType": '3784'}, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº |
| | | // table.render({ |
| | | // elem: '#wl-table' |
| | | // //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Mate_Webs_Json' |
| | | // , url: GetWEBURL() + '/ProductIn/DisPlayBarCodeList_Json' |
| | | //, cellMinWidth: 80 |
| | | //, toolbar: '#toolbarDemo' |
| | | // , where: { HBillID: sInterID, HBillNo: HBillNo, HBillType: '1202', sMouldManagerCtl: sMouldManagerCtl, sFIFOCtl: sFIFOCtl} |
| | | //, cols: [[ |
| | | // { type: 'radio' } |
| | | // , { field: 'HQty', title: 'æ°é', width: 80 } |
| | | // , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 80 } |
| | | // , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 100 } |
| | | // , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | // , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 100 } |
| | | // , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 100 } |
| | | // , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 100 } |
| | | // , { field: 'HSourceBillNo', title: 'æºååå·', width: 100 } |
| | | // , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 100 } |
| | | // , { field: 'HAuxPropID', title: 'è¾
å©å±æ§', width: 100 } |
| | | // , { field: 'HMTONo', title: '计åè·è¸ªå·', width: 100 } |
| | | // , { field: 'HMaterID', title: 'ç©æID', width: 100 } |
| | | //]] |
| | | //, height: 500 |
| | | // }) |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json' |
| | | , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , defaultToolbar: [] |
| | | , where: { HBillID: sInterID, HBillType: '1202', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150 } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | ]] |
| | | // , data: [linterid] |
| | | // , page: true |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | |
| | | |
| | | //æäº¤ |
| | | form.on('submit(Saver)', function (data) {//æäº¤ |
| | | //debugger; |
| | | if ($("#HExplanation").val() == "") { |
| | | if ($("#HWHNAME").val() == "宽å¹
æåä»NEW" || $("#HWHNAME").val() == "æ ·æ¬ä»NEW") { |
| | | $("#HWHNAME").val(""); |
| | | $("#HWHID").val(""); |
| | | layer.msg("请æ«MESåºä½ç ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | $("#HExplanation").val($("#HWHNAME").val()); |
| | | } |
| | | } |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = table.cache['wl-table']; |
| | | //var sSourceType = $("#HBillType").val(); |
| | | var sSourceType = "3711"; |
| | | var sInterID = $('#HInterID').val() |
| | | var sBillNo = $("#HBillNo").val() |
| | | var HTBarCode = $('#HTBarCode').val() |
| | | var HOrgID = sessionStorage["OrganizationID"] |
| | | var sMaker = sessionStorage["HUserName"] |
| | | if (AllowLoadData(sSubStr) != false)//é空éªè¯ |
| | | { |
| | | layer.load(3); |
| | | $.ajax( |
| | | { |
| | | type: "POST", |
| | | //url: "http://61.130.49.162:9090/WMSAPI///ProductIn/set_SaveProductInBill_Json", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | url: GetWEBURL() + "/ProductIn/set_SaveProductInBill_Json", |
| | | url: GetWEBURL() + "/PackSplit/set_SavePackSplitBill_Json", |
| | | async: true, |
| | | data: { "oMain": sMainStr }, |
| | | dataType: "json", |
| | | data: { "sInterID": sInterID, "HBillType": '3784', "sBillNo": sBillNo, "HTBarCode": HTBarCode, "sMaker": sMaker, "HOWNERID": HOrgID }, |
| | | //dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº |
| | | layer.confirm("çæäº§åå
¥åºå" + data.Message + $("#HBillNo").val(), { |
| | | layer.confirm("çææç®±å" + data.Message + $("#HBillNo").val(), { |
| | | icon: 1, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['æ°å¢'], |
| | | btn2: function () { |
| | | //parent.layui.admin.events.closeThisTabs();å
³éé¡µç¾ |
| | |
| | | } |
| | | }); |
| | | |
| | | //æ«æ¡ç |
| | | $('#HBarCode').on('keydown', function (event) { //æ«æ¡ç |
| | | var sOldBarCode = $('#HBarCode').val() |
| | | var HDeleteFlag = sOldBarCode.substring(0, 1); |
| | | var sBarCode = sOldBarCode.slice(1); |
| | | var sSubStr = table.cache['wl-table']; |
| | | //æ«ææç®±æ¡ç |
| | | $('#HBarCode').on('keydown', function (event) { //æ«ææç®±æ¡ç |
| | | var sInterID = $("#HInterID").val() |
| | | var sBillNo = $("#HBillNo").val() |
| | | var sQty = $("#HQty").val() |
| | | var sHBillType = $("#HBillType").val() //æºåç±»å |
| | | var sBillType = '1202' |
| | | var sHWHID = $("#HWHID").val() |
| | | var sHSPID = $("#HStockPlaceID").val() |
| | | var sSourceBillNo = $("#HSourceBillNo").val() |
| | | var HBarCode = $('#HBarCode').val() |
| | | var HTBarCode = $('#HTBarCode').val() |
| | | if (event.keyCode == 13) { |
| | | if (HDeleteFlag == "*") |
| | | { |
| | | if (sBarCode != "") { |
| | | $('#HBarCode').val(""); |
| | | } |
| | | var sBarCode = sOldBarCode.slice(1); |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/ProductIn/Delete_Json", |
| | | async: true, |
| | | data: { "HInterID": sInterID, "HBillNo": sBillNo, "HBillType": sBillType, "HBarCode": sBarCode}, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json' |
| | | , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , defaultToolbar: [] |
| | | , where: { HBillID: sInterID, HBillType: '1202', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150 } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | ]] |
| | | // , data: [linterid] |
| | | // , page: true |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | } |
| | | else { |
| | | var sBarCode = $('#HBarCode').val() |
| | | //var Flag = sessionStorage["SourceFlag"]; |
| | | if (sQty == "") { |
| | |
| | | if (sBarCode != "") { |
| | | $('#HBarCode').val(""); |
| | | } |
| | | if (sQty != "") { |
| | | $('#HQty').val(""); |
| | | } |
| | | if (sHWHID == "184154") { |
| | | if (sHSPID == "0") { |
| | | layer.msg("ä»ä½ä¸ºç©ºï¼è¯·éæ©ä»ä½ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | } |
| | | //if (AllowLoadData(sSubStr, 'HBarCode') != false) {//é空éªè¯ |
| | | $.ajax({ |
| | | //url: "http://61.130.49.162:9090/WMSAPI///ProductIn/get_CheckTypeByBarCode_Json", |
| | | url: GetWEBURL() + "/ProductIn/get_CheckTypeByBarCode_Json", |
| | | url: GetWEBURL() + "/PackSplit/get_CheckTypeByBarCode_Json", |
| | | type: "GET", |
| | | data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sBillType": sBillType, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": HSourceFlag, "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": sessionStorage["OrganizationID"] }, |
| | | data: { "HBarCode": HBarCode, "sInterID": sInterID, "HBillType": '3784', "sBillNo": sBillNo, "HTBarCode": HTBarCode, "sMaker": sessionStorage["HUserName"], "HOWNERID": sessionStorage["OrganizationID"] }, |
| | | success: function (result) { |
| | | //debugger; |
| | | playSound1(); |
| | | if (result.count == 1) { |
| | | if (result.data.HBarType == 'ä»åºæ¡ç ') { |
| | | $("#HWHNAME").val(result.data.HWhName); |
| | | $("#HWHID").val(result.data.HWhID); |
| | | $("#HStockPlaceName").val(""); |
| | | $("#HNote").val(";ä¸é®æ«ç ä»åºæ¡ç "); |
| | | element.tabChange('tab-ProductlnBill', '2'); //è·³è½¬é¡µç¾ |
| | | } |
| | | else if (result.data.HBarType == 'ä»ä½æ¡ç ') { |
| | | $("#HStockPlaceName").val(result.data.HSPName); |
| | | $("#HStockPlaceID").val(result.data.HSPID); |
| | | $("#HWHNAME").val(result.data.HWhName); |
| | | $("#HWHID").val(result.data.HWhID); |
| | | $("#HNote").val(";ä¸é®æ«ç ä»ä½æ¡ç "); |
| | | element.tabChange('tab-ProductlnBill', '2');//è·³è½¬é¡µç¾ |
| | | } |
| | | else if (result.data.HBarType == 'é¨é¨æ¡ç ') { |
| | | $("#HDeptName").val(result.data.HDeptName); |
| | | $("#HDeptID").val(result.data.HDeptID); |
| | | $("#HNote").val(";ä¸é®æ«ç é¨é¨æ¡ç "); |
| | | element.tabChange('tab-ProductlnBill', '2');//è·³è½¬é¡µç¾ |
| | | } |
| | | else if (result.data.HBarType == 'æºåæ¡ç ') { |
| | | $("#HSupName").val(result.data.HSupName); |
| | | $("#HSupID").val(result.data.HSupID); |
| | | $("#HDeptName").val(result.data.HDeptName); |
| | | $("#HDeptID").val(result.data.HDeptID); |
| | | $("#HSourceBillNo").val(result.data.HSourceBillNo); |
| | | HSourceFlag = true; |
| | | //è·åæºåç±»åãæºååå· |
| | | //if (result.data.HSourceBillType == "3711") { |
| | | // $("#HBillType").val("3711"); |
| | | //} |
| | | //else { |
| | | // $("#HBillType").val("-1"); |
| | | //} |
| | | $("#HNote").val(";ä¸é®æ«ç æºåæ¡ç "); |
| | | element.tabChange('tab-ProductlnBill', '3'); |
| | | } |
| | | else { |
| | | if (HSourceFlag == "true") { |
| | | element.tabChange('tab-ProductlnBill', '3'); |
| | | } |
| | | else { |
| | | $("#HSupName").val(result.data.HSupName); |
| | | $("#HSupID").val(result.data.HSupID); |
| | | //$("#HDeptName").val(result.data.HDept); |
| | | //$("#HDeptID").val(result.data.HDeptID); |
| | | $("#HSourceBillNo").val(result.data.HSourceBillNo); |
| | | HSourceFlag = true; |
| | | //è·åæºåç±»åãæºååå· |
| | | //if (result.data.HSourceBillType == "3711") { |
| | | // $("#HBillType").val("3711"); |
| | | |
| | | //} |
| | | |
| | | //else { |
| | | // $("#HBillType").val("-1"); |
| | | //} |
| | | $("#HNote").val(";ç©ææ¡ç "); |
| | | element.tabChange('tab-ProductlnBill', '3'); |
| | | } |
| | | //} |
| | | } |
| | | //$("#HSupID").val(result.data.HSupID); |
| | | //$("#HSupName").val(result.data.HSupName); |
| | | //$("#HDeptID").val(result.data.HDeptID); |
| | | //$("#HDeptName").val(result.data.HDeptName); |
| | | layer.load(3) |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json' |
| | | , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json' |
| | | , url: GetWEBURL() + '/PackSplitBill/GetBillEntry_TmpList_Pack' |
| | | , toolbar: '#toolbarDemo' |
| | | , defaultToolbar: [] |
| | | , where: { HBillID: sInterID, HBillType: '1202', sWhere: '' } |
| | | , where: { HBillID: sInterID, HBillNo: sBillNo, HBillType: '3784', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150 } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150 } |
| | | , { field: 'HPieceQty', title: 'ä»¶æ°', width: 150 } |
| | | , { field: 'HBarCode', title: 'åæ¡ç ç¼å·', width: 150 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HMaterID', title: 'ç©æID', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150 } |
| | | ]] |
| | | // , data: [linterid] |
| | | // , page: true |
| | |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | } |
| | | else { |
| | | playSound(); |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | |
| | | console.log(err); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | |
| | |
| | | audio.play(); |
| | | } |
| | | |
| | | //æ«æºå |
| | | $('#HTBarCode').on('keydown', function (event) { //æ«æºå |
| | | //æ«ææ¡ç |
| | | $('#HTBarCode').on('keydown', function (event) { |
| | | var HTBarCode = $('#HTBarCode').val() |
| | | var sInterID = $("#HInterID").val() |
| | | var sBillNo = $("#HBillNo").val() |
| | |
| | | , url: GetWEBURL() + '/PackSplitBill/GetBillEntry_TmpList_Pack' |
| | | , toolbar: '#toolbarDemo' |
| | | , defaultToolbar: [] |
| | | , where: { HBillID: sInterID, HBillType: '3784', sWhere: '' } |
| | | , where: { HBillID: sInterID, HBillNo: sBillNo, HBillType: '3784', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150 } |
| | | , { field: 'HPieceQty', title: 'ä»¶æ°', width: 150 } |
| | | , { field: 'HBarCode', title: 'åæ¡ç ç¼å·', width: 150 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HBarCodeQty', title: 'æ¡ç æ°é', width: 150 } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150 } |
| | | ]] |
| | | // , data: [linterid] |
| | | // , page: true |
| | |
| | | // layer.msg("请å
æ«æºå!", { icon: 5 }); |
| | | // return false; |
| | | //} |
| | | if($("#HDeptName").val()=='') |
| | | { |
| | | layer.msg("é¨é¨æ²¡æéæ©", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if ($("#HSecManager").val() == '') { |
| | | layer.msg("éªæ¶äººæ²¡æéæ©", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if ($("#HKeeper").val() == '') { |
| | | layer.msg("ä¿ç®¡äººæ²¡æéæ©", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | //if($("#HDeptName").val()=='') |
| | | //{ |
| | | // layer.msg("é¨é¨æ²¡æéæ©", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return false; |
| | | //} |
| | | //if ($("#HSecManager").val() == '') { |
| | | // layer.msg("éªæ¶äººæ²¡æéæ©", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return false; |
| | | //} |
| | | //if ($("#HKeeper").val() == '') { |
| | | // layer.msg("ä¿ç®¡äººæ²¡æéæ©", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return false; |
| | | //} |
| | | //if ($("#HWHNAME").val() == '') { |
| | | // layer.msg("ä»åºæ²¡æéæ©!", { icon: 5 }); |
| | | // return false; |
| | |
| | | layer.msg("é误çå
ç ", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if (typeof (sSubStr) == "undefined") |
| | | { |
| | | layer.msg("没æç©ææç»è®°å½", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if (!typeof (sSubStr) == "undefined") { |
| | | //for (var i = 0; i <= sSubStr.length - 1; i++) { //夿æ«ç æ°éä¸è½å¤§äºåºæ¶æ°é |
| | | // if (parseFloat(sSubStr[i].HQtyMust) > 0) { |
| | | // if (parseFloat(sSubStr[i].HQty) > parseFloat(sSubStr[i].HQtyMust)) |
| | | // { |
| | | // layer.msg("æ°éä¸è½å¤§äºåºæ¶æ°é", { icon: 5, btn: ['ç¡®å®'], time: 100000, offset: 't' }); |
| | | // return false; |
| | | // } |
| | | // } |
| | | //} |
| | | for (var i = 0; i <= sSubStr.length - 1; i++) { //夿æ«ç æ°éä¸è½ä¸º0 |
| | | if (parseFloat(sSubStr[i].HQty) > 0) { |
| | | s = 1; |
| | | } |
| | | } |
| | | if (s == 0) { |
| | | layer.msg("产åå
¥åºè®°å½æªæ«ç ", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | } |
| | | //if (typeof (sSubStr) == "undefined") |
| | | //{ |
| | | // layer.msg("没æç©ææç»è®°å½", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return false; |
| | | //} |
| | | //if (!typeof (sSubStr) == "undefined") { |
| | | // //for (var i = 0; i <= sSubStr.length - 1; i++) { //夿æ«ç æ°éä¸è½å¤§äºåºæ¶æ°é |
| | | // // if (parseFloat(sSubStr[i].HQtyMust) > 0) { |
| | | // // if (parseFloat(sSubStr[i].HQty) > parseFloat(sSubStr[i].HQtyMust)) |
| | | // // { |
| | | // // layer.msg("æ°éä¸è½å¤§äºåºæ¶æ°é", { icon: 5, btn: ['ç¡®å®'], time: 100000, offset: 't' }); |
| | | // // return false; |
| | | // // } |
| | | // // } |
| | | // //} |
| | | // for (var i = 0; i <= sSubStr.length - 1; i++) { //夿æ«ç æ°éä¸è½ä¸º0 |
| | | // if (parseFloat(sSubStr[i].HQty) > 0) { |
| | | // s = 1; |
| | | // } |
| | | // } |
| | | // if (s == 0) { |
| | | // layer.msg("产åå
¥åºè®°å½æªæ«ç ", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return false; |
| | | // } |
| | | //} |
| | | else |
| | | { |
| | | return true; |
| | |
| | | <div class="layui-card" style="padding: 15px;background-color: #efefef;"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="formData" id="formData" style="background-color:white;"> |
| | | <div class="maintitle">设å¤ç¹æ£è®°å½å</div> |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | <div class="layui-row"> |
| | | <label class="layui-form-label" style="width: 85px;"><span style="color:red;">*</span>è®¾å¤æ¡ç </label> |
| | | <div class="layui-input-block" style="margin-left: 100px;width:46%;"> |
| | | <input type="text" name="HBarCode" id="HBarCode" lay-verify="required" placeholder="请é®å
¥åå车" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief"> |
| | | <div class="maintitle">设å¤ä¿å
»è®°å½å</div> |
| | | <div class="layui-tab layui-tab-card" lay-filter="TabTest"> |
| | | <ul class="layui-tab-title"> |
| | | <li class="layui-this">åºæ¬ä¿¡æ¯</li> |
| | | <li>å
¶ä»ä¿¡æ¯</li> |
| | | <li>æç»ä¿¡æ¯</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | <div class="layui-row"> |
| | | <label class="layui-form-label" style="width: 85px;"><span style="color:red;">*</span>è®¾å¤æ¡ç </label> |
| | | <div class="layui-input-block" style="margin-left: 100px;width:46%;"> |
| | | <input type="text" name="HBarCode" id="HBarCode" lay-verify="required" placeholder="请é®å
¥åå车" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="HRepair" id="HRepair" class="layui-input" style="width:80%;"> |
| | | <input type="hidden" name="HRepairID" id="HRepairID" class="layui-input"> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-primary" lay-filter="HDotCheckItemList" style="width:40px;"> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-primary" lay-filter="HRepairList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | |
| | | <textarea name="HRepairExplanation" id="HRepairExplanation" placeholder="请è¾å
¥å
容" class="layui-textarea"></textarea> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;padding: 9px 5px;">æ
éç»è®°å</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="HMainSourceBillNo" id="HMainSourceBillNo" class="layui-input" style="width:80%;"> |
| | | <input type="hidden" name="HMainSourceInterID" id="HMainSourceInterID" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HMainSourceEntryID" id="HMainSourceEntryID" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-primary" lay-filter="XDHList" id="XDHList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | |
| | | <label class="layui-form-label" style="width: 75px;">设å¤åå·:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="text" name="HBarModel" id="HBarModel" class="layui-input" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">æ°é:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="text" name="HQty" id="HQty" class="layui-input" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab-item"> |
| | | <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-AddLine"><i class="layui-icon layui-icon-form"></i>å¢è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Edit"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> |
| | | </div> |
| | | </script> |
| | | <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> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <div class="layer-footer" style="text-align: center;"> |
| | | <button type="button" lay-submit="" class="layui-btn buttom_box_little" lay-filter="Saver" id="Saver">æäº¤</button> |
| | |
| | | ,laydate = layui.laydate |
| | | , element = layui.element; |
| | | |
| | | //æ¥ææ¶é´éæ©å¨ |
| | | //#region æ¥ææ¶é´éæ©å¨ |
| | | laydate.render({ |
| | | elem: '#HRepairBeginDate' |
| | | , type: 'datetime' |
| | |
| | | elem: '#HDeleteDate' |
| | | , type: 'datetime' |
| | | }); |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | //è·åæå¤§åæ®å· |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | data: { "HBillType": '3910' }, |
| | | success: function (d) { |
| | | //console.log(d.data); |
| | | $("#HInterID").val("0"); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | } |
| | | }); |
| | | //#endregion |
| | | |
| | | //头工å
·æ äºä»¶ |
| | | table.on('toolbar(mainTable)', function (obj) { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | var NewRow = { "HRepairID": 0, "HRepairCode": "", "HRepairName": "", "HManagerID": 0, "HManagerCode": "", "HManagerName": "", "HRepairExplanation": "", "HRemark": ""}; |
| | | switch (obj.event) { |
| | | //æ°å¢ä¸è¡ |
| | | case 'btn-AddLine': btnAddLine(NewRow); |
| | | break; |
| | | case 'btn-Edit': btnEditLine(obj); |
| | | break; |
| | | } |
| | | }); |
| | | //è¡å
äºä»¶ |
| | | table.on('tool(mainTable)', function (obj) { |
| | | set_GridDelete(obj); //è¡å
å é¤ |
| | | set_GridCellCheck(obj); //è¡å
å¿«æ·é®çé |
| | | }); |
| | | |
| | | |
| | | //è¿å
¥é¡µé¢é»è®¤å
æ 卿¡å½¢ç ä¸ |
| | | $("#HBarCode").focus(); |
| | | |
| | | //åå§åºæ¬ä¿¡æ¯èµå¼ |
| | | $("#HRepairBeginDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); //ç¹æ£å¼å§æ¶é´ |
| | | $("#HRepairEndDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); //ç¹æ£ç»ææ¶é´ |
| | |
| | | //模治å
·æ¡ç æ¯å¦æ«ææ è®° |
| | | var HProcExchBillNoFlag = false; |
| | | |
| | | //è·åæå¤§åæ®å· |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | data: { "HBillType": '3910' }, |
| | | success: function (d) { |
| | | //console.log(d.data); |
| | | $("#HInterID").val("0"); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | } |
| | | }); |
| | | |
| | | |
| | | |
| | | //æ¡å½¢ç åè½¦æ¹æ³ |
| | |
| | | //var tableData = data.field; |
| | | data.field.HMaker = sessionStorage["HUserName"];//å¶å人 |
| | | var oMain = JSON.stringify(data.field); |
| | | //var oMain = data.field; |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Sb_PDA_EqpRepairWorkBill/SaveGetEqpRepairWorkBillList", |
| | | //url:"http://localhost:12761/Cj_StationEntrustOutBill/AddBill", |
| | | async: true, |
| | | data: { "msg": oMain }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { |
| | | //layer.confirm(data.Message, { |
| | | // icon: 1, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['æ°å¢'], |
| | | // btn2: function () { |
| | | // //parent.layui.admin.events.closeThisTabs();å
³éé¡µç¾ |
| | | // //window.close();//å
³é页é¢ï¼æµè§å¨ææï¼PDAæ æ |
| | | // parent.location.href = "../../../views/index.html" |
| | | // }//å
³é |
| | | //}, function () { window.location.reload(); });//æ°å¢ |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | | var sMainSub = oMain + ';' + sSubStr; |
| | | if (AllowLoadData(sSubStr)) { |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Sb_PDA_EqpRepairWorkBill/SaveGetEqpRepairWorkBillList", |
| | | async: true, |
| | | data: { "msg": sMainSub }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { |
| | | layer.msg("æäº¤æå"); |
| | | $('#Saver').removeClass("buttom_box_little"); |
| | | $('#Saver').addClass("layui-btn-disabled").attr("disabled", true); |
| | | } |
| | | else { |
| | | 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("æäº¤æå"); |
| | | $('#Saver').removeClass("buttom_box_little"); |
| | | $('#Saver').addClass("layui-btn-disabled").attr("disabled", true); |
| | | layer.msg("é误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | else { |
| | | 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(Add)', function (data) { |
| | | $('#Saver').addClass("buttom_box_little"); |
| | |
| | | // æ¸
空表å ï¼âformDataâæ¯è¡¨åçidï¼ |
| | | $("#formData")[0].reset(); |
| | | layui.form.render(); |
| | | |
| | | option.data = [{ "HRepairID": 0, "HRepairCode": "", "HRepairName": "", "HManagerID": 0, "HManagerCode": "", "HManagerName": "", "HRepairExplanation": "", "HRemark": "" }]; |
| | | table.render(option); |
| | | |
| | | $("#HBarCode").focus(); |
| | | //è·åæå¤§åæ®å· |
| | |
| | | $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); //åå»ºæ¥æ |
| | | $("#HMaker").val(sessionStorage["HUserName"]); //å建人 |
| | | }) |
| | | |
| | | //é¨é¨å¼¹çª |
| | | form.on('submit(Department)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../Baseset/åºç¡èµæ/Gy_DepartmentList.html', 'yes'], |
| | | cancel: function (index, layero) { |
| | | content: ['../../views/PublicPage/DeptInformation.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HDeptName").val(checkStatus.data[0].HName); |
| | | $("#HDeptID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //ç»´ä¿®äººå¼¹çª |
| | | form.on('submit(HEmp)', function () { |
| | | IsSet = 0; //维修人0ï¼è´è´£äºº1 |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: '维修人å表', |
| | | title: '人åå表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HWorker', 'yes'], |
| | | cancel: function (index, layero) { |
| | | content: ['../PublicPage/UserInformation.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HEmpName").val(checkStatus.data[0].HName); |
| | | $("#HEmpID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //ç¹æ£é¡¹ç®å¼¹çª |
| | | form.on('submit(HDotCheckItemList)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | //维修项ç®å¼¹çª |
| | | form.on('submit(HRepairList)', function () { |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'ç¹æ£é¡¹ç®å表', |
| | | title: '维修项ç®å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../Baseset/åºç¡èµæ/Gy_CheckItemList.html', 'yes'], |
| | | cancel: function (index, layero) { |
| | | content: ['../PublicPage/RepairItemInformation.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HRepair").val(checkStatus.data[0].HName); |
| | | $("#HRepairID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //è´è´£äººå¼¹çª |
| | | form.on('submit(HManager)', function () { |
| | | IsSet = 1; //维修人0ï¼è´è´£äºº1 |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'è´è´£äººå表', |
| | | title: '人åå表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HWorker', 'yes'], |
| | | cancel: function (index, layero) { |
| | | content: ['../PublicPage/UserInformation.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HManagerName").val(checkStatus.data[0].HName); |
| | | $("#HManagerID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //表头信æ¯éæ©åæ®å¼¹çª |
| | | form.on('submit(XDHList)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: '设å¤ç»´ä¿®ç»è®°å', |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | content: ['../设å¤ç®¡ç/Sb_EqpConkBookBillList.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('è¯·éæ©åæ®æ°æ®'); |
| | | } |
| | | $("#HMainSourceBillNo").val(checkStatus.data[0].åæ®å·); |
| | | $("#HMainSourceInterID").val(checkStatus.data[0].hmainid); |
| | | $("#HMainSourceEntryID").val(checkStatus.data[0].hsubid); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | //layer.full(index); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | |
| | | //以ä¸ä¸ºæ¤é¡µé¢æææ¹æ³ |
| | | //åå§åè¡¨æ ¼ |
| | | function set_InitGrid() { |
| | | //表头 |
| | | columns = [ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe" } |
| | | , { field: 'HRepairID', title: 'HRepairID', edit: 'text', event: "", hide: true } |
| | | , { field: 'HRepairCode', title: '维修项ç®ä»£ç ', edit: 'text', event: "", event: "HRepairCode" } |
| | | , { field: 'HRepairName', title: '维修项ç®', edit: 'text', event: "" } |
| | | , { field: 'HManagerID', title: 'HManagerID', edit: 'text', hide: true } |
| | | , { field: 'HManagerCode', title: 'è´è´£äººä»£ç ', edit: 'text', event: "HManagerCode" } |
| | | , { field: 'HManagerName', title: 'è´è´£äºº', edit: 'text' } |
| | | , { field: 'HRepairExplanation', title: 'ç»´ä¿®è¦æ±', edit: 'text' } |
| | | , { field: 'HRemark', title: '夿³¨', event: "", edit: 'text' } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 150 } |
| | | ]; |
| | | option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , page: true |
| | | , cellMinWidth: 120 |
| | | , totalRow: true |
| | | , limit: 10 |
| | | , height: 'full-50' |
| | | , cols: [columns] |
| | | , limits: [50, 500, 1000, 5000] |
| | | , done: function (res, curr, count) { |
| | | |
| | | } |
| | | }; |
| | | option.data = [{ "HRepairID": 0, "HRepairCode": "", "HRepairName": "", "HManagerID": 0, "HManagerCode": "", "HManagerName": "", "HRepairExplanation": "", "HRemark": "" }]; |
| | | table.render(option); |
| | | } |
| | | //å¢å ä¸è¡ |
| | | function btnAddLine(NewRow) { |
| | | var tableBak = table.cache["mainTable"]; //è·åä¹åç¼è¾è¿çè¡¨æ ¼æ°æ® |
| | | buttonArr = [];//æ¸
空æ°ç» |
| | | for (var i = 0; i < tableBak.length; i++) { |
| | | buttonArr.push(tableBak[i]); //å°ä¹åçæ°æ®åå¨ |
| | | } |
| | | buttonArr.push(NewRow); //å¨å°¾é¨å ä¸è¡ |
| | | table.reload("mainTable", { |
| | | data: buttonArr //å°æ°æ®éæ°è½½å
¥è¡¨æ ¼ |
| | | }) |
| | | } |
| | | //ç¼è¾ä¸è¡ |
| | | function btnEditLine() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ç¼è¾PDA设å¤ç»´ä¿®' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: '../设å¤ç®¡ç/Sb_EqpMaintenanceBillList_PDAEdit.html?OperationType=3&linterid=&HSouceBillType=' |
| | | , resize: false |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , yes: function (index, layero) { |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var HRepairID = parent.layer.getChildFrame('#HRepairID').val(); |
| | | var HRepairCode = parent.layer.getChildFrame('#HRepairCode').val(); |
| | | var HRepairName = parent.layer.getChildFrame('#HRepairName').val(); |
| | | var HManagerID = parent.layer.getChildFrame('#HManagerID').val(); |
| | | var HManagerCode = parent.layer.getChildFrame('#HManagerCode').val(); |
| | | var HManagerName = parent.layer.getChildFrame('#HManagerName').val(); |
| | | var HRepairExplanation = parent.layer.getChildFrame('#HRepairExplanation').val(); |
| | | if (HRepairID == "") { |
| | | return layer.msg('è¯·éæ©ç»´ä¿®é¡¹ç®'); |
| | | } |
| | | if (HManagerID == "") { |
| | | return layer.msg('è¯·éæ©è´è´£äºº'); |
| | | } |
| | | buttonArr = [];//æ¸
空æ°ç» |
| | | var checkrow = { |
| | | "HRepairID": HRepairID, "HRepairCode": HRepairCode, "HRepairName": HRepairName, |
| | | "HManagerID": HManagerID, "HManagerCode": HManagerCode, "HManagerName": HManagerName, |
| | | "HRepairExplanation": HRepairExplanation |
| | | }; |
| | | buttonArr.push(checkrow); //å°ä¹åçæ°æ®åå¨ |
| | | table.reload("mainTable", { |
| | | data: buttonArr //å°æ°æ®éæ°è½½å
¥è¡¨æ ¼ |
| | | }) |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , end: function () { |
| | | |
| | | } |
| | | , cancel: function () { |
| | | |
| | | } |
| | | }) |
| | | } else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ç¼è¾ï¼'); |
| | | } |
| | | } |
| | | // è¡¨æ ¼è¡å
äºä»¶å é¤ |
| | | 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); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | //é空éªè¯ |
| | | function AllowLoadData(sSubStr) { |
| | | if (typeof (sSubStr) == "undefined" || sSubStr == "" || sSubStr == "[]") { |
| | | layer.msg("没æç©ææç»è®°å½", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if (typeof (sSubStr) != "undefined" && typeof (sSubStr) != "") { |
| | | sSubStr = JSON.parse(sSubStr); |
| | | for (var i = 0; i < sSubStr.length; i++) { |
| | | if (sSubStr[i].HManagerCode == "") { |
| | | layer.msg("æç»è®°å½ç¬¬" + (i + 1) + "è¡,è´è´£äººä»£ç ä¿¡æ¯ä¸ºç©º!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if (sSubStr[i].HRepairCode == "") { |
| | | layer.msg("æç»è®°å½ç¬¬" + (i + 1) + "è¡,维修项ç®ä»£ç ä¿¡æ¯ä¸ºç©º!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | else { |
| | | return true; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | //以ä¸ä¸ºlayui模å |
| | | }); |
| | | |
| | | //è¿åé¨é¨ |
| | | function GetHDeptNameValue(obj) { |
| | | $("#HDeptName").val(obj[0].HName); |
| | | $("#HDeptID").val(obj[0].HItemID); |
| | | } |
| | | //è¿å维修人ãè´è´£äºº |
| | | function GetHWorkerValue(obj) { |
| | | if (IsSet == 0) { |
| | | $("#HEmpName").val(obj[0].HName); |
| | | $("#HEmpID").val(obj[0].HItemID); |
| | | } |
| | | if (IsSet == 1) { |
| | | $("#HManagerName").val(obj[0].HName); |
| | | $("#HManagerID").val(obj[0].HItemID); |
| | | } |
| | | } |
| | | //è¿åç»´ä¿®é¡¹ç® |
| | | function GetHCheckNameValue(obj) { |
| | | $("#HRepair").val(obj[0].HName); |
| | | $("#HRepairID").val(obj[0].HItemID); |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |
| New file |
| | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | <head> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | | <title>ç¼è¾PDA设å¤ç»´ä¿®è®°å½</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/zgqCustom/zgqCustom.js"></script> |
| | | <!--èªå®ä¹æ ·å¼--> |
| | | <style> |
| | | .maintitle { |
| | | background-color: #1492ff; |
| | | color: #fff; |
| | | padding: 5px 10px; |
| | | border: none; |
| | | border-radius: 4px; |
| | | } |
| | | |
| | | .title { |
| | | border-left: 4px solid #1492ff; |
| | | padding-left: 6px; |
| | | margin: 20px 10px 4px; |
| | | font-size: 16px; |
| | | color: #333; |
| | | } |
| | | |
| | | .buttom_box_little { |
| | | width: 60px; |
| | | height: 36px; |
| | | color: #fff; |
| | | background-color: #1492ff; |
| | | border-radius: 4px; |
| | | border: none; |
| | | margin: 10px; |
| | | } |
| | | |
| | | .layui-input { |
| | | width: 93%; |
| | | } |
| | | |
| | | .layui-inline, img { |
| | | display: block; |
| | | vertical-align: middle |
| | | } |
| | | |
| | | .layui-input, .layui-textarea { |
| | | display: inline-block; |
| | | width: 100%; |
| | | padding-left: 10px; |
| | | } |
| | | |
| | | .laydate-time-list ol { |
| | | overflow-x: hidden !important; |
| | | overflow-y: auto !important; |
| | | } |
| | | |
| | | .layui-form-label { |
| | | padding: 9px 5px; |
| | | width: 85px; |
| | | } |
| | | |
| | | .layui-input-block { |
| | | margin-left: 85px; |
| | | min-height: 36px; |
| | | } |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid" style="padding: 0;"> |
| | | <div class="layui-card" style="padding: 15px;background-color: #efefef;"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="formData" id="formData" style="background-color:white;"> |
| | | <div class="maintitle">ç¼è¾PDA设å¤ç»´ä¿®è®°å½</div> |
| | | <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-top: 10px;"> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;padding: 9px 5px;">维修项ç®:</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="HRepairName" id="HRepairName" class="layui-input" style="width:80%;"> |
| | | <input type="hidden" name="HRepairID" id="HRepairID" class="layui-input"> |
| | | <input type="hidden" name="HRepairCode" id="HRepairCode" class="layui-input"> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-primary" lay-filter="HRepairList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;padding: 9px 5px;">è´è´£äºº:</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="HManagerName" id="HManagerName" class="layui-input" style="width:80%;"> |
| | | <input type="hidden" name="HManagerID" id="HManagerID" class="layui-input"> |
| | | <input type="hidden" name="HManagerCode" id="HManagerCode" class="layui-input"> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-primary" lay-filter="HManagerList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;padding: 9px 5px;">ç»´ä¿®è¦æ±:</label> |
| | | <div class="layui-input-inline"> |
| | | <textarea placeholder="请è¾å
¥ç»´ä¿®è¦æ±" class="layui-textarea" name="HRepairExplanation" id="HRepairExplanation"></textarea> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <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> |
| | | //è·ååæ° |
| | | var params = get_UrlVars(); |
| | | if (typeof (params[params[0]]) == "undefined") { |
| | | var OperationType = 1;//æä½ç±»å |
| | | } else { |
| | | var OperationType = params[params[0]];//æä½ç±»å |
| | | var linterid = params[params[1]];//æºåid |
| | | var HSouceBillType = params[params[2]];//æºåç±»å |
| | | } |
| | | |
| | | |
| | | 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; |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | //#endregion |
| | | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | |
| | | //表头信æ¯ç»´ä¿®é¡¹ç® |
| | | form.on('submit(HRepairList)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: '维修项ç®å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../PublicPage/RepairItemInformation.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HRepairName").val(checkStatus.data[0].HName); |
| | | $("#HRepairID").val(checkStatus.data[0].HItemID); |
| | | $("#HRepairCode").val(checkStatus.data[0].HNumber); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | //表头信æ¯è´£ä»»äºº |
| | | form.on('submit(HManagerList)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: '责任人å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../PublicPage/UserInformation.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HManagerName").val(checkStatus.data[0].HName); |
| | | $("#HManagerID").val(checkStatus.data[0].HItemID); |
| | | $("#HManagerCode").val(checkStatus.data[0].HNumber); |
| | | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | //#endregion |
| | | |
| | | }); |
| | | </script> |
| | | </body> |
| | | </html> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å·¥åºå</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" id="HName" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æµè½¬å¡å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" id="HProcExchBillNo" style="width:190px;"> |
| | |
| | | , { field: 'æµè½¬å¡å·', title: 'æµè½¬å¡å·', width: 160 } |
| | | , { field: 'è¿åºç«æç¨æ¶é´', title: 'è¿åºç«æç¨æ¶é´', width: 160 } |
| | | , { field: 'å·¥æ¶', title: 'å·¥æ¶', width: 160 } |
| | | , { field: 'å·¥åºå', title: 'å·¥åºå', width: 160 } |
| | | , { field: 'ä¸è¯æ°é', title: 'ä¸è¯æ°é', width: 160 } |
| | | , { field: 'æ¥åºæ°é', title: 'æ¥åºæ°é', width: 160 } |
| | | , { field: 'è¿ç«æ°é', title: 'è¿ç«æ°é', width: 160 } |
| | |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Sc_PackUnionBill/Sc_StationInBillSetExcel", |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | window.location.reload(); |
| | | //if (result.count == 1) { |
| | | // layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // // å¾å°frameç´¢å¼ |
| | | // var index = layer.getFrameIndex(window.name); |
| | | // //å
³éå½åframe |
| | | // layer.close(index); |
| | | // //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | // window.location.reload(); |
| | | // }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | layer.close(wait); |
| | | //} else { |
| | | // layer.alert(result.code + result.Message, { icon: 5 }); |
| | | //} |
| | | //layer.close(wait); |
| | | }, error: function () { |
| | | layer.close(wait); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | |
| | | var HEndDate = $("#HEndDate").val();//ç»ææ¥æ |
| | | var HICMOBillNo = $("#HICMOBillNo").val(); //åæ®å· |
| | | var HProcExchBillNo = $("#HProcExchBillNo").val(); |
| | | var HName = $("#HName").val(); |
| | | |
| | | if (HBeginDate) { |
| | | sWhere += " and CONVERT(varchar(100),è¿ç«æ¶é´, 23) >= '" + HBeginDate + "'"; |
| | |
| | | if (HProcExchBillNo) { |
| | | sWhere += " and æµè½¬å¡å· like '%" + HProcExchBillNo + "%'"; |
| | | } |
| | | if (HName) { |
| | | sWhere += " and å·¥åºå like '%" + HName + "%'"; |
| | | } |
| | | get_Display(sWhere); |
| | | //è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | sWhere = " where 1 = 1 "; |