| | |
| | | <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <style> |
| | | .main-btn { /*头é¨ä¸»æé®*/ |
| | | padding: 0 2px; /*è°æ´æé®å·¦å³ç©ºé大å°*/ |
| | |
| | | line-height: 30px; |
| | | } |
| | | |
| | | .maintitle { |
| | | background-color: #1492ff; |
| | | color: #fff; |
| | | padding: 5px 10px; |
| | | border: none; |
| | | border-radius: 4px; |
| | | text-align: center; |
| | | font-size: 24px; |
| | | } |
| | | |
| | | .btn-title { |
| | | font-size: 16px; |
| | | } |
| | | /*.table-select { |
| | | /* 鲿¢ä¸ææ¡ç䏿å表被éè---å¿
须设置--- */ |
| | | .layui-table-cell { |
| | | overflow: visible !important; |
| | | } |
| | | /* 使å¾ä¸ææ¡ä¸åå
æ ¼å好åé */ |
| | | td .layui-form-select { |
| | | margin-top: -10px; |
| | | margin-left: -15px; |
| | | margin-right: -15px; |
| | | }*/ |
| | | } |
| | | |
| | | .layui-form-item .layui-inline { |
| | | margin-top: 5px; |
| | | margin-bottom: 5px; |
| | | margin-right: 0px; |
| | | } |
| | | |
| | | .layui-form-label { |
| | | width: 25%; |
| | | } |
| | | </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 class="maintitle">å·¥èºè·¯çº¿</div> |
| | | <div style="padding: 10px;"> |
| | | <button class="layui-btn layuiadmin-btn-order main-btn" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-print layuiadmin-button-btn"><span class="btn-title">é¢è§</span></i> |
| | | </button> |
| | | <button class="layui-btn layuiadmin-btn-order main-btn" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-add-1 layuiadmin-button-btn"><span class="btn-title">æ°å¢</span></i> |
| | | </button> |
| | | <button class="layui-btn layuiadmin-btn-order main-btn" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-edit layuiadmin-button-btn"><span class="btn-title">ä¿®æ¹</span></i> |
| | | </button> |
| | | <button class="layui-btn layuiadmin-btn-order main-btn" type="button" lay-submit="" lay-filter="btnSave" id="btnSave"> |
| | | <i class="layui-icon layui-icon-delete layuiadmin-button-btn"><span class="btn-title">ä¿å</span></i> |
| | | </button> |
| | | <div style="padding: 10px; "> |
| | | <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="btnSave" id="btnSave">ä¿å</button> |
| | | </div> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill" style="margin-top: 80px;"> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill"> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | | <li lay-id="1" style="padding:1px;" class="layui-this">åºæ¬ä¿¡æ¯</li> |
| | | <li lay-id="2" style="padding:1px;">å
¶ä»ä¿¡æ¯</li> |
| | |
| | | <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" id="HBillNo" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HInterID" id="HInterID"> |
| | | <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="HPRDORGID" id="HPRDORGID" lay-verify="HPRDORGID"> |
| | | </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="date" class="layui-input" name="HDate" id="HDate" style="padding-left: 32px;"> |
| | | <input type="date" class="layui-input" lay-verify="HDate" name="HDate" id="HDate" style="padding-left: 48px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å·¥èºè·¯çº¿åç§°</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HName" id="HName"> |
| | | <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-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="HMaterNumber" id="HMaterNumber" style="background-color:#efefef4d;width: 61%;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: left;margin-right: 3px;background-color:gainsboro;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i> |
| | | <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;"> |
| | | <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> |
| | | <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" id="HMaterName" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HMaterID" id="HMaterID" value="0"> |
| | | <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> |
| | | <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" 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-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="HUnitName" id="HUnitName" style="background-color:#efefef4d;width: 61%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HUnitID" id="HUnitID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchProc" id="btnSearchProc" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i> |
| | | <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"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnUnit" id="btnUnit" 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="HRoutingGroupID" id="HRoutingGroupID" value="0" style="background-color:#efefef4d;width: 61%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchSup" id="btnSearchSup" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i> |
| | | <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">æ¶é´åä½</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;width: 182px;"> |
| | | <select name="" id=""> |
| | | <div class="layui-input-block" style="margin-left: 120px;width: 184px;"> |
| | | <select name="HMainTimeUnit" lay-verify="HMainTimeUnit" id="HMainTimeUnit"> |
| | | <option value="å°æ¶">å°æ¶</option> |
| | | <option value="天">天</option> |
| | | </select> |
| | | </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="HMaterTexture" lay-verify="HMaterTexture" id="HMaterTexture" value="" onmouseover="this.title=this.value"> |
| | | </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" name="HMainProcID" id="HMainProcID" value="0" style="background-color:#efefef4d;width: 61%;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: left;margin-right: 3px;background-color:gainsboro;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i> |
| | | <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> |
| | | </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="HMainCenterID" id="HMainCenterID" value="0" style="background-color:#efefef4d;width: 61%;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: left;margin-right: 3px;background-color:gainsboro;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i> |
| | | <input type="text" class="layui-input" lay-verify="HMainCenterIDName" name="HMainCenterIDName" id="HMainCenterIDName" value="" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HMainCenterID" lay-verify="HMainCenterID" id="HMainCenterID" 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="btnWorkCenter" id="btnWorkCenter" 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="HGroupID" id="HGroupID" value="0" style="background-color:#efefef4d;width: 61%;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: left;margin-right: 3px;background-color:gainsboro;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i> |
| | | <input type="text" class="layui-input" name="HGroupIDName" lay-verify="HGroupIDName" id="HGroupIDName" 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" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnGroup" id="" 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-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="HMainWorkQty" id="HMainWorkQty" value="0" onmouseover="this.title=this.value" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HMainWorkQty" lay-verify="HMainWorkQty" id="HMainWorkQty" value="0" 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="HMainUnitTime" id="HMainUnitTime" value="0"> |
| | | <input type="hidden" value="å°æ¶" name="HMainTimeUnit" id="HMainTimeUnit"> |
| | | <input type="text" class="layui-input" name="HMainUnitTime" lay-verify="HMainUnitTime" id="HMainUnitTime" value="0"> |
| | | <!--<input type="hidden" value="å°æ¶" name="HMainTimeUnit" id="HMainTimeUnit">--> |
| | | </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="HMainPrice" id="HMainPrice" value="0"> |
| | | <input type="text" class="layui-input" name="HMainPrice" id="HMainPrice" lay-verify="HMainPrice" 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="HVerNum" lay-verify="HVerNum" id="HVerNum" value="" onmouseover="this.title=this.value"> |
| | | </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="HStdSourceQty" id="HStdSourceQty" value="0" style="background-color:#efefef4d;" readonly> |
| | | <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" value="0" style="background-color:#efefef4d;" readonly> |
| | | <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" name="HDelSourceRate" id="HDelSourceRate" value="0" style="background-color:#efefef4d;" readonly> |
| | | <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-inline" style="width: 56%;"> |
| | | <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="HRemark" id="HRemark" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value"> |
| | | <input type="hidden" class="layui-input" name="HMaker" id="HMaker" lay-verify="HMaker" value=""> |
| | | <input type="text" class="layui-input" name="HRemark" id="HRemark" lay-verify="HRemark" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-block" style="margin-left: 70px;"> |
| | | <input type="checkbox" name="checkboxHStandard" id="checkboxHStandard" title="æ¯å¦é»è®¤å·¥èº" lay-skin="primary" lay-filter="checkboxHStandard"> |
| | | <input type="hidden" value="false" name="HStandard" id="HStandard"> |
| | | <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> |
| | | |
| | | <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | |
| | | <!--<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 type="text/html" id="HSupColor"> |
| | | {{# if(d.HSupFlag === "true"){ }} |
| | | <span style="color: white;background-color:#5FB878;">{{ d.HSupFlag }}</span> |
| | | {{# } else { }} |
| | | <span style="color: white;background-color:red;">{{ d.HSupFlag }}</span> |
| | | {{# } }} |
| | | |
| | | <!--è¡ä¸æéæ©(å·¥åºç±»å)--> |
| | | <script type="text/html" id="HProcType"> |
| | | <select name="HProcType" lay-filter="HProcType" id="HProcType{{d.LAY_TABLE_INDEX+1}}"> |
| | | <option value="主工åº">主工åº</option> |
| | | <option value="è¾
å©å·¥åº">è¾
å©å·¥åº</option> |
| | | </select> |
| | | </script> |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | |
| | | <!--å¤éæ¡ å§å¤åå©--> |
| | | <script type="text/html" id="HSupFlag"> |
| | | <div class="layui-input-block" style="margin-left: 20px;"> |
| | | <input type="checkbox" name="HSupFlag" lay-filter="HSupFlag" id="HSupFlag{{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" lay-filter="HNextProcFlag" id="HNextProcFlag{{d.LAY_TABLE_INDEX+1}}" lay-skin="primary"> |
| | | </div> |
| | | </script> |
| | | |
| | | <!--å¤éæ¡ æµè½¬å·¥åº--> |
| | | <script type="text/html" id="HFlowProc"> |
| | | <div class="layui-input-block" style="margin-left: 20px;"> |
| | | <input type="checkbox" name="HFlowProc" lay-filter="HFlowProc" id="HFlowProc{{d.LAY_TABLE_INDEX+1}}" lay-skin="primary"> |
| | | </div> |
| | | </script> |
| | | |
| | | <!--å¤éæ¡ æ åå®é¢--> |
| | | <script type="text/html" id="HStdFlag"> |
| | | <div class="layui-input-block" style="margin-left: 20px;"> |
| | | <input type="checkbox" name="HStdFlag" lay-filter="HStdFlag" id="HStdFlag{{d.LAY_TABLE_INDEX+1}}" lay-skin="primary"> |
| | | </div> |
| | | </script> |
| | | |
| | | <!--å¤éæ¡ èªå¨ç§»è½¬--> |
| | | <script type="text/html" id="HAutoTrunFlag"> |
| | | <div class="layui-input-block" style="margin-left: 20px;"> |
| | | <input type="checkbox" name="HAutoTrunFlag" lay-filter="HAutoTrunFlag" id="HAutoTrunFlag{{d.LAY_TABLE_INDEX+1}}" lay-skin="primary"> |
| | | </div> |
| | | </script> |
| | | |
| | | <script> |
| | | |
| | | layui.config({ |
| | |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'laydate', 'table', 'element'], function () { |
| | | |
| | | //#region å
Œ
±åé |
| | | |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | |
| | | , form = layui.form |
| | | , element = layui.element; |
| | | |
| | | //å®ä¹å
¨å±åé |
| | | var HReasonName, ReasonID, EmpName, SQProcName, |
| | | ProcID, ZRProcName, QRName; |
| | | |
| | | //åå§è¡¨æ ¼æ°æ® |
| | | var rowdata = [{ |
| | | "HProcNo": "", "HProcID_S": 0, "HProcType": "主工åº", "HCenterID_S": 0, "HCenterID_SName": "" |
| | | , "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 |
| | | , "HWorkQty": 0, "HPassRate": 0, "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": "" |
| | | }]; |
| | | |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | | |
| | | //å¶å人 |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | |
| | | //夿æ¯å¦ç»å½ æªç»å½åè·³å°ç»å½é¡µ |
| | | if (sessionStorage.login != "login") { |
| | | layer.confirm("ç»å½å¤±æï¼è¯·éæ°ç»å½ï¼", { |
| | | icon: 4, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['éæ°ç»å½'] |
| | | }, function () { window.location.href = "../../user/login.html"; }); |
| | | } |
| | | //if (sessionStorage.login != "login") { |
| | | // layer.confirm("ç»å½å¤±æï¼è¯·éæ°ç»å½ï¼", { |
| | | // icon: 4, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['éæ°ç»å½'] |
| | | // }, function () { window.location.href = "../../user/login.html"; }); |
| | | //} |
| | | |
| | | var params = getUrlVars(); |
| | | //è·ååæ° |
| | | 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; |
| | | } |
| | | |
| | | var linterid = params[params[0]]; //ä»åæ°ä¸è·å åæ®å
ç |
| | | var OperationType = params[params[0]]; //ä»åæ°ä¸è·å æ°æ®ç±»å æ·»å ä¿å |
| | | var linterid = params[params[1]]; //ä»åæ°ä¸è·å åæ®å
ç |
| | | var lSourceBillType = params[params[2]]; //ä»åæ®è·å æºåç±»å |
| | | var linteridSub = params[params[3]]; //ä»åæ°è·å åè¡¨çº§å« |
| | | |
| | | //夿æ¯å¦æ°å¢ |
| | | if (linterid == null || linterid == 0) { |
| | | linteridSub = -1; |
| | | OperationType = 1; |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | |
| | | }); |
| | | } |
| | | else {//å¦æä¿®æ¹åèµ°ä¸é¢ new |
| | | RoadBillMain(linterid); |
| | | RoadBillSub(linterid); |
| | | RoadBillMain(linterid, linteridSub); |
| | | //RoadBillSub(linterid); |
| | | } |
| | | //åå§è¡¨æ ¼æ°æ® |
| | | var rowdata = [{ |
| | | "HProcNo": "", "å·¥åº": "", "HProcID": "0", "å·¥ä½ä¸å¿ä»£ç ": "", "å·¥ä½ä¸å¿": "", "HSupID": "0", "ä¾åºå代ç ": "" |
| | | , "ä¾åºå": "", "HSupFlag": "false", "HWorkQty": "", "HPassRate": "", "HRemark": "" |
| | | }]; |
| | | |
| | | |
| | | var option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , limit: 500 //æ¯é¡µé»è®¤æ¾ç¤ºçæ°é |
| | | , cellMinWidth: 90 |
| | | , cellMinWidth: 120 |
| | | , height: 400 |
| | | , cols: [[ //表头 |
| | | { type: 'checkbox', totalRowText: 'å计è¡' } |
| | | , { type: 'numbers', title: 'åºå·', totalRow: true } |
| | | , { field: 'HProcNo', title: 'æµæ°´å·', edit: 'text' } |
| | | , { field: 'å·¥åº', title: 'å·¥åº', edit: 'text' } |
| | | , { field: 'HProcID', title: 'å·¥åºID' }//, hide: true |
| | | , { field: 'å·¥ä½ä¸å¿ä»£ç ', title: 'å·¥ä½ä¸å¿ä»£ç ', edit: 'text', width: 115 } |
| | | , { field: 'å·¥ä½ä¸å¿', title: 'å·¥ä½ä¸å¿', edit: 'text' } |
| | | , { field: 'HSupID', title: 'ä¾åºåID' } |
| | | , { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ', edit: 'text', width: 110 } |
| | | , { field: 'ä¾åºå', title: 'ä¾åºå', edit: 'text' } |
| | | , { field: 'HSupFlag', title: 'å¤åæ è®°', templet: '#HSupColor', event: "HSupFlagEvent" } |
| | | , { field: 'HWorkQty', title: 'å å·¥æ°é', edit: 'text' } |
| | | , { field: 'HPassRate', title: 'è¯ç', edit: 'text' } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | | , { field: 'HProcID_S', title: '工段', edit: 'text' } |
| | | , { field: 'HProcType', title: 'å·¥åºç±»å', templet: '#HProcType' }//éæ© |
| | | , { field: 'HCenterID_SName', title: '产线ä¸å¿', edit: 'text', event: "CheckHCenterID_S" }//f7 |
| | | , { field: 'HCenterID_S', title: '产线ä¸å¿id', hide: true }//hide: true |
| | | , { field: 'HWorkQty_S', title: '产线产è½', edit: 'text' } |
| | | , { field: 'HSubStdEmpQty_S', title: '产线人æ°', edit: 'text' } |
| | | , { field: 'HMouldNo', 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: 'å·¥åº', title: 'å·¥åº', edit: 'text', event: "CheckHProcID" }//f7 |
| | | , { field: 'HProcID', title: 'å·¥åºID', hide: true }//, hide: true |
| | | , { field: 'å·¥ä½ä¸å¿ä»£ç ', title: 'å·¥ä½ä¸å¿ä»£ç ' }//ä¸å¡« |
| | | , { field: 'HCenterID', title: 'å·¥ä½ä¸å¿id', hide: true }//, hide: true |
| | | , { field: 'å·¥ä½ä¸å¿', title: 'å·¥ä½ä¸å¿', edit: 'text', event: "CheckHCenterID" }//f7 |
| | | , { field: 'HSupID', title: 'ä¾åºåID', hide: true } |
| | | , { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ' } |
| | | , { field: 'ä¾åºå', title: 'ä¾åºå', edit: 'text', width: 110, event: "CheckHSupID" }//f7 |
| | | , { field: 'HSupFlag', title: 'å¤åæ è®°', templet: "#HSupFlag" }//checkbox |
| | | , { field: 'HTimeUnit', title: 'æ¶é´åä½', edit: 'text' } |
| | | , { field: 'HUnitTime', title: 'è¿è¡æ¶é´', edit: 'text' } |
| | | , { field: 'HWorkQty', title: 'å å·¥æ°é', edit: 'text' }//é»è®¤ |
| | | , { field: 'HPassRate', title: 'è¯ç', edit: 'text' }//é»è®¤ |
| | | , { field: 'HOverRate', title: 'è¶
颿¯ä¾', edit: 'text' } |
| | | , { field: 'HReadyTime', title: 'å夿¶é´', edit: 'text' } |
| | | , { field: 'HQueueTime', title: 'æéæ¶é´', edit: 'text' } |
| | | , { field: 'HMoveTime', 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: 'HTechnologyParameter', title: 'å·¥èºåæ°', edit: 'text' } |
| | | , { field: 'HPicNum', title: 'å¾çº¸ç¼å·', edit: 'text' } |
| | | , { field: 'HProcCheckNote', title: 'æ¬å·¥åºç¡®è®¤è®°å½', edit: 'text' } |
| | | , { field: 'HProcWorkNum', title: 'ç¨åºå·', edit: 'text' } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo' } |
| | | ]] |
| | | //, done: function (res, curr, count) { |
| | | // $(".layui-table-body, .layui-table-box, .layui-table-cell").css('overflow', 'visible'); |
| | | // option.data = res.data; |
| | | // //廿䏿æ¡å¤±ç¦äºä»¶å¦åå¨ä¸ææ¡éè¾å
¥å¼ |
| | | // $('.layui-form-select').find('input').unbind("blur"); |
| | | // //è¡¨æ ¼éè½½åæ¾ä¸ææ¡éçæ°æ® |
| | | // $('tr').each(function (e) { |
| | | |
| | | // var $cr = $(this); |
| | | // var dataIndex = $cr.attr("data-index"); |
| | | // $.each(option.data, function (index, value) { |
| | | // //alert(value) |
| | | // if (value.LAY_TNDEX == dataIndex) { |
| | | // $cr.find('input').val(value.HProcType); |
| | | // } |
| | | // }); |
| | | // }); |
| | | //} |
| | | }; |
| | | } |
| | | |
| | | //åå§å è½½è¡¨æ ¼ |
| | | option.data = rowdata; |
| | | table.render(option); |
| | | |
| | | //#endregion |
| | | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | |
| | | //éæ©äº§åä»£ç æé® |
| | | form.on('submit(btnSearchMater)', function () { |
| | | get_checkSearchMater(); |
| | | }); |
| | | |
| | | //éæ©å·¥åºæé® |
| | | form.on('submit(btnSearchProc)', function () { |
| | | get_checkSearchProc(); |
| | | }); |
| | | |
| | | //éæ©è®¡éåä½æé® |
| | | form.on('submit(btnUnit)', function () { |
| | | get_checkUnit(); |
| | | }); |
| | | |
| | | //éæ©ç产çç»æé® |
| | | form.on('submit(btnGroup)', function () { |
| | | get_checkGroup(); |
| | | }); |
| | | |
| | | //鿩工ä½ä¸å¿æé® |
| | | form.on('submit(btnWorkCenter)', function () { |
| | | get_checkWorkCenter(); |
| | | }); |
| | | |
| | | //鿩工èºè·¯çº¿å¤§ç±»æé® |
| | | form.on('submit(btnRoutingGroup)', function () { |
| | | get_checkRoutingGroup(); |
| | | }); |
| | | |
| | | |
| | | //æ¯å¦é»è®¤å·¥èº |
| | | form.on('checkbox(checkboxHStandard)', function (data) { |
| | | $("#HStandard").val(data.elem.checked); |
| | | }); |
| | | //æ¯å¦å¯ç¨ |
| | | form.on('checkbox(checkboxHUseFlag)', function (data) { |
| | | $("#HUseFlag").val(data.elem.checked); |
| | | |
| | | //#region å¤éæ¡ |
| | | //å§å¤åå© |
| | | form.on('checkbox(HSupFlag)', 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.HSupFlag = data.elem.checked;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //ä¸éæµè½¬å·¥åº |
| | | form.on('checkbox(HNextProcFlag)', 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.HNextProcFlag = data.elem.checked;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //æµè½¬å·¥åº |
| | | form.on('checkbox(HFlowProc)', 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.HFlowProc = data.elem.checked;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //æ åå®é¢ |
| | | form.on('checkbox(HStdFlag)', 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.HStdFlag = data.elem.checked;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //èªå¨ç§»è½¬ |
| | | form.on('checkbox(HAutoTrunFlag)', 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.HAutoTrunFlag = data.elem.checked;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | //#endregion |
| | | |
| | | //è¡éæ©å¤çï¼å·¥åºç±»åï¼ |
| | | form.on('select(HProcType)', 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.HProcType = data.value;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | |
| | | //头工å
·æ äºä»¶ |
| | | table.on('toolbar(mainTable)', function (obj) { |
| | |
| | | , data = checkStatus.data; |
| | | //æ°å¢è¡è¡¨æ ¼æ°æ® |
| | | var NewRow = { |
| | | "HProcNo": "", "å·¥åº": "", "HProcID": "0", "å·¥ä½ä¸å¿ä»£ç ": "", "å·¥ä½ä¸å¿": "", "HSupID": "0", "ä¾åºå代ç ": "" |
| | | , "ä¾åºå": "", "HSupFlag": "false", "HWorkQty": "", "HPassRate": "", "HRemark": "" |
| | | "HProcNo": "", "HProcID_S": 0, "HProcType": "主工åº", "HCenterID_S": 0, "HCenterID_SName": "" |
| | | , "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 |
| | | , "HWorkQty": 0, "HPassRate": 0, "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": "" |
| | | }; |
| | | switch (obj.event) { |
| | | case 'btn-AddLine': |
| | | table.cache["mainTable"].push(NewRow); |
| | | option.data = table.cache["mainTable"]; |
| | | |
| | | table.render(option); |
| | | |
| | | for (var i = 1; i <= option.data.length; i++) { |
| | | $('#HProcType' + i + '').find("option[value='" + option.data[i - 1].HProcType + "']").attr("selected", true); |
| | | //å§å¤åå© |
| | | if (option.data[i - 1].HSupFlag) { |
| | | $('#HSupFlag' + i + '').attr("checked", true); |
| | | } |
| | | //ä¸éæµè½¬å·¥åº |
| | | if (option.data[i - 1].HNextProcFlag) { |
| | | $('#HNextProcFlag' + i + '').attr("checked", true); |
| | | } |
| | | //æµè½¬å·¥åº |
| | | if (option.data[i - 1].HFlowProc) { |
| | | $('#HFlowProc' + i + '').attr("checked", true); |
| | | } |
| | | //æ åå®é¢ |
| | | if (option.data[i - 1].HStdFlag) { |
| | | $('#HStdFlag' + i + '').attr("checked", true); |
| | | } |
| | | //èªå¨ç§»è½¬ |
| | | if (option.data[i - 1].HAutoTrunFlag) { |
| | | $('#HAutoTrunFlag' + i + '').attr("checked", true); |
| | | } |
| | | } |
| | | form.render('select'); |
| | | form.render('checkbox'); |
| | | break; |
| | | case 'btn-CopyLine': |
| | | var copydata = JSON.stringify(data); |
| | |
| | | table.cache["mainTable"].push(JSON.parse(copyrow));//å°å¤å¶çè¡å¼ºè½¬æjson追å å°è¡¨æ ¼ä¸ |
| | | option.data = table.cache["mainTable"];//å°æ°æ®ç»å®å°dataä¸ |
| | | table.render(option);//å°æ°æ®æ¸²æå°è¡¨æ ¼ä¸ |
| | | //layer.alert(copyrow); |
| | | for (var i = 1; i <= option.data.length; i++) { |
| | | $('#HProcType' + i + '').find("option[value='" + option.data[i - 1].HProcType + "']").attr("selected", true); |
| | | //å§å¤åå© |
| | | if (option.data[i - 1].HSupFlag) { |
| | | $('#HSupFlag' + i + '').attr("checked", true); |
| | | } |
| | | //ä¸éæµè½¬å·¥åº |
| | | if (option.data[i - 1].HNextProcFlag) { |
| | | $('#HNextProcFlag' + i + '').attr("checked", true); |
| | | } |
| | | //æµè½¬å·¥åº |
| | | if (option.data[i - 1].HFlowProc) { |
| | | $('#HFlowProc' + i + '').attr("checked", true); |
| | | } |
| | | //æ åå®é¢ |
| | | if (option.data[i - 1].HStdFlag) { |
| | | $('#HStdFlag' + i + '').attr("checked", true); |
| | | } |
| | | //èªå¨ç§»è½¬ |
| | | if (option.data[i - 1].HAutoTrunFlag) { |
| | | $('#HAutoTrunFlag' + i + '').attr("checked", true); |
| | | } |
| | | } |
| | | form.render('select'); |
| | | form.render('checkbox'); |
| | | } |
| | | break; |
| | | } |
| | |
| | | |
| | | //è¡å
äºä»¶ |
| | | table.on('tool(mainTable)', function (obj) { |
| | | var data = obj.data; |
| | | var rowIndex = $(obj.tr).attr("data-index"); |
| | | if (obj.event === 'del') { |
| | | layer.confirm('ççå é¤è¡åï¼', function (index) { |
| | | console.log("ç´¢å¼ä¸º:" + rowIndex); |
| | | if (rowIndex === '0') { |
| | | layer.msg('é¦è¡æ æ³å é¤ï¼ï¼ï¼'); |
| | | } else { |
| | | obj.del(); |
| | | option.data = table.cache["mainTable"];//å°æ°æ®ç»å®å°dataä¸ |
| | | table.reload(option); |
| | | layer.close(index); |
| | | } |
| | | }); |
| | | } |
| | | //å廿¹åå¤åæ è®°å¼ |
| | | if (obj.event === 'HSupFlagEvent') { |
| | | var flag = obj.data.HSupFlag; |
| | | if (flag === "false") { |
| | | flag = "true"; |
| | | } |
| | | else if (flag === "true") { |
| | | flag = "false"; |
| | | } |
| | | else { |
| | | flag = "true"; |
| | | } |
| | | obj.update({ |
| | | HSupFlag: flag |
| | | }); |
| | | } |
| | | set_GridDelete(obj); //è¡å
å é¤ |
| | | set_GridCellCheck(obj); //è¡å
å¿«æ·é®çé |
| | | |
| | | }); |
| | | |
| | | $('#HName').on('keydown', function (event) {//å·¥èºè·¯çº¿åç§° |
| | |
| | | } |
| | | }); |
| | | |
| | | |
| | | //ä¿åæäº¤ |
| | | form.on('submit(btnSave)', function (data) {//æäº¤ |
| | | //var tableData = data.field; |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | | var sMainSub = sMainStr + ';' + sSubStr; |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Gy_RoutingBill/AddBill", |
| | | //url:"http://localhost:12761/Gy_RoutingBill/AddBill", |
| | | async: true, |
| | | data: { "sMainSub": sMainSub }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { |
| | | //layer.confirm(data.Message, { |
| | | // icon: 1, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['æ°å¢'], |
| | | // btn2: function () { |
| | | // //parent.layui.admin.events.closeThisTabs();å
³éé¡µç¾ |
| | | // //window.close();//å
³é页é¢ï¼æµè§å¨ææï¼PDAæ æ |
| | | // parent.location.href = "../../../views/index.html" |
| | | // }//å
³é |
| | | //}, function () { window.location.reload(); });//æ°å¢ |
| | | 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: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | if (AllowLoadData(data)) { |
| | | set_AddNew(data); |
| | | } |
| | | }); |
| | | |
| | | |
| | | function RoadBillMain(linterid)//å 载表头 |
| | | { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetPonderationBill", |
| | | type: "GET", |
| | | data: { "HInterID": linterid }, |
| | | success: function (d) { |
| | | // console.log(d.data); |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | $("#HSourceBillNo").val(d.data[0].HSourceBillNo); |
| | | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | //éæ©ä¸è¯åå |
| | | form.on('submit(HBadReasonID-BT)', function () {//éæ©ä»åº |
| | |
| | | //window.close();//å
³éå½å页 |
| | | }) |
| | | |
| | | form.on('submit(Saver)', function (data) {//ä¿å |
| | | |
| | | form.on('submit(Saver)', function (data) { //ä¿å |
| | | //debugger; |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | |
| | | } |
| | | }); |
| | | }); |
| | | function f_alert(sMsg) { |
| | | layer.alert(sMsg, { icon: 5 }); |
| | | |
| | | } |
| | | |
| | | //çå¬æäº¤ |
| | | form.verify({ |
| | | numberOrEmpty: function (value, item) { |
| | | |
| | | // if (value != '') { |
| | | if (!/^\d+$/.test(value)) { |
| | | return 'ä¸è½ä¸ºç©ºææ°åæè
0'; |
| | |
| | | }); |
| | | |
| | | |
| | | }); |
| | | //å®ä¹å
¨å±åé |
| | | var HReasonName, ReasonID, EmpName, SQProcName, |
| | | ProcID, ZRProcName, QRName |
| | | ; |
| | | function GetHReasonValue(obj) //è¿åä¸è¯åå |
| | | { |
| | | HReasonName = obj[0].HName; |
| | | ReasonID = obj[0].HItemID; |
| | | } |
| | | function GetHPlanValue(obj) { //è¿åå·¥åºè®¡åå |
| | | $("#HMainSourceInterID").val(obj[0].hmainid); |
| | | $("#HMainSourceEntryID").val(obj[0].hsubid); |
| | | $("#HMainSourceBillNo").val(obj[0].åæ®å·); |
| | | $("#HMaterID").val(obj[0].HMaterID); |
| | | $("#HMaterNumber").val(obj[0].ç©æä»£ç ); |
| | | $("#HMater").val(obj[0].ç©æåç§°); |
| | | $("#HCenterID").val(obj[0].HCenterID); |
| | | $("#HWorkCenterName").val(obj[0].å·¥ä½ä¸å¿); |
| | | $("#HModel").val(obj[0].è§æ ¼åå·); |
| | | $("#HPlanQty").val(obj[0].è®¡åæ°é); |
| | | |
| | | |
| | | } |
| | | function GetHKeeperValue(obj) { //è¿å责任人 |
| | | EmpName = obj[0].HName; |
| | | // $("#HEmpName").val(obj[0].HName); |
| | | //$("#HItemID").val(obj[0].HItemID); |
| | | } |
| | | function GetHProcValue(obj) { //è¿åç³è¯·å·¥åº |
| | | SQProcName = obj[0].å·¥åº; |
| | | ProcID = obj[0].HItemID; |
| | | //$("#HSQProcName").val(obj[0].å·¥åº); |
| | | //$("#HProcID").val(obj[0].HItemID); |
| | | } |
| | | function GetHZRValue(obj) { //è¿åè´£ä»»å·¥åº |
| | | ZRProcName = obj[0].å·¥åº; |
| | | //$("#HZRProcName").val(obj[0].å·¥åº); |
| | | //$("#HItemID").val(obj[0].HItemID); |
| | | } |
| | | //HWorker |
| | | function GetHWorkerValue(obj) { //è¿åä¸è¯ç¡®è®¤äºº |
| | | QRName = obj[0].HName; |
| | | //$("#HQRName").val(obj[0].HName); |
| | | //$("#HItemID").val(obj[0].HItemID); |
| | | } |
| | | function AllowLoadData(sSubStr) { //é空éªè¯ |
| | | //if ($("#HSourceBillNo").val() == '') { |
| | | // layer.msg("请å
æ«æºå!", { icon: 5 }); |
| | | // return false; |
| | | //} |
| | | if ($("#HDeptName").val() == '') { |
| | | layer.msg("é¨é¨æ²¡æéæ©", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢ææçæ¹æ³ |
| | | |
| | | //产åéæ©é¡µé¢ |
| | | function get_checkSearchMater() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'ç©æè¡¨'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_MaterialList.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#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);//è§æ ¼åå· |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | if ($("#HSecManager").val() == '') { |
| | | layer.msg("éªæ¶äººæ²¡æéæ©", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | |
| | | //å·¥åºéæ©é¡µé¢ |
| | | function get_checkSearchProc() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'å·¥åºè¡¨'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_ProcList.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HMainProcID").val(checkStatus.data[0].HItemID);//å·¥åºid |
| | | $("#HMainProcIDName").val(checkStatus.data[0].å·¥åº);//å·¥åºid |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | if ($("#HKeeper").val() == '') { |
| | | layer.msg("ä¿ç®¡äººæ²¡æéæ©", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | |
| | | //计éåä½éæ©é¡µé¢ |
| | | function get_checkUnit() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: '计éåä½è¡¨'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_UnitList.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HUnitID").val(checkStatus.data[0].HItemID);//计éåä½id |
| | | $("#HUnitName").val(checkStatus.data[0].HName);//计éåä½åç§° |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | //if ($("#HWHNAME").val() == '') { |
| | | // layer.msg("ä»åºæ²¡æéæ©!", { icon: 5 }); |
| | | // return false; |
| | | //} |
| | | if ($("#HBillNo").val() == '') { |
| | | layer.msg("é误çåæ®å·", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | |
| | | //ç产çç»éæ©é¡µé¢ |
| | | function get_checkGroup() { |
| | | 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 |
| | | $("#HGroupIDName").val(checkStatus.data[0].çç»åç§°);//计éåä½åç§° |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | if ($("#HInterID").val() == '') { |
| | | layer.msg("é误çå
ç ", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | |
| | | //å·¥ä½ä¸å¿éæ©é¡µé¢ |
| | | function get_checkWorkCenter() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'å·¥ä½ä¸å¿è¡¨'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_WorkCenterList.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HMainCenterID").val(checkStatus.data[0].HItemID);//å·¥ä½ä¸å¿id |
| | | $("#HMainCenterIDName").val(checkStatus.data[0].å·¥ä½ä¸å¿);//计éåä½åç§° |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | if (typeof (sSubStr) == "undefined") { |
| | | layer.msg("没æç©ææç»è®°å½", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | |
| | | //å·¥èºè·¯çº¿å¤§ç±»éæ©é¡µé¢ |
| | | function get_checkRoutingGroup() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'å·¥èºè·¯çº¿å¤§ç±»å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_RoutingGroup.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HRoutingGroupID").val(checkStatus.data[0].HItemID);//å·¥èºè·¯çº¿å¤§ç±»id |
| | | $("#HRoutingGroupIDName").val(checkStatus.data[0].HName);//å·¥èºè·¯çº¿å¤§ç±»åç§° |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | if (!typeof (sSubStr) == "undefined") { |
| | | //for (var i = 0; i <= sSubStr.length - 1; i++) { //夿æ«ç æ°éä¸è½å¤§äºåºæ¶æ°é |
| | | // if (parseFloat(sSubStr[i].HQtyMust) > 0) { |
| | | // if (parseFloat(sSubStr[i].HQty) > parseFloat(sSubStr[i].HQtyMust)) |
| | | // { |
| | | // layer.msg("æ°éä¸è½å¤§äºåºæ¶æ°é", { icon: 5, btn: ['ç¡®å®'], time: 100000, offset: 't' }); |
| | | // return false; |
| | | // } |
| | | // } |
| | | //} |
| | | for (var i = 0; i <= sSubStr.length - 1; i++) { //夿æ«ç æ°éä¸è½ä¸º0 |
| | | if (parseFloat(sSubStr[i].HQty) > 0) { |
| | | s = 1; |
| | | //è·ååæ° |
| | | 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; |
| | | } |
| | | |
| | | //è¡å
å é¤ |
| | | function set_GridDelete(obj) { |
| | | var data = obj.data; |
| | | var rowIndex = $(obj.tr).attr("data-index"); |
| | | if (obj.event === 'del') { |
| | | layer.confirm('ççå é¤è¡åï¼', function (index) { |
| | | console.log("ç´¢å¼ä¸º:" + rowIndex); |
| | | if (rowIndex === '0') { |
| | | layer.msg('é¦è¡æ æ³å é¤ï¼ï¼ï¼'); |
| | | } else { |
| | | obj.del(); |
| | | option.data = table.cache["mainTable"];//å°æ°æ®ç»å®å°dataä¸ |
| | | table.reload(option); |
| | | layer.close(index); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | |
| | | //è¡å
å é¤å¿«æ·é® |
| | | function set_GridCellCheck(obj) { |
| | | $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) { |
| | | if (event.key == "F7") { |
| | | //产线ä¸å¿ |
| | | if (obj.event == "CheckHCenterID_S") { |
| | | //æå¼ç»´ä¿®é¡¹ç®å°çªä½ |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "产线ä¸å¿å表" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ["../../Baseset/åºç¡èµæ/Gy_LineCenter.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("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "HCenterID_SName": checkStatus.data[0].HName |
| | | , "HCenterID_S": checkStatus.data[0].HItemID |
| | | }) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } |
| | | //å·¥åº |
| | | if (obj.event == "CheckHProcID") { |
| | | //æå¼äººå表 å°çªä½ |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "å·¥åºå表" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ["../../Baseset/åºç¡èµæ/Gy_ProcList.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("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "å·¥åº": checkStatus.data[0].å·¥åº |
| | | , "HProcID": checkStatus.data[0].HItemID |
| | | }) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } |
| | | //å·¥ä½ä¸å¿ |
| | | if (obj.event == "CheckHCenterID") { |
| | | //æå¼äººå表 å°çªä½ |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "人åå表" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ["../../Baseset/åºç¡èµæ/Gy_WorkCenterList.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("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "å·¥ä½ä¸å¿": checkStatus.data[0].å·¥ä½ä¸å¿ |
| | | , "HCenterID": checkStatus.data[0].HItemID |
| | | , "å·¥ä½ä¸å¿ä»£ç ": checkStatus.data[0].å·¥ä½ä¸å¿ä»£ç |
| | | }) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } |
| | | //ä¾åºå |
| | | if (obj.event == "CheckHSupID") { |
| | | //æå¼äººå表 å°çªä½ |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "ä¾åºåå表" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ["../../Baseset/åºç¡èµæ/Gy_SupplierList.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("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "ä¾åºå": checkStatus.data[0].HName |
| | | , "HSupID": checkStatus.data[0].HItemID |
| | | , "ä¾åºå代ç ": checkStatus.data[0].HNumber |
| | | }) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } |
| | | obj.event = ""; |
| | | return false; |
| | | } |
| | | |
| | | }) |
| | | } |
| | | |
| | | //ç¼è¾ 页é¢èµå¼ |
| | | function RoadBillMain(linterid, linteridSub)//å 载表头 |
| | | { |
| | | var sWhere = " and hmainid='" + linterid + "' and hsubid='" + linteridSub + "'"; |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/LEMS/MES_Gy_RoutingBillList_Json", |
| | | type: "GET", |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (d) { |
| | | |
| | | //alert(JSON.stringify(d.data[0])) |
| | | //return false; |
| | | |
| | | var IsHStopflag = d.data[0].é»è®¤å·¥èº; |
| | | if (IsHStopflag == 1) { |
| | | $("input[name='checkboxHStandard']").prop("checked", true); |
| | | } |
| | | //主表 |
| | | form.val("formData", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HBillNo": d.data[0].åæ®å· |
| | | , "HInterID": d.data[0].hmainid |
| | | , "HDate": Format(new Date(d.data[0].å¶åæ¥æ), "yyyy-MM-dd") |
| | | , "HName": d.data[0].å·¥èºåç§° |
| | | , "HMaterNumber": d.data[0].ç©æä»£ç |
| | | , "HMaterName": d.data[0].ç©æåç§° |
| | | , "HMaterID": d.data[0].hmaterid |
| | | , "HUnitName": d.data[0].计éåä½ |
| | | , "HUnitID": d.data[0].hunitid |
| | | , "HMainTimeUnit": d.data[0].è¿è¡æ¶é´åä½ |
| | | , "HMainProcIDName": d.data[0].å·¥åºåç§° |
| | | , "HMainProcID": d.data[0].HMainProcID |
| | | , "HMainCenterIDName": d.data[0].å·¥ä½ |
| | | , "HMainCenterID": d.data[0].HMainCenterID |
| | | , "HGroupIDName": d.data[0].çç» |
| | | , "HGroupID": d.data[0].HMainGroupID |
| | | , "HMainWorkQty": d.data[0].主å å·¥æ°é |
| | | , "HMainUnitTime": d.data[0].主è¿è¡æ¶é´ |
| | | , "HMainPrice": d.data[0].工价 |
| | | , "HStdSourceQty": d.data[0].æ åèµæºæ° |
| | | , "HAddSourceRate": d.data[0].å èµæºå¢é |
| | | , "HDelSourceRate": d.data[0].åèµæºåé |
| | | , "HRemark": d.data[0].è¡¨å¤´å¤æ³¨ |
| | | , "HStandard": d.data[0].é»è®¤å·¥èº == 1 ? true : false |
| | | , "HMaterModel": d.data[0].è§æ ¼åå· |
| | | , "HPicNumVer": d.data[0].å¾å·çæ¬ |
| | | , "HPicNumAssemble": d.data[0].æ»è£
å¾å· |
| | | , "HMaterTexture": d.data[0].æè´¨ |
| | | , "HProductNum": d.data[0].æåç¼å· |
| | | , "HVerNum": d.data[0].çæ¬ |
| | | }); |
| | | |
| | | //å表 èµå¼ |
| | | var rowdata = [{ |
| | | "HProcNo": d.data[0].å·¥åºå·, "HProcID_S": d.data[0].工段, "HProcType": d.data[0].å·¥åºç±»å, "HCenterID_S": d.data[0].HCenterID_S, "HCenterID_SName": d.data[0].产线ä¸å¿ |
| | | , "HWorkQty_S": d.data[0].产线产è½, "HSubStdEmpQty_S": d.data[0].产线人æ°, "HMouldNo": d.data[0].模å
·ç¼å·, "HChangeMould": d.data[0].æ¢æ¨¡æ¶é´, "HPackStd": d.data[0].å¨è½¬ç®±æ å |
| | | , "HPack": d.data[0].å¨è½¬ç®±, "HPutArea": d.data[0].ææ¾åº, "HMyWorkDays": d.data[0].çäº§å¨æ, "HMyFixWorkDays": d.data[0].åºå®ç产天æ°, "å·¥åº": d.data[0].å·¥åº |
| | | , "HProcID": d.data[0].hprocid, "å·¥ä½ä¸å¿ä»£ç ": d.data[0].å·¥ä½ä¸å¿ä»£ç , "HCenterID": d.data[0].HCenterID, "å·¥ä½ä¸å¿": d.data[0].å·¥ä½ä¸å¿åç§°, "HSupID": d.data[0].HSupID |
| | | , "ä¾åºå代ç ": d.data[0].ä¾åºå代ç , "ä¾åºå": d.data[0].ä¾åºå, "HSupFlag": d.data[0].å§å¤æ è®° == 0 ? false : true, "HTimeUnit": d.data[0].æ¶é´åä½, "HUnitTime": d.data[0].è¿è¡æ¶é´ |
| | | , "HWorkQty": d.data[0].å å·¥æ°é, "HPassRate": d.data[0].è¯ç, "HOverRate": d.data[0].è¶
颿¯ä¾, "HReadyTime": d.data[0].å夿¶é´, "HQueueTime": d.data[0].æéæ¶é´ |
| | | , "HMoveTime": d.data[0].转移æ¶é´, "HNextProcFlag": d.data[0].HNextProcFlag == 0 ? false : true, "HFlowProc": d.data[0].æµè½¬å·¥åº == 0 ? false : true, "HSubStdEmpQty": d.data[0].æ å人æ°, "HSubCanUseSourceQty": d.data[0].坿ä½è®¾å¤æ° |
| | | , "HFixPrice": d.data[0].ç产å®é¢, "HProcPrice": d.data[0].å å·¥åä»·, "HBadPrice": d.data[0].ä¸åæ ¼åä»·, "HWasterPrice": d.data[0].æ¥åºåä»·, "HStdFlag": d.data[0].æ åå®é¢ |
| | | , "HBeginDayQty": d.data[0].å¼å·¥ä½é天æ°, "HBeginFixQty": d.data[0].å¼å·¥ä½éåºæ°, "HFixWorkDays": d.data[0].ä¸éåºå®å¤©æ°, "HTrunWorkDays": d.data[0].ä¸é循ç¯å¨æ, "HReadyTimes": d.data[0].æ¬éå夿¶é´ |
| | | , "HICMOReadyTimes": d.data[0].æ¢åå夿¶é´, "HAutoTrunFlag": d.data[0].èªå¨ç§»è½¬, "HTechnologyParameter": d.data[0].å·¥èºåæ°, "HPicNum": d.data[0].å¾çº¸ç¼å·, "HProcCheckNote": d.data[0].æ¬å·¥åºç¡®è®¤è®°å½ |
| | | , "HProcWorkNum": d.data[0].ç¨åºå· |
| | | }]; |
| | | option.data = rowdata; |
| | | table.render(option); |
| | | |
| | | if (d.data[0].å§å¤æ è®°) { |
| | | $('#HSupFlag1').attr("checked", true); |
| | | } |
| | | if (d.data[0].HNextProcFlag) { |
| | | $('#HNextProcFlag1').attr("checked", true); |
| | | } |
| | | if (d.data[0].æµè½¬å·¥åº) { |
| | | $('#HFlowProc1').attr("checked", true); |
| | | } |
| | | if (d.data[0].æ åå®é¢) { |
| | | $('#HStdFlag1').attr("checked", true); |
| | | } |
| | | if (d.data[0].èªå¨ç§»è½¬) { |
| | | $('#HAutoTrunFlag1').attr("checked", true); |
| | | } |
| | | form.render('checkbox'); |
| | | $('#HProcType1').find("option[value='" + d.data[0].å·¥åºç±»å+ "']").attr("selected", true); |
| | | form.render('select'); |
| | | } |
| | | }) |
| | | } |
| | | //ä¿åHMaker |
| | | function set_AddNew(data) { |
| | | |
| | | var num = []; |
| | | for (var i = 0; i < table.cache["mainTable"].length; i++) { |
| | | if (table.cache["mainTable"][i] != "") { |
| | | table.cache["mainTable"][i].LAY_TABLE_INDEX = i; |
| | | num.push(table.cache["mainTable"][i]) |
| | | } |
| | | } |
| | | if (s == 0) { |
| | | layer.msg("产åå
¥åºè®°å½æªæ«ç ", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | |
| | | data.field.HPRDORGID = sessionStorage["OrganizationID"];//ç»ç» |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(num); |
| | | var hentryid = linteridSub;//å表 æåºid |
| | | var sMainSub = sMainStr + ';' + sSubStr + ';' + hentryid + ';' + OperationType + ";" + sessionStorage["HUserName"]; |
| | | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Gy_RoutingBill/AddBill", |
| | | //url:"http://localhost:12761/Gy_RoutingBill/AddBill", |
| | | async: true, |
| | | data: { "sMainSub": sMainSub }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { |
| | | //layer.confirm(data.Message, { |
| | | // icon: 1, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['æ°å¢'], |
| | | // btn2: function () { |
| | | // //parent.layui.admin.events.closeThisTabs();å
³éé¡µç¾ |
| | | // //window.close();//å
³é页é¢ï¼æµè§å¨ææï¼PDAæ æ |
| | | // parent.location.href = "../../../views/index.html" |
| | | // }//å
³é |
| | | //}, function () { window.location.reload(); });//æ°å¢ |
| | | 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 f_alert(sMsg) { |
| | | layer.alert(sMsg, { icon: 5 }); |
| | | |
| | | } |
| | | //é空éªè¯ |
| | | function AllowLoadData(data) { |
| | | |
| | | if ($("#HMaterNumber").val() == "") { |
| | | layer.msg("产åä»£ç æ²¡æéæ©"); |
| | | return false; |
| | | } |
| | | } |
| | | else { |
| | | if ($("#HUnitName").val() == "") { |
| | | layer.msg("计éå使²¡æéæ©"); |
| | | return false; |
| | | } |
| | | if ($("#HMainProcIDName").val() == "") { |
| | | layer.msg("å·¥åºæ²¡æéæ©"); |
| | | return false; |
| | | } |
| | | if ($("#HMainCenterIDName").val() == "") { |
| | | layer.msg("å·¥ä½ä¸å¿æ²¡æéæ©"); |
| | | return false; |
| | | } |
| | | if ($("#HGroupIDName").val() == "") { |
| | | layer.msg("ç产çç»æ²¡æéæ©"); |
| | | return false; |
| | | } |
| | | |
| | | return true; |
| | | //if ($("#HBillNo").val() == '') { |
| | | // layer.msg("é误çåæ®å·", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return false; |
| | | //} |
| | | //if ($("#HInterID").val() == '') { |
| | | // layer.msg("é误çå
ç ", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return false; |
| | | //} |
| | | //if (typeof (sSubStr) == "undefined") { |
| | | // layer.msg("没æç©ææç»è®°å½", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return false; |
| | | //} |
| | | |
| | | } |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | }); |
| | | |
| | | |
| | | </script> |
| | | </body> |
| | | </html> |