dataGrid 表头合并

这里写图片描述columns = [
[
{field : ‘enterpriseName’,title : ‘企业名称’,width : 90,rowspan : 3,align : ‘center’},
{field : ‘month’,title : ‘月份’,width : 40,rowspan : 3,align : ‘center’},
{field : ‘hcfcsTypeId’,title : ‘HCFCs类型ID’,width : 90,rowspan : 3,align : ‘center’,hidden:true},
{field : ‘hcfcsTypeName’,title : ‘HCFCs类型’,width : 90,rowspan : 3,align : ‘center’},
{field : ‘produceDays’,title : ‘生产天数’,width : 70,rowspan : 3,align : ‘center’},
{field : ‘outputToSellId’,title : ‘主键’,width : 70,rowspan : 3,align : ‘center’,hidden : true},
{field : ‘monthstartDosage’,title : ‘月初库存(1)’,width : 70,align : ‘center’,sum : true,rowspan : 3},
{field : ‘produceDosage’,title : ‘产量(2)’,width : 50,align : ‘center’,sum : true,rowspan : 3},
{field : ‘sellDosage’,title : ‘外购量(3)’,width : 55,align : ‘center’,sum : true,rowspan : 3},
{title : ‘企业自用量’,colspan : 4},
{title : ‘销售量’,colspan : 6},
{field : ‘layinLoss’,title : ‘储运损耗(7)’,width : 70,align : ‘center’,sum : true,rowspan : 3},
{field : ‘monthendDosage1’,title : ‘月末库存(8)’,width : 70,align : ‘center’,sum : true,rowspan : 3},
{title : ‘月末库存(9)’,colspan : 1},
{field : ‘reportStatus’,title : ‘上报状态’,width : 70,align : ‘center’,sum : true,rowspan : 3,formatter : format}
],
[
{field : ‘selfuseMaterial’,title : ‘原料用’,width : 40,rowspan : 2,sum : true,align : ‘center’},
{field : ‘selfuseBlend’,title : ‘混配’,width : 40,rowspan : 2,sum : true,align : ‘center’},
{field : ‘selfuseOther’,title : ‘其他’,width : 60,rowspan : 2,sum : true,align : ‘center’},
{field : ‘selfuseSubtotal’,title : ‘小计(4)’,width : 50,rowspan : 2,sum : true,align : ‘center’},
{title : ‘原料用’,colspan : 3},
{title : ‘受控用途’,colspan : 3},
{field : ‘monthendDosage2’,title : ‘(9)=(1)+(2)+(3)-(4)-(5)-(6)-(7)’,width : 170,align : ‘center’,rowspan : 2}
]
,
[
{field : ‘materialDomesticSale’,title : ‘内销’,width : 40,sum : true,align : ‘center’},
{field : ‘materialDomesticExport’,title : ‘出口’,width : 40,sum : true,align : ‘center’},
{field : ‘materialDomesticSubtotal’,title : ‘小计(5)’,width : 50,sum : true,align : ‘center’},

   {field : 'materialControlSale',title : '内销',width : 40,sum : true,align : 'center'},
   {field : 'materialControlExport',title : '出口',width : 40,sum : true,align : 'center'},
   {field : 'materialControlSubtotal',title : '小计(6)',width : 50,sum : true,align : 'center'}
 ]

];

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值