|
@@ -56,6 +56,7 @@
|
|
|
:visible="bpmnFormrenderDialogVisible"
|
|
:visible="bpmnFormrenderDialogVisible"
|
|
|
:task-id="editId"
|
|
:task-id="editId"
|
|
|
:title="flowName"
|
|
:title="flowName"
|
|
|
|
|
+ :processName="processName"
|
|
|
@callback="search"
|
|
@callback="search"
|
|
|
@close="visible => bpmnFormrenderDialogVisible = visible"
|
|
@close="visible => bpmnFormrenderDialogVisible = visible"
|
|
|
/>
|
|
/>
|
|
@@ -87,6 +88,7 @@ export default {
|
|
|
action: 'agree', // 打开弹窗的动作
|
|
action: 'agree', // 打开弹窗的动作
|
|
|
pkKey: 'id', // 主键 如果主键不是pk需要传主键
|
|
pkKey: 'id', // 主键 如果主键不是pk需要传主键
|
|
|
flowName:'',
|
|
flowName:'',
|
|
|
|
|
+ processName:'',
|
|
|
selectorVisible: false,
|
|
selectorVisible: false,
|
|
|
ids: '',
|
|
ids: '',
|
|
|
title: '',
|
|
title: '',
|
|
@@ -297,59 +299,60 @@ export default {
|
|
|
* 审批
|
|
* 审批
|
|
|
*/
|
|
*/
|
|
|
handleApprove(id) {
|
|
handleApprove(id) {
|
|
|
- let this_ = this
|
|
|
|
|
-// this_.editId = id
|
|
|
|
|
-// this_.bpmnFormrenderDialogVisible = true
|
|
|
|
|
-// return
|
|
|
|
|
-console.log("11111",request)
|
|
|
|
|
- // getFormDataFlag(JSON.stringify({taskId:id})).then(response => {
|
|
|
|
|
- // console.log("111")
|
|
|
|
|
- // if( response.data.data=='Y'){
|
|
|
|
|
- // this_.editId = id
|
|
|
|
|
- // this_.bpmnFormrenderDialogVisible = true
|
|
|
|
|
- // }else{
|
|
|
|
|
- // ActionUtils.success('任务生成中、请稍后重试...!')
|
|
|
|
|
- // this_.search()
|
|
|
|
|
- // }
|
|
|
|
|
- // })
|
|
|
|
|
-
|
|
|
|
|
- // 打开表单前给给flowName赋值,避免流程节点状态bug
|
|
|
|
|
- this.flowName = this.listData.find(item => item.id === id).name
|
|
|
|
|
|
|
+ let this_ = this
|
|
|
|
|
+ // this_.editId = id
|
|
|
|
|
+ // this_.bpmnFormrenderDialogVisible = true
|
|
|
|
|
+ // return
|
|
|
|
|
|
|
|
- request({
|
|
|
|
|
- url: BUSINESS_BASE_URL() + '/getFormData/flag',
|
|
|
|
|
- method: 'post',
|
|
|
|
|
- data: JSON.stringify({taskId:id})
|
|
|
|
|
- }).then(response => {
|
|
|
|
|
|
|
+ // getFormDataFlag(JSON.stringify({taskId:id})).then(response => {
|
|
|
|
|
+ // console.log("111")
|
|
|
|
|
+ // if( response.data.data=='Y'){
|
|
|
|
|
+ // this_.editId = id
|
|
|
|
|
+ // this_.bpmnFormrenderDialogVisible = true
|
|
|
|
|
+ // }else{
|
|
|
|
|
+ // ActionUtils.success('任务生成中、请稍后重试...!')
|
|
|
|
|
+ // this_.search()
|
|
|
|
|
+ // }
|
|
|
|
|
+ // })
|
|
|
|
|
|
|
|
- if( response.data!='N'){
|
|
|
|
|
- this_.editId = id
|
|
|
|
|
- this_.bpmnFormrenderDialogVisible = true
|
|
|
|
|
- }else{
|
|
|
|
|
- ActionUtils.success('任务生成中、请稍后重试...!')
|
|
|
|
|
- this_.search()
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ // 打开表单前获取flowName和processName,避免流程节点状态bug
|
|
|
|
|
+ let selected = this.listData.find(item => item.id === id)
|
|
|
|
|
+ this.flowName = selected.name
|
|
|
|
|
+ this.processName = selected.procDefName
|
|
|
|
|
|
|
|
- // let sql = "select ID_,HOT_READ_ from ibps_bpm_tasks where TASK_ID_='"+id+"'"
|
|
|
|
|
- // curdPost('sql',sql).then(response => {
|
|
|
|
|
- // if( response.variables.data.length>0){
|
|
|
|
|
- // if( response.variables.data[0].HOT_READ_=='1'){
|
|
|
|
|
- // this_.editId = id
|
|
|
|
|
- // this_.bpmnFormrenderDialogVisible = true
|
|
|
|
|
|
|
+ request({
|
|
|
|
|
+ url: BUSINESS_BASE_URL() + '/getFormData/flag',
|
|
|
|
|
+ method: 'post',
|
|
|
|
|
+ data: JSON.stringify({taskId:id})
|
|
|
|
|
+ }).then(response => {
|
|
|
|
|
+ if ( response.data!='N') {
|
|
|
|
|
+ this_.editId = id
|
|
|
|
|
+ this_.bpmnFormrenderDialogVisible = true
|
|
|
|
|
+ } else {
|
|
|
|
|
+ ActionUtils.success('任务生成中、请稍后重试...!')
|
|
|
|
|
+ this_.search()
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
|
|
|
- // }else{
|
|
|
|
|
- // ActionUtils.success('任务生成中、请稍后重试...!')
|
|
|
|
|
- // this_.search()
|
|
|
|
|
- // }
|
|
|
|
|
- // }else{
|
|
|
|
|
- // ActionUtils.success('任务状态已过期、请刷新页面...!')
|
|
|
|
|
- // this_.search()
|
|
|
|
|
- // }
|
|
|
|
|
- // })
|
|
|
|
|
|
|
+ // let sql = "select ID_,HOT_READ_ from ibps_bpm_tasks where TASK_ID_='"+id+"'"
|
|
|
|
|
+ // curdPost('sql',sql).then(response => {
|
|
|
|
|
+ // if( response.variables.data.length>0){
|
|
|
|
|
+ // if( response.variables.data[0].HOT_READ_=='1'){
|
|
|
|
|
+ // this_.editId = id
|
|
|
|
|
+ // this_.bpmnFormrenderDialogVisible = true
|
|
|
|
|
+ // } else {
|
|
|
|
|
+ // ActionUtils.success('任务生成中、请稍后重试...!')
|
|
|
|
|
+ // this_.search()
|
|
|
|
|
+ // }
|
|
|
|
|
+ // } else {
|
|
|
|
|
+ // ActionUtils.success('任务状态已过期、请刷新页面...!')
|
|
|
|
|
+ // this_.search()
|
|
|
|
|
+ // }
|
|
|
|
|
+ // })
|
|
|
},
|
|
},
|
|
|
handleLinkClick(data, columns) {
|
|
handleLinkClick(data, columns) {
|
|
|
this.flowName = data.name
|
|
this.flowName = data.name
|
|
|
|
|
+ this.processName = data.procDefName
|
|
|
this.handleApprove(data[this.pkKey])
|
|
this.handleApprove(data[this.pkKey])
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|