Browse Source

doctor

master
pengjun 2 years ago
parent
commit
c23f366510
  1. 98
      src/views/doctorCheck/doctorCheck.vue

98
src/views/doctorCheck/doctorCheck.vue

@ -391,23 +391,103 @@ export default {
return return
} }
//
this.updateCheckItemList();
// //
// this.updateCheckItemList();
//
this.updateDoctorCheck();
// //
// this.updateDoctorCheck();
//
this.saveCheckSummary();
// //
// this.saveCheckSummary();
// //
// this.saveCheckSuggestion(true);
//
// {
// "registerCheckId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
// "checkDoctorId": "string",
// "checkDate": "2024-04-17T14:13:24.889Z",
// "registerCheckItems": [
// {
// "itemId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
// "result": "string",
// "criticalValue": "string",
// "checkDoctorName": "string",
// "checkDate": "string"
// }
// ],
// "summarys": [
// {
// "summary": "string",
// "summaryFlag": "string"
// }
// ],
// "suggestions": [
// {
// "suggestion": "string"
// }
// ]
// }
let checkDate = this.doctorCheck.RegisterCheckEdit.checkDate || new Date();
checkDate = moment(new Date(checkDate)).format('yyyy-MM-DD HH:mm:ss'); //yyyy-MM-DD HH:mm:ss
let checkDoctorId = this.doctorCheck.RegisterCheckEdit.checkDoctorId || window.sessionStorage.getItem("user");
let registerCheckId = this.doctorCheck.RegisterCheckEdit.id
//
let registerCheckItems = []
this.doctorCheck.checkItemList.forEach(e => {
registerCheckItems.push({
itemId: e.itemId,
result: e.result,
checkDoctorName: checkDoctorId,
checkDate,
})
});
//
let summarys = []
this.doctorCheck.checkSummaryList.forEach(item => {
summarys.push({
summary: item.summary,
summaryFlag: item.summaryFlag,
})
});
//
let suggestions = []
this.doctorCheck.checkSuggestionList.forEach(item => {
suggestions.push({
suggestion: item.suggestion
})
});
let body = {
registerCheckId,
checkDoctorId,
checkDate,
registerCheckItems,
summarys,
suggestions
}
postapi('/api/app/registercheck/UpdateCheckResult', body)
.then(res => {
if (res.code > -1) {
this.doctorCheck.RegisterCheckEdit.completeFlag = '1';
//
let lfind = arrayExistObj(this.doctorCheck.RegisterCheckList, 'id', body.registerCheckId)
if (lfind > -1) this.doctorCheck.RegisterCheckList[lfind].completeFlag = '1'
console.log('操作成功')
} else {
this.$message.error({ showClose: true, message: res.message })
}
})
//
this.saveCheckSuggestion(true);
}, },
// //
updateDoctorCheck(successTip) { updateDoctorCheck(successTip) {
let checkDate = this.doctorCheck.RegisterCheckEdit.checkDate || new Date(); let checkDate = this.doctorCheck.RegisterCheckEdit.checkDate || new Date();
checkDate = moment(new Date(checkDate)).format('yyyy-MM-DD'); //yyyy-MM-DD HH:mm:ss
checkDate = moment(new Date(checkDate)).format('yyyy-MM-DD HH:mm:ss'); //yyyy-MM-DD HH:mm:ss
let checkDoctorId = this.doctorCheck.RegisterCheckEdit.checkDoctorId || window.sessionStorage.getItem("user"); let checkDoctorId = this.doctorCheck.RegisterCheckEdit.checkDoctorId || window.sessionStorage.getItem("user");
let body = { let body = {

Loading…
Cancel
Save