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 @@
+
+
+
+ {{ title }}
+
+
+
+
+
+ ▼
+
+
+
+
+
+ ▼
+
+
+
+
+
+ ▼
+
+
+
+
+
+ ▼
+
+
+
+
+
+ ▼
+
+
+
+
+
+ ▼
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ▼
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+ 明细合计
+ {{ detailTotalCost }} 元
+
+
+
+
+ 新增
+
+
+
+ 汇总
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 费用类型
+ {{ dictStr(item.type, costTypeList) || '--' }}
+
+
+ 费用名称
+ {{ item.costName || '--' }}
+
+
+ 单价
+ {{ item.price || '--' }} 元
+
+
+ 数量
+ {{ item.count || '--' }}
+
+
+ 单位
+ {{ dictStr(item.unit, packageUnitList) || '--' }}
+
+
+ 总价
+ {{ item.totalCost || '--' }} 元
+
+
+ 备注
+ {{ item.remark }}
+
+
+
+
+
+
+
+ 修改
+
+
+
+ 复制
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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
+