yxk-20260509-党委会列表
当前事项的责任部门反馈记录加上附件下载列
This commit is contained in:
@@ -90,11 +90,23 @@
|
|||||||
:showActionColumn="false"
|
:showActionColumn="false"
|
||||||
:showTableSetting="false"
|
:showTableSetting="false"
|
||||||
:clickToRowSelect="false"
|
:clickToRowSelect="false"
|
||||||
:columns="bgPartymatterFeedbackColumns"
|
:columns="feedbackExpandColumns"
|
||||||
:dataSource="getFeedbackTableData(record)"
|
:dataSource="getFeedbackTableData(record)"
|
||||||
:loading="getFeedbackTableLoading(record)"
|
:loading="getFeedbackTableLoading(record)"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
/>
|
:scroll="{ x: 1220 }"
|
||||||
|
>
|
||||||
|
<template #feedbackAttachments="{ record: feedbackRecord }">
|
||||||
|
<SUploadFile
|
||||||
|
v-if="feedbackRecord.id"
|
||||||
|
class="feedback-attachment-list"
|
||||||
|
:bussiness-id="feedbackRecord.id"
|
||||||
|
:disabled="true"
|
||||||
|
:multiple="true"
|
||||||
|
/>
|
||||||
|
<span v-else>-</span>
|
||||||
|
</template>
|
||||||
|
</BasicTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</BasicTable>
|
</BasicTable>
|
||||||
@@ -111,6 +123,7 @@
|
|||||||
<script lang="ts" name="bgpartymatter-bgPartymatter" setup>
|
<script lang="ts" name="bgpartymatter-bgPartymatter" setup>
|
||||||
import { reactive, ref } from 'vue';
|
import { reactive, ref } from 'vue';
|
||||||
import { BasicTable, TableAction } from '/@/components/Table';
|
import { BasicTable, TableAction } from '/@/components/Table';
|
||||||
|
import type { BasicColumn } from '/@/components/Table';
|
||||||
import { useListPage } from '/@/hooks/system/useListPage';
|
import { useListPage } from '/@/hooks/system/useListPage';
|
||||||
import { useModal } from '/@/components/Modal';
|
import { useModal } from '/@/components/Modal';
|
||||||
import { dateUtil } from '/@/utils/dateUtil';
|
import { dateUtil } from '/@/utils/dateUtil';
|
||||||
@@ -121,6 +134,7 @@
|
|||||||
import BgPartymatterModal from './components/BgPartymatterModal.vue';
|
import BgPartymatterModal from './components/BgPartymatterModal.vue';
|
||||||
import BusinessProcessListModal from '/src/components/semri/process/BusinessProcessListModal.vue';
|
import BusinessProcessListModal from '/src/components/semri/process/BusinessProcessListModal.vue';
|
||||||
import FlowScheduleStartModal from '/src/components/semri/process/FlowScheduleStartModal.vue';
|
import FlowScheduleStartModal from '/src/components/semri/process/FlowScheduleStartModal.vue';
|
||||||
|
import SUploadFile from '/@/components/semri/fileComponent/SUploadFile.vue';
|
||||||
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';
|
||||||
|
|
||||||
@@ -144,6 +158,18 @@
|
|||||||
value: string;
|
value: string;
|
||||||
}
|
}
|
||||||
//注册table数据
|
//注册table数据
|
||||||
|
const feedbackExpandColumns: BasicColumn[] = [
|
||||||
|
...bgPartymatterFeedbackColumns,
|
||||||
|
{
|
||||||
|
title: '附件下载',
|
||||||
|
dataIndex: 'id',
|
||||||
|
key: 'attachments',
|
||||||
|
align: 'left',
|
||||||
|
width: 340,
|
||||||
|
slots: { customRender: 'feedbackAttachments' },
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
const { tableContext, onExportXls, onImportXls } = useListPage({
|
const { tableContext, onExportXls, onImportXls } = useListPage({
|
||||||
tableProps:{
|
tableProps:{
|
||||||
title: '党委会',
|
title: '党委会',
|
||||||
@@ -429,6 +455,11 @@
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getNextSuperviseCount(value) {
|
||||||
|
const count = Number(value || 0);
|
||||||
|
return Number.isFinite(count) ? count + 1 : 1;
|
||||||
|
}
|
||||||
|
|
||||||
function handleQueryProcess(record) {
|
function handleQueryProcess(record) {
|
||||||
businessProcessListModalRef.value?.open({
|
businessProcessListModalRef.value?.open({
|
||||||
title: '流程列表',
|
title: '流程列表',
|
||||||
@@ -443,10 +474,12 @@
|
|||||||
const formatDate = (value, format) => {
|
const formatDate = (value, format) => {
|
||||||
return value ? dateUtil(value).format(format) : undefined;
|
return value ? dateUtil(value).format(format) : undefined;
|
||||||
};
|
};
|
||||||
|
const nextSuperviseCount = getNextSuperviseCount(record.superviseCount);
|
||||||
const flowJsonData = {
|
const flowJsonData = {
|
||||||
...record,
|
...record,
|
||||||
isNeedAppro: options.isNeedAppro ?? record.isNeedAppro ?? '',
|
isNeedAppro: options.isNeedAppro ?? record.isNeedAppro ?? '',
|
||||||
supDeptleaderid: options.supDeptleaderid ?? record.supDeptleaderid ?? '',
|
supDeptleaderid: options.supDeptleaderid ?? record.supDeptleaderid ?? '',
|
||||||
|
superviseCount: nextSuperviseCount,
|
||||||
};
|
};
|
||||||
|
|
||||||
const params = {
|
const params = {
|
||||||
@@ -475,7 +508,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
await startProcessSchedules(params);
|
await startProcessSchedules(params);
|
||||||
await saveOrUpdate({ id: record.id, bpmStatus: '2' }, true);
|
await saveOrUpdate({ id: record.id, bpmStatus: '2', superviseCount: nextSuperviseCount }, true);
|
||||||
handleSuccess();
|
handleSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -631,6 +664,29 @@
|
|||||||
:deep(.feedback-inner-table .ant-table-tbody > tr:hover > td) {
|
:deep(.feedback-inner-table .ant-table-tbody > tr:hover > td) {
|
||||||
background: #f8fbff;
|
background: #f8fbff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.feedback-attachment-list {
|
||||||
|
min-width: 300px;
|
||||||
|
|
||||||
|
:deep(.file-list-wrapper) {
|
||||||
|
min-height: auto;
|
||||||
|
padding: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.file-list-header) {
|
||||||
|
margin-bottom: 6px;
|
||||||
|
padding-bottom: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.file-list .file-item) {
|
||||||
|
padding: 8px;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.ant-empty) {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -151,7 +151,7 @@
|
|||||||
responDeptid: '',
|
responDeptid: '',
|
||||||
actualExect: '',
|
actualExect: '',
|
||||||
bpmStatus: '1',
|
bpmStatus: '1',
|
||||||
superviseCount: '',
|
superviseCount: '0',
|
||||||
deadline: '',
|
deadline: '',
|
||||||
urgencyLevel: '1',
|
urgencyLevel: '1',
|
||||||
isNeedAppro: '',
|
isNeedAppro: '',
|
||||||
|
|||||||
Reference in New Issue
Block a user