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