From aed3b73782648bee8c4a2194c169e547f694bb65 Mon Sep 17 00:00:00 2001 From: khalil Date: Thu, 5 Jun 2025 14:52:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=A0=E9=80=81=E9=87=91=E5=B8=81=E9=92=BB?= =?UTF-8?q?=E7=9F=B3-=E5=B9=B3=E5=8F=B0id=E8=BE=93=E5=85=A5=E6=A1=86?= =?UTF-8?q?=E5=8E=BB=E9=99=A4=E7=A9=BA=E7=99=BD=E5=AD=97=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/record/OfficicalGoldView.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/record/OfficicalGoldView.vue b/src/views/record/OfficicalGoldView.vue index f9dc5a3..23879b1 100644 --- a/src/views/record/OfficicalGoldView.vue +++ b/src/views/record/OfficicalGoldView.vue @@ -187,7 +187,6 @@ export default { }); $('#btnScan').click(function () { - console.log("star===>>" + $("#ernos").text() + ", " + $("#ernos").val()); if (!$('#ernos').val()) { $("#tipMsg").text("请输入耳伴号"); $("#tipModal").modal('show'); @@ -223,7 +222,9 @@ export default { return; } var type = $('#type').val(); - var erBanNos = $("#ernos").val(); + var erBanNos = $("#ernos").val().split('\n').map((line) => line.trim()) + .filter((s) => s && s != '').join('\n'); + console.info(111, erBanNos) var actualAmount = $('#actualAmount').val(); var num = $('#num').val(); var busType = $('#busType').val(); @@ -418,7 +419,8 @@ function initUserInfoTable () { var param = { page: params.pageNumber, pageSize: params.pageSize, - "ernos": $("#ernos").val(), + "ernos": $("#ernos").val().split('\n').map((line) => line.trim()) + .filter((s) => s && s != '').join('\n'), }; return param; },