Browse Source

photo

master
pengjun 2 years ago
parent
commit
2e3fc03db4
  1. 14
      src/components/patientRegister/PatientRegisterEdit.vue
  2. 13
      src/components/patientRegister/PatientRegisterItem.vue
  3. 4
      src/components/patientRegister/PatientRegisterList.vue

14
src/components/patientRegister/PatientRegisterEdit.vue

@ -621,16 +621,20 @@ export default {
url += `4&PatientName=${this.query.patientName}`
break;
default:
break;
return;
}
console.log(url)
getapi(url)
.then((res) => {
if (res.code != -1) {
console.log('按条码号查个人数据', res.data)
console.log('按条码号查个人数据', res)
if (res.code == 1) {
objCopy(res.data, this.form)
}
this.patientRegister.photo = res.data.photo
}else if(res.code == 0){
this.$message.info("未找到相关信息")
}
});
},
@ -1225,7 +1229,7 @@ export default {
//
"patientRegister.photo"(newVal, oldVal) {
//console.log('patientRegister.patientRegisterRd.id newVal',newVal,' oldVal',oldVal)
if (newVal && newVal != oldVal) {
if (newVal != oldVal) {
this.getPeoplePhoto(newVal)
}
},

13
src/components/patientRegister/PatientRegisterItem.vue

@ -175,7 +175,11 @@ export default {
...mapState(["window", "dict", "customerOrg", "patientRegister", "personnelUnit"]),
},
mounted() { },
mounted() {
if(this.patientRegisterForm.id){
this.getPatientRegisterAbs(this.patientRegisterForm.id)
}
},
methods: {
...mapActions(['getCustomerOrgGroup', 'getPatientRegisterAbs']),
@ -783,6 +787,7 @@ export default {
//
watch: {
//
"patientRegister.customerOrgGroupChange"(newVal, oldVal) {
console.log("watch patientRegister.customerOrgGroupChange newVal:", newVal, " oldVal:", oldVal);
@ -821,6 +826,12 @@ export default {
}
},
"patientRegisterForm.id"(newVal, oldVal) {
if (newVal && newVal != oldVal) {
this.getPatientRegisterAbs(newVal)
}
},
//
"payTypeFlag"(newVal, oldVal) {
if (newVal != oldVal && newVal != '') {

4
src/components/patientRegister/PatientRegisterList.vue

@ -460,14 +460,14 @@ export default {
this.patientRegister.photo = ""; //
this.patientRegister.patientRegisterId = row.id;
this.patientRegister.photo = row.photo;
this.patientRegister.photo = row.photo||'/pic/Photo.jpg';
this.patientRegister.patientRegisterRd = row;
this.patientRegister.query.customerOrgParentId = row.customerOrgParentId;
this.patientRegister.customerOrgGroupChange = 0; //0
this.patientRegister.medicalPackageChange = 0; //0
this.getCustomerOrgGroup(row.customerOrgParentId);
this.dict.asbItem = [...this.dict.asbItemAll]
this.getPatientRegisterAbs(row.id);
//this.getPatientRegisterAbs(row.id);
},
//

Loading…
Cancel
Save