| | |
| | | <form class="layui-form" action="" lay-filter="formData" style="background-color:white;"> |
| | | <div style="padding: 2px; "> |
| | | <!--<button type="button" id="btnSearch" style="margin-left: 0px" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="btnSearch" >é¢è§</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">æ°å¢</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">ä¿®æ¹</button>--> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">æ°å¢</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">ä¿®æ¹</button>--> |
| | | |
| | | <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="btnEdit" id="btnEdit">éåº</button> |
| | |
| | | <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> |
| | | <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;">æ¥æ</label> |
| | | <label class="layui-form-label" style="width: 85px;">æ¥æ*</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="date" class="layui-input" lay-verify="HDate" name="HDate" id="HDate" style="padding-left: 80px;"> |
| | | </div> |
| | |
| | | <input type="text" class="layui-input" lay-verify="HName" name="HName" id="HName"> |
| | | </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="HPicNumVer" name="HPicNumVer" id="HPicNumVer"> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">产å代ç </label> |
| | | <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="HMaterNumber" name="HMaterNumber" id="HMaterNumber" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchMater" id="btnSearchMater" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">产ååç§°</label> |
| | | <label class="layui-form-label" style="width: 75px;">产ååç§°*</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HMaterName" lay-verify="HMaterName" id="HMaterName" 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> |
| | | <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="HMaterModel" id="HMaterModel" onmouseover="this.title=this.value" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HMaterModel" id="HMaterModel" onmouseover="this.title=this.value" 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" name="HPicNumAssemble" id="HPicNumAssemble" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">计éåä½</label> |
| | | <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="HUnitName" lay-verify="HUnitName" id="HUnitName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HUnitID" id="HUnitID" lay-verify="HUnitID" 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="hidden" class="layui-input" lay-verify="HRoutingGroupID" name="HRoutingGroupID" id="HRoutingGroupID" value="0" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" lay-verify="HRoutingGroupIDName" name="HRoutingGroupIDName" id="HRoutingGroupIDName" value="" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnRoutingGroup" id="btnRoutingGroup" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" ></i> |
| | | </button> |
| | | <div class="layui-input-block" style="margin-left: 96px;"> |
| | | <input type="checkbox" name="checkboxHStandard" id="checkboxHStandard" lay-skin="primary" lay-filter="checkboxHStandard" checked title="æ¯å¦é»è®¤å·¥èº"> |
| | | <input type="hidden" value="true" name="HStandard" id="HStandard" lay-verify="HStandard"> |
| | | <!--<input type="checkbox" name="checkboxHUseFlag" id="checkboxHUseFlag" title="æ¯å¦å¯ç¨" lay-skin="primary" lay-filter="checkboxHUseFlag"> |
| | | <input type="hidden" value="false" name="HUseFlag" id="HUseFlag">--> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <!--<div class="layui-inline"> |
| | | <div class="layui-inline" id="HIDDEN" style="display:none;"> |
| | | <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="HMainProcIDName" name="HMainProcIDName" id="HMainProcIDName" value="" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HMainProcID" id="HMainProcID" lay-verify="HMainProcID" value="0" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchProc" id="btnSearchProc" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" ></i> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <!--<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="HMainCenterIDName" name="HMainCenterIDName" id="HMainCenterIDName" value="" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | |
| | | </button> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æåç¼å·</label> |
| | | <div class="layui-input-block" style="margin-left: 115px;"> |
| | | <input type="text" class="layui-input" name="HProductNum" lay-verify="HProductNum" id="HProductNum" value="" onmouseover="this.title=this.value"> |
| | | </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="HVerNum" lay-verify="HVerNum" id="HVerNum" value="" onmouseover="this.title=this.value"> |
| | | </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: 185px;"> |
| | | <select name="HOrgID" id="HOrgID" lay-verify="HOrgID"> |
| | | <!--å¨ææ¸²æç»ç»--> |
| | | </select> |
| | | </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="HMainUnitTime" lay-verify="HMainUnitTime" id="HMainUnitTime" value="0">--> |
| | | <!--<input type="hidden" value="å°æ¶" name="HMainTimeUnit" id="HMainTimeUnit">--> |
| | | <!--</div> |
| | | <!--<input type="hidden" value="å°æ¶" name="HMainTimeUnit" id="HMainTimeUnit">--> |
| | | <!--</div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">工价</label> |
| | |
| | | </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="HStdSourceQty" id="HStdSourceQty" lay-verify="HStdSourceQty" value="0">--> <!--style="background-color:#efefef4d;"--> |
| | | <!--</div> |
| | | <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="HStdSourceQty" id="HStdSourceQty" lay-verify="HStdSourceQty" value="0">--> |
| | | <!--style="background-color:#efefef4d;"--> |
| | | <!--</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="HAddSourceRate" id="HAddSourceRate" lay-verify="HAddSourceRate" value="0">--> <!--style="background-color:#efefef4d;"--> |
| | | <!--</div> |
| | | <input type="text" class="layui-input" name="HAddSourceRate" id="HAddSourceRate" lay-verify="HAddSourceRate" value="0">--> |
| | | <!--style="background-color:#efefef4d;"--> |
| | | <!--</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="HDelSourceRate" name="HDelSourceRate" id="HDelSourceRate" value="0">--> <!--style="background-color:#efefef4d;"--> |
| | | <!--</div> |
| | | <input type="text" class="layui-input" lay-verify="HDelSourceRate" name="HDelSourceRate" id="HDelSourceRate" value="0">--> |
| | | <!--style="background-color:#efefef4d;"--> |
| | | <!--</div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-row"> |
| | |
| | | <input type="text" class="layui-input" name="HRemark" id="HRemark" lay-verify="HRemark" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value" style=" width: 500px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-block" style="margin-left: 96px;"> |
| | | <input type="checkbox" name="checkboxHStandard" id="checkboxHStandard" lay-skin="primary" lay-filter="checkboxHStandard" checked title="æ¯å¦é»è®¤å·¥èº"> |
| | | <input type="hidden" value="true" name="HStandard" id="HStandard" lay-verify="HStandard"> |
| | | <!--<input type="checkbox" name="checkboxHUseFlag" id="checkboxHUseFlag" title="æ¯å¦å¯ç¨" lay-skin="primary" lay-filter="checkboxHUseFlag"> |
| | | <input type="hidden" value="false" name="HUseFlag" id="HUseFlag">--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-block" style="margin-left: 185px;"> |
| | | <input type="checkbox" name="checkboxIsProNo" id="checkboxIsProNo" lay-skin="primary" lay-filter="checkboxIsProNo" title="转工åº" > |
| | | <input type="hidden" value="1" name="IsProNo" id="IsProNo" lay-verify="IsProNo" > |
| | | </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;"> |
| | | <select name="HOrgID" id="HOrgID" lay-verify="HOrgID"> |
| | | <!--å¨ææ¸²æç»ç»--> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <input type="text" class="layui-input" name="HMaterTexture" lay-verify="HMaterTexture" id="HMaterTexture" value="" onmouseover="this.title=this.value"> |
| | | </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="HPicNumVer" name="HPicNumVer" id="HPicNumVer"> |
| | | </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="HPicNumAssemble" id="HPicNumAssemble" onmouseover="this.title=this.value"> |
| | | </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="hidden" class="layui-input" lay-verify="HRoutingGroupID" name="HRoutingGroupID" id="HRoutingGroupID" value="0" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" lay-verify="HRoutingGroupIDName" name="HRoutingGroupIDName" id="HRoutingGroupIDName" value="" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnRoutingGroup" id="btnRoutingGroup" 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: 115px;"> |
| | | <input type="text" class="layui-input" name="HProductNum" lay-verify="HProductNum" id="HProductNum" value="" onmouseover="this.title=this.value"> |
| | | </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="HVerNum" lay-verify="HVerNum" id="HVerNum" value="" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-block" style="margin-left: 185px;"> |
| | | <input type="checkbox" name="checkboxIsProNo" id="checkboxIsProNo" lay-skin="primary" lay-filter="checkboxIsProNo" title="转工åº"> |
| | | <input type="hidden" value="1" name="IsProNo" id="IsProNo" lay-verify="IsProNo"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <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> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_up"><i class="layui-icon layui-icon-form"></i>ä¸ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_under"><i class="layui-icon layui-icon-form"></i>ä¸ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_Refresh"><i class="layui-icon layui-icon-form"></i>å·æ°æµæ°´å·</button> |
| | | </div> |
| | | </script> |
| | | </form> |
| | |
| | | </div> |
| | | </script> |
| | | |
| | | <!--å¤éæ¡ æäº§å·¥åºæ è®°--> |
| | | <script type="text/html" id="HSortProcFlag"> |
| | | <div class="layui-input-block" style="margin-left: 20px;"> |
| | | <input type="checkbox" name="HSortProcFlag" lay-filter="HSortProcFlag" id="HSortProcFlag{{d.LAY_TABLE_INDEX+1}}" lay-skin="primary"> |
| | | </div> |
| | | </script> |
| | | |
| | | <!--å¤éæ¡ ä¸éæµè½¬å·¥åº--> |
| | | <script type="text/html" id="HNextProcFlag"> |
| | | <div class="layui-input-block" style="margin-left: 20px;"> |
| | | <input type="checkbox" name="HNextProcFlag" disabled="disabled" lay-filter="HNextProcFlag" id="HNextProcFlag{{d.LAY_TABLE_INDEX+1}}" lay-skin="primary"> |
| | | <input type="checkbox" name="HNextProcFlag" disabled="disabled" lay-filter="HNextProcFlag" id="HNextProcFlag{{d.LAY_TABLE_INDEX+1}}" lay-skin="primary"> |
| | | </div> |
| | | </script> |
| | | |
| | |
| | | </script> |
| | | |
| | | <script> |
| | | |
| | | var OptionData = []; |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | |
| | | , "HWorkQty_S": 0, "HSubStdEmpQty_S": 0, "HMouldNo": "", "HChangeMould": 0, "HPackStd": "" |
| | | , "HPack": "", "HPutArea": "", "HMyWorkDays": 0, "HMyFixWorkDays": 0, "å·¥åº": "" |
| | | , "HProcID": 0, "å·¥ä½ä¸å¿ä»£ç ": "", "HCenterID": 0, "å·¥ä½ä¸å¿": "", "HSupID": 0 |
| | | , "ä¾åºå代ç ": "", "ä¾åºå": "", "HSupFlag": false, "HTimeUnit": "", "HUnitTime": 0 |
| | | , "ä¾åºå代ç ": "", "ä¾åºå": "", "HSupFlag": false, "HSortProcFlag": false, "HTimeUnit": "", "HUnitTime": 0 |
| | | , "HWorkQty": 1, "HPassRate": 100, "HOverRate": 0, "HReadyTime": 0, "HQueueTime": 0 |
| | | , "HMoveTime": 0, "HNextProcFlag": false, "HFlowProc": false, "HSubStdEmpQty": 0, "HSubCanUseSourceQty": 0 |
| | | , "HFixPrice": 0, "HProcPrice": 0, "HBadPrice": 0, "HWasterPrice": 0, "HStdFlag": false |
| | | , "HBeginDayQty": 0, "HBeginFixQty": 0, "HFixWorkDays": 0, "HTrunWorkDays": 0, "HReadyTimes": 0 |
| | | , "HICMOReadyTimes": 0, "HAutoTrunFlag": false, "HTechnologyParameter": "", "HPicNum": "", "HProcCheckNote": "" |
| | | , "HProcWorkNum": "", "HBadWHID": 0, "HBadWHName": "", "HWasterWHID": 0, "HWasterWHName": "" |
| | | , "HWHID": 0, "HWHName": "" |
| | | , "HWHID": 0, "HWHName": "", "HRemark": "", "HWorkTimes_S": 0 |
| | | , "HQCSchemeID_Fst": 0, "HQCSchemeNumber_Fst": "", "HQCSchemeName_Fst": "" |
| | | , "HQCSchemeID_Proc": 0, "HQCSchemeNumber_Proc": "", "HQCSchemeName_Proc": "" |
| | | , "HQCSchemeID_Patrol": 0, "HQCSchemeNumber_Patrol": "", "HQCSchemeName_Patrol": "" |
| | | }]; |
| | | var HModName = "Gy_RoutingBill"; |
| | | //#endregion |
| | |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , limit: 500 //æ¯é¡µé»è®¤æ¾ç¤ºçæ°é |
| | | , cellMinWidth: 120 |
| | | , totalRow: true |
| | | //, cellMinWidth: 120 |
| | | , height: 400 |
| | | , cols: [[ //表头 |
| | | { type: 'checkbox', totalRowText: 'å计è¡' } |
| | | , { type: 'numbers', title: 'åºå·', totalRow: true } |
| | | , { field: 'HProcNo', title: 'æµæ°´å·', edit: 'text' } |
| | | // , { field: 'HProcID', title: 'å·¥åºID', hide: true }//, hide: true |
| | | // , { field: 'HProcID', title: 'å·¥åºID', hide: true }//, hide: true |
| | | , { field: 'å·¥åº', title: 'å·¥åº', edit: 'text', event: "CheckHProcID" }//f7 |
| | | , { field: 'HProcType', title: 'å·¥åºç±»å', templet: '#HProcType' }//éæ© |
| | | , { field: 'å·¥ä½ä¸å¿ä»£ç ', title: 'å·¥ä½ä¸å¿ä»£ç ', edit: 'text', event: "CheckHCenterID" }//ä¸å¡« |
| | | // , { field: 'HCenterID', title: 'å·¥ä½ä¸å¿id', hide: true }//, hide: true |
| | | , { field: 'å·¥ä½ä¸å¿', title: 'å·¥ä½ä¸å¿' }//f7 |
| | | , { field: 'HTechnologyParameter', title: 'å·¥èºåæ°', edit: 'text' } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | | // , { field: 'HSupID', title: 'ä¾åºåID', hide: true } |
| | | , { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ', edit: 'text', width: 110, event: "CheckHSupID" } |
| | | , { field: 'ä¾åºå', title: 'ä¾åºå' }//f7 |
| | | , { field: 'HTechnologyParameter', title: 'å·¥èºåæ°', edit: 'text' } |
| | | , { field: 'HSupFlag', title: 'å¤åæ è®°', templet: "#HSupFlag" }//checkbox |
| | | //, { field: 'HBadWHID', title: 'HBadWHID', hide: true }//, hide: true |
| | | , { field: 'HBadWHName', title: 'ä¸è¯åä»', edit: 'text', event: "HBadWHID" }//f7 |
| | | // , { field: 'HWasterWHID', title: 'HWasterWHID', hide: true }//, hide: true |
| | | , { field: 'HWasterWHName', title: 'æ¥åºåä»', edit: 'text', event: "HWasterWHID" }//f7 |
| | | // , { field: 'HWHID', title: 'HWHID', hide: true }//, hide: true |
| | | , { field: 'HWHName', title: 'è¯åä»', edit: 'text', event: "HWHID" }//f7 |
| | | , { field: 'HMouldNo', title: '模å
·ç¼å·', edit: 'text' } |
| | | , { field: 'HPicNum', title: 'å¾çº¸ç¼å·', edit: 'text' } |
| | | , { field: 'HTimeUnit', title: 'æ¶é´åä½', edit: 'text' } |
| | | , { field: 'HUnitTime', title: 'è¿è¡æ¶é´', edit: 'text' } |
| | | , { field: 'HWorkQty', title: 'å å·¥æ°é', edit: 'text' }//é»è®¤ |
| | | , { field: 'HPassRate', title: 'è¯ç', edit: 'text' }//é»è®¤ |
| | | , { field: 'HProcID_S', title: '工段', edit: 'text' } |
| | | //, { field: 'HCenterID_S', title: '产线ä¸å¿id', hide: true }//hide: true |
| | | , { field: 'HCenterID_SName', title: '产线ä¸å¿', edit: 'text', event: "CheckHCenterID_S" }//f7 |
| | | , { field: 'HWorkQty_S', title: '产线产è½', edit: 'text' } |
| | | , { field: 'HSubStdEmpQty_S', title: '产线人æ°', edit: 'text' } |
| | | , { field: 'HReadyTime', title: 'å夿¶é´', edit: 'text' } |
| | | , { field: 'HQueueTime', title: 'æéæ¶é´', edit: 'text' } |
| | | , { field: 'HMoveTime', title: '转移æ¶é´', edit: 'text' } |
| | | , { field: 'HChangeMould', title: 'æ¢æ¨¡æ¶é´', edit: 'text' } |
| | | , { field: 'HPackStd', title: 'å¨è½¬ç®±æ å', edit: 'text' } |
| | | , { field: 'HPack', title: 'å¨è½¬ç®±', edit: 'text' } |
| | | , { field: 'HPutArea', title: 'ææ¾åº', edit: 'text' } |
| | | , { field: 'HMyWorkDays', title: 'çäº§å¨æ', edit: 'text' } |
| | | , { field: 'HMyFixWorkDays', title: 'åºå®ç产天æ°', edit: 'text' } |
| | | // , { field: 'HOverRate', title: 'è¶
颿¯ä¾', edit: 'text' } |
| | | , { field: 'HNextProcFlag', title: 'ä¸éæµè½¬å·¥åº', templet: "#HNextProcFlag" }//chenbox |
| | | , { field: 'HFlowProc', title: 'æµè½¬å·¥åº', templet: "#HFlowProc" }//chenbox |
| | | , { field: 'HSubStdEmpQty', title: 'æ å人æ°', edit: 'text' } |
| | | , { field: 'HSubCanUseSourceQty', title: '坿ä½è®¾å¤æ°', edit: 'text' } |
| | | , { field: 'HFixPrice', title: 'ç产å®é¢', edit: 'text' }//é»è®¤ |
| | | , { field: 'HProcPrice', title: 'å·¥åºå·¥ä»·', edit: 'text' }//é»è®¤ |
| | | , { field: 'HBadPrice', title: 'ä¸åæ ¼åä»·', edit: 'text' }//é»è®¤ |
| | | , { field: 'HWasterPrice', title: 'æ¥åºåä»·', edit: 'text' }//é»è®¤ |
| | | , { field: 'HStdFlag', title: 'æ åå®é¢', templet: "#HStdFlag" }//chenbox |
| | | , { field: 'HBeginDayQty', title: 'å¼å·¥ä½éï¼å¤©æ°ï¼', edit: 'text' } |
| | | , { field: 'HBeginFixQty', title: 'å¼å·¥ä½éï¼åºæ°ï¼', edit: 'text' } |
| | | , { field: 'HFixWorkDays', title: 'ä¸éåºå®å¤©æ°', edit: 'text' } |
| | | , { field: 'HTrunWorkDays', title: 'ä¸é循ç¯å¨æ', edit: 'text' } |
| | | , { field: 'HReadyTimes', title: 'æ¬éå夿¶é´', edit: 'text' } |
| | | , { field: 'HICMOReadyTimes', title: 'æ¢åå夿¶é´', edit: 'text' } |
| | | , { field: 'HAutoTrunFlag', title: 'èªå¨ç§»è½¬', templet: "#HAutoTrunFlag" }//chenbox |
| | | , { field: 'HProcCheckNote', title: 'æ¬å·¥åºç¡®è®¤è®°å½', edit: 'text' } |
| | | , { field: 'HProcWorkNum', title: 'ç¨åºå·', edit: 'text' } |
| | | , { field: 'HSortProcFlag', title: 'æäº§å·¥åºæ è®°', templet: "#HSortProcFlag" }//checkbox |
| | | |
| | | //, { field: 'HProcType', title: 'å·¥åºç±»å', templet: '#HProcType' }//éæ© |
| | | ////, { field: 'HBadWHID', title: 'HBadWHID', hide: true }//, hide: true |
| | | //, { field: 'HBadWHName', title: 'ä¸è¯åä»', edit: 'text', event: "HBadWHID" }//f7 |
| | | //// , { field: 'HWasterWHID', title: 'HWasterWHID', hide: true }//, hide: true |
| | | //, { field: 'HWasterWHName', title: 'æ¥åºåä»', edit: 'text', event: "HWasterWHID" }//f7 |
| | | //// , { field: 'HWHID', title: 'HWHID', hide: true }//, hide: true |
| | | //, { field: 'HWHName', title: 'è¯åä»', edit: 'text', event: "HWHID" }//f7 |
| | | //, { field: 'HMouldNo', title: '模å
·ç¼å·', edit: 'text' } |
| | | //, { field: 'HPicNum', title: 'å¾çº¸ç¼å·', edit: 'text' } |
| | | //, { field: 'HTimeUnit', title: 'æ¶é´åä½', edit: 'text' } |
| | | //, { field: 'HUnitTime', title: 'è¿è¡æ¶é´', edit: 'text' } |
| | | , { field: 'HWorkQty', title: 'å å·¥æ°é', edit: 'text', totalRow: true }//é»è®¤ |
| | | |
| | | //, { field: 'HQCSchemeID_Fst', title: 'é¦ä»¶æ£éªæ¹æ¡ID', hide: true }//f7 |
| | | //, { field: 'HQCSchemeNumber_Fst', title: 'é¦ä»¶æ£éªæ¹æ¡ä»£ç ', edit: 'text', event: "HQCSchemeNumber_Fst",width:125 } |
| | | //, { field: 'HQCSchemeName_Fst', title: 'é¦ä»¶æ£éªæ¹æ¡åç§°', width: 125 }//f7 |
| | | //, { field: 'HQCSchemeID_Proc', title: 'è½¬åºæ£éªæ¹æ¡ID', hide: true }//f7 |
| | | //, { field: 'HQCSchemeNumber_Proc', title: 'è½¬åºæ£éªæ¹æ¡ä»£ç ', edit: 'text', event: "HQCSchemeNumber_Proc", width: 125} |
| | | //, { field: 'HQCSchemeName_Proc', title: 'è½¬åºæ£éªæ¹æ¡åç§°', width: 125}//f7 |
| | | //, { field: 'HQCSchemeID_Patrol', title: 'å·¡æ£æ£éªæ¹æ¡ID', hide: true }//f7 |
| | | //, { field: 'HQCSchemeNumber_Patrol', title: 'å·¡æ£æ£éªæ¹æ¡ä»£ç ', edit: 'text', event: "HQCSchemeNumber_Patrol", width: 125} |
| | | //, { field: 'HQCSchemeName_Patrol', title: 'å·¡æ£æ£éªæ¹æ¡åç§°', width: 125}//f7 |
| | | |
| | | //, { field: 'HPassRate', title: 'è¯ç', edit: 'text' }//é»è®¤ |
| | | //, { field: 'HProcID_S', title: '工段', edit: 'text' } |
| | | ////, { field: 'HCenterID_S', title: '产线ä¸å¿id', hide: true }//hide: true |
| | | //, { field: 'HCenterID_SName', title: '产线ä¸å¿', edit: 'text', event: "CheckHCenterID_S" }//f7 |
| | | //, { field: 'HWorkQty_S', title: '产线产è½', edit: 'text' } |
| | | //, { field: 'HSubStdEmpQty_S', title: '产线人æ°', edit: 'text' } |
| | | //, { field: 'HReadyTime', title: 'å夿¶é´', edit: 'text' } |
| | | //, { field: 'HQueueTime', title: 'æéæ¶é´', edit: 'text' } |
| | | //, { field: 'HMoveTime', title: '转移æ¶é´', edit: 'text' } |
| | | //, { field: 'HChangeMould', title: 'æ¢æ¨¡æ¶é´', edit: 'text' } |
| | | //, { field: 'HPackStd', title: 'å¨è½¬ç®±æ å', edit: 'text' } |
| | | //, { field: 'HPack', title: 'å¨è½¬ç®±', edit: 'text' } |
| | | //, { field: 'HPutArea', title: 'ææ¾åº', edit: 'text' } |
| | | //, { field: 'HMyWorkDays', title: 'çäº§å¨æ', edit: 'text' } |
| | | //, { field: 'HMyFixWorkDays', title: 'åºå®ç产天æ°', edit: 'text' } |
| | | //// , { field: 'HOverRate', title: 'è¶
颿¯ä¾', edit: 'text' } |
| | | //, { field: 'HNextProcFlag', title: 'ä¸éæµè½¬å·¥åº', templet: "#HNextProcFlag" }//chenbox |
| | | //, { field: 'HFlowProc', title: 'æµè½¬å·¥åº', templet: "#HFlowProc" }//chenbox |
| | | //, { field: 'HSubStdEmpQty', title: 'æ å人æ°', edit: 'text' } |
| | | //, { field: 'HSubCanUseSourceQty', title: '坿ä½è®¾å¤æ°', edit: 'text' } |
| | | //, { field: 'HFixPrice', title: 'ç产å®é¢', edit: 'text' }//é»è®¤ |
| | | //, { field: 'HProcPrice', title: 'å·¥åºå·¥ä»·', edit: 'text' }//é»è®¤ |
| | | //, { field: 'HBadPrice', title: 'ä¸åæ ¼åä»·', edit: 'text' }//é»è®¤ |
| | | //, { field: 'HWasterPrice', title: 'æ¥åºåä»·', edit: 'text' }//é»è®¤ |
| | | //, { field: 'HStdFlag', title: 'æ åå®é¢', templet: "#HStdFlag" }//chenbox |
| | | //, { field: 'HBeginDayQty', title: 'å¼å·¥ä½éï¼å¤©æ°ï¼', edit: 'text' } |
| | | //, { field: 'HBeginFixQty', title: 'å¼å·¥ä½éï¼åºæ°ï¼', edit: 'text' } |
| | | //, { field: 'HFixWorkDays', title: 'ä¸éåºå®å¤©æ°', edit: 'text' } |
| | | //, { field: 'HTrunWorkDays', title: 'ä¸é循ç¯å¨æ', edit: 'text' } |
| | | //, { field: 'HReadyTimes', title: 'æ¬éå夿¶é´', edit: 'text' } |
| | | //, { field: 'HICMOReadyTimes', title: 'æ¢åå夿¶é´', edit: 'text' } |
| | | //, { field: 'HAutoTrunFlag', title: 'èªå¨ç§»è½¬', templet: "#HAutoTrunFlag" }//chenbox |
| | | //, { field: 'HProcCheckNote', title: 'æ¬å·¥åºç¡®è®¤è®°å½', edit: 'text' } |
| | | //, { field: 'HProcWorkNum', title: 'ç¨åºå·', edit: 'text' } |
| | | //, { field: 'HWorkTimes_S', title: '产ååä»¶å·¥æ¶', edit: 'text' } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo' } |
| | | ]] |
| | | //, done: function (res, curr, count) { |
| | |
| | | //} |
| | | |
| | | var params = getUrlVars(); |
| | | var OperationType = params[params[0]]; //ä»åæ°ä¸è·å æ°æ®ç±»å 1æ·»å ä¿å 2å¤å¶ 3 ç¼è¾ |
| | | var OperationType = params[params[0]]; //ä»åæ°ä¸è·å æ°æ®ç±»å 1æ·»å ä¿å 2å¤å¶ 3 ç¼è¾ 4æ·»å åå·¥èºè·¯çº¿ |
| | | var linterid = params[params[1]]; //ä»åæ°ä¸è·å åæ®å
ç |
| | | var lSourceBillType = params[params[2]]; //ä»åæ®è·å æºåç±»å |
| | | var HBillSubType = params[params[2]]; //ä»åæ®è·å æºåç±»å |
| | | //var linteridSub = params[params[3]]; //ä»åæ°è·å åè¡¨çº§å« |
| | | var IsHavingPermissions = 0; //æäº§é¡µé¢è·³è½¬è¿æ¥æ¶å¤æç¨æ·æ¯å¦æå·¥èºè·¯çº¿ç¼è¾æé,0ä»£ç æ²¡ææéï¼1代表ææé |
| | | //æäº§é¡µé¢è·³è½¬ç¼è¾æ¥çå·¥èºè·¯çº¿ |
| | | if (HBillSubType == 4610 && OperationType == 3) { |
| | | HBillSubType = 3301 |
| | | IsHavingPermissions = params[params[3]]; |
| | | if (IsHavingPermissions == 0) { |
| | | //没æå·¥èºè·¯çº¿çç¼è¾æéï¼ç¦ç¨æé® |
| | | $('#btnSave').addClass("layui-btn-disabled").attr("disabled", true); |
| | | $('#set_CheckBill').addClass("layui-btn-disabled").attr("disabled", true); |
| | | $('#set_AbandonCheck').addClass("layui-btn-disabled").attr("disabled", true); |
| | | $('#set_CloseBill').addClass("layui-btn-disabled").attr("disabled", true); |
| | | $('#set_CancelCloseBill').addClass("layui-btn-disabled").attr("disabled", true); |
| | | } |
| | | } |
| | | //æäº§é¡µé¢è·³è½¬æ°å¢å·¥èºè·¯çº¿ |
| | | if (HBillSubType == 4610 && OperationType == 1) { |
| | | HBillSubType = 3301 |
| | | |
| | | $("#HMaterID").val(params[params[3]]);//ç©æID |
| | | |
| | | $("#HMaterNumber").val(getParams("HMaterNumber"));//ç©æä»£ç |
| | | $("#HMaterName").val(getParams("HMaterName"));//ç©æåç§° |
| | | $("#HMaterModel").val(getParams("HMaterModel") == "" ? " " : getParams("HMaterModel"));//è§æ ¼åå· |
| | | } |
| | | |
| | | if (HBillSubType == "SUB") { |
| | | //æ¾ç¤ºå·¥åº |
| | | $("#HIDDEN").show(); |
| | | } else { |
| | | HBillSubType = "3301"; |
| | | } |
| | | |
| | | //夿æ¯å¦æ°å¢ |
| | | if (linterid == null || linterid == 0) { |
| | | //linteridSub = -1; |
| | | //$("#HIDDEN").hide(); |
| | | OperationType = 1; |
| | | |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | |
| | | data: { "HBillType": '3301' }, |
| | | success: function (d) { |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").attr("readOnly", false); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | } |
| | | }); |
| | | } |
| | | else {//å¦æä¿®æ¹åèµ°ä¸é¢ new |
| | | |
| | | //ç¦ç¨ç»ç»é项 |
| | | $("#HOrgID").attr("disabled", true); |
| | | RoadBillMain(linterid); |
| | |
| | | }); |
| | | }); |
| | | |
| | | //æäº§å·¥åºæ è®° |
| | | form.on('checkbox(HSortProcFlag)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | | var elem = data.othis.parents('tr'); |
| | | var dataindex = elem.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TABLE_INDEX == dataindex) { |
| | | value.HSortProcFlag = data.elem.checked;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //ä¸éæµè½¬å·¥åº |
| | | form.on('checkbox(HNextProcFlag)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | |
| | | , "HWorkQty_S": 0, "HSubStdEmpQty_S": 0, "HMouldNo": "", "HChangeMould": 0, "HPackStd": "" |
| | | , "HPack": "", "HPutArea": "", "HMyWorkDays": 0, "HMyFixWorkDays": 0, "å·¥åº": "" |
| | | , "HProcID": 0, "å·¥ä½ä¸å¿ä»£ç ": "", "HCenterID": 0, "å·¥ä½ä¸å¿": "", "HSupID": 0 |
| | | , "ä¾åºå代ç ": "", "ä¾åºå": "", "HSupFlag": false, "HTimeUnit": "", "HUnitTime": 0 |
| | | , "ä¾åºå代ç ": "", "ä¾åºå": "", "HSupFlag": false, "HSortProcFlag": false, "HTimeUnit": "", "HUnitTime": 0 |
| | | , "HWorkQty": 1, "HPassRate": 100, "HOverRate": 0, "HReadyTime": 0, "HQueueTime": 0 |
| | | , "HMoveTime": 0, "HNextProcFlag": false, "HFlowProc": false, "HSubStdEmpQty": 0, "HSubCanUseSourceQty": 0 |
| | | , "HFixPrice": 0, "HProcPrice": 0, "HBadPrice": 0, "HWasterPrice": 0, "HStdFlag": false |
| | | , "HBeginDayQty": 0, "HBeginFixQty": 0, "HFixWorkDays": 0, "HTrunWorkDays": 0, "HReadyTimes": 0 |
| | | , "HICMOReadyTimes": 0, "HAutoTrunFlag": false, "HTechnologyParameter": "", "HPicNum": "", "HProcCheckNote": "" |
| | | , "HProcWorkNum": "", "HBadWHID": 0, "HBadWHName": "", "HWasterWHID": 0, "HWasterWHName": "" |
| | | , "HWHID": 0, "HWHName": "" |
| | | , "HWHID": 0, "HWHName": "", "HRemark": "", "HWorkTimes_S": 0 |
| | | , "HQCSchemeID_Fst": 0, "HQCSchemeNumber_Fst": "", "HQCSchemeName_Fst": "" |
| | | , "HQCSchemeID_Proc": 0, "HQCSchemeNumber_Proc": "", "HQCSchemeName_Proc": "" |
| | | , "HQCSchemeID_Patrol": 0, "HQCSchemeNumber_Patrol": "", "HQCSchemeName_Patrol": "" |
| | | }; |
| | | switch (obj.event) { |
| | | case 'btn-AddLine': |
| | |
| | | //å§å¤åå© |
| | | if (option.data[i - 1].HSupFlag) { |
| | | $('#HSupFlag' + i + '').attr("checked", true); |
| | | } |
| | | //æäº§å·¥åºæ è®° |
| | | if (option.data[i - 1].HSortProcFlag) { |
| | | $('#HSortProcFlag' + i + '').attr("checked", true); |
| | | } |
| | | //ä¸éæµè½¬å·¥åº |
| | | if (option.data[i - 1].HNextProcFlag) { |
| | |
| | | if (option.data[i - 1].HSupFlag) { |
| | | $('#HSupFlag' + i + '').attr("checked", true); |
| | | } |
| | | //æäº§å·¥åºæ è®° |
| | | if (option.data[i - 1].HSortProcFlag) { |
| | | $('#HSortProcFlag' + i + '').attr("checked", true); |
| | | } |
| | | //ä¸éæµè½¬å·¥åº |
| | | if (option.data[i - 1].HNextProcFlag) { |
| | | $('#HNextProcFlag' + i + '').attr("checked", true); |
| | |
| | | //å设置 |
| | | case 'set_HideColumn': |
| | | get_HideColumn(); |
| | | break; |
| | | //ä¸ä¸è¡ |
| | | case 'btn_up': |
| | | btn_up(data); |
| | | break; |
| | | //ä¸ä¸è¡ |
| | | case 'btn_under': |
| | | btn_under(data); |
| | | break; |
| | | //å·æ°æµæ°´å· |
| | | case 'btn_Refresh': |
| | | btn_Refresh(data); |
| | | break; |
| | | } |
| | | }); |
| | |
| | | } |
| | | }); |
| | | |
| | | //éæ©ä¸è¯åå |
| | | form.on('submit(HBadReasonID-BT)', function () {//éæ©ä»åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ä¸è¯åå å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_BadReasonList.html', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //鿩工åºè®¡åå |
| | | form.on('submit(HPlanID-BT)', function () {//鿩工åºè®¡åå |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'å·¥åºè®¡ååå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Sc_ProcessPlanViewList.html', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //éæ©è´£ä»»äºº |
| | | form.on('submit(HEmployeeID-BT)', function () {//éæ©è´£ä»»äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HKeeper', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //éæ©ç³è¯·å·¥åº |
| | | form.on('submit(HSQProcID-BT)', function () {//éæ©ç³è¯·å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ç³è¯·å·¥åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //éæ©è´£ä»»å·¥åº |
| | | form.on('submit(HZRProcID-BT)', function () {//éæ©è´£ä»»å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: '责任工åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html?Type=HZR', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //ç¼è¾ |
| | | form.on('submit(cmdModify)', function () {//ç¼è¾ |
| | | var sSubStr = table.cache['wl-table']; |
| | | //if (AllowLoadData(sSubStr) != false) {//é空éªè¯ |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'æç»å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/å
Œ
±é¡µé¢/Kf_BarCodeEditDlg.html?table=' + JSON.stringify(sSubStr), 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | // } |
| | | }); |
| | | |
| | | form.on('submit(Cancel)', function () { |
| | | //sessionStorage["SourceFlag"] = false; |
| | | parent.location.href = "../../../views/index.html" |
| | | //window.close();//å
³éå½å页 |
| | | }) |
| | | |
| | | |
| | | form.on('submit(Saver)', function (data) { //ä¿å |
| | | //debugger; |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | | var sMainSub = sMainStr + ';' + sSubStr; |
| | | $.ajax( |
| | | { |
| | | type: "POST", |
| | | url: GetWEBURL() + "SaveBadReasonList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: true, |
| | | data: { "msg": sMainSub }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true); |
| | | } |
| | | else { |
| | | |
| | | f_alert(data.Message); |
| | | console.log("Reason" + sMainStr + "sub:" + JSON.stringify(layui.table.cache.mainTable)); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | |
| | | f_alert("é误:" + err); |
| | | console.log("Reason" + sMainStr); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //çå¬æäº¤ |
| | | form.verify({ |
| | | numberOrEmpty: function (value, item) { |
| | |
| | | |
| | | //产åéæ©é¡µé¢ |
| | | function get_checkSearchMater() { |
| | | var HOrgID = $("#HOrgID").val(); |
| | | |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'ç©æè¡¨'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_MaterialList_LSQP.html', 'yes'] |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Material.html?openType=2&HOrgID=' + HOrgID, 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HMaterID").val(checkStatus.data[0].HItemID);//ç©æid |
| | | $("#HMaterName").val(checkStatus.data[0].HName);//ç©æåç§° |
| | | $("#HMaterNumber").val(checkStatus.data[0].HNumber);//ç©æä»£ç |
| | | $("#HMaterModel").val(checkStatus.data[0].HModel);//è§æ ¼åå· |
| | | $("#HMaterName").val(checkStatus.data[0].ç©æåç§°);//ç©æåç§° |
| | | $("#HMaterNumber").val(checkStatus.data[0].ç©æä»£ç );//ç©æä»£ç |
| | | $("#HMaterModel").val(checkStatus.data[0].è§æ ¼åå·);//è§æ ¼åå· |
| | | $("#HUnitID").val(checkStatus.data[0].HUnitID);//计éåä½id |
| | | $("#HUnitName").val(checkStatus.data[0].HUnitName);//计éåä½åç§° |
| | | $("#HUnitName").val(checkStatus.data[0].计éåä½åç§°);//计éåä½åç§° |
| | | if ($("#HName").val() == "") { |
| | | $("#HName").val(checkStatus.data[0].HName); |
| | | $("#HName").val(checkStatus.data[0].ç©æä»£ç ); |
| | | } |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: '计éåä½è¡¨'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_UnitList.html', 'yes'] |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Unit.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HUnitID").val(checkStatus.data[0].HItemID);//计éåä½id |
| | | $("#HUnitName").val(checkStatus.data[0].HName);//计éåä½åç§° |
| | | $("#HUnitName").val(checkStatus.data[0].计éåä½åç§°);//计éåä½åç§° |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'å·¥èºè·¯çº¿å¤§ç±»å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_RoutingGroup.html', 'yes'] |
| | | , content: ['../../计å管ç/å·¥èºè·¯çº¿å¤§ç±»/Gy_RoutingGroupList.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HRoutingGroupID").val(checkStatus.data[0].HItemID);//å·¥èºè·¯çº¿å¤§ç±»id |
| | | $("#HRoutingGroupIDName").val(checkStatus.data[0].HName);//å·¥èºè·¯çº¿å¤§ç±»åç§° |
| | | $("#HRoutingGroupID").val(checkStatus.data[0].id);//å·¥èºè·¯çº¿å¤§ç±»id |
| | | $("#HRoutingGroupIDName").val(checkStatus.data[0].åç§°);//å·¥èºè·¯çº¿å¤§ç±»åç§° |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | var rowIndex = $(obj.tr).attr("data-index"); |
| | | if (obj.event === 'del') { |
| | | layer.confirm('ççå é¤è¡åï¼', function (index) { |
| | | console.log("ç´¢å¼ä¸º:" + rowIndex); |
| | | if (rowIndex === '0') { |
| | | layer.msg('é¦è¡æ æ³å é¤ï¼ï¼ï¼'); |
| | | } else { |
| | |
| | | data: { "sWhere": "" }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | if (result.data == "true") { |
| | | if (result.data.Gy_RoutingBill_SaveAutoLastProc == "Y") { |
| | | $("#IsProNo").val("1"); |
| | | $("input[name='checkboxIsProNo']").prop("checked", true); |
| | | form.render("checkbox"); |
| | |
| | | var iframeWindow = window["layui-layer-iframe" + index];//è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus("mainTable");//è·åéä¸çæ°æ® |
| | | |
| | | if (checkStatus.data.length ==0) { |
| | | if (checkStatus.data.length == 0) { |
| | | return layer.msg("请è³å°éæ©ä¸æ¡æ°æ®!"); |
| | | } |
| | | |
| | |
| | | NowNum = i + 1; |
| | | } |
| | | } |
| | | |
| | | |
| | | //æ¥è¯¢å·¥ä½ä¸å¿çæ°æ® |
| | | var WorkCente = []; |
| | | var sWhere = "select isnull(a.HItemID,'') HCenterID, isnull(a.HNumber,'') å·¥ä½ä¸å¿ä»£ç , isnull(a.HName,'') å·¥ä½ä¸å¿åç§° ,p.HItemID HProcID,p.HName å·¥åºåç§° from Gy_Process p left join Gy_WorkCenter a on p.HNumber = a.HNumber and a.HUSEORGID=p.HUSEORGID where p.HNumber in (" + ProcessNumber.toString() + ") order by p.HNumber "; |
| | | var sWhere = "select isnull(a.HItemID,'') HCenterID, isnull(a.HNumber,'') å·¥ä½ä¸å¿ä»£ç , isnull(a.HName,'') å·¥ä½ä¸å¿åç§° ,p.HItemID HProcID,p.HName å·¥åºåç§° from Gy_Process p left join Gy_WorkCenter a on p.HWorkCenterID=a.HItemID where p.HNumber in (" + ProcessNumber.toString() + ") order by p.HNumber "; |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Gy_SOPBillList/WindowPrintList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | |
| | | , "HWorkQty_S": 0, "HSubStdEmpQty_S": 0, "HMouldNo": "", "HChangeMould": 0, "HPackStd": "" |
| | | , "HPack": "", "HPutArea": "", "HMyWorkDays": 0, "HMyFixWorkDays": 0, "å·¥åº": WorkCente[j]["å·¥åºåç§°"] |
| | | , "HProcID": WorkCente[j]["HProcID"], "å·¥ä½ä¸å¿ä»£ç ": WorkCente[j]["å·¥ä½ä¸å¿ä»£ç "], "HCenterID": WorkCente[j]["HCenterID"], "å·¥ä½ä¸å¿": WorkCente[j]["å·¥ä½ä¸å¿åç§°"], "HSupID": 0 |
| | | , "ä¾åºå代ç ": "", "ä¾åºå": "", "HSupFlag": false, "HTimeUnit": "", "HUnitTime": 0 |
| | | , "ä¾åºå代ç ": "", "ä¾åºå": "", "HSupFlag": false, "HSortProcFlag": false, "HTimeUnit": "", "HUnitTime": 0 |
| | | , "HWorkQty": 1, "HPassRate": 100, "HOverRate": 0, "HReadyTime": 0, "HQueueTime": 0 |
| | | , "HMoveTime": 0, "HNextProcFlag": false, "HFlowProc": false, "HSubStdEmpQty": 0, "HSubCanUseSourceQty": 0 |
| | | , "HFixPrice": 0, "HProcPrice": 0, "HBadPrice": 0, "HWasterPrice": 0, "HStdFlag": false |
| | | , "HBeginDayQty": 0, "HBeginFixQty": 0, "HFixWorkDays": 0, "HTrunWorkDays": 0, "HReadyTimes": 0 |
| | | , "HICMOReadyTimes": 0, "HAutoTrunFlag": false, "HTechnologyParameter": "", "HPicNum": "", "HProcCheckNote": "" |
| | | , "HProcWorkNum": "", "HBadWHID": 0, "HBadWHName": "", "HWasterWHID": 0, "HWasterWHName": "" |
| | | , "HWHID": 0, "HWHName": "" |
| | | , "HWHID": 0, "HWHName": "", "HRemark": "", "HWorkTimes_S": 0 |
| | | , "HQCSchemeID_Fst": 0, "HQCSchemeNumber_Fst": "", "HQCSchemeName_Fst": "" |
| | | , "HQCSchemeID_Proc": 0, "HQCSchemeNumber_Proc": "", "HQCSchemeName_Proc": "" |
| | | , "HQCSchemeID_Patrol": 0, "HQCSchemeNumber_Patrol": "", "HQCSchemeName_Patrol": "" |
| | | }) |
| | | j++; |
| | | } |
| | |
| | | //var HCenterID = 0; |
| | | //var HCenterNUmber = ""; |
| | | //var HCenterName = ""; |
| | | |
| | | |
| | | |
| | | ////æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | //obj.update({ |
| | |
| | | |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | , end: function () { |
| | | if (OptionData.length > 0) { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "å·¥åº": OptionData[0].å·¥åºåç§° |
| | | , "HProcID": OptionData[0].HItemID |
| | | , "å·¥ä½ä¸å¿": OptionData[0].å·¥ä½ä¸å¿ |
| | | , "HCenterID": OptionData[0].HWorkCenterID |
| | | , "å·¥ä½ä¸å¿ä»£ç ": OptionData[0].å·¥ä½ä¸å¿ä»£ç |
| | | }) |
| | | OptionData = []; |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | //å·¥ä½ä¸å¿ |
| | |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "人åå表" //æ é¢ |
| | | , title: "å·¥ä½ä¸å¿å表" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ["../../Baseset/åºç¡èµæ/Gy_WorkCenterList.html", "yes"] |
| | | , content: ["../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_WorkCenter.html", "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //æé®ä¸ çåè° |
| | |
| | | } |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "å·¥ä½ä¸å¿": checkStatus.data[0].å·¥ä½ä¸å¿ |
| | | "å·¥ä½ä¸å¿": checkStatus.data[0].å·¥ä½ä¸å¿åç§° |
| | | , "HCenterID": checkStatus.data[0].HItemID |
| | | , "å·¥ä½ä¸å¿ä»£ç ": checkStatus.data[0].å·¥ä½ä¸å¿ä»£ç |
| | | }) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | , end: function () { |
| | | if (OptionData.length > 0) { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "å·¥ä½ä¸å¿": OptionData[0].å·¥ä½ä¸å¿åç§° |
| | | , "HCenterID": OptionData[0].HItemID |
| | | , "å·¥ä½ä¸å¿ä»£ç ": OptionData[0].å·¥ä½ä¸å¿ä»£ç |
| | | }) |
| | | OptionData = []; |
| | | } |
| | | } |
| | | }) |
| | | } |
| | |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ["../../åºç¡èµæ/éè´åºç¡èµæ/Gy_Supplier.html", "yes"] |
| | | , content: ["../../åºç¡èµæ/éè´åºç¡èµæ/Gy_Supplier.html?type=HSup", "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //æé®ä¸ çåè° |
| | |
| | | , "ä¾åºå代ç ": checkStatus.data[0].ä¾åºå代ç |
| | | }) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | , end: function () { |
| | | if (OptionData.length > 0) { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "ä¾åºå": OptionData[0].ä¾åºååç§° |
| | | , "HSupID": OptionData[0].HItemID |
| | | , "ä¾åºå代ç ": OptionData[0].ä¾åºå代ç |
| | | }) |
| | | OptionData = []; |
| | | } |
| | | } |
| | | }) |
| | | } |
| | |
| | | } |
| | | }) |
| | | } |
| | | //é¦ä»¶æ£éªæ¹æ¡ |
| | | if (obj.event == "HQCSchemeNumber_Fst") { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'æ£éªæ¹æ¡å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_QCCheckProjectListView.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | obj.update({ |
| | | "HQCSchemeID_Fst": checkStatus.data[0].HItemID |
| | | , "HQCSchemeNumber_Fst": checkStatus.data[0].æ£éªæ¹æ¡ä»£ç |
| | | , "HQCSchemeName_Fst": checkStatus.data[0].æ¹æ¡åç§° |
| | | }) |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | //è½¬åºæ£éªæ¹æ¡ |
| | | if (obj.event == "HQCSchemeNumber_Proc") { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'æ£éªæ¹æ¡å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_QCCheckProjectListView.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | obj.update({ |
| | | "HQCSchemeID_Proc": checkStatus.data[0].HItemID |
| | | , "HQCSchemeNumber_Proc": checkStatus.data[0].æ£éªæ¹æ¡ä»£ç |
| | | , "HQCSchemeName_Proc": checkStatus.data[0].æ¹æ¡åç§° |
| | | }) |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | //å·¡æ£æ£éªæ¹æ¡ |
| | | if (obj.event == "HQCSchemeNumber_Patrol") { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'æ£éªæ¹æ¡å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_QCCheckProjectListView.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | obj.update({ |
| | | "HQCSchemeID_Patrol": checkStatus.data[0].HItemID |
| | | , "HQCSchemeNumber_Patrol": checkStatus.data[0].æ£éªæ¹æ¡ä»£ç |
| | | , "HQCSchemeName_Patrol": checkStatus.data[0].æ¹æ¡åç§° |
| | | }) |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | |
| | | obj.event = ""; |
| | | return false; |
| | |
| | | url: GetWEBURL() + "/LEMS/MES_Gy_RoutingBillList_Json", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"], "HBillSubType": HBillSubType }, |
| | | success: function (d) { |
| | | |
| | | //alert(JSON.stringify(d.data[0])) |
| | |
| | | else { |
| | | $("input[name='checkboxHStandard']").prop("checked", false); |
| | | } |
| | | |
| | | |
| | | //主表 |
| | | form.val("formData", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HBillNo": OperationType == 2 ? "" : d.data[0].åæ®å· |
| | |
| | | , "HWorkQty_S": d.data[i].产线产è½, "HSubStdEmpQty_S": d.data[i].产线人æ°, "HMouldNo": d.data[i].模å
·ç¼å·, "HChangeMould": d.data[i].æ¢æ¨¡æ¶é´, "HPackStd": d.data[i].å¨è½¬ç®±æ å |
| | | , "HPack": d.data[i].å¨è½¬ç®±, "HPutArea": d.data[i].ææ¾åº, "HMyWorkDays": d.data[i].çäº§å¨æ, "HMyFixWorkDays": d.data[i].åºå®ç产天æ°, "å·¥åº": d.data[i].å·¥åº |
| | | , "HProcID": d.data[i].hprocid, "å·¥ä½ä¸å¿ä»£ç ": d.data[i].å·¥ä½ä¸å¿ä»£ç , "HCenterID": d.data[i].HCenterID, "å·¥ä½ä¸å¿": d.data[i].å·¥ä½ä¸å¿åç§°, "HSupID": d.data[i].HSupID |
| | | , "ä¾åºå代ç ": d.data[i].ä¾åºå代ç , "ä¾åºå": d.data[i].ä¾åºå, "HSupFlag": d.data[i].å§å¤æ è®° == 0 ? false : true, "HTimeUnit": d.data[i].æ¶é´åä½, "HUnitTime": d.data[i].è¿è¡æ¶é´ |
| | | , "ä¾åºå代ç ": d.data[i].ä¾åºå代ç , "ä¾åºå": d.data[i].ä¾åºå, "HSupFlag": d.data[i].å§å¤æ è®° == 0 ? false : true, "HSortProcFlag": d.data[i].æäº§å·¥åºæ è®° == 0 ? false : true, "HTimeUnit": d.data[i].æ¶é´åä½, "HUnitTime": d.data[i].è¿è¡æ¶é´ |
| | | , "HWorkQty": d.data[i].å å·¥æ°é, "HPassRate": d.data[i].è¯ç, "HOverRate": d.data[i].è¶
颿¯ä¾, "HReadyTime": d.data[i].å夿¶é´, "HQueueTime": d.data[i].æéæ¶é´ |
| | | , "HMoveTime": d.data[i].转移æ¶é´, "HNextProcFlag": d.data[i].HNextProcFlag == 0 ? false : true, "HFlowProc": d.data[i].æµè½¬å·¥åº == 0 ? false : true, "HSubStdEmpQty": d.data[i].æ å人æ°, "HSubCanUseSourceQty": d.data[i].坿ä½è®¾å¤æ° |
| | | , "HFixPrice": d.data[i].ç产å®é¢, "HProcPrice": d.data[i].å å·¥åä»·, "HBadPrice": d.data[i].ä¸åæ ¼åä»·, "HWasterPrice": d.data[i].æ¥åºåä»·, "HStdFlag": d.data[i].æ åå®é¢ |
| | | , "HBeginDayQty": d.data[i].å¼å·¥ä½é天æ°, "HBeginFixQty": d.data[i].å¼å·¥ä½éåºæ°, "HFixWorkDays": d.data[i].ä¸éåºå®å¤©æ°, "HTrunWorkDays": d.data[i].ä¸é循ç¯å¨æ, "HReadyTimes": d.data[i].æ¬éå夿¶é´ |
| | | , "HICMOReadyTimes": d.data[i].æ¢åå夿¶é´, "HAutoTrunFlag": d.data[i].èªå¨ç§»è½¬, "HTechnologyParameter": d.data[i].å·¥èºåæ°, "HPicNum": d.data[i].å¾çº¸ç¼å·, "HProcCheckNote": d.data[i].æ¬å·¥åºç¡®è®¤è®°å½ |
| | | , "HProcWorkNum": d.data[i].ç¨åºå·, "HBadWHID": d.data[i].HBadWHID, "HBadWHName": d.data[i].HBadWHName, "HWasterWHID": d.data[i].HWasterWHID, "HWasterWHName": d.data[i].HWasterWHName |
| | | , "HWHID": d.data[i].HWHID, "HWHName": d.data[i].HWHName |
| | | , "HWHID": d.data[i].HWHID, "HWHName": d.data[i].HWHName, "HRemark": d.data[i].表ä½å¤æ³¨, "HWorkTimes_S": d.data[i].产ååä»¶å·¥æ¶ |
| | | , "HQCSchemeID_Fst": d.data[i].HQCSchemeID_Fst, "HQCSchemeNumber_Fst": d.data[i].é¦ä»¶æ£éªæ¹æ¡ä»£ç , "HQCSchemeName_Fst": d.data[i].é¦ä»¶æ£éªæ¹æ¡ |
| | | , "HQCSchemeID_Proc": d.data[i].HQCSchemeID_Proc, "HQCSchemeNumber_Proc": d.data[i].è½¬åºæ£éªæ¹æ¡ä»£ç , "HQCSchemeName_Proc": d.data[i].è½¬åºæ£éªæ¹æ¡ |
| | | , "HQCSchemeID_Patrol": d.data[i].HQCSchemeID_Patrol, "HQCSchemeNumber_Patrol": d.data[i].å·¡æ£æ£éªæ¹æ¡ä»£ç , "HQCSchemeName_Patrol": d.data[i].å·¡æ£æ£éªæ¹æ¡ |
| | | } |
| | | ) |
| | | } |
| | |
| | | for (var i = 0; i < d.data.length; i++) { |
| | | if (d.data[i].å§å¤æ è®°) { |
| | | $('#HSupFlag' + (i + 1)).attr("checked", true); |
| | | } |
| | | if (d.data[i].æäº§å·¥åºæ è®°) { |
| | | $('#HSortProcFlag' + (i + 1)).attr("checked", true); |
| | | } |
| | | if (d.data[i].HNextProcFlag) { |
| | | $('#HNextProcFlag' + (i + 1)).attr("checked", true); |
| | |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(num); |
| | | //var hentryid = linteridSub;//å表 æåºid |
| | | var sMainSub = sMainStr + ';' + sSubStr + ';' + OperationType + ";" + sessionStorage["HUserName"]; |
| | | var sMainSub = sMainStr + ';' + sSubStr + ';' + OperationType + ";" + sessionStorage["HUserName"] + ";" + HBillSubType; |
| | | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | |
| | | layer.msg("产åä»£ç æ²¡æéæ©!"); |
| | | return false; |
| | | } |
| | | if ($("#HMaterName").val() == "") { |
| | | layer.msg("产ååç§°ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HMaterModel").val() == "") { |
| | | layer.msg("è§æ ¼åå·ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HUnitName").val() == "") { |
| | | layer.msg("计éå使²¡æéæ©"); |
| | | return false; |
| | |
| | | // layer.msg("ç产çç»æ²¡æéæ©"); |
| | | // return false; |
| | | //} |
| | | var pc = 0; |
| | | var num = []; |
| | | for (var i = 0; i < option.data.length; i++) { |
| | | |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | //æäº§å·¥åºæ è®° |
| | | if (option.data[i]["HSortProcFlag"]) { |
| | | pc += 1; |
| | | } |
| | | |
| | | if (pc > 1) { |
| | | layer.msg("æäº§å·¥åºæ è®°åªè½éæ©ä¸ä¸ª,è¯·éæ°éæ©!"); |
| | | return false; |
| | | } |
| | | |
| | | //else { |
| | | // if (option.data[i]["HCenterID"] == "0") { |
| | | // layer.msg("第" + (i + 1) + "è¡:å·¥ä½ä¸å¿ä¸è½ä¸ºç©º!"); |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | return true; |
| | | } |
| | | |
| | |
| | | }) |
| | | } |
| | | |
| | | //ä¸ä¸è¡ |
| | | function btn_up(data) { |
| | | if (data.length != 1) { |
| | | layer.msg("è¯·éæ©ä¸è¡æ°æ®ï¼"); |
| | | } else if (option.data[0]["HProcNo"] == data[0]["HProcNo"]) { |
| | | layer.msg("é¦è¡æ°æ®æ æ³ç§»å¨ï¼"); |
| | | } else { |
| | | var tables = []; |
| | | for (var i = 0; i < option.data.length; i++) { |
| | | if (option.data[i]["HProcNo"] == data[0]["HProcNo"]) { |
| | | tables.push(option.data[i - 1]); |
| | | data[0].LAY_CHECKED = true; |
| | | option.data[i - 1] = data[0]; |
| | | option.data[i] = tables[0]; |
| | | table.render(option); |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | //ä¸ä¸è¡ |
| | | function btn_under(data) { |
| | | if (data.length != 1) { |
| | | layer.msg("è¯·éæ©ä¸è¡æ°æ®ï¼"); |
| | | } else if (option.data[option.data.length - 1]["HProcNo"] == data[0]["HProcNo"]) { |
| | | layer.msg("æ«è¡æ°æ®æ æ³ç§»å¨ï¼"); |
| | | } else { |
| | | var tables = []; |
| | | for (var i = 0; i < option.data.length; i++) { |
| | | if (option.data[i]["HProcNo"] == data[0]["HProcNo"]) { |
| | | tables.push(option.data[i + 1]); |
| | | data[0].LAY_CHECKED = true; |
| | | option.data[i + 1] = data[0]; |
| | | option.data[i] = tables[0]; |
| | | table.render(option); |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | //å·æ°æµæ°´å· |
| | | function btn_Refresh(data) { |
| | | for (var i = 0; i < option.data.length; i++) { |
| | | option.data[i]["HProcNo"] = (i + 1) * 10; |
| | | } |
| | | table.render(option); |
| | | } |
| | | |
| | | //æ¾ç¤ºåæ°æ® |
| | | function DisPlay_HideColumn() { |
| | | $.ajax({ |
| | |
| | | async: false, |
| | | success: function (data1) { |
| | | if (data1.data.length != 0) { |
| | | |
| | | |
| | | var dataCol = [];//æ°æ®åºæ¥è¯¢åºçåæ°æ® |
| | | var titleData = ["åæ®ID", "HMouldID", "hsubid", "HManagerID", "æºå主å
ç ", "æºååå
ç "];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | var titleData = ["ç¨åºå·", "æ¬å·¥åºç¡®è®¤è®°å½", "èªå¨ç§»è½¬", "æ¢åå夿¶é´", "æ¬éå夿¶é´", "ä¸é循ç¯å¨æ", "ä¸éåºå®å¤©æ°", "å¼å·¥ä½éï¼åºæ°ï¼", "å¼å·¥ä½éï¼å¤©æ°ï¼", "æ åå®é¢", "æ¥åºåä»·", "ä¸åæ ¼åä»·", "å·¥åºå·¥ä»·", "ç产å®é¢", "坿ä½è®¾å¤æ°", "æ å人æ°", "æµè½¬å·¥åº", "ä¸éæµè½¬å·¥åº", "åºå®ç产天æ°", "çäº§å¨æ", "ææ¾åº", "å¨è½¬ç®±", "å¨è½¬ç®±æ å", "æ¢æ¨¡æ¶é´", "转移æ¶é´", "æéæ¶é´", "å夿¶é´", "产线人æ°", "产线产è½", "产线ä¸å¿", "è¯ç", "å å·¥æ°é", "è¿è¡æ¶é´", "æ¶é´åä½", "å¾çº¸ç¼å·", "模å
·ç¼å·", "è¯åä»", "æ¥åºåä»", "ä¸è¯åä»", "å·¥åºç±»å"];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | | |
| | |
| | | }) |
| | | } |
| | | //#endregion |
| | | //å°urlåæ°ä¸ç䏿乱ç éæ°è½¬æ¢æä¸æ |
| | | function getParams(key) { |
| | | var reg = new RegExp("(^|&)" + key + "=([^&]*)(&|$)"); |
| | | //妿å°åæ ä¸åºç°ä¸æåè¿è¡ç¼ç |
| | | var r = encodeURI(window.location.search).substr(1).match(reg); |
| | | if (r != null) { |
| | | //å°ä¸æç¼ç çåç¬¦éæ°åæä¸æ |
| | | return decodeURI(unescape(r[2])); |
| | | } |
| | | return null; |
| | | }; |
| | | |
| | | }); |
| | | |
| | | //ç©æ |
| | | function GetMaterValue(obj) { |
| | | //è·åæ°æ® |
| | | $("#HMaterID").val(obj[0].HItemID);//ç©æid |
| | | $("#HMaterName").val(obj[0].ç©æåç§°);//ç©æåç§° |
| | | $("#HMaterNumber").val(obj[0].ç©æä»£ç );//ç©æä»£ç |
| | | $("#HMaterModel").val(obj[0].è§æ ¼åå·);//è§æ ¼åå· |
| | | $("#HUnitID").val(obj[0].HUnitID);//计éåä½id |
| | | $("#HUnitName").val(obj[0].计éåä½åç§°);//计éåä½åç§° |
| | | if ($("#HName").val() == "") { |
| | | $("#HName").val(obj[0].ç©æä»£ç ); |
| | | } |
| | | } |
| | | |
| | | //计éåä½ |
| | | function GetUnitValue(obj) { |
| | | $("#HUnitID").val(obj[0].HItemID);//计éåä½id |
| | | $("#HUnitName").val(obj[0].计éåä½åç§°);//计éåä½åç§° |
| | | } |
| | | |
| | | //å·¥åº |
| | | function GetProcessValue(obj) { |
| | | OptionData= obj; |
| | | } |
| | | |
| | | //å·¥ä½ä¸å¿ |
| | | function GetWorkCenterValue(obj) { |
| | | OptionData = obj; |
| | | } |
| | | |
| | | //ä¾åºå |
| | | function GetHSupNameValue(obj) { |
| | | OptionData = obj; |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |