问诊类型

This commit is contained in:
zoujiandong 2023-10-25 13:37:48 +08:00
parent dc261b418c
commit 087b0a3663

View File

@ -8,29 +8,8 @@
:footer="false"
@cancel="handleClose"
>
<div class="titlebox">
<div class="bar"></div>
<div class="name">添加医生</div>
</div>
<a-form :model="modalForm" ref="modalFormRefConfig" :auto-label-width="true" :rules="rules">
<a-row :gutter="24" style="margin-top: 35px">
<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-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>
<span v-else :title="item.user_name"> {{item.user_name}}</span>
</a-option>
</a-select>
</a-space>
</a-form-item>
</a-col>
</a-row>
<a-divider />
<div class="titlebox">
<div class="bar"></div>
<div class="name">问诊类型</div>
@ -54,6 +33,30 @@
</a-form-item>
</a-col>
</a-row>
<a-divider />
<div class="titlebox">
<div class="bar"></div>
<div class="name">添加医生</div>
</div>
<a-row :gutter="24" style="margin-top: 35px">
<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-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>
<span v-else :title="item.user_name"> {{item.user_name}}</span>
</a-option>
</a-select>
</a-space>
</a-form-item>
</a-col>
</a-row>
<a-divider />
<!-- <div class="typebox" v-if="toggleType">
@ -231,6 +234,7 @@ import { formatDoctorTitle } from '@/utils/format';
import { parseTime } from '@/utils/parseTime';
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
const { proxy } = getCurrentInstance();
let multi_point_status='';
const props = defineProps({
//
modalVisible: {
@ -284,12 +288,28 @@ const handleDetail=(id)=>{
}
})
}
};
const handleDoctorList=(value)=>{
loading.value=true;
getDoctorList({
user_name:value
}).then(data=>{
let formData=null;
if(modalForm.inquiry_type==4){
formData={
user_name:value,
idcard_status:1,
iden_auth_status:1,
is_bind_bank:1,
multi_point_status: 1
}
}else{
formData= {
user_name:value,
idcard_status:1,
iden_auth_status:1,
is_bind_bank:1,
}
}
getDoctorList(formData).then(data=>{
if(data.code=200){
doctorData.value=data.data;
if(!value){
@ -408,6 +428,7 @@ const changeType=(value)=>{
}else{
toggleType.value=false
};
doctorData.value=[];
modalForm.doctor_inquiry_time=[];
modalForm.inquiry_price=null;
slect_all_date.value=[];