From 1e1bb6de2952c920ebe163efa231b60ef77ec909 Mon Sep 17 00:00:00 2001
From: ye1023 <12588209+ye1023@user.noreply.gitee.com>
Date: Mon, 1 Jun 2026 10:33:22 +0800
Subject: [PATCH 1/3] =?UTF-8?q?yxk-20260601-=E6=89=80=E5=8A=A1=E4=BC=9A?=
=?UTF-8?q?=E5=8F=B0=E8=B4=A6=E5=8F=8A=E5=8F=91=E8=B5=B7=E6=B5=81=E7=A8=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../bg/bgpartymatter/BgOfficematterList.vue | 12 ++++
.../bg/bgpartymatter/BgPartymatterList.vue | 62 ++++++++++++++-----
.../components/BgPartymatterBPMForm.vue | 1 +
.../components/BgPartymatterForm.vue | 7 ++-
.../components/BgPartymatterModal.vue | 6 +-
5 files changed, 68 insertions(+), 20 deletions(-)
create mode 100644 src/views/bg/bgpartymatter/BgOfficematterList.vue
diff --git a/src/views/bg/bgpartymatter/BgOfficematterList.vue b/src/views/bg/bgpartymatter/BgOfficematterList.vue
new file mode 100644
index 0000000..e4efb6c
--- /dev/null
+++ b/src/views/bg/bgpartymatter/BgOfficematterList.vue
@@ -0,0 +1,12 @@
+
+
+
+
+
diff --git a/src/views/bg/bgpartymatter/BgPartymatterList.vue b/src/views/bg/bgpartymatter/BgPartymatterList.vue
index 1e5066f..1fe01f3 100644
--- a/src/views/bg/bgpartymatter/BgPartymatterList.vue
+++ b/src/views/bg/bgpartymatter/BgPartymatterList.vue
@@ -43,9 +43,9 @@
- 新增
-
-
+ 新增
+
+
@@ -55,7 +55,7 @@
-
+
@@ -143,10 +143,32 @@
import { columns, superQuerySchema, bgPartymatterFeedbackColumns } from './BgPartymatter.data';
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_NAME = '党委会决议事项督办';
const BUSINESS_TABLE_NAME = 'bg_partymatter';
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 formRef = ref();
@@ -177,7 +199,7 @@
const { tableContext, onExportXls, onImportXls } = useListPage({
tableProps:{
- title: '党委会',
+ title: props.ledgerTitle,
api: list,
columns,
canResize:false,
@@ -190,7 +212,7 @@
fixed:'right'
},
beforeFetch: async (params) => {
- return Object.assign(params, getQueryParams());
+ return Object.assign(params, getLedgerQueryParams());
},
pagination: {
current: 1,
@@ -199,9 +221,9 @@
},
},
exportConfig: {
- name:"党委会",
+ name: props.ledgerTitle,
url: getExportUrl,
- params: getQueryParams,
+ params: getLedgerQueryParams,
},
importConfig: {
url: getImportUrl,
@@ -244,6 +266,16 @@
return params;
}
+ /**
+ * 台账入口固定追加会议类型,避免党委会和所务会共表后数据串台。
+ */
+ function getLedgerQueryParams() {
+ return {
+ ...getQueryParams(),
+ meetingType: props.meetingType,
+ };
+ }
+
/**
* 清空查询条件。
* 通过删除 reactive 对象中的字段,让查询表单和实际请求参数都恢复为空。
@@ -331,7 +363,7 @@
*/
function handleAdd() {
registerModal.value.disableSubmit = false;
- registerModal.value.add();
+ registerModal.value.add({ meetingType: props.meetingType });
}
/**
@@ -381,7 +413,7 @@
{
label: '编辑',
onClick: handleEdit.bind(null, record),
- auth: 'bgpartymatter:bg_partymatter:edit'
+ auth: actionAuth.edit
},
];
}
@@ -401,7 +433,7 @@
confirm: handleDelete.bind(null, record),
placement: 'topLeft'
},
- auth: 'bgpartymatter:bg_partymatter:delete'
+ auth: actionAuth.delete
},
// {
// label: '审批进度',
@@ -513,8 +545,10 @@
const selectedDeadline = options.deadline || record.deadline;
const selectedUrgencyLevel = options.urgencyLevel ?? record.urgencyLevel ?? '0';
const defaultDeptIds = getResponsibleDeptIds(record);
+ const currentMeetingType = record.meetingType || props.meetingType;
const flowJsonData = {
...record,
+ meetingType: currentMeetingType,
isNeedAppro: options.isNeedAppro ?? record.isNeedAppro ?? '',
supDeptleaderid: options.supDeptleaderid ?? record.supDeptleaderid ?? '',
superviseCount: nextSuperviseCount,
@@ -533,7 +567,7 @@
//流程相关字段
flowCode: FLOW_CODE,
formUrl: FORM_URL,
- flowName: FLOW_NAME,
+ flowName: props.flowName,
jsonData: flowJsonData,
//台账相关字段
businessTablename: BUSINESS_TABLE_NAME,
@@ -549,7 +583,7 @@
};
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();
}
diff --git a/src/views/bg/bgpartymatter/components/BgPartymatterBPMForm.vue b/src/views/bg/bgpartymatter/components/BgPartymatterBPMForm.vue
index 51a32b6..d3b331b 100644
--- a/src/views/bg/bgpartymatter/components/BgPartymatterBPMForm.vue
+++ b/src/views/bg/bgpartymatter/components/BgPartymatterBPMForm.vue
@@ -272,6 +272,7 @@
startCount: '',
intervalType: '',
intervalStartTime: '',
+ meetingType: 'party',
});
const feedbackBaseColumns = [
diff --git a/src/views/bg/bgpartymatter/components/BgPartymatterForm.vue b/src/views/bg/bgpartymatter/components/BgPartymatterForm.vue
index cb51c04..6fceb58 100644
--- a/src/views/bg/bgpartymatter/components/BgPartymatterForm.vue
+++ b/src/views/bg/bgpartymatter/components/BgPartymatterForm.vue
@@ -186,7 +186,8 @@
isNeedInterval:'',
startCount:'',
intervalType:'',
- intervalStartTime:''
+ intervalStartTime:'',
+ meetingType: 'party',
});
const { createMessage } = useMessage();
const labelCol = ref({ xs: { span: 24 }, sm: { span: 5 } });
@@ -316,8 +317,8 @@
/**
* 新增
*/
- function add() {
- edit({});
+ function add(record: Record = {}) {
+ edit(record);
}
/**
diff --git a/src/views/bg/bgpartymatter/components/BgPartymatterModal.vue b/src/views/bg/bgpartymatter/components/BgPartymatterModal.vue
index 55bd08e..96a66d9 100644
--- a/src/views/bg/bgpartymatter/components/BgPartymatterModal.vue
+++ b/src/views/bg/bgpartymatter/components/BgPartymatterModal.vue
@@ -25,11 +25,11 @@
/**
* 新增
*/
- function add() {
+ function add(record: Record = {}) {
title.value = '新增';
visible.value = true;
nextTick(() => {
- registerForm.value.add();
+ registerForm.value.add(record);
});
}
@@ -81,4 +81,4 @@
display: none !important;
}
-
\ No newline at end of file
+
From 8844ff27a555c38fca8dd1016d0f529f8c9c2990 Mon Sep 17 00:00:00 2001
From: ye1023 <12588209+ye1023@user.noreply.gitee.com>
Date: Mon, 1 Jun 2026 14:24:38 +0800
Subject: [PATCH 2/3] =?UTF-8?q?yxk-20260601-bug=E4=BF=AE=E5=A4=8D=201?=
=?UTF-8?q?=E3=80=81=E9=80=9A=E7=94=A8=E6=9F=A5=E8=AF=A2=E7=9D=A3=E5=8A=9E?=
=?UTF-8?q?=E6=A8=A1=E5=9D=97=EF=BC=9A=E9=83=A8=E9=97=A8=E5=AD=97=E5=85=B8?=
=?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=BC=82=E5=B8=B8=202=E3=80=81=E9=80=9A?=
=?UTF-8?q?=E7=94=A8=E6=9F=A5=E8=AF=A2=E7=9D=A3=E5=8A=9E=E6=A8=A1=E5=9D=97?=
=?UTF-8?q?=EF=BC=9A=E6=96=B0=E5=88=9B=E5=BB=BA=E7=9A=84=E7=9D=A3=E5=8A=9E?=
=?UTF-8?q?=E5=9C=A8=E6=9C=80=E4=B8=8B=E9=9D=A2=EF=BC=8C=E9=9C=80=E8=A6=81?=
=?UTF-8?q?=E6=8A=8A=E6=9C=80=E6=96=B0=E7=9A=84=E6=94=BE=E5=9C=A8=E6=9C=80?=
=?UTF-8?q?=E4=B8=8A=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/common/api.ts | 2 +-
.../process/BusinessProcessListModal.vue | 39 ++++++++---------
.../semri/process/QueryProcessList.data.ts | 43 ++++++++++---------
.../components/BgPartymatterForm.vue | 8 ++--
4 files changed, 47 insertions(+), 45 deletions(-)
diff --git a/src/api/common/api.ts b/src/api/common/api.ts
index dca4646..2f6c189 100644
--- a/src/api/common/api.ts
+++ b/src/api/common/api.ts
@@ -174,7 +174,7 @@ export const startProcess = (params) => {
* 根据业务ID查询流程列表
* @param params
*/
-export const queryByBusinessId = (params) => defHttp.get({ url: Api.queryByBusinessId, params }, { isTransformResponse: false });
+export const queryByBusinessId = (params) => defHttp.get({ url: Api.queryByBusinessId, params });
/**
* 删除单个流程实例
diff --git a/src/components/semri/process/BusinessProcessListModal.vue b/src/components/semri/process/BusinessProcessListModal.vue
index 759a6e1..eb3744e 100644
--- a/src/components/semri/process/BusinessProcessListModal.vue
+++ b/src/components/semri/process/BusinessProcessListModal.vue
@@ -53,14 +53,26 @@
const approvalHistoryRef = ref();
const [registerBpmModal, { openModal: bpmPicModal }] = useModal();
- const [registerTable, { setColumns, setTableData, setLoading, clearSelectedRowKeys }] = useTable({
+ const [registerTable, { setColumns, setTableData, reload, clearSelectedRowKeys }] = useTable({
rowKey: 'id',
columns: columns,
+ api: queryByBusinessId,
+ immediate: false,
useSearchForm: false,
canResize: false,
- pagination: false,
+ pagination: {
+ current: 1,
+ pageSize: 10,
+ pageSizeOptions: ['10', '20', '30'],
+ },
showIndexColumn: true,
bordered: true,
+ beforeFetch: (params) => {
+ return {
+ ...params,
+ businessId: currentBusinessId.value,
+ };
+ },
actionColumn: {
title: '操作',
dataIndex: 'action',
@@ -79,21 +91,8 @@
setTableData([]);
return;
}
-
- 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();
- }
+ await reload({ page: 1 });
+ clearSelectedRowKeys();
}
async function open(params: OpenParams = {}) {
@@ -124,7 +123,7 @@
async function handlePreviewApprovalHistory(record) {
const processInstId = record?.processInstId;
if (!processInstId) {
- createMessage.error('流程实例ID不能为空');
+ createMessage.error('流程未发起,请等待流程自动发起');
return;
}
@@ -145,7 +144,7 @@
async function handleDeleteProcess(record) {
const processInstId = record?.processInstId;
if (!processInstId) {
- createMessage.error('流程实例ID不能为空');
+ createMessage.error('流程未发起,请等待流程自动发起');
return;
}
@@ -153,7 +152,7 @@
const res = await deleteSingleProcess({ processInstId });
if (res?.success) {
createMessage.success(res.message || '删除流程成功');
- await loadData();
+ await reload();
} else {
createMessage.error(res?.message || '删除流程失败');
}
diff --git a/src/components/semri/process/QueryProcessList.data.ts b/src/components/semri/process/QueryProcessList.data.ts
index dd84d92..b61e9f9 100644
--- a/src/components/semri/process/QueryProcessList.data.ts
+++ b/src/components/semri/process/QueryProcessList.data.ts
@@ -13,6 +13,12 @@ export const columns: BasicColumn[] = [
// align: "center",
// dataIndex: 'flowCode'
// },
+ {
+ title: '督办开始时间',
+ align: 'center',
+ dataIndex: 'startTime',
+ width: 160,
+ },
{
title: '督办标题',
align: 'center',
@@ -27,20 +33,7 @@ export const columns: BasicColumn[] = [
width: 220,
ellipsis: true,
},
- {
- title: '流程名称',
- align: 'center',
- dataIndex: 'flowName',
- width: 160,
- ellipsis: true,
- },
- {
- title: '流程实例ID',
- align: 'center',
- dataIndex: 'processInstId',
- width: 220,
- ellipsis: true,
- },
+
// {
// title: '流程类型',
// align: "center",
@@ -165,12 +158,7 @@ export const columns: BasicColumn[] = [
return text;
},
},
- {
- title: '督办开始时间',
- align: 'center',
- dataIndex: 'startTime',
- width: 160,
- },
+
// {
// title: '截止时间(精确到时分,与 require_finish_date 互补)',
// align: "center",
@@ -183,6 +171,21 @@ export const columns: BasicColumn[] = [
dataIndex: 'actualFinishTime',
width: 160,
},
+ {
+ title: '流程名称',
+ align: 'center',
+ dataIndex: 'flowName',
+ width: 160,
+ ellipsis: true,
+ },
+
+ {
+ title: '流程实例ID',
+ align: 'center',
+ dataIndex: 'processInstId',
+ width: 220,
+ ellipsis: true,
+ },
// {
// title: '是否已逾期',
// align: "center",
diff --git a/src/views/bg/bgpartymatter/components/BgPartymatterForm.vue b/src/views/bg/bgpartymatter/components/BgPartymatterForm.vue
index 6fceb58..9ff0f28 100644
--- a/src/views/bg/bgpartymatter/components/BgPartymatterForm.vue
+++ b/src/views/bg/bgpartymatter/components/BgPartymatterForm.vue
@@ -15,13 +15,13 @@
-
-
+
+
-
-
+
+
From 5ea9c5fa860d63339251c368ae78d4b446151a7c Mon Sep 17 00:00:00 2001
From: ye1023 <12588209+ye1023@user.noreply.gitee.com>
Date: Mon, 1 Jun 2026 16:00:51 +0800
Subject: [PATCH 3/3] =?UTF-8?q?yxk-20260601-bug=E4=BF=AE=E5=A4=8D=201?=
=?UTF-8?q?=E3=80=81=E5=85=9A=E5=A7=94=E4=BC=9A=E5=8F=8D=E9=A6=88=E6=97=B6?=
=?UTF-8?q?=EF=BC=8C=E9=BB=98=E8=AE=A4=E9=80=89=E6=8B=A9=E5=B7=B2=E5=AE=8C?=
=?UTF-8?q?=E6=88=90=E3=80=81=E5=AE=8C=E6=88=90=E6=97=B6=E9=97=B4=E4=B8=BA?=
=?UTF-8?q?=E5=BD=93=E5=89=8D=E6=97=B6=E9=97=B4=202=E3=80=81=E5=8F=8D?=
=?UTF-8?q?=E9=A6=88=E4=BF=A1=E6=81=AF=E5=8C=96=E6=B5=81=E7=A8=8Bbpm?=
=?UTF-8?q?=E8=A1=A8=E5=8D=95=E4=B8=AD=EF=BC=8C=E9=99=84=E4=BB=B6=E9=AB=98?=
=?UTF-8?q?=E5=BA=A6=E8=BF=87=E9=AB=98=E7=9A=84=E9=97=AE=E9=A2=98=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../bg/bgpartymatter/BgOfficematterList.vue | 2 +-
.../BgPartymatterBPMFeedbackModal.vue | 6 +++++
.../components/BgPartymatterBPMForm.vue | 26 ++++++++++++++++---
.../content/TaskApprovalHistoryContent.vue | 2 +-
.../myHandleTask/task.handle.data.ts | 2 +-
5 files changed, 32 insertions(+), 6 deletions(-)
diff --git a/src/views/bg/bgpartymatter/BgOfficematterList.vue b/src/views/bg/bgpartymatter/BgOfficematterList.vue
index e4efb6c..c48b2ae 100644
--- a/src/views/bg/bgpartymatter/BgOfficematterList.vue
+++ b/src/views/bg/bgpartymatter/BgOfficematterList.vue
@@ -2,7 +2,7 @@
diff --git a/src/views/bg/bgpartymatter/components/BgPartymatterBPMFeedbackModal.vue b/src/views/bg/bgpartymatter/components/BgPartymatterBPMFeedbackModal.vue
index 46cffd8..5c209a1 100644
--- a/src/views/bg/bgpartymatter/components/BgPartymatterBPMFeedbackModal.vue
+++ b/src/views/bg/bgpartymatter/components/BgPartymatterBPMFeedbackModal.vue
@@ -77,12 +77,15 @@
import { bgPartymatterFeedbackSaveOrUpdate } from '../BgPartymatter.api';
import { useUserStore } from '/@/store/modules/user';
import { buildUUID } from '/@/utils/uuid';
+ import { dateUtil } from '/@/utils/dateUtil';
import SUploadFile from '/@/components/semri/fileComponent/SUploadFile.vue';
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
const emit = defineEmits(['success']);
const { createMessage } = useMessage();
const userStore = useUserStore();
+ const DEFAULT_COMPLETED_STATUS = '3';
+ const DATE_TIME_FORMAT = 'YYYY-MM-DD HH:mm:ss';
const visible = ref(false);
const saving = ref(false);
@@ -137,6 +140,9 @@
formData.bpmProcessId = formData.bpmProcessId || bpmProcessId;
} else {
modalTitle.value = '新增反馈';
+ // 新增反馈默认按“已完成”处理,时间取打开弹窗时刻,编辑已有记录不覆盖。
+ formData.bpmStatus = DEFAULT_COMPLETED_STATUS;
+ formData.actualTime = dateUtil().format(DATE_TIME_FORMAT);
void applyCurrentUserFeedbackInfo();
}
visible.value = true;
diff --git a/src/views/bg/bgpartymatter/components/BgPartymatterBPMForm.vue b/src/views/bg/bgpartymatter/components/BgPartymatterBPMForm.vue
index d3b331b..a48a4ae 100644
--- a/src/views/bg/bgpartymatter/components/BgPartymatterBPMForm.vue
+++ b/src/views/bg/bgpartymatter/components/BgPartymatterBPMForm.vue
@@ -810,8 +810,14 @@
min-width: 300px;
:deep(.file-list-wrapper) {
- min-height: auto;
- padding: 8px;
+ min-height: 0 !important;
+ padding: 4px 8px;
+ }
+
+ :deep(.ant-spin-nested-loading),
+ :deep(.ant-spin-container) {
+ min-height: 0 !important;
+ line-height: 20px;
}
:deep(.file-list-header) {
@@ -825,7 +831,21 @@
}
: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;
}
}
diff --git a/src/views/super/bpm/process/personalOffice/myHandleTask/content/TaskApprovalHistoryContent.vue b/src/views/super/bpm/process/personalOffice/myHandleTask/content/TaskApprovalHistoryContent.vue
index 901beaf..7bb1eea 100644
--- a/src/views/super/bpm/process/personalOffice/myHandleTask/content/TaskApprovalHistoryContent.vue
+++ b/src/views/super/bpm/process/personalOffice/myHandleTask/content/TaskApprovalHistoryContent.vue
@@ -15,7 +15,7 @@
import { list as queryApprovalOpinionList } from '/@/views/taskApprovalOpinion/TaskApprovalOpinion.api';
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: 'opTime', width: 170, align: 'center' },
{
diff --git a/src/views/super/bpm/process/personalOffice/myHandleTask/task.handle.data.ts b/src/views/super/bpm/process/personalOffice/myHandleTask/task.handle.data.ts
index 2fa8ea0..b904edf 100644
--- a/src/views/super/bpm/process/personalOffice/myHandleTask/task.handle.data.ts
+++ b/src/views/super/bpm/process/personalOffice/myHandleTask/task.handle.data.ts
@@ -50,7 +50,7 @@ export const columns: BasicColumn[] = [
{
title: '事项截止时间',
align: 'center',
- width: 120,
+ width: 180,
dataIndex: 'deadline',
customRender: ({ text, record }) => {
const value = !text ? '' : text.length > 10 ? text.substr(0, 10) : text;