改动配置
This commit is contained in:
parent
0d8685c717
commit
0cdda25ee1
@ -5,7 +5,7 @@ const url = '/admin/inquiry/doctor';
|
|||||||
|
|
||||||
export function getInquiryconfigList(params){
|
export function getInquiryconfigList(params){
|
||||||
return request({
|
return request({
|
||||||
url:'/admin/inquiry/doctor',
|
url:'/admin/inquiry/doctor/page',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
@ -25,10 +25,11 @@ export function editInquiryconfig(data,id){//添加配置
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
export function getInquiryconfigDetail(id){
|
export function getInquiryconfigDetail(params){
|
||||||
return request({
|
return request({
|
||||||
url:'/admin/inquiry/doctor/'+id,
|
url:'/admin/inquiry/doctor',
|
||||||
method: 'get'
|
method: 'get',
|
||||||
|
params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
export function getDoctorList(params){//获取医生列表
|
export function getDoctorList(params){//获取医生列表
|
||||||
@ -41,7 +42,7 @@ export function getInquiryconfigDetail(id){
|
|||||||
|
|
||||||
export function inquiryPriceAndTime(params){//获取问诊价格和问诊时间
|
export function inquiryPriceAndTime(params){//获取问诊价格和问诊时间
|
||||||
return request({
|
return request({
|
||||||
url:'/admin/inquiry/config/system/detail',
|
url:'/admin/inquiry/system/detail',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
|
|||||||
@ -48,7 +48,7 @@
|
|||||||
@change="changeMode"
|
@change="changeMode"
|
||||||
:style="{ width: '320px' }"
|
:style="{ width: '320px' }"
|
||||||
>
|
>
|
||||||
<!-- 1:图文 2:视频 3:语音 4:电话 5:会员 -->
|
<!-- 1:'图文',2:'视频', 3:'语音', 4:'电话',5:'会员',6:'疑难会诊',7:'附赠沟通',8:'健康包',9:'服务包' -->
|
||||||
<a-option :value="1">图文问诊</a-option>
|
<a-option :value="1">图文问诊</a-option>
|
||||||
<a-option :value="2">视频问诊</a-option>
|
<a-option :value="2">视频问诊</a-option>
|
||||||
<a-option :value="3">语音问诊</a-option>
|
<a-option :value="3">语音问诊</a-option>
|
||||||
@ -288,8 +288,14 @@ const {modalVisible,inquiry_config_id}=toRefs(props);
|
|||||||
const emits = defineEmits(['familyVisibleChange','freshList']);
|
const emits = defineEmits(['familyVisibleChange','freshList']);
|
||||||
// Rules
|
// Rules
|
||||||
const doctorData=ref([]);
|
const doctorData=ref([]);
|
||||||
const handleDetail=(id)=>{
|
const handleDetail=()=>{
|
||||||
getInquiryconfigDetail(id).then(data=>{
|
getInquiryconfigDetail({
|
||||||
|
inquiry_config_id:inquiry_config_id.value,
|
||||||
|
inquiry_type:modalForm.inquiry_type,
|
||||||
|
inquiry_mode:modalForm.inquiry_mode,
|
||||||
|
doctor_id:modalForm.doctor_id
|
||||||
|
|
||||||
|
}).then(data=>{
|
||||||
if(data.code==200){
|
if(data.code==200){
|
||||||
let result=data.data;
|
let result=data.data;
|
||||||
Object.assign(modalForm,result);
|
Object.assign(modalForm,result);
|
||||||
@ -344,7 +350,7 @@ const handleDoctorList=(value)=>{
|
|||||||
watch(()=>props.inquiry_config_id,(newVal,oldValval)=>{
|
watch(()=>props.inquiry_config_id,(newVal,oldValval)=>{
|
||||||
if(newVal){
|
if(newVal){
|
||||||
title.value='修改医生问诊配置'
|
title.value='修改医生问诊配置'
|
||||||
handleDetail(newVal)
|
handleDetail()
|
||||||
}else{
|
}else{
|
||||||
//handleDoctorList();
|
//handleDoctorList();
|
||||||
title.value='添加医生问诊配置';
|
title.value='添加医生问诊配置';
|
||||||
|
|||||||
@ -112,12 +112,19 @@
|
|||||||
@deleteVisibleChange="() => deleteVisible = false" /> -->
|
@deleteVisibleChange="() => deleteVisible = false" /> -->
|
||||||
<!-- Akiraka 20230223 删除与批量删除 结束 -->
|
<!-- Akiraka 20230223 删除与批量删除 结束 -->
|
||||||
<a-modal v-model:visible="okVisible" :modal-style="{width:'320px'}" body-class="okmodal"
|
<a-modal v-model:visible="okVisible" :modal-style="{width:'320px'}" body-class="okmodal"
|
||||||
@cancel="()=>okVisible=false">
|
@cancel="()=>okVisible=false" >
|
||||||
<template #title>
|
<template #title>
|
||||||
提示
|
提示
|
||||||
</template>
|
</template>
|
||||||
<div>确定保存当前信息?</div>
|
<div>确定保存当前信息?</div>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
|
<a-modal v-model:visible="goVisible" :modal-style="{width:'320px'}" body-class="okmodal"
|
||||||
|
@cancel="()=>goVisible=false" @ok="goOk">
|
||||||
|
<template #title>
|
||||||
|
提示
|
||||||
|
</template>
|
||||||
|
<div>{{goTitle}}</div>
|
||||||
|
</a-modal>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -125,13 +132,16 @@
|
|||||||
import { reactive, ref, getCurrentInstance, onMounted, nextTick, watch, computed } from 'vue';
|
import { reactive, ref, getCurrentInstance, onMounted, nextTick, watch, computed } from 'vue';
|
||||||
import { getInquiryconfigList} from '@/api/inquiry/config';
|
import { getInquiryconfigList} from '@/api/inquiry/config';
|
||||||
import {formatDoctorTitle,formatInquiryType,formatMultipoint,formatMode} from "@/utils/format"
|
import {formatDoctorTitle,formatInquiryType,formatMultipoint,formatMode} from "@/utils/format"
|
||||||
|
import {useRouter} from 'vue-router'
|
||||||
|
const router = useRouter()
|
||||||
// Akiraka 20230210 删除数据
|
// Akiraka 20230210 删除数据
|
||||||
const deleteData = ref([])
|
const deleteData = ref([])
|
||||||
// Akiraka 20230210 删除对话框
|
// Akiraka 20230210 删除对话框
|
||||||
const deleteVisible = ref(false)
|
const deleteVisible = ref(false)
|
||||||
// Akiraka 20230210 监听删除事件
|
// Akiraka 20230210 监听删除事件
|
||||||
const okVisible = ref(false);
|
const okVisible = ref(false);
|
||||||
|
const goVisible =ref(false);
|
||||||
|
const goTitle=ref('即将跳转健康包配置列表?')
|
||||||
const inquiry_config_id=ref("");
|
const inquiry_config_id=ref("");
|
||||||
watch(() => deleteVisible.value, (value) => {
|
watch(() => deleteVisible.value, (value) => {
|
||||||
if (value == false) {
|
if (value == false) {
|
||||||
@ -213,10 +223,26 @@
|
|||||||
|
|
||||||
//详情
|
//详情
|
||||||
const handleDetail = async (record) => {
|
const handleDetail = async (record) => {
|
||||||
inquiry_config_id.value=record.inquiry_config_id;
|
if(record.inquiry_mode==8){
|
||||||
modalVisible.value = true;
|
goVisible.value=true;
|
||||||
|
goTitle.value='即将跳转健康包配置列表?'
|
||||||
|
}else if(record.inquiry_mode==9){
|
||||||
|
goVisible.value=true;
|
||||||
|
goTitle.value='即将跳转随访包配置列表?'
|
||||||
|
}else{
|
||||||
|
inquiry_config_id.value=record.inquiry_config_id;
|
||||||
|
modalVisible.value = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
const goOk=()=>{
|
||||||
|
if( goTitle.value=='即将跳转健康包配置列表?'){
|
||||||
|
router.push('/inquiry/healthconfig')
|
||||||
|
}else{
|
||||||
|
router.push('/inquiry/visitconfig')
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分页改变
|
* 分页改变
|
||||||
* @param {Number} [page]
|
* @param {Number} [page]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user