配置列表
This commit is contained in:
parent
69c2f8c24c
commit
e9e8c5d69e
18
src/api/inquiry/config.js
Normal file
18
src/api/inquiry/config.js
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
import request from '../../utils/request'
|
||||||
|
|
||||||
|
const url = '/admin/inquiry/config/doctor';
|
||||||
|
|
||||||
|
|
||||||
|
export function getInquiryconfigList(params){
|
||||||
|
return request({
|
||||||
|
url:'/admin/inquiry/config/doctor',
|
||||||
|
method: 'get',
|
||||||
|
params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function getInquiryconfigDetail(id){
|
||||||
|
return request({
|
||||||
|
url:'/admin/inquiry/config/doctor/'+id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -88,4 +88,13 @@ export const formatRelation=(val)=>{
|
|||||||
}else{
|
}else{
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
export const formatMultipoint=(val)=>{
|
||||||
|
//医生多点执业认证状态(0:未认证 1:认证通过 2:审核中 3:认证失败)
|
||||||
|
let data={0:'未认证',1:'认证通过', 2:'审核中', 3:'认证失败'}
|
||||||
|
if(val|| val==0){
|
||||||
|
return data[val]
|
||||||
|
}else{
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
};
|
||||||
@ -2,25 +2,30 @@
|
|||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<a-form :model="queryForm" ref="queryFormRef" layout="inline">
|
<a-form :model="queryForm" ref="queryFormRef" layout="inline">
|
||||||
|
|
||||||
<a-form-item field="user_name" label="账号名字">
|
<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.user_name" placeholder="请输入账号或者姓名" @press-enter="handleQuery" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item field="mobile" label="电话号码">
|
<a-form-item field="mobile" label="电话号码">
|
||||||
<a-input :style="{ width: '182px' }" v-model="queryForm.mobile" placeholder="请输入电话号码" @press-enter="handleQuery" />
|
<a-input :style="{ width: '182px' }" v-model="queryForm.mobile" placeholder="请输入电话号码" @press-enter="handleQuery" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<!-- <a-form-item field="status" label="启用状态">
|
<a-form-item field="inquiry_type" label="问诊类型">
|
||||||
<a-select v-model="queryForm.status" placeholder="请选择启用状态" :style="{ width: '182px' }">
|
<a-select v-model="queryForm.inquiry_type" placeholder="请选择服务类型" :style="{ width: '182px' }">
|
||||||
<a-option :value="0">禁用</a-option>
|
<!-- 1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药 -->
|
||||||
<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="4">问诊购药</a-option>
|
||||||
|
</a-select>
|
||||||
|
|
||||||
|
</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-select>
|
</a-select>
|
||||||
</a-form-item> -->
|
|
||||||
<a-form-item field="create_range_time" label="创建时间范围">
|
|
||||||
<a-range-picker
|
|
||||||
style="width: 260px"
|
|
||||||
v-model="queryForm.create_range_time"
|
|
||||||
/>
|
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|
||||||
<a-form-item>
|
<a-form-item>
|
||||||
<a-space>
|
<a-space>
|
||||||
<a-button type="primary" @click="handleQuery"><icon-search /> 搜索</a-button>
|
<a-button type="primary" @click="handleQuery"><icon-search /> 搜索</a-button>
|
||||||
@ -41,28 +46,27 @@
|
|||||||
|
|
||||||
<!-- table -->
|
<!-- table -->
|
||||||
<a-table :columns="columns" :data="tableData"
|
<a-table :columns="columns" :data="tableData"
|
||||||
|
:scroll="{ x: 1400 }"
|
||||||
:row-selection="{ type: 'checkbox', showCheckedAll: true }"
|
:row-selection="{ type: 'checkbox', showCheckedAll: true }"
|
||||||
:pagination="{ 'show-total': true, 'show-jumper': true, 'show-page-size': true, total: pager.total, current: currentPage }"
|
:pagination="{ 'show-total': true, 'show-jumper': true, 'show-page-size': true, total: pager.total, current: currentPage }"
|
||||||
row-key="doctor_id" @selection-change="(selection) => {deleteData = selection;console.log(selection)}"
|
row-key="doctor_id" @selection-change="(selection) => {deleteData = selection;console.log(selection)}"
|
||||||
@page-change="handlePageChange" @page-size-change="handlepage_sizeChange">
|
@page-change="handlePageChange" @page-size-change="handlepage_sizeChange">
|
||||||
<template #doctor_id="{record,rowIndex}">
|
<template #doctor_id="{record,rowIndex}">
|
||||||
<span>{{pager.page}}</span>
|
|
||||||
<div>{{(rowIndex+1)+(pager.page-1)*10}}</div>
|
<div>{{(rowIndex+1)+(pager.page-1)*10}}</div>
|
||||||
</template>
|
</template>
|
||||||
<template #status="{ record }">
|
<template #doctor_title="{ record }">
|
||||||
<!-- 状态(0:禁用 1:正常 2:删除) -->
|
<div>{{ formatDoctorTitle(record.doctor_title) }}</div>
|
||||||
<a-tag v-if="record.status == 0" color="#ffb400">禁用</a-tag>
|
|
||||||
<a-tag v-else-if="record.status == 1" color="green">正常</a-tag>
|
|
||||||
<a-tag v-else color="red">删除</a-tag>
|
|
||||||
</template>
|
</template>
|
||||||
<template #is_platform_deep_cooperation="{ record }">
|
<template #multi_point_status="{ record }">
|
||||||
<a-tag v-if="record.is_platform_deep_cooperation == 0" color="gray">否</a-tag>
|
<div>{{ formatMultipoint(record.multi_point_status) }}</div>
|
||||||
<a-tag v-else color="green">是</a-tag>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #disable_reason="{record}">
|
<template #inquiry_type="{record}">
|
||||||
<div class="reason" v-if="record.disable_reason" :title="record.disable_reason">{{ record.disable_reason }}</div>
|
<div>{{ formatInquiryType(record.inquiry_type) }}</div>
|
||||||
<div v-else>-</div>
|
</template>
|
||||||
|
<template #last_enable_method="{record}">
|
||||||
|
<div class="reason" v-if="record.last_enable_method==1" >自己</div>
|
||||||
|
<div v-else>后台</div>
|
||||||
</template>
|
</template>
|
||||||
<template #relation="{record}">
|
<template #relation="{record}">
|
||||||
<div>{{formatRelation(record.relation)}}</div>
|
<div>{{formatRelation(record.relation)}}</div>
|
||||||
@ -97,8 +101,8 @@
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { reactive, ref, getCurrentInstance, onMounted, nextTick, watch, computed } from 'vue';
|
import { reactive, ref, getCurrentInstance, onMounted, nextTick, watch, computed } from 'vue';
|
||||||
import { getInquiryList,getInquiryDetail} from '@/api/inquiry/list';
|
import { getInquiryconfigList,getInquiryconfigDetail} from '@/api/inquiry/config';
|
||||||
import {formatRelation} from "@/utils/format"
|
import {formatDoctorTitle,formatInquiryType,formatMultipoint} from "@/utils/format"
|
||||||
|
|
||||||
// Akiraka 20230210 删除数据
|
// Akiraka 20230210 删除数据
|
||||||
const deleteData = ref([])
|
const deleteData = ref([])
|
||||||
@ -151,16 +155,6 @@
|
|||||||
avatar: 'https://img.applets.igandanyiyuan.com/basic/file/patient_avatar.png',
|
avatar: 'https://img.applets.igandanyiyuan.com/basic/file/patient_avatar.png',
|
||||||
|
|
||||||
});
|
});
|
||||||
watch(() => queryForm.create_range_time,
|
|
||||||
(value) => {
|
|
||||||
if (value) {
|
|
||||||
let [startTime, endTime] = value;
|
|
||||||
queryForm.created_at = startTime + '&' + endTime;
|
|
||||||
} else {
|
|
||||||
queryForm.created_at = '';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
);
|
|
||||||
// Modal
|
// Modal
|
||||||
const modalVisible = ref(false);
|
const modalVisible = ref(false);
|
||||||
const modalTitle = ref('默认标题');
|
const modalTitle = ref('默认标题');
|
||||||
@ -171,11 +165,14 @@
|
|||||||
// Table Columns
|
// Table Columns
|
||||||
const columns = [
|
const columns = [
|
||||||
{ title: '编号', dataIndex: 'doctor_id', slotName: 'doctor_id', width: '90' },
|
{ title: '编号', dataIndex: 'doctor_id', slotName: 'doctor_id', width: '90' },
|
||||||
{ title: '订单编号', dataIndex: 'inquiry_no',slotName: 'inquiry_type',width:200 },
|
{ title: '医生姓名', dataIndex: 'doctor_name',width:180 },
|
||||||
{ title: '服务分类', dataIndex: '服务分类',slotName: 'inquiry_type', width:200 },
|
{ title: '手机号码', dataIndex: 'mobile_mask', width:130 },
|
||||||
{ title: '坐班时间', dataIndex:'reception_time',slotName: 'reception_time',width:200 },
|
{ title: '科室', dataIndex: 'department_custom_name', width: 150 },
|
||||||
{ title: '价格范围', dataIndex: 'relation', slotName: 'relation',width: 150 },
|
{ title: '职称', dataIndex: 'doctor_title', slotName: 'doctor_title' },
|
||||||
{ title: '问诊价格', dataIndex: 'status', slotName: 'status' },
|
{ title: '接诊数量', dataIndex: 'work_num_day' },
|
||||||
|
{ title: '多点执业', dataIndex: 'multi_point_status',slotName:'multi_point_status' },
|
||||||
|
{ title: '问诊类型', dataIndex: 'inquiry_type',slotName:'inquiry_type' },
|
||||||
|
{ title: '申请人', dataIndex: 'last_enable_method',slotName:'last_enable_method' },
|
||||||
{ title: '操作', slotName: 'action', fixed: "right", width: 180 },
|
{ title: '操作', slotName: 'action', fixed: "right", width: 180 },
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -194,7 +191,7 @@
|
|||||||
|
|
||||||
//详情
|
//详情
|
||||||
const handleDetail = async (record) => {
|
const handleDetail = async (record) => {
|
||||||
const { code, data, message } = await getInquiryDetail(record.family_id);
|
const { code, data, message } = await getInquiryconfigDetail(record.family_id);
|
||||||
|
|
||||||
if (code == 200) {
|
if (code == 200) {
|
||||||
Object.assign(modalForm, data);
|
Object.assign(modalForm, data);
|
||||||
@ -242,8 +239,7 @@
|
|||||||
|
|
||||||
// 获取患者信息
|
// 获取患者信息
|
||||||
const getInquiryInfo = async (params = {}) => {
|
const getInquiryInfo = async (params = {}) => {
|
||||||
console.log(params)
|
const { data, code, message } = await getInquiryconfigList(params);
|
||||||
const { data, code, message } = await getInquiryList(params);
|
|
||||||
if (code == 200) {
|
if (code == 200) {
|
||||||
tableData.value = data.data;
|
tableData.value = data.data;
|
||||||
Object.assign(pager, { total: data.total, page: data.page, page_size: data.page_size });
|
Object.assign(pager, { total: data.total, page: data.page, page_size: data.page_size });
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user