fmui-base 2.1.89 → 2.1.90

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.1.90:退回发起人结束流程调用非正常结束回调
6
7
  - 2.1.89:子表选人组件报错
7
8
  - 2.1.88:流程增加结束(退回)状态
8
9
  - 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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.1.89",
3
+ "version": "2.1.90",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",