|
|
|
@ -7,10 +7,12 @@ |
|
|
|
<el-button type="primary" class="commonbutton" @click="toDoctorCheck">医生诊台</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '导入检查结果')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnImportResult('pacs')" :disabled="sumBtnDisabled('save')">导入检查结果</el-button> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnImportResult('pacs')" |
|
|
|
:disabled="sumBtnDisabled('save')">导入检查结果</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '导入检验结果')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnImportResult('lis')" :disabled="sumBtnDisabled('save')">导入检验结果</el-button> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnImportResult('lis')" |
|
|
|
:disabled="sumBtnDisabled('save')">导入检验结果</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '保存')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnSave" |
|
|
|
@ -50,7 +52,7 @@ |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '职业病')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnOcc" |
|
|
|
:disabled="sumBtnDisabled('btnOcc')">职业病</el-button> |
|
|
|
:disabled="sumBtnDisabled('btnOcc')">职业病</el-button> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
@ -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) => { |
|
|
|
|