Merge branch 'master' into dev

This commit is contained in:
wsm
2026-06-01 16:46:14 +08:00
11 changed files with 146 additions and 70 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ export const startProcess = (params) => {
* 根据业务ID查询流程列表 * 根据业务ID查询流程列表
* @param params * @param params
*/ */
export const queryByBusinessId = (params) => defHttp.get({ url: Api.queryByBusinessId, params }, { isTransformResponse: false }); export const queryByBusinessId = (params) => defHttp.get({ url: Api.queryByBusinessId, params });
/** /**
* 删除单个流程实例 * 删除单个流程实例
@@ -53,14 +53,26 @@
const approvalHistoryRef = ref(); const approvalHistoryRef = ref();
const [registerBpmModal, { openModal: bpmPicModal }] = useModal(); const [registerBpmModal, { openModal: bpmPicModal }] = useModal();
const [registerTable, { setColumns, setTableData, setLoading, clearSelectedRowKeys }] = useTable({ const [registerTable, { setColumns, setTableData, reload, clearSelectedRowKeys }] = useTable({
rowKey: 'id', rowKey: 'id',
columns: columns, columns: columns,
api: queryByBusinessId,
immediate: false,
useSearchForm: false, useSearchForm: false,
canResize: false, canResize: false,
pagination: false, pagination: {
current: 1,
pageSize: 10,
pageSizeOptions: ['10', '20', '30'],
},
showIndexColumn: true, showIndexColumn: true,
bordered: true, bordered: true,
beforeFetch: (params) => {
return {
...params,
businessId: currentBusinessId.value,
};
},
actionColumn: { actionColumn: {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
@@ -79,22 +91,9 @@
setTableData([]); setTableData([]);
return; return;
} }
await reload({ page: 1 });
setLoading(true);
try {
const res = await queryByBusinessId({ businessId: currentBusinessId.value });
const list = Array.isArray(res?.result) ? res.result : [];
setTableData(list);
if (!list.length) {
createMessage.warning(res?.message || '未查询到流程数据');
}
} catch (error) {
setTableData([]);
} finally {
setLoading(false);
clearSelectedRowKeys(); clearSelectedRowKeys();
} }
}
async function open(params: OpenParams = {}) { async function open(params: OpenParams = {}) {
currentBusinessId.value = params.businessId || ''; currentBusinessId.value = params.businessId || '';
@@ -124,7 +123,7 @@
async function handlePreviewApprovalHistory(record) { async function handlePreviewApprovalHistory(record) {
const processInstId = record?.processInstId; const processInstId = record?.processInstId;
if (!processInstId) { if (!processInstId) {
createMessage.error('流程实例ID不能为空'); createMessage.error('流程未发起,请等待流程自动发起');
return; return;
} }
@@ -145,7 +144,7 @@
async function handleDeleteProcess(record) { async function handleDeleteProcess(record) {
const processInstId = record?.processInstId; const processInstId = record?.processInstId;
if (!processInstId) { if (!processInstId) {
createMessage.error('流程实例ID不能为空'); createMessage.error('流程未发起,请等待流程自动发起');
return; return;
} }
@@ -153,7 +152,7 @@
const res = await deleteSingleProcess({ processInstId }); const res = await deleteSingleProcess({ processInstId });
if (res?.success) { if (res?.success) {
createMessage.success(res.message || '删除流程成功'); createMessage.success(res.message || '删除流程成功');
await loadData(); await reload();
} else { } else {
createMessage.error(res?.message || '删除流程失败'); createMessage.error(res?.message || '删除流程失败');
} }
@@ -13,6 +13,12 @@ export const columns: BasicColumn[] = [
// align: "center", // align: "center",
// dataIndex: 'flowCode' // dataIndex: 'flowCode'
// }, // },
{
title: '督办开始时间',
align: 'center',
dataIndex: 'startTime',
width: 160,
},
{ {
title: '督办标题', title: '督办标题',
align: 'center', align: 'center',
@@ -27,20 +33,7 @@ export const columns: BasicColumn[] = [
width: 220, width: 220,
ellipsis: true, ellipsis: true,
}, },
{
title: '流程名称',
align: 'center',
dataIndex: 'flowName',
width: 160,
ellipsis: true,
},
{
title: '流程实例ID',
align: 'center',
dataIndex: 'processInstId',
width: 220,
ellipsis: true,
},
// { // {
// title: '流程类型', // title: '流程类型',
// align: "center", // align: "center",
@@ -165,12 +158,7 @@ export const columns: BasicColumn[] = [
return text; return text;
}, },
}, },
{
title: '督办开始时间',
align: 'center',
dataIndex: 'startTime',
width: 160,
},
// { // {
// title: '截止时间(精确到时分,与 require_finish_date 互补)', // title: '截止时间(精确到时分,与 require_finish_date 互补)',
// align: "center", // align: "center",
@@ -183,6 +171,21 @@ export const columns: BasicColumn[] = [
dataIndex: 'actualFinishTime', dataIndex: 'actualFinishTime',
width: 160, width: 160,
}, },
{
title: '流程名称',
align: 'center',
dataIndex: 'flowName',
width: 160,
ellipsis: true,
},
{
title: '流程实例ID',
align: 'center',
dataIndex: 'processInstId',
width: 220,
ellipsis: true,
},
// { // {
// title: '是否已逾期', // title: '是否已逾期',
// align: "center", // align: "center",
@@ -0,0 +1,12 @@
<template>
<BgPartymatterList
meeting-type="office"
ledger-title="所务会"
flow-name="所务会决议事项督办"
permission-prefix="bgofficematter:bg_officematter"
/>
</template>
<script lang="ts" name="bgofficematter-bgOfficematter" setup>
import BgPartymatterList from './BgPartymatterList.vue';
</script>
@@ -43,9 +43,9 @@
<BasicTable @register="registerTable" :expandedRowKeys="expandedRowKeys" @expand="handleExpand"> <BasicTable @register="registerTable" :expandedRowKeys="expandedRowKeys" @expand="handleExpand">
<!--插槽:table标题--> <!--插槽:table标题-->
<template #tableTitle> <template #tableTitle>
<a-button type="primary" v-auth="'bgpartymatter:bg_partymatter:add'" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button> <a-button type="primary" v-auth="actionAuth.add" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button>
<!-- <a-button type="primary" v-auth="'bgpartymatter:bg_partymatter:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>--> <!-- <a-button type="primary" v-auth="actionAuth.exportXls" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>-->
<!-- <j-upload-button type="primary" v-auth="'bgpartymatter:bg_partymatter:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>--> <!-- <j-upload-button type="primary" v-auth="actionAuth.importExcel" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>-->
<!-- <a-dropdown v-if="selectedRowKeys.length > 0">--> <!-- <a-dropdown v-if="selectedRowKeys.length > 0">-->
<!-- <template #overlay>--> <!-- <template #overlay>-->
<!-- <a-menu>--> <!-- <a-menu>-->
@@ -55,7 +55,7 @@
<!-- </a-menu-item>--> <!-- </a-menu-item>-->
<!-- </a-menu>--> <!-- </a-menu>-->
<!-- </template>--> <!-- </template>-->
<!-- <a-button v-auth="'bgpartymatter:bg_partymatter:deleteBatch'">--> <!-- <a-button v-auth="actionAuth.deleteBatch">-->
<!-- 批量操作--> <!-- 批量操作-->
<!-- <Icon icon="mdi:chevron-down"></Icon>--> <!-- <Icon icon="mdi:chevron-down"></Icon>-->
<!-- </a-button>--> <!-- </a-button>-->
@@ -143,10 +143,32 @@
import { columns, superQuerySchema, bgPartymatterFeedbackColumns } from './BgPartymatter.data'; import { columns, superQuerySchema, bgPartymatterFeedbackColumns } from './BgPartymatter.data';
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl, bgPartymatterFeedbackList, saveOrUpdate } from './BgPartymatter.api'; import { list, deleteOne, batchDelete, getImportUrl, getExportUrl, bgPartymatterFeedbackList, saveOrUpdate } from './BgPartymatter.api';
const props = withDefaults(
defineProps<{
meetingType?: string;
ledgerTitle?: string;
flowName?: string;
permissionPrefix?: string;
}>(),
{
meetingType: 'party',
ledgerTitle: '党委会',
flowName: '党委会决议事项督办',
permissionPrefix: 'bgpartymatter:bg_partymatter',
}
);
const FLOW_CODE = 'dev_task_task_001'; const FLOW_CODE = 'dev_task_task_001';
const FLOW_NAME = '党委会决议事项督办';
const BUSINESS_TABLE_NAME = 'bg_partymatter'; const BUSINESS_TABLE_NAME = 'bg_partymatter';
const FORM_URL = 'bg/bgpartymatter/components/BgPartymatterBPMForm'; const FORM_URL = 'bg/bgpartymatter/components/BgPartymatterBPMForm';
const actionAuth = {
add: `${props.permissionPrefix}:add`,
edit: `${props.permissionPrefix}:edit`,
delete: `${props.permissionPrefix}:delete`,
deleteBatch: `${props.permissionPrefix}:deleteBatch`,
exportXls: `${props.permissionPrefix}:exportXls`,
importExcel: `${props.permissionPrefix}:importExcel`,
};
const [registerBpmModal, { openModal: bpmPicModal }] = useModal(); const [registerBpmModal, { openModal: bpmPicModal }] = useModal();
const formRef = ref(); const formRef = ref();
@@ -177,7 +199,7 @@
const { tableContext, onExportXls, onImportXls } = useListPage({ const { tableContext, onExportXls, onImportXls } = useListPage({
tableProps:{ tableProps:{
title: '党委会', title: props.ledgerTitle,
api: list, api: list,
columns, columns,
canResize:false, canResize:false,
@@ -190,7 +212,7 @@
fixed:'right' fixed:'right'
}, },
beforeFetch: async (params) => { beforeFetch: async (params) => {
return Object.assign(params, getQueryParams()); return Object.assign(params, getLedgerQueryParams());
}, },
pagination: { pagination: {
current: 1, current: 1,
@@ -199,9 +221,9 @@
}, },
}, },
exportConfig: { exportConfig: {
name:"党委会", name: props.ledgerTitle,
url: getExportUrl, url: getExportUrl,
params: getQueryParams, params: getLedgerQueryParams,
}, },
importConfig: { importConfig: {
url: getImportUrl, url: getImportUrl,
@@ -244,6 +266,16 @@
return params; return params;
} }
/**
* 台账入口固定追加会议类型,避免党委会和所务会共表后数据串台。
*/
function getLedgerQueryParams() {
return {
...getQueryParams(),
meetingType: props.meetingType,
};
}
/** /**
* 清空查询条件。 * 清空查询条件。
* 通过删除 reactive 对象中的字段,让查询表单和实际请求参数都恢复为空。 * 通过删除 reactive 对象中的字段,让查询表单和实际请求参数都恢复为空。
@@ -331,7 +363,7 @@
*/ */
function handleAdd() { function handleAdd() {
registerModal.value.disableSubmit = false; registerModal.value.disableSubmit = false;
registerModal.value.add(); registerModal.value.add({ meetingType: props.meetingType });
} }
/** /**
@@ -381,7 +413,7 @@
{ {
label: '编辑', label: '编辑',
onClick: handleEdit.bind(null, record), onClick: handleEdit.bind(null, record),
auth: 'bgpartymatter:bg_partymatter:edit' auth: actionAuth.edit
}, },
]; ];
} }
@@ -401,7 +433,7 @@
confirm: handleDelete.bind(null, record), confirm: handleDelete.bind(null, record),
placement: 'topLeft' placement: 'topLeft'
}, },
auth: 'bgpartymatter:bg_partymatter:delete' auth: actionAuth.delete
}, },
// { // {
// label: '审批进度', // label: '审批进度',
@@ -513,8 +545,10 @@
const selectedDeadline = options.deadline || record.deadline; const selectedDeadline = options.deadline || record.deadline;
const selectedUrgencyLevel = options.urgencyLevel ?? record.urgencyLevel ?? '0'; const selectedUrgencyLevel = options.urgencyLevel ?? record.urgencyLevel ?? '0';
const defaultDeptIds = getResponsibleDeptIds(record); const defaultDeptIds = getResponsibleDeptIds(record);
const currentMeetingType = record.meetingType || props.meetingType;
const flowJsonData = { const flowJsonData = {
...record, ...record,
meetingType: currentMeetingType,
isNeedAppro: options.isNeedAppro ?? record.isNeedAppro ?? '', isNeedAppro: options.isNeedAppro ?? record.isNeedAppro ?? '',
supDeptleaderid: options.supDeptleaderid ?? record.supDeptleaderid ?? '', supDeptleaderid: options.supDeptleaderid ?? record.supDeptleaderid ?? '',
superviseCount: nextSuperviseCount, superviseCount: nextSuperviseCount,
@@ -533,7 +567,7 @@
//流程相关字段 //流程相关字段
flowCode: FLOW_CODE, flowCode: FLOW_CODE,
formUrl: FORM_URL, formUrl: FORM_URL,
flowName: FLOW_NAME, flowName: props.flowName,
jsonData: flowJsonData, jsonData: flowJsonData,
//台账相关字段 //台账相关字段
businessTablename: BUSINESS_TABLE_NAME, businessTablename: BUSINESS_TABLE_NAME,
@@ -549,7 +583,7 @@
}; };
await startProcessSchedules(params); await startProcessSchedules(params);
await saveOrUpdate({ id: record.id, bpmStatus: '2', superviseCount: nextSuperviseCount }, true); await saveOrUpdate({ id: record.id, bpmStatus: '2', superviseCount: nextSuperviseCount, meetingType: currentMeetingType }, true);
handleSuccess(); handleSuccess();
} }
@@ -77,12 +77,15 @@
import { bgPartymatterFeedbackSaveOrUpdate } from '../BgPartymatter.api'; import { bgPartymatterFeedbackSaveOrUpdate } from '../BgPartymatter.api';
import { useUserStore } from '/@/store/modules/user'; import { useUserStore } from '/@/store/modules/user';
import { buildUUID } from '/@/utils/uuid'; import { buildUUID } from '/@/utils/uuid';
import { dateUtil } from '/@/utils/dateUtil';
import SUploadFile from '/@/components/semri/fileComponent/SUploadFile.vue'; import SUploadFile from '/@/components/semri/fileComponent/SUploadFile.vue';
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue'; import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
const emit = defineEmits(['success']); const emit = defineEmits(['success']);
const { createMessage } = useMessage(); const { createMessage } = useMessage();
const userStore = useUserStore(); const userStore = useUserStore();
const DEFAULT_COMPLETED_STATUS = '3';
const DATE_TIME_FORMAT = 'YYYY-MM-DD HH:mm:ss';
const visible = ref(false); const visible = ref(false);
const saving = ref(false); const saving = ref(false);
@@ -137,6 +140,9 @@
formData.bpmProcessId = formData.bpmProcessId || bpmProcessId; formData.bpmProcessId = formData.bpmProcessId || bpmProcessId;
} else { } else {
modalTitle.value = '新增反馈'; modalTitle.value = '新增反馈';
// 新增反馈默认按“已完成”处理,时间取打开弹窗时刻,编辑已有记录不覆盖。
formData.bpmStatus = DEFAULT_COMPLETED_STATUS;
formData.actualTime = dateUtil().format(DATE_TIME_FORMAT);
void applyCurrentUserFeedbackInfo(); void applyCurrentUserFeedbackInfo();
} }
visible.value = true; visible.value = true;
@@ -272,6 +272,7 @@
startCount: '', startCount: '',
intervalType: '', intervalType: '',
intervalStartTime: '', intervalStartTime: '',
meetingType: 'party',
}); });
const feedbackBaseColumns = [ const feedbackBaseColumns = [
@@ -809,8 +810,14 @@
min-width: 300px; min-width: 300px;
:deep(.file-list-wrapper) { :deep(.file-list-wrapper) {
min-height: auto; min-height: 0 !important;
padding: 8px; padding: 4px 8px;
}
:deep(.ant-spin-nested-loading),
:deep(.ant-spin-container) {
min-height: 0 !important;
line-height: 20px;
} }
:deep(.file-list-header) { :deep(.file-list-header) {
@@ -824,7 +831,21 @@
} }
:deep(.ant-empty) { :deep(.ant-empty) {
margin: 0; margin: 0 !important;
display: flex;
align-items: center;
min-height: 20px;
text-align: left;
}
:deep(.ant-empty-image) {
display: none !important;
}
:deep(.ant-empty-description) {
color: #94a3b8;
font-size: 12px;
line-height: 20px;
} }
} }
</style> </style>
@@ -15,13 +15,13 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="序号" v-bind="validateInfos.number" id="BgPartymatterForm-number" name="number"> <a-form-item label="议题序号" v-bind="validateInfos.itemNumber" id="BgPartymatterForm-itemNumber" name="itemNumber">
<a-input v-model:value="formData.number" placeholder="填写会议时间和议题序号后自动生成" :readonly="true" ></a-input> <a-input-number v-model:value="formData.itemNumber" placeholder="请输入议题序号" style="width: 100%" allow-clear />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="议题序号" v-bind="validateInfos.itemNumber" id="BgPartymatterForm-itemNumber" name="itemNumber"> <a-form-item label="序号" v-bind="validateInfos.number" id="BgPartymatterForm-number" name="number">
<a-input-number v-model:value="formData.itemNumber" placeholder="请输入议题序号" style="width: 100%" allow-clear /> <a-input v-model:value="formData.number" placeholder="填写会议时间和议题序号后自动生成" :readonly="true" ></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
@@ -186,7 +186,8 @@
isNeedInterval:'', isNeedInterval:'',
startCount:'', startCount:'',
intervalType:'', intervalType:'',
intervalStartTime:'' intervalStartTime:'',
meetingType: 'party',
}); });
const { createMessage } = useMessage(); const { createMessage } = useMessage();
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } }); const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } });
@@ -316,8 +317,8 @@
/** /**
* 新增 * 新增
*/ */
function add() { function add(record: Record<string, any> = {}) {
edit({}); edit(record);
} }
/** /**
@@ -25,11 +25,11 @@
/** /**
* 新增 * 新增
*/ */
function add() { function add(record: Record<string, any> = {}) {
title.value = '新增'; title.value = '新增';
visible.value = true; visible.value = true;
nextTick(() => { nextTick(() => {
registerForm.value.add(); registerForm.value.add(record);
}); });
} }
@@ -15,7 +15,7 @@
import { list as queryApprovalOpinionList } from '/@/views/taskApprovalOpinion/TaskApprovalOpinion.api'; import { list as queryApprovalOpinionList } from '/@/views/taskApprovalOpinion/TaskApprovalOpinion.api';
const approvalHistoryColumns: BasicColumn[] = [ const approvalHistoryColumns: BasicColumn[] = [
{ title: '节点名称', dataIndex: 'taskName', width: 160, align: 'center' }, { title: '节点名称', dataIndex: 'taskName', width: 160, align: 'left' },
{ title: '开始时间', dataIndex: 'startTime', width: 170, align: 'center' }, { title: '开始时间', dataIndex: 'startTime', width: 170, align: 'center' },
{ title: '办理时间', dataIndex: 'opTime', width: 170, align: 'center' }, { title: '办理时间', dataIndex: 'opTime', width: 170, align: 'center' },
{ {
@@ -50,7 +50,7 @@ export const columns: BasicColumn[] = [
{ {
title: '事项截止时间', title: '事项截止时间',
align: 'center', align: 'center',
width: 120, width: 180,
dataIndex: 'deadline', dataIndex: 'deadline',
customRender: ({ text, record }) => { customRender: ({ text, record }) => {
const value = !text ? '' : text.length > 10 ? text.substr(0, 10) : text; const value = !text ? '' : text.length > 10 ? text.substr(0, 10) : text;