From 513ae49dd33d2e3fb9c4513ea3be2e501c4a80f2 Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期一, 10 二月 2025 08:48:37 +0800
Subject: [PATCH] 库存明细行内容超出隐藏,默认显示500条数据

---
 src/main/webapp/static/js/order/order.js |   28 ++++++++++++++++++++++++++--
 1 files changed, 26 insertions(+), 2 deletions(-)

diff --git a/src/main/webapp/static/js/order/order.js b/src/main/webapp/static/js/order/order.js
index 5af334f..3e27de8 100644
--- a/src/main/webapp/static/js/order/order.js
+++ b/src/main/webapp/static/js/order/order.js
@@ -82,6 +82,30 @@
         insTb.reload({where: data.field, page: {curr: 1}});
     });
 
+    // 瀵煎嚭鎵�鏈�
+    form.on('submit(exportAll)', function (data) {
+        layer.closeAll();
+        layer.load(1, {shade: [0.1,'#fff']});
+        $.ajax({
+            url: baseUrl+"/order/exportAll/auth",
+            headers: {'token': localStorage.getItem('token')},
+            data: {},
+            dataType:'json',
+            contentType:'application/json;charset=UTF-8',
+            method: 'POST',
+            success: function (res) {
+                if (res.code === 200) {
+                    table.exportFile(['鍗曟嵁缂栧彿','鏁伴噺','浣滀笟鏁伴噺','瀹屾垚鏁伴噺','鍟嗗搧缂栫爜','鍟嗗搧鍚嶇О','瑙勬牸','閲嶉噺','璐т富id','璐х墿褰㈡�乮d'],res.data,'xls');
+                } else if (res.code === 403) {
+                    top.location.href = baseUrl+"/";
+                } else {
+                    layer.msg(res.msg)
+                }
+            }
+        });
+        layer.closeAll('loading');
+    });
+
     // 娣诲姞
     $("#orderAddBtn").click(function () {
         showEditModel();
@@ -323,10 +347,10 @@
                         {field: 'maktx', title: '鍟嗗搧鍚嶇О', width: 200},
                         {field: 'specs', title: '瑙勬牸'},
                         {field: 'batch', title: '鎵规', edit: true},
-                        {field: 'anfme', title: '鏁伴噺(淇敼)', style: 'color: blue;font-weight: bold', edit: true, minWidth: 110, width: 110},
+                        {field: 'anfme', title: '鏁伴噺(淇敼)kg', style: 'color: blue;font-weight: bold', edit: true, minWidth: 110, width: 110},
 
                         // {field: 'payment', title: '璐х墿鐘舵��',align: 'center', templet: '#payment'},
-                        {field: 'qty', title: '浣滀笟鏁伴噺',  minWidth: 100, width: 100},
+                        {field: 'qty', title: '浣滀笟鏁伴噺kg',  minWidth: 100, width: 100},
                         // {field: 'unit', title: '鍗曚綅', width: 80},
                         {field: 'memo', title: '澶囨敞' , edit: true},
                         {align: 'center', title: '鎿嶄綔', toolbar: '#formSSXMTableBar', minWidth: 80, width: 80, fixed: 'right'}

--
Gitblit v1.9.1