WebTM/views/¹¤Ðò»ã±¨/MES_StationOutBill.html
@@ -8,451 +8,201 @@
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all">
    <script src="../../layuiadmin/layui/layui.js"></script>
    <script src="../../layuiadmin/Scripts/json2.js" type="text/javascript"></script>
    <script src="../../layuiadmin/Scripts/webConfig.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;
        }
    </style>
</head>
<body>
    <div class="layui-fluid">
    <div class="layui-fluid" style="padding:0">
        <div class="layui-card">
            <!--<div class="layui-card-header"></div>-->
            <div class="layui-card-body" style="padding: 15px;">
            <div class="layui-card-body" style="padding: 0;">
                <form class="layui-form" action="" lay-filter="component-form-group">
                    <div class="layui-form-item" style="margin-bottom: 20px;">
                    <div style="background-color:#0085E8;">
                        <span style="color: white;"><i class="layui-icon layui-icon-form"></i>工序出站汇报单</span>
                    </div>
                    <div class="layui-form-item" style="margin: 1% 0;text-align: right;">
                        <button type="button" lay-submit="" lay-filter="HAddBT" class="layui-btn layui-btn-radius">新增</button>
                        <!--<button type="button" lay-submit="" lay-filter="Saver" class="layui-btn layui-btn-radius">清空</button>-->
                        <!--<button type="button" lay-submit="" lay-filter="Saver" class="layui-btn layui-btn-radius">品质判断</button>-->
                        <button type="button" lay-submit="" lay-filter="Refresh" class="layui-btn layui-btn-radius">保存</button>
                        <!--<button type="button" lay-submit="" lay-filter="" class="layui-btn layui-btn-radius">清空</button>-->
                        <button type="button" lay-submit="" lay-filter="Saver" class="layui-btn layui-btn-radius">保存</button>
                        <button type="button" lay-submit="" lay-filter="Close" class="layui-btn layui-btn-radius layui-btn-danger">退出</button>
                        <button type="button" lay-submit="" onclick="check();">测试</button>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-row" style="padding:10px 0">
                            <div class="layui-col-xs3 layui-inline">
                                <fieldset class="layui-elem-field layui-field-title" style="text-align:center;">
                                    <legend>工序出站汇报单</legend>
                                </fieldset>
                            </div>
                            <div class="layui-col-xs1 layui-inline">
                                <img src="222.jpg" style="width:70%;height:50%;" />
                            </div>
                            <div class="layui-inline">
                                <div class="">
                                    <label class="layui-inline" style="width:60px;">条形码</label>
                                    <div class="layui-inline">
                                        <input type="text" style="border-radius: 50px;width:254%" name="条形码" id="HFbarcode" lay-verify="HFbarcode" autocomplete="off" placeholder="请输入条形码" class="layui-input">
                                    </div>
                                </div>
                                <div class="">
                                    <label class="layui-inline" style="width:60px;">流水号</label>
                                    <div class="layui-inline">
                                        <input type="text" style="border-radius: 50px;" name="流水号" id="Serial_number" lay-verify="Serial_number" autocomplete="off" placeholder="请输入流水号" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-inline" style="width:60px;">合格数量</label>
                                    <div class="layui-inline">
                                        <input type="text" style="border-radius: 50px;" name="合格数量" id="QualifiedQuantity" lay-verify="sQty" autocomplete="off" placeholder="请输入流水号" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-inline" style="width:60px;">报废数量</label>
                                    <div class="layui-inline">
                                        <input type="text" style="border-radius: 50px;" name="报废数量" id="ScrapQuantity" lay-verify="HBarCode" autocomplete="off" placeholder="请输入进站数量" class="layui-input">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--出站信息&其他信息-->
                    <div class="layui-form-item">
                        <div class="layui-col-md8 layui-card-body layui-inline">
                            <div class="layui-tab">
                                <ul class="layui-tab-title" lay-filter="tab-all">
                                    <li data-status="" class="layui-this">出站信息</li>
                                    <li data-status="2">其他信息</li>
                                </ul>
                                <div class="layui-tab-content">
                                    <div class="layui-tab-item layui-show" style="height:250px;">
                                        <table>
                                            <tbody>
                                                <tr>
                                                    <th style="width:80px;padding:10px">流转卡号</th>
                                                    <td>
                                                        <input type="text" name="流转卡号" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="流转卡号号" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:90px;padding:10px">汇报时间</th>
                                                    <td>
                                                        <input type="text" class="layui-input" id="HDateNow" style="background-color:#efefef4d;width:120px" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">生产订单号</th>
                                                    <td>
                                                        <input type="text" name="生产订单号" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="进站时间" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px">产品代码</th>
                                                    <td>
                                                        <input type="text" name="产品代码" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="产品代码" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">产品名称</th>
                                                    <td>
                                                        <input type="text" name="产品名称" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="产品名称" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">规格型号</th>
                                                    <td>
                                                        <input type="text" name="规格型号" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="规格型号" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px">计量单位</th>
                                                    <td>
                                                        <input type="text" name="计量单位" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="计量单位" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">产品类型</th>
                                                    <td>
                                                        <input type="text" name="产品类型" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="产品类型" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">汇报类型</th>
                                                    <td>
                                                        <input type="text" name="汇报类型" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="汇报类型" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px">流转卡数量</th>
                                                    <td>
                                                        <input type="text" name="流转卡数量" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="流转卡数量" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">生产订单数量</th>
                                                    <td>
                                                        <input type="text" name="生产订单数量" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="生产订单数量" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">单据号</th>
                                                    <td>
                                                        <input type="text" name="单据号" id="HBillNo2" lay-verify="HBillNo2" autocomplete="off" placeholder="单据号" class="layui-input" style="background-color:#efefef4d" readonly>
                                                        <input type="hidden" name="单据号ID" id="HInterID" lay-verify="HInterID">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px">订单跟踪号</th>
                                                    <td>
                                                        <input type="text" name="订单跟踪号" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="订单跟踪号" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px">操作员2</th>
                                                    <td>
                                                        <input type="text" name="操作员2" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="操作员2" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">操作员3</th>
                                                    <td>
                                                        <input type="text" name="操作员3" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="操作员3" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">操作员4</th>
                                                    <td>
                                                        <input type="text" name="操作员4" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="操作员4" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px">操作员5</th>
                                                    <td>
                                                        <input type="text" name="操作员5" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="操作员5" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="layui-tab-item" style="height:250px;">
                                        <table>
                                            <tbody>
                                                <tr>
                                                    <th style="width:80px;padding:10px">制单人</th>
                                                    <td>
                                                        <input type="text" name="制单人" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="制单人" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">制单日期</th>
                                                    <td>
                                                        <input type="text" name="制单日期" class="layui-input" id="HDateNow" placeholder="制单日期" style="background-color:#efefef4d;" readonly>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px">修改人</th>
                                                    <td>
                                                        <input type="text" name="修改人" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="修改人" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">修改日期</th>
                                                    <td>
                                                        <input type="text" name="修改日期" class="layui-input" id="HDateNow" placeholder="修改日期" style="background-color:#efefef4d;" readonly>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px">审核人</th>
                                                    <td>
                                                        <input type="text" name="审核人" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="审核人" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">审核日期</th>
                                                    <td>
                                                        <input type="text" name="审核日期" class="layui-input" id="HDateNow" placeholder="审核日期" style="background-color:#efefef4d;" readonly>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px"></th>
                                                    <td></td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px">进站PNL数</th>
                                                    <td>
                                                        <input type="text" name="进站PNL数" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="进站PNL数" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">进站PSC数</th>
                                                    <td>
                                                        <input type="text" name="进站PSC数" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="进站PSC数" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px">报废PNL数</th>
                                                    <td>
                                                        <input type="text" name="报废PNL数" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="报废PNL数" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">机台</th>
                                                    <td>
                                                        <input type="text" name="机台" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="机台" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px">折弯刀数</th>
                                                    <td>
                                                        <input type="text" name="折弯刀数" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="折弯刀数" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">品质确认人</th>
                                                    <td>
                                                        <input type="text" name="品质确认人" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="品质确认人" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px">NCT冲次数</th>
                                                    <td>
                                                        <input type="text" name="NCT冲次数" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="NCT冲次数" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">NCT单次</th>
                                                    <td>
                                                        <input type="text" name="NCT单次" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="NCT单次" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px">移交PNL数</th>
                                                    <td>
                                                        <input type="text" name="移交PNL数" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="移交PNL数" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">系数</th>
                                                    <td>
                                                        <input type="text" name="系数" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="系数" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--本站信息-->
                        <div class="layui-inline" style="padding-left:5px;border:1px solid #e6e6e6;width:28%">
                            <div class="layui-row">
                                <div class="layui-col-xs4">
                                    <label class="layui-form-label">本站信息</label>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label" style="width:60px;padding-left:0px;">当前工序</label>
                                </div>
                                <div class="layui-col-xs6">
                                    <input type="text" name="当前工序" id="HWorkShopName" lay-verify="HWorkShopName" autocomplete="off" placeholder="选择当前工序" class="layui-input" style="background-color:#efefef4d" readonly>
                                    <input type="hidden" name="当前工序代码" id="HWorkShopID" lay-verify="HWorkShopID" value="0" autocomplete="off" class="layui-input">
                                </div>
                                <div class="">
                                    <button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HWorkShop-BT">...</button>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label" style="width:60px;padding-left:0px;">工作中心</label>
                                </div>
                                <div class="layui-col-xs6">
                                    <input type="text" name="工作中心" id="HProcName" lay-verify="HProcName" autocomplete="off" placeholder="选择工作中心" class="layui-input" style="background-color:#efefef4d" readonly>
                                    <input type="hidden" name="工作中心代码" id="HProcID" lay-verify="HProcID" value="0" autocomplete="off" class="layui-input">
                                </div>
                                <div class="">
                                    <button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HWorkingProcedure-BT">...</button>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label" style="width:60px;padding-left:0px;">生产车间</label>
                                </div>
                                <div class="layui-col-xs6">
                                    <input type="text" name="生产车间" id="HScOrgName" lay-verify="HScOrgName" autocomplete="off" placeholder="选择生产车间" class="layui-input" style="background-color:#efefef4d" readonly>
                                    <input type="hidden" name="生产车间代码" id="HScOrgID" lay-verify="HScOrgID" value="0" autocomplete="off" class="layui-input">
                                </div>
                                <div class="">
                                    <button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOrganization-BT">...</button>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label" style="width:60px;padding-left:0px;">生产组织</label>
                                </div>
                                <div class="layui-col-xs6">
                                    <input type="text" name="生产组织" id="HOrganization" lay-verify="HOrganization" autocomplete="off" placeholder="选择生产组织" class="layui-input" style="background-color:#efefef4d" readonly>
                                    <input type="hidden" name="生产组织代码" id="HOrganizationID" lay-verify="HOrganizationID" value="0" autocomplete="off" class="layui-input">
                                </div>
                                <div class="">
                                    <button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOrganization-BT">...</button>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label" style="width:60px;padding-left:0px;">操作员</label>
                                </div>
                                <div class="layui-col-xs6">
                                    <input type="text" name="操作员" id="Operator" lay-verify="Operator" autocomplete="off" placeholder="选择操作员" class="layui-input" style="background-color:#efefef4d" readonly>
                                    <input type="hidden" name="操作员代码" id="OperatorID" lay-verify="OperatorID" value="0" autocomplete="off" class="layui-input">
                                </div>
                                <div class="">
                                    <button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="Operator-BT">...</button>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label" style="width:60px;padding-left:0px;">生产班组</label>
                                </div>
                                <div class="layui-col-xs6">
                                    <input type="text" name="生产班组" id="HOperatorName" lay-verify="HOperatorName" autocomplete="off" placeholder="选择生产班组" class="layui-input" style="background-color:#efefef4d" readonly>
                                    <input type="hidden" name="生产班组代码" id="HOperatorID" lay-verify="HOperatorID" value="0" autocomplete="off" class="layui-input">
                                </div>
                                <div class="">
                                    <button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOperator-BT">...</button>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label" style="width:60px;padding-left:0px;">生产资源</label>
                                </div>
                                <div class="layui-col-xs6">
                                    <input type="text" name="生产资源" id="HOperatorName" lay-verify="HOperatorName" autocomplete="off" placeholder="选择生产资源" class="layui-input" style="background-color:#efefef4d" readonly>
                                    <input type="hidden" name="生产资源代码" id="HOperatorID" lay-verify="HOperatorID" value="0" autocomplete="off" class="layui-input">
                                </div>
                                <div class="">
                                    <button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOperator-BT">...</button>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label" style="width:60px;padding-left:0px;">核算工序</label>
                                </div>
                                <div class="layui-col-xs6">
                                    <input type="text" name="核算工序" id="HOperatorName" lay-verify="HOperatorName" autocomplete="off" placeholder="选择核算工序" class="layui-input" style="background-color:#efefef4d" readonly>
                                    <input type="hidden" name="核算工序代码" id="HOperatorID" lay-verify="HOperatorID" value="0" autocomplete="off" class="layui-input">
                                </div>
                                <div class="">
                                    <button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOperator-BT">...</button>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label" style="width:60px;padding-left:0px;">检验员</label>
                                </div>
                                <div class="layui-col-xs6">
                                    <input type="text" name="检验员" id="HOperatorName" lay-verify="HOperatorName" autocomplete="off" placeholder="选择检验员" class="layui-input" style="background-color:#efefef4d" readonly>
                                    <input type="hidden" name="检验员代码" id="HOperatorID" lay-verify="HOperatorID" value="0" autocomplete="off" class="layui-input">
                                </div>
                                <div class="">
                                    <button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOperator-BT">...</button>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label" style="width:60px;padding-left:0px;">工时</label>
                                </div>
                                <div class="layui-col-xs6">
                                    <input type="text" name="HOperatorName" id="HOperatorName" lay-verify="HOperatorName" autocomplete="off" placeholder="选择工时" class="layui-input" style="background-color:#efefef4d" readonly>
                                    <input type="hidden" name="HOperatorID" id="HOperatorID" lay-verify="HOperatorID" value="0" autocomplete="off" class="layui-input">
                                </div>
                                <div class="">
                                    <button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOperator-BT">...</button>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label" style="width:60px;padding-left:0px;">设备清单</label>
                                </div>
                                <div class="layui-col-xs6">
                                    <input type="text" name="HOperatorName" id="HOperatorName" lay-verify="HOperatorName" autocomplete="off" placeholder="选择设备清单" class="layui-input" style="background-color:#efefef4d" readonly>
                                    <input type="hidden" name="HOperatorID" id="HOperatorID" lay-verify="HOperatorID" value="0" autocomplete="off" class="layui-input">
                                </div>
                                <div class="">
                                    <button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOperator-BT">...</button>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label" style="width:60px;padding-left:0px;">模穴号</label>
                                </div>
                                <div class="layui-col-xs6">
                                    <input type="text" name="HOperatorName" id="HOperatorName" lay-verify="HOperatorName" autocomplete="off" placeholder="选择模穴号" class="layui-input" style="background-color:#efefef4d" readonly>
                                    <input type="hidden" name="HOperatorID" id="HOperatorID" lay-verify="HOperatorID" value="0" autocomplete="off" class="layui-input">
                                </div>
                                <div class="">
                                    <button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOperator-BT">...</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--待出站工单&今日出站-->
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <div class="layui-tab">
                                <ul class="layui-tab-title" lay-filter="tab-all">
                                    <li data-status="" class="layui-this">待出站工单</li>
                                    <li data-status="2">今日出站</li>
                                </ul>
                                <div class="layui-tab-content">
                                    <div class="layui-tab-item layui-show">
                                        <div class="layui-row">
                                            <div class="layui-col-xs12">
                                                <table class="layui-hide" id="djs-table" lay-filter="djs-table"></table>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-tab-item">
                                        <div class="layui-row">
                                            <div class="layui-col-xs12">
                                                <table class="layui-hide" id="jr-table" lay-filter="jr-table"></table>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <table style="width:80%;">
                            <tbody>
                                <tr>
                                    <th>条形码</th>
                                    <td class="t1_input">
                                        <input type="text" name="HBarCode" class="layui-input" id="HBarCode" placeholder="请输入条形码" style="border-radius: 50px;">
                                    </td>
                                </tr>
                                <tr>
                                    <th>流转卡号</th>
                                    <td class="t1_input">
                                        <input type="text" name="HProcExchBillNo" class="layui-input" id="HProcExchBillNo" placeholder="流转卡号" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>流水号</th>
                                    <td class="t1_input">
                                        <input type="text" name="HProcNo" class="layui-input" id="HProcNo" placeholder="请输入流水号" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>工序代码</th>
                                    <td class="t1_input">
                                        <input type="text" name="HProcID" class="layui-input" id="HProcID" placeholder="请输入工序代码" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>工序名称</th>
                                    <td class="t1_input">
                                        <input type="text" name="HProc" class="layui-input" id="HProc" placeholder="请输入工序名称" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>创建人</th>
                                    <td class="t1_input">
                                        <input type="text" class="layui-input" id="HEmp" placeholder="请输入创建人" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="HEmpID" id="HEmpID" value="0" autocomplete="off" class="layui-input">
                                    </td>
                                </tr>
                                <tr>
                                    <th>合格数量</th>
                                    <td class="t1_input">
                                        <input type="text" name="HQty" class="layui-input" id="HQty" placeholder="请输入合格数量">
                                    </td>
                                </tr>
                                <tr>
                                    <th>工时</th>
                                    <td class="t1_input">
                                        <input type="text" name="HWorkTimes" class="layui-input" id="HWorkTimes" placeholder="请输入工时">
                                    </td>
                                </tr>
                                <tr>
                                    <th>报废数量</th>
                                    <td class="t1_input">
                                        <input type="text" name="HWasterQty" class="layui-input" id="HWasterQty" placeholder="请输入报废数量">
                                    </td>
                                </tr>
                                <tr>
                                    <th>生产资源</th>
                                    <td class="bz_td">
                                        <input type="text" name="HSource" class="layui-input" id="HSource" placeholder="选择生产资源" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="HSourceID" id="HSourceID" value="0" autocomplete="off" class="layui-input">
                                        <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="ProductionResources-BT">...</button>
                                    </td>
                                </tr>
                                <tr>
                                    <th>生产班组</th>
                                    <td class="bz_td">
                                        <input type="text" name="HGroup" class="layui-input" id="HGroup" placeholder="选择生产班组" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="HGroupID" id="HGroupID" value="0" autocomplete="off" class="layui-input">
                                        <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="ProductionTeam-BT">...</button>
                                    </td>
                                </tr>
                                <tr>
                                    <th>工作中心</th>
                                    <td class="bz_td">
                                        <input type="text" name="HCenter" class="layui-input" id="HCenter" placeholder="选择工作中心" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="HCenterID" id="HCenterID" value="0" autocomplete="off" class="layui-input">
                                        <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="HWorkingProcedure-BT">...</button>
                                    </td>
                                </tr>
                                <tr>
                                    <th>检验员</th>
                                    <td class="bz_td">
                                        <input type="text" name="HQCCheck" class="layui-input" id="HQCCheck" placeholder="选择检验员" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="HQCCheckID" id="HQCCheckID" value="0" autocomplete="off" class="layui-input">
                                        <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="HSecManagerID-BT">...</button>
                                    </td>
                                </tr>
                                <tr>
                                    <th>出站单号</th>
                                    <td class="t1_input">
                                        <input type="text" name="HBillNo" class="layui-input" id="HBillNo" placeholder="请输入出站单号" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="HInterID" class="layui-input" id="HInterID">
                                    </td>
                                </tr>
                                <tr>
                                    <th>日期</th>
                                    <td class="t1_input">
                                        <input type="date" name="HStationOutTime" class="layui-input" id="HStationOutTime" placeholder="请选择日期">
                                    </td>
                                </tr>
                                <tr>
                                    <th>生产订单</th>
                                    <td class="t1_input">
                                        <input type="text" name="HICMOBillNo" class="layui-input" id="HICMOBillNo" placeholder="请输入生产订单" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>产品代码</th>
                                    <td class="t1_input">
                                        <input type="text" name="HMaterID" class="layui-input" id="HMaterID" placeholder="请输入产品代码" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>产品名称</th>
                                    <td class="t1_input">
                                        <input type="text" name="HMaterName" class="layui-input" id="HMaterName" placeholder="请输入产品名称" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>规格型号</th>
                                    <td class="t1_input">
                                        <input type="text" name="HMaterModel" class="layui-input" id="HMaterModel" placeholder="请输入规格型号" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>订单跟踪号</th>
                                    <td class="t1_input">
                                        <input type="text" name="HOrderProcNO" class="layui-input" id="HOrderProcNO" placeholder="请输入订单跟踪号" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>生产订单数量</th>
                                    <td class="t1_input">
                                        <input type="text" name="HICMOQty" class="layui-input" id="HICMOQty" placeholder="请输入生产订单数量" style="background-color:#efefef4d;" readonly>
                                        <!--隐藏字段-->
                                        <input type="hidden" name="HICMOInterID" class="layui-input" id="HICMOInterID"><!--任务单号ID取hicmointerid-->
                                        <input type="hidden" name="HDeptID" class="layui-input" id="HDeptID"><!--生产车间id-->
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </form>
            </div>
        </div>
        </div>
    </div>
    <script src="../../layuiadmin/layui/layui.js"></script>
    <script src="../../layuiadmin/Scripts/json2.js" type="text/javascript"></script>
    <script src="../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="../../layuiadmin/Scripts/webConfig.js"></script>
    <script type="text/html" id="wl-BT">
        <a class="layui-btn layui-btn-xs HEdit" lay-event="DeleteOne">删除</a>
    </script>
    <script src="../../layuiadmin/zgqCustom/zgqCustom.js"></script>
    <script>
        function getUrlVars() {
@@ -475,158 +225,128 @@
            index: 'lib/index' //主入口模块
        }).use(['index', 'form', 'laydate', 'table', 'element'], function () {
            var $ = layui.$
            , admin = layui.admin
            , element = layui.element
            , layer = layui.layer
            , laydate = layui.laydate
            , table = layui.table
            , form = layui.form;
                , admin = layui.admin
                , element = layui.element
                , layer = layui.layer
                , table = layui.table
                , laydate = layui.laydate
                , form = layui.form;
            //获取当前时间处理
            var data = new Date();
            var year = data.getFullYear();  //获取年
            var month = data.getMonth() + 1;    //获取月
            var day = data.getDate(); //获取日
            var time = year + "-" + month + "-" + day;
            $("#HStationOutTime").val(Format(new Date(), "yyyy-MM-dd"));
            $("#HEmp").val(sessionStorage["HUserName"]);
            $("#HEmpID").val(sessionStorage["Czybm"]);
            //页面初始化赋值
            //获取单据号
            $.ajax({
                url: GetWEBURL() + "/Web/GetMAXNum",
                url: GetWEBURL() + "/api/newBill/getNewInterBillNo",
                type: "GET",
                data: { "HBillType": '3791' },
                //data: { "HBillType": '3790' },
                success: function (d) {
                    $("#HInterID").val(d.data[0].HInterID);
                    $("#HBillNo2").val(d.data[0].HBillNo);
                    $("#HBillNo").val(d.data.HBillNo);//进站单号
                    $("#HInterID").val(d.data.HInterID);//进站单号ID
                }, error: function () {
                    layer.alert("获取单据号失败!", { icon: 5 });
                }
            });
            $("#HDateNow").val(time);//加载当前时间
            $("#HFbarcode").focus();
            $("#HFbarcode").css("box-shadow", "0 0 0 1px #00ff00");
            $("#HBarCode").focus();
            $("#HBarCode").css("box-shadow", "0 0 0 1px #00ff00");
            $("#Serial_number").attr("readonly", "readonly");//流水号只读
            $("#Serial_number").css("background-color", "#efefef4d");
            $("#QualifiedQuantity").attr("readonly", "readonly");//合格数量只读
            $("#QualifiedQuantity").css("background-color", "#efefef4d");
            $("#ScrapQuantity").attr("readonly", "readonly");//报废数量只读
            $("#ScrapQuantity").css("background-color", "#efefef4d");
            $("#Entrants_number").attr("readonly", "readonly");//进站数量只读
            $("#Entrants_number").css("background-color", "#efefef4d");
            //扫条形码方法
            $('#HFbarcode').on('keydown', function (event) {   //扫条形码
                var HFbarcode = $('#HFbarcode').val();
            $('#HBarCode').on('keydown', function (event) {   //扫条形码
                var HBarCode = $('#HBarCode').val();//条形码(流转卡号)(数据库中为单据号)
                if (event.keyCode == 13) {
                    //判断文本框是否有数据    new
                    if (HFbarcode == "") {
                    if (HBarCode == "") {
                        layer.alert("条形码为空!", { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                        return;
                    }
                    //
                    $.ajax({
                        url: GetWEBURL() + "/LEMS/TxtHBarCode_KeyDown",
                        url: GetWEBURL() + "api/newBill/getHbarCodeDetail",
                        type: "GET",
                        data: {
                            "sBillBarCode": HFbarcode
                            "sBillBarCode": HBarCode
                        },
                        success: function (result) {
                            var data = result.data;
                            if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            if (result.code == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                var data = result.data.h_v_Sc_ProcessExchangeBillList[0];
                                form.val("component-form-group", { //formTest å³ class="layui-form" æ‰€åœ¨å…ƒç´ å±žæ€§ lay-filter="" å¯¹åº”的值
                                    "订单跟踪号": data[0].订单跟踪号
                                    , "产品代码": data[0].产品代码
                                    , "产品名称": data[0].产品
                                    , "规格型号": data[0].规格型号
                                    , "流转卡数量": data[0].流转卡数量
                                    , "制单人": data[0].制单人
                                    , "制单日期": data[0].制单日期
                                    , "修改人": data[0].修改人
                                    , "修改日期": data[0].修改日期
                                    , "审核人": data[0].审核人
                                    , "审核日期": data[0].审核日期
                                    , "生产订单号": data[0].源单单号
                                    , "生产订单数量": data[0].生产数量
                                    , "流转卡号": $("#HFbarcode").val()
                                    "HProcExchBillNo": $("#HBarCode").val()
                                    , "HProcID": data.HProcID
                                    , "HProc": data.工序
                                    , "HCenter": data.工作中心
                                    , "HCenterID": data.工作中心代码
                                    , "HICMOInterID": data.hicmointerid
                                    , "HICMOBillNo": data.任务单号
                                    , "HDeptID": data.HDeptID
                                    , "HQty": data.计划数量
                                    , "HMaterID": data.产品代码
                                    , "HMaterName": data.产品
                                    , "HMaterModel": data.规格型号
                                    , "HICMOQty": data.生产数量
                                    , "HOrderProcNO": data.订单跟踪号
                                });
                                $("#HFbarcode").attr("readonly", "readonly");//条形码只读
                                $("#HFbarcode").css("background-color", "#efefef4d");
                                $("#HFbarcode").css("box-shadow", "none");
                                $("#Serial_number").removeAttr("readonly");//移除流水号只读
                                $("#Serial_number").css("background-color", "white");
                                $("#Serial_number").focus();
                                $("#Serial_number").css("box-shadow", "0 0 0 1px #00ff00");
                                //$("#HBarCode").attr("readonly", "readonly");//条形码只读
                                //$("#HBarCode").css("background-color", "#efefef4d");
                                $("#HBarCode").css("box-shadow", "none");
                                $("#HProcNo").removeAttr("readonly");//移除流水号只读
                                $("#HProcNo").css("background-color", "white");
                                $("#HProcNo").focus();
                                $("#HProcNo").css("box-shadow", "0 0 0 1px #00ff00");
                            } else {
                                // $("#verifycode").click();
                                //layer.msg(result.Message, { icon: 5 });
                                layer.alert(result.Message, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                                layer.alert(result.msg, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                            }
                        }, error: function () {
                            layer.alert("扫条形码方法发生错误!", { icon: 5 });
                        }
                    });
                    // layer.msg($('#HFbarcode').val(), { icon: 1 });
                }
            });
            //流水号回车方法
            $('#Serial_number').on('keydown', function (event) {   //扫条形码
                var sProcNo = $('#Serial_number').val();
                var sBillNo = $('#HBillNo').val();
            $('#HProcNo').on('keydown', function (event) {   //扫条形码
                var HProcNo = $('#HProcNo').val();
                var HBarCode = $('#HBarCode').val();
                if (event.keyCode == 13) {
                    if (sProcNo == "" || sBillNo == "") {
                    if (HProcNo == "" || HBarCode == "") {
                        layer.alert("流水号或流转卡号为空!", { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                        return;
                    }
                    $.ajax({
                        url: GetWEBURL() + "/LEMS/TxtHProcNo_KeyDown",
                        url: GetWEBURL() + "/api/newBill/getProcDetail",
                        type: "GET",
                        data: {
                            "sProcNo": sProcNo
                            , "sBillNo": sBillNo
                            "sBillNo": HBarCode
                            , "sProcNo": HProcNo
                        },
                        success: function (result) {
                            var data = result.data;
                            if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            var data = result.data.h_v_Sc_ProcessExchangeBillList[0];
                            if (result.code == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                form.val("component-form-group", { //formTest å³ class="layui-form" æ‰€åœ¨å…ƒç´ å±žæ€§ lay-filter="" å¯¹åº”的值
                                    "订单跟踪号": data[0].订单跟踪号
                                    , "产品代码": data[0].产品代码
                                    , "产品名称": data[0].产品
                                    , "规格型号": data[0].规格型号
                                    , "流转卡数量": data[0].流转卡数量
                                    , "工作中心": data[0].工作中心
                                    , "工作中心代码": data[0].工作中心代码
                                    , "当前工序": data[0].工序
                                    , "当前工序代码": data[0].工序代码
                                    , "生产车间": data[0].生产车间
                                    , "生产车间代码": data[0].生产车间代码
                                    , "操作员": data[0].操作工
                                    , "操作员代码": data[0].操作工代码
                                    , "生产班组": data[0].班组
                                    , "生产班组代码": data[0].班组代码
                                    , "生产资源": data[0].生产资源
                                    , "生产资源代码": data[0].生产资源代码
                                    , "制单人": data[0].制单人
                                    , "制单日期": data[0].制单日期
                                    , "修改人": data[0].修改人
                                    , "修改日期": data[0].修改日期
                                    , "审核人": data[0].审核人
                                    , "审核日期": data[0].审核日期
                                    , "生产订单号": data[0].源单单号
                                    , "生产订单数量": data[0].生产数量
                                    , "流转卡号": $("#HFbarcode").val()
                                    "HProcID": data.HProcID
                                    , "HProc": data.工序
                                    , "HCenter": data.工作中心
                                    , "HCenterID": data.工作中心代码
                                    , "HICMOInterID": data.hicmointerid
                                    , "HICMOBillNo": data.任务单号
                                    , "HDeptID": data.HDeptID
                                    , "HQty": data.计划数量
                                    , "HMaterID": data.产品代码
                                    , "HMaterName": data.产品
                                    , "HMaterModel": data.规格型号
                                    , "HICMOQty": data.生产数量
                                });
                                $("#Serial_number").attr("readonly", "readonly");//流水号只读
                                $("#Serial_number").css("background-color", "#efefef4d");
                                $("#Serial_number").css("box-shadow", "none");
                                $("#QualifiedQuantity").removeAttr("readonly");//移除合格数量只读
                                $("#QualifiedQuantity").css("background-color", "white");
                                $("#QualifiedQuantity").focus();
                                $("#QualifiedQuantity").css("box-shadow", "0 0 0 1px #00ff00");
                                $("#HProcNo").css("box-shadow", "none");
                                checkPopup();
                            } else {
                                // $("#verifycode").click();
                                //layer.msg(result.Message, { icon: 5 });
                                layer.alert(result.Message, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                            }
                        }, error: function () {
@@ -637,41 +357,88 @@
            });
            //合格数量回车方法
            $('#QualifiedQuantity').on('keydown', function (event) {
            $('#HQty').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    $("#QualifiedQuantity").attr("readonly", "readonly");//合格数量只读
                    $("#QualifiedQuantity").css("background-color", "#efefef4d");
                    $("#QualifiedQuantity").css("box-shadow", "none");
                    $("#ScrapQuantity").removeAttr("readonly");//移除报废数量只读
                    $("#ScrapQuantity").focus();
                    $("#ScrapQuantity").css("box-shadow", "0 0 0 1px #00ff00");
                    $("#HQty").css("box-shadow", "none");
                    checkPopup();
                }
            });
            //工时回车方法
            $('#HWorkTimes').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    $("#HWorkTimes").css("box-shadow", "none");
                    checkPopup();
                }
            });
            //报废数量回车方法
            $('#ScrapQuantity').on('keydown', function (event) {
            $('#HWasterQty').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    $("#ScrapQuantity").attr("readonly", "readonly");//报废数量只读
                    $("#ScrapQuantity").css("background-color", "#efefef4d");
                    $("#ScrapQuantity").css("box-shadow", "none");
                    if ($("#Operator").val()) {
                        $("#Operator").css("box-shadow", "none");
                    } else {
                        $("#Operator").css("box-shadow", "1px 1px 1px 2px #00ff00");
                    }
                    $("#HWasterQty").css("box-shadow", "none");
                    checkPopup();
                }
            });
            //选择操作员弹窗
            form.on('submit(Operator-BT)', function () {//选择仓位
            //选择生产班组弹窗
            form.on('submit(ProductionTeam-BT)', function () {//选择生产班组
                layer.open({
                    type: 2
                    , area: ['60%', '60%']
                    , title: '本站工序'
                    , 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(ProductionResources-BT)', function () {//生产资源
                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(HWorkingProcedure-BT)', function () {//选择工作中心
                layer.open({
                    type: 2
                    , area: ['80%', '80%']
                    , title: '工作中心'
                    , shade: 0.6 //遮罩透明度
                    //, maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../Baseset/基础资料/Gy_WorkCenterList.html', 'yes']
                    , resize: false
                    , cancel: function (index, layero) {
                    }
                })
            });
            //选择检验员
            form.on('submit(HSecManagerID-BT)', function (data) {//选择检验员
                var sMainStr = JSON.stringify(data.field);
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
                    , title: '检验员列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../Baseset/基础资料/Gy_EmployeeList.html?Type=HWorker', 'yes']
                    , content: ['../Baseset/基础资料/Gy_EmployeeList.html?Type=HSecManager', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
@@ -679,103 +446,136 @@
                })
            });
            //选择生产组织弹窗
            form.on('submit(HOrganization-BT)', function () {//选择生产组织
                layer.open({
                    type: 2
                    , area: ['60%', '60%']
                    , title: '生产组织'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../Baseset/基础资料/Gy_OrgList.html', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                })
            //保存按钮
            form.on('submit(Saver)', function (data) {//提交
                //debugger;
                var sMainStr = data.field;
                console.log(sMainStr);
                $.ajax(
                    {
                        type: "POST",
                        url: GetWEBURL() + "/api/newBill/setStationOutBill", //方法所在页面和方法名
                        //url:"http://localhost:12761/api/newBill/setStationOutBill",
                        async: true,
                        data: sMainStr,
                        dataType: "json",
                        success: function (result) {
                            console.log(result);
                            if (result.code == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                $("#sHWHID").val("");
                                layer.alert(result.msg + "单号为:" + $("#HBillNo").val(), { icon: 1 }, function () {
                                    window.location.reload();//刷新页面
                                });
                            }
                            else {
                                layer.alert(result.msg, { icon: 5 });
                            }
                            layer.closeAll("loading");
                            layui.form.render();
                        },
                        error: function (err) {
                            layer.alert("接口请求失败:" + err, { icon: 5 });
                        }
                    });
            });
            //退出按钮
            form.on('submit(Close)', function (data) {//退出
                layer.confirm('您确定要关闭本页吗?', { icon: 3, title: '提示' }, function (index) {
                    parent.layui.admin.events.closeThisTabs();
                    parent.location.href = "../../views/index.html";
                });
            });
            //待接收工单页签
            table.render({
                elem: '#djs-table'
                , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                , cols: [[
                    { field: 'HInterID', title: '序号' }
                    , { field: 'HBillNo', title: '状态', sort: true }
                    , { field: 'HMaker', title: '生产订单' }
                    , { field: 'HMakeDate', title: '计划日期' }
                    , { field: 'HQty', title: '物料编码' }
                    , { field: 'HSourceBillNo', title: '物料名称' }
                    , { field: 'HRedBlueFlag', title: '规格型号' }
                    , { field: 'HSourceBillType', title: '计划数量' }
                    , { field: 'HSourceBillType', title: '已汇报数量' }
                    , { field: 'HSourceBillType', title: '已入库数量' }
                ]]
                , height: 300
                , done: function () {
                    layer.closeAll("loading");
                }
            //新增按钮
            form.on('submit(HAddBT)', function (data) {//退出
                layer.confirm('您确定要新增吗?', { icon: 3, title: '提示' }, function (index) {
                    window.location.reload();
                });
            });
            //今日进站页签
            table.render({
                elem: '#jr-table'
                , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                , cellMinWidth: 100
                , cols: [[
                    { field: 'HInterID', title: '序号',width:80 }
                    , { field: 'HBillNo', title: '汇报日期', width: 110, sort: true }
                    , { field: 'HMaker', title: '生产汇报单号' }
                    , { field: 'HMakeDate', title: '生产订单号' }
                    , { field: 'HQty', title: '物料编码' }
                    , { field: 'HSourceBillNo', title: '物料名称' }
                    , { field: 'HRedBlueFlag', title: '规格型号' }
                    , { field: 'HSourceBillType', title: '计划数量' }
                    , { field: 'HSourceBillType', title: '汇报数量' }
                    , { field: 'HSourceBillType', title: '制单人' }
                    , { field: 'HSourceBillType', title: '制单日期' }
                ]]
                , height: 300
                , done: function () {
                    layer.closeAll("loading");
                }
            });
            //以上为layui模块
        });
        //原生js初始化
        $(function () {
        });
        function GetOrgValue(obj)  //返回生产组织
        {
            $("#HOrganization").val(obj[0].HName);
            $("#HOrganizationID").val(obj[0].HNumber);
        //校验是否选择弹窗事件
        function checkPopup() {
            if (!$("#HQty").val()) {
                $("#HQty").css("box-shadow", "0 0 0 1px #00ff00");
                $("#HQty").focus();
            }
            else if (!$("#HWorkTimes").val()) {
                $("#HWorkTimes").css("box-shadow", "0 0 0 1px #00ff00");
                $("#HWorkTimes").focus();
            }
            else if (!$("#HWasterQty").val()) {
                $("#HWasterQty").css("box-shadow", "0 0 0 1px #00ff00");
                $("#HWasterQty").focus();
            }
            else if (!$("#HSource").val()) {
                $("#HSource").css("box-shadow", "0 0 1px 2px #00ff00");
                $("#HSource").focus();
            }
            else if (!$("#HGroup").val()) {
                $("#HGroup").css("box-shadow", "0 0 1px 2px #00ff00");
                $("#HGroup").focus();
            }
            else if (!$("#HCenter").val()) {
                $("#HCenter").css("box-shadow", "0 0 1px 2px #00ff00");
                $("#HCenter").focus();
            }
        }
        function GetHWorkerValue(obj)  //返回操作员
        {
            $("#Operator").val(obj[0].HName);
            $("#OperatorID").val(obj[0].HItemID);
        //返回生产班组
        function GetProductionTeamValue(obj) {  //返回生产班组
            if (obj.length == 0) {
                layer.msg("请先选择班组", { index: 0 });
            } else {
                $("#HGroup").val(obj[0].班组);
                $("#HGroupID").val(obj[0].HItemID);
                $("#HGroup").css("box-shadow", "none");
                checkPopup();
                layer.closeAll();
            }
        }
        //function GetHDeptNameValue(obj)  //返回部门
        //{
        //    $("#HDeptName").val(obj[0].HName);
        //    $("#HDeptID").val(obj[0].HItemID);
        //}
        //返回生产资源
        function GetProductionResourcesValue(obj) {  //返回生产资源
            if ($("#HSource").val()) {
                $("#HSource").css("box-shadow", "none");
            }
            $("#HSource").val(obj[0].生产资源);
            $("#HSourceID").val(obj[0].HItemID);
            $("#HSource").css("box-shadow", "none");
            checkPopup();
        }
        //返回工作中心
        function GetWorkCenterValue(obj) {  //返回工作中心
            if (obj.length == 0) {
                layer.msg("请先选择班组", { index: 0 });
            } else {
                $("#HCenter").val(obj[0].工作中心);
                $("#HCenterID").val(obj[0].HItemID);
                $("#HCenter").css("box-shadow", "none");
                checkPopup();
                layer.closeAll();
            }
        }
        //返回检验员
        function GetHSecManagerValue(obj) {  //返回检验员
            $("#HQCCheck").val(obj[0].HName);
            $("#HQCCheckID").val(obj[0].HItemID);
        }
    </script>