fmui-base 2.3.81 → 2.3.82

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.82:流程待办推送审批完再点进去看不到当时审批时写的批示意见
6
7
  - 2.3.81:流程提交提醒样式调整
7
8
  - 2.3.80:流程提交提醒样式调整
8
9
  - 2.3.79:移动端表单支持子表分页,流程取消支持提醒
@@ -1244,6 +1244,7 @@ var PageHome = function (_React$Component) {
1244
1244
 
1245
1245
  // 办结状态弹窗:仅待办 type=0 或推送 isPush=1(推送待办 listType 仍为 0)
1246
1246
  var showDoneStatusAlert = String(t.state.listType) === '0' || String(t.state.isPush) === '1';
1247
+ var pendingDoneView = false;
1247
1248
  if (showDoneStatusAlert) {
1248
1249
  if (content['buttons'] == '' && content['message']) {
1249
1250
  var doneMsgMap = {
@@ -1259,6 +1260,7 @@ var PageHome = function (_React$Component) {
1259
1260
  };
1260
1261
  var doneAlert = doneMsgMap[content['message']];
1261
1262
  if (doneAlert) {
1263
+ pendingDoneView = true;
1262
1264
  t.setState({
1263
1265
  status: '2'
1264
1266
  });
@@ -1305,6 +1307,11 @@ var PageHome = function (_React$Component) {
1305
1307
  if (!hasCommentField) {
1306
1308
  hasCommentField = '0';
1307
1309
  }
1310
+ // 已办结再打开:当前节点意见留在列表里展示,不进编辑框
1311
+ if (pendingDoneView) {
1312
+ commentField = '';
1313
+ hasCommentField = '0';
1314
+ }
1308
1315
 
1309
1316
  var commentIsNull = content.commentIsNull;
1310
1317
  if (!commentIsNull) {
@@ -1534,7 +1541,7 @@ var PageHome = function (_React$Component) {
1534
1541
  // 撤回 enableEditRecallComment:后端会把原意见 taskId 绑到新待办,此处回填到编辑框(与 PC active=1 对齐)。
1535
1542
  var commentOwnerId = commentList[_i].userId || commentList[_i].createdBy || '';
1536
1543
  var currentUserId = param.userId || t.state.userId || '';
1537
- if (commentField == commentList[_i].field && commentList[_i].taskId == param.taskId && commentOwnerId && currentUserId && commentOwnerId == currentUserId) {
1544
+ if (!pendingDoneView && commentField == commentList[_i].field && commentList[_i].taskId == param.taskId && commentOwnerId && currentUserId && commentOwnerId == currentUserId) {
1538
1545
  newspyj = commentList[_i];
1539
1546
  commentId = commentList[_i].id;
1540
1547
  // 接口字段为 fullMessage,content 可能为空
@@ -1709,6 +1716,7 @@ var PageHome = function (_React$Component) {
1709
1716
  formKey: formKey,
1710
1717
  form: form,
1711
1718
  hasCommentField: hasCommentField,
1719
+ commentField: commentField,
1712
1720
  commentIsNull: commentIsNull,
1713
1721
  commentIsNotNull: commentIsNotNull,
1714
1722
  fileTitle: fileTitle,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.3.81",
3
+ "version": "2.3.82",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",