对接握手流程

This commit is contained in:
qq787203167
2022-04-26 14:02:01 +08:00
parent eb2fc10bc7
commit 3c0f7798cd
2 changed files with 25 additions and 15 deletions
@@ -32,21 +32,21 @@
{
title: this.$t('result'),
dataIndex: 'result',
align: 'center'
align: 'approvalResult'
},
{
title: this.$t('opinion'),
dataIndex: 'opinion',
dataIndex: 'approvalOpinion',
align: 'center'
},
{
title: this.$t('enclosure'),
dataIndex: 'enclosure',
dataIndex: 'approvalFile',
align: 'center'
},
{
title: this.$t('operationNode'),
dataIndex: 'operationNode',
dataIndex: 'name',
align: 'center'
},
{
@@ -56,7 +56,7 @@
},
{
title: this.$t('operationTime'),
dataIndex: 'operationTime',
dataIndex: 'createTime',
align: 'center'
}
]
@@ -71,9 +71,7 @@
prcNum: this.$route.query.prcNum
}
getAction('/workFlow/get_list_by_instance', query).then((res) => {
if (res.success) {
}
this.dataSource = res
})
}
}
@@ -150,7 +150,8 @@
],
url: {
urlFrom: 'project/projectLibraryBase/queryById',
queryProjectLawsInventoryInfoById: 'project/projectLawsInventoryEO/queryProjectLawsInventoryInfoById'
queryProjectLawsInventoryInfoById: 'project/projectLawsInventoryEO/queryProjectLawsInventoryInfoById',
queryTaskDetailByTaskIds: '/task/queryTaskDetailByTaskIds'
},
queryBy: {},
queryProject: {},
@@ -158,10 +159,10 @@
}
},
mounted() {
if (this.$route.query.mes) {
this.queryBy = JSON.parse(this.$route.query.mes)
}
this.queryProjectLawsInventoryInfo()
let _this = this
this.queryTaskDetailByTask(function() {
_this.queryProjectLawsInventoryInfo()
})
},
methods: {
...mapGetters(['userInfo']),
@@ -169,10 +170,22 @@
this.completeTask({ flag: 2 })
},
submit() {
this.$refs.examineInformationRef.submit(function(res) {
this.$refs.examineInformationRef.submit((res) => {
this.completeTask(res)
})
},
queryTaskDetailByTask(callback) {
this.loading = true
getAction(this.url.queryTaskDetailByTaskIds, { taskIds: this.$route.query.taskIds }).then((res) => {
if (res instanceof String) {
this.queryBy = JSON.parse(res)
callback()
} else {
this.queryBy = res
callback()
}
})
},
completeTask(value) {
let json = Object.assign({}, this.queryBy, value)
let data = JSON.stringify(json).replace(/\"/g, '\'')
@@ -193,7 +206,6 @@
})
},
queryProjectLawsInventoryInfo() {
this.loading = true
let query = {
id: this.queryBy.id,
operatorType: 'taskAffirmQuery'