From 0cdf332ee73509f847d2d34439673187fe9b191a Mon Sep 17 00:00:00 2001 From: chenqi Date: Wed, 18 Mar 2026 16:28:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(charge):=20=E4=BF=AE=E6=AD=A3=E6=94=B6?= =?UTF-8?q?=E8=B4=B9=E5=B0=8F=E7=A5=A8=E6=89=93=E5=8D=B0=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E5=8F=82=E6=95=B0=E5=BC=95=E7=94=A8=E9=94=99?= =?UTF-8?q?=E8=AF=AF=20BUG#217?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将打印日志中的 chargeItem 参数更正为 chargedItems - 修复数据处理逻辑中使用错误的参数名 chargeItem - 添加注册号 regNo 字段到打印数据对象 - 修正机构名称拼接时可能出现的空值问题 - 将患者姓名字段从 name 更正为 patientName 以保持一致性 --- .../charge/cliniccharge/components/chargeDialog.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/openhis-ui-vue3/src/views/charge/cliniccharge/components/chargeDialog.vue b/openhis-ui-vue3/src/views/charge/cliniccharge/components/chargeDialog.vue index e4ecad17..c15dfc6c 100644 --- a/openhis-ui-vue3/src/views/charge/cliniccharge/components/chargeDialog.vue +++ b/openhis-ui-vue3/src/views/charge/cliniccharge/components/chargeDialog.vue @@ -253,7 +253,7 @@ const getUnitLabel = (unitCode) => { async function printReceipt(param) { // 打印收费小票数据 - console.log('打印收费小票数据:', param.chargeItem); + console.log('打印收费小票数据:', param.chargedItems); // console.log('!!!!!!!!!选中的收费项目:', param.chargedItems); console.log('患者信息:', props.patientInfo); // formData.totalAmount = props.totalAmount; @@ -271,7 +271,7 @@ async function printReceipt(param) { try { // 处理param.chargedItems,添加quantityWithUnit字段 - const processedChargeItems = (param.chargeItem || []).map((item) => { + const processedChargeItems = (param.chargedItems || []).map((item) => { // 获取单位标签 const unitLabel = getUnitLabel(item.quantityUnit); // 拼接数量和单位 @@ -532,18 +532,19 @@ async function printReceipt(param) { })(), Mr_QR_Code: param.regNo, + regNo: param.regNo || '', sex: props.patientInfo?.genderEnum_enumText || '', age: props.patientInfo?.age || '', personType: param.contractName, - fixmedinsName: param.fixmedinsName + '门诊收费明细', + fixmedinsName: (param.fixmedinsName || '') + '门诊收费明细', //电子收据二维码 pictureUrl: param.pictureUrl || 'https://chinaebill.com/img/xiaochengxu.png', // 添加本地患者信息,注意安全访问 - name: props.patientInfo?.patientName || '', + patientName: props.patientInfo?.patientName || '', gender: props.patientInfo?.genderEnum_enumText || '', encounterBusNo: props.patientInfo?.encounterBusNo || '', currentDate: currentDate.value,