|
|
|
|
@ -19,22 +19,13 @@ export default { |
|
|
|
|
process: { |
|
|
|
|
handler(val) { |
|
|
|
|
if (!val) return |
|
|
|
|
if (val.hideComment) { |
|
|
|
|
this.findObject(this.examineOption.column, 'comment').display = false |
|
|
|
|
this.findObject(this.examineOption.column, 'attachment').display = false |
|
|
|
|
} |
|
|
|
|
if (val.hideCopy) { |
|
|
|
|
this.findObject(this.examineOption.column, '$copyUser').display = false |
|
|
|
|
} |
|
|
|
|
if (val.hideExamine) { |
|
|
|
|
this.findObject(this.examineOption.column, '$assignee').display = false |
|
|
|
|
} |
|
|
|
|
if (val.copyUser) { |
|
|
|
|
this.$set(this.examineForm, 'copyUser', val.copyUser) |
|
|
|
|
} |
|
|
|
|
if (val.copyUserName) { |
|
|
|
|
this.$set(this.examineForm, '$copyUser', val.copyUserName) |
|
|
|
|
} |
|
|
|
|
const { hideComment, hideAttachment, hideCopy, hideExamine, copyUser, copyUserName } = val |
|
|
|
|
if (hideComment) this.findObject(this.examineOption.column, 'comment').display = false // 隐藏评论 |
|
|
|
|
if (hideComment || hideAttachment) this.findObject(this.examineOption.column, 'attachment').display = false // 隐藏评论附件 |
|
|
|
|
if (hideCopy) this.findObject(this.examineOption.column, '$copyUser').display = false // 隐藏抄送人 |
|
|
|
|
if (hideExamine) this.findObject(this.examineOption.column, '$assignee').display = false // 隐藏指定下一步审核人 |
|
|
|
|
if (copyUser) this.$set(this.examineForm, 'copyUser', val.copyUser) // 默认抄送人 |
|
|
|
|
if (copyUserName) this.$set(this.examineForm, '$copyUser', val.copyUserName) // 默认抄送人 |
|
|
|
|
}, |
|
|
|
|
deep: true, |
|
|
|
|
immediate: true |
|
|
|
|
@ -88,7 +79,7 @@ export default { |
|
|
|
|
}, { |
|
|
|
|
label: '指定审批人', |
|
|
|
|
prop: '$assignee', |
|
|
|
|
placeholder: '请选择 下一级审批人,如不选择则使用默认处理人,驳回时无效。多选时若下一节点为多实例则按选择顺序赋值,若不是择只有第一个生效。', |
|
|
|
|
placeholder: '指定下一级审批人,如不选择则使用默认处理人,驳回时无效。多选时若下一节点为多实例并行则会进行动态加减签,若不是则只有第一个生效。', |
|
|
|
|
readonly: true, |
|
|
|
|
append: '+', |
|
|
|
|
span: 24, |
|
|
|
|
|