| | |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script type="text/javascript" src="../../../layuiadmin/lib/extend/echarts.min.js"></script> |
| | | <style> |
| | | .tr1-1{ |
| | | /* margin-left: 3%; |
| | | margin-top: 4%;*/ |
| | | height: 360px; |
| | | /*background-color: #99f6a733;*/ |
| | | border: 1px solid rgb(0 0 0 / 10%); |
| | | /*width: 95%;*/ |
| | | } |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid" style="padding: 0;"> |
| | | <div class="layui-card" style="padding: 2px;background-color: #efefef;"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="formData" style="background-color:white;"> |
| | | <!--<div style="padding: 10px;"> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnSave" id="btnSave">ä¿å</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnSave" id="btnSave">éåº</button> |
| | | </div>--> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill" style="width: 49%; float: left; height: 400px;background-color:white;"> |
| | | <div style="padding: 2px; "> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnAdd" id="btnSave">æå°</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnAdd" id="btnSave">æ°å¢</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnCancel" id="btnEdit">éåº</button> |
| | | </div> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill" style="width: 49.5%; float: left; background-color: white;height:430px;"> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | | <li lay-id="1" style="padding:1px;" class="layui-this">å½åå·¥å</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <!--åºæ¬ä¿¡æ¯--> |
| | | <!--å½åå·¥å--> |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item"> |
| | | <div> |
| | | <div class="layui-row"> |
| | | <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="HICMOBillNo" name="HICMOBillNo" id="HICMOBillNo" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HICMOInterID" id="HICMOInterID" lay-verify="HICMOInterID" value="0"> |
| | | <input type="hidden" name="HICMOEntryID" id="HICMOEntryID" lay-verify="HICMOEntryID" value="0"> |
| | | </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" lay-verify="HProcExchBillNo" name="HProcExchBillNo" id="HProcExchBillNo" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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="HMaterNumber" name="HMaterNumber" id="HMaterNumber" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HMaterID" id="HMaterID" lay-verify="HMaterID" value="0"> |
| | | </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" lay-verify="HMaterName" name="HMaterName" id="HMaterName" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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> |
| | | </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" lay-verify="HUnitName" name="HUnitName" id="HUnitName" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HUnitID" id="HUnitID" lay-verify="HUnitID" value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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="HSourceName" name="HSourceName" id="HSourceName" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HSourceID" id="HSourceID" lay-verify="HSourceID" value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width:180px;"> |
| | | <input type="date" class="layui-input" lay-verify="HDate" name="HDate" id="HDate" style="padding-left: 80px;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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="HWorkStationName" name="HWorkStationName" id="HWorkStationName" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HWorkStationID" id="HWorkStationID" lay-verify="HWorkStationID" value="0"> |
| | | </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" lay-verify="HProName" name="HProName" id="HProName" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HProcess" id="HProcess" lay-verify="HProcess" value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ç产ç»ç»<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 120px;width:501px;"> |
| | | <input type="text" class="layui-input" lay-verify="HOrgName" name="HOrgName" id="HOrgName" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HProdOrgID" id="HProdOrgID" lay-verify="HProdOrgID" value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ç»´ä¿®é¨é¨</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;width:501px;"> |
| | | <input type="text" class="layui-input" lay-verify="HDeptName" name="HDeptName" id="HDeptName" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HDeptID" id="HDeptID" lay-verify="HDeptID" value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;"></label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 501px;"> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="ChangeMater" id="ChangeMater"> æ¢ é
ä»¶</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab" style="width: 50%; float: left; background-color: white; margin-left: 0.5%; height: 430px;"> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | | <li lay-id="1" style="padding:1px;" class="layui-this">ééä¿¡æ¯</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"> |
| | | <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="HBarCode" lay-verify="HBarCode" placeholder="请é®å
¥åå车" id="HBarCode" style="width: 500px;"> |
| | | <div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æ¡å½¢ç </label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 501px;"> |
| | | <input type="text" class="layui-input" lay-verify="HBarCode" name="HBarCode" id="HBarCode"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">å·¥åº</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HProcName" lay-verify="HProcName" id="HProcName" style="background-color: #efefef4d; width: 60%; display: inline-block;" readonly> |
| | | <input type="hidden" name="HProcID" id="HProcID" lay-verify="HProcID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHProc" id="btnHProc" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <div class="layui-row"> |
| | | <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="hidden" name="HEntryID" id="HEntryID" lay-verify="HEntryID" value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">维修人</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="HEmpName" name="HEmpName" id="HEmpName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HEmpID" id="HEmpID" lay-verify="HEmpID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHEmp" id="btnSearchHEmp" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </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="HProcNo" lay-verify="HProcNo" id="HProcNo"> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ä¸è¯åå </label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="HBadReasonName" name="HBadReasonName" id="HBadReasonName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HBadReasonID" id="HBadReasonID" lay-verify="HBadReasonID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHBadReason" id="btnSearchHBadReason" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ä¸è¯ç±»å</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HBadTypeName" lay-verify="HBadTypeName" id="HBadTypeName" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HBadTypeID" id="HBadTypeID" lay-verify="HBadTypeID" value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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="HMaterNumber" name="HMaterNumber" id="HMaterNumber" style="background-color:#efefef4d;" readonly> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ä¸è¯åæ</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="HBadResultName" name="HBadResultName" id="HBadResultName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HBadResultID" id="HBadResultID" lay-verify="HBadResultID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHBadResult" id="btnSearchHBadResult" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="width:300px;"> |
| | | <label class="layui-form-label" style="width: 85px;">ç»´ä¿®ç»æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 180px;"> |
| | | <select name="HRepairResult" id="HRepairResult" lay-filter="HRepairResult" style="width: 180px;"> |
| | | <option style="color:blue;" selected="selected" value="OK">OK</option> |
| | | <option style="color:blue;" value="NG">NG</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">产ååç§°</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" lay-verify="HMaterName" name="HMaterName" id="HMaterName" style="background-color:#efefef4d;" readonly> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">产åMAC</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" lay-verify="HProdMac" name="HProdMac" id="HProdMac" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">产åSN</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" lay-verify="HMaterSN" name="HMaterSN" id="HMaterSN" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">夿³¨</label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 501px;"> |
| | | <input type="text" class="layui-input" lay-verify="HRemark" name="HRemark" id="HRemark"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div> |
| | | <input type="hidden" name="HCreator" id="HCreator" lay-verify="HCreator"> |
| | | <input type="hidden" name="HCreateDate" id="HCreateDate" lay-verify="HCreateDate"> |
| | | |
| | | <input type="hidden" name="HSourceInterID" id="HSourceInterID" lay-verify="HSourceInterID" value="0"> |
| | | <input type="hidden" name="HSourceEntryID" id="HSourceEntryID" lay-verify="HSourceEntryID" value="0"> |
| | | <input type="hidden" name="HSourceBillNo" id="HSourceBillNo" lay-verify="HSourceBillNo" value=""> |
| | | <input type="hidden" name="HSourceBillType" id="HSourceBillType" lay-verify="HSourceBillType" value=""> |
| | | <input type="hidden" name="HRelationQty" id="HRelationQty" lay-verify="HRelationQty" value="0"> |
| | | <input type="hidden" name="HRelationMoney" id="HRelationMoney" lay-verify="HRelationMoney" value="0"> |
| | | |
| | | <input type="hidden" name="HMacAddr" id="HMacAddr" lay-verify="HMacAddr"> |
| | | <input type="hidden" name="HIPAddr" id="HIPAddr" lay-verify="HIPAddr"> |
| | | |
| | | <!--è®°å½å页é¢(æ´æ¢é
ä»¶)å表çä¸´æ¶æ°æ®--> |
| | | <input type="hidden" name="subMaterList_Temp" id="subMaterList_Temp" lay-verify="subMaterList_Temp"> |
| | | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px; padding: 9px 18px;">å½å车é´</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="HDeptName" name="HDeptName" id="HDeptName" style="background-color: #efefef4d; width: 60%; display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" lay-verify="HDeptID" name="HDeptID" id="HDeptID"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHDept" id="btnHDept" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px; padding: 9px 18px;">ç产çç»</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HGroupName" id="HGroupName" lay-verify="HGroupName" value="" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HGroupID" lay-verify="HGroupID" id="HGroupID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHGroup" id="btnHGroup" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px; padding: 9px 18px;">çäº§èµæº</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HSourceName" id="HSourceName" lay-verify="HSourceName" value="" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HSourceID" lay-verify="HSourceID" id="HSourceID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHSource" id="btnHSource" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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="hidden" class="layui-input" name="HProcExchInterID" lay-verify="HProcExchInterID" id="HProcExchInterID" value="0"> |
| | | </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="HICMOBillNo" lay-verify="HICMOBillNo" id="HICMOBillNo" value="" style="background-color:#efefef4d;"> |
| | | <input type="hidden" class="layui-input" name="HICMOInterID" lay-verify="HICMOInterID" id="HICMOInterID" value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">产åSN</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HBarCode" lay-verify="HBarCode" id="HBarCode" value="" style="background-color:#efefef4d;display: inline-block;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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="HMateMAC" name="HMateMAC" id="HMateMAC" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">è´¨æ£å</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="HEmpName" name="HEmpName" id="HEmpName" value="" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" lay-verify="HEmpID" name="HEmpID" id="HEmpID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHEmp" id="btnHEmp" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;"></label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 501px;"> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="NGSave" id="NGSave">NGä¿å</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="OKSave" id="OKSave">OKä¿å</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill" style="width: 39%; float: left; height: 100px; background-color: white;"> |
| | | <div class="layui-tab-content" style="padding-top: 10px; padding-left: 40%;"> |
| | | <!--åºæ¬ä¿¡æ¯--> |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row"> |
| | | <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> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab" style="width: 49.5%; float: left; background-color: white;margin-top:0.5%;"> |
| | | <div class="layui-row"> |
| | | <div class="tr1-1" id="mychart1"> </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill" style="width: 10%; float: left; height: 100px; background-color: white;"> |
| | | <div class="layui-tab-content" style="padding-top: 10px;"> |
| | | <!--åºæ¬ä¿¡æ¯--> |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item"> |
| | | <div style="padding: 10px;"> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnSave" id="btnSave">éåº</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab layui-tab-card" style="width: 49%; float: left;height:300px;"> |
| | | <div class="layui-tab" style="width: 50%; float: left; margin-left: 0.5%; margin-top: 0.5%; background-color: white; "> |
| | | <ul class="layui-tab-title"> |
| | | <li class="layui-this">å
³é®ä»¶æ¸
å</li> |
| | | <li class="layui-this">è¿ä¿®è®°å½</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | | <!--å
³é®ä»¶æ¸
å--> |
| | | <table class="layui-hide" id="mainTable2" lay-filter="mainTable2"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab layui-tab-card" style="width: 49%; float: left;"> |
| | | <ul class="layui-tab-title"> |
| | | <li class="layui-this">ä¸è¯è®°å½</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | | <!--ä¸è¯è®°å½--> |
| | | <table class="layui-hide" id="mainTable2" lay-filter="mainTable2"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab layui-tab-card" style="width: 49%; float: left;"> |
| | | <ul class="layui-tab-title"> |
| | | <li class="layui-this">åæ ¼è®°å½</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | | <!--åæ ¼è®°å½--> |
| | | <!--è¿ä¿®è®°å½--> |
| | | <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <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-CopyLine"><i class="layui-icon layui-icon-form"></i>å¤å¶ä¸è¡</button> |
| | | </div> |
| | | </script> |
| | | <script type="text/html" id="toolbarDemo2"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine2"><i class="layui-icon layui-icon-form"></i>å¢å ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-CopyLine2"><i class="layui-icon layui-icon-form"></i>å¤å¶ä¸è¡</button> |
| | | </div> |
| | | </script> |
| | | <input type="hidden" id="HProdOrgID" name="HProdOrgID" value="0" /> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </body> |
| | | </html> |
| | | <!--å表表ï¼å é¤--> |
| | | <script type="text/html" id="barDemo"> |
| | | <!--<a class="layui-btn layui-btn-xs" lay-event="edit">ç¼è¾</a>--> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">å é¤</a> |
| | | </script> |
| | | <script> |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'laydate', 'table', 'element'], function () { |
| | | //#region å
Œ
±åé |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element |
| | | , laypage = layui.laypage |
| | | , laydate = layui.laydate |
| | | , tree = layui.tree |
| | | var titleData = ["HInterID", "HEntryID", "HBadReasonID", "HSourceInterID","HSourceEntryID"];//å表ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'laydate', 'table', 'element'], function () { |
| | | //#endregion |
| | | |
| | | //#region å
Œ
±åé |
| | | |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element; |
| | | |
| | | //å®ä¹å
¨å±åé |
| | | |
| | | var HModName = "Cj_CollectionOfSingleProductDefects"; |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | | |
| | | var params = getUrlVars(); |
| | | var OperationType = params[params[0]]; //ä»åæ°ä¸è·å æ°æ®ç±»å 1æ·»å ä¿å 2å¤å¶ 3 ç¼è¾ 4æ·»å åå·¥èºè·¯çº¿ |
| | | var linterid = params[params[1]]; //ä»åæ°ä¸è·å åæ®å
ç |
| | | |
| | | //å¶å人 |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | $("#hmakedate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | |
| | | //夿æ¯å¦æ°å¢ |
| | | if (linterid == null || linterid == 0) { |
| | | //$("#HIDDEN").hide(); |
| | | OperationType = 1; |
| | | |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | data: { "HBillType": '3791' }, |
| | | success: function (d) { |
| | | //console.log(d.data); |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | $("#HBillNo_bak").val(d.data[0].HBillNo); |
| | | } |
| | | }); |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | | //åå§åçé¢ |
| | | set_ClearBill(); |
| | | } else if (OperationType == 2) { |
| | | //ç¦ç¨ç»ç»é项 |
| | | //$("#HOrgID").attr("disabled", true); |
| | | RoadBillMain(linterid); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HBillType": '3717' }, |
| | | success: function (d) { |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | $("#HBillNo_bak").val(d.data[0].HBillNo); |
| | | //#endregion |
| | | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | |
| | | //æ¡å½¢ç åè½¦æ¹æ³ |
| | | $('#HBarCode').on('keydown', function (event) { |
| | | var HBarCode = $('#HBarCode').val(); |
| | | if (event.keyCode == 13) { |
| | | if (!HBarCode) { |
| | | layer.msg("æ¡å½¢ç ä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } |
| | | txtHBarCode_KeyDown(HBarCode); |
| | | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | | //#endregion |
| | | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | |
| | | //æ¡å½¢ç åè½¦æ¹æ³ |
| | | $('#HBarCodeSN').on('keydown', function (event) { |
| | | var HBarCode = $('#HBarCodeSN').val(); |
| | | if (event.keyCode == 13) { |
| | | if (!HBarCode) { |
| | | layer.msg("æ¡å½¢ç ä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } |
| | | txtHBarCode_KeyDown(HBarCode); |
| | | } |
| | | }); |
| | | |
| | | //éæ©ä¸è¯åå |
| | | form.on('submit(btnHBadReason)', function () { |
| | | btnHBadReason(); |
| | | }); |
| | | |
| | | //éæ©è´¨æ£å |
| | | form.on('submit(btnHEmp)', function () { |
| | | btnHEmp(); |
| | | }); |
| | | |
| | | //éæ©çäº§èµæº |
| | | form.on('submit(btnHSource)', function () { |
| | | btnHSource(); |
| | | }); |
| | | |
| | | //éæ©ç产çç»æé® |
| | | form.on('submit(btnHGroup)', function () { |
| | | btnHGroup(); |
| | | }); |
| | | |
| | | //æ°å¢ |
| | | form.on('submit(set_AddNew)', function () { |
| | | layer.confirm('æ°å¢å页颿°æ®å°æ¶å¤±ï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | location.replace('Cj_CollectionOfSingleProductDefects.html?OperationType=1&linterid=0'); |
| | | //éæ©ä¸è¯åå æé® |
| | | form.on('submit(btnSearchHBadReason)', function () { |
| | | get_checkSearchHBadReason(); |
| | | }); |
| | | }); |
| | | |
| | | //ä¿åæäº¤ |
| | | form.on('submit(btnSave_BL)', function (data) {//æäº¤ |
| | | if (AllowLoadData(data)) { |
| | | set_AddNew(data,"ä¸è¯"); |
| | | // æ¢é
ä»¶ |
| | | form.on('submit(ChangeMater)', function (data) { |
| | | get_checkSearchChangeMater(); |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢ææçæ¹æ³ |
| | | //åå§åçé¢ |
| | | function set_ClearBill() { |
| | | //åå§ååæ® |
| | | createBillNo(); |
| | | var mychart1 = echarts.init(document.getElementById('mychart1')); |
| | | |
| | | get_Histogram1(mychart1);//æ±ç¶å¾1 |
| | | get_UsreList(); |
| | | get_Display(); |
| | | } |
| | | }); |
| | | |
| | | form.on('submit(btnSave_BF)', function (data) {//æäº¤ |
| | | if (AllowLoadData(data)) { |
| | | set_AddNew(data,"æ¥åº"); |
| | | // çæåæ®å· |
| | | function createBillNo() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | async: false, |
| | | type: "GET", |
| | | data: { "HBillType": '3748' }, |
| | | success: function (d) { |
| | | //console.log(d.data); |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | //éåº |
| | | form.on('submit(btnEdit)', function (data) { |
| | | if (params[1] != null) { |
| | | Pub_Close(1); |
| | | } else if (params[1] == null) { |
| | | Pub_Close(2); |
| | | //æ±ç¶å¾1 |
| | | function get_Histogram1(mychart1) { |
| | | |
| | | //ç产è´è· |
| | | var optionData = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; |
| | | |
| | | //$.ajax({ |
| | | // url: GetWEBURL() + "/loaddata/KB_scfh", |
| | | // dataType: "JSON", |
| | | // async: false,//使ç¨åæ¥çæ¹å¼,trueä¸ºå¼æ¥æ¹å¼ |
| | | // type: "Get", |
| | | // data: { "LineCode": "1" }, |
| | | // success: function (res) { |
| | | |
| | | // for (var i = 0; i < res.data[0].length; i++) { |
| | | // if (res.data[0][i].HProcID == 191) {//缸å |
| | | // optionData[0] = (res.data[0][i].HQty / 1000).toFixed(0); |
| | | // } else if (res.data[0][i].HProcID == 193) {//çå¹²å®å |
| | | // optionData[1] = (res.data[0][i].HQty / 1000).toFixed(0); |
| | | // } |
| | | // else if (res.data[0][i].HProcID == 194) {//䏿µå®å |
| | | // optionData[2] = (res.data[0][i].HQty / 1000).toFixed(0); |
| | | // } |
| | | // else if (res.data[0][i].HProcID == 198) {//è²å¯ç«å
|
| | | // optionData[3] = (res.data[0][i].HQty / 1000).toFixed(0); |
| | | // } |
| | | // else if (res.data[0][i].HProcID == 204) {//é¢ç«åª |
| | | // optionData[4] = (res.data[0][i].HQty / 1000).toFixed(0); |
| | | // } |
| | | // else if (res.data[0][i].HProcID == 197) {//è¡¥å· |
| | | // optionData[5] = (res.data[0][i].HQty / 1000).toFixed(0); |
| | | // } |
| | | // else if (res.data[0][i].HProcID == 201) {//å°æ¯å° |
| | | // optionData[6] = (res.data[0][i].HQty / 1000).toFixed(0); |
| | | // } |
| | | // else if (res.data[0][i].HProcID == 200) {//æå¹
å®å |
| | | // optionData[7] = (res.data[0][i].HQty / 1000).toFixed(0); |
| | | // } |
| | | // else if (res.data[0][i].HProcID == 206) {//ççº¿ç« |
| | | // optionData[8] = (res.data[0][i].HQty / 1000).toFixed(0); |
| | | // } |
| | | // else if (res.data[0][i].HProcID == 205) {//é¿çº¿ç« |
| | | // optionData[9] = (res.data[0][i].HQty / 1000).toFixed(0); |
| | | // } |
| | | // } |
| | | // } |
| | | //}) |
| | | |
| | | var option = { |
| | | xAxis: { |
| | | type: 'category', |
| | | data: ['缸æ', 'çå¹²å®å', '䏿µå®å', 'è²å¯ç«å
', 'é¢ç«åª', 'è¡¥å·', 'å°æ¯å°', 'æå¹
å®å', 'ç线ç«', 'é¿çº¿ç«'] |
| | | }, |
| | | yAxis: { |
| | | type: 'value' |
| | | }, |
| | | axisLabel: { |
| | | show: true, |
| | | interval: 0, |
| | | color: '#15b1fa', |
| | | formatter: function (value) { |
| | | var ret = "";//æ¼æ¥å \nè¿åçç±»ç®é¡¹ |
| | | var maxLength = 1;//æ¯é¡¹æ¾ç¤ºæåä¸ªæ° |
| | | var valLength = value.length;//Xè½´ç±»ç®é¡¹çæåä¸ªæ° |
| | | var rowN = Math.ceil(valLength / maxLength); //ç±»ç®é¡¹éè¦æ¢è¡çè¡æ° |
| | | if (rowN > 1)//å¦æç±»ç®é¡¹çæå大äº3, |
| | | { |
| | | for (var i = 0; i < rowN; i++) { |
| | | var temp = "";//æ¯æ¬¡æªåçå符串 |
| | | var start = i * maxLength;//å¼å§æªåçä½ç½® |
| | | var end = start + maxLength;//ç»ææªåçä½ç½® |
| | | //è¿éä¹å¯ä»¥å ä¸ä¸ªæ¯å¦æ¯æåä¸è¡ç夿ï¼ä½æ¯ä¸å 乿²¡æå½±åï¼é£å°±ä¸å å§ |
| | | temp = value.substring(start, end) + "\n"; |
| | | ret += temp; //ååæç»çå符串 |
| | | } |
| | | return ret; |
| | | } |
| | | else { |
| | | return value; |
| | | } |
| | | } |
| | | }, |
| | | series: [ |
| | | { |
| | | //data: optionData, |
| | | data: [23, 14, 45, 56, 12, 35, 64, 34, 62, 75], |
| | | type: 'bar', |
| | | label: { |
| | | normal: { |
| | | show: true, |
| | | position: 'top', |
| | | formatter: function (params) { |
| | | return echarts.format.addCommas(params.value); |
| | | } |
| | | } |
| | | } |
| | | , itemStyle: { |
| | | // 设置æ±å½¢çé¢è² |
| | | normal: { |
| | | color: '#15b1fa', |
| | | label: { |
| | | show: true // å¨æçº¿æç¹ä¸æ¾ç¤ºæ°æ® |
| | | } |
| | | }, |
| | | } |
| | | } |
| | | ] |
| | | }; |
| | | mychart1.setOption(option); |
| | | } |
| | | }); |
| | | |
| | | //æ¥è¯¢åè¡¨æ°æ® |
| | | function get_Display() { |
| | | var HSourceInterID = $("#HSourceInterID").val(); |
| | | var HSourceEntryID = $("#HSourceEntryID").val(); |
| | | var sWhere = ""; |
| | | if (HSourceInterID != 0 && HSourceEntryID != 0) { |
| | | sWhere = " and HSourceInterID=" + HSourceInterID + " and HSourceEntryID=" + HSourceEntryID; |
| | | } else { |
| | | sWhere = " and HSourceInterID=0 and HSourceEntryID=0 "; |
| | | } |
| | | var ajaxLoad = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Cj_SingleStation/ProcessItemRepair", |
| | | 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' }); |
| | | col.push({ type: 'numbers', title: 'åºå·', style: 'background-color: #f9f9f9;' }); |
| | | 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: 110 }); |
| | | break; |
| | | default: |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 110 }); |
| | | } |
| | | } |
| | | } |
| | | col.push({ fixed: 'right', title: 'æä½', toolbar: '#barDemo' }); |
| | | |
| | | //#endregion |
| | | if (data1.data.length != 0) { |
| | | $("#HBadReasonID").val(data1.data[0]["HBadReasonID"]); |
| | | $("#HBadReasonName").val(data1.data[0]["ä¸è¯åå "]); |
| | | //$("#HBadTypeID").val(); |
| | | //$("#HBadTypeName").val(); |
| | | //$("#HBadResultID").val(); |
| | | //$("#HBadResultName").val(); |
| | | } |
| | | |
| | | var option = { |
| | | elem: '#mainTable' |
| | | //, toolbar: '#toolbarDemo' |
| | | , async: true |
| | | , page: false |
| | | //, totalRow: true |
| | | , cellMinWidth: 120 |
| | | , height: 300 |
| | | } |
| | | |
| | | //#region æ¤é¡µé¢ææçæ¹æ³ |
| | | |
| | | //åå§åçé¢ |
| | | function set_ClearBill() { |
| | | get_Display(); |
| | | } |
| | | |
| | | //æ¥è¯¢ |
| | | function get_Display() { |
| | | var sWhere = " and ç¼ç ='" + sessionStorage["Czybm"]+"'"; |
| | | var ajaxLoad = layer.load(); |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cj_SingleStation/Cj_CollectionOfSingleProductDefectsUserList', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | |
| | | $("#HDeptID").val(data1.data[0]["HDeptID"]); |
| | | $("#HDeptName").val(data1.data[0]["车é´"]); |
| | | $("#HProName").val(data1.data[0]["å·¥åº"]); |
| | | $("#HSourceID").val(data1.data[0]["HSourceID"]); |
| | | $("#HSourceName").val(data1.data[0]["çäº§èµæº"]); |
| | | $("#HEmpID").val(data1.data[0]["HEmpID"]); |
| | | $("#HEmpName").val(data1.data[0]["è´¨æ£å"]); |
| | | $("#HGroupID").val(data1.data[0]["HGroupID"]); |
| | | $("#HGroupName").val(data1.data[0]["ç产çç»"]); |
| | | option.cols = [col]; |
| | | option.data = data1.data; |
| | | table.render(option); |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | //DisPlay_HideColumn(); |
| | | layer.close(ajaxLoad); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //layer.alert("æ¥è¯¢æå", { icon: 1 }); |
| | | } else { |
| | | //æ¥è¯¢ç¨æ·å
³èæ°æ® |
| | | function get_UsreList() { |
| | | var sWhere = " and ç¼ç ='" + sessionStorage["Czybm"] + "'"; |
| | | var ajaxLoad = layer.load(); |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cj_SingleStation/Cj_CollectionOfSingleProductDefectsUserList', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | |
| | | $("#HDeptID").val(data1.data[0]["HDeptID"]); |
| | | $("#HDeptName").val(data1.data[0]["车é´"]); |
| | | $("#HProName").val(data1.data[0]["å·¥åº"]); |
| | | $("#HSourceID").val(data1.data[0]["HSourceID"]); |
| | | $("#HSourceName").val(data1.data[0]["çäº§èµæº"]); |
| | | $("#HEmpID").val(data1.data[0]["HEmpID"]); |
| | | $("#HEmpName").val(data1.data[0]["è´¨æ£å"]); |
| | | //$("#HGroupID").val(data1.data[0]["HGroupID"]); |
| | | //$("#HGroupName").val(data1.data[0]["ç产çç»"]); |
| | | layer.close(ajaxLoad); |
| | | |
| | | //layer.alert("æ¥è¯¢æå", { icon: 1 }); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | |
| | | }); |
| | | } |
| | | |
| | | //æ¡ç å车æ¥è¯¢ |
| | | function txtHBarCode_KeyDown(HBarCode) { |
| | | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Cj_SingleStation/HBardCodeList", |
| | | async: true, |
| | | data: { "HBarCode": HBarCode, "user": sessionStorage["HUserName"]}, |
| | | dataType: "json", |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | layer.close(index); |
| | | $("#HICMOBillNo").val(data1.data[0]["ç产订å"]); |
| | | $("#HICMOInterID").val(data1.data[0]["HICMOInterID"]); |
| | | $("#HProcExchBillNo").val(data1.data[0]["å·¥åºæµè½¬å¡"]); |
| | | $("#HProcExchInterID").val(data1.data[0]["HSourceInterID"]); |
| | | $("#HMaterNumber").val(data1.data[0]["ç©æç¼ç "]); |
| | | $("#HMaterID").val(data1.data[0]["HMaterID"]); |
| | | $("#HMaterName").val(data1.data[0]["ç©æåç§°"]); |
| | | $("#HModel").val(data1.data[0]["è§æ ¼åå·"]); |
| | | $("#HBarCode").val(data1.data[0]["æ¡ç "]); |
| | | |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | layer.msg(data1.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | $("#HBarCodeSN").val(""); |
| | | }, |
| | | error: function (err) { |
| | | layer.close(index); |
| | | layer.msg("é误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //ä¸è¯åå éæ©é¡µé¢ |
| | | function btnHBadReason() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'ä¸è¯åå å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_BadReason.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HBadReasonID").val(checkStatus.data[0].HItemID); |
| | | $("#HBadReasonName").val(checkStatus.data[0].ä¸è¯åå åç§°); |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //è´¨æ£åéæ©é¡µé¢ |
| | | function btnHEmp() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'è´¨æ£åå表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_EmployeeList.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HEmpID").val(checkStatus.data[0].HItemID); |
| | | $("#HEmpName").val(checkStatus.data[0].èååç§°); |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //çäº§èµæºéæ©é¡µé¢ |
| | | function btnHSource() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'çäº§èµæºå表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_Source.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HSourceID").val(checkStatus.data[0].HItemID); |
| | | $("#HSourceName").val(checkStatus.data[0].çäº§èµæºåç§°); |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | |
| | | //ç产çç»éæ©é¡µé¢ |
| | | function btnHGroup() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'çç»è¡¨'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../åºç¡èµæ/å·¥èµåºç¡èµæ/Gy_Group.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 != 1) { |
| | | return layer.msg('è¯·éæ©ä¸æ¡æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HGroupID").val(checkStatus.data[0].HItemID);//çç»id |
| | | $("#HGroupName").val(checkStatus.data[0].çç»åç§°);//计éåä½åç§° |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | |
| | | //è·ååæ° |
| | | 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; |
| | | } |
| | | |
| | | //ä¿åHMaker |
| | | function set_AddNew(data, HResult) { |
| | | |
| | | var sMainStr = JSON.stringify(data.field); |
| | | |
| | | var sMainSub = sMainStr + ';' + HResult + ";" + sessionStorage["HUserName"] ; |
| | | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Cj_SingleStation/ProcessBLSave", |
| | | async: false, |
| | | data: { "sMainSub": sMainSub }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { |
| | | $('#btnSave').addClass("layui-btn-disabled").attr("disabled", true); |
| | | layer.close(index); |
| | | layer.msg("æäº¤æå"); |
| | | } |
| | | 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: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //é空éªè¯ |
| | | function AllowLoadData(data) { |
| | | |
| | | var HBarCode = $("#HBarCode").val(); |
| | | if (HBarCode == "") { |
| | | layer.msg("产åSNä¸è½ä¸ºç©º!") |
| | | return false; |
| | | }); |
| | | } |
| | | |
| | | var HBadReasonID = $("#HBadReasonID").val(); |
| | | if (HBadReasonID == 0) { |
| | | layer.msg("ä¸è¯åå ä¸è½ä¸ºç©º!") |
| | | return false; |
| | | //æ¡ç å车æ¥è¯¢ |
| | | function txtHBarCode_KeyDown(HBarCode) { |
| | | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Cj_SingleStation/HBardCodeList", |
| | | async: false, |
| | | data: { "HBarCode": HBarCode, "user": sessionStorage["HUserName"] }, |
| | | dataType: "json", |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | layer.close(index); |
| | | $("#HICMOBillNo").val(data1.data[0]["ç产订å"]); |
| | | $("#HICMOInterID").val(data1.data[0]["HICMOInterID"]); |
| | | $("#HICMOEntryID").val(data1.data[0]["HICMOEntryID"]); |
| | | $("#HProcExchBillNo").val(data1.data[0]["å·¥åºæµè½¬å¡"]); |
| | | $("#HProcExchInterID").val(data1.data[0]["HSourceInterID"]); |
| | | $("#HUnitID").val(data1.data[0]["HUnitID"]); |
| | | $("#HUnitName").val(data1.data[0]["åä½"]); |
| | | $("#HOrgName").val(data1.data[0]["ç»ç»"]); |
| | | $("#HProdOrgID").val(data1.data[0]["HPRDORGID"]); |
| | | $("#HMaterNumber").val(data1.data[0]["ç©æç¼ç "]); |
| | | $("#HMaterID").val(data1.data[0]["HMaterID"]); |
| | | $("#HMaterName").val(data1.data[0]["ç©æåç§°"]); |
| | | $("#HMaterModel").val(data1.data[0]["è§æ ¼åå·"]); |
| | | $("#HMaterSN").val(data1.data[0]["æ¡ç "]); |
| | | |
| | | get_Display(); |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | layer.msg(data1.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | $("#HBarCode").val(""); |
| | | }, |
| | | error: function (err) { |
| | | layer.close(index); |
| | | layer.msg("é误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | //#endregion |
| | | //ä¸è¯åå éæ©é¡µé¢ |
| | | function get_checkSearchHBadReason() { |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "ä¸è¯åå å表" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ["../../../views/åºç¡èµæ/ç产åºç¡èµæ/Gy_BadReason.html", "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //æé®ä¸ çåè° |
| | | var iframeWindow = window["layui-layer-iframe" + index];//è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus("mainTable");//è·åéä¸çæ°æ® |
| | | |
| | | }); |
| | | if (checkStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | |
| | | $("#HBadReasonID").val(checkStatus.data[0].HItemID);//å
ç |
| | | $("#HBadReasonName").val(checkStatus.data[0].ä¸è¯åå åç§°);//åç§° |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | |
| | | |
| | | //æ¢é
ä»¶é¡µé¢ |
| | | function get_checkSearchChangeMater() { |
| | | var HMaterSN = $("#HMaterSN").val(); |
| | | if (HMaterSN == "") { |
| | | return layer.msg("请å
æ«æ¡ç !"); |
| | | } |
| | | //var HInterID = $("#HInterID").val(); |
| | | //var HBillNo = $("#HBillNo").val(); |
| | | //var HEmpName = $("#HEmpName").val(); |
| | | //var HProdMac = $("#HProdMac").val(); |
| | | //var HSourceInterID = $("#HSourceInterID").val(); |
| | | //var HSourceEntryID = $("#HSourceEntryID").val(); |
| | | //var HSourceBillNo = $("#HSourceBillNo").val(); |
| | | //var HSourceBillType = $("#HSourceBillType").val(); |
| | | //var HBarCode = $("#HBarCode").val(); |
| | | |
| | | var dataParams = { |
| | | 'OperationType': 1 |
| | | , 'HMaterSN': HMaterSN |
| | | //, 'HInterID': HInterID |
| | | //, 'HBillNo': HBillNo |
| | | //, 'HEmpName': HEmpName |
| | | //, 'HProdMac': HProdMac |
| | | //, 'HSourceInterID': HSourceInterID |
| | | //, 'HSourceEntryID': HSourceEntryID |
| | | //, 'HSourceBillNo': HSourceBillNo |
| | | //, 'HSourceBillType': HSourceBillType |
| | | //, 'HBarCode': HBarCode |
| | | //, 'subMaterList_Temp': $("#subMaterList_Temp").val() |
| | | } |
| | | var datajson = JSON.stringify(dataParams); |
| | | url = encodeURI('../../车é´ç®¡ç/ååè¿ç«/Cj_ProcessItemBGA_PJGH.html?OperationType=1&HMaterSN=' + HMaterSN); |
| | | |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "产线è¿ä¿®å¹³å°(æ´æ¢é
ä»¶)" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: [url, "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | }); |
| | | </script> |