fmui-base 2.3.1 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  ---npm publish
4
4
 
5
5
  ## 更新日志
6
+ - 2.3.2:流程设置支持配置流程转交是否填写批示意见
6
7
  - 2.3.1:传阅节点设置的参与人默认全部选中
7
8
  - 2.2.99:移动端保存批示意见态度
8
9
  - 2.2.98:批示意见态度增加回调方法
@@ -129,6 +129,14 @@ var ButtonGroup = _Button2.default.ButtonGroup,
129
129
  TextButton = _Button2.default.TextButton;
130
130
  //import UserInfo from '../approval-details/UserInfo';
131
131
 
132
+ /** 转交批示意见系统设置是否必填;无 getSysSettingByMark 方法时视为不必填 */
133
+ function isSysTransferCommentRequired() {
134
+ if (typeof getSysSettingByMark !== 'function') {
135
+ return false;
136
+ }
137
+ return getSysSettingByMark('approveTransferComment') == '1';
138
+ }
139
+
132
140
  var isCaReload = false;
133
141
  window.addEventListener('pageshow', function () {
134
142
  console.log("isCaReload===" + isCaReload);
@@ -2175,7 +2183,11 @@ var PageHome = function (_React$Component) {
2175
2183
  }
2176
2184
  } else if (hasCommentField == '1' && defaultComValue == '') {
2177
2185
 
2178
- if (commentIsNull == '1' || commentIsNotNull == '1') {
2186
+ var commentRequired = commentIsNull == '1' || commentIsNotNull == '1';
2187
+ if (operate == 3) {
2188
+ commentRequired = commentRequired && isSysTransferCommentRequired();
2189
+ }
2190
+ if (commentRequired) {
2179
2191
  //不可为空
2180
2192
  var documentId = t.state.newspyj.documentId;
2181
2193
  if (t.state.commentField == 'default') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",