客户需求

This commit is contained in:
‘huanghaiixia’
2026-01-16 17:28:00 +08:00
parent 620d3be942
commit e97ba3bcfb
20 changed files with 3222 additions and 239 deletions

View File

@ -16,7 +16,7 @@
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.dataIndex === 'approName'">
<a @click="btnCheck('approName')">{{ record.approName }}</a>
<a @click="btnCheck(record)">{{ record.approName }}</a>
</template>
<template v-if="column.dataIndex === 'action'">
<TableAction :actions="getActions(record)" />
@ -60,7 +60,7 @@
import useEventBus from '/@/hooks/event/useEventBus';
import { cloneDeep } from 'lodash-es';
const { bus, CREATE_FLOW, FLOW_PROCESSED, FORM_LIST_MODIFIED } = useEventBus();
const { notification } = useMessage();
@ -94,6 +94,8 @@
const { currentRoute } = useRouter();
const router = useRouter();
const path = currentRoute.value?.path
console.log(currentRoute, 'router55555555555555', path)
const formIdComputedRef = ref();
formIdComputedRef.value = currentRoute.value.meta.formId
const schemaIdComputedRef = ref();
@ -113,7 +115,20 @@
const [registerModal, { openModal}] = useModal();
const [registerApproStatus, { openModal: openModalApproStatus}] = useModal();
const formName='销售审批';
let formName='管道气销售审批';
let curPath = 'dayPlan/PngAppro/index'
if (path.includes('dayPlan/PngAppro/index')) {
formName='管道气销售审批'
curPath = 'dayPlan/PngAppro/index'
}
if (path.includes('dayPlan/pngPipeAppro/index')) {
formName='管道气管道审批'
curPath = 'dayPlan/pngPipeAppro'
}
if (path.includes('dayPlan/pngReceiveStationAppro/index')) {
formName='管道气接收站审批'
curPath = 'dayPlan/pngReceiveStationAppro'
}
const [registerTable, { reload, clearSelectedRowKeys, setTableData }] = useTable({
title: '' || (formName + '列表'),
api: getLngPngApproPage,
@ -166,10 +181,8 @@
},
});
const btnCheck = (type)=> {
if (type == 'approName') {
openModalApproStatus(true,{isUpdate: false});
}
const btnCheck = (record)=> {
openModalApproStatus(true,{isUpdate: false,id:record.id});
}
function onSelectChange(rowKeys: string[]) {
selectedKeys.value = rowKeys;
@ -199,14 +212,24 @@
}
});
} else {
router.push({
path: '/form/PngAppro/' + record.id + '/viewForm',
router.push({
path: '/dayPlan/PngAppro/createForm',
query: {
formPath: 'dayPlan/PngAppro',
formPath: curPath,
formName: formName,
formId:currentRoute.value.meta.formId
formId:currentRoute.value.meta.formId,
id: record.id,
type: 'view'
}
});
// router.push({
// path: '/form/PngAppro/' + record.id + '/viewForm',
// query: {
// formPath: 'dayPlan/PngAppro',
// formName: formName,
// formId:currentRoute.value.meta.formId
// }
// });
}
}
@ -235,7 +258,7 @@
router.push({
path: '/dayPlan/PngAppro/createForm',
query: {
formPath: 'dayPlan/PngAppro',
formPath: curPath,
formName: formName,
formId:currentRoute.value.meta.formId,
id: record.id
@ -243,7 +266,16 @@
});
}
function handleCompare (record: Recordable) {
router.push({
path: '/dayPlan/PngAppro/createForm',
query: {
formPath: curPath,
formName: formName+'对比',
formId:currentRoute.value.meta.formId,
id: record.demandOrgId,
type: 'compare'
}
});
}
function handleBatchApprove () {
setTableData([{verNo: 5, cuCode: 444, approName: '未提交'}])