|
|
@@ -887,7 +887,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
showToolBarsBtn(key) {
|
|
|
- if (this.readonly) {
|
|
|
+ if (this.readonly && this.params.action !== 'edit') {
|
|
|
return !['flowChart','approvalHistory', 'pdf', 'cancel'].includes(key)
|
|
|
}
|
|
|
|
|
|
@@ -897,11 +897,15 @@ export default {
|
|
|
return !['flowChart','approvalHistory', 'pdf', 'cancel', 'save', 'submit'].includes(key)
|
|
|
}
|
|
|
|
|
|
- if (status === '已编制') {
|
|
|
+ if (status === '已编制' && this.params.action == 'edit') {
|
|
|
+ //已编制状态不允许修改表单内容
|
|
|
+ this.readonly = true
|
|
|
return !['flowChart','approvalHistory', 'pdf', 'cancel', 'save', 'sendBack','doEndProcess', 'submit'].includes(key)
|
|
|
}
|
|
|
|
|
|
- if (status === '已审核') {
|
|
|
+ if (status === '已审核' && this.params.action == 'edit') {
|
|
|
+ //已审核状态不允许修改表单内容
|
|
|
+ this.readonly = true
|
|
|
return !['flowChart','approvalHistory', 'pdf', 'cancel', 'save', 'sendBack','doEndProcess', 'submit'].includes(key)
|
|
|
}
|
|
|
|