提交问诊记录
This commit is contained in:
@@ -286,6 +286,9 @@ const handleSubmit = (done) => {
|
||||
};
|
||||
if (!modalForm.menu_id) {
|
||||
console.log("dasdasd",modalForm)
|
||||
if(modalForm.menu_type==''){
|
||||
modalForm.menu_type=0;
|
||||
};
|
||||
const {code,message} = await addMenu(modalForm);
|
||||
if (code==200) {
|
||||
proxy.$message.success('新增成功');
|
||||
|
||||
@@ -701,6 +701,7 @@
|
||||
const { data, code, message } = res;
|
||||
if (code == 200) {
|
||||
departmentData.value = data;
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -945,7 +945,7 @@
|
||||
{ title: '多点审核状态', dataIndex: 'multi_point_status', slotName: 'multi_point_status', width: 140 },
|
||||
{ title: '是否推荐', dataIndex: 'is_recommend', slotName: 'is_recommend' },
|
||||
{ title: '深度合作', dataIndex: 'is_platform_deep_cooperation', slotName: 'is_platform_deep_cooperation' },
|
||||
{ title: '申请人', dataIndex: 'user_name' },
|
||||
{ title: '申请人', dataIndex: 'created_by' },
|
||||
{ title: '审核状态', dataIndex: 'iden_auth_status', slotName: 'iden_auth_status' },
|
||||
{ title: '实名认证', dataIndex: 'idcard_status', slotName: 'iden_auth_status' },
|
||||
|
||||
|
||||
@@ -0,0 +1,350 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<a-form :model="queryForm" ref="queryFormRef" layout="inline">
|
||||
|
||||
<a-form-item field="user_name" label="账号名字">
|
||||
<a-input :style="{ width: '182px' }" v-model="queryForm.user_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" />
|
||||
</a-form-item>
|
||||
<!-- <a-form-item field="status" label="启用状态">
|
||||
<a-select v-model="queryForm.status" placeholder="请选择启用状态" :style="{ width: '182px' }">
|
||||
<a-option :value="0">禁用</a-option>
|
||||
<a-option :value="1">正常</a-option>
|
||||
<a-option :value="2">删除</a-option>
|
||||
</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-space>
|
||||
<a-button type="primary" @click="handleQuery"><icon-search /> 搜索</a-button>
|
||||
<a-button @click="handleResetQuery"><icon-loop /> 重置</a-button>
|
||||
</a-space>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
|
||||
<a-divider />
|
||||
|
||||
<!-- 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:sysFamilyList:remove'" type="primary" status="danger"><icon-delete /> 批量删除 </a-button>
|
||||
</a-space>
|
||||
</div> -->
|
||||
|
||||
<!-- table -->
|
||||
<a-table :columns="columns" :data="tableData"
|
||||
:row-selection="{ type: 'checkbox', showCheckedAll: true }"
|
||||
: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)}"
|
||||
@page-change="handlePageChange" @page-size-change="handlepage_sizeChange">
|
||||
<template #doctor_id="{record,rowIndex}">
|
||||
<span>{{pager.page}}</span>
|
||||
<div>{{(rowIndex+1)+(pager.page-1)*10}}</div>
|
||||
</template>
|
||||
<template #status="{ record }">
|
||||
<!-- 状态(0:禁用 1:正常 2:删除) -->
|
||||
<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 #is_platform_deep_cooperation="{ record }">
|
||||
<a-tag v-if="record.is_platform_deep_cooperation == 0" color="gray">否</a-tag>
|
||||
<a-tag v-else color="green">是</a-tag>
|
||||
</template>
|
||||
|
||||
<template #disable_reason="{record}">
|
||||
<div class="reason" v-if="record.disable_reason" :title="record.disable_reason">{{ record.disable_reason }}</div>
|
||||
<div v-else>-</div>
|
||||
</template>
|
||||
<template #relation="{record}">
|
||||
<div>{{formatRelation(record.relation)}}</div>
|
||||
|
||||
</template>
|
||||
<template #action="{ record }">
|
||||
<a-space>
|
||||
<a-button v-has="'admin:sysFamilyList:detail'" type="text"
|
||||
@click="handleDetail(record)"><icon-book />详情</a-button>
|
||||
<!-- <a-button v-has="'admin:sysFamilyList:edit'" type="text" @click="handleUpdate(record)"><icon-edit />
|
||||
修改</a-button> -->
|
||||
<!-- <a-button v-has="'admin:sysFamilyList:remove'" type="text"
|
||||
@click="() => { deleteVisible = true; deleteData = [record.doctor_id]; }"><icon-delete /> 删除</a-button> -->
|
||||
</a-space>
|
||||
</template>
|
||||
</a-table>
|
||||
|
||||
<familyModal :modalVisible="modalVisible" :modalForm="modalForm" @familyVisibleChange="()=>{modalVisible=false}"></familyModal>
|
||||
<!-- Akiraka 20230223 删除与批量删除 开始 -->
|
||||
<!-- <DeleteModal :data="deleteData" :visible="deleteVisible" :apiDelete="removeFamily"
|
||||
@deleteVisibleChange="() => deleteVisible = false" /> -->
|
||||
<!-- Akiraka 20230223 删除与批量删除 结束 -->
|
||||
<a-modal v-model:visible="okVisible" :modal-style="{width:'320px'}" body-class="okmodal"
|
||||
@cancel="()=>okVisible=false">
|
||||
<template #title>
|
||||
提示
|
||||
</template>
|
||||
<div>确定保存当前信息?</div>
|
||||
</a-modal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { reactive, ref, getCurrentInstance, onMounted, nextTick, watch, computed } from 'vue';
|
||||
import { getInquiryList,getInquiryDetail} from '@/api/inquiry/list';
|
||||
import {formatRelation} from "@/utils/format"
|
||||
|
||||
// Akiraka 20230210 删除数据
|
||||
const deleteData = ref([])
|
||||
// Akiraka 20230210 删除对话框
|
||||
const deleteVisible = ref(false)
|
||||
// Akiraka 20230210 监听删除事件
|
||||
const okVisible = ref(false);
|
||||
|
||||
watch(() => deleteVisible.value, (value) => {
|
||||
if (value == false) {
|
||||
getInquiryInfo(pager);
|
||||
}
|
||||
});
|
||||
|
||||
const file = ref();
|
||||
const { proxy } = getCurrentInstance();
|
||||
const currentPage = ref(1);
|
||||
const family_data=ref([]);
|
||||
const family_columns=ref([{
|
||||
title: '编号',
|
||||
dataIndex: 'code',
|
||||
slotName:'code'
|
||||
},{
|
||||
title: '就诊人姓名',
|
||||
dataIndex: 'card_name_mask',
|
||||
},{
|
||||
title: '身份证号',
|
||||
dataIndex: 'id_number_mask',
|
||||
},{
|
||||
title: '与账号关系',
|
||||
dataIndex: 'relation',
|
||||
slotName:'relation'
|
||||
},{
|
||||
title: '添加时间',
|
||||
dataIndex: 'created_at',
|
||||
slotName:'created_at'
|
||||
}, { title: '操作', slotName: 'action'}])
|
||||
// Pager
|
||||
const pager = {
|
||||
total: 0,
|
||||
page: 1,
|
||||
page_size: 10,
|
||||
};
|
||||
// form
|
||||
const queryForm = reactive({
|
||||
|
||||
});
|
||||
const modalForm = reactive({
|
||||
user:{},
|
||||
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
|
||||
const modalVisible = ref(false);
|
||||
const modalTitle = ref('默认标题');
|
||||
|
||||
// Batch Del List
|
||||
let batchList = [];
|
||||
|
||||
// Table Columns
|
||||
const columns = [
|
||||
{ title: '编号', dataIndex: 'doctor_id', slotName: 'doctor_id', width: '90' },
|
||||
{ title: '订单编号', dataIndex: 'inquiry_no',slotName: 'inquiry_type',width:200 },
|
||||
{ title: '服务分类', dataIndex: '服务分类',slotName: 'inquiry_type', width:200 },
|
||||
{ title: '坐班时间', dataIndex:'reception_time',slotName: 'reception_time',width:200 },
|
||||
{ title: '价格范围', dataIndex: 'relation', slotName: 'relation',width: 150 },
|
||||
{ title: '问诊价格', dataIndex: 'status', slotName: 'status' },
|
||||
{ title: '操作', slotName: 'action', fixed: "right", width: 180 },
|
||||
];
|
||||
|
||||
// Table Data
|
||||
const tableData = ref([]);
|
||||
//弹框状态
|
||||
const modalSatus = ref('add');
|
||||
|
||||
// 新增Satus
|
||||
const handleAdd = () => {
|
||||
modalVisible.value = true;
|
||||
modalTitle.value = '新增患者';
|
||||
modalSatus.value = 'add';
|
||||
modalForm.patient_id = null;
|
||||
};
|
||||
|
||||
//详情
|
||||
const handleDetail = async (record) => {
|
||||
const { code, data, message } = await getInquiryDetail(record.family_id);
|
||||
|
||||
if (code == 200) {
|
||||
Object.assign(modalForm, data);
|
||||
modalVisible.value = true;
|
||||
}
|
||||
};
|
||||
// 批量删除
|
||||
const handleBatchDelete = () => {
|
||||
if (batchList.length !== 0) {
|
||||
proxy.$modal.warning({
|
||||
title: '提示',
|
||||
content: '是否批量删除以下选中的数据?',
|
||||
hideCancel: false,
|
||||
onOk: async () => {
|
||||
const res = await removeFamily({ ids: batchList });
|
||||
proxy.$message.success(res.message);
|
||||
getInquiryInfo(pager);
|
||||
},
|
||||
onCancel: () => {
|
||||
proxy.$message.info('已取消批量删除数据');
|
||||
},
|
||||
});
|
||||
} else {
|
||||
proxy.$message.error('请勾选需要删除的数据!');
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* 分页改变
|
||||
* @param {Number} [page]
|
||||
*/
|
||||
const handlePageChange = (page) => {
|
||||
pager.page = page;
|
||||
|
||||
// 修改当前页码
|
||||
currentPage.value = page;
|
||||
getInquiryInfo({ ...pager, ...queryForm });
|
||||
};
|
||||
|
||||
// 每页数据量
|
||||
const handlepage_sizeChange = (page_size) => {
|
||||
pager.page_size = page_size;
|
||||
getInquiryInfo({ ...pager, ...queryForm });
|
||||
};
|
||||
|
||||
// 获取患者信息
|
||||
const getInquiryInfo = async (params = {}) => {
|
||||
console.log(params)
|
||||
const { data, code, message } = await getInquiryList(params);
|
||||
if (code == 200) {
|
||||
tableData.value = data.data;
|
||||
Object.assign(pager, { total: data.total, page: data.page, page_size: data.page_size });
|
||||
}
|
||||
};
|
||||
|
||||
// 查询患者信息
|
||||
const handleQuery = async () => {
|
||||
pager.page = 1;
|
||||
const params = {
|
||||
page: pager.page,
|
||||
page_size: pager.page_size,
|
||||
...queryForm,
|
||||
};
|
||||
|
||||
getInquiryInfo(params);
|
||||
};
|
||||
|
||||
// 重置搜索
|
||||
const handleResetQuery = () => {
|
||||
proxy.$refs.queryFormRef.resetFields();
|
||||
getInquiryInfo(queryForm);
|
||||
}
|
||||
|
||||
|
||||
onMounted(() => {
|
||||
getInquiryInfo(pager);
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.action {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.okmodal div {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.hospital_name {
|
||||
width: 140px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.headImg {
|
||||
margin-right: 20px;
|
||||
border-radius: 50%;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
}
|
||||
|
||||
.arco-form-item-layout-horizontal:first-child,
|
||||
.arco-form-item-layout-horizontal:nth-child(2) {
|
||||
align-items: center;
|
||||
}
|
||||
.cellbox{
|
||||
margin-top: 35px;
|
||||
}
|
||||
.cellbox .cell{
|
||||
width:50%;
|
||||
border-bottom:1px dashed #efefef;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.cellbox .cell:first-child{
|
||||
border: none;
|
||||
}
|
||||
.cell{
|
||||
.arco-form-item{
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
}
|
||||
.box {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.cert .arco-form-item-label-col {
|
||||
flex: 0 0 8px !important;
|
||||
}
|
||||
|
||||
.red {
|
||||
display: inline-block;
|
||||
margin-right: 5px;
|
||||
font-size: 14px;
|
||||
color: red;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.cardNum {
|
||||
width: 148px;
|
||||
}
|
||||
.codbox{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.reason{
|
||||
width:250px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,392 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<a-form :model="queryForm" ref="queryFormRef" layout="inline">
|
||||
|
||||
<a-form-item field="inquiry_no" label="订单编号">
|
||||
<a-input :style="{ width: '182px' }" v-model="queryForm.inquiry_no" placeholder="请输入问诊订单号" @press-enter="handleQuery" />
|
||||
</a-form-item>
|
||||
<a-form-item field="doctor_name" label="医生姓名">
|
||||
<a-input :style="{ width: '182px' }" v-model="queryForm.doctor_name" placeholder="请输入问诊订单号" @press-enter="handleQuery" />
|
||||
</a-form-item>
|
||||
<a-form-item field="patient_name" label="就诊人姓名">
|
||||
<a-input :style="{ width: '182px' }" v-model="queryForm.patient_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" />
|
||||
</a-form-item>
|
||||
<a-row>
|
||||
<a-form-item field="pay_range_time" label="支付时间范围">
|
||||
<a-range-picker style="width: 330px;" v-model="queryForm.pay_range_time" />
|
||||
</a-form-item>
|
||||
<a-form-item field="complete_range_time" label="完成时间范围">
|
||||
<a-range-picker style="width: 330px;" v-model="queryForm.complete_range_time" />
|
||||
</a-form-item>
|
||||
<a-form-item field="end_range_time" label="结束时间范围">
|
||||
<a-range-picker style="width: 330px;" v-model="queryForm.end_range_time" />
|
||||
</a-form-item>
|
||||
<a-form-item field="cancel_range_time" label="取消时间范围">
|
||||
<a-range-picker
|
||||
style="width: 330px"
|
||||
v-model="queryForm.cancel_range_time"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item field="reception_range_time" label="接诊时间范围">
|
||||
<a-range-picker
|
||||
style="width: 330px"
|
||||
v-model="queryForm.reception_range_time"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item field="create_range_time" label="创建时间范围">
|
||||
<a-range-picker
|
||||
style="width: 330px"
|
||||
v-model="queryForm.create_range_time"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item>
|
||||
<a-space>
|
||||
<a-button type="primary" @click="handleQuery"><icon-search /> 搜索</a-button>
|
||||
<a-button @click="handleResetQuery"><icon-loop /> 重置</a-button>
|
||||
</a-space>
|
||||
</a-form-item>
|
||||
</a-row>
|
||||
</a-form>
|
||||
|
||||
<a-divider />
|
||||
|
||||
<!-- 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:sysFamilyList:remove'" type="primary" status="danger"><icon-delete /> 批量删除 </a-button>
|
||||
</a-space>
|
||||
</div> -->
|
||||
|
||||
<!-- table -->
|
||||
<a-table :columns="columns" :data="tableData"
|
||||
:scroll="{ x: 1400 }"
|
||||
:row-selection="{ type: 'checkbox', showCheckedAll: true }"
|
||||
: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)}"
|
||||
@page-change="handlePageChange" @page-size-change="handlepage_sizeChange">
|
||||
<template #doctor_id="{record,rowIndex}">
|
||||
<div>{{(rowIndex+1)+(pager.page-1)*10}}</div>
|
||||
</template>
|
||||
<template #inquiry_type="{record}">
|
||||
<div>{{formatInquiryType(record.inquiry_type)}}</div>
|
||||
</template>
|
||||
<template #inquiry_status="{record}">
|
||||
<div>{{formatInquiryStatus(record.inquiry_status)}}</div>
|
||||
</template>
|
||||
<template #reception_time="{record}">
|
||||
<div>{{parseTime(record.reception_time)}}</div>
|
||||
</template>
|
||||
<template #action="{ record }">
|
||||
<a-space>
|
||||
<a-button v-has="'admin:sysFamilyList:detail'" type="text"
|
||||
@click="handleDetail(record)"><icon-book />详情</a-button>
|
||||
<!-- <a-button v-has="'admin:sysFamilyList:edit'" type="text" @click="handleUpdate(record)"><icon-edit />
|
||||
修改</a-button> -->
|
||||
<!-- <a-button v-has="'admin:sysFamilyList:remove'" type="text"
|
||||
@click="() => { deleteVisible = true; deleteData = [record.doctor_id]; }"><icon-delete /> 删除</a-button> -->
|
||||
</a-space>
|
||||
</template>
|
||||
</a-table>
|
||||
|
||||
<inquiryDetailModal :modalVisible="modalVisible" :modalForm="modalForm" @inquiryVisibleChange="()=>{modalVisible=false}"></inquiryDetailModal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { reactive, ref, getCurrentInstance, onMounted, nextTick, watch, computed } from 'vue';
|
||||
import { getInquiryList,getInquiryDetail} from '@/api/inquiry/list';
|
||||
import {formatInquiryType,formatInquiryStatus} from "@/utils/format"
|
||||
import { parseTime } from '@/utils/parseTime';
|
||||
// Akiraka 20230210 删除数据
|
||||
const deleteData = ref([])
|
||||
// Akiraka 20230210 删除对话框
|
||||
const deleteVisible = ref(false)
|
||||
// Akiraka 20230210 监听删除事件
|
||||
const okVisible = ref(false);
|
||||
|
||||
watch(() => deleteVisible.value, (value) => {
|
||||
if (value == false) {
|
||||
getInquiryInfo(pager);
|
||||
}
|
||||
});
|
||||
|
||||
const file = ref();
|
||||
const { proxy } = getCurrentInstance();
|
||||
const currentPage = ref(1);
|
||||
const family_data=ref([]);
|
||||
const family_columns=ref([{
|
||||
title: '编号',
|
||||
dataIndex: 'code',
|
||||
slotName:'code'
|
||||
},{
|
||||
title: '就诊人姓名',
|
||||
dataIndex: 'card_name_mask',
|
||||
},{
|
||||
title: '身份证号',
|
||||
dataIndex: 'id_number_mask',
|
||||
},{
|
||||
title: '与账号关系',
|
||||
dataIndex: 'relation',
|
||||
slotName:'relation'
|
||||
},{
|
||||
title: '添加时间',
|
||||
dataIndex: 'created_at',
|
||||
slotName:'created_at'
|
||||
}, { title: '操作', slotName: 'action'}])
|
||||
// Pager
|
||||
const pager = {
|
||||
total: 0,
|
||||
page: 1,
|
||||
page_size: 10,
|
||||
};
|
||||
// form
|
||||
const queryForm = reactive({
|
||||
|
||||
});
|
||||
const modalForm = reactive({
|
||||
user:{},
|
||||
avatar: 'https://img.applets.igandanyiyuan.com/basic/file/patient_avatar.png',
|
||||
|
||||
});
|
||||
watch(()=>queryForm.end_range_time,(value)=>{
|
||||
if(value){
|
||||
let[startTime,endTime]=value
|
||||
queryForm.finish_time=startTime+"&"+endTime;
|
||||
}else{
|
||||
queryForm.finish_time=''
|
||||
};
|
||||
console.log(queryForm.finish_time)
|
||||
})
|
||||
watch(()=>queryForm.pay_range_time,(value)=>{
|
||||
if(value){
|
||||
let[startTime,endTime]=value
|
||||
queryForm.pay_time=startTime+"&"+endTime;
|
||||
}else{
|
||||
queryForm.pay_time=''
|
||||
};
|
||||
})
|
||||
watch(()=>queryForm.complete_range_time,(value)=>{
|
||||
if(value){
|
||||
let[startTime,endTime]=value
|
||||
queryForm.complete_time=startTime+"&"+endTime;
|
||||
}else{
|
||||
queryForm.complete_time=''
|
||||
};
|
||||
})
|
||||
watch(()=>queryForm.cancel_range_time,(value)=>{
|
||||
if(value){
|
||||
let[startTime,endTime]=value
|
||||
queryForm.cancel_time=startTime+"&"+endTime;
|
||||
}else{
|
||||
queryForm.cancel_time=''
|
||||
};
|
||||
})
|
||||
watch(()=>queryForm.reception_range_time,(value)=>{
|
||||
if(value){
|
||||
let[startTime,endTime]=value
|
||||
queryForm.reception_time=startTime+"&"+endTime;
|
||||
}else{
|
||||
queryForm.reception_time=''
|
||||
};
|
||||
})
|
||||
watch(()=>queryForm.create_range_time,(value)=>{
|
||||
if(value){
|
||||
let[startTime,endTime]=value
|
||||
queryForm.created_at=startTime+"&"+endTime;
|
||||
}else{
|
||||
queryForm.created_at=''
|
||||
};
|
||||
})
|
||||
// Modal
|
||||
const modalVisible = ref(false);
|
||||
const modalTitle = ref('默认标题');
|
||||
|
||||
// Batch Del List
|
||||
let batchList = [];
|
||||
|
||||
// Table Columns
|
||||
const columns = [
|
||||
{ title: '编号', dataIndex: 'doctor_id', slotName: 'doctor_id', width: '90' },
|
||||
{ title: '订单编号', dataIndex: 'inquiry_no',width:200 },
|
||||
{ title: '医生姓名', dataIndex: 'doctor_name',slotName: 'doctor_name', width:200 },
|
||||
{ title: '就诊人', dataIndex:'patient_name_mask',slotName: 'patient_name_mask',width:100 },
|
||||
{ title: '所属患者', dataIndex: 'user_name', slotName: 'user_name',width: 150 },
|
||||
{ title: '问诊类型', dataIndex: 'inquiry_type', slotName: 'inquiry_type' },
|
||||
{ title: '订单状态', dataIndex: 'inquiry_status', slotName: 'inquiry_status' },
|
||||
{ title: '接诊时间', dataIndex: 'reception_time', slotName: 'reception_time',width:200 },
|
||||
{ title: '操作', slotName: 'action', fixed: "right", width: 180 },
|
||||
];
|
||||
|
||||
// Table Data
|
||||
const tableData = ref([]);
|
||||
//弹框状态
|
||||
const modalSatus = ref('add');
|
||||
|
||||
// 新增Satus
|
||||
const handleAdd = () => {
|
||||
modalVisible.value = true;
|
||||
modalTitle.value = '新增患者';
|
||||
modalSatus.value = 'add';
|
||||
modalForm.patient_id = null;
|
||||
};
|
||||
|
||||
//详情
|
||||
const handleDetail = async (record) => {
|
||||
const { code, data, message } = await getInquiryDetail(record.order_inquiry_id);
|
||||
|
||||
if (code == 200) {
|
||||
Object.assign(modalForm, data);
|
||||
modalVisible.value = true;
|
||||
}
|
||||
};
|
||||
// 批量删除
|
||||
const handleBatchDelete = () => {
|
||||
if (batchList.length !== 0) {
|
||||
proxy.$modal.warning({
|
||||
title: '提示',
|
||||
content: '是否批量删除以下选中的数据?',
|
||||
hideCancel: false,
|
||||
onOk: async () => {
|
||||
const res = await removeFamily({ ids: batchList });
|
||||
proxy.$message.success(res.message);
|
||||
getInquiryInfo(pager);
|
||||
},
|
||||
onCancel: () => {
|
||||
proxy.$message.info('已取消批量删除数据');
|
||||
},
|
||||
});
|
||||
} else {
|
||||
proxy.$message.error('请勾选需要删除的数据!');
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* 分页改变
|
||||
* @param {Number} [page]
|
||||
*/
|
||||
const handlePageChange = (page) => {
|
||||
pager.page = page;
|
||||
|
||||
// 修改当前页码
|
||||
currentPage.value = page;
|
||||
getInquiryInfo({ ...pager, ...queryForm });
|
||||
};
|
||||
|
||||
// 每页数据量
|
||||
const handlepage_sizeChange = (page_size) => {
|
||||
pager.page_size = page_size;
|
||||
getInquiryInfo({ ...pager, ...queryForm });
|
||||
};
|
||||
|
||||
// 获取患者信息
|
||||
const getInquiryInfo = async (params = {}) => {
|
||||
console.log(params)
|
||||
const { data, code, message } = await getInquiryList(params);
|
||||
if (code == 200) {
|
||||
tableData.value = data.data;
|
||||
Object.assign(pager, { total: data.total, page: data.page, page_size: data.page_size });
|
||||
}
|
||||
};
|
||||
|
||||
// 查询患者信息
|
||||
const handleQuery = async () => {
|
||||
pager.page = 1;
|
||||
const params = {
|
||||
page: pager.page,
|
||||
page_size: pager.page_size,
|
||||
...queryForm,
|
||||
};
|
||||
|
||||
getInquiryInfo(params);
|
||||
};
|
||||
|
||||
// 重置搜索
|
||||
const handleResetQuery = () => {
|
||||
proxy.$refs.queryFormRef.resetFields();
|
||||
getInquiryInfo(queryForm);
|
||||
}
|
||||
|
||||
|
||||
onMounted(() => {
|
||||
getInquiryInfo(pager);
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.action {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.okmodal div {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.hospital_name {
|
||||
width: 140px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.headImg {
|
||||
margin-right: 20px;
|
||||
border-radius: 50%;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
}
|
||||
|
||||
.arco-form-item-layout-horizontal:first-child,
|
||||
.arco-form-item-layout-horizontal:nth-child(2) {
|
||||
align-items: center;
|
||||
}
|
||||
.cellbox{
|
||||
margin-top: 35px;
|
||||
}
|
||||
.cellbox .cell{
|
||||
width:50%;
|
||||
border-bottom:1px dashed #efefef;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.cellbox .cell:first-child{
|
||||
border: none;
|
||||
}
|
||||
.cell{
|
||||
.arco-form-item{
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
}
|
||||
.box {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.cert .arco-form-item-label-col {
|
||||
flex: 0 0 8px !important;
|
||||
}
|
||||
|
||||
.red {
|
||||
display: inline-block;
|
||||
margin-right: 5px;
|
||||
font-size: 14px;
|
||||
color: red;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.cardNum {
|
||||
width: 148px;
|
||||
}
|
||||
.codbox{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.reason{
|
||||
width:250px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
</style>
|
||||
@@ -127,25 +127,26 @@
|
||||
</a-space>
|
||||
</template>
|
||||
</a-table>
|
||||
|
||||
<familyModal :modalVisible="modalVisible" :modalForm="modalForm" @familyVisibleChange="()=>{modalVisible=false}"></familyModal>
|
||||
<prescriptionModal :modalVisible="modalVisible" :modalForm="modalForm" @familyVisibleChange="()=>{modalVisible=false}"></prescriptionModal >
|
||||
<!-- <familyModal :modalVisible="modalVisible" :modalForm="modalForm" @familyVisibleChange="()=>{modalVisible=false}"></familyModal> -->
|
||||
<!-- Akiraka 20230223 删除与批量删除 开始 -->
|
||||
<!-- <DeleteModal :data="deleteData" :visible="deleteVisible" :apiDelete="removePrescription"
|
||||
@deleteVisibleChange="() => deleteVisible = false" /> -->
|
||||
<!-- 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">
|
||||
<template #title>
|
||||
提示
|
||||
</template>
|
||||
<div>确定保存当前信息?</div>
|
||||
</a-modal>
|
||||
</a-modal> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { reactive, ref, getCurrentInstance, onMounted, nextTick, watch, computed } from 'vue';
|
||||
import { getPrescriptionList,getPrescriptionDetail} from '@/api/prescription/list';
|
||||
|
||||
import {formatPrescriptionStatus} from "@/utils/format"
|
||||
|
||||
// Akiraka 20230210 删除数据
|
||||
@@ -267,7 +268,7 @@ watch(() => queryForm.expired_range_time,
|
||||
const handleDetail = async (record) => {
|
||||
|
||||
|
||||
const { code, data, message } = await getPrescriptionDetail(record.family_id);
|
||||
const { code, data, message } = await getPrescriptionDetail(record.order_prescription_id);
|
||||
|
||||
if (code == 200) {
|
||||
Object.assign(modalForm, data);
|
||||
|
||||
Reference in New Issue
Block a user