bug 问诊配置

This commit is contained in:
zoujiandong 2023-10-25 09:37:13 +08:00
parent 7ed1a3862e
commit 4dad81c031
4 changed files with 33 additions and 14 deletions

View File

@ -140,7 +140,8 @@
<a-col :span="24">
<a-form-item field="" label="" no-style>
<a-space direction="vertical" size="large">
<a-switch v-model="is_platform_deep_cooperation" :checked-value="1" :unchecked-value="0" disabled :style="{cursor:'not-allowed!important'}" />
<div v-if="is_platform_deep_cooperation==1"></div>
<div v-else></div>
</a-space>
</a-form-item>
</a-col>
@ -149,7 +150,7 @@
</div>
<div class="titlebox">
<div class="bar"></div>
<div class="name">问诊价格</div>
<div class="name">问诊价格</div>
</div>
<a-row :gutter="24" style="margin-top: 35px;">
<a-col :span="12">
@ -179,13 +180,13 @@
<a-divider />
<div class="titlebox" >
<div class="bar"></div>
<div class="name">接诊</div>
<div class="name">每日最大接诊量</div>
</div>
<a-row :gutter="24" style="margin-top: 35px;" >
<a-col :span="24">
<a-form-item field="work_num_day" :hide-label="true">
<a-space direction="vertical" size="large">
<a-input-number mode="button" v-model="modalForm.work_num_day" :style="{width:'180px'}" placeholder="请输入接诊数量" class="input-demo" :min="0" :max="max_patient"/>
<a-input-number mode="button" v-model="modalForm.work_num_day" :style="{width:'180px'}" placeholder="每日最大接诊量" class="input-demo" :min="0" :max="max_patient"/>
</a-space>
</a-form-item>
</a-col>
@ -250,7 +251,7 @@ const modalForm=reactive({
is_enable:1
});
const disabledDate=(time)=>{
return time.getTime() < Date.now();
return time.getTime() < Date.now() - 8.64e7;
}
const locale=ref('');
const toggleType=ref(true);
@ -329,7 +330,8 @@ const changeDoctor=(value)=>{
const reset=()=>{
inquiry_date.value=[];
inquiry_time.value=[];
}
};
let temp_date=[];
const addTime=()=>{
let temp=[];
if(inquiry_date.value.length==0){
@ -347,7 +349,8 @@ const addTime=()=>{
temp.push(arr1[i]+" "+arr2[j]);
}
}
slect_all_date.value.push(...new Set(temp));
temp_date=temp_date.concat(temp);
slect_all_date.value=[...new Set(temp_date)];
reset();
}
watch(slect_all_date,(newVal,oldVal)=>{

View File

@ -80,7 +80,7 @@
</div>
<div class="titlebox">
<div class="bar"></div>
<div class="name">问诊价格</div>
<div class="name">问诊价格</div>
</div>
<a-row :gutter="24" style="margin-top: 35px">
<a-col :span="12">
@ -153,7 +153,7 @@
<a-divider />
<div class="titlebox">
<div class="bar"></div>
<div class="name">接诊</div>
<div class="name">每日最大接诊量</div>
</div>
<a-row :gutter="24" style="margin-top: 35px">
<a-col :span="24">
@ -163,7 +163,7 @@
mode="button"
v-model="modalForm.max_work_num_day"
:style="{ width: '180px' }"
placeholder="请输入接诊数量"
placeholder="每日最大接诊量"
class="input-demo"
:min="0"
/>
@ -189,8 +189,11 @@
:min="0"
/>
</a-space>
</a-form-item>
<div class="tip">备注0代表不限时长</div>
</a-col>
</a-row>
<a-divider />
@ -211,7 +214,9 @@
:min="0"
/>
</a-space>
</a-form-item>
<div class="tip">备注0代表不限次数</div>
</a-col>
</a-row>
<a-divider />
@ -409,6 +414,10 @@ const handleSubmit = () => {
};
</script>
<style scoped>
.tip{
font-size: 12px;
color:#666;
}
.tag {
margin-bottom: 10px;
}

View File

@ -3,7 +3,7 @@
<a-form :model="queryForm" ref="queryFormRef" layout="inline">
<a-form-item field="doctor_name" label="医生姓名">
<a-input :style="{ width: '182px' }" v-model="queryForm.user_name" placeholder="请输入账号或者姓名" @press-enter="handleQuery" />
<a-input :style="{ width: '182px' }" v-model="queryForm.doctor_name" placeholder="请输入账号或者姓名" @press-enter="handleQuery" />
</a-form-item>
<a-form-item field="mobile" label="电话号码">
<a-input :style="{ width: '182px' }" v-model="queryForm.mobile" placeholder="请输入电话号码" @press-enter="handleQuery" />
@ -20,8 +20,8 @@
</a-form-item>
<a-form-item field="is_enable" label="启用状态">
<a-select v-model="queryForm.is_enable" placeholder="请选择启用状态" :style="{ width: '182px' }">
<a-option :value="0"></a-option>
<a-option :value="1"></a-option>
<a-option :value="0">禁用</a-option>
<a-option :value="1">正常</a-option>
</a-select>
</a-form-item>
@ -68,6 +68,12 @@
<div class="reason" v-if="record.last_enable_method==1" >自己</div>
<div v-else>后台</div>
</template>
<template #is_enable="{record}">
<a-tag v-if="record.is_enable == 0" color="red">禁用</a-tag>
<a-tag v-else-if="record.is_enable== 1" color="green">正常</a-tag>
</template>
<template #relation="{record}">
<div>{{formatRelation(record.relation)}}</div>
@ -172,6 +178,7 @@
{ title: '接诊数量', dataIndex: 'work_num_day' },
{ title: '多点执业', dataIndex: 'multi_point_status',slotName:'multi_point_status' },
{ title: '问诊类型', dataIndex: 'inquiry_type',slotName:'inquiry_type' },
{ title: '启用状态', dataIndex: 'is_enable',slotName:'is_enable' },
{ title: '申请人', dataIndex: 'last_enable_method',slotName:'last_enable_method' },
{ title: '操作', slotName: 'action', fixed: "right", width: 180 },
];

View File

@ -13,7 +13,7 @@
</a-select>
</a-form-item>
<a-form-item field="is_enable" label="接诊方式">
<a-form-item field="inquiry_mode" label="接诊方式">
<a-select v-model="queryForm.inquiry_mode" placeholder="请选择接诊方式" :style="{ width: '182px' }">
<a-option :value="1">图文</a-option>
<a-option :value="2">视频</a-option>