From 7f26cd7c3e492062418cdc7dbe9d7ce14cbe5f05 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期三, 26 六月 2024 11:47:37 +0800
Subject: [PATCH] 铺货修改
---
CoreCms.Net.Web.Admin/wwwroot/views/baifenbingfa/puhuo/indexgroup.html | 29 +++++++++++++++++++++--------
1 files changed, 21 insertions(+), 8 deletions(-)
diff --git a/CoreCms.Net.Web.Admin/wwwroot/views/baifenbingfa/puhuo/indexgroup.html b/CoreCms.Net.Web.Admin/wwwroot/views/baifenbingfa/puhuo/indexgroup.html
index 462001a..be9f880 100644
--- a/CoreCms.Net.Web.Admin/wwwroot/views/baifenbingfa/puhuo/indexgroup.html
+++ b/CoreCms.Net.Web.Admin/wwwroot/views/baifenbingfa/puhuo/indexgroup.html
@@ -236,7 +236,7 @@
text: {none: '鏆傛棤鐩稿叧鏁版嵁'},
cols: [
[
- { type: "checkbox", fixed: "left" },
+ { type: "checkbox" },
{ type: 'numbers', title: '搴忓彿', width: 60, sort: false },
/* { field: 'id', title: '涓婚敭ID', width: 60, sort: false},*/
/* { field: 'areaCodeName', title: '鍖哄煙鍚嶇О', sort: false, width: 165 },*/
@@ -245,25 +245,38 @@
/* { field: 'areaCode', title: '鍖哄煙', sort: false,width: 105 },*/
/* { field: 'categoryId', title: '鍟嗗搧鍒嗙被id', sort: false,width: 105 },*/
- { field: 'categoryName', title: '鍟嗗搧绫诲埆', sort: false, width: 185 },
+ { field: 'categoryName', title: '鍟嗗搧绫诲埆', sort: false, width: 125 },
/* { field: 'goodsId', title: '鍟嗗搧id', sort: false,width: 105 },*/
{ field: 'goodsName', title: '鍟嗗搧鍚嶇О', sort: false, width: 185 },
/* { field: 'productsId', title: '璐у搧id', sort: false,width: 105 },*/
- { field: 'productsName', title: '璐у搧缂栧彿', sort: false, width: 185 },
+ { field: 'productsName', title: '璐у搧缂栧彿', sort: false, width: 265 },
/* { field: 'spesDesc', title: '璐у搧瑙勬牸', sort: false,width: 105 },*/
- { field: 'nums', title: '鏁伴噺', sort: false, width: 185 },
- { field: 'price', title: '鍗曚环', sort: false, width: 185 },
+ { field: 'nums', title: '鏁伴噺', sort: false, width: 165 },
+ { field: 'price', title: '鍗曚环', sort: false, width: 165 },
- { field: 'amount', title: '閲戦', sort: false, width: 185 },
+ { field: 'amount', title: '閲戦', sort: false, width: 165 },
{ field: 'tiaozhengnums', title: '缁忛攢鍟嗘暟閲�', sort: false, width: 185 },
//{ field: 'createTime', title: '寤虹珛鏃堕棿', width: 130, sort: false},
//{ field: 'upDataTime', title: '淇敼鏃堕棿', width: 130, 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},
- { width: 230, align: 'center', title:'鎿嶄綔', fixed: 'right', toolbar: '#LAY-app-Puhuo-tableBox-bar' }
+ { width: 230, align: 'center', title:'鎿嶄綔' , toolbar: '#LAY-app-Puhuo-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="3">褰撻〉鍚堣</td><td> '+ res.otherData.heji1 + '</td><td></td><td> ' + res.otherData.heji2 + '</td><td> ' + res.otherData.heji3 +'</td><td></td>\
+ </tr>\
+ <tr class="layui-table-total" style="background-color: #e9e9e9; font-weight: bold;">\
+ <td></td><td></td><td colspan="3">鎬诲悎璁�</td><td> '+ res.otherData.heji4 + '</td><td></td><td> ' + res.otherData.heji5 + '</td><td> ' + res.otherData.heji6 + '</td><td></td>\
+ </tr>';
+
+ // 灏嗗悎璁¤娣诲姞鍒拌〃鏍煎簳閮�
+ $('#LAY-app-Puhuo-tableBox').next().find('.layui-table-body tbody').append(totalRowHtml);
+ }
});
//鐩戝惉鎺掑簭浜嬩欢
table.on('sort(LAY-app-Puhuo-tableBox)', function(obj){
--
Gitblit v1.9.1