WYB
2021-04-15 6da44ebfe2539d054e06691aba47c397c9ce5061
WebTM/views/Éú²ú¹¤Ðò¹ÜÀí/Ôö¼Ó²»Á¼ÆÀÉóµ¥/QC_Add_NoPassProdCheckBill.html
@@ -59,13 +59,14 @@
                                                <div class="layui-col-xs2">
                                                    <label class="layui-form-label">产品:</label>
                                                    <div class="layui-input-inline">
                                                         <input type="text" name="" id="" lay-verify="" readonly="readonly"  autocomplete="off" class="layui-input">
                                                         <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="" id="" lay-verify="" readonly="readonly"  autocomplete="off" class="layui-input">
                                                         <input type="text" name="HMaterNumber" id="HMaterNumber" lay-verify="HMaterNumber" readonly="readonly"  autocomplete="off" class="layui-input">
                                                    </div>
                                                </div>
                                            </div>
@@ -74,36 +75,36 @@
                                        <div class="layui-form-item">
                                            <div class="layui-row">
                                                <div class="layui-col-xs2">
                                                    <label class="layui-form-label">流转卡号:</label>
                                                    <label class="layui-form-label">工序计划单号:</label>
                                                    <div class="layui-input-inline">
                                                        <input type="text" name="" id="" lay-verify="" autocomplete="off" class="layui-input">
                                                        <input type="text" name="HMainSourceBillNo" id="HMainSourceBillNo" lay-verify="" autocomplete="off" class="layui-input">
                                                       
                                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HDeptID-BT">
                                                            <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="" name="" type="hidden" />
                                                   <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="" lay-verify="" id="" readonly="readonly" autocomplete="off">
                                                        <input id="" name="" type="hidden" />
                                                        <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>
                                                    <label class="layui-form-label"> è®¡åˆ’数量:</label>
                                                    <div class="layui-input-inline">
                                                        <input class="layui-input" name="" lay-verify="" id="" readonly="readonly" autocomplete="off">
                                                        <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="" lay-verify="" id="" readonly="readonly"  autocomplete="off">
                                                        <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>-->
@@ -112,7 +113,7 @@
                                                <div class="layui-col-xs2">
                                                    <label class="layui-form-label"> ä¸è‰¯æ•°é‡ï¼š</label>
                                                    <div class="layui-input-inline">
                                                        <input class="layui-input" name="" lay-verify="" id=""  autocomplete="off">
                                                        <input class="layui-input" name="HBadQty"  id="HBadQty"  autocomplete="off">
                                                        
                                                    </div>
                                                </div>
@@ -127,7 +128,7 @@
                                                <div class="layui-colorpicker-xs">
                                                    <label class="layui-form-label"> è¯„审意见:</label>
                                                    <div class="layui-input-block">
                                                        <input class="layui-input" name="" id="" autocomplete="off">
                                                        <input class="layui-input" name="HNote" id="HNote" autocomplete="off">
                                                    </div>
                                                </div>
                                            </div>
@@ -136,30 +137,249 @@
                                        </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>
                                    <th>不良确认人</th>
                                    <th>判定结果</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>贤心</td>
                                    <td>2016-11-29</td>
                                    <td>人生就像是一场修行</td>
                                    <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>许闲心</td>
                                    <td>2016-11-28</td>
                                    <td>于千万人之中遇见你所遇见的人,于千万年之中,时间的无涯的荒野里…</td>
                                    <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>
@@ -170,7 +390,6 @@
    <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
    <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
       <script>
        layui.config({
            base: '../../../layuiadmin/' //静态资源所在路径
@@ -241,51 +460,12 @@
                        // console.log(d.data);
                        $("#HInterID").val(d.data[0].HInterID);
                        $("#HBillNo").val(d.data[0].HBillNo);
                        //$("#HBillType").val(d.data[0].HSourceBillType);
                        $("#HSourceBillNo").val(d.data[0].HSourceBillNo);
                        //$("#HWHID").val(d.data[0].HWhID);
                        //$("#HKeeperID").val(d.data[0].HKeeperID);
                        //$("#HSecManagerID").val(d.data[0].HSecManagerID);
                        //$("#HDeptID").val(d.data[0].HDeptID);
                        //$("#HBarCode").val(d.data[0].HBarCode);
                        //$("#HQty").val(d.data[0].HQty);
                    }
                })
            }
            function RoadBillSub(linterid)//加载表体
            {
                table.render({
                    elem: '#wl-table'
                    , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
                    , cellMinWidth: 80
                    , toolbar: '#toolbarDemo'
                    , where: { HBillID: linterid, HBillType: '1202', sWhere: '' }
                    , cols: [[
                            { type: 'radio' }
                            , { field: 'HQty', title: '数量', width: 80 }
                            , { field: 'HQtyMust', title: '应收数量', width: 80 }
                            , { field: 'HMaterNumber', title: '物料代码', width: 100 }
                            , { field: 'HMaterName', title: '物料名称', width: 100 }
                            , { field: 'HMaterModel', title: '规格型号', width: 100 }
                            , { field: 'HSourceInterID', title: '源单主内码', width: 100 }
                            , { field: 'HSourceEntryID', title: '源单子内码', width: 100 }
                            , { field: 'HSourceBillNo', title: '源单单号', width: 100 }
                            , { field: 'HBatchNo', title: '批次', width: 100 }
                            , { field: 'HAuxPropID', title: '辅助属性', width: 100 }
                            , { field: 'HMTONo', title: '计划跟踪号', width: 100 }
                            , { field: 'HMaterID', title: '物料ID', width: 100 }
                    ]]
                    , height: 500
                })
            }
            //动态加载源单类型列表 new
        var date = new Date();
        var day = date.getDate();
@@ -316,34 +496,17 @@
            }
        //进入物料明细页签、条码框 å…‰æ ‡ç„¦ç‚¹   new
        //if (1 == 2)
        //{
        //    element.tabChange('tab-ProductlnBill', '3');
        //    var pFocus = $("#HBarCode");
        //    pFocus.focus();
        //    pFocus.select();
        //}
        //else
        //{
        //    element.tabChange('tab-ProductlnBill', '1');
        //    var pFocus = $("#HSourceBillNo");
        //    pFocus.focus();
        //    pFocus.select();
        //}
        //
        //
        //选择仓库
        form.on('submit(HWHID-BT)', function () {//选择仓库
        //选择不良原因
        form.on('submit(HBadReasonID-BT)', function () {//选择仓库
            layer.open({
                type: 2
                , area: ['100%', '100%']
                , title: '仓库列表'
                , title: '不良原因列表'
                , shade: 0.6 //遮罩透明度
                , maxmin: true //允许全屏最小化
                , anim: 0 //0-6的动画形式,-1不开启
                , content: ['../../../views/Baseset/基础资料/Gy_WarehouseList.html?Type=HWHID', 'yes']
                , content: ['../../../views/Baseset/基础资料/Gy_BadReasonList.html', 'yes']
                , resize: false
                , cancel: function () {
                    //$(".layui-btn").removeClass("layui-btn-disabled");
@@ -351,16 +514,16 @@
            })
        });
        //选择仓位
        form.on('submit(HSpID-BT)', function () {//选择仓位
        //选择工序计划单
        form.on('submit(HPlanID-BT)', function () {//选择工序计划单
            layer.open({
                type: 2
                , area: ['100%', '100%']
                , title: '仓位列表'
                , area: ['80%', '80%']
                , title: '工序计划单列表'
                , shade: 0.6 //遮罩透明度
                , maxmin: true //允许全屏最小化
                , anim: 0 //0-6的动画形式,-1不开启
                , content: ['../../../views/Baseset/基础资料/Gy_StockPlaceList.html?HWhID=' + sessionStorage["HWHID"] + '&Type=HSpID', 'yes']
                , content: ['../../../views/Baseset/基础资料/Sc_ProcessPlanViewList.html', 'yes']
                , resize: false
                , cancel: function () {
                    //$(".layui-btn").removeClass("layui-btn-disabled");
@@ -368,12 +531,12 @@
            })
        });
        //选择保管
        form.on('submit(HKeeperID-BT)', function () {//选择保管
        //选择责任人
        form.on('submit(HEmployeeID-BT)', function () {//选择责任人
            layer.open({
                type: 2
                , area: ['100%', '100%']
                , title: '保管列表'
                , area: ['80%', '80%']
                , title: '职员列表'
                , shade: 0.6 //遮罩透明度
                , maxmin: true //允许全屏最小化
                , anim: 0 //0-6的动画形式,-1不开启
@@ -385,17 +548,17 @@
            })
        });
        //选择验收
        form.on('submit(HSecManagerID-BT)', function (data) {//选择验收
        //选择申请工序
        form.on('submit(HSQProcID-BT)', function (data) {//选择申请工序
            var sMainStr = JSON.stringify(data.field);
            layer.open({
                type: 2
                , area: ['100%', '100%']
                , title: '验收列表'
                , area: ['80%', '80%']
                , title: '申请工序列表'
                , shade: 0.6 //遮罩透明度
                , maxmin: true //允许全屏最小化
                , anim: 0 //0-6的动画形式,-1不开启
                , content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HSecManager', 'yes']
                , content: ['../../../views/Baseset/基础资料/Gy_ProcList.html', 'yes']
                , resize: false
                , cancel: function () {
                    //$(".layui-btn").removeClass("layui-btn-disabled");
@@ -403,16 +566,16 @@
            })
        });
        //选择部门
        form.on('submit(HDeptID-BT)', function () {//选择部门
        //选择责任工序
        form.on('submit(HZRProcID-BT)', function () {//选择责任工序
            layer.open({
                type: 2
                , area: ['100%', '100%']
                , title: '部门列表'
                , area: ['80%', '80%']
                , title: '责任工序列表'
                , shade: 0.6 //遮罩透明度
                , maxmin: true //允许全屏最小化
                , anim: 0 //0-6的动画形式,-1不开启
                , content: ['../../../views/Baseset/基础资料/Gy_DepartmentList.html', 'yes']
                , content: ['../../../views/Baseset/基础资料/Gy_ProcList.html?Type=HZR', 'yes']
                , resize: false
                , cancel: function () {
                    //$(".layui-btn").removeClass("layui-btn-disabled");
@@ -446,59 +609,40 @@
            //window.close();//关闭当前页
        })
        //提交
        form.on('submit(Saver)', function (data) {//提交
            //debugger;
            if ($("#HExplanation").val() == "") {
                if ($("#HWHNAME").val() == "宽幅成品仓NEW" || $("#HWHNAME").val() == "样本仓NEW") {
                    $("#HWHNAME").val("");
                    $("#HWHID").val("");
                    layer.msg("请扫MES库位码!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    return;
                }
                else
                {
                    $("#HExplanation").val($("#HWHNAME").val());
                }
            }
            var sMainStr = JSON.stringify(data.field);
            var sSubStr = table.cache['wl-table'];
            //var sSourceType = $("#HBillType").val();
            var sSourceType = "3711";
            if (AllowLoadData(sSubStr) != false)//非空验证
            {
                layer.load(3);
      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: "http://61.130.49.162:9090/WMSAPI///ProductIn/set_SaveProductInBill_Json", //方法所在页面和方法名
                    url: GetWEBURL() + "/ProductIn/set_SaveProductInBill_Json",
                    url: GetWEBURL()+"SaveBadReasonList", //方法所在页面和方法名
                    async: true,
                    data: { "oMain": sMainStr  },
                    data: {"msg": sMainSub},
                    dataType: "json",
                    success: function (data) {
                        if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†
                            layer.confirm("生成产品入库单" + data.Message + $("#HBillNo").val(), {
                                icon: 1, skin: 'layui-layer-lan', title: "温馨提示", closeBtn: 0, btn: ['新增'],
                                btn2: function () {
                                    //parent.layui.admin.events.closeThisTabs();关闭页签
                                    //window.close();//关闭页面,浏览器有效,PDA无效
                                    parent.location.href = "../../../views/index.html"
                                }//关闭
                            }, function () { window.location.reload(); });//新增
                        if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            layer.msg(data.Message, { icon: 1 });
                        }
                        else {
                            layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            f_alert(data.Message);
                            console.log("Reason" + sMainStr + "sub:::" + sSubStr);
                        }
                        layer.closeAll("loading");
                    },
                    error: function (err) {
                        layer.msg("错误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        error: function (err) {
                            f_alert("错误:" + err);
                            console.log("Reason"+sMainStr);
                    }
                });
                return false;
            }
        });
              });
                function f_alert(sMsg) {
                layer.alert(sMsg, { icon: 5 });
            }
        //监听提交
        form.verify({
@@ -527,27 +671,37 @@
         }
        });
    });
    function GetHWHValue(obj)  //返回调入仓库
    function GetHReasonValue(obj)  //返回不良原因
    {
        $("#HWHNAME").val(obj[0].HName);
        $("#HWasterReasonName").val(obj[0].HName);
        //sessionStorage["HWHID"] = obj[0].HItemID;
        $("#HWHID").val(obj[0].HItemID);
        $("#HBadReasonID").val(obj[0].HItemID);
    }
    function GetHSpValue(obj) {  //返回调入仓位
        $("#HStockPlaceName").val(obj[0].HName);
        $("#HStockPlaceID").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) {  //返回保管
        $("#HKeeper").val(obj[0].HName);
        $("#HKeeperID").val(obj[0].HItemID);
    function GetHKeeperValue(obj) {  //返回职员
        $("#HEmpName").val(obj[0].HName);
        //$("#HItemID").val(obj[0].HItemID);
    }
    function GetHSecManagerValue(obj) {  //返回验收
        $("#HSecManager").val(obj[0].HName);
        $("#HSecManagerID").val(obj[0].HItemID);
    function GetHProcValue(obj) {  //返回申请工序
        $("#HSQProcName").val(obj[0].工序);
        $("#HProcID").val(obj[0].HItemID);
    }
    function GetHDeptNameValue(obj) {   //返回部门
        $("#HDeptName").val(obj[0].HName);
        $("#HDeptID").val(obj[0].HItemID);
    function GetHZRValue(obj) {   //返回责任工序
        $("#HZRProcName").val(obj[0].工序);
        //$("#HItemID").val(obj[0].HItemID);
    }
    function AllowLoadData(sSubStr) {  //非空验证
        //if ($("#HSourceBillNo").val() == '') {