|
|
|
@ -70,8 +70,7 @@ |
|
|
|
<script> |
|
|
|
import { mapState } from "vuex"; |
|
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
import { tcdate,photoParse } from "../../utlis/proFunc"; |
|
|
|
|
|
|
|
import { arrayExistObj,tcdate,photoParse } from "../../utlis/proFunc"; |
|
|
|
|
|
|
|
import PatientRegisterBase from "../../components/doctorCheck/PatientRegisterBase.vue"; |
|
|
|
import ButtonList from "../../components/doctorCheck/ButtonList.vue"; |
|
|
|
@ -430,9 +429,9 @@ export default { |
|
|
|
this.saveCheckSuggestion(true); |
|
|
|
}, |
|
|
|
|
|
|
|
//更新检查项目与医生 |
|
|
|
//更新检查医生 |
|
|
|
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 |
|
|
|
let checkDoctorId = this.doctorCheck.RegisterCheckEdit.checkDoctorId||window.sessionStorage.getItem("user"); |
|
|
|
|
|
|
|
@ -446,6 +445,7 @@ export default { |
|
|
|
.then((res) => { |
|
|
|
console.log("updateDoctorCheck", res.data); |
|
|
|
if (res.code != -1) { |
|
|
|
console.log("更新检查医生 成功", res.data); |
|
|
|
this.doctorCheck.RegisterCheckEdit.completeFlag = '1'; |
|
|
|
//更新组合项目列表记录状态 |
|
|
|
let lfind = arrayExistObj(this.doctorCheck.RegisterCheckList,'id',body.registerCheckId) |
|
|
|
@ -454,11 +454,11 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
this.$message({ type: "error", message: `项目明细保存失败,原因:${err}` }); |
|
|
|
this.$message({ type: "error", message: `更新检查医生失败,原因:${err}` }); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
//更新明细 |
|
|
|
//更新检查项目明细 |
|
|
|
updateCheckItemList(successTip) { |
|
|
|
let checkDate = this.doctorCheck.RegisterCheckEdit.checkDate||new Date(); |
|
|
|
checkDate = moment(new Date(checkDate)).format('yyyy-MM-DD'); //yyyy-MM-DD HH:mm:ss |
|
|
|
@ -478,11 +478,12 @@ export default { |
|
|
|
.then((res) => { |
|
|
|
console.log("updateCheckItemList", res.data); |
|
|
|
if (res.code != -1) { |
|
|
|
console.log("更新检查项目明细成功", res.data); |
|
|
|
if(successTip) console.log("操作成功!") |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
this.$message({ type: "error", message: `项目明细保存失败,原因:${err}` }); |
|
|
|
this.$message({ type: "error", message: `更新检查项目明细失败,原因:${err}` }); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
@ -506,11 +507,12 @@ export default { |
|
|
|
.then((res) => { |
|
|
|
console.log("saveCheckSummary", res.data); |
|
|
|
if (res.code != -1) { |
|
|
|
console.log("更新小结 成功", res.data); |
|
|
|
if(successTip) console.log("操作成功!") |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
this.$message({ type: "error", message: `项目明细保存失败,原因:${err}` }); |
|
|
|
this.$message({ type: "error", message: `更新小结失败,原因:${err}` }); |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
@ -540,7 +542,7 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
this.$message({ type: "error", message: `项目明细保存失败,原因:${err}` }); |
|
|
|
this.$message({ type: "error", message: `更新建议失败,原因:${err}` }); |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|