diff --git a/src/api/inquiry/list.js b/src/api/inquiry/list.js new file mode 100644 index 0000000..cdf9985 --- /dev/null +++ b/src/api/inquiry/list.js @@ -0,0 +1,18 @@ +import request from '../../utils/request' + +const url = '/admin/order/inquiry/record'; + + +export function getInquiryList(params){ + return request({ + url:'/admin/order/inquiry/record', + method: 'get', + params + }) +} +export function getInquiryDetail(id){ + return request({ + url:'/admin/order/inquiry/record/'+id, + method: 'get' + }) + } \ No newline at end of file diff --git a/src/api/order/list.js b/src/api/order/list.js index 57f5020..6c8110a 100644 --- a/src/api/order/list.js +++ b/src/api/order/list.js @@ -65,3 +65,11 @@ export function inquiryCase(id){//病例详情 method: 'get' }) } +export function getIm(id,params){//获取im分页 + return request({ + url:`/admin/order/inquiry/im/${id}`, + method: 'get', + params + }) +} + diff --git a/src/api/prescription/list.js b/src/api/prescription/list.js index d1536a0..f369922 100644 --- a/src/api/prescription/list.js +++ b/src/api/prescription/list.js @@ -16,3 +16,9 @@ export function getPrescriptionDetail(id){ method: 'get' }) } + export function getCase(id){ + return request({ + url:'/admin/case/inquiry/'+id, + method: 'get' + }) + } diff --git a/src/components/inquiryDetailModal.vue b/src/components/inquiryDetailModal.vue new file mode 100644 index 0000000..47b2d0b --- /dev/null +++ b/src/components/inquiryDetailModal.vue @@ -0,0 +1,468 @@ + + + + + + 订单信息 + + + + + + {{ modalForm.inquiry_no }} + + + + + {{ formatInquiryStatus(modalForm.inquiry_status) }} + + + + + + + {{ + parseTime(modalForm.pay_time) + }} + - + + + + + {{ + parseTime(modalForm.reception_time) + }} + - + + + + + + + {{ formatInquiryType(modalForm.inquiry_type) }} + + + + + + + 医生信息 + + 查看医生完整信息 + + + + + + + + + + + + + + + {{ modalForm.user_doctor.user_name }} {{ + formatDoctorTitle(modalForm.user_doctor.doctor_title) + }} + + + {{ + modalForm.user_doctor.hospital.hospital_name + }} {{ + modalForm.user_doctor.department_custom_name + }} + + + + 暂未分配到医生 + + + + + + + 就诊人信息 + + 查看就诊人完整信息 + + + + + + {{ modalForm.order_inquiry_case.name }} ({{ + modalForm.order_inquiry_case.sex == 1 ? '男' : '女' + }} {{ modalForm.order_inquiry_case.age }}岁) + + + + + + + {{ modalForm.order_inquiry_case.disease_desc }} + + + + + + + {{ + modalForm.order_inquiry_case.disease_class_name + }} {{ + modalForm.user_doctor.department_custom_name + }} + + + + + + + + 聊天记录 + + + + + 点击加载更多 + ---没有更多了--- + + + + + + + {{ JSON.parse(item.message_content).Text }} + + + + 222 + + + {{ item.created_at }} + + + + + + + + + 操作 + + + + + + { + isVisible = true; + order_product_id = modalForm.order_product_id; + } + " + >上报处方平台 + + + + { + okVisible = true; + cur_product_id = modalForm.order_product_id; + } + " + >取消药品订单 + + + + + + + { + doctorVisible = false; + doctor_id = ''; + } + " + > + + { + patientVisible = false; + } + " + > + + + \ No newline at end of file diff --git a/src/components/medinceModal.vue b/src/components/medinceModal.vue new file mode 100644 index 0000000..ada14f0 --- /dev/null +++ b/src/components/medinceModal.vue @@ -0,0 +1,629 @@ + + + + + + 订单信息 + + + + + + {{ modalForm.order_product_no }} + + + + + {{ + modalForm.order_prescription.prescription_code + }} + 暂无 + + + + + + + {{ modalForm.created_at }} + + + + + {{ + parseTime(modalForm.pay_time) + }} + - + + + + + + + {{ modalForm.amount_total }}元 + + + + + {{ modalForm.logistics_fee }}元 + + + + + + + {{ modalForm.payment_amount_total }}元 + + + + + {{ + formatProductStatus(modalForm.order_product_status) + }} + + + + + + + {{ + formatProductCancelReason(modalForm.cancel_reason) + }} + + + + + + + 退款信息 + + + + + {{ + modalForm.order_product_refund.product_refund_no + }} + + + + + {{ modalForm.order_product_refund.refund_id }} + + + + + + + {{ modalForm.order_product_refund.refund_total }}元 + + + + + {{ + formatRefundStatus( + modalForm.order_product_refund.product_refund_status + ) + }} + + + + + + + {{ modalForm.order_product_refund.success_time }} + - + + + + + + + {{ modalForm.order_product_refund.refund_reason }} + + + + + + + 药品信息 + + + + + + + + + + + + + + + + + + + + + + 地址信息 + + {{lookAllAddress?'隐藏完整地址信息':'查看完整地址信息'}} + + + + + + {{ modalForm.consignee_name_mask}} + {{AddressData.consignee_name}} + + + + + {{modalForm.consignee_tel_mask}} + {{AddressData.consignee_tel}} + + + + + + + {{modalForm.address_mask }} + {{AddressData.address}} + + + + + + + 物流信息 + + + + + + + + {{ item.context }} + + + {{ + isExpand ? '收起' : '展开' + }} + + 暂无物流信息 + + + + + + + + 处方信息 + + + + + + + + + + + + + 医生信息 + + 查看医生完整信息 + + + + + + + + + + + + + + + {{ modalForm.user_doctor.user_name }} {{ + formatDoctorTitle(modalForm.user_doctor.doctor_title) + }} + + + {{ + modalForm.user_doctor.hospital.hospital_name + }} {{ + modalForm.user_doctor.department_custom_name + }} + + + + 暂未分配到医生 + + + + + + + 就诊人信息 + + 查看就诊人完整信息 + + + + + + {{modalForm.order_inquiry_case.name }} ({{modalForm.order_inquiry_case.sex == 1 ? '男' : '女'}} {{ modalForm.order_inquiry_case.age }}岁) + + + + + + + {{modalForm.order_inquiry_case.disease_desc}} + + + + + + + {{modalForm.order_inquiry_case.disease_class_name}} {{modalForm.user_doctor.department_custom_name}} + + + + + + + 处方上报状态 + + + + + {{ fromatReportStatus(modalForm.report_pre_status) }} + + + + + + + {{modalForm.report_pre_time}} + - + + + + + + + {{ modalForm.report_pre_fail_reason}} + + + + + + + + + 操作 + + + + + + { + isVisible = true; + order_product_id = modalForm.order_product_id; + } + " + >上报处方平台 + + + + { + okVisible = true; + cur_product_id = modalForm.order_product_id; + } + " + >取消药品订单 + + + + + + + { + doctorVisible = false; + doctor_id = ''; + } + " + > + + { + patientVisible = false; + } + " + > + + + + + \ No newline at end of file diff --git a/src/components/patientModal.vue b/src/components/patientModal.vue index ae9a9ef..2869190 100644 --- a/src/components/patientModal.vue +++ b/src/components/patientModal.vue @@ -127,13 +127,16 @@ const props = defineProps({ type: Boolean, default: false, }, + modalTitle:{ + type: String, + default:'就诊人详情' + }, data: { type: Object, }, }); const emits = defineEmits(['patientVisibleChange']); -const { patientVisible, data } = toRefs(props); -const modalTitle = ref('就诊人详情'); +const { patientVisible, data,modalTitle } = toRefs(props); const modalSatus = ref('detail'); const loading = ref(false); @@ -256,4 +259,10 @@ const handleClose = () => { patientVisible.value = false; //otherList.value=[]; }; - \ No newline at end of file + + \ No newline at end of file diff --git a/src/components/prescriptionModal.vue b/src/components/prescriptionModal.vue new file mode 100644 index 0000000..9285ff7 --- /dev/null +++ b/src/components/prescriptionModal.vue @@ -0,0 +1,396 @@ + + + + + + 基本信息 + + + + + + {{modalForm.order_prescription_id}} + + + + + + {{formatPrescriptionStatus(modalForm.prescription_status)}} + + + + + + + + {{ modalForm.doctor_name }} + + + + + {{modalForm.pharmacist_name}} + + + + + + + {{ modalForm.patient_name}} + + + + + + + {{ modalForm.doctor_created_time }} + + + + + {{ modalForm.pharmacist_verify_time }} + + + + + + + {{ modalForm.order_prescription_icd }} + + + + + + + {{ item.product_name + }}【{{item.frequency_use}}】 + + + + + + + {{ modalForm.doctor_advice }} + + + + + + + 药品信息 + + + + + + + + + + + + + + + + + + + + + + 处方信息 + + + + + + + + + + + + + 病例信息 + + 查看完整病例信息 + + + + + + {{modalForm.order_inquiry_case.name }} ({{modalForm.order_inquiry_case.sex == 1 ? '男' : '女'}} {{ modalForm.order_inquiry_case.age }}岁) + + + + + + + {{modalForm.order_inquiry_case.disease_desc}} + + + + + + + + + + 操作 + + + + + + + 查看订单 + + + 下载 + + + + + + + { + patientVisible = false; + } + " + > + {medinceVisible=false}"> + + + \ No newline at end of file diff --git a/src/utils/format.js b/src/utils/format.js index b4c5fd3..badd837 100644 --- a/src/utils/format.js +++ b/src/utils/format.js @@ -69,4 +69,23 @@ export const formatRelation=(val)=>{ }else{ return '' } + } + + export const formatInquiryType=(val)=>{ + //类型(1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药 5:检测) + let data={1:'专家问诊', 2:'快速问诊', 3:'公益问诊', 4:'问诊购药',5:'糖组检测'} + if(val){ + return data[val] + }else{ + return '' + } + } + export const formatInquiryStatus=(val)=>{ + // 1:待支付 2:待分配 3:待接诊 4:已接诊 5:已完成 6:已结束 7:已取消 + let data={1:'待支付', 2:'待分配', 3:'待接诊', 4:'已接诊',5:'已完成',6:'已结束',7:'已取消'} + if(val){ + return data[val] + }else{ + return '' + } } \ No newline at end of file diff --git a/src/views/admin/sys-menu/index.vue b/src/views/admin/sys-menu/index.vue index 6e3f739..5c6dd05 100644 --- a/src/views/admin/sys-menu/index.vue +++ b/src/views/admin/sys-menu/index.vue @@ -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('新增成功'); diff --git a/src/views/doctor/doctor-examine/index.vue b/src/views/doctor/doctor-examine/index.vue index 4c51116..405a901 100644 --- a/src/views/doctor/doctor-examine/index.vue +++ b/src/views/doctor/doctor-examine/index.vue @@ -701,6 +701,7 @@ const { data, code, message } = res; if (code == 200) { departmentData.value = data; + } }); } diff --git a/src/views/doctor/doctor-list/index.vue b/src/views/doctor/doctor-list/index.vue index faa8933..542abeb 100644 --- a/src/views/doctor/doctor-list/index.vue +++ b/src/views/doctor/doctor-list/index.vue @@ -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' }, diff --git a/src/views/inquiry/inquiry-list/index.vue b/src/views/inquiry/inquiry-list/index.vue new file mode 100644 index 0000000..c54fe7e --- /dev/null +++ b/src/views/inquiry/inquiry-list/index.vue @@ -0,0 +1,350 @@ + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + {deleteData = selection;console.log(selection)}" + @page-change="handlePageChange" @page-size-change="handlepage_sizeChange"> + + {{pager.page}} + {{(rowIndex+1)+(pager.page-1)*10}} + + + + 禁用 + 正常 + 删除 + + + 否 + 是 + + + + {{ record.disable_reason }} + - + + + {{formatRelation(record.relation)}} + + + + + 详情 + + + + + + + {modalVisible=false}"> + + + + okVisible=false"> + + 提示 + + 确定保存当前信息? + + + + + + + \ No newline at end of file diff --git a/src/views/order/inquiry-record/index.vue b/src/views/order/inquiry-record/index.vue new file mode 100644 index 0000000..b4cc2a7 --- /dev/null +++ b/src/views/order/inquiry-record/index.vue @@ -0,0 +1,392 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + + {deleteData = selection;console.log(selection)}" + @page-change="handlePageChange" @page-size-change="handlepage_sizeChange"> + + {{(rowIndex+1)+(pager.page-1)*10}} + + + {{formatInquiryType(record.inquiry_type)}} + + + {{formatInquiryStatus(record.inquiry_status)}} + + + {{parseTime(record.reception_time)}} + + + + 详情 + + + + + + + {modalVisible=false}"> + + + + + + \ No newline at end of file diff --git a/src/views/prescription/prescription-list/index.vue b/src/views/prescription/prescription-list/index.vue index 56e569c..773d79a 100644 --- a/src/views/prescription/prescription-list/index.vue +++ b/src/views/prescription/prescription-list/index.vue @@ -127,25 +127,26 @@ - - {modalVisible=false}"> + {modalVisible=false}"> + - okVisible=false"> 提示 确定保存当前信息? - + -->