This commit is contained in:
zoujiandong 2023-10-25 14:28:27 +08:00
parent 087b0a3663
commit 56f8373650

View File

@ -42,8 +42,8 @@
<a-col :span="12">
<a-form-item field="doctor_id" :hide-label="true">
<a-space direction="vertical" size="large">
<a-select :style="{width:'420px'}" allow-search placeholder="请输入医生姓名" :disabled="inquiry_config_id?true:false" v-model="modalForm.doctor_id" allow-clear
:loading="loading" @change="changeDoctor" @search="handleDoctorList">
<a-select :style="{width:'420px'}" allow-search placeholder="请输入医生姓名" :disabled="(inquiry_config_id || !modalForm.inquiry_type)?true:false" v-model="modalForm.doctor_id" allow-clear
:loading="loading" @change="changeDoctor" @search="handleDoctorList" @click="isHasType">
<a-option size="large" style="max-width:500px" v-for="item in doctorData" :key="item.hospital_id"
:value="item.doctor_id" :label="item.user_name">
<span v-if="item.doctor_title || item.hospital_name || item.department_custom_name" :title="item.user_name+'('+formatDoctorTitle(item.doctor_title)+'—'+item.hospital_name+'—'+item.department_custom_name+')'"> {{item.user_name+'('+formatDoctorTitle(item.doctor_title)+''+item.hospital_name+''+item.department_custom_name+')'}}</span>
@ -429,6 +429,7 @@ const changeType=(value)=>{
toggleType.value=false
};
doctorData.value=[];
modalForm.doctor_id='';
modalForm.doctor_inquiry_time=[];
modalForm.inquiry_price=null;
slect_all_date.value=[];
@ -473,6 +474,11 @@ const handleClose = () => {
emits('familyVisibleChange', false);
};
const isHasType=()=>{
if(!modalForm.inquiry_type){
proxy.$message.error('请先选择问诊类型');
}
};
const handleSubmit=()=>{
proxy.$refs.modalFormRefConfig.validate(async (valid) => {