yxj
2024-05-23 028c2caf8aeef1c0487cb008a843867f9ad4a7db
WebTM/views/Éú²ú¹ÜÀí/ÖÊÁ¿»ã±¨µ¥/Sc_QualityReportBill.html
@@ -14,6 +14,7 @@
    <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
    <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
    <script src="../../../layuiadmin/PubCustom.js"></script>
    <script src="../../../layuiadmin/PlateBinding.js"></script>
    <style>
        .main-btn { /*头部主按钮*/
            padding: 0 2px; /*调整按钮左右空隙大小*/
@@ -132,7 +133,7 @@
                                        <div class="layui-col-xs4 layui-inline">
                                            <label class="layui-form-label">流转卡数量</label>
                                            <div class="layui-input-inline">
                                                <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;" readonly>
                                                <input type="text" class="layui-input" name="HQty" id="HQty" style="background-color:#efefef4d;" readonly>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs4 layui-inline">
@@ -374,6 +375,9 @@
            //var linterid = 11880;
            //var HSouceBillType = 3722;
            get_Display_UserList();
            get_ConfigFileInfo_EquipFile();
            //判断操作类型
            if (OperationType == 1) {//无源单新增
                var ajaxLoad = layer.load();
@@ -409,7 +413,7 @@
                        layer.close(ajaxLoad);
                    }
                });
                if (HSouceBillType == 3722 || HSouceBillType == 4610) {
                if (HSouceBillType == 3722 || HSouceBillType == 4610 || HSouceBillType == 3772) {
                    $("#HSourceBillType").val(HSouceBillType);
                    //根据源单id获取源单信息
                    GetICMOBillValue(linterid);
@@ -579,7 +583,7 @@
                $.ajax({
                    url: GetWEBURL() + '/Sc_QualityReportBill/set_SaveBill',
                    type: "GET",
                    data: { "HInterID": $("#HInterID").val(), "HChecker": sessionStorage["HUserName"] },
                    data: { "HInterID": $("#HInterID").val(), "HBillNo": $("#HBillNo").val(), "HChecker": sessionStorage["HUserName"] },
                    success: function (result) {
                        if (result.count == 1) {
                            $('#set_SaveBill').addClass("layui-btn-disabled").attr("disabled", true);
@@ -629,6 +633,14 @@
                            $("#HMaterID").val(data.HMaterID);
                            $("#HMaterModel").val(data.HMaterModel);
                            $("#HICMOEntryID").val(data.HICMOEntryID);
                            if (HSouceBillType == "3772") {
                                $("#HQty").val(data.HDatePlanQty);
                                $("#HProcExchBillNo").val(data.HSourceBillNo);
                                $("#HProcExchInterID").val(data.HSourceInterID);
                                $("#HProcExchEntryID").val(data.HSourceEntryID);
                            }
                        } else {
                            layer.alert(result.Message, { icon: 5 });
                        }
@@ -641,6 +653,46 @@
            }
            //#endregion
            //查询用户关联信息
            function get_Display_UserList() {
                var sWhere = " and ç¼–码='" + sessionStorage["Czybm"] + "'";
                var ajaxLoad = layer.load();
                //进入页面显示的缓存列表
                $.ajax({
                    url: GetWEBURL() + '/Cj_SingleStation/Cj_CollectionOfSingleProductDefectsUserList',
                    type: "GET",
                    data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] },
                    success: function (data1) {
                        if (data1.count == 1) {
                            $("#HCheckManID").val(data1.data[0]["HEmpID"]);
                            $("#HCheckManName").val(data1.data[0]["质检员"]);
                            $("#HGroupID").val(data1.data[0]["HGroupID"]);
                            $("#HGroupName").val(data1.data[0]["生产班组"]);
                            layer.close(ajaxLoad);
                            //layer.alert("查询成功", { icon: 1 });
                        } else {
                            layer.close(ajaxLoad);
                            layer.alert(data1.code + data1.Message, { icon: 5 });
                        }
                    }, error: function () {
                        layer.close(ajaxLoad);
                        layer.alert("接口请求失败!", { icon: 5 });
                    }
                });
            }
            //#region æ ¹æ®å¹³æ¿ç»‘定,自动带出基础资料信息
            function get_ConfigFileInfo_EquipFile() {
                var objdata = get_ConfigFileInfo();
                $("#HProcID").val(objdata.HProcID); //工序ID
                $("#HProcNo").val(objdata.HProcName); //工序名称
                $("#HSourceID").val(objdata.HSourceID); //生产资源ID
                $("#HSourceName").val(objdata.HSourceName); //生产资源名称
            }
        //#endregion
            //#region é€‰æ‹©ç”Ÿäº§èµ„源方法
            function get_checkSource() {
                layer.open({