对接任务确认流程

This commit is contained in:
qq787203167
2022-05-19 17:59:37 +08:00
parent 9abae897d2
commit 96ccd0ffda
6 changed files with 132 additions and 30 deletions
@@ -6,9 +6,9 @@
</div>
</div>
<div class="header-content">
<!-- v-if="$route.query.TaskKey == 'zrrclrw'"-->
<div class="operator-text"
@click="distributionEngineerClick($t('distributionEngineer'))">
v-if="$route.query.TaskKey == 'zrrclrw'"
@click="distributionEngineerClick($t('distributionEngineer'),1)">
<a-icon type="audit"/>
{{ $t('distributionEngineer') }}
</div>
@@ -19,8 +19,8 @@
{{ $t('reminderHandling') }}
</div>
<div class="operator-text"
v-if="$route.query.TaskKey == 'zrrclrw' || $route.query.TaskKey == 'dreDispose'"
@click="distributionEngineerClick($t('addFeedback'))">
v-if="$route.query.TaskKey == 'zrrclrw'"
@click="distributionEngineerClick($t('addFeedback'),2)">
<a-icon type="plus-circle"/>
{{ $t('addFeedback') }}
</div>
@@ -384,7 +384,7 @@
]
},
visibleDetails: false,
columns: [
columnsAll: [
{
title: this.$t('serialNumber'),
dataIndex: 'index',
@@ -450,6 +450,20 @@
mounted() {
this.getList()
},
computed: {
columns() {
let columnResult = JSON.parse(JSON.stringify(this.columnsAll))
if (this.$route.query.TaskKey != 'zrrclrw') {
for (var i = 0; i < columnResult.length; i++) {
if (columnResult[i].title === this.$t('operation')) {
columnResult.splice(i, 1)
i--
}
}
}
return columnResult
}
},
methods: {
pageOnChange(page, pageSize) {
this.pageNo = page
@@ -525,10 +539,13 @@
handleCancel() {
this.visible = false
},
distributionEngineerClick(title) {
distributionEngineerClick(title, num) {
this.title = title
this.visible = true
this.formInline = {}
if (num == 1) {
this.getReminderHandlingList(1)
}
this.$nextTick(() => {
this.$refs.ruleForm.validateField()
})
@@ -563,9 +580,9 @@
},
reminderHandling() {
this.visibleTable = true
this.getReminderHandlingList()
this.getReminderHandlingList(2)
},
getReminderHandlingList() {
getReminderHandlingList(num) {
this.loadingTable = true
let query = {
taskDefinitionKey: 'dreDispose',
@@ -574,6 +591,24 @@
getAction(this.url.queryByActiProcInstId, query).then((res) => {
if (res.success) {
this.dataSourceTable = res.result || []
if (num == 1) {
this.distributionEngineerList = []
let userName = []
let userId = []
if (this.dataSourceTable && this.dataSourceTable.length > 0) {
this.dataSourceTable.forEach(val => {
this.distributionEngineerList.push({
name: val.userName,
userId: val.userId,
deliveryInstructions: val.deliveryInstructions
})
userName.push(val.userName)
userId.push(val.userId)
})
}
this.formInline.userId = userId.join(',')
this.formInline.userName = userName.join(',')
}
this.loadingTable = false
} else {
this.dataSourceTable = []