fmui-base 2.2.29 → 2.2.30

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.2.30: 加签自动返回
6
7
  - 2.2.29: 关联表批示意见渲染
7
8
  - 2.2.28: 表单组件支持单独渲染
8
9
  - 2.2.27: 批示意见落款被加签的用户增加标识
@@ -464,7 +464,7 @@ var PageHome = function (_React$Component) {
464
464
  selectProcessCode: '', //选中的子流程
465
465
  subProcessType: '', //子流程类型 0串行 1并行
466
466
  urgencyList: [], //紧急程度列表
467
- urgency: '' }, _defineProperty(_param, 'urgent', ''), _defineProperty(_param, 'backInitiatorEndFlow', '0'), _defineProperty(_param, 'oauthWindowURL', ''), _defineProperty(_param, 'isCaUser', '0'), _param);
467
+ urgency: '' }, _defineProperty(_param, 'urgent', ''), _defineProperty(_param, 'backInitiatorEndFlow', '0'), _defineProperty(_param, 'oauthWindowURL', ''), _defineProperty(_param, 'isCaUser', '0'), _defineProperty(_param, 'addlotsReturn', ''), _param);
468
468
  FlowCommon = require('pages/flow_common/' + module).default ? require('pages/flow_common/' + module).default : require('pages/flow_common/' + module);
469
469
 
470
470
  //处理特有参数
@@ -813,9 +813,13 @@ var PageHome = function (_React$Component) {
813
813
  var urgency = '50';
814
814
  var urgentSelectList = {};
815
815
  var backInitiatorEndFlow = '0';
816
+ var addlotsReturn = ''; //加签自动返回 串签时生效,0否,1是
816
817
  if (content.readScopeId && typeof content.readScopeId != "undefined") {
817
818
  readScopeId = content.readScopeId;
818
819
  }
820
+ if (content.addlotsReturn && typeof content.addlotsReturn != "undefined") {
821
+ addlotsReturn = content.addlotsReturn;
822
+ }
819
823
  if (content.isRemoveCommentFormHtml && typeof content.isRemoveCommentFormHtml != "undefined") {
820
824
  isRemoveCommentFormHtml = content.isRemoveCommentFormHtml;
821
825
  }
@@ -1451,7 +1455,8 @@ var PageHome = function (_React$Component) {
1451
1455
  urgentSelectList: urgentSelectList,
1452
1456
  backInitiatorEndFlow: backInitiatorEndFlow,
1453
1457
  oauthWindowURL: oauthWindowURL,
1454
- isCaUser: isCaUser
1458
+ isCaUser: isCaUser,
1459
+ addlotsReturn: addlotsReturn
1455
1460
  }, function () {
1456
1461
  t.refs["selectMember_circulate"].initSelectData();
1457
1462
  t.refs["selectMember_circulate1"].initSelectData();
@@ -5546,17 +5551,16 @@ var PageHome = function (_React$Component) {
5546
5551
  if (addlotsShortMessage) {
5547
5552
  shortMessage = addlotsShortMessage;
5548
5553
  }
5549
- // Dialog.confirm({
5550
- // locale: 'zh_CN',
5551
- // title: '提示',
5552
- // content: '是否要'+t.state.finalButtons.get("HELP_ADDLOTS")+'审批?',
5553
- // onConfirm() {
5554
-
5555
- // },
5556
- // onCancel() {
5557
- // console.log('confirm cancel');
5558
- // },
5559
- // });
5554
+ var addlotsAutomaticReturn = '0';
5555
+ var addlotsReturn = t.state.addlotsReturn;
5556
+ if (addlotsReturn == '1') {
5557
+ addlotsAutomaticReturn = '1';
5558
+ if (t.state.addlotsAutomaticReturn == true) {
5559
+ addlotsAutomaticReturn = '1';
5560
+ } else if (t.state.addlotsAutomaticReturn == false) {
5561
+ addlotsAutomaticReturn = '0';
5562
+ }
5563
+ }
5560
5564
  db.FlowModuleAPI.addSign({
5561
5565
  dataId: t.state.dataId,
5562
5566
  taskId: t.state.taskId,
@@ -5567,7 +5571,8 @@ var PageHome = function (_React$Component) {
5567
5571
  permissionCode: t.state.permissionCode,
5568
5572
  formId: t.state.formId,
5569
5573
  processInstanceId: t.state.processInstanceId,
5570
- shortMessage: shortMessage
5574
+ shortMessage: shortMessage,
5575
+ automaticReturn: addlotsAutomaticReturn
5571
5576
  }).then(function (content) {
5572
5577
  _Toast2.default.show({
5573
5578
  type: 'success',
@@ -6659,6 +6664,16 @@ var PageHome = function (_React$Component) {
6659
6664
  });
6660
6665
  }
6661
6666
 
6667
+ /** 加签自动返回 **/
6668
+
6669
+ }, {
6670
+ key: 'handleAddlotsAutomaticReturnChange',
6671
+ value: function handleAddlotsAutomaticReturnChange(value) {
6672
+ this.setState({
6673
+ addlotsAutomaticReturn: value
6674
+ });
6675
+ }
6676
+
6662
6677
  //选择传阅用户
6663
6678
 
6664
6679
  }, {
@@ -7922,8 +7937,8 @@ var PageHome = function (_React$Component) {
7922
7937
  'div',
7923
7938
  { className: this.state.transferReturn == '1' ? "t-field-box t-FBH t-FBAC t-FBJ" : "t-DN" },
7924
7939
  _react2.default.createElement(
7925
- 'label',
7926
- { className: 'label-txt' },
7940
+ 'div',
7941
+ { className: 't-field-layout-h-label' },
7927
7942
  '\u81EA\u52A8\u8FD4\u56DE'
7928
7943
  ),
7929
7944
  _react2.default.createElement(_Switch2.default, { on: this.state.automaticReturn, onChange: this.handleAutomaticReturnChange.bind(this) })
@@ -8094,6 +8109,16 @@ var PageHome = function (_React$Component) {
8094
8109
  isDelete: true,
8095
8110
  onChange: this.addSignCallback.bind(this)
8096
8111
  }),
8112
+ _react2.default.createElement(
8113
+ 'div',
8114
+ { className: this.state.addlotsReturn == '1' && this.state.participantMode == '2' ? "t-field-box t-FBH t-FBAC t-FBJ" : "t-DN" },
8115
+ _react2.default.createElement(
8116
+ 'div',
8117
+ { className: 't-field-layout-h-label' },
8118
+ '\u81EA\u52A8\u8FD4\u56DE'
8119
+ ),
8120
+ _react2.default.createElement(_Switch2.default, { on: this.state.addlotsAutomaticReturn, onChange: this.handleAddlotsAutomaticReturnChange.bind(this) })
8121
+ ),
8097
8122
  _react2.default.createElement(_CheckboxField2.default, {
8098
8123
  data: this.state.shortMessageList,
8099
8124
  className: '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.2.29",
3
+ "version": "2.2.30",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",