新增功能

This commit is contained in:
Your Name
2026-03-14 11:16:04 +08:00
parent eb283f008b
commit 4ddee40675
264 changed files with 5039 additions and 2813 deletions
+15 -5
View File
@@ -21,16 +21,16 @@
<!-- 基本信息 -->
<el-divider content-position="left">基本信息</el-divider>
<el-form-item label="患者ID">
<el-form-item label="诊单ID">
<el-input v-model="formData.patient_id" disabled placeholder="系统自动生成" />
</el-form-item>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="患者姓名" prop="patient_name">
<el-form-item label="姓名" prop="patient_name">
<el-input
v-model="formData.patient_name"
placeholder="请输入患者姓名"
placeholder="请输入姓名"
/>
</el-form-item>
</el-col>
@@ -94,6 +94,7 @@
</el-col>
</el-row>
<!-- 生命体征 -->
<el-divider content-position="left">生命体征</el-divider>
@@ -589,6 +590,7 @@
</div>
</template>
</el-drawer>
</div>
</template>
@@ -596,7 +598,9 @@
import { tcmDiagnosisAdd, tcmDiagnosisEdit, tcmDiagnosisDetail, checkPhone, checkIdCard } from '@/api/tcm'
import { getDictData } from '@/api/app'
import feedback from '@/utils/feedback'
import useUserStore from '@/stores/modules/user'
import { ElMessage } from 'element-plus'
import { QuestionFilled } from '@element-plus/icons-vue'
import BloodRecordList from './components/BloodRecordList.vue'
const emit = defineEmits(['success'])
@@ -659,7 +663,8 @@ const formData = ref({
prescription: '',
doctor_advice: '',
remark: '',
status: 1
status: 1,
external_userid: ''
})
// 自定义验证规则
@@ -832,6 +837,9 @@ const open = async (type: string, id?: number) => {
if (type === 'edit' && id) {
const data = await tcmDiagnosisDetail({ id })
formData.value = data
} else if (type === 'add') {
const userStore = useUserStore()
formData.value.assistant_id = userStore.userInfo?.id || ''
}
}
@@ -917,7 +925,8 @@ const handleClose = () => {
prescription: '',
doctor_advice: '',
remark: '',
status: 1
status: 1,
external_userid: ''
}
visible.value = false
}
@@ -1082,4 +1091,5 @@ defineExpose({
.el-select-dropdown {
z-index: 3000 !important;
}
</style>