New file |
| | |
| | | <!DOCTYPE html> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | | <title class="gxcz">çäº§è´¨éæ±æ¥å</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, maximum-scale=1"> |
| | | <!--å¼ç¨layuiæ ·å¼æä»¶--> |
| | | <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> |
| | | <!--å¼ç¨layui jsæä»¶--> |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <!--èªå®ä¹æ ·å¼--> |
| | | <style> |
| | | .layui-form-label { |
| | | font-size: 14px; |
| | | width: 85px; |
| | | text-align: inherit; |
| | | } |
| | | /*å
¨å±è®¾ç½®è¾å
¥æ¡é«åº¦*/ |
| | | .layui-input { |
| | | height: 30px; |
| | | } |
| | | /*设置表头è¾å
¥æ¡*/ |
| | | .t1_input { |
| | | padding: 1%; |
| | | } |
| | | /*æ¬ç«ä¿¡æ¯td*/ |
| | | .bz_td { |
| | | display: -webkit-box; /*设置æé®ä¸æ¢è¡*/ |
| | | padding: 1%; /*设置è¾å
¥æ¡è¾¹è·*/ |
| | | } |
| | | /*设置æ¬ç«ä¿¡æ¯æé®é«åº¦*/ |
| | | .bz_btu { |
| | | height: 30px; |
| | | width: 60px; |
| | | line-height: 30px; |
| | | } |
| | | th { |
| | | width: 70px; |
| | | text-align: left; |
| | | font-size: 17px; |
| | | } |
| | | /* 鲿¢ä¸ææ¡ç䏿å表被éè---å¿
须设置--- */ |
| | | .layui-table-cell { |
| | | overflow: visible !important; |
| | | } |
| | | /* 使å¾ä¸ææ¡ä¸åå
æ ¼å好åé */ |
| | | td .layui-form-select { |
| | | margin-top: -10px; |
| | | margin-left: -15px; |
| | | margin-right: -15px; |
| | | } |
| | | </style> |
| | | </head> |
| | | |
| | | <body> |
| | | <div class="layui-fluid" style="padding: 0;"> |
| | | <div class="layui-card"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="formData" id="formData" style="background-color:white;"> |
| | | <div style="background-color:#0085E8;"> |
| | | <span style="color: white;" class="sczlhbd"><i class="layui-icon layui-icon-form"></i>çäº§è´¨éæ±æ¥å</span> |
| | | </div> |
| | | <div class="layui-form-item" style="margin: 1% 2%;text-align: right;"> |
| | | <button type="button" lay-submit="" lay-filter="Add" class="layui-btn layui-btn-radius" id="Add">æ°å¢</button> |
| | | <button type="button" lay-submit="" lay-filter="Saver" class="layui-btn layui-btn-radius" id="Saver">ä¿å</button> |
| | | <button type="button" lay-submit="" lay-filter="Cancel" class="layui-btn layui-btn-radius layui-btn-danger">éåº</button> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-tab layui-tab-card" lay-filter="TabTest"> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">æ¡å½¢ç </label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HBarCode" class="layui-input" id="HBarCode" placeholder="请è¾å
¥æ¡å½¢ç åå车" style="border-radius: 50px;"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="QueDin" style="line-height: 30px;">ç¡®å®</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">æµæ°´å·</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HProcNo" class="layui-input" id="HProcNo" value="" placeholder="è¯·éæ©æµæ°´å·åå车" style="border-radius: 50px;"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="SerialNum-BT" id="SerialNum-BT" style="font-weight:bolder">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">å½åå·¥åº</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HProcName" class="layui-input" id="HProcName" placeholder="å½åå·¥åº" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HProcID" id="HProcID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">çäº§èµæº</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HSourceName" class="layui-input" id="HSourceName" placeholder="éæ©çäº§èµæº" style="border-radius: 50px;"> |
| | | <input type="hidden" name="HSourceID" id="HSourceID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="ProductionResources-BT" id="ProductionResources-BT" style="font-weight:bolder">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">æä½å</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HEmpName" class="layui-input" id="HEmpName" placeholder="éæ©æä½å" style="background-color:#efefef4d;border-radius: 50px;" readonly> |
| | | <input type="hidden" name="HEmpID" id="HEmpID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HEmployeeID-BT" id="HEmployeeID-BT" style="font-weight:bolder">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">ç产çç»</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HGroupName" class="layui-input" id="HGroupName" placeholder="éæ©ç产çç»" style="background-color:#efefef4d;border-radius: 50px;"> |
| | | <input type="hidden" name="HGroupID" id="HGroupID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="ProductionTeam-BT" id="ProductionTeam-BT" style="font-weight:bolder">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">ç产车é´</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HDeptName" class="layui-input" id="HDeptName" placeholder="éæ©ç产车é´" style="background-color:#efefef4d;border-radius: 50px;"> |
| | | <input type="hidden" name="HDeptID" id="HDeptID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HDept-BT" id="HDept-BT" style="font-weight:bolder">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">产ååç§°</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HMaterName" class="layui-input" id="HMaterName" placeholder="产ååç§°" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HMaterID" id="HMaterID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">产ååç§°</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HMaterModel" class="layui-input" id="HMaterModel" placeholder="è§æ ¼åå·" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">计éåä½</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HUnitName" class="layui-input" id="HUnitName" placeholder="éæ©è®¡éåä½" style="background-color:#efefef4d;border-radius: 50px;"> |
| | | <input type="hidden" name="HUnitID" id="HUnitID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">夿³¨</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HRemark" class="layui-input" id="HRemark" placeholder="请è¾å
¥å¤æ³¨ä¿¡æ¯" style="border-radius: 50px;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">ç产ç»ç»</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HSTOCKORG" class="layui-input" id="HSTOCKORG" placeholder="ç产ç»ç»" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HSTOCKORGID" id="HSTOCKORGID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">ç产订å</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <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"> |
| | | <input type="hidden" name="HICMOEntryID" id="HICMOEntryID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">åæ®å·</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <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"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">åæ®å·</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HDate" class="layui-input" id="HDate" style="border-radius: 50px;" placeholder="è¯·éæ©æ¥æ"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!--æç»ä¿¡æ¯--> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">ä¸è¯æ¡ç </label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HBarCode1" class="layui-input" id="HBarCode1" placeholder="请è¾å
¥æ¡å½¢ç åå车" style="border-radius: 50px;"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HBarCodeList" style="line-height: 30px;">ç¡®å®</button> |
| | | </div> |
| | | </div> |
| | | </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="HResult"> |
| | | <select name="HResult" lay-filter="HResult" id="HResult{{d.LAY_TABLE_INDEX+1}}"> |
| | | <option value="">è¯·éæ©</option> |
| | | <option value="æ¥åº">æ¥åº</option> |
| | | <option value="å·¥åº">å·¥åº</option> |
| | | <option value="æåº">æåº</option> |
| | | <option value="è¿å·¥">è¿å·¥</option> |
| | | <option value="ç¹é">ç¹é</option> |
| | | <option value="æ¾è¡">æ¾è¡</option> |
| | | </select> |
| | | </script> |
| | | </div> |
| | | <!--å¶åä¿¡æ¯--> |
| | | <div class="layui-tab-item"> |
| | | <table style="width:80%;"> |
| | | <tbody> |
| | | <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> |
| | | </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> |
| | | </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> |
| | | </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> |
| | | </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> |
| | | </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> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>å
³é人</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HCloseMan" class="layui-input" id="HCloseMan" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>å
³éæ¥æ</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HCloseDate" class="layui-input" id="HCloseDate" 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> |
| | | </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> |
| | | </td> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | </div> |
| | | <ul class="layui-tab-title"> |
| | | <li class="layui-this">åæ®ä¿¡æ¯</li> |
| | | <li>æç»ä¿¡æ¯</li> |
| | | <li>å¶åä¿¡æ¯</li> |
| | | </ul> |
| | | </div> |
| | | </div> |
| | | <!--éèåæ®µ--> |
| | | <input type="hidden" name="HMainSourceInterID" id="HMainSourceInterID" value="0"> |
| | | <input type="hidden" name="HMainSourceEntryID" id="HMainSourceEntryID" value="0"> |
| | | <input type="hidden" name="HMainSourceBillNo" id="HMainSourceBillNo" value=""> |
| | | <input type="hidden" name="HMainSourceBillType" id="HMainSourceBillType" value=""> |
| | | <input type="hidden" name="HProcExchInterID" id="HProcExchInterID" value="0"> |
| | | <input type="hidden" name="HProcExchEntryID" id="HProcExchEntryID" value="0"> |
| | | <input type="hidden" name="HProcExchBillNo" id="HProcExchBillNo" value=""> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <script> |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'laydate', 'table', 'element', 'upload'], function () { |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , laydate = layui.laydate |
| | | , upload = layui.upload |
| | | , element = layui.element; |
| | | var params = get_UrlVars(); |
| | | var option = []; |
| | | var titleData = []; |
| | | //#region åå§åé¡µé¢ |
| | | |
| | | |
| | | //è¿å
¥é¡µé¢é»è®¤å
æ 卿¡å½¢ç ä¸ |
| | | $("#HBarCode").focus(); |
| | | var option; |
| | | var HModName = "MES_StationOutBill_PDA"; |
| | | |
| | | /*åºå®ä»£ç ï¼æ¯å¼ åæ®é½è¦begin*/ |
| | | /* 1.æ æºåæ°å¢ |
| | | * 2.ææºåæ°å¢ |
| | | * 3.ç¼è¾ |
| | | * 4.æµè§ |
| | | * 5.åæ´ |
| | | */ |
| | | //è·ååæ° |
| | | function getUrlVars() { |
| | | var vars = [], hash; |
| | | var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); |
| | | for (var i = 0; i < hashes.length; i++) { |
| | | hash = hashes[i].split('='); |
| | | vars.push(hash[0]); |
| | | vars[hash[0]] = hash[1]; |
| | | } |
| | | return vars; |
| | | } |
| | | |
| | | var params = getUrlVars(); |
| | | if (typeof (params[params[0]]) == "undefined") { |
| | | var OperationType = 1;//æä½ç±»å |
| | | var closeType = 2; //å
³éç±»å |
| | | } |
| | | /*åºå®ä»£ç ï¼æ¯å¼ åæ®é½è¦begin*/ |
| | | |
| | | //æµè½¬å¡æ¯å¦æ«ææ è®° |
| | | var HProcExchBillNoFlag = false; |
| | | |
| | | //夿æ¯å¦æ°å¢ |
| | | if (OperationType == 1 || OperationType == 2 || OperationType == 5) { |
| | | $("#HInterID").val(""); |
| | | $("#HBillNo").val(""); |
| | | //è·åæå¤§åæ®å· |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | data: { "HBillType": '3717' }, |
| | | success: function (d) { |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | } |
| | | }); |
| | | //è·åå½åç¨æ·é»è®¤å¼ |
| | | GetDefValByUser(); |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | } |
| | | |
| | | //#region éè¿ç»å½ç¨æ·è·åé»è®¤å¼ |
| | | function GetDefValByUser() { |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Cj_StationInBill/GetDefValByUser", |
| | | type: "GET", |
| | | data: { "Czybm": sessionStorage["Czybm"], "Czymc": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | var data = result.data[0]; |
| | | |
| | | form.val("formData", { |
| | | "HSourceID": data.HSourceID, |
| | | "HSourceName": data.çäº§èµæºåç§°, |
| | | "HGroupID": data.HGroupID, |
| | | "HGroupName": data.ç产çç»åç§°, |
| | | "HEmpID": data.HEmpID, |
| | | "HEmpNumber": data.æä½å代ç , |
| | | "HEmpName": data.æä½ååç§°, |
| | | }); |
| | | layer.close(index); |
| | | } |
| | | , error: function () { |
| | | layer.close(index); |
| | | layer.msg("æ¥å£è¯·æ±å¤±è´¥"); |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | //åå§åºæ¬ä¿¡æ¯èµå¼ |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); |
| | | $("#HDate").val(Pub_Format(new Date(), "yyyy-MM-dd")); |
| | | |
| | | |
| | | //æ¡å½¢ç åè½¦æ¹æ³ æµè½¬å¡ |
| | | $('#HBarCode').on('keydown', function (event) { |
| | | var HBarCode = $('#HBarCode').val(); |
| | | if (event.keyCode == 13) { |
| | | if (!HBarCode) { |
| | | layer.msg("æ¡å½¢ç ä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } |
| | | txtHBarCode_KeyDown(HBarCode); |
| | | } |
| | | }); |
| | | |
| | | //æ¡å½¢ç åè½¦æ¹æ³ ä¸è¯åå |
| | | $('#HBarCode1').on('keydown', function (event) { |
| | | var HBarCode1 = $('#HBarCode1').val(); |
| | | var HProcName = $('#HProcName').val(); |
| | | var HSourceName = $('#HSourceName').val(); |
| | | var HDeptName = $('#HDeptName').val(); |
| | | if (event.keyCode == 13) { |
| | | if (!HBarCode1) { |
| | | layer.msg("æ¡å½¢ç ä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } |
| | | if (!HProcName) { |
| | | layer.msg("å·¥åºä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } |
| | | if (!HSourceName) { |
| | | layer.msg("çäº§èµæºä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } |
| | | if (!HDeptName) { |
| | | layer.msg("ç产车é´ä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } |
| | | txtHBarCode_KeyDown1(HBarCode1); |
| | | } |
| | | }); |
| | | //æµè½¬å¡ |
| | | function txtHBarCode_KeyDown(HBarCode) { |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Cj_StationBill/txtHBarCode_KeyDown2", |
| | | type: "GET", |
| | | data: { "HBarCode": HBarCode, "HInterID": $('#HProcExchInterID').val(), "UserID": sessionStorage["Czybm"], "HBillType": "Out" }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | var data = result.data[0]; |
| | | form.val("formData", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HProcExchInterID": data.hmainid, |
| | | "HProcExchEntryID": 0, |
| | | "HProcExchBillNo": data.åæ®å·, |
| | | "HICMOInterID": data.hicmointerid, |
| | | "HICMOInterID": data.HICMOEntryID, |
| | | "HICMOBillNo": data.ä»»å¡åå·, |
| | | "HMaterID": data.HMaterID, |
| | | "HMaterName": data.产å, |
| | | "HMaterModel": data.è§æ ¼åå·, |
| | | "HUnitID": data.HUnitID, |
| | | "HUnitName": data.åä½, |
| | | "HDeptID": data.HWorkShopID, |
| | | "HDeptName": data.ç产车é´, |
| | | "HSTOCKORGID": data.ç»ç», |
| | | "HSTOCKORG": data.ç»ç»åç§°, |
| | | |
| | | "HMainSourceBillType": data.HBillSubType, |
| | | "HMainSourceInterID": data.hicmointerid, |
| | | "HMainSourceEntryID": data.HICMOEntryID, |
| | | "HMainSourceBillNo": data.ç产订åå· |
| | | }); |
| | | $("#HProcNo").attr('disabled', 'disabled'); |
| | | HProcExchBillNoFlag = true; |
| | | |
| | | var HProcExchInterID = $('#HProcExchInterID').val(); |
| | | var HInterID = data.hmainid; |
| | | //èªå¨å¹é
æµæ°´å· |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Sc_StationInBill/autoGetProcNo", |
| | | type: "GET", |
| | | data: { "HUserID": sessionStorage["Czybm"], "HInterID": HInterID, "BillType": "Out" }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | var data = data1.data[0]; |
| | | form.val("formData", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HProcName": data.å·¥åº, |
| | | "HProcID": data.å·¥åºID, |
| | | "HProcNo": data.æµæ°´å·, |
| | | "HCenterName": data.å·¥ä½ä¸å¿, |
| | | "HCenterID": data.HCenterID, |
| | | }); |
| | | |
| | | $("#HProcNo").attr("readonly", "readonly"); |
| | | $("#HProcNo").css("background-color", "#efefef4d"); |
| | | } |
| | | } |
| | | }) |
| | | |
| | | layer.close(index); |
| | | //æ¸
空æ¡ç æ¡ |
| | | $('#HBarCode').val(""); |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.close(index); |
| | | layer.msg("æ¥å£è¯·æ±å¤±è´¥ï¼" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | } |
| | | //ä¸è¯åå |
| | | function txtHBarCode_KeyDown1(HBarCode1) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Sc_QualityReportStepBill/get_HBadReasonID", |
| | | type: "GET", |
| | | data: { "HBadReasonNumber": HBarCode1 }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | var rowdata = { |
| | | "HMaterID": $("#HMaterID").val(), "HMaterName": $("#HMaterName").val(), "HUnitID": $("#HUnitID").val(), "HUnitName": $("#HUnitName").val(), |
| | | "HEmpID": $("#HEmpID").val(), "HEmpName": $("#HEmpName").val(), "HSourceID": $("#HSourceID").val(), "HSourceName": $("#HSourceName").val(), |
| | | "HBadReasonID": result.data[0].HItemID, "HBadReasonNumber": result.data[0].HNumber, "HBadReasonName": result.data[0].HName, "HQty": "1", |
| | | "HResult": "", "HProcID": $("#HProcID").val(), "HProcName": $("#HProcName").val(), |
| | | "HNowProcID": "0", "HNowProcName": "", "HBadProcID": "0", |
| | | "HBadProcName": "", "HAddr": "", "HReportType": "1", "HRemark": "", |
| | | "HICMOInterID": $("#HICMOInterID").val(), "HICMOEntryID": $("#HICMOEntryID").val(), "HICMOBillNo": $("#HICMOBillNo").val(), |
| | | "HProcExchInterID": $("#HProcExchInterID").val(), "HProcExchEntryID": $("#HProcExchEntryID").val(), "HProcExchBillNo": $("#HProcExchBillNo").val(), |
| | | "HSourceInterID": $("#HICMOInterID").val(), "HSourceEntryID": $("#HICMOEntryID").val(), "HSourceBillNo": $("#HICMOBillNo").val(), "HSourceBillType": $("#HMainSourceBillType").val(), |
| | | "HMaker": $("#HEmpName").val(), |
| | | "HMakeDate": Format(new Date(), 'yyyy-MM-dd hh:mm:ss') |
| | | }; |
| | | option.data.push(rowdata); |
| | | table.render(option); |
| | | for (var i = 1; i <= option.data.length; i++) { |
| | | $('#HResult' + i + '').find("option[value='" + option.data[i - 1].HResult + "']").attr("selected", true); |
| | | } |
| | | form.render('select'); |
| | | $("#HBarCode1").val(""); |
| | | } else { |
| | | layer.alert(result.Message, { icon: 5 }); |
| | | $("#HBarCode1").val(""); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | $("#HBarCode1").val(""); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | table.on('tool(mainTable)', function (obj) { |
| | | set_GridDelete(obj); //è¡å
å é¤ |
| | | }); |
| | | |
| | | //#region [åºç¡èµæåè½¦æ¹æ³] |
| | | //çäº§èµæº |
| | | $('#HSourceName').on('keydown', function (event) { |
| | | var sBillNo = $('#HSourceName').val(); |
| | | if (event.keyCode == 13) { |
| | | if (!HProcExchBillNoFlag) { |
| | | layer.msg("æµè½¬å¡æ²¡ææ«æï¼æè
没ææå车é®ï¼è¯·æ«ææµè½¬å¡æè
卿µè½¬å¡ææ¬æ¡ä¸æå车é®ï¼"); |
| | | return; |
| | | } |
| | | BasicInfo_KeyDown(sBillNo); |
| | | } |
| | | }) |
| | | |
| | | //ç产çç» |
| | | $('#HGroupName').on('keydown', function (event) { |
| | | var sBillNo = $('#HGroupName').val(); |
| | | if (event.keyCode == 13) { |
| | | if (!HProcExchBillNoFlag) { |
| | | layer.msg("æµè½¬å¡æ²¡ææ«æï¼æè
没ææå车é®ï¼è¯·æ«ææµè½¬å¡æè
卿µè½¬å¡ææ¬æ¡ä¸æå车é®ï¼"); |
| | | return; |
| | | } |
| | | BasicInfo_KeyDown(sBillNo); |
| | | } |
| | | }) |
| | | |
| | | //æä½å |
| | | $('#HEmpNumber').on('keydown', function (event) { |
| | | var sBillNo = $('#HEmpNumber').val(); |
| | | if (event.keyCode == 13) { |
| | | if (!HProcExchBillNoFlag) { |
| | | layer.msg("æµè½¬å¡æ²¡ææ«æï¼æè
没ææå车é®ï¼è¯·æ«ææµè½¬å¡æè
卿µè½¬å¡ææ¬æ¡ä¸æå车é®ï¼"); |
| | | return; |
| | | } |
| | | BasicInfo_KeyDown(sBillNo); |
| | | } |
| | | }) |
| | | |
| | | //æä½ååè½¦æ¹æ³ |
| | | function Operator_KeyDown(sBillNo) { |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Cj_StationBill/txtHBarCode_KeyDown_Operator", |
| | | type: "GET", |
| | | data: { "HBarCode": sBillNo, "HInterID": $('#HProcExchInterID').val(), "UserID": sessionStorage["Czybm"], "HBillType": "Out" }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | var data = result.data[0]; |
| | | |
| | | form.val("formData", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HEmpID": data.HItemID, |
| | | "HEmpNumber": data.èå代ç , |
| | | "HEmpName": data.èååç§° |
| | | }); |
| | | |
| | | layer.close(index); |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.close(index); |
| | | layer.msg("æ¥å£è¯·æ±å¤±è´¥ï¼" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | //æµæ°´å·ï¼å·¥åºå·ï¼åè½¦æ¹æ³ |
| | | $('#HProcNo').on('keydown', function (event) { |
| | | var sProcNo = $('#HProcNo').val(); |
| | | var sBillNo = $('#HProcExchBillNo').val(); |
| | | if (event.keyCode == 13) { |
| | | if (!HProcExchBillNoFlag) { |
| | | layer.msg("æµè½¬å¡æ²¡ææ«æï¼æè
没ææå车é®ï¼è¯·æ«ææµè½¬å¡æè
卿µè½¬å¡ææ¬æ¡ä¸æå车é®ï¼"); |
| | | return; |
| | | } |
| | | txtHProcNo_KeyDown(sBillNo, sProcNo); |
| | | } |
| | | }); |
| | | |
| | | function txtHProcNo_KeyDown(sBillNo, sProcNo) { |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Cj_StationInBill/txtHProcNo_KeyDown", |
| | | type: "GET", |
| | | data: { "sBillNo": sBillNo, "sProcNo": sProcNo }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | var data = result.data[0]; |
| | | form.val("formData", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HProcExchEntryID": data.hsubid, |
| | | "HProcName": data.å·¥åº, |
| | | "HProcID": data.HProcID, |
| | | "HSourceID": data.HSourceID, |
| | | "HSourceName": data.çäº§èµæº |
| | | }); |
| | | $("#HProcNo").attr("readonly", "readonly"); |
| | | $("#HProcNo").css("background-color", "#efefef4d"); |
| | | layer.close(index); |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.close(index); |
| | | layer.msg("æ¥å£è¯·æ±å¤±è´¥ï¼" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //æäº¤ |
| | | form.on('submit(Saver)', function (data) {//æäº¤ |
| | | if ($("#HProcNo").val() == "") { |
| | | layer.msg("æµæ°´å·æ²¡æéæ©ï¼è¯·è¾å
¥æµæ°´å·åå车ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | //è·ååè¡¨æ°æ® |
| | | var num = []; |
| | | for (var i = 0; i < table.cache["mainTable"].length; i++) { |
| | | if (table.cache["mainTable"][i] != "") { |
| | | table.cache["mainTable"][i].LAY_TABLE_INDEX = i; |
| | | num.push(table.cache["mainTable"][i]) |
| | | } |
| | | } |
| | | //è·åæä½æ¹å¼ |
| | | var refSav = ""; |
| | | if (OperationType == 1 || OperationType == 2 || OperationType == 4) { |
| | | refSav = "Add"; |
| | | } |
| | | //è¥ä¸ºç¼è¾-ä¿åï¼åæ´æ°ä¿®æ¹äººåä¿®æ¹æ¶é´ |
| | | if (OperationType == 3) { |
| | | refSav = "Update"; |
| | | data.field.HUpdater = sessionStorage["HUserName"]; |
| | | data.field.HUpdaterDate = Format(new Date(), "yyyy-MM-dd"); |
| | | $("#HUpdater").val(sessionStorage["HUserName"]); |
| | | $("#HUpdaterDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | } |
| | | |
| | | //è·åè¡¨å¤´æ°æ®å¹¶åºåå |
| | | var sMainStr = JSON.stringify(data.field); //ä¸»è¡¨æ°æ® |
| | | //åè¡¨æ°æ®åºåå |
| | | var sSubStr = JSON.stringify(num); |
| | | |
| | | //æ¼æ¥åºååçæ°æ® |
| | | var sMainSub = sMainStr + ';' + sSubStr + ';' + refSav + ";" + sessionStorage["HUserName"]; |
| | | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "Sc_QualityReportBill/SaveSc_QualityReportBill_PDA", |
| | | async: true, |
| | | data: { "msg": sMainSub }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { |
| | | //æ¸
空æ¡å½¢ç è¾å
¥æ¡å
容 |
| | | $("#HBarCode").val(""); |
| | | layer.close(index); |
| | | layer.msg("æäº¤æå"); |
| | | $("#Add").attr("style", "display:inline;");//æ¾ç¤ºæ°å¢æé® |
| | | $('#Saver').addClass("layui-btn-disabled").attr("disabled", true);//ç¦ç¨ä¿åæé® |
| | | } |
| | | else { |
| | | //æ¸
空æ¡å½¢ç è¾å
¥æ¡å
容 |
| | | $("#HBarCode").val(""); |
| | | layer.close(index); |
| | | layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.close(index); |
| | | layer.msg("é误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | // ç¡®å®æé® |
| | | form.on('submit(QueDin)', function (data) {// |
| | | var HBarCode = $('#HBarCode').val(); |
| | | |
| | | if (!HBarCode) { |
| | | layer.msg("æ¡å½¢ç ä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } |
| | | txtHBarCode_KeyDown(HBarCode); |
| | | }); |
| | | |
| | | //ä¸è¯åå æ¡ç ç¡®å®æé® |
| | | form.on('submit(HBarCodeList)', function (data) {// |
| | | var HBarCode1 = $('#HBarCode1').val(); |
| | | |
| | | if (!HBarCode1) { |
| | | layer.msg("æ¡å½¢ç ä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } |
| | | txtHBarCode_KeyDown1(HBarCode1); |
| | | }); |
| | | |
| | | // æä½åç¡®å®æé® |
| | | form.on('submit(QueDin_CZY)', function (data) {// |
| | | var sBillNo = $('#HEmpNumber').val(); |
| | | if (!HProcExchBillNoFlag) { |
| | | layer.msg("æµè½¬å¡æ²¡ææ«æï¼æè
没ææå车é®ï¼è¯·æ«ææµè½¬å¡æè
卿µè½¬å¡ææ¬æ¡ä¸æå车é®ï¼"); |
| | | return; |
| | | } |
| | | Operator_KeyDown(sBillNo); |
| | | }); |
| | | |
| | | //éæ©é¨é¨å¼¹çª |
| | | form.on('submit(HDept-BT)', function () {//é¨é¨ |
| | | layer.open({ |
| | | type: 2 //ç±»å |
| | | , skin: 'layui-layer-rim'//å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'é¨é¨å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_DepartmentList.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HDeptID").val(checkStatus.data[0].HItemID); |
| | | $("#HDeptName").val(checkStatus.data[0].HName); |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | |
| | | //éæ©æµæ°´å·å¼¹çª |
| | | form.on('submit(SerialNum-BT)', function () {//çäº§èµæº |
| | | var value = $("#HProcExchInterID").val(); |
| | | // 夿æ¯å¦å·²ç»è¾å
¥æµæ°´å·ï¼æ¯åå¼¹åºæ¨¡ææ¡ï¼å¦åç»åºæç¤º |
| | | if (value) { |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'æµæ°´å·' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | //, maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: [`../../Baseset/åºç¡èµæ/Gy_GetProcNoList.html?HInterID=${value}`, 'yes'] |
| | | , resize: false |
| | | , cancel: function (index, layero) { |
| | | } |
| | | , end: function () { |
| | | var sProcNo = $('#HProcNo').val(); |
| | | var sBillNo = $('#HProcExchBillNo').val(); |
| | | if (sProcNo != "") { |
| | | txtHProcNo_KeyDown(sBillNo, sProcNo); |
| | | } |
| | | } |
| | | }) |
| | | } else { |
| | | layer.alert('请æ¨ç¡®è®¤è¾å
¥æµè½¬å¡å·åéè¯^_^', { icon: 7 }); |
| | | } |
| | | }); |
| | | |
| | | //éæ©ç产çç»å¼¹çª |
| | | form.on('submit(ProductionTeam-BT)', function () {//éæ©ç产çç» |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ç产çç»' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_GetProductionTeamList.html', 'yes'] |
| | | , resize: false |
| | | , cancel: function (index, layero) { |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //éæ©æä½å |
| | | form.on('submit(HEmployeeID-BT)', function () {//éæ©è´£ä»»äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HWorker', '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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HEmpName").val(checkStatus.data[0].HName); |
| | | $("#HEmpName_second").val(checkStatus.data[0].HName); |
| | | $("#HEmpID").val(checkStatus.data[0].HItemID); |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | }); |
| | | |
| | | //éæ©çäº§èµæºå¼¹çª |
| | | form.on('submit(ProductionResources-BT)', function () {//çäº§èµæº |
| | | console.log($('#HProcNo').val()) |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'çäº§èµæº' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | //, maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_GetProductionResourcesList.html', 'yes'] |
| | | , resize: false |
| | | , cancel: function (index, layero) { |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | // æ°å¢æé® |
| | | form.on('submit(Add)', function () {//æäº¤ |
| | | layer.confirm('æ°å¢å页颿°æ®å°æ¶å¤±ï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | location.replace('Sc_QualityReportBill_PDA.html'); |
| | | }); |
| | | }) |
| | | |
| | | //éåº--å
¨å±ç |
| | | form.on('submit(Cancel)', function () { |
| | | layer.confirm('æ¨ç¡®å®è¦éåºåï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | parent.location.href = "../../../views/index_Mobile.html"; |
| | | }); |
| | | }) |
| | | |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | function set_InitGrid() { |
| | | //表头 |
| | | columns = [ |
| | | { templet: '#xuhao', title: 'åºå·', event: "qwe", width: 50 } |
| | | , { field: 'HMaterID', title: 'ç©æid', templet: '#HDotCheckResult', width: 55, hide: true } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', edit: 'text', width: 115 } |
| | | , { field: 'HUnitID', title: '计éåä½', edit: 'text', hide: true } |
| | | , { field: 'HUnitName', title: '计éåä½', edit: 'text'} |
| | | , { field: 'HEmpID', title: 'æ£éªåid', edit: 'text', hide: true } |
| | | , { field: 'HEmpName', title: 'æ£éªå', edit: 'text' } |
| | | , { field: 'HSourceID', title: 'çäº§èµæºid', edit: 'text', hide: true } |
| | | , { field: 'HSourceName', title: 'çäº§èµæº', edit: 'text' } |
| | | , { field: 'HBadReasonID', title: 'ä¸è¯åå ', edit: 'text', hide: true } |
| | | , { field: 'HBadReasonNumber', title: 'ä¸è¯åå 代ç ', edit: 'text', width: 100 } |
| | | , { field: 'HBadReasonName', title: 'ä¸è¯åå åç§°', edit: 'text', width: 150 } |
| | | , { field: 'HQty', title: 'æ°é', edit: 'text'} |
| | | , { field: 'HResult', title: 'å¤å®ç»æ', templet: '#HResult', event: 'HResult' } |
| | | , { field: 'HProcID', title: 'å·¥åºid', edit: 'text', hide: true } |
| | | , { field: 'HProcName', title: 'å·¥åºåç§°', edit: 'text',width: 150} |
| | | , { field: 'HNowProcID', title: 'å½åå·¥åºid', edit: 'text', hide: true } |
| | | , { field: 'HNowProcName', title: 'å½åå·¥åº', edit: 'text', width: 150,hide: true} |
| | | , { field: 'HBadProcID', title: '责任工åºid', edit: 'text', hide: true } |
| | | , { field: 'HBadProcName', title: '责任工åº', edit: 'text', width: 150, hide: true} |
| | | , { field: 'HICMOInterID', title: 'ç产订åå
ç ', edit: 'text', hide: true } |
| | | , { field: 'HICMOEntryID', title: 'ç产订ååç ', edit: 'text', hide: true} |
| | | , { field: 'HICMOBillNo', title: 'ç产订åå·', edit: 'text', hide: true} |
| | | , { field: 'HProcExchInterID', title: 'æµè½¬å¡å
ç ', edit: 'text', hide: true} |
| | | , { field: 'HProcExchEntryID', title: 'æµè½¬å¡åç ', edit: 'text', hide: true} |
| | | , { field: 'HProcExchBillNo', title: 'æµè½¬å¡å·', edit: 'text', hide: true } |
| | | , { field: 'HAddr', title: 'MACæº', edit: 'text', hide: true } |
| | | , { field: 'HReportType', title: 'æ±æ¥ç±»å', edit: 'text', hide: true } |
| | | , { field: 'HMaker', title: 'æ«æäºº', edit: 'text' } |
| | | , { field: 'HMakeDate', title: 'æ«ææ¶é´', edit: 'text' } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | | , { field: 'HSourceInterID', title: 'æºåå
ç ', edit: 'text', hide: true } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', edit: 'text', hide: true } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', edit: 'text', hide: true } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', edit: 'text', hide: true } |
| | | , { title: 'æä½', toolbar: '#barDemo', width: 80 } |
| | | ]; |
| | | option = { |
| | | id: 'mainTable' |
| | | , elem: '#mainTable' |
| | | , page: false |
| | | , cellMinWidth: 100 |
| | | , limit: 100 |
| | | , height: 'full-205' |
| | | , cols: [columns] |
| | | , done: function (res, curr, count) { |
| | | option.data = res.data; |
| | | //廿䏿æ¡å¤±ç¦äºä»¶å¦åå¨ä¸ææ¡éè¾å
¥å¼ |
| | | $('.layui-form-select').find('input').unbind("blur"); |
| | | //è¡¨æ ¼éè½½åæ¾ä¸ææ¡éçæ°æ® |
| | | $('tr').each(function (e) { |
| | | var $cr = $(this); |
| | | var dataIndex = $cr.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TNDEX == dataIndex) { |
| | | //$cr.find('input').val(value.HResult); |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | }; |
| | | |
| | | option.data = []; |
| | | |
| | | table.render(option); |
| | | } |
| | | |
| | | // è¡¨æ ¼è¡å
äºä»¶å é¤ |
| | | function set_GridDelete(obj) { |
| | | var data = obj.data; |
| | | var rowIndex = $(obj.tr).attr("data-index"); |
| | | if (obj.event === 'del') { |
| | | layer.confirm('ççå é¤è¡ä¹', function (index) { |
| | | console.log("ç´¢å¼ä¸º:" + rowIndex); |
| | | if (rowIndex === '0') { |
| | | layer.msg('é¦è¡æ æ³å é¤ï¼ï¼ï¼'); |
| | | } else { |
| | | //obj.del(); |
| | | //layer.close(index); |
| | | var oldData = table.cache["mainTable"]; |
| | | oldData.splice(obj.tr.data('index'), 1); |
| | | table.reload('mainTable', { data: oldData }); |
| | | layer.close(index); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | |
| | | //è¡éæ©å¤çï¼åææ¹æ³ï¼ |
| | | form.on('select(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.value;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | //以ä¸ä¸ºlayui模å |
| | | }); |
| | | |
| | | |
| | | //è¿åæµæ°´å· |
| | | function GetProcNoValue(obj) { |
| | | $("#HProcNo").val(obj[0].æµæ°´å·); |
| | | } |
| | | //è¿åç产çç» |
| | | function GetProductionTeamValue(obj) { |
| | | $("#HGroupName").val(obj[0].çç»); |
| | | $("#HGroupID").val(obj[0].HItemID); |
| | | } |
| | | //è¿åæ£éªå |
| | | function GetHSecManagerValue(obj) { |
| | | $("#HQCCheckName").val(obj[0].HName); |
| | | $("#HQCCheckID").val(obj[0].HItemID); |
| | | } |
| | | //è¿åçäº§èµæº |
| | | function GetProductionResourcesValue(obj) { |
| | | $("#HSourceName").val(obj[0].çäº§èµæº); |
| | | $("#HSourceID").val(obj[0].HItemID); |
| | | } |
| | | //è¿åæä½å |
| | | function GetHWorkerValue(obj) { |
| | | $("#HEmpName").val(obj[0].HName); |
| | | $("#HEmpID").val(obj[0].HItemID); |
| | | } |
| | | //è¿åå·¥åº |
| | | function GetHProcValue(obj) { |
| | | $("#HProcName").val(obj[0].å·¥åº); |
| | | $("#HProcID").val(obj[0].HItemID); |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |