From e3bb506579f395c5dbca3d9f0e1e10a18170240f Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 26 四月 2021 15:01:15 +0800
Subject: [PATCH] Merge branch 'htwms' of https://gitee.com/luxiaotao1123/wms-cloud into htwms
---
src/main/webapp/views/pda/stockCheck.html | 32 +++++++++++++++-----------------
1 files changed, 15 insertions(+), 17 deletions(-)
diff --git a/src/main/webapp/views/pda/stockCheck.html b/src/main/webapp/views/pda/stockCheck.html
index 563dbca..0262dce 100644
--- a/src/main/webapp/views/pda/stockCheck.html
+++ b/src/main/webapp/views/pda/stockCheck.html
@@ -114,7 +114,7 @@
cellMinWidth: 50,
cols: [[
{fixed: 'left', align: 'center', field: 'count', title: '鏁伴噺', event: 'modify', style:'font-weight: bold;', width:50},
- {field: 'matnr', align: 'center', title: '鍟嗗搧缂栧彿', event: 'modify'},
+ // {field: 'matnr', align: 'center', title: '鍟嗗搧缂栧彿', event: 'modify'},
{field: 'maktx', align: 'center', title: '鍟嗗搧鍚嶇О', event: 'modify'}
]],
done: function (res, curr, count) {
@@ -264,6 +264,7 @@
content: 'matQuery.html',
success: function(layero, index){
$('.layui-layer-title').css('font-size', '16px');
+ $('.layui-layer.layui-layer-iframe').css('border-radius', '8px');
},
end: function () {
// $('#mat-btn').focus();
@@ -294,28 +295,25 @@
// 纭
function check() {
- var barcode = $('#code').val();
- if (isEmpty(barcode)) {
- tips("鎵樼洏鏉$爜涓虹┖", true);
- // document.getElementById("code").focus();
+ var locNo = $('#locNo').val();
+ if (isEmpty(locNo)) {
+ tips("璐т綅涓嶈兘涓虹┖", true);
return;
}
- if (barcode.length !== 7) {
- tips("鏉$爜蹇呴』涓�7浣�", true);
- return;
+ if (locDetlData.length > 0) {
+ for (var i = 0; i<locDetlData.length; i++) {
+ if (locDetlData[i].count === null || locDetlData[i].count === 0) {
+ tips(locDetlData[i].matnr + "鍟嗗搧鏁伴噺閿欒", 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 +321,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