Fix Bug #556: 就诊卡号/执行时间自动回显 + 去除冗余"套餐"文字

- 执行时间默认填充: initData() 和 resetForm() 中设置 executeTime = formatDateTime(new Date())
- isPackage判定统一: loadApplicationToForm() 中的 isPackage 判断与 loadCategoryItems() 保持一致

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-19 19:12:40 +08:00
committed by guanyu
parent 0e8fb32108
commit a7b09a0248
2 changed files with 57 additions and 2 deletions

View File

@@ -895,6 +895,8 @@ const initData = async () => {
// 申请单号在保存时由后端生成,此处显示"自动生成"
formData.applyNo = '自动生成'
// 执行时间默认填充当前系统时间
formData.executeTime = formatDateTime(new Date())
// 申请日期实时更新(启动定时器)
startApplyTimeTimer()
@@ -1547,7 +1549,7 @@ const resetForm = async () => {
visitNo: '',
specimenName: '血液',
encounterId: props.patientInfo.encounterId || '',
executeTime: null,
executeTime: formatDateTime(new Date()),
applicationType: 0,
})
selectedInspectionItems.value = []
@@ -1997,7 +1999,7 @@ const loadApplicationToForm = async (row) => {
// Bug #387修复: 套餐项目默认展开,并自动加载明细
selectedInspectionItems.value = detail.labApplyItemList.map(item => {
const itemId = item.activityId || item.itemId || item.id || Math.random().toString(36).substring(2, 11)
const isPackage = item.feePackageId != null || item.itemName?.includes('套餐')
const isPackage = item.feePackageId != null && item.feePackageId !== '' && item.feePackageId !== 'null' && item.packageName
return {
itemId: itemId,