diff --git a/src/components/customerOrg/customerOrgEdit.vue b/src/components/customerOrg/customerOrgEdit.vue index bb8c097..c7b6bd6 100644 --- a/src/components/customerOrg/customerOrgEdit.vue +++ b/src/components/customerOrg/customerOrgEdit.vue @@ -467,6 +467,11 @@ export default { //新增弹框 async add(formName, child) { await this.$refs[formName].resetFields(); + //console.log('this.peisid',this.peisid) + if(!this.peisid || this.peisid == 'null'){ + this.$message.warning("该用户未选归属体检中心,不能执行此操作!"); + return + } if (child) { if (!this.customerOrg.customerOrgId) { diff --git a/src/components/patientRegister/PatientRegisterList.vue b/src/components/patientRegister/PatientRegisterList.vue index b5e9bbc..3593929 100644 --- a/src/components/patientRegister/PatientRegisterList.vue +++ b/src/components/patientRegister/PatientRegisterList.vue @@ -475,6 +475,7 @@ export default { }, data() { return { + peisid:null, startPoint: -1, // 多选起点 -1 表示选择 endPoint: -1, // 多选终点 -1 表示选择 @@ -555,6 +556,9 @@ export default { //挂载完成 mounted() { this.quickAsb = this.dict.asbItemAll; + + this.peisid = window.sessionStorage.getItem('peisid'); + //初始化可以拖动的列 this.dropCol = this.columnDrop(this.dropCol); }, @@ -778,7 +782,12 @@ export default { }, //体检次数 相关操作 - add() { + add() { + if(!this.peisid || this.peisid == 'null'){ + this.$message.warning("该用户未选归属体检中心,不能执行此操作!"); + return + } + let customerOrgId = this.patientRegister.query.customerOrgId; if (!customerOrgId) { alert("请选择单位或个人");