Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-LayUI
| | |
| | | <Content Include="views\模治å
·ç®¡ç\模治å
·ç¹æ£ä¿å
»\Sc_MouldMaintainBill_PDA.html" /> |
| | | <Content Include="views\模治å
·ç®¡ç\模治å
·ç®¡ç\Sc_MouldMaintainRuleBillList_PDA.html" /> |
| | | <Content Include="views\ç产管ç\å¼å¸¸åé¦å\OA_ErrMsgBackSignBill_BrushCard.html" /> |
| | | <Content Include="views\ç产管ç\å¼å¸¸åé¦å\Sc_MESExecptFeedBackBillType.html" /> |
| | | <Content Include="views\ç产管ç\æ¥å·¥å°å·¥åº\å¼å·¥\Sc_SwipeCardStart.html" /> |
| | | <Content Include="views\ç产管ç\ç产æ¥è¡¨\Sc_QualityReportBillDay.html" /> |
| | | <Content Include="views\ç产管ç\ç产计åå¹³å°\JIT_DayPlanPlatForm_BCP.html" /> |
| | | <Content Include="views\ç³»ç»ç®¡ç\ä¼è®¡æé´\Xt_AccountPeriodAdd.html" /> |
| | | <Content Include="views\ç³»ç»ç®¡ç\ç¨æ·ç®¡ç\Xt_UserRightQuery.html" /> |
| | |
| | | //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:81/API/"; //ç彬æ¬å°é
ç½® |
| | | /*var WEBURL = "http://localhost:8083/API/"; //éé¯éæ¬å°é
ç½®*/ |
| | | // var WEBURL = "http://localhost:81/API/" //ç¿æ¶æ¶æ¬å°é
ç½® |
| | | /*var WEBURL = "http://localhost:8082/API/"; //å¼ ç广æ¬å°é
ç½®*/ |
| | | //var WEBURL = "http://localhost:81/API/" //ç¿æ¶æ¶æ¬å°é
ç½® |
| | | var WEBURL = "http://localhost:8082/API/"; //å¼ ç广æ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/LuBaoAPI/"; //ä½ææ°æ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8088/ARAPI/"; //ä½ææ°æ¬å°é
ç½®(å®ç) |
| | | //var WEBURL = "http://10.1.4.155/API/"; //æ±ä¸°å®¢æ·NEW |
| | |
| | | var HManagerName = ""; //è´è´£äºº |
| | | var HGroupName = ""; //çç» |
| | | var HProcID = 0; //å·¥åº |
| | | var HSBName = ""; //设å¤åç§° |
| | | |
| | | //注æï¼éé¡¹å¡ ä¾èµ element 模åï¼å¦åæ æ³è¿è¡åè½æ§æä½ |
| | | layui.config({ |
| | |
| | | dataType: "json",//æ°æ®ç±»åå¯ä»¥ä¸º text xml json script jsonp |
| | | success: function (data) { |
| | | var LoadData = data.data.h_p_JIT_GetSourceInfoByUser; |
| | | |
| | | if (LoadData.length > 0)// 说æéªè¯æåäºï¼ |
| | | { |
| | | HSBName = LoadData[0].HSourceName; |
| | | for (var i = 1; i <= LoadData.length + 1; i++) { |
| | | if (i <= LoadData.length) { |
| | | var html1 = ''; |
| | |
| | | var LoadData1 = data.data.h_p_JIT_GetWorkBillListInfoBySource; |
| | | var LoadData2 = data.data.h_p_JIT_GetWorkBillListInfoBySource1; |
| | | var LoadData3 = data.data.h_p_JIT_GetWorkBillListInfoBySource2; //æ¶é´ç¹äº§é |
| | | var LoadData4 = data.data.h_p_JIT_GetWorkBillListInfoBySource3; //ä¸è¯åæ |
| | | var LoadData4 = data.data.h_p_JIT_GetWorkBillListInfoBySource3; //ä¸è¯åæ |
| | | if (LoadData1.length > 0) //å·¥ååè¡¨æ°æ® |
| | | { |
| | | |
| | |
| | | } |
| | | if (LoadData2.length > 0) //å½åç¶ææ°æ® |
| | | { |
| | | HSBName = LoadData2[0].HSourceName; |
| | | for (var i = 0; i < LoadData2.length; i++) { |
| | | var html1 = ''; |
| | | html1 += '<div class="layui-col-sm12 layui-col-md12">'; |
| | |
| | | }); |
| | | } |
| | | |
| | | //å¼å¸¸æé®ç¹å»äºä»¶ |
| | | function Abnormal (event, obj) { |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'å¼å¸¸åé¦ç±»å', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: 'ç产管ç/å¼å¸¸åé¦å/Sc_MESExecptFeedBackBillType.html', |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (dom, index) { |
| | | var data = []; |
| | | data.push({ |
| | | "HICMOBillNo": HICMOBillNo,//å·¥åå· |
| | | "HSourceName": HSBName //è®¾å¤ |
| | | }); |
| | | |
| | | //éè¿ç´¢å¼è·åå°å½åiframeå¼¹åºå± |
| | | var iframe = window['layui-layer-iframe' + index]; |
| | | //è°ç¨iframeå¼¹åºå±å
çæ¹æ³ |
| | | iframe.edit(data); |
| | | }, |
| | | }); |
| | | } |
| | | |
| | | //é²ééªè¯æ¸
åæé®ç¹å»äºä»¶ |
| | | function PreventErrMouldCheck(event, obj) { |
| | | layer.open({ |
| | |
| | | <span class="imgtitle">åå·¥</span> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-sm12 layui-col-md4"> |
| | | <div class="layui-col-sm12 layui-col-md4" onclick="Abnormal(event,this)"> |
| | | <div class="cnt bottomright" style="pointer-events:none; background-color:rgb(0 0 0 / 10%)"> |
| | | <span class="layui-icon layui-icon-unlink imgicon"></span> |
| | | <span class="imgtitle">å¼å¸¸</span> |
| | |
| | | |
| | | 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 } |
| | |
| | | } |
| | | 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 } |
| | |
| | | |
| | | $("#HPlanNo").val(checkStatus.data[0].åæ®å·); |
| | | $("#HPlanInterID").val(checkStatus.data[0].hmainid); |
| | | $("#HMouldID").val(checkStatus.data[0].HMouldID); |
| | | $("#HMouldName").val(checkStatus.data[0].äº§åæ¨¡å
·); |
| | | $("#HMouldDotCheckRuleID").val(checkStatus.data[0].HMouldDotCheckRuleID); |
| | | $("#HMouldDotCheckRuleName").val(checkStatus.data[0].HMouldDotCheckRuleNo); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | //$.ajax({ |
| | | // url: GetWEBURL() + 'Sc_MouldDotCheckBill/Sc_MouldDotCheckSubBillListByPlan', |
| | |
| | | console.log(checkStatus); |
| | | $("#HMouldDotCheckRuleName").val(checkStatus.data[0].åæ®å·); |
| | | $("#HMouldDotCheckRuleID").val(checkStatus.data[0].hmainid); |
| | | $("#HMouldID").val(checkStatus.data[0].HMouldID); |
| | | $("#HMouldName").val(checkStatus.data[0].模å
·åç§°); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | get_DocCheckItem2(checkStatus.data[0].hmainid); |
| | | } |
| | |
| | | if (result != null) { |
| | | if (result.count == 1) { |
| | | var BYData = result.list[0];//ç¹æ£ |
| | | var PJData = result.list[1];//é
ä»¶ |
| | | var rowdate1 = layui.table.cache["mainTable"]; |
| | | //var PJData = result.list[1];//é
ä»¶ |
| | | //var rowdate1 = layui.table.cache["mainTable"]; |
| | | option.data = [{ "HDotCheckItemID": 0, "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": "0", "HManagerNumber": "", "HManagerName": "", "HRemark": "", "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "", "HDotCheckResult": "Y" }]; |
| | | table.render(option); |
| | | |
| | |
| | | buttonArr = [];//æ¸
空æ°ç» |
| | | for (var i = 0; i < BYData.length; i++) { |
| | | var checkrow = { |
| | | "HDotCheckItemID": BYData[i].HDotCheckItemID, "HDotCheckItem": BYData[i].HDotCheckItem, "HDotCheckPart": BYData[i].HDotCheckPart, |
| | | "HClaim": BYData[i].HClaim, "HManagerID": BYData[i].HManagerID, "HManagerNumber": BYData[i].HManagerCode, |
| | | "HManagerName": BYData[i].HManagerName, "HRemark": BYData[i].HRemark, "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "", "HDotCheckResult": "Y" |
| | | "HDotCheckItemID": BYData[i].ç¹æ£é¡¹ç®ID, "HDotCheckItem": BYData[i].ç¹æ£é¡¹ç®, "HDotCheckPart": BYData[i].ç¹æ£é¨ä½, |
| | | "HClaim": BYData[i].å
·ä½è¦æ±, "HManagerID": BYData[i].è´è´£äººID, "HManagerNumber": BYData[i].è´è´£ä»£ç , |
| | | "HManagerName": BYData[i].è´è´£äººåç§°, "HRemark": BYData[i].表ä½å¤æ³¨, "HDotCheckItemClassID": BYData[i].HDotCheckItemClassID, "HDotCheckItemClassName": BYData[i].ç¹æ£é¡¹ç®åç±»åç§°, "HDotCheckItemMethodID": BYData[i].HDotCheckItemMethodID, "HDotCheckItemMethodName": BYData[i].ç¹æ£æ¹æ³åç§°, "HDotCheckResult": "Y" |
| | | }; |
| | | buttonArr.push(checkrow); //å°ä¹åçæ°æ®åå¨ |
| | | } |
| | |
| | | if (result != null) { |
| | | if (result.count == 1) { |
| | | var BYData = result.list[0];//ç¹æ£ |
| | | var PJData = result.list[1];//é
ä»¶ |
| | | var rowdate1 = layui.table.cache["mainTable"]; |
| | | //var PJData = result.list[1];//é
ä»¶ |
| | | //var rowdate1 = layui.table.cache["mainTable"]; |
| | | option.data = [{ "HDotCheckItemID": 0, "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": "0", "HManagerNumber": "", "HManagerName": "", "HRemark": "", "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "", "HDotCheckResult": "Y" }]; |
| | | table.render(option); |
| | | |
| | |
| | | buttonArr = [];//æ¸
空æ°ç» |
| | | for (var i = 0; i < BYData.length; i++) { |
| | | var checkrow = { |
| | | "HDotCheckItemID": BYData[i].HDotCheckItemID, "HDotCheckItem": BYData[i].HDotCheckItem, "HDotCheckPart": BYData[i].HDotCheckPart, |
| | | "HClaim": BYData[i].HClaim, "HManagerID": BYData[i].HManagerID, "HManagerNumber": BYData[i].HManagerNumber, |
| | | "HManagerName": BYData[i].HManagerName, "HRemark": BYData[i].HRemark, "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "", "HDotCheckResult": "Y" |
| | | "HDotCheckItemID": BYData[i].ç¹æ£é¡¹ç®ID, "HDotCheckItem": BYData[i].ç¹æ£é¡¹ç®, "HDotCheckPart": BYData[i].ç¹æ£é¨ä½, |
| | | "HClaim": BYData[i].å
·ä½è¦æ±, "HManagerID": BYData[i].è´è´£äººID, "HManagerNumber": BYData[i].è´è´£äººä»£ç , |
| | | "HManagerName": BYData[i].è´è´£äººåç§°, "HRemark": BYData[i].å夿³¨, "HDotCheckItemClassID": BYData[i].HDotCheckItemClassID, "HDotCheckItemClassName": BYData[i].ç¹æ£é¡¹ç®åç±»åç§°, "HDotCheckItemMethodID": BYData[i].HDotCheckItemMethodID, "HDotCheckItemMethodName": BYData[i].ç¹æ£æ¹æ³åç§°, "HDotCheckResult": "Y" |
| | | }; |
| | | buttonArr.push(checkrow); //å°ä¹åçæ°æ®åå¨ |
| | | } |
| | |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·:</label> |
| | | <label class="layui-form-label">åæ®å·:<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HBillNo" lay-verify="HBillNo" id="HBillNo" disabled autocomplete="off"> |
| | | <input id="HInterID" name="HInterID" type="hidden" /> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®æ¥æ:</label> |
| | | <label class="layui-form-label">åæ®æ¥æ:<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HDate" id="HDate" disabled autocomplete="off" model="datetime" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">主é¢:</label> |
| | | <label class="layui-form-label">主é¢:<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HContext" lay-verify="HContext" id="HContext" autocomplete="off" style="width:485px"> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åé人:</label> |
| | | <label class="layui-form-label">åé人:<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HSendMan" id="HSendMan" class="layui-input" value="" style="float:left;width:150px;" disabled> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HSendManList" id="HSendManList" style="width:40px;"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æ¥æ¶äºº:</label> |
| | | <label class="layui-form-label">æ¥æ¶äºº:<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HReceiveMan" id="HReceiveMan" class="layui-input" value="" style="float:left;width:150px;" disabled> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HReceiveManList" id="HReceiveManList" style="width:40px;"> |
| | |
| | | <div class="layui-form-item"> |
| | | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æé:</label> |
| | | <label class="layui-form-label">æé:<label style="color:red"> * </label></label> |
| | | <div> |
| | | <input type="text" name="HCopyMan" id="HCopyMan" class="layui-input" value="" style="float:left;width:1035px;" disabled> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HCopyManList" id="HCopyManList" style="width:40px;"> |
| | |
| | | </div>--> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">详ç»ç±»å®¹:</label> |
| | | <label class="layui-form-label">详ç»ç±»å®¹:<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <textarea placeholder="请è¾å
¥è¯¦ç»å
容" class="layui-textarea" name="HDescription" id="HDescription" style="width:1080px;"></textarea> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">产åç¼ç :</label> |
| | | <label class="layui-form-label">产åç¼ç :<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HMaterNumber" lay-verify="HMaterNumber" id="HMaterNumber"> |
| | | <input class="layui-input" name="HMaterNumber" lay-verify="HMaterNumber" value="" id="HMaterNumber"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">产ååç§°:</label> |
| | | <label class="layui-form-label">产ååç§°:<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HMaterName" lay-verify="HMaterName" id="HMaterName"> |
| | | <input class="layui-input" name="HMaterName" lay-verify="HMaterName" value="" id="HMaterName"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">è§æ ¼åå·:</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HMaterModel" lay-verify="HMaterModel" id="HMaterModel"> |
| | | <input class="layui-input" name="HMaterModel" lay-verify="HMaterModel" value="" id="HMaterModel"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æ¶åæ°é:</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HQty" lay-verify="HQty" id="HQty" autocomplete="off"> |
| | | <input class="layui-input" name="HQty" lay-verify="HQty" id="HQty" value="" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | <script> |
| | | //è·ååæ° |
| | | var HICMOBillNo = ""; //å·¥åå· |
| | | var HSourceName = ""; //è®¾å¤ |
| | | var HType = ""; //å¼å¸¸ç±»å |
| | | |
| | | |
| | | var edit = function (data) { |
| | | HICMOBillNo = data[0].HICMOBillNo; |
| | | HSourceName = data[0].HSourceName; |
| | | HType = data[0].HType; |
| | | } |
| | | var HBillType = ""; //åæ®ç±»å |
| | | var HMainSourceInterID = ""; //æºå主å
ç |
| | | var HMainSourceEntryID = ""; //æºååå
ç |
| | |
| | | var HMainSourceBillType = ""; //æºåç±»å |
| | | var refSav = ""; //æäº¤ç±»å |
| | | var Qty = ""; |
| | | //è·å页é¢è·³è½¬åæ° //åæ®ç¼è¾ç¶æï¼ 1.æ æºåæ°å¢Â  2.ææºåæ°å¢Â  3.ç¼è¾Â 4.æµè§Â 5.åæ´ |
| | | 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 HEntryID = params[params[2]];//æºååid |
| | | var HSBillType = params[params[3]];//æºåç±»å |
| | | var HBillType = params[params[3]]; |
| | | var HSourceInterID = params[params[4]]; |
| | | var HSourceEntryID = params[params[5]]; |
| | | var HSourceBillNo = params[params[6]]; |
| | | var HSourceBillType = params[params[7]]; |
| | | } |
| | | |
| | | |
| | | |
| | | //var edit = function (data) { |
| | | // HBillType = data[0].HBillType; |
| | |
| | | |
| | | window.HDeptType = 0; |
| | | //#endregion |
| | | //è·å页é¢è·³è½¬åæ° //åæ®ç¼è¾ç¶æï¼ 1.æ æºåæ°å¢Â  2.ææºåæ°å¢Â  3.ç¼è¾Â 4.æµè§Â 5.åæ´ |
| | | 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 HEntryID = params[params[2]];//æºååid |
| | | var HSBillType = params[params[3]];//æºåç±»å |
| | | var HBillType = params[params[3]]; |
| | | var HSourceInterID = params[params[4]]; |
| | | var HSourceEntryID = params[params[5]]; |
| | | var HSourceBillNo = params[params[6]]; |
| | | var HSourceBillType = params[params[7]]; |
| | | } |
| | | |
| | | //åå§å表åæä»¶ |
| | | set_InitFrom(); |
| | |
| | | else if (OperationType == 3) {//ç¼è¾ |
| | | |
| | | set_EditFromGrid(); |
| | | } else if (OperationType == 4) { |
| | | set_AddFNew(); |
| | | var Datetime = Format(new Date(), "yyyy-MM-dd hh:mm:ss"); |
| | | var Person = sessionStorage["HUserName"]; |
| | | //æ¥å·¥å°è·³è½¬é¡µé¢èªå¨çæå
容 |
| | | $("#HDescription").val(generateString(Datetime, Person, HSourceName, HICMOBillNo, HType)); |
| | | } |
| | | else { |
| | | layer.alert("æªç¥æä½ç±»åï¼", { icon: 5 }); |
| | |
| | | } |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //ä¿åæäº¤ |
| | | form.on('submit(Saver)', function (data) { |
| | | |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sMainSub = sMainStr + ';' + sessionStorage["HUserName"] + ';' + refSav; |
| | | if (!AllowLoadData())//æ°æ®éªè¯ |
| | | if (!AllowLoadData(OperationType))//æ°æ®éªè¯ |
| | | { |
| | | return false; |
| | | } |
| | |
| | | }); |
| | | }); |
| | | |
| | | |
| | | |
| | | //æ¥å·¥å¤ªå¼å¸¸è·³è½¬èªå¨çæå
容 |
| | | function generateString(Datetime, Person, HSourceName, HICMOBillNo, HType) { |
| | | // æ¼æ¥å符串 |
| | | var result = Datetime + ', ' + Person + 'å¨' + HSourceName + 'ä¸ç产工å为' + HICMOBillNo + ', åçå¼å¸¸ç±»å为:' + HType; |
| | | return result; |
| | | } |
| | | |
| | | |
| | | //以ä¸ä¸ºlayui模å |
| | | }); |
| | | |
| | | function AllowLoadData() { //é空éªè¯ |
| | | function AllowLoadData(OperationType) { //é空éªè¯ |
| | | var Result = true; |
| | | if ($("#HBillNo").val() == '' || $("#HBillNo").val() == null) { |
| | | layer.msg("åæ®å·ä¸è½ä¸ºç©º!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | |
| | | return Result = false; |
| | | } |
| | | if ($("#HMaterName").val() == '' || $("#HMaterName").val() == null) { |
| | | layer.msg("产ååç§°ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | if ($("#HMaterNumber").val() == '' || $("#HMaterName").val() == null) { |
| | | layer.msg("产åç¼ç ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| New file |
| | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | <head> |
| | | <meta 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.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"> |
| | | <!--å¼ç¨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 type="text/css"> |
| | | .layui-form-label { |
| | | width: 85px; |
| | | } |
| | | |
| | | .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; |
| | | } |
| | | |
| | | .layui-input-block { |
| | | margin-left: 85px; |
| | | min-height: 36px; |
| | | } |
| | | |
| | | .radio-label { |
| | | font-size: 30px; /* è®¾ç½®æ¨æ³è¦çåä½å¤§å° */ |
| | | display: inline-block; |
| | | margin-right: 20px; /* æ ¹æ®éè¦è°æ´é´è· */ |
| | | } |
| | | </style> |
| | | </head> |
| | | <body> |
| | | |
| | | <div id="layout1" class="layui-fluid"> |
| | | <div class="layui-row layui-col-space15"> |
| | | <div class="layui-col-md12"> |
| | | <div class="layui-card"> |
| | | <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" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Exit">éåº</button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-card-body"> |
| | | <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief"> |
| | | <h1 style="text-align:center;"><b>å¼å¸¸ç±»å</b></h1> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab layui-tab-card"> |
| | | <ul class="layui-tab-title"> |
| | | <li class="layui-this">åºæ¬ä¿¡æ¯</li> |
| | | </ul> |
| | | <div class="layui-tab-content" style="height: 700px;"> |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item" style="margin-top:30px"> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline" style="margin-left:200px"> |
| | | <label class="radio-label"> |
| | | <input type="radio" name="faultType" value="ç¯å¢æ
é">ç¯å¢æ
é |
| | | </label> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline" style="margin-left:400px"> |
| | | <label class="radio-label"> |
| | | <input type="radio" name="faultType" value="声é³å¼å¸¸">声é³å¼å¸¸ |
| | | </label> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="margin-top:60px"> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline" style="margin-left:200px"> |
| | | <label class="radio-label"> |
| | | <input type="radio" name="faultType" value="æ§è½å¼å¸¸">æ§è½å¼å¸¸ |
| | | </label> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline" style="margin-left:400px"> |
| | | <label class="radio-label"> |
| | | <input type="radio" name="faultType" value="æ¶²åæ
é">æ¶²åæ
é |
| | | </label> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="margin-top:90px"> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline" style="margin-left:200px"> |
| | | <label class="radio-label"> |
| | | <input type="radio" name="faultType" value="人为æ
é">人为æ
é |
| | | </label> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline" style="margin-left:400px"> |
| | | <label class="radio-label"> |
| | | <input type="radio" name="faultType" value="硬件æ
é">硬件æ
é |
| | | </label> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <script> |
| | | //è·ååæ° |
| | | var HICMOBillNo = ""; //å·¥åå· |
| | | var HSourceName = ""; //è®¾å¤ |
| | | |
| | | |
| | | var edit = function (data) { |
| | | HICMOBillNo = data[0].HICMOBillNo; |
| | | HSourceName = data[0].HSourceName; |
| | | } |
| | | |
| | | 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 |
| | | |
| | | |
| | | //éåº |
| | | form.on('submit(Exit)', function (data) { |
| | | if (linterid == undefined) { |
| | | //å
³éé¡µç¾ |
| | | Pub_Close(2); |
| | | } |
| | | else { |
| | | //å
³éé¡µç¾ |
| | | Pub_Close(1); |
| | | } |
| | | }); |
| | | |
| | | document.querySelectorAll('input[name="faultType"]').forEach(function (radio) { |
| | | radio.addEventListener('change', function () { |
| | | if (this.checked) { // åªæè¢«éä¸çradioæä¼è§¦å |
| | | var value = this.value; // è·åéä¸çradioçå¼ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'å¼å¸¸åé¦å', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: './Sc_Add_MESExecptFeedBackBillList.html?OperationType=4&linterid=&HSouceBillType=', |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (dom, index) { |
| | | var data = []; |
| | | data.push({ |
| | | "HICMOBillNo": HICMOBillNo,//å·¥åå· |
| | | "HSourceName": HSourceName, //è®¾å¤ |
| | | "HType": value //å¼å¸¸ç±»å |
| | | }); |
| | | |
| | | //éè¿ç´¢å¼è·åå°å½åiframeå¼¹åºå± |
| | | var iframe = window['layui-layer-iframe' + index]; |
| | | //è°ç¨iframeå¼¹åºå±å
çæ¹æ³ |
| | | iframe.edit(data); |
| | | }, |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | |
| | | //以ä¸ä¸ºlayui模å |
| | | }); |
| | | </script> |
| | | </body> |
| | | </html> |
| | |
| | | Organization += '<option style="color:blue;" value="' + data[i].ID + '">' + data[i].Name + '</option>'; |
| | | } |
| | | $("#HOrgID").append(Organization); |
| | | if (OperationType == 1 || OperationType == 4) { |
| | | if (OperationType == 1 || OperationType == 4 || OperationType == 3) { |
| | | HOrgIDBar = sessionStorage["OrganizationID"]; |
| | | } |
| | | $("#HOrgID").val(HOrgIDBar); |
| | |
| | | </html> |
| | | <script> |
| | | layui.config({ |
| | | base: '../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | base: '../../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'laydate', 'table', 'element'], function () { |
| | |
| | | <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" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Exit">éåº</button> |
| | | </div> |
| | |
| | | </div> |
| | | <script> |
| | | //è·ååæ° |
| | | var OptionData = []; |
| | | var HBillType = ""; //åæ®ç±»å |
| | | var HSourceInterID = ""; //æºå主å
ç |
| | | var HSourceEntryID = ""; //æºååå
ç |
| | |
| | | //ä¿åæäº¤ |
| | | form.on('submit(Saver)', function (data) { |
| | | if (AllowLoadData(data)) { |
| | | //ç¦ç¨ä¿åæé® |
| | | $('#Saver').addClass("layui-btn-disabled").attr("disabled", true); |
| | | //å¤æç³»ç»åæ°æ¯å¦å¾é |
| | | Xt_AllowLoadData(data); |
| | | } |
| | | }); |
| | | |
| | | //å¤æç³»ç»åæ°æ¯å¦éä¸ |
| | | function Xt_AllowLoadData(data2) { |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Sc_MESBeginWorkBill/Xt_AllowLoadData", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: false, |
| | | data: { "HKey": "Sc_MESBeginWorkBill_SwipeCardStart" }, |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | if (data.Verify == "Y") //å·å¡éªè¯ |
| | | { |
| | | layer.msg("éè¦è¿è¡å·å¡éªè¯!", { time: 1 * 1000, icon: 1 }, function (index) { |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'ICå·å¡', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['50%', '80%'], |
| | | maxmin: true, |
| | | content: '../../ç产管ç/æ¥å·¥å°å·¥åº/å¼å·¥/Sc_SwipeCardStart.html?HSourceInterID=' + HSourceInterID, |
| | | end: function () { |
| | | if (OptionData.length > 0) { |
| | | if (OptionData[0]["data"] == "1") { |
| | | save(data2); |
| | | } else if (OptionData[0]["data"] == "0") { |
| | | layer.msg("å 为æè½ä¸å¹é
,æ æ³ä¿å!") |
| | | } |
| | | OptionData = []; |
| | | } else { |
| | | $('#Saver').removeClass("layui-btn-disabled").attr("disabled", false); |
| | | } |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | else { |
| | | save(data2); |
| | | } |
| | | } |
| | | else { |
| | | layer.alert(data.Message, { icon: 5 }) |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.alert(err, { icon: 5 }) |
| | | } |
| | | }) |
| | | } |
| | | |
| | | function save(data) { |
| | | |
| | | var index = layer.load(); |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sMainSub = sMainStr + ';' + sessionStorage["HUserName"] + ';' + refSav; |
| | |
| | | layer.alert(err, { icon: 5 }) |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | }); |
| | | |
| | | } |
| | | |
| | | //å®¡æ ¸æé®æäº¤ |
| | | form.on('submit(VerIfySaver)', function (data) { |
| | |
| | | $("#HGroupName").val(obj[0].çç»åç§°); |
| | | $("#HGroupID").val(obj[0].HItemID); |
| | | } |
| | | function GetSwipeCardStart(obj) { |
| | | OptionData[0] = obj; |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |
| 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> |
| | | |
| | | </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="HNumber" id="HNumber"> |
| | | </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="HName" id="HName"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¼å§æ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" 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" 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> |
| | | </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="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_HideColumn" id="HideButton"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideButton" 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 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> |
| | | 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 = "Sc_QualityReportBillDay"; |
| | | //ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | var titleData = ["HMaterID", "HProcID", "HGroupID", "HSourceID", "HBadReasonID"]; |
| | | |
| | | |
| | | 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 'get_export': |
| | | get_Export(); |
| | | break; |
| | | //å设置 |
| | | case 'set_HideColumn': get_HideColumn(); |
| | | break; |
| | | case 'set_HideButton': |
| | | var btns = document.getElementsByTagName("button"); //è·åæ¬é¡µæææé®å¯¹è±¡ |
| | | var HBillType = "Sc_QualityReportBillDay"; |
| | | get_HideButton(btns, HBillType, HModName, sessionStorage["HUserName"]); |
| | | break; |
| | | }; |
| | | }); |
| | | //æ¥è¯¢æé® |
| | | form.on('submit(btnSearch)', function (data) { |
| | | get_FastQuery(1); |
| | | }); |
| | | // éç½®æé® |
| | | 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() { |
| | | //åå§åè¡¨æ ¼ |
| | | $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd")); |
| | | $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | set_InitGrid(); |
| | | get_FastQuery(); |
| | | |
| | | } |
| | | //åå§åè¡¨æ ¼ |
| | | function set_InitGrid() { |
| | | option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 'full-50' |
| | | , page: true |
| | | , limits: [50, 500, 5000, 50000] |
| | | , limit: 50 |
| | | , cellMinWidth: 90 |
| | | |
| | | }; |
| | | } |
| | | //æ¥è¯¢ |
| | | function get_Display(sWhere) { |
| | | var index = layer.load(0, { shade: false }); |
| | | var ajaxLoad = layer.load(); |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | | |
| | | url: GetWEBURL() + '/Sc_QualityReportBill/getSc_QualityReportBillDay', |
| | | 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 (data[i].name == 'HInterID' || data[i].name == 'HBillType' || data[i].name == 'hmainid') { |
| | | 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); |
| | | //å·æ°æé®æ¾ç¤º |
| | | var btns = document.getElementsByTagName("button"); //è·åæ¬é¡µæææé®å¯¹è±¡ |
| | | var HBillType = "Sc_QualityReportBillDay"; |
| | | Display_HideButton(btns, HBillType, HModName, sessionStorage["HUserName"]); |
| | | |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | DisPlay_HideColumn(); |
| | | |
| | | layer.close(ajaxLoad); |
| | | if ($("#Comparator").val() == 0 && $("#ColContent").val() == "") { |
| | | ColFilter(); |
| | | } |
| | | |
| | | //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 }); |
| | | } |
| | | }); |
| | | layer.close(index); |
| | | } |
| | | //å¿«éæ¥è¯¢ |
| | | function get_FastQuery() { |
| | | var HBeginDate = $("#HBeginDate").val(); |
| | | var HEndDate = $("#HEndDate").val(); |
| | | var HNumber = $("#HNumber").val(); |
| | | var HName = $("#HName").val(); |
| | | |
| | | sWhere = { |
| | | HBeginDate: HBeginDate |
| | | , HEndDate: HEndDate |
| | | , HNumber: HNumber |
| | | , HName: HName |
| | | } |
| | | get_Display(JSON.stringify(sWhere)); |
| | | sWhere = "";//è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | |
| | | } |
| | | //éç½®å¿«éæ¥è¯¢ |
| | | function set_ClearQuery() { |
| | | $("#HNumber").val(""); |
| | | $("#HName").val(""); |
| | | $("#btnSearch").click(); |
| | | $("#ColContent").val(""); |
| | | $("#ColName").val("0"); |
| | | $("#Comparator").val("0"); |
| | | $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd")); |
| | | $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | form.render('select'); |
| | | |
| | | sWhere = ""; |
| | | } |
| | | //å·æ° |
| | | function get_Refresh() { |
| | | $("#btnSearch").trigger('click'); |
| | | } |
| | | |
| | | //#region 导åºExecel |
| | | function get_Export() { |
| | | var ModRightNameCheck = "Gy_ProjectMoney_ExportExcel"; |
| | | |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/LMES/getReportByModRightNameCheck", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "ModRightNameCheck": ModRightNameCheck, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | table.exportFile(ins.config.id, option.data, "xls"); |
| | | } else { |
| | | layer.alert("å½åæ¨¡åæ²¡æå¯¼åºæé!", { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region è·ååæ° |
| | | 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; |
| | | } |
| | | //#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 |
| | | |
| | | //#region åææ¾ç¤ºä¸ææ¡ |
| | | function ColFilter() { |
| | | var Organization = '<option value="0" selected="selected" ></option>'; |
| | | for (var i = 1; i < option.cols[0].length; i++) { |
| | | if (option.cols[0][i].hide != true) { |
| | | Organization += '<option style="color:blue;" value="' + option.cols[0][i].field + '">' + option.cols[0][i].field + '</option>'; |
| | | } |
| | | } |
| | | $("#ColName").empty(); |
| | | $("#ColName").append(Organization); |
| | | form.render('select'); |
| | | } |
| | | //#endregion |
| | | |
| | | //以䏿¯layui模å |
| | | }); |
| | | </script> |
| | | |
| | | </body> |
| | | </html> |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_QualityReportBill/set_SaveBill', |
| | | type: "GET", |
| | | data: { "HInterID": $("#HInterID").val(), "HBillNo": $("#HBillNo").val(), "HChecker": sessionStorage["HUserName"] }, |
| | | data: { "HInterID": $("#HInterID").val(), "HBillNo": $("#HBillNo").val(), "HChecker": sessionStorage["HUserName"], "HBadReasonHQty": $("HBadReasonHQty").val() }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | $('#set_SaveBill').addClass("layui-btn-disabled").attr("disabled", true); |
| | |
| | | } |
| | | //å¨å表左边添å å¾éæ¡ |
| | | col.push({ type: 'checkbox', fixed: 'left' }); |
| | | col.push({ type: 'numbers', title: 'åºå·' }); |
| | | for (var i = 0; i < data.length; i++) { |
| | | // if (data[i].name == 'HInterID' || data[i].name == 'HBillType' || data[i].name == 'hmainid') { |
| | | if ($.inArray(data[i].name, titleData) > -1) { |
| | |
| | | <input type="text" class="layui-input" value="0" name="HICMOQty" id="HICMOQty" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">ç产ç»ç»</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HPRDOrg" id="HPRDOrg" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HPRDOrgID" id="HPRDOrgID"> |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">订åè·è¸ªå·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HOrderProcNO" id="HOrderProcNO" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label">订åè·è¸ªå·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HOrderProcNO" id="HOrderProcNO" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">ç产ç»ç»</label> |
| | | <label class="layui-form-label">é失æ°é</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HPRDOrg" id="HPRDOrg" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HPRDOrgID" id="HPRDOrgID"> |
| | | <input type="text" class="layui-input" value="0" name="HLossQty" id="HLossQty" onfocus="this.select();"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">æ ¸ç®å·¥åº</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HPayProcID" id="HPayProcID" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" value="0" name="HPayProcID" id="HPayProcID"> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label">æ ¸ç®å·¥åº</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HPayProcID" id="HPayProcID" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" value="0" name="HPayProcID" id="HPayProcID"> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label"></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="checkbox" name="checkboxHLastSubProc" id="checkboxHLastSubProc" title="转ä¸é" lay-skin="primary" lay-filter="checkboxHLastSubProc" checked disabled> |
| | | <input type="hidden" value="true" name="HLastSubProc" id="HLastSubProc"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">åæ ·æ°é</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" value="0" name="HToCheckQty" id="HToCheckQty" onfocus="this.select();"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | "HBackWorkQty": data.è¿å·¥æ°é, |
| | | "HShiftsID": data.HShiftsID, |
| | | "HShiftsName": data.çæ¬¡åç§°, |
| | | "HToCheckQty": data.åæ ·æ°é, |
| | | "HLossQty": data.é失æ°é, |
| | | }); |
| | | if (data.æ¯å¦å®¡æ ¸ == "true") { |
| | | $('#set_CheckBill').addClass("layui-btn-disabled").attr("disabled", true);//å®¡æ ¸æé®ç¦ç¨ |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">ç©´å·</label> |
| | | <div class="layui-input-block" style="margin-left: 95px;"> |
| | | <input type="text" class="layui-input" name="HMouldNum" id="HMouldNum" style="width: 150px;" > |
| | | <input type="text" class="layui-input" name="HMouldNum" id="HMouldNum" style="width: 150px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">ä¸è¯æ°é</label> |
| | | <div class="layui-input-block" style="margin-left: 95px;"> |
| | | <input type="text" class="layui-input" name="HBadCount" id="HBadCount" value="0" style="width: 150px;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-bottom: 15px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">é失æ°é</label> |
| | | <div class="layui-input-block" style="margin-left: 95px;"> |
| | | <input type="text" class="layui-input" name="HLossQty" id="HLossQty" value="0" style="width: 150px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">åæ ·æ°é</label> |
| | | <div class="layui-input-block" style="margin-left: 95px;"> |
| | | <input type="text" class="layui-input" name="HToCheckQty" id="HToCheckQty" value="0" style="width: 150px;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | layer.msg("è¯·æ«æµè½¬å¡ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | if ($("#HQty").val() == 0) { |
| | | layer.msg("æ°éä¸è½ä¸º0ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | if ($("#HQty").val() == 0 && $("#HBadCount").val() == 0) { |
| | | |
| | | layer.msg("ä¸è¯ååæ ¼æ°éä¸è½åæ¶ä¸º0ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | |
| | |
| | | } |
| | | , end: function () { |
| | | var sProcNo = $('#HProcNo').val(); |
| | | var sBillNo = $('#HBarCode').val(); |
| | | var sBillNo = $('#HProcExchBillNo').val(); |
| | | if (sProcNo != "") { |
| | | txtHProcNo_KeyDown(sBillNo, sProcNo); |
| | | } |
| | |
| | | <input type="hidden" name="HUnitID" id="HUnitID" value="0"> |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æè´¨</label> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æ¹æ¬¡å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HMaterTexture" id="HMaterTexture"> |
| | | <input type="text" class="layui-input" name="HBatchNo" id="HBatchNo" value=""> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <!--<div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æè´¨</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HMaterTexture" id="HMaterTexture"> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <!--<div class="layui-col-xs3 layui-inline"> |
| | |
| | | //夿æä½ç±»å |
| | | if (OperationType == 1 ) {//æ æºåæ°å¢ |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | url: GetWEBURL() + "/Web/GetMAXNumPDA", |
| | | type: "GET", |
| | | data: { "HBillType": '3772' }, |
| | | success: function (d) { |
| | |
| | | layer.alert(result.Message, { icon: 5 }); |
| | | } else { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | url: GetWEBURL() + "/Web/GetMAXNumPDA", |
| | | type: "GET", |
| | | data: { "HBillType": '3772' }, |
| | | success: function (d) { |
| | |
| | | , "HMaterModel": data.ææè§æ ¼ |
| | | , "HWidth": data.å¹
宽 |
| | | , "HWeight": data.å
é |
| | | , "HBatchNo": data.æ¹å· |
| | | |
| | | , "HAuxQty": data.è¾
æ°é |
| | | , "HAuxUnit": data.HAuxUnit |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æ¹å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HBatchNo" id="HBatchNo" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HBatchNo" id="HBatchNo" style=""> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |