From 5b4916e4534d1b96eba849fe94201a62a87137ac Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Tue, 24 Oct 2023 14:13:57 +0800 Subject: [PATCH 01/32] =?UTF-8?q?=E9=97=AE=E8=AF=8A=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/inquiry/config.js | 20 +- src/api/inquiry/sysconfig.js | 41 ++ src/components/addInquiryConfigModal.vue | 421 ++++++++++++++---- src/components/addSysconfigModal.vue | 470 +++++++++++++++++++++ src/components/doctorModal.vue | 2 +- src/components/upload.vue | 2 +- src/layout/components/Menu/SubMenu.vue | 4 +- src/utils/format.js | 10 + src/views/inquiry/inquiry-list/index.vue | 38 +- src/views/inquiry/sysconfig-list/index.vue | 343 +++++++++++++++ 10 files changed, 1237 insertions(+), 114 deletions(-) create mode 100644 src/api/inquiry/sysconfig.js create mode 100644 src/components/addSysconfigModal.vue create mode 100644 src/views/inquiry/sysconfig-list/index.vue diff --git a/src/api/inquiry/config.js b/src/api/inquiry/config.js index 05d4fa3..4422262 100644 --- a/src/api/inquiry/config.js +++ b/src/api/inquiry/config.js @@ -14,7 +14,7 @@ export function getInquiryconfigList(params){ export function addInquiryconfig(data){//添加配置 return request({ url:'/admin/inquiry/config/doctor', - method: 'put', + method: 'post', data }) } @@ -30,4 +30,20 @@ export function getInquiryconfigDetail(id){ url:'/admin/inquiry/config/doctor/'+id, method: 'get' }) - } \ No newline at end of file + } + export function getDoctorList(params){//获取医生列表 + return request({ + url:'/admin/doctor/list', + method: 'get', + params + }) + } + + export function inquiryPriceAndTime(params){//获取问诊价格和问诊时间 + return request({ + url:'/admin/inquiry/config/system/detail', + method: 'get', + params + }) + } + \ No newline at end of file diff --git a/src/api/inquiry/sysconfig.js b/src/api/inquiry/sysconfig.js new file mode 100644 index 0000000..c7f1ec5 --- /dev/null +++ b/src/api/inquiry/sysconfig.js @@ -0,0 +1,41 @@ +import request from '../../utils/request' + +const url = '/admin/inquiry/config/system'; + + +export function getSysconfigList(params){ + return request({ + url:'/admin/inquiry/config/system', + method: 'get', + params + }) +} + +export function addSysconfig(data){//添加配置 + return request({ + url:'/admin/inquiry/config/system', + method: 'post', + data + }) +} +export function editSysconfig(data,id){//添加配置 + return request({ + url:'/admin/inquiry/config/system/'+id, + method: 'put', + data + }) +} +export function getSysconfigDetail(id){ + return request({ + url:'/admin/inquiry/config/system/'+id, + method: 'get' + }) + } + export function getDoctorList(params){//获取医生列表 + return request({ + url:'/admin/doctor/list', + method: 'get', + params + }) + } + diff --git a/src/components/addInquiryConfigModal.vue b/src/components/addInquiryConfigModal.vue index 4b11411..03c3040 100644 --- a/src/components/addInquiryConfigModal.vue +++ b/src/components/addInquiryConfigModal.vue @@ -3,7 +3,7 @@
添加医生
- + - - + + + + + {{item.user_name+'('+formatDoctorTitle(item.doctor_title)+item.hospital_name+item.department_custom_name+')'}} + {{item.user_name}} + + + @@ -32,10 +37,12 @@ - + @@ -48,49 +55,27 @@ -
-
-
-
问诊价格
-
- - - - - - -
-
-
接诊数量
-
- - - - - - - - - -
-
-
+ + +
+
问诊日期
- -
+ +
@@ -100,29 +85,30 @@ - + - + + {{ item.start_time }}—{{item.end_time}} + - - - 确定 添加 重置 - + @@ -131,17 +117,19 @@
- +
已选问诊时间
- 111 + + {{item}} +
- +
@@ -151,13 +139,71 @@ - +
+
+
+
问诊价格
+
+ + + + + + + + {{ item }} + + + + + +
+
+
接诊数量
+
+ + + + + + + + + + +
+
+
开启问诊
+
+ + + + + + + + + +
@@ -167,8 +213,7 @@ - 开启 - 关闭 + 保存 @@ -176,37 +221,259 @@ \ No newline at end of file diff --git a/src/components/addSysconfigModal.vue b/src/components/addSysconfigModal.vue new file mode 100644 index 0000000..9ccc32d --- /dev/null +++ b/src/components/addSysconfigModal.vue @@ -0,0 +1,470 @@ + + + \ No newline at end of file diff --git a/src/components/doctorModal.vue b/src/components/doctorModal.vue index b694c37..f90c0e8 100644 --- a/src/components/doctorModal.vue +++ b/src/components/doctorModal.vue @@ -894,7 +894,7 @@ const modalForm = reactive({ //获取oss签名 const getOssSign = async (scene, File) => { const { data, code, message } = await ossSign({ - user_type: 4, + user_type: 2, scene, }); if (code == 200) { diff --git a/src/components/upload.vue b/src/components/upload.vue index 3324de7..0e95aea 100644 --- a/src/components/upload.vue +++ b/src/components/upload.vue @@ -63,7 +63,7 @@ const getOssSign = async (scene, File) => { proxy.$loading.show(); const { data, code, message } = await ossSign({ - user_type: 4, + user_type: 2, scene, }); if (code == 200) { diff --git a/src/layout/components/Menu/SubMenu.vue b/src/layout/components/Menu/SubMenu.vue index a15bcbb..b3cd39d 100644 --- a/src/layout/components/Menu/SubMenu.vue +++ b/src/layout/components/Menu/SubMenu.vue @@ -1,7 +1,7 @@