但部门check

dev-2024年1月8日
liulixin 2024-01-31 13:40:51 +08:00
parent b276638aa8
commit 937396645f
1 changed files with 15 additions and 0 deletions

View File

@ -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