| | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | |
| | | <head> |
| | | <meta charset="utf-8" /> |
| | | <title>æ°å¢/ç¼è¾åºåæ£éªå</title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"> |
| | | <meta name="viewport" |
| | | content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"> |
| | | <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> |
| | |
| | | margin-left: -15px; |
| | | margin-right: -15px; |
| | | } |
| | | |
| | | .zy-hidden { |
| | | display: none; |
| | | } |
| | | </style> |
| | | </head> |
| | | |
| | | <body> |
| | | <div class="layui-fluid" style="padding: 0;"> |
| | | <div class="layui-card" style="padding: 15px;"> |
| | |
| | | <form class="layui-form" lay-filter="formData" action=""> |
| | | <div class="layui-card-header"> |
| | | <div class="layui-btn-group"> |
| | | <button type="button" id="btnSave" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Saver">ä¿å</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Exit">éåº</button> |
| | | <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> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill"> |
| | | <h1 style="text-align: center; padding: 10px 0;"><b>åºè´§æ¥å</b></h1> |
| | | <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> |
| | |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HBillNo" id="HBillNo" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HInterID" id="HInterID" value="0"> |
| | | <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"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æ¥æ</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HDate" id="HDate" autocomplete="off" model="datetime" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd"> |
| | | <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: 68px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">客æ·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HCusName" id="HCusName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HCusID" id="HCusID" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HCusList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æºåç±»å</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <select name="HMainSourceBillType" id="HMainSourceBillType"> |
| | | <option value="1401" selected>éå®è®¢å</option> |
| | | <option value="1402">åè´§éç¥å</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: 77px;"> |
| | | <input type="text" class="layui-input" name="HMainSourceBillNo" |
| | | id="HMainSourceBillNo" |
| | | style="background-color:#efefef4d;width: 60%;display: inline-block;" |
| | | readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" |
| | | lay-submit="" lay-filter="btnSearchSourceBill" |
| | | id="btnSearchSourceBill" |
| | | 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="HMainSourceInterID" id="HMainSourceInterID" |
| | | value="0"> |
| | | <input type="hidden" name="HMainSourceEntryID" id="HMainSourceEntryID" |
| | | value="1"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">ç©æåç§°</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HMaterName" id="HMaterName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HMaterID" id="HMaterID" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="btnSearchMater" id="btnSearchMater" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | <div class="layui-inline zy-hidden"> |
| | | <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> |
| | | <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> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">åºåºæ°é</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HInStockQty" id="HInStockQty" value="0" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">åæ ¼æ°é</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HRightQty" id="HRightQty" value="0" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æ½æ£æ°é</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HCheckQty" id="HCheckQty" value="0" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">ä¸åæ ¼æ°é</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HBadQty" id="HBadQty" value="0" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">ä»»å¡åå·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HICMOBillNo" id="HICMOBillNo" class="layui-input" value="" style="float:left;width:150px; background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HICMOInterID" id="HICMOInterID" value="0"> |
| | | <input type="hidden" name="HICMOEntryID" id="HICMOEntryID" value="0"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="btnSearchICMOBill" id="btnSearchICMOBill" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">ä»»å¡åæ°é</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HICMOQty" id="HICMOQty" class="layui-input" value="" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æµè½¬å¡</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HProcExchBillNo" id="HProcExchBillNo" class="layui-input" value="" style="float:left;width:150px; background-color:#efefef4d;" 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 type="button" lay-submit="" class="layui-btn" lay-filter="btnSearchProcExch" id="btnSearchProcExch" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æµè½¬å¡æ°é</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HProcExchQty" id="HProcExchQty" class="layui-input" value="" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">çäº§èµæº</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HSourceName" id="HSourceName" class="layui-input" value="" style="float:left;width:150px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HSourceID" id="HSourceID" value="0"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="btnSearchSource" id="btnSearchSource" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">çäº§çæ¬¡</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HShiftsName" id="HShiftsName" class="layui-input" value="" style="float:left;width:150px;background-color:#efefef4d;" readonly> |
| | | <div class="layui-inline zy-hidden"> |
| | | <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="HShiftsName" |
| | | id="HShiftsName" |
| | | style="background-color:#efefef4d;width: 60%;display: inline-block;" |
| | | readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" |
| | | lay-submit="" lay-filter="btnHShifts" id="btnHShifts" |
| | | 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="HShiftsID" id="HShiftsID" value="0"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="btnHShifts" id="btnHShifts" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row zy-hidden"> |
| | | <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-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">å·¥åº</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HProcName" id="HProcName" class="layui-input" value="" style="float:left;width:150px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HProcID" id="HProcID" value="0"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="btnHProc" id="btnHProc" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | <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 value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" id="hidediv2"> |
| | | <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-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æ¹æ¬¡å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HBatchNo" id="HBatchNo" class="layui-input" value="" style="background-color:#efefef4d;" readonly> |
| | | <div class="layui-inline" id="hidediv1"> |
| | | <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" style="background-color:#efefef4d;" readonly |
| | | value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">å¤å®ç»è®º</label> |
| | | <div class="layui-input-block"> |
| | | <input type="radio" name="HLastResult" value="true" title="åæ ¼"> |
| | | <input type="radio" name="HLastResult" value="false" title="ä¸åæ ¼" checked> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æ£éªå</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HFirstCheckEmpName" id="HFirstCheckEmpName" class="layui-input" value="" style="float:left;width:150px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HFirstCheckEmp" id="HFirstCheckEmp" class="layui-input" value="0"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="btnSearchHFirstCheckEmp" id="btnSearchHFirstCheckEmp" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æ£éªæ¹æ¡</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="HQCSchemeName" id="HQCSchemeName" class="layui-input" value="" style="float:left;width:150px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HQCSchemeID" id="HQCSchemeID" class="layui-input" value="0"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="btnSearchQCScheme" id="btnSearchQCScheme" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs6 layui-inline"> |
| | | <label class="layui-form-label">å¼å¸¸ä¸´æ¶<br />å¤çæ¹æ¡</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HErrTreatment" id="HErrTreatment" placeholder="请è¾å
¥å
容" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs6 layui-inline"> |
| | | <label class="layui-form-label">夿³¨</label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="HRemark" id="HRemark" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!--å¶åä¿¡æ¯--> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å¶å人</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HMaker" id="HMaker" 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="HChecker" id="HChecker" 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="HCloseMan" id="HCloseMan" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ä¿®æ¹äºº</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HUpDater" id="HUpDater" 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="HDeleteMan " id="HDeleteMan " 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="HMakeDate" id="HMakeDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å®¡æ ¸æ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HCheckDate" id="HCheckDate" style="background-color:#efefef4d;" readonly> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" |
| | | style="width: 85px;padding: 9px 18px;">产å代ç </label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" 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> |
| | | <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="HCloseDate" id="HCloseDate" style="background-color:#efefef4d;" readonly> |
| | | <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> |
| | | <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="HUpDateDate" id="HUpDateDate" style="background-color:#efefef4d;" readonly> |
| | | <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> |
| | | <input type="hidden" name="HQCSchemeID" id="HQCSchemeID" value="0"> |
| | | <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> |
| | | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ä½åºæ¥æ</label> |
| | | <label class="layui-form-label" style="width: 85px;">æ¹å·</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HBatchNo" id="HBatchNo"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">夿ç»è®º</label> |
| | | <div class="layui-input-block"> |
| | | <input type="radio" name="HLastResult" value="true" title="åæ ¼" checked> |
| | | <input type="radio" name="HLastResult" value="false" title="ä¸åæ ¼"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" id="hidediv1" style="margin-left:20px;"> |
| | | <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 class="layui-row"> |
| | | <div class="layui-inline" style="width: 45%;"> |
| | | <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"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="width: 45%;"> |
| | | <label class="layui-form-label" style="width: 85px;">SNç è®°å½</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HRemarkSN" id="HRemarkSN" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="width: 45%"> |
| | | <label class="layui-form-label" style="width: 85px;">å¼å¸¸ä¸´æ¶<br />å¤çæ¹æ¡</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HErrTreatment" |
| | | id="HErrTreatment" placeholder="请è¾å
¥å
容" |
| | | onmouseover="this.title=this.value" style="margin-top:10px;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!--å¶åä¿¡æ¯--> |
| | | |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å¶å人</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HMaker" id="HMaker" |
| | | 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="HChecker" id="HChecker" |
| | | 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="HCloseMan" id="HCloseMan" |
| | | style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ä¿®æ¹äºº</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HUpDater" id="HUpDater" |
| | | 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="HDeleteMan " |
| | | id="HDeleteMan " 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="HMakeDate" id="HMakeDate" |
| | | style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å®¡æ ¸æ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HCheckDate" id="HCheckDate" |
| | | 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="HCloseDate" id="HCloseDate" |
| | | 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="HUpDateDate" |
| | | id="HUpDateDate" style="background-color:#efefef4d;" readonly> |
| | | </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="HDeleteDate" |
| | | id="HDeleteDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </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="HEntryID" id="HEntryID" value="0" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HEntryID" id="HEntryID" |
| | | 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> |
| | | <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="HQCCheckItemName" id="HQCCheckItemName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchCheckItemID" id="btnSearchCheckItemID" name="btnSearchCheckItemID" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <input type="text" class="layui-input" name="HQCCheckItemName" |
| | | id="HQCCheckItemName" |
| | | style="background-color:#efefef4d;width: 60%;display: inline-block;" |
| | | readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" |
| | | lay-filter="btnSearchCheckItemID" id="btnSearchCheckItemID" |
| | | name="btnSearchCheckItemID" |
| | | 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="HQCCheckItemID" id="HQCCheckItemID" value="0"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-top:5px;"> |
| | | <div class="layui-inline" style="border-bottom:2px solid #9C9C9C;width:260px;margin-left:30px"> |
| | | <label class="layui-form-label" style="width: 65px;height:5px;box-shadow:inset 95px 0px 5px 1px #9C9C9C;"> |
| | | <div class="layui-inline" |
| | | style="border-bottom:2px solid #9C9C9C;width:260px;margin-left:30px"> |
| | | <label class="layui-form-label" |
| | | style="width: 65px;height:5px;box-shadow:inset 95px 0px 5px 1px #9C9C9C;"> |
| | | <span style="text-align:center;margin-right:2.8px;color:white">æ½æ ·æ¹æ¡</span> |
| | | </label> |
| | | </div> |
| | | <div class="layui-inline" style="border-bottom:2px solid #9C9C9C;width:260px;margin-left:70px"> |
| | | <label class="layui-form-label" style="width: 65px;height:5px;box-shadow:inset 95px 0px 5px 1px #9C9C9C;"> |
| | | <div class="layui-inline" |
| | | style="border-bottom:2px solid #9C9C9C;width:260px;margin-left:70px"> |
| | | <label class="layui-form-label" |
| | | style="width: 65px;height:5px;box-shadow:inset 95px 0px 5px 1px #9C9C9C;"> |
| | | <span style="text-align:center;margin-right:2.8px;color:white">æ½æ ·æ£éª</span> |
| | | </label> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-top:5px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">æ½æ ·æ¹æ¡</label> |
| | | <label class="layui-form-label" |
| | | style="width: 85px;padding: 9px 18px;">æ½æ ·æ¹æ¡</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HSampleSchemeName" id="HSampleSchemeName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchCheckSampleScheme" id="btnSearchCheckSampleScheme" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <input type="text" class="layui-input" name="HSampleSchemeName" |
| | | id="HSampleSchemeName" |
| | | style="background-color:#efefef4d;width: 60%;display: inline-block;" |
| | | readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" |
| | | lay-filter="btnSearchCheckSampleScheme" id="btnSearchCheckSampleScheme" |
| | | 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="HSampleSchemeID" id="HSampleSchemeID" value="0"> |
| | |
| | | <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="HSampleQty" id="HSampleQty" value="0" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HSampleQty" id="HSampleQty" |
| | | value="0" 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="HSampleDamageQty" id="HSampleDamageQty" value="0" style=""> |
| | | <input type="text" class="layui-input" name="HSampleDamageQty" |
| | | id="HSampleDamageQty" value="0" style=""> |
| | | </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="HSamplingType" id="HSamplingType" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HSamplingType" |
| | | id="HSamplingType" 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="HAcceptQty" id="HAcceptQty" style="background-color:#efefef4d;" value="0" readonly> |
| | | <input type="text" class="layui-input" name="HAcceptQty" id="HAcceptQty" |
| | | style="background-color:#efefef4d;" value="0" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 70px;">æ£éªç»æ</label> |
| | | <div class="layui-input-block" style="margin-left: 100px;"> |
| | | <input type="text" class="layui-input" name="HInspectResultToSee" id="HInspectResultToSee" value="" style="" readonly> |
| | | <input type="text" class="layui-input" name="HInspectResultToSee" |
| | | id="HInspectResultToSee" value="" style="" readonly> |
| | | </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="HInspectionLevel" id="HInspectionLevel" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HInspectionLevel" |
| | | id="HInspectionLevel" 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="HRejectQty" id="HRejectQty" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HRejectQty" id="HRejectQty" |
| | | style="background-color:#efefef4d;" readonly> |
| | | </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="HStrictness" id="HStrictness" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HStrictness" id="HStrictness" |
| | | 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="HSampleUnRightQty" id="HSampleUnRightQty" style="" value="0"> |
| | | <input type="text" class="layui-input" name="HSampleUnRightQty" |
| | | id="HSampleUnRightQty" style="" value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">AQL</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HAQL" id="HAQL" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HAQL" id="HAQL" |
| | | style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 70px;">项ç®åºå·</label> |
| | | <div class="layui-input-block" style="margin-left: 100px;"> |
| | | <input type="text" class="layui-input" name="HEntryID" id="HEntryID" value="0" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HEntryID" id="HEntryID" |
| | | value="0" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 70px;">æ£éªé¡¹ç®</label> |
| | | <div class="layui-input-block" style="margin-left: 45px;"> |
| | | <input type="text" class="layui-input" name="HQCCheckItemName" id="HQCCheckItemName" style="background-color:#efefef4d;width: 53%;float:left;" readonly> |
| | | <input type="hidden" name="HQCCheckItemID" id="HQCCheckItemID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchCheckItemID" id="btnSearchCheckItemID" name="btnSearchCheckItemID" style="float: left;"> |
| | | <input type="text" class="layui-input" name="HQCCheckItemName" |
| | | id="HQCCheckItemName" |
| | | style="background-color:#efefef4d;width: 53%;float:left;" readonly> |
| | | <input type="hidden" name="HQCCheckItemID" id="HQCCheckItemID" |
| | | value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" |
| | | lay-submit="" lay-filter="btnSearchCheckItemID" |
| | | id="btnSearchCheckItemID" name="btnSearchCheckItemID" |
| | | style="float: left;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 70px;">æ ·æ¬é</label> |
| | | <div class="layui-input-block" style="margin-left: 100px;"> |
| | | <input type="text" class="layui-input" name="HSampleQty2" id="HSampleQty2" value="0" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HSampleQty2" |
| | | id="HSampleQty2" value="0" style="background-color:#efefef4d;" |
| | | readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 70px;">æ£éªç»æ</label> |
| | | <div class="layui-input-block" style="margin-left: 100px;"> |
| | | <input type="text" class="layui-input" name="HInspectResultToSee2" id="HInspectResultToSee2" value="" style="" readonly> |
| | | <input type="text" class="layui-input" name="HInspectResultToSee2" |
| | | id="HInspectResultToSee2" value="" style="" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 70px;">ä¸åæ ¼æ°</label> |
| | | <div class="layui-input-block" style="margin-left: 100px;"> |
| | | <input type="text" class="layui-input" name="HSampleUnRightQty2" id="HSampleUnRightQty2" value="0" style=""> |
| | | <input type="text" class="layui-input" name="HSampleUnRightQty2" |
| | | id="HSampleUnRightQty2" value="0" style=""> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 70px;">ä¿çå°æ°ä½</label> |
| | | <div class="layui-input-block" style="margin-left: 100px;"> |
| | | <input type="text" class="layui-input" name="HResDec" id="HResDec" value="2" style="" onfocus="this.select();"> |
| | | <input type="text" class="layui-input" name="HResDec" id="HResDec" |
| | | value="2" style="" onfocus="this.select();"> |
| | | </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"> |
| | | <label class="layui-form-label" style="width: 65px;height:5px;box-shadow:inset 95px 0px 5px 1px #9C9C9C;"> |
| | | <div class="layui-inline" |
| | | style="border-bottom:2px solid #9C9C9C;width:290px;margin-left:10px"> |
| | | <label class="layui-form-label" |
| | | style="width: 65px;height:5px;box-shadow:inset 95px 0px 5px 1px #9C9C9C;"> |
| | | <span style="text-align:center;margin-right:2.8px;color:white">ææ </span> |
| | | </label> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 70px;">åä½</label> |
| | | <div class="layui-input-block" style="margin-left: 45px;"> |
| | | <input type="text" class="layui-input" name="HUnit" id="HUnit" style="background-color:white;width: 53%;float:left;" readonly> |
| | | <input type="text" class="layui-input" name="HUnit" id="HUnit" |
| | | style="background-color:white;width: 53%;float:left;" readonly> |
| | | <input type="hidden" name="HUnitID" id="HUnitID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchUnit" id="btnSearchUnit" style="float: left;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" |
| | | lay-submit="" lay-filter="btnSearchUnit" id="btnSearchUnit" |
| | | style="float: left;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 70px;">æ£éªå¼</label> |
| | | <div class="layui-input-block" style="margin-left: 45px;"> |
| | | <input type="text" class="layui-input" name="HInspectVal" id="HInspectVal" style="background-color:white;width: 53%;float:left;" onfocus="this.select();" readonly> |
| | | <input type="text" class="layui-input" name="HInspectVal" |
| | | id="HInspectVal" |
| | | style="background-color:white;width: 53%;float:left;" |
| | | onfocus="this.select();" readonly> |
| | | <input type="hidden" name="HInspectValB" id="HInspectValB" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchInspectValB" id="btnSearchInspectValB" style="float: left;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" |
| | | lay-submit="" lay-filter="btnSearchInspectValB" |
| | | id="btnSearchInspectValB" style="float: left;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 70px;">ç®æ å¼</label> |
| | | <div class="layui-input-block" style="margin-left: 45px;"> |
| | | <input type="text" class="layui-input" name="HTargetVal" id="HTargetVal" style="background-color:white;width: 53%;float:left;" onfocus="this.select();" readonly> |
| | | <input type="text" class="layui-input" name="HTargetVal" id="HTargetVal" |
| | | style="background-color:white;width: 53%;float:left;" |
| | | onfocus="this.select();" readonly> |
| | | <input type="hidden" name="HTargetValB" id="HTargetValB" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchTargetValB" id="btnSearchTargetValB" style="float: left;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" |
| | | lay-submit="" lay-filter="btnSearchTargetValB" |
| | | id="btnSearchTargetValB" style="float: left;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 70px;">ä¸éå¼</label> |
| | | <div class="layui-input-block" style="margin-left: 100px;"> |
| | | <input type="text" class="layui-input" name="HUpLimit" id="HUpLimit" value="0" style="background-color:#efefef4d;" onfocus="this.select();" readonly> |
| | | <input type="text" class="layui-input" name="HUpLimit" id="HUpLimit" |
| | | value="0" style="background-color:#efefef4d;" |
| | | onfocus="this.select();" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 70px;">ä¸éå¼</label> |
| | | <div class="layui-input-block" style="margin-left: 100px;"> |
| | | <input type="text" class="layui-input" name="HDownLimit" id="HDownLimit" value="0" style="background-color:#efefef4d;" onfocus="this.select();" readonly> |
| | | <input type="text" class="layui-input" name="HDownLimit" id="HDownLimit" |
| | | value="0" style="background-color:#efefef4d;" |
| | | onfocus="this.select();" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 70px;">ä¸åå·®</label> |
| | | <div class="layui-input-block" style="margin-left: 100px;"> |
| | | <input type="text" class="layui-input" name="HUpOffSet" id="HUpOffSet" value="0" style="background-color:#efefef4d;" onfocus="this.select();" readonly> |
| | | <input type="text" class="layui-input" name="HUpOffSet" id="HUpOffSet" |
| | | value="0" style="background-color:#efefef4d;" |
| | | onfocus="this.select();" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 70px;">ä¸åå·®</label> |
| | | <div class="layui-input-block" style="margin-left: 100px;"> |
| | | <input type="text" class="layui-input" name="HDownOffSet" id="HDownOffSet" value="0" style="background-color:#efefef4d;" onfocus="this.select();" readonly> |
| | | <input type="text" class="layui-input" name="HDownOffSet" |
| | | id="HDownOffSet" value="0" style="background-color:#efefef4d;" |
| | | onfocus="this.select();" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <input type="hidden" name="HDeptID" id="HDeptID" value="0"> |
| | | <input type="hidden" name="HSourceOrgID" id="HSourceOrgID" value="0"><!--æ¥æºç»ç»--> |
| | | <input type="hidden" name="HInspectOrgID" id="HInspectOrgID" value="0"><!--è´¨æ£ç»ç»--> |
| | | <input type="hidden" name="HQCSchemeID_OutComp" id="HQCSchemeID_OutComp" value="0"><!-- åºåæ£éªæ¹æ¡ID --> |
| | | </form> |
| | | </div> |
| | | </div> |
| | |
| | | </script> |
| | | |
| | | <script> |
| | | |
| | | var OptionData = [] |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | |
| | | //#region ã卿è·å模ååç§°ã |
| | | var HModuleType = "7504"; |
| | | //éè¿åæ®ç±»åï¼ä»æ°æ®åºå¨æè·ååæ®æ¨¡åå½å,å¼ç¨jsæä»¶ PageTitle.js |
| | | var HPageTitle = get_PageTitle(HModuleType) == "" ? $("h1").html() : get_PageTitle(HModuleType); |
| | | var HPageTitle = get_PageTitle(HModuleType) || $("h1").html(); |
| | | $("h1").html('<b>' + HPageTitle + '</b>'); |
| | | //#endregion |
| | | |
| | |
| | | else if (OperationType == 2) { |
| | | $("#HInterID").val(""); |
| | | $("#HBillNo").val(""); |
| | | $("#btn-AddNew").addClass("layui-btn-disabled").attr("disabled", true);//ææºåæ¶æ°å¢æé®ç¦ç¨ |
| | | $('#btnSearchSource').addClass("layui-btn-disabled").attr("disabled", true);//ææºåæ¶çäº§èµæºæé®ç¦ç¨ |
| | | $('#btnSearchICMOBill').addClass("layui-btn-disabled").attr("disabled", true);//ææºåæ¶ä»»å¡åå·æé®ç¦ç¨ |
| | | $('#btnSearchMater').addClass("layui-btn-disabled").attr("disabled", true);//ææºåæ¶äº§åå
ç æé®ç¦ç¨ |
| | |
| | | $("#HDeptID").val(sessionStorage["HDeptID"]); //æ ¹æ®ç»å½ç¨æ·å¸¦åºé¨é¨ |
| | | $("#HSourceOrgID").val(sessionStorage["OrganizationID"]); //æ ¹æ®ç»å½ç¨æ·å¸¦åºç»ç»id |
| | | $("#HInspectOrgID").val(sessionStorage["OrganizationID"]); //æ ¹æ®ç»å½ç¨æ·å¸¦åºé¨é¨ |
| | | $("#HMainSourceBillType").val(HSouceBillType) |
| | | $("#HMainSourceBillType").attr('disabled', true) |
| | | |
| | | //è·åæå¤§åæ®å· |
| | | $.ajax({ |
| | |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | } |
| | | }); |
| | | //æ¥å·¥å¹³å°åºè´§æ¥å |
| | | if (HSouceBillType == 3722 || HSouceBillType == 4610) { |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | LoadingInformation2(); |
| | | } |
| | | //å·¥åºæµè½¬å¡å表åºè´§æ¥å |
| | | else if (HSouceBillType == 3772) { |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | LoadingInformation_ProcExchange(); |
| | | if (HSouceBillType && linterid && HEntryID) { |
| | | // æ¯å¦æ¯ä¸æ¨çæåæ® |
| | | if (HSouceBillType == 1401) { |
| | | // éå®è®¢å䏿¨ |
| | | LoadingInformation_SeOrder(); |
| | | if ((sessionStorage["OrganizationID"] == "7667152" && sessionStorage["Organization"] == "CMR Technology Mexico S.A. de C.V.") || |
| | | (sessionStorage["OrganizationID"] == "100199" && sessionStorage["Organization"] == "æå·æ¯è«å°ç£æ§æææéå
¬å¸")) { |
| | | //èªå¨å¸¦åºæ£éªæ¹æ¡ |
| | | GetCheckItemID(); |
| | | } |
| | | } |
| | | else if (HSouceBillType == 1402) { |
| | | // åè´§éç¥å䏿¨ |
| | | LoadingInformation_SeOutStock(); |
| | | if ((sessionStorage["OrganizationID"] == "7667152" && sessionStorage["Organization"] == "CMR Technology Mexico S.A. de C.V.") || |
| | | (sessionStorage["OrganizationID"] == "100199" && sessionStorage["Organization"] == "æå·æ¯è«å°ç£æ§æææéå
¬å¸")) { |
| | | //èªå¨å¸¦åºæ£éªæ¹æ¡ |
| | | GetCheckItemID(); |
| | | } |
| | | } else { |
| | | layer.alert("æºåç±»åæ æï¼", { icon: 5 }); |
| | | } |
| | | } |
| | | else { |
| | | layer.alert("æºåç±»åæ æï¼", { icon: 5 }); |
| | |
| | | //#region 表头弹æ¡éæ© |
| | | |
| | | //ä¿å |
| | | form.on('submit(Saver)', function (data) { |
| | | form.on('submit(btnSave)', function (data) { |
| | | set_SaveBill(data); |
| | | }); |
| | | |
| | | // æ°å¢ |
| | | form.on('submit(btn-AddNew)', function () { |
| | | set_AddBill(); |
| | | }); |
| | | |
| | | // å®¡æ ¸ |
| | | form.on('submit(set_CheckBill)', function () { |
| | | set_CheckBill(); |
| | | }) |
| | | |
| | | //éåº |
| | | form.on('submit(Exit)', function (data) { |
| | | form.on('submit(btn-Exit)', function (data) { |
| | | if (OperationType == 1) { |
| | | Pub_Close(closeType);//ç´æ¥æ°å¢closeTypeå¼ä¸º2ï¼åè¡¨è°æ°å¢closeTypeå¼ä»åè¡¨ä¼ é |
| | | Pub_Close(2);//ç´æ¥æ°å¢closeTypeå¼ä¸º2ï¼åè¡¨è°æ°å¢closeTypeå¼ä»åè¡¨ä¼ é |
| | | } |
| | | else if (OperationType == 3) { |
| | | Pub_Close(closeType); |
| | | Pub_Close(1); |
| | | } |
| | | else { |
| | | Pub_Close(2); |
| | | Pub_Close(1); |
| | | } |
| | | }); |
| | | |
| | |
| | | $("#HProcName").val(checkStatus.data[0].å·¥åºåç§°); |
| | | $("#HProcID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | get_ICMOBillStatusList(); |
| | | get_QC_TakeSampleCheckBillList(); |
| | | // get_ICMOBillStatusList(); |
| | | // get_QC_TakeSampleCheckBillList(); |
| | | GetCheckItemID(); |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | |
| | | $("#HMaterNumber").val(checkStatus.data[0].ç©æä»£ç ); |
| | | $("#HMaterName").val(checkStatus.data[0].ç©æåç§°); |
| | | $("#HMaterID").val(checkStatus.data[0].HItemID); |
| | | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | end: function (layero, index) { |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | |
| | | |
| | | //#endregion |
| | | |
| | | // #region 表ä½äºä»¶ |
| | | //表ä½ä¿¡æ¯åä½å¼¹çª |
| | | form.on('submit(btnSearchUnit)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'åä½å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../../views/åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Unit.html?openType=HUnitList', '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); |
| | | $("#HUnit").val(checkStatus.data[0].计éåä½åç§°); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //表ä½ä¿¡æ¯æ£éªå¼å¼¹çª |
| | | form.on('submit(btnSearchInspectValB)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'æ£éªå¼å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_InspectValue.html?type=HInspect1', '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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HInspectValB").val(checkStatus.data[0].HItemID); |
| | | $("#HInspectVal").val(checkStatus.data[0].æ£æµå¼åç§°); |
| | | |
| | | //==================================å¤å®æ¯å¦åæ ¼,åªæå®æ§åæå¯ä»¥éæ©æ£éªå¼ãç®æ å¼================================== |
| | | var HComparator = $("#HComparator").val(); //æ¯è¾ç¬¦ |
| | | var HEntryID = $("#HEntryID").val() - 1;//æ°ç»ä¸æ |
| | | var HAnalysisMethod = table.cache["mainTable"][HEntryID].HAnalysisMethod; //åææ¹æ³ |
| | | |
| | | Qualified(HComparator, HEntryID, HAnalysisMethod); |
| | | |
| | | form.render('select'); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //表ä½ä¿¡æ¯ç®æ å¼å¼¹çª |
| | | form.on('submit(btnSearchTargetValB)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'ç®æ å¼å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_InspectValue.html?type=HInspect', '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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HTargetValB").val(checkStatus.data[0].HItemID); |
| | | $("#HTargetVal").val(checkStatus.data[0].æ£æµå¼åç§°); |
| | | $("#HUpLimit").val(checkStatus.data[0].æ£æµå¼åç§°); |
| | | $("#HDownLimit").val(checkStatus.data[0].æ£æµå¼åç§°); |
| | | |
| | | //==================================å¤å®æ¯å¦åæ ¼,åªæå®æ§åæå¯ä»¥éæ©æ£éªå¼ãç®æ å¼================================== |
| | | var HComparator = $("#HComparator").val(); //æ¯è¾ç¬¦ |
| | | var HEntryID = $("#HEntryID").val() - 1;//æ°ç»ä¸æ |
| | | var HAnalysisMethod = table.cache["mainTable"][HEntryID].HAnalysisMethod; //åææ¹æ³ |
| | | |
| | | Qualified(HComparator, HEntryID, HAnalysisMethod); |
| | | |
| | | form.render('select'); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | // #endregion |
| | | |
| | | //#region 头工å
·æ äºä»¶ |
| | | table.on('toolbar(mainTable)', function (obj) { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | //æ°å¢è¡è¡¨æ ¼æ°æ® |
| | | var NewRow = { |
| | | "HQCCheckClassID": "", "æ£éªé¡¹ç®ç±»å«": "","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": "0", "HInspectionLevel": "", "HRejectQty": "", |
| | | "HStrictness": "", "HSampleUnRightQty": "", "HAQL": "", "HSamplingType": "" |
| | | "HStrictness": "", "HSampleUnRightQty": "", "HAQL": "", "HSamplingType": "", "HCompareSymbol": '=', "HQualityStdID": 0, "HQualityStdName": "", "HInspectMethodID": 0, "HInspectMethodName": "", "HInspectBasisID": 0, "HInspectBasisName": "" |
| | | }; |
| | | |
| | | switch (obj.event) { |
| | |
| | | |
| | | var HEntryID = $("#HEntryID").val() - 1;//æ°ç»ä¸æ |
| | | var HAnalysisMethod = table.cache["mainTable"][HEntryID].HAnalysisMethod; //åææ¹æ³ |
| | | option.data[HEntryID].HCompareSymbol = selectValue; |
| | | //å¤å®å¦ææ¯å®éåæ |
| | | if (HAnalysisMethod == 2) { |
| | | if (selectValue.toString() != '=' && selectValue.toString() != 'between') { |
| | |
| | | editIndex = Number(nowindex) + Number(1); |
| | | LastIndex = nowindex; |
| | | |
| | | $("[name='HEntryID']").attr("value", Number(nowindex) + Number(1)); |
| | | if (option_Check.length > 0) { |
| | | $("[name='HEntryID']").attr("value", Number(nowindex) + Number(1)); |
| | | $("[name='HQCCheckItemID']").attr("value", option_Check[nowindex].HQCCheckItemID); |
| | | $("[name='HQCCheckItemName']").attr("value", option_Check[nowindex].æ£éªé¡¹ç®); |
| | | //æ¾ç¤ºå½ååå»è¡çæ£æµå¼é¡µç¾ä¸çç®æ å¼ãä¸éå¼ãä¸éå¼ |
| | | $("#HTargetVal").val(option_Check[nowindex].ç®æ å¼); |
| | | $("#HUpLimit").val(option_Check[nowindex].ä¸éå¼); |
| | | $("#HDownLimit").val(option_Check[nowindex].ä¸éå¼); |
| | | $("#HComparator").val(option_Check[nowindex].æ¯è¾ç¬¦) |
| | | } |
| | | |
| | | //éä¸è¡æ¹åé¢è² |
| | | check_row(obj); |
| | |
| | | var row_value = []; |
| | | for (let i = 0; i < SampleNum[nowindex]; i++) { |
| | | row_value.push({ |
| | | "HSEQ": "0", "HInSpectResult": "", "HInSpectValueB": "", "HInSpectValueT": "", "HInSpectValue": "" |
| | | "HSEQ": (i + 1), "HInSpectResult": "", "HInSpectValueB": "0", "HInSpectValueB_Text": "", "HInSpectValueT": "", "HInSpectValue": "" |
| | | }); |
| | | } |
| | | //å·æ°æ£éªå¼è¡¨æ ¼ |
| | |
| | | $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) { |
| | | var rowIndex = Number($(obj.tr).attr("data-index")) + Number(1); |
| | | if (event.key == "F7") { |
| | | if (obj.event === 'HQCCheckClassID') //æ£éªé¡¹ç®ç±»å« |
| | | { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'æ£éªé¡¹ç®ç±»å«', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../../views/åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_QCCheckClass.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HQCCheckClassID: checkStatus.data[0].HItemID, |
| | | æ£éªé¡¹ç®ç±»å«: checkStatus.data[0].åç§°, |
| | | |
| | | }); |
| | | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | } |
| | | }); |
| | | } |
| | | if (obj.event == 'HQCCheckItemID') { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | |
| | | 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": "", |
| | | "HStrictness": "", "HSampleUnRightQty": "", "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) { |
| | | |
| | |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | if (OptionData.length > 0) { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | æ£éªä»ªå¨ä»£ç : OptionData[0].æ£éªä»ªå¨ä»£ç , |
| | | æ£éªä»ªå¨: OptionData[0].æ£éªä»ªå¨åç§°, |
| | | HInspectInstruMentID: OptionData[0].HItemID |
| | | }); |
| | | OptionData = []; |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | if (obj.event === 'HQualityStdName') // |
| | | { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'è´¨éæ åå表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_QualityStd.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | obj.update({ |
| | | HQualityStdID: checkStatus.data[0].HItemID, |
| | | HQualityStdName: checkStatus.data[0].è´¨éæ ååç§°, |
| | | }); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | if (OptionData[0].ç¦ç¨æ è®° != 'æ¯' || OptionData[0].å®¡æ ¸äºº != "") { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "HQualityStdID": OptionData[0].HItemID |
| | | , "HQualityStdName": OptionData[0].è´¨éæ ååç§° |
| | | }) |
| | | } else { |
| | | layer.msg("è¯¥è´¨éæ åå·²ç¦ç¨æªå®¡æ ¸ï¼è¯·éæ°éæ©!"); |
| | | } |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | } |
| | | if (obj.event === 'HInspectMethodName') // |
| | | { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'æ£éªæ¹æ³å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_InspectMethod.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | obj.update({ |
| | | HInspectMethodID: checkStatus.data[0].HItemID, |
| | | HInspectMethodName: checkStatus.data[0].æ£éªæ¹æ³åç§°, |
| | | }); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | if (OptionData[0].ç¦ç¨æ è®° != 'æ¯' || OptionData[0].å®¡æ ¸äºº != "") { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "HInspectMethodID": OptionData[0].HItemID |
| | | , "HInspectMethodName": OptionData[0].æ£éªæ¹æ³åç§° |
| | | }) |
| | | } else { |
| | | layer.msg("该æ£éªæ¹æ³å·²ç¦ç¨æªå®¡æ ¸ï¼è¯·éæ°éæ©!"); |
| | | } |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | } |
| | | if (obj.event === 'HInspectBasisName') // |
| | | { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'æ£éªä¾æ®å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_InspectBasis.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | obj.update({ |
| | | HInspectBasisID: checkStatus.data[0].HItemID, |
| | | HInspectBasisName: checkStatus.data[0].æ£éªä¾æ®åç§°, |
| | | }); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | if (OptionData[0].ç¦ç¨æ è®° != 'æ¯' || OptionData[0].å®¡æ ¸äºº != "") { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "HInspectBasisID": OptionData[0].HItemID |
| | | , "HInspectBasisName": OptionData[0].æ£éªä¾æ®åç§° |
| | | }) |
| | | } else { |
| | | layer.msg("该æ£éªä»ªå¨å·²ç¦ç¨æªå®¡æ ¸ï¼è¯·éæ°éæ©!"); |
| | | } |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | obj.event = ""; |
| | | return false; |
| | |
| | | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HInSpectValueB: checkStatus.data[0].æ£æµå¼åç§° |
| | | HInSpectValueB: checkStatus.data[0].HItemID, |
| | | HInSpectValueB_Text: checkStatus.data[0].æ£æµå¼åç§° |
| | | }); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | var DXValue = checkStatus.data[0].æ£æµå¼åç§°; //宿§æ£æµå¼ |
| | |
| | | break; |
| | | } |
| | | }); |
| | | |
| | | //#region ãåºå¼ä»£ç (æ¯è«å°å·²å¯ç¨)ã |
| | | 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; |
| | | case "HTargetVal": //ç®æ å¼ |
| | | value = isNaN(value) ? 0 : value; |
| | | |
| | | |
| | | break; |
| | | default: |
| | | } |
| | | }); |
| | | |
| | | function createArr(rowIndex) { |
| | | var arr_value = table.cache['ValueTable']; //è·åæ£æµå¼åå
æ ¼æ°æ® |
| | | |
| | | arr_value_add = []; //æ°å¢è¡å·å段 |
| | | arr_value.map((item, index) => { |
| | | arr_value_add.push(Object.assign({}, item, { rowNum: rowIndex })) |
| | | }) |
| | | |
| | | if (Array.length > 0) {//妿æ°ç»ä¸ä¸ºç©ºåéåæ°ç» |
| | | var whetherAdd = false; //æ¯å¦å·²ç»æ·»å è¿å½åè¡å·çæ°ç» |
| | | //éåæ°ç» |
| | | Array.some(item => { |
| | | if (item[0].rowNum == rowIndex) { |
| | | whetherAdd = true; |
| | | return true;//è·³åºéå |
| | | } else { |
| | | whetherAdd = false; |
| | | } |
| | | }) |
| | | //æ²¡ææ·»å è¿å½åè¡å·çæ°ç»åæ·»å è¿å» |
| | | if (whetherAdd == false) { |
| | | Array.push(arr_value_add); |
| | | } |
| | | } else { |
| | | Array.push(arr_value_add);//æ°ç»ä¸ºç©ºåä¸å夿ï¼ç´æ¥ææ°æ®æ·»å è¿æ°ç» |
| | | } |
| | | } |
| | | //#endregion |
| | | |
| | | //#endregion |
| | | |
| | |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | 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")); |
| | | $('#HMainSourceBillType').val(HSouceBillType || 1401) |
| | | $("#HMainSourceInterID").val(HInterID || 0) |
| | | $("#HMainSourceEntryID").val(HEntryID || 1) |
| | | //åå§è¡¨æ ¼æ°æ® |
| | | rowdata = [{ |
| | | "HQCCheckClassID": "", "æ£éªé¡¹ç®ç±»å«": "", "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": "0", "HInspectionLevel": "", "HRejectQty": "", |
| | | "HStrictness": "", "HSampleUnRightQty": "", "HAQL": "", "HSamplingType": "" |
| | | "HStrictness": "", "HSampleUnRightQty": "", "HAQL": "", "HSamplingType": "", "HCompareSymbol": '=', "HQualityStdID": 0, "HQualityStdName": "", "HInspectMethodID": 0, "HInspectMethodName": "", "HInspectBasisID": 0, "HInspectBasisName": "" |
| | | }]; |
| | | option = { |
| | | elem: '#mainTable' |
| | |
| | | , cols: [[ //表头 |
| | | { type: 'checkbox', totalRowText: 'å计è¡' } |
| | | , { type: 'numbers', title: 'åºå·', totalRow: true } |
| | | , { field: 'HQCCheckClassID', title: 'HQCCheckClassID', edit: 'text', width: 100, hide: true, totalRow: true } |
| | | , { field: 'æ£éªé¡¹ç®ç±»å«', title: 'æ£éªé¡¹ç®ç±»å«', edit: 'text', event: "HQCCheckClassID", width: 150 } |
| | | , { field: 'HQCCheckItemID', title: 'HQCCheckItemID', hide: true } |
| | | , { 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: 'æ£éªä»ªå¨ä»£ç ', 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', event: 'HResult' } |
| | | , { field: 'HAnalysisMethod', title: 'åææ¹æ³', templet: '#HAnalysisMethod', event: 'HAnalysisMethod' } |
| | | , { field: 'HKeyInspect', title: 'éç¹æ£æ¥', templet: '#HKeyInspect', unresize: false } |
| | | , { field: 'HQualityStdID', title: 'è´¨éæ åID', edit: 'text', hide: true } |
| | | , { field: 'HQualityStdName', title: 'è´¨éæ å', edit: 'text', event: 'HQualityStdName' } |
| | | , { field: 'HInspectMethodID', title: 'æ£éªæ¹æ³ID', edit: 'text', hide: true } |
| | | , { field: 'HInspectMethodName', title: 'æ£éªæ¹æ³', edit: 'text', event: 'HInspectMethodName' } |
| | | , { field: 'HInspectBasisID', title: 'æ£éªä¾æ®ID', edit: 'text', hide: true } |
| | | , { field: 'HInspectBasisName', title: 'æ£éªä¾æ®', edit: 'text', event: 'HInspectBasisName' } |
| | | , { field: 'HQCStd', title: 'æ£éªæ å', edit: 'text' } |
| | | , { field: 'HUnit', title: 'åä½', edit: 'text' } |
| | | , { field: 'HInspectVal', title: 'æ£éªå¼', edit: 'text' } |
| | | , { field: 'HQCNote', title: 'æ£éªè®°å½', edit: 'text' } |
| | | , { field: 'HTargetVal', title: 'ç®æ å¼' } |
| | | , { field: 'HUpLimit', title: 'ä¸éå¼' } |
| | | , { field: 'HDownLimit', title: 'ä¸éå¼' } |
| | | , { field: 'HMax', title: 'æå¤§å¼', edit: 'text', totalRow: true } |
| | |
| | | , { field: 'HSampleUnRightQty', title: 'æ ·æ¬ä¸åæ ¼æ°', edit: 'text', hide: true } |
| | | , { field: 'HAQL', title: 'AQL', edit: 'text', hide: true } |
| | | , { field: 'HStatus', title: 'ç¶æ', edit: 'text', hide: true } |
| | | , { field: 'xxx', title: 'æ¯è¾ç¬¦', edit: 'text', hide: true } |
| | | , { field: 'HCompareSymbol', title: 'æ¯è¾ç¬¦'} |
| | | , { field: 'HUnitID', title: 'åä½ID', edit: 'text', hide: true } |
| | | , { field: 'HUnit', title: 'åä½', edit: 'text', hide: true } |
| | | , { field: 'HTargetVal', title: 'ç®æ å¼', edit: 'text', hide: true } |
| | |
| | | |
| | | //åå§è¡¨æ ¼æ°æ® |
| | | rowdata_Value = [{ |
| | | "HSEQ": "0", "HInSpectResult": "", "HInSpectValueB": "", "HInSpectValueT": "", "HInSpectValue": "" |
| | | "HSEQ": "0", "HInSpectResult": "", "HInSpectValueB": "0", "HInSpectValueB_Text": "", "HInSpectValueT": "", "HInSpectValue": "" |
| | | }]; |
| | | option_Value = { |
| | | elem: '#ValueTable' |
| | |
| | | { type: 'checkbox', totalRowText: 'å计è¡' } |
| | | , { field: 'HSEQ', title: 'åºå·' } |
| | | , { field: 'HInSpectResult', title: 'æ£éªç»æ', templet: '#HInSpectResult' } |
| | | , { field: 'HInSpectValueB', title: 'æ£æµå¼ï¼å®æ§ï¼', edit: 'text', event: 'HInSpectValueB_Open' } |
| | | , { field: 'HInSpectValueB', title: 'æ£æµå¼IDï¼å®æ§ï¼', edit: 'text', hide: true } |
| | | , { field: 'HInSpectValueB_Text', title: 'æ£æµå¼ï¼å®æ§ï¼', edit: 'text', event: 'HInSpectValueB_Open' } |
| | | , { field: 'HInSpectValue', title: 'æ£æµå¼ï¼å®éï¼', edit: 'text', totalRow: true } |
| | | , { field: 'HInSpectValueT', title: 'æ£æµå¼ï¼å
¶ä»ï¼', edit: 'text' } |
| | | //, { fixed: 'right', title: 'æä½', toolbar: '#barDemo' } |
| | |
| | | //å è½½ç©ºè¡¨æ ¼ |
| | | option_Value.data = rowdata_Value; |
| | | table.render(option_Value); |
| | | |
| | | form.render('select') |
| | | } |
| | | |
| | | //å¤æè¡¨å¤´å¤æç»è®ºæ¯å¦åæ ¼ |
| | |
| | | HSampleQty: $("#HSampleQty").val(), //æ ·æ¬é |
| | | HInspectResultToSee: $("#HInspectResultToSee").val(), //æ£éªç»æ |
| | | HInspectResultToSee2: $("#HInspectResultToSee2").val(), //æ£éªç»æ2 |
| | | HSampleUnRightQty: $("#HSampleUnRightQty").val(), //æ ·æ¬ä¸åæ ¼æ° |
| | | HUnitID: $("#HUnitID").val(), //åä½ID |
| | | //HSampleUnRightQty: $("#HSampleUnRightQty").val(), //æ ·æ¬ä¸åæ ¼æ° |
| | | //HUnitID: $("#HUnitID").val(), //åä½ID |
| | | HUnitName: $("#HUnitName").val(), //åä½ |
| | | HInspectValB: $("#HInspectValB").val(), //æ£éªå¼ID |
| | | HInspectVal: $("#HInspectVal").val(), //æ£éªå¼ |
| | | //HInspectVal: $("#HInspectVal").val(), //æ£éªå¼ |
| | | HTargetValB: $("#HTargetValB").val(), //ç®æ å¼ID |
| | | HTargetVal: $("#HTargetVal").val(), //ç®æ å¼ |
| | | HUpLimit: $("#HUpLimit").val(), //ä¸éå¼ |
| | | HDownLimit: $("#HDownLimit").val(), //ä¸éå¼ |
| | | HUpOffSet: $("#HUpOffSet").val(), //ä¸åå·® |
| | | HDownOffSet: $("#HDownOffSet").val(), //ä¸åå·® |
| | | //HTargetVal: $("#HTargetVal").val(), //ç®æ å¼ |
| | | //HUpLimit: $("#HUpLimit").val(), //ä¸éå¼ |
| | | //HDownLimit: $("#HDownLimit").val(), //ä¸éå¼ |
| | | //HUpOffSet: $("#HUpOffSet").val(), //ä¸åå·® |
| | | //HDownOffSet: $("#HDownOffSet").val(), //ä¸åå·® |
| | | }; |
| | | |
| | | //è·åææ¬æ¡å¼ |
| | |
| | | HStatus: $("#HStatus").val(), //ç¶æ |
| | | HSampleSchemeID: option.data[nowindex].HSampleSchemeID, //æ½æ ·æ¹æ¡ID |
| | | HSampleSchemeName: option.data[nowindex].HSampleSchemeName, //æ½æ ·æ¹æ¡ |
| | | //xxx: $("#xxx").val(), |
| | | //HCompareSymbol: $("#HCompareSymbol").val(), |
| | | HUnitID: option.data[nowindex].HUnitID, //åä½ID |
| | | HUnit: option.data[nowindex].HUnit,//åä½ |
| | | HInspectVal: option.data[nowindex].HInspectVal, //æ£éªå¼ |
| | |
| | | HUpOffSet: option.data[nowindex].HUpOffSet, //ä¸åå·® |
| | | HDownOffSet: option.data[nowindex].HDownOffSet, //ä¸åå·® |
| | | }; |
| | | } else { |
| | | } else { |
| | | var dataobj = { |
| | | HEntryID: $("#HEntryID").val(), //è¡å· |
| | | HStatus: $("#HStatus").val(), //ç¶æ |
| | | HSampleSchemeID: option.data[nowindex].HSampleSchemeID, //æ½æ ·æ¹æ¡ID |
| | | HSampleSchemeName: option.data[nowindex].HSampleSchemeName, //æ½æ ·æ¹æ¡ |
| | | //xxx: $("#xxx").val(), |
| | | //HCompareSymbol: $("#HCompareSymbol").val(), |
| | | HUnitID: option.data[nowindex].HUnitID, //åä½ID |
| | | HUnit: option.data[nowindex].HUnit,//åä½ |
| | | HInspectVal: option.data[nowindex].HInspectVal, //æ£éªå¼ |
| | |
| | | $("#HUnitID").val(maindata[nowindex].HUnitID); |
| | | $("#HUnit").val(maindata[nowindex].HUnit); |
| | | $("#HInspectVal").val(maindata[nowindex].HInspectVal); |
| | | $("#HTargetVal").val(maindata[nowindex].HTargetVal); |
| | | $("#HUpLimit").val(maindata[nowindex].HUpLimit); |
| | | $("#HDownLimit").val(maindata[nowindex].HDownLimit); |
| | | $("#HTargetVal").val(maindata[nowindex].HTargetVal == "" ? (option_Check.length > 0 ? option_Check[nowindex].ç®æ å¼ : "") : maindata[nowindex].HTargetVal); |
| | | $("#HUpLimit").val(maindata[nowindex].HUpLimit == "" ? (option_Check.length > 0 ? option_Check[nowindex].ä¸éå¼ : "") : maindata[nowindex].HUpLimit); |
| | | $("#HDownLimit").val(maindata[nowindex].HDownLimit == "" ? (option_Check.length > 0 ? option_Check[nowindex].ä¸éå¼ : "") : maindata[nowindex].HDownLimit); |
| | | $("#HComparator").val(maindata[nowindex].HCompareSymbol == "" ? (option_Check.length > 0 ? option_Check[nowindex].æ¯è¾ç¬¦ : "=") : maindata[nowindex].HCompareSymbol); |
| | | $("#HUpOffSet").val(maindata[nowindex].HUpOffSet); |
| | | $("#HDownOffSet").val(maindata[nowindex].HDownOffSet); |
| | | $("#HSampleDamageQty").val(maindata[nowindex].HSampleDamageQty); |
| | |
| | | $("#HInspectValB").val(maindata[nowindex].HInspectValB); |
| | | $("#HInspectVal").val(maindata[nowindex].HInspectVal); |
| | | $("#HTargetValB").val(maindata[nowindex].HTargetValB); |
| | | $("#HTargetVal").val(maindata[nowindex].HTargetVal); |
| | | //$("#HTargetVal").val(maindata[nowindex].HTargetVal); |
| | | $("#HUpLimit").val(maindata[nowindex].HUpLimit); |
| | | $("#HDownLimit").val(maindata[nowindex].HDownLimit); |
| | | $("#HUpOffSet").val(maindata[nowindex].HUpOffSet); |
| | |
| | | EchoValue(); |
| | | } |
| | | } |
| | | //ç¨äºå廿£éªæ¹æ¡ä½¿ç¨ |
| | | window.get_CheckItem1 = function () { |
| | | var HBatchQty = $("#HProcExchQty").val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetCheckItemByCheckProjectID", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "CheckProjectID": $("#HQCSchemeID").val() == '' ? 0 : $("#HQCSchemeID").val(), "HBatchQty": HBatchQty }, |
| | | success: function (result) { |
| | | if (result.code == 1) { |
| | | var rowdata = []; |
| | | var data = result.data; |
| | | rowdata_Value = []; |
| | | for (var i = 0; i < result.data.length; i++) { |
| | | //å表 èµå¼ |
| | | rowdata.push( |
| | | { |
| | | "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(5); |
| | | SampleNum.push(data[0].æ ·æ¬é); |
| | | } |
| | | |
| | | //æ£éªé¡¹ç® |
| | | for (let j = 1; j <= 5; j++) { |
| | | rowdata_Value.push({ |
| | | "HSEQ": j, "HInSpectResult": "", "HInSpectValueB": "0", "HInSpectValueB_Text": "", "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 |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | //åæ¾æ£éªå¼ |
| | | function EchoValue() { |
| | | var HInterID = $("#HInterID").val(); |
| | |
| | | isHavingCount = false; |
| | | //åæ¾æ£éªå¼ |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/QC_ValueTable/getValueList", |
| | | url: GetWEBURL() + "/QC_OutCompCheckBill_ValueTable/getValueList", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HInterID": HInterID, "HEntryID": HEntryID, "user": sessionStorage["HUserName"] }, |
| | |
| | | form.render('select'); |
| | | } else { |
| | | option_Value.data = [{ |
| | | "HSEQ": "0", "HInSpectResult": "", "HInSpectValueB": "", "HInSpectValueT": "", "HInSpectValue": "" |
| | | "HSEQ": "0", "HInSpectResult": "", "HInSpectValueB": "0", "HInSpectValueB_Text": "", "HInSpectValueT": "", "HInSpectValue": "" |
| | | }]; |
| | | table.render(option_Value); |
| | | //layer.msg(result.code + result.Message, { icon: 5 }); |
| | | |
| | | IsHide(table.cache["mainTable"][HEntryID - 1].HAnalysisMethod); //éèæ£æµå¼å段 |
| | | form.render('select'); |
| | | } |
| | | } |
| | | }) |
| | |
| | | form.render('select'); |
| | | LastResult(); |
| | | } |
| | | |
| | | // #region éæ©æºå |
| | | form.on('submit(btnSearchSourceBill)', function () { |
| | | var selectedHSourceBillType = $("#HMainSourceBillType").val(); |
| | | var targetUrl = ""; |
| | | var execMethod = null |
| | | switch (selectedHSourceBillType) { |
| | | case '1401': // æºå为éå®è®¢å |
| | | targetUrl = '../../éå®ç®¡ç/éå®è®¢å/Xs_SeOrderBillList.html' |
| | | execMethod = LoadingInformation_SeOrder |
| | | break; |
| | | case '1402': // æºå为åè´§éç¥å |
| | | targetUrl = '../../éå®ç®¡ç/åè´§éç¥å/Xs_SeOutStockBillList.html' |
| | | execMethod = LoadingInformation_SeOutStock |
| | | break; |
| | | } |
| | | |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'æºåå表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: [targetUrl, '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('è¯·éæ©æ°æ®'); |
| | | } |
| | | debugger |
| | | var data1 = checkStatus.data[0] |
| | | $("#HMainSourceInterID").val(data1['hmainid']) |
| | | $("#HMainSourceEntryID").val(data1['hsubid']) |
| | | linterid = data1['hmainid'] |
| | | HEntryID = data1['hsubid'] |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | |
| | | execMethod() |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }) |
| | | }) |
| | | // #endregion |
| | | |
| | | // #region 表ä½ä¿¡æ¯æ½æ ·æ¹æ¡å¼¹çª |
| | | form.on('submit(btnSearchCheckSampleScheme)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'æ½æ ·æ¹æ¡å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../../views/Baseset/åºç¡èµæ/Gy_SampleSchemeListView.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HSampleSchemeID").val(checkStatus.data[0].hmainid); |
| | | $("#HSampleSchemeName").val(checkStatus.data[0].æ½æ ·æ¹æ¡åç§°); |
| | | $("#HSamplingType").val(checkStatus.data[0].æ½æ ·ç±»å); |
| | | $("#HInspectionLevel").val(checkStatus.data[0].æ£éªæ°´å¹³); |
| | | $("#HStrictness").val(checkStatus.data[0].ä¸¥æ ¼åº¦); |
| | | $("#HAQL").val(checkStatus.data[0].AQL); |
| | | $("#HSampleQty").val(checkStatus.data[0].æ ·æ¬é); |
| | | $("#HSampleQty2").val(checkStatus.data[0].æ ·æ¬é); |
| | | $("#HAcceptQty").val(checkStatus.data[0].å
许æ°); |
| | | |
| | | $("#HRejectQty").val(checkStatus.data[0].æç»æ°); |
| | | $("#HUpLimit").val(checkStatus.data[0].ä¸éå¼); |
| | | $("#HDownLimit").val(checkStatus.data[0].ä¸éå¼); |
| | | |
| | | if ($("#HEntryID").val() - 1 >= 0) { |
| | | option.data[$("#HEntryID").val() - 1].HSampleSchemeID = checkStatus.data[0].hmainid; |
| | | option.data[$("#HEntryID").val() - 1].HSampleSchemeName = checkStatus.data[0].æ½æ ·æ¹æ¡åç§°; |
| | | option.data[$("#HEntryID").val() - 1].HSamplingType = checkStatus.data[0].æ½æ ·ç±»å; |
| | | option.data[$("#HEntryID").val() - 1].HInspectionLevel = checkStatus.data[0].æ£éªæ°´å¹³; |
| | | option.data[$("#HEntryID").val() - 1].HStrictness = checkStatus.data[0].ä¸¥æ ¼åº¦; |
| | | option.data[$("#HEntryID").val() - 1].HAQL = checkStatus.data[0].AQL; |
| | | option.data[$("#HEntryID").val() - 1].HSampleQty = checkStatus.data[0].æ ·æ¬é; |
| | | option.data[$("#HEntryID").val() - 1].HSampleQty2 = checkStatus.data[0].æ ·æ¬é; |
| | | option.data[$("#HEntryID").val() - 1].HAcceptQty = checkStatus.data[0].å
许æ°; |
| | | 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++) { |
| | | rowdata_Value.push({ |
| | | "HSEQ": i, "HInSpectResult": "", "HInSpectValueB": "0", "HInSpectValueB_Text": "", "HInSpectValueT": "", "HInSpectValue": "", "rowNum": $("#HEntryID").val() |
| | | }); |
| | | } |
| | | option_Value.data = rowdata_Value; |
| | | table.render(option_Value); |
| | | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | //#endregion |
| | | |
| | | |
| | | // #region è¡å
äºä»¶--æ£éªé¡¹ç® |
| | | 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) { |
| | | if (rowIndex === '0') { |
| | | layer.msg('é¦è¡æ æ³å é¤ï¼ï¼ï¼'); |
| | | } else { |
| | | obj.del(); |
| | | option.data = table.cache["mainTable"];//å°æ°æ®ç»å®å°dataä¸ |
| | | table.reload(option); |
| | | layer.close(index); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | var data = obj.data; |
| | | var rowIndex = $(obj.tr).attr("data-index"); |
| | | if (obj.event === 'del') { |
| | | layer.confirm('ççå é¤è¡ä¹', function (index) { |
| | | if (rowIndex === '0') { |
| | | layer.msg('é¦è¡æ æ³å é¤ï¼ï¼ï¼'); |
| | | } else { |
| | | //obj.del(); |
| | | //layer.close(index); |
| | | var oldData = table.cache["mainTable"]; |
| | | oldData.splice(obj.tr.data('index'), 1); |
| | | table.reload('mainTable', { data: oldData }); |
| | | layer.close(index); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | var data = obj.data; |
| | | if (obj.event == 'æ£éªä»ªå¨ä»£ç ') { |
| | | var HNumber = data.æ£éªä»ªå¨ä»£ç ; |
| | | var linterid = data.HInspectInstruMentID; |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'æ¥çæ£éªä»ªå¨' |
| | | , closeBtn: 1 |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: '../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Add_Edit_Gy_InspectInstruMent.html?OperationType=3&linterid=' + linterid + '' |
| | | , resize: false, |
| | | end: function () { |
| | | } |
| | | , cancel: function () { |
| | | } |
| | | }) |
| | | } |
| | | |
| | | $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) { |
| | | var rowIndex = Number($(obj.tr).attr("data-index")) + Number(1); |
| | | if (event.key == "F7") { |
| | | if (obj.event == 'HQCCheckItemID') { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'æ£éªé¡¹ç®å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_CheckItem.html?openType=2', '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('è¯·éæ©æ°æ®'); |
| | | } |
| | | |
| | | 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": "", |
| | | "HStrictness": "", "HSampleUnRightQty": "", "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 = []; |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | if (obj.event == 'HInspectInstruMentID') { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'æ£éªä»ªå¨å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_InspectInstruMent.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | æ£éªä»ªå¨ä»£ç : checkStatus.data[0].æ£éªä»ªå¨ä»£ç |
| | | , æ£éªä»ªå¨: checkStatus.data[0].æ£éªä»ªå¨åç§° |
| | | , HInspectInstruMentID: checkStatus.data[0].HItemID |
| | | }); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | if (OptionData.length > 0) { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | æ£éªä»ªå¨ä»£ç : OptionData[0].æ£éªä»ªå¨ä»£ç , |
| | | æ£éªä»ªå¨: OptionData[0].æ£éªä»ªå¨åç§°, |
| | | HInspectInstruMentID: OptionData[0].HItemID |
| | | }); |
| | | OptionData = []; |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | obj.event = ""; |
| | | return false; |
| | | |
| | | } |
| | | }) |
| | | }); |
| | | // #endregion |
| | | |
| | | // #region è¡å
äºä»¶--æ£éªå¼ |
| | | table.on('tool(ValueTable)', function (obj) { |
| | | $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) { |
| | | if (event.key == "F7") { |
| | | if (obj.event == 'HInSpectValueB_Open') { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'æ£éªå¼å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_InspectValue.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HInSpectValueB: checkStatus.data[0].æ£æµå¼åç§° |
| | | }); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | var DXValue = checkStatus.data[0].æ£æµå¼åç§°; //宿§æ£æµå¼ |
| | | var MBValue = $("#HTargetVal").val(); //ç®æ å¼ |
| | | |
| | | if (Number(DXValue) == Number(MBValue)) { //宿§æ£æµå¼ = ç®æ å¼ï¼å¤å®åæ ¼ |
| | | obj.update({ |
| | | HInSpectResult: 1 |
| | | }); |
| | | $("#HInSpectResult" + (obj.data.HSEQ)).val(1) |
| | | } else { |
| | | obj.update({ |
| | | HInSpectResult: 2 |
| | | }); |
| | | $("#HInSpectResult" + (obj.data.HSEQ)).val(2) |
| | | } |
| | | form.render('select'); |
| | | |
| | | addUnRightQty();//ç»è®¡ä¸åæ ¼æ°é |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | obj.event = ""; |
| | | return false; |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | table.on('edit(ValueTable)', function (obj) { //注ï¼editæ¯åºå®äºä»¶åï¼testæ¯tableåå§å®¹å¨ç屿§ lay-filter="对åºçå¼" |
| | | var value = obj.value //å¾å°ä¿®æ¹åçå¼ |
| | | , data = obj.data //å¾å°æå¨è¡ææé®å¼ |
| | | , field = obj.field; //å¾å°å段 |
| | | |
| | | var MBValue = $("#HTargetVal").val();//ç®æ å¼ |
| | | var HComparator = $("#HComparator").val();//æ¯è¾ç¬¦ |
| | | |
| | | switch (field) { |
| | | //宿§æ£æµ |
| | | case "HInSpectValueB": |
| | | |
| | | break; |
| | | //å®éæ£æµ |
| | | case "HInSpectValue": |
| | | Qualified_Value(HComparator, MBValue, value, obj); |
| | | addUnRightQty(); |
| | | break; |
| | | //å
¶ä»æ£æµ |
| | | case "HInSpectValueT": |
| | | if (Number(value) == Number(MBValue)) { //å
¶ä»æ£æµå¼ = ç®æ å¼ï¼å¤å®åæ ¼ |
| | | obj.update({ |
| | | HInSpectResult: 1 |
| | | }); |
| | | $("#HInSpectResult" + (obj.data.HSEQ)).val(1) |
| | | } else { |
| | | obj.update({ |
| | | HInSpectResult: 2 |
| | | }); |
| | | $("#HInSpectResult" + (obj.data.HSEQ)).val(2) |
| | | } |
| | | form.render('select'); |
| | | addUnRightQty(); |
| | | break; |
| | | } |
| | | }); |
| | | // #endregion |
| | | |
| | | |
| | | //æ£éªå¼èªå¨å¤ææ¯å¦åæ ¼ |
| | | function Qualified_Value(HComparator, MBValue, value, obj) { |
| | |
| | | |
| | | form.render('select'); |
| | | } |
| | | |
| | | |
| | | //æ ¹æ®çäº§èµæºæè
å·¥åº æ¥è¯¢ç产工åä¿¡æ¯ |
| | | function get_ICMOBillStatusList() { |
| | | var sWhere = ""; |
| | |
| | | //æ£éªé¡¹ç®-é¡µç¾ éçåææ¹æ³å éè æ£æµå¼é¡µç¾çå¼ |
| | | function IsHide(HAnalysisMethod_Value) { |
| | | if (HAnalysisMethod_Value == 1) { //妿éä¸ã宿§åæãï¼åéèå®éãå
¶ä»åæ |
| | | option_Value.cols[0][3].hide = false; //宿§ |
| | | option_Value.cols[0][4].hide = true; //å®é |
| | | option_Value.cols[0][5].hide = true; //å
¶ä» |
| | | option_Value.cols[0][4].hide = false; //宿§ |
| | | option_Value.cols[0][5].hide = true; //å®é |
| | | option_Value.cols[0][6].hide = true; //å
¶ä» |
| | | |
| | | $("#HComparator").attr("disabled", true); //æ¯è¾ç¬¦æ¹ä¸ºä¸å¯ç¼è¾ |
| | | $("#HUpLimit").css("background-color", "#E8E8E8").attr("readOnly", true);//æ¹åä¸éå¼è¾å
¥æ¡èæ¯é¢è² |
| | |
| | | $('#btnSearchTargetValB').removeClass("layui-btn-disabled").attr("disabled", false);//ç®æ 弿é®å¯ç¨ |
| | | |
| | | } else if (HAnalysisMethod_Value == 2) { //妿éä¸ãå®éåæãï¼åéè宿§ãå
¶ä»åæ |
| | | option_Value.cols[0][4].hide = false; //å®é |
| | | option_Value.cols[0][3].hide = true; //宿§ |
| | | option_Value.cols[0][5].hide = true; //å
¶ä» |
| | | option_Value.cols[0][5].hide = false; //å®é |
| | | option_Value.cols[0][4].hide = true; //宿§ |
| | | option_Value.cols[0][6].hide = true; //å
¶ä» |
| | | |
| | | $("#HUpLimit").attr("readOnly", false).css("background-color", ""); //ä¸é弿¹ä¸ºå¯ç¼è¾ |
| | | $("#HDownLimit").attr("readOnly", false).css("background-color", ""); //ä¸é弿¹ä¸ºå¯ç¼è¾ |
| | |
| | | |
| | | |
| | | } else if (HAnalysisMethod_Value == 3) { //妿éä¸ãå
¶ä»åæãï¼åéèå®éã宿§åæ |
| | | option_Value.cols[0][5].hide = false; //å
¶ä» |
| | | option_Value.cols[0][3].hide = true; //宿§ |
| | | option_Value.cols[0][4].hide = true; //å®é |
| | | option_Value.cols[0][6].hide = false; //å
¶ä» |
| | | option_Value.cols[0][4].hide = true; //宿§ |
| | | option_Value.cols[0][5].hide = true; //å®é |
| | | |
| | | $('#btnSearchInspectValB').addClass("layui-btn-disabled").attr("disabled", true);//æ£éªå¼æé® |
| | | $('#btnSearchTargetValB').addClass("layui-btn-disabled").attr("disabled", true);//ç®æ å¼æé® |
| | |
| | | } |
| | | |
| | | //éçæ£éªé¡¹ç®å,è·åè¡¨ä½ |
| | | function get_CheckItem () { |
| | | var HBatchQty = $("#HProcExchQty").val(); |
| | | function get_CheckItem() { |
| | | var HBatchQty = $("#HProcExchQty").val() == 0 ? $("#HICMOQty").val() : $("#HProcExchQty").val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetCheckItemByCheckProjectID", |
| | | type: "GET", |
| | |
| | | //å表 èµå¼ |
| | | rowdata.push( |
| | | { |
| | | "HQCCheckClassID": data[i]["HQCCheckClassID"], "æ£éªé¡¹ç®ç±»å«": 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]["ç¶æ"], |
| | | "HQCCheckClassID": data[i]["HQCCheckClassID"], "æ£éªé¡¹ç®ç±»å«": 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", |
| | | "HInspectVal": '', "HTargetVal": data[i].ç®æ å¼, "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].æ½æ ·ç±»å |
| | | "HStrictness": data[i].ä¸¥æ ¼åº¦, "HSampleUnRightQty": "", "HAQL": data[i].AQL, "HSamplingType": data[i].æ½æ ·ç±»å, "HCompareSymbol": data[i].æ¯è¾ç¬¦, "HQualityStdID": data[i].HQualityStdID, "HQualityStdName": data[i].è´¨éæ å, "HInspectMethodID": data[i].HInspectMethodID, "HInspectMethodName": data[i].æ£éªæ¹æ³, "HInspectBasisID": data[i].HInspectBasisID, "HInspectBasisName": data[i].æ£éªä¾æ® |
| | | } |
| | | ); |
| | | SampleNum.push(5); |
| | | SampleNum.push(data[0].æ ·æ¬é); |
| | | } |
| | | |
| | | //æ£éªé¡¹ç® |
| | | for (let j = 1; j <= 5; j++) { |
| | | rowdata_Value.push({ |
| | | "HSEQ": j, "HInSpectResult": "", "HInSpectValueB": "", "HInSpectValueT": "", "HInSpectValue": "", "rowNum": $("#HEntryID").val() |
| | | "HSEQ": j, "HInSpectResult": "", "HInSpectValueB": "0", "HInSpectValueB_Text": "", "HInSpectValueT": "", "HInSpectValue": "", "rowNum": $("#HEntryID").val() |
| | | }); |
| | | } |
| | | //æ£éªé¡¹ç® |
| | |
| | | |
| | | trindex = result.data.length - 1; |
| | | $("#HEntryID").val() - 1 |
| | | |
| | | //æºå¸¦åºè´¨æ£æ¹æ¡ |
| | | ReturnSampleScheme(data); |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //æ ¹æ®è´¨æ£æ¹æ¡èªå¨å¸¦åºæ½æ ·æ¹æ¡ä¿¡æ¯ |
| | | function ReturnSampleScheme(data) { |
| | | $("#HSampleSchemeID").val(data[data.length - 1].hmainid); |
| | | $("#HSampleSchemeName").val(data[data.length - 1].æ½æ ·æ¹æ¡åç§°); |
| | | $("#HSamplingType").val(data[data.length - 1].æ½æ ·ç±»å); |
| | | $("#HInspectionLevel").val(data[data.length - 1].æ£éªæ°´å¹³); |
| | | $("#HStrictness").val(data[data.length - 1].ä¸¥æ ¼åº¦); |
| | | $("#HAQL").val(data[data.length - 1].AQL); |
| | | $("#HSampleQty").val(data[data.length - 1].æ ·æ¬é); |
| | | $("#HSampleQty2").val(data[data.length - 1].æ ·æ¬é); |
| | | $("#HAcceptQty").val(data[data.length - 1].å
许æ°); |
| | | |
| | | $("#HRejectQty").val(data[data.length - 1].æç»æ°); |
| | | //æ¾ç¤ºæåä¸è¡çæ£æµå¼é¡µç¾ä¸çç®æ å¼ãä¸éå¼ãä¸éå¼ |
| | | $("#HTargetVal").val(data[data.length - 1].ç®æ å¼); |
| | | $("#HUpLimit").val(data[data.length - 1].ä¸éå¼); |
| | | $("#HDownLimit").val(data[data.length - 1].ä¸éå¼); |
| | | |
| | | $("#HComparator").val(data[data.length - 1].æ¯è¾ç¬¦); |
| | | |
| | | if ($("#HEntryID").val() - 1 >= 0) { |
| | | option.data[$("#HEntryID").val() - 1].HSampleSchemeID = data[data.length - 1].hmainid; |
| | | option.data[$("#HEntryID").val() - 1].HSampleSchemeName = data[data.length - 1].æ½æ ·æ¹æ¡åç§°; |
| | | option.data[$("#HEntryID").val() - 1].HSamplingType = data[data.length - 1].æ½æ ·ç±»å; |
| | | option.data[$("#HEntryID").val() - 1].HInspectionLevel = data[data.length - 1].æ£éªæ°´å¹³; |
| | | option.data[$("#HEntryID").val() - 1].HStrictness = data[data.length - 1].ä¸¥æ ¼åº¦; |
| | | option.data[$("#HEntryID").val() - 1].HAQL = data[data.length - 1].AQL; |
| | | option.data[$("#HEntryID").val() - 1].HSampleQty = data[data.length - 1].æ ·æ¬é; |
| | | option.data[$("#HEntryID").val() - 1].HSampleQty2 = data[data.length - 1].æ ·æ¬é; |
| | | option.data[$("#HEntryID").val() - 1].HAcceptQty = data[data.length - 1].å
许æ°; |
| | | option.data[$("#HEntryID").val() - 1].HRejectQty = data[data.length - 1].æç»æ°; |
| | | option.data[$("#HEntryID").val() - 1].HUpLimit = data[data.length - 1].ä¸éå¼; |
| | | option.data[$("#HEntryID").val() - 1].HDownLimit = data[data.length - 1].ä¸éå¼; |
| | | option.data[$("#HEntryID").val() - 1].HCompareSymbol = data[data.length - 1].æ¯è¾ç¬¦; |
| | | } |
| | | |
| | | rowdata_Value = []; |
| | | for (let i = 1; i <= data[data.length - 1].æ ·æ¬é; i++) { |
| | | rowdata_Value.push({ |
| | | "HSEQ": i, "HInSpectResult": "", "HInSpectValueB": "0", "HInSpectValueB_Text": "", "HInSpectValueT": "", "HInSpectValue": "", "rowNum": $("#HEntryID").val() |
| | | }); |
| | | } |
| | | option_Value.data = rowdata_Value; |
| | | table.render(option_Value); |
| | | |
| | | IsHide(table.cache["mainTable"][$("#HEntryID").val() - 1].HAnalysisMethod); //éèæ£æµå¼å段 |
| | | } |
| | | |
| | | |
| | | //#region [è·åæºå对åºåæ®ä¿¡æ¯] |
| | | // éå®è®¢å 对åºåæ®ä¿¡æ¯ |
| | | function LoadingInformation_SeOrder() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/QC_OutCompCheckBill/get_SeOrderBill_Tmp", |
| | | type: "GET", |
| | | data: { |
| | | HInterID: linterid, |
| | | HEntryID: HEntryID, |
| | | HBillType: 1401 |
| | | }, |
| | | success: function (res) { |
| | | if (res.count == 1) { |
| | | $("#HMaterID").val(res.data[0]['HMaterID']) |
| | | $("#HMaterName").val(res.data[0]['HMaterName']) |
| | | $("#HMaterNumber").val(res.data[0]['HMaterNumber']) |
| | | $("#HMainSourceBillNo").val(res.data[0]['HBillNo']) |
| | | $("#HMainSourceInterID").val(res.data[0].HInterID) |
| | | $("#HMainSourceEntryID").val(res.data[0].HEntryID) |
| | | $("#HQCSchemeName").val(res.data[0].æ£éªæ¹æ¡åç§°); |
| | | $("#HQCSchemeID").val(res.data[0].æ£éªæ¹æ¡ID); |
| | | //è·åè¡¨ä½æ£éªé¡¹ç®ä¿¡æ¯ |
| | | get_CheckItem(); |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | |
| | | function LoadingInformation_SeOutStock() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/QC_OutCompCheckBill/get_SeOutStockBill_Tmp", |
| | | type: "GET", |
| | | data: { |
| | | HInterID: linterid, |
| | | HEntryID: HEntryID, |
| | | HBillType: 1402 |
| | | }, |
| | | success: function (res) { |
| | | if (res.code == 1) { // 说æéªè¯æåäºï¼ |
| | | $("#HMaterID").val(res.data[0]['HMaterID']) |
| | | $("#HMaterName").val(res.data[0]['HMaterName']) |
| | | $("#HMaterNumber").val(res.data[0]['HMaterNumber']) |
| | | $("#HMainSourceBillNo").val(res.data[0]['HBillNo']) |
| | | $("#HMainSourceInterID").val(res.data[0].HInterID) |
| | | $("#HMainSourceEntryID").val(res.data[0].HEntryID) |
| | | $("#HQCSchemeName").val(res.data[0].æ£éªæ¹æ¡åç§°); |
| | | $("#HQCSchemeID").val(res.data[0].æ£éªæ¹æ¡ID); |
| | | //è·åè¡¨ä½æ£éªé¡¹ç®ä¿¡æ¯ |
| | | get_CheckItem(); |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | function set_AddBill() { |
| | | layer.confirm('æ°å¢å页颿°æ®å°æ¶å¤±ï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | location.replace('QC_OutCompCheckBill.html?OperationType=1&linterid=&HSouceBillType=0&closeType=2'); |
| | | }); |
| | | } |
| | | |
| | | //#region å®¡æ ¸æ°æ® |
| | | function set_CheckBill() { |
| | | var InterID = $("#HInterID").val(); |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/QC_OutCompCheckBill/CheckQC_OutCompCheckBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | 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 |
| | | |
| | | |
| | | //ç¼è¾æ¥ç |
| | | function RoadBillMain(linterid)//å 载表头 |
| | |
| | | , "HRightQty": data.åæ ¼æ°é |
| | | , "HCheckQty": data.æ½æ ·æ°é |
| | | , "HBadQty": data.ä¸åæ ¼æ°é |
| | | , "HRemarkSN": data.HRemarkSN |
| | | }); |
| | | |
| | | data = result.data; |
| | |
| | | for (var i = 0; i < data.length; i++) { |
| | | rowdata.push( |
| | | { |
| | | "HQCCheckClassID": data[i].HQCCheckClassID, "æ£éªé¡¹ç®ç±»å«": data[i].æ£éªé¡¹ç®ç±»å«,"HQCCheckItemID": data[i].HQCCheckItemID, "æ£éªé¡¹ç®ä»£ç ": data[i].æ£éªé¡¹ç®ä»£ç , "æ£éªé¡¹ç®": data[i].æ£éªé¡¹ç®åç§°, "HInspectInstruMentID": data[i].HInspectInstruMentID, "æ£éªä»ªå¨ä»£ç ": data[i].æ£éªä»ªå¨ä»£ç , "æ£éªä»ªå¨": data[i].æ£éªä»ªå¨åç§°, "HQCStd": data[i].æ£éªæ å, |
| | | "HQCCheckClassID": data[i].HQCCheckClassID, "æ£éªé¡¹ç®ç±»å«": 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, |
| | | "HSampleSchemeID": data[i].HSampleSchemeID, "HUnitID": data[i].HUnitID, |
| | | "HInspectVal": data[i].æ£æµå¼, "HTargetVal": data[i].ç®æ å¼, "HUpLimit": data[i].ä¸éå¼, "HDownLimit": data[i].ä¸éå¼, "HUpOffSet": data[i].ä¸åå·®, "HDownOffSet": data[i].ä¸åå·®, "HSampleDamageQty": data[i].æ ·æ¬ç ´åæ°, |
| | | "HSampleSchemeName": data[i].æ½æ ·æ¹æ¡åç§°, "HSampleQty": data[i].æ ·æ¬é, "HSampleDamageQty": data[i].æ ·æ¬ç ´åæ°, "HAcceptQty": data[i].å
许æ°, "HInspectionLevel": 0, "HRejectQty": data[i].æç»æ°, |
| | | "HStrictness": 0, "HSampleUnRightQty": data[i].æ ·æ¬ä¸åæ ¼æ°, "HAQL": data[i].AQL, "HSamplingType": 0, "HSamplingType": data[i].æ½æ ·ç±»å, "HStrictness": data[i].ä¸¥æ ¼åº¦ |
| | | "HStrictness": 0, "HSampleUnRightQty": data[i].æ ·æ¬ä¸åæ ¼æ°, "HAQL": data[i].AQL, "HSamplingType": 0, "HSamplingType": data[i].æ½æ ·ç±»å, "HStrictness": data[i].ä¸¥æ ¼åº¦, "HCompareSymbol": data[i].æ¯è¾ç¬¦, "HQualityStdID": data[i].HQualityStdID, "HQualityStdName": data[i].è´¨éæ å, "HInspectMethodID": data[i].HInspectMethodID, "HInspectMethodName": data[i].æ£éªæ¹æ³, "HInspectBasisID": data[i].HInspectBasisID, "HInspectBasisName": data[i].æ£éªä¾æ® |
| | | |
| | | } |
| | | ) |
| | |
| | | layer.alert("åçé误!", { icon: 5 }); |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | |
| | | //èªå¨å¸¦åºæ£éªæ¹æ¡ |
| | | 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 set_SaveBill(data) { |
| | | //ä¿åæå䏿¬¡ç¹å»è¡çæ£éªå¼ |
| | | set_SaveValue($("#HEntryID").val()); |
| | | |
| | | if ($("#HICMOQty").val() == "" || $("#HICMOQty").val() <= 0) { |
| | | layer.msg("ä»»å¡åæ°éä¸è½ä¸ºç©ºä¸ä¸è½å°äºçäº0ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | if ($("#HProcExchQty").val() == "" || $("#HProcExchQty").val() <= 0) { |
| | | layer.msg("æµè½¬å¡æ°éä¸è½ä¸ºç©ºä¸ä¸è½å°äºçäº0ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | // if ($("#HICMOQty").val() == "" || $("#HICMOQty").val() <= 0) { |
| | | // layer.msg("ä»»å¡åæ°éä¸è½ä¸ºç©ºä¸ä¸è½å°äºçäº0ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return; |
| | | // } |
| | | // if ($("#HProcExchQty").val() == "" || $("#HProcExchQty").val() <= 0) { |
| | | // layer.msg("æµè½¬å¡æ°éä¸è½ä¸ºç©ºä¸ä¸è½å°äºçäº0ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return; |
| | | // } |
| | | if ($("#HFirstCheckEmp").val() == 0) { |
| | | layer.msg("æ£éªåæªéæ©ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | |
| | | 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"); |
| | | |
| | | } |
| | | else { |
| | | layer.close(index); |
| | |
| | | } |
| | | |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //é空éªè¯ |
| | | function GetHCusNameValue(obj) { //å®¢æ· |
| | | $("#HCusName").val(obj[0].客æ·åç§°); |
| | |
| | | $("#HFirstCheckEmpName").val(obj[0].èååç§°); |
| | | $("#HFirstCheckEmp").val(obj[0].HItemID); |
| | | } |
| | | function GetGySource(obj) { //çäº§èµæº |
| | | $("#HSourceName").val(obj[0].çäº§èµæºåç§°); |
| | | $("#HSourceID").val(obj[0].HItemID); |
| | | } |
| | | |
| | | function GetICMOBillValue(obj) { //ç产订å |
| | | $("#HICMOInterID").val(obj[0].hmainid); |
| | | $("#HICMOEntryID").val(obj[0].HEntryID); |
| | | $("#HICMOBillNo").val(obj[0].åæ®å·); |
| | | $("#HICMOQty").val(obj[0].计åç产æ°é); |
| | | } |
| | | |
| | | function GetProcExValue(obj) { //æµè½¬å¡ |
| | | $("#HProcExchInterID").val(obj[0].hmainid); |
| | | $("#HProcExchEntryID").val(obj[0].hsubid); |
| | | $("#HProcExchBillNo").val(obj[0].åæ®å·); |
| | | } |
| | | |
| | | function GetGyMaterial(obj) { //ç©æ |
| | | $("#HMaterNumber").val(obj.ç©æä»£ç ); |
| | | $("#HMaterName").val(obj.ç©æåç§°); |
| | | $("#HMaterID").val(obj.HItemID); |
| | | GetCheckItemID(); |
| | | } |
| | | |
| | | function GetHEmpValue(obj) { //è´¨æ£å |
| | | $("#HFirstCheckEmpName").val(obj[0].èååç§°); |
| | | $("#HFirstCheckEmp").val(obj[0].HItemID); |
| | | } |
| | | |
| | | function GetCheckProjectValue(obj) { //è´¨æ£æ¹æ¡ |
| | | $("#HQCSchemeID").val(obj[0].hmainid); |
| | | $("#HQCSchemeName").val(obj[0].æ£éªæ¹æ¡åç§°); |
| | | 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); |
| | | GetCheckItemID(); |
| | | } |
| | | //计éåä½ |
| | | 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; |
| | | } |
| | | //è´¨éæ å |
| | | function GetQualityStdValue(obj) { |
| | | OptionData = obj; |
| | | } |
| | | //æ£éªæ¹æ³ |
| | | function GetInspectMethodValue(obj) { |
| | | OptionData = obj; |
| | | } |
| | | |
| | | //æ£éªä¾æ® |
| | | function GetInspectBasisValue(obj) { |
| | | OptionData = obj; |
| | | } |
| | | </script> |
| | | </body> |
| | | |
| | | </html> |