fmui-base 2.3.52 → 2.3.53

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.3.53:移动端审批不通过功能
6
7
  - 2.3.52:移动端批示意见为空时允许保存并显示落款
7
8
  - 2.3.51:移动表单支持矩阵表单设置的字段名称字段内容的字体大小及颜色
8
9
  - 2.3.50:移动表单支持数据表字段宏值和关联值支持获取用户的性别、政治面貌和民族
@@ -309,8 +309,9 @@ var ScrollList = (_temp = _class = function (_React$Component) {
309
309
  var lastChild = !Array.isArray(children) ? children : children[children.length - 1];
310
310
  var isLastChildFunc = typeof lastChild === 'function';
311
311
  if (!isLastChildFunc) {
312
+ var childProps = lastChild.props || {};
312
313
  return data.map(function (item, i) {
313
- return _react2.default.cloneElement(lastChild, _extends({
314
+ return _react2.default.cloneElement(lastChild, _extends({}, item, {
314
315
  /* eslint-disable react/no-array-index-key */
315
316
  key: 'child-' + i,
316
317
  /* selint-enable react/no-array-index-key */
@@ -318,8 +319,15 @@ var ScrollList = (_temp = _class = function (_React$Component) {
318
319
  first: i === 0,
319
320
  last: i === len,
320
321
  odd: odd(i),
321
- data: item
322
- }, item));
322
+ data: item,
323
+ // 接口字段不得覆盖列表项静态 props(如 listTabType/fromType)
324
+ listTabType: childProps.listTabType,
325
+ fromType: childProps.fromType,
326
+ ableClick: childProps.ableClick,
327
+ isBatch: childProps.isBatch,
328
+ projectPath: childProps.projectPath,
329
+ updateAbleClick: childProps.updateAbleClick
330
+ }));
323
331
  });
324
332
  }
325
333
  return data.map(function (item, i) {
package/lib/db/db.js CHANGED
@@ -823,6 +823,21 @@ context.create('FlowModuleAPI', {
823
823
  });
824
824
  }
825
825
  },
826
+ notPass: {
827
+ mockUrl: 'query/getDoneTaskListByProcessId.json',
828
+ url: _variables2.default.URLS.notPass,
829
+ method: 'GET',
830
+ header: {
831
+ Authorization: 'Bearer ' + getLoginUserInfo().token
832
+ },
833
+ willFetch: function willFetch() {
834
+ _Toast2.default.show({
835
+ content: _react2.default.createElement(_loading2.default, null),
836
+ hasMask: true,
837
+ duration: 800
838
+ });
839
+ }
840
+ },
826
841
  getUndoTaskInfo: {
827
842
  mockUrl: 'query/getUndoTaskInfo.json',
828
843
  url: _variables2.default.URLS.getUndoTaskInfo,
@@ -95,6 +95,7 @@ exports.default = {
95
95
  getDoneTaskListByProcessId: approveUrlPrefix + "getDoneTaskListByProcessId" + '?', //根据流程实例id查询已办
96
96
  cancelProcess: approveUrlPrefix + 'cancelProcess' + '?', //作废流程
97
97
  forceEnd: approveUrlPrefix + 'forceEnd' + '?', //结束流程
98
+ notPass: approveUrlPrefix + 'notPass' + '?', //不通过
98
99
  getUndoTaskInfo: approveUrlPrefix + "getUndoTaskInfo" + '?', //获取待办详情
99
100
  batchValidateForm: approveUrlPrefix + "batchValidateForm" + '?', //批量校验表单必填
100
101
  batchCheckCaAuth: approveUrlPrefix + "batchCheckCaAuth" + '?', //批量通过前CA授权检测
@@ -538,6 +538,7 @@ var PageHome = function (_React$Component) {
538
538
  'jump': '此文件已跳转',
539
539
  'zf': '此文件已作废',
540
540
  'end': '此文件已结束',
541
+ 'notPass': '此文件不通过',
541
542
  'withdraw': '此文件已撤回',
542
543
  'back': '此文件已退回',
543
544
  'view': '此文件已办理'
@@ -1149,8 +1149,6 @@ var PageHome = function (_React$Component) {
1149
1149
  commentAttitude: commentAttitude
1150
1150
  });
1151
1151
  if (t.state.listType == '4') {
1152
- var details = content['details'];
1153
- if (details != null && details['showType'] == '1' && details['operationDetails'] != null) {}
1154
1152
  t.setState({
1155
1153
  taskId: content.taskId
1156
1154
  });
@@ -1171,6 +1169,7 @@ var PageHome = function (_React$Component) {
1171
1169
  'jump': '此文件已跳转',
1172
1170
  'zf': '此文件已作废',
1173
1171
  'end': '此文件已结束',
1172
+ 'notPass': '此文件不通过',
1174
1173
  'withdraw': '此文件已撤回',
1175
1174
  'back': '此文件已退回',
1176
1175
  'view': '此文件已办理'
@@ -1391,6 +1390,12 @@ var PageHome = function (_React$Component) {
1391
1390
  details.userName = details.dealName;
1392
1391
  details.time = details.dealTime;
1393
1392
  details.fullMessage = details.operationDetails;
1393
+ // 我的流程不通过:与 PC 一致弹「不通过原因」
1394
+ var processStatus = String(content.processStatus != null ? content.processStatus : content.status != null ? content.status : '');
1395
+ if (details.dealaction == 'notPass' || processStatus == '6') {
1396
+ var npName = t.state.finalButtons && t.state.finalButtons.get("BASE_NOTPASS") || '不通过';
1397
+ titleCommentBackAlert = npName + '原因';
1398
+ }
1394
1399
  commentBackAlert.push(content.details);
1395
1400
  } else if (content.details && content.details != null && content.details.showType == '3') {
1396
1401
  titleCommentBackAlert = '加签意见';
@@ -2564,6 +2569,9 @@ var PageHome = function (_React$Component) {
2564
2569
  case 'BASE_END':
2565
2570
  t.handleSubmit(8);
2566
2571
  break;
2572
+ case 'BASE_NOTPASS':
2573
+ t.handleSubmit(21);
2574
+ break;
2567
2575
  case 'BASE_INVALID':
2568
2576
  t.handleSubmit(9);
2569
2577
  break;
@@ -3352,6 +3360,40 @@ var PageHome = function (_React$Component) {
3352
3360
  });
3353
3361
 
3354
3362
  // this.handleEnd();
3363
+ } else if (operate == 21) {
3364
+ //不通过
3365
+ _db2.default.FlowModuleAPI.getAllActivity({
3366
+ processInstanceId: t.state.processInstanceId
3367
+ }).then(function (content) {
3368
+ var allActivity = content;
3369
+ if (allActivity != null && allActivity != '' && allActivity.length > 0) {
3370
+ var selectOptions = [];
3371
+ allActivity.map(function (item, index) {
3372
+ var option = {};
3373
+ option.value = item.id;
3374
+ option.text = item.name;
3375
+ option.disable = false;
3376
+ if (index == 0) {
3377
+ option.checked = true;
3378
+ } else {
3379
+ option.checked = false;
3380
+ }
3381
+ option.name = item.name;
3382
+ selectOptions.push(option);
3383
+ });
3384
+ t.setState({
3385
+ allActivityEnd: selectOptions,
3386
+ designActivityEnd: selectOptions[0].value,
3387
+ operate: operate,
3388
+ endReason: '',
3389
+ pageStatus: '1'
3390
+ }, function () {
3391
+ $(window).scrollTop(0);
3392
+ });
3393
+ }
3394
+ }).catch(function (error) {
3395
+ console.error(error);
3396
+ });
3355
3397
  } else if (operate == 9) {
3356
3398
  //作废
3357
3399
 
@@ -4471,6 +4513,9 @@ var PageHome = function (_React$Component) {
4471
4513
  } else if (operate == 8) {
4472
4514
  //结束
4473
4515
  this.handleEnd();
4516
+ } else if (operate == 21) {
4517
+ //不通过
4518
+ this.handleNotPass();
4474
4519
  } else if (operate == 9) {
4475
4520
  //作废
4476
4521
  this.handleInvalid();
@@ -5930,6 +5975,70 @@ var PageHome = function (_React$Component) {
5930
5975
  });
5931
5976
  }
5932
5977
 
5978
+ //不通过
5979
+
5980
+ }, {
5981
+ key: 'handleNotPass',
5982
+ value: function handleNotPass() {
5983
+ var t = this;
5984
+ var isPush = t.state.isPush;
5985
+ var db = _db2.default;
5986
+ var btnName = t.state.finalButtons.get("BASE_NOTPASS") || '不通过';
5987
+ if (t.state.endReason == null || t.state.endReason.trim() == '') {
5988
+ _Toast2.default.show({
5989
+ type: 'error',
5990
+ content: btnName + '原因不能为空'
5991
+ });
5992
+ return false;
5993
+ }
5994
+ db.FlowModuleAPI.notPass({
5995
+ taskId: t.state.taskId,
5996
+ dataId: t.state.dataId,
5997
+ formId: t.state.formId,
5998
+ processInstanceId: t.state.processInstanceId,
5999
+ module: t.state.module,
6000
+ permissionCode: t.state.permissionCode,
6001
+ designActivity: t.state.designActivityEnd,
6002
+ reminders: t.state.endShortMessage,
6003
+ notPassReason: t.state.endReason,
6004
+ actionName: btnName
6005
+ }).then(function (content) {
6006
+ _Toast2.default.show({
6007
+ type: 'success',
6008
+ content: btnName + '成功'
6009
+ });
6010
+ var dataId = t.state.dataId;
6011
+ if (typeof FlowCommon.operateCallBack === "function") {
6012
+ FlowCommon.operateCallBack({ type: 2, dataId: dataId, isBatch: 0 }, t.state);
6013
+ }
6014
+ var mobileExt;
6015
+ try {
6016
+ if (t.state.formKey) {
6017
+ mobileExt = typeof eval(t.state.module + "_" + t.state.formKey + "_mobileExt") !== 'undefined' ? eval(t.state.module + "_" + t.state.formKey + "_mobileExt") : null;
6018
+ }
6019
+ } catch (e) {}
6020
+ if (typeof mobileExt !== 'undefined' && typeof mobileExt["operateCallBack"] === "function") {
6021
+ mobileExt["operateCallBack"]({ type: 2, dataId: dataId, isBatch: 0 }, t.state);
6022
+ }
6023
+ if (isPush == '0') {
6024
+ setTimeout(function () {
6025
+ history.back();
6026
+ }, 1500);
6027
+ } else if (isPush == '1') {
6028
+ closePage();
6029
+ } else {
6030
+ backPage();
6031
+ }
6032
+ }).catch(function (error) {
6033
+ setTimeout(function () {
6034
+ _Toast2.default.show({
6035
+ type: 'error',
6036
+ content: error.errorMsg || btnName + '失败'
6037
+ });
6038
+ }, 800);
6039
+ });
6040
+ }
6041
+
5933
6042
  //完成
5934
6043
 
5935
6044
  }, {
@@ -7125,6 +7234,8 @@ var PageHome = function (_React$Component) {
7125
7234
  buttonCodeListNew.push({ name: buttonName, type: 'secondary', display: 'inline', no: 6 });
7126
7235
  } else if (buttonCode == 'BASE_END') {
7127
7236
  buttonCodeListNew.push({ name: buttonName, type: 'secondary', display: 'inline', no: 8 });
7237
+ } else if (buttonCode == 'BASE_NOTPASS') {
7238
+ buttonCodeListNew.push({ name: buttonName, type: 'danger', display: 'inline', no: 21 });
7128
7239
  } else if (buttonCode == 'BASE_INVALID') {
7129
7240
  buttonCodeListNew.push({ name: buttonName, type: 'danger', display: 'inline', no: 9 });
7130
7241
  } else if (buttonCode == 'HELP_DISTRIBUTE') {
@@ -7178,6 +7289,8 @@ var PageHome = function (_React$Component) {
7178
7289
  buttonList.push({ name: buttonName, type: 'secondary', display: 'inline', no: 6 });
7179
7290
  } else if (buttonCode == 'BASE_END') {
7180
7291
  buttonList.push({ name: buttonName, type: 'secondary', display: 'inline', no: 8 });
7292
+ } else if (buttonCode == 'BASE_NOTPASS') {
7293
+ buttonList.push({ name: buttonName, type: 'danger', display: 'inline', no: 21 });
7181
7294
  } else if (buttonCode == 'BASE_INVALID') {
7182
7295
  buttonList.push({ name: buttonName, type: 'danger', display: 'inline', no: 9 });
7183
7296
  } else if (buttonCode == 'HELP_DISTRIBUTE') {
@@ -9735,6 +9848,42 @@ var PageHome = function (_React$Component) {
9735
9848
  onChange: this.changEndShortMessage.bind(this),
9736
9849
  required: false })
9737
9850
  ),
9851
+ _react2.default.createElement(
9852
+ _Group2.default.List,
9853
+ { className: this.state.operate == 21 ? '' : 't-DN' },
9854
+ _react2.default.createElement(
9855
+ 'div',
9856
+ { style: { background: '#f2f3f5', padding: '10px 5px' } },
9857
+ _react2.default.createElement(
9858
+ 'span',
9859
+ { className: 'theme-color' },
9860
+ _react2.default.createElement('i', { className: 'iconfont icon-back t-rotate-180 t-FS14 t-FR' }),
9861
+ this.state.finalButtons.get("BASE_NOTPASS") || '不通过'
9862
+ )
9863
+ ),
9864
+ _react2.default.createElement(_TextareaField2.default, {
9865
+ readOnly: false,
9866
+ label: (this.state.finalButtons.get("BASE_NOTPASS") || '不通过') + '原因',
9867
+ required: true,
9868
+ minRows: 3, maxRows: 6,
9869
+ placeholder: '请输入' + (this.state.finalButtons.get("BASE_NOTPASS") || '不通过') + '原因',
9870
+ value: this.state.endReason,
9871
+ onChange: this.changeEndReasonText.bind(this) }),
9872
+ _react2.default.createElement(_CheckboxField2.default, {
9873
+ className: 't-W100',
9874
+ required: false,
9875
+ label: "提醒对象",
9876
+ readOnly: false,
9877
+ data: this.state.allActivityEnd,
9878
+ onChange: this.selectEndActivityChange.bind(this)
9879
+ }),
9880
+ _react2.default.createElement(_CheckboxField2.default, {
9881
+ data: this.state.shortMessageList,
9882
+ className: '',
9883
+ mode: 'list',
9884
+ onChange: this.changEndShortMessage.bind(this),
9885
+ required: false })
9886
+ ),
9738
9887
  _react2.default.createElement(
9739
9888
  _Group2.default.List,
9740
9889
  { className: this.state.operate == 9 ? '' : 't-DN' },
@@ -80,6 +80,34 @@ var HBox = _Boxs2.default.HBox,
80
80
 
81
81
  var searchVal = '';
82
82
  var isPageHide = false;
83
+
84
+ function resolveFormKey(itemInfo, callback) {
85
+ var formKey = itemInfo.formKey || itemInfo.formId;
86
+ if (formKey && formKey !== 'undefined' && formKey !== 'null') {
87
+ callback(formKey);
88
+ return;
89
+ }
90
+ var processInstanceId = itemInfo.processInstanceId;
91
+ if (!processInstanceId) {
92
+ callback('');
93
+ return;
94
+ }
95
+ _db2.default.FlowModuleAPI.getDoneTaskListByProcessId({
96
+ processInstanceId: processInstanceId,
97
+ module: itemInfo.module || ''
98
+ }).then(function (content) {
99
+ var rows = content && (content.data || content.rows || content);
100
+ if (rows && !Array.isArray(rows) && rows.data) {
101
+ rows = rows.data;
102
+ }
103
+ if (Array.isArray(rows) && rows.length > 0 && rows[0].formKey) {
104
+ formKey = rows[0].formKey;
105
+ }
106
+ callback(formKey || '');
107
+ }).catch(function () {
108
+ callback('');
109
+ });
110
+ }
83
111
  window.addEventListener('pageshow', function () {
84
112
  console.log("isPageHide===" + isPageHide);
85
113
  if (isPageHide) {
@@ -100,86 +128,154 @@ var ListItem = function (_React$Component) {
100
128
  }
101
129
 
102
130
  _createClass(ListItem, [{
131
+ key: 'navigateToProcessDetails',
132
+ value: function navigateToProcessDetails(itemInfo, param_list_type, param_formKey) {
133
+ var param_businessKey = itemInfo.businessKey;
134
+ var module = itemInfo.module;
135
+ var type = this.props.fromType;
136
+ var projectPath = this.props.projectPath;
137
+ var taskId = '';
138
+ var processInstanceId = itemInfo.processInstanceId;
139
+ // 避免 formKey 为空时拼出字面量 undefined
140
+ if (!param_formKey || param_formKey === 'undefined' || param_formKey === 'null') {
141
+ param_formKey = itemInfo.formKey || itemInfo.formId || '-1';
142
+ }
143
+ if (param_list_type == '2') {
144
+ taskId = itemInfo.taskId;
145
+ } else {
146
+ taskId = itemInfo.id;
147
+ }
148
+ var loginUserId = getLoginUserInfo().userId;
149
+ if (type == "self") {
150
+ var url = "process/processDetails/" + taskId + "/" + param_formKey + "/" + param_businessKey + "/" + param_list_type + "/0/" + processInstanceId + "/" + module + "/" + loginUserId;
151
+ if (searchVal != '') {
152
+ url += "/" + searchVal;
153
+ }
154
+ decodeURI(url);
155
+ location.hash = url;
156
+ } else {
157
+ isPageHide = true;
158
+ var fullUrl = window.location.href;
159
+ fullUrl = fullUrl.replace(/clientType/g, "");
160
+ fullUrl = fullUrl.replace(/thirdMenuType/g, "");
161
+ fullUrl = fullUrl.replace(/clientAppType/g, "");
162
+ var mobilePath = module;
163
+ if (module == 'bud_cost') {
164
+ fullUrl = fullUrl.replace("/" + projectPath + "/", "/budget/budgetcost/").split('?_')[0].split('/approval/all')[0];
165
+ } else if (module == 'bud_project') {
166
+ fullUrl = fullUrl.replace("/" + projectPath + "/", "/budget/budgetproject/").split('?_')[0].split('/approval/all')[0];
167
+ } else if (module == 'hoa_topic' || module == 'hoa_funds' || module == 'hoa_achievements') {
168
+ fullUrl = fullUrl.replace("/" + projectPath + "/", "/ky/ky/").split('?_')[0].split('/approval/all')[0];
169
+ } else if (module.indexOf("dj_") != '-1' || module.indexOf("jj_") != '-1' || module.indexOf("zdh_") != '-1' || module.indexOf("gh_") != '-1') {
170
+ fullUrl = fullUrl.split('?_')[0].split('/approval/all')[0];
171
+ } else if (module.indexOf("hoa_") != '-1') {
172
+ var category = module.split("_")[0];
173
+ mobilePath = module.substring(module.indexOf("_") + 1);
174
+ fullUrl = fullUrl.replace("/" + projectPath + "/", "/" + category + "/" + mobilePath + "/").split('?_')[0].split('/approval/all')[0];
175
+ } else {
176
+ fullUrl = fullUrl.replace("/" + projectPath + "/", "/modules/" + mobilePath + "/").split('?_')[0].split('/approval/all')[0];
177
+ }
178
+ var _url = "process/processDetails/" + taskId + "/" + param_formKey + "/" + param_businessKey + "/" + param_list_type + "/0/" + processInstanceId + "/" + module + "/" + loginUserId;
179
+ _url = fullUrl + '/' + _url;
180
+ decodeURI(_url);
181
+ location.href = _url;
182
+ }
183
+ }
184
+ }, {
185
+ key: 'openProcessDetails',
186
+ value: function openProcessDetails(itemInfo, param_list_type) {
187
+ var _this2 = this;
188
+
189
+ resolveFormKey(itemInfo, function (param_formKey) {
190
+ _this2.navigateToProcessDetails(itemInfo, param_list_type, param_formKey);
191
+ });
192
+ }
193
+ }, {
103
194
  key: 'clickDetail',
104
195
  value: function clickDetail(event) {
105
- var _this2 = this;
196
+ var _this3 = this;
106
197
 
107
198
  //我的流程
108
- if (this.props.type == '4') {
109
- var t = this;
110
- this.setState({
111
- timeOutEvent: setTimeout(function () {
112
- _ActionSheet2.default.show({
113
- options: ['详情', '再次发送'],
114
- destructiveButtonIndex: 2,
115
- message: '',
116
- maskClosable: true
117
- }, function (index) {
118
- var itemInfo = _this2.props.data;
119
- console.log(itemInfo);
120
- var param_processKey = itemInfo.processKey; // 流程类型code
121
- var param_formKey = itemInfo.formKey; // 表单id
122
- var param_businessKey = itemInfo.businessKey; // 表单数据id;
123
- var param_startUserId = itemInfo.startUserId; // 流程发起人id
124
- var param_list_type = _this2.props.type; // 列表类型 待办-0,待阅-1,
125
- var processName = itemInfo.processName; // 流程名称
126
- var module = itemInfo.module; // 流程名称
127
- var type = _this2.props.fromType; //self:本应用,all:全模块
128
- var projectPath = _this2.props.projectPath; //项目路径
129
-
130
- var taskId = '';
131
- var processInstanceId = itemInfo.processInstanceId;
132
- if (index == 0) {
133
- if (param_list_type == '2') {
134
- taskId = itemInfo.taskId;
135
- } else {
136
- taskId = itemInfo.id;
137
- }
138
- var loginUserId = getLoginUserInfo().userId;
139
- if (type == "self") {
140
- var url = "process/processDetails/" + taskId + "/" + param_formKey + "/" + param_businessKey + "/" + param_list_type + "/0/" + processInstanceId + "/" + module + "/" + loginUserId;
141
- if (searchVal != '') {
142
- url += "/" + searchVal;
143
- }
144
- decodeURI(url);
145
- location.hash = url;
146
- } else {
147
- isPageHide = true;
148
- var fullUrl = window.location.href;
149
- fullUrl = fullUrl.replace(/clientType/g, "");
150
- fullUrl = fullUrl.replace(/thirdMenuType/g, "");
151
- fullUrl = fullUrl.replace(/clientAppType/g, "");
152
- var mobilePath = module;
153
- //projectPath = modules/mobileoffice
154
- // 预算模块跳转特殊处理
155
- if (module == 'bud_cost') {
156
- fullUrl = fullUrl.replace("/" + projectPath + "/", "/budget/budgetcost/").split('?_')[0].split('/approval/all')[0];
157
- } else if (module == 'bud_project') {
158
- fullUrl = fullUrl.replace("/" + projectPath + "/", "/budget/budgetproject/").split('?_')[0].split('/approval/all')[0];
159
- } else if (module == 'hoa_topic' || module == 'hoa_funds' || module == 'hoa_achievements') {
160
- fullUrl = fullUrl.replace("/" + projectPath + "/", "/ky/ky/").split('?_')[0].split('/approval/all')[0];
161
- } else if (module.indexOf("dj_") != '-1' || module.indexOf("jj_") != '-1' || module.indexOf("zdh_") != '-1' || module.indexOf("gh_") != '-1') {
162
- fullUrl = fullUrl.split('?_')[0].split('/approval/all')[0];
163
- } else if (module.indexOf("hoa_") != '-1') {
164
- var category = module.split("_")[0];
165
- mobilePath = module.substring(module.indexOf("_") + 1);
166
- fullUrl = fullUrl.replace("/" + projectPath + "/", "/" + category + "/" + mobilePath + "/").split('?_')[0].split('/approval/all')[0];
167
- } else {
168
- fullUrl = fullUrl.replace("/" + projectPath + "/", "/modules/" + mobilePath + "/").split('?_')[0].split('/approval/all')[0];
199
+ if (this.props.listTabType == '4') {
200
+ try {
201
+ _Popup2.default.hide();
202
+ } catch (e) {}
203
+ _ActionSheet2.default.show({
204
+ options: ['详情', '再次发送'],
205
+ maskClosable: true
206
+ }, function (index) {
207
+ var itemInfo = _this3.props.data;
208
+ console.log(itemInfo);
209
+ var param_processKey = itemInfo.processKey; // 流程类型code
210
+ var param_businessKey = itemInfo.businessKey; // 表单数据id;
211
+ var param_startUserId = itemInfo.startUserId; // 流程发起人id
212
+ var param_list_type = _this3.props.listTabType; // 列表类型 待办-0,待阅-1,
213
+ var processName = itemInfo.processName; // 流程名称
214
+ var module = itemInfo.module; // 流程名称
215
+ var type = _this3.props.fromType; //self:本应用,all:全模块
216
+ var projectPath = _this3.props.projectPath; //项目路径
217
+
218
+ if (index == 0) {
219
+ _this3.openProcessDetails(itemInfo, param_list_type);
220
+ } else if (index == 1) {
221
+ var param = {
222
+ code: param_processKey
223
+ };
224
+ _db2.default.FlowModuleAPI.startFlowTest(param).then(function (content) {
225
+ var canStart = content.canStart;
226
+ var reminder = content.reminder;
227
+ if (canStart == "1") {
228
+ _db2.default.FlowModuleAPI.startProcess(param).then(function (content) {
229
+ var openTaskId = content.openTaskId;
230
+ var processInstanceId = content.processInstanceId;
231
+ var list = content.list;
232
+ if (openTaskId != null && openTaskId != '') {
233
+ if (list != null && list != '' && list.length > 0) {
234
+ for (var j = 0; j < list.length; j++) {
235
+ if (openTaskId == list[j].id && module == 'approve') {
236
+
237
+ var path = '#/process/processDetails/' + openTaskId + '/' + list[j].formKey + '/' + param_businessKey + '/0/0/' + list[j].processInstanceId + '/approve/' + param_startUserId + '/null/' + '2';
238
+ location.hash = path;
239
+ } else if (openTaskId == list[j].id && module != 'approve') {
240
+ var fullUrl = window.location.href;
241
+ fullUrl = fullUrl.replace(/clientType/g, "");
242
+ fullUrl = fullUrl.replace(/thirdMenuType/g, "");
243
+ fullUrl = fullUrl.replace(/clientAppType/g, "");
244
+ var projectPath = 'modules/approve';
245
+ var mobilePath = '';
246
+ // 预算模块跳转特殊处理
247
+ if (module == 'bud_cost') {
248
+ fullUrl = fullUrl.replace("/" + projectPath + "/", "/budget/budgetcost/").split('?_')[0].split('#/')[0];
249
+ } else if (module == 'bud_project') {
250
+ fullUrl = fullUrl.replace("/" + projectPath + "/", "/budget/budgetproject/").split('?_')[0].split('#/')[0];
251
+ } else if (module == 'hoa_topic' || module == 'hoa_funds' || module == 'hoa_achievements') {
252
+ fullUrl = fullUrl.replace("/" + projectPath + "/", "/ky/ky/").split('?_')[0].split('#/')[0];
253
+ } else if (module == 'contract_sign' || module == 'contract_exmanage') {
254
+ fullUrl = fullUrl.replace("/" + projectPath + "/", "/contract/contract/").split('?_')[0].split('#/')[0];
255
+ } else if (module.indexOf("dj_") != '-1' || module.indexOf("jj_") != '-1' || module.indexOf("zdh_") != '-1' || module.indexOf("gh_") != '-1') {
256
+ fullUrl = fullUrl.split('?_')[0].split('#/')[0];
257
+ } else if (module.indexOf("hoa_") != '-1') {
258
+ var category = module.split("_")[0];
259
+ mobilePath = module.substring(module.indexOf("_") + 1);
260
+ fullUrl = fullUrl.replace("/" + projectPath + "/", "/" + category + "/" + mobilePath + "/").split('?_')[0].split('#/')[0];
261
+ } else {
262
+ fullUrl = fullUrl.replace("/" + projectPath + "/", "/modules/" + module + "/").split('?_')[0].split('#/')[0];
263
+ }
264
+ var url = "process/processDetails/" + openTaskId + "/" + list[j].formKey + "/" + param_businessKey + "/0/0/" + list[j].processInstanceId + "/" + module + "/" + param_startUserId + "/null/" + "2";
265
+ url = fullUrl + '#/' + url;
266
+ decodeURI(url);
267
+ location.href = url;
268
+ }
269
+ }
270
+ }
169
271
  }
170
- var _url = "process/processDetails/" + taskId + "/" + param_formKey + "/" + param_businessKey + "/" + param_list_type + "/0/" + processInstanceId + "/" + module + "/" + loginUserId;
171
- _url = fullUrl + '/' + _url;
172
- decodeURI(_url);
173
- location.href = _url;
174
- }
175
- } else if (index == 1) {
176
- var param = {
177
- code: param_processKey
178
- };
179
- _db2.default.FlowModuleAPI.startFlowTest(param).then(function (content) {
180
- var canStart = content.canStart;
181
- var reminder = content.reminder;
182
- if (canStart == "1") {
272
+ }).catch(function (error) {});
273
+ } else {
274
+ _Dialog2.default.confirm({
275
+ locale: 'zh_CN',
276
+ title: '提示',
277
+ content: reminder,
278
+ onConfirm: function onConfirm() {
183
279
  _db2.default.FlowModuleAPI.startProcess(param).then(function (content) {
184
280
  var openTaskId = content.openTaskId;
185
281
  var processInstanceId = content.processInstanceId;
@@ -189,87 +285,34 @@ var ListItem = function (_React$Component) {
189
285
  for (var j = 0; j < list.length; j++) {
190
286
  if (openTaskId == list[j].id && module == 'approve') {
191
287
 
192
- var path = '#/process/processDetails/' + openTaskId + '/' + list[j].formKey + '/' + param_businessKey + '/0/0/' + list[j].processInstanceId + '/approve/' + param_startUserId + '/null/' + '2';
288
+ var path = '#/process/processDetails/' + openTaskId + '/' + list[j].formKey + '/' + param_businessKey + '/0/0/' + list[j].processInstanceId + '/approve/' + param_startUserId + '/null/' + '2';;
193
289
  location.hash = path;
194
- } else if (openTaskId == list[j].id && module != 'approve') {
195
- var _fullUrl = window.location.href;
196
- _fullUrl = _fullUrl.replace(/clientType/g, "");
197
- _fullUrl = _fullUrl.replace(/thirdMenuType/g, "");
198
- _fullUrl = _fullUrl.replace(/clientAppType/g, "");
199
- var projectPath = 'modules/approve';
200
- var mobilePath = '';
201
- // 预算模块跳转特殊处理
202
- if (module == 'bud_cost') {
203
- _fullUrl = _fullUrl.replace("/" + projectPath + "/", "/budget/budgetcost/").split('?_')[0].split('#/')[0];
204
- } else if (module == 'bud_project') {
205
- _fullUrl = _fullUrl.replace("/" + projectPath + "/", "/budget/budgetproject/").split('?_')[0].split('#/')[0];
206
- } else if (module == 'hoa_topic' || module == 'hoa_funds' || module == 'hoa_achievements') {
207
- _fullUrl = _fullUrl.replace("/" + projectPath + "/", "/ky/ky/").split('?_')[0].split('#/')[0];
208
- } else if (module == 'contract_sign' || module == 'contract_exmanage') {
209
- _fullUrl = _fullUrl.replace("/" + projectPath + "/", "/contract/contract/").split('?_')[0].split('#/')[0];
210
- } else if (module.indexOf("dj_") != '-1' || module.indexOf("jj_") != '-1' || module.indexOf("zdh_") != '-1' || module.indexOf("gh_") != '-1') {
211
- _fullUrl = _fullUrl.split('?_')[0].split('#/')[0];
212
- } else if (module.indexOf("hoa_") != '-1') {
213
- var category = module.split("_")[0];
214
- mobilePath = module.substring(module.indexOf("_") + 1);
215
- _fullUrl = _fullUrl.replace("/" + projectPath + "/", "/" + category + "/" + mobilePath + "/").split('?_')[0].split('#/')[0];
216
- } else {
217
- _fullUrl = _fullUrl.replace("/" + projectPath + "/", "/modules/" + module + "/").split('?_')[0].split('#/')[0];
218
- }
219
- var _url2 = "process/processDetails/" + openTaskId + "/" + list[j].formKey + "/" + param_businessKey + "/0/0/" + list[j].processInstanceId + "/" + module + "/" + param_startUserId + "/null/" + "2";
220
- _url2 = _fullUrl + '#/' + _url2;
221
- decodeURI(_url2);
222
- location.href = _url2;
223
290
  }
224
291
  }
225
292
  }
226
- }
227
- }).catch(function (error) {});
228
- } else {
229
- _Dialog2.default.confirm({
230
- locale: 'zh_CN',
231
- title: '提示',
232
- content: reminder,
233
- onConfirm: function onConfirm() {
234
- _db2.default.FlowModuleAPI.startProcess(param).then(function (content) {
235
- var openTaskId = content.openTaskId;
236
- var processInstanceId = content.processInstanceId;
237
- var list = content.list;
238
- if (openTaskId != null && openTaskId != '') {
239
- if (list != null && list != '' && list.length > 0) {
240
- for (var j = 0; j < list.length; j++) {
241
- if (openTaskId == list[j].id && module == 'approve') {
242
-
243
- var path = '#/process/processDetails/' + openTaskId + '/' + list[j].formKey + '/' + param_businessKey + '/0/0/' + list[j].processInstanceId + '/approve/' + param_startUserId + '/null/' + '2';;
244
- location.hash = path;
245
- }
246
- }
247
- }
248
- } else {
249
- if (list != null && list != '' && list.length > 0) {
250
- var assigneeName = '';
251
- for (var i = 0; i < list.length; i++) {
252
- if (list[i].assigneeName != null && list[i].assigneeName != '') {
253
- assigneeName = assigneeName + ',' + list[i].assigneeName;
254
- }
255
- }
256
- _Toast2.default.show({
257
- type: 'success',
258
- content: "流程已发送给" + assigneeName.substring(1)
259
- });
293
+ } else {
294
+ if (list != null && list != '' && list.length > 0) {
295
+ var assigneeName = '';
296
+ for (var i = 0; i < list.length; i++) {
297
+ if (list[i].assigneeName != null && list[i].assigneeName != '') {
298
+ assigneeName = assigneeName + ',' + list[i].assigneeName;
260
299
  }
261
300
  }
262
- }).catch(function (error) {});
263
- },
264
- onCancel: function onCancel() {
265
- console.log('confirm cancel');
301
+ _Toast2.default.show({
302
+ type: 'success',
303
+ content: "流程已发送给" + assigneeName.substring(1)
304
+ });
305
+ }
266
306
  }
267
- });
307
+ }).catch(function (error) {});
308
+ },
309
+ onCancel: function onCancel() {
310
+ console.log('confirm cancel');
268
311
  }
269
- }).catch(function (error) {});
312
+ });
270
313
  }
271
- });
272
- }, 1)
314
+ }).catch(function (error) {});
315
+ }
273
316
  });
274
317
  } else {
275
318
  if (this.props.isBatch) {
@@ -287,62 +330,8 @@ var ListItem = function (_React$Component) {
287
330
  if (this.props.ableClick) {
288
331
  var itemInfo = this.props.data;
289
332
  console.log(itemInfo);
290
- var param_processKey = itemInfo.processKey; // 流程类型code
291
- var param_formKey = itemInfo.formKey; // 表单id
292
- var param_businessKey = itemInfo.businessKey; // 表单数据id;
293
- var param_startUserId = itemInfo.startUserId; // 流程发起人id
294
- var param_list_type = this.props.type; // 列表类型 待办-0,待阅-1,
295
- var processName = itemInfo.processName; // 流程名称
296
- var module = itemInfo.module; // 流程名称
297
- var type = this.props.fromType; //self:本应用,all:全模块
298
- var projectPath = this.props.projectPath; //项目路径
299
-
300
- var taskId = '';
301
- var processInstanceId = itemInfo.processInstanceId;
302
- if (param_list_type == '2') {
303
- taskId = itemInfo.taskId;
304
- } else {
305
- taskId = itemInfo.id;
306
- }
307
- var loginUserId = getLoginUserInfo().userId;
308
- if (type == "self") {
309
- var url = "process/processDetails/" + taskId + "/" + param_formKey + "/" + param_businessKey + "/" + param_list_type + "/0/" + processInstanceId + "/" + module + "/" + loginUserId;
310
- if (searchVal != '') {
311
- url += "/" + searchVal;
312
- }
313
- decodeURI(url);
314
- location.hash = url;
315
- } else {
316
- isPageHide = true;
317
- var fullUrl = window.location.href;
318
- fullUrl = fullUrl.replace(/clientType/g, "");
319
- fullUrl = fullUrl.replace(/thirdMenuType/g, "");
320
- fullUrl = fullUrl.replace(/clientAppType/g, "");
321
- var mobilePath = module;
322
- //projectPath = modules/mobileoffice
323
- // 预算模块跳转特殊处理
324
- if (module == 'bud_cost') {
325
- fullUrl = fullUrl.replace("/" + projectPath + "/", "/budget/budgetcost/").split('?_')[0].split('#/')[0];
326
- } else if (module == 'bud_project') {
327
- fullUrl = fullUrl.replace("/" + projectPath + "/", "/budget/budgetproject/").split('?_')[0].split('#/')[0];
328
- } else if (module == 'hoa_topic' || module == 'hoa_funds' || module == 'hoa_achievements') {
329
- fullUrl = fullUrl.replace("/" + projectPath + "/", "/ky/ky/").split('?_')[0].split('#/')[0];
330
- } else if (module == 'contract_sign' || module == 'contract_exmanage') {
331
- fullUrl = fullUrl.replace("/" + projectPath + "/", "/contract/contract/").split('?_')[0].split('#/')[0];
332
- } else if (module.indexOf("dj_") != '-1' || module.indexOf("jj_") != '-1' || module.indexOf("zdh_") != '-1' || module.indexOf("gh_") != '-1') {
333
- fullUrl = fullUrl.split('?_')[0].split('#/')[0];
334
- } else if (module.indexOf("hoa_") != '-1') {
335
- var category = module.split("_")[0];
336
- mobilePath = module.substring(module.indexOf("_") + 1);
337
- fullUrl = fullUrl.replace("/" + projectPath + "/", "/" + category + "/" + mobilePath + "/").split('?_')[0].split('#/')[0];
338
- } else {
339
- fullUrl = fullUrl.replace("/" + projectPath + "/", "/modules/" + mobilePath + "/").split('?_')[0].split('#/')[0];
340
- }
341
- var _url3 = "process/processDetails/" + taskId + "/" + param_formKey + "/" + param_businessKey + "/" + param_list_type + "/0/" + processInstanceId + "/" + module + "/" + loginUserId;
342
- _url3 = fullUrl + '#/' + _url3;
343
- decodeURI(_url3);
344
- location.href = _url3;
345
- }
333
+ var param_list_type = this.props.listTabType;
334
+ this.openProcessDetails(itemInfo, param_list_type);
346
335
  } else {
347
336
  this.props.updateAbleClick(true);
348
337
  }
@@ -356,9 +345,9 @@ var ListItem = function (_React$Component) {
356
345
  var checkIsNotComplete = true;
357
346
  var urgencyTag = false;
358
347
  var tagClass = '';
359
- if (data.type == 0 || data.type == 2) {
348
+ if (data.listTabType == 0 || data.listTabType == 2) {
360
349
  //待办 / 已办:缓急角标
361
- if (data.type == 0) {
350
+ if (data.listTabType == 0) {
362
351
  checkIsNotComplete = true;
363
352
  } else if (data.status == 2) {
364
353
  checkIsNotComplete = false;
@@ -380,14 +369,14 @@ var ListItem = function (_React$Component) {
380
369
  } else {
381
370
  urgencyTag = false;
382
371
  }
383
- } else if (data.type == 1) {
372
+ } else if (data.listTabType == 1) {
384
373
  //待阅
385
374
  if (data.status == 2) {
386
375
  checkIsNotComplete = false;
387
376
  } else {
388
377
  checkIsNotComplete = true;
389
378
  }
390
- } else if (data.type == 3) {
379
+ } else if (data.listTabType == 3) {
391
380
  //已阅
392
381
  if (data.status == 2) {
393
382
  checkIsNotComplete = false;
@@ -403,12 +392,12 @@ var ListItem = function (_React$Component) {
403
392
  }
404
393
  }
405
394
  var comleteName = data.name;
406
- if (data.type == 0) {//待办
395
+ if (data.listTabType == 0) {//待办
407
396
  // comleteName= data.curStepName;
408
- } else if (data.type == 1) {
397
+ } else if (data.listTabType == 1) {
409
398
  //待阅
410
399
  comleteName = data.nodeName;
411
- } else if (data.type == 2) {
400
+ } else if (data.listTabType == 2) {
412
401
  //已办
413
402
  if (data.status == '2') {
414
403
  comleteName = "结束";
@@ -422,10 +411,13 @@ var ListItem = function (_React$Component) {
422
411
  } else if (data.status == '5') {
423
412
  comleteName = "结束(退回)";
424
413
  checkIsNotComplete = false;
414
+ } else if (data.status == '6') {
415
+ comleteName = "不通过";
416
+ checkIsNotComplete = false;
425
417
  } else {
426
418
  comleteName = data.nodeName;
427
419
  }
428
- } else if (data.type == 3) {
420
+ } else if (data.listTabType == 3) {
429
421
  //已阅
430
422
  comleteName = data.nodeName;
431
423
  } else {
@@ -442,6 +434,9 @@ var ListItem = function (_React$Component) {
442
434
  } else if (data.status == '5') {
443
435
  comleteName = "结束(退回)";
444
436
  checkIsNotComplete = false;
437
+ } else if (data.status == '6') {
438
+ comleteName = "不通过";
439
+ checkIsNotComplete = false;
445
440
  } else {
446
441
  comleteName = data.nodeName;
447
442
  }
@@ -452,23 +447,23 @@ var ListItem = function (_React$Component) {
452
447
 
453
448
  var assigneeName = '申请人:' + data.startUserName;
454
449
 
455
- if (data.type == 0) {
450
+ if (data.listTabType == 0) {
456
451
  //待办
457
452
  assigneeName = '申请人:' + data.startUserName;
458
- } else if (data.type == 1) {
453
+ } else if (data.listTabType == 1) {
459
454
  //待阅
460
455
  assigneeName = '申请人:' + data.startUserName;
461
- } else if (data.type == 2) {
456
+ } else if (data.listTabType == 2) {
462
457
  //已办
463
458
  if (data.curUserName) {
464
459
  assigneeName = '办理人:' + data.curUserName;
465
460
  }
466
- } else if (data.type == 3) {
461
+ } else if (data.listTabType == 3) {
467
462
  //已阅
468
463
  if (data.startUserName) {
469
464
  assigneeName = '申请人:' + data.startUserName;
470
465
  }
471
- } else if (data.type == 4) {
466
+ } else if (data.listTabType == 4) {
472
467
  //我的
473
468
  if (data.curUserName) {
474
469
  assigneeName = '办理人:' + data.curUserName;
@@ -479,16 +474,16 @@ var ListItem = function (_React$Component) {
479
474
  }
480
475
  var formatTime = data.createTime;
481
476
 
482
- if (data.type == 0) {
477
+ if (data.listTabType == 0) {
483
478
  //待办
484
479
  formatTime = data.createTime;
485
- } else if (data.type == 1) {
480
+ } else if (data.listTabType == 1) {
486
481
  //待阅
487
482
  formatTime = data.createTime;
488
- } else if (data.type == 2) {
483
+ } else if (data.listTabType == 2) {
489
484
  //已办
490
485
  formatTime = data.dealTime;
491
- } else if (data.type == 3) {
486
+ } else if (data.listTabType == 3) {
492
487
  //已阅
493
488
  formatTime = data.endTime;
494
489
  } else {
@@ -568,12 +563,12 @@ var ListItem = function (_React$Component) {
568
563
  ),
569
564
  _react2.default.createElement(
570
565
  Box,
571
- { className: this.props.dueDate != null && this.props.dueDate < clock && this.props.type == 0 ? 'label label-warn' : 't-DN' },
566
+ { className: this.props.dueDate != null && this.props.dueDate < clock && this.props.listTabType == 0 ? 'label label-warn' : 't-DN' },
572
567
  '\u8D85\u65F6'
573
568
  ),
574
569
  _react2.default.createElement(
575
570
  Box,
576
- { className: this.props.deleted != null && this.props.deleted == '1' && this.props.type == 0 ? 'label label-info' : 't-DN' },
571
+ { className: this.props.deleted != null && this.props.deleted == '1' && this.props.listTabType == 0 ? 'label label-info' : 't-DN' },
577
572
  '\u6682\u4E0D\u529E\u7406'
578
573
  ),
579
574
  _react2.default.createElement(
@@ -629,7 +624,7 @@ var PageHome = function (_React$Component2) {
629
624
 
630
625
  document.addEventListener('resume', function (e) {});
631
626
 
632
- var _this3 = _possibleConstructorReturn(this, (PageHome.__proto__ || Object.getPrototypeOf(PageHome)).call(this, props));
627
+ var _this4 = _possibleConstructorReturn(this, (PageHome.__proto__ || Object.getPrototypeOf(PageHome)).call(this, props));
633
628
 
634
629
  setPageTitle('办理');
635
630
  // 禁用iOS弹性事件
@@ -678,7 +673,7 @@ var PageHome = function (_React$Component2) {
678
673
  readListUrl = _variables2.default.URLS.transaction.read + "&unified=1&sourceType=unitedapprove&module=" + module + "&category=" + category;
679
674
  myselfListUrl = _variables2.default.URLS.transaction.myself + "&unified=1&sourceType=unitedapprove&module=" + module + "&category=" + category;
680
675
  }
681
- _this3.state = {
676
+ _this4.state = {
682
677
  tabCodes: tabCodes,
683
678
  type: type,
684
679
  activeTabIndex: activeIndex, // 待办-0;待阅-1;已办-2;已阅-3;我的-4
@@ -720,13 +715,13 @@ var PageHome = function (_React$Component2) {
720
715
  category4: [],
721
716
  category: category
722
717
  };
723
- _this3.getTransactionTitleCount(module, "undo,unread", category);
724
- _this3.getCategoryListByModule(module, category, activeIndex);
718
+ _this4.getTransactionTitleCount(module, "undo,unread", category);
719
+ _this4.getCategoryListByModule(module, category, activeIndex);
725
720
  /**
726
721
  * 办理页面搜索框设置项
727
722
  * @type {{locale: string, instantSearch: boolean, hasHistory: boolean, searchDelay: number, onEnter: (()), onExit: (()), onChange: ((p1:*)), onSearch: ((p1?:*))}}
728
723
  */
729
- _this3.searchBarProps = {
724
+ _this4.searchBarProps = {
730
725
  placeholder: "请输入流程标题查询",
731
726
  instantSearch: false,
732
727
  hasHistory: false,
@@ -736,14 +731,14 @@ var PageHome = function (_React$Component2) {
736
731
  onEnter: function onEnter() {
737
732
  console.log('enter');
738
733
  },
739
- onExit: _this3.onExit.bind(_this3),
734
+ onExit: _this4.onExit.bind(_this4),
740
735
  onChange: function onChange(value) {
741
736
  console.log('Typing>>' + value);
742
737
  },
743
- onSearch: _this3.onSearch.bind(_this3)
738
+ onSearch: _this4.onSearch.bind(_this4)
744
739
  };
745
740
 
746
- return _this3;
741
+ return _this4;
747
742
  }
748
743
 
749
744
  _createClass(PageHome, [{
@@ -812,7 +807,7 @@ var PageHome = function (_React$Component2) {
812
807
  }, {
813
808
  key: 'getTransactionTitleCount',
814
809
  value: function getTransactionTitleCount(module, codes, category) {
815
- var _this4 = this;
810
+ var _this5 = this;
816
811
 
817
812
  var t = this;
818
813
  _db2.default.FlowApproval.getApproveCount({
@@ -820,8 +815,8 @@ var PageHome = function (_React$Component2) {
820
815
  codes: codes,
821
816
  category: category
822
817
  }).then(function (content) {
823
- _this4.state.titleCount.undo = content.undo;
824
- _this4.state.titleCount.unread = content.unread;
818
+ _this5.state.titleCount.undo = content.undo;
819
+ _this5.state.titleCount.unread = content.unread;
825
820
  }).catch(function (error) {
826
821
  console.log(error);
827
822
  });
@@ -835,7 +830,7 @@ var PageHome = function (_React$Component2) {
835
830
  }, {
836
831
  key: 'getCategoryListByModule',
837
832
  value: function getCategoryListByModule(module, category, listType) {
838
- var _this5 = this;
833
+ var _this6 = this;
839
834
 
840
835
  var t = this;
841
836
  var type = listType;
@@ -848,11 +843,11 @@ var PageHome = function (_React$Component2) {
848
843
  listType: type
849
844
  }).then(function (content) {
850
845
  if (content) {
851
- _this5.setState({
846
+ _this6.setState({
852
847
  categoryList: content
853
848
  });
854
849
  } else {
855
- _this5.setState({
850
+ _this6.setState({
856
851
  categoryList: []
857
852
  });
858
853
  }
@@ -1423,7 +1418,7 @@ var PageHome = function (_React$Component2) {
1423
1418
  }, {
1424
1419
  key: 'render',
1425
1420
  value: function render() {
1426
- var _this6 = this;
1421
+ var _this7 = this;
1427
1422
 
1428
1423
  var tabBarStyle = {};
1429
1424
  var winHeightStyle = { height: this.state.winHeight };
@@ -1489,7 +1484,7 @@ var PageHome = function (_React$Component2) {
1489
1484
  items: this.state.categoryList
1490
1485
  }],
1491
1486
  onConfirm: function onConfirm(data) {
1492
- _this6.filterConfirm(data);
1487
+ _this7.filterConfirm(data);
1493
1488
  } }),
1494
1489
  _react2.default.createElement(
1495
1490
  'div',
@@ -1506,7 +1501,7 @@ var PageHome = function (_React$Component2) {
1506
1501
  noDataImage: _variables2.default.nodataIcon,
1507
1502
  currentPageKey: 'page'
1508
1503
  },
1509
- _react2.default.createElement(ListItem, { type: '0', isBatch: this.state.isBatch, ableClick: this.state.ableClick, fromType: this.state.type, projectPath: this.state.projectPath, updateAbleClick: this.updateAbleClick.bind(this) })
1504
+ _react2.default.createElement(ListItem, { listTabType: '0', isBatch: this.state.isBatch, ableClick: this.state.ableClick, fromType: this.state.type, projectPath: this.state.projectPath, updateAbleClick: this.updateAbleClick.bind(this) })
1510
1505
  )
1511
1506
  )
1512
1507
  ) : "",
@@ -1538,7 +1533,7 @@ var PageHome = function (_React$Component2) {
1538
1533
  items: this.state.categoryList
1539
1534
  }],
1540
1535
  onConfirm: function onConfirm(data) {
1541
- _this6.filterConfirm(data);
1536
+ _this7.filterConfirm(data);
1542
1537
  } }),
1543
1538
  _react2.default.createElement(
1544
1539
  'div',
@@ -1555,7 +1550,7 @@ var PageHome = function (_React$Component2) {
1555
1550
  noDataImage: _variables2.default.nodataIcon,
1556
1551
  currentPageKey: 'page'
1557
1552
  },
1558
- _react2.default.createElement(ListItem, { type: '1', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, projectPath: this.state.projectPath, updateAbleClick: this.updateAbleClick.bind(this) })
1553
+ _react2.default.createElement(ListItem, { listTabType: '1', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, projectPath: this.state.projectPath, updateAbleClick: this.updateAbleClick.bind(this) })
1559
1554
  )
1560
1555
  )
1561
1556
  ) : "",
@@ -1582,7 +1577,7 @@ var PageHome = function (_React$Component2) {
1582
1577
  items: this.state.categoryList
1583
1578
  }],
1584
1579
  onConfirm: function onConfirm(data) {
1585
- _this6.filterConfirm(data);
1580
+ _this7.filterConfirm(data);
1586
1581
  } }),
1587
1582
  _react2.default.createElement(
1588
1583
  'div',
@@ -1599,7 +1594,7 @@ var PageHome = function (_React$Component2) {
1599
1594
  noDataImage: _variables2.default.nodataIcon,
1600
1595
  currentPageKey: 'page'
1601
1596
  },
1602
- _react2.default.createElement(ListItem, { type: '2', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, projectPath: this.state.projectPath, updateAbleClick: this.updateAbleClick.bind(this) })
1597
+ _react2.default.createElement(ListItem, { listTabType: '2', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, projectPath: this.state.projectPath, updateAbleClick: this.updateAbleClick.bind(this) })
1603
1598
  )
1604
1599
  )
1605
1600
  ) : "",
@@ -1626,7 +1621,7 @@ var PageHome = function (_React$Component2) {
1626
1621
  items: this.state.categoryList
1627
1622
  }],
1628
1623
  onConfirm: function onConfirm(data) {
1629
- _this6.filterConfirm(data);
1624
+ _this7.filterConfirm(data);
1630
1625
  } }),
1631
1626
  _react2.default.createElement(
1632
1627
  'div',
@@ -1643,7 +1638,7 @@ var PageHome = function (_React$Component2) {
1643
1638
  noDataImage: _variables2.default.nodataIcon,
1644
1639
  currentPageKey: 'page'
1645
1640
  },
1646
- _react2.default.createElement(ListItem, { type: '3', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, projectPath: this.state.projectPath, updateAbleClick: this.updateAbleClick.bind(this) })
1641
+ _react2.default.createElement(ListItem, { listTabType: '3', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, projectPath: this.state.projectPath, updateAbleClick: this.updateAbleClick.bind(this) })
1647
1642
  )
1648
1643
  )
1649
1644
  ) : "",
@@ -1670,7 +1665,7 @@ var PageHome = function (_React$Component2) {
1670
1665
  items: this.state.categoryList
1671
1666
  }],
1672
1667
  onConfirm: function onConfirm(data) {
1673
- _this6.filterConfirm(data);
1668
+ _this7.filterConfirm(data);
1674
1669
  } }),
1675
1670
  _react2.default.createElement(
1676
1671
  'div',
@@ -1688,7 +1683,7 @@ var PageHome = function (_React$Component2) {
1688
1683
  currentPageKey: 'page'
1689
1684
 
1690
1685
  },
1691
- _react2.default.createElement(ListItem, { type: '4', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, projectPath: this.state.projectPath, updateAbleClick: this.updateAbleClick.bind(this) })
1686
+ _react2.default.createElement(ListItem, { listTabType: '4', ableClick: this.state.ableClick, isBatch: this.state.isBatch, fromType: this.state.type, projectPath: this.state.projectPath, updateAbleClick: this.updateAbleClick.bind(this) })
1692
1687
  )
1693
1688
  )
1694
1689
  ) : ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.3.52",
3
+ "version": "2.3.53",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",