zgq
2021-01-21 46b10d520f13e5aa34cc0b02bae3aff58166981a
WebTM/views/¹¤Ðò»ã±¨/MES_StationOutBill_PDA.html
@@ -57,136 +57,140 @@
                                <tr>
                                    <th>条形码</th>
                                    <td class="t1_input">
                                        <input type="text" name="条形码" class="layui-input" id="sBillBarCode" placeholder="请输入条形码" style="border-radius: 50px;">
                                        <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="流转卡号" class="layui-input" id="流转卡号" placeholder="流转卡号" style="background-color:#efefef4d;" readonly>
                                        <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="流水号" class="layui-input" id="sProcNo" placeholder="请输入流水号" style="background-color:#efefef4d;" readonly>
                                        <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="工序代码" class="layui-input" id="工序代码" placeholder="请输入工序代码" style="background-color:#efefef4d;" readonly>
                                        <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="工序名称" class="layui-input" id="工序名称" placeholder="请输入工序名称" style="background-color:#efefef4d;" readonly>
                                        <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" name="创建人" class="layui-input" id="创建人" placeholder="请输入创建人" style="background-color:#efefef4d;" readonly>
                                        <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="合格数量" class="layui-input" id="合格数量" placeholder="请输入合格数量">
                                        <input type="text" name="HQty" class="layui-input" id="HQty" placeholder="请输入合格数量">
                                    </td>
                                </tr>
                                <tr>
                                <tr style="display:none;">
                                    <th>工时</th>
                                    <td class="t1_input">
                                        <input type="text" name="工时" class="layui-input" id="工时" placeholder="请输入工时">
                                        <input type="text" name="HWorkTimes" class="layui-input" id="HWorkTimes" placeholder="请输入工时">
                                    </td>
                                </tr>
                                <tr>
                                <tr style="display:none;">
                                    <th>报废数量</th>
                                    <td class="t1_input">
                                        <input type="text" name="报废数量" class="layui-input" id="报废数量" placeholder="请输入报废数量">
                                        <input type="text" name="HWasterQty" class="layui-input" id="HWasterQty" placeholder="请输入报废数量">
                                    </td>
                                </tr>
                                <tr>
                                <tr style="display:none;">
                                    <th>生产资源</th>
                                    <td class="bz_td">
                                        <input type="text" name="生产班组" class="layui-input" id="ProductionResources" placeholder="选择生产资源" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="生产资源代码" id="ProductionResourcesID" value="0" autocomplete="off" class="layui-input">
                                        <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="生产班组" class="layui-input" id="ProductionTeam" placeholder="选择生产班组" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="生产班组代码" id="ProductionTeamID" value="0" autocomplete="off" class="layui-input">
                                        <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="工作中心" class="layui-input" id="WorkCenter" placeholder="选择工作中心" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="工作中心ID" id="WorkCenterID" value="0" autocomplete="off" class="layui-input">
                                        <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>
                                <tr style="display:none;">
                                    <th>检验员</th>
                                    <td class="bz_td">
                                        <input type="text" name="检验员" class="layui-input" id="Employee" placeholder="选择检验员" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="检验员ID" id="EmployeeID" value="0" autocomplete="off" class="layui-input">
                                        <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="出站单号" class="layui-input" id="HBillNo" placeholder="请输入出站单号" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="出站单号ID" class="layui-input" id="HInterID">
                                        <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="日期" class="layui-input HDateNow" id="HDateNow" placeholder="请选择日期">
                                        <input type="date" name="HStationOutTime" class="layui-input" id="HStationOutTime" placeholder="请选择日期">
                                    </td>
                                </tr>
                                <tr>
                                    <th>生产订单</th>
                                    <td class="t1_input">
                                        <input type="text" name="生产订单" class="layui-input" id="生产订单" placeholder="请输入生产订单" style="background-color:#efefef4d;" readonly>
                                        <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="产品代码" class="layui-input" id="产品代码" placeholder="请输入产品代码" style="background-color:#efefef4d;" readonly>
                                        <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="产品名称" class="layui-input" id="产品名称" placeholder="请输入产品名称" style="background-color:#efefef4d;" readonly>
                                        <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="规格型号" class="layui-input" id="规格型号" placeholder="请输入规格型号" style="background-color:#efefef4d;" readonly>
                                        <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="订单跟踪号" class="layui-input" id="订单跟踪号" placeholder="请输入订单跟踪号" style="background-color:#efefef4d;" readonly>
                                        <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="生产订单数量" class="layui-input" id="生产订单数量" placeholder="请输入生产订单数量" style="background-color:#efefef4d;" readonly>
                                        <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>
@@ -229,15 +233,25 @@
                , form = layui.form;
            //获取当前时间处理
            $("#HDateNow").val(Format(new Date(), "yyyy-MM-dd"));
            $("#创建人").val(sessionStorage["HUserName"]);
            $("#HStationOutTime").val(Format(new Date(), "yyyy-MM-dd"));
            $("#HEmp").val(sessionStorage["HUserName"]);//创建人
            $("#HEmpID").val(sessionStorage["HEmpID"]);
            $("#HProc").val(sessionStorage["HProc"]);//工序
            $("#HProcID").val(sessionStorage["HProcName"]);
            $("#HSource").val(sessionStorage["HSource"]);//生产资源
            $("#HSourceID").val(sessionStorage["HSourceID"]);
            $("#HGroup").val(sessionStorage["HGroup"]);//生产班组
            $("#HGroupID").val(sessionStorage["HGroupID"]);
            $("#HCenter").val(sessionStorage["HWorkCenter"]);//工作中心
            $("#HCenterID").val(sessionStorage["HWorkCenterID"]);
            $("#HProcNo").val(sessionStorage["HProcNo"]);//流水号
            //页面初始化赋值
            //获取单据号
            $.ajax({
                url: GetWEBURL() + "/api/newBill/getNewInterBillNo",
                type: "GET",
                //data: { "HBillType": '3790' },
                data: { "HBillType": '3791' },
                success: function (d) {
                    $("#HBillNo").val(d.data.HBillNo);//进站单号
                    $("#HInterID").val(d.data.HInterID);//进站单号ID
@@ -246,20 +260,16 @@
                }
            });
            $("#sBillBarCode").focus();
            $("#sBillBarCode").css("box-shadow", "0 0 0 1px #00ff00");
            $("#Serial_number").attr("readonly", "readonly");//流水号只读
            $("#Serial_number").css("background-color", "#efefef4d");
            $("#Entrants_number").attr("readonly", "readonly");//进站数量只读
            $("#Entrants_number").css("background-color", "#efefef4d");
            $("#HBarCode").focus();
            $("#HBarCode").css("box-shadow", "0 0 0 1px #00ff00");
            //扫条形码方法
            $('#sBillBarCode').on('keydown', function (event) {   //扫条形码
                var sBillBarCode = $('#sBillBarCode').val();//条形码(流转卡号)(数据库中为单据号)
            $('#HBarCode').on('keydown', function (event) {   //扫条形码
                var HBarCode = $('#HBarCode').val();//条形码(流转卡号)(数据库中为单据号)
                if (event.keyCode == 13) {
                    //判断文本框是否有数据    new
                    if (sBillBarCode == "") {
                    if (HBarCode == "") {
                        layer.alert("条形码为空!", { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                        return;
                    }
@@ -268,30 +278,32 @@
                        url: GetWEBURL() + "api/newBill/getHbarCodeDetail",
                        type: "GET",
                        data: {
                            "sBillBarCode": sBillBarCode
                            "sBillBarCode": HBarCode
                        },
                        success: function (result) {
                            var data = result.data.h_v_Sc_ProcessExchangeBillList[0];
                            if (result.code == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                form.val("component-form-group", { //formTest å³ class="layui-form" æ‰€åœ¨å…ƒç´ å±žæ€§ lay-filter="" å¯¹åº”的值
                                    "流转卡号": $("#sBillBarCode").val()
                                    , "工序代码": data.工序代码
                                    , "工序名称": data.工序
                                    , "合格数量": data.计划数量
                                    , "产品代码": data.产品代码
                                    , "产品名称": data.产品
                                    , "规格型号": data.规格型号
                                    , "生产订单数量": data.生产数量
                                    "HProcExchBillNo": $("#HBarCode").val()
                                    //, "HProcID": data.HProcID
                                    //, "HProc": data.工序
                                    //, "HCenter": data.工作中心
                                    //, "HCenterID": data.工作中心代码
                                    , "HICMOInterID": data.hicmointerid
                                    , "HICMOBillNo": data.任务单号
                                    , "HDeptID": data.HDeptID
                                    , "HQty": data.计划数量
                                    , "HMaterID": data.HMaterID
                                    , "HMaterName": data.产品
                                    , "HMaterModel": data.规格型号
                                    , "HICMOQty": data.生产数量
                                    , "HOrderProcNO": data.订单跟踪号
                                });
                                //$("#sBillBarCode").attr("readonly", "readonly");//条形码只读
                                //$("#sBillBarCode").css("background-color", "#efefef4d");
                                $("#sBillBarCode").css("box-shadow", "none");
                                $("#sProcNo").removeAttr("readonly");//移除流水号只读
                                $("#sProcNo").css("background-color", "white");
                                $("#sProcNo").focus();
                                $("#sProcNo").css("box-shadow", "0 0 0 1px #00ff00");
                                //$("#HBarCode").attr("readonly", "readonly");//条形码只读
                                //$("#HBarCode").css("background-color", "#efefef4d");
                                $("#HBarCode").css("box-shadow", "none");
                            } else {
                                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 });
@@ -301,11 +313,11 @@
            });
            //流水号回车方法
            $('#sProcNo').on('keydown', function (event) {   //扫条形码
                var sProcNo = $('#sProcNo').val();
                var sBillNo = $('#sBillBarCode').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;
                    }
@@ -313,22 +325,28 @@
                        url: GetWEBURL() + "/api/newBill/getProcDetail",
                        type: "GET",
                        data: {
                            "sBillNo": sBillNo
                            , "sProcNo": sProcNo
                            "sBillNo": HBarCode
                            , "sProcNo": HProcNo
                        },
                        success: function (result) {
                            var data = result.data.h_v_Sc_ProcessExchangeBillList[0];
                            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.工序代码
                                    , "工序名称": data.工序
                                    , "合格数量": data.计划数量
                                    , "产品代码": data.产品代码
                                    , "产品名称": data.产品
                                    , "规格型号": data.规格型号
                                    , "生产订单数量": data.生产数量
                                    //"HProcID": data.HProcID
                                    //, "HProc": data.工序
                                    //, "HCenter": data.工作中心
                                    //, "HCenterID": data.工作中心代码
                                     "HICMOInterID": data.hicmointerid
                                    , "HICMOBillNo": data.任务单号
                                    , "HDeptID": data.HDeptID
                                    , "HQty": data.计划数量
                                    , "HMaterID": data.HMaterID
                                    , "HMaterName": data.产品
                                    , "HMaterModel": data.规格型号
                                    , "HICMOQty": data.生产数量
                                });
                                $("#sProcNo").css("box-shadow", "none");
                                $("#HProcNo").css("box-shadow", "none");
                                checkPopup();
                            } else {
                                layer.alert(result.Message, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
@@ -340,15 +358,28 @@
                }
            });
            //合格数量回车方法
            $('#HQty').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    $("#HQty").css("box-shadow", "none");
                    checkPopup();
                }
            });
            //工时回车方法
            $('#工时').on('keydown', function (event) {
                checkPopup();
            $('#HWorkTimes').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    $("#HWorkTimes").css("box-shadow", "none");
                    checkPopup();
                }
            });
            //报废数量回车方法
            $('#报废数量').on('keydown', function (event) {
                $('#报废数量').blur();
                checkPopup();
            $('#HWasterQty').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    $("#HWasterQty").css("box-shadow", "none");
                    checkPopup();
                }
            });
            //选择生产班组弹窗
@@ -401,6 +432,7 @@
            //选择检验员
            form.on('submit(HSecManagerID-BT)', function (data) {//选择检验员
                var sMainStr = JSON.stringify(data.field);
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
@@ -419,16 +451,17 @@
            //保存按钮
            form.on('submit(Saver)', function (data) {//提交
                //debugger;
                var sMainStr = JSON.stringify(data.field);
                console.log(sMainStr);
                var sMainStr = data.field;
                $.ajax(
                    {
                        type: "POST",
                        url: GetWEBURL() + "/test", //方法所在页面和方法名
                        url: GetWEBURL() + "/api/newBill/setStationOutBill", //方法所在页面和方法名
                        //url:"http://localhost:12761/api/newBill/setStationOutBill",
                        async: true,
                        data: { "oMain": sMainStr },
                        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 () {
@@ -450,16 +483,16 @@
            //退出按钮
            form.on('submit(Close)', function (data) {//退出
                layer.confirm('您确定要关闭本页吗?', { icon: 3, title: '提示' }, function (index) {
                    parent.layui.admin.events.closeThisTabs();
                    parent.location.href = "../../views/index.html";
                });
            });
            //新增按钮
            //form.on('submit(HAddBT)', function (data) {//退出
            //    layer.confirm('您确定要新增吗?', { icon: 3, title: '提示' }, function (index) {
            //        window.location.reload();
            //    });
            //});
            form.on('submit(HAddBT)', function (data) {//退出
                layer.confirm('您确定要新增吗?', { icon: 3, title: '提示' }, function (index) {
                    window.location.reload();
                });
            });
@@ -474,33 +507,31 @@
        });
        //提示是否选择弹窗事件及是否输入工时和合格数量
        //校验是否选择弹窗事件
        function checkPopup() {
            $("#工时").css("box-shadow", "none");
            $("#报废数量").css("box-shadow", "none");
            $("#ProductionResources").css("box-shadow", "none");
            $("#ProductionTeam").css("box-shadow", "none");
            $("#WorkCenter").css("box-shadow", "none");
            $("#Employee").css("box-shadow", "none");
            if (!$("#工时").val()) {
                $("#工时").focus();
                $("#工时").css("box-shadow", "0 0 1px 2px #00ff00");
            if (!$("#HQty").val()) {
                $("#HQty").css("box-shadow", "0 0 0 1px #00ff00");
                $("#HQty").focus();
            }
            else if (!$("#报废数量").val()) {
                $("#报废数量").focus();
                $("#报废数量").css("box-shadow", "0 0 1px 2px #00ff00");
            //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 (!$("#ProductionResources").val()) {
                $("#ProductionResources").css("box-shadow", "0 0 1px 2px #00ff00");
            }
            else if (!$("#ProductionTeam").val()) {
                $("#ProductionTeam").css("box-shadow", "0 0 1px 2px #00ff00");
            }
            else if (!$("#WorkCenter").val()) {
                $("#WorkCenter").css("box-shadow", "0 0 1px 2px #00ff00");
            }
            else if (!$("#Employee").val()) {
                $("#Employee").css("box-shadow", "0 0 1px 2px #00ff00");
            else if (!$("#HCenter").val()) {
                $("#HCenter").css("box-shadow", "0 0 1px 2px #00ff00");
                $("#HCenter").focus();
            }
        }
@@ -509,9 +540,9 @@
            if (obj.length == 0) {
                layer.msg("请先选择班组", { index: 0 });
            } else {
                $("#ProductionTeam").val(obj[0].班组);
                $("#ProductionTeamID").val(obj[0].HItemID);
                $("#ProductionTeam").css("box-shadow", "none");
                $("#HGroup").val(obj[0].班组);
                $("#HGroupID").val(obj[0].HItemID);
                $("#HGroup").css("box-shadow", "none");
                checkPopup();
                layer.closeAll();
            }
@@ -519,12 +550,12 @@
        //返回生产资源
        function GetProductionResourcesValue(obj) {  //返回生产资源
            if ($("#ProductionResources").val()) {
                $("#ProductionResources").css("box-shadow", "none");
            if ($("#HSource").val()) {
                $("#HSource").css("box-shadow", "none");
            }
            $("#ProductionResources").val(obj[0].生产资源);
            $("#ProductionResourcesID").val(obj[0].生产资源代码);
            $("#ProductionResources").css("box-shadow", "none");
            $("#HSource").val(obj[0].生产资源);
            $("#HSourceID").val(obj[0].HItemID);
            $("#HSource").css("box-shadow", "none");
            checkPopup();
        }
@@ -533,9 +564,9 @@
            if (obj.length == 0) {
                layer.msg("请先选择班组", { index: 0 });
            } else {
                $("#WorkCenter").val(obj[0].生产班组);
                $("#WorkCenterID").val(obj[0].HItemID);
                $("#WorkCenter").css("box-shadow", "none");
                $("#HCenter").val(obj[0].工作中心);
                $("#HCenterID").val(obj[0].HItemID);
                $("#HCenter").css("box-shadow", "none");
                checkPopup();
                layer.closeAll();
            }
@@ -543,12 +574,11 @@
        //返回检验员
        function GetHSecManagerValue(obj) {  //返回检验员
            $("#Employee").val(obj[0].HName);
            $("#EmployeeID").val(obj[0].HNumber);
            $("#Employee").css("box-shadow", "none");
            checkPopup();
            $("#HQCCheck").val(obj[0].HName);
            $("#HQCCheckID").val(obj[0].HItemID);
        }
    </script>
</body>
</html>