fmui-base 2.3.54 → 2.3.56

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.56:移动端再次发起自动编号重新生成
7
+ - 2.3.55:作废、结束、不通过弹框样式修改
6
8
  - 2.3.54:移动端支持作废数据进行删除,我的流程点开显示作废按钮显示逻辑和PC一致,移动端流程表单支持留言页签显示附件区和留言区
7
9
  - 2.3.53:移动端审批不通过功能
8
10
  - 2.3.52:移动端批示意见为空时允许保存并显示落款
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;
@@ -9896,7 +9898,7 @@ var PageHome = function (_React$Component) {
9896
9898
  value: this.state.endReason,
9897
9899
  onChange: this.changeEndReasonText.bind(this) }),
9898
9900
  _react2.default.createElement(_CheckboxField2.default, {
9899
- className: 't-W100',
9901
+ className: 't-W100 remind-object-field',
9900
9902
  required: false,
9901
9903
  label: "提醒对象",
9902
9904
  readOnly: false,
@@ -9932,7 +9934,7 @@ var PageHome = function (_React$Component) {
9932
9934
  value: this.state.endReason,
9933
9935
  onChange: this.changeEndReasonText.bind(this) }),
9934
9936
  _react2.default.createElement(_CheckboxField2.default, {
9935
- className: 't-W100',
9937
+ className: 't-W100 remind-object-field',
9936
9938
  required: false,
9937
9939
  label: "提醒对象",
9938
9940
  readOnly: false,
@@ -9969,7 +9971,7 @@ var PageHome = function (_React$Component) {
9969
9971
  value: this.state.processDataListDefault
9970
9972
  }),
9971
9973
  _react2.default.createElement(_CheckboxField2.default, {
9972
- className: 't-W100',
9974
+ className: 't-W100 remind-object-field',
9973
9975
  required: true,
9974
9976
  label: "提醒对象",
9975
9977
  readOnly: false,
@@ -4,4 +4,24 @@
4
4
  }
5
5
  .approve-org-switch-wrap{
6
6
  background: #fff;
7
+ }
8
+
9
+ /* 结束/不通过/作废「提醒对象」:已选文字勿压住右侧箭头(slot 模式 class 在 Field 根上) */
10
+ .remind-object-field {
11
+ .t-checkbox-field-value-wrap,
12
+ .t-checkbox-field-value-list {
13
+ max-width: 100%;
14
+ padding-right: 8px;
15
+ box-sizing: border-box;
16
+ overflow: hidden;
17
+ text-overflow: ellipsis;
18
+ white-space: nowrap;
19
+ }
20
+ .t-field-pos-icon {
21
+ flex-shrink: 0;
22
+ margin-left: 4px;
23
+ }
24
+ .t-checkbox-field-icon-slot {
25
+ flex-shrink: 0;
26
+ }
7
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.3.54",
3
+ "version": "2.3.56",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",