1.4tijiao
This commit is contained in:
parent
0042f3e715
commit
fb007a79bc
@ -24,7 +24,7 @@
|
|||||||
<a-row :gutter="24" >
|
<a-row :gutter="24" >
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item field="idCard" label="开方医生:" >
|
<a-form-item field="idCard" label="开方医生:" >
|
||||||
<div class="box" >{{ modalForm.doctor_name }} </div>
|
<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-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
@ -75,7 +75,7 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-divider />
|
<a-divider />
|
||||||
<div class="titlebox" v-if="modalForm.inquiry_doctor">
|
<div class="titlebox" v-if="modalForm.inquiry_doctor && showTransferDoctor ">
|
||||||
<div class="bar"></div>
|
<div class="bar"></div>
|
||||||
<div class="name">医生信息</div>
|
<div class="name">医生信息</div>
|
||||||
<a-space
|
<a-space
|
||||||
@ -132,8 +132,9 @@
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-divider v-if="modalForm.inquiry_doctor" />
|
<a-divider v-if="modalForm.inquiry_doctor && showTransferDoctor" />
|
||||||
<div class="titlebox" v-if="modalForm.transfer_prescription_doctor">
|
|
||||||
|
<div class="titlebox" v-if="modalForm.transfer_prescription_doctor && !showTransferDoctor">
|
||||||
<div class="bar"></div>
|
<div class="bar"></div>
|
||||||
<div class="name">抄方医生信息</div>
|
<div class="name">抄方医生信息</div>
|
||||||
<a-space
|
<a-space
|
||||||
@ -149,7 +150,7 @@
|
|||||||
>
|
>
|
||||||
</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.transfer_prescription_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.transfer_prescription_doctor">
|
<div class="doctorInfo" v-if="modalForm.transfer_prescription_doctor">
|
||||||
@ -190,7 +191,7 @@
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-divider v-if="modalForm.transfer_prescription_doctor" />
|
<a-divider v-if="modalForm.transfer_prescription_doctor && !showTransferDoctor" />
|
||||||
<div class="titlebox">
|
<div class="titlebox">
|
||||||
<div class="bar"></div>
|
<div class="bar"></div>
|
||||||
<div class="name">药品信息</div>
|
<div class="name">药品信息</div>
|
||||||
@ -323,7 +324,7 @@
|
|||||||
<medinceModal :medinceVisible="medinceVisible" :modalForm="medinceData" @medinceVisibleChange="()=>{medinceVisible=false}"></medinceModal>
|
<medinceModal :medinceVisible="medinceVisible" :modalForm="medinceData" @medinceVisibleChange="()=>{medinceVisible=false}"></medinceModal>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import {ref,toRefs,reactive,watchEffect,watch} from 'vue';
|
import {ref,toRefs,reactive,watchEffect,watch,onMounted} from 'vue';
|
||||||
import {getCase} from '@/api/prescription/list';
|
import {getCase} from '@/api/prescription/list';
|
||||||
import { getProductDetail,inquiryCase} from '@/api/order/list';
|
import { getProductDetail,inquiryCase} from '@/api/order/list';
|
||||||
// import {
|
// import {
|
||||||
@ -363,7 +364,11 @@
|
|||||||
const medinceVisible=ref(false);
|
const medinceVisible=ref(false);
|
||||||
let chufang_data = ref([]);
|
let chufang_data = ref([]);
|
||||||
const doctor_id = 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([
|
const chufang_columns = reactive([
|
||||||
{
|
{
|
||||||
@ -498,7 +503,7 @@ const openDcotorTransfer = () => {
|
|||||||
const url = window.URL.createObjectURL(res.currentTarget.response)
|
const url = window.URL.createObjectURL(res.currentTarget.response)
|
||||||
const link = document.createElement('a')
|
const link = document.createElement('a')
|
||||||
link.href = url
|
link.href = url
|
||||||
link.setAttribute('download', '处方'+new Date().getTime())
|
link.setAttribute('download', '抄方处方'+new Date().getTime())
|
||||||
link.click()
|
link.click()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -364,7 +364,7 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-divider />
|
<a-divider />
|
||||||
<div class="titlebox">
|
<div class="titlebox" v-if="!showTransferDoctor">
|
||||||
<div class="bar"></div>
|
<div class="bar"></div>
|
||||||
<div class="name">是否接受抄方</div>
|
<div class="name">是否接受抄方</div>
|
||||||
</div>
|
</div>
|
||||||
@ -480,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">
|
||||||
@ -501,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>
|
||||||
@ -722,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 = {
|
||||||
@ -1752,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({
|
||||||
|
|||||||
@ -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" v-if="modalForm.user_doctor.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,8 +646,8 @@
|
|||||||
</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.user_doctor">
|
<div class="titlebox" v-if="modalForm.transfer_prescription_doctor && !showTransferDoctor && modalForm.is_transfer_order==1">
|
||||||
<div class="bar"></div>
|
<div class="bar"></div>
|
||||||
<div class="name">抄方医生信息</div>
|
<div class="name">抄方医生信息</div>
|
||||||
<a-space
|
<a-space
|
||||||
@ -660,7 +663,7 @@
|
|||||||
>
|
>
|
||||||
</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.transfer_prescription_doctor && !showTransferDoctor && modalForm.is_transfer_order==1">
|
||||||
<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.transfer_prescription_doctor">
|
<div class="doctorInfo" v-if="modalForm.transfer_prescription_doctor">
|
||||||
@ -701,7 +704,7 @@
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-divider v-if="modalForm.transfer_prescription_doctor" />
|
<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>
|
||||||
@ -897,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);
|
||||||
@ -1030,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',
|
||||||
@ -1295,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);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
@ -103,7 +103,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #doctor_name="{record}">
|
<template #doctor_name="{record}">
|
||||||
<div class="doctor_name" :title="record.doctor_name">{{ record.doctor_name }}</div>
|
<div class="doctor_name" :title="record.doctor_name">{{ showTransferDoctor?record.inquiry_doctor.user_name:record.transfer_prescription_doctor.user_name }}</div>
|
||||||
</template>
|
</template>
|
||||||
<template #pharmacist_name="{record}">
|
<template #pharmacist_name="{record}">
|
||||||
<div class="doctor_name" :title="record.pharmacist_name">{{record.pharmacist_name}}</div>
|
<div class="doctor_name" :title="record.pharmacist_name">{{record.pharmacist_name}}</div>
|
||||||
@ -149,6 +149,8 @@
|
|||||||
|
|
||||||
import {formatPrescriptionStatus} from "@/utils/format"
|
import {formatPrescriptionStatus} from "@/utils/format"
|
||||||
import { downloadFile } from '@/utils/downloadFile';
|
import { downloadFile } from '@/utils/downloadFile';
|
||||||
|
const showTransferDoctor = ref(false)
|
||||||
|
|
||||||
// Akiraka 20230210 删除数据
|
// Akiraka 20230210 删除数据
|
||||||
const deleteData = ref([])
|
const deleteData = ref([])
|
||||||
// Akiraka 20230210 删除对话框
|
// Akiraka 20230210 删除对话框
|
||||||
@ -383,6 +385,8 @@ watch(() => queryForm.expired_range_time,
|
|||||||
|
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
let userInfo=localStorage.getItem('manage-userInfo')?JSON.parse(localStorage.getItem('manage-userInfo')):{};
|
||||||
|
showTransferDoctor.value=userInfo.role_name!='处方流转平台';
|
||||||
getPrescriptionInfo(pager);
|
getPrescriptionInfo(pager);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user