diff --git a/.env.development b/.env.development index 8b6528e..746b2bd 100644 --- a/.env.development +++ b/.env.development @@ -1,2 +1,3 @@ BASE_URL= "https://vue3.go-admin.dev" VITE_BASE_URL= "http://dev.hospital.admin.api.igandanyiyuan.com" +VITE_IMG_URL="https://img.applets.igandanyiyuan.com" \ No newline at end of file diff --git a/.env.production b/.env.production index 77ba4c1..b0f8586 100644 --- a/.env.production +++ b/.env.production @@ -1,2 +1,3 @@ BASE_URL= "https://vue3.go-admin.dev" -VITE_BASE_URL= "//prod.hospital.admin.api.igandanyiyuan.com" \ No newline at end of file +VITE_BASE_URL= "//prod.hospital.admin.api.igandanyiyuan.com" +VITE_IMG_URL="https://oss.prod.applets.igandanyiyuan.com" \ No newline at end of file diff --git a/.env.test b/.env.test index 8b6528e..746b2bd 100644 --- a/.env.test +++ b/.env.test @@ -1,2 +1,3 @@ BASE_URL= "https://vue3.go-admin.dev" VITE_BASE_URL= "http://dev.hospital.admin.api.igandanyiyuan.com" +VITE_IMG_URL="https://img.applets.igandanyiyuan.com" \ No newline at end of file diff --git a/index.html b/index.html index b99c494..89d5c65 100644 --- a/index.html +++ b/index.html @@ -2,6 +2,7 @@ + diff --git a/src/api/order/list.js b/src/api/order/list.js new file mode 100644 index 0000000..57f5020 --- /dev/null +++ b/src/api/order/list.js @@ -0,0 +1,67 @@ +import request from '../../utils/request' +const url = '/admin/order/inquiry'; +export function getOrderList(params){ + return request({ + url:'/admin/order/inquiry', + method: 'get', + params + }) +} +export function getList(){ + return request({ + url:'https://twx.igandan.org/book/drughand/getDrugList', + method: 'GET', + dataType: 'json' + }) +} +export function getOrderDetail(id){ + return request({ + url:`${url}/${id}`, + method: 'get' + }) + } +export function productList(params){ //药品列表 + return request({ + url:'/admin/order/product', + method: 'get', + params + }) +} +export function getProductDetail(id){//药品列表 + return request({ + url:`/admin/order/product/${id}`, + method: 'get' + }) +} +export function cancelInquiry(id,data){//取消问诊 + return request({ + url:`/admin/order/inquiry/cancel/${id}`, + method: 'put', + data + }) +} +export function cancelProduct(id,data){//取消药品 + return request({ + url:`/admin/order/product/cancel/${id}`, + method: 'put', + data + }) +} +export function reportPrePscription(id){//上报处方 + return request({ + url:`/admin/order/report/pre/${id}`, + method: 'post' + }) +} +export function lookAddress(id){//解密收货人地址 + return request({ + url:`/decrypt/order/product/consignee/${id}`, + method: 'get' + }) +} +export function inquiryCase(id){//病例详情 + return request({ + url:`/admin/case/inquiry/${id}`, + method: 'get' + }) +} diff --git a/src/api/patient/list.js b/src/api/patient/list.js new file mode 100644 index 0000000..ee95432 --- /dev/null +++ b/src/api/patient/list.js @@ -0,0 +1,89 @@ +import request from '../../utils/request' + +const url = '/admin/patient'; + + +export function getPatientList(params){ + return request({ + url:'/admin/patient', + method: 'get', + params + }) +} + +export function addPatient(data) { + return request({ + url, + method: 'post', + data + }) +} + +export function removePatient(data) { + return request({ + url, + method: 'delete', + data + }) +} + +export function updatePatient(data, id) { + return request({ + url: `${url}/${id}`, + method: 'put', + data + }) +} +export function getPatientDetail(id){ + return request({ + url:'/admin/doctor/'+id, + method: 'get' + }) + } + export function departmentList(){ //获取科室列表 + return request({ + url:'/basic/department/custom/list', + method: 'get' + }) + } + export function decryptCard(params){ + return request({ + url:'/decrypt/card/num', + method: 'get', + params + }) + } + export function decryptBank(doctor_id){ + return request({ + url:'/decrypt/bank/'+doctor_id, + method: 'get' + }) + } + + export function hospitalList(params){ //获取医院地址列表 + return request({ + url:'/basic/hospital/list', + method: 'get', + params + }) + } + export function expertiseList(){ //获取专长列表 + return request({ + url:'/basic/expertise/list', + method: 'get' + }) + } + export function bankList(){ //获取银行列表 + return request({ + url:'/basic/bank/list', + method: 'get' + }) + } + export function areaList(params){ //获取银行列表 + return request({ + url:'/basic/area/list', + method: 'get', + params + }) + } + \ No newline at end of file diff --git a/src/assets/hasuse.png b/src/assets/hasuse.png new file mode 100644 index 0000000..0ecc2e1 Binary files /dev/null and b/src/assets/hasuse.png differ diff --git a/src/assets/nowork.png b/src/assets/nowork.png new file mode 100644 index 0000000..6f5afe1 Binary files /dev/null and b/src/assets/nowork.png differ diff --git a/src/assets/unuse.png b/src/assets/unuse.png new file mode 100644 index 0000000..9dcadcc Binary files /dev/null and b/src/assets/unuse.png differ diff --git a/src/components/DeleteModal.vue b/src/components/DeleteModal.vue index 55e35f7..4d11301 100644 --- a/src/components/DeleteModal.vue +++ b/src/components/DeleteModal.vue @@ -23,7 +23,7 @@ \ No newline at end of file diff --git a/src/components/doctorModal.vue b/src/components/doctorModal.vue new file mode 100644 index 0000000..72077b3 --- /dev/null +++ b/src/components/doctorModal.vue @@ -0,0 +1,995 @@ + + + \ No newline at end of file diff --git a/src/components/isOkModal.vue b/src/components/isOkModal.vue new file mode 100644 index 0000000..4b70c02 --- /dev/null +++ b/src/components/isOkModal.vue @@ -0,0 +1,67 @@ + + \ No newline at end of file diff --git a/src/components/patientModal.vue b/src/components/patientModal.vue new file mode 100644 index 0000000..ae9a9ef --- /dev/null +++ b/src/components/patientModal.vue @@ -0,0 +1,259 @@ + + \ No newline at end of file diff --git a/src/components/prescription.vue b/src/components/prescription.vue new file mode 100644 index 0000000..6af2f9d --- /dev/null +++ b/src/components/prescription.vue @@ -0,0 +1,224 @@ + + + \ No newline at end of file diff --git a/src/components/tableUnit.vue b/src/components/tableUnit.vue new file mode 100644 index 0000000..0a2f90a --- /dev/null +++ b/src/components/tableUnit.vue @@ -0,0 +1,29 @@ + + \ No newline at end of file diff --git a/src/main.js b/src/main.js index 666f5ba..9868b05 100644 --- a/src/main.js +++ b/src/main.js @@ -7,7 +7,6 @@ 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 new file mode 100644 index 0000000..b3c29a4 --- /dev/null +++ b/src/utils/format.js @@ -0,0 +1,63 @@ +export const formatDoctorTitle=(val)=>{ + //医生职称(1:主任医师 2:主任中医师 3:副主任医师 4:副主任中医师 5:主治医师 6:住院医师) + let data={1:'主任医师', 2:'主任中医师', 3:'副主任医师', 4:'副主任中医师', 5:'主治医师',6:'住院医师'} + if(val){ + return data[val] + }else{ + return '' + } + } + export const formatPrescriptionStatus=(val)=>{ + //处方状态(1:待审核 2:待使用 3:已失效 4:已使用) + let data={1:'待审核', 2:'待使用', 3:'已失效', 4:'已使用'} + if(val){ + return data[val] + }else{ + return '' + } + } + export const formatPharmacistStatus=(val)=>{ + //pharmacist_audit_status药师审核状态(0:审核中 1:审核成功 2:审核驳回) + let data={0:'审核中', 1:'审核成功', 2:'审核驳回'} + if(val || val==0){ + return data[val] + }else{ + return '' + } + } + export const formatOrderCancelReason=(val)=>{ + //取消订单原因(1:医生未接诊 2:主动取消 3:无可分配医生 4:客服取消 5:支付超时) + let data={1:'医生未接诊', 2:'主动取消', 3:'无可分配医生',4:'客服取消',5:'支付超时'} + if(val){ + return data[val] + }else{ + return '' + } + } + export const formatProductCancelReason=(val)=>{ + //1:主动取消 2:复核失败/库存不足 3:支付超时 4:客服取消 + let data={1:'主动取消', 2:'复核失败/库存不足', 3:'支付超时',4:'客服取消'} + if(val){ + return data[val] + }else{ + return '' + } + } + export const formatCheckCancelReason=(val)=>{ + //1:主动取消 2:客服取消 3:支付超时 + let data={1:'主动取消', 2:'客服取消/库存不足', 3:'支付超时'} + if(val){ + return data[val] + }else{ + return '' + } + } + export const fromatReportStatus=(val)=>{ + //上报处方平台状态(0:未上报 1:已上报 2:上报失败)) + let data={0:'未上报', 1:'已上报', 2:'上报失败'} + if(val || val==0){ + return data[val] + }else{ + return '' + } +} diff --git a/src/utils/request.js b/src/utils/request.js index f1cc41f..002f538 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -9,7 +9,7 @@ const service = axios.create({ timeout: 8000, headers:{ 'Content-Type':'application/json', - 'Authorization':'' + } }); diff --git a/src/views/admin/sys-menu/index.vue b/src/views/admin/sys-menu/index.vue index 4cc9ab7..6e3f739 100644 --- a/src/views/admin/sys-menu/index.vue +++ b/src/views/admin/sys-menu/index.vue @@ -93,7 +93,7 @@ - + diff --git a/src/views/doctor/doctor-list/index.vue b/src/views/doctor/doctor-list/index.vue index 8fd2745..832fdc3 100644 --- a/src/views/doctor/doctor-list/index.vue +++ b/src/views/doctor/doctor-list/index.vue @@ -15,7 +15,7 @@ --> - + 主任医师 主任中医师 @@ -26,7 +26,7 @@ - + 专家问诊 快速问诊 @@ -35,7 +35,7 @@ - + 未认证 认证通过 @@ -44,7 +44,7 @@ - + 未认证 认证通过 @@ -53,7 +53,7 @@ - + 未认证 认证通过 @@ -61,20 +61,26 @@ - + - + + + + + + + + - 搜索 diff --git a/src/views/order/medince-list/index.vue b/src/views/order/medince-list/index.vue new file mode 100644 index 0000000..769012e --- /dev/null +++ b/src/views/order/medince-list/index.vue @@ -0,0 +1,1064 @@ + + + + + diff --git a/src/views/order/order-list/index.vue b/src/views/order/order-list/index.vue new file mode 100644 index 0000000..ea28bba --- /dev/null +++ b/src/views/order/order-list/index.vue @@ -0,0 +1,750 @@ + + + + + diff --git a/src/views/patient/patient-list/index.vue b/src/views/patient/patient-list/index.vue new file mode 100644 index 0000000..8fd2745 --- /dev/null +++ b/src/views/patient/patient-list/index.vue @@ -0,0 +1,1541 @@ + + + + + \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index 6df17b9..1a69d47 100644 --- a/vite.config.js +++ b/vite.config.js @@ -48,11 +48,11 @@ export default defineConfig({ port: 1798, //secure: false, proxy: { - // '/api': { - // target: 'https://vue3.go-admin.dev', - // changeOrigin: true, //开启跨域 - // rewrite: (path) => path.replace(/^\/api/, '') - // }, + '/book': { + target: 'http://twx.igandan.org', + changeOrigin: true, //开启跨域 + rewrite: (path) => path.replace(/^\/book/, '') + }, '/admin': { target: 'http://dev.hospital.admin.igandanyiyuan.com', changeOrigin: true, //开启跨域