From 13d295c4210ee589b3e524bd157f85c63bca5a3e Mon Sep 17 00:00:00 2001
From: zwl <1051256694@qq.com>
Date: 星期四, 30 四月 2026 13:12:08 +0800
Subject: [PATCH] 1.出库单据转历史档有问题 2.新增单据历史档 3.修复入库完成转明细失败

---
 src/main/webapp/static/js/locDetl/locDetl.js |   27 ++++++++++++++++++++++++++-
 1 files changed, 26 insertions(+), 1 deletions(-)

diff --git a/src/main/webapp/static/js/locDetl/locDetl.js b/src/main/webapp/static/js/locDetl/locDetl.js
index 8612fe7..ab4ed74 100644
--- a/src/main/webapp/static/js/locDetl/locDetl.js
+++ b/src/main/webapp/static/js/locDetl/locDetl.js
@@ -2,7 +2,8 @@
 function getCol() {
     var cols = [
         {type: 'checkbox'},
-        {field: 'locNo$', align: 'center',title: '搴撲綅鍙�'}
+        {field: 'locNo', align: 'center',title: '搴撲綅鍙�'}
+        ,{field: 'locNo$', align: 'center',title: '搴撲綅鍒悕'}
         ,{field: 'storeDate', align: 'center',title: '搴撻緞(澶�)', hide: true, sort:true}
         ,{field: 'matnr', align: 'center',title: '鍟嗗搧缂栧彿', hide: false, sort:true}
         ,{field: 'maktx', align: 'center',title: '鍟嗗搧鍚嶇О', hide: false, sort:true}
@@ -47,6 +48,7 @@
     cols.push({field: 'modiUser$', align: 'center',title: '淇敼浜哄憳',hide: true}
         ,{field: 'memo', align: 'center',title: '澶囨敞', hide: false}
         ,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿'}
+        ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:160}
     )
     return cols;
 }
@@ -297,6 +299,29 @@
     table.on('tool(locDetl)', function(obj){
         var data = obj.data;
         switch (obj.event) {
+            case 'viewPhoto':
+                if (!data.pic) {
+                    layer.msg('鏆傛棤鐓х墖');
+                    break;
+                }
+                $.ajax({
+                    url: baseUrl + "/photo/resolve/auth",
+                    headers: {'token': localStorage.getItem('token')},
+                    data: JSON.stringify({pic: data.pic}),
+                    dataType:'json',
+                    contentType:'application/json;charset=UTF-8',
+                    method: 'POST',
+                    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);
+                        }
+                    }
+                });
+                break;
             // 璇︽儏
             case 'detail':
                 layer.open({

--
Gitblit v1.9.1