|
|
|
|
@ -24,14 +24,17 @@ export default { |
|
|
|
|
process: { |
|
|
|
|
handler(val) { |
|
|
|
|
if (!val) return |
|
|
|
|
const { hideComment, hideAttachment, hideCopy, hideExamine, copyUser, copyUserName,taskName } = val |
|
|
|
|
console.log(['运维公司执行任务'].includes(taskName)) |
|
|
|
|
const { hideComment, hideAttachment, hideCopy, hideExamine, copyUser, copyUserName,taskName,processIsFinished } = 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) // 默认抄送人 |
|
|
|
|
if (taskName === "发起人" && ['reject','recall'.includes(processIsFinished)]) { |
|
|
|
|
this.findObject(this.examineOption.column, 'attachment').display = false |
|
|
|
|
this.findObject(this.examineOption.column, 'comment').display = false |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
deep: true, |
|
|
|
|
immediate: true |
|
|
|
|
@ -98,7 +101,7 @@ export default { |
|
|
|
|
span: 24, |
|
|
|
|
event: { |
|
|
|
|
click: () => { |
|
|
|
|
this.$emit('user-select', { type: 'assignee', checkType: 'checkbox' }) |
|
|
|
|
this.$emit('user-select', { type: 'assignee'}) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
rules: [{ required: true, message: "请指定审批人" }], |
|
|
|
|
|