From 68ad4cf704c0a7c575936455d07e3e2f53fefbc4 Mon Sep 17 00:00:00 2001
From: 王佳豪 <g675230687@126.com>
Date: 星期五, 26 三月 2021 14:29:26 +0800
Subject: [PATCH] 1.0.5 1.小太阳需求改动
---
src/main/webapp/views/pda/locNormalIn.html | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 57 insertions(+), 2 deletions(-)
diff --git a/src/main/webapp/views/pda/locNormalIn.html b/src/main/webapp/views/pda/locNormalIn.html
index 2342429..6de0418 100644
--- a/src/main/webapp/views/pda/locNormalIn.html
+++ b/src/main/webapp/views/pda/locNormalIn.html
@@ -21,8 +21,16 @@
<header class="layui-form">
<div>
<div class="layui-input-inline">
+ <label class="layui-form-label">鍗曞彿</label>
+ <div class="layui-input-inline" style="width: 175px">
+ <input id="billNo" class="layui-input" autocomplete="off" oninput="find(this)">
+ </div>
+ </div>
+ </div>
+ <div>
+ <div class="layui-input-inline">
<label class="layui-form-label">搴撳尯</label>
- <div class="layui-input-inline" style="margin-left: 5px;width: 180px">
+ <div class="layui-input-inline" style="width: 175px">
<select id="uuid">
<option value="">璇烽�夋嫨</option>
</select>
@@ -62,6 +70,8 @@
var $ = layui.jquery;
var layer = layui.layer;
var form = layui.form;
+
+ document.getElementById("billNo").focus();
tableIns = table.render({
elem: '#chooseData',
@@ -168,6 +178,11 @@
maktx: item.matName,
anfme: item.count,
warehouse: barcode,
+ mnemonic: item.mnemonic,
+ supplier: item.supplier,
+ lgnum: item.lgnum,
+ type: item.type,
+ altme: item.altme,
});
});
@@ -183,7 +198,7 @@
async: false,
success: function (res) {
if (res.code === 200) {
- reset();
+ reset(true);
tips("缁勬墭鎴愬姛")
} else if (res.code === 403) {
top.location.href = baseUrl + "/pda";
@@ -192,8 +207,45 @@
}
},
});
+ }
+ /**
+ * 鏍规嵁閫氱煡鍗曞彿鏌ヨ鐗╂枡璇︽儏
+ */
+ function find(el) {
+ var billNo = el.value;
+ if (isEmpty(billNo)) {
+ return;
+ }
+ // 璧嬪�煎墠娓呯┖琛ㄦ牸
+ matData = [];
+ tableIns.reload({data: matData});
+ $.ajax({
+ url: baseUrl + "/mobile/bill/query/auth",
+ headers: {'token': localStorage.getItem('token')},
+ data: {
+ billNo: billNo
+ },
+ method: 'POST',
+ success: function (res) {
+ if (res.code === 200) {
+ if (res.data != null) {
+ console.log('鍗曞彿鏁版嵁', res.data);
+ var data = res.data;
+ if (data.length > 0) {
+ for (var i = 0; i < data.length; i++) {
+ addTableData(data[i]);
+ }
+ }
+ }
+ } else if (res.code === 403) {
+ top.location.href = baseUrl + "/pda";
+ } else {
+ tips(res.msg, true)
+ }
+ }
+ });
}
/**
@@ -230,6 +282,9 @@
matData = [];
tableIns.reload({data: matData});
layer.closeAll();
+ $("#billNo").val("");
+ $("#uuid").val("");
+ layui.form.render('select');
}
</script>
</html>
\ No newline at end of file
--
Gitblit v1.9.1