对接待办中心
This commit is contained in:
@@ -115,8 +115,8 @@
|
||||
issue: false,
|
||||
isTrue: false,
|
||||
taskDefinitionKey: '',
|
||||
taskIds:[],
|
||||
projectLawsInventoryIds:[],
|
||||
taskIds: [],
|
||||
projectLawsInventoryIds: []
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -126,12 +126,10 @@
|
||||
this.taskDefinitionKey = this.selectedRowKeys[0].taskDefinitionKey
|
||||
this.taskIds = []
|
||||
this.projectLawsInventoryIds = []
|
||||
this.selectedRowKeys.forEach(res=>{
|
||||
if (res.taskIds.indexOf(',') != '-1'){
|
||||
res.taskIds = res.taskIds.slice(0,res.taskIds.indexOf(','))
|
||||
}
|
||||
this.taskIds.push(res.taskIds)
|
||||
this.projectLawsInventoryIds.push(res.projectLawsInventoryId)
|
||||
this.selectedRowKeys.forEach(res => {
|
||||
res.taskIds = res.actiProcInstId
|
||||
this.taskIds.push(res.taskIds)
|
||||
this.projectLawsInventoryIds.push(res.projectLawsInventoryId)
|
||||
})
|
||||
this.confirmLoading = false
|
||||
this.visible = true
|
||||
@@ -152,14 +150,14 @@
|
||||
this.formInline[value] = id
|
||||
this.formInline = { ...this.formInline }
|
||||
},
|
||||
addBatch(){
|
||||
addBatch() {
|
||||
let rejectTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
||||
let query = {
|
||||
rejectUserId:this.userInfo().id,
|
||||
rejectTime:rejectTime,
|
||||
rejectCause:this.formInline.approvalOpinion,
|
||||
taskIds:this.taskIds.join(','),
|
||||
rejectType:'1',
|
||||
rejectUserId: this.userInfo().id,
|
||||
rejectTime: rejectTime,
|
||||
rejectCause: this.formInline.approvalOpinion,
|
||||
taskIds: this.taskIds.join(','),
|
||||
rejectType: '1'
|
||||
}
|
||||
postAction('/project/projectLawsInventoryRejectCauseEO/addBatch', query).then((res) => {
|
||||
|
||||
@@ -171,16 +169,16 @@
|
||||
let handlingTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
||||
let query = {
|
||||
...this.formInline,
|
||||
taskIds:this.taskIds.join(','),
|
||||
userId:this.userInfo().id,
|
||||
taskDefinitionKey:this.taskDefinitionKey,
|
||||
handlingTime:handlingTime,
|
||||
projectLawsInventoryIds:this.projectLawsInventoryIds.join(',')
|
||||
taskIds: this.taskIds.join(','),
|
||||
userId: this.userInfo().id,
|
||||
taskDefinitionKey: this.taskDefinitionKey,
|
||||
handlingTime: handlingTime,
|
||||
projectLawsInventoryIds: this.projectLawsInventoryIds.join(',')
|
||||
}
|
||||
if (this.formInline.flag == '1'){
|
||||
this.addBatch()
|
||||
if (this.formInline.flag == '1') {
|
||||
this.addBatch()
|
||||
}
|
||||
if (!this.formInline.flag){
|
||||
if (!this.formInline.flag) {
|
||||
query.flag = '0'
|
||||
}
|
||||
this.confirmLoading = true
|
||||
|
||||
Reference in New Issue
Block a user