{ "panels": [{ //面板 "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 //水平間距 } }] }?
{
"panels": [{ //面板
"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橢圓
}
{ //第二個打印元素
"left": 46.5,
"top": 16.5,
"height": 33,
"width": 33,
"title": "二維碼",
"qrcodeType": "qrcode",
"testData": "MQ01",
"field": "qrcode",
"textType": "qrcode",
"qrCodeLevel": 3,
"widthHeightSync": true,
"hideTitle": true,
"right": 79,
"bottom": 49,
"vCenter": 62,
"hCenter": 33
"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 //水平間距
}]