Browse Source

login

master
pengjun 2 years ago
parent
commit
ba7a228172
  1. 31
      src/components/patientRegister/PatientRegisterEdit.vue
  2. 4
      src/utlis/proFunc.js
  3. 3
      src/views/login/Login.vue

31
src/components/patientRegister/PatientRegisterEdit.vue

@ -1144,6 +1144,7 @@ export default {
//
Query(param) {
this.patientChoosed = {} //
//
if (this.form.id || !param) return;
@ -1177,24 +1178,27 @@ export default {
//
choosePatient() {
if (!this.patientChoosed) {
alert("请选中人员档案信息");
if (!this.patientChoosed) {
return;
}
this.dialogVisible = false;
this.form.patientId = this.patientChoosed.id;
this.form.patientName = this.patientChoosed.displayName;
this.form.sexId = this.patientChoosed.sexId;
this.form.maritalStatusId = this.patientChoosed.maritalStatusId;
this.form.birthDate = new Date(this.patientChoosed.birthDate);
this.form.nationId = this.patientChoosed.nationId;
this.form.idNo = this.patientChoosed.idNo;
this.form.telephone = this.patientChoosed.telephone;
this.form.mobileTelephone = this.patientChoosed.mobileTelephone;
this.form.patientNo = this.patientChoosed.patientNo;
this.form.medicalTimes = this.patientChoosed.medicalTimes + 1;
//
if(this.patientChoosed.displayName) this.form.patientName = this.patientChoosed.displayName;
if(this.patientChoosed.sexId) this.form.sexId = this.patientChoosed.sexId;
if(this.patientChoosed.birthDate) this.form.birthDate = new Date(this.patientChoosed.birthDate);
if(this.patientChoosed.nationId) this.form.nationId = this.patientChoosed.nationId;
if(this.patientChoosed.idNo) this.form.idNo = this.patientChoosed.idNo;
if(!this.form.maritalStatusId) this.form.maritalStatusId = this.patientChoosed.maritalStatusId;
if(!this.form.telephone) this.form.telephone = this.patientChoosed.telephone;
if(!this.form.mobileTelephone) this.form.mobileTelephone = this.patientChoosed.mobileTelephone;
if (this.form.birthDate) {
this.form.age = birthdayToAge(this.form.birthDate)
@ -1202,10 +1206,9 @@ export default {
if (this.form.idNo) {
let ret = parseID(this.form.idNo)
if (!this.form.birthDate) this.form.birthDate = new Date(ret.birthday)
if (!this.form.age) this.form.age = ret.age
if (!this.form.sexId) this.form.age = ret.sex
this.form.birthDate = new Date(ret.birthday)
this.form.age = ret.age
this.form.sexId = ret.sex
}
},

4
src/utlis/proFunc.js

@ -238,9 +238,9 @@ function parsIcCardtoLocal(idNos, dictSex, dictNation) {
// console.log(lfind,local.Sex)
if (lfind > -1) local.sexId = dictSex[lfind].id;
lfind = arrayExistObj(dictNation, 'displayName', local.Nation + '族')
lfind = arrayExistObj(dictNation, 'displayName', local.Nation) // + '族'
// console.log(lfind,local.Nation)
if (lfind > -1) local.nationId = dictNation[lfind].nationId;
if (lfind > -1) local.nationId = dictNation[lfind].id;
local.birthDate = new Date(local.Birthday)
local.age = birthdayToAge(local.Birthday)

3
src/views/login/Login.vue

@ -90,6 +90,9 @@ export default {
};
},
created() {
if (this.$peisAPI) {
this.$peisAPI.lazyLoadMenuContrl(); // dll
}
this.LocalConfigInit = deepCopy(this.LocalConfig)
let LocalConfig = window.localStorage.getItem("LocalConfig") || null
try {

Loading…
Cancel
Save