From 65ff9768c753bdcc1476926a4da4e5ad6aeb8065 Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Tue, 26 May 2026 00:09:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=B1=E5=8C=BB=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=EF=BC=8C=E6=96=B0=E5=A2=9E=E8=B4=B9=E7=94=A8=E6=98=8E=E7=BB=86?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/health/doctorRecordCost.js | 44 ++ src/pages.json | 12 + src/pages/health/doctorRecord/costAddEdit.vue | 578 ++++++++++++++++++ src/pages/health/doctorRecord/costList.vue | 464 ++++++++++++++ src/pages/health/doctorRecord/list.vue | 18 +- 5 files changed, 1115 insertions(+), 1 deletion(-) create mode 100644 src/api/health/doctorRecordCost.js create mode 100644 src/pages/health/doctorRecord/costAddEdit.vue create mode 100644 src/pages/health/doctorRecord/costList.vue diff --git a/src/api/health/doctorRecordCost.js b/src/api/health/doctorRecordCost.js new file mode 100644 index 0000000..eea98b0 --- /dev/null +++ b/src/api/health/doctorRecordCost.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询就医记录费用明细列表 +export function listDoctorRecordCost(query) { + return request({ + url: '/health/doctorRecordCost/list', + method: 'get', + params: query + }) +} + +// 查询就医记录费用明细详细 +export function getDoctorRecordCost(id) { + return request({ + url: '/health/doctorRecordCost/' + id, + method: 'get' + }) +} + +// 新增就医记录费用明细 +export function addDoctorRecordCost(data) { + return request({ + url: '/health/doctorRecordCost', + method: 'post', + data + }) +} + +// 修改就医记录费用明细 +export function updateDoctorRecordCost(data) { + return request({ + url: '/health/doctorRecordCost', + method: 'put', + data + }) +} + +// 删除就医记录费用明细 +export function delDoctorRecordCost(id) { + return request({ + url: '/health/doctorRecordCost/' + id, + method: 'delete' + }) +} diff --git a/src/pages.json b/src/pages.json index 4256e6a..8df32d1 100644 --- a/src/pages.json +++ b/src/pages.json @@ -76,6 +76,18 @@ "navigationBarTitleText": "就医记录" } }, + { + "path": "pages/health/doctorRecord/costList", + "style": { + "navigationBarTitleText": "费用明细" + } + }, + { + "path": "pages/health/doctorRecord/costAddEdit", + "style": { + "navigationBarTitleText": "费用明细" + } + }, { "path": "pages/health/healthRecord/list", "style": { diff --git a/src/pages/health/doctorRecord/costAddEdit.vue b/src/pages/health/doctorRecord/costAddEdit.vue new file mode 100644 index 0000000..384c8bb --- /dev/null +++ b/src/pages/health/doctorRecord/costAddEdit.vue @@ -0,0 +1,578 @@ + + + + + + + diff --git a/src/pages/health/doctorRecord/costList.vue b/src/pages/health/doctorRecord/costList.vue new file mode 100644 index 0000000..5b2b75c --- /dev/null +++ b/src/pages/health/doctorRecord/costList.vue @@ -0,0 +1,464 @@ + + + + + diff --git a/src/pages/health/doctorRecord/list.vue b/src/pages/health/doctorRecord/list.vue index c1a2856..4afadb7 100644 --- a/src/pages/health/doctorRecord/list.vue +++ b/src/pages/health/doctorRecord/list.vue @@ -171,6 +171,10 @@ + + + 费用明细 + 修改 @@ -436,6 +440,10 @@ function settingCancel() { uni.navigateTo({ url: `/pages/health/doctorRecord/addEdit` }) isShow.value = true } + function handleCostDetail(item) { + uni.navigateTo({ url: `/pages/health/doctorRecord/costList?doctorRecordId=${item.id}` }) + isShow.value = true + } function handleDelete(item) { uni.showModal({ title: '确认删除', @@ -811,7 +819,9 @@ page { justify-content: flex-end; padding: 16rpx 24rpx 24rpx; gap: 16rpx; + flex-wrap: wrap; + .btn-detail, .btn-edit, .btn-copy, .btn-delete { @@ -830,6 +840,12 @@ page { transform: scale(0.95); } } + + .btn-detail { + background: rgba(19, 194, 194, 0.1); + color: #13c2c2; + border: 1rpx solid rgba(19, 194, 194, 0.3); + } .btn-edit { background: rgba(102, 126, 234, 0.1); @@ -850,4 +866,4 @@ page { } } } - \ No newline at end of file +