From 5231542d739f6c5a3c895e02382b61afa071e22d Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Mon, 7 Sep 2026 10:37:32 +0800 Subject: [PATCH 01/24] =?UTF-8?q?=E8=8D=AF=E6=88=BF=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/basic/pharmacy.js | 92 ++++ .../pharmacy/components/pharmacyModal.vue | 416 +++++++++++++++ src/views/basic/pharmacy/index.vue | 495 ++++++++++++++++++ 3 files changed, 1003 insertions(+) create mode 100644 src/api/basic/pharmacy.js create mode 100644 src/views/basic/pharmacy/components/pharmacyModal.vue create mode 100644 src/views/basic/pharmacy/index.vue diff --git a/src/api/basic/pharmacy.js b/src/api/basic/pharmacy.js new file mode 100644 index 0000000..798871e --- /dev/null +++ b/src/api/basic/pharmacy.js @@ -0,0 +1,92 @@ +import request from '@/utils/request'; + +/** + * 获取药房分页列表 + * @param {Object} data - 查询参数及分页参数 + * @returns {Promise} + */ +export function getPharmacyPage(data) { + return request({ + url: '/admin/basic/pharmacy/page', + method: 'post', + data, + }); +} + +/** + * 获取药房列表(下拉选择框) + * @param {Object} params - 过滤条件 + * @returns {Promise} + */ +export function getPharmacyList(params) { + return request({ + url: '/admin/basic/pharmacy/list', + method: 'get', + params, + }); +} + +/** + * 获取药房详情 + * @param {String} pharmacy_id - 药房 ID + * @returns {Promise} + */ +export function getPharmacyDetail(pharmacy_id) { + return request({ + url: `/admin/basic/pharmacy/${pharmacy_id}`, + method: 'get', + }); +} + +/** + * 新增药房 + * @param {Object} data - 药房实体参数 + * @returns {Promise} + */ +export function addPharmacy(data) { + return request({ + url: '/admin/basic/pharmacy', + method: 'post', + data, + }); +} + +/** + * 修改药房 + * @param {String} pharmacy_id - 药房 ID + * @param {Object} data - 药房实体参数 + * @returns {Promise} + */ +export function updatePharmacy(pharmacy_id, data) { + return request({ + url: `/admin/basic/pharmacy/${pharmacy_id}`, + method: 'put', + data, + }); +} + +/** + * 切换药房状态(快捷开关) + * @param {String} pharmacy_id - 药房 ID + * @param {Number} status - 0: 禁用, 1: 正常 + * @returns {Promise} + */ +export function updatePharmacyStatus(pharmacy_id, status) { + return request({ + url: `/admin/basic/pharmacy/status/${pharmacy_id}`, + method: 'put', + data: { status }, + }); +} + +/** + * 删除药房(软删除) + * @param {String} pharmacy_id - 药房 ID + * @returns {Promise} + */ +export function deletePharmacy(pharmacy_id) { + return request({ + url: `/admin/basic/pharmacy/${pharmacy_id}`, + method: 'delete', + }); +} diff --git a/src/views/basic/pharmacy/components/pharmacyModal.vue b/src/views/basic/pharmacy/components/pharmacyModal.vue new file mode 100644 index 0000000..a884581 --- /dev/null +++ b/src/views/basic/pharmacy/components/pharmacyModal.vue @@ -0,0 +1,416 @@ + + + + + diff --git a/src/views/basic/pharmacy/index.vue b/src/views/basic/pharmacy/index.vue new file mode 100644 index 0000000..071f2c4 --- /dev/null +++ b/src/views/basic/pharmacy/index.vue @@ -0,0 +1,495 @@ + + + + + From 8df15290117c44fb16d73a5b8dde1cb3b439a861 Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Mon, 7 Sep 2026 11:15:00 +0800 Subject: [PATCH 02/24] 1 --- src/views/basic/pharmacy/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/basic/pharmacy/index.vue b/src/views/basic/pharmacy/index.vue index 071f2c4..ff270f3 100644 --- a/src/views/basic/pharmacy/index.vue +++ b/src/views/basic/pharmacy/index.vue @@ -192,7 +192,7 @@ - + + + {{ record.status === 1 ? '正常' : '禁用' }} + + @@ -146,9 +168,12 @@ diff --git a/src/views/prescription/transferPrescription-list/index.vue b/src/views/prescription/transferPrescription-list/index.vue index a6570d9..7a03dd3 100644 --- a/src/views/prescription/transferPrescription-list/index.vue +++ b/src/views/prescription/transferPrescription-list/index.vue @@ -44,6 +44,24 @@ 审核驳回 + + + + {{ item.pharmacy_name }} + + + + @@ -146,10 +168,12 @@ From 69a75085f875751f4d66ade0ec737cbb9c05941b Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Mon, 7 Sep 2026 16:46:41 +0800 Subject: [PATCH 13/24] 3 --- src/views/basic/pharmacy/components/pharmacyDoctorDrawer.vue | 2 +- src/views/basic/pharmacy/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/basic/pharmacy/components/pharmacyDoctorDrawer.vue b/src/views/basic/pharmacy/components/pharmacyDoctorDrawer.vue index 090cf91..4a33dc7 100644 --- a/src/views/basic/pharmacy/components/pharmacyDoctorDrawer.vue +++ b/src/views/basic/pharmacy/components/pharmacyDoctorDrawer.vue @@ -220,7 +220,7 @@ const columns = [ { title: '执业机构与科室', slotName: 'hospital', minWidth: 180 }, { title: '默认状态', slotName: 'is_default', width: 110, align: 'center' }, { title: '绑定时间', dataIndex: 'bind_time', width: 170 }, - { title: '操作', slotName: 'action', width: 150, align: 'center', fixed: 'right' }, + { title: '操作', slotName: 'action', width: 180, align: 'center', fixed: 'right' }, ]; // 获取药房绑定的医生列表数据 diff --git a/src/views/basic/pharmacy/index.vue b/src/views/basic/pharmacy/index.vue index cd48146..b39c344 100644 --- a/src/views/basic/pharmacy/index.vue +++ b/src/views/basic/pharmacy/index.vue @@ -320,7 +320,7 @@ const columns = [ { title: '地址', slotName: 'full_address', minWidth: 240 }, { title: '状态', slotName: 'status', width: 100, align: 'center' }, { title: '创建时间', dataIndex: 'created_at', width: 180 }, - { title: '操作', slotName: 'action', width: 330, fixed: 'right', align: 'center' }, + { title: '操作', slotName: 'action', width: 350, fixed: 'right', align: 'center' }, ]; // 获取区域信息 From b5290c69c8bf410d1b735df8d9edc1b172d8ca8c Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Mon, 7 Sep 2026 16:47:45 +0800 Subject: [PATCH 14/24] 3 --- src/views/basic/pharmacy/components/pharmacyDoctorDrawer.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/basic/pharmacy/components/pharmacyDoctorDrawer.vue b/src/views/basic/pharmacy/components/pharmacyDoctorDrawer.vue index 4a33dc7..478d98e 100644 --- a/src/views/basic/pharmacy/components/pharmacyDoctorDrawer.vue +++ b/src/views/basic/pharmacy/components/pharmacyDoctorDrawer.vue @@ -2,7 +2,7 @@ From 59c9a299b4c8be1b2fa666ef08043402d6dcc7fc Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Mon, 7 Sep 2026 16:48:42 +0800 Subject: [PATCH 15/24] 4 --- src/views/basic/pharmacy/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/basic/pharmacy/index.vue b/src/views/basic/pharmacy/index.vue index b39c344..f1a1c7f 100644 --- a/src/views/basic/pharmacy/index.vue +++ b/src/views/basic/pharmacy/index.vue @@ -320,7 +320,7 @@ const columns = [ { title: '地址', slotName: 'full_address', minWidth: 240 }, { title: '状态', slotName: 'status', width: 100, align: 'center' }, { title: '创建时间', dataIndex: 'created_at', width: 180 }, - { title: '操作', slotName: 'action', width: 350, fixed: 'right', align: 'center' }, + { title: '操作', slotName: 'action', width: 380, fixed: 'right', align: 'center' }, ]; // 获取区域信息 From 7e1d67bf07c283bdcc604a61a2517b78f9734433 Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Mon, 7 Sep 2026 16:59:39 +0800 Subject: [PATCH 16/24] 6 --- src/components/medinceModal.vue | 1 - src/components/medinceOrderModal.vue | 1 - src/components/prescriptionModal.vue | 1 - src/components/prescriptionModalTransfer.vue | 1 - src/views/order/medince-list/index.vue | 4 +--- src/views/prescription/prescription-list/index.vue | 3 +-- src/views/prescription/transferPrescription-list/index.vue | 3 +-- 7 files changed, 3 insertions(+), 11 deletions(-) diff --git a/src/components/medinceModal.vue b/src/components/medinceModal.vue index 3a979de..c0c1371 100644 --- a/src/components/medinceModal.vue +++ b/src/components/medinceModal.vue @@ -89,7 +89,6 @@
{{ modalForm.pharmacy_name || modalForm.pharmacy?.pharmacy_name || '-' }} - 默认药房
diff --git a/src/components/medinceOrderModal.vue b/src/components/medinceOrderModal.vue index 2d1ed39..469aa5f 100644 --- a/src/components/medinceOrderModal.vue +++ b/src/components/medinceOrderModal.vue @@ -100,7 +100,6 @@
{{ modalForm.pharmacy_name || modalForm.pharmacy?.pharmacy_name || '-' }} - 默认药房
diff --git a/src/components/prescriptionModal.vue b/src/components/prescriptionModal.vue index 452ea84..51b98a9 100644 --- a/src/components/prescriptionModal.vue +++ b/src/components/prescriptionModal.vue @@ -84,7 +84,6 @@
{{ modalForm.pharmacy_name || modalForm.pharmacy?.pharmacy_name || '-' }} - 默认药房
diff --git a/src/components/prescriptionModalTransfer.vue b/src/components/prescriptionModalTransfer.vue index b7f66db..01e523f 100644 --- a/src/components/prescriptionModalTransfer.vue +++ b/src/components/prescriptionModalTransfer.vue @@ -84,7 +84,6 @@
{{ modalForm.pharmacy_name || modalForm.pharmacy?.pharmacy_name || '-' }} - 默认药房
diff --git a/src/views/order/medince-list/index.vue b/src/views/order/medince-list/index.vue index 83d4b62..a95c310 100644 --- a/src/views/order/medince-list/index.vue +++ b/src/views/order/medince-list/index.vue @@ -319,8 +319,7 @@ }}{{ record.patient_age }}岁) + +
@@ -248,17 +247,26 @@ + + +