| | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | <head> |
| | | <meta charset="utf-8" /> |
| | | <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/zgqCustom/zgqCustom.js"></script> |
| | |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <!--<script src="../../../layuiadmin/PubCustom.js"></script>--> |
| | | <script src="../../CreateControl.js"></script> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid" style="padding: 0;"> |
| | |
| | | <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="HBarCodeSN" lay-verify="HBarCodeSN" placeholder="请é®å
¥åå车" id="HBarCodeSN" style="width: 500px;"> |
| | | <input type="text" class="layui-input" name="HBarCodeSN" lay-verify="HBarCodeSN" autocomplete="off" placeholder="请é®å
¥åå车" id="HBarCodeSN" style="width: 500px;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å·¥åºæµè½¬å¡</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HProcExchBillNo" lay-verify="HProcExchBillNo" id="HProcExchBillNo" value="" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HProcExchBillNo" lay-verify="HProcExchBillNo" id="HProcExchBillNo" value="" style="background-color:#efefef4d;"> |
| | | <input type="hidden" class="layui-input" name="HProcExchInterID" lay-verify="HProcExchInterID" id="HProcExchInterID" value="0"> |
| | | <input type="hidden" class="layui-input" name="HProcExchEntryID" lay-verify="HProcExchEntryID" id="HProcExchEntryID" value="0"> |
| | | </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" lay-verify="HMaterModel" name="HMaterModel" id="HMaterModel" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" lay-verify="HQualifiedCount" name="HQualifiedCount" id="HQualifiedCount" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æ»ä¸è¯æ°</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HBillNo" lay-verify="HBillNo" id="HBillNo" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HInterID" id="HInterID" lay-verify="HInterID"> |
| | | <input type="text" class="layui-input" name="HBadCount" lay-verify="HBadCount" id="HBadCount" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æµè½¬å¡:</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HBardCodeProcExchBillNo" lay-verify="HBardCodeProcExchBillNo" id="HBardCodeProcExchBillNo"> |
| | | <input type="text" class="layui-input" name="HBardCodeProcExchBillNo" autocomplete="off" lay-verify="HBardCodeProcExchBillNo" id="HBardCodeProcExchBillNo"> |
| | | </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="HBardCodeMater" lay-verify="HBardCodeMater" id="HBardCodeMater"> |
| | | <input type="text" class="layui-input" name="HBardCodeMater" autocomplete="off" lay-verify="HBardCodeMater" id="HBardCodeMater"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | if (!HBarCode) { |
| | | layer.msg("æ¡å½¢ç ä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } else { |
| | | if (HBarCode.length != 29) { |
| | | layer.alert("åä»¶æ¡ç é¿åº¦ä¸ä¸º29ä½!", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | |
| | | if (HBarCode.match(/[^\x00-\xff]/g) != null) { |
| | | layer.alert("å¿
é¡»æ¯åè§å符!", { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | for (var i = 0; i < option.data.length; i++) { |
| | |
| | | function set_ClearBill() { |
| | | //è¿å
¥é¡µé¢é»è®¤å
æ 卿µè½¬å¡ä¸ |
| | | $("#HBardCodeProcExchBillNo").focus(); |
| | | createBillNo(); |
| | | |
| | | get_Display(); |
| | | get_CriticalPartsList();//å
³é®ä»¶æ¸
å ä¸è¯è®°å½ åæ ¼è®°å½ |
| | | |
| | |
| | | |
| | | // çæåæ®å· |
| | | function createBillNo() { |
| | | var sql = "select * from Sc_StationOutBillMain where HProcExchBillNo='" + $("#HProcExchBillNo").val() + "' and HProcID=" + $("#HProcID").val() |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | url: GetWEBURL() + "/Gy_SOPBillList/WindowPrintList", |
| | | async: false, |
| | | type: "GET", |
| | | data: { "HBillType": '3791' }, |
| | | success: function (d) { |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | data: { "sWhere": sql }, |
| | | success: function (data) { |
| | | if (data.data.length > 0) { |
| | | $("#HInterID").val(data.data[0].HInterID); |
| | | $("#HBillNo").val(data.data[0].HBillNo); |
| | | } else { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | async: false, |
| | | type: "GET", |
| | | data: { "HBillType": '3791' }, |
| | | success: function (d) { |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | |
| | | option= { |
| | | elem: '#mainTable2' |
| | | //, toolbar: '#toolbarDemo' |
| | | , async: true |
| | | , page: false |
| | | //, totalRow: true |
| | | , cellMinWidth: 120 |
| | | , data: [] |
| | | , height: 185 |
| | | , limit: Number.MAX_VALUE |
| | | , cols: [[ |
| | | { type: 'numbers', title: 'åºå·' } |
| | | , { field: 'æ¥æ', title: 'æ¥æ' } |
| | |
| | | option2 = { |
| | | elem: '#mainTable3' |
| | | //, toolbar: '#toolbarDemo' |
| | | , async: true |
| | | , page: false |
| | | //, totalRow: true |
| | | , cellMinWidth: 120 |
| | | , limit: Number.MAX_VALUE |
| | | , data: [] |
| | | , height: 325 |
| | | , cols: [[ |
| | |
| | | option3 = { |
| | | elem: '#mainTable' |
| | | //, toolbar: '#toolbarDemo' |
| | | , async: true |
| | | , page: false |
| | | //, totalRow: true |
| | | , cellMinWidth: 120 |
| | | , limit: Number.MAX_VALUE |
| | | , data: [] |
| | | , height: 370 |
| | | , cols: [[ |
| | |
| | | if (data1.count == 1) { |
| | | option2.data = data1.data; |
| | | table.render(option2); |
| | | $("#HBadCount").val(data1.data.length); |
| | | layer.close(ajaxLoad); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | |
| | | if (data1.count == 1) { |
| | | option3.data = data1.data; |
| | | table.render(option3); |
| | | $("#HQualifiedCount").val(data1.data.length); |
| | | layer.close(ajaxLoad); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | |
| | | } |
| | | else { |
| | | layer.close(indexs); |
| | | layer.msg(data1.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | layer.msg(data1.Message); |
| | | } |
| | | //å
æ 跳转å°SNæ¡ç ææ¬æ¡ä¸ |
| | | //$("#HBarCodeSN").focus(); |
| | | $("#HBarCodeSN").val(""); |
| | | }, |
| | | error: function (err) { |
| | |
| | | $("#HPieceQty").val(data1.data[0]["HPieceQty"]); |
| | | $("#HICMOQty").val(data1.data[0]["HICMOQty"]); |
| | | |
| | | createBillNo(); |
| | | |
| | | option.data = data1.data; |
| | | table.render(option) |
| | | } |
| | | else { |
| | | else if (data1.count == 2) { |
| | | layer.close(index); |
| | | |
| | | $("#HBardCodeProcExchBillNo").attr("readonly", "readonly");//æµè½¬å¡åªè¯» |
| | | $("#HBardCodeProcExchBillNo").css("background-color", "#efefef4d");//æµè½¬å¡ç°è² |
| | | //å
æ 跳转å°SNæ¡ç ææ¬æ¡ä¸ |
| | | $("#HBarCodeSN").focus(); |
| | | |
| | | $("#HMaterNumber").val(data1.data[0]["HMainMaterNumber"]); |
| | | $("#HMaterID").val(data1.data[0]["HMainMaterID"]); |
| | | $("#HMaterName").val(data1.data[0]["HMainMaterName"]); |
| | | $("#HMaterModel").val(data1.data[0]["HMainModel"]); |
| | | $("#HProcExchInterID").val(data1.data[0]["HProcExchInterID"]); |
| | | $("#HProcExchEntryID").val(data1.data[0]["HProcExchEntryID"]); |
| | | $("#HProcExchBillNo").val(data1.data[0]["HProcExchBillNo"]); |
| | | $("#HICMOBillNo").val(data1.data[0]["HICMOBillNo"]); |
| | | $("#HICMOInterID").val(data1.data[0]["HICMOInterID"]); |
| | | $("#HICMOEntryID").val(data1.data[0]["HICMOEntryID"]); |
| | | $("#HProcNo").val(data1.data[0]["HProcNo"]); |
| | | $("#HPieceQty").val(data1.data[0]["HPieceQty"]); |
| | | $("#HICMOQty").val(data1.data[0]["HICMOQty"]); |
| | | |
| | | createBillNo(); |
| | | } else { |
| | | layer.close(index); |
| | | layer.msg(data1.Message, { 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: "温馨æç¤º" }); |
| | | layer.msg(data.Message); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | |
| | | |
| | | //ä¸è¯æ±æ¥ |
| | | function BadReport() { |
| | | var HBarCode_P = $("#HBarCode_P").val(); |
| | | var len = option3.data.length; |
| | | |
| | | if (HBarCode_P != "") { |
| | | if (len != 0) { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | |
| | | //$('#btnSave').addClass("layui-btn-disabled").attr("disabled", true); |
| | | layer.close(index); |
| | | layer.msg("æäº¤æå"); |
| | | //å
æ 跳转å°SNæ¡ç ææ¬æ¡ä¸ |
| | | $("#HBarCodeSN").focus(); |
| | | //ä¿åå°ä¸´æ¶è¡¨ |
| | | get_AddBomTempList(); |
| | | var HBardCodeProcExchBillNo = $("#HBardCodeProcExchBillNo").val(); |