From cc170291673472d3cda8d7ea77f6bd3a3b5dbb83 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期一, 09 九月 2024 14:06:09 +0800
Subject: [PATCH] 增加了一些统计修改

---
 CoreCms.Net.Web.Admin/wwwroot/views/corecmsplanorder/index.html |   28 +++++++++++++++++++++-------
 1 files changed, 21 insertions(+), 7 deletions(-)

diff --git a/CoreCms.Net.Web.Admin/wwwroot/views/corecmsplanorder/index.html b/CoreCms.Net.Web.Admin/wwwroot/views/corecmsplanorder/index.html
index 246cb07..07900f9 100644
--- a/CoreCms.Net.Web.Admin/wwwroot/views/corecmsplanorder/index.html
+++ b/CoreCms.Net.Web.Admin/wwwroot/views/corecmsplanorder/index.html
@@ -306,28 +306,42 @@
                     text: {none: '鏆傛棤鐩稿叧鏁版嵁'},
                     cols: [
                         [
-                            { type: "checkbox", fixed: "left" },
+                            { type: "checkbox" },
+                            { field: 'zizeng', width: 50, title: '搴忓彿', type: 'numbers' },
 						    { field: 'orderId', title: '璁㈠崟鍙�', sort: false,width: 135 },
                             { field: 'shi', title: '甯�', sort: false, width: 50 },
                             { field: 'quxian', title: '鍖哄幙', sort: false, width: 50 },
-                            { field: 'pianqu', title: '鐗囧尯', sort: false, width: 115 }, 
+                            { field: 'pianqu', title: '鐗囧尯', sort: false, width: 65 }, 
 						 /*   { field: 'userId', title: '鐢ㄦ埛ID 鍏宠仈user.id', sort: false,width: 105 },*/
                             { field: 'shipAddress', title: '瀛︽牎', sort: false, width: 135 },
 						    { field: 'shipName', title: '鑱旂郴浜�', sort: false,width: 55 },
                             { field: 'shipMobile', title: '鑱旂郴鐢佃瘽', sort: false, width: 115 },
-                            { field: 'shouhuoAddress', title: '鏀惰揣鍦板潃', sort: false, width: 265 },
+                            { field: 'shouhuoAddress', title: '鏀惰揣鍦板潃', sort: false, width: 165 },
                             { field: 'oldOrderAmount', title: '璁″垝閲戦', sort: false, width: 75 },
                             { field: 'orderAmount', title: '璋冩暣閲戦', sort: false, width: 75 },
-                            { field: 'keYongAmount', title: '鍙敤浣欓', sort: false, width: 75 },
+                            { field: 'keYongAmount', title: '鍙敤浣欓', sort: false, width: 65 },
                             { field: 'createTime', title: '寤虹珛鏃堕棿', width: 95, sort: false},
                             { field: 'upDataTime', title: '淇敼鏃堕棿', width: 95, sort: false},
 						    //{ field: 'createBy', title: '鍒涘缓浜�', sort: false,width: 105 },
 						    //{ field: 'upDataBy', title: '淇敼浜�', sort: false,width: 105 },
                             //{ field: 'isdelete', title: '鍒犻櫎鏍囧織', width: 95, templet: '#switch_isdelete', sort: false , unresize: true},
-                            { field: 'statusText', title: '璁㈠崟鐘舵��', sort: false, width: 65 },
-                            { width: 222, align: 'center', title:'鎿嶄綔', fixed: 'right', toolbar: '#LAY-app-CoreCmsPlanOrder-tableBox-bar' }
+                            { field: 'statusText', title: '璁㈠崟鐘舵��', sort: false, width: 55 },
+                            { width: 222, align: 'center', title:'鎿嶄綔', toolbar: '#LAY-app-CoreCmsPlanOrder-tableBox-bar' }
                         ]
-                    ]
+                    ], done: function (res, curr, count) {
+
+                        console.log(res);
+                        // 鍒涘缓鍚堣琛岀殑HTML
+                        var totalRowHtml = '<tr class="layui-table-total" style="background-color: #f2f2f2; font-weight: bold;">\
+    <td></td><td></td><td colspan="8">褰撻〉鍚堣</td><td>&nbsp;&nbsp;&nbsp;'+ res.otherData.heji1 + '</td><td>&nbsp;&nbsp;&nbsp;' + res.otherData.heji2 + '</td><td>&nbsp;&nbsp;&nbsp;' + res.otherData.heji3 + '</td><td></td><td></td><td></td><td></td>\
+  </tr>\
+  <tr class="layui-table-total" style="background-color: #e9e9e9; font-weight: bold;">\
+    <td></td><td></td><td colspan="8">鎬诲悎璁�</td><td>&nbsp;&nbsp;&nbsp;'+ res.otherData.heji4 + '</td><td>&nbsp;&nbsp;&nbsp;' + res.otherData.heji5 + '</td><td>&nbsp;&nbsp;&nbsp;' + res.otherData.heji6 + '</td><td></td><td></td><td></td><td></td>\
+  </tr>';
+
+                        // 灏嗗悎璁¤娣诲姞鍒拌〃鏍煎簳閮�
+                        $('#LAY-app-CoreCmsPlanOrder-tableBox').next().find('.layui-table-body tbody').append(totalRowHtml);
+                    }
                 });
                 //鐩戝惉鎺掑簭浜嬩欢
                 table.on('sort(LAY-app-CoreCmsPlanOrder-tableBox)', function(obj){

--
Gitblit v1.9.1