fmui-base 2.3.55 → 2.3.57

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.3.57:移动端自动通过返回后打开表单报错
7
+ - 2.3.56:移动端再次发起自动编号重新生成
6
8
  - 2.3.55:作废、结束、不通过弹框样式修改
7
9
  - 2.3.54:移动端支持作废数据进行删除,我的流程点开显示作废按钮显示逻辑和PC一致,移动端流程表单支持留言页签显示附件区和留言区
8
10
  - 2.3.53:移动端审批不通过功能
@@ -294,15 +294,16 @@ var PageHome = function (_React$Component) {
294
294
  addlotsLabel
295
295
  ) : null;
296
296
 
297
+ var timeStr = item.time || '';
297
298
  var dateHtml = _react2.default.createElement(
298
299
  'span',
299
300
  { className: 't-PR5' },
300
- item.time.substring(0, 10)
301
+ timeStr.substring(0, 10)
301
302
  );
302
303
  var timeHtml = _react2.default.createElement(
303
304
  'span',
304
305
  { className: 't-PR5' },
305
- item.time.substring(11)
306
+ timeStr.substring(11)
306
307
  );
307
308
  var orgNameHtml = _react2.default.createElement(
308
309
  'span',
@@ -370,10 +371,11 @@ var PageHome = function (_React$Component) {
370
371
  'div',
371
372
  null,
372
373
  t.state.commentList != null && t.state.commentList.length > 0 ? t.state.commentList.map(function (item, key) {
374
+ var commentType = item && item.type != null ? String(item.type) : '';
373
375
  return _react2.default.createElement(
374
376
  VBox,
375
377
  { className: 't-PB10 t-LH1_5 t-field t-FS14 t-PL10' },
376
- item.type.indexOf('image') < 0 ? _react2.default.createElement(Box, { className: 't-PR16', dangerouslySetInnerHTML: { __html: item.fullMessage == null ? "" : item.fullMessage.replace(/\r\n/g, '<br/>').replace(/\n/g, '<br/>').replace(/ /g, '&nbsp;') } }) : item.fullMessage == '' ? _react2.default.createElement(
378
+ commentType.indexOf('image') < 0 ? _react2.default.createElement(Box, { className: 't-PR16', dangerouslySetInnerHTML: { __html: item.fullMessage == null ? "" : String(item.fullMessage).replace(/\r\n/g, '<br/>').replace(/\n/g, '<br/>').replace(/ /g, '&nbsp;') } }) : item.fullMessage == '' ? _react2.default.createElement(
377
379
  Box,
378
380
  null,
379
381
  '\'\''
package/lib/form/form.js CHANGED
@@ -702,11 +702,18 @@ var PageHome = function (_React$Component) {
702
702
  // if(itemParam.dataAttr && itemParam.dataAttr.dataSrc=='2' && !readOnly && !itemParam.bizCodeRuleId){
703
703
  // value = form.defaultValue;
704
704
  // }
705
- // 宏值新需求,赋值字段取defaultValue
705
+ // 宏值新需求,赋值字段取defaultValue;自动编号额外兜底 form.value,避免 formData 偶发缺字段导致空白/丢数
706
706
  if (itemParam.dataAttr && itemParam.dataAttr.dataSrc == '2' && fuzhiFields != '') {
707
+ var isBizCodeMacro = itemParam.dataAttr.fromMacro && itemParam.dataAttr.fromMacro.value == 'bizCode';
707
708
  if (fuzhiFields.split(",").indexOf(itemParam.uniqueName) != -1 && form.defaultValue && form.defaultValue != null) {
708
709
  value = form.defaultValue;
710
+ } else if (isBizCodeMacro && (value === '' || value == null || typeof value == 'undefined') && form.value) {
711
+ value = form.value;
709
712
  }
713
+ } else if (itemParam.dataAttr && itemParam.dataAttr.dataSrc == '2' && itemParam.dataAttr.fromMacro && itemParam.dataAttr.fromMacro.value == 'bizCode' && (value === '' || value == null || typeof value == 'undefined') && form.value) {
714
+ value = form.value;
715
+ } else if (itemParam.dataAttr && itemParam.dataAttr.dataSrc == '2' && itemParam.dataAttr.fromMacro && itemParam.dataAttr.fromMacro.value == 'bizCode' && (value === '' || value == null || typeof value == 'undefined') && form.defaultValue) {
716
+ value = form.defaultValue;
710
717
  }
711
718
  // 当前用户签名:展示用预览 URL,落库必须保留 xxx_sinPic(与 PC TextProcessor 一致)
712
719
  if (itemParam.dataAttr && itemParam.dataAttr.dataSrc == '2' && itemParam.dataAttr.fromMacro && itemParam.dataAttr.fromMacro.value == 'currentUserSignPic') {
@@ -315,6 +315,7 @@ var PageHome = function (_React$Component) {
315
315
  if (isSub != '') {
316
316
  editType = 'readd';
317
317
  permissionCode = 'start';
318
+ status = '0'; // 按新增态取 defaultValue,自动编号才能展示/重生
318
319
  setPageTitle("新建");
319
320
  }
320
321
  var isPush = props.isPush;
@@ -8888,10 +8889,11 @@ var PageHome = function (_React$Component) {
8888
8889
  permissionCode = 'other';
8889
8890
  }
8890
8891
  }
8891
- //子流程打开
8892
+ //子流程打开 / 再次发起
8892
8893
  if (isSub != '') {
8893
8894
  editType = 'readd';
8894
8895
  permissionCode = 'start';
8896
+ status = '0';
8895
8897
  setPageTitle("新建");
8896
8898
  }
8897
8899
  var isPush = nextProps.isPush;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.3.55",
3
+ "version": "2.3.57",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",