职业病
+ :disabled="sumBtnDisabled('btnOcc')">职业病
@@ -89,6 +91,7 @@ import { getPagePriv, checkPagePriv, deepCopy } from "../../utlis/proFunc";
import PatientRegisterList from "../doctorCheck/PatientRegisterList.vue";
import SumDiagnosis from "./SumDiagnosis.vue";
import OccDisease from "../../components/occDisease/OccDisease.vue"
+import moment from "moment";
export default {
components: {
@@ -124,7 +127,7 @@ export default {
},
computed: {
- ...mapState(["window", "dict", "dataTransOpts", "dialogWin","patientRegister", "doctorCheck", "sumDoctorCheck"]),
+ ...mapState(["window", "dict", "dataTransOpts", "dialogWin", "patientRegister", "doctorCheck", "sumDoctorCheck"]),
},
methods: {
@@ -200,7 +203,7 @@ export default {
default:
break;
}
-
+
postapi(url, { patientRegisterId: this.dataTransOpts.tableS.patient_register.id }).then(res => {
if (res.code > -1) {
this.$message.success({ showClose: true, message: '导入成功!' })
@@ -222,12 +225,40 @@ export default {
let body = {
patientRegisterId: this.dataTransOpts.tableS.patient_register.id,
summaryDoctorId: this.dataTransOpts.tableS.patient_register.summaryDoctorId || null,
- summaryDate: this.dataTransOpts.tableS.patient_register.summaryDate,
+ summaryDate: this.dataTransOpts.tableS.patient_register.summaryDate||moment(new Date()).format("yyyy-MM-DD HH:mm:ss"),
medicalConclusionId: this.dataTransOpts.tableS.patient_register.medicalConclusionId || null,
sumSummarys: this.sumDoctorCheck.summaryList,
sumSuggestions: this.sumDoctorCheck.suggestionList
}
+ // 检查综述建议是否同一个人,防止不同人员数据覆盖
+ let message = ''
+ for (let index = 0; index < this.sumDoctorCheck.summaryList.length; index++) {
+ let e = this.sumDoctorCheck.summaryList[index];
+ if (!e.patientRegisterId || e.patientRegisterId != this.dataTransOpts.tableS.patient_register.id) {
+ message = "人员ID 与 综述人员ID 不一致"
+ break
+ }
+ }
+ if (message) {
+ this.$message.error({ showClose: true, message })
+ return
+ }
+
+ for (let index = 0; index < this.sumDoctorCheck.suggestionList.length; index++) {
+ let e = this.sumDoctorCheck.suggestionList[index];
+ if (!e.patientRegisterId || e.patientRegisterId != this.dataTransOpts.tableS.patient_register.id) {
+ message = "人员ID 与 建议人员ID 不一致"
+ break
+ }
+ }
+ if (message) {
+ this.$message.error({ showClose: true, message })
+ return
+ }
+
+
+
postapi(`/api/app/patientregister/UpdatePatientRegisterSummarySuggestion`, body)
.then((res) => {