From b4fc8856f2b8ca0b26442a7c0e6c023640150283 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Wed, 13 Dec 2023 12:04:32 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BC=81=E6=A0=87=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=8E=88=E6=9D=83=E9=83=A8=E9=97=A8=EF=BC=8C=E6=A0=87=E5=87=86?= =?UTF-8?q?=E7=AD=89=E7=BA=A7=E5=88=86=E7=B1=BB=E6=98=AF1,2=E7=BA=A7?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=EF=BC=8C=E6=8E=88=E6=9D=83=E9=83=A8?= =?UTF-8?q?=E9=97=A8=E6=8A=8A=E5=8E=9F=E6=9C=AC=E7=9A=84=E4=B8=BB=E8=B5=B7?= =?UTF-8?q?=E8=8D=89=E9=83=A8=E9=97=A8=E6=9B=BF=E6=8D=A2=E6=88=90=E6=96=B0?= =?UTF-8?q?=E7=9A=84=E4=B8=BB=E8=B5=B7=E8=8D=89=E9=83=A8=E9=97=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/customField/AddForm.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/customField/AddForm.vue b/src/components/customField/AddForm.vue index 39a92414..9ef90ed6 100644 --- a/src/components/customField/AddForm.vue +++ b/src/components/customField/AddForm.vue @@ -313,7 +313,8 @@ export default { standardGradeClassification: [], // 企标级别映射 innerDisabledField: [], // 内部不可编辑字段 departSelectRange: [], // 选择部门的选择范围,传了就只能从这些里面选,不传就都能选 - isEditSetData: false // 正在编辑回显数据 + isEditSetData: false, // 正在编辑回显数据 + oldMainDraftingUnit: '' // 上一次的主起草单位 } }, watch: { @@ -401,13 +402,15 @@ export default { if (this.formInline.grade_classification === StandardGradeClassify.ONE_LEVEL.value || this.formInline.grade_classification === StandardGradeClassify.TWO_LEVEL.value) { // 标准等级分类是1级或者2级需要,把主起草单位追加到授权部门 - const authDeptArr = (this.formInline.auth_dept || '').split(',') + let authDeptArr = (this.formInline.auth_dept || '').split(',') + authDeptArr = authDeptArr.filter(item => item !== this.oldMainDraftingUnit) authDeptArr.push(val) this.formInline.auth_dept = authDeptArr.join(',') } else if (this.formInline.grade_classification === StandardGradeClassify.THREE_LEVEL.value) { // 标准等级分类是3级,把授权部门替换成主起草单位 this.formInline.auth_dept = val } + this.oldMainDraftingUnit = val } }, // 企标是否试行改变,标准状态需要跟着变,试行周期必填校验也跟着变