对接设计符合性确认

This commit is contained in:
qq787203167
2022-05-10 09:58:13 +08:00
parent 1add665a46
commit b6313d30fc
2 changed files with 27 additions and 11 deletions
@@ -69,7 +69,8 @@
url: { url: {
urlFrom: 'project/projectLibraryBase/queryById', urlFrom: 'project/projectLibraryBase/queryById',
queryProjectLawsInventoryInfoById: 'project/projectLawsInventoryEO/queryProjectLawsInventoryInfoById', queryProjectLawsInventoryInfoById: 'project/projectLawsInventoryEO/queryProjectLawsInventoryInfoById',
queryTaskDetailByTaskIds: '/task/queryTaskDetailByTaskIds' queryTaskDetailByTaskIds: '/task/queryTaskDetailByTaskIds',
edit: '/project/projectTaskInventoryDetailEO/edit'
}, },
queryBy: {}, queryBy: {},
queryProject: {}, queryProject: {},
@@ -256,9 +257,10 @@
if (res.success) { if (res.success) {
this.$message.success(this.$t('OperationSuccessful')) this.$message.success(this.$t('OperationSuccessful'))
this.loading = false this.loading = false
this.edit()
this.$router.push({ this.$router.push({
path: '/ProjectDetails', path: '/ProjectDetails',
query: this.$route.query query: this.$route.query.primaryKeyId
}) })
} else { } else {
this.loading = false this.loading = false
@@ -266,6 +268,17 @@
} }
}) })
}, },
edit() {
let query = {
id: this.$route.query.primaryKeyId,
status: 'haveDone'
}
postAction(this.url.edit, query).then((res) => {
if (res.success) {
}
})
},
queryTaskDetailByTask(callback) { queryTaskDetailByTask(callback) {
this.loading = true this.loading = true
getAction(this.url.queryTaskDetailByTaskIds, { taskIds: this.$route.query.taskIds }).then((res) => { getAction(this.url.queryTaskDetailByTaskIds, { taskIds: this.$route.query.taskIds }).then((res) => {
@@ -219,7 +219,7 @@
projectTaskInventoryId: val.projectLawsInventoryId, projectTaskInventoryId: val.projectLawsInventoryId,
projectLibraryId: this.$route.query.id, projectLibraryId: this.$route.query.id,
id: this.$route.query.id, id: this.$route.query.id,
studioEngineer:this.$route.query.studioEngineer, studioEngineer: this.$route.query.studioEngineer,
serialNumber: val.serialNumber, serialNumber: val.serialNumber,
TaskKey: val.designTaskDefinitionKey, TaskKey: val.designTaskDefinitionKey,
flowType: 2, flowType: 2,
@@ -227,8 +227,9 @@
personLiable: 'designDutyName', personLiable: 'designDutyName',
typeOfDeliverables: 'designDeliverableType_dictText', typeOfDeliverables: 'designDeliverableType_dictText',
deliverableTemplate: 'designDeliverableTemplate', deliverableTemplate: 'designDeliverableTemplate',
projectName:this.$route.query.projectName, projectName: this.$route.query.projectName,
projectNameId:this.$route.query.projectNameId, projectNameId: this.$route.query.projectNameId,
primaryKeyId: val.designTaskDetailId
} }
break break
case 2: case 2:
@@ -236,7 +237,7 @@
taskIds: val.prehomoTaskId, taskIds: val.prehomoTaskId,
actiProcInstId: val.prehomoPId, actiProcInstId: val.prehomoPId,
projectTaskInventoryId: val.projectLawsInventoryId, projectTaskInventoryId: val.projectLawsInventoryId,
studioEngineer:this.$route.query.studioEngineer, studioEngineer: this.$route.query.studioEngineer,
projectLibraryId: this.$route.query.id, projectLibraryId: this.$route.query.id,
serialNumber: val.serialNumber, serialNumber: val.serialNumber,
TaskKey: val.prehomoTaskDefinitionKey, TaskKey: val.prehomoTaskDefinitionKey,
@@ -246,8 +247,9 @@
personLiable: 'prehomoDutyName', personLiable: 'prehomoDutyName',
typeOfDeliverables: 'prehomoDeliverableType_dictText', typeOfDeliverables: 'prehomoDeliverableType_dictText',
deliverableTemplate: 'prehomoDeliverableTemplate', deliverableTemplate: 'prehomoDeliverableTemplate',
projectName:this.$route.query.projectName, projectName: this.$route.query.projectName,
projectNameId:this.$route.query.projectNameId, projectNameId: this.$route.query.projectNameId,
primaryKeyId: val.prehomoTaskDetailId
} }
break break
case 3: case 3:
@@ -256,7 +258,7 @@
actiProcInstId: val.verifyPId, actiProcInstId: val.verifyPId,
id: this.$route.query.id, id: this.$route.query.id,
projectLibraryId: this.$route.query.id, projectLibraryId: this.$route.query.id,
studioEngineer:this.$route.query.studioEngineer, studioEngineer: this.$route.query.studioEngineer,
serialNumber: val.serialNumber, serialNumber: val.serialNumber,
projectTaskInventoryId: val.projectLawsInventoryId, projectTaskInventoryId: val.projectLawsInventoryId,
TaskKey: val.verifyTaskDefinitionKey, TaskKey: val.verifyTaskDefinitionKey,
@@ -265,8 +267,9 @@
personLiable: 'verifyDutyName', personLiable: 'verifyDutyName',
typeOfDeliverables: 'verifyDeliverableType_dictText', typeOfDeliverables: 'verifyDeliverableType_dictText',
deliverableTemplate: 'verifyDeliverableTemplate', deliverableTemplate: 'verifyDeliverableTemplate',
projectName:this.$route.query.projectName, projectName: this.$route.query.projectName,
projectNameId:this.$route.query.projectNameId, projectNameId: this.$route.query.projectNameId,
primaryKeyId: val.verifyTaskDetailId
} }
break break
} }