pengjun 2 years ago
parent
commit
677f3fabf3
  1. 36
      src/components/doctorCheck/ButtonList.vue
  2. 2
      src/components/doctorCheck/PatientRegisterList.vue
  3. 4
      src/components/patientRegister/PatientRegisterRefuseList.vue
  4. 2
      src/components/sumDoctorCheck/ButtonList.vue
  5. 9
      src/views/doctorCheck/doctorCheck.vue

36
src/components/doctorCheck/ButtonList.vue

@ -40,6 +40,10 @@
<el-button type="primary" class="commonbutton" @click="refuseItem" style="font-size:11px;"
:disabled="doctorBtnDisabled('refuseItem')">放弃明细项目检查</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs, '放弃项目检查')" class="divBtnClass">
<el-button type="primary" class="commonbutton" @click="refuse"
:disabled="doctorBtnDisabled('refuse')">放弃项目检查</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs, '删除明细项目')" class="divBtnClass">
<el-button type="primary" class="deleteButton" @click="delItem"
:disabled="doctorBtnDisabled('delItem')">删除明细项目</el-button>
@ -461,6 +465,32 @@ export default {
},
//
refuse() {
if (!this.doctorCheck.RegisterCheckEdit.id) {
this.$message.warning({ showClose: true, message: '请选择要操作的项目' })
return
}
// [
// {
// "registerCheckId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
// "completeFlag": "0"
// }
// ]
postapi(`/api/app/registercheck/updatecompletemany`, [{registerCheckId:this.doctorCheck.RegisterCheckEdit.id,completeFlag:'2'}])
.then((res) => {
if (res.code > -1) {
this.doctorCheck.RegisterCheckEdit.completeFlag = '2'
let lfind = arrayExistObj(this.doctorCheck.RegisterCheckList,'id',this.doctorCheck.RegisterCheckEdit.id)
if(lfind > -1) this.doctorCheck.RegisterCheckList[lfind].completeFlag = '2'
}
})
;
},
//
delItem() {
let ret = this.optGrant('delItem')
@ -611,8 +641,10 @@ export default {
},
};
</script>
<style scoped>@import '../../assets/css/global_button.css';
<style scoped>
@import '../../assets/css/global_button.css';
.divBtnClass {
margin-top: 5px;
}</style>
}
</style>

2
src/components/doctorCheck/PatientRegisterList.vue

@ -317,7 +317,7 @@ export default {
this.local.completeFlag = deepCopy(this.dict.completeFlag)
this.local.completeFlag.splice(0, 1) //
this.local.completeFlag.splice(2, 0, { id: '4', displayName: '全部已检(未总检)' }) //
this.local.completeFlag.splice(2, 0, { id: '5', displayName: '全部已检(未总检)' }) //
},

4
src/components/patientRegister/PatientRegisterRefuseList.vue

@ -300,9 +300,7 @@ export default {
this.registerCheckList(this.quick.id);
}
})
.catch(() => {
this.$message.info({ showClose: true, message: "已取消删除" });
});
;
},
//

2
src/components/sumDoctorCheck/ButtonList.vue

@ -154,6 +154,8 @@ export default {
if (patientRegister.completeFlag && patientRegister.completeFlag == '3' && patientRegister.isAudit && patientRegister.isAudit == 'Y') ret = false
break;
case 'report':
ret = false
break;
case 'intervene':
if (patientRegister.completeFlag && patientRegister.completeFlag == '3') ret = false
break;

9
src/views/doctorCheck/doctorCheck.vue

@ -267,14 +267,16 @@ export default {
let ret = ''
if (!this.doctorCheck.RegisterCheckEdit.id) 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 (!this.doctorCheck.RegisterCheckEdit.checkDoctorId) return ""
if (this.doctorCheck.RegisterCheckEdit.completeFlag == '2') return "该项目项目已弃检,不可再执行此操作"
if (this.doctorCheck.RegisterCheckEdit.completeFlag == '1') return "该项目项目已保存,不可再执行此操作,如需操作请点【修改结果】"
if (this.doctorCheck.RegisterCheckEdit.isAudit == 'Y') return '组合项目已审核,请先取消审核,方可执行此操作!'
}
if (optType == 'edit') {
if (this.doctorCheck.RegisterCheckEdit.completeFlag == '0') return "该检查项目尚未保存,无需执行此操作"
if (this.doctorCheck.RegisterCheckEdit.completeFlag == '2') return "该项目项目已弃检,不可再执行此操作"
if (this.doctorCheck.RegisterCheckEdit.isAudit == 'Y') return '组合项目已审核,请先取消审核,方可执行此操作!'
}
if (optType == 'del') {
@ -320,9 +322,10 @@ export default {
switch (btnFlagName) {
case 'btnEdit': //
case 'btnDel': //
if (RegisterCheckEdit.completeFlag && RegisterCheckEdit.completeFlag == '1') ret = false
if (RegisterCheckEdit.completeFlag && (RegisterCheckEdit.completeFlag == '1' || RegisterCheckEdit.completeFlag == '2')) ret = false
break;
case 'refuseItem': //
case 'refuse': //
case 'refuseItem': //
case 'delItem': //
case 'delItem': //
case 'btnMakeDiagnosis': //

Loading…
Cancel
Save