From 42b24af07f1ec2d1a375232d754128ba41d56f0a Mon Sep 17 00:00:00 2001
From: chen.lin <1442464845@qq.com>
Date: 星期四, 29 一月 2026 15:35:55 +0800
Subject: [PATCH] pda匹配单号

---
 src/main/webapp/views/pda/stockOut.html |   37 ++++++++++++++++++++++++++++++-------
 1 files changed, 30 insertions(+), 7 deletions(-)

diff --git a/src/main/webapp/views/pda/stockOut.html b/src/main/webapp/views/pda/stockOut.html
index dc59be6..1b09851 100644
--- a/src/main/webapp/views/pda/stockOut.html
+++ b/src/main/webapp/views/pda/stockOut.html
@@ -24,6 +24,12 @@
 <!-- 澶撮儴 -->
 <header class="layui-form">
     <div class="layui-input-inline">
+        <label class="layui-form-label">鍗曞彿</label>
+        <div class="layui-input-block">
+            <input class="layui-input" type="text" id="billNo" onkeyup="findByBillNo(this)" autocomplete="off">
+        </div>
+    </div>
+    <div class="layui-input-inline">
         <label class="layui-form-label">鐗╂枡</label>
         <div class="layui-input-block">
             <input class="layui-input" type="text" id="matNo" onkeyup="findByMatNo(this)" autocomplete="off">
@@ -62,7 +68,7 @@
 <script>
 
     window.onload = function(){
-        document.getElementById("matNo").focus();
+        document.getElementById("billNo").focus();
         getOutBound();
     }
 
@@ -87,13 +93,29 @@
         $("#locNo").val("");
         find(null, el.value);
     }
-    function find(locNo, matNo) {
+
+    /**
+     * 鏍规嵁閫氱煡鍗曞彿鏌ユ壘搴撳瓨鏄庣粏
+     * */
+    function findByBillNo(el) {
+        if (isEmpty(el.value)) {
+            return;
+        }
+
+        find(null, null, el.value);
+    }
+
+    function find(locNo, matNo, billNo) {
+        if (billNo.indexOf('=') > -1) {
+            billNo = billNo.split(",")[0].split("=")[1];
+        }
         $.ajax({
             url: baseUrl + "/mobile/locDetl",
             headers: {'token': localStorage.getItem('token')},
             data: {
                 locNo: locNo,
-                matNo: matNo
+                matNo: matNo,
+                supplier: billNo,
             },
             method: 'POST',
             success: function (res) {
@@ -129,11 +151,11 @@
             limit: 500,
             cellMinWidth: 50,
             cols: [[
-                {type: 'checkbox', fixed: 'left', width:30},
-                {field: 'count', align: 'center', title: '鏁伴噺', event: 'detail', style:'color: blue', width:50},
                 {field: 'matnr', align: 'center', title: '缂栫爜', event: 'detail'},
                 {field: 'maktx', align: 'center', title: '鍚嶇О', event: 'detail'},
-                {field: 'locNo', align: 'center', title: '搴撲綅', event: 'detail'}
+                {field: 'locNo', align: 'center', title: '搴撲綅', event: 'detail'},
+                {field: 'count', align: 'center', title: '鏁伴噺', event: 'detail', style:'color: blue', width:50},
+                {type: 'checkbox', fixed: 'right', width:30},
             ]],
             done: function (res, curr, count) {
             }
@@ -149,7 +171,7 @@
                         type: 2,
                         title: '搴撳瓨鏄庣粏',
                         shade: [0.3,'#000'],
-                        area: ['90%', '70%'],
+                        area: ['90%', '75%'],
                         content: 'locDetlIframe.html',
                         success: function(layero, index){
                             // 璁剧疆寮圭獥鏍峰紡
@@ -253,6 +275,7 @@
     function reset() {
         $("#matNo").val("");
         $("#locNo").val("");
+        $("#billNo").val("");
         locDetlData = [];
         tableIns.reload({data: locDetlData});
         $('#staNoSelect').val("");

--
Gitblit v1.9.1