|
|
|
@ -16,13 +16,13 @@ |
|
|
|
<el-button type="primary" class="btnClass" @click="delItem">删除项目</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" class="btnClass" >历次结果</el-button> |
|
|
|
<el-button type="primary" class="btnClass">历次结果</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" class="btnClass" >体检报告</el-button> |
|
|
|
<el-button type="primary" class="btnClass">体检报告</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" class="btnClass" >生成小结</el-button> |
|
|
|
<el-button type="primary" class="btnClass">生成小结</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" class="btnClass" @click="toSumDoctorCheck">总检</el-button> |
|
|
|
@ -34,14 +34,14 @@ |
|
|
|
<el-button type="primary" class="btnClass" @click="unAudit">取消审核</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" class="btnClass" >排队</el-button> |
|
|
|
<el-button type="primary" class="btnClass">排队</el-button> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="primary" class="btnClass" @click="addSummary">新增小结</el-button> |
|
|
|
</div> |
|
|
|
<!-- 人员档案列表 --> |
|
|
|
<el-dialog title="人员档案列表" :visible.sync="doctorCheck.doctorCheckDialogVisible" width="1000px" > |
|
|
|
<PatientRegisterList win="doctorCheck"/> |
|
|
|
<el-dialog title="人员档案列表" :visible.sync="doctorCheck.doctorCheckDialogVisible" width="1000px"> |
|
|
|
<PatientRegisterList win="doctorCheck" /> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
@ -76,40 +76,40 @@ export default { |
|
|
|
methods: { |
|
|
|
...mapActions(["getCustomerOrgGroup"]), |
|
|
|
|
|
|
|
prList(){ |
|
|
|
console.log('this.doctorCheck.doctorCheckDialogVisible',this.doctorCheck.doctorCheckDialogVisible) |
|
|
|
prList() { |
|
|
|
console.log('this.doctorCheck.doctorCheckDialogVisible', this.doctorCheck.doctorCheckDialogVisible) |
|
|
|
this.doctorCheck.doctorCheckDialogVisible = true |
|
|
|
console.log('this.doctorCheck.doctorCheckDialogVisible2',this.doctorCheck.doctorCheckDialogVisible) |
|
|
|
console.log('this.doctorCheck.doctorCheckDialogVisible2', this.doctorCheck.doctorCheckDialogVisible) |
|
|
|
}, |
|
|
|
|
|
|
|
//操作判断 |
|
|
|
optGrant(optType){ |
|
|
|
optGrant(optType) { |
|
|
|
let ret = '' |
|
|
|
if (!this.doctorCheck.RegisterCheckEdit.id) return '请选择组合项目' |
|
|
|
if (this.doctorCheck.RegisterCheckEdit.isLock == 'Y') return '组合项目已锁定,不可执行此操作' |
|
|
|
if (this.doctorCheck.RegisterCheckEdit.completeFlag == '2') return '组合项目已弃检,不可执行此操作' |
|
|
|
if(optType == 'save'){ |
|
|
|
if (optType == 'save') { |
|
|
|
if (!this.doctorCheck.RegisterCheckEdit.checkDoctorId) return "请选择检查医生" |
|
|
|
if (this.doctorCheck.RegisterCheckEdit.completeFlag == '1') return "该项目项目已保存,不可再执行此操作,如需操作请点【修改结果】" |
|
|
|
if (this.doctorCheck.RegisterCheckEdit.isAudit == 'Y') return '组合项目已审核,请先取消审核,方可执行此操作!' |
|
|
|
} |
|
|
|
if(optType == 'edit'){ |
|
|
|
if (optType == 'edit') { |
|
|
|
if (this.doctorCheck.RegisterCheckEdit.completeFlag == '0') return "该检查项目尚未保存,无需执行此操作" |
|
|
|
if (this.doctorCheck.RegisterCheckEdit.isAudit == 'Y') return '组合项目已审核,请先取消审核,方可执行此操作!' |
|
|
|
} |
|
|
|
if(optType == 'del'){ |
|
|
|
if (optType == 'del') { |
|
|
|
if (this.doctorCheck.RegisterCheckEdit.completeFlag == '0') return "该检查项目尚未保存,无需执行此操作" |
|
|
|
if (this.doctorCheck.RegisterCheckEdit.isAudit == 'Y') return '组合项目已审核,请先取消审核,方可执行此操作!' |
|
|
|
} |
|
|
|
if(optType == 'audit'){ |
|
|
|
if (optType == 'audit') { |
|
|
|
if (this.doctorCheck.RegisterCheckEdit.completeFlag == '0') return "该检查项目尚未保存,无需执行此操作" |
|
|
|
if (this.doctorCheck.RegisterCheckEdit.isAudit == 'Y') return "该检查项目已审核,无需再执行此操作" |
|
|
|
} |
|
|
|
if(optType == 'unAudit'){ |
|
|
|
if (optType == 'unAudit') { |
|
|
|
if (this.doctorCheck.RegisterCheckEdit.completeFlag == '0') return "该检查项目尚未保存,无需执行此操作" |
|
|
|
if (this.doctorCheck.RegisterCheckEdit.isAudit == 'N') return "该检查项目尚未审核,无需执行此操作" |
|
|
|
} |
|
|
|
if(optType == 'delItem'){ |
|
|
|
if (optType == 'delItem') { |
|
|
|
if (this.doctorCheck.RegisterCheckEdit.completeFlag == '1') return "该项目项目已保存,不可再执行此操作,如需操作请点【修改结果】" |
|
|
|
if (this.doctorCheck.RegisterCheckEdit.isAudit == 'Y') return "该检查项目已审核,请先取消审核" |
|
|
|
} |
|
|
|
@ -120,7 +120,7 @@ export default { |
|
|
|
//保存数据 |
|
|
|
save() { |
|
|
|
let ret = this.optGrant('save') |
|
|
|
if(ret){ |
|
|
|
if (ret) { |
|
|
|
alert(ret) |
|
|
|
return |
|
|
|
} |
|
|
|
@ -139,9 +139,9 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//修改结果 |
|
|
|
edit(){ |
|
|
|
edit() { |
|
|
|
let ret = this.optGrant('edit') |
|
|
|
if(ret){ |
|
|
|
if (ret) { |
|
|
|
alert(ret) |
|
|
|
return |
|
|
|
} |
|
|
|
@ -149,41 +149,39 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//删除结果 |
|
|
|
del(){ |
|
|
|
del() { |
|
|
|
let ret = this.optGrant('del') |
|
|
|
if(ret){ |
|
|
|
if (ret) { |
|
|
|
alert(ret) |
|
|
|
return |
|
|
|
} |
|
|
|
console.log(`/api/app/registercheck/updatecomplete?RegisterCheckId=${this.doctorCheck.RegisterCheckEdit.id}&CompleteFlag=0`) |
|
|
|
postapi(`/api/app/registercheck/updatecomplete?RegisterCheckId=${this.doctorCheck.RegisterCheckEdit.id}&CompleteFlag=0`) |
|
|
|
|
|
|
|
postapi('/api/app/registercheck/updatecompletemany', [{ registerCheckId: this.doctorCheck.RegisterCheckEdit.id, completeFlag: '0' }]) |
|
|
|
.then((res) => { |
|
|
|
console.log("del", res.data); |
|
|
|
if (res.code != -1) { |
|
|
|
this.doctorCheck.RegisterCheckEdit.completeFlag = '0'; |
|
|
|
this.$message.success("操作成功!"); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
this.$message({ type: "error", message: `组合项目删除失败,原因:${err}` }); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
//删除明细项目 |
|
|
|
delItem(){ |
|
|
|
delItem() { |
|
|
|
let ret = this.optGrant('delItem') |
|
|
|
if(ret){ |
|
|
|
if (ret) { |
|
|
|
alert(ret) |
|
|
|
return |
|
|
|
} |
|
|
|
let lfind = arrayExistObj(this.doctorCheck.CheckItemList,'itemId',this.doctorCheck.checkItem.itemId) |
|
|
|
if(lfind == -1) return |
|
|
|
let lfind = arrayExistObj(this.doctorCheck.CheckItemList, 'itemId', this.doctorCheck.checkItem.itemId) |
|
|
|
if (lfind == -1) return |
|
|
|
|
|
|
|
console.log(`/api/app/registercheckitem/deleteregistercheckitem?RegisterCheckId=${this.doctorCheck.checkItem.registerCheckId}&ItemId=${this.doctorCheck.checkItem.itemId}`) |
|
|
|
postapi(`/api/app/registercheckitem/deleteregistercheckitem?RegisterCheckId=${this.doctorCheck.checkItem.registerCheckId}&ItemId=${this.doctorCheck.checkItem.itemId}`) |
|
|
|
.then((res) => { |
|
|
|
console.log("delItem", res.data); |
|
|
|
if (res.code != -1) { |
|
|
|
this.doctorCheck.CheckItemList.splice(lfind,1); |
|
|
|
this.doctorCheck.CheckItemList.splice(lfind, 1); |
|
|
|
this.doctorCheck.checkItem.itemId = '' |
|
|
|
} |
|
|
|
}) |
|
|
|
@ -193,20 +191,20 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//审核 |
|
|
|
audit(){ |
|
|
|
audit() { |
|
|
|
let ret = this.optGrant('audit') |
|
|
|
if(ret){ |
|
|
|
if (ret) { |
|
|
|
alert(ret) |
|
|
|
return |
|
|
|
} |
|
|
|
let body ={ |
|
|
|
let body = { |
|
|
|
registerCheckId: this.doctorCheck.RegisterCheckEdit.id, |
|
|
|
//auditorUserId: "3fa85f64-5717-4562-b3fc-2c963f66afa6", |
|
|
|
//auditTime: "string" 不传时,取当前时间 |
|
|
|
} |
|
|
|
|
|
|
|
console.log(`/api/app/registercheck/updateauditordoctor`,body) |
|
|
|
postapi(`/api/app/registercheck/updateauditordoctor`,body) |
|
|
|
console.log(`/api/app/registercheck/updateauditordoctor`, body) |
|
|
|
postapi(`/api/app/registercheck/updateauditordoctor`, body) |
|
|
|
.then((res) => { |
|
|
|
console.log("audit", res.data); |
|
|
|
if (res.code != -1) { |
|
|
|
@ -220,9 +218,9 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//取消审核 |
|
|
|
unAudit(){ |
|
|
|
unAudit() { |
|
|
|
let ret = this.optGrant('unAudit') |
|
|
|
if(ret){ |
|
|
|
if (ret) { |
|
|
|
alert(ret) |
|
|
|
return |
|
|
|
} |
|
|
|
@ -242,7 +240,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//总检 |
|
|
|
toSumDoctorCheck(){ |
|
|
|
toSumDoctorCheck() { |
|
|
|
this.$router.push({ path: "/sumDoctorCheck" }); |
|
|
|
}, |
|
|
|
|
|
|
|
@ -341,7 +339,7 @@ export default { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
addSummary(){ |
|
|
|
addSummary() { |
|
|
|
if (!this.doctorCheck.RegisterCheckEdit.id) { |
|
|
|
alert("请选择检查项目") |
|
|
|
return |
|
|
|
@ -380,7 +378,8 @@ export default { |
|
|
|
margin-top: 5px; |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
.btnClass{ |
|
|
|
width:110px; |
|
|
|
|
|
|
|
.btnClass { |
|
|
|
width: 110px; |
|
|
|
} |
|
|
|
</style> |