| New file |
| | |
| | | <!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"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> |
| | | </head> |
| | | <body> |
| | | |
| | | <div id="layout1" class="layui-fluid"> |
| | | <div class="layui-row layui-col-space15"> |
| | | <div class="layui-col-md12"> |
| | | <div class="layui-card"> |
| | | <form id="form0" class="layui-form" action=""> |
| | | <div class="layui-card-header"> |
| | | <div class="layui-btn-group"> |
| | | |
| | | <button type="button" 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="Cancel">éåº</button> |
| | | |
| | | </div> |
| | | |
| | | </div> |
| | | <div class="layui-card-body"> |
| | | <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief"> |
| | | <!--<ul class="layui-tab-title"> |
| | | <li class="layui-this">åºæ¬ä¿¡æ¯</li>--> |
| | | <!--<li>å
¶ä»ä¿¡æ¯</li>--> |
| | | <!--</ul>--> |
| | | <h1 style="text-align:center;"><b>ä¸è¯è¯å®¡å</b></h1> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | | |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label">å æ® å·ï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HBillNo" lay-verify="HBillNo" id="HBillNo" readonly="readonly" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label">åæ®æ¥æï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HDate" id="HDate" readonly="readonly" autocomplete="off" disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label">订åè·è¸ªå·ï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="" id="" autocomplete="off" disabled> |
| | | <input id="" name="" type="hidden" /> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label">产åï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HMater" id="HMater" lay-verify="HMater" readonly="readonly" autocomplete="off" class="layui-input"> |
| | | <input id="HMaterID" name="HMaterID" type="hidden" /> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label">产å代ç ï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HMaterNumber" id="HMaterNumber" lay-verify="HMaterNumber" readonly="readonly" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!--<button class="layui-btn" data-type="reload">éæ©</button>--> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label">å·¥åºè®¡ååå·ï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HMainSourceBillNo" id="HMainSourceBillNo" lay-verify="" autocomplete="off" class="layui-input"> |
| | | |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HPlanID-BT"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <input id="HMainSourceInterID" name="HMainSourceInterID" type="hidden" /> |
| | | <input id="HMainSourceEntryID" name="HMainSourceEntryID" type="hidden" /> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label"> å·¥ä½ä¸å¿ï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HWorkCenterName" lay-verify="" id="HWorkCenterName" readonly="readonly" autocomplete="off"> |
| | | <input id="HCenterID" name="HCenterID" type="hidden" /> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label"> è®¡åæ°éï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HPlanQty" id="HPlanQty" readonly="readonly" autocomplete="off"> |
| | | |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label"> è§æ ¼åå·ï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HModel" lay-verify="" id="HModel" readonly="readonly" autocomplete="off"> |
| | | <!--<button type="button" lay-submit="" class="layui-btn" lay-filter="HMateriaID-BT"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button>--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label"> ä¸è¯æ°éï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HBadQty" id="HBadQty" autocomplete="off"> |
| | | |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row"> |
| | | |
| | | <div class="layui-colorpicker-xs"> |
| | | <label class="layui-form-label"> è¯å®¡æè§ï¼</label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="HNote" id="HNote" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <table> |
| | | <tr> |
| | | |
| | | </tr> |
| | | </table> |
| | | |
| | | <table class="layui-table" id="mainTable" lay-filter="mainTable"> |
| | | <thead> |
| | | <tr> |
| | | <th>åºå·</th> |
| | | <th>ä¸è¯åå </th> |
| | | <th>责任人</th> |
| | | <th>ç³è¯·å·¥åº</th> |
| | | <th>责任工åº</th> |
| | | <th>ä¸è¯æ°é</th> |
| | | <th>夿³¨</th> |
| | | <th>ä¸è¯ç¡®è®¤äºº</th> |
| | | <th>å¤å®ç»æ</th> |
| | | </tr> |
| | | </thead> |
| | | <tbody> |
| | | <tr> |
| | | <td>1</td> |
| | | <td><input type="text" id="HWasterReasonName" name="HWasterReasonName" style="width:200px;height:20px;" /> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HBadReasonID-BT"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <input id="HBadReasonID" name="HBadReasonID" type="hidden" /> |
| | | </td> |
| | | <td><input type="text" id="HEmpName" name="HEmpName" style="width:200px;height:20px;" /> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HEmployeeID-BT"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <input id="HItemID" name="HItemID" type="hidden" /> |
| | | |
| | | |
| | | </td> |
| | | <td><input type="text" id="HSQProcName" name="HSQProcName" style="width:200px;height:20px;" /> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HSQProcID-BT"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <input id="HProcID" name="HProcID" type="hidden" /> |
| | | </td> |
| | | <td><input type="text" id="HZRProcName" name="HZRProcName" style="width:200px;height:20px;" /> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HZRProcID-BT"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <input id="HItemID" name="HItemID" type="hidden" /> |
| | | |
| | | </td> |
| | | <td><input type="text" id="HBadQty" name="HBadQty" style="width:200px;height:20px;" /></td> |
| | | <td><input type="text" id="HRemark" name="HRemark" style="width:200px;height:20px;" /></td> |
| | | <td><input type="text" id="HPSProcName" name="HPSProcName" style="width:200px;height:20px;" /></td> |
| | | <td><input type="text" id="HQCResultID" name="HQCResultID" style="width:200px;height:20px;" /></td> |
| | | |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td>2</td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td ><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | |
| | | </tr> |
| | | <tr> |
| | | <td>3</td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td ><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td>4</td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td ><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td>5</td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td ><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td>6</td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td ><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td>7</td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td ><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td>8</td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td ><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td>9</td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td ><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td>10</td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td ><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td>11</td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td ><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td>12</td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td ><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td>13</td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td ><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td>14</td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td ><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td>15</td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td ><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | <td><input type="text" id="" style="width:200px;height:20px;"/></td> |
| | | |
| | | </tr> |
| | | |
| | | |
| | | </tbody> |
| | | |
| | | </table> |
| | | |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <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> |
| | | |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'laydate', 'table', 'element'], function () { |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element; |
| | | //æ¸
空çé¢ new |
| | | |
| | | //表头åå§åèµå¼ï¼æ ¹æ®ç»å½ç¨æ·è·å é»è®¤ä»åºãé¨é¨ãéªæ¶ãä¿ç®¡ãéè¶ç¨æ·ï¼ new |
| | | $("#HWHID").val(sessionStorage["HWHID"]); |
| | | $("#HWHNAME").val(sessionStorage["HWHName"]); |
| | | $("#HStockPlaceID").val(sessionStorage["HSPID"]); |
| | | $("#HStockPlaceName").val(sessionStorage["HSPName"]); |
| | | //$("#HSupID").val(sessionStorage["HSupID"]); |
| | | //$("#HSupName").val(sessionStorage["HSupName"]); |
| | | $("#HDeptID").val(sessionStorage["HDeptID"]); |
| | | $("#HDeptName").val(sessionStorage["HDept"]); |
| | | $("#HSecManagerID").val(sessionStorage["HSecManagerID"]); |
| | | $("#HSecManager").val(sessionStorage["HSecManager"]); |
| | | $("#HKeeperID").val(sessionStorage["HKeeperID"]); |
| | | $("#HKeeper").val(sessionStorage["HKeeper"]); |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | $("#HMaker").hide(); |
| | | $("#HMakerID").hide(); |
| | | $("#HBillerID").val(sessionStorage["HBillerID"]); |
| | | $("#HBillerID").hide(); |
| | | var HSourceFlag = sessionStorage["SourceFlag"]; |
| | | //é»è®¤å¸¦å
¥çä»åºï¼å¦æå¯ç¨ä»ä½åä»ä½ææï¼å¦ææ²¡æå¯ç¨åä»ä½ç°åº¦ new |
| | | |
| | | $("#HBarCode").focus(); |
| | | |
| | | //è·ååæ° |
| | | 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; |
| | | } |
| | | |
| | | //夿æ¯å¦ç»å½ æªç»å½åè·³å°ç»å½é¡µ |
| | | if (sessionStorage.login != "login") { |
| | | layer.confirm("ç»å½å¤±æï¼è¯·éæ°ç»å½ï¼", { |
| | | icon: 4, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['éæ°ç»å½'] |
| | | }, function () { window.location.href = "../../user/login.html"; }); |
| | | } |
| | | |
| | | var params = getUrlVars(); |
| | | var linterid = params[params[0]]; //ä»åæ°ä¸è·å åæ®å
ç |
| | | var lSourceBillType = params[params[2]]; //ä»åæ®è·å æºåç±»å |
| | | |
| | | function RoadBillMain(linterid)//å 载表头 |
| | | { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetPonderationBill", |
| | | type: "GET", |
| | | data: { "HInterID": linterid }, |
| | | success: function (d) { |
| | | // console.log(d.data); |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | $("#HSourceBillNo").val(d.data[0].HSourceBillNo); |
| | | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | var date = new Date(); |
| | | var day = date.getDate(); |
| | | var month = date.getMonth() + 1; |
| | | var year = date.getFullYear(); |
| | | var shijian = year + "-" + month + "-" + day; |
| | | |
| | | //夿æ¯å¦æ°å¢ |
| | | if (linterid == null || linterid == 0) { |
| | | //è·åæå¤§åæ®å· new |
| | | $("#HInterID").val(""); |
| | | $("#HBillNo").val(""); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | data: { "HBillType": '7509' }, |
| | | success: function (d) { |
| | | //console.log(d.data); |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | $("#HDate").val(shijian); |
| | | } |
| | | }); |
| | | } |
| | | else {//å¦æä¿®æ¹åèµ°ä¸é¢ new |
| | | RoadBillMain(linterid); |
| | | RoadBillSub(linterid); |
| | | } |
| | | |
| | | |
| | | |
| | | //éæ©ä¸è¯åå |
| | | form.on('submit(HBadReasonID-BT)', function () {//éæ©ä»åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'ä¸è¯åå å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_BadReasonList.html', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //鿩工åºè®¡åå |
| | | form.on('submit(HPlanID-BT)', function () {//鿩工åºè®¡åå |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'å·¥åºè®¡ååå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Sc_ProcessPlanViewList.html', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //éæ©è´£ä»»äºº |
| | | 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: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HKeeper', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //éæ©ç³è¯·å·¥åº |
| | | form.on('submit(HSQProcID-BT)', function (data) {//éæ©ç³è¯·å·¥åº |
| | | var sMainStr = JSON.stringify(data.field); |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ç³è¯·å·¥åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //éæ©è´£ä»»å·¥åº |
| | | form.on('submit(HZRProcID-BT)', function () {//éæ©è´£ä»»å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: '责任工åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html?Type=HZR', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //ç¼è¾ |
| | | form.on('submit(cmdModify)', function () {//ç¼è¾ |
| | | var sSubStr = table.cache['wl-table']; |
| | | //if (AllowLoadData(sSubStr) != false) {//é空éªè¯ |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'æç»å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/å
Œ
±é¡µé¢/Kf_BarCodeEditDlg.html?table=' + JSON.stringify(sSubStr), 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | // } |
| | | }); |
| | | |
| | | form.on('submit(Cancel)', function () { |
| | | //sessionStorage["SourceFlag"] = false; |
| | | parent.location.href = "../../../views/index.html" |
| | | //window.close();//å
³éå½å页 |
| | | }) |
| | | |
| | | form.on('submit(Saver)', function (data) {//ä¿å |
| | | //debugger; |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | | var sMainSub = sMainStr + ';' + sSubStr; |
| | | $.ajax( |
| | | { |
| | | type: "POST", |
| | | url: GetWEBURL()+"SaveBadReasonList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: true, |
| | | data: {"msg": sMainSub}, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | } |
| | | else { |
| | | |
| | | f_alert(data.Message); |
| | | console.log("Reason" + sMainStr + "sub:::" + sSubStr); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | |
| | | f_alert("é误:" + err); |
| | | console.log("Reason"+sMainStr); |
| | | } |
| | | }); |
| | | }); |
| | | function f_alert(sMsg) { |
| | | layer.alert(sMsg, { icon: 5 }); |
| | | |
| | | } |
| | | |
| | | //çå¬æäº¤ |
| | | form.verify({ |
| | | numberOrEmpty: function (value, item) { |
| | | // if (value != '') { |
| | | if (!/^\d+$/.test(value)) { |
| | | return 'ä¸è½ä¸ºç©ºææ°åæè
0'; |
| | | } |
| | | //} |
| | | } |
| | | }); |
| | | |
| | | |
| | | //å·æ°æç»é¡µç¾ |
| | | table.render({ |
| | | elem: '#mx-table' |
| | | // , url: 'http://61.130.49.162:9090/WMSAPI///Web/GetHBarCodeShowBillSub' |
| | | //, toolbar: '#toolbarDemo' |
| | | // , where: { sMsg: linterid, sMsg2: lentryid } |
| | | , cols: [[ |
| | | , { field: 'HMaterID', title: 'ç©æID', width: 100, hide: true } |
| | | ]] |
| | | , page: true |
| | | , height: 500 |
| | | , done: function () { |
| | | } |
| | | }); |
| | | }); |
| | | function GetHReasonValue(obj) //è¿åä¸è¯åå |
| | | { |
| | | $("#HWasterReasonName").val(obj[0].HName); |
| | | //sessionStorage["HWHID"] = obj[0].HItemID; |
| | | $("#HBadReasonID").val(obj[0].HItemID); |
| | | } |
| | | function GetHPlanValue(obj) { //è¿åå·¥åºè®¡åå |
| | | $("#HMainSourceInterID").val(obj[0].hmainid); |
| | | $("#HMainSourceEntryID").val(obj[0].hsubid); |
| | | $("#HMainSourceBillNo").val(obj[0].åæ®å·); |
| | | $("#HMaterID").val(obj[0].HMaterID); |
| | | $("#HMaterNumber").val(obj[0].ç©æä»£ç ); |
| | | $("#HMater").val(obj[0].ç©æåç§°); |
| | | $("#HCenterID").val(obj[0].HCenterID); |
| | | $("#HWorkCenterName").val(obj[0].å·¥ä½ä¸å¿); |
| | | $("#HModel").val(obj[0].è§æ ¼åå·); |
| | | $("#HPlanQty").val(obj[0].è®¡åæ°é); |
| | | |
| | | |
| | | } |
| | | function GetHKeeperValue(obj) { //è¿åèå |
| | | $("#HEmpName").val(obj[0].HName); |
| | | //$("#HItemID").val(obj[0].HItemID); |
| | | } |
| | | function GetHProcValue(obj) { //è¿åç³è¯·å·¥åº |
| | | $("#HSQProcName").val(obj[0].å·¥åº); |
| | | $("#HProcID").val(obj[0].HItemID); |
| | | } |
| | | function GetHZRValue(obj) { //è¿åè´£ä»»å·¥åº |
| | | $("#HZRProcName").val(obj[0].å·¥åº); |
| | | //$("#HItemID").val(obj[0].HItemID); |
| | | } |
| | | function AllowLoadData(sSubStr) { //é空éªè¯ |
| | | //if ($("#HSourceBillNo").val() == '') { |
| | | // layer.msg("请å
æ«æºå!", { icon: 5 }); |
| | | // return false; |
| | | //} |
| | | if($("#HDeptName").val()=='') |
| | | { |
| | | layer.msg("é¨é¨æ²¡æéæ©", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if ($("#HSecManager").val() == '') { |
| | | layer.msg("éªæ¶äººæ²¡æéæ©", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if ($("#HKeeper").val() == '') { |
| | | layer.msg("ä¿ç®¡äººæ²¡æéæ©", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | //if ($("#HWHNAME").val() == '') { |
| | | // layer.msg("ä»åºæ²¡æéæ©!", { icon: 5 }); |
| | | // return false; |
| | | //} |
| | | if ($("#HBillNo").val() == '') { |
| | | layer.msg("é误çåæ®å·", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if ($("#HInterID").val() == '') { |
| | | layer.msg("é误çå
ç ", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if (typeof (sSubStr) == "undefined") |
| | | { |
| | | layer.msg("没æç©ææç»è®°å½", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if (!typeof (sSubStr) == "undefined") { |
| | | //for (var i = 0; i <= sSubStr.length - 1; i++) { //夿æ«ç æ°éä¸è½å¤§äºåºæ¶æ°é |
| | | // if (parseFloat(sSubStr[i].HQtyMust) > 0) { |
| | | // if (parseFloat(sSubStr[i].HQty) > parseFloat(sSubStr[i].HQtyMust)) |
| | | // { |
| | | // layer.msg("æ°éä¸è½å¤§äºåºæ¶æ°é", { icon: 5, btn: ['ç¡®å®'], time: 100000, offset: 't' }); |
| | | // return false; |
| | | // } |
| | | // } |
| | | //} |
| | | for (var i = 0; i <= sSubStr.length - 1; i++) { //夿æ«ç æ°éä¸è½ä¸º0 |
| | | if (parseFloat(sSubStr[i].HQty) > 0) { |
| | | s = 1; |
| | | } |
| | | } |
| | | if (s == 0) { |
| | | layer.msg("产åå
¥åºè®°å½æªæ«ç ", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | return true; |
| | | } |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |