按钮权限
This commit is contained in:
parent
5b4916e453
commit
45da0d1699
@ -17,12 +17,12 @@
|
||||
<a-col :span="12">
|
||||
<a-form-item field="doctor_id" :hide-label="true">
|
||||
<a-space direction="vertical" size="large">
|
||||
<a-select :style="{width:'400px'}" allow-search placeholder="请选择医生" :disabled="inquiry_config_id?true:false" v-model="modalForm.doctor_id" allow-clear
|
||||
<a-select :style="{width:'320px'}" 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"> {{item.user_name+'('+formatDoctorTitle(item.doctor_title)+item.hospital_name+item.department_custom_name+')'}}</span>
|
||||
<span v-else> {{item.user_name}}</span>
|
||||
<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>
|
||||
@ -164,7 +164,7 @@
|
||||
mode="button"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item field="inquiry_price" :hide-label="true" :rules="[{ required:true, message: '请添加问诊时间' }]" v-if="modalForm.inquiry_type==3">
|
||||
<a-form-item field="inquiry_price" :hide-label="true" :rules="[{ required:true, message: '请选择问诊价格' }]" v-if="modalForm.inquiry_type==3">
|
||||
<a-select
|
||||
v-model="modalForm.inquiry_price"
|
||||
placeholder="请选择问诊价格"
|
||||
@ -213,7 +213,7 @@
|
||||
<a-col :span="24">
|
||||
<a-form-item field="" label="" no-style>
|
||||
<a-space >
|
||||
<a-button type="primary" @click="handleSubmit">保存</a-button>
|
||||
<a-button type="primary" @click="handleSubmit" v-has="'admin:sysDoctorconfigList:save'">保存</a-button>
|
||||
</a-space>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
@ -294,17 +294,17 @@ const handleDoctorList=(value)=>{
|
||||
};
|
||||
watch(()=>props.inquiry_config_id,(newVal,oldValval)=>{
|
||||
if(newVal){
|
||||
title.value='修改问诊配置'
|
||||
title.value='修改医生问诊配置'
|
||||
handleDetail(newVal)
|
||||
}else{
|
||||
//handleDoctorList();
|
||||
title.value='添加问诊配置';
|
||||
title.value='添加医生问诊配置';
|
||||
toggleType.value=true;
|
||||
}
|
||||
},{immediate:true})
|
||||
|
||||
let rules = reactive({
|
||||
doctor_id: [{ required: true, message: '请选择医生' }],
|
||||
doctor_id: [{ required: true, message: '请输入医生姓名' }],
|
||||
inquiry_type: [{ required: true, message: '请选择问诊类型' }],
|
||||
work_num_day: [{ required: true, message: '请输入每日接诊数量' }],
|
||||
inquiry_price: [{ required: true, message: '请输入问诊价格' }]
|
||||
@ -414,11 +414,10 @@ const handleInquiryPriceAndTime=()=>{
|
||||
if(modalForm.inquiry_type==1){
|
||||
min.value=Number(result.min_inquiry_price);
|
||||
max.value=Number(result.max_inquiry_price);
|
||||
|
||||
}else if(modalForm.inquiry_type==3){
|
||||
inquiry_price_list.value=result.inquiry_price.split(",").map((item)=>{
|
||||
return Number(item)
|
||||
})
|
||||
}).sort((a, b)=>{return a-b})
|
||||
}else{
|
||||
system_inquiry_time.value=result.system_inquiry_time;
|
||||
modalForm.inquiry_price=Number(result.inquiry_price);
|
||||
|
||||
@ -223,7 +223,7 @@
|
||||
<a-col :span="24">
|
||||
<a-form-item field="" label="" no-style>
|
||||
<a-space>
|
||||
<a-button type="primary" @click="handleSubmit">保存</a-button>
|
||||
<a-button type="primary" @click="handleSubmit" v-has="'admin:sysconfigList:save'">保存</a-button>
|
||||
</a-space>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
@ -39,7 +39,7 @@
|
||||
<!-- action -->
|
||||
<div class="action">
|
||||
<a-space>
|
||||
<a-button v-has="'admin:sysFamilyList:add'" type="primary" @click="handleAdd"><icon-plus /> 新增 </a-button>
|
||||
<a-button v-has="'admin:sysDoctorconfigList:add'" type="primary" @click="handleAdd"><icon-plus /> 新增 </a-button>
|
||||
<!-- <a-button v-has="'admin:sysFamilyList:remove'" type="primary" status="danger"><icon-delete /> 批量删除 </a-button> -->
|
||||
</a-space>
|
||||
</div>
|
||||
@ -74,7 +74,7 @@
|
||||
</template>
|
||||
<template #action="{ record }">
|
||||
<a-space>
|
||||
<a-button v-has="'admin:sysFamilyList:detail'" type="text"
|
||||
<a-button v-has="'admin:sysDoctorconfigList:edit'" type="text"
|
||||
@click="handleDetail(record)"><icon-edit />修改</a-button>
|
||||
<!-- <a-button v-has="'admin:sysFamilyList:edit'" type="text" @click="handleUpdate(record)"><icon-edit />
|
||||
修改</a-button> -->
|
||||
|
||||
@ -72,7 +72,7 @@
|
||||
|
||||
<template #action="{ record }">
|
||||
<a-space>
|
||||
<a-button v-has="'admin:sysFamilyList:detail'" type="text"
|
||||
<a-button v-has="'admin:sysconfigList:detail'" type="text"
|
||||
@click="handleDetail(record)"><icon-edit />修改</a-button>
|
||||
<!-- <a-button v-has="'admin:sysFamilyList:edit'" type="text" @click="handleUpdate(record)"><icon-edit />
|
||||
修改</a-button> -->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user