!51 refactor: 提取部门角色ID常量到统一配置文件

* Merge branch 'master' of gitee.com:sz_30/supervision-vue into feature/20260518
* refactor: 提取部门角色ID常量到统一配置文件
* Merge branch 'master' into feature/20260518
* feat(inspectTask): 独立发起流程弹窗,替换党群领导审批组件
* style(inspectProgress): 进展表单对齐BPM表单样式
* style(xispeak): 反馈表单对齐BPM表单样式
* perf(xispeak): 反馈统计查询由逐条请求改为批量接口
* refactor(xispeak): BPM表单和巡视整改表单牵头部门组件替换为SzSelectDept
* style(xispeak): 优化查询表单布局并替换牵头部门选人组件
This commit is contained in:
new_new_new
2026-06-22 06:38:19 +00:00
parent 7ed14bac2a
commit 6628b68b4c
12 changed files with 56 additions and 22 deletions
@@ -99,8 +99,8 @@
<!-- <j-select-user v-model:value="formData.supDeptleaderid" allow-clear />-->
<DeptRoleUserSelectRadioGroup
v-model:value="formData.supDeptleaderid"
deptId="2044677604785229826"
roleId="2044680793306591234"
:deptId="SUOBAN_DEPT_ID"
:roleId="MEASURE_RES_LEADER_ROLE_ID"
/>
</a-form-item>
</a-col>
@@ -157,6 +157,7 @@
import { Form } from 'ant-design-vue';
import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
import DeptRoleUserSelectRadioGroup from "/@/components/semri/userComponent/DeptRoleUserSelectRadioGroup.vue";
import { SUOBAN_DEPT_ID, MEASURE_RES_LEADER_ROLE_ID } from '/@/constant/supervision';
import SzSelectDept from "@/components/Form/src/jeecg/components/SzSelectDept.vue";
const props = defineProps({
@@ -143,8 +143,8 @@
<a-form-item label="所办领导" v-bind="validateInfos.supDeptleaderid" id="BgTakepulseForm-supDeptleaderid" name="supDeptleaderid">
<DeptRoleUserSelectRadioGroup
v-model:value="formData.supDeptleaderid"
deptId="2044677604785229826"
roleId="2044680793306591234"
:deptId="SUP_LEADER_DEPT_ID"
:roleId="SUP_LEADER_ROLE_ID"
/>
</a-form-item>
</a-col>
@@ -172,6 +172,7 @@
import DeptRoleUserSelectRadioGroup
from "@/components/semri/userComponent/DeptRoleUserSelectRadioGroup.vue";
import SzDeptUserModal from "@/components/semri/deptUserComponent/SzDeptUserModal.vue";
import { SUOBAN_DEPT_ID, MEASURE_RES_LEADER_ROLE_ID } from '/@/constant/supervision';
const useForm = Form.useForm;
export default defineComponent({
@@ -195,6 +196,8 @@
},
emits:['success'],
setup(props, {emit}) {
const SUP_LEADER_DEPT_ID = SUOBAN_DEPT_ID;
const SUP_LEADER_ROLE_ID = MEASURE_RES_LEADER_ROLE_ID;
const loading = ref(false);
const formRef = ref();
const formData = reactive<Record<string, any>>({
@@ -396,6 +399,8 @@
disabled,
showSupDeptLeader,
showFlowSubmitButton,
SUP_LEADER_DEPT_ID,
SUP_LEADER_ROLE_ID,
getFormData,
submitForm,
add,
@@ -138,8 +138,8 @@
<a-form-item label="督导领导列表" name="sdwLeaderList">
<DeptRoleUserSelectRadioGroup
v-model:value="mainForm.sdwLeaderList"
deptId="2044677562460508161"
roleId="2044676455280570370"
:deptId="PARTY_COMMITTEE_DEPT_ID"
:roleId="SDW_LEADER_ROLE_ID"
:disabled="mainDisabled"
/>
</a-form-item>
@@ -283,6 +283,7 @@
import BgXiSpeakBPMFeedbackModal from './BgXiSpeakBPMFeedbackModal.vue';
import SUploadFile from '/@/components/semri/fileComponent/SUploadFile.vue';
import DeptRoleUserSelectRadioGroup from '/@/components/semri/userComponent/DeptRoleUserSelectRadioGroup.vue';
import { PARTY_COMMITTEE_DEPT_ID, SDW_LEADER_ROLE_ID } from '/@/constant/supervision';
const { isDisabledAuth, hasPermission, initBpmFormData } = usePermission();
const userStore = useUserStore();
@@ -133,9 +133,7 @@ import JSwitch from '/@/components/Form/src/jeecg/components/JSwitch.vue';
import { Form } from 'ant-design-vue';
import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
import { usePermission } from '/@/hooks/web/usePermission';
const PARTY_COMMITTEE_DEPT_ID = '2044677562460508161';
const SDW_LEADER_ROLE_ID = '2044676455280570370';
import { PARTY_COMMITTEE_DEPT_ID, SDW_LEADER_ROLE_ID } from '/@/constant/supervision';
const { initBpmFormData } = usePermission();
const useForm = Form.useForm;
@@ -91,6 +91,11 @@
columns,
canResize:false,
useSearchForm: false,
pagination: {
current: 1,
pageSize: 12,
pageSizeOptions: ['12', '24', '36'],
},
isTreeTable: true,
customRow: (record) => {
return {
@@ -127,6 +127,11 @@
columns: ledgerColumns,
canResize: false,
useSearchForm: false,
pagination: {
current: 1,
pageSize: 12,
pageSizeOptions: ['12', '24', '36'],
},
actionColumn: {
width: 240,
fixed: 'right',
@@ -244,6 +244,7 @@ import SzDeptUserModal from '/@/components/semri/deptUserComponent/SzDeptUserMod
import { saveBpmForm, setProcessVariable, specificProblemOptions } from '../DqInspectTask.api';
import { list as progressList, deleteOne as progressDelete } from '../../inspectProgress/DqInspectProgress.api';
import { usePermission } from '/@/hooks/web/usePermission';
import { PARTY_COMMITTEE_DEPT_ID, SDW_LEADER_ROLE_ID } from '/@/constant/supervision';
import TaskHandleInnerContent from '/@/views/super/bpm/process/personalOffice/myHandleTask/content/TaskHandleInnerContent.vue';
import DqInspectTaskBPMFeedbackModal from './DqInspectTaskBPMFeedbackModal.vue';
import SUploadFile from '/@/components/semri/fileComponent/SUploadFile.vue';
@@ -439,8 +440,8 @@ import SzDeptUserModal from '/@/components/semri/deptUserComponent/SzDeptUserMod
const res = await defHttp.get({
url: '/sys/user/queryUserRoleComponentData',
params: {
departId: '2044677562460508161',
roleId: '2044676455280570370',
departId: PARTY_COMMITTEE_DEPT_ID,
roleId: SDW_LEADER_ROLE_ID,
searchSecurityLevel: 5,
pageNo: 1,
pageSize: 999,
@@ -85,9 +85,7 @@
import JSwitch from '/src/components/Form/src/jeecg/components/JSwitch.vue';
import DeptRoleUserSelectRadioGroup from '/@/components/semri/userComponent/DeptRoleUserSelectRadioGroup.vue';
import { useMessage } from '/src/hooks/web/useMessage';
const PARTY_MASSES_DEPT_ID = '2044677628281720834';
const MEASURE_RES_LEADER_ROLE_ID = '2044680793306591234';
import { PARTY_MASSES_DEPT_ID, MEASURE_RES_LEADER_ROLE_ID } from '/@/constant/supervision';
interface ModalPayload {
title?: string;
@@ -174,6 +174,7 @@ import JSwitch from '/@/components/Form/src/jeecg/components/JSwitch.vue';
import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
import { Form } from 'ant-design-vue';
import DeptRoleUserSelectDropDown from '@/components/semri/userComponent/DeptRoleUserSelectDropDown.vue';
import { PARTY_COMMITTEE_DEPT_ID, CHARGE_LEADER_ROLE_ID as _CHARGE_LEADER_ROLE_ID, PARTY_MASSES_DEPT_ID as _PARTY_MASSES_DEPT_ID, MEASURE_RES_LEADER_ROLE_ID as _MEASURE_RES_LEADER_ROLE_ID } from '/@/constant/supervision';
const useForm = Form.useForm;
export default defineComponent({
@@ -197,10 +198,10 @@ import JSwitch from '/@/components/Form/src/jeecg/components/JSwitch.vue';
},
emits: ['success'],
setup(props, { emit }) {
const CHARGE_LEADER_DEPT_ID = '2044677562460508161';
const CHARGE_LEADER_ROLE_ID = '2062794430936240130';
const PARTY_MASSES_DEPT_ID = '2044677628281720834';
const MEASURE_RES_LEADER_ROLE_ID = '2044680793306591234';
const CHARGE_LEADER_DEPT_ID = PARTY_COMMITTEE_DEPT_ID;
const CHARGE_LEADER_ROLE_ID = _CHARGE_LEADER_ROLE_ID;
const PARTY_MASSES_DEPT_ID = _PARTY_MASSES_DEPT_ID;
const MEASURE_RES_LEADER_ROLE_ID = _MEASURE_RES_LEADER_ROLE_ID;
const loading = ref(false);
const formRef = ref();