|
|
@@ -2676,14 +2676,10 @@ class Approval extends Component {
|
|
|
for (let i = 0; i < approvals.length; i++) {
|
|
|
let approval = approvals[i]
|
|
|
if (!isObjNull(approval)) {
|
|
|
- if (approval.neerInput
|
|
|
- ||approval.canInput
|
|
|
- ) {
|
|
|
- if (isObjEmpty(approval.values) && mApprovalRecord.buttonName !='updatedetail') {
|
|
|
+ if (approval.neerInput||approval.canInput) {
|
|
|
+ if (isObjEmpty(approval.values) && mApprovalRecord.buttonName !='updatedetail'&&!approval.canInput) {
|
|
|
let msg = '必填字段 ' + approval.caption + '为必填项'
|
|
|
- if (showTocat
|
|
|
- &&!approval.canInput
|
|
|
- ) {
|
|
|
+ if (showTocat) {
|
|
|
message.error(msg)
|
|
|
}
|
|
|
return null
|