fmui-base 2.1.89 → 2.1.91

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.1.91:流程转交支持修改办理缓急
7
+ - 2.1.90:退回发起人结束流程调用非正常结束回调
6
8
  - 2.1.89:子表选人组件报错
7
9
  - 2.1.88:流程增加结束(退回)状态
8
10
  - 2.1.87:流程办理支持选择办理缓急
@@ -168,6 +168,8 @@ var PageHome = function (_React$Component) {
168
168
  _inherits(PageHome, _React$Component);
169
169
 
170
170
  function PageHome(props) {
171
+ var _param;
172
+
171
173
  _classCallCheck(this, PageHome);
172
174
 
173
175
  /* $(".loading-containter").hide();*/
@@ -319,7 +321,7 @@ var PageHome = function (_React$Component) {
319
321
  //自动保存
320
322
  var autoSaveApprove = getSystemInfo().autoSaveApprove;
321
323
 
322
- var param = _defineProperty({
324
+ var param = (_param = {
323
325
  bottom: bottom,
324
326
  editType: editType,
325
327
  isDraft: isDraft,
@@ -458,7 +460,7 @@ var PageHome = function (_React$Component) {
458
460
  selectProcessCode: '', //选中的子流程
459
461
  subProcessType: '', //子流程类型 0串行 1并行
460
462
  urgencyList: [], //紧急程度列表
461
- urgency: '' }, 'urgent', '');
463
+ urgency: '' }, _defineProperty(_param, 'urgent', ''), _defineProperty(_param, 'backInitiatorEndFlow', '0'), _param);
462
464
  FlowCommon = require('pages/flow_common/' + module).default ? require('pages/flow_common/' + module).default : require('pages/flow_common/' + module);
463
465
 
464
466
  //处理特有参数
@@ -806,6 +808,7 @@ var PageHome = function (_React$Component) {
806
808
  var urgencyList = [];
807
809
  var urgency = '50';
808
810
  var urgentSelectList = {};
811
+ var backInitiatorEndFlow = '0';
809
812
  if (content.readScopeId && typeof content.readScopeId != "undefined") {
810
813
  readScopeId = content.readScopeId;
811
814
  }
@@ -837,6 +840,9 @@ var PageHome = function (_React$Component) {
837
840
  if (content.urgency && typeof content.urgency != "undefined") {
838
841
  urgency = content.urgency;
839
842
  }
843
+ if (content.backInitiatorEndFlow && typeof content.backInitiatorEndFlow != "undefined") {
844
+ backInitiatorEndFlow = content.backInitiatorEndFlow;
845
+ }
840
846
  if (content.urgencyList && typeof content.urgencyList != "undefined") {
841
847
  urgencyList = content.urgencyList;
842
848
  if (urgencyList.length > 0) {
@@ -1413,7 +1419,8 @@ var PageHome = function (_React$Component) {
1413
1419
  dataInherit: dataInherit,
1414
1420
  subProcessType: subProcessType,
1415
1421
  urgencyList: urgencyList,
1416
- urgentSelectList: urgentSelectList
1422
+ urgentSelectList: urgentSelectList,
1423
+ backInitiatorEndFlow: backInitiatorEndFlow
1417
1424
  }, function () {
1418
1425
  t.refs["selectMember_circulate"].initSelectData();
1419
1426
  t.refs["selectMember_circulate1"].initSelectData();
@@ -4172,7 +4179,11 @@ var PageHome = function (_React$Component) {
4172
4179
  var dataId = t.state.dataId;
4173
4180
  //操作回调
4174
4181
  if (content.isStart == '1' && typeof FlowCommon.operateCallBack === "function") {
4175
- FlowCommon.operateCallBack({ type: 0, dataId: dataId, isBatch: 0 }, t.state);
4182
+ if (t.state.backInitiatorEndFlow == '1') {
4183
+ FlowCommon.operateCallBack({ type: 2, dataId: dataId, isBatch: 0 }, t.state);
4184
+ } else {
4185
+ FlowCommon.operateCallBack({ type: 0, dataId: dataId, isBatch: 0 }, t.state);
4186
+ }
4176
4187
  } else if (typeof FlowCommon.operateCallBack === "function") {
4177
4188
  FlowCommon.operateCallBack({ type: 8, dataId: dataId, isBatch: 0 }, t.state);
4178
4189
  }
@@ -4186,7 +4197,11 @@ var PageHome = function (_React$Component) {
4186
4197
  // alert("exception: "+e.message);
4187
4198
  }
4188
4199
  if (content.isStart == '1' && typeof mobileExt !== 'undefined' && typeof mobileExt["operateCallBack"] === "function") {
4189
- mobileExt["operateCallBack"]({ type: 0, dataId: dataId, isBatch: 0 }, t.state);
4200
+ if (t.state.backInitiatorEndFlow == '1') {
4201
+ mobileExt["operateCallBack"]({ type: 2, dataId: dataId, isBatch: 0 }, t.state);
4202
+ } else {
4203
+ mobileExt["operateCallBack"]({ type: 0, dataId: dataId, isBatch: 0 }, t.state);
4204
+ }
4190
4205
  } else if (typeof FlowCommon.operateCallBack === "function") {
4191
4206
  FlowCommon.operateCallBack({ type: 8, dataId: dataId, isBatch: 0 }, t.state);
4192
4207
  }
@@ -5348,7 +5363,15 @@ var PageHome = function (_React$Component) {
5348
5363
  if (typeof newComment == "undefined" || newComment == '') {
5349
5364
  newComment = t.state.defaultValue;
5350
5365
  }
5366
+ var urgentListSelect = t.state.urgentSelectList;
5367
+ var urgent = '';
5368
+ if (urgentListSelect && typeof urgentListSelect != "undefined" && typeof urgentListSelect.value != "undefined" && urgentListSelect.value != "") {
5369
+ urgent = urgentListSelect.value;
5370
+ }
5351
5371
 
5372
+ if (urgent == '') {
5373
+ urgent = '50';
5374
+ }
5352
5375
  var param = {
5353
5376
  formId: t.state.formId,
5354
5377
  dataId: t.state.dataId,
@@ -5366,7 +5389,8 @@ var PageHome = function (_React$Component) {
5366
5389
  permissionCode: t.state.permissionCode,
5367
5390
  participantMode: t.state.participantMode,
5368
5391
  shortMessage: shortMessage,
5369
- automaticReturn: automaticReturn
5392
+ automaticReturn: automaticReturn,
5393
+ urgent: urgent
5370
5394
  };
5371
5395
  var commentbizSn = t.guid2();
5372
5396
  if (param.commentId && param.commentId != "" && param.commentId != null && typeof param.commentId != "undefined") {
@@ -7856,6 +7880,19 @@ var PageHome = function (_React$Component) {
7856
7880
  ),
7857
7881
  _react2.default.createElement(_Switch2.default, { on: this.state.automaticReturn, onChange: this.handleAutomaticReturnChange.bind(this) })
7858
7882
  ),
7883
+ _react2.default.createElement(
7884
+ 'div',
7885
+ { className: this.state.urgencyList && this.state.urgencyList.length > 0 ? '' : 't-DN' },
7886
+ _react2.default.createElement(_SelectField2.default, {
7887
+ label: "办理缓急",
7888
+ readOnly: false,
7889
+ options: this.state.urgencyList,
7890
+ placeholder: "请选择",
7891
+ onSelect: this.changeUrgencyList.bind(this),
7892
+ value: this.state.urgentSelectList,
7893
+ multiLine: true
7894
+ })
7895
+ ),
7859
7896
  _react2.default.createElement(_CheckboxField2.default, {
7860
7897
  data: this.state.shortMessageList,
7861
7898
  className: '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.1.89",
3
+ "version": "2.1.91",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",