门诊医生站-》开立诊断 页面调整
This commit is contained in:
@@ -1436,8 +1436,11 @@ function handlePrintPreview() {
|
||||
console.log("打印数据:", printData);
|
||||
|
||||
// 创建打印模板实例
|
||||
const printElements = JSON.parse(
|
||||
JSON.stringify(templateJson).replace(/{{HOSPITAL_NAME}}/g, userUserStore.hospitalName)
|
||||
);
|
||||
const hiprintTemplate = new hiprint.PrintTemplate({
|
||||
template: templateJson,
|
||||
template: printElements,
|
||||
});
|
||||
|
||||
// 打开预览窗口(推荐)
|
||||
@@ -1515,8 +1518,11 @@ function handleDirectPrint() {
|
||||
console.log("打印数据:", printData);
|
||||
|
||||
// 创建打印模板实例
|
||||
const printElements = JSON.parse(
|
||||
JSON.stringify(templateJson).replace(/{{HOSPITAL_NAME}}/g, userUserStore.hospitalName)
|
||||
);
|
||||
const hiprintTemplate = new hiprint.PrintTemplate({
|
||||
template: templateJson,
|
||||
template: printElements,
|
||||
});
|
||||
|
||||
// 直接打印到指定打印机
|
||||
@@ -1591,8 +1597,11 @@ function handlePrintWithSelectPrinter() {
|
||||
console.log("打印数据:", printData);
|
||||
|
||||
// 创建打印模板实例
|
||||
const printElements = JSON.parse(
|
||||
JSON.stringify(templateJson).replace(/{{HOSPITAL_NAME}}/g, userUserStore.hospitalName)
|
||||
);
|
||||
const hiprintTemplate = new hiprint.PrintTemplate({
|
||||
template: templateJson,
|
||||
template: printElements,
|
||||
});
|
||||
|
||||
// 获取打印机列表并选择
|
||||
|
||||
Reference in New Issue
Block a user