|
@@ -491,8 +491,8 @@
|
|
|
<el-form-item label="建档医生" prop="creatId">
|
|
|
<div v-if="ruleForm.creatId !== '99999'">
|
|
|
<el-select-v2 disabled v-model="ruleForm.creatId" clearable remote
|
|
|
- style="width: 100%" filterable :options="empList" :remote-method="empMethod"
|
|
|
- placeholder="请选择建档医生">
|
|
|
+ style="width: 100%" filterable :options="creatList"
|
|
|
+ :remote-method="creatMethod" placeholder="请选择建档医生">
|
|
|
<template #default="{ item }">
|
|
|
<span style="margin-right: 8px">{{ item.label }}</span>
|
|
|
<span style="color: var(--el-text-color-secondary); font-size: 13px">
|
|
@@ -503,7 +503,7 @@
|
|
|
</div>
|
|
|
<div v-else>
|
|
|
<el-select-v2 v-model="ruleForm.creatId" clearable remote style="width: 100%"
|
|
|
- filterable :options="empList" :remote-method="empMethod"
|
|
|
+ filterable :options="creatList" :remote-method="creatMethod"
|
|
|
placeholder="请选择建档医生">
|
|
|
<template #default="{ item }">
|
|
|
<span style="margin-right: 8px">{{ item.label }}</span>
|
|
@@ -564,6 +564,7 @@ const userCode = store.state.user.info.code
|
|
|
const userName = store.state.user.info.name
|
|
|
let dics: any = ref({})
|
|
|
const empList = ref([])
|
|
|
+const creatList = ref([])
|
|
|
const provinceData = ref([{ code: '', name: '' }])
|
|
|
const cityData = ref([{ code: '', name: '' }])
|
|
|
const countyData = ref([{ code: '', name: '' }])
|
|
@@ -575,6 +576,7 @@ onMounted(async () => {
|
|
|
cityData.value = cityList
|
|
|
countyData.value = countyList
|
|
|
empMethod('')
|
|
|
+ creatMethod('')
|
|
|
ruleForm.value.creatId = userCode
|
|
|
})
|
|
|
|
|
@@ -586,6 +588,12 @@ const empMethod = async (val: string) => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+const creatMethod = async (val: string) => {
|
|
|
+ await employeeList(val).then((res: any) => {
|
|
|
+ creatList.value = res
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
interface RuleForm {
|
|
|
pId: string
|
|
|
pName: string
|
|
@@ -777,27 +785,6 @@ const rulesAll = reactive<FormRules<RuleForm>>({
|
|
|
visitDate: [
|
|
|
{ required: true, message: '请选择下次随访时间', trigger: 'change' },
|
|
|
],
|
|
|
- height: [
|
|
|
- { max: 10, message: '不超过10个字符', trigger: 'blur' },
|
|
|
- ],
|
|
|
- weight: [
|
|
|
- { max: 10, message: '不超过10个字符', trigger: 'blur' },
|
|
|
- ],
|
|
|
- temperature: [
|
|
|
- { max: 10, message: '不超过10个字符', trigger: 'blur' },
|
|
|
- ],
|
|
|
- bloodSugar: [
|
|
|
- { max: 10, message: '不超过10个字符', trigger: 'blur' },
|
|
|
- ],
|
|
|
- heartRate: [
|
|
|
- { max: 10, message: '不超过10个字符', trigger: 'blur' },
|
|
|
- ],
|
|
|
- bloodPressureLow: [
|
|
|
- { max: 10, message: '不超过10个字符', trigger: 'blur' },
|
|
|
- ],
|
|
|
- bloodPressureHigh: [
|
|
|
- { max: 10, message: '不超过10个字符', trigger: 'blur' },
|
|
|
- ],
|
|
|
})
|
|
|
|
|
|
const isQueryBrInfo = ref(true)
|
|
@@ -883,6 +870,8 @@ const addForm = (formEl: FormInstance | undefined) => {
|
|
|
isEditForm.value = false
|
|
|
}
|
|
|
keyCode.value = ''
|
|
|
+ empMethod('')
|
|
|
+ creatMethod('')
|
|
|
ruleForm.value.creatId = userCode
|
|
|
}
|
|
|
|
|
@@ -942,6 +931,8 @@ const resetForm = (formEl: FormInstance | undefined) => {
|
|
|
isEditForm.value = false
|
|
|
}
|
|
|
keyCode.value = ''
|
|
|
+ empMethod('')
|
|
|
+ creatMethod('')
|
|
|
ruleForm.value.creatId = userCode
|
|
|
}
|
|
|
|