username@email.com
2024-06-26 7f26cd7c3e492062418cdc7dbe9d7ce14cbe5f05
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>&nbsp;&nbsp;&nbsp;'+ res.otherData.heji1 + '</td><td></td><td>&nbsp;&nbsp;&nbsp;' + res.otherData.heji2 + '</td><td>&nbsp;&nbsp;&nbsp;' + 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>&nbsp;&nbsp;&nbsp;'+ res.otherData.heji4 + '</td><td></td><td>&nbsp;&nbsp;&nbsp;' + res.otherData.heji5 + '</td><td>&nbsp;&nbsp;&nbsp;' + 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){