| | |
| | | <div class="layui-card" style="padding: 2px;background-color: #efefef;"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="formData" style="background-color:white;"> |
| | | <div style="padding: 10px;"> |
| | | <!--<button class="layui-btn 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-edit layuiadmin-button-btn"><span class="btn-title">ä¿®æ¹</span></i> |
| | | </button>--> |
| | | <button type="button" class="layui-btn layui-btn-normal" style="margin-left: 0px" lay-submit="" lay-filter="btn-AddNew" id="btn-AddNew">æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-normal" style="margin-left: 0px" lay-submit="" lay-filter="btnSave" id="btnSave">ä¿å</button> |
| | | <button type="button" class="layui-btn layui-btn-normal" style="margin-left: 0px" lay-submit="" lay-filter="btn-Exit" id="btn-Exit">éåº</button> |
| | | <div style="position: relative; display: flex; align-items: center; padding: 10px;"> |
| | | <!-- æé®ç» --> |
| | | <div style="z-index: 1;"> |
| | | <button type="button" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="btn-AddNew" id="btn-AddNew">æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="btnSave" id="btnSave">ä¿å</button> |
| | | <button type="button" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="set_CheckBill" id="set_CheckBill">å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="btn-Exit" id="btn-Exit">éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="btn-SIP" id="btn-SIP">SIPæ¥ç</button> |
| | | </div> |
| | | <!-- æ é¢ï¼ä½¿ç¨ç»å¯¹å®ä½ä½¿å
¶å¨ç¶å®¹å¨å
å±
ä¸ --> |
| | | <h1 style="position: absolute; left: 50%; transform: translateX(-50%); z-index: 0; text-align: center; width: fit-content; margin: 0; padding: 0 10px;"><b>å·¥åºæ£éªå</b></h1> |
| | | </div> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill"> |
| | | <h1 style="text-align: center; padding: 10px 0;"><b>å·¥åºæ£éªå</b></h1> |
| | | <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> |
| | |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">çäº§èµæº</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HSourceName" id="HSourceName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HSourceID" id="HSourceID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchSource" id="btnSearchSource" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <input type="hidden" name="HSourceID" id="HSourceID" value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ä»»å¡åå·</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HICMOBillNo" id="HICMOBillNo" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchICMOBill" id="btnSearchICMOBill" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ä»»å¡åæ°é</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HICMOQty" id="HICMOQty" 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="HICMOInterID" id="HICMOInterID" value="0" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HICMOEntryID" id="HICMOEntryID" value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">产åå
ç </label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HMaterID" id="HMaterID" 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="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> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HProcExchQty" id="HProcExchQty" value="1" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">æµè½¬å¡å·</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HProcExchBillNo" id="HProcExchBillNo" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchProcExch" id="btnSearchProcExch" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æµè½¬å¡ID</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HProcExchInterID" id="HProcExchInterID" value="0" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æµè½¬å¡åID</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HProcExchEntryID" id="HProcExchEntryID" value="0" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">æ£éªå</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HFirstCheckEmpName" id="HFirstCheckEmpName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHFirstCheckEmp" id="btnSearchHFirstCheckEmp" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <input type="hidden" name="HFirstCheckEmp" id="HFirstCheckEmp" value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">æ£éªæ¹æ¡</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HQCSchemeName" id="HQCSchemeName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchQCScheme" id="btnSearchQCScheme" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <input type="hidden" name="HQCSchemeID" id="HQCSchemeID" value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | <input type="hidden" name="HShiftsID" id="HShiftsID" value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ä»»å¡åå·</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HICMOBillNo" id="HICMOBillNo" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HICMOInterID" id="HICMOInterID" value="0" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HICMOEntryID" id="HICMOEntryID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchICMOBill" id="btnSearchICMOBill" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ä»»å¡åæ°é</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HICMOQty" id="HICMOQty" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">æµè½¬å¡å·</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HProcExchBillNo" id="HProcExchBillNo" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HProcExchInterID" id="HProcExchInterID" value="0" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" class="layui-input" name="HProcExchEntryID" id="HProcExchEntryID" value="0" style="background-color:#efefef4d;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchProcExch" id="btnSearchProcExch" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æµè½¬å¡æ°é</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HProcExchQty" id="HProcExchQty" value="0" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">产å代ç </label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HMaterNumber" id="HMaterNumber" value="" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HMaterID" id="HMaterID" value="0" style="background-color:#efefef4d;width: 60%;display: none;" 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> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HMaterName" id="HMaterName" style="background-color:#efefef4d;display: inline-block;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">æ£éªå</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HFirstCheckEmpName" id="HFirstCheckEmpName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HFirstCheckEmp" id="HFirstCheckEmp" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHFirstCheckEmp" id="btnSearchHFirstCheckEmp" 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="HQCSchemeName" id="HQCSchemeName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchQCScheme" id="btnSearchQCScheme" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <input type="hidden" name="HQCSchemeID" id="HQCSchemeID" value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æ¹å·</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HBatchNo" id="HBatchNo" style=""> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">夿ç»è®º</label> |
| | | <div class="layui-input-block"> |
| | | <input type="radio" name="HCheckerResult" id="HCheckerResult" value="true" title="åæ ¼"> |
| | | <input type="radio" name="HCheckerResult" id="HCheckerResult" value="false" title="ä¸åæ ¼" checked> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" id="hidediv1"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">å·¥åº</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HProcName" id="HProcName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HProcID" id="HProcID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHProc" id="btnHProc" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </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="HTakeSampleCheckBillNo" id="HTakeSampleCheckBillNo" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HTakeSampleCheckBillID" id="HTakeSampleCheckBillID" value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">夿ç»è®º</label> |
| | | <div class="layui-input-block"> |
| | | <input type="radio" name="HCheckerResult" id="HCheckerResult" value="true" title="åæ ¼" > |
| | | <input type="radio" name="HCheckerResult" id="HCheckerResult" value="false" title="ä¸åæ ¼" checked> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" id="hidediv1"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">å·¥åº</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HProcName" id="HProcName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHProc" id="btnHProc" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <input type="hidden" name="HProcID" id="HProcID" 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="HTakeSampleCheckBillNo" id="HTakeSampleCheckBillNo" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HTakeSampleCheckBillID" id="HTakeSampleCheckBillID" value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | <!--å¶åä¿¡æ¯--> |
| | |
| | | <div class="layui-tab-item"> |
| | | <!--æ½æ ·æ£éª--> |
| | | <!--<div class="layui-row" style="margin-bottom:15px;margin-left:30px"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="btn_FirstRow" id="btn_FirstRow"><span style="font-weight:bold">é¦è¡</span></button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="btn_PreviousRow" id="btn_PreviousRow"><i class="layui-icon layui-icon-prev"></i></button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="btn_NextRow" id="btn_NextRow"><i class="layui-icon layui-icon-next"></i></button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="btn_LastRow" id="btn_LastRow"><span style="font-weight:bold">æ«è¡</span></button> |
| | | </div>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="btn_FirstRow" id="btn_FirstRow"><span style="font-weight:bold">é¦è¡</span></button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="btn_PreviousRow" id="btn_PreviousRow"><i class="layui-icon layui-icon-prev"></i></button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="btn_NextRow" id="btn_NextRow"><i class="layui-icon layui-icon-next"></i></button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="btn_LastRow" id="btn_LastRow"><span style="font-weight:bold">æ«è¡</span></button> |
| | | </div>--> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">项ç®åºå·</label> |
| | |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-inline"> |
| | | <label class="layui-form-label">æ£éªç»æ</label> |
| | | <div class="layui-input-block"> |
| | | <select name="HResult" lay-filter="HResult" style="width:190px;"> |
| | | <option value="åæ ¼" selected="selected">åæ ¼</option> |
| | | <option value="ä¸åæ ¼">ä¸åæ ¼</option> |
| | | </select> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label">æ£éªç»æ</label> |
| | | <div class="layui-input-block"> |
| | | <select name="HResult" lay-filter="HResult" style="width:190px;"> |
| | | <option value="åæ ¼" selected="selected">åæ ¼</option> |
| | | <option value="ä¸åæ ¼">ä¸åæ ¼</option> |
| | | </select> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-row" style="margin-top:5px;"> |
| | | <div class="layui-inline"> |
| | |
| | | </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="checkbox" name="HKeyInspect" id="HKeyInspect" value="false" lay-skin="primary" lay-filter="HKeyInspect"> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label" style="width: 85px;">éç¹æ£æ¥</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="checkbox" name="HKeyInspect" id="HKeyInspect" value="false" lay-skin="primary" lay-filter="HKeyInspect"> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-row" style="margin-top:5px;"> |
| | | <div class="layui-inline"> |
| | |
| | | <div class="layui-tab-item" style="height:590px"> |
| | | <!--æ£æµå¼--> |
| | | <!--<div class="layui-row" style="margin-bottom:15px;margin-left:30px"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="btn_FirstRow" id="btn_FirstRow"><span style="font-weight:bold">é¦è¡</span></button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="btn_PreviousRow" id="btn_PreviousRow"><i class="layui-icon layui-icon-prev"></i></button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="btn_NextRow" id="btn_NextRow"><i class="layui-icon layui-icon-next"></i></button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="btn_LastRow" id="btn_LastRow"><span style="font-weight:bold">æ«è¡</span></button> |
| | | </div>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="btn_FirstRow" id="btn_FirstRow"><span style="font-weight:bold">é¦è¡</span></button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="btn_PreviousRow" id="btn_PreviousRow"><i class="layui-icon layui-icon-prev"></i></button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="btn_NextRow" id="btn_NextRow"><i class="layui-icon layui-icon-next"></i></button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="btn_LastRow" id="btn_LastRow"><span style="font-weight:bold">æ«è¡</span></button> |
| | | </div>--> |
| | | <div class="left" style="width:50%;height:450px;float:left;"> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 70px !important;">æ£éªç»æ</label> |
| | | <div class="layui-input-block" style="margin-left: 100px; width: 182px"> |
| | | <select name="HInspectResult" lay-filter="HInspectResult"> |
| | | <option value="åæ ¼" selected="selected">åæ ¼</option> |
| | | <option value="ä¸åæ ¼">ä¸åæ ¼</option> |
| | | </select> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label" style="width: 70px !important;">æ£éªç»æ</label> |
| | | <div class="layui-input-block" style="margin-left: 100px; width: 182px"> |
| | | <select name="HInspectResult" lay-filter="HInspectResult"> |
| | | <option value="åæ ¼" selected="selected">åæ ¼</option> |
| | | <option value="ä¸åæ ¼">ä¸åæ ¼</option> |
| | | </select> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-row" style="margin-top:5px;"> |
| | | <div class="layui-inline"> |
| | |
| | | </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="checkbox" name="HKeyInspect" id="HKeyInspect2" value="false" lay-skin="primary" lay-filter="HKeyInspect"> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label" style="width: 85px;">éç¹æ£æ¥</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="checkbox" name="HKeyInspect" id="HKeyInspect2" value="false" lay-skin="primary" lay-filter="HKeyInspect"> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-row" style="margin-top:5px;"> |
| | | <div class="layui-inline" style="border-bottom:2px solid #9C9C9C;width:290px;margin-left:10px"> |
| | |
| | | </div> |
| | | <div class="layui-row" style="margin-top:5px;"> |
| | | <!--<div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 70px !important;">åææ¹æ³</label> |
| | | <div class="layui-input-block" style="margin-left: 100px; width: 182px"> |
| | | <select name="HAnalysisMethod" lay-filter="HAnalysisMethod"> |
| | | <option value="åæ ¼" selected="selected">åæ ¼</option> |
| | | <option value="ä¸åæ ¼">ä¸åæ ¼</option> |
| | | </select> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label" style="width: 70px !important;">åææ¹æ³</label> |
| | | <div class="layui-input-block" style="margin-left: 100px; width: 182px"> |
| | | <select name="HAnalysisMethod" lay-filter="HAnalysisMethod"> |
| | | <option value="åæ ¼" selected="selected">åæ ¼</option> |
| | | <option value="ä¸åæ ¼">ä¸åæ ¼</option> |
| | | </select> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 70px !important;">ç¶æ</label> |
| | | <div class="layui-input-block" style="margin-left: 100px; width: 182px"> |
| | |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine"><i class="layui-icon layui-icon-form"></i>å¢å ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-CopyLine"><i class="layui-icon layui-icon-form"></i>å¤å¶ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | </div> |
| | | </script> |
| | | <!--éèåæ®µ--> |
| | |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script> |
| | | var OptionData = []; |
| | | |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | |
| | | , form = layui.form |
| | | , laydate = layui.laydate |
| | | , element = layui.element; |
| | | //å
¬ç¨åé |
| | | debugger; |
| | | //å
¬ç¨åé |
| | | var rowdata = []; |
| | | var option = []; |
| | | var HDeptID = "";//é¨é¨id è·åçæ¬¡ |
| | | var HCenterID = "";//å·¥ä½ä¸å¿id è·åçæ¬¡ |
| | | |
| | | var rowdata_Value = []; |
| | | var option_Value = []; |
| | |
| | | var UnRightQty_isFied = 0; //ç¨äºå¤ææ¯å¦åæ ¼//æ£éªå¼è¡¨æ ¼ä¸åæ ¼æ°éæ±æ» |
| | | var editIndex = 0;//ç¼è¾ä¸æ |
| | | var SampleNum = [];//æ ·æ¬æ°é |
| | | var HModName = "QC_ProcessCheckBill"; |
| | | var isOpenBox = "0";//æ¯å¦æå¼å¼¹æ¡å°å®ç¯é¡µé¢ |
| | | |
| | | //夿æ¯å¦ç»å½ æªç»å½åè·³å°ç»å½é¡µ |
| | | //if (sessionStorage.login != "login") { |
| | |
| | | var linterid = params[params[1]];//æºåid |
| | | var HSouceBillType = params[params[2]];//æºåç±»å |
| | | var HICMOEntryID = params[params[3]];//æºååid |
| | | var HEntryID = params[params[4]];//æºååid |
| | | } |
| | | /*åºå®ä»£ç ï¼æ¯å¼ åæ®é½è¦begin*/ |
| | | |
| | |
| | | //var HSouceBillType = 3722; |
| | | ////var HICMOEntryID = 100027; |
| | | //var HICMOEntryID = ""; |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | |
| | | //夿æ¯å¦æ°å¢ |
| | | if (OperationType == 1) { |
| | | $("#HInterID").val(""); |
| | | $("#HBillNo").val(""); |
| | | $('#btnSave').addClass("layui-btn-disabled").attr("disabled", true);//ææºåæ¶ä¿åæé®ç¦ç¨ |
| | | //$('#btnSave').addClass("layui-btn-disabled").attr("disabled", true);//ææºåæ¶ä¿åæé®ç¦ç¨ |
| | | |
| | | $("#HFirstCheckEmp").val(sessionStorage["HCheckEmpID"]); //æ ¹æ®ç»å½ç¨æ·å¸¦åºæ£éªåID |
| | | $("#HFirstCheckEmpName").val(sessionStorage["HCheckEmpName"]); //æ ¹æ®ç»å½ç¨æ·å¸¦åºæ£éªå |
| | | $("#HFirstCheckEmp").val(sessionStorage["HEmpID"]);//æ ¹æ®ç»å½ç¨æ·å¸¦åºæ£éªåID |
| | | $("#HFirstCheckEmpName").val(sessionStorage["HEmpName"]);//æ ¹æ®ç»å½ç¨æ·å¸¦åºæ£éªå |
| | | |
| | | HDeptID = sessionStorage["HDeptID"]; //æ ¹æ®ç»å½ç¨æ·å¸¦åºé¨é¨ID |
| | | HCenterID = sessionStorage["HWorkCenterID"]; //æ ¹æ®ç»å½ç¨æ·å¸¦åºå·¥ä½ä¸å¿ID |
| | | //è·åæå¤§åæ®å· |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | } |
| | | }); |
| | | //è·åçæ¬¡ |
| | | get_HWorkShift(); |
| | | } |
| | | else if (OperationType == 2) { |
| | | $("#HFirstCheckEmp").val(sessionStorage["HCheckEmpID"]); |
| | | $("#HFirstCheckEmpName").val(sessionStorage["HCheckEmpName"]); |
| | | $("#HFirstCheckEmp").val(sessionStorage["HEmpID"]);//æ ¹æ®ç»å½ç¨æ·å¸¦åºæ£éªåID |
| | | $("#HFirstCheckEmpName").val(sessionStorage["HEmpName"]);//æ ¹æ®ç»å½ç¨æ·å¸¦åºæ£éªå |
| | | HDeptID = sessionStorage["HDeptID"]; //æ ¹æ®ç»å½ç¨æ·å¸¦åºé¨é¨ID |
| | | HCenterID = sessionStorage["HWorkCenterID"]; //æ ¹æ®ç»å½ç¨æ·å¸¦åºå·¥ä½ä¸å¿ID |
| | | |
| | | if (HICMOEntryID < 0 || HICMOEntryID == "") { |
| | | layer.alert("ç产任å¡ååå
ç éè¯¯ï¼æ æ³å·¥åºæ£ï¼", { icon: 5 }); |
| | | $('#btn-AddNew').addClass("layui-btn-disabled").attr("disabled", true);//ææºåæ¶æ°å¢æé®ç¦ç¨ |
| | | $('#btnSave').addClass("layui-btn-disabled").attr("disabled", true);//ææºåæ¶ä¿åæé®ç¦ç¨ |
| | | //$('#btnSave').addClass("layui-btn-disabled").attr("disabled", true);//ææºåæ¶ä¿åæé®ç¦ç¨ |
| | | } |
| | | else { |
| | | $("#HInterID").val(""); |
| | |
| | | if (HSouceBillType == 3722 || HSouceBillType == 4610) { |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | LoadingInformation2(); |
| | | //èªå¨å¸¦åºæ£éªæ¹æ¡ |
| | | GetCheckItemID(); |
| | | } else if (HSouceBillType == 3791) { |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | LoadingInformation_StationOutBill(); |
| | | //èªå¨å¸¦åºæ£éªæ¹æ¡ |
| | | GetCheckItemID(); |
| | | } |
| | | //å·¥åºæµè½¬å¡åè¡¨é¦æ£ |
| | | //å·¥åºæµè½¬å¡åè¡¨å·¥åºæ£ |
| | | else if (HSouceBillType == 3772) { |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | LoadingInformation_ProcExchange(); |
| | | //èªå¨å¸¦åºæ£éªæ¹æ¡ |
| | | GetCheckItemID(); |
| | | } |
| | | else { |
| | | layer.alert("æºåç±»åæ æï¼", { icon: 5 }); |
| | | } |
| | | //è·åçæ¬¡ |
| | | get_HWorkShift(); |
| | | } |
| | | } |
| | | else if (OperationType == 3) { |
| | |
| | | |
| | | $("[name='btnSearchCheckItemID']").addClass("layui-btn-disabled").attr("disabled", true);//ç¦ç¨æ£éªé¡¹ç®æ¾å¤§é |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | function LoadingInformation2() { |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/QC_ProcessCheckBill/get_ICMOBillStatus_Tmp", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HInterID": linterid, "HEntryID": HICMOEntryID, "HBillType": HSouceBillType }, |
| | | success: function (result) { |
| | | if (result.code == 1) { |
| | |
| | | $("#HSourceName").val(data.HSourceName); |
| | | $("#HSourceID").val(data.HSourceID); |
| | | $("#HMaterID").val(data.HMaterID); |
| | | $("#HMaterName").val(data.HMaterName); |
| | | $("#HMainSourceBillNo").val(""); |
| | | $("#HMainSourceBillType").val(data.HBillType); |
| | | $("#HMainSourceInterID").val(data.HInterID); |
| | |
| | | $("#HQCSchemeName").val(data.æ£éªæ¹æ¡åç§°); |
| | | $("#HQCSchemeID").val(data.æ£éªæ¹æ¡ID); |
| | | $("#HTakeSampleCheckBillNo").val(data.HProcExchBillNo); |
| | | $("#HTakeSampleCheckBillID").val(data.HProcExchInterID); |
| | | $("#HTakeSampleCheckBillID").val(data.HProcExchInterID); |
| | | |
| | | //è·åè¡¨ä½æ£éªé¡¹ç®ä¿¡æ¯ |
| | | get_CheckItem(); |
| | | } else { |
| | | layer.alert(result.Message, { icon: 5 }); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | layer.close(wait); |
| | | }, error: function () { |
| | | layer.close(wait); |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/QC_ProcessCheckBill/get_StationOutBill', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HInterID": linterid, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | var data = result.data[0]; |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/CheckBill/get_ProcessExchangeBill', |
| | | type: "GET", |
| | | data: { "HInterID": linterid, "user": sessionStorage["HUserName"] }, |
| | | async: false, |
| | | data: { "HInterID": linterid, "HEntryID": HEntryID, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | var data = result.data[0]; |
| | | if (result.count == 1) { |
| | |
| | | $("#HICMOEntryID").val(data.HICMOEntryID == null ? 0 : data.HICMOEntryID);// |
| | | $("#HQCSchemeName").val(data.æ£éªæ¹æ¡åç§°); |
| | | $("#HQCSchemeID").val(data.æ£éªæ¹æ¡ID); |
| | | $("#HProcID").val(data.HProcID);// |
| | | $("#HProcName").val(data.å½åå·¥åº);// |
| | | $("#HBatchNo").val(data.æ¹å·); |
| | | $("#HTakeSampleCheckBillNo").val(data.åæ®å·); |
| | | $("#HTakeSampleCheckBillID").val(data.HInterID); |
| | | HDeptID = data.HWorkShopID == null ? sessionStorage["HDeptID"] : data.HWorkShopID;//å·¥ä½ä¸å¿id |
| | | HCenterID = data.HCenterID == null ? sessionStorage["HWorkCenterID"] : data.HCenterID;//å·¥ä½ä¸å¿id |
| | | //è·åè¡¨ä½æ£éªé¡¹ç®ä¿¡æ¯ |
| | | get_CheckItem(); |
| | | } else { |
| | |
| | | , data = checkStatus.data; |
| | | //æ°å¢è¡è¡¨æ ¼æ°æ® |
| | | var NewRow = { |
| | | "HQCCheckItemID": "", "æ£éªé¡¹ç®": "", "HInspectInstruMentID": 0, "æ£éªä»ªå¨": "", "HQCStd": "", "HUnit": "", "HQCNote": "", "HAnalysisMethod": "", "HResult": "", |
| | | "HQCCheckItemID": "", "æ£éªé¡¹ç®ä»£ç ": "", "æ£éªé¡¹ç®": "", "HInspectInstruMentID": 0, "æ£éªä»ªå¨ä»£ç ": "", "æ£éªä»ªå¨": "", "HQCStd": "", "HUnit": "", "HQCNote": "", "HAnalysisMethod": "", "HResult": "", |
| | | "HMax": "", "HMin": "", "HAvg": "", "HRemark": "", "HKeyInspect": false, "HStatus": 0, "HSampleSchemeID": 0, "HUnitID": 0, |
| | | "HInspectVal": '', "HTargetVal": '', "HUpLimit": '', "HDownLimit": '', "HUpOffSet": '', "HDownOffSet": '', "HSampleDamageQty": '0', |
| | | "HSampleSchemeName": "", "HSampleQty": "0", "HSampleDamageQty": "0", "HAcceptQty": "", "HInspectionLevel": "", "HRejectQty": "", |
| | |
| | | form.render('select'); |
| | | } |
| | | break; |
| | | //å设置 |
| | | case 'set_HideColumn': |
| | | get_HideColumn(); |
| | | break; |
| | | } |
| | | }); |
| | | |
| | | //éåºæé® |
| | | form.on('submit(btn-Exit)', function (data) { |
| | | get_Exit(); |
| | | //SIPæ¥çæé® |
| | | form.on('submit(btn-SIP)', function () { |
| | | var HProcID = $("#HProcID").val(); |
| | | var HMaterID = $("#HMaterID").val(); |
| | | if (HProcID == 0 && HMaterID == 0) { |
| | | layer.alert("ç©æåç§°ä¸å·¥åºä¸è½ä¸ºç©º", { icon: 5 }); |
| | | } |
| | | else { |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'æ¥çä½ä¸æå¯¼ä¹¦' |
| | | , closeBtn: 1 |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: '../../ç产管ç/ä½ä¸æå¯¼ä¹¦/Gy_SOPBill_Video.html?OperationType=5&HMaterID=' + HMaterID + '&HSourceNo=&HSourceEntryID=&HProcID=' + HProcID + '&HType=SIP' |
| | | , resize: false, |
| | | end: function () { |
| | | } |
| | | , cancel: function () { |
| | | } |
| | | }) |
| | | } |
| | | |
| | | }); |
| | | |
| | | |
| | | |
| | | //éåºæé® |
| | | form.on('submit(btn-Exit)', function (data) { |
| | | sWhere = " and hmainid = " + $("#HInterID").val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/QC_ProcessCheckBill/QC_ProcessCheckBillList", |
| | |
| | | } |
| | | } |
| | | }) |
| | | get_Exit(); |
| | | }); |
| | | |
| | | //æ°å¢æé® |
| | |
| | | window.location.reload(); |
| | | }); |
| | | |
| | | //#region å®¡æ ¸æé® |
| | | form.on('submit(set_CheckBill)', function (data) { |
| | | set_CheckBill(0); |
| | | }); |
| | | //#endregion |
| | | |
| | | //éåº |
| | | function get_Exit() { |
| | |
| | | |
| | | |
| | | $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) { |
| | | var rowIndex = Number($(obj.tr).attr("data-index"))+Number(1); |
| | | var rowIndex = Number($(obj.tr).attr("data-index")) + Number(1); |
| | | if (event.key == "F7") { |
| | | if (obj.event == 'HQCCheckItemID') //模å
·ä¿¡æ¯ |
| | | { |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_CheckItem.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_CheckItem.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | var HResult = checkStatus.data[0].é»è®¤ç»è®º == "åæ ¼" ? 1 : 2 |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | æ£éªé¡¹ç®: checkStatus.data[0].åç§° |
| | | , HQCCheckItemID: checkStatus.data[0].HItemID |
| | | , HResult: HResult |
| | | }); |
| | | $('#HResult' + rowIndex + '').find("option[value='" + HResult + "']").attr("selected", true); |
| | | |
| | | form.render('select'); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | if (checkStatus.data.length === 1) { |
| | | var HResult = checkStatus.data[0].é»è®¤ç»è®º == "åæ ¼" ? 1 : 2 |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | æ£éªé¡¹ç®: checkStatus.data[0].åç§° |
| | | , æ£éªé¡¹ç®ä»£ç : checkStatus.data[0].代ç |
| | | , HQCCheckItemID: checkStatus.data[0].HItemID |
| | | , HResult: HResult |
| | | }); |
| | | $('#HResult' + rowIndex + '').find("option[value='" + HResult + "']").attr("selected", true); |
| | | form.render('select'); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } else { |
| | | //(å¤éè¡) |
| | | //å°åæè¡¨ä½æ°æ®åå
¥æ°ç» |
| | | var tableBak = table.cache["mainTable"]; //è·åä¹åç¼è¾è¿çè¡¨æ ¼æ°æ® |
| | | buttonArr = [];//æ¸
空æ°ç» |
| | | for (var i = 0; i < tableBak.length; i++) { |
| | | if (tableBak[i]["HQCCheckItemID"] != 0 && tableBak[i]["æ£éªé¡¹ç®"] != "" && tableBak[i]["HResult"] != undefined && tableBak[i]["HResult"] != null) { |
| | | buttonArr.push(tableBak[i]); //妿å
³é®å段ä¸ä¸ºç©ºï¼åå°ä¹åçæ°æ®åå¨ |
| | | } |
| | | } |
| | | //å°æ¹ééæ©çæ°æ®åå
¥æ°ç»ï¼å¤éè¡ï¼ |
| | | for (var i = 0; i < checkStatus.data.length; i++) { |
| | | buttonArr.push({ |
| | | "æ£éªé¡¹ç®": checkStatus.data[i].åç§°, "æ£éªé¡¹ç®ä»£ç ": checkStatus.data[i].代ç , "HQCCheckItemID": checkStatus.data[i].HItemID, |
| | | "HResult": 1, "HInspectInstruMentID": "0", "æ£éªä»ªå¨ä»£ç ": "", "æ£éªä»ªå¨": "", "HQCStd": "", "HUnit": "", "HQCNote": "", "HAnalysisMethod": "", |
| | | "HMax": "", "HMin": "", "HAvg": "", "HRemark": "", "HKeyInspect": false, "HStatus": 0, "HSampleSchemeID": 0, "HUnitID": 0, |
| | | "HInspectVal": '', "HTargetVal": '', "HUpLimit": '', "HDownLimit": '', "HUpOffSet": '', "HDownOffSet": '', "HSampleDamageQty": '0', |
| | | "HSampleSchemeName": "", "HSampleQty": "0", "HSampleDamageQty": "0", "HAcceptQty": "0", "HInspectionLevel": "", "HRejectQty": "0", |
| | | "HStrictness": "", "HSampleUnRightQty": "0", "HAQL": "", "HSamplingType": "" |
| | | }); |
| | | } |
| | | |
| | | table.reload("mainTable", { |
| | | data: buttonArr //å°æ°æ®éæ°è½½å
¥è¡¨æ ¼ |
| | | }) |
| | | for (var i = 1; i <= option.data.length; i++) { |
| | | $('#HResult' + i + '').find("option[value='" + option.data[i - 1].HResult + "']").attr("selected", true); |
| | | $('#HAnalysisMethod' + i + '').find("option[value='" + option.data[i - 1].HAnalysisMethod + "']").attr("selected", true); |
| | | //宿æ è®° |
| | | if (option.data[i - 1].HKeyInspect) { |
| | | $('#HKeyInspect' + i + '').attr("checked", true); |
| | | } |
| | | } |
| | | form.render('select'); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | |
| | | |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | if (OptionData.length > 0) { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | æ£éªé¡¹ç®: OptionData[0].åç§°, |
| | | æ£éªé¡¹ç®ä»£ç : OptionData[0].代ç , |
| | | HQCCheckItemID: OptionData[0].HItemID, |
| | | HResult: 1 |
| | | }); |
| | | $('#HResult' + rowIndex + '').find("option[value='" + 1 + "']").attr("selected", true); |
| | | form.render('select'); |
| | | OptionData = []; |
| | | } |
| | | } |
| | | }); |
| | | } |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_InspectInstruMent.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_InspectInstruMent.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | æ£éªä»ªå¨ä»£ç : checkStatus.data[0].æ£éªä»ªå¨ä»£ç , |
| | | æ£éªä»ªå¨: checkStatus.data[0].æ£éªä»ªå¨åç§° |
| | | , HInspectInstruMentID: checkStatus.data[0].HItemID |
| | | }); |
| | |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | if (OptionData.length > 0) { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | æ£éªä»ªå¨ä»£ç : OptionData[0].æ£éªä»ªå¨ä»£ç , |
| | | æ£éªä»ªå¨: OptionData[0].æ£éªä»ªå¨åç§°, |
| | | HInspectInstruMentID: OptionData[0].HItemID |
| | | }); |
| | | OptionData = []; |
| | | } |
| | | } |
| | | }); |
| | | } |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_InspectValue.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_InspectValue.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | } |
| | | }); |
| | | |
| | | |
| | | table.on('edit(mainTable)', function (obj) { |
| | | var cell = $(this); |
| | | var rowIndex = cell.closest('tr').data('index'); // è·åå½åè¡æ°æ®ç´¢å¼ |
| | | // åå
æ ¼ç¼è¾ä¹åçå¼ |
| | | var oldText = $(this).prev().text(); |
| | | var value = obj.value //å¾å°ä¿®æ¹åçå¼ |
| | | , data = obj.data //å¾å°æå¨è¡ææé®å¼ |
| | | , field = obj.field; //å¾å°å段 |
| | | var HInspectVal = $("#HInspectVal").val(); //æ£éªå¼ |
| | | //var HTargetVal = $("#HTargetVal").val(); //ç®æ å¼ |
| | | //var HComparator = $("#HComparator").val(); //æ¯è¾ç¬¦ |
| | | var HEntryID = rowIndex; |
| | | var HAnalysisMethod = table.cache["mainTable"][HEntryID].HAnalysisMethod; //åææ¹æ³ |
| | | var HUpLimit = table.cache["mainTable"][HEntryID].HUpLimit; //ä¸éå¼ |
| | | var HDownLimit = table.cache["mainTable"][HEntryID].HDownLimit; //ä¸éå¼ |
| | | switch (field) { |
| | | case "HInspectVal": //æ£éªå¼ |
| | | value = isNaN(value) ? 0 : parseFloat(value); |
| | | |
| | | if (HAnalysisMethod == "2") { |
| | | if (value <= HUpLimit && value >= HDownLimit) { |
| | | obj.update({ |
| | | "HResult": "1" |
| | | }); |
| | | |
| | | $('#HResult' + (HEntryID + 1)).find("option[value='1']").attr("selected", true); |
| | | |
| | | } else { |
| | | obj.update({ |
| | | "HResult": "2" |
| | | }); |
| | | |
| | | $('#HResult' + (HEntryID + 1)).find("option[value='2']").attr("selected", true); |
| | | } |
| | | form.render('select'); |
| | | LastResult(); |
| | | } |
| | | break; |
| | | } |
| | | }); |
| | | |
| | | |
| | | //ä¿åæé® |
| | | form.on('submit(btnSave)', function (data) { |
| | | set_SaveBill(data); |
| | |
| | | if ($("#HFirstCheckEmp").val() == 0) { |
| | | layer.msg("æ£éªåæªéæ©ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | if (data.field.HCheckerResult == "false") { |
| | | isOpenBox = "1"; |
| | | } |
| | | var sSubTable = table.cache['mainTable']; |
| | | for (var i = 0; i < sSubTable.length; i++) { |
| | |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | | var sSubValue = JSON.stringify(table.cache['ValueTable']); |
| | | var sMainSub = sMainStr + ';' + sSubStr + ';' + OperationType + ";" + sessionStorage["HUserName"] + ';' + sSubValue; |
| | | |
| | | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | |
| | | 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(); });//æ°å¢ |
| | | if (data.count == 1) { |
| | | layer.close(index); |
| | | layer.msg("æäº¤æå"); |
| | | $('#btnSave').addClass("layui-btn-disabled").attr("disabled", true);//ä¿åæé® |
| | | $('#set_CheckBill').removeClass("layui-btn-disabled").removeAttr("disabled").addClass("layui-btn-normal"); |
| | | if (isOpenBox == "1") { |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', |
| | | title: 'å¼å¸¸åé¦å', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: '../../ç产管ç/å¼å¸¸åé¦å/Sc_Add_MESExecptFeedBackBillList.html?OperationType=4&linterid=&HSouceBillType=', |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (dom, index) { |
| | | var data = []; |
| | | data.push({ |
| | | "HICMOBillNo": $("#HICMOBillNo").val(),//å·¥åå· |
| | | "HSourceName": $("#HSourceName").val(), //è®¾å¤ |
| | | "HType": "æµéåå ", //å¼å¸¸ç±»å |
| | | "HSourceBillNo": $("#HMainSourceBillNo").val() //æµè½¬å¡å· |
| | | }); |
| | | |
| | | // éè¿ç´¢å¼è·åå°å½å iframe å¼¹åºå± |
| | | var iframe = window['layui-layer-iframe' + index]; |
| | | // è°ç¨ iframe å¼¹åºå±å
çæ¹æ³ |
| | | iframe.edit(data); |
| | | }, |
| | | }); |
| | | } |
| | | } |
| | | else { |
| | | layer.close(index); |
| | |
| | | } |
| | | |
| | | //ç¼è¾æ¶å 载表头 |
| | | 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); |
| | | // } |
| | | //}) |
| | | function RoadBillMain(linterid) { |
| | | |
| | | var ajaxLoad = layer.load(); |
| | | var sWhere = " and hmainid=" + linterid; |
| | |
| | | , "HICMOEntryID": data.HICMOEntryID |
| | | , "HMaterID": data.HMaterID |
| | | , "HMaterName": data.ç©æåç§° |
| | | , "HMaterNumber": data.ç©æä»£ç |
| | | , "HProcExchQty": data.HProcExchQty |
| | | , "HProcExchBillNo": data.HProcExchBillNo |
| | | , "HProcExchInterID": data.HProcExchInterID |
| | |
| | | |
| | | $("input[name=HCheckerResult][value=true]").prop("checked", data.å¤å®ç»è®º === "åæ ¼"); |
| | | $("input[name=HCheckerResult][value=false]").prop("checked", data.å¤å®ç»è®º === "ä¸åæ ¼"); |
| | | form.render(); |
| | | form.render("radio"); |
| | | data = result.data; |
| | | //å表 èµå¼ |
| | | var rowdata = []; |
| | | for (var i = 0; i < data.length; i++) { |
| | | rowdata.push( |
| | | { |
| | | "HQCCheckItemID": data[i].HQCCheckItemID, "æ£éªé¡¹ç®ä»£ç ": data[i].æ£éªé¡¹ç®ä»£ç , "æ£éªé¡¹ç®": data[i].æ£éªé¡¹ç®åç§°, "HInspectInstruMentID": data[i].HInspectInstruMentID, "æ£éªä»ªå¨": data[i].æ£éªä»ªå¨, "HQCStd": data[i].æ£éªæ å, |
| | | "HQCCheckItemID": data[i].HQCCheckItemID, "æ£éªé¡¹ç®ä»£ç ": data[i].æ£éªé¡¹ç®ä»£ç , "æ£éªé¡¹ç®": data[i].æ£éªé¡¹ç®åç§°, "HInspectInstruMentID": data[i].HInspectInstruMentID, "æ£éªä»ªå¨ä»£ç ": data[i].æ£éªä»ªå¨ä»£ç , "æ£éªä»ªå¨": data[i].æ£éªä»ªå¨, "HQCStd": data[i].æ£éªæ å, |
| | | "HUnit": data[i].åä½åç§°, "HQCNote": data[i].æ£éªè®°å½, "HResult": data[i].ç»è®º == "åæ ¼" ? 1 : 2, |
| | | "HMax": data[i].æå¤§å¼, "HMin": data[i].æå°å¼, "HAvg": data[i].å¹³åå¼, "HRemark": data[i].表ä½å¤æ³¨, |
| | | "HAnalysisMethod": data[i].åææ¹æ³ == "宿§åæ" ? 1 : (data[i].åææ¹æ³ == "å®éåæ" ? 2 : 3), "HKeyInspect": data[i].éç¹æ£æ¥ == "å¦" ? false : true, |
| | |
| | | |
| | | //è¡¨å¤´ä¿¡æ¯æ£éªæ¹æ¡å¼¹çª |
| | | form.on('submit(btnSearchQCScheme)', function () { |
| | | var HName = $("#HMaterName").val(); |
| | | var HProcName = $("#HProcName").val(); |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../è´¨é管ç/æ£éªæ¹æ¡å/QC_CheckProjectList.html', 'yes'], |
| | | content: ['../../è´¨é管ç/æ£éªæ¹æ¡å/QC_CheckProjectList.html?OperationType=1&HName=' + HName + '&HProcName=' + HProcName + '', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_ShiftsList.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_WorkShiftList.html?type=HWorkShifts', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HShiftsName").val(checkStatus.data[0].çæ¬¡åç§°); |
| | | $("#HShiftsID").val(checkStatus.data[0].HItemID); |
| | | $("#HShiftsID").val(checkStatus.data[0].HInterID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../../views/åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_CheckItem.html', 'yes'], |
| | | content: ['../../../views/åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_CheckItem.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../../views/åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Unit.html', 'yes'], |
| | | content: ['../../../views/åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Unit.html?Type=HUnitList', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_InspectValue.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_InspectValue.html?type=HInspect1', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_InspectValue.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_InspectValue.html?type=HInspect', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | option.data[$("#HEntryID").val() - 1].HRejectQty = checkStatus.data[0].æç»æ°; |
| | | option.data[$("#HEntryID").val() - 1].HUpLimit = checkStatus.data[0].ä¸éå¼; |
| | | option.data[$("#HEntryID").val() - 1].HDownLimit = checkStatus.data[0].ä¸éå¼; |
| | | } |
| | | } |
| | | |
| | | rowdata_Value = []; |
| | | for (let i = 1; i <= checkStatus.data[0].æ ·æ¬é; i++) { |
| | |
| | | }); |
| | | //#endregion |
| | | |
| | | window.get_CheckItem = function() { |
| | | //#region ãéæ£éªæ¹æ¡è·åè¡¨ä½æ£éªé¡¹ç®ä¿¡æ¯ã |
| | | |
| | | function get_CheckItem() { |
| | | var HBatchQty = $("#HProcExchQty").val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetCheckItemByCheckProjectID", |
| | | type: "GET", |
| | | data: { "CheckProjectID": $("#HQCSchemeID").val() == '' ? 0 : $("#HQCSchemeID").val(), "HBatchQty": HBatchQty}, |
| | | data: { "CheckProjectID": $("#HQCSchemeID").val() == '' ? 0 : $("#HQCSchemeID").val(), "HBatchQty": HBatchQty }, |
| | | success: function (result) { |
| | | if (result.code == 1) { |
| | | var rowdata = []; |
| | |
| | | //"HStrictness": "", "HSampleUnRightQty": "", "HAQL": "", "HSamplingType": "" |
| | | //} |
| | | { |
| | | "HQCCheckItemID": data[i]["HQCCheckItemID"], "æ£éªé¡¹ç®ä»£ç ": data[i].æ£éªé¡¹ç®ä»£ç , "æ£éªé¡¹ç®": data[i]["æ£éªé¡¹ç®"], "HInspectInstruMentID": data[i]["HInspectInstruMentID"], "æ£éªä»ªå¨": data[i]["æ£éªä»ªå¨"], "HQCStd": data[i]["HQCStd"], "HUnit": data[i]["åä½åç§°"], "HQCNote": "", "HAnalysisMethod": data[i]["åææ¹æ³"], "HResult": data[i]["é»è®¤ç»è®º"], |
| | | "HQCCheckItemID": data[i]["HQCCheckItemID"], "æ£éªé¡¹ç®ä»£ç ": data[i].æ£éªé¡¹ç®ä»£ç , "æ£éªé¡¹ç®": data[i]["æ£éªé¡¹ç®"], "HInspectInstruMentID": data[i]["HInspectInstruMentID"], "æ£éªä»ªå¨ä»£ç ": data[i]["æ£éªä»ªå¨ä»£ç "], "æ£éªä»ªå¨": data[i]["æ£éªä»ªå¨"], "HQCStd": data[i]["HQCStd"], "HUnit": data[i]["åä½åç§°"], "HQCNote": "", "HAnalysisMethod": data[i]["åææ¹æ³"], "HResult": data[i]["é»è®¤ç»è®º"], |
| | | "HMax": "", "HMin": "", "HAvg": "", "HRemark": "", "HKeyInspect": data[i]["éç¹æ£æ¥"] == 1 ? true : false, "HStatus": 0, "HSampleSchemeID": data[i]["HSampleSchemeID"], "HUnitID": data[i]["HUnitID"], |
| | | "HInspectVal": '', "HTargetVal": '', "HUpLimit": + data[i].ä¸éå¼, "HDownLimit": + data[i].ä¸éå¼, "HUpOffSet": '', "HDownOffSet": '', "HSampleDamageQty": "0", |
| | | "HSampleSchemeName": data[i].æ½æ ·æ¹æ¡åç§°, "HSampleQty": data[i].æ ·æ¬é, "HAcceptQty": data[i].å
许æ°, "HInspectionLevel": data[i].æ£éªæ°´å¹³, "HRejectQty": data[i].æç»æ°, |
| | |
| | | $("tr[data-index = " + (result.data.length - 1) + "] ").attr({ "style": "background:#ceedfa;color:black" }); |
| | | |
| | | trindex = result.data.length - 1; |
| | | $("#HEntryID").val() - 1 |
| | | } |
| | | $("#HEntryID").val() - 1 |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | |
| | | window.get_CheckItem1 = function () { |
| | | var HBatchQty = $("#HProcExchQty").val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetCheckItemByCheckProjectID", |
| | | type: "GET", |
| | | data: { "CheckProjectID": $("#HQCSchemeID").val() == '' ? 0 : $("#HQCSchemeID").val(), "HBatchQty": HBatchQty }, |
| | | success: function (result) { |
| | | if (result.code == 1) { |
| | | var rowdata = []; |
| | | rowdata_Value = []; |
| | | var data = result.data; |
| | | for (var i = 0; i < result.data.length; i++) { |
| | | //å表 èµå¼ |
| | | rowdata.push( |
| | | //{ |
| | | //"HQCCheckItemID": data[i]["HQCCheckItemID"], "æ£éªé¡¹ç®": data[i]["æ£éªé¡¹ç®"], "HInspectInstruMentID": 0, "æ£éªä»ªå¨": "", "HQCStd": data[i]["HQCStd"], "HUnit": data[i]["HUnit"], "HQCNote": "", "HAnalysisMethod": data[i]["HAnalysisMethod"], "HResult": data[i]["HResult"], |
| | | //"HMax": "", "HMin": "", "HAvg": "", "HRemark": "", "HKeyInspect": false, "HStatus": 0, "HSampleSchemeID": 0, "HUnitID": 0, |
| | | //"HInspectVal": '', "HTargetVal": '', "HUpLimit": '', "HDownLimit": '', "HUpOffSet": '', "HDownOffSet": '', "HSampleDamageQty": '', |
| | | //"HSampleSchemeName": "", "HSampleQty": "", "HSampleDamageQty": "", "HAcceptQty": "", "HInspectionLevel": "", "HRejectQty": "", |
| | | //"HStrictness": "", "HSampleUnRightQty": "", "HAQL": "", "HSamplingType": "" |
| | | //} |
| | | { |
| | | "HQCCheckItemID": data[i]["HQCCheckItemID"], "æ£éªé¡¹ç®ä»£ç ": data[i].æ£éªé¡¹ç®ä»£ç , "æ£éªé¡¹ç®": data[i]["æ£éªé¡¹ç®"], "HInspectInstruMentID": data[i]["HInspectInstruMentID"], "æ£éªä»ªå¨ä»£ç ": data[i]["æ£éªä»ªå¨ä»£ç "], "æ£éªä»ªå¨": data[i]["æ£éªä»ªå¨"], "HQCStd": data[i]["HQCStd"], "HUnit": data[i]["åä½åç§°"], "HQCNote": "", "HAnalysisMethod": data[i]["åææ¹æ³"], "HResult": data[i]["é»è®¤ç»è®º"], |
| | | "HMax": "", "HMin": "", "HAvg": "", "HRemark": "", "HKeyInspect": data[i]["éç¹æ£æ¥"] == 1 ? true : false, "HStatus": 0, "HSampleSchemeID": data[i]["HSampleSchemeID"], "HUnitID": data[i]["HUnitID"], |
| | | "HInspectVal": '', "HTargetVal": '', "HUpLimit": + data[i].ä¸éå¼, "HDownLimit": + data[i].ä¸éå¼, "HUpOffSet": '', "HDownOffSet": '', "HSampleDamageQty": "0", |
| | | "HSampleSchemeName": data[i].æ½æ ·æ¹æ¡åç§°, "HSampleQty": data[i].æ ·æ¬é, "HAcceptQty": data[i].å
许æ°, "HInspectionLevel": data[i].æ£éªæ°´å¹³, "HRejectQty": data[i].æç»æ°, |
| | | "HStrictness": data[i].ä¸¥æ ¼åº¦, "HSampleUnRightQty": "", "HAQL": data[i].AQL, "HSamplingType": data[i].æ½æ ·ç±»å |
| | | } |
| | | ); |
| | | SampleNum.push(data[i].æ ·æ¬é); |
| | | } |
| | | |
| | | //æ£éªé¡¹ç® |
| | | for (let j = 1; j <= data[data.length - 1].æ ·æ¬é; j++) { |
| | | rowdata_Value.push({ |
| | | "HSEQ": j, "HInSpectResult": "", "HInSpectValueB": "", "HInSpectValueT": "", "HInSpectValue": "", "rowNum": $("#HEntryID").val() |
| | | }); |
| | | } |
| | | //æ£éªé¡¹ç® |
| | | option.data = rowdata; |
| | | table.render(option); |
| | | //æ£éªå¼ |
| | | option_Value.data = rowdata_Value; |
| | | //console.log(JSON.stringify(option_Value.data)); |
| | | table.render(option_Value); |
| | | //================================================ |
| | | for (var i = 1; i <= result.data.length; i++) { |
| | | $('#HAnalysisMethod' + i + '').find("option[value='" + option.data[i - 1].HAnalysisMethod + "']").attr("selected", true); |
| | | $('#HResult' + i + '').find("option[value='" + option.data[i - 1].HResult + "']").attr("selected", true); |
| | | } |
| | | form.render('select'); |
| | | |
| | | option_Check = result.data; |
| | | |
| | | $("[name='HEntryID']").attr("value", result.data.length); |
| | | $("[name='HQCCheckItemID']").attr("value", result.data[result.data.length - 1].HQCCheckItemID); |
| | | $("[name='HQCCheckItemName']").attr("value", result.data[result.data.length - 1].æ£éªé¡¹ç®); |
| | | //é»è®¤é䏿åä¸è¡ |
| | | $("tr[data-index = " + (result.data.length - 1) + "] .layui-form-checkbox").dblclick(); |
| | | //$("tr[data-index = " + (result.data.length - 1) + "] .layui-form-checkbox").addClass('layui-form-checked'); |
| | | $("tr[data-index = " + (result.data.length - 1) + "] ").attr({ "style": "background:#ceedfa;color:black" }); |
| | | |
| | | trindex = result.data.length - 1; |
| | | $("#HEntryID").val() - 1 |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | //表头信æ¯å·¥åºæµè½¬å¡å¼¹çª |
| | | form.on('submit(btnSearchProcExch)', function () { |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../../views/Baseset/åºç¡èµæ/Sc_ProcessExchangeBillListView.html', 'yes'], |
| | | content: ['../../车é´ç®¡ç/å·¥åºæµè½¬å¡/Sc_ProcessExchangeBillList.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../ç产管ç/ç产任å¡å/Sc_ICMOBillList.html', 'yes'], |
| | | content: ['../../ç产管ç/ç产任å¡å/Sc_ICMOBillList.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_Source.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_Source.html?Htype=&openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | get_ICMOBillStatusList(); |
| | | get_QC_TakeSampleCheckBillList(); |
| | | GetCheckItemID(); |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_Process.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_Process.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | get_ICMOBillStatusList(); |
| | | get_QC_TakeSampleCheckBillList(); |
| | | GetCheckItemID(); |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Material.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Material.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | } |
| | | $("#HMaterNumber").val(checkStatus.data[0].ç©æä»£ç ); |
| | | $("#HMaterID").val(checkStatus.data[0].HItemID); |
| | | GetCheckItemID(); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | function set_InitGrid() { |
| | | $('#set_CheckBill').addClass("layui-btn-disabled").attr("disabled", true);//åå§åç¦ç¨å®¡æ ¸æé® |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | //åå§è¡¨æ ¼æ°æ® |
| | | rowdata = [{ |
| | | "HQCCheckItemID": "", "æ£éªé¡¹ç®": "", "HInspectInstruMentID": 0, "æ£éªä»ªå¨": "","HQCStd": "", "HUnit": "", "HQCNote": "", "HAnalysisMethod": "", "HResult": "", |
| | | "HQCCheckItemID": "", "æ£éªé¡¹ç®ä»£ç ": "","æ£éªé¡¹ç®": "", "HInspectInstruMentID": 0, "æ£éªä»ªå¨ä»£ç ": "", "æ£éªä»ªå¨": "", "HQCStd": "", "HUnit": "", "HQCNote": "", "HAnalysisMethod": "", "HResult": "", |
| | | "HMax": "", "HMin": "", "HAvg": "", "HRemark": "", "HKeyInspect": false, "HStatus": 0, "HSampleSchemeID": 0, "HUnitID": 0, |
| | | "HInspectVal": '', "HTargetVal": '', "HUpLimit": '', "HDownLimit": '', "HUpOffSet": '', "HDownOffSet": '', "HSampleDamageQty": '0', |
| | | "HSampleSchemeName": "", "HSampleQty": "0", "HSampleDamageQty": "0", "HAcceptQty": "", "HInspectionLevel": "", "HRejectQty": "", |
| | |
| | | , { field: 'æ£éªé¡¹ç®ä»£ç ', title: 'æ£éªé¡¹ç®ä»£ç ' } |
| | | , { field: 'æ£éªé¡¹ç®', title: 'æ£éªé¡¹ç®', edit: 'text', event: 'HQCCheckItemID' } |
| | | , { field: 'HInspectInstruMentID', title: 'HInspectInstruMentID', hide: true } |
| | | , { |
| | | field: 'æ£éªä»ªå¨ä»£ç ', title: 'æ£éªä»ªå¨ä»£ç ', totalRow: true, templet: function (d) { |
| | | return '<span style="color: blue;" lay-event="æ£éªä»ªå¨ä»£ç ">' + d.æ£éªä»ªå¨ä»£ç + '</span>'; |
| | | }, style: 'cursor: pointer;' |
| | | } |
| | | , { field: 'æ£éªä»ªå¨', title: 'æ£éªä»ªå¨', edit: 'text', event: 'HInspectInstruMentID' } |
| | | , { field: 'HResult', title: 'ç»è®º', templet: '#HResult' } |
| | | , { field: 'HAnalysisMethod', title: 'åææ¹æ³', templet: '#HAnalysisMethod', event: 'HAnalysisMethod' } |
| | |
| | | , { field: 'HInspectVal', title: 'æ£éªå¼', edit: 'text' } |
| | | , { field: 'HUpLimit', title: 'ä¸éå¼' } |
| | | , { field: 'HDownLimit', title: 'ä¸éå¼' } |
| | | , { field: 'HMax', title: 'æå¤§å¼', edit: 'text', totalRow: true} |
| | | , { field: 'HMax', title: 'æå¤§å¼', edit: 'text', totalRow: true } |
| | | , { field: 'HMin', title: 'æå°å¼', edit: 'text', totalRow: true } |
| | | , { field: 'HAvg', title: 'å¹³åå¼', edit: 'text', totalRow: true } |
| | | //, { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | |
| | | , { field: 'HTargetVal', title: 'ç®æ å¼', edit: 'text', hide: true } |
| | | , { field: 'HUpOffSet', title: 'ä¸åå·®', edit: 'text', hide: true } |
| | | , { field: 'HDownOffSet', title: 'ä¸åå·®', edit: 'text', hide: true } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 85 } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 85 } |
| | | ]] |
| | | , done: function (res, curr, count) { |
| | | option.data = res.data; |
| | |
| | | //å è½½ç©ºè¡¨æ ¼ |
| | | option_Value.data = rowdata_Value; |
| | | table.render(option_Value); |
| | | |
| | | //表ä½å设置æ¥è¯¢ |
| | | DisPlay_HideColumn(); |
| | | } |
| | | |
| | | //è¡éæ©å¤çï¼ç»è®ºï¼ |
| | |
| | | } |
| | | } |
| | | if (HQty > 0) { |
| | | document.querySelectorAll("[name='HCheckerResult']")[0].removeAttribute('checked'); //å é¤éæ©å±æ§ |
| | | $("input:radio[name=HCheckerResult][value=" + false + "]").attr("checked", "true"); //æ·»å 鿩屿§ |
| | | document.querySelectorAll("[name='HCheckerResult']")[0].removeAttribute('checked'); //å é¤éæ©å±æ§ |
| | | $("input:radio[name=HCheckerResult][value=" + false + "]").prop("checked", "true"); //æ·»å 鿩屿§ |
| | | } else { |
| | | document.querySelectorAll("[name='HCheckerResult']")[1].removeAttribute('checked'); //å é¤éæ©å±æ§ |
| | | $("input:radio[name=HCheckerResult][value=" + true + "]").attr("checked", "true"); //æ·»å 鿩屿§ |
| | | $("input:radio[name=HCheckerResult][value=" + true + "]").prop("checked", "true"); //æ·»å 鿩屿§ |
| | | } |
| | | form.render('radio'); |
| | | } |
| | |
| | | |
| | | //è·ååå
æ ¼æ£éªå¼æ°æ® |
| | | var table_value = table.cache['ValueTable']; |
| | | |
| | | |
| | | if (OperationType == 3) { |
| | | set_SaveValue(Number(nowindex) + Number(1)); |
| | | } else { |
| | |
| | | } |
| | | |
| | | //èµå¼ä¸åæ¾ |
| | | Assignment(nowindex, dataindex); |
| | | if ($("#HSampleSchemeID").val() != "0") { |
| | | Assignment(nowindex, dataindex); |
| | | } |
| | | if (isHavingCount == false && OperationType != 3) { |
| | | var row_value = []; |
| | | for (let i = 0; i < SampleNum[nowindex]; i++) { |
| | |
| | | //#endregion |
| | | |
| | | |
| | | //#regionãææ¬æ¡çå¬ï¼å
æ ç§»å¼æ¶è§¦åã |
| | | //#region ãææ¬æ¡çå¬ï¼å
æ ç§»å¼æ¶è§¦åã |
| | | |
| | | //[ å¤å®æ£éªæ¯å¦åæ ¼ ]çå¬ææ¬æ¡ç¼è¾--æ£éªå¼ |
| | | $("#HInspectVal").blur(function () { |
| | |
| | | |
| | | //#endregion |
| | | |
| | | //#regionã夿æ¯å¦åæ ¼æ¹æ³ã |
| | | //#region ã夿æ¯å¦åæ ¼æ¹æ³ã |
| | | function Qualified(HComparator, HEntryID, HAnalysisMethod) { |
| | | var HInspectVal = $("#HInspectVal").val(); //æ£éªå¼ |
| | | var HTargetVal = $("#HTargetVal").val(); //ç®æ å¼ |
| | |
| | | var HStatus = $("#HStatus").val() //ç¶æ |
| | | var HAcceptQty = $("#HAcceptQty").val();//å
è®¸æ° |
| | | |
| | | //#regionã宿§åææ¹æ³ã |
| | | //#region ã宿§åææ¹æ³ã |
| | | if (HAnalysisMethod == 1) { |
| | | //ç¶æä¸ºåæ ¼ |
| | | if (HStatus == 1) { |
| | |
| | | } |
| | | } |
| | | //#endregion |
| | | //#regionãå®éåææ¹æ³ã |
| | | //#region ãå®éåææ¹æ³ã |
| | | else if (HAnalysisMethod == 2) { |
| | | //ç¶æä¸ºåæ ¼ |
| | | if (HStatus == 1) { |
| | |
| | | } |
| | | } |
| | | //#endregion |
| | | //#regionãå
¶ä»åææ¹æ³ã |
| | | //#region ãå
¶ä»åææ¹æ³ã |
| | | else if (HAnalysisMethod == 3) { |
| | | //ç¶æä¸ºåæ ¼ |
| | | if (HStatus == 1) { |
| | |
| | | }; |
| | | //#endregion |
| | | |
| | | //#regionãèµå¼ä¸åæ¾ã |
| | | //#region ãèµå¼ä¸åæ¾ã |
| | | function Assignment(nowindex, dataindex) { |
| | | if (SummaryIndex.indexOf(nowindex) == -1 && option.data[0].HSampleSchemeID == 0) { |
| | | var dataobj = { |
| | |
| | | async: false, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | if (result.data.length > 0) { |
| | | $("#HTakeSampleCheckBillID").val(result.data[0]["hmainid"]); |
| | | $("#HTakeSampleCheckBillNo").val(result.data[0]["åæ®å·"]); |
| | | } |
| | |
| | | }); |
| | | } |
| | | |
| | | //#regionãéèæ£æµå¼å段ã |
| | | //#region ãéèæ£æµå¼å段ã |
| | | function IsHide(HAnalysisMethod_Value) { |
| | | if (HAnalysisMethod_Value == 1) { //妿éä¸ã宿§åæãï¼åéèå®éãå
¶ä»åæ |
| | | option_Value.cols[0][3].hide = false; //宿§ |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //#regionãæ¹åéä¸è¡é¢è²ã |
| | | //#region ãæ¹åéä¸è¡é¢è²ã |
| | | function check_row(obj) { |
| | | if (trindex != "") { |
| | | $("tr[data-index = " + (trindex) + "] ").attr({ "style": "background:" });//åæ¶å½åtré¢è² |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //èªå¨å¸¦åºæ£éªæ¹æ¡ |
| | | function GetCheckItemID() { |
| | | var HName = $("#HMaterName").val(); |
| | | var HProName = $("#HProcName").val(); |
| | | var HSourceID = $("#HSourceID").val(); |
| | | if (HName != '' && HName != undefined && HProName != '' && HProName != undefined) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetCheckItemID", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HName": HName, "HProName": HProName, "HSourceID": HSourceID }, |
| | | success: function (result) { |
| | | if (result.code == 1) { |
| | | $("#HQCSchemeID").val(result.data[0].hmainid); |
| | | $("#HQCSchemeName").val(result.data[0].æ£éªæ¹æ¡åç§°); |
| | | get_CheckItem(); |
| | | } else { |
| | | layer.msg(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | |
| | | window.GetCheckItemID = function () { |
| | | var HName = $("#HMaterName").val(); |
| | | var HProName = $("#HProcName").val(); |
| | | var HSourceID = $("#HSourceID").val(); |
| | | if (HName != '' && HName != undefined && HProName != '' && HProName != undefined) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetCheckItemID", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HName": HName, "HProName": HProName, "HSourceID": HSourceID }, |
| | | success: function (result) { |
| | | if (result.code == 1) { |
| | | $("#HQCSchemeID").val(result.data[0].hmainid); |
| | | $("#HQCSchemeName").val(result.data[0].æ£éªæ¹æ¡åç§°); |
| | | get_CheckItem(); |
| | | } else { |
| | | layer.msg(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | |
| | | //è·åçæ¬¡ |
| | | function get_HWorkShift() { |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Gy_ShiftsController/Get_HWorkShift", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { |
| | | "HDeptID": HDeptID, |
| | | "HCenterID": HCenterID |
| | | }, |
| | | success: function (data) { |
| | | if (data.count == 1)// 说æéªè¯æåäºï¼ |
| | | { |
| | | var LoadData = data.data; |
| | | $("#HShiftsID").val(LoadData[0].HInterID); //å½åå·¥åºID |
| | | $("#HShiftsName").val(LoadData[0].çæ¬¡); //å½åå·¥åº |
| | | } |
| | | //else { |
| | | // layer.alert(data.Message, { icon: 5 }); |
| | | //} |
| | | }, |
| | | error: function (err) { |
| | | layer.alert(err, { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //#region å®¡æ ¸æ°æ® |
| | | function set_CheckBill() { |
| | | var InterID = $("#HInterID").val(); |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/QC_ProcessCheckBill/QC_ProcessCheckBillMainValue", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID, "IsAudit": 0, "CurUserName": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | }); |
| | | $('#set_CheckBill').addClass("layui-btn-disabled").attr("disabled", true);// ç¦ç¨å®¡æ ¸æé® |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | //#region å表1ï¼éèå设置 |
| | | function get_HideColumn() { |
| | | var colName = ""; |
| | | var contentUrl = ""; |
| | | for (var i = 1; i < option.cols[0].length - 1; i++) { |
| | | colName += option.cols[0][i]["title"] + ","; |
| | | } |
| | | var urlStr = window.document.location.pathname;//è·åæä»¶è·¯å¾ |
| | | var urlLen = urlStr.split('/'); |
| | | for (var i = 0; i < urlLen.length - 4; i++) { |
| | | contentUrl += "../"; |
| | | } |
| | | colName = encodeURI(colName.substring(0, colName.length - 1));//对 URI è¿è¡ç¼ç |
| | | |
| | | contentUrl += 'åºç¡èµæ/éèå设置/Gy_GridView_Hide.html?HModName=' + HModName + '&colName=' + colName; |
| | | |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "éèå设置" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["50%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: [contentUrl, "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | DisPlay_HideColumn(); |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //#region å表1ï¼æ¾ç¤ºåæ°æ® |
| | | function DisPlay_HideColumn() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', |
| | | async: false, |
| | | type: "GET", |
| | | data: { "HModName": HModName, "user": sessionStorage["HUserName"] }, |
| | | async: false, |
| | | success: function (data1) { |
| | | if (data1.data.length != 0) { |
| | | var dataCol = [];//æ°æ®åºæ¥è¯¢åºçåæ°æ® |
| | | var titleData = ["HQCCheckItemID", "HInspectInstruMentID"]; |
| | | |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | | |
| | | for (var i = 0; i < option.cols[0].length - 2; i++) { |
| | | if (dataCol.length <= i) { |
| | | break; |
| | | } |
| | | var dataCols = dataCol[i].split('|'); |
| | | //éèå |
| | | if (dataCols[1] == 1) { |
| | | option.cols[0][i + 1]["hide"] = true; |
| | | } |
| | | //设置å宽 |
| | | if (dataCols[3] > 0) { |
| | | option.cols[0][i + 1]["width"] = dataCols[3]; |
| | | } |
| | | //设置å
容åä½å¤§å° |
| | | if (data1.data[0].HFontSize != 0) { |
| | | option.cols[0][i + 1]["style"] += "font-size:" + data1.data[0].HFontSize + "px;"; |
| | | } else { |
| | | option.cols[0][i + 1]["style"] += "font-size:100%"; |
| | | } |
| | | //æ¾ç¤ºå |
| | | if (dataCols[1] == 0 && $.inArray(option.cols[0][i + 1]["title"], titleData) == -1) { |
| | | option.cols[0][i + 1]["hide"] = false; |
| | | } |
| | | //å使å¨ä½ç½®(å·¦ å±
ä¸ å³) |
| | | switch (dataCols[2]) { |
| | | case "L": |
| | | option.cols[0][i + 1]["align"] = "left"; |
| | | break; |
| | | case "M": |
| | | option.cols[0][i + 1]["align"] = "center"; |
| | | break; |
| | | case "R": |
| | | option.cols[0][i + 1]["align"] = "right"; |
| | | break; |
| | | } |
| | | //è®¾ç½®è¡¨æ ¼title屿§æ¾ç¤ºå«å |
| | | if (dataCols[4] != null && dataCols[4] != "") { |
| | | option.cols[0][i + 1]["title"] = dataCols[4]; |
| | | } |
| | | } |
| | | |
| | | //åæ¶å»ç»å |
| | | for (var i = 1; i < option.cols[0].length - 1; i++) { |
| | | if (option.cols[0][i]["fixed"] != null) { |
| | | option.cols[0][i]["fixed"] = null; |
| | | } |
| | | else { |
| | | break; |
| | | } |
| | | } |
| | | //å»ç»å |
| | | if (data1.data[0].HFixCols != 0) { |
| | | for (var i = 0; i < data1.data[0].HFixCols; i++) { |
| | | if ($.inArray(option.cols[0][i + 1]["title"], titleData) != -1) { |
| | | data1.data[0].HFixCols += 1; |
| | | } |
| | | option.cols[0][i + 1]["fixed"] = "left"; |
| | | } |
| | | } |
| | | table.render(option); |
| | | } else { |
| | | table.render(option); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //以ä¸ä¸ºlayui模å |
| | | }); |
| | | |
| | |
| | | $("#HProcExchBillNo").val(obj[0].åæ®å·); |
| | | } |
| | | |
| | | function GetMaterValue(obj) { //ç©æ |
| | | $("#HMaterNumber").val(obj[0].ç©æä»£ç ); |
| | | $("#HMaterName").val(obj[0].ç©æåç§°); |
| | | $("#HMaterID").val(obj[0].HItemID); |
| | | function GetGyMaterial(obj) { //ç©æ |
| | | $("#HMaterNumber").val(obj.ç©æä»£ç ); |
| | | $("#HMaterName").val(obj.ç©æåç§°); |
| | | $("#HMaterID").val(obj.HItemID); |
| | | GetCheckItemID(); |
| | | } |
| | | |
| | | function GetHEmpValue(obj) { //è´¨æ£å |
| | |
| | | function GetCheckProjectValue(obj) { //è´¨æ£æ¹æ¡ |
| | | $("#HQCSchemeID").val(obj[0].hmainid); |
| | | $("#HQCSchemeName").val(obj[0].æ£éªæ¹æ¡åç§°); |
| | | get_CheckItem(); |
| | | } |
| | | |
| | | get_CheckItem1(); |
| | | } |
| | | //çæ¬¡ |
| | | function GetHWorkShiftsValue(obj) { |
| | | $("#HShiftsName").val(obj[0].çæ¬¡åç§°); |
| | | $("#HShiftsID").val(obj[0].HInterID); |
| | | } |
| | | //å·¥åº |
| | | function GetProcessValue(obj) { |
| | | $("#HProcName").val(obj[0].å·¥åºåç§°); |
| | | $("#HProcID").val(obj[0].HItemID); |
| | | } |
| | | //计éåä½ |
| | | function GetHUnitListValue(obj) { |
| | | $("#HUnitID").val(obj.HItemID); |
| | | $("#HUnit").val(obj.计éåä½åç§°); |
| | | } |
| | | //æ£éªå¼ |
| | | function GetHInspect1Value(obj) { |
| | | $("#HInspectValB").val(obj[0].HItemID); |
| | | $("#HInspectVal").val(obj[0].æ£æµå¼åç§°); |
| | | } |
| | | //æ£éªå¼ |
| | | function GetHInspectValue(obj) { |
| | | $("#HTargetValB").val(obj.HItemID); |
| | | $("#HTargetVal").val(obj.æ£æµå¼åç§°); |
| | | $("#HUpLimit").val(obj.HItemID); |
| | | $("#HDownLimit").val(obj.æ£æµå¼åç§°); |
| | | } |
| | | //æ£éªé¡¹ç® |
| | | function GetCheckItemValue(obj) { |
| | | OptionData = obj; |
| | | } |
| | | //æ£éªä»ªå¨ |
| | | function GetInspectInstruMentValue(obj) { |
| | | OptionData = obj; |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |