修改任务确认流程

This commit is contained in:
qq787203167
2022-05-23 11:19:00 +08:00
parent e22fae8f07
commit e631b10af4
9 changed files with 155 additions and 299 deletions
@@ -1,7 +1,7 @@
<template>
<div id="examineBox">
<headerProcess
:title="$t('theRequirementst')"
:title="$t('regulatoryCertificationTaskConfirmation')"
/>
<div class="detail-box">
<div class="detail-content">
@@ -9,12 +9,15 @@
v-if="isDisplay"
:projectInformationList="projectInformationList"
:url="url"
:queryProject="queryProject"
:projectInformationId="this.queryBy.projectLibraryId"
/>
<standardContent
v-if="isDisplay"
:title="$t('TaskRequirements')"
:standardContentList="standardContentList"
:url="url"
:isConfirmationDeadline="true"
:standardContentQuery="queryProject"
/>
<standardContentListTable
@@ -25,15 +28,14 @@
<examineInformation
:isFlag="isFlag"
v-if="isDisplay"
isViewUploadedFiles
isApprovalOpinion
:title="titleName"
ref="examineInformationRef"
:url="url"/>
<!-- @terminationProcess="terminationProcess"-->
<footerProcess
is-termination-process
is-submit
:isSendBack="isSendBack"
@terminationProcess="terminationProcess"
@submit="submit"
@sendBack="sendBack"
/>
@@ -71,49 +73,14 @@
return {
projectInformationList: [
{
title: this.$t('entryName'),
title: this.$t('RelatedItems'),
value: 'projectName'
},
{
title: this.$t('targetMarket'),
value: 'targetMarket_dictText'
},
{
title: this.$t('projectStatus'),
value: 'projectStatus_dictText'
},
{
title: this.$t('StudioEngineer'),
value: 'studioEngineerName'
},
{
title: this.$t('certifiedEngineer'),
value: 'certificationEngineerName'
},
{},
{
title: this.$t('DigitalPlatform'),
value: 'digitalPlatform_dictText'
},
{
title: this.$t('ModelPlatform'),
value: 'vehiclePlatform_dictText'
},
{},
{
title: this.$t('IPDInformation'),
value: 'ipdInfo'
},
{
title: this.$t('certificationProgram'),
value: 'attestationPlan'
},
{
title: this.$t('dehicleDevelopmentPlan'),
value: 'vehicleDevelopmentPlan'
}
],
standardContentList: [
{
title: this.$t('standard'),
value: 'serialNumber'
@@ -131,30 +98,11 @@
value: 'dutyTerritory_dictText'
},
{
title: this.$t('implementationCategory'),
value: 'implementType_dictText'
},
{
title: this.$t('correspondingStandard'),
value: 'correspondingStandard'
},
{
title: this.$t('engineeringInterfacePerson'),
value: 'engineeringInterfacePersonName'
},
{
title: this.$t('regulatoryEngineer'),
value: 'regulationOwnerName'
},
{
title: this.$t('certifiedEngineer'),
value: 'homologationEngineerName'
},
{
title: this.$t('remarks'),
value: 'remark'
title: this.$t('applicableSupplement'),
value: 'applicableSupplement'
}
],
standardContentList: [],
url: {
urlFrom: 'project/projectLibraryBase/queryById',
queryProjectLawsInventoryInfoById: 'project/projectLawsInventoryEO/queryProjectLawsInventoryInfoById',
@@ -164,19 +112,25 @@
isDisplay: false,
queryProject: {},
loading: false,
titleName: '',
textLoading: this.$t('dataLoading')
}
},
mounted() {
let _this = this
this.isDisplay = false
if (this.$route.query.taskDefinitionKey == 'dreqr') {
this.titleName = this.$t('engineerReply')
} else {
this.titleName = this.$t('confirmationEngineeringInterfacePerson')
}
this.queryTaskDetailByTask(function() {
_this.queryProjectLawsInventoryInfo()
})
},
computed: {
isSendBack() {
if (this.$route.query.taskDefinitionKey == 'zrrjsrw') {
if (this.$route.query.taskDefinitionKey == 'zrrjsrw' || this.$route.query.taskDefinitionKey == 'zrrqr') {
return false
}
return true
@@ -190,11 +144,11 @@
},
methods: {
...mapGetters(['userInfo']),
terminationProcess(handlingTime) {
this.textLoading = this.$t('terminationProcessing')
this.loading = true
this.completeTask({ flag: 2 }, handlingTime)
},
// terminationProcess(handlingTime) {
// this.textLoading = this.$t('terminationProcessing')
// this.loading = true
// this.completeTask({ flag: 2 }, handlingTime)
// },
submit(handlingTime) {
this.$refs.examineInformationRef.submit((res) => {
this.textLoading = this.$t('Submitting')
@@ -291,7 +245,7 @@
postAction('/workFlow/completeTask', query).then((res) => {
if (res.success) {
this.visible = false
this.$message.success(this.$t('OperationSuccessful'))
// this.$message.success(this.$t('OperationSuccessful'))
this.$router.push({
path: '/ProcessCenter'
})