| | |
| | | text-align: inherit; |
| | | } |
| | | /*å
¨å±è®¾ç½®è¾å
¥æ¡é«åº¦*/ |
| | | .layui-input { |
| | | .set_height { |
| | | height: 30px; |
| | | } |
| | | /*设置表头è¾å
¥æ¡*/ |
| | |
| | | <tr> |
| | | <th>æ¡å½¢ç </th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HBarCode" class="layui-input" id="HBarCode" placeholder="请è¾å
¥æ¡å½¢ç åå车" style="border-radius: 50px;"> |
| | | <input type="text" name="HBarCode" class="layui-input set_height" id="HBarCode" placeholder="请è¾å
¥æ¡å½¢ç åå车" style="border-radius: 50px;"> |
| | | <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu layui-btn-radius" lay-filter="QueDin" style="line-height: 30px;">ç¡®å®</button> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>æ°é</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HQty" class="layui-input" id="HQty" value="0" placeholder="请è¾å
¥æ°é" style="border-radius: 50px;"> |
| | | <input type="text" name="HQty" class="layui-input set_height" id="HQty" value="0" placeholder="请è¾å
¥æ°é" style="border-radius: 50px;"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>çäº§èµæº</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HSourceName" class="layui-input" id="HSourceName" placeholder="éæ©çäº§èµæº" style="border-radius: 50px; background-color: #efefef4d;"> |
| | | <input type="hidden" name="HSourceID" id="HSourceID" value="0" autocomplete="off" class="layui-input"> |
| | | <input type="text" name="HSourceName" class="layui-input set_height" id="HSourceName" placeholder="éæ©çäº§èµæº" style="border-radius: 50px; background-color: #efefef4d;"> |
| | | <input type="hidden" name="HSourceID" id="HSourceID" value="0" autocomplete="off" class="layui-input set_height"> |
| | | <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="ProductionResources-BT" id="ProductionResources-BT" style="font-weight:bolder;">...</button> |
| | | </td> |
| | | </tr> |
| | |
| | | <tr> |
| | | <th>åæ®æ¥æ</th> |
| | | <td class="t1_input"> |
| | | <input type="text" name="HDate" class="layui-input" id="HDate" style="border-radius: 50px;" placeholder="è¯·éæ©æ¥æ" readonly> |
| | | <input type="text" name="HDate" class="layui-input set_height" id="HDate" style="border-radius: 50px;" placeholder="è¯·éæ©æ¥æ" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>åæ®å·</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HBillNo" class="layui-input" id="HBillNo" placeholder="åæ®å·" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HInterID" id="HInterID" value="0" autocomplete="off" class="layui-input"> |
| | | <input type="text" name="HBillNo" class="layui-input set_height" id="HBillNo" placeholder="åæ®å·" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HInterID" id="HInterID" value="0" autocomplete="off" class="layui-input set_height"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>ç产ç»ç»</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HPRDORGName" class="layui-input" id="HPRDORGName" placeholder="ç产ç»ç»" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HPRDORGID" id="HPRDORGID" value="0" autocomplete="off" class="layui-input"> |
| | | <input type="text" name="HPRDORGName" class="layui-input set_height" id="HPRDORGName" placeholder="ç产ç»ç»" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HPRDORGID" id="HPRDORGID" value="0" autocomplete="off" class="layui-input set_height"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>ç产订åå·</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HICMOBillNo" class="layui-input" id="HICMOBillNo" placeholder="ç产订åå·" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HICMOInterID" id="HICMOInterID" value="0" autocomplete="off" class="layui-input"> |
| | | </tr> |
| | | <input type="text" name="HICMOBillNo" class="layui-input set_height" id="HICMOBillNo" placeholder="ç产订åå·" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HICMOInterID" id="HICMOInterID" value="0" autocomplete="off" class="layui-input set_height"> |
| | | <input type="hidden" name="HICMOEntryID" id="HICMOEntryID" value="0" autocomplete="off" class="layui-input set_height"> |
| | | </tr> |
| | | <tr> |
| | | <th>æå¼å¡</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HProcExchBillNo" class="layui-input" id="HProcExchBillNo" placeholder="æå¼å¡" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HProcExchHinteID" class="layui-input" id="HProcExchHinteID"> |
| | | <input type="text" name="HProcExchBillNo" class="layui-input set_height" id="HProcExchBillNo" placeholder="æå¼å¡" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HProcExchHinteID" class="layui-input set_height" id="HProcExchHinteID"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>ç©æä»£ç </th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HMaterNumber" class="layui-input" id="HMaterNumber" placeholder="产å代ç " style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HMaterID" class="layui-input" id="HMaterID"> |
| | | <input type="text" name="HMaterNumber" class="layui-input set_height" id="HMaterNumber" placeholder="产å代ç " style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HMaterID" class="layui-input set_height" id="HMaterID"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>ç©æåç§°</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HMaterName" class="layui-input" id="HMaterName" value="" placeholder="ç©æåç§°" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="text" name="HMaterName" class="layui-input set_height" id="HMaterName" value="" placeholder="ç©æåç§°" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>è§æ ¼åå·</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HMaterModel" class="layui-input" id="HMaterModel" placeholder="è§æ ¼åå·" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="text" name="HMaterModel" class="layui-input set_height" id="HMaterModel" placeholder="è§æ ¼åå·" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>计éåä½</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HUnitName" class="layui-input" id="HUnitName" placeholder="éæ©è®¡éåä½" style="border-radius: 50px; background-color: #efefef4d;"> |
| | | <input type="hidden" name="HUnitID" id="HUnitID" value="0" autocomplete="off" class="layui-input"> |
| | | <input type="text" name="HUnitName" class="layui-input set_height" id="HUnitName" placeholder="éæ©è®¡éåä½" style="border-radius: 50px; background-color: #efefef4d;"> |
| | | <input type="hidden" name="HUnitID" id="HUnitID" value="0" autocomplete="off" class="layui-input set_height"> |
| | | <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="BtnHUnit" id="BtnHUnit" style="font-weight:bolder">...</button> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>å·¥åº</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HProcName" class="layui-input" id="HProcName" placeholder="鿩工åº" style="background-color:#efefef4d;border-radius: 50px;"> |
| | | <input type="hidden" name="HProcID" id="HProcID" value="0" autocomplete="off" class="layui-input"> |
| | | <input type="text" name="HProcName" class="layui-input set_height" id="HProcName" placeholder="鿩工åº" style="background-color:#efefef4d;border-radius: 50px;"> |
| | | <input type="hidden" name="HProcID" id="HProcID" value="0" autocomplete="off" class="layui-input set_height"> |
| | | </td> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab-item"> |
| | | <table style="width:80%;"> |
| | | <tbody> |
| | | <tr> |
| | | <th>æ£éªæ¹æ¡</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HQCSchemeName" class="layui-input" id="HQCSchemeName" placeholder="éæ©æ£éªæ¹æ¡" style="border-radius: 50px; background-color: #efefef4d;"> |
| | | <input type="hidden" name="HQCSchemeID" id="HQCSchemeID" value="0" autocomplete="off" class="layui-input"> |
| | | <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="btnSearchQCScheme" id="btnSearchQCScheme" style="font-weight:bolder;">...</button> |
| | | </td> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | <div class="layui-inline" style="margin-bottom:5px;"> |
| | | <label class="layui-form-label" style="width:100px;">æ£éªæ¹æ¡</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="hidden" name="HQCSchemeID" id="HQCSchemeID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <input type="text" name="HQCSchemeName" id="HQCSchemeName" class="layui-input" value="" style="float:left;width:150px;" readonly="readonly"> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-primary" lay-filter="btnSearchQCScheme" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <table class="" id="mainTable" lay-filter="mainTable"></table> |
| | | <!--åºå·--> |
| | | <script type="text/html" id="xuhao"> |
| | | {{d.LAY_TABLE_INDEX+1}} |
| | | </script> |
| | | <!--å é¤--> |
| | | <script type="text/html" id="barDemo"> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">å é¤</a> |
| | | </script> |
| | | <!--è¡ä¸æéæ©(åææ¹æ³)--> |
| | | <script type="text/html" id="HAnalysisMethod"> |
| | | <select name="HAnalysisMethod" lay-filter="HAnalysisMethod" id="HAnalysisMethod{{d.LAY_TABLE_INDEX+1}}"> |
| | | <option value="">è¯·éæ©</option> |
| | | <option value="1">宿§åæ</option> |
| | | <option value="2">å®éåæ</option> |
| | | <option value="3">å
¶ä»åæ</option> |
| | | </select> |
| | | </script> |
| | | <!--å¤éæ¡ï¼éç¹æ£æ¥ï¼--> |
| | | <script type="text/html" id="HKeyInspect"> |
| | | <input type="checkbox" value="{{d.HKeyInspect}}" lay-skin="primary" id="HKeyInspect{{d.LAY_TABLE_INDEX+1}}" lay-filter="HKeyInspect" {{ d.HKeyInspect == 1 ? 'checked' : '' }}> |
| | | </script> |
| | | <!--å¤éæ¡ï¼ç»æï¼--> |
| | | <script type="text/html" id="HResult"> |
| | | <input type="checkbox" value="{{d.HResult}}" lay-skin="primary" id="HResult{{d.LAY_TABLE_INDEX+1}}" lay-filter="HResult" {{ d.HResult == 1 ? 'checked' : '' }}> |
| | | </script> |
| | | </div> |
| | | <div class="layui-tab-item"> |
| | | <table style="width:80%;"> |
| | |
| | | <tr> |
| | | <th>å¶å人</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HMaker" class="layui-input" id="HMaker" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="text" name="HMaker" class="layui-input set_height" id="HMaker" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>å¶åæ¥æ</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HMakeDate" class="layui-input" id="HMakeDate" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="text" name="HMakeDate" class="layui-input set_height" id="HMakeDate" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>ä¿®æ¹äºº</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HUpDater" class="layui-input" id="HUpDater" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="text" name="HUpDater" class="layui-input set_height" id="HUpDater" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>ä¿®æ¹æ¥æ</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HUpDateDate" class="layui-input" id="HUpDateDate" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="text" name="HUpDateDate" class="layui-input set_height" id="HUpDateDate" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>å®¡æ ¸äºº</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HChecker" class="layui-input" id="HChecker" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="text" name="HChecker" class="layui-input set_height" id="HChecker" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>å®¡æ ¸æ¥æ</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HCheckDate" class="layui-input" id="HCheckDate" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="text" name="HCheckDate" class="layui-input set_height" id="HCheckDate" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>ä½åºäºº</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HDeleteMan" class="layui-input" id="HDeleteMan" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="text" name="HDeleteMan" class="layui-input set_height" id="HDeleteMan" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>ä½åºæ¥æ</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HDeleteDate" class="layui-input" id="HDeleteDate" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="text" name="HDeleteDate" class="layui-input set_height" id="HDeleteDate" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | </tbody> |
| | |
| | | </div> |
| | | </body> |
| | | </html> |
| | | <!--è¡æé®--> |
| | | <script type="text/html" id="barDemo"> |
| | | <!--<a class="layui-btn layui-btn-xs" lay-event="edit">ç¼è¾</a>--> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">å é¤</a> |
| | | </script> |
| | | <!--å¤éæ¡ï¼æ£éªç»è®ºï¼--> |
| | | <script type="text/html" id="HResult"> |
| | | <input type="checkbox" value="{{d.HResult}}" lay-skin="primary" id="HResult{{d.LAY_TABLE_INDEX+1}}" lay-filter="HResult" {{ d.HResult == 1 ? 'checked' : '' }}> |
| | | </script> |
| | | <!--å¤éæ¡ï¼éç¹æ£æ¥ï¼--> |
| | | <script type="text/html" id="HKeyInspect"> |
| | | <input type="checkbox" value="{{d.HKeyInspect}}" lay-skin="primary" id="HKeyInspect{{d.LAY_TABLE_INDEX+1}}" lay-filter="HKeyInspect" {{ d.HKeyInspect == 1 ? 'checked' : '' }}> |
| | | </script> |
| | | <!--è¡ä¸æéæ©(åææ¹æ³)--> |
| | | <script type="text/html" id="HAnalysisMethod"> |
| | | <select name="HAnalysisMethod" lay-filter="HAnalysisMethod" id="HAnalysisMethod{{d.LAY_TABLE_INDEX+1}}"> |
| | | <option value="">è¯·éæ©</option> |
| | | <option value="1">宿§åæ</option> |
| | | <option value="2">å®éåæ</option> |
| | | <option value="3">å
¶ä»åæ</option> |
| | | </select> |
| | | </script> |
| | | <script> |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | |
| | | var HBillNo = params[params[3]]; //è·ååæ®å· |
| | | var closeType = params[params[4]]; //å
³éç±»å |
| | | } |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | |
| | | //夿æ¯å¦æ°å¢ |
| | | if (OperationType == 1) { |
| | |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //è¡¨å¤´ä¿¡æ¯æ£éªæ¹æ¡å¼¹çª |
| | | form.on('submit(btnSearchQCScheme)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | area: ['90%', '90%'], |
| | | title: 'æ£éªæ¹æ¡å表', |
| | | shift: 2,//å¼¹åºå¨ç», |
| | | maxmin: true, |
| | | content: ['../../../views/Baseset/åºç¡èµæ/Gy_QCCheckProjectListView.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HQCSchemeID").val(checkStatus.data[0].HItemID); |
| | | $("#HQCSchemeName").val(checkStatus.data[0].æ¹æ¡åç§°); |
| | | get_CheckItem(); |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | |
| | | //éæ©è®¡éåä½ |
| | | form.on('submit(BtnHUnit)', function () {//çäº§èµæº |
| | | layer.open({ |
| | |
| | | }) |
| | | }); |
| | | |
| | | //è¡¨å¤´ä¿¡æ¯æ£éªæ¹æ¡å¼¹çª |
| | | form.on('submit(btnSearchQCScheme)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'æ£éªæ¹æ¡å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../../views/Baseset/åºç¡èµæ/Gy_QCCheckProjectListView.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HQCSchemeID").val(checkStatus.data[0].HItemID); |
| | | $("#HQCSchemeName").val(checkStatus.data[0].æ¹æ¡åç§°); |
| | | get_CheckItem(); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //æäº¤ |
| | | form.on('submit(Saver)', function (data) {//æäº¤ |
| | | if (!HProcExchBillNoFlag) { |
| | |
| | | location.replace('MES_ColorRecordBill_PDA.html?OperationType=1&linterid=0&HSouceBillType=&HBillNo=&closeType=2'); |
| | | }); |
| | | }) |
| | | |
| | | //è¡éæ©å¤çï¼åææ¹æ³ï¼ |
| | | form.on('select(HAnalysisMethod)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | | var elem = data.othis.parents('tr'); |
| | | var dataindex = elem.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TABLE_INDEX == dataindex) { |
| | | value.HAnalysisMethod = data.value;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //æ¯å¦éç¹æ£æ¥ |
| | | form.on('checkbox(HKeyInspect)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | | var elem = data.othis.parents('tr'); |
| | | var dataindex = elem.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TABLE_INDEX == dataindex) { |
| | | value.HKeyInspect = data.elem.checked;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //æ¯å¦åæ ¼ |
| | | form.on('checkbox(HResult)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | | var elem = data.othis.parents('tr'); |
| | | var dataindex = elem.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TABLE_INDEX == dataindex) { |
| | | value.HResult = data.elem.checked;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢ææçæ¹æ³ |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | function set_InitGrid() { |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | //åå§è¡¨æ ¼æ°æ® |
| | | rowdata = [{ |
| | | "HQCCheckItemID": "", "æ£éªé¡¹ç®": "", "HInspectInstruMentID": 0, "æ£éªä»ªå¨": "", "HQCStd": "", "HUnit": "", "HQCNote": "", "HAnalysisMethod": "", "HResult": "", "HMax": "", "HMin": "", "HAvg": "", "HKeyInspect": false |
| | | "HQCCheckItemID": "", "æ£éªé¡¹ç®": "", "HInspectInstruMentID": 0, "æ£éªä»ªå¨": "", "HQCStd": "", "HUnit": "", "HQCNote": "", "HAnalysisMethod": "", "HResult": false, |
| | | "HMax": "", "HMin": "", "HAvg": "", "HRemark": "", "HKeyInspect": false, "HStatus": 0, |
| | | }]; |
| | | option = { |
| | | elem: '#mainTable' |
| | |
| | | , { type: 'numbers', title: 'åºå·', totalRow: true } |
| | | , { field: 'HQCCheckItemID', title: 'HQCCheckItemID', hide: true } |
| | | , { field: 'æ£éªé¡¹ç®', title: 'æ£éªé¡¹ç®', edit: 'text', event: 'HQCCheckItemID' } |
| | | , { field: 'HResult', title: 'æ£éªç»æ', width: 80, templet: '#HResult', unresize: false } |
| | | , { field: 'HAnalysisMethod', title: 'åææ¹æ³', width: 100, templet: '#HAnalysisMethod', event: 'HAnalysisMethod' } |
| | | , { field: 'HKeyInspect', title: 'éç¹æ£æ¥', width: 80, templet: '#HKeyInspect', unresize: false } |
| | | , { field: 'HInspectInstruMentID', title: 'HInspectInstruMentID', hide: true } |
| | | , { field: 'æ£éªä»ªå¨', title: 'æ£éªä»ªå¨', edit: 'text', event: 'HInspectInstruMentID' } |
| | | , { field: 'HResult', title: 'ç»è®º', width: 70, templet: '#HResult' } |
| | | , { field: 'HAnalysisMethod', title: 'åææ¹æ³', templet: '#HAnalysisMethod', event: 'HAnalysisMethod' } |
| | | , { field: 'HKeyInspect', title: 'éç¹æ£æ¥', templet: '#HKeyInspect', unresize: false } |
| | | , { field: 'æ£éªä»ªå¨', title: 'æ£éªä»ªå¨', edit: 'text', event: 'HInspectInstruMentID', hide: true } |
| | | , { field: 'HQCStd', title: 'æ£éªæ å', edit: 'text' } |
| | | , { field: 'HUnit', title: 'åä½', edit: 'text' } |
| | | , { field: 'HQCNote', title: 'æ£éªè®°å½', edit: 'text' } |
| | | , { field: 'HMax', title: 'æå¤§å¼', edit: 'text' } |
| | | , { field: 'HMin', title: 'æå°å¼', edit: 'text' } |
| | | , { field: 'HAvg', title: 'å¹³åå¼', edit: 'text', totalRow: true } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 70 } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 60 } |
| | | ]] |
| | | , done: function (res, curr, count) { |
| | | option.data = res.data; |
| | |
| | | var dataIndex = $cr.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TNDEX == dataIndex) { |
| | | $cr.find('input').val(value.HResult); |
| | | //$cr.find('input').val(value.HResult); |
| | | } |
| | | }); |
| | | }); |
| | |
| | | success: function (result) { |
| | | if (result.code == 1) { |
| | | var rowdata = []; |
| | | rowdata_Value = []; |
| | | var data = result.data; |
| | | for (var i = 0; i < result.data.length; i++) { |
| | | //å表 èµå¼ |
| | | rowdata.push( |
| | | { |
| | | "HQCCheckItemID": data[i]["HQCCheckItemID"], "æ£éªé¡¹ç®": data[i]["æ£éªé¡¹ç®"], "HInspectInstruMentID": data[i]["HInspectInstruMentID"], "æ£éªä»ªå¨": data[i]["æ£éªä»ªå¨"], "HQCStd": data[i]["HQCStd"], "HUnit": data[i]["åä½åç§°"], "HQCNote": "", "HAnalysisMethod": data[i]["åææ¹æ³"], "HResult": data[i]["é»è®¤ç»è®º"], |
| | | "HMax": "", "HMin": "", "HAvg": "", "HKeyInspect": data[i]["éç¹æ£æ¥"] == 1 ? true : false, |
| | | "HQCCheckItemID": data[i]["HQCCheckItemID"], "æ£éªé¡¹ç®": data[i]["æ£éªé¡¹ç®"], "HInspectInstruMentID": data[i]["HInspectInstruMentID"], "æ£éªä»ªå¨": data[i]["æ£éªä»ªå¨"], "HQCStd": data[i]["HQCStd"], "HUnit": data[i]["åä½åç§°"], "HQCNote": "", "HAnalysisMethod": data[i]["åææ¹æ³"], "HResult": data[i]["é»è®¤ç»è®º"] == 1 ? true : false, |
| | | "HMax": "", "HMin": "", "HAvg": "", "HRemark": "", "HKeyInspect": data[i]["éç¹æ£æ¥"] == 1 ? true : false, "HStatus": 0 |
| | | } |
| | | ); |
| | | } |
| | | //æ£éªé¡¹ç® |
| | | option.data = rowdata; |
| | | table.render(option); |
| | | for (var i = 1; i <= result.data.length; i++) { |
| | | $('#HAnalysisMethod' + i + '').find("option[value='" + option.data[i - 1].HAnalysisMethod + "']").attr("selected", true); |
| | | } |
| | | form.render('select'); |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | function txtHBarCode_KeyDown(HBarCode) { |
| | | //æ«ç ç±»å2 |
| | | var barNo2 = HBarCode.substr(0, 4); |
| | |
| | | form.val("formData", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HProcExchBillNo": data.åæ®å·, |
| | | "HICMOInterID": data.hicmointerid, |
| | | "HICMOEntryID": data.HICMOEntryID, |
| | | "HICMOBillNo": data.ä»»å¡åå·, |
| | | "HMaterID": data.HMaterID, |
| | | "HMaterName": data.产å, |
| | |
| | | //ä¿å |
| | | function Get_Save(data) { |
| | | var tableData = data.field; |
| | | var oMain = JSON.stringify(data.field) + ";" + sessionStorage["HUserName"] + ";" + OperationType; |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | | var oMain = JSON.stringify(data.field) + ";" + sessionStorage["HUserName"] + ";" + OperationType + ";" + sSubStr; |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |