病例
This commit is contained in:
parent
b0caa7a595
commit
25c628d7f2
@ -59,3 +59,9 @@ export function lookAddress(id){//解密收货人地址
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
export function inquiryCase(id){//病例详情
|
||||
return request({
|
||||
url:`/admin/case/inquiry/${id}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
@ -643,7 +643,8 @@ import {
|
||||
getProductDetail,
|
||||
cancelProduct,
|
||||
reportPrePscription,
|
||||
lookAddress
|
||||
lookAddress,
|
||||
inquiryCase
|
||||
} from '@/api/order/list';
|
||||
import { parseTime } from '@/utils/parseTime';
|
||||
import {
|
||||
@ -874,6 +875,7 @@ const handleQuery = async () => {
|
||||
};
|
||||
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(modalForm, data);
|
||||
@ -909,6 +911,11 @@ const getDetail = async (order_product_id) => {
|
||||
});
|
||||
chufang_data.value= data_arr;
|
||||
}
|
||||
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);
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
//获取订单详情
|
||||
@ -1003,7 +1010,7 @@ const openDcotor = () => {
|
||||
doctorVisible.value = true;
|
||||
};
|
||||
const openPatient = () => {
|
||||
Object.assign(patientData, modalForm.order_inquiry_case);
|
||||
//Object.assign(patientData, modalForm.order_inquiry_case);
|
||||
patientVisible.value = true;
|
||||
};
|
||||
onMounted(() => {
|
||||
|
||||
@ -400,7 +400,7 @@
|
||||
|
||||
<script setup>
|
||||
import { reactive, ref, getCurrentInstance, onMounted, nextTick, watch } from 'vue';
|
||||
import { getOrderList,getOrderDetail,cancelInquiry} from '@/api/order/list';
|
||||
import { getOrderList,getOrderDetail,cancelInquiry,inquiryCase} from '@/api/order/list';
|
||||
import { parseTime } from '@/utils/parseTime';
|
||||
import {formatDoctorTitle,formatOrderCancelReason} from "@/utils/format"
|
||||
|
||||
@ -618,10 +618,17 @@ const handleQuery = async () => {
|
||||
const handleDetail = async (record) => {
|
||||
modalVisible.value = true;
|
||||
modalTitle.value = '问诊订单详情';
|
||||
Object.assign(patientData,{});
|
||||
const { code, data, message } = await getOrderDetail(record.order_inquiry_id);
|
||||
|
||||
if (code == 200) {
|
||||
Object.assign(modalForm, data);
|
||||
let result=data.order_evaluation;
|
||||
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);
|
||||
|
||||
}
|
||||
if(result){
|
||||
Object.assign(comment,{
|
||||
reply_progress:result.reply_progress/20,
|
||||
@ -668,7 +675,7 @@ const openDcotor=()=>{
|
||||
}
|
||||
const openPatient=()=>{
|
||||
//patientData=modalForm.order_inquiry_case;
|
||||
Object.assign(patientData,modalForm.order_inquiry_case);
|
||||
|
||||
// console.log(patientData);
|
||||
patientVisible.value=true;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user