|
|
|
|
@ -701,7 +701,12 @@
|
|
|
|
|
<el-row> |
|
|
|
|
<el-col> |
|
|
|
|
<el-form-item label="禁闭关联"> |
|
|
|
|
<el-select v-model="item.confinementId" filterable popper-class="widthClass" :filter-method="fileConfinement"> |
|
|
|
|
<el-select v-model="item.confinementId" |
|
|
|
|
filterable |
|
|
|
|
remote |
|
|
|
|
:remote-method="fileConfinement" |
|
|
|
|
popper-class="widthClass" |
|
|
|
|
> |
|
|
|
|
<template #header> |
|
|
|
|
<el-row> |
|
|
|
|
<el-col :span="2">姓名</el-col> |
|
|
|
|
@ -949,8 +954,9 @@
|
|
|
|
|
<el-form-item label="禁闭关联"> |
|
|
|
|
<el-select |
|
|
|
|
filterable |
|
|
|
|
:filter-method="fileConfinement" |
|
|
|
|
v-model="item.leadConfinementId" |
|
|
|
|
remote |
|
|
|
|
:remote-method="fileConfinement" |
|
|
|
|
v-model="item.leadConfinementId" |
|
|
|
|
popper-class="widthClass" > |
|
|
|
|
<template #header> |
|
|
|
|
<el-row> |
|
|
|
|
@ -1633,7 +1639,7 @@ const form = ref({
|
|
|
|
|
handlePolices: [{}], |
|
|
|
|
}); |
|
|
|
|
//禁闭信息数组 |
|
|
|
|
let confinementList = ref([]) |
|
|
|
|
|
|
|
|
|
let confinementOpens = ref([]) |
|
|
|
|
/** |
|
|
|
|
* 禁闭信息入参 |
|
|
|
|
@ -1643,43 +1649,45 @@ let confinementQuery = ref({
|
|
|
|
|
size: 10000, |
|
|
|
|
departBranch: false |
|
|
|
|
}) |
|
|
|
|
/** |
|
|
|
|
* 获取禁闭信息 |
|
|
|
|
* */ |
|
|
|
|
const getConfinementData = async () => { |
|
|
|
|
const res = await getConfinementListAll(confinementQuery.value); |
|
|
|
|
confinementList.value = res.records |
|
|
|
|
confinementOpens.value=res.records |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 下拉搜索过滤数据(姓名,警号) |
|
|
|
|
* @param query 输入参数 |
|
|
|
|
* |
|
|
|
|
* */ |
|
|
|
|
const fileConfinement = (query)=>{ |
|
|
|
|
const fileConfinement = async (query)=>{ |
|
|
|
|
confinementQuery.value={ |
|
|
|
|
current: 1, |
|
|
|
|
size: 10000, |
|
|
|
|
departBranch: false |
|
|
|
|
} |
|
|
|
|
if(query){ |
|
|
|
|
confinementOpens.value = confinementList.value.filter(s => s.name.includes(query) || s.empNo.includes(query)) |
|
|
|
|
}else{ |
|
|
|
|
confinementOpens.value=confinementList.value |
|
|
|
|
confinementQuery.value.id = query |
|
|
|
|
confinementQuery.value.name = query |
|
|
|
|
confinementQuery.value.empNo = query |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const data =await getConfinementListAll(confinementQuery.value); |
|
|
|
|
confinementOpens.value = [...new Set(confinementOpens.value.concat(data.records))]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const problemIsTrue = computed(() => { |
|
|
|
|
return form.value.checkStatus !== InspectCase.FALSE; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getConfinementData(); |
|
|
|
|
|
|
|
|
|
getFormData(); |
|
|
|
|
|
|
|
|
|
watch(negative, () => { |
|
|
|
|
getFormData(); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
function getFormData() { |
|
|
|
|
async function getFormData() { |
|
|
|
|
form.value = { |
|
|
|
|
involveDepartId: negative.value.involveDepartId, |
|
|
|
|
caseNumber: negative.value.caseNumber, |
|
|
|
|
@ -1706,6 +1714,16 @@ function getFormData() {
|
|
|
|
|
visitingLeaderName: negative.value.visitingLeaderName, |
|
|
|
|
visitingLeaderEmpNo: negative.value.visitingLeaderEmpNo |
|
|
|
|
}; |
|
|
|
|
if(negative.value.blames){ |
|
|
|
|
negative.value.blames.forEach((item)=>{ |
|
|
|
|
fileConfinement(item.confinementId) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
if(negative.value.blameLeaders){ |
|
|
|
|
negative.value.blameLeaders.forEach((item)=>{ |
|
|
|
|
fileConfinement(item.leadConfinementId) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
if (negative.value.accountabilityTarget != undefined) { |
|
|
|
|
form.value.accountabilityTarget = negative.value.accountabilityTarget; |
|
|
|
|
return; |
|
|
|
|
@ -1714,6 +1732,7 @@ function getFormData() {
|
|
|
|
|
form.value.accountabilityTarget = AccountabilityTarget.PERSONAL; |
|
|
|
|
} |
|
|
|
|
console.log(form.value); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function handleAddBlame(type) { |
|
|
|
|
@ -1907,7 +1926,6 @@ function validateHandlePolices(rule, value, cb) {
|
|
|
|
|
const formRef = ref(null); |
|
|
|
|
|
|
|
|
|
async function validate() { |
|
|
|
|
debugger; |
|
|
|
|
// 解决核查办理 当涉及对象是涉及个人时,有一条涉及单位的数据,导致问题无法提交的问题。 |
|
|
|
|
if (form.value.accountabilityTarget === AccountabilityTarget.PERSONAL) { |
|
|
|
|
form.value.blames = form.value.blames.filter( |
|
|
|
|
|