对接设计符合性确认

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) => {
@@ -229,6 +229,7 @@
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:
@@ -248,6 +249,7 @@
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:
@@ -267,6 +269,7 @@
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
} }