From 90b89f92d479be72c7007ce39451b25d009b5a49 Mon Sep 17 00:00:00 2001
From: b2894lxlx <517289602@qq.com>
Date: Mon, 1 Dec 2025 10:14:28 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=8D=AF=E6=96=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.development | 6 +-
.env.example | 2 +-
.../clinic/clinicPrescription/model/index.ts | 3 +
.../components/clinicPrescriptionEdit.vue | 300 ++++++++++++------
src/views/clinic/clinicPrescription/index.vue | 89 +++---
5 files changed, 256 insertions(+), 144 deletions(-)
diff --git a/.env.development b/.env.development
index 21e4ab5..41590fd 100644
--- a/.env.development
+++ b/.env.development
@@ -1,6 +1,4 @@
VITE_APP_NAME=后台管理(开发环境)
-#VITE_API_URL=http://192.168.1.131:9200/api
-#VITE_SERVER_API_URL=http://127.0.0.1:8000/api
+#VITE_API_URL=http://127.0.0.1:9200/api
-
-#VITE_API_URL=https://cms-api.s209.websoft.top/api
+VITE_API_URL=https://clinic-api.websoft.top/api
diff --git a/.env.example b/.env.example
index eb6f73c..2c535e4 100644
--- a/.env.example
+++ b/.env.example
@@ -8,7 +8,7 @@ VITE_DOMAIN=https://your-domain.com
VITE_FILE_SERVER=https://your-file-server.com
# 租户配置
-VITE_TENANT_ID=your_tenant_id
+VITE_TENANT_ID=VITE_TENANT_ID
VITE_TEMPLATE_ID=10258
# 应用密钥
diff --git a/src/api/clinic/clinicPrescription/model/index.ts b/src/api/clinic/clinicPrescription/model/index.ts
index 4307d5d..bf41204 100644
--- a/src/api/clinic/clinicPrescription/model/index.ts
+++ b/src/api/clinic/clinicPrescription/model/index.ts
@@ -1,4 +1,5 @@
import type { PageParam } from '@/api';
+import type { ClinicPrescriptionItem } from '../../clinicPrescriptionItem/model';
/**
* 处方主表
@@ -45,6 +46,8 @@ export interface ClinicPrescription {
createTime?: string;
// 修改时间
updateTime?: string;
+ // 处方药品
+ items?: ClinicPrescriptionItem[];
}
/**
diff --git a/src/views/clinic/clinicPrescription/components/clinicPrescriptionEdit.vue b/src/views/clinic/clinicPrescription/components/clinicPrescriptionEdit.vue
index d56078d..3e14066 100644
--- a/src/views/clinic/clinicPrescription/components/clinicPrescriptionEdit.vue
+++ b/src/views/clinic/clinicPrescription/components/clinicPrescriptionEdit.vue
@@ -19,40 +19,18 @@
styleResponsive ? { md: 19, sm: 19, xs: 24 } : { flex: '1' }
"
>
-
-
-
-
-
-
-
+
-
-
-
-
+
+ 中药
+ 西药
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 显示
- 隐藏
-
-
-
-
-
-
-
+
+
+
+
+
+
尚未选择药品,请先添加。
+
+ 添加药品
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/clinic/clinicPrescription/index.vue b/src/views/clinic/clinicPrescription/index.vue
index 1fac2b6..6b9c8bd 100644
--- a/src/views/clinic/clinicPrescription/index.vue
+++ b/src/views/clinic/clinicPrescription/index.vue
@@ -105,42 +105,43 @@
key: 'id',
width: 90,
},
+ // {
+ // title: '患者',
+ // dataIndex: 'userId',
+ // key: 'userId',
+ // width: 120
+ // },
+ // {
+ // title: '医生',
+ // dataIndex: 'doctorId',
+ // key: 'doctorId',
+ // width: 120
+ // },
{
- title: '患者',
- dataIndex: 'userId',
- key: 'userId',
- width: 120
- },
- {
- title: '医生',
- dataIndex: 'doctorId',
- key: 'doctorId',
- width: 120
- },
- {
- title: '订单编号',
+ title: '药方编号',
dataIndex: 'orderNo',
key: 'orderNo',
ellipsis: true
},
- {
- title: '关联就诊表',
- dataIndex: 'visitRecordId',
- key: 'visitRecordId',
- width: 120
- },
+ // {
+ // title: '关联就诊表',
+ // dataIndex: 'visitRecordId',
+ // key: 'visitRecordId',
+ // width: 120
+ // },
{
title: '处方类型',
dataIndex: 'prescriptionType',
key: 'prescriptionType',
- width: 120
- },
- {
- title: '诊断结果',
- dataIndex: 'diagnosis',
- key: 'diagnosis',
- ellipsis: true
+ width: 120,
+ customRender: ({ text }) => ['中药', '西药'][text]
},
+ // {
+ // title: '诊断结果',
+ // dataIndex: 'diagnosis',
+ // key: 'diagnosis',
+ // ellipsis: true
+ // },
{
title: '治疗方案',
dataIndex: 'treatmentPlan',
@@ -153,24 +154,24 @@
key: 'decoctionInstructions',
ellipsis: true
},
- {
- title: '订单总金额',
- dataIndex: 'orderPrice',
- key: 'orderPrice',
- width: 120
- },
- {
- title: '单价',
- dataIndex: 'price',
- key: 'price',
- width: 120
- },
- {
- title: '实付金额',
- dataIndex: 'payPrice',
- key: 'payPrice',
- width: 120
- },
+ // {
+ // title: '订单总金额',
+ // dataIndex: 'orderPrice',
+ // key: 'orderPrice',
+ // width: 120
+ // },
+ // {
+ // title: '单价',
+ // dataIndex: 'price',
+ // key: 'price',
+ // width: 120
+ // },
+ // {
+ // title: '实付金额',
+ // dataIndex: 'payPrice',
+ // key: 'payPrice',
+ // width: 120
+ // },
// {
// title: '是否失效',
// dataIndex: 'isInvalid',