From 5e1ff20323de6a0abee426e7e65e2ae75fe892f4 Mon Sep 17 00:00:00 2001
From: pengjun <158915633@qq.com>
Date: Tue, 24 Oct 2023 12:08:06 +0800
Subject: [PATCH] seo group
---
.../customerOrg/customerOrgGroupAsbitem.vue | 49 ++++++++++++++-----
src/views/customerOrg/customerOrgGroup.vue | 24 ++++++++-
2 files changed, 59 insertions(+), 14 deletions(-)
diff --git a/src/components/customerOrg/customerOrgGroupAsbitem.vue b/src/components/customerOrg/customerOrgGroupAsbitem.vue
index 76fec1f..1b8734b 100644
--- a/src/components/customerOrg/customerOrgGroupAsbitem.vue
+++ b/src/components/customerOrg/customerOrgGroupAsbitem.vue
@@ -51,8 +51,9 @@
快速选择
@@ -74,7 +75,7 @@
prop="displayName"
>
-
+
{
@@ -400,8 +401,8 @@ export default {
},
//快速选择组合项目时,调整可按拼间简码及简称查找
- remoteMethod(keyWords) {
- //console.log('remoteMethod',this.dict.asbItemQuick)
+ filterMethod(keyWords) {
+ //console.log('filterMethod',this.dict.asbItemQuick)
if (keyWords) {
this.quickAsb = [];
this.dict.asbItemQuick.forEach(item => {
@@ -412,19 +413,23 @@ export default {
}
});
} else {
- this.quickAsb = [...this.dict.asbItemQuick];
+ this.quickAsb = deepCopy(this.dict.asbItemQuick);
}
},
// 添加组合项目
///api/app/register-asbitem/many/3fa85f64-5717-4562-b3fc-2c963f66afa6'
async addAbs(asbItemChoosed,oprType) {
- console.log('this.customerOrgGroup',this.customerOrgGroup)
- console.log('asbItemChoosed', asbItemChoosed)
+ // console.log('this.customerOrgGroup',this.customerOrgGroup)
+ // console.log('asbItemChoosed', asbItemChoosed)
if(!this.customerOrgGroup.id){
this.$message.warning("请先选中单位分组")
return
}
+ if(this.customerOrgGroup.isComplete && this.customerOrgGroup.isComplete.toUpperCase() == 'Y'){
+ this.$message.warning("体检次数已完成,不允许操作")
+ return
+ }
let message = []
let checked = true
let lfind = -1
@@ -582,9 +587,16 @@ export default {
//删除 人员已选中的组合项目
///api/app/register-asbitem/many?RegisterAsbitemIds=3fa85f64-5717-4562-b3fc-2c963f66afa6
delAbs(absForDel,oprType) {
- let body = {}
- let registerAsbitemIds = []
- let chargeComplete = ''
+ if(!this.customerOrgGroup.id){
+ this.$message.warning("请先选中单位分组")
+ return
+ }
+ if(this.customerOrgGroup.isComplete && this.customerOrgGroup.isComplete.toUpperCase() == 'Y'){
+ this.$message.warning("体检次数已完成,不允许操作")
+ return
+ }
+
+
let lfind = -1
//勾选时不需要此操作 start
@@ -745,9 +757,14 @@ export default {
//复制分组
btnCopyGroup(){
+ console.log('this.customerOrgGroup',this.customerOrgGroup)
if(!this.customerOrgGroup.id || !this.customerOrgGroup.customerOrgId){
this.$message.warning("请先选中单位分组")
return
+ }
+ if(this.customerOrgGroup.isComplete && this.customerOrgGroup.isComplete.toUpperCase() == 'Y'){
+ this.$message.warning("体检次数已完成,不允许操作")
+ return
}
getapi(
@@ -803,6 +820,10 @@ export default {
if(!this.customerOrgGroup.id){
this.$message.warning("请先选中单位分组")
return
+ }
+ if(this.customerOrgGroup.isComplete && this.customerOrgGroup.isComplete.toUpperCase() == 'Y'){
+ this.$message.warning("体检次数已完成,不允许操作")
+ return
}
this.medicalPackageVisble = true
},
@@ -845,6 +866,10 @@ export default {
if(!this.customerOrgGroup.id){
this.$message.warning("请先选中单位分组")
return
+ }
+ if(this.customerOrgGroup.isComplete && this.customerOrgGroup.isComplete.toUpperCase() == 'Y'){
+ this.$message.warning("体检次数已完成,不允许操作")
+ return
}
let body = {
customerOrgGroupId:this.customerOrgGroup.id,
diff --git a/src/views/customerOrg/customerOrgGroup.vue b/src/views/customerOrg/customerOrgGroup.vue
index e64e085..31854f9 100644
--- a/src/views/customerOrg/customerOrgGroup.vue
+++ b/src/views/customerOrg/customerOrgGroup.vue
@@ -263,7 +263,8 @@ export default {
isDrag: false,
form: {
//体检单位分组
- customerOrgId:'', //复制分组时用到
+ customerOrgId:'', //复制分组时用到(预留查历次分组)
+ isComplete:'N', //体检次数是否完成,如完成不允许调整分组项目
id: "",
customerOrgRegisterId: null, //所属体检次数
displayName: "",
@@ -495,7 +496,8 @@ export default {
//点击分组
rowClick(row) {
- objCopy(row, this.form);
+ objCopy(row, this.form);
+ this.form.isComplete = this.customerOrgRegister.isComplete
},
//新增弹框
@@ -504,6 +506,11 @@ export default {
this.$message.warning("请选择体检次数");
return;
}
+ if(this.customerOrgRegister.isComplete.toUpperCase() == 'Y'){
+ this.$message.warning("该单位体检次数已完成,不允许新增分组");
+ return;
+ }
+
if (this.customerOrgRegister.isComplete.toUpperCase() == "Y") {
this.$message.warning("该单位的该次体检次数已完成,不能再添加分组!");
return;
@@ -517,6 +524,14 @@ export default {
//编辑弹框
btnEdit() {
+ if (!this.form.id) {
+ this.$message.warning("请选择需要操作的数据");
+ return;
+ }
+ if(this.customerOrgRegister.isComplete.toUpperCase() == 'Y'){
+ this.$message.warning("该单位体检次数已完成,不允许编辑分组");
+ return;
+ }
this.dialogVisible = true;
},
@@ -526,6 +541,10 @@ export default {
this.$message.warning("请选择需要操作的数据");
return;
}
+ if(this.customerOrgRegister.isComplete.toUpperCase() == 'Y'){
+ this.$message.warning("该单位体检次数已完成,不允许删除分组");
+ return;
+ }
this.$confirm("此操作将永久删除该记录, 是否继续?", "提示", {
confirmButtonText: "是",
@@ -570,6 +589,7 @@ export default {
let body = deepCopy(this.form);
delete body.id;
delete body.customerOrgId;
+ delete body.isComplete;
if (this.form.id) {
//编辑