治疗记录

This commit is contained in:
2025-07-21 19:28:30 +08:00
parent 33c50feaa9
commit fb02363541
3 changed files with 586 additions and 254 deletions

View File

@@ -29,7 +29,7 @@
<el-row :gutter="20">
<el-col :span="8">
<div class="info-item">
<strong>羊只类别</strong>{{ sheepInfo.name || '' }}
<strong>羊只类别</strong>{{ sheepInfo.sheepType || '' }}
</div>
</el-col>
<el-col :span="8">
@@ -52,12 +52,12 @@
</el-col>
<el-col :span="8">
<div class="info-item">
<strong>怀孕天数</strong>{{ sheepInfo.gestationDay ?? '' }} &nbsp;
<strong>怀孕天数</strong>{{ sheepInfo.gestDay ?? '' }} &nbsp;
</div>
</el-col>
<el-col :span="8">
<div class="info-item">
<strong>泌乳天数</strong>{{ sheepInfo.lactationDay ?? '' }} &nbsp;
<strong>泌乳天数</strong>{{ sheepInfo.lactDay ?? '' }} &nbsp;
</div>
</el-col>
</el-row>
@@ -67,8 +67,8 @@
class="treatment-form">
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="事件日期" prop="eventDate">
<el-date-picker v-model="form.eventDate" type="date" placeholder="选择日期" style="width:100%" />
<el-form-item label="事件日期" prop="datetime">
<el-date-picker v-model="form.datetime" type="date" placeholder="选择日期" style="width:100%" />
</el-form-item>
</el-col>
<el-col :span="12">
@@ -218,12 +218,12 @@ const sheepInfo = ref({
sheepNo: null,
gender: '',
variety: '',
name: '',
sheepType: '',
monthAge: null,
parity: null,
breed: '',
lactationDay: null,
gestationDay: null
lactDay: null,
gestDay: null
})
const units = ref([]) // 单位下拉选项
@@ -265,12 +265,12 @@ function getSheepInfo() {
sheepNo: data.bsManageTags,
gender: data.gender,
variety: data.variety,
name: data.name,
sheepType: data.name,
monthAge: data.monthAge,
parity: data.parity,
breed: data.breed,
lactationDay: data.lactationDay,
gestationDay: data.gestationDay,
lactDay: data.lactationDay,
gestDay: data.gestationDay,
}
})
}
@@ -332,7 +332,7 @@ function handleDiseaseTypeChange(parentId) {
const form = reactive({
eventType: '诊疗',
eventDate: new Date(), // 默认今天
datetime: new Date(), // 默认今天
diseaseParentId: null, // 疾病大类
diseaseSubtype: null, // 疾病子类型
veterinarian: '',
@@ -374,7 +374,7 @@ function submitForm() {
const submitData = {
...sheepInfo.value,
...form,
eventDate: form.eventDate ? new Date(form.eventDate).getTime() : null,
datetime: form.datetime ? new Date(form.datetime).getTime() : null,
usageDetails: swPresDetailList.value.map(item => ({
mediId: item.mediId,
dosage: item.dosage,