对接任务确认流程

This commit is contained in:
qq787203167
2022-05-19 12:03:56 +08:00
parent 7709c22067
commit a0a7c9ecf9
9 changed files with 192 additions and 69 deletions
@@ -419,25 +419,7 @@
})
},
distributionEngineer() {
let msgType = ''
if (this.$route.query.flowType == 2) {
msgType = 'designIssueDreMsg'
} else if (this.$route.query.flowType == 3) {
msgType = 'prehomoIssueDreMsg'
} else if (this.$route.query.flowType == 4) {
msgType = 'verifyIssueDreMsg'
}
let query = {
status: 'NotDone',
actiProcInstId: this.$route.query.actiProcInstId,
projectTaskInventoryId: this.$route.query.projectTaskInventoryId,
flowType: this.$route.query.flowType,
userIds: this.formInline.userId,
taskDefinitionKey: 'dreDispose',
msgType: msgType,
formData: JSON.stringify(this.distributionEngineerList)
}
postAction(this.url.DetailEOAdd, query).then((res) => {
postAction(this.url.DetailEOAdd, this.distributionEngineerList).then((res) => {
if (res.success) {
if (res.success) {
this.confirmLoading = false
@@ -532,10 +514,25 @@
PersonnelSelectionChange(value, id) {
this.formInline[value] = id
if (id) {
this.formInline.userName.split(',').forEach(res => {
let msgType = ''
if (this.$route.query.flowType == 2) {
msgType = 'designIssueDreMsg'
} else if (this.$route.query.flowType == 3) {
msgType = 'prehomoIssueDreMsg'
} else if (this.$route.query.flowType == 4) {
msgType = 'verifyIssueDreMsg'
}
this.formInline.userName.split(',').forEach((res, index) => {
this.distributionEngineerList.push({
deliveryInstructions: '',
name: res
name: res,
status: 'NotDone',
actiProcInstId: this.$route.query.actiProcInstId,
projectTaskInventoryId: this.$route.query.projectTaskInventoryId,
flowType: this.$route.query.flowType,
userIds: this.formInline[value].split(',')[index],
taskDefinitionKey: 'dreDispose',
msgType: msgType
})
})
}