duhe
2025-08-12 49f7dcbe1c1039d4b12cc35ada7d98a9e2863361
WebTM/views/ÖÊÁ¿¹ÜÀí/PNL¼ìÑéÐÅÏ¢/QC_CheckNote_PNL_TempEdit.html
@@ -97,12 +97,11 @@
                                                    <div class="layui-inline">
                                                        <label class="layui-form-label">检验工序<label style="color:red"> * </label></label>
                                                        <div class="layui-input-inline">
                                                            <select name="HCheckProc" lay-filter="HCheckProc"
                                                                id="HCheckProc">
                                                                <option value="炬森VRS内层" selected="selected">炬森VRS内层
                                                                </option>
                                                            <select name="HCheckProc" lay-filter="HCheckProc" id="HCheckProc">
                                                                <option value="炬森VRS内层" selected="selected">炬森VRS内层</option>
                                                                <option value="炬森VRS外层">炬森VRS外层</option>
                                                                <option value="AVI">AVI</option>
                                                                <option value="MRB">MRB</option>
                                                                <option value="电测">电测</option>
                                                            </select>
                                                        </div>
@@ -112,10 +111,15 @@
                                                        <label class="layui-form-label">正反面<label style="color:red"> * </label></label>
                                                        <div class="layui-input-inline">
                                                            <select name="HPageIndex" lay-filter="HPageIndex"
                                                                id="HPageIndex">
                                                                <option value="测试" data-value="测试" selected="selected">测试
                                                                </option>
                                                                <option value="测试1" data-value="测试1">测试1</option>
                                                                    id="HPageIndex">
                                                                <option value="L4" data-value="L4" selected="selected">L4</option>
                                                                <option value="L5" data-value="L5">L5</option>
                                                                <option value="L3" data-value="L3">L3</option>
                                                                <option value="L6" data-value="L6">L6</option>
                                                                <option value="L2" data-value="L2">L2</option>
                                                                <option value="L7" data-value="L7">L7</option>
                                                                <option value="LT" data-value="LT">LT</option>
                                                                <option value="LB" data-value="LT">LB</option>
                                                            </select>
                                                        </div>
                                                    </div>
@@ -125,8 +129,8 @@
                                                        <div class="layui-inline">
                                                            <label class="layui-form-label">不良原因:</label>
                                                            <div class="layui-input-inline">
                                                                <textarea name="HPNLPosition_y" id="HPNLPosition_y"
                                                                    class="layui-textarea"></textarea>
                                                                <select name="HBadReason" lay-filter="HBadReason" id="HBadReason">
                                                                </select>
                                                            </div>
                                                        </div>
                                                    </div>
@@ -241,6 +245,7 @@
            //#region è¿›å…¥é¡µé¢å³åŠ è½½
            //初始化界面
            setInitSelect_BadReason();
            set_ClearBill();
            //判断操作类型
            if (OperationType == 1) {//无源单
@@ -269,6 +274,18 @@
                document.getElementById("HBarCode").setAttribute("disabled", "disabled");
                document.getElementById("HSetNo").setAttribute("disabled", "disabled");
                document.getElementById("HPCSNo").setAttribute("disabled", "disabled");
            } else if (OperationType == 6) {//直方图-avi æ–°å¢ž
                set_AddFNew();
                $("#HBarCode").val(HBarCode_PNL);
                $("#HSetNo").val(HSetNo);
                $("#HPCSNo").val(HPCSNo);
                $("#HCheckProc").val("AVI");
                document.getElementById("HBarCode").setAttribute("disabled", "disabled");
                document.getElementById("HSetNo").setAttribute("disabled", "disabled");
                document.getElementById("HPCSNo").setAttribute("disabled", "disabled");
                document.getElementById("HCheckProc").setAttribute("disabled", "disabled");
                form.render('select');
            }
            else {
                layer.alert("未知操作类型!", { icon: 5 });
@@ -289,7 +306,7 @@
                let url = GetWEBURL()
                if (OperationType == 3 || OperationType == 5) {
                    url += "/QC_CheckNote_PNL_TempController/EditBill"
                } else if (OperationType == 1 || OperationType == 2 || OperationType == 4) {
                } else if (OperationType == 1 || OperationType == 2 || OperationType == 4 || OperationType == 6) {
                    url += "/QC_CheckNote_PNL_TempController/AddBill"
                }
                $.ajax(
@@ -386,6 +403,34 @@
                $("#HMaker").val(sessionStorage["HUserName"]);; //根据登录用户带出创建人
                $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd"));
            }
            //#region ä¸è‰¯åŽŸå› ä¸‹æ‹‰åˆ—è¡¨åˆå§‹åŒ–
            function setInitSelect_BadReason() {
                //获取登录页组织列
                var ModRightNameCheck = "";
                var sql = "select * from Gy_BadReason where HCheckEmp <> '' and ISNULL(HStopEmp,'') = '' ";
                $.ajax({
                    url: GetWEBURL() + '/CommonModel/searchMethod',
                    async: false,
                    type: "GET",
                    data: { "sql": sql, "user": sessionStorage["HUserName"], "ModRightNameCheck": ModRightNameCheck },
                    success: function (result) {
                        if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            var data = result.data;
                            var Organization = "";
                            for (var i = 0; i < data.length; i++) {
                                Organization += '<option  style="color:blue;" value="' + data[i].HName + '">' + data[i].HName + '</option>';
                            }
                            $("#HBadReason").append(Organization);
                            form.render('select');
                        }
                        layer.closeAll("loading");
                    }
                });
            }
        //#endregion
            //无源单新增
            function set_AddFNew() {
                $("#HItemID").val(0)