pengjun 2 years ago
parent
commit
d4ba9a3a88
  1. 6
      src/assets/css/global_button.css
  2. 89
      src/components/doctorCheck/PatientRegisterBase.vue
  3. 8
      src/components/patientRegister/PatientRegisterEdit.vue
  4. 8
      src/components/patientRegister/PatientRegisterItem.vue
  5. 4
      src/utlis/proFunc.js

6
src/assets/css/global_button.css

@ -57,6 +57,11 @@
background-color: rgba(20, 96, 243, 0.4);
}
.el-button.is-disabled:hover,
.el-button.is-disabled:focus {
background-color: rgba(20, 96, 243, 0.4);
}
.commonbutton:hover,
.commonbutton:focus {
border-color: #c6e2ff;
@ -75,6 +80,7 @@
.difference {
border: 1px solid #396FFA;
color: #396FFA !important;
background-color: #fff;
font-size: 14px;
font-weight: 500;
font-family: "NotoSansSC-Medium";

89
src/components/doctorCheck/PatientRegisterBase.vue

@ -103,14 +103,13 @@ export default {
nationId: '', //
mobileTelephone: '', //
},
prBaseInit: {},
prBaseInit:{},
PatientRegisterForChooseParams: {}, //
};
},
created() {
this.prBaseInit = Object.assign({}, this.prBase)
this.prBaseInit = deepCopy(this.prBase)
},
//
@ -129,13 +128,12 @@ export default {
...mapMutations(['doctorCheckPrBaseInit', 'sumPREditInit']),
dddw, moment,
//
findPR(rd) {
// debugger
//
afterFind(rd) {
// console.log('rd,this.doctorCheck.prBase',rd.id,this.doctorCheck.prBase.id)
objCopy(rd, this.prBase)
this.dataTransOpts.tableS.patient_register.id = rd.id
this.doctorCheck.prBase = Object.assign({}, this.doctorCheck.prBase, rd)
this.prBase = deepCopy(this.prBaseInit)
objCopy(rd,this.prBase)
this.doctorCheck.prBase = Object.assign({}, this.doctorCheck.prBase, rd) //
setTimeout(() => {
//
this.dataTransOpts.refresh.register_check.M++
@ -143,41 +141,12 @@ export default {
//
this.dataTransOpts.refresh.sumDoctor.M++
this.dataTransOpts.refresh.sum_diagnosis.M++
}, 20);
// objCopy(rd,this.doctorCheck.prBase)
// this.sumPREditInit()
this.sumDoctorCheck.sumPREdit = Object.assign({}, this.sumDoctorCheck.sumPREdit, rd)
// objCopy(rd,this.sumDoctorCheck.sumPREdit)
}, 10);
//
this.patientRegister.photo = rd.photo
},
//
unfindPR(queryType) {
this.$message.warning("没有找到相应的数据")
let val = this.prBase[queryType]
this.doctorCheckPrBaseInit()
this.dataTransOpts.tableS.patient_register.id = ''
setTimeout(() => {
//
this.dataTransOpts.refresh.register_check.M++
//
this.dataTransOpts.refresh.sumDoctor.M++
this.dataTransOpts.refresh.sum_diagnosis.M++
}, 20);
this.sumPREditInit()
setTimeout(() => {
this.prBase[queryType] = val
}, 100);
this.patientRegister.photo = ''
},
//
onQueryByPatientRegisterNo() {
@ -187,16 +156,17 @@ export default {
patientRegisterNo,
isFilterPreRegistration: 'Y' // Y= N= N (CompleteFlag0null)
}
console.log(`/api/app/patientregister/getpatientregisterorpatient`, body)
// console.log(`/api/app/patientregister/getpatientregisterorpatient`, body)
this.dataTransOpts.tableS.patient_register = { id: '' }
postapi('/api/app/patientregister/getpatientregisterorpatient', body)
.then((res) => {
if (res.code != -1) {
if (res.data) {
this.findPR(res.data)
} else {
this.unfindPR('patientRegisterNo')
}
this.dataTransOpts.tableS.patient_register = deepCopy(res.data)
}
})
.finally(() => {
this.afterFind(this.dataTransOpts.tableS.patient_register)
});
},
@ -208,16 +178,16 @@ export default {
patientNo,
isFilterPreRegistration: 'Y' // Y= N= N (CompleteFlag0null)
}
console.log(`/api/app/patientregister/getpatientregisterorpatient`, body)
// console.log(`/api/app/patientregister/getpatientregisterorpatient`, body)
this.dataTransOpts.tableS.patient_register = { id: '' }
postapi('/api/app/patientregister/getpatientregisterorpatient', body)
.then((res) => {
if (res.code != -1) {
if (res.data) {
this.findPR(res.data)
} else {
this.unfindPR('patientRegisterNo')
}
this.dataTransOpts.tableS.patient_register = deepCopy(res.data)
}
})
.finally(() => {
this.afterFind(this.dataTransOpts.tableS.patient_register)
});
},
@ -242,21 +212,18 @@ export default {
//ID
getPatientRegister(patientRegisterId) {
if (!patientRegisterId) {
this.prBase = deepCopy(this.prBaseInit)
this.afterFind({ id: '' })
return
}
postapi(`/api/app/patientregister/getinfoorpatient?PatientRegisterId=${patientRegisterId}`)
.then(res => {
.then((res) => {
if (res.code != -1) {
this.prBase = res.data
//
this.dataTransOpts.refresh.register_check.M++
//
this.dataTransOpts.refresh.sumDoctor.M++
this.dataTransOpts.refresh.sum_diagnosis.M++
this.dataTransOpts.tableS.patient_register = deepCopy(res.data)
}
})
.finally(() => {
this.afterFind(this.dataTransOpts.tableS.patient_register)
});
},

8
src/components/patientRegister/PatientRegisterEdit.vue

@ -1297,11 +1297,13 @@ export default {
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
this.dataTransOpts.tableS.patient_register = deepCopy(res.data)
let temp = Object.assign({}, res.data, { id: '' })
objCopy(temp, this.form)
setTimeout(() => {
this.dataTransOpts.refresh.register_check_asbitem.D++
}, 10);
//
// this.refreshRegister(Object.assign({}, res.data))

8
src/components/patientRegister/PatientRegisterItem.vue

@ -225,7 +225,7 @@ export default {
})
},
mounted() {
this.getPrAsb(this.dataTransOpts.tableS.patient_register.id)
},
methods: {
@ -1094,12 +1094,12 @@ export default {
// }
// },
"dataTransOpts.refresh.register_check_asbitem.M":{
immediate: true, //
"dataTransOpts.refresh.register_check_asbitem.D":{
// immediate: true, //
// deep: true, //
handler(newVal,oldVal){
console.log('watch: 刷新 人员登记/编辑 时的组合项目: ',this.dataTransOpts.tableS.patient_register.id)
this.getPrAsb(this.dataTransOpts.tableS.patient_register.id)
if(newVal != oldVal) this.getPrAsb(this.dataTransOpts.tableS.patient_register.id)
}
},

4
src/utlis/proFunc.js

@ -360,8 +360,8 @@ const sumBtnDisabled = (btnFlagName, patientRegister) => {
if (!patientRegister.isLock) return true
switch (btnFlagName) {
case 'save':
if (patientRegister.completeFlag == '3' || patientRegister.isAudit == 'Y') ret = true
case 'save':
if (patientRegister.completeFlag == '3') ret = true
break;
case 'edit':
case 'del':

Loading…
Cancel
Save