From 5453f84b0b95e84085fa56ed616629d0a4715ead Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=8F=B2=E8=8F=B2?= <12704587+yvwen@user.noreply.gitee.com>
Date: Fri, 7 Mar 2025 18:00:37 +0800
Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E8=AF=8A=E7=9A=AE=E8=AF=95=EF=BC=8C?=
=?UTF-8?q?=E7=97=85=E4=BA=BA=E4=BF=A1=E6=81=AF=EF=BC=8C=E7=97=85=E4=BA=BA?=
=?UTF-8?q?=E8=AE=B0=E5=BD=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../skinRecord/component/api.js | 9 +
.../clinicManagement/skinRecord/index.vue | 284 ++++++++++++++++++
.../outpatienRecords/index.vue | 1 +
.../patientManagement/index.vue | 19 +-
4 files changed, 311 insertions(+), 2 deletions(-)
create mode 100644 openhis-ui-vue3/src/views/clinicManagement/skinRecord/component/api.js
create mode 100644 openhis-ui-vue3/src/views/clinicManagement/skinRecord/index.vue
diff --git a/openhis-ui-vue3/src/views/clinicManagement/skinRecord/component/api.js b/openhis-ui-vue3/src/views/clinicManagement/skinRecord/component/api.js
new file mode 100644
index 00000000..d5a76fca
--- /dev/null
+++ b/openhis-ui-vue3/src/views/clinicManagement/skinRecord/component/api.js
@@ -0,0 +1,9 @@
+import request from '@/utils/request'
+
+export function listSkinRecord(query) {
+ return request({
+ url: '/patientmanage/records/outpatient-record-page',
+ method: 'get',
+ params: query
+ })
+ }
\ No newline at end of file
diff --git a/openhis-ui-vue3/src/views/clinicManagement/skinRecord/index.vue b/openhis-ui-vue3/src/views/clinicManagement/skinRecord/index.vue
new file mode 100644
index 00000000..9dee2074
--- /dev/null
+++ b/openhis-ui-vue3/src/views/clinicManagement/skinRecord/index.vue
@@ -0,0 +1,284 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 取消修改
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 修改
+ 确认
+ 签名
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/openhis-ui-vue3/src/views/patientManagement/outpatienRecords/index.vue b/openhis-ui-vue3/src/views/patientManagement/outpatienRecords/index.vue
index 77818af0..f9f7f5cc 100644
--- a/openhis-ui-vue3/src/views/patientManagement/outpatienRecords/index.vue
+++ b/openhis-ui-vue3/src/views/patientManagement/outpatienRecords/index.vue
@@ -31,6 +31,7 @@
+
diff --git a/openhis-ui-vue3/src/views/patientManagement/patientManagement/index.vue b/openhis-ui-vue3/src/views/patientManagement/patientManagement/index.vue
index e389b0a0..eb8544f8 100644
--- a/openhis-ui-vue3/src/views/patientManagement/patientManagement/index.vue
+++ b/openhis-ui-vue3/src/views/patientManagement/patientManagement/index.vue
@@ -413,6 +413,20 @@ function cancel() {
open.value = false;
reset();
}
+// 获取完整地址字符串
+function getAddress(form) {
+ const addressParts = [
+ form.value.addressProvince,
+ form.value.addressCity,
+ form.value.addressDistrict,
+ form.value.addressStreet,
+ form.value.address,
+ ];
+ // 使用 reduce 方法拼接地址
+ return addressParts.reduce((acc, part) => {
+ return part ? acc + part : acc;
+ }, "");
+}
/** 提交按钮 */
function submitForm() {
proxy.$refs["patientRef"].validate(valid => {
@@ -420,7 +434,7 @@ function submitForm() {
if (form.value.busNo != undefined) {
const newAddress = form.value.addressProvince+form.value.addressCity + form.value.addressDistrict + form.value.addressStreet + form.value.address
if (addressCom.value !== newAddress) {
- form.value.address = newAddress;
+ form.value.address = getAddress(form);
}
updatePatient(form.value).then(response => {
proxy.$modal.msgSuccess("修改成功");
@@ -428,7 +442,8 @@ function submitForm() {
getList();
});
} else {
- form.value.address = form.value.addressProvince+form.value.addressCity + form.value.addressDistrict + form.value.addressStreet + form.value.address
+ form.value.address = getAddress(form);
+ // form.value.address = form.value.addressProvince+form.value.addressCity + form.value.addressDistrict + form.value.addressStreet + form.value.address
addPatient(form.value).then(response => {
proxy.$modal.msgSuccess("新增成功");
open.value = false;