患者档案和进货单bug

This commit is contained in:
2025-11-27 08:56:19 +08:00
parent 4120d4e001
commit e23d42404d
3 changed files with 849 additions and 28 deletions

View File

@@ -386,7 +386,15 @@
:prop="`localTableData.${scope.$index}.startTime`"
:rules="rules.startTime"
>
<span>
<el-date-picker
v-if="localTableData[scope.$index].isEditing"
v-model="localTableData[scope.$index].startTime"
type="date"
placeholder="请选择生产日期"
style="width: 180px"
value-format="YYYY-MM-DD"
/>
<span v-else-if="localTableData[scope.$index].isViewing">
{{ parseTime(localTableData[scope.$index].startTime, '{y}-{m}-{d}') || '' }}
</span>
</el-form-item>
@@ -396,7 +404,15 @@
<el-table-column prop="endTime" label="失效日期" width="180">
<template #default="scope">
<el-form-item :prop="`localTableData.${scope.$index}.endTime`" :rules="rules.endTime">
<span>
<el-date-picker
v-if="localTableData[scope.$index].isEditing"
v-model="localTableData[scope.$index].endTime"
type="date"
placeholder="请选择失效日期"
style="width: 180px"
value-format="YYYY-MM-DD"
/>
<span v-else-if="localTableData[scope.$index].isViewing">
{{ parseTime(localTableData[scope.$index].endTime, '{y}-{m}-{d}') || '' }}
</span>
</el-form-item>
@@ -1778,4 +1794,4 @@ defineExpose({
.table-container {
width: 100%;
}
</style>
</style>