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/src/api/order/list.js b/src/api/order/list.js index c3f097d..4439fea 100644 --- a/src/api/order/list.js +++ b/src/api/order/list.js @@ -27,3 +27,23 @@ export function productList(params){ //药品列表 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 + }) +} 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/confirmModal.vue b/src/components/confirmModal.vue new file mode 100644 index 0000000..d967948 --- /dev/null +++ b/src/components/confirmModal.vue @@ -0,0 +1,75 @@ + + \ No newline at end of file diff --git a/src/components/doctorModal.vue b/src/components/doctorModal.vue index af8ebfc..9754782 100644 --- a/src/components/doctorModal.vue +++ b/src/components/doctorModal.vue @@ -413,7 +413,6 @@ import { getDoctorDetail, departmentList, decryptCard, hospitalList, expertiseLi import { ossSign, ossUpload } from '@/api/oss'; import dayjs from 'dayjs' const { proxy } = getCurrentInstance(); - const props = defineProps({ // 是否显示 doctorVisible: { 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..7f3e043 --- /dev/null +++ b/src/components/tableUnit.vue @@ -0,0 +1,25 @@ + + \ No newline at end of file diff --git a/src/utils/format.js b/src/utils/format.js new file mode 100644 index 0000000..668ab79 --- /dev/null +++ b/src/utils/format.js @@ -0,0 +1,27 @@ +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={1:'审核中', 2:'审核成功', 3:'审核驳回'} + if(val || val==0){ + return data[val] + }else{ + return '' + } + } diff --git a/src/views/order/medince-list/index.vue b/src/views/order/medince-list/index.vue index 044d5c4..1eeb28c 100644 --- a/src/views/order/medince-list/index.vue +++ b/src/views/order/medince-list/index.vue @@ -1,24 +1,47 @@