| | |
| | | import { DevRentApi, DevRentVO } from '@/api/ecg/devrent' |
| | | import {QueueVO} from "@/api/ecg/queue"; |
| | | import {isStringEmpty} from "@/utils/stringUtil"; |
| | | import {dateFormatter, timeFormatter} from "@/utils/formatTime"; |
| | | import {dateFormatter} from "@/utils/formatTime"; |
| | | import {JobRecordApi, JobRecordVO} from "@/api/ecg/jobrecord"; |
| | | import {DeviceApi, DeviceVO} from "@/api/ecg/devmanage"; |
| | | import {curDayEnd, curDayStart} from "@/utils/dateUtil"; |
| | | import {PatientStatisticVO, RoomBedVO} from "@/api/ecg/doctor"; |
| | | import {RoomBedVO} from "@/api/ecg/doctor"; |
| | | import {hiprint, defaultElementTypeProvider} from "vue-plugin-hiprint" |
| | | |
| | | /** 设备领用 表单 */ |
| | | defineComponent({ name: 'DevReadyPanel' }) |
| | |
| | | } |
| | | |
| | | const printBill = async () => { |
| | | ElNotification({ |
| | | title: '温馨提示', |
| | | message: '待实现!', |
| | | type: 'warning' |
| | | }) |
| | | // ElNotification({ |
| | | // title: '温馨提示', |
| | | // message: '待实现!', |
| | | // type: 'warning' |
| | | // }) |
| | | |
| | | // 引入后使用示例 |
| | | hiprint.init({ |
| | | // host: 'http://192.168.2.100:17521', |
| | | token: '111111' |
| | | }); |
| | | // 下列方法都是没有拖拽设计页面的, 相当于代码模式, 使用代码设计页面 |
| | | // 想要实现拖拽设计页面,请往下看 '自定义设计' |
| | | var hiprintTemplate = new hiprint.PrintTemplate(); // 可传参数 |
| | | var panel = hiprintTemplate.addPrintPanel({ width: 100, height: 130, paperFooter: 340, paperHeader: 10 }); |
| | | //文本 |
| | | panel.addPrintText({ options: { width: 140, height: 15, top: 20, left: 20, title: 'hiprint插件手动添加text', textAlign: 'center' } }); |
| | | //条形码 |
| | | panel.addPrintText({ options: { width: 140, height: 35, top: 40, left: 20, title: '123456', textType: 'barcode' } }); |
| | | //二维码 |
| | | panel.addPrintText({ options: { width: 35, height: 35, top: 40, left: 165, title: '123456', textType: 'qrcode' } }); |
| | | //长文本 |
| | | panel.addPrintLongText({ options: { width: 180, height: 35, top: 90, left: 20, title: '长文本:hiprint是一个很好的webjs打印,浏览器在的地方他都可以运行' } }); |
| | | //打印 |
| | | hiprintTemplate.print2({}); // 可以传 [定位参数] http://https://ccsimple.github.io/sv-print-docs/config/template.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E8%AE%BE%E8%AE%A1%E4%BD%BF%E7%94%A8%E7%A4%BA%E4%BE%8B |
| | | } |
| | | /* 分页打印 |
| | | HiPrint.print({ |
| | | pages: [ |
| | | { |
| | | text: 'Hello World!' |
| | | }, |
| | | { |
| | | html: '<div><h1>Hello World!</h1></div>', |
| | | pageBreak: true |
| | | }, |
| | | { |
| | | image: 'image.png' |
| | | } |
| | | ] |
| | | }); |
| | | */ |
| | | |
| | | const getDevInfo = async () => { |
| | | deviceInfo.value.category = '' |