diff --git a/src/views/summary/print/template.js b/src/views/summary/print/template.js index d979806..14c5636 100644 --- a/src/views/summary/print/template.js +++ b/src/views/summary/print/template.js @@ -1607,6 +1607,7 @@ export default { panels: [ +/* { "index": 0, "name": 1, @@ -1632,7 +1633,7 @@ export default { "type": "text" } }, - /* { + /!* { "options": { "left": 36, "top": 21, @@ -1659,7 +1660,7 @@ export default { "printElementType": { "type": "text" } - },*/ + },*!/ { "options": { "left": 174, @@ -3192,6 +3193,7 @@ export default { "watermarkOptions": {}, "panelLayoutOptions": {} }, +*/ { "index": 1, "name": 2, @@ -3200,33 +3202,6 @@ export default { "paperHeader": 105, "paperFooter": 780, "printElements": [ - /*{ - "options": { - "left": 49.5, - "top": 12, - "height": 43, - "width": 51, - "testData": "123123", - "field": "qrcode", - "textType": "qrcode" - }, - "printElementType": { - "title": "自定义文本", - "type": "text" - } - }, - { - "options": { - "left": 100.5, - "top": 13.5, - "height": 40.5, - "width": 16.5, - "title": "扫码关注" - }, - "printElementType": { - "type": "text" - } - },*/ { "options": { "left": 460.5, @@ -3289,20 +3264,6 @@ export default { "type": "text" } }, - { - "options": { - "left": 49.5, - "top": 67.5, - "height": 9.75, - "width": 73.5, - "title": "姓名", - "field": "pname", - "testData": "张三" - }, - "printElementType": { - "type": "text" - } - }, { "options": { "left": 379.5, @@ -3317,6 +3278,20 @@ export default { "type": "text" } }, + { + "options": { + "left": 49.5, + "top": 67.5, + "height": 9.75, + "width": 73.5, + "title": "姓名", + "field": "pname", + "testData": "张三" + }, + "printElementType": { + "type": "text" + } + }, { "options": { "left": 265.5, @@ -3357,7 +3332,58 @@ export default { }, { "options": { - "left": 331.5, + "left": 553.5, + "top": 111.75, + "height": 12, + "width": 25.5, + "title": "kg/㎡", + "right": 570, + "bottom": 147, + "vCenter": 557.25, + "hCenter": 142.125, + "coordinateSync": false, + "widthHeightSync": false, + "qrCodeLevel": 0 + }, + "printElementType": { + "type": "text" + } + }, + { + "options": { + "left": 396, + "top": 114, + "height": 9.75, + "width": 16.5, + "title": "CM" + }, + "printElementType": { + "type": "text" + } + }, + { + "options": { + "left": 442.5, + "top": 114, + "height": 9.75, + "width": 70.5, + "title": "体质指数(BIM)", + "field": "Hips", + "coordinateSync": false, + "widthHeightSync": false, + "qrCodeLevel": 0, + "right": 510.75, + "bottom": 123.75, + "vCenter": 477, + "hCenter": 118.875 + }, + "printElementType": { + "type": "text" + } + }, + { + "options": { + "left": 325.5, "top": 114, "height": 9.75, "width": 60, @@ -3370,44 +3396,7 @@ export default { }, { "options": { - "left": 454.5, - "top": 114, - "height": 9.75, - "width": 67.5, - "title": "臀围", - "field": "Hips" - }, - "printElementType": { - "type": "text" - } - }, - { - "options": { - "left": 531, - "top": 114, - "height": 9.75, - "width": 16.5, - "title": "CM" - }, - "printElementType": { - "type": "text" - } - }, - { - "options": { - "left": 400.5, - "top": 114, - "height": 9.75, - "width": 16.5, - "title": "CM" - }, - "printElementType": { - "type": "text" - } - }, - { - "options": { - "left": 264, + "left": 262.5, "top": 115.5, "height": 9.75, "width": 27, @@ -3419,12 +3408,16 @@ export default { }, { "options": { - "left": 193.5, + "left": 189, "top": 115.5, "height": 9.75, - "width": 64.5, + "width": 28.5, "title": "体重", - "field": "weight" + "field": "weight", + "right": 268.5, + "bottom": 124.5, + "vCenter": 236.25, + "hCenter": 119.625 }, "printElementType": { "type": "text" @@ -3432,7 +3425,7 @@ export default { }, { "options": { - "left": 127.5, + "left": 115.5, "top": 115.5, "height": 9.75, "width": 16.5, @@ -3444,7 +3437,7 @@ export default { }, { "options": { - "left": 51, + "left": 39, "top": 115.5, "height": 9.75, "width": 75, @@ -3457,10 +3450,22 @@ export default { }, { "options": { - "left": 351, + "left": 507.75, + "top": 122.25, + "height": 9, + "width": 48, + "borderWidth": 0.75 + }, + "printElementType": { + "type": "hline" + } + }, + { + "options": { + "left": 349.5, "top": 123, "height": 9, - "width": 49.5, + "width": 45, "borderWidth": 0.75 }, "printElementType": { @@ -3469,10 +3474,10 @@ export default { }, { "options": { - "left": 478.5, - "top": 123, + "left": 212.25, + "top": 123.75, "height": 9, - "width": 52.5, + "width": 48, "borderWidth": 0.75 }, "printElementType": { @@ -3481,19 +3486,7 @@ export default { }, { "options": { - "left": 216, - "top": 124.5, - "height": 9, - "width": 46.5, - "borderWidth": 0.75 - }, - "printElementType": { - "type": "hline" - } - }, - { - "options": { - "left": 73.5, + "left": 63, "top": 124.5, "height": 9, "width": 51, @@ -3505,12 +3498,15 @@ export default { }, { "options": { - "left": 193.5, - "top": 138, + "left": 553.5, + "top": 136.5, "height": 9.75, - "width": 69, - "title": "心率", - "field": "heartRate" + "width": 25.5, + "title": "次/分", + "right": 570, + "bottom": 147, + "vCenter": 557.25, + "hCenter": 142.125 }, "printElementType": { "type": "text" @@ -3518,7 +3514,28 @@ export default { }, { "options": { - "left": 265.5, + "left": 325.5, + "top": 138, + "height": 9.75, + "width": 60, + "title": "体温", + "field": "height", + "qid": "height_1", + "right": 407.25, + "bottom": 149.25, + "vCenter": 369.75, + "hCenter": 144.375, + "coordinateSync": false, + "widthHeightSync": false, + "qrCodeLevel": 0 + }, + "printElementType": { + "type": "text" + } + }, + { + "options": { + "left": 264, "top": 138, "height": 9.75, "width": 25.5, @@ -3530,7 +3547,63 @@ export default { }, { "options": { - "left": 129, + "left": 396, + "top": 138, + "height": 9.75, + "width": 16.5, + "title": "°C", + "right": 443.25, + "bottom": 149.25, + "vCenter": 435, + "hCenter": 144.375, + "coordinateSync": false, + "widthHeightSync": false, + "qrCodeLevel": 0 + }, + "printElementType": { + "type": "text" + } + }, + { + "options": { + "left": 189, + "top": 138, + "height": 9.75, + "width": 28.5, + "title": "脉率", + "field": "heartRate", + "coordinateSync": false, + "widthHeightSync": false, + "qrCodeLevel": 0 + }, + "printElementType": { + "type": "text" + } + }, + { + "options": { + "left": 465, + "top": 138, + "height": 9.75, + "width": 46.5, + "title": "呼吸频率", + "field": "heartRate", + "coordinateSync": false, + "widthHeightSync": false, + "qrCodeLevel": 0, + "qid": "heartRate_1", + "right": 523.5, + "bottom": 147, + "vCenter": 489, + "hCenter": 142.125 + }, + "printElementType": { + "type": "text" + } + }, + { + "options": { + "left": 115.5, "top": 139.5, "height": 9.75, "width": 33, @@ -3542,7 +3615,7 @@ export default { }, { "options": { - "left": 51, + "left": 39, "top": 139.5, "height": 9.75, "width": 75, @@ -3555,8 +3628,8 @@ export default { }, { "options": { - "left": 216, - "top": 147, + "left": 506.25, + "top": 146.25, "height": 9, "width": 48, "borderWidth": 0.75 @@ -3567,7 +3640,31 @@ export default { }, { "options": { - "left": 75, + "left": 213, + "top": 147.75, + "height": 9, + "width": 48, + "borderWidth": 0.75 + }, + "printElementType": { + "type": "hline" + } + }, + { + "options": { + "left": 350.5, + "top": 148, + "height": 9, + "width": 45, + "borderWidth": 0.75 + }, + "printElementType": { + "type": "hline" + } + }, + { + "options": { + "left": 64.5, "top": 148.5, "height": 9, "width": 51, @@ -3961,6 +4058,22 @@ export default { "type": "vline" } }, + { + "options": { + "left": 37.5, + "top": 297, + "height": 69, + "width": 9, + "right": 48, + "bottom": 394.5, + "vCenter": 43.5, + "hCenter": 349.5 + }, + "printElementType": { + "title": "竖线", + "type": "vline" + } + }, { "options": { "left": 237, @@ -3977,6 +4090,23 @@ export default { "type": "vline" } }, + { + "options": { + "left": 37.5, + "top": 297, + "height": 9, + "width": 541.5, + "borderWidth": 0.75, + "right": 126.75, + "bottom": 324, + "vCenter": 81.75, + "hCenter": 319.5 + }, + "printElementType": { + "title": "横线", + "type": "hline" + } + }, { "options": { "left": 352.5, @@ -4009,22 +4139,6 @@ export default { "type": "vline" } }, - { - "options": { - "left": 37.5, - "top": 297, - "height": 69, - "width": 9, - "right": 48, - "bottom": 394.5, - "vCenter": 43.5, - "hCenter": 349.5 - }, - "printElementType": { - "title": "竖线", - "type": "vline" - } - }, { "options": { "left": 579, @@ -4041,23 +4155,6 @@ export default { "type": "vline" } }, - { - "options": { - "left": 37.5, - "top": 297, - "height": 9, - "width": 541.5, - "borderWidth": 0.75, - "right": 126.75, - "bottom": 324, - "vCenter": 81.75, - "hCenter": 319.5 - }, - "printElementType": { - "title": "横线", - "type": "hline" - } - }, { "options": { "left": 37.5, @@ -4214,12 +4311,16 @@ export default { { "options": { "left": 385.5, - "top": 564, - "height": 15, + "top": 565.5, + "height": 12, "width": 58.5, "title": "确定签名:", "fontSize": 10.5, - "lineHeight": 10.5 + "lineHeight": 10.5, + "coordinateSync": false, + "widthHeightSync": false, + "textContentVerticalAlign": "bottom", + "qrCodeLevel": 0 }, "printElementType": { "type": "text" @@ -4246,8 +4347,7 @@ export default { "title": "体检报告获取方式(仅限于个检)", "fontSize": 15, "fontWeight": "bold", - "lineHeight": 15, - + "lineHeight": 15 }, "printElementType": { "type": "text" @@ -4279,7 +4379,7 @@ export default { }, { "options": { - "left": 402, + "left": 234, "top": 650, "height": 12, "width": 12 @@ -4290,7 +4390,7 @@ export default { }, { "options": { - "left": 234, + "left": 402, "top": 650, "height": 12, "width": 12 @@ -4325,11 +4425,11 @@ export default { }, { "options": { - "left": 78, + "left": 250.5, "top": 651, "height": 9.75, "width": 120, - "title": "E-mail邮件发送" + "title": "销售经理转送" }, "printElementType": { "type": "text" @@ -4337,11 +4437,11 @@ export default { }, { "options": { - "left": 250.5, + "left": 78, "top": 651, "height": 9.75, "width": 120, - "title": "销售经理转送" + "title": "E-mail邮件发送" }, "printElementType": { "type": "text" @@ -4462,5 +4562,6 @@ export default { "watermarkOptions": {}, "panelLayoutOptions": {} } - ] + + ] }