fmui-base 2.0.83 → 2.0.85

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,8 @@
3
3
  ---npm publish
4
4
 
5
5
  ## 更新日志
6
+ - 2.0.85:表单未用到的批示意见默认隐藏
7
+ - 2.0.84:批量办理回调时报错问题处理
6
8
  - 2.0.83:同一字段关联字段,编辑方式相同时冲突
7
9
  - 2.0.82:移动表单支持宏值签名图片
8
10
  - 2.0.81:流程批量办理组件,办理后增加回调方法
package/lib/form/form.js CHANGED
@@ -1013,6 +1013,7 @@ var PageHome = function (_React$Component) {
1013
1013
  } else if (itemType == 'mulscale') {//矩阵量表
1014
1014
  } else if (itemType == 'comment') {
1015
1015
  //批示意见
1016
+ itemParam.show = false;
1016
1017
  var commentFieldList = [];
1017
1018
  for (var _i = 0; _i < commentList.length; _i++) {
1018
1019
  var commentItem = commentList[_i];
@@ -1020,12 +1021,16 @@ var PageHome = function (_React$Component) {
1020
1021
  //评论id和code
1021
1022
  commentFieldList.push(commentItem);
1022
1023
  }
1024
+ if (itemParam.uniqueName == commentItem.field) {
1025
+ itemParam.show = true;
1026
+ }
1023
1027
  }
1024
1028
  itemParam.topicType = itemType;
1025
1029
  value = commentFieldList;
1026
1030
 
1027
1031
  if (t.state.commentField == itemParam.uniqueName && t.state.hasCommentField == '1') {
1028
1032
  this.props.newspyj.documentId = t.state.prefixName + "_" + itemParam.key;
1033
+ itemParam.show = true;
1029
1034
  }
1030
1035
  } else if (itemType == 'upload' || itemType == 'image') {
1031
1036
  //附件图片
@@ -3257,7 +3262,7 @@ var PageHome = function (_React$Component) {
3257
3262
  t.state.itemParam.isVerifySing == "1" ? _react2.default.createElement('i', { className: 'iconfont icon-checked t-PT10', style: { color: 'green' } }) : t.state.itemParam.isVerifySing == "2" ? _react2.default.createElement('i', { className: 'iconfont icon-close t-PT10', style: { color: 'red' } }) : ""
3258
3263
  )
3259
3264
  )
3260
- ) : this.state.itemParam.itemType == 'comment' ? _react2.default.createElement(
3265
+ ) : this.state.itemParam.itemType == 'comment' && this.state.itemParam.show ? _react2.default.createElement(
3261
3266
  'div',
3262
3267
  { className: t.state.itemParam.fieldId, style: t.state.itemParam.formStyleObj.contentStyle },
3263
3268
  _react2.default.createElement(
@@ -479,6 +479,7 @@ var PageHome = function (_React$Component) {
479
479
  var checkedItem = {};
480
480
  var selectUserReadOnly = false;
481
481
  var personValue = []; //选中的人
482
+ var personValues = []; //备选的人
482
483
  var participantMode = item.participantMode; //判断选人是单选还是多选
483
484
  var commonUsedData = []; //自定义选人的范围,常用
484
485
  var commonTreeData = [];
@@ -489,6 +490,7 @@ var PageHome = function (_React$Component) {
489
490
  var commonHasUser = false; //常用是否有用户
490
491
  var commonHasOrg = false; //常用是否有组织
491
492
  var commonHasGroup = false; //常用是否有群组
493
+ var type3ParNum = 0;
492
494
  if (item.type == 3) {
493
495
  //指定人选择
494
496
  selectUserReadOnly = true;
@@ -1178,9 +1180,28 @@ var PageHome = function (_React$Component) {
1178
1180
  }
1179
1181
  var barDataId = returnDataItem.dataId;
1180
1182
  var barModules = returnDataItem.modules;
1181
- var FlowCommon = require('pages/flow_common/' + barModules).default ? require('pages/flow_common/' + barModules).default : require('pages/flow_common/' + barModules);
1182
- if (FlowCommon && typeof FlowCommon.operateCallBack === "function") {
1183
- FlowCommon.operateCallBack({ type: barStatus, dataId: barDataId, isBatch: 1 }, t.state);
1183
+ var formCode = returnDataItem.formCode;
1184
+ var FlowCommon;
1185
+ debugger;
1186
+ try {
1187
+ FlowCommon = require('pages/flow_common/' + barModules).default ? require('pages/flow_common/' + barModules).default : require('pages/flow_common/' + barModules);
1188
+ if (typeof FlowCommon !== 'undefined' && typeof FlowCommon.operateCallBack === "function") {
1189
+ FlowCommon.operateCallBack({ type: barStatus, dataId: barDataId, isBatch: 1 }, t.state);
1190
+ }
1191
+ } catch (e) {
1192
+ // alert("exception: "+e.message);
1193
+ }
1194
+
1195
+ var mobileExt;
1196
+ try {
1197
+ if (barModules) {
1198
+ mobileExt = typeof eval(barModules + "_" + formCode + "_mobileExt") !== 'undefined' ? eval(barModules + "_" + formCode + "_mobileExt") : null;
1199
+ }
1200
+ if (typeof mobileExt !== 'undefined' && typeof mobileExt["operateCallBack"] === "function") {
1201
+ mobileExt["operateCallBack"]({ type: barStatus, dataId: barDataId, isBatch: 1 }, t.state);
1202
+ }
1203
+ } catch (e) {
1204
+ // alert("exception: "+e.message);
1184
1205
  }
1185
1206
  }
1186
1207
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.0.83",
3
+ "version": "2.0.85",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",