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