|  |  |  | 
|---|
|  |  |  | import {AppointmentApi, AppointmentVO} from "@/api/ecg/appointment"; | 
|---|
|  |  |  | import { useCheckTypeStoreWithOut } from '@/store/modules/checkType' | 
|---|
|  |  |  | import {PrefixInteger} from "@/utils/formatter"; | 
|---|
|  |  |  | import {calGender, getBookBeginTime} from "@/utils"; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** 设备领用 表单 */ | 
|---|
|  |  |  | defineComponent({ name: 'DevReadyPanel' }) | 
|---|
|  |  |  | 
|---|
|  |  |  | // 想要实现拖拽设计页面,请往下看 '自定义设计' | 
|---|
|  |  |  | var hiprintTemplate = new hiprint.PrintTemplate();  // 可传参数 | 
|---|
|  |  |  | //var panel = hiprintTemplate.addPrintPanel({ width: 100, height: 130, paperFooter: 340, paperHeader: 10 }); 导致走三页 | 
|---|
|  |  |  | var panel = hiprintTemplate.addPrintPanel({ width: 140, height: 130}); | 
|---|
|  |  |  | var panel = hiprintTemplate.addPrintPanel({ width: 140, height: 130, paperNumberDisabled:true}); | 
|---|
|  |  |  | //文本 | 
|---|
|  |  |  | const checkTypeName = checkTypeStore.getCheckTypeName(curAppointment.bookCheckType) | 
|---|
|  |  |  | panel.addPrintText({ options: { width: 140, height: 12, top: 2, left: 20, title: checkTypeName, textAlign: 'center', fontSize: 8, fontFamily: '微软雅黑',  fontWeight: '700', } }); | 
|---|
|  |  |  | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | */ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const getBookBeginTime = (bookTimeslot: number): string => { | 
|---|
|  |  |  | const hour = parseInt( bookTimeslot/1000000 ); | 
|---|
|  |  |  | const minute = parseInt( bookTimeslot/10000 ) % 100; | 
|---|
|  |  |  | return PrefixInteger(hour,2) + ":" + PrefixInteger(minute, 2); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const calGender = (_gender: number): string => { | 
|---|
|  |  |  | if (1 === _gender) | 
|---|
|  |  |  | return "男" | 
|---|
|  |  |  | else | 
|---|
|  |  |  | return "女" | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const getDevInfo = async () => { | 
|---|
|  |  |  | deviceInfo.value.category = '' | 
|---|