From 677f3fabf3999df6e872ffa5e2d2dbdc6442d11a Mon Sep 17 00:00:00 2001
From: pengjun <158915633@qq.com>
Date: Sun, 12 May 2024 22:58:24 +0800
Subject: [PATCH] seo
---
src/components/doctorCheck/ButtonList.vue | 80 +++++++++++++------
.../doctorCheck/PatientRegisterList.vue | 2 +-
.../PatientRegisterRefuseList.vue | 4 +-
src/components/sumDoctorCheck/ButtonList.vue | 6 +-
src/views/doctorCheck/doctorCheck.vue | 11 ++-
5 files changed, 69 insertions(+), 34 deletions(-)
diff --git a/src/components/doctorCheck/ButtonList.vue b/src/components/doctorCheck/ButtonList.vue
index 2d21758..7e6c0ca 100644
--- a/src/components/doctorCheck/ButtonList.vue
+++ b/src/components/doctorCheck/ButtonList.vue
@@ -40,6 +40,10 @@
放弃明细项目检查
+
+ 放弃项目检查
+
删除明细项目
@@ -295,7 +299,7 @@ export default {
//人员删除
btnDelPr() {
if (!this.dataTransOpts.tableS.patient_register.id) {
- this.$message.warning({ showClose: true, message: "未选中要删除的人员记录"})
+ this.$message.warning({ showClose: true, message: "未选中要删除的人员记录" })
return
}
let id = this.dataTransOpts.tableS.patient_register.id
@@ -329,7 +333,7 @@ export default {
//人员编辑
btnEditPr() {
if (!this.dataTransOpts.tableS.patient_register.id) {
- this.$message.warning({ showClose: true, message: "未选中要编辑的人员记录"})
+ this.$message.warning({ showClose: true, message: "未选中要编辑的人员记录" })
return
}
@@ -352,11 +356,11 @@ export default {
// 上(下)一人 step 1 表示下一人, -1 表示上一人
btnStep(step) {
if (!this.medicalStartDate) {
- this.$message.warning({ showClose: true, message: "请先设置体检日期"})
+ this.$message.warning({ showClose: true, message: "请先设置体检日期" })
return
}
if (this.medicalStartDateDatas.length == 0) {
- this.$message.warning({ showClose: true, message: "当前设置的体检日期,无体检人员信息"})
+ this.$message.warning({ showClose: true, message: "当前设置的体检日期,无体检人员信息" })
return
}
@@ -369,10 +373,10 @@ export default {
lfind = arrayExistObj(this.medicalStartDateDatas, 'id', patientRegisterId)
if (lfind > - 1) {
if (lstep < 0 && lfind == 0) {
- this.$message.warning({ showClose: true, message: "已是第一个人"})
+ this.$message.warning({ showClose: true, message: "已是第一个人" })
return
} else if (lstep > 0 && lfind == this.medicalStartDateDatas.length - 1) {
- this.$message.warning({ showClose: true, message: "已是最后一人"})
+ this.$message.warning({ showClose: true, message: "已是最后一人" })
return
}
lfind = Number(lfind) + Number(lstep)
@@ -405,7 +409,7 @@ export default {
btnEdit() {
let ret = this.optGrant('edit')
if (ret) {
- this.$message.warning({ showClose: true, message: ret})
+ this.$message.warning({ showClose: true, message: ret })
return
}
this.doctorCheck.RegisterCheckEdit.completeFlag = '0'
@@ -415,7 +419,7 @@ export default {
btnDel() {
let ret = this.optGrant('del')
if (ret) {
- this.$message.warning({ showClose: true, message: ret})
+ this.$message.warning({ showClose: true, message: ret })
return
}
@@ -438,22 +442,22 @@ export default {
refuseItem() {
let ret = this.optGrant('refuseItem')
if (ret) {
- this.$message.warning({ showClose: true, message: ret})
+ this.$message.warning({ showClose: true, message: ret })
return
}
// console.log('this.doctorCheck.checkItem',this.doctorCheck.checkItem)
if (!this.doctorCheck.checkItem) {
- this.$message.warning({ showClose: true, message: "请选择要操作的明细项目"})
+ this.$message.warning({ showClose: true, message: "请选择要操作的明细项目" })
return
}
if (!this.doctorCheck.checkItem.itemId) {
- this.$message.warning({ showClose: true, message: "请选择要操作的明细项目"})
+ this.$message.warning({ showClose: true, message: "请选择要操作的明细项目" })
return
}
let lfind = arrayExistObj(this.doctorCheck.checkItemList, 'itemId', this.doctorCheck.checkItem.itemId)
if (lfind == -1) {
- this.$message.warning({ showClose: true, message: "请选择要操作的明细项目"})
+ this.$message.warning({ showClose: true, message: "请选择要操作的明细项目" })
return
}
@@ -461,26 +465,52 @@ 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')
if (ret) {
- this.$message.warning({ showClose: true, message: ret})
+ this.$message.warning({ showClose: true, message: ret })
return
}
if (!this.doctorCheck.checkItem) {
- this.$message.warning({ showClose: true, message: "请选择要删除的明细项目"})
+ this.$message.warning({ showClose: true, message: "请选择要删除的明细项目" })
return
}
if (!this.doctorCheck.checkItem.itemId) {
- this.$message.warning({ showClose: true, message: "请选择要删除的明细项目"})
+ this.$message.warning({ showClose: true, message: "请选择要删除的明细项目" })
return
}
let lfind = arrayExistObj(this.doctorCheck.checkItemList, 'itemId', this.doctorCheck.checkItem.itemId)
if (lfind == -1) {
- this.$message.warning({ showClose: true, message: "请选择要删除的明细项目"})
+ this.$message.warning({ showClose: true, message: "请选择要删除的明细项目" })
return
}
@@ -497,7 +527,7 @@ export default {
}
}).catch((err) => {
if (err == "cancel") {
- this.$message.info({ showClose: true, message: "已取消"});
+ this.$message.info({ showClose: true, message: "已取消" });
} else {
this.$message.error({ showClose: true, message: `项目明细删除失败,原因:${err}` });
}
@@ -515,7 +545,7 @@ export default {
btnReport() {
if (!this.$peisAPI) {
- this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!"})
+ this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" })
return
}
///3a0c990e-5756-2dc0-19d5-69a617fe4048
@@ -523,8 +553,8 @@ export default {
let token = window.sessionStorage.getItem('token');
let user = window.sessionStorage.getItem('user');
let toOutShell = {
- isBuildImage:'N',
- IsUploadPdf:'N',
+ isBuildImage: 'N',
+ IsUploadPdf: 'N',
ReportCode, token,
preViewCanPrint: this.doctorCheck.prBase.isAudit, //this.dataTransOpts.tableS.patient_register.isAudit
Parameters: [
@@ -554,7 +584,7 @@ export default {
}
})
.catch(err => {
- this.$message.warning({ showClose: true, message: err});
+ this.$message.warning({ showClose: true, message: err });
});
},
@@ -562,7 +592,7 @@ export default {
//总检
toSumDoctorCheck() {
this.dataTransOpts.tableS.patient_register = Object.assign({}, this.doctorCheck.prBase)
- this.$router.push({ path: "/sumDoctorCheck", query: { patient_register: this.dataTransOpts.tableS.patient_register} });
+ this.$router.push({ path: "/sumDoctorCheck", query: { patient_register: this.dataTransOpts.tableS.patient_register } });
},
},
@@ -611,8 +641,10 @@ export default {
},
};
-
\ No newline at end of file
+}
+
\ No newline at end of file
diff --git a/src/components/doctorCheck/PatientRegisterList.vue b/src/components/doctorCheck/PatientRegisterList.vue
index 753d154..dcb9663 100644
--- a/src/components/doctorCheck/PatientRegisterList.vue
+++ b/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: '全部已检(未总检)' }) //插入
},
diff --git a/src/components/patientRegister/PatientRegisterRefuseList.vue b/src/components/patientRegister/PatientRegisterRefuseList.vue
index 3ec57b9..b6c049f 100644
--- a/src/components/patientRegister/PatientRegisterRefuseList.vue
+++ b/src/components/patientRegister/PatientRegisterRefuseList.vue
@@ -300,9 +300,7 @@ export default {
this.registerCheckList(this.quick.id);
}
})
- .catch(() => {
- this.$message.info({ showClose: true, message: "已取消删除" });
- });
+ ;
},
//弃检与恢复判断
diff --git a/src/components/sumDoctorCheck/ButtonList.vue b/src/components/sumDoctorCheck/ButtonList.vue
index d885a3a..1a33dc0 100644
--- a/src/components/sumDoctorCheck/ButtonList.vue
+++ b/src/components/sumDoctorCheck/ButtonList.vue
@@ -151,9 +151,11 @@ export default {
break;
case 'unAudit':
case 'reCheck':
- if (patientRegister.completeFlag && patientRegister.completeFlag == '3' && patientRegister.isAudit && patientRegister.isAudit == 'Y') ret = false
+ if (patientRegister.completeFlag && patientRegister.completeFlag == '3' && patientRegister.isAudit && patientRegister.isAudit == 'Y') ret = false
break;
- case 'report':
+ case 'report':
+ ret = false
+ break;
case 'intervene':
if (patientRegister.completeFlag && patientRegister.completeFlag == '3') ret = false
break;
diff --git a/src/views/doctorCheck/doctorCheck.vue b/src/views/doctorCheck/doctorCheck.vue
index 30ff6b3..90d5c86 100644
--- a/src/views/doctorCheck/doctorCheck.vue
+++ b/src/views/doctorCheck/doctorCheck.vue
@@ -267,18 +267,20 @@ 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') {
- if (this.doctorCheck.RegisterCheckEdit.completeFlag == '0') return "该检查项目尚未保存,无需执行此操作"
+ if (this.doctorCheck.RegisterCheckEdit.completeFlag == '0') return "该检查项目尚未保存,无需执行此操作"
if (this.doctorCheck.RegisterCheckEdit.isAudit == 'Y') return '组合项目已审核,请先取消审核,方可执行此操作!'
}
if (optType == 'audit') {
@@ -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': // 生成小结