|
|
|
@ -78,6 +78,7 @@ |
|
|
|
:button-list="buttonList" |
|
|
|
:button-list="buttonList" |
|
|
|
:process="process" |
|
|
|
:process="process" |
|
|
|
:comment="comment" |
|
|
|
:comment="comment" |
|
|
|
|
|
|
|
@draft="handleDraft({ taskId: process.taskId, variables: form })" |
|
|
|
@examine="handleExamine" |
|
|
|
@examine="handleExamine" |
|
|
|
@user-select="handleUserSelect" |
|
|
|
@user-select="handleUserSelect" |
|
|
|
@print="handlePrint" |
|
|
|
@print="handlePrint" |
|
|
|
@ -102,9 +103,10 @@ import userSelect from './user-select' |
|
|
|
|
|
|
|
|
|
|
|
import exForm from '../../mixins/ex-form' |
|
|
|
import exForm from '../../mixins/ex-form' |
|
|
|
import theme from '../../mixins/theme' |
|
|
|
import theme from '../../mixins/theme' |
|
|
|
|
|
|
|
import draft from '../../mixins/draft' |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
mixins: [exForm, theme], |
|
|
|
mixins: [exForm, theme, draft], |
|
|
|
components: { userSelect, WfExamineForm, WfButton, WfFlow, WfTheme, WfFormVariable }, |
|
|
|
components: { userSelect, WfExamineForm, WfButton, WfFlow, WfTheme, WfFormVariable }, |
|
|
|
watch: { |
|
|
|
watch: { |
|
|
|
'$route.params.params': { |
|
|
|
'$route.params.params': { |
|
|
|
@ -177,7 +179,19 @@ export default { |
|
|
|
this.option = option |
|
|
|
this.option = option |
|
|
|
this.vars = vars |
|
|
|
this.vars = vars |
|
|
|
} |
|
|
|
} |
|
|
|
this.form = variables |
|
|
|
if (this.permission.wf_process_draft && status == 'todo') { |
|
|
|
|
|
|
|
// 查询是否有草稿箱 |
|
|
|
|
|
|
|
this.initDraft({ taskId }).then(data => { |
|
|
|
|
|
|
|
this.$confirm('是否恢复之前保存的草稿?', '提示', { |
|
|
|
|
|
|
|
}).then(() => { |
|
|
|
|
|
|
|
this.form = { ...JSON.parse(data) } |
|
|
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
|
|
this.form = { ...variables } |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
|
|
this.form = { ...variables } |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} else this.form = { ...variables } |
|
|
|
this.waiting = false |
|
|
|
this.waiting = false |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|