diff --git a/src/views/oa/erp/contractInfo/index.vue b/src/views/oa/erp/contractInfo/index.vue index 5e87686..558b387 100644 --- a/src/views/oa/erp/contractInfo/index.vue +++ b/src/views/oa/erp/contractInfo/index.vue @@ -205,12 +205,10 @@ import { listContractInfo, delContractInfo } from '@/api/oa/erp/contractInfo'; import { ContractInfoVO, ContractInfoQuery } from '@/api/oa/erp/contractInfo/types'; import { updateContractInfo } from '@/api/oa/erp/contractInfo'; import download from '@/plugins/download'; -import { startWorkFlow } from '@/api/workflow/task'; -import ApprovalRecord from '@/components/Process/approvalRecord.vue'; -import SubmitVerify from '@/components/Process/submitVerify.vue'; -import { StartProcessBo } from '@/api/workflow/workflowCommon/types'; const { proxy } = getCurrentInstance() as ComponentInternalInstance; +const route = useRoute(); +const router = useRouter(); const { contract_category, business_direction, active_flag, contract_flag, contract_type, contract_status } = toRefs( proxy?.useDict('contract_category', 'business_direction', 'active_flag', 'contract_flag', 'contract_type', 'contract_status') ); @@ -224,11 +222,6 @@ const multiple = ref(true); const total = ref(0); const queryFormRef = ref(); -const approvalRecordRef = ref>(); -const submitVerifyRef = ref>(); - -// 任务变量 -const taskVariables = ref>({}); // 列显隐信息 const columns = ref([ @@ -340,8 +333,8 @@ const handleSelectionChange = (selection: ContractInfoVO[]) => { /** 新增按钮操作 */ const handleAdd = () => { - proxy.$tab.closePage(proxy.$route); - proxy.$router.push({ + proxy.$tab.closePage(route); + router.push({ path: '/contract/contractInfo/edit', query: {} }); @@ -350,7 +343,7 @@ const handleAdd = () => { /** 修改按钮操作 */ const handleUpdate = (row?: ContractInfoVO) => { const _contractId = row?.contractId || ids.value[0]; - proxy.$router.push({ + router.push({ path: '/contract/contractInfo/edit', query: { id: _contractId