From a8071cc00aacb38c4d4cdff941659d7d001e5bdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8F=B2=E8=8F=B2?= <12704587+yvwen@user.noreply.gitee.com> Date: Mon, 3 Mar 2025 09:41:38 +0800 Subject: [PATCH] =?UTF-8?q?=E7=97=85=E4=BA=BA=E4=BF=A1=E6=81=AF=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../patientManagement/index.vue | 38 ++++++++----------- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/openhis-ui-vue3/src/views/patientManagement/patientManagement/index.vue b/openhis-ui-vue3/src/views/patientManagement/patientManagement/index.vue index 8e4804ce..9fd8f302 100644 --- a/openhis-ui-vue3/src/views/patientManagement/patientManagement/index.vue +++ b/openhis-ui-vue3/src/views/patientManagement/patientManagement/index.vue @@ -1,12 +1,12 @@ - + @@ -76,10 +76,10 @@ --> - + - + {{ item.info }} @@ -229,7 +229,7 @@ import {listmaritalstatus,listoccupationtype,lisadministrativegender,listbloodty const showSearch = ref(true); const open = ref(false); const title = ref(""); -const total = ref(1); +const total = ref(); const patientList = ref([]) const maritalstatusList = ref([]) //婚姻 const occupationtypeList = ref([]) //职业 @@ -242,6 +242,7 @@ const options = ref(pcas); // 地区数据 const selectedOptions = ref([]); // v-model 绑定的选中值 const { proxy } = getCurrentInstance(); + const { patient_gender_enum,sys_idtype,prfs_enum,blood_rh,blood_abo,marital_status_enum,patient_temp_flag,link_relation_code} = proxy.useDict("patient_gender_enum", "sys_idtype","prfs_enum","blood_rh","blood_abo","marital_status_enum","patient_temp_flag","link_relation_code"); @@ -249,16 +250,16 @@ const data = reactive({ isViewMode: false, form: {}, queryParams: { - pageNum: 1, + pageNo: 1, pageSize: 10, - patientname: undefined, - patientid: undefined + name: undefined, + busNo: undefined }, rules: { name: [{ required: true, message: "姓名不能为空", trigger: "blur" }], idCard: [ { required: true, message: '证件号码不能为空', trigger: 'blur' }, - // { min: 18, message: '证件号码不能少于18位', trigger: 'blur' } + { min: 18, message: '证件号码不能少于18位', trigger: 'blur' } ], phone: [{ required: true, message: "联系方式不能为空", trigger: "blur" }], }, @@ -292,7 +293,7 @@ const findNodeByCode = (data, code) => { function getList() { // console.log("v-region",RegionData) listPatient(queryParams.value).then(response => { - console.log("res",response) + console.log("res",response,queryParams.value) patientList.value = response.data.records total.value = response.data.total; }); @@ -304,7 +305,6 @@ function getList() { }); lisadministrativegender().then(response => { administrativegenderList.value = response.data - console.log("administrativegenderList.value",administrativegenderList.value) }); listbloodtypeabo().then(response => { bloodtypeaboList.value = response.data @@ -352,7 +352,7 @@ function reset() { } /** 搜索按钮操作 */ function handleQuery() { - queryParams.value.pageNum = 1; + queryParams.value.pageNo = 1; getList(); } /** 重置按钮操作 */ @@ -388,7 +388,7 @@ function handleUpdate(row) { title.value = "修改菜单"; } const convertAddressToCodes = (selectedOptions1) => { - const [provinceName, cityName, areaName, streetName] = selectedOptions1; // 假设地址格式为 [省, 市, 区, 街道] + const [provinceName, cityName, areaName, streetName] = selectedOptions1; const findCode = (data, name) => { for (const item of data) { if (item.name === name) { @@ -401,12 +401,10 @@ const convertAddressToCodes = (selectedOptions1) => { } return null; }; - const provinceCode = findCode(options.value, provinceName); const cityCode = findCode(options.value, cityName); const areaCode = findCode(options.value, areaName); const streetCode = findCode(options.value, streetName); - return [provinceCode, cityCode, areaCode, streetCode]; }; /** 取消按钮 */ @@ -414,9 +412,6 @@ function cancel() { open.value = false; reset(); } -function radiochange(){ - console.log("form.value.eadio",form.value.genderEnum) -} /** 提交按钮 */ function submitForm() { proxy.$refs["patientRef"].validate(valid => { @@ -429,7 +424,6 @@ function submitForm() { getList(); }); } else { - // form.value.prfsEnum = String(form.value.prfsEnum); console.log("form.value",form.value) addPatient(form.value).then(response => { proxy.$modal.msgSuccess("新增成功");