#
zhou zhou
2026-01-04 eb5ddb58e0d42ca0155ed03f951aac643e810d4a
src/main/webapp/views/pda/locNormalIn.html
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"/>
@@ -74,6 +75,7 @@
        }
    </style>
</head>
<body>
<!-- 头部 -->
<header class="layui-form">
@@ -150,8 +152,8 @@
                        <span style="width: 35px; margin-right: 5px">名称</span>
                    </td>
                    <td style="text-align: left">
                    <textarea rows="2" style="resize: none; width: 165px" id="matName" type="text" disabled="disabled"
                              readonly="readonly"></textarea>
                            <textarea rows="2" style="resize: none; width: 165px" id="matName" type="text"
                                disabled="disabled" readonly="readonly"></textarea>
                    </td>
                </tr>
            </table>
@@ -386,17 +388,29 @@
        tableIns.reload({data: matData});
    }
    // 组托 - 防抖锁
    var isCombLocked = false;
    // 组托
    function comb() {
        // 防抖检查
        if (isCombLocked) {
            tips("操作中,请稍候...", true);
            return;
        }
        isCombLocked = true;
        let barcode = $('#uuid').val();
        console.log('barcode', barcode);
        if (isEmpty(barcode)) {
            tips("请选择库区", true);
            document.getElementById("uuid").focus();
            isCombLocked = false;
            return;
        }
        if (matData.length === 0) {
            tips("请提取物料", true);
            isCombLocked = false;
            return;
        }
@@ -437,7 +451,13 @@
                    } else {
                        tips(res.msg, true)
                    }
                    // 延迟解锁防抖
                    setTimeout(function () { isCombLocked = false; }, 500);
                },
                error: function () {
                    tips("请求失败", true);
                    isCombLocked = false;
                }
            });
        } else {
            $.ajax({
@@ -458,7 +478,13 @@
                    } else {
                        tips(res.msg, true)
                    }
                    // 延迟解锁防抖
                    setTimeout(function () { isCombLocked = false; }, 500);
                },
                error: function () {
                    tips("请求失败", true);
                    isCombLocked = false;
                }
            });
        }
    }
@@ -584,4 +610,5 @@
        layui.form.render('select');
    }
</script>
</html>