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/common.js |   37 ++++++++++++++++++++++++++++++++++++-
 1 files changed, 36 insertions(+), 1 deletions(-)

diff --git a/src/main/webapp/static/js/common.js b/src/main/webapp/static/js/common.js
index cb1259a..614d7ec 100644
--- a/src/main/webapp/static/js/common.js
+++ b/src/main/webapp/static/js/common.js
@@ -234,6 +234,7 @@
     ,{field: 'anfme', align: 'center',title: '鏁伴噺', hide: false}
     ,{field: 'zpallet', align: 'center',title: '鎵樼洏鏉$爜', hide: false}
 
+    ,{field: 'boxType1', align: 'center',title: '璐т富', hide: false}
     ,{field: 'boxType3', align: 'center',title: '閲囪喘鍗曞彿', hide: false}
     // ,{field: 'model', align: 'center',title: '浠g爜', hide: true}
     // ,{field: 'color', align: 'center',title: '棰滆壊', hide: true}
@@ -281,6 +282,40 @@
         if(pair[0] == variable){return pair[1];}
     }
     return(false);
+}
+
+function showPhotoViewer(layer, urls) {
+    if (!urls || urls.length === 0) {
+        layer.msg('鏆傛棤鐓х墖');
+        return;
+    }
+    var html = '<div style="padding:16px;display:flex;flex-wrap:wrap;gap:12px;max-height:70vh;overflow:auto;background:#f7f7f7;">';
+    for (var i = 0; i < urls.length; i++) {
+        var url = escapePhotoHtml(urls[i]);
+        html += '<a href="' + url + '" target="_blank" style="display:block;width:360px;max-width:100%;background:#fff;border:1px solid #e6e6e6;padding:8px;">'
+            + '<img src="' + url + '" style="display:block;width:100%;height:auto;max-height:360px;object-fit:contain;" alt="photo">'
+            + '</a>';
+    }
+    html += '</div>';
+    layer.open({
+        type: 1,
+        title: '鏌ョ湅鐓х墖',
+        area: ['900px', '75%'],
+        maxmin: true,
+        shadeClose: true,
+        content: html
+    });
+}
+
+function escapePhotoHtml(value) {
+    if (value === undefined || value === null) {
+        return '';
+    }
+    return String(value)
+        .replace(/&/g, '&amp;')
+        .replace(/"/g, '&quot;')
+        .replace(/</g, '&lt;')
+        .replace(/>/g, '&gt;');
 }
 
 /**
@@ -335,4 +370,4 @@
         '<rect x="50" y="0"  width="15" height="4" rx="1"/><rect x="55" y="4"  width="5"  height="32" rx="1.5"/><rect x="50" y="36" width="15" height="4" rx="1"/>' +
         '</g>' +
         '</svg>';
-}
\ No newline at end of file
+}

--
Gitblit v1.9.1