yusijie
2024-02-23 d904a59b5d061921fab25818d7f09176e9d34b1e
WebTM/views/É豸¹ÜÀí/Sb_EquipMaintainBillList.html
@@ -334,11 +334,12 @@
                    , toolbar: '#toolbarDemo'
                    , height: '400'
                    , page: true
                    , totalRow: true
                    , cellMinWidth: 90
                    , limit: 50
                    , limits: [50, 500, 5000, 20000]
                    , cols: [[
                        { type: 'checkbox', fixed: 'left' }
                        { type: 'checkbox', fixed: 'left', totalRowText: '合计行'}
                        , { field: 'hmainid', title: 'hmainid', hide: true }
                        , { field: '日期', title: '日期', width: 160, templet: "<div>{{d.日期 ==null ?'':layui.util.toDateString(d.日期, 'yyyy-MM-dd')}}</div>" }
                        , { field: '单据号', title: '单据号', width: 160 }
@@ -354,13 +355,13 @@
                        , { field: '配件代码', title: '配件代码', width: 115, hide: true }
                        , { field: '配件名称', title: '配件名称', width: 200 }
                        , { field: '单位名称', title: '单位名称', width: 200 }
                        , { field: '实际用量', title: '实际用量', width: 200 }
                        , { field: '标准用量', title: '标准用量', width: 200 }
                        , { field: '实际用量', title: '实际用量', width: 200, totalRow: true}
                        , { field: '标准用量', title: '标准用量', width: 200 , totalRow: true}
                        , { field: '负责人', title: '负责人', width: 200 }
                        , { field: 'hsubid', title: 'hsubid', width: 200, hide: true }
                        , { field: '表体备注', title: '表体备注', width: 200 }
                        , { field: '关联数量', title: '关联数量', width: 200 }
                        , { field: '关联金额', title: '关联金额', width: 200 }
                        , { field: '关联数量', title: '关联数量', width: 200 , totalRow: true}
                        , { field: '关联金额', title: '关联金额', width: 200, totalRow: true}
                        , { field: '行关闭人', title: '行关闭人', width: 115, hide: true }
                        , { field: '关闭类型', title: '关闭类型', width: 200 }
                        , { field: '表体备注', title: '表体备注', width: 200, hide: true }
@@ -412,6 +413,7 @@
                    //, toolbar: '#toolbarDemo'
                    , height: '350'
                    , page: true
                    , totalRow: true
                    , cellMinWidth: 90
                    , limit: 50
                    , limits: [50, 500, 5000, 20000]
@@ -440,6 +442,7 @@
                    elem: '#mainTable2'
                    //, toolbar: '#toolbarDemo'
                    , height: '350'
                    , totalRow: true
                    , page: true
                    , cellMinWidth: 90
                    , limit: 50
@@ -457,8 +460,8 @@
                        //, { field: 'HManagerID', title: '负责人ID', width: 200, hide: true }
                        //, { field: 'HManagerNumber', title: '负责人代码', width: 200 }
                        //, { field: 'HManagerName', title: '负责人', width: 200 }
                        , { field: 'HQty', title: '实际用量', width: 200 }
                        , { field: 'HQtyMust', title: '标准用量', width: 200 }
                        , { field: 'HQty', title: '实际用量', width: 200, totalRow: true}
                        , { field: 'HQtyMust', title: '标准用量', width: 200, totalRow: true }
                        , { field: 'HRemark', title: '备注', width: 200 }
                    ]]
                };
@@ -485,7 +488,7 @@
                                data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType });
                            }
                            //在列表左边添加勾选框
                            col.push({ type: 'checkbox', fixed: 'left' });
                            col.push({ type: 'checkbox', fixed: 'left', totalRowText: '合计行' });
                            for (var i = 0; i < data.length; i++) {
                                if ($.inArray(data[i].name, titleData) > -1 ) {
                                    col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //隐藏id列
@@ -496,6 +499,13 @@
                                        case 'DateTime':
                                            col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 200 });
                                            break;
                                        case 'long':
                                        case 'Int32':
                                        case 'Int64':
                                        case 'double':
                                        case 'Decimal':
                                            col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 120, totalRow: true });
                                            break;
                                        default:
                                            col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 });
                                    }
@@ -510,6 +520,7 @@
                                , data: data1.data
                                , height: 550
                                , page: true
                                , totalRow: true
                                , cellMinWidth: 90
                                , limit: 50
                                , limits: [50, 500, 5000, 20000]