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

2
src/assets/css/global_input.css

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

27
src/components/patientRegister/PatientRegisterEdit.vue

@ -1228,7 +1228,6 @@ export default {
// Invalid date // Invalid date
delete body.registerManType; delete body.registerManType;
delete body.id;
delete body.patientRegisterNo; delete body.patientRegisterNo;
delete body.medicalTimes; delete body.medicalTimes;
// delete body.completeFlag; // delete body.completeFlag;
@ -1283,27 +1282,30 @@ export default {
this.$message.warning("身份证号填写不合法!"); this.$message.warning("身份证号填写不合法!");
return false return false
} }
let body = this.madePrBody()
body.registerCheckAsbitems = this.dataTransOpts.tableM.register_check_asbitem
if (this.form.id) { if (this.form.id) {
// //
this.prAsbOpraOpts.prAsbSave++ //
// this.prAsbOpraOpts.prAsbSave++ //
body.patientRegisterId = body.id;
} else { } else {
let body = this.madePrBody()
body.registerCheckAsbitems = this.dataTransOpts.tableM.register_check_asbitem
//id
delete body.id;
}
// console.log(`/api/patientregister/createreturninfo`, body); // console.log(`/api/patientregister/createreturninfo`, body);
postapi(`/api/PatientRegister/CreatePatientRegister`, body) postapi(`/api/PatientRegister/CreatePatientRegister`, body)
.then(res => { .then(res => {
if (res.code == 1) { if (res.code == 1) {
this.dataTransOpts.tableS.patient_register = deepCopy(res.data) this.dataTransOpts.tableS.patient_register = deepCopy(res.data)
//
this.prAsbOpraOpts.formId = res.data.id
setTimeout(() => {
this.dataTransOpts.refresh.register_check_asbitem.D++
}, 10);
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)) // this.refreshRegister(Object.assign({}, res.data))
@ -1313,7 +1315,6 @@ export default {
} }
} }
); );
}
}); });
}, },

Loading…
Cancel
Save