Merge branch 'dev' 1.6
This commit is contained in:
commit
65ca44071a
1
components.d.ts
vendored
1
components.d.ts
vendored
@ -38,6 +38,7 @@ declare module '@vue/runtime-core' {
|
|||||||
PatientModal: typeof import('./src/components/patientModal.vue')['default']
|
PatientModal: typeof import('./src/components/patientModal.vue')['default']
|
||||||
Prescription: typeof import('./src/components/prescription.vue')['default']
|
Prescription: typeof import('./src/components/prescription.vue')['default']
|
||||||
PrescriptionModal: typeof import('./src/components/prescriptionModal.vue')['default']
|
PrescriptionModal: typeof import('./src/components/prescriptionModal.vue')['default']
|
||||||
|
PrescriptionModalTransfer: typeof import('./src/components/prescriptionModalTransfer.vue')['default']
|
||||||
RouterLink: typeof import('vue-router')['RouterLink']
|
RouterLink: typeof import('vue-router')['RouterLink']
|
||||||
RouterView: typeof import('vue-router')['RouterView']
|
RouterView: typeof import('vue-router')['RouterView']
|
||||||
SysmedinceDetailModal: typeof import('./src/components/sysmedinceDetailModal.vue')['default']
|
SysmedinceDetailModal: typeof import('./src/components/sysmedinceDetailModal.vue')['default']
|
||||||
|
|||||||
32
src/api/prescription/transfer-list.js
Normal file
32
src/api/prescription/transfer-list.js
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
import request from '../../utils/request'
|
||||||
|
|
||||||
|
const url = '/admin/prescription';
|
||||||
|
|
||||||
|
|
||||||
|
export function getPrescriptionList(params){
|
||||||
|
return request({
|
||||||
|
url:'/admin/prescription/transfer',
|
||||||
|
method: 'get',
|
||||||
|
params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function getPrescriptionDetail(id){
|
||||||
|
return request({
|
||||||
|
url:'/admin/prescription/transfer/'+id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function getCase(id){
|
||||||
|
return request({
|
||||||
|
url:'/admin/case/inquiry/'+id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function exportPrescription(data){//导出
|
||||||
|
return request({
|
||||||
|
url:'/admin/export/prescription/transfer',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
@ -270,6 +270,16 @@
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
<a-row :gutter="24" style="margin-top: 35px;">
|
||||||
|
<a-col>
|
||||||
|
<a-form-item field="user_doctor_info.qualification_cert_num" v-show="modalSatus=='detail'" label="执业证书编码:" :hide-label="true">
|
||||||
|
<div class="codbox">
|
||||||
|
<div class="labelname">执业证书编码:</div>
|
||||||
|
<a-input v-model="modalForm.user_doctor_info.qualification_cert_num" style="width:500px" placeholder="请输入执业证书编码" />
|
||||||
|
</div>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
<a-row :gutter="24" style="margin-top: 35px;"
|
<a-row :gutter="24" style="margin-top: 35px;"
|
||||||
v-if="(modalForm.user_doctor_info.qualification_cert && modalForm.user_doctor_info.qualification_cert.length>0) || modalSatus!='detail'">
|
v-if="(modalForm.user_doctor_info.qualification_cert && modalForm.user_doctor_info.qualification_cert.length>0) || modalSatus!='detail'">
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
@ -289,12 +299,7 @@
|
|||||||
@change="onChangeFile" accept="image/*" :file-list="qualification_cert_list"
|
@change="onChangeFile" accept="image/*" :file-list="qualification_cert_list"
|
||||||
@before-upload="beforeUpload" action="/" image-preview /> -->
|
@before-upload="beforeUpload" action="/" image-preview /> -->
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item field="user_doctor_info.qualification_cert_num" v-show="modalSatus=='detail'" label="资格证编号:" :hide-label="true">
|
|
||||||
<div class="codbox">
|
|
||||||
<div class="labelname">资格证编号:</div>
|
|
||||||
<a-input v-model="modalForm.user_doctor_info.qualification_cert_num" style="width:500px" placeholder="请输入资格证编码" />
|
|
||||||
</div>
|
|
||||||
</a-form-item>
|
|
||||||
|
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
|||||||
@ -75,6 +75,122 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-divider />
|
<a-divider />
|
||||||
|
<div class="titlebox" v-if="modalForm.inquiry_doctor && !modalForm.transfer_prescription_doctor">
|
||||||
|
<div class="bar"></div>
|
||||||
|
<div class="name">医生信息</div>
|
||||||
|
<a-space
|
||||||
|
style="
|
||||||
|
margin-right: 8px;
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<a-button type="primary" @click="openDcotor"
|
||||||
|
>查看医生完整信息</a-button
|
||||||
|
>
|
||||||
|
</a-space>
|
||||||
|
</div>
|
||||||
|
<a-row :gutter="24" style="margin-top: 35px" v-if="modalForm.inquiry_doctor && !modalForm.transfer_prescription_doctor">
|
||||||
|
<a-col :span="24">
|
||||||
|
<a-form-item field="license_cert" :hide-label="true">
|
||||||
|
<div class="doctorInfo" v-if="modalForm.inquiry_doctor">
|
||||||
|
<a-space size="large">
|
||||||
|
<a-image
|
||||||
|
width="80"
|
||||||
|
height="80"
|
||||||
|
class="headImg"
|
||||||
|
:src="modalForm.inquiry_doctor.avatar"
|
||||||
|
v-if="modalForm.inquiry_doctor.avatar"
|
||||||
|
>
|
||||||
|
</a-image>
|
||||||
|
<a-image
|
||||||
|
width="80"
|
||||||
|
height="80"
|
||||||
|
class="headImg"
|
||||||
|
src="https://img.applets.igandanyiyuan.com/basic/file/doctor_avatar.png"
|
||||||
|
v-else
|
||||||
|
>
|
||||||
|
</a-image>
|
||||||
|
</a-space>
|
||||||
|
<div class="infobox">
|
||||||
|
<div class="name">
|
||||||
|
{{ modalForm.inquiry_doctor.user_name }} {{
|
||||||
|
formatDoctorTitle(modalForm.inquiry_doctor.doctor_title)
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="hospital" v-if="modalForm.inquiry_doctor.hospital">
|
||||||
|
{{
|
||||||
|
modalForm.inquiry_doctor.hospital.hospital_name
|
||||||
|
}} {{
|
||||||
|
modalForm.inquiry_doctor.department_custom_name
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="doctorInfo" v-else>暂未分配到医生</div>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-divider v-if="modalForm.inquiry_doctor && !modalForm.transfer_prescription_doctor" />
|
||||||
|
<div class="titlebox" v-if="modalForm.transfer_prescription_doctor">
|
||||||
|
<div class="bar"></div>
|
||||||
|
<div class="name">医生信息</div>
|
||||||
|
<a-space
|
||||||
|
style="
|
||||||
|
margin-right: 8px;
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<a-button type="primary" @click="openDcotorTransfer"
|
||||||
|
>查看医生完整信息</a-button
|
||||||
|
>
|
||||||
|
</a-space>
|
||||||
|
</div>
|
||||||
|
<a-row :gutter="24" style="margin-top: 35px">
|
||||||
|
<a-col :span="24">
|
||||||
|
<a-form-item field="license_cert" :hide-label="true">
|
||||||
|
<div class="doctorInfo" v-if="modalForm.transfer_prescription_doctor">
|
||||||
|
<a-space size="large">
|
||||||
|
<a-image
|
||||||
|
width="80"
|
||||||
|
height="80"
|
||||||
|
class="headImg"
|
||||||
|
:src="modalForm.transfer_prescription_doctor.avatar"
|
||||||
|
v-if="modalForm.transfer_prescription_doctor.avatar"
|
||||||
|
>
|
||||||
|
</a-image>
|
||||||
|
<a-image
|
||||||
|
width="80"
|
||||||
|
height="80"
|
||||||
|
class="headImg"
|
||||||
|
src="https://img.applets.igandanyiyuan.com/basic/file/doctor_avatar.png"
|
||||||
|
v-else
|
||||||
|
>
|
||||||
|
</a-image>
|
||||||
|
</a-space>
|
||||||
|
<div class="infobox">
|
||||||
|
<div class="name">
|
||||||
|
{{ modalForm.transfer_prescription_doctor.user_name }} {{
|
||||||
|
formatDoctorTitle(modalForm.transfer_prescription_doctor.doctor_title)
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="hospital" v-if="modalForm.transfer_prescription_doctor.hospital">
|
||||||
|
{{
|
||||||
|
modalForm.transfer_prescription_doctor.hospital.hospital_name
|
||||||
|
}} {{
|
||||||
|
modalForm.transfer_prescription_doctor.department_custom_name
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="doctorInfo" v-else>暂未分配到医生</div>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-divider v-if="modalForm.transfer_prescription_doctor" />
|
||||||
<div class="titlebox">
|
<div class="titlebox">
|
||||||
<div class="bar"></div>
|
<div class="bar"></div>
|
||||||
<div class="name">药品信息</div>
|
<div class="name">药品信息</div>
|
||||||
@ -157,7 +273,7 @@
|
|||||||
<!-- <a-row :gutter="24" v-if="modalForm.order_inquiry_case">
|
<!-- <a-row :gutter="24" v-if="modalForm.order_inquiry_case">
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<a-form-item field="inquiry_no" label="确诊疾病:">
|
<a-form-item field="inquiry_no" label="确诊疾病:">
|
||||||
<span>{{modalForm.order_inquiry_case.disease_class_name}} {{modalForm.user_doctor.department_custom_name}}</span>
|
<span>{{modalForm.order_inquiry_case.disease_class_name}} {{modalForm.inquiry_doctor.department_custom_name}}</span>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row> -->
|
</a-row> -->
|
||||||
@ -182,6 +298,17 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
|
<!-- 医生详情弹框 -->
|
||||||
|
<doctorModal
|
||||||
|
:doctorVisible="doctorVisible"
|
||||||
|
:doctor_id="doctor_id"
|
||||||
|
@doctorVisibleChange="
|
||||||
|
() => {
|
||||||
|
doctorVisible = false;
|
||||||
|
doctor_id = '';
|
||||||
|
}
|
||||||
|
"
|
||||||
|
></doctorModal>
|
||||||
<!-- 患者详情弹窗 -->
|
<!-- 患者详情弹窗 -->
|
||||||
<patientModal
|
<patientModal
|
||||||
:patientVisible="patientVisible"
|
:patientVisible="patientVisible"
|
||||||
@ -207,8 +334,11 @@
|
|||||||
// lookAddress,
|
// lookAddress,
|
||||||
// inquiryCase
|
// inquiryCase
|
||||||
// } from '@/api/order/list';
|
// } from '@/api/order/list';
|
||||||
import {formatPrescriptionStatus, formatPharmacistStatus} from "@/utils/format"
|
import {formatDoctorTitle,formatPrescriptionStatus, formatPharmacistStatus} from "@/utils/format"
|
||||||
|
|
||||||
const IMG_URL = import.meta.env.VITE_IMG_URL;
|
const IMG_URL = import.meta.env.VITE_IMG_URL;
|
||||||
|
const doctorVisible = ref(false);
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
// 是否显示
|
// 是否显示
|
||||||
modalVisible: {
|
modalVisible: {
|
||||||
@ -221,7 +351,8 @@
|
|||||||
order_inquiry_case:{
|
order_inquiry_case:{
|
||||||
order_prescription_id:''
|
order_prescription_id:''
|
||||||
},
|
},
|
||||||
user_doctor:{}
|
inquiry_doctor:{},
|
||||||
|
transfer_prescription_doctor:{}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@ -231,6 +362,9 @@
|
|||||||
const patientData=reactive({});
|
const patientData=reactive({});
|
||||||
const medinceVisible=ref(false);
|
const medinceVisible=ref(false);
|
||||||
let chufang_data = ref([]);
|
let chufang_data = ref([]);
|
||||||
|
const doctor_id = ref('');
|
||||||
|
|
||||||
|
|
||||||
const chufang_columns = reactive([
|
const chufang_columns = reactive([
|
||||||
{
|
{
|
||||||
title: '处方编号',
|
title: '处方编号',
|
||||||
@ -261,6 +395,14 @@ const chufang_columns = reactive([
|
|||||||
const downloadUrl=ref('')
|
const downloadUrl=ref('')
|
||||||
const emits = defineEmits(['familyVisibleChange']);
|
const emits = defineEmits(['familyVisibleChange']);
|
||||||
const {modalVisible,modalForm} = toRefs(props);
|
const {modalVisible,modalForm} = toRefs(props);
|
||||||
|
const openDcotor = () => {
|
||||||
|
doctor_id.value = modalForm.value.inquiry_doctor.doctor_id;
|
||||||
|
doctorVisible.value = true;
|
||||||
|
};
|
||||||
|
const openDcotorTransfer = () => {
|
||||||
|
doctor_id.value = modalForm.value.transfer_prescription_doctor.doctor_id;
|
||||||
|
doctorVisible.value = true;
|
||||||
|
};
|
||||||
watch(modalForm.value,()=>{
|
watch(modalForm.value,()=>{
|
||||||
let data_arr = [{}];
|
let data_arr = [{}];
|
||||||
chufang_columns.forEach((item) => {
|
chufang_columns.forEach((item) => {
|
||||||
@ -302,7 +444,7 @@ const chufang_columns = reactive([
|
|||||||
order_product_refund: {},
|
order_product_refund: {},
|
||||||
order_product_item: [],
|
order_product_item: [],
|
||||||
order_product_logistics: null,
|
order_product_logistics: null,
|
||||||
user_doctor: null,
|
inquiry_doctor: null,
|
||||||
express:[],
|
express:[],
|
||||||
order_prescription: null,
|
order_prescription: null,
|
||||||
order_product_id:'',
|
order_product_id:'',
|
||||||
@ -368,6 +510,25 @@ const chufang_columns = reactive([
|
|||||||
.cardNum {
|
.cardNum {
|
||||||
width: 150px;
|
width: 150px;
|
||||||
}
|
}
|
||||||
|
.doctorInfo {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.infobox {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
.headImg {
|
||||||
|
margin-right: 20px;
|
||||||
|
border-radius: 50%;
|
||||||
|
width: 80px;
|
||||||
|
height: 80px;
|
||||||
|
}
|
||||||
|
.arco-timeline-item-content-wrapper {
|
||||||
|
width: 80%;
|
||||||
|
}
|
||||||
.arco-form-item-layout-horizontal:first-child,
|
.arco-form-item-layout-horizontal:first-child,
|
||||||
.arco-form-item-layout-horizontal:nth-child(2) {
|
.arco-form-item-layout-horizontal:nth-child(2) {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
562
src/components/prescriptionModalTransfer.vue
Normal file
562
src/components/prescriptionModalTransfer.vue
Normal file
@ -0,0 +1,562 @@
|
|||||||
|
<template>
|
||||||
|
<!-- Modal -->
|
||||||
|
<a-modal v-model:visible="modalVisible" fullscreen title="处方详情" title-align="start" :footer="false"
|
||||||
|
@cancel="handleClose">
|
||||||
|
<div class="titlebox">
|
||||||
|
<div class="bar"></div>
|
||||||
|
<div class="name">基本信息</div>
|
||||||
|
</div>
|
||||||
|
<a-form :model="modalForm" ref="modalFormRef" :auto-label-width="true">
|
||||||
|
<a-row :gutter="24" style="margin-top: 35px;">
|
||||||
|
<a-col :span="12">
|
||||||
|
<a-form-item field="avatar" label="订单编号:">
|
||||||
|
<span>{{modalForm.order_prescription_id}}</span>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12">
|
||||||
|
<a-form-item field="idCard" label="处方状态:" >
|
||||||
|
<div class="box" >
|
||||||
|
<div class="cardNum">{{formatPrescriptionStatus(modalForm.prescription_status)}}</div>
|
||||||
|
</div>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24" >
|
||||||
|
<a-col :span="12">
|
||||||
|
<a-form-item field="idCard" label="开方医生:" >
|
||||||
|
<div class="box" v-if="modalForm.transfer_prescription_doctor || modalForm.inquiry_doctor" >{{ showTransferDoctor?modalForm.inquiry_doctor.user_name:modalForm.transfer_prescription_doctor.user_name}} </div>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12">
|
||||||
|
<a-form-item field="idCard" label="审方药师:" >
|
||||||
|
<div class="box" >{{modalForm.pharmacist_name}} </div>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24" >
|
||||||
|
<a-col :span="12">
|
||||||
|
<a-form-item field="idCard" label="就 诊 人:" >
|
||||||
|
<div class="box" >{{ modalForm.patient_name}}</div>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24" >
|
||||||
|
<a-col :span="12">
|
||||||
|
<a-form-item field="idCard" label="开方时间:" >
|
||||||
|
<div class="box" > {{ modalForm.doctor_created_time }}</div>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12">
|
||||||
|
<a-form-item field="idCard" label="审方时间:" >
|
||||||
|
<div class="box" > {{ modalForm.pharmacist_verify_time }}</div>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24" >
|
||||||
|
<a-col :span="12">
|
||||||
|
<a-form-item field="idCard" label="诊断:" >
|
||||||
|
<div class="box" >{{ modalForm.order_prescription_icd }} </div>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24" >
|
||||||
|
<a-col :span="12">
|
||||||
|
<a-form-item field="idCard" label="用法用量:" >
|
||||||
|
<span class="box" v-for="item in modalForm.order_prescription_product"> {{ item.product_name
|
||||||
|
}}【{{item.frequency_use}}】</span>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24" >
|
||||||
|
<a-col :span="12">
|
||||||
|
<a-form-item field="idCard" label="医嘱:" >
|
||||||
|
<div class="box" >{{ modalForm.doctor_advice }}</div>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-divider />
|
||||||
|
<div class="titlebox" v-if="modalForm.inquiry_doctor && showTransferDoctor ">
|
||||||
|
<div class="bar"></div>
|
||||||
|
<div class="name">医生信息</div>
|
||||||
|
<a-space
|
||||||
|
style="
|
||||||
|
margin-right: 8px;
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<a-button type="primary" @click="openDcotor"
|
||||||
|
>查看医生完整信息</a-button
|
||||||
|
>
|
||||||
|
</a-space>
|
||||||
|
</div>
|
||||||
|
<a-row :gutter="24" style="margin-top: 35px">
|
||||||
|
<a-col :span="24">
|
||||||
|
<a-form-item field="license_cert" :hide-label="true">
|
||||||
|
<div class="doctorInfo" v-if="modalForm.inquiry_doctor">
|
||||||
|
<a-space size="large">
|
||||||
|
<a-image
|
||||||
|
width="80"
|
||||||
|
height="80"
|
||||||
|
class="headImg"
|
||||||
|
:src="modalForm.inquiry_doctor.avatar"
|
||||||
|
v-if="modalForm.inquiry_doctor.avatar"
|
||||||
|
>
|
||||||
|
</a-image>
|
||||||
|
<a-image
|
||||||
|
width="80"
|
||||||
|
height="80"
|
||||||
|
class="headImg"
|
||||||
|
src="https://img.applets.igandanyiyuan.com/basic/file/doctor_avatar.png"
|
||||||
|
v-else
|
||||||
|
>
|
||||||
|
</a-image>
|
||||||
|
</a-space>
|
||||||
|
<div class="infobox">
|
||||||
|
<div class="name">
|
||||||
|
{{ modalForm.inquiry_doctor.user_name }} {{
|
||||||
|
formatDoctorTitle(modalForm.inquiry_doctor.doctor_title)
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="hospital" v-if="modalForm.inquiry_doctor.hospital">
|
||||||
|
{{
|
||||||
|
modalForm.inquiry_doctor.hospital.hospital_name
|
||||||
|
}} {{
|
||||||
|
modalForm.inquiry_doctor.department_custom_name
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="doctorInfo" v-else>暂未分配到医生</div>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-divider v-if="modalForm.inquiry_doctor && showTransferDoctor" />
|
||||||
|
|
||||||
|
<div class="titlebox" v-if="modalForm.transfer_prescription_doctor && !showTransferDoctor">
|
||||||
|
<div class="bar"></div>
|
||||||
|
<div class="name">医生信息</div>
|
||||||
|
<a-space
|
||||||
|
style="
|
||||||
|
margin-right: 8px;
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<a-button type="primary" @click="openDcotorTransfer"
|
||||||
|
>查看医生完整信息</a-button
|
||||||
|
>
|
||||||
|
</a-space>
|
||||||
|
</div>
|
||||||
|
<a-row :gutter="24" style="margin-top: 35px" v-if="modalForm.transfer_prescription_doctor && !showTransferDoctor">
|
||||||
|
<a-col :span="24">
|
||||||
|
<a-form-item field="license_cert" :hide-label="true">
|
||||||
|
<div class="doctorInfo" v-if="modalForm.transfer_prescription_doctor">
|
||||||
|
<a-space size="large">
|
||||||
|
<a-image
|
||||||
|
width="80"
|
||||||
|
height="80"
|
||||||
|
class="headImg"
|
||||||
|
:src="modalForm.transfer_prescription_doctor.avatar"
|
||||||
|
v-if="modalForm.transfer_prescription_doctor.avatar"
|
||||||
|
>
|
||||||
|
</a-image>
|
||||||
|
<a-image
|
||||||
|
width="80"
|
||||||
|
height="80"
|
||||||
|
class="headImg"
|
||||||
|
src="https://img.applets.igandanyiyuan.com/basic/file/doctor_avatar.png"
|
||||||
|
v-else
|
||||||
|
>
|
||||||
|
</a-image>
|
||||||
|
</a-space>
|
||||||
|
<div class="infobox">
|
||||||
|
<div class="name">
|
||||||
|
{{ modalForm.transfer_prescription_doctor.user_name }} {{
|
||||||
|
formatDoctorTitle(modalForm.transfer_prescription_doctor.doctor_title)
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="hospital" v-if="modalForm.transfer_prescription_doctor.hospital">
|
||||||
|
{{
|
||||||
|
modalForm.transfer_prescription_doctor.hospital.hospital_name
|
||||||
|
}} {{
|
||||||
|
modalForm.transfer_prescription_doctor.department_custom_name
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="doctorInfo" v-else>暂未分配到医生</div>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-divider v-if="modalForm.transfer_prescription_doctor && !showTransferDoctor" />
|
||||||
|
<div class="titlebox">
|
||||||
|
<div class="bar"></div>
|
||||||
|
<div class="name">药品信息</div>
|
||||||
|
</div>
|
||||||
|
<a-row :gutter="24" style="margin-top: 35px;">
|
||||||
|
<a-col :span="24">
|
||||||
|
<a-form-item field="avatar" :hide-label="true">
|
||||||
|
<a-list>
|
||||||
|
<a-list-item
|
||||||
|
v-for="item in modalForm.order_prescription_product"
|
||||||
|
:key="item.product_item_id"
|
||||||
|
>
|
||||||
|
<a-list-item-meta
|
||||||
|
:title="item.product_name + item.product_spec"
|
||||||
|
:description="item.manufacturer + '*' + item.prescription_product_num
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<template #avatar>
|
||||||
|
<a-avatar shape="square">
|
||||||
|
<img
|
||||||
|
alt="avatar"
|
||||||
|
src="https://p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/3ee5f13fb09879ecb5185e440cef6eb9.png~tplv-uwbnlip3yd-webp.webp"
|
||||||
|
/>
|
||||||
|
</a-avatar>
|
||||||
|
</template>
|
||||||
|
</a-list-item-meta>
|
||||||
|
</a-list-item>
|
||||||
|
</a-list>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-divider />
|
||||||
|
<div class="titlebox">
|
||||||
|
<div class="bar"></div>
|
||||||
|
<div class="name">处方信息</div>
|
||||||
|
</div>
|
||||||
|
<a-row :gutter="24" style="margin-top: 35px;">
|
||||||
|
<a-col :span="24">
|
||||||
|
<a-form-item field="" :hide-label="true">
|
||||||
|
<tableUnit
|
||||||
|
:pagination="false"
|
||||||
|
:columns="chufang_columns"
|
||||||
|
:data="chufang_data"
|
||||||
|
></tableUnit>
|
||||||
|
<!-- <prescription :data="modalForm.order_prescription"></prescription> -->
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-divider />
|
||||||
|
<div class="titlebox">
|
||||||
|
<div class="bar"></div>
|
||||||
|
<div class="name">病例信息</div>
|
||||||
|
<a-space
|
||||||
|
style="
|
||||||
|
margin-right: 8px;
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<a-button type="primary" status="warning" @click="openPatient"
|
||||||
|
>查看完整病例信息</a-button
|
||||||
|
>
|
||||||
|
</a-space>
|
||||||
|
</div>
|
||||||
|
<a-row :gutter="24" style="margin-top: 35px" v-if="modalForm.order_inquiry_case">
|
||||||
|
<a-col :span="24">
|
||||||
|
<a-form-item label="就诊人姓名:">
|
||||||
|
<span>{{modalForm.order_inquiry_case.name }} ({{modalForm.order_inquiry_case.sex == 1 ? '男' : '女'}} {{ modalForm.order_inquiry_case.age }}岁)</span>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24" v-if="modalForm.order_inquiry_case">
|
||||||
|
<a-col :span="24">
|
||||||
|
<a-form-item field="inquiry_no" label="病情描述:">
|
||||||
|
<span>{{modalForm.order_inquiry_case.disease_desc}}</span>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<!-- <a-row :gutter="24" v-if="modalForm.order_inquiry_case">
|
||||||
|
<a-col :span="24">
|
||||||
|
<a-form-item field="inquiry_no" label="确诊疾病:">
|
||||||
|
<span>{{modalForm.order_inquiry_case.disease_class_name}} {{modalForm.inquiry_doctor.department_custom_name}}</span>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row> -->
|
||||||
|
<a-divider />
|
||||||
|
|
||||||
|
</a-form>
|
||||||
|
<div class="titlebox" >
|
||||||
|
<div class="bar"></div>
|
||||||
|
<div class="name">操作</div>
|
||||||
|
</div>
|
||||||
|
<a-row :gutter="24" style="margin-top: 35px;" >
|
||||||
|
<a-col :span="24">
|
||||||
|
<a-form-item field="" label="" no-style>
|
||||||
|
<!-- -->
|
||||||
|
<a-space style="margin-right: 8px;" v-if="modalForm.prescription_status==4">
|
||||||
|
<a-button type="primary" @click="lookMedince" v-has="'admin:sysPrescriptionListTransfer:vieworder'">查看订单</a-button>
|
||||||
|
</a-space>
|
||||||
|
<a-space >
|
||||||
|
<a-button type="primary" @click="downloadFile(downloadUrl)" v-has="'admin:sysPrescriptionListTransfer:download'" >下载</a-button>
|
||||||
|
</a-space>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-modal>
|
||||||
|
<!-- 医生详情弹框 -->
|
||||||
|
<doctorModal
|
||||||
|
:doctorVisible="doctorVisible"
|
||||||
|
:doctor_id="doctor_id"
|
||||||
|
@doctorVisibleChange="
|
||||||
|
() => {
|
||||||
|
doctorVisible = false;
|
||||||
|
doctor_id = '';
|
||||||
|
}
|
||||||
|
"
|
||||||
|
></doctorModal>
|
||||||
|
<!-- 患者详情弹窗 -->
|
||||||
|
<patientModal
|
||||||
|
:patientVisible="patientVisible"
|
||||||
|
:data="patientData"
|
||||||
|
:modalTitle="'病例详情'"
|
||||||
|
@patientVisibleChange="
|
||||||
|
() => {
|
||||||
|
patientVisible = false;
|
||||||
|
}
|
||||||
|
"
|
||||||
|
></patientModal>
|
||||||
|
<medinceModal :medinceVisible="medinceVisible" :modalForm="medinceData" @medinceVisibleChange="()=>{medinceVisible=false}"></medinceModal>
|
||||||
|
</template>
|
||||||
|
<script setup>
|
||||||
|
import {ref,toRefs,reactive,watchEffect,watch,onMounted} from 'vue';
|
||||||
|
import {getCase} from '@/api/prescription/list';
|
||||||
|
import { getProductDetail,inquiryCase} from '@/api/order/list';
|
||||||
|
// import {
|
||||||
|
// productList,
|
||||||
|
// getProductDetail,
|
||||||
|
// cancelProduct,
|
||||||
|
// reportPrePscription,
|
||||||
|
// lookAddress,
|
||||||
|
// inquiryCase
|
||||||
|
// } from '@/api/order/list';
|
||||||
|
import {formatDoctorTitle,formatPrescriptionStatus, formatPharmacistStatus} from "@/utils/format"
|
||||||
|
|
||||||
|
const IMG_URL = import.meta.env.VITE_IMG_URL;
|
||||||
|
const doctorVisible = ref(false);
|
||||||
|
|
||||||
|
const props = defineProps({
|
||||||
|
// 是否显示
|
||||||
|
modalVisible: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
|
modalForm: {
|
||||||
|
type: Object,
|
||||||
|
default:{
|
||||||
|
order_inquiry_case:{
|
||||||
|
order_prescription_id:''
|
||||||
|
},
|
||||||
|
inquiry_doctor:{},
|
||||||
|
transfer_prescription_doctor:{}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
let express = []; //物流信息;
|
||||||
|
const cur_express = ref([]);
|
||||||
|
const patientVisible=ref(false);
|
||||||
|
const patientData=reactive({});
|
||||||
|
const medinceVisible=ref(false);
|
||||||
|
let chufang_data = ref([]);
|
||||||
|
const doctor_id = ref('');
|
||||||
|
const showTransferDoctor=ref(false);
|
||||||
|
onMounted(()=>{
|
||||||
|
let userInfo=localStorage.getItem('manage-userInfo')?JSON.parse(localStorage.getItem('manage-userInfo')):{};
|
||||||
|
showTransferDoctor.value=userInfo.role_name!='处方流转平台';
|
||||||
|
})
|
||||||
|
|
||||||
|
const chufang_columns = reactive([
|
||||||
|
{
|
||||||
|
title: '处方编号',
|
||||||
|
dataIndex: 'prescription_code',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '处方状态',
|
||||||
|
dataIndex: 'prescription_status',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '药师审核状态',
|
||||||
|
dataIndex: 'pharmacist_audit_status',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '医嘱',
|
||||||
|
dataIndex: 'doctor_advice',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '药师驳回原因',
|
||||||
|
dataIndex: 'pharmacist_fail_reason',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '处方链接',
|
||||||
|
dataIndex: 'url',
|
||||||
|
slotName: 'url',
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
const downloadUrl=ref('')
|
||||||
|
const emits = defineEmits(['familyVisibleChange']);
|
||||||
|
const {modalVisible,modalForm} = toRefs(props);
|
||||||
|
const openDcotor = () => {
|
||||||
|
doctor_id.value = modalForm.value.inquiry_doctor.doctor_id;
|
||||||
|
doctorVisible.value = true;
|
||||||
|
};
|
||||||
|
const openDcotorTransfer = () => {
|
||||||
|
doctor_id.value = modalForm.value.transfer_prescription_doctor.doctor_id;
|
||||||
|
doctorVisible.value = true;
|
||||||
|
};
|
||||||
|
watch(modalForm.value,()=>{
|
||||||
|
let data_arr = [{}];
|
||||||
|
chufang_columns.forEach((item) => {
|
||||||
|
if (item.dataIndex == 'prescription_status') {
|
||||||
|
data_arr[0][item.dataIndex] = formatPrescriptionStatus(
|
||||||
|
modalForm.value[item.dataIndex]
|
||||||
|
);
|
||||||
|
} else if (item.dataIndex == 'pharmacist_audit_status') {
|
||||||
|
data_arr[0][item.dataIndex] = formatPharmacistStatus(
|
||||||
|
modalForm.value[item.dataIndex]
|
||||||
|
);
|
||||||
|
} else if (item.dataIndex == 'url') {
|
||||||
|
data_arr[0][item.dataIndex] =
|
||||||
|
IMG_URL +
|
||||||
|
'/applet/prescription/' +
|
||||||
|
modalForm.value.order_prescription_id +
|
||||||
|
'.pdf';
|
||||||
|
downloadUrl.value=data_arr[0][item.dataIndex];
|
||||||
|
} else if (item.dataIndex == 'pharmacist_fail_reason') {
|
||||||
|
data_arr[0][item.dataIndex] = modalForm.value[item.dataIndex]
|
||||||
|
? modalForm.value[item.dataIndex]
|
||||||
|
: '暂无';
|
||||||
|
} else {
|
||||||
|
data_arr[0][item.dataIndex] =modalForm.value[item.dataIndex];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
chufang_data.value= data_arr;
|
||||||
|
|
||||||
|
},{immediate:true,deep:true})
|
||||||
|
const handleGetCase=()=>{
|
||||||
|
getCase(modalForm.value.order_inquiry_case.inquiry_case_id
|
||||||
|
).then(data=>{
|
||||||
|
if(data.code==200){
|
||||||
|
Object.assign(patientData,data.data)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
const medinceData=reactive({
|
||||||
|
order_product_refund: {},
|
||||||
|
order_product_item: [],
|
||||||
|
order_product_logistics: null,
|
||||||
|
inquiry_doctor: null,
|
||||||
|
express:[],
|
||||||
|
order_prescription: null,
|
||||||
|
order_product_id:'',
|
||||||
|
patientData:{}
|
||||||
|
})
|
||||||
|
const lookMedince=()=>{
|
||||||
|
medinceVisible.value=true;
|
||||||
|
getDetail(modalForm.value.order_product_id);
|
||||||
|
};
|
||||||
|
|
||||||
|
//药品详情
|
||||||
|
const getDetail = async (order_product_id) => {
|
||||||
|
chufang_data.vlaue=[];
|
||||||
|
Object.assign(patientData,{});
|
||||||
|
const { code, data, message } = await getProductDetail(order_product_id);
|
||||||
|
if (code == 200) {
|
||||||
|
Object.assign(medinceData, data);
|
||||||
|
let result = data.order_prescription;
|
||||||
|
express = data.order_product_logistics
|
||||||
|
? JSON.parse(data.order_product_logistics.logistics_content)
|
||||||
|
: [];
|
||||||
|
//cur_express.value = express.length > 1 && express.slice(0, 1);
|
||||||
|
|
||||||
|
if(data.order_inquiry_case && data.order_inquiry_case.inquiry_case_id){
|
||||||
|
const caseInfo= await inquiryCase(data.order_inquiry_case.inquiry_case_id);
|
||||||
|
Object.assign(patientData,caseInfo.data);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
medinceData.chufang_columns=chufang_columns;
|
||||||
|
medinceData.chufang_data=chufang_data.value;
|
||||||
|
medinceData.express= express;//cur_express.value;
|
||||||
|
medinceData.order_product_id=order_product_id;
|
||||||
|
medinceData.patientData=patientData;
|
||||||
|
};
|
||||||
|
|
||||||
|
// Akiraka 20230210 关闭弹窗
|
||||||
|
const handleClose = () => {
|
||||||
|
emits('familyVisibleChange', false);
|
||||||
|
};
|
||||||
|
const openPatient=() =>{
|
||||||
|
handleGetCase();
|
||||||
|
patientVisible.value=true;
|
||||||
|
}
|
||||||
|
const downloadFile=(fileUrl)=>{
|
||||||
|
const request = new XMLHttpRequest()
|
||||||
|
request.open('GET', fileUrl)
|
||||||
|
request.responseType = 'blob'
|
||||||
|
request.onload = (res) => {
|
||||||
|
if (res.target.status == 200) {
|
||||||
|
const url = window.URL.createObjectURL(res.currentTarget.response)
|
||||||
|
const link = document.createElement('a')
|
||||||
|
link.href = url
|
||||||
|
link.setAttribute('download', '抄方处方'+new Date().getTime())
|
||||||
|
link.click()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
request.send()
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
<style scoped>
|
||||||
|
.cardNum {
|
||||||
|
width: 150px;
|
||||||
|
}
|
||||||
|
.doctorInfo {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.infobox {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
.headImg {
|
||||||
|
margin-right: 20px;
|
||||||
|
border-radius: 50%;
|
||||||
|
width: 80px;
|
||||||
|
height: 80px;
|
||||||
|
}
|
||||||
|
.arco-timeline-item-content-wrapper {
|
||||||
|
width: 80%;
|
||||||
|
}
|
||||||
|
.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;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cert .arco-form-item-label-col {
|
||||||
|
flex: 0 0 8px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
@ -254,6 +254,23 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-divider />
|
<a-divider />
|
||||||
|
<div class="titlebox" v-if="showTransferDoctor">
|
||||||
|
<div class="bar"></div>
|
||||||
|
<div class="name">是否接受抄方</div>
|
||||||
|
</div>
|
||||||
|
<a-row :gutter="24" style="margin-top: 35px;" v-if="showTransferDoctor">
|
||||||
|
<a-col :span="12">
|
||||||
|
<a-form-item field="is_recommend" label="状态:">
|
||||||
|
<a-space size="large">
|
||||||
|
<a-switch checked-color="#14C9C9" :checked-value="1" :unchecked-value="0"
|
||||||
|
v-model="modalForm.is_transfer_prescription" />
|
||||||
|
</a-space>
|
||||||
|
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
|
||||||
|
</a-row>
|
||||||
|
<a-divider v-if="showTransferDoctor"/>
|
||||||
<div class="titlebox">
|
<div class="titlebox">
|
||||||
<div class="bar"></div>
|
<div class="bar"></div>
|
||||||
<div class="name">医师证件</div>
|
<div class="name">医师证件</div>
|
||||||
@ -274,6 +291,16 @@
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
<a-row :span="24" style="margin-top: 35px;">
|
||||||
|
<a-form-item field="user_doctor_info.qualification_cert_num" label="资格证编号:"
|
||||||
|
:hide-label="true">
|
||||||
|
<div class="codbox">
|
||||||
|
<div class="labelname">执业证书编码:</div>
|
||||||
|
<a-input v-model="modalForm.user_doctor_info.qualification_cert_num" style="width:500px"
|
||||||
|
placeholder="请输入执业证书编码" />
|
||||||
|
</div>
|
||||||
|
</a-form-item>
|
||||||
|
</a-row>
|
||||||
<a-row class="codebox_cert" :gutter="24" style="margin-top: 35px;"
|
<a-row class="codebox_cert" :gutter="24" style="margin-top: 35px;"
|
||||||
v-if="(modalForm.user_doctor_info.qualification_cert && modalForm.user_doctor_info.qualification_cert.length>0)">
|
v-if="(modalForm.user_doctor_info.qualification_cert && modalForm.user_doctor_info.qualification_cert.length>0)">
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
@ -288,11 +315,11 @@
|
|||||||
</a-image-preview-group>
|
</a-image-preview-group>
|
||||||
|
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<div class="codbox">
|
<!-- <div class="codbox">
|
||||||
<div class="labelname"><span
|
<div class="labelname"><span
|
||||||
class="arco-form-item-label-required-symbol red">*</span>资格证编号:</div>
|
class="arco-form-item-label-required-symbol red">*</span>资格证编号:</div>
|
||||||
<a-input v-model="modalForm.user_doctor_info.qualification_cert_num" style="width:500px" placeholder="请输入资格证编码" />
|
<a-input v-model="modalForm.user_doctor_info.qualification_cert_num" style="width:500px" placeholder="请输入资格证编码" />
|
||||||
</div>
|
</div> -->
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<!-- <a-row :gutter="24">
|
<!-- <a-row :gutter="24">
|
||||||
@ -445,6 +472,7 @@
|
|||||||
import { Message } from '@arco-design/web-vue';
|
import { Message } from '@arco-design/web-vue';
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
import { parseTime } from '@/utils/parseTime';
|
import { parseTime } from '@/utils/parseTime';
|
||||||
|
const showTransferDoctor=ref(false);
|
||||||
// Akiraka 20230210 删除数据
|
// Akiraka 20230210 删除数据
|
||||||
const deleteData = ref([])
|
const deleteData = ref([])
|
||||||
// Akiraka 20230210 删除对话框
|
// Akiraka 20230210 删除对话框
|
||||||
@ -864,6 +892,8 @@
|
|||||||
getDoctorInfo(queryForm);
|
getDoctorInfo(queryForm);
|
||||||
}
|
}
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
let userInfo=localStorage.getItem('manage-userInfo')?JSON.parse(localStorage.getItem('manage-userInfo')):{};
|
||||||
|
showTransferDoctor.value=userInfo.role_name!='处方流转平台';
|
||||||
getDoctorInfo(pager);
|
getDoctorInfo(pager);
|
||||||
handleHospitalList();
|
handleHospitalList();
|
||||||
getDepartmentList();
|
getDepartmentList();
|
||||||
|
|||||||
@ -364,6 +364,23 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-divider />
|
<a-divider />
|
||||||
|
<div class="titlebox" v-if="showTransferDoctor">
|
||||||
|
<div class="bar"></div>
|
||||||
|
<div class="name">是否接受抄方</div>
|
||||||
|
</div>
|
||||||
|
<a-row :gutter="24" style="margin-top: 35px;" v-if="showTransferDoctor">
|
||||||
|
<a-col :span="12">
|
||||||
|
<a-form-item field="is_recommend" label="状态:">
|
||||||
|
<a-space size="large">
|
||||||
|
<a-switch checked-color="#14C9C9" :checked-value="1" :unchecked-value="0"
|
||||||
|
v-model="modalForm.is_transfer_prescription" />
|
||||||
|
</a-space>
|
||||||
|
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
|
||||||
|
</a-row>
|
||||||
|
<a-divider v-if="showTransferDoctor"/>
|
||||||
<div class="titlebox">
|
<div class="titlebox">
|
||||||
<div class="bar"></div>
|
<div class="bar"></div>
|
||||||
<div class="name">平台合作</div>
|
<div class="name">平台合作</div>
|
||||||
@ -463,8 +480,21 @@
|
|||||||
:file-list="license_cert_list" @before-upload="beforeUpload" action="/" :auto-upload="false"
|
:file-list="license_cert_list" @before-upload="beforeUpload" action="/" :auto-upload="false"
|
||||||
image-preview /> -->
|
image-preview /> -->
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
<a-row>
|
||||||
|
<a-row :span="24" style="margin-top: 35px;">
|
||||||
|
<a-form-item field="user_doctor_info.qualification_cert_num" v-show="modalSatus == 'detail'" label="资格证编号:"
|
||||||
|
:hide-label="true">
|
||||||
|
<div class="codbox">
|
||||||
|
<div class="labelname">执业证书编码:</div>
|
||||||
|
<a-input v-model="modalForm.user_doctor_info.qualification_cert_num" style="width:500px"
|
||||||
|
placeholder="请输入执业证书编码" />
|
||||||
|
</div>
|
||||||
|
</a-form-item>
|
||||||
|
</a-row>
|
||||||
|
</a-row>
|
||||||
<a-row :gutter="24" style="margin-top: 35px;"
|
<a-row :gutter="24" style="margin-top: 35px;"
|
||||||
v-if="(modalForm.user_doctor_info.qualification_cert && modalForm.user_doctor_info.qualification_cert.length > 0) || modalSatus != 'detail'">
|
v-if="(modalForm.user_doctor_info.qualification_cert && modalForm.user_doctor_info.qualification_cert.length > 0) || modalSatus != 'detail'">
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
@ -484,14 +514,7 @@
|
|||||||
@change="onChangeFile" accept="image/*" :file-list="qualification_cert_list"
|
@change="onChangeFile" accept="image/*" :file-list="qualification_cert_list"
|
||||||
@before-upload="beforeUpload" action="/" image-preview /> -->
|
@before-upload="beforeUpload" action="/" image-preview /> -->
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item field="user_doctor_info.qualification_cert_num" v-show="modalSatus == 'detail'" label="资格证编号:"
|
|
||||||
:hide-label="true">
|
|
||||||
<div class="codbox">
|
|
||||||
<div class="labelname">资格证编号:</div>
|
|
||||||
<a-input v-model="modalForm.user_doctor_info.qualification_cert_num" style="width:500px"
|
|
||||||
placeholder="请输入资格证编码" />
|
|
||||||
</div>
|
|
||||||
</a-form-item>
|
|
||||||
|
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
@ -705,6 +728,7 @@ const oldFrontImg = ref(''), oldBackImg = ref(''), oldSignImg = ref('');
|
|||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
const currentPage = ref(1);
|
const currentPage = ref(1);
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
|
const showTransferDoctor = ref(false);
|
||||||
|
|
||||||
// Pager
|
// Pager
|
||||||
const pager = {
|
const pager = {
|
||||||
@ -1735,6 +1759,12 @@ const handlExport = async (type) => {
|
|||||||
}
|
}
|
||||||
//ca证书
|
//ca证书
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
//showTransferDoctor
|
||||||
|
let userInfo=localStorage.getItem('manage-userInfo')?JSON.parse(localStorage.getItem('manage-userInfo')):{};
|
||||||
|
showTransferDoctor.value=userInfo.role_name!='处方流转平台';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
getDoctorInfo(pager);
|
getDoctorInfo(pager);
|
||||||
handleHospitalList();
|
handleHospitalList();
|
||||||
getDepartmentList();
|
getDepartmentList();
|
||||||
|
|||||||
@ -130,11 +130,12 @@ const handleLogin = () => {
|
|||||||
try {
|
try {
|
||||||
const { code, data, message } = await login(loginForm);
|
const { code, data, message } = await login(loginForm);
|
||||||
if ( code == 200 ) {
|
if ( code == 200 ) {
|
||||||
const {avatar,nick_name,token,user_id}=data;
|
const {avatar,nick_name,token,user_id,role_name}=data;
|
||||||
const userInfo={
|
const userInfo={
|
||||||
nick_name,
|
nick_name,
|
||||||
avatar,
|
avatar,
|
||||||
user_id
|
user_id,
|
||||||
|
role_name
|
||||||
}
|
}
|
||||||
await store.setInfo(token,userInfo);
|
await store.setInfo(token,userInfo);
|
||||||
proxy.$message.success({
|
proxy.$message.success({
|
||||||
|
|||||||
@ -69,14 +69,14 @@
|
|||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|
||||||
<!-- <a-form-item field="order_product_no" label="处方编号">
|
<a-form-item field="order_product_no" label="处方编号">
|
||||||
<a-input
|
<a-input
|
||||||
:style="{ width: '182px' }"
|
:style="{ width: '182px' }"
|
||||||
v-model="queryForm.prescription_code"
|
v-model="queryForm.prescription_code"
|
||||||
placeholder="请输入处方编号"
|
placeholder="请输入处方编号"
|
||||||
@press-enter="handleQuery"
|
@press-enter="handleQuery"
|
||||||
/>
|
/>
|
||||||
</a-form-item> -->
|
</a-form-item>
|
||||||
<a-form-item field="escrow_trade_no" label="支付流水号">
|
<a-form-item field="escrow_trade_no" label="支付流水号">
|
||||||
<a-input
|
<a-input
|
||||||
:style="{ width: '168px' }"
|
:style="{ width: '168px' }"
|
||||||
@ -286,6 +286,9 @@
|
|||||||
<template #amount_total="{ record }">
|
<template #amount_total="{ record }">
|
||||||
{{ record.amount_total }}元
|
{{ record.amount_total }}元
|
||||||
</template>
|
</template>
|
||||||
|
<template #doctor_name="{ record }">
|
||||||
|
{{ (record.is_transfer_order==1 && !showTransferDoctor)?record.transfer_prescription_doctor.user_name:record.inquiry_doctor.user_name }}
|
||||||
|
</template>
|
||||||
<template #payment_amount_total="{ record }">
|
<template #payment_amount_total="{ record }">
|
||||||
{{ record.payment_amount_total }}元
|
{{ record.payment_amount_total }}元
|
||||||
</template>
|
</template>
|
||||||
@ -586,7 +589,7 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-divider v-if="modalForm.order_prescription" />
|
<a-divider v-if="modalForm.order_prescription" />
|
||||||
<div class="titlebox" v-if="modalForm.user_doctor">
|
<div class="titlebox" v-if="modalForm.user_doctor && showTransferDoctor">
|
||||||
<div class="bar"></div>
|
<div class="bar"></div>
|
||||||
<div class="name">医生信息</div>
|
<div class="name">医生信息</div>
|
||||||
<a-space
|
<a-space
|
||||||
@ -602,17 +605,17 @@
|
|||||||
>
|
>
|
||||||
</a-space>
|
</a-space>
|
||||||
</div>
|
</div>
|
||||||
<a-row :gutter="24" style="margin-top: 35px">
|
<a-row :gutter="24" style="margin-top: 35px" v-if="modalForm.inquiry_doctor && showTransferDoctor">
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<a-form-item field="license_cert" :hide-label="true">
|
<a-form-item field="license_cert" :hide-label="true">
|
||||||
<div class="doctorInfo" v-if="modalForm.user_doctor">
|
<div class="doctorInfo" v-if="modalForm.inquiry_doctor">
|
||||||
<a-space size="large">
|
<a-space size="large">
|
||||||
<a-image
|
<a-image
|
||||||
width="80"
|
width="80"
|
||||||
height="80"
|
height="80"
|
||||||
class="headImg"
|
class="headImg"
|
||||||
:src="modalForm.user_doctor.avatar"
|
:src="modalForm.inquiry_doctor.avatar"
|
||||||
v-if="modalForm.user_doctor.avatar"
|
v-if="modalForm.inquiry_doctor.avatar"
|
||||||
>
|
>
|
||||||
</a-image>
|
</a-image>
|
||||||
<a-image
|
<a-image
|
||||||
@ -626,15 +629,15 @@
|
|||||||
</a-space>
|
</a-space>
|
||||||
<div class="infobox">
|
<div class="infobox">
|
||||||
<div class="name">
|
<div class="name">
|
||||||
{{ modalForm.user_doctor.user_name }} {{
|
{{ modalForm.inquiry_doctor.user_name }} {{
|
||||||
formatDoctorTitle(modalForm.user_doctor.doctor_title)
|
formatDoctorTitle(modalForm.inquiry_doctor.doctor_title)
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="hospital">
|
<div class="hospital" v-if="modalForm.inquiry_doctor.hospital">
|
||||||
{{
|
{{
|
||||||
modalForm.user_doctor.hospital.hospital_name
|
modalForm.inquiry_doctor.hospital.hospital_name
|
||||||
}} {{
|
}} {{
|
||||||
modalForm.user_doctor.department_custom_name
|
modalForm.inquiry_doctor.department_custom_name
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -643,7 +646,65 @@
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-divider v-if="modalForm.user_doctor" />
|
<a-divider v-if="modalForm.inquiry_doctor && showTransferDoctor" />
|
||||||
|
<div class="titlebox" v-if="modalForm.transfer_prescription_doctor && !showTransferDoctor && modalForm.is_transfer_order==1">
|
||||||
|
<div class="bar"></div>
|
||||||
|
<div class="name">抄方医生信息</div>
|
||||||
|
<a-space
|
||||||
|
style="
|
||||||
|
margin-right: 8px;
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<a-button type="primary" @click="openDcotorTransfer"
|
||||||
|
>查看抄方医生完整信息</a-button
|
||||||
|
>
|
||||||
|
</a-space>
|
||||||
|
</div>
|
||||||
|
<a-row :gutter="24" style="margin-top: 35px" v-if="modalForm.transfer_prescription_doctor && !showTransferDoctor && modalForm.is_transfer_order==1">
|
||||||
|
<a-col :span="24">
|
||||||
|
<a-form-item field="license_cert" :hide-label="true">
|
||||||
|
<div class="doctorInfo" v-if="modalForm.transfer_prescription_doctor">
|
||||||
|
<a-space size="large">
|
||||||
|
<a-image
|
||||||
|
width="80"
|
||||||
|
height="80"
|
||||||
|
class="headImg"
|
||||||
|
:src="modalForm.transfer_prescription_doctor.avatar"
|
||||||
|
v-if="modalForm.transfer_prescription_doctor.avatar"
|
||||||
|
>
|
||||||
|
</a-image>
|
||||||
|
<a-image
|
||||||
|
width="80"
|
||||||
|
height="80"
|
||||||
|
class="headImg"
|
||||||
|
src="https://img.applets.igandanyiyuan.com/basic/file/doctor_avatar.png"
|
||||||
|
v-else
|
||||||
|
>
|
||||||
|
</a-image>
|
||||||
|
</a-space>
|
||||||
|
<div class="infobox">
|
||||||
|
<div class="name">
|
||||||
|
{{ modalForm.transfer_prescription_doctor.user_name }} {{
|
||||||
|
formatDoctorTitle(modalForm.transfer_prescription_doctor.doctor_title)
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="hospital" v-if="modalForm.transfer_prescription_doctor.hospital">
|
||||||
|
{{
|
||||||
|
modalForm.transfer_prescription_doctor.hospital.hospital_name
|
||||||
|
}} {{
|
||||||
|
modalForm.transfer_prescription_doctor.department_custom_name
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="doctorInfo" v-else>暂未分配到医生</div>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-divider v-if="modalForm.transfer_prescription_doctor && !showTransferDoctor && modalForm.is_transfer_order==1" />
|
||||||
<div class="titlebox">
|
<div class="titlebox">
|
||||||
<div class="bar"></div>
|
<div class="bar"></div>
|
||||||
<div class="name">就诊人信息</div>
|
<div class="name">就诊人信息</div>
|
||||||
@ -839,6 +900,7 @@ const doctor_id = ref('');
|
|||||||
const isVisible = ref(false);
|
const isVisible = ref(false);
|
||||||
const order_product_id = ref('');
|
const order_product_id = ref('');
|
||||||
let express = []; //物流信息;
|
let express = []; //物流信息;
|
||||||
|
const showTransferDoctor = ref(false);
|
||||||
const cur_express = ref([]);
|
const cur_express = ref([]);
|
||||||
const isExpand = ref(false);
|
const isExpand = ref(false);
|
||||||
const patientVisible = ref(false);
|
const patientVisible = ref(false);
|
||||||
@ -895,11 +957,14 @@ const pager = {
|
|||||||
// form
|
// form
|
||||||
const queryForm = reactive({});
|
const queryForm = reactive({});
|
||||||
const modalForm = reactive({
|
const modalForm = reactive({
|
||||||
order_product_refund: {},
|
order_product_refund:{
|
||||||
|
product_refund_no:'',
|
||||||
|
|
||||||
|
},
|
||||||
order_product_item: [],
|
order_product_item: [],
|
||||||
order_product_logistics: null,
|
order_product_logistics: {},
|
||||||
user_doctor: null,
|
user_doctor: {},
|
||||||
order_prescription: null,
|
order_prescription: {},
|
||||||
});
|
});
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
@ -969,7 +1034,7 @@ const columns = [
|
|||||||
{ title: '排序', dataIndex: 'post_id', slotName: 'post_id', width: 90 },
|
{ title: '排序', dataIndex: 'post_id', slotName: 'post_id', width: 90 },
|
||||||
{ title: '订单编号', dataIndex: 'order_product_no', width: 200 },
|
{ title: '订单编号', dataIndex: 'order_product_no', width: 200 },
|
||||||
{ title: '处方编号', dataIndex: 'prescription_code', slotName: 'prescription_code', width: 200 },
|
{ title: '处方编号', dataIndex: 'prescription_code', slotName: 'prescription_code', width: 200 },
|
||||||
{ title: '医生姓名', dataIndex: 'doctor_name', width: 100 },
|
{ title: '医生姓名', dataIndex: 'doctor_name', slotName: 'doctor_name', width: 100 },
|
||||||
{
|
{
|
||||||
title: '就诊人',
|
title: '就诊人',
|
||||||
dataIndex: 'patient_name_mask',
|
dataIndex: 'patient_name_mask',
|
||||||
@ -1054,6 +1119,12 @@ const getDetail = async (order_product_id) => {
|
|||||||
if (code == 200) {
|
if (code == 200) {
|
||||||
Object.assign(modalForm, data);
|
Object.assign(modalForm, data);
|
||||||
let result = data.order_prescription;
|
let result = data.order_prescription;
|
||||||
|
if(!data.order_product_refund){
|
||||||
|
modalForm.order_product_refund={}
|
||||||
|
}
|
||||||
|
if(!data.user_doctor){
|
||||||
|
modalForm.user_doctor = {}
|
||||||
|
}
|
||||||
express = data.order_product_logistics
|
express = data.order_product_logistics
|
||||||
? JSON.parse(data.order_product_logistics.logistics_content)
|
? JSON.parse(data.order_product_logistics.logistics_content)
|
||||||
: [];
|
: [];
|
||||||
@ -1179,7 +1250,11 @@ const handleResetQuery = () => {
|
|||||||
handleQuery();
|
handleQuery();
|
||||||
};
|
};
|
||||||
const openDcotor = () => {
|
const openDcotor = () => {
|
||||||
doctor_id.value = modalForm.doctor_id;
|
doctor_id.value = modalForm.inquiry_doctor.doctor_id;
|
||||||
|
doctorVisible.value = true;
|
||||||
|
};
|
||||||
|
const openDcotorTransfer = () => {
|
||||||
|
doctor_id.value = modalForm.transfer_prescription_doctor.doctor_id;
|
||||||
doctorVisible.value = true;
|
doctorVisible.value = true;
|
||||||
};
|
};
|
||||||
const openPatient = () => {
|
const openPatient = () => {
|
||||||
@ -1224,6 +1299,8 @@ const handlExport=async(type)=>{
|
|||||||
proxy.$loading.hide();
|
proxy.$loading.hide();
|
||||||
}
|
}
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
let userInfo=localStorage.getItem('manage-userInfo')?JSON.parse(localStorage.getItem('manage-userInfo')):{};
|
||||||
|
showTransferDoctor.value=userInfo.role_name!='处方流转平台';
|
||||||
getProductInfo(pager);
|
getProductInfo(pager);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
@ -240,7 +240,7 @@ watch(() => queryForm.expired_range_time,
|
|||||||
// 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: 'order_prescription_id',width:180 },
|
{ title: '处方编号', dataIndex: 'prescription_code',width:180 },
|
||||||
{ title: '医生姓名', dataIndex: 'doctor_name',slotName: 'doctor_name', width: 150 },
|
{ title: '医生姓名', dataIndex: 'doctor_name',slotName: 'doctor_name', width: 150 },
|
||||||
{ title: '药师姓名', dataIndex: 'pharmacist_name',slotName:'pharmacist_name' },
|
{ title: '药师姓名', dataIndex: 'pharmacist_name',slotName:'pharmacist_name' },
|
||||||
{ title: '就诊人', dataIndex: 'patient_name', slotName: 'patient_name',width:180 },
|
{ title: '就诊人', dataIndex: 'patient_name', slotName: 'patient_name',width:180 },
|
||||||
|
|||||||
467
src/views/prescription/transferPrescription-list/index.vue
Normal file
467
src/views/prescription/transferPrescription-list/index.vue
Normal file
@ -0,0 +1,467 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<a-form :model="queryForm" ref="queryFormRef" layout="inline">
|
||||||
|
<a-form-item field="prescription_code" label="处方编号">
|
||||||
|
<a-input :style="{ width: '182px' }" v-model="queryForm.prescription_code" placeholder="请输入处方编号" @press-enter="handleQuery" />
|
||||||
|
</a-form-item>
|
||||||
|
<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="order_product_no" label="药品编号">
|
||||||
|
<a-input :style="{ width: '182px' }" v-model="queryForm.order_product_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-form-item field="prescription_status" label="处方状态">
|
||||||
|
<a-select
|
||||||
|
v-model="queryForm.prescription_status"
|
||||||
|
placeholder="请选择处方状态"
|
||||||
|
:style="{ width: '182px' }"
|
||||||
|
>
|
||||||
|
<!-- 处方状态(1:待审核 2:待使用 3:已失效 4:已使用) -->
|
||||||
|
<a-option :value="1">待审核</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="pharmacist_audit_status" label="审核状态">
|
||||||
|
<a-select
|
||||||
|
v-model="queryForm.pharmacist_audit_status"
|
||||||
|
placeholder="请选择审核状态"
|
||||||
|
:style="{ width: '182px' }"
|
||||||
|
>
|
||||||
|
<!-- (0:审核中 1:审核成功 2:审核驳回) -->
|
||||||
|
<a-option :value="0">审核中</a-option>
|
||||||
|
<a-option :value="1">审核成功</a-option>
|
||||||
|
<a-option :value="2">审核驳回</a-option>
|
||||||
|
</a-select>
|
||||||
|
</a-form-item>
|
||||||
|
<a-row>
|
||||||
|
<a-form-item field="pharmacist_verify_range_time" label="审核时间范围">
|
||||||
|
<a-range-picker
|
||||||
|
style="width: 330px"
|
||||||
|
v-model="queryForm.pharmacist_verify_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 field="expired_range_time" label="过期时间范围">
|
||||||
|
<a-range-picker
|
||||||
|
style="width: 330px"
|
||||||
|
v-model="queryForm.expired_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 />
|
||||||
|
|
||||||
|
<div class="action">
|
||||||
|
<a-space>
|
||||||
|
<a-button v-has="'admin:sysPrescriptionListTransfer:selectExport'" type="primary" @click="handlExport(2)"><icon-export /> 选择数据导出 </a-button>
|
||||||
|
<a-button v-has="'admin:sysPrescriptionListTransfer:searchExport'" type="primary" @click="handlExport(1)"><icon-export /> 当前搜索全部导出</a-button>
|
||||||
|
<a-button v-has="'admin:sysPrescriptionListTransfer:allExport'" type="primary" @click="handlExport(3)"><icon-export /> 全部导出</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="order_prescription_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)*pager.page_size}}</div>
|
||||||
|
</template>
|
||||||
|
<template #prescription_status="{ record }">
|
||||||
|
<span>{{formatPrescriptionStatus(record.prescription_status)}}</span>
|
||||||
|
</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 #doctor_name="{record}">
|
||||||
|
<div class="doctor_name" :title="record.doctor_name">{{ showTransferDoctor?record.inquiry_doctor.user_name:record.transfer_prescription_doctor.user_name }}</div>
|
||||||
|
</template>
|
||||||
|
<template #pharmacist_name="{record}">
|
||||||
|
<div class="doctor_name" :title="record.pharmacist_name">{{record.pharmacist_name}}</div>
|
||||||
|
</template>
|
||||||
|
<template #patient_name="{record}">
|
||||||
|
<div class="doctor_name" :title="record.patient_name">{{record.patient_name}}({{
|
||||||
|
record.patient_sex == 1 ? '男,' : '女,'
|
||||||
|
}}{{ record.patient_age }}岁)</div>
|
||||||
|
</template>
|
||||||
|
<template #order_prescription_icd="{record}">
|
||||||
|
<div class="doctor_name" :title="record.order_prescription_icd">{{record.order_prescription_icd}}</div>
|
||||||
|
</template>
|
||||||
|
<template #action="{ record }">
|
||||||
|
<a-space>
|
||||||
|
<a-button v-has="'admin:sysPrescriptionListTransfer:detail'" type="text"
|
||||||
|
@click="handleDetail(record)"><icon-book />详情</a-button>
|
||||||
|
<!-- <a-button v-has="'admin:sysPrescriptionListTransfer:edit'" type="text" @click="handleUpdate(record)"><icon-edit />
|
||||||
|
修改</a-button> -->
|
||||||
|
<!-- <a-button v-has="'admin:sysPrescriptionListTransfer:remove'" type="text"
|
||||||
|
@click="() => { deleteVisible = true; deleteData = [record.doctor_id]; }"><icon-delete /> 删除</a-button> -->
|
||||||
|
</a-space>
|
||||||
|
</template>
|
||||||
|
</a-table>
|
||||||
|
<prescriptionModalTransfer :modalVisible="modalVisible" :modalForm="modalForm" @familyVisibleChange="()=>{modalVisible=false}"></prescriptionModalTransfer >
|
||||||
|
<!-- <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"
|
||||||
|
@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 { getPrescriptionList,getPrescriptionDetail,exportPrescription} from '@/api/prescription/transfer-list';
|
||||||
|
|
||||||
|
import {formatPrescriptionStatus} from "@/utils/format"
|
||||||
|
import { downloadFile } from '@/utils/downloadFile';
|
||||||
|
const showTransferDoctor = ref(false)
|
||||||
|
|
||||||
|
// Akiraka 20230210 删除数据
|
||||||
|
const deleteData = ref([])
|
||||||
|
// Akiraka 20230210 删除对话框
|
||||||
|
const deleteVisible = ref(false)
|
||||||
|
// Akiraka 20230210 监听删除事件
|
||||||
|
const okVisible = ref(false);
|
||||||
|
|
||||||
|
watch(() => deleteVisible.value, (value) => {
|
||||||
|
if (value == false) {
|
||||||
|
getPrescriptionInfo(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',
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
// Modal
|
||||||
|
const modalVisible = ref(false);
|
||||||
|
const modalTitle = ref('默认标题');
|
||||||
|
watch(() => queryForm.pharmacist_verify_range_time,
|
||||||
|
(value) => {
|
||||||
|
if (value) {
|
||||||
|
let [startTime, endTime] = value;
|
||||||
|
queryForm.pharmacist_verify_time = startTime + '&' + endTime;
|
||||||
|
} else {
|
||||||
|
queryForm.pharmacist_verify_time = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
watch(() => queryForm.create_range_time,
|
||||||
|
(value) => {
|
||||||
|
if (value) {
|
||||||
|
let [startTime, endTime] = value;
|
||||||
|
queryForm.doctor_created_time = startTime + '&' + endTime;
|
||||||
|
} else {
|
||||||
|
queryForm.doctor_created_time = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
watch(() => queryForm.expired_range_time,
|
||||||
|
(value) => {
|
||||||
|
if (value) {
|
||||||
|
let [startTime, endTime] = value;
|
||||||
|
queryForm.expired = startTime + '&' + endTime;
|
||||||
|
} else {
|
||||||
|
queryForm.expired = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
// Batch Del List
|
||||||
|
let batchList = [];
|
||||||
|
|
||||||
|
// Table Columns
|
||||||
|
const columns = [
|
||||||
|
{ title: '编号', dataIndex: 'doctor_id', slotName: 'doctor_id', width: '90' },
|
||||||
|
{ title: '处方编号', dataIndex: 'prescription_code',width:180 },
|
||||||
|
{ title: '医生姓名', dataIndex: 'doctor_name',slotName: 'doctor_name', width: 150 },
|
||||||
|
{ title: '药师姓名', dataIndex: 'pharmacist_name',slotName:'pharmacist_name' },
|
||||||
|
{ title: '就诊人', dataIndex: 'patient_name', slotName: 'patient_name',width:180 },
|
||||||
|
{ title: '就诊人联系电话', dataIndex: 'mobile',width:130 },
|
||||||
|
{ title: '诊断', dataIndex: 'order_prescription_icd',slotName: 'order_prescription_icd' },
|
||||||
|
{ title: '处方状态', dataIndex: 'prescription_status',slotName:'prescription_status' },
|
||||||
|
{ title: '开方时间', dataIndex: 'created_at',slotName:'created_at',width:180 },
|
||||||
|
{ title: '操作', slotName: 'action', fixed: "right", width: 120 },
|
||||||
|
];
|
||||||
|
|
||||||
|
// 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 getPrescriptionDetail(record.order_prescription_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 removePrescription({ ids: batchList });
|
||||||
|
proxy.$message.success(res.message);
|
||||||
|
getPrescriptionInfo(pager);
|
||||||
|
},
|
||||||
|
onCancel: () => {
|
||||||
|
proxy.$message.info('已取消批量删除数据');
|
||||||
|
},
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
proxy.$message.error('请勾选需要删除的数据!');
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页改变
|
||||||
|
* @param {Number} [page]
|
||||||
|
*/
|
||||||
|
const handlePageChange = (page) => {
|
||||||
|
pager.page = page;
|
||||||
|
|
||||||
|
// 修改当前页码
|
||||||
|
currentPage.value = page;
|
||||||
|
getPrescriptionInfo({ ...pager, ...queryForm });
|
||||||
|
};
|
||||||
|
|
||||||
|
// 每页数据量
|
||||||
|
const handlepage_sizeChange = (page_size) => {
|
||||||
|
pager.page_size = page_size;
|
||||||
|
getPrescriptionInfo({ ...pager, ...queryForm });
|
||||||
|
};
|
||||||
|
|
||||||
|
// 获取患者信息
|
||||||
|
const getPrescriptionInfo = async (params = {}) => {
|
||||||
|
const { data, code, message } = await getPrescriptionList(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,
|
||||||
|
};
|
||||||
|
|
||||||
|
getPrescriptionInfo(params);
|
||||||
|
};
|
||||||
|
|
||||||
|
// 重置搜索
|
||||||
|
const handleResetQuery = () => {
|
||||||
|
proxy.$refs.queryFormRef.resetFields();
|
||||||
|
//getPrescriptionInfo(queryForm);
|
||||||
|
currentPage.value=1;
|
||||||
|
//getProductInfo(queryForm);
|
||||||
|
handleQuery();
|
||||||
|
}
|
||||||
|
const handlExport=async(type)=>{
|
||||||
|
proxy.$loading.show();
|
||||||
|
let fromData=null;
|
||||||
|
if(type==1){
|
||||||
|
fromData={
|
||||||
|
type,
|
||||||
|
...queryForm
|
||||||
|
}
|
||||||
|
}else if(type==2){
|
||||||
|
if(deleteData.value.length==0){
|
||||||
|
proxy.$message.warning('请勾选数据');
|
||||||
|
proxy.$loading.hide();
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
let id='';
|
||||||
|
deleteData.value.forEach((item)=>{
|
||||||
|
if(id){
|
||||||
|
id+=","+item
|
||||||
|
}else{
|
||||||
|
id=item;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
fromData={
|
||||||
|
type,
|
||||||
|
id
|
||||||
|
}
|
||||||
|
}else if(type==3){
|
||||||
|
fromData={
|
||||||
|
type
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const {code,data}=await exportPrescription(fromData);
|
||||||
|
if(code==200){
|
||||||
|
downloadFile(data,'问诊订单');
|
||||||
|
}
|
||||||
|
proxy.$loading.hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
let userInfo=localStorage.getItem('manage-userInfo')?JSON.parse(localStorage.getItem('manage-userInfo')):{};
|
||||||
|
showTransferDoctor.value=userInfo.role_name!='处方流转平台';
|
||||||
|
getPrescriptionInfo(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;
|
||||||
|
}
|
||||||
|
.doctor_name{
|
||||||
|
max-width:250px;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Loading…
x
Reference in New Issue
Block a user