解决门诊挂号退号费用性质不一致的bug

This commit is contained in:
Auora
2025-11-14 15:41:30 +08:00
parent 8b848f787a
commit 0610ba7cb5
5 changed files with 57 additions and 14 deletions

View File

@@ -572,7 +572,8 @@
:patientInfo="patientInfo"
:paymentId="paymentId"
:chargeItemIds="chargeItemIdList"
:feeType="(patientInfo && patientInfo.medfeePaymtdCode) || (form && form.value && form.value.contractNo) || ''"
:feeType="patientInfo.medfeePaymtdCode || ''"
:contractName="patientInfo.contractName || ''"
:medfee_paymtd_code="medfee_paymtd_code"
/>
<ReprintDialog
@@ -1208,7 +1209,11 @@ function handleReturn(row) {
totalAmount.value = row.totalPrice;
chargeItemIdList.value = row.chargeItemIds.split(',');
paymentId.value = row.paymentId;
console.log(paymentId.value);
// 从挂号记录中获取正确的费用性质
patientInfo.value.medfeePaymtdCode = row.contractNo; // 使用挂号记录中的费用性质代码
patientInfo.value.contractName = row.contractName; // 保存费用性质名称用于显示
console.log('退号费用性质:', row.contractNo, row.contractName);
}
function handleReturnRegister() {