|
@@ -147,8 +147,12 @@
|
|
|
}
|
|
|
}
|
|
|
// 读取按钮配置
|
|
|
- if (this.status === 'start') {
|
|
|
+ if (this.status === 'start') { // 送审
|
|
|
this.buttons = [{code: '_flow_start', name: '启动', isHide: '0'}]
|
|
|
+ } else if (this.status === 'startAndClose') { // 送审、关闭
|
|
|
+ this.buttons = [{code: '_flow_start', name: '送审', isHide: '0'}, {code: '_flow_close', name: '关闭', isHide: '0'}]
|
|
|
+ } else if (this.status === 'startAndHold') { // 送审、暂存、关闭
|
|
|
+ this.buttons = [{code: '_flow_start', name: '送审', isHide: '0'}, {code: '_flow_save', name: '暂存', isHide: '0'}, {code: '_flow_close', name: '关闭', isHide: '0'}]
|
|
|
} else if (this.procDefKey && this.taskDefKey) {
|
|
|
// 读取按钮
|
|
|
this.taskDefExtensionService.queryByDefIdAndTaskId({
|
|
@@ -352,6 +356,10 @@
|
|
|
print () {
|
|
|
|
|
|
},
|
|
|
+ // 关闭
|
|
|
+ close () {
|
|
|
+
|
|
|
+ },
|
|
|
// 自定义按钮提交
|
|
|
commit (vars) {
|
|
|
if (this.formType === '2') { // 外置表单
|
|
@@ -431,6 +439,9 @@
|
|
|
case '_flow_print':// 打印
|
|
|
this.print()
|
|
|
break
|
|
|
+ case '_flow_close':// 打印
|
|
|
+ this.close()
|
|
|
+ break
|
|
|
default:
|
|
|
this.commit(vars) // 自定义按钮提交
|
|
|
}
|