Browse Source

photo

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

12
src/components/patientRegister/PatientRegisterEdit.vue

@ -621,16 +621,20 @@ export default {
url += `4&PatientName=${this.query.patientName}` url += `4&PatientName=${this.query.patientName}`
break; break;
default: default:
break;
return;
} }
console.log(url) console.log(url)
getapi(url) getapi(url)
.then((res) => { .then((res) => {
if (res.code != -1) {
console.log('按条码号查个人数据', res.data)
console.log('按条码号查个人数据', res)
if (res.code == 1) {
objCopy(res.data, this.form) 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) { "patientRegister.photo"(newVal, oldVal) {
//console.log('patientRegister.patientRegisterRd.id newVal',newVal,' oldVal',oldVal) //console.log('patientRegister.patientRegisterRd.id newVal',newVal,' oldVal',oldVal)
if (newVal && newVal != oldVal) {
if (newVal != oldVal) {
this.getPeoplePhoto(newVal) this.getPeoplePhoto(newVal)
} }
}, },

13
src/components/patientRegister/PatientRegisterItem.vue

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

4
src/components/patientRegister/PatientRegisterList.vue

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

Loading…
Cancel
Save