From 937396645fb21a1bc702c8e97a0b38564a52ea4a Mon Sep 17 00:00:00 2001 From: liulixin Date: Wed, 31 Jan 2024 13:40:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=86=E9=83=A8=E9=97=A8check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../keyprojects/outsourced/components/edit.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/views/keyprojects/outsourced/components/edit.vue b/src/views/keyprojects/outsourced/components/edit.vue index 713264b..61e0ce7 100644 --- a/src/views/keyprojects/outsourced/components/edit.vue +++ b/src/views/keyprojects/outsourced/components/edit.vue @@ -797,6 +797,21 @@ export default { // 保存 confirm() { for (let i = 0; i < this.inspectorList.length; i++) { + requestFN( + '/outsourced/checkDepartment', + { + departmentId: this.form.JURISDICTION_UNIT + } + ).then((data) => { + if (data.data.errInfo === 'fail') { + this.$message({ + message: '勿选其他公司部门!', + type: 'error' + }) + } + resolve(true) + }).catch((e) => { + }); if (this.inspectorList[i].INSPECTION_USER_ID == '') { this.$message.warning('第' + (i + 1) + '行必须添加处罚人') return