Merge branch 'master' of https://codeup.aliyun.com/61c0318acd8b75daa5a125f7/medical/openhis
This commit is contained in:
@@ -223,7 +223,7 @@ public class PatientInformationController {
|
|||||||
return R.fail(MessageUtils.createMessage(PromptMsgConstant.Common.M00007, null));
|
return R.fail(MessageUtils.createMessage(PromptMsgConstant.Common.M00007, null));
|
||||||
}
|
}
|
||||||
|
|
||||||
return R.ok(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00002, new Object[] {"病人信息"}));
|
return R.ok(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00001, new Object[] {"病人信息"}));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -249,11 +249,7 @@ public class PatientInformationController {
|
|||||||
Page<PatientInformationDto> patientInformationPage = new Page<>(pageNo, pageSize, total);
|
Page<PatientInformationDto> patientInformationPage = new Page<>(pageNo, pageSize, total);
|
||||||
patientInformationPage.setRecords(listPatients);
|
patientInformationPage.setRecords(listPatients);
|
||||||
|
|
||||||
if (patientInformationPage == null || patientInformationPage.getRecords().isEmpty()) {
|
return R.ok(patientInformationPage);
|
||||||
return R.fail(MessageUtils.createMessage(PromptMsgConstant.Common.M00006, null));
|
|
||||||
}
|
|
||||||
return R.ok(patientInformationPage,
|
|
||||||
MessageUtils.createMessage(PromptMsgConstant.Common.M00009, new Object[] {"病人信息"}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,12 +42,25 @@
|
|||||||
<where>
|
<where>
|
||||||
<!-- 如果传入busNo参数,且不为空 -->
|
<!-- 如果传入busNo参数,且不为空 -->
|
||||||
<if test="busNo != null and busNo != ''">
|
<if test="busNo != null and busNo != ''">
|
||||||
AND busNo LIKE CONCAT(#{busNo}, '%')
|
AND pt.bus_no LIKE CONCAT('%',#{busNo}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
<!-- 如果传入name参数,且不为空 -->
|
<!-- 如果传入name参数,且不为空 -->
|
||||||
<if test="name != null and name != ''">
|
<if test="name != null and name != ''">
|
||||||
AND name LIKE CONCAT(#{name}, '%')
|
<choose>
|
||||||
|
<!-- 如果name参数中包含汉字 -->
|
||||||
|
<when test="name.matches('.*[\u4e00-\u9fa5].*')">
|
||||||
|
AND pt.name LIKE CONCAT('%', #{name}, '%')
|
||||||
|
</when>
|
||||||
|
<!-- 如果name参数中只包含字母 -->
|
||||||
|
<when test="name.matches('^[a-zA-Z]+$')">
|
||||||
|
AND pt.py_str LIKE CONCAT('%', #{name}, '%')
|
||||||
|
</when>
|
||||||
|
<!-- 如果name参数中既包含汉字又包含字母 -->
|
||||||
|
<otherwise>
|
||||||
|
AND (pt.name LIKE CONCAT('%', #{name}, '%') OR pt.py_str LIKE CONCAT('%', #{name}, '%'))
|
||||||
|
</otherwise>
|
||||||
|
</choose>
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
ORDER BY pt.bus_no
|
ORDER BY pt.bus_no
|
||||||
@@ -62,12 +75,25 @@
|
|||||||
<where>
|
<where>
|
||||||
<!-- 如果传入busNo参数,且不为空 -->
|
<!-- 如果传入busNo参数,且不为空 -->
|
||||||
<if test="busNo != null and busNo != ''">
|
<if test="busNo != null and busNo != ''">
|
||||||
AND busNo LIKE CONCAT(#{busNo}, '%')
|
AND pt.bus_no LIKE CONCAT('%',#{busNo}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
<!-- 如果传入name参数,且不为空 -->
|
<!-- 如果传入name参数,且不为空 -->
|
||||||
<if test="name != null and name != ''">
|
<if test="name != null and name != ''">
|
||||||
AND name LIKE CONCAT(#{name}, '%')
|
<choose>
|
||||||
|
<!-- 如果name参数中包含汉字 -->
|
||||||
|
<when test="name.matches('.*[\u4e00-\u9fa5].*')">
|
||||||
|
AND pt.name LIKE CONCAT('%', #{name}, '%')
|
||||||
|
</when>
|
||||||
|
<!-- 如果name参数中只包含字母 -->
|
||||||
|
<when test="name.matches('^[a-zA-Z]+$')">
|
||||||
|
AND pt.py_str LIKE CONCAT('%', #{name}, '%')
|
||||||
|
</when>
|
||||||
|
<!-- 如果name参数中既包含汉字又包含字母 -->
|
||||||
|
<otherwise>
|
||||||
|
AND (pt.name LIKE CONCAT('%', #{name}, '%') OR pt.py_str LIKE CONCAT('%', #{name}, '%'))
|
||||||
|
</otherwise>
|
||||||
|
</choose>
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ public class Patient extends HisBaseEntity {
|
|||||||
private String linkName;
|
private String linkName;
|
||||||
|
|
||||||
/** 联系人关系 */
|
/** 联系人关系 */
|
||||||
private Integer linkRelationCode;
|
private FamilyRelationshipType linkRelationCode;
|
||||||
|
|
||||||
/** 联系人电话 */
|
/** 联系人电话 */
|
||||||
private String linkTelcom;
|
private String linkTelcom;
|
||||||
|
|||||||
@@ -62,4 +62,13 @@ export function listPatient(query) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 修改
|
||||||
|
export function updatePatient(data) {
|
||||||
|
return request({
|
||||||
|
url: '/patientmanage/information/patient-information',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -79,7 +79,7 @@
|
|||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="性别" prop="genderEnum">
|
<el-form-item label="性别" prop="genderEnum">
|
||||||
<el-radio-group v-model="form.genderEnum" :disabled="isViewMode">
|
<el-radio-group v-model="form.genderEnum" :disabled="isViewMode">
|
||||||
<el-radio v-for="item in administrativegenderList" :key="item.value" :label="item.value" >
|
<el-radio v-for="item in administrativegenderList" :key="item.value" :label="item.value" @change="radiochange">
|
||||||
{{ item.info }}
|
{{ item.info }}
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
@@ -223,10 +223,8 @@
|
|||||||
<script setup name="patientManagement">
|
<script setup name="patientManagement">
|
||||||
import pcas from 'china-division/dist/pcas-code.json';
|
import pcas from 'china-division/dist/pcas-code.json';
|
||||||
import { ref, computed } from 'vue';
|
import { ref, computed } from 'vue';
|
||||||
import familyRelationships from "./component/familyRelationships"
|
|
||||||
import {listmaritalstatus,listoccupationtype,lisadministrativegender,listbloodtypeabo,listbloodtypearh,listfamilyrelationshiptype,
|
import {listmaritalstatus,listoccupationtype,lisadministrativegender,listbloodtypeabo,listbloodtypearh,listfamilyrelationshiptype,
|
||||||
addPatient,listPatient} from "./component/api"
|
addPatient,listPatient,updatePatient} from "./component/api"
|
||||||
import { RegionFullGroup } from 'v-region'
|
|
||||||
|
|
||||||
const showSearch = ref(true);
|
const showSearch = ref(true);
|
||||||
const open = ref(false);
|
const open = ref(false);
|
||||||
@@ -306,6 +304,7 @@ function getList() {
|
|||||||
});
|
});
|
||||||
lisadministrativegender().then(response => {
|
lisadministrativegender().then(response => {
|
||||||
administrativegenderList.value = response.data
|
administrativegenderList.value = response.data
|
||||||
|
console.log("administrativegenderList.value",administrativegenderList.value)
|
||||||
});
|
});
|
||||||
listbloodtypeabo().then(response => {
|
listbloodtypeabo().then(response => {
|
||||||
bloodtypeaboList.value = response.data
|
bloodtypeaboList.value = response.data
|
||||||
@@ -325,7 +324,7 @@ function reset() {
|
|||||||
nameJson: undefined,
|
nameJson: undefined,
|
||||||
menuName: undefined,
|
menuName: undefined,
|
||||||
age: undefined,
|
age: undefined,
|
||||||
genderEnum: undefined,
|
genderEnum: 0,
|
||||||
idType: undefined,
|
idType: undefined,
|
||||||
idCard: undefined,
|
idCard: undefined,
|
||||||
phone: undefined,
|
phone: undefined,
|
||||||
@@ -384,6 +383,7 @@ function handleUpdate(row) {
|
|||||||
const codes = convertAddressToCodes(selectedOptions1.value);
|
const codes = convertAddressToCodes(selectedOptions1.value);
|
||||||
selectedOptions.value = codes.filter(code => code !== null);
|
selectedOptions.value = codes.filter(code => code !== null);
|
||||||
isViewMode.value = false;
|
isViewMode.value = false;
|
||||||
|
console.log("form.value12",form.value)
|
||||||
open.value = true;
|
open.value = true;
|
||||||
title.value = "修改菜单";
|
title.value = "修改菜单";
|
||||||
}
|
}
|
||||||
@@ -414,12 +414,16 @@ function cancel() {
|
|||||||
open.value = false;
|
open.value = false;
|
||||||
reset();
|
reset();
|
||||||
}
|
}
|
||||||
|
function radiochange(){
|
||||||
|
console.log("form.value.eadio",form.value.genderEnum)
|
||||||
|
}
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
function submitForm() {
|
function submitForm() {
|
||||||
proxy.$refs["patientRef"].validate(valid => {
|
proxy.$refs["patientRef"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (form.value.busNo != undefined) {
|
if (form.value.busNo != undefined) {
|
||||||
updateMenu(form.value).then(response => {
|
console.log("form.value.up",form.value)
|
||||||
|
updatePatient(form.value).then(response => {
|
||||||
proxy.$modal.msgSuccess("修改成功");
|
proxy.$modal.msgSuccess("修改成功");
|
||||||
open.value = false;
|
open.value = false;
|
||||||
getList();
|
getList();
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ export default defineConfig (({mode, command}) => {
|
|||||||
// https://cn.vitejs.dev/config/#server-proxy
|
// https://cn.vitejs.dev/config/#server-proxy
|
||||||
'/dev-api': {
|
'/dev-api': {
|
||||||
target: 'http://localhost:18080/openhis',
|
target: 'http://localhost:18080/openhis',
|
||||||
|
// target: 'http://192.168.31.221:18080/openhis',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: p => p.replace (/^\/dev-api/, ''),
|
rewrite: p => p.replace (/^\/dev-api/, ''),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user