|
|
|
@ -8,22 +8,22 @@ |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '保存')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnSave" |
|
|
|
:disabled="sumBtnDisabled('save')">保存</el-button> |
|
|
|
:disabled="sumBtnDisabled('save')">保存</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '修改')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnEdit">修改</el-button> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnEdit" :disabled="sumBtnDisabled('edit')">修改</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '取消总检')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnDel">取消总检</el-button> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnDel" :disabled="sumBtnDisabled('del')">取消总检</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '审核')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="audit">审核</el-button> |
|
|
|
<el-button type="primary" class="commonbutton" @click="audit" :disabled="sumBtnDisabled('audit')">审核</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '取消审核')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="unAudit">取消审核</el-button> |
|
|
|
<el-button type="primary" class="commonbutton" @click="unAudit" :disabled="sumBtnDisabled('unAudit')">取消审核</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '新增建议')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="addSuggtion">新增建议</el-button> |
|
|
|
<el-button type="primary" class="commonbutton" @click="addSuggtion" :disabled="sumBtnDisabled('addSuggtion')">新增建议</el-button> |
|
|
|
</div> |
|
|
|
<!-- 直接放在 建议旁边 |
|
|
|
<div class="listBtn"> |
|
|
|
@ -31,13 +31,13 @@ |
|
|
|
</div> |
|
|
|
--> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '体检报告')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="report">体检报告</el-button> |
|
|
|
<el-button type="primary" class="commonbutton" @click="report" :disabled="sumBtnDisabled('report')">体检报告</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '复查')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="reCheck">复查</el-button> |
|
|
|
<el-button type="primary" class="commonbutton" @click="reCheck" :disabled="sumBtnDisabled('reCheck')">复查</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '干预措施')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="intervene">干预措施</el-button> |
|
|
|
<el-button type="primary" class="commonbutton" @click="intervene" :disabled="sumBtnDisabled('intervene')">干预措施</el-button> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
@ -56,7 +56,7 @@ |
|
|
|
<!-- 直接放在 建议旁边 |
|
|
|
<el-drawer title="诊断列表" :visible.sync="sumDoctorCheck.sumDiagnosisVisible" direction="ltr" :size="300" |
|
|
|
:wrapperClosable="false"> |
|
|
|
<SumDiagnosis :patientRegisterId="sumDoctorCheck.sumPREdit.id" /> |
|
|
|
<SumDiagnosis :patientRegisterId="dataTransOpts.tableS.patient_register.id" /> |
|
|
|
</el-drawer> |
|
|
|
--> |
|
|
|
</div> |
|
|
|
@ -65,7 +65,7 @@ |
|
|
|
|
|
|
|
import { mapState } from "vuex"; |
|
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
import { getPagePriv, checkPagePriv, deepCopy, sumBtnDisabled } from "../../utlis/proFunc"; |
|
|
|
import { getPagePriv, checkPagePriv, deepCopy } from "../../utlis/proFunc"; |
|
|
|
|
|
|
|
import PatientRegisterList from "../doctorCheck/PatientRegisterList.vue"; |
|
|
|
import SumDiagnosis from "./SumDiagnosis.vue"; |
|
|
|
@ -105,6 +105,7 @@ export default { |
|
|
|
|
|
|
|
computed: { |
|
|
|
...mapState(["window", "dict", "dataTransOpts", "patientRegister", "doctorCheck", "sumDoctorCheck"]), |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
@ -122,14 +123,44 @@ export default { |
|
|
|
|
|
|
|
//to医生诊台 |
|
|
|
toDoctorCheck() { |
|
|
|
// this.doctorCheck.prBase = Object.assign({},this.sumDoctorCheck.sumPREdit) |
|
|
|
// this.doctorCheck.prBase = Object.assign({},this.dataTransOpts.tableS.patient_register) |
|
|
|
// this.patientRegister.photo = this.doctorCheck.prBase.photo |
|
|
|
this.$router.push({ path: "/doctorCheck" }); |
|
|
|
}, |
|
|
|
|
|
|
|
// 按钮可用 |
|
|
|
sumBtnDisabled(btnFlagName) { |
|
|
|
sumBtnDisabled(btnFlagName, this.dataTransOpts.tableS.patient_register) |
|
|
|
let patientRegister = this.dataTransOpts.tableS.patient_register |
|
|
|
let ret = true |
|
|
|
|
|
|
|
//' 请选择体检人员' |
|
|
|
if (!patientRegister.id) return ret |
|
|
|
// '人员已锁定,不可执行此操作' |
|
|
|
if (!patientRegister.isLock) return ret |
|
|
|
|
|
|
|
switch (btnFlagName) { |
|
|
|
case 'addSuggtion': |
|
|
|
case 'save': |
|
|
|
if (patientRegister.completeFlag && patientRegister.completeFlag != '3') ret = false |
|
|
|
break; |
|
|
|
case 'edit': |
|
|
|
case 'del': |
|
|
|
case 'audit': |
|
|
|
if (patientRegister.completeFlag && patientRegister.completeFlag == '3' && patientRegister.isAudit != 'Y') ret = false |
|
|
|
break; |
|
|
|
case 'unAudit': |
|
|
|
case 'reCheck': |
|
|
|
case 'report': |
|
|
|
if (patientRegister.completeFlag && patientRegister.completeFlag == '3' && patientRegister.isAudit && patientRegister.isAudit == 'Y') ret = false |
|
|
|
break; |
|
|
|
case 'intervene': |
|
|
|
if (patientRegister.completeFlag && patientRegister.completeFlag == '3') ret = false |
|
|
|
break; |
|
|
|
default: |
|
|
|
break; |
|
|
|
} |
|
|
|
console.log('sumBtnDisabled btnFlagName, patientRegister,ret', btnFlagName, patientRegister, ret) |
|
|
|
return ret |
|
|
|
}, |
|
|
|
|
|
|
|
//保存数据 |
|
|
|
@ -142,33 +173,33 @@ export default { |
|
|
|
// //更新建议与诊断 |
|
|
|
// this.saveSuggestion(); |
|
|
|
let body = { |
|
|
|
patientRegisterId:this.sumDoctorCheck.sumPREdit.id, |
|
|
|
summaryDoctorId:this.sumDoctorCheck.sumPREdit.summaryDoctorId, |
|
|
|
summaryDate:this.sumDoctorCheck.sumPREdit.summaryDate, |
|
|
|
sumSummarys:this.sumDoctorCheck.summaryList, |
|
|
|
sumSuggestions:this.sumDoctorCheck.suggestionList |
|
|
|
patientRegisterId: this.dataTransOpts.tableS.patient_register.id, |
|
|
|
summaryDoctorId: this.dataTransOpts.tableS.patient_register.summaryDoctorId, |
|
|
|
summaryDate: this.dataTransOpts.tableS.patient_register.summaryDate, |
|
|
|
sumSummarys: this.sumDoctorCheck.summaryList, |
|
|
|
sumSuggestions: this.sumDoctorCheck.suggestionList |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
postapi(`/api/app/patientregister/UpdatePatientRegisterSummarySuggestion`, body) |
|
|
|
.then((res) => { |
|
|
|
.then((res) => { |
|
|
|
if (res.code > -1) { |
|
|
|
this.sumDoctorCheck.sumPREdit.completeFlag = '3'; |
|
|
|
this.dataTransOpts.tableS.patient_register.completeFlag = '3'; |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
//修改结果 |
|
|
|
btnEdit() { |
|
|
|
this.sumDoctorCheck.sumPREdit.completeFlag = '2' |
|
|
|
this.dataTransOpts.tableS.patient_register.completeFlag = '2' |
|
|
|
}, |
|
|
|
|
|
|
|
//取消总检 |
|
|
|
btnDel() { |
|
|
|
btnDel() { |
|
|
|
// let body = { |
|
|
|
// patientRegisterId: this.sumDoctorCheck.sumPREdit.id, |
|
|
|
// //summaryDoctor: this.sumDoctorCheck.sumPREdit.summaryDoctor, |
|
|
|
// //summaryDate: this.sumDoctorCheck.sumPREdit.summaryDate, |
|
|
|
// patientRegisterId: this.dataTransOpts.tableS.patient_register.id, |
|
|
|
// //summaryDoctor: this.dataTransOpts.tableS.patient_register.summaryDoctor, |
|
|
|
// //summaryDate: this.dataTransOpts.tableS.patient_register.summaryDate, |
|
|
|
// completeFlag: '2' |
|
|
|
// } |
|
|
|
// console.log(`/api/app/patientregister/updatepatientregistersummarydoctor`, body) |
|
|
|
@ -176,16 +207,16 @@ export default { |
|
|
|
// .then((res) => { |
|
|
|
// console.log("del", res.data); |
|
|
|
// if (res.code != -1) { |
|
|
|
// this.sumDoctorCheck.sumPREdit.completeFlag = '2'; |
|
|
|
// console.log(`/api/app/sumsummaryheader/deletesumsummarymany?PatientRegisterId=${this.sumDoctorCheck.sumPREdit.id}`) |
|
|
|
// return postapi(`/api/app/sumsummaryheader/deletesumsummarymany?PatientRegisterId=${this.sumDoctorCheck.sumPREdit.id}`) |
|
|
|
// this.dataTransOpts.tableS.patient_register.completeFlag = '2'; |
|
|
|
// console.log(`/api/app/sumsummaryheader/deletesumsummarymany?PatientRegisterId=${this.dataTransOpts.tableS.patient_register.id}`) |
|
|
|
// return postapi(`/api/app/sumsummaryheader/deletesumsummarymany?PatientRegisterId=${this.dataTransOpts.tableS.patient_register.id}`) |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// .then((res) => { |
|
|
|
// console.log("deletesumsuggestionmany", res.data); |
|
|
|
// if (res.code != -1) { |
|
|
|
// console.log(`/api/app/sumsuggestionheader/deletesumsuggestionmany?PatientRegisterId=${this.sumDoctorCheck.sumPREdit.id}`) |
|
|
|
// return postapi(`/api/app/sumsuggestionheader/deletesumsuggestionmany?PatientRegisterId=${this.sumDoctorCheck.sumPREdit.id}`) |
|
|
|
// console.log(`/api/app/sumsuggestionheader/deletesumsuggestionmany?PatientRegisterId=${this.dataTransOpts.tableS.patient_register.id}`) |
|
|
|
// return postapi(`/api/app/sumsuggestionheader/deletesumsuggestionmany?PatientRegisterId=${this.dataTransOpts.tableS.patient_register.id}`) |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// .then((res) => { |
|
|
|
@ -197,13 +228,13 @@ export default { |
|
|
|
// .catch((err) => { |
|
|
|
// this.$message({ type: "error", message: `取消总检失败,原因:${err}` }); |
|
|
|
// }); |
|
|
|
let body={ |
|
|
|
patientRegisterId: this.sumDoctorCheck.sumPREdit.id |
|
|
|
let body = { |
|
|
|
patientRegisterId: this.dataTransOpts.tableS.patient_register.id |
|
|
|
} |
|
|
|
postapi(`/api/app/patientregister/CancelSumCheck`, body) |
|
|
|
.then((res) => { |
|
|
|
.then((res) => { |
|
|
|
if (res.code > -1) { |
|
|
|
this.sumDoctorCheck.sumPREdit.completeFlag = '2'; |
|
|
|
this.dataTransOpts.tableS.patient_register.completeFlag = '2'; |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
@ -212,7 +243,7 @@ export default { |
|
|
|
audit() { |
|
|
|
|
|
|
|
let body = { |
|
|
|
patientRegisterId: this.sumDoctorCheck.sumPREdit.id, |
|
|
|
patientRegisterId: this.dataTransOpts.tableS.patient_register.id, |
|
|
|
//auditDoctor: "3fa85f64-5717-4562-b3fc-2c963f66afa6", |
|
|
|
//auditDate: "string" 不传时,取当前时间 |
|
|
|
isAudit: 'Y' |
|
|
|
@ -223,7 +254,7 @@ export default { |
|
|
|
.then((res) => { |
|
|
|
console.log("audit", res.data); |
|
|
|
if (res.code != -1) { |
|
|
|
this.sumDoctorCheck.sumPREdit.isAudit = 'Y'; |
|
|
|
this.dataTransOpts.tableS.patient_register.isAudit = 'Y'; |
|
|
|
this.$message({ type: "success", message: `总检审核成功` }); |
|
|
|
} |
|
|
|
}) |
|
|
|
@ -236,7 +267,7 @@ export default { |
|
|
|
unAudit() { |
|
|
|
|
|
|
|
let body = { |
|
|
|
patientRegisterId: this.sumDoctorCheck.sumPREdit.id, |
|
|
|
patientRegisterId: this.dataTransOpts.tableS.patient_register.id, |
|
|
|
//auditDoctor: "3fa85f64-5717-4562-b3fc-2c963f66afa6", |
|
|
|
//auditDate: "string" 不传时,取当前时间 |
|
|
|
isAudit: 'N' |
|
|
|
@ -247,7 +278,7 @@ export default { |
|
|
|
.then((res) => { |
|
|
|
console.log("unAudit", res.data); |
|
|
|
if (res.code != -1) { |
|
|
|
this.sumDoctorCheck.sumPREdit.isAudit = 'N'; |
|
|
|
this.dataTransOpts.tableS.patient_register.isAudit = 'N'; |
|
|
|
this.$message({ type: "success", message: `取消总检审核成功` }); |
|
|
|
} |
|
|
|
}) |
|
|
|
@ -269,7 +300,7 @@ export default { |
|
|
|
let user = window.sessionStorage.getItem('user'); |
|
|
|
let toOutShell = { |
|
|
|
ReportCode, token, |
|
|
|
preViewCanPrint: this.sumDoctorCheck.sumPREdit.isAudit, |
|
|
|
preViewCanPrint: this.dataTransOpts.tableS.patient_register.isAudit, |
|
|
|
Parameters: [ |
|
|
|
{ Name: 'printer', Value: user }, |
|
|
|
{ Name: 'LTS', Value: 'Y' }, //Y、N N只看不能打印 |
|
|
|
@ -281,7 +312,7 @@ export default { |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
postapi(`/api/app/printreport/getpeisreport?PatientRegisterId=${this.sumDoctorCheck.sumPREdit.id}`) |
|
|
|
postapi(`/api/app/printreport/getpeisreport?PatientRegisterId=${this.dataTransOpts.tableS.patient_register.id}`) |
|
|
|
.then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
toOutShell.ReportTable = res.data; |
|
|
|
@ -300,25 +331,25 @@ export default { |
|
|
|
let id = String(new Date().getTime()) |
|
|
|
let pojo = { |
|
|
|
id, |
|
|
|
patientRegisterId: this.sumDoctorCheck.sumPREdit.id, |
|
|
|
patientRegisterId: this.dataTransOpts.tableS.patient_register.id, |
|
|
|
diagnosisIds: [], |
|
|
|
medicalInterpretations: [ |
|
|
|
{ |
|
|
|
sumSuggestionHeaderId:id, // 拖拽用到 |
|
|
|
sumSuggestionHeaderId: id, // 拖拽用到 |
|
|
|
diagnosisId: '', // 关联诊断用到 |
|
|
|
suggestionContent: '', |
|
|
|
} |
|
|
|
], |
|
|
|
commonReasons: [ |
|
|
|
{ |
|
|
|
sumSuggestionHeaderId:id, // 拖拽用到 |
|
|
|
sumSuggestionHeaderId: id, // 拖拽用到 |
|
|
|
diagnosisId: '', |
|
|
|
suggestionContent: '', |
|
|
|
} |
|
|
|
], |
|
|
|
healthGuidances: [ |
|
|
|
{ |
|
|
|
sumSuggestionHeaderId:id, // 拖拽用到 |
|
|
|
sumSuggestionHeaderId: id, // 拖拽用到 |
|
|
|
diagnosisId: '', |
|
|
|
suggestionContent: '', |
|
|
|
} |
|
|
|
@ -342,9 +373,9 @@ export default { |
|
|
|
//更新总检 |
|
|
|
updateSumDoctorCheck() { |
|
|
|
let body = { |
|
|
|
patientRegisterId: this.sumDoctorCheck.sumPREdit.id, |
|
|
|
//summaryDoctor:this.sumDoctorCheck.sumPREdit.summaryDoctor, |
|
|
|
//summaryDate: this.sumDoctorCheck.sumPREdit.summaryDate, |
|
|
|
patientRegisterId: this.dataTransOpts.tableS.patient_register.id, |
|
|
|
//summaryDoctor:this.dataTransOpts.tableS.patient_register.summaryDoctor, |
|
|
|
//summaryDate: this.dataTransOpts.tableS.patient_register.summaryDate, |
|
|
|
completeFlag: '3' |
|
|
|
} |
|
|
|
console.log(`/api/app/patientregister/updatepatientregistersummarydoctor`, body) |
|
|
|
@ -352,7 +383,7 @@ export default { |
|
|
|
.then((res) => { |
|
|
|
console.log("updateSumDoctorCheck", res.data); |
|
|
|
if (res.code != -1) { |
|
|
|
this.sumDoctorCheck.sumPREdit.completeFlag = '3'; |
|
|
|
this.dataTransOpts.tableS.patient_register.completeFlag = '3'; |
|
|
|
this.$message({ type: "success", message: `总检保存成功!` }); |
|
|
|
} |
|
|
|
}) |
|
|
|
@ -383,7 +414,7 @@ export default { |
|
|
|
.then((res) => { |
|
|
|
console.log("saveSummary", res.data); |
|
|
|
if (res.code != -1) { |
|
|
|
//this.sumDoctorCheck.sumPREdit.completeFlag = '1'; |
|
|
|
//this.dataTransOpts.tableS.patient_register.completeFlag = '1'; |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
@ -413,7 +444,7 @@ export default { |
|
|
|
.then((res) => { |
|
|
|
console.log("saveSuggestion", res.data); |
|
|
|
if (res.code != -1) { |
|
|
|
//this.sumDoctorCheck.sumPREdit.completeFlag = '1'; |
|
|
|
//this.dataTransOpts.tableS.patient_register.completeFlag = '1'; |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
@ -423,17 +454,17 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
addSummary() { |
|
|
|
if (!this.sumDoctorCheck.sumPREdit.id) { |
|
|
|
if (!this.dataTransOpts.tableS.patient_register.id) { |
|
|
|
alert("请选择检查项目") |
|
|
|
return |
|
|
|
} |
|
|
|
this.doctorCheck.checkSummaryList.push({ |
|
|
|
registerCheckId: this.sumDoctorCheck.sumPREdit.id, |
|
|
|
registerCheckId: this.dataTransOpts.tableS.patient_register.id, |
|
|
|
summary: '', |
|
|
|
summaryFlag: 'N', |
|
|
|
}) |
|
|
|
this.doctorCheck.checkSuggestionList.push({ |
|
|
|
registerCheckId: this.sumDoctorCheck.sumPREdit.id, |
|
|
|
registerCheckId: this.dataTransOpts.tableS.patient_register.id, |
|
|
|
suggestion: '', |
|
|
|
}) |
|
|
|
}, |
|
|
|
|