fmui-base 2.2.37 → 2.2.39

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.2.39: 转交批示意见不必填
7
+ - 2.2.38: 选人组件扩展页签
6
8
  - 2.2.37: 北京ca加签验签修改
7
9
  - 2.2.36: 流程增加ca开关
8
10
  - 2.2.35: 流程选人去重问题,时分字段丢失修复
@@ -1638,7 +1638,7 @@ var PageHome = function (_React$Component) {
1638
1638
  for (var b = 0; b < buttonArray.length; b++) {
1639
1639
  var buttonCode = buttonArray[b];
1640
1640
  //PAGE_SAVE保存按钮只有当新建时才有,HELP_ADDLOTS加签只有在会签和串签才有,RADOM_FINISH随机流程完成按钮去掉
1641
- if (buttonCode == 'OTHER_RELATION' || buttonCode == 'FLOW_REVOKE' || buttonCode == 'RADOM_FINISH' || buttonCode == 'FLOW_CANCEL' || buttonCode == 'FLOW_RECOVER' || buttonCode == 'PAGE_PRINT' || buttonCode == 'PAGE_URGE' || buttonCode == 'PAGE_REDSET' || buttonCode == 'PAGE_FEEDBACK' || buttonCode == 'RECORD' || buttonCode == 'HELP_ADDLOTS' && (participantMode == '0' || participantMode == '3')) {
1641
+ if (buttonCode == 'OTHER_RELATION' || buttonCode == 'FLOW_REVOKE' || buttonCode == 'RADOM_FINISH' || buttonCode == 'FLOW_CANCEL' || buttonCode == 'FLOW_RECOVER' || buttonCode == 'PAGE_PRINT' || buttonCode == 'PAGE_URGE' || buttonCode == 'PAGE_REDSET' || buttonCode == 'PAGE_FEEDBACK' || buttonCode == 'RECORD' || buttonCode == 'HELP_ADDLOTS' && participantMode == '0') {
1642
1642
  continue;
1643
1643
  } else {
1644
1644
  if (isStart == true && permissionCode == 'start' || isDraft == '1') {
@@ -2145,11 +2145,11 @@ var PageHome = function (_React$Component) {
2145
2145
  if (documentId) {
2146
2146
  this.scrollToAnchor(documentId);
2147
2147
  }
2148
- _Toast2.default.show({
2149
- type: 'error',
2150
- content: '意见不能为空!'
2151
- });
2152
- return false;
2148
+ // Toast.show({
2149
+ // type: 'error',
2150
+ // content: '意见不能为空!',
2151
+ // });
2152
+ // return false;
2153
2153
  }
2154
2154
  }
2155
2155
  }
@@ -3043,7 +3043,8 @@ var PageHome = function (_React$Component) {
3043
3043
  t.setState({
3044
3044
  pageStatus: '1',
3045
3045
  backShortMessage: '0',
3046
- operate: operate
3046
+ operate: operate,
3047
+ addSignComment: ''
3047
3048
  }, function () {
3048
3049
  $(window).scrollTop(0);
3049
3050
  });
@@ -5660,7 +5661,8 @@ var PageHome = function (_React$Component) {
5660
5661
  formId: t.state.formId,
5661
5662
  processInstanceId: t.state.processInstanceId,
5662
5663
  shortMessage: shortMessage,
5663
- automaticReturn: addlotsAutomaticReturn
5664
+ automaticReturn: addlotsAutomaticReturn,
5665
+ addSignComment: t.state.addSignComment
5664
5666
  }).then(function (content) {
5665
5667
  _Toast2.default.show({
5666
5668
  type: 'success',
@@ -6898,6 +6900,22 @@ var PageHome = function (_React$Component) {
6898
6900
  backReasonText: newValue
6899
6901
  });
6900
6902
  }
6903
+ }, {
6904
+ key: 'changeAddSignComment',
6905
+ value: function changeAddSignComment(newValue) {
6906
+ var regRule = /(\ud83c[\udf00-\udfff])|(\ud83d[\udc00-\ude4f\ude80-\udeff])|[\u2600-\u2B55]/g;
6907
+ if (newValue.match(regRule)) {
6908
+ _Toast2.default.show({
6909
+ type: 'error',
6910
+ content: '请输入非表情字符'
6911
+ });
6912
+ return false;
6913
+ }
6914
+
6915
+ this.setState({
6916
+ addSignComment: newValue
6917
+ });
6918
+ }
6901
6919
  }, {
6902
6920
  key: 'handleChangePic',
6903
6921
  value: function handleChangePic(value) {
@@ -7552,6 +7570,7 @@ var PageHome = function (_React$Component) {
7552
7570
  console.log('oauthWindowURL', oauthWindowURL);
7553
7571
  if (oauthWindowURL && oauthWindowURL != null && oauthWindowURL != 'null' && typeof oauthWindowURL != 'undefined' && oauthWindowURL != '') {
7554
7572
  localStorage.setItem('oauthWindowURL', oauthWindowURL);
7573
+ localStorage.setItem('caFirm', this.state.caFirm);
7555
7574
  // console.log(getLoginUserInfo().contextPageUrl+'/mobile/shenzhengCA.html');
7556
7575
  // window.open(getLoginUserInfo().contextPageUrl+'/mobile/shenzhengCA.html');
7557
7576
  location.href = getLoginUserInfo().contextPageUrl + '/mobile/shenzhengCA.html';
@@ -8228,6 +8247,14 @@ var PageHome = function (_React$Component) {
8228
8247
  ),
8229
8248
  _react2.default.createElement(_Switch2.default, { on: this.state.addlotsAutomaticReturn, onChange: this.handleAddlotsAutomaticReturnChange.bind(this) })
8230
8249
  ),
8250
+ _react2.default.createElement(_TextareaField2.default, {
8251
+ readOnly: false,
8252
+ label: '加签意见',
8253
+ required: false,
8254
+ minRows: 5, maxRows: 10,
8255
+ placeholder: '请输入加签意见',
8256
+ value: this.state.addSignComment,
8257
+ onChange: this.changeAddSignComment.bind(this) }),
8231
8258
  _react2.default.createElement(_CheckboxField2.default, {
8232
8259
  data: this.state.shortMessageList,
8233
8260
  className: '',
@@ -7192,7 +7192,7 @@ var Page = function (_React$Component) {
7192
7192
  if (result.type == "success") {
7193
7193
  var _t$setState3;
7194
7194
 
7195
- var extList = result.content[obj.active + "List"];
7195
+ var extList = result.data[obj.active + "List"];
7196
7196
  var numObj = {};
7197
7197
  // numObj["select"+code+"Num"] = 0;
7198
7198
  // numObj["noUse"+code+"Num"] = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.2.37",
3
+ "version": "2.2.39",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",