查看: 2224|回复: 4

流程的默认提交界面的意见不能为空,该怎么写?

升级   0.04%

6

主题

6

回帖

4

积分

注册会员

Rank: 2

积分
4
发表于 2024-6-4 16:41:17 | 显示全部楼层 |阅读模式
流程的默认提交界面的意见不能为空,该怎么写?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

升级   0.04%

6

主题

6

回帖

4

积分

注册会员

Rank: 2

积分
4
发表于 2024-6-4 16:55:52 | 显示全部楼层
已解决if( this.form.opinion === "" ){ //判断意见
      return "请填写意见";
}else{
      return true;
}
回复

使用道具 举报

升级   0.04%

6

主题

6

回帖

4

积分

注册会员

Rank: 2

积分
4
发表于 2024-6-4 17:01:48 | 显示全部楼层
周建军 发表于 2024-6-4 16:55
已解决if( this.form.opinion === "" ){ //判断意见
      return "请填写意见";
}else{

if( this.form.opinion === "" ){ //判断意见
      return "请填写意见";
}else{
      return true;
}


但是这样写的话,在拟稿人提交的界面弹不出来提示,其他审批人可以弹出来提示,是怎么回事?
Uncaught TypeError: Cannot read property 'setStyle' of undefined
    at Object.notValidationOpinionMode (<anonymous>:1:130478)
    at Object.i.extend.$owner (mootools-1.6.0_all.js:1399)
    at Object.validationOpinion (<anonymous>:1:129781)
    at Object.i.extend.$owner (mootools-1.6.0_all.js:1399)
    at Object.validation (<anonymous>:1:129186)
    at Object.i.extend.$owner [as validation] (mootools-1.6.0_all.js:1399)
    at Object.submitWork (<anonymous>:1:131562)
    at Object.i.extend.$owner [as submitWork] (mootools-1.6.0_all.js:1399)
    at Object.onSubmit (<anonymous>:1:141387)
    at Object.<anonymous> (<anonymous>:1:183472)
notValidationOpinionMode @ VM2963:1
i.extend.$owner @ mootools-1.6.0_all.js:1399
validationOpinion @ VM2963:1
i.extend.$owner @ mootools-1.6.0_all.js:1399
validation @ VM2963:1
i.extend.$owner @ mootools-1.6.0_all.js:1399
submitWork @ VM2963:1
i.extend.$owner @ mootools-1.6.0_all.js:1399
onSubmit @ VM2963:1
(匿名) @ VM2913:1
(匿名) @ mootools-1.6.0_all.js:235
each @ mootools-1.6.0_all.js:345
fireEvent @ VM2913:1
i.extend.$owner @ mootools-1.6.0_all.js:1399
(匿名) @ VM3739:1
saveOrgsWithCheckEmpower @ VM3739:1
i.extend.$owner @ mootools-1.6.0_all.js:1399
submit @ VM3739:1
i.extend.$owner @ mootools-1.6.0_all.js:1399
submit @ VM3739:1
i.extend.$owner @ mootools-1.6.0_all.js:1399
(匿名) @ VM2963:1
setTimeout(异步)
(匿名) @ VM2963:1
(匿名) @ VM2913:1
a @ mootools-1.6.0_all.js:4606

F12,报这个错
回复

使用道具 举报

升级   0.04%

6

主题

6

回帖

4

积分

注册会员

Rank: 2

积分
4
发表于 2024-6-4 17:03:02 | 显示全部楼层
可不可以设置拟稿人不用填意见,审批人必须填意见?
回复

使用道具 举报

升级   100%

139

主题

1万

回帖

4万

积分

超级版主

Rank: 8Rank: 8

积分
41458
发表于 2024-6-5 11:18:48 | 显示全部楼层
this.workContext.getWork().activityName;获取当前所在的活动节点,排除一下拟稿环节
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系客服 关注微信 下载APP 返回顶部 返回列表
viewthread