From 9954576f3e18f705ae15ef202970ff8b547afb60 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期三, 24 二月 2021 17:01:37 +0800 Subject: [PATCH] # --- src/main/webapp/views/pda/stockIn.html | 24 +++++++++++++++++++++--- 1 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/views/pda/stockIn.html b/src/main/webapp/views/pda/stockIn.html index 8705fd2..a7e5238 100644 --- a/src/main/webapp/views/pda/stockIn.html +++ b/src/main/webapp/views/pda/stockIn.html @@ -125,10 +125,28 @@ }); function findCode(el) { - if (el.value.length === 7) { - $('#mat-btn').focus(); - getMat(); + if (isEmpty(el.value)) { + return; } + $.ajax({ + url: baseUrl + "/mobile/inStock/auth", + headers: {'token': localStorage.getItem('token')}, + data: { + zpallet: el.value + }, + method: 'POST', + success: function (res) { + if (res.code === 200) { + if (res.data != null) { + console.log(res.data); + } + } else if (res.code === 403) { + top.location.href = baseUrl + "/pda"; + } else { + alert(res.msg) + } + } + }) } function findNode(el) { -- Gitblit v1.9.1