|
@@ -251,6 +251,38 @@
|
|
|
:formRules="sandHiddenDangerFormRulesDept"
|
|
:formRules="sandHiddenDangerFormRulesDept"
|
|
|
:formConfig="sandHiddenDangerFormConfigDept"
|
|
:formConfig="sandHiddenDangerFormConfigDept"
|
|
|
>
|
|
>
|
|
|
|
|
+ <template #rectificationDepartmentIds>
|
|
|
|
|
+ <el-form-item prop="rectificationDepartmentIds" style="width: 100%;">
|
|
|
|
|
+ <el-cascader
|
|
|
|
|
+ v-model="sandHiddenDangerFormDataDept.rectificationDepartmentIds"
|
|
|
|
|
+ :options="issueDeptTree"
|
|
|
|
|
+ :props="cascaderDeptProp"
|
|
|
|
|
+ :show-all-levels="false"
|
|
|
|
|
+ placeholder="请选择整改责任部门"
|
|
|
|
|
+ filterable
|
|
|
|
|
+ clearable
|
|
|
|
|
+ @change="onIssueDeptChange"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #rectificationResponsibleIds>
|
|
|
|
|
+ <el-form-item prop="rectificationResponsibleIds" style="width: 100%;">
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="sandHiddenDangerFormDataDept.rectificationResponsibleIds"
|
|
|
|
|
+ placeholder="选择整改负责人"
|
|
|
|
|
+ filterable
|
|
|
|
|
+ clearable
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="user in issueUserList"
|
|
|
|
|
+ :key="user.id"
|
|
|
|
|
+ :label="user.realname ?? user.username"
|
|
|
|
|
+ :value="user.id"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </template>
|
|
|
<template #reviewDepartmentId>
|
|
<template #reviewDepartmentId>
|
|
|
<el-cascader
|
|
<el-cascader
|
|
|
v-model="sandHiddenDangerFormDataDept.reviewDepartmentId"
|
|
v-model="sandHiddenDangerFormDataDept.reviewDepartmentId"
|
|
@@ -280,12 +312,12 @@
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</template>
|
|
</template>
|
|
|
<template #isDrawLessonsPush>
|
|
<template #isDrawLessonsPush>
|
|
|
- <el-radio-group v-model="sandHiddenDangerFormDataDept.isDrawLessonsPush">
|
|
|
|
|
|
|
+ <el-radio-group v-model="sandHiddenDangerFormDataDept.isDrawLessonsPush" @change="isDrawLessonsPushChange">
|
|
|
<el-radio :value="0">否</el-radio>
|
|
<el-radio :value="0">否</el-radio>
|
|
|
<el-radio :value="1">是</el-radio>
|
|
<el-radio :value="1">是</el-radio>
|
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
|
</template>
|
|
</template>
|
|
|
- <template #drawLessonsDepartmentIds>
|
|
|
|
|
|
|
+ <template #drawLessonsDepartmentIds>
|
|
|
<el-select
|
|
<el-select
|
|
|
v-model="drawLessonsDeptIdsArrayDept"
|
|
v-model="drawLessonsDeptIdsArrayDept"
|
|
|
placeholder="请选择举一反三责任部门,可多选"
|
|
placeholder="请选择举一反三责任部门,可多选"
|
|
@@ -305,6 +337,16 @@
|
|
|
/>
|
|
/>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+ <template #drawLessonsDeadline>
|
|
|
|
|
+ <el-form-item prop="drawLessonsDeadline" style="width: 100%;">
|
|
|
|
|
+ <el-date-picker
|
|
|
|
|
+ v-model="sandHiddenDangerFormDataDept.drawLessonsDeadline"
|
|
|
|
|
+ type="date"
|
|
|
|
|
+ value-format="YYYY-MM-DD"
|
|
|
|
|
+ placeholder="请选择举一反三截止日期(选填)"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </template>
|
|
|
</BasicForm>
|
|
</BasicForm>
|
|
|
<template #footer>
|
|
<template #footer>
|
|
|
<el-button @click="showSandConfirmDialogDept = false">取消</el-button>
|
|
<el-button @click="showSandConfirmDialogDept = false">取消</el-button>
|
|
@@ -394,6 +436,26 @@
|
|
|
};
|
|
};
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ const issueDeptTree = ref<DeptTree[]>([]);
|
|
|
|
|
+ const issueUserList = ref<Array<{ id: number; realname?: string; username?: string }>>([]);
|
|
|
|
|
+
|
|
|
|
|
+ const onIssueDialogOpen = async () => {
|
|
|
|
|
+ try {
|
|
|
|
|
+ const [deptRes, userRes] = await Promise.all([
|
|
|
|
|
+ getAllDepartments(),
|
|
|
|
|
+ queryAvailableUserList({ pageNumber: 1, pageSize: 9999, queryParam: {} }),
|
|
|
|
|
+ ]);
|
|
|
|
|
+ const fullTree = (deptRes as DeptTree[]) ?? [];
|
|
|
|
|
+ issueDeptTree.value = Array.isArray(fullTree) && fullTree[0]?.children ? fullTree[0].children : [];
|
|
|
|
|
+ issueUserList.value = (userRes as any)?.records ?? [];
|
|
|
|
|
+ } catch (e) {
|
|
|
|
|
+ console.error('获取部门/用户列表失败:', e);
|
|
|
|
|
+ ElMessage.error(e?.message || e?.data || '加载部门或负责人列表失败');
|
|
|
|
|
+ issueDeptTree.value = [];
|
|
|
|
|
+ issueUserList.value = [];
|
|
|
|
|
+ }
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
const inspectionContentList = computed(() => {
|
|
const inspectionContentList = computed(() => {
|
|
|
const content = (viewDetailData.value?.checkKeyContent ?? '') as string;
|
|
const content = (viewDetailData.value?.checkKeyContent ?? '') as string;
|
|
|
if (!content || typeof content !== 'string') {
|
|
if (!content || typeof content !== 'string') {
|
|
@@ -532,6 +594,7 @@
|
|
|
searchKey: recordSearchKeyword.value || undefined,
|
|
searchKey: recordSearchKeyword.value || undefined,
|
|
|
startDate: start || undefined,
|
|
startDate: start || undefined,
|
|
|
endDate: end || undefined,
|
|
endDate: end || undefined,
|
|
|
|
|
+ id: currentId.value,
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
const raw = (res as { data?: { records?: Array<Record<string, unknown>>; totalRow?: number } })?.data ?? res;
|
|
const raw = (res as { data?: { records?: Array<Record<string, unknown>>; totalRow?: number } })?.data ?? res;
|
|
@@ -673,6 +736,11 @@
|
|
|
drawLessonsDepartmentIds: d.drawLessonsDepartmentIds || '',
|
|
drawLessonsDepartmentIds: d.drawLessonsDepartmentIds || '',
|
|
|
drawLessonsDeadline: d.drawLessonsDeadline || '',
|
|
drawLessonsDeadline: d.drawLessonsDeadline || '',
|
|
|
attachments: d.attachments || '',
|
|
attachments: d.attachments || '',
|
|
|
|
|
+ confirmSandToHiddenDangerDept: d.confirmSandToHiddenDangerDept ?? 0,
|
|
|
|
|
+ rectificationResponsibleIds: d.rectificationResponsibleIds || '',
|
|
|
|
|
+ drawLessonsContent: d.drawLessonsContent || '',
|
|
|
|
|
+ drawLessonsDepartmentIds: d.drawLessonsDepartmentIds || '',
|
|
|
|
|
+ drawLessonsDeadline: d.drawLessonsDeadline || '',
|
|
|
};
|
|
};
|
|
|
await sandAreaCheckRecordToProductionHiddenDanger(payload);
|
|
await sandAreaCheckRecordToProductionHiddenDanger(payload);
|
|
|
ElMessage.success('入账成功');
|
|
ElMessage.success('入账成功');
|
|
@@ -753,10 +821,41 @@
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ const isDrawLessonsPushChange = () => {
|
|
|
|
|
+ console.log(sandHiddenDangerFormDataDept.isDrawLessonsPush)
|
|
|
|
|
+ console.log('HIDDEN_DANGER_FORM_CONFIG', HIDDEN_DANGER_FORM_CONFIG)
|
|
|
|
|
+ let data = [
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'drawLessonsContent',
|
|
|
|
|
+ label: '举一反三内容:',
|
|
|
|
|
+ component: 'ElInput',
|
|
|
|
|
+ componentProps: {
|
|
|
|
|
+ placeholder: '如:上级检查、院内自查',
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'drawLessonsDepartmentIds',
|
|
|
|
|
+ label: '举一反三责任部门:',
|
|
|
|
|
+ slot: 'drawLessonsDepartmentIds',
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'drawLessonsDeadline',
|
|
|
|
|
+ label: '举一反三时限:',
|
|
|
|
|
+ slot: 'drawLessonsDeadline',
|
|
|
|
|
+ },
|
|
|
|
|
+ ]
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ const onIssueDeptChange = () => {
|
|
|
|
|
+ sandHiddenDangerFormDataDept.rectificationResponsibleIds = undefined;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
loadDeptAndUserOptionsDept();
|
|
loadDeptAndUserOptionsDept();
|
|
|
getDetail();
|
|
getDetail();
|
|
|
|
|
+ onIssueDialogOpen();
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|