{ //标签尺寸和元素内容 "index": 0, "name": 1, "height": 20, //纸张高度 单位mm "width": 30, //纸张宽度 单位mm "paperHeader": 0, //页头 "paperFooter": 57, //页脚 "printElements": [{ //第一个打印元素 "options": { "left": 0, "top": 0, "right": 37, "bottom": 17, "height": 8, "width": 79.5, "vCenter": 17, "hCenter": 13, "title": "名称", "field": "gname", //字段名称 "testData": "模切机", //字段值 "fontSize": 6, "qid": "gname", "coordinateSync": false, "widthHeightSync": false, "lineHeight": 6, "qrCodeLevel": 0, //二维码容错率:0表示15% M,1表示7% L,2表示30% H,3表示25% Q "textContentWrap": "clip" //文本换行:nowrap不换行, //clip不换行且隐藏,ellipsis不换行且省略 }, "printElementType": { "title": "资产名称", "type": "text" //text文本,qrcode二维码,barcode条码,image图片, //hline横线,vline竖线,rect矩形,oval椭圆 } }, { //第二个打印元素 "options": { "left": 46.5, "top": 16.5, "height": 33, "width": 33, "title": "二维码", "qrcodeType": "qrcode", "testData": "MQ01", "field": "qrcode", "textType": "qrcode", "qrCodeLevel": 3, "coordinateSync": false, "widthHeightSync": true, "hideTitle": true, "right": 79, "bottom": 49, "vCenter": 62, "hCenter": 33 }, "printElementType": { "title": "二维码", "type": "qrcode" } } ], "paperNumberLeft": 46.5, "paperNumberTop": 34, "paperNumberDisabled": true, "paperNumberContinue": true, //页码续排 "topOffset": 2, //顶部偏移 "leftOffset": 3, //左偏移 "fontFamily": "SimSun", //字体:Microsoft YaHei微软雅黑,SimSun宋体 "orient": 2, //纸张方向:1纵向,2横向 "watermarkOptions": { //水印 "content": "", "fillStyle": "rgba(184, 184, 184, 0.3)", "fontSize": "14px", "rotate": 25, "width": 200, "height": 200, "timestamp": false, "format": "YYYY-MM-DD HH:mm" }, "panelLayoutOptions": { //面板排列 "layoutType": "column", //排列方式 "layoutRowGap": 0, //垂直间距 "layoutColumnGap": 0 //水平间距 } }