diff --git a/package.json b/package.json index 6d2b8f3..0103cb6 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "codemirror": "^6.0.1", "cropperjs": "^1.5.13", "dayjs": "^1.11.9", + "element-plus": "^2.4.0", "file-saver": "^2.0.5", "i": "^0.3.7", "js-cookie": "^3.0.5", @@ -40,6 +41,7 @@ "eslint-plugin-vue": "^9.12.0", "mockjs": "^1.1.0", "sass": "^1.62.1", + "unplugin-auto-import": "^0.16.6", "unplugin-vue-components": "^0.24.1", "vite": "^4.3.5", "vite-plugin-mock": "^3.0.0", diff --git a/src/api/inquiry/config.js b/src/api/inquiry/config.js new file mode 100644 index 0000000..05d4fa3 --- /dev/null +++ b/src/api/inquiry/config.js @@ -0,0 +1,33 @@ +import request from '../../utils/request' + +const url = '/admin/inquiry/config/doctor'; + + +export function getInquiryconfigList(params){ + return request({ + url:'/admin/inquiry/config/doctor', + method: 'get', + params + }) +} + +export function addInquiryconfig(data){//添加配置 + return request({ + url:'/admin/inquiry/config/doctor', + method: 'put', + data + }) +} +export function editInquiryconfig(data,id){//添加配置 + return request({ + url:'/admin/inquiry/config/doctor/'+id, + method: 'put', + data + }) +} +export function getInquiryconfigDetail(id){ + return request({ + url:'/admin/inquiry/config/doctor/'+id, + method: 'get' + }) + } \ No newline at end of file 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..007fa78 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(params){//获取im分页 + return request({ + url:`/admin/order/inquiry/im`, + 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/addInquiryConfigModal.vue b/src/components/addInquiryConfigModal.vue new file mode 100644 index 0000000..4b11411 --- /dev/null +++ b/src/components/addInquiryConfigModal.vue @@ -0,0 +1,263 @@ + + + \ No newline at end of file diff --git a/src/components/chatRecord.vue b/src/components/chatRecord.vue new file mode 100644 index 0000000..bae08cb --- /dev/null +++ b/src/components/chatRecord.vue @@ -0,0 +1,355 @@ + + + \ No newline at end of file diff --git a/src/components/inquiryDetailModal.vue b/src/components/inquiryDetailModal.vue new file mode 100644 index 0000000..4deb246 --- /dev/null +++ b/src/components/inquiryDetailModal.vue @@ -0,0 +1,325 @@ + + + \ 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 @@ + + + \ 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..421b8e5 --- /dev/null +++ b/src/components/prescriptionModal.vue @@ -0,0 +1,396 @@ + + + \ No newline at end of file diff --git a/src/main.js b/src/main.js index 9868b05..91c3e3a 100644 --- a/src/main.js +++ b/src/main.js @@ -6,6 +6,7 @@ import { Message, Modal, Notification } from '@arco-design/web-vue'; import '@arco-design/web-vue/dist/arco.css'; import router from './router/'; import { parseTime } from '@/utils/parseTime'; + import piniaPluginPersistedstate from 'pinia-plugin-persistedstate' // Directive import permission from '@/directive/permission/permission'; diff --git a/src/utils/format.js b/src/utils/format.js index b4c5fd3..9285380 100644 --- a/src/utils/format.js +++ b/src/utils/format.js @@ -69,4 +69,32 @@ export const formatRelation=(val)=>{ }else{ return '' } - } \ No newline at end of file + } + + 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 '' + } + }; + export const formatMultipoint=(val)=>{ + //医生多点执业认证状态(0:未认证 1:认证通过 2:审核中 3:认证失败) + let data={0:'未认证',1:'认证通过', 2:'审核中', 3:'认证失败'} + if(val|| val==0){ + 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..249bfc5 100644 --- a/src/views/doctor/doctor-list/index.vue +++ b/src/views/doctor/doctor-list/index.vue @@ -120,9 +120,7 @@ - + - - + + -
确定保存当前信息?
-
+ -->