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; },