From 632bde0f32999a2b319b706e23d90bc1b5dd8cc2 Mon Sep 17 00:00:00 2001
From: zwl <1051256694@qq.com>
Date: 星期二, 21 四月 2026 17:22:56 +0800
Subject: [PATCH] 1.新增拍照功能

---
 src/main/webapp/views/pakStore/locDetlCheckQuery.html |   27 ++++++++++++++++++++++++++-
 1 files changed, 26 insertions(+), 1 deletions(-)

diff --git a/src/main/webapp/views/pakStore/locDetlCheckQuery.html b/src/main/webapp/views/pakStore/locDetlCheckQuery.html
index 0395912..1630083 100644
--- a/src/main/webapp/views/pakStore/locDetlCheckQuery.html
+++ b/src/main/webapp/views/pakStore/locDetlCheckQuery.html
@@ -118,6 +118,9 @@
 <div class="layui-form">
     <table class="layui-hide" id="stockOut" lay-filter="stockOut"></table>
 </div>
+<script type="text/html" id="operate">
+    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="viewPhoto">鏌ョ湅鐓х墖</a>
+</script>
 
 <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script>
 <script type="text/javascript" src="../../static/layui/layui.js" charset="utf-8"></script>
@@ -152,7 +155,8 @@
         ];
         cols.push.apply(cols, detlCols);
         cols.push({field: 'modiUser$', align: 'center',title: '淇敼浜哄憳', hide: true}
-            ,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿'})
+            ,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿'}
+            ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:110})
         return cols;
     }
 
@@ -242,6 +246,27 @@
             }
         });
 
+        table.on('tool(stockOut)', function(obj){
+            if (obj.event !== 'viewPhoto') {
+                return;
+            }
+            $.ajax({
+                url: baseUrl + "/photo/loc/auth",
+                headers: {'token': localStorage.getItem('token')},
+                data: {locNo: obj.data.locNo},
+                method: 'GET',
+                success: function (res) {
+                    if (res.code === 200) {
+                        showPhotoViewer(layer, res.data);
+                    } else if (res.code === 403) {
+                        top.location.href = baseUrl + "/";
+                    } else {
+                        layer.msg(res.msg);
+                    }
+                }
+            });
+        });
+
         // 鎼滅储鏍忔悳绱簨浠�
         form.on('submit(search)', function (data) {
             tableReload();

--
Gitblit v1.9.1