From ace4b57c940dc011119353b7667cf5abb7a7ad9e Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期三, 24 三月 2021 14:52:48 +0800 Subject: [PATCH] # --- src/main/java/zy/cloud/wms/manager/entity/param/StoCheckParam.java | 7 +++++++ src/main/webapp/views/pda/stockCheck.html | 19 ++++++------------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/main/java/zy/cloud/wms/manager/entity/param/StoCheckParam.java b/src/main/java/zy/cloud/wms/manager/entity/param/StoCheckParam.java index 25b8f5c..1ab5246 100644 --- a/src/main/java/zy/cloud/wms/manager/entity/param/StoCheckParam.java +++ b/src/main/java/zy/cloud/wms/manager/entity/param/StoCheckParam.java @@ -2,9 +2,16 @@ import lombok.Data; +import java.util.List; + /** * Created by vincent on 2021/3/24 */ @Data public class StoCheckParam { + + private String locNo; + + private List<PakinMatDto> dtos; + } diff --git a/src/main/webapp/views/pda/stockCheck.html b/src/main/webapp/views/pda/stockCheck.html index 563dbca..525e933 100644 --- a/src/main/webapp/views/pda/stockCheck.html +++ b/src/main/webapp/views/pda/stockCheck.html @@ -294,28 +294,21 @@ // 纭 function check() { - var barcode = $('#code').val(); - if (isEmpty(barcode)) { - tips("鎵樼洏鏉$爜涓虹┖", true); - // document.getElementById("code").focus(); - return; - } - if (barcode.length !== 7) { - tips("鏉$爜蹇呴』涓�7浣�", true); + var locNo = $('#locNo').val(); + if (isEmpty(locNo)) { + tips("璐т綅涓嶈兘涓虹┖", true); return; } if (locDetlData.length === 0) { tips("璇锋彁鍙栫墿鏂�", true); return; } - var billNo = $('#billNo').val(); $.ajax({ url: baseUrl+"/work/stock/check", headers: {'token': localStorage.getItem('token')}, data: JSON.stringify({ - barcode: barcode, - combMats: locDetlData, - billNo: billNo + locNo: locNo, + dtos: locDetlData }), contentType:'application/json;charset=UTF-8', method: 'POST', @@ -323,7 +316,7 @@ success: function (res) { if (res.code === 200) { reset(); - tips("缁勬墭鎴愬姛") + tips("鐩樼偣鎴愬姛") } else if (res.code === 403) { top.location.href = baseUrl + "/pda"; } else { -- Gitblit v1.9.1