pengjun 2 years ago
parent
commit
58ebfe2ebb
  1. 2
      src/assets/css/global_input.css
  2. 63
      src/components/patientRegister/PatientRegisterEdit.vue

2
src/assets/css/global_input.css

@ -33,12 +33,10 @@
/* el-date-picker 框前日期图标 */
.el-icon-date:before {
content: "";
/* 原始 默认 el-icon-date */
}
.el-icon-time:before {
content: "";
/* 原始 默认 el-icon-time */

63
src/components/patientRegister/PatientRegisterEdit.vue

@ -526,7 +526,7 @@ export default {
patientId: "00000000-0000-0000-0000-000000000000", //ID 00000-0000...
patientNo: "", //
customerOrgId: ["00000000-0000-0000-0000-000000000001"], //
customerOrgRegisterId:"00000000-0000-0000-0000-000000000001", //
customerOrgRegisterId: "00000000-0000-0000-0000-000000000001", //
customerOrgGroupId: null, //
medicalPackageId: null, //
patientName: "", //
@ -832,10 +832,10 @@ export default {
this.form.customerOrgGroupId = null
this.form.medicalPackageId = null
if (customerOrgParentId == this.dict.personOrgId) {
this.patientRegister.customerOrgGroup = []
} else {
this.form.customerOrgRegisterId = null
this.form.customerOrgRegisterId = null
}
if (this.form.customerOrgParentId == this.dict.personOrgId) {
@ -1227,8 +1227,7 @@ export default {
// console.log('body',body)
// Invalid date
delete body.registerManType;
delete body.id;
delete body.registerManType;
delete body.patientRegisterNo;
delete body.medicalTimes;
// delete body.completeFlag;
@ -1283,37 +1282,39 @@ export default {
this.$message.warning("身份证号填写不合法!");
return false
}
let body = this.madePrBody()
body.registerCheckAsbitems = this.dataTransOpts.tableM.register_check_asbitem
if (this.form.id) {
//
this.prAsbOpraOpts.prAsbSave++ //
// this.prAsbOpraOpts.prAsbSave++ //
body.patientRegisterId = body.id;
} else {
let body = this.madePrBody()
body.registerCheckAsbitems = this.dataTransOpts.tableM.register_check_asbitem
//id
// console.log(`/api/patientregister/createreturninfo`, body);
postapi(`/api/PatientRegister/CreatePatientRegister`, body)
.then(res => {
if (res.code == 1) {
this.dataTransOpts.tableS.patient_register = deepCopy(res.data)
//
this.prAsbOpraOpts.formId = res.data.id
setTimeout(() => {
this.dataTransOpts.refresh.register_check_asbitem.D++
}, 10);
//
// this.refreshRegister(Object.assign({}, res.data))
//
if (this.patientRegister.photo && this.patientRegister.photo.indexOf("data:image") > -1) savePeoplePhoto(res.data.id, this.patientRegister.photo);
}
}
);
delete body.id;
}
// console.log(`/api/patientregister/createreturninfo`, body);
postapi(`/api/PatientRegister/CreatePatientRegister`, body)
.then(res => {
if (res.code == 1) {
this.dataTransOpts.tableS.patient_register = deepCopy(res.data)
delete this.dataTransOpts.tableS.patient_register.registerCheckAsbitems
this.dataTransOpts.tableM.register_check_asbitem = deepCopy(res.data.registerCheckAsbitems)
// //
// this.prAsbOpraOpts.formId = res.data.id
// setTimeout(() => {
// this.dataTransOpts.refresh.register_check_asbitem.D++
// }, 10);
//
// this.refreshRegister(Object.assign({}, res.data))
//
if (this.patientRegister.photo && this.patientRegister.photo.indexOf("data:image") > -1) savePeoplePhoto(res.data.id, this.patientRegister.photo);
}
}
);
});
},

Loading…
Cancel
Save