1
wtt
2026-04-08 b7237a51c665ec1150bef9ab6c9bcfc7847755aa
WebTM/views/³µ¼ä¹ÜÀí/µ¥Æ·¹ýÕ¾_СÎÀ/Cj_ProcessItemStationPlatform_batchKeyElement.html
@@ -398,6 +398,19 @@
                    $("#HBarCode_SN").focus();
                    return
                }
                if ($("#HBarCode_SN").val().substring(0, 5) == "51510" || $("#HBarCode_SN").val().substring(0, 5) == "77217") {
                    var sql = "exec h_p_Cj_BlueToothBarCodeSave '" + $("#HBarCode_Key").val() + "'," + option.data[0].HMaterID + "," + "100004" + ",'" + sessionStorage["HUserName"] + "'";
                    $.ajax({
                        type: "GET",
                        url: GetWEBURL() + "/Gy_SOPBillList/UpDelSQL", //方法所在页面和方法名
                        async: false,
                        data: { "sWhere": sql },
                        success: function (result) {
                        }
                    })
                }
                if (HBarCode_Key) {
                    txtHBarCodeKey_KeyDown(HBarCode_Key);
                }
@@ -413,36 +426,17 @@
        });
        //换产品
        form.on('submit(btnNextProc)', function (data) {
            //for (var i = 0; i < option.data.length; i++) {
            //    if (option.data[i].HBindingQty < 1 || option.data[i].HBarCode == "") {
            //        layer.alert("第<span style='color: red;'>" + (i + 1) + "</span>行,配件 <span style='color: blue;'>" + option.data[i].HMaterName + "</span> æœªç»‘定齐整!")
            //        return;
            //    }
            //}
            //保存关键件
            if (AllowLoadData(data)) {
                set_SaveBill(data);
            }
            $("#HBarCode_SN").val("");
            $("#HBarCode_Key").val("");
            option.data = [];
            table.render(option);
            //启用输入框,背景色恢复
            $("#HBarCode_SN").prop("readonly", false);
            $("#HBarCode_SN").css('background', '#FFFFFF')//产品码文本框背景色恢复
            $("#HBarCode_SN").focus();
            //重新获取单据号
            //$.ajax({
            //    url: GetWEBURL() + "/Web/GetMAXNumPDA",
            //    type: "GET",
            //    data: { "HBillType": '3727' },
            //    success: function (d) {
            //        $("#HInterID").val(d.data[0].HInterID);
            //        $("#HBillNo").val(d.data[0].HBillNo);
            //        $("#HDate").val(Format(new Date(), "yyyy-MM-dd"));  //默认为当前日期
            //        //重新启用保存按钮
            //        $("#btnSave").removeClass("layui-btn-disabled").attr("disabled", false);
            //    }
            //});
            //历史绑定记录查询
            //get_Display();
        });
@@ -756,6 +750,7 @@
                dataType: "json",
                success: function (data1) {
                    if (data1.count == 1) {
                        layer.close(indexs);
                        var data = data1.data
                        for (var i = 0; i < option.data.length; i++) {
@@ -787,9 +782,7 @@
                            if (AllowLoadData(data)) {
                                set_SaveBill(data);
                            }
                        }
                        layer.close(indexs);
                        }
                    }
                    else {
                        layer.close(indexs);