Browse Source

doctor

master
pengjun 2 years ago
parent
commit
1b541ff43d
  1. 2
      package.json
  2. 4
      src/components/doctorCheck/ButtonList.vue
  3. 6
      src/components/doctorCheck/PatientRegisterBase.vue
  4. 2
      src/components/doctorCheck/PatientRegisterList.vue
  5. 2
      src/components/doctorCheck/PatientRegisterListBak.vue
  6. 76
      src/components/report/BtnReport.vue
  7. 137
      src/components/sumDoctorCheck/ButtonList.vue
  8. 40
      src/components/sumDoctorCheck/SumPREdit.vue
  9. 159
      src/components/sumDoctorCheck/SumSug.vue
  10. 2
      src/store/index.js
  11. 28
      src/utlis/proFunc.js
  12. 15
      src/views/doctorCheck/sumDoctorCheck.vue

2
package.json

@ -1,5 +1,5 @@
{
"name": "demo",
"name": "peis",
"version": "0.1.0",
"private": true,
"scripts": {

4
src/components/doctorCheck/ButtonList.vue

@ -532,7 +532,7 @@ export default {
let user = window.sessionStorage.getItem('user');
let toOutShell = {
ReportCode, token,
preViewCanPrint: this.doctorCheck.prBase.isAudit, //this.sumDoctorCheck.sumPREdit.isAudit
preViewCanPrint: this.doctorCheck.prBase.isAudit, //this.dataTransOpts.tableS.patient_register.isAudit
Parameters: [
{ Name: 'printer', Value: user },
{ Name: 'LTS', Value: 'Y' }, //YN N
@ -560,7 +560,7 @@ export default {
//
toSumDoctorCheck() {
this.sumDoctorCheck.sumPREdit = Object.assign({},this.doctorCheck.prBase)
this.dataTransOpts.tableS.patient_register = Object.assign({},this.doctorCheck.prBase)
this.$router.push({ path: "/sumDoctorCheck" });
},

6
src/components/doctorCheck/PatientRegisterBase.vue

@ -181,8 +181,10 @@ export default {
this.dataTransOpts.tableS.patient_register = { id: '', patientRegisterNo }
postapi('/api/app/patientregister/GetAlreadyRegisterPatientRegisterByNo', body)
.then((res) => {
if (res.code != -1) {
if (res.data) this.dataTransOpts.tableS.patient_register = deepCopy(res.data)
if (res.code > -1) {
this.dataTransOpts.tableS.patient_register = deepCopy(res.data)
console.log('res.data',res.data)
console.log('this.dataTransOpts.tableS.patient_register',this.dataTransOpts.tableS.patient_register)
}
})
.finally(() => {

2
src/components/doctorCheck/PatientRegisterList.vue

@ -324,7 +324,7 @@ export default {
this.patientRegister.photo = row.photo
this.sumPREditInit()
objCopy(row, this.sumDoctorCheck.sumPREdit) //
objCopy(row, this.dataTransOpts.tableS.patient_register) //
},

2
src/components/doctorCheck/PatientRegisterListBak.vue

@ -251,7 +251,7 @@ export default {
objCopy(row, this.doctorCheck.prBase) //
this.sumPREditInit()
objCopy(row, this.sumDoctorCheck.sumPREdit) //
objCopy(row, this.dataTransOpts.tableS.patient_register) //
},
ldddw(arrayData, key, value, display) {

76
src/components/report/BtnReport.vue

@ -116,33 +116,33 @@ export default {
//
optGrant(optType) {
let ret = ''
if (!this.sumDoctorCheck.sumPREdit.id) return '请选择体检人员'
if (this.sumDoctorCheck.sumPREdit.isLock == 'Y') return '人员已锁定,不可执行此操作'
if (!this.dataTransOpts.tableS.patient_register.id) return '请选择体检人员'
if (this.dataTransOpts.tableS.patient_register.isLock == 'Y') return '人员已锁定,不可执行此操作'
if (optType == 'save') {
//if (!this.sumDoctorCheck.sumPREdit.summaryDoctor) return ""
if (this.sumDoctorCheck.sumPREdit.completeFlag == '3') return "该人员已总检,不可再执行此操作,如需操作请点【修改】"
if (this.sumDoctorCheck.sumPREdit.isAudit == 'Y') return '该人员检查已审核,请先取消审核,方可执行此操作!'
//if (!this.dataTransOpts.tableS.patient_register.summaryDoctor) return ""
if (this.dataTransOpts.tableS.patient_register.completeFlag == '3') return "该人员已总检,不可再执行此操作,如需操作请点【修改】"
if (this.dataTransOpts.tableS.patient_register.isAudit == 'Y') return '该人员检查已审核,请先取消审核,方可执行此操作!'
}
if (optType == 'edit') {
if (this.sumDoctorCheck.sumPREdit.completeFlag != '3') return "该人员尚未总检,无需执行此操作"
if (this.sumDoctorCheck.sumPREdit.isAudit == 'Y') return '该人员检查已审核,请先取消审核,方可执行此操作!'
if (this.dataTransOpts.tableS.patient_register.completeFlag != '3') return "该人员尚未总检,无需执行此操作"
if (this.dataTransOpts.tableS.patient_register.isAudit == 'Y') return '该人员检查已审核,请先取消审核,方可执行此操作!'
}
if (optType == 'del') {
if (this.sumDoctorCheck.sumPREdit.completeFlag != '3') return "该人员尚未总检,无需执行此操作"
if (this.sumDoctorCheck.sumPREdit.isAudit == 'Y') return '该人员检查已审核,请先取消审核,方可执行此操作!'
if (this.dataTransOpts.tableS.patient_register.completeFlag != '3') return "该人员尚未总检,无需执行此操作"
if (this.dataTransOpts.tableS.patient_register.isAudit == 'Y') return '该人员检查已审核,请先取消审核,方可执行此操作!'
}
if (optType == 'audit') {
if (this.sumDoctorCheck.sumPREdit.completeFlag != '3') return "该检查项目尚未保存,不可执行此操作"
if (this.sumDoctorCheck.sumPREdit.isAudit == 'Y') return "该人员检查已审核,无需再执行此操作"
if (this.dataTransOpts.tableS.patient_register.completeFlag != '3') return "该检查项目尚未保存,不可执行此操作"
if (this.dataTransOpts.tableS.patient_register.isAudit == 'Y') return "该人员检查已审核,无需再执行此操作"
}
if (optType == 'unAudit') {
if (this.sumDoctorCheck.sumPREdit.completeFlag != '3') return "该人员尚未总检,不可执行此操作"
if (this.sumDoctorCheck.sumPREdit.isAudit == 'N') return "该人员检查尚未审核,无需执行此操作"
if (this.dataTransOpts.tableS.patient_register.completeFlag != '3') return "该人员尚未总检,不可执行此操作"
if (this.dataTransOpts.tableS.patient_register.isAudit == 'N') return "该人员检查尚未审核,无需执行此操作"
}
if (optType == 'report') {
if (this.sumDoctorCheck.sumPREdit.completeFlag != '3') return "该人员检查尚未总检,不可执行此操作"
if (this.sumDoctorCheck.sumPREdit.isAudit == 'N') return "该人员检查尚未审核,不可执行此操作"
if (this.dataTransOpts.tableS.patient_register.completeFlag != '3') return "该人员检查尚未总检,不可执行此操作"
if (this.dataTransOpts.tableS.patient_register.isAudit == 'N') return "该人员检查尚未审核,不可执行此操作"
}
return ret
@ -173,15 +173,15 @@ export default {
alert(ret)
return
}
this.sumDoctorCheck.sumPREdit.completeFlag = '2'
this.dataTransOpts.tableS.patient_register.completeFlag = '2'
},
//
del() {
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)
@ -189,16 +189,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) => {
@ -220,7 +220,7 @@ export default {
return
}
let body = {
patientRegisterId: this.sumDoctorCheck.sumPREdit.id,
patientRegisterId: this.dataTransOpts.tableS.patient_register.id,
//auditDoctor: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
//auditDate: "string"
isAudit: 'Y'
@ -231,7 +231,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: `总检审核成功` });
}
})
@ -249,7 +249,7 @@ export default {
}
let body = {
patientRegisterId: this.sumDoctorCheck.sumPREdit.id,
patientRegisterId: this.dataTransOpts.tableS.patient_register.id,
//auditDoctor: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
//auditDate: "string"
isAudit: 'N'
@ -260,7 +260,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: `取消总检审核成功` });
}
})
@ -328,7 +328,7 @@ export default {
let id = String(new Date().getTime())
let pojo = {
id,
patientRegisterId: this.sumDoctorCheck.sumPREdit.id,
patientRegisterId: this.dataTransOpts.tableS.patient_register.id,
details: [
{
sumSuggestionHeaderId: id,
@ -362,9 +362,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)
@ -372,7 +372,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: `总检保存成功!` });
}
})
@ -403,7 +403,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) => {
@ -433,7 +433,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) => {
@ -443,17 +443,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: '',
})
},

137
src/components/sumDoctorCheck/ButtonList.vue

@ -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' }, //YN 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: '',
})
},

40
src/components/sumDoctorCheck/SumPREdit.vue

@ -3,37 +3,37 @@
<div style="display: flex; flex-wrap: wrap;height:32px; width: 100%">
<div>
<span class="query">总检医生</span>
<el-select v-model="sumDoctorCheck.sumPREdit.summaryDoctorId" filterable clearable
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' ? true : false" placeholder="请选择" style="width: 80px"
<el-select v-model="dataTransOpts.tableS.patient_register.summaryDoctorId" filterable clearable
:disabled="dataTransOpts.tableS.patient_register.completeFlag == '3' ? true : false" placeholder="请选择" style="width: 80px"
size="small">
<el-option v-for="item in users" :key="item.id" :label="item.userName" :value="item.id" />
</el-select>
</div>
<div>
<span class="query">总检日期</span>
<el-date-picker v-model="sumDoctorCheck.sumPREdit.summaryDate" value-format="yyyy-MM-dd HH:mm:ss"
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' ? true : false" type="date" style="width: 90px"
<el-date-picker v-model="dataTransOpts.tableS.patient_register.summaryDate" value-format="yyyy-MM-dd HH:mm:ss"
:disabled="dataTransOpts.tableS.patient_register.completeFlag == '3' ? true : false" type="date" style="width: 90px"
size="small" />
</div>
<div style="margin-top: 3px;">
<span class="query">总检</span>
<el-checkbox :value="sumDoctorCheck.sumPREdit.completeFlag == '3'" disabled></el-checkbox>
<el-checkbox :value="dataTransOpts.tableS.patient_register.completeFlag == '3'" disabled></el-checkbox>
</div>
<div>
<span class="query">审核医生</span>
<el-select v-model="sumDoctorCheck.sumPREdit.auditDoctor" disabled placeholder="请选择" style="width: 80px"
<el-select v-model="dataTransOpts.tableS.patient_register.auditDoctor" disabled placeholder="请选择" style="width: 80px"
size="small">
<el-option v-for="item in users" :key="item.id" :label="item.userName" :value="item.id" />
</el-select>
</div>
<div>
<span class="query">审核日期</span>
<el-date-picker v-model="sumDoctorCheck.sumPREdit.auditDate" value-format="yyyy-MM-dd" disabled type="date"
<el-date-picker v-model="dataTransOpts.tableS.patient_register.auditDate" value-format="yyyy-MM-dd" disabled type="date"
style="width: 90px" size="small" />
</div>
<div style="margin-top: 3px;">
<span class="query">审核</span>
<el-checkbox :value="sumDoctorCheck.sumPREdit.isAudit == 'Y'" disabled></el-checkbox>
<el-checkbox :value="dataTransOpts.tableS.patient_register.isAudit == 'Y'" disabled></el-checkbox>
</div>
</div>
</div>
@ -57,11 +57,10 @@ export default {
//
mounted() {
this.dictInit()
this.getPatientRegister(this.dataTransOpts.tableS.patient_register.id);
},
computed: {
...mapState(["dict", "dataTransOpts", "doctorCheck", "sumDoctorCheck"]),
...mapState(["dict", "dataTransOpts"]),
},
methods: {
//
@ -74,29 +73,10 @@ export default {
})
},
//
getPatientRegister(patientRegisterId) {
if (!patientRegisterId) {
this.sumDoctorCheck.sumPREdit = {}
return
}
postapi(`/api/app/patientregister/getinfoorpatient?PatientRegisterId=${patientRegisterId}`)
.then(res => {
if (res.code != -1) this.sumDoctorCheck.sumPREdit = res.data
})
},
},
//
watch: {
"dataTransOpts.refresh.sumDoctor.M": {
// immediate:true,
handler(newVal, oldVal) {
console.log(`watch 总检状态 newVal: ${newVal}, oldVal: ${oldVal} patientRegisterId: ${this.dataTransOpts.tableS.patient_register.id}`);
this.getPatientRegister(this.dataTransOpts.tableS.patient_register.id);
}
},
},
};
</script>

159
src/components/sumDoctorCheck/SumSug.vue

@ -40,35 +40,35 @@
<div>
<div style="display: flex;">
<el-input v-model="scope.row.suggestionTitle" placeholder="请输入建议标题" :ref="scope.row.id" :id="scope.row.id"
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'">
:disabled="sumBtnDisabled()">
</el-input>
<el-button v-show="checkPagePriv(pagePriv.privs, '删除建议')" type="danger" icon="el-icon-delete"
style="margin-left: 2px;min-width:21px;height:21px;padding:2px;" @click="delSugHead(scope.$index)"
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'"></el-button>
:disabled="sumBtnDisabled()"></el-button>
</div>
<div style="display: flex;margin-top: 2px;">
<div style="width:60px;">诊断</div>
<el-select v-model="scope.row.diagnosisIds" multiple placeholder="请选择" style="width: 100%;"
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'"
@change="changeDiagnosis">
<el-option v-for="item in diagnosises" :key="item.id" :value="item.id" :label="item.displayName" />
:disabled="sumBtnDisabled()" @change="changeDiagnosis" filterable>
<el-option v-for="item in diagnosises" :key="item.id" :value="item.id" :label="item.displayName"
:disabled="disabledDiagnosis(item.id, scope.$index)" />
</el-select>
<el-tooltip content="新增医学解释" placement="top">
<el-button v-show="checkPagePriv(pagePriv.privs, '新增医学解释')" type="success" icon="el-icon-plus"
style="min-width:21px;height:21px;padding:2px;" @click="addSug(scope.$index, 0)"
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'">
:disabled="sumBtnDisabled()">
</el-button>
</el-tooltip>
<el-tooltip content="新增常见原因" placement="top">
<el-button v-show="checkPagePriv(pagePriv.privs, '新增常见原因')" type="danger" icon="el-icon-plus"
style="margin-left: 2px;min-width:21px;height:21px;padding:2px;" @click="addSug(scope.$index, 1)"
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'">
:disabled="sumBtnDisabled()">
</el-button>
</el-tooltip>
<el-tooltip content="新增健康指导" placement="top">
<el-button v-show="checkPagePriv(pagePriv.privs, '新增健康指导')" type="danger" icon="el-icon-plus"
style="margin-left: 2px;min-width:21px;height:21px;padding:2px;" @click="addSug(scope.$index, 2)"
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'">
:disabled="sumBtnDisabled()">
</el-button>
</el-tooltip>
</div>
@ -84,8 +84,7 @@
<el-table-column prop="suggestionContent" label="建议" min-width="200">
<template slot-scope="scope2">
<el-input type="textarea" v-model="scope2.row.suggestionContent" placeholder="请输入建议内容"
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'"
:autosize="{ minRows: 1, maxRows: 10 }">
:disabled="sumBtnDisabled()" :autosize="{ minRows: 1, maxRows: 10 }">
</el-input>
</template>
</el-table-column>
@ -93,8 +92,7 @@
<template slot-scope="scope2">
<el-button v-show="checkPagePriv(pagePriv.privs, '删除医学解释')" type="danger"
style="min-width:21px;height:21px;padding:2px;" icon="el-icon-delete"
@click="delSug(scope.row.medicalInterpretations, scope2.$index)"
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'"
@click="delSug(scope.row.medicalInterpretations, scope2.$index)" :disabled="sumBtnDisabled()"
size="small"></el-button>
</template>
</el-table-column>
@ -112,8 +110,7 @@
<el-table-column prop="suggestionContent" label="建议" min-width="200">
<template slot-scope="scope2">
<el-input type="textarea" v-model="scope2.row.suggestionContent" placeholder="请输入建议内容"
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'"
:autosize="{ minRows: 1, maxRows: 10 }">
:disabled="sumBtnDisabled()" :autosize="{ minRows: 1, maxRows: 10 }">
</el-input>
</template>
</el-table-column>
@ -121,8 +118,7 @@
<template slot-scope="scope2">
<el-button v-show="checkPagePriv(pagePriv.privs, '删除常见原因')" type="danger"
style="min-width:21px;height:21px;padding:2px;" icon="el-icon-delete"
@click="delSug(scope.row.commonReasons, scope2.$index)"
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'"
@click="delSug(scope.row.commonReasons, scope2.$index)" :disabled="sumBtnDisabled()"
size="small"></el-button>
</template>
</el-table-column>
@ -140,8 +136,7 @@
<el-table-column prop="suggestionContent" label="建议" min-width="200">
<template slot-scope="scope2">
<el-input type="textarea" v-model="scope2.row.suggestionContent" placeholder="请输入健康指导"
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'"
:autosize="{ minRows: 1, maxRows: 10 }">
:disabled="sumBtnDisabled()" :autosize="{ minRows: 1, maxRows: 10 }">
</el-input>
</template>
</el-table-column>
@ -149,8 +144,7 @@
<template slot-scope="scope2">
<el-button v-show="checkPagePriv(pagePriv.privs, '删除健康指导')" type="danger"
style="min-width:21px;height:21px;padding:2px;" icon="el-icon-delete"
@click="delSug(scope.row.healthGuidances, scope2.$index)"
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'"
@click="delSug(scope.row.healthGuidances, scope2.$index)" :disabled="sumBtnDisabled()"
size="small"></el-button>
</template>
</el-table-column>
@ -178,8 +172,8 @@ export default {
privs: [] //
},
sumDetails: [],
suggestionCurRow:0, //
diagnosises:[], //
suggestionCurRow: 0, //
diagnosises: [], //
};
},
@ -237,8 +231,44 @@ export default {
})
},
//
getHaveSumData(patientRegisterId) {
this.sumDoctorCheck.summaryList = [];
this.sumDoctorCheck.suggestionList = [];
if (!patientRegisterId) return
if (this.dataTransOpts.tableS.patient_register.completeFlag == '3') {
this.summaryList(patientRegisterId, 'Y')
this.suggestionList(patientRegisterId, 'Y')
return
}
postapi('/api/app/patientregister/GetHaveSumData', { patientRegisterId })
.then(async (res) => {
if (res.code > -1) {
let isGetExistData = res.data
if (res.data == 'Y') {
try {
await this.$confirm('检测到该人员已经生成过总检信息。', '确认信息', {
distinguishCancelAndClose: true,
confirmButtonText: '重新生成总检信息',
cancelButtonText: '获取上次总检信息'
})
isGetExistData = 'N'
} catch (error) {
//console.log()
}
}
this.summaryList(patientRegisterId, isGetExistData)
this.suggestionList(patientRegisterId, isGetExistData)
}
})
},
//
summaryList(RegisterId) {
summaryList(RegisterId, isGetExistData) {
if (!RegisterId) {
this.sumDoctorCheck.summaryList = [];
return
@ -247,7 +277,7 @@ export default {
// console.log(`/api/app/sumsummaryheader/getsumsummarylist?PatientRegisterId=${RegisterId}`)
let body = {
patientRegisterId: RegisterId,
isGetExistData: 'Y',
isGetExistData,
}
postapi('/api/app/sumsummaryheader/getsumsummarylist', body)
.then((res) => {
@ -282,7 +312,7 @@ export default {
},
//
suggestionList(RegisterId) {
suggestionList(RegisterId, isGetExistData) {
if (!RegisterId) {
this.sumDoctorCheck.suggestionList = [];
return;
@ -294,7 +324,7 @@ export default {
// }
let body = {
patientRegisterId: RegisterId,
isGetExistData: 'Y',
isGetExistData,
}
// console.log(`/api/app/sumsuggestionheader/getsumsuggestionlist?PatientRegisterId=${RegisterId}`)
postapi('/api/app/sumsuggestionheader/getsumsuggestionlist', body)
@ -331,11 +361,39 @@ export default {
});
},
//
sumBtnDisabled() {
let patientRegister = this.dataTransOpts.tableS.patient_register
let ret = true
//' '
if (!patientRegister.id) return ret
// ''
if (!patientRegister.isLock) return ret
if (patientRegister.completeFlag && patientRegister.completeFlag != '3') ret = false
return ret
},
//
disabledDiagnosis(diagnosisId, index) {
let ret = false
let diagnosisIds = []
this.sumDoctorCheck.suggestionList.forEach((e, i) => {
if (i != index) {
if (e.diagnosisIds) diagnosisIds = diagnosisIds.concat(e.diagnosisIds)
}
});
if (diagnosisIds.indexOf(diagnosisId) > -1) ret = true
return ret
},
//
changeDiagnosis(v){
console.log('changeDiagnosis',v)
changeDiagnosis(v) {
console.log('changeDiagnosis', v)
let suggestionTitle = []
if(v.length == 0){
if (v.length == 0) {
this.sumDoctorCheck.suggestionList[this.suggestionCurRow]['suggestionTitle'] = ''
return
}
@ -345,24 +403,24 @@ export default {
suggestionList.forEach(e => {
e.diagnosisIds = `${e.diagnosisIds}`
});
let lfind = arrayExistObj(suggestionList,'diagnosisIds',lv)
if(lfind == -1) return
let lfind = arrayExistObj(suggestionList, 'diagnosisIds', lv)
if (lfind == -1) return
this.suggestionCurRow = lfind
let sumSuggestionHeaderId = this.sumDoctorCheck.suggestionList[lfind].id
v.forEach(e => {
let ld = arrayExistObj(this.diagnosises,'id',e)
if(ld > -1){
let ld = arrayExistObj(this.diagnosises, 'id', e)
if (ld > -1) {
suggestionTitle.push(this.diagnosises[ld]["displayName"])
//
let medicalInterpretations = this.diagnosises[ld]['medicalInterpretations']
if(medicalInterpretations){
if(!this.sumDoctorCheck.suggestionList[lfind]['medicalInterpretations']) this.sumDoctorCheck.suggestionList[lfind]['medicalInterpretations'] = []
if (medicalInterpretations) {
if (!this.sumDoctorCheck.suggestionList[lfind]['medicalInterpretations']) this.sumDoctorCheck.suggestionList[lfind]['medicalInterpretations'] = []
medicalInterpretations.forEach(e2 => {
let lf = arrayExistObj(this.sumDoctorCheck.suggestionList[lfind]['medicalInterpretations'],"suggestionContent",e2.suggestionContent)
if(lf == -1){
let lf = arrayExistObj(this.sumDoctorCheck.suggestionList[lfind]['medicalInterpretations'], "suggestionContent", e2.suggestionContent)
if (lf == -1) {
this.sumDoctorCheck.suggestionList[lfind]['medicalInterpretations'].push({
sumSuggestionHeaderId,
suggestionContent:e2.suggestionContent,
suggestionContent: e2.suggestionContent,
displayOrder: Math.random(),
})
}
@ -371,14 +429,14 @@ export default {
//
let commonReasons = this.diagnosises[ld]['commonReasons']
if(commonReasons){
if(!this.sumDoctorCheck.suggestionList[lfind]['commonReasons']) this.sumDoctorCheck.suggestionList[lfind]['commonReasons'] = []
if (commonReasons) {
if (!this.sumDoctorCheck.suggestionList[lfind]['commonReasons']) this.sumDoctorCheck.suggestionList[lfind]['commonReasons'] = []
commonReasons.forEach(e2 => {
let lf = arrayExistObj(this.sumDoctorCheck.suggestionList[lfind]['commonReasons'],"suggestionContent",e2.suggestionContent)
if(lf == -1){
let lf = arrayExistObj(this.sumDoctorCheck.suggestionList[lfind]['commonReasons'], "suggestionContent", e2.suggestionContent)
if (lf == -1) {
this.sumDoctorCheck.suggestionList[lfind]['commonReasons'].push({
sumSuggestionHeaderId,
suggestionContent:e2.suggestionContent,
suggestionContent: e2.suggestionContent,
displayOrder: Math.random(),
})
}
@ -387,14 +445,14 @@ export default {
//
let healthGuidances = this.diagnosises[ld]['healthGuidances']
if(healthGuidances){
if(!this.sumDoctorCheck.suggestionList[lfind]['healthGuidances']) this.sumDoctorCheck.suggestionList[lfind]['healthGuidances'] = []
if (healthGuidances) {
if (!this.sumDoctorCheck.suggestionList[lfind]['healthGuidances']) this.sumDoctorCheck.suggestionList[lfind]['healthGuidances'] = []
healthGuidances.forEach(e2 => {
let lf = arrayExistObj(this.sumDoctorCheck.suggestionList[lfind]['healthGuidances'],"suggestionContent",e2.suggestionContent)
if(lf == -1){
let lf = arrayExistObj(this.sumDoctorCheck.suggestionList[lfind]['healthGuidances'], "suggestionContent", e2.suggestionContent)
if (lf == -1) {
this.sumDoctorCheck.suggestionList[lfind]['healthGuidances'].push({
sumSuggestionHeaderId,
suggestionContent:e2.suggestionContent,
suggestionContent: e2.suggestionContent,
displayOrder: Math.random(),
})
}
@ -404,7 +462,7 @@ export default {
});
this.sumDoctorCheck.suggestionList[this.suggestionCurRow]['suggestionTitle'] = `${suggestionTitle}`
},
//
addSug(index, contentType) {
this.suggestionCurRow = index
@ -608,8 +666,7 @@ export default {
// immediate:true,
handler(newVal, oldVal) {
console.log(`watch 总检--综述建议 newVal: ${newVal}, oldVal: ${oldVal} patientRegisterId: ${this.dataTransOpts.tableS.patient_register.id}`);
this.summaryList(this.dataTransOpts.tableS.patient_register.id)
this.suggestionList(this.dataTransOpts.tableS.patient_register.id)
this.getHaveSumData(this.dataTransOpts.tableS.patient_register.id)
}
},

2
src/store/index.js

@ -424,7 +424,7 @@ export default new Vuex.Store({
},
sumPREditInit(state) {
state.sumDoctorCheck.sumPREdit = {
state.dataTransOpts.tableS.patient_register = {
id: '', //体检登记ID
completeFlag: '', //完成状态
summaryDoctor: '', //总检医生

28
src/utlis/proFunc.js

@ -350,34 +350,6 @@ const setData = (obj, item, v) => {
}
exports.setData = setData;
// 总检界面 按钮 可用控制
const sumBtnDisabled = (btnFlagName, patientRegister) => {
let ret = false
//' 请选择体检人员'
if (!patientRegister.id) return true
// '人员已锁定,不可执行此操作'
if (!patientRegister.isLock) return true
switch (btnFlagName) {
case 'save':
if (patientRegister.completeFlag == '3') ret = true
break;
case 'edit':
case 'del':
case 'audit':
if (patientRegister.completeFlag != '3' || patientRegister.isAudit == 'Y') ret = true
break;
case 'unAudit':
case 'report':
if (patientRegister.completeFlag != '3' || patientRegister.isAudit == 'N') ret = true
break;
default:
break;
}
console.log('sumBtnDisabled btnFlagName, patientRegister,ret',btnFlagName, patientRegister,ret)
return ret
}
exports.sumBtnDisabled = sumBtnDisabled;

15
src/views/doctorCheck/sumDoctorCheck.vue

@ -15,12 +15,12 @@
<div style="display: flex;">
<!-- 综述建议 -->
<div :style="'width:' + (window.pageWidth - 110 - 15) + 'px;'">
<SumSug :patientRegisterId="sumDoctorCheck.sumPREdit.id"
<SumSug :patientRegisterId="dataTransOpts.tableS.patient_register.id"
:curGetFocusSuggestionId="curGetFocusSuggestionId" />
</div>
<!-- 诊断 width:200px; -->
<div v-show="false" style="width:200px;">
<SumDiagnosis :patientRegisterId="sumDoctorCheck.sumPREdit.id" />
<SumDiagnosis :patientRegisterId="dataTransOpts.tableS.patient_register.id" />
</div>
</div>
<div>
@ -28,22 +28,22 @@
<SumPREdit />
<!-- 检查情况 -->
<div style="margin-top: -6px;">
<SumAsbItemStatus :patientRegisterId="sumDoctorCheck.sumPREdit.id" />
<SumAsbItemStatus :patientRegisterId="dataTransOpts.tableS.patient_register.id" />
</div>
</div>
</el-tab-pane>
<el-tab-pane label="明细结果" name="2">
<CheckDetails :patientRegisterId="sumDoctorCheck.sumPREdit.id" />
<CheckDetails :patientRegisterId="dataTransOpts.tableS.patient_register.id" />
</el-tab-pane>
<el-tab-pane label="危急值" name="3"> </el-tab-pane>
<el-tab-pane label="项目对比" name="4">
<SumItemsType :patientId="sumDoctorCheck.sumPREdit.patientId" />
<SumItemsType :patientId="dataTransOpts.tableS.patient_register.patientId" />
</el-tab-pane>
<el-tab-pane label="横向对比" name="5">
<SumItems :patientId="sumDoctorCheck.sumPREdit.patientId" />
<SumItems :patientId="dataTransOpts.tableS.patient_register.patientId" />
</el-tab-pane>
<el-tab-pane label="历次综述" name="6">
<SumHistory :patientId="sumDoctorCheck.sumPREdit.patientId" />
<SumHistory :patientId="dataTransOpts.tableS.patient_register.patientId" />
</el-tab-pane>
</el-tabs>
</div>
@ -101,6 +101,7 @@ export default {
...mapState([
"window",
"dict",
"dataTransOpts",
"patientRegister",
"customerOrg",
"sumDoctorCheck",

Loading…
Cancel
Save