|
|
|
@@ -59,6 +59,7 @@
|
|
|
|
|
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
|
|
|
|
import { useListPage } from '/@/hooks/system/useListPage'
|
|
|
|
|
import {useModal} from '/@/components/Modal';
|
|
|
|
|
import { dateUtil } from '/@/utils/dateUtil';
|
|
|
|
|
import BgPartymatterModal from './components/BgPartymatterModal.vue'
|
|
|
|
|
import { columns, superQuerySchema } from './BgPartymatter.data';
|
|
|
|
|
import { list, deleteOne, batchDelete, getImportUrl,getExportUrl } from './BgPartymatter.api';
|
|
|
|
@@ -67,11 +68,11 @@
|
|
|
|
|
import JSwitch from '/@/components/Form/src/jeecg/components/JSwitch.vue';
|
|
|
|
|
import JSelectDept from '/@/components/Form/src/jeecg/components/JSelectDept.vue';
|
|
|
|
|
import JSelectUser from '/@/components/Form/src/jeecg/components/JSelectUser.vue';
|
|
|
|
|
import { startProcess } from '/@/api/common/api';
|
|
|
|
|
|
|
|
|
|
const [registerBpmModal, { openModal: bpmPicModal }] = useModal();
|
|
|
|
|
import BgPartymatterFeedbackList from './BgPartymatterFeedbackList.vue'
|
|
|
|
|
import { useUserStore } from '/@/store/modules/user';
|
|
|
|
|
import {startProcessSchedules} from "@/api/common/api";
|
|
|
|
|
const formRef = ref();
|
|
|
|
|
const queryParam = reactive<any>({});
|
|
|
|
|
const checkedKeys = ref<Array<string | number>>([]);
|
|
|
|
@@ -228,13 +229,28 @@
|
|
|
|
|
* 提交流程
|
|
|
|
|
*/
|
|
|
|
|
async function handleProcess(record) {
|
|
|
|
|
let params = {
|
|
|
|
|
flowCode: 'dev_bg_partymatter_001',
|
|
|
|
|
id: record.id,
|
|
|
|
|
const formatDate = (value, format) => {
|
|
|
|
|
return value ? dateUtil(value).format(format) : undefined;
|
|
|
|
|
};
|
|
|
|
|
const params = {
|
|
|
|
|
intervalType: record.intervalType ? Number(record.intervalType) : undefined,
|
|
|
|
|
startCount: record.startCount ? Number(record.startCount) : undefined,
|
|
|
|
|
taskTask: {
|
|
|
|
|
flowCode: 'dev_task_task_001',
|
|
|
|
|
triggerType: record.isNeedInterval, //1立即督办,2重复督办
|
|
|
|
|
businessId: record.id,
|
|
|
|
|
businessTablename: 'bg_partymatter',
|
|
|
|
|
title: record.title,
|
|
|
|
|
content: record.content,
|
|
|
|
|
urgencyLevel: record.urgencyLevel,
|
|
|
|
|
deptId: record.responDeptid,
|
|
|
|
|
requireFinishDate: formatDate(record.deadline, 'YYYY-MM-DD'),
|
|
|
|
|
startTime: formatDate(record.intervalStartTime, 'YYYY-MM-DD HH:mm:ss'),
|
|
|
|
|
deadline: formatDate(record.deadline, 'YYYY-MM-DD HH:mm:ss'),
|
|
|
|
|
formUrl: 'bgpartymatter/components/BgPartymatterForm',
|
|
|
|
|
formUrlMobile: ''
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
await startProcess(params);
|
|
|
|
|
await startProcessSchedules(params);
|
|
|
|
|
handleSuccess();
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|