From befde6cdfdf066387f23ee0512952af00e0eb00e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=8F=B2=E8=8F=B2?= <12704587+yvwen@user.noreply.gitee.com>
Date: Wed, 5 Mar 2025 10:04:17 +0800
Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E8=AF=8A=E8=AE=B0=E5=BD=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../patientManagement/index.vue | 23 ++++++-------------
1 file changed, 7 insertions(+), 16 deletions(-)
diff --git a/openhis-ui-vue3/src/views/patientManagement/patientManagement/index.vue b/openhis-ui-vue3/src/views/patientManagement/patientManagement/index.vue
index d56c4ded..e389b0a0 100644
--- a/openhis-ui-vue3/src/views/patientManagement/patientManagement/index.vue
+++ b/openhis-ui-vue3/src/views/patientManagement/patientManagement/index.vue
@@ -26,18 +26,18 @@
-
-
+
+
-
+
-
+
-
+
@@ -238,7 +238,7 @@ const administrativegenderList = ref([]) //性别
const bloodtypeaboList = ref([]) //血型abo
const bloodtypearhList = ref([]) //血型RH
const familyrelationshiptypeList = ref([]) //家庭关系
-const addressCom = ref("");
+const addressCom = ref(""); //地址
const options = ref(pcas); // 地区数据
const selectedOptions = ref([]); // v-model 绑定的选中值
@@ -295,7 +295,6 @@ const findNodeByCode = (data, code) => {
/** 查询菜单列表 */
function getList() {
listPatient(queryParams.value).then(response => {
- console.log("res",response,queryParams.value)
patientList.value = response.data.records
total.value = response.data.total;
});
@@ -386,7 +385,6 @@ function handleUpdate(row) {
const codes = convertAddressToCodes(selectedOptions1.value);
selectedOptions.value = codes.filter(code => code !== null);
isViewMode.value = false;
- console.log("form.value12",form.value)
open.value = true;
title.value = "修改菜单";
}
@@ -422,25 +420,18 @@ 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) {
- console.log("6666666666", form.value.address,addressCom.value);
- // 如果不一致,清空并重新赋值
form.value.address = newAddress;
- console.log("地址已更新为:", form.value.address);
- }
- console.log("form.value.up",form.value)
+ }
updatePatient(form.value).then(response => {
proxy.$modal.msgSuccess("修改成功");
open.value = false;
- reset()
getList();
});
} else {
form.value.address = form.value.addressProvince+form.value.addressCity + form.value.addressDistrict + form.value.addressStreet + form.value.address
- console.log("form.value",form.value)
addPatient(form.value).then(response => {
proxy.$modal.msgSuccess("新增成功");
open.value = false;
- reset()
getList();
});
}