fmui-base 2.0.67 → 2.0.68
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 +1 -0
- package/lib/form/subForm.js +1 -1
- package/lib/form/table.js +14 -81
- package/lib/process_info/processInfo.js +29 -1
- package/lib/react_grid/react_grid copy.js +1411 -1343
- package/lib/react_grid/react_grid.js +6 -20
- package/lib/react_grid/react_grid.less +142 -102
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/form/subForm.js
CHANGED
|
@@ -656,7 +656,7 @@ var PageHome = function (_React$Component) {
|
|
|
656
656
|
'div',
|
|
657
657
|
{ className: item.show ? "" : "t-DN" },
|
|
658
658
|
item.form.map(function (item2, j) {
|
|
659
|
-
return _react2.default.createElement(_form2.default, { keyNo: i, ref: item2.uniqueName + '_' + i, dataType: 'sub', subTblName: t.state.itemParam.key, module: t.state.module, formKey: item2.formKey, status: t.state.status, form: item2, allForm: t.props.allForm, formStyle: t.props.formStyle, data: t.state.itemParam.value[i], fieldControll: t.state.fieldControll, caIsPrd: t.props.caIsPrd, preCaFields: t.props.preCaFields, formRelaFieldMaps: t.props.formRelaFieldMaps, linkFields: t.props.linkFields, onChange: _this2.changeSub.bind(_this2, _this2.state.itemParam, i) });
|
|
659
|
+
return _react2.default.createElement(_form2.default, { className: "subform_" + item2.uniqueName, keyNo: i, ref: item2.uniqueName + '_' + i, dataType: 'sub', subTblName: t.state.itemParam.key, module: t.state.module, formKey: item2.formKey, status: t.state.status, form: item2, allForm: t.props.allForm, formStyle: t.props.formStyle, data: t.state.itemParam.value[i], fieldControll: t.state.fieldControll, caIsPrd: t.props.caIsPrd, preCaFields: t.props.preCaFields, formRelaFieldMaps: t.props.formRelaFieldMaps, linkFields: t.props.linkFields, onChange: _this2.changeSub.bind(_this2, _this2.state.itemParam, i) });
|
|
660
660
|
})
|
|
661
661
|
)
|
|
662
662
|
);
|
package/lib/form/table.js
CHANGED
|
@@ -786,8 +786,9 @@ var PageHome = function (_React$Component) {
|
|
|
786
786
|
$('.hejidiv-' + subTableName).find('span')[le - 1].innerText = tx.replace(';', '');
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
|
+
|
|
790
|
+
this.props.onChange(data, itemParam);
|
|
789
791
|
}
|
|
790
|
-
this.props.onChange(data);
|
|
791
792
|
}
|
|
792
793
|
|
|
793
794
|
//重新加载关联字段
|
|
@@ -1557,16 +1558,16 @@ var PageHome = function (_React$Component) {
|
|
|
1557
1558
|
return item.itemType == 'twocolumns' || item.itemType == 'threecolumns' ? item.children.map(function (item2, j) {
|
|
1558
1559
|
return _react2.default.createElement(
|
|
1559
1560
|
'div',
|
|
1560
|
-
|
|
1561
|
-
_react2.default.createElement(_form2.default, { keyNo: j, ref:
|
|
1561
|
+
{ className: "form_" + item2.uniqueName },
|
|
1562
|
+
_react2.default.createElement(_form2.default, { keyNo: j, ref: item2.uniqueName, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item2, allForm: t.props.allForm, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, defaultValue: t.props.defaultValue, data: t.props.data, fieldControll: t.props.fieldControll, caIsPrd: t.props.caIsPrd, preCaFields: t.props.preCaFields, formRelaFieldMaps: t.state.formRelaFieldMaps, linkFields: t.state.linkFields, onChange: this.change.bind(this) })
|
|
1562
1563
|
);
|
|
1563
1564
|
}.bind(this)) : item.itemType == 'detail' ? _react2.default.createElement(
|
|
1564
1565
|
'div',
|
|
1565
|
-
|
|
1566
|
+
{ className: "subform_" + item.itemCode },
|
|
1566
1567
|
_react2.default.createElement(_subForm2.default, { keyNo: i, ref: 'sub_' + item.itemCode, operate: t.props.operate, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item, allForm: t.props.allForm, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, defaultValue: t.props.defaultValue, data: t.props.data, fieldControll: t.props.fieldControll, caIsPrd: t.props.caIsPrd, preCaFields: t.props.preCaFields, formRelaFieldMaps: t.state.formRelaFieldMaps, linkFields: t.state.linkFields, onChange: this.change.bind(this) })
|
|
1567
1568
|
) : _react2.default.createElement(
|
|
1568
1569
|
'div',
|
|
1569
|
-
|
|
1570
|
+
{ className: "form_" + item.uniqueName },
|
|
1570
1571
|
_react2.default.createElement(_form2.default, { ref: item.uniqueName, keyNo: i, operate: t.props.operate, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item, allForm: t.props.allForm, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, defaultValue: t.props.defaultValue, data: t.props.data, fieldControll: t.props.fieldControll, caIsPrd: t.props.caIsPrd, preCaFields: t.props.preCaFields, formRelaFieldMaps: t.state.formRelaFieldMaps, linkFields: t.state.linkFields, onChange: this.change.bind(this) })
|
|
1571
1572
|
);
|
|
1572
1573
|
}.bind(this)) : "" : _react2.default.createElement(
|
|
@@ -1594,16 +1595,16 @@ var PageHome = function (_React$Component) {
|
|
|
1594
1595
|
return _react2.default.createElement(
|
|
1595
1596
|
'div',
|
|
1596
1597
|
{ className: t.state.active == item.tabCode ? "" : "t-DN" },
|
|
1597
|
-
_react2.default.createElement(_form2.default, { keyNo: j, ref: item.uniqueName, operate: t.props.operate, hasCommentField: t.props.hasCommentField, newspyj: t.props.newspyj, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item2, allForm: t.props.allForm, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, data: t.props.data, fieldControll: t.props.fieldControll, onChange: this.change.bind(this) })
|
|
1598
|
+
_react2.default.createElement(_form2.default, { className: "form_" + item.uniqueName, keyNo: j, ref: item.uniqueName, operate: t.props.operate, hasCommentField: t.props.hasCommentField, newspyj: t.props.newspyj, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item2, allForm: t.props.allForm, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, data: t.props.data, fieldControll: t.props.fieldControll, onChange: this.change.bind(this) })
|
|
1598
1599
|
);
|
|
1599
1600
|
}.bind(this)) : item.itemType == 'detail' ? _react2.default.createElement(
|
|
1600
1601
|
'div',
|
|
1601
1602
|
{ className: t.state.active == item.tabCode ? "" : "t-DN" },
|
|
1602
|
-
_react2.default.createElement(_subForm2.default, { keyNo: i, ref: 'sub_' + item.itemCode, operate: t.props.operate, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item, allForm: t.props.allForm, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, data: t.props.data, fieldControll: t.props.fieldControll, onChange: this.change.bind(this) })
|
|
1603
|
+
_react2.default.createElement(_subForm2.default, { className: "subform_" + item.itemCode, keyNo: i, ref: 'sub_' + item.itemCode, operate: t.props.operate, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item, allForm: t.props.allForm, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, data: t.props.data, fieldControll: t.props.fieldControll, onChange: this.change.bind(this) })
|
|
1603
1604
|
) : _react2.default.createElement(
|
|
1604
1605
|
'div',
|
|
1605
1606
|
{ className: t.state.active == item.tabCode ? "" : "t-DN" },
|
|
1606
|
-
_react2.default.createElement(_form2.default, { ref: item.uniqueName, keyNo: i, operate: t.props.operate, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item, allForm: t.props.allForm, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, data: t.props.data, fieldControll: t.props.fieldControll, onChange: this.change.bind(this) })
|
|
1607
|
+
_react2.default.createElement(_form2.default, { className: "form_" + item.uniqueName, ref: item.uniqueName, keyNo: i, operate: t.props.operate, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item, allForm: t.props.allForm, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, data: t.props.data, fieldControll: t.props.fieldControll, onChange: this.change.bind(this) })
|
|
1607
1608
|
);
|
|
1608
1609
|
}.bind(this))
|
|
1609
1610
|
)
|
|
@@ -1628,13 +1629,13 @@ var PageHome = function (_React$Component) {
|
|
|
1628
1629
|
)
|
|
1629
1630
|
)
|
|
1630
1631
|
),
|
|
1631
|
-
_react2.default.createElement('div', { className: t.props.commentDefaultList && t.props.commentDefaultList.length > 0 ? "t-H10 t-BCf7" : 't-DN' }),
|
|
1632
|
+
_react2.default.createElement('div', { className: t.props.commentDefaultList && t.props.commentDefaultList.length > 0 || t.props.commentField == "default" ? "t-H10 t-BCf7" : 't-DN' }),
|
|
1632
1633
|
_react2.default.createElement(
|
|
1633
1634
|
'div',
|
|
1634
|
-
{ className: t.props.commentDefaultList && t.props.commentDefaultList.length > 0 ? '' : 't-DN' },
|
|
1635
|
+
{ className: t.props.commentDefaultList && t.props.commentDefaultList.length > 0 || t.props.commentField == "default" ? '' : 't-DN' },
|
|
1635
1636
|
_react2.default.createElement(
|
|
1636
1637
|
HBox,
|
|
1637
|
-
{ className: 'flex-comment t-field-box' },
|
|
1638
|
+
{ className: 'flex-comment default-comment t-field-box' },
|
|
1638
1639
|
_react2.default.createElement(
|
|
1639
1640
|
'div',
|
|
1640
1641
|
{ className: 't-field-layout-h-label t-FS16 t-FBJ' },
|
|
@@ -1647,7 +1648,7 @@ var PageHome = function (_React$Component) {
|
|
|
1647
1648
|
_react2.default.createElement(
|
|
1648
1649
|
'div',
|
|
1649
1650
|
{ className: 't-PT10 t-FB1' },
|
|
1650
|
-
_react2.default.createElement(_List2.default, { list: t.props.commentDefaultList }),
|
|
1651
|
+
t.props.commentDefaultList && t.props.commentDefaultList.length > 0 ? _react2.default.createElement(_List2.default, { list: t.props.commentDefaultList }) : "",
|
|
1651
1652
|
_react2.default.createElement(
|
|
1652
1653
|
'div',
|
|
1653
1654
|
{ className: t.props.commentField == "default" ? 't-PL10 t-PR10' : 't-DN' },
|
|
@@ -1667,7 +1668,7 @@ var PageHome = function (_React$Component) {
|
|
|
1667
1668
|
),
|
|
1668
1669
|
_react2.default.createElement(_TextareaField2.default, {
|
|
1669
1670
|
readOnly: false,
|
|
1670
|
-
minRows:
|
|
1671
|
+
minRows: 5, maxRows: 10,
|
|
1671
1672
|
placeholder: '请输入批示意见',
|
|
1672
1673
|
value: this.state.spyj,
|
|
1673
1674
|
onChange: this.changeSpyj1.bind(this) }),
|
|
@@ -1696,74 +1697,6 @@ var PageHome = function (_React$Component) {
|
|
|
1696
1697
|
)
|
|
1697
1698
|
)
|
|
1698
1699
|
)
|
|
1699
|
-
),
|
|
1700
|
-
_react2.default.createElement('div', { className: t.props.commentDefaultList && t.props.commentDefaultList.length == 0 && t.props.commentField == "default" ? "t-H10 t-BCf7" : 't-DN' }),
|
|
1701
|
-
_react2.default.createElement(
|
|
1702
|
-
'div',
|
|
1703
|
-
{ className: t.props.commentDefaultList && t.props.commentDefaultList.length == 0 && t.props.commentField == "default" ? '' : 't-DN' },
|
|
1704
|
-
_react2.default.createElement(
|
|
1705
|
-
HBox,
|
|
1706
|
-
{ className: 't-field-box' },
|
|
1707
|
-
_react2.default.createElement(
|
|
1708
|
-
'div',
|
|
1709
|
-
{ className: 't-field-layout-h-label t-FS16 t-FBJ' },
|
|
1710
|
-
_react2.default.createElement(
|
|
1711
|
-
'span',
|
|
1712
|
-
null,
|
|
1713
|
-
'\u6279\u793A\u610F\u89C1'
|
|
1714
|
-
)
|
|
1715
|
-
),
|
|
1716
|
-
_react2.default.createElement(
|
|
1717
|
-
'div',
|
|
1718
|
-
{ className: t.props.commentField == "default" ? 't-PL10 t-PT10 t-FB1' : 't-DN' },
|
|
1719
|
-
_react2.default.createElement(
|
|
1720
|
-
'div',
|
|
1721
|
-
{ className: 'theme-color t-P6 t-FS16 commonwords' },
|
|
1722
|
-
_react2.default.createElement(
|
|
1723
|
-
'div',
|
|
1724
|
-
{ onClick: this.selectCommonwords.bind(this) },
|
|
1725
|
-
'\u5E38\u7528\u8BED'
|
|
1726
|
-
),
|
|
1727
|
-
_react2.default.createElement(
|
|
1728
|
-
'div',
|
|
1729
|
-
{ onClick: this.skipToCommonwordsSet.bind(this) },
|
|
1730
|
-
'\u7F16\u8F91'
|
|
1731
|
-
)
|
|
1732
|
-
),
|
|
1733
|
-
_react2.default.createElement(
|
|
1734
|
-
'div',
|
|
1735
|
-
{ id: 'defaultCommentInput' },
|
|
1736
|
-
_react2.default.createElement(_TextareaField2.default, {
|
|
1737
|
-
readOnly: false,
|
|
1738
|
-
minRows: 3, maxRows: 5,
|
|
1739
|
-
placeholder: '请输入批示意见',
|
|
1740
|
-
value: this.state.spyj,
|
|
1741
|
-
onChange: this.changeSpyj1.bind(this) })
|
|
1742
|
-
),
|
|
1743
|
-
_react2.default.createElement(_CheckboxField2.default, {
|
|
1744
|
-
className: this.state.hasCommentField == '1' ? "" : "t-DN",
|
|
1745
|
-
data: this.state.savePhraseList,
|
|
1746
|
-
mode: 'list',
|
|
1747
|
-
onChange: this.selectSavePhrase.bind(this),
|
|
1748
|
-
required: false
|
|
1749
|
-
}),
|
|
1750
|
-
_react2.default.createElement(
|
|
1751
|
-
_FoldablePane2.default,
|
|
1752
|
-
{ foldHeight: 0, isFold: this.state.fold },
|
|
1753
|
-
_react2.default.createElement(
|
|
1754
|
-
'div',
|
|
1755
|
-
{ className: 'phrase-list' },
|
|
1756
|
-
this.state.phraseListNew.length > 0 ? this.state.phraseListNew.map(function (item, i) {
|
|
1757
|
-
return _react2.default.createElement(
|
|
1758
|
-
'div',
|
|
1759
|
-
{ className: 'phrase-item', onClick: this.phraseItemClick.bind(this, item.value) },
|
|
1760
|
-
item.value
|
|
1761
|
-
);
|
|
1762
|
-
}.bind(this)) : ''
|
|
1763
|
-
)
|
|
1764
|
-
)
|
|
1765
|
-
)
|
|
1766
|
-
)
|
|
1767
1700
|
)
|
|
1768
1701
|
);
|
|
1769
1702
|
}
|
|
@@ -1315,6 +1315,33 @@ var PageHome = function (_React$Component) {
|
|
|
1315
1315
|
}, function () {
|
|
1316
1316
|
t.refs["selectMember_circulate"].initSelectData();
|
|
1317
1317
|
t.refs["selectMember_circulate1"].initSelectData();
|
|
1318
|
+
|
|
1319
|
+
//项目开发模块统一扩展
|
|
1320
|
+
var mobileModuleExt;
|
|
1321
|
+
try {
|
|
1322
|
+
if (t.state.module) {
|
|
1323
|
+
mobileModuleExt = typeof eval(t.state.module + "_mobileExt") !== 'undefined' ? eval(t.state.module + "_mobileExt") : null;
|
|
1324
|
+
}
|
|
1325
|
+
} catch (e) {
|
|
1326
|
+
// alert("exception: "+e.message);
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
if (typeof mobileModuleExt !== 'undefined' && typeof mobileModuleExt["mainDocomentLoadSuccess"] === "function") {
|
|
1330
|
+
mobileModuleExt["mainDocomentLoadSuccess"](t.state);
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
//项目开发扩展
|
|
1334
|
+
var mobileExt;
|
|
1335
|
+
try {
|
|
1336
|
+
if (formKey) {
|
|
1337
|
+
mobileExt = typeof eval(t.state.module + "_" + formKey + "_mobileExt") !== 'undefined' ? eval(t.state.module + "_" + formKey + "_mobileExt") : null;
|
|
1338
|
+
}
|
|
1339
|
+
} catch (e) {
|
|
1340
|
+
// alert("exception: "+e.message);
|
|
1341
|
+
}
|
|
1342
|
+
if (typeof mobileExt !== 'undefined' && typeof mobileExt["mainDocomentLoadSuccess"] === "function") {
|
|
1343
|
+
content = mobileExt["mainDocomentLoadSuccess"](content);
|
|
1344
|
+
}
|
|
1318
1345
|
});
|
|
1319
1346
|
t.dealWithButtons(content, formKey);
|
|
1320
1347
|
}, function (error) {
|
|
@@ -1540,7 +1567,8 @@ var PageHome = function (_React$Component) {
|
|
|
1540
1567
|
|
|
1541
1568
|
}, {
|
|
1542
1569
|
key: 'change',
|
|
1543
|
-
value: function change(data) {
|
|
1570
|
+
value: function change(data, itemParam) {
|
|
1571
|
+
console.log("数据回调" + itemParam.key);
|
|
1544
1572
|
this.setState({
|
|
1545
1573
|
editFormData: data
|
|
1546
1574
|
});
|