| | |
| | | <input type="text" class="layui-input" name="HDate" id="HDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label"><span style="color:red;">*</span>æ¥æ¶æ°é</label> |
| | | <label class="layui-form-label">ä¾åºå</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HQty" id="HQty"> |
| | | <input type="text" class="layui-input" name="HSupName" id="HSupName" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <input type="hidden" name="HSupID" id="HSupID"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="HSupID-BT" id="HSupID-BT" style="width: 40px; padding: 0 10px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label"><span style="color:red;">*</span>çäº§èµæº</label> |
| | | <label class="layui-form-label"><span style="color:red;">*</span>ååºäºº</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HSourceName" id="HSourceName" onmouseover="this.title=this.value" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <input type="hidden" name="HSourceID" id="HSourceID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="get_checkSource" id="get_checkSource" style="width: 40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | <input type="text" class="layui-input" name="HEmpName" id="HEmpName" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <button type="button" class="layui-btn" lay-submit="" lay-filter="HEmployeeID-BT" id="HEmployeeID-BT" style="width: 40px; padding: 0 10px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label"><span style="color:red;">*</span>ç产çç»</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HGroupName" id="HGroupName" onmouseover="this.title=this.value" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <input type="hidden" name="HGroupID" id="HGroupID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="get_checkGroup" id="get_checkGroup" style="width: 40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label"><span style="color:red;">*</span>æ¥æ¶äºº</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HEmpName" id="HEmpName" onmouseover="this.title=this.value" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <input type="hidden" name="HEmpID" id="HEmpID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="get_checkEmp" id="get_checkEmp" style="width: 40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </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="HQty" id="HQty"> |
| | | </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="HWWWorkOrderBillNo" id="HWWWorkOrderBillNo"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | return; |
| | | } |
| | | if ($("#HQty").val() == "") { |
| | | layer.msg("请å
å¡«åæ¥æ¶æ°éï¼", { icon: 7 }); |
| | | layer.msg("请å
å¡«åååºæ°éï¼", { icon: 7 }); |
| | | $("#HBarCode").val(""); |
| | | return; |
| | | } |
| | | if ($("#HSourceID").val() == 0) { |
| | | layer.msg("è¯·éæ©çäº§èµæºï¼", { icon: 7 }); |
| | | $("#HBarCode").val(""); |
| | | return; |
| | | } |
| | | if ($("#HGroupID").val() == 0) { |
| | | layer.msg("è¯·éæ©çç»ï¼", { icon: 7 }); |
| | | $("#HBarCode").val(""); |
| | | return; |
| | | } |
| | | if ($("#HEmpID").val() == 0) { |
| | | layer.msg("è¯·éæ©æ¥æ¶äººï¼", { icon: 7 }); |
| | | if ($("#HEmpID").val() == "") { |
| | | layer.msg("è¯·éæ©ååºäººï¼", { icon: 7 }); |
| | | $("#HBarCode").val(""); |
| | | return; |
| | | } |
| | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Cj_StationInBill/AddBill", |
| | | url: GetWEBURL() + "/Cj_StationEntrustInBill/AddBill", |
| | | async: true, |
| | | data: { "oMain": oMain }, |
| | | dataType: "json", |
| | |
| | | if (result.count == 1) { |
| | | var data = result.data[0]; |
| | | $("#HICMOInterID").val(data.hicmointerid); |
| | | $("#lngICMOEntryID").val(data.lngICMOEntryID); |
| | | $("#HICMOBillNo").val(data.ä»»å¡åå·); |
| | | $("#HMaterID").val(data.HMaterID); |
| | | $("#HMaterName").val(data.产å); |
| | | $("#HMaterNumber").val(data.产å代ç ); |
| | | $("#HMaterModel").val(data.è§æ ¼åå·); |
| | | $("#HPieceQty").val(data.æµè½¬å¡æ°é); |
| | | $("#HPlanQty").val(data.æµè½¬å¡æ°é); |
| | | $("#HPieceQty").val(data.ç产æ°é); |
| | | $("#HPlanQty").val(data.ç产æ°é); |
| | | $("#HProcExchBillNo").val(data.åæ®å·); |
| | | $("#HICMOQty").val(data.ä»»å¡åæ°é); |
| | | $("#lngBillKey").val(data.hmainid); |
| | | $("#HOrderProcNO").val(data.订åè·è¸ªå·); |
| | | $("#lngBillSubKey").val(data.hsubid); |
| | | $("#HStationInTime").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); |
| | | $("#HSourceID").val(data.HSourceID); |
| | | $("#HSource").val(data.çäº§èµæº); |
| | | $("#HGroupID").val(data.HGroupID); |
| | | $("#HGroup").val(data.çç»); |
| | | $("#HDeptID").val(sessionStorage["HDeptID"]); |
| | | $("#HDept").val(sessionStorage["HDept"]); |
| | | layer.close(index); |
| | | $("#HProcNo").attr("readonly", "readonly"); |
| | | $("#HProcNo").css("background-color", "#efefef4d"); |
| | |
| | | function txtHProcNo_KeyDown(sBillNo, sProcNo) { |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Cj_StationInBill/txtHProcNo_KeyDown", |
| | | url: GetWEBURL() + "/Cj_StationEntrustInBill/txtHProcNo_KeyDown", |
| | | type: "GET", |
| | | data: { "sBillNo": sBillNo, "sProcNo": sProcNo }, |
| | | success: function (result) { |
| | |
| | | |
| | | //#endregion |
| | | |
| | | //éæ©ä¾åºå |
| | | form.on('submit(HSupID-BT)', function () { |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ä¾åºåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_SupplierList.html', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //以ä¸ä¸ºlayui模å |
| | | }); |
| | | |
| | | //è¿åä¾åºå |
| | | function GetHSupValue(obj) { |
| | | $("#HSupName").val(obj[0].HName); |
| | | $("#HSupID").val(obj[0].HItemID); |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |