|
|
|
@ -118,6 +118,9 @@ |
|
|
|
type="primary" link @click="showSupervise(row)" |
|
|
|
type="primary" link @click="showSupervise(row)" |
|
|
|
>督察情况 |
|
|
|
>督察情况 |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
|
|
|
|
<el-button type="primary" link @click="editTable(row)"> |
|
|
|
|
|
|
|
编辑 |
|
|
|
|
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
|
<el-button |
|
|
|
type="danger" |
|
|
|
type="danger" |
|
|
|
link |
|
|
|
link |
|
|
|
@ -143,8 +146,8 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!--任务发布--> |
|
|
|
<!--任务发布--> |
|
|
|
<el-dialog title="发布任务" v-model="show" width="80vw" top="5vh" |
|
|
|
<el-dialog title="发布任务" @close="addColse" v-model="show" width="80vw" top="5vh" |
|
|
|
style="margin-bottom: 0" |
|
|
|
style="margin-bottom: 0" v-loading="editLoading" |
|
|
|
> |
|
|
|
> |
|
|
|
<el-scrollbar max-height="76vh"> |
|
|
|
<el-scrollbar max-height="76vh"> |
|
|
|
<el-form |
|
|
|
<el-form |
|
|
|
@ -1148,7 +1151,7 @@ |
|
|
|
width="140" |
|
|
|
width="140" |
|
|
|
show-overflow-tooltip |
|
|
|
show-overflow-tooltip |
|
|
|
/> |
|
|
|
/> |
|
|
|
<el-table-column label="具体情况" prop="detail"/> |
|
|
|
<el-table-column label="具体情况" prop="thingDesc"/> |
|
|
|
<el-table-column |
|
|
|
<el-table-column |
|
|
|
label="创建时间" |
|
|
|
label="创建时间" |
|
|
|
prop="createTime" |
|
|
|
prop="createTime" |
|
|
|
@ -1166,7 +1169,7 @@ |
|
|
|
type="primary" |
|
|
|
type="primary" |
|
|
|
link |
|
|
|
link |
|
|
|
v-if="row.hasProblem && row.distributionState == '0'" |
|
|
|
v-if="row.hasProblem && row.distributionState == '0'" |
|
|
|
@click="issueMatterFun(row,'rcdc')" |
|
|
|
@click="issueMatterFun(row,'inspection')" |
|
|
|
> |
|
|
|
> |
|
|
|
下发 |
|
|
|
下发 |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
@ -1198,7 +1201,7 @@ |
|
|
|
<el-col :span="6"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="具体情况"> |
|
|
|
<el-form-item label="具体情况"> |
|
|
|
<el-input |
|
|
|
<el-input |
|
|
|
v-model="problemQuery.detail" |
|
|
|
v-model="selfPeopleQuery.detail" |
|
|
|
clearable |
|
|
|
clearable |
|
|
|
placeholder="请输入具体情况" |
|
|
|
placeholder="请输入具体情况" |
|
|
|
/> |
|
|
|
/> |
|
|
|
@ -1243,7 +1246,8 @@ |
|
|
|
width="140" |
|
|
|
width="140" |
|
|
|
show-overflow-tooltip |
|
|
|
show-overflow-tooltip |
|
|
|
/> |
|
|
|
/> |
|
|
|
<el-table-column label="具体情况" prop="detail"/> |
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="具体情况" prop="thingDesc"/> |
|
|
|
<el-table-column label="下发状态" > |
|
|
|
<el-table-column label="下发状态" > |
|
|
|
<template #default="{row}"> |
|
|
|
<template #default="{row}"> |
|
|
|
<el-tag type="info" v-if=" row.hasProblem && row.distributionState == '0' ">未下发</el-tag> |
|
|
|
<el-tag type="info" v-if=" row.hasProblem && row.distributionState == '0' ">未下发</el-tag> |
|
|
|
@ -1269,7 +1273,7 @@ |
|
|
|
type="primary" |
|
|
|
type="primary" |
|
|
|
link |
|
|
|
link |
|
|
|
v-if="row.hasProblem && row.distributionState == '0'" |
|
|
|
v-if="row.hasProblem && row.distributionState == '0'" |
|
|
|
@click="issueMatterFun(row,'sdzc')" |
|
|
|
@click="issueMatterFun(row,'selfexamination')" |
|
|
|
> |
|
|
|
> |
|
|
|
下发 |
|
|
|
下发 |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
@ -1408,7 +1412,7 @@ |
|
|
|
@click="handleShowPeople(row)" |
|
|
|
@click="handleShowPeople(row)" |
|
|
|
>详情 |
|
|
|
>详情 |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
<el-button v-if="row.drinkResult === '饮酒' " type="primary" link @click="issueMatterFun(row,'lxgddc')">下发</el-button> |
|
|
|
<el-button v-if="row.drinkResult === '饮酒' && (!row.distributionState || row.distributionState == '0')" type="primary" link @click="issueMatterFun(row,'testing_alcohol')">下发</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-table> |
|
|
|
@ -1505,7 +1509,12 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col col-12"> |
|
|
|
<div class="col col-12"> |
|
|
|
<label>涉及人员</label> |
|
|
|
<label>涉及人员</label> |
|
|
|
<span>{{ activeRowData.peoples }}</span> |
|
|
|
<span v-if="activeRowData.peoples"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-tag v-for="(item,index) in JSON.parse(activeRowData.peoples)" :key="index"> |
|
|
|
|
|
|
|
{{item.name}} |
|
|
|
|
|
|
|
</el-tag> |
|
|
|
|
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col col-24"> |
|
|
|
<div class="col col-24"> |
|
|
|
<label>问题类型</label> |
|
|
|
<label>问题类型</label> |
|
|
|
@ -1644,7 +1653,7 @@ |
|
|
|
<el-table-column label="督察情况" prop="supDesc"></el-table-column> |
|
|
|
<el-table-column label="督察情况" prop="supDesc"></el-table-column> |
|
|
|
<el-table-column label="操作"> |
|
|
|
<el-table-column label="操作"> |
|
|
|
<template #default="{row}"> |
|
|
|
<template #default="{row}"> |
|
|
|
<el-button v-if="['失控','无法确认'].includes(row.supStatus)" @click="issueMatterFun(row,'zdrydc')" type="primary" link>下发</el-button> |
|
|
|
<el-button v-if="row.supStatus != '在控'" @click="issueMatterFun(row,'risk_personal')" type="primary" link>下发</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-table> |
|
|
|
@ -1820,34 +1829,6 @@ |
|
|
|
</footer> |
|
|
|
</footer> |
|
|
|
</el-dialog> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
<el-dialog title="配置涉及单位" v-model="editDepartShow" width="500"> |
|
|
|
|
|
|
|
<el-form |
|
|
|
|
|
|
|
:label-width="120" |
|
|
|
|
|
|
|
:model="editDepartForm" |
|
|
|
|
|
|
|
ref="editDepartFormRef" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<el-form-item |
|
|
|
|
|
|
|
label="涉及单位" |
|
|
|
|
|
|
|
:rules="{ |
|
|
|
|
|
|
|
required: true, |
|
|
|
|
|
|
|
message: '请选择涉及单位', |
|
|
|
|
|
|
|
}" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<depart-tree-select |
|
|
|
|
|
|
|
v-model="editDepartForm.departId" |
|
|
|
|
|
|
|
@node-click=" |
|
|
|
|
|
|
|
(node) => (editDepartForm.name = node.shortName) |
|
|
|
|
|
|
|
" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</el-form> |
|
|
|
|
|
|
|
<footer class="flex end mt-40"> |
|
|
|
|
|
|
|
<el-button @click="editDepartShow = false">取消</el-button> |
|
|
|
|
|
|
|
<el-button type="primary" @click="handleUpdatDepartModelClue" |
|
|
|
|
|
|
|
>确认</el-button |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
</footer> |
|
|
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
@ -1886,7 +1867,8 @@ import {disabledDate} from "@/utils/util"; |
|
|
|
|
|
|
|
|
|
|
|
let cardContent = ref() |
|
|
|
let cardContent = ref() |
|
|
|
const catchStore = useCatchStore(); |
|
|
|
const catchStore = useCatchStore(); |
|
|
|
const dict = catchStore.getDicts(["supervisionType","policeType","suspectProblem", "approvalFlow","distributionFlow","personnelTypeArray", "inspectorType", "personType","businessType", "controlLevel", "controlType"]); |
|
|
|
const dict = catchStore.getDicts(["supervisionType","policeType","suspectProblem", "approvalFlow","distributionFlow","personnelTypeArray", "inspectorType", "personType","businessType", "controlLevel","distributionState", "controlType"]); |
|
|
|
|
|
|
|
|
|
|
|
const fileListData = ref([]); |
|
|
|
const fileListData = ref([]); |
|
|
|
const list = ref([]); |
|
|
|
const list = ref([]); |
|
|
|
|
|
|
|
|
|
|
|
@ -2005,6 +1987,10 @@ async function submit() { |
|
|
|
feedback.msgSuccess("发布成功"); |
|
|
|
feedback.msgSuccess("发布成功"); |
|
|
|
show.value = false; |
|
|
|
show.value = false; |
|
|
|
getList(); |
|
|
|
getList(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//关闭弹窗的回调函数(清空) |
|
|
|
|
|
|
|
const addColse =()=>{ |
|
|
|
form.value = { |
|
|
|
form.value = { |
|
|
|
files: [], |
|
|
|
files: [], |
|
|
|
supervisionType: '日常督察', |
|
|
|
supervisionType: '日常督察', |
|
|
|
@ -2051,6 +2037,51 @@ const activeRow = ref({ |
|
|
|
supRiskDtoList: [] |
|
|
|
supRiskDtoList: [] |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const editLoading = ref(false) |
|
|
|
|
|
|
|
const editTable =async (row)=>{ |
|
|
|
|
|
|
|
console.log('row',row.taskType) |
|
|
|
|
|
|
|
show.value = true; |
|
|
|
|
|
|
|
editLoading.value = true; |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
const res = await getTaskManagementDetail(row.id); |
|
|
|
|
|
|
|
console.log('res',res) |
|
|
|
|
|
|
|
form.value = res; |
|
|
|
|
|
|
|
if(res.files){ |
|
|
|
|
|
|
|
form.value.files = JSON.parse(res.files) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (res.samplingTarget == '自定义人员' && res.samplingIds) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getSamplingList() |
|
|
|
|
|
|
|
delete samplingQuery.value.ids |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (res.selfOrgs) { |
|
|
|
|
|
|
|
getDepartByIdsFun(res.selfOrgs) |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
slofOrgList.value = [] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
showRiskDataTable.value=true |
|
|
|
|
|
|
|
editLoading.value = false; |
|
|
|
|
|
|
|
} catch (e) { |
|
|
|
|
|
|
|
editLoading.value = false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
const tableRef =ref() |
|
|
|
|
|
|
|
function setCheck() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( form.value.samplingIds && form.value.samplingIds.length > 0){ |
|
|
|
|
|
|
|
let idList = form.value.samplingIds; |
|
|
|
|
|
|
|
samplingList.value.forEach(item => { |
|
|
|
|
|
|
|
if (form.value.samplingIds && idList.indexOf(item.id) >= 0) { |
|
|
|
|
|
|
|
nextTick(() => { |
|
|
|
|
|
|
|
tableRef.value.toggleRowSelection(item, true); |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 显示督察任务详情 |
|
|
|
* 显示督察任务详情 |
|
|
|
* */ |
|
|
|
* */ |
|
|
|
@ -2063,7 +2094,7 @@ async function handleShowDetail(row) { |
|
|
|
if(res.files){ |
|
|
|
if(res.files){ |
|
|
|
activeRow.value.files = JSON.parse(res.files) |
|
|
|
activeRow.value.files = JSON.parse(res.files) |
|
|
|
} |
|
|
|
} |
|
|
|
if (res.samplingTarget == '自定义人员') { |
|
|
|
if (res.samplingTarget == '自定义人员' && res.samplingIds) { |
|
|
|
samplingQuery.value.ids = res.samplingIds; |
|
|
|
samplingQuery.value.ids = res.samplingIds; |
|
|
|
getSamplingList() |
|
|
|
getSamplingList() |
|
|
|
delete samplingQuery.value.ids |
|
|
|
delete samplingQuery.value.ids |
|
|
|
@ -2209,7 +2240,7 @@ const handSupRiskCard = async (row)=>{ |
|
|
|
* 重点督察人员前端列表 |
|
|
|
* 重点督察人员前端列表 |
|
|
|
* */ |
|
|
|
* */ |
|
|
|
const getRiskDataTableSubmit = () => { |
|
|
|
const getRiskDataTableSubmit = () => { |
|
|
|
filterDataTable.value = form.value.supRiskDtoList.length > 0 ? form.value.supRiskDtoList : activeRow.value.supRiskDtoList |
|
|
|
filterDataTable.value = (form.value.supRiskDtoList && form.value.supRiskDtoList.length > 0) ? form.value.supRiskDtoList : activeRow.value.supRiskDtoList |
|
|
|
//管控级别 |
|
|
|
//管控级别 |
|
|
|
if (riskDataQuery.value.controlLevel) { |
|
|
|
if (riskDataQuery.value.controlLevel) { |
|
|
|
filterDataTable.value = filterDataTable.value.filter(s => s.controlLevel.includes(riskDataQuery.value.controlLevel)); |
|
|
|
filterDataTable.value = filterDataTable.value.filter(s => s.controlLevel.includes(riskDataQuery.value.controlLevel)); |
|
|
|
@ -2377,6 +2408,7 @@ function getSamplingList() { |
|
|
|
samplingloading.value = true |
|
|
|
samplingloading.value = true |
|
|
|
selectListData(samplingQuery.value).then((res) => { |
|
|
|
selectListData(samplingQuery.value).then((res) => { |
|
|
|
samplingList.value = res.records; |
|
|
|
samplingList.value = res.records; |
|
|
|
|
|
|
|
setCheck(); |
|
|
|
samplingTotal.value = res.total; |
|
|
|
samplingTotal.value = res.total; |
|
|
|
samplingloading.value = false |
|
|
|
samplingloading.value = false |
|
|
|
}) |
|
|
|
}) |
|
|
|
@ -2468,25 +2500,23 @@ const departs = catchStore.getDepartsAll(); |
|
|
|
|
|
|
|
|
|
|
|
//任务分发 |
|
|
|
//任务分发 |
|
|
|
const distributeShow = ref(false) |
|
|
|
const distributeShow = ref(false) |
|
|
|
const editDepartShow =ref(false) |
|
|
|
|
|
|
|
const issueForm = ref({}) |
|
|
|
const issueForm = ref({}) |
|
|
|
const issueLoading = ref(false) |
|
|
|
const issueLoading = ref(false) |
|
|
|
const formRefs =ref(); |
|
|
|
const formRefs =ref(); |
|
|
|
//六项规定督察下发问题 |
|
|
|
//六项规定督察下发问题 |
|
|
|
const issueMatterFun =(row,key)=>{ |
|
|
|
const issueMatterFun =(row,key)=>{ |
|
|
|
console.log('row',row) |
|
|
|
|
|
|
|
switch (key){ |
|
|
|
switch (key){ |
|
|
|
case "sdzc": |
|
|
|
case "selfexamination": |
|
|
|
issueForm.value.problemVo = row |
|
|
|
issueForm.value.problemVo = row |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "rcdc": |
|
|
|
case "inspection": |
|
|
|
issueForm.value.problemVo = row |
|
|
|
issueForm.value.problemVo = row |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "lxgddc": |
|
|
|
case "testing_alcohol": |
|
|
|
issueForm.value.taskId = row.taskId; |
|
|
|
issueForm.value.taskId = row.taskId; |
|
|
|
issueForm.value.empNo =row.empNo; |
|
|
|
issueForm.value.empNo =row.empNo; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "zdrydc": |
|
|
|
case "risk_personal": |
|
|
|
issueForm.value.supRecordId =row.id |
|
|
|
issueForm.value.supRecordId =row.id |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
@ -2509,16 +2539,16 @@ const handleSubmitTask =async ()=>{ |
|
|
|
feedback.msgSuccess("下发成功"); |
|
|
|
feedback.msgSuccess("下发成功"); |
|
|
|
distributeShow.value = false; |
|
|
|
distributeShow.value = false; |
|
|
|
switch (issueForm.value.tableKey){ |
|
|
|
switch (issueForm.value.tableKey){ |
|
|
|
case "sdzc": |
|
|
|
case "selfexamination": |
|
|
|
getSelfexaminationProblemFun(); |
|
|
|
getSelfexaminationProblemFun(); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "rcdc": |
|
|
|
case "inspection": |
|
|
|
getProblems(); |
|
|
|
getProblems(); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "lxgddc": |
|
|
|
case "testing_alcohol": |
|
|
|
getTestingAlcoholPeople(); |
|
|
|
getTestingAlcoholPeople(); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "zdrydc": |
|
|
|
case "risk_personal": |
|
|
|
getTaskSupDataFun(); |
|
|
|
getTaskSupDataFun(); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
@ -2567,9 +2597,13 @@ const getRiskDataTableList = (val) => { |
|
|
|
* 获取重点督察人员表单 |
|
|
|
* 获取重点督察人员表单 |
|
|
|
* */ |
|
|
|
* */ |
|
|
|
watch(() => form.value.supRiskDtoList, (newVal) => { |
|
|
|
watch(() => form.value.supRiskDtoList, (newVal) => { |
|
|
|
if (form.value.supRiskDtoList.length > 0) { |
|
|
|
if (form.value.supRiskDtoList && form.value.supRiskDtoList.length > 0) { |
|
|
|
getRiskDataTableSubmit(); |
|
|
|
getRiskDataTableSubmit(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(!activeRow.value.supRiskDtoList || activeRow.value.supRiskDtoList.length == 0){ |
|
|
|
|
|
|
|
riskDataTotal.value = 0; |
|
|
|
|
|
|
|
riskDataTable.value =[]; |
|
|
|
|
|
|
|
} |
|
|
|
}, {immediate: true, deep: true}) |
|
|
|
}, {immediate: true, deep: true}) |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -2589,7 +2623,7 @@ watch(departs, () => { |
|
|
|
|
|
|
|
|
|
|
|
watch(() => form.value.specialType, (newVal) => { |
|
|
|
watch(() => form.value.specialType, (newVal) => { |
|
|
|
if (newVal === '六项规定督察') { |
|
|
|
if (newVal === '六项规定督察') { |
|
|
|
form.value.samplingTarget = '1' |
|
|
|
form.value.samplingTarget = '自定义人员' |
|
|
|
} |
|
|
|
} |
|
|
|
}, {immediate: true}) |
|
|
|
}, {immediate: true}) |
|
|
|
|
|
|
|
|
|
|
|
|