fmui-base 2.2.19 → 2.2.21
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 +2 -0
- package/lib/form/form.js +61 -0
- package/lib/form/table.js +67 -6
- package/lib/process_info/processInfo.js +8 -2
- package/lib/process_list/processList.js +27 -27
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/form/form.js
CHANGED
|
@@ -153,6 +153,7 @@ var PageHome = function (_React$Component) {
|
|
|
153
153
|
_this.state = {
|
|
154
154
|
module: module,
|
|
155
155
|
fold: true,
|
|
156
|
+
atfold: true,
|
|
156
157
|
status: status,
|
|
157
158
|
fieldControll: props.fieldControll,
|
|
158
159
|
commentField: props.commentField,
|
|
@@ -174,6 +175,7 @@ var PageHome = function (_React$Component) {
|
|
|
174
175
|
loaded: false,
|
|
175
176
|
commentList: [],
|
|
176
177
|
phraseListNew: [],
|
|
178
|
+
attitudeList: [], //态度列表
|
|
177
179
|
savePhraseList: [{
|
|
178
180
|
value: "1",
|
|
179
181
|
checked: false,
|
|
@@ -2971,6 +2973,7 @@ var PageHome = function (_React$Component) {
|
|
|
2971
2973
|
// t.refs.slotCommonwords.show();
|
|
2972
2974
|
// } else {
|
|
2973
2975
|
if (this.state.fold) {
|
|
2976
|
+
t.setState({ atfold: true });
|
|
2974
2977
|
//获取常用语列表
|
|
2975
2978
|
_db2.default.FlowModuleAPI.getPersonalPhrase({}).then(function (content) {
|
|
2976
2979
|
if (content.length > 0) {
|
|
@@ -3002,6 +3005,42 @@ var PageHome = function (_React$Component) {
|
|
|
3002
3005
|
|
|
3003
3006
|
}
|
|
3004
3007
|
|
|
3008
|
+
//选择态度
|
|
3009
|
+
|
|
3010
|
+
}, {
|
|
3011
|
+
key: 'selectAttitude',
|
|
3012
|
+
value: function selectAttitude() {
|
|
3013
|
+
var t = this;
|
|
3014
|
+
t.setState({ atfold: !this.state.atfold });
|
|
3015
|
+
// let phraseListNow = t.state.phraseList;
|
|
3016
|
+
// if (phraseListNow.length > 0) {
|
|
3017
|
+
// t.refs.slotCommonwords.show();
|
|
3018
|
+
// } else {
|
|
3019
|
+
if (this.state.atfold) {
|
|
3020
|
+
t.setState({ fold: true });
|
|
3021
|
+
var commentAttitude = this.props.commentAttitude;
|
|
3022
|
+
var attitudeList = [];
|
|
3023
|
+
|
|
3024
|
+
if (commentAttitude == '1') {
|
|
3025
|
+
attitudeList.push({ text: '同意', value: '同意' });
|
|
3026
|
+
attitudeList.push({ text: '不同意', value: '不同意' });
|
|
3027
|
+
} else if (commentAttitude == '2') {
|
|
3028
|
+
attitudeList.push({ text: '已阅', value: '已阅' });
|
|
3029
|
+
attitudeList.push({ text: '同意', value: '同意' });
|
|
3030
|
+
attitudeList.push({ text: '不同意', value: '不同意' });
|
|
3031
|
+
}
|
|
3032
|
+
|
|
3033
|
+
t.setState({
|
|
3034
|
+
// phraseList: phraseList2,
|
|
3035
|
+
attitudeList: attitudeList
|
|
3036
|
+
}, function () {
|
|
3037
|
+
// t.refs.slotCommonwords.show();
|
|
3038
|
+
});
|
|
3039
|
+
}
|
|
3040
|
+
// }
|
|
3041
|
+
|
|
3042
|
+
}
|
|
3043
|
+
|
|
3005
3044
|
//常用语设置跳转
|
|
3006
3045
|
|
|
3007
3046
|
}, {
|
|
@@ -3587,6 +3626,13 @@ var PageHome = function (_React$Component) {
|
|
|
3587
3626
|
{ onClick: this.selectCommonwords.bind(this) },
|
|
3588
3627
|
'\u5E38\u7528\u8BED'
|
|
3589
3628
|
),
|
|
3629
|
+
' ',
|
|
3630
|
+
_react2.default.createElement(
|
|
3631
|
+
'div',
|
|
3632
|
+
{ className: t.props.commentAttitude == '1' || t.props.commentAttitude == '2' ? "" : "t-DN", onClick: this.selectAttitude.bind(this) },
|
|
3633
|
+
'\u6001\u5EA6'
|
|
3634
|
+
),
|
|
3635
|
+
' ',
|
|
3590
3636
|
_react2.default.createElement(
|
|
3591
3637
|
'div',
|
|
3592
3638
|
{ onClick: this.skipToCommonwordsSet.bind(this) },
|
|
@@ -3637,6 +3683,21 @@ var PageHome = function (_React$Component) {
|
|
|
3637
3683
|
);
|
|
3638
3684
|
}.bind(this)) : ''
|
|
3639
3685
|
)
|
|
3686
|
+
),
|
|
3687
|
+
_react2.default.createElement(
|
|
3688
|
+
_FoldablePane2.default,
|
|
3689
|
+
{ foldHeight: 0, isFold: this.state.atfold },
|
|
3690
|
+
_react2.default.createElement(
|
|
3691
|
+
'div',
|
|
3692
|
+
{ className: 'phrase-list' },
|
|
3693
|
+
this.state.attitudeList.length > 0 ? this.state.attitudeList.map(function (item, i) {
|
|
3694
|
+
return _react2.default.createElement(
|
|
3695
|
+
'div',
|
|
3696
|
+
{ className: 'phrase-item', onClick: this.phraseItemClick.bind(this, item.value) },
|
|
3697
|
+
item.value
|
|
3698
|
+
);
|
|
3699
|
+
}.bind(this)) : ''
|
|
3700
|
+
)
|
|
3640
3701
|
)
|
|
3641
3702
|
)
|
|
3642
3703
|
)
|
package/lib/form/table.js
CHANGED
|
@@ -229,8 +229,10 @@ var PageHome = function (_React$Component) {
|
|
|
229
229
|
}],
|
|
230
230
|
savePhrase: [],
|
|
231
231
|
fold: true,
|
|
232
|
+
atfold: true,
|
|
232
233
|
phraseListNew: [],
|
|
233
234
|
phraseList: [], //常用语列表
|
|
235
|
+
attitudeList: [], //态度列表
|
|
234
236
|
spyj: defaultValue,
|
|
235
237
|
formRelaFieldMaps: formRelaFieldMapsNew,
|
|
236
238
|
linkFields: linkFieldsNew,
|
|
@@ -1661,6 +1663,7 @@ var PageHome = function (_React$Component) {
|
|
|
1661
1663
|
// t.refs.slotCommonwords.show();
|
|
1662
1664
|
// } else {
|
|
1663
1665
|
if (this.state.fold) {
|
|
1666
|
+
t.setState({ atfold: true });
|
|
1664
1667
|
//获取常用语列表
|
|
1665
1668
|
_db2.default.FlowModuleAPI.getPersonalPhrase({}).then(function (content) {
|
|
1666
1669
|
if (content.length > 0) {
|
|
@@ -1692,6 +1695,42 @@ var PageHome = function (_React$Component) {
|
|
|
1692
1695
|
|
|
1693
1696
|
}
|
|
1694
1697
|
|
|
1698
|
+
//选择态度
|
|
1699
|
+
|
|
1700
|
+
}, {
|
|
1701
|
+
key: 'selectAttitude',
|
|
1702
|
+
value: function selectAttitude() {
|
|
1703
|
+
var t = this;
|
|
1704
|
+
t.setState({ atfold: !this.state.atfold });
|
|
1705
|
+
// let phraseListNow = t.state.phraseList;
|
|
1706
|
+
// if (phraseListNow.length > 0) {
|
|
1707
|
+
// t.refs.slotCommonwords.show();
|
|
1708
|
+
// } else {
|
|
1709
|
+
if (this.state.atfold) {
|
|
1710
|
+
t.setState({ fold: true });
|
|
1711
|
+
var commentAttitude = this.props.commentAttitude;
|
|
1712
|
+
var attitudeList = [];
|
|
1713
|
+
|
|
1714
|
+
if (commentAttitude == '1') {
|
|
1715
|
+
attitudeList.push({ text: '同意', value: '同意' });
|
|
1716
|
+
attitudeList.push({ text: '不同意', value: '不同意' });
|
|
1717
|
+
} else if (commentAttitude == '2') {
|
|
1718
|
+
attitudeList.push({ text: '已阅', value: '已阅' });
|
|
1719
|
+
attitudeList.push({ text: '同意', value: '同意' });
|
|
1720
|
+
attitudeList.push({ text: '不同意', value: '不同意' });
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
t.setState({
|
|
1724
|
+
// phraseList: phraseList2,
|
|
1725
|
+
attitudeList: attitudeList
|
|
1726
|
+
}, function () {
|
|
1727
|
+
// t.refs.slotCommonwords.show();
|
|
1728
|
+
});
|
|
1729
|
+
}
|
|
1730
|
+
// }
|
|
1731
|
+
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1695
1734
|
//常用语设置跳转
|
|
1696
1735
|
|
|
1697
1736
|
}, {
|
|
@@ -1764,16 +1803,16 @@ var PageHome = function (_React$Component) {
|
|
|
1764
1803
|
return _react2.default.createElement(
|
|
1765
1804
|
'div',
|
|
1766
1805
|
{ className: "form_" + item2.uniqueName },
|
|
1767
|
-
_react2.default.createElement(_form2.default, { keyNo: j, ref: item2.uniqueName, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentUpload: t.props.commentUpload, 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, isRemoveCommentFormHtml: t.props.isRemoveCommentFormHtml, onChange: this.change.bind(this), reloadItemParam: this.reloadItemParam.bind(this) })
|
|
1806
|
+
_react2.default.createElement(_form2.default, { keyNo: j, ref: item2.uniqueName, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentUpload: t.props.commentUpload, commentField: t.props.commentField, commentAttitude: t.props.commentAttitude, 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, isRemoveCommentFormHtml: t.props.isRemoveCommentFormHtml, onChange: this.change.bind(this), reloadItemParam: this.reloadItemParam.bind(this) })
|
|
1768
1807
|
);
|
|
1769
1808
|
}.bind(this)) : item.itemType == 'detail' ? _react2.default.createElement(
|
|
1770
1809
|
'div',
|
|
1771
1810
|
{ className: "subform_" + item.itemCode },
|
|
1772
|
-
_react2.default.createElement(_subForm2.default, { keyNo: i, ref: 'sub_' + item.itemCode, operate: t.props.operate, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentUpload: t.props.commentUpload, 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, isRemoveCommentFormHtml: t.props.isRemoveCommentFormHtml, onChange: this.change.bind(this) })
|
|
1811
|
+
_react2.default.createElement(_subForm2.default, { keyNo: i, ref: 'sub_' + item.itemCode, operate: t.props.operate, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentUpload: t.props.commentUpload, commentField: t.props.commentField, commentAttitude: t.props.commentAttitude, 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, isRemoveCommentFormHtml: t.props.isRemoveCommentFormHtml, onChange: this.change.bind(this) })
|
|
1773
1812
|
) : _react2.default.createElement(
|
|
1774
1813
|
'div',
|
|
1775
1814
|
{ className: "form_" + item.uniqueName },
|
|
1776
|
-
_react2.default.createElement(_form2.default, { ref: item.uniqueName, keyNo: i, operate: t.props.operate, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentUpload: t.props.commentUpload, 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, isRemoveCommentFormHtml: t.props.isRemoveCommentFormHtml, onChange: this.change.bind(this), reloadItemParam: this.reloadItemParam.bind(this) })
|
|
1815
|
+
_react2.default.createElement(_form2.default, { ref: item.uniqueName, keyNo: i, operate: t.props.operate, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentUpload: t.props.commentUpload, commentField: t.props.commentField, commentAttitude: t.props.commentAttitude, 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, isRemoveCommentFormHtml: t.props.isRemoveCommentFormHtml, onChange: this.change.bind(this), reloadItemParam: this.reloadItemParam.bind(this) })
|
|
1777
1816
|
);
|
|
1778
1817
|
}.bind(this)) : "" : _react2.default.createElement(
|
|
1779
1818
|
'div',
|
|
@@ -1800,16 +1839,16 @@ var PageHome = function (_React$Component) {
|
|
|
1800
1839
|
return _react2.default.createElement(
|
|
1801
1840
|
'div',
|
|
1802
1841
|
{ className: t.state.active == item.tabCode ? "" : "t-DN" },
|
|
1803
|
-
_react2.default.createElement(_form2.default, { className: "form_" + item.uniqueName, keyNo: j, ref: item.uniqueName, operate: t.props.operate, hasCommentField: t.props.hasCommentField, commentUpload: t.props.commentUpload, 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), reloadItemParam: this.reloadItemParam.bind(this) })
|
|
1842
|
+
_react2.default.createElement(_form2.default, { className: "form_" + item.uniqueName, keyNo: j, ref: item.uniqueName, operate: t.props.operate, hasCommentField: t.props.hasCommentField, commentUpload: t.props.commentUpload, commentAttitude: t.props.commentAttitude, 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), reloadItemParam: this.reloadItemParam.bind(this) })
|
|
1804
1843
|
);
|
|
1805
1844
|
}.bind(this)) : item.itemType == 'detail' ? _react2.default.createElement(
|
|
1806
1845
|
'div',
|
|
1807
1846
|
{ className: t.state.active == item.tabCode ? "" : "t-DN" },
|
|
1808
|
-
_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, commentUpload: t.props.commentUpload, 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) })
|
|
1847
|
+
_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, commentUpload: t.props.commentUpload, commentAttitude: t.props.commentAttitude, 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) })
|
|
1809
1848
|
) : _react2.default.createElement(
|
|
1810
1849
|
'div',
|
|
1811
1850
|
{ className: t.state.active == item.tabCode ? "" : "t-DN" },
|
|
1812
|
-
_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, commentUpload: t.props.commentUpload, 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), reloadItemParam: this.reloadItemParam.bind(this) })
|
|
1851
|
+
_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, commentUpload: t.props.commentUpload, commentAttitude: t.props.commentAttitude, 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), reloadItemParam: this.reloadItemParam.bind(this) })
|
|
1813
1852
|
);
|
|
1814
1853
|
}.bind(this))
|
|
1815
1854
|
)
|
|
@@ -1865,6 +1904,13 @@ var PageHome = function (_React$Component) {
|
|
|
1865
1904
|
{ onClick: this.selectCommonwords.bind(this) },
|
|
1866
1905
|
'\u5E38\u7528\u8BED'
|
|
1867
1906
|
),
|
|
1907
|
+
' ',
|
|
1908
|
+
_react2.default.createElement(
|
|
1909
|
+
'div',
|
|
1910
|
+
{ className: t.props.commentAttitude == '1' || t.props.commentAttitude == '2' ? "" : "t-DN", onClick: this.selectAttitude.bind(this) },
|
|
1911
|
+
'\u6001\u5EA6'
|
|
1912
|
+
),
|
|
1913
|
+
' ',
|
|
1868
1914
|
_react2.default.createElement(
|
|
1869
1915
|
'div',
|
|
1870
1916
|
{ onClick: this.skipToCommonwordsSet.bind(this) },
|
|
@@ -1917,6 +1963,21 @@ var PageHome = function (_React$Component) {
|
|
|
1917
1963
|
);
|
|
1918
1964
|
}.bind(this)) : ''
|
|
1919
1965
|
)
|
|
1966
|
+
),
|
|
1967
|
+
_react2.default.createElement(
|
|
1968
|
+
_FoldablePane2.default,
|
|
1969
|
+
{ foldHeight: 0, isFold: this.state.atfold },
|
|
1970
|
+
_react2.default.createElement(
|
|
1971
|
+
'div',
|
|
1972
|
+
{ className: 'phrase-list' },
|
|
1973
|
+
this.state.attitudeList.length > 0 ? this.state.attitudeList.map(function (item, i) {
|
|
1974
|
+
return _react2.default.createElement(
|
|
1975
|
+
'div',
|
|
1976
|
+
{ className: 'phrase-item', onClick: this.phraseItemClick.bind(this, item.value) },
|
|
1977
|
+
item.value
|
|
1978
|
+
);
|
|
1979
|
+
}.bind(this)) : ''
|
|
1980
|
+
)
|
|
1920
1981
|
)
|
|
1921
1982
|
)
|
|
1922
1983
|
)
|
|
@@ -367,6 +367,7 @@ var PageHome = function (_React$Component) {
|
|
|
367
367
|
defaultValue: "",
|
|
368
368
|
commentId: "",
|
|
369
369
|
commentField: "", //批示意见字段
|
|
370
|
+
commentAttitude: "0", //批示意见态度
|
|
370
371
|
hasCommentField: '0', //是否有审批意见
|
|
371
372
|
commentIsNull: '0', //审批意见是否可为空,0是,1否
|
|
372
373
|
commentIsNotNull: '0', //审批意见是否可为空,0是,1否
|
|
@@ -989,13 +990,18 @@ var PageHome = function (_React$Component) {
|
|
|
989
990
|
if (!commentField) {
|
|
990
991
|
commentField = "";
|
|
991
992
|
}
|
|
993
|
+
var commentAttitude = content['commentAttitude'];
|
|
994
|
+
if (!commentAttitude) {
|
|
995
|
+
commentAttitude = "0";
|
|
996
|
+
}
|
|
992
997
|
t.setState({
|
|
993
998
|
shortMessageList: shortMessageList,
|
|
994
999
|
readShortMessageList: readShortMessageList,
|
|
995
1000
|
sysSMSsetting: sysSMSsetting,
|
|
996
1001
|
sysImType: '0',
|
|
997
1002
|
evoRemind: evoRemind,
|
|
998
|
-
commentField: commentField
|
|
1003
|
+
commentField: commentField,
|
|
1004
|
+
commentAttitude: commentAttitude
|
|
999
1005
|
});
|
|
1000
1006
|
if (t.state.listType == '4') {
|
|
1001
1007
|
var details = content['details'];
|
|
@@ -7502,7 +7508,7 @@ var PageHome = function (_React$Component) {
|
|
|
7502
7508
|
_react2.default.createElement(
|
|
7503
7509
|
_Group2.default.List,
|
|
7504
7510
|
null,
|
|
7505
|
-
this.state.tableStatus == '0' ? "" : _react2.default.createElement(_table2.default, { module: this.state.module, operate: this.state.operate, editType: this.state.editType, dataId: this.state.dataId, hasCommentField: t.state.hasCommentField, newspyj: t.state.newspyj, commentField: t.state.commentField, status: t.state.status, form: t.state.formItem, formStyleObj: t.state.formStyleObj, allForm: t.state.form, data: t.state.editFormData, commentFieldList: t.state.commentFieldList, defaultValue: t.state.defaultValue, commentDefaultList: t.state.commentDefaultList, commentBackList: t.state.commentBackList, fieldControll: t.state.fieldControll, caIsPrd: t.state.caIsPrd, preCaFields: t.state.preCaFields, formRelaField: t.state.formRelaField, isRemoveCommentFormHtml: t.state.isRemoveCommentFormHtml, commentUpload: t.state.commentUpload, onChange: this.change.bind(this) })
|
|
7511
|
+
this.state.tableStatus == '0' ? "" : _react2.default.createElement(_table2.default, { module: this.state.module, operate: this.state.operate, editType: this.state.editType, dataId: this.state.dataId, hasCommentField: t.state.hasCommentField, newspyj: t.state.newspyj, commentField: t.state.commentField, commentAttitude: t.state.commentAttitude, status: t.state.status, form: t.state.formItem, formStyleObj: t.state.formStyleObj, allForm: t.state.form, data: t.state.editFormData, commentFieldList: t.state.commentFieldList, defaultValue: t.state.defaultValue, commentDefaultList: t.state.commentDefaultList, commentBackList: t.state.commentBackList, fieldControll: t.state.fieldControll, caIsPrd: t.state.caIsPrd, preCaFields: t.state.preCaFields, formRelaField: t.state.formRelaField, isRemoveCommentFormHtml: t.state.isRemoveCommentFormHtml, commentUpload: t.state.commentUpload, onChange: this.change.bind(this) })
|
|
7506
7512
|
)
|
|
7507
7513
|
)
|
|
7508
7514
|
)
|
|
@@ -482,6 +482,7 @@ var PageHome = function (_React$Component2) {
|
|
|
482
482
|
var activeIndex = props.activeIndex ? props.activeIndex : 0;
|
|
483
483
|
var type = props.type ? props.type : "self"; //self:本应用,all:全模块
|
|
484
484
|
var module = props.module ? props.module : type == "self" ? "approve" : "";
|
|
485
|
+
var category = props.category ? props.category : ""; //分类
|
|
485
486
|
var hasBatch = eval(props.hasBatch ? props.hasBatch : "true"); //是否有批量办理
|
|
486
487
|
var tabCodes = props.tabCodes ? props.tabCodes : "undo,unread,done,read,myself"; //标签页
|
|
487
488
|
var searchVal = props.search;
|
|
@@ -501,17 +502,17 @@ var PageHome = function (_React$Component2) {
|
|
|
501
502
|
var readListUrl;
|
|
502
503
|
var myselfListUrl;
|
|
503
504
|
if (type == "self") {
|
|
504
|
-
undoListUrl = _variables2.default.URLS.transaction.undo + "&module=" + module;
|
|
505
|
-
unreadListUrl = _variables2.default.URLS.transaction.unread + "&module=" + module;
|
|
506
|
-
doneListUrl = _variables2.default.URLS.transaction.done + "&module=" + module;
|
|
507
|
-
readListUrl = _variables2.default.URLS.transaction.read + "&module=" + module;
|
|
508
|
-
myselfListUrl = _variables2.default.URLS.transaction.myself + "&module=" + module;
|
|
505
|
+
undoListUrl = _variables2.default.URLS.transaction.undo + "&module=" + module + "&category=" + category;
|
|
506
|
+
unreadListUrl = _variables2.default.URLS.transaction.unread + "&module=" + module + "&category=" + category;
|
|
507
|
+
doneListUrl = _variables2.default.URLS.transaction.done + "&module=" + module + "&category=" + category;
|
|
508
|
+
readListUrl = _variables2.default.URLS.transaction.read + "&module=" + module + "&category=" + category;
|
|
509
|
+
myselfListUrl = _variables2.default.URLS.transaction.myself + "&module=" + module + "&category=" + category;
|
|
509
510
|
} else {
|
|
510
|
-
undoListUrl = _variables2.default.URLS.transaction.undo + "&unified=1&sourceType=unitedapprove&module=" + module;
|
|
511
|
-
unreadListUrl = _variables2.default.URLS.transaction.unread + "&unified=1&sourceType=unitedapprove&module=" + module;
|
|
512
|
-
doneListUrl = _variables2.default.URLS.transaction.done + "&unified=1&sourceType=unitedapprove&module=" + module;
|
|
513
|
-
readListUrl = _variables2.default.URLS.transaction.read + "&unified=1&sourceType=unitedapprove&module=" + module;
|
|
514
|
-
myselfListUrl = _variables2.default.URLS.transaction.myself + "&unified=1&sourceType=unitedapprove&module=" + module;
|
|
511
|
+
undoListUrl = _variables2.default.URLS.transaction.undo + "&unified=1&sourceType=unitedapprove&module=" + module + "&category=" + category;
|
|
512
|
+
unreadListUrl = _variables2.default.URLS.transaction.unread + "&unified=1&sourceType=unitedapprove&module=" + module + "&category=" + category;
|
|
513
|
+
doneListUrl = _variables2.default.URLS.transaction.done + "&unified=1&sourceType=unitedapprove&module=" + module + "&category=" + category;
|
|
514
|
+
readListUrl = _variables2.default.URLS.transaction.read + "&unified=1&sourceType=unitedapprove&module=" + module + "&category=" + category;
|
|
515
|
+
myselfListUrl = _variables2.default.URLS.transaction.myself + "&unified=1&sourceType=unitedapprove&module=" + module + "&category=" + category;
|
|
515
516
|
}
|
|
516
517
|
_this2.state = {
|
|
517
518
|
tabCodes: tabCodes,
|
|
@@ -552,10 +553,11 @@ var PageHome = function (_React$Component2) {
|
|
|
552
553
|
category1: [],
|
|
553
554
|
category2: [],
|
|
554
555
|
category3: [],
|
|
555
|
-
category4: []
|
|
556
|
+
category4: [],
|
|
557
|
+
category: category
|
|
556
558
|
};
|
|
557
|
-
_this2.getTransactionTitleCount(module, "undo,unread");
|
|
558
|
-
_this2.getCategoryListByModule(module);
|
|
559
|
+
_this2.getTransactionTitleCount(module, "undo,unread", category);
|
|
560
|
+
_this2.getCategoryListByModule(module, category);
|
|
559
561
|
/**
|
|
560
562
|
* 办理页面搜索框设置项
|
|
561
563
|
* @type {{locale: string, instantSearch: boolean, hasHistory: boolean, searchDelay: number, onEnter: (()), onExit: (()), onChange: ((p1:*)), onSearch: ((p1?:*))}}
|
|
@@ -643,13 +645,14 @@ var PageHome = function (_React$Component2) {
|
|
|
643
645
|
|
|
644
646
|
}, {
|
|
645
647
|
key: 'getTransactionTitleCount',
|
|
646
|
-
value: function getTransactionTitleCount(module, codes) {
|
|
648
|
+
value: function getTransactionTitleCount(module, codes, category) {
|
|
647
649
|
var _this3 = this;
|
|
648
650
|
|
|
649
651
|
var t = this;
|
|
650
652
|
_db2.default.FlowApproval.getApproveCount({
|
|
651
653
|
module: module,
|
|
652
|
-
codes: codes
|
|
654
|
+
codes: codes,
|
|
655
|
+
category: category
|
|
653
656
|
}).then(function (content) {
|
|
654
657
|
_this3.state.titleCount.undo = content.undo;
|
|
655
658
|
_this3.state.titleCount.unread = content.unread;
|
|
@@ -664,12 +667,13 @@ var PageHome = function (_React$Component2) {
|
|
|
664
667
|
|
|
665
668
|
}, {
|
|
666
669
|
key: 'getCategoryListByModule',
|
|
667
|
-
value: function getCategoryListByModule(module) {
|
|
670
|
+
value: function getCategoryListByModule(module, category) {
|
|
668
671
|
var _this4 = this;
|
|
669
672
|
|
|
670
673
|
var t = this;
|
|
671
674
|
_db2.default.FlowApproval.getCategoryListByModule({
|
|
672
|
-
module: module
|
|
675
|
+
module: module,
|
|
676
|
+
code: category
|
|
673
677
|
}).then(function (content) {
|
|
674
678
|
if (content) {
|
|
675
679
|
_this4.state.categoryList = content;
|
|
@@ -1322,8 +1326,7 @@ var PageHome = function (_React$Component2) {
|
|
|
1322
1326
|
processData: this.processData.bind(this),
|
|
1323
1327
|
ref: 'transaction_undo_ref',
|
|
1324
1328
|
noDataImage: _variables2.default.nodataIcon,
|
|
1325
|
-
currentPageKey: 'page'
|
|
1326
|
-
noDataTip: this.state.noDataTip0
|
|
1329
|
+
currentPageKey: 'page'
|
|
1327
1330
|
},
|
|
1328
1331
|
_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) })
|
|
1329
1332
|
)
|
|
@@ -1372,8 +1375,7 @@ var PageHome = function (_React$Component2) {
|
|
|
1372
1375
|
processData: this.processData.bind(this),
|
|
1373
1376
|
ref: 'transaction_unread_ref',
|
|
1374
1377
|
noDataImage: _variables2.default.nodataIcon,
|
|
1375
|
-
currentPageKey: 'page'
|
|
1376
|
-
noDataTip: this.state.noDataTip1
|
|
1378
|
+
currentPageKey: 'page'
|
|
1377
1379
|
},
|
|
1378
1380
|
_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) })
|
|
1379
1381
|
)
|
|
@@ -1417,8 +1419,7 @@ var PageHome = function (_React$Component2) {
|
|
|
1417
1419
|
processData: this.processData.bind(this),
|
|
1418
1420
|
ref: 'transaction_done_ref',
|
|
1419
1421
|
noDataImage: _variables2.default.nodataIcon,
|
|
1420
|
-
currentPageKey: 'page'
|
|
1421
|
-
noDataTip: this.state.noDataTip2
|
|
1422
|
+
currentPageKey: 'page'
|
|
1422
1423
|
},
|
|
1423
1424
|
_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) })
|
|
1424
1425
|
)
|
|
@@ -1462,8 +1463,7 @@ var PageHome = function (_React$Component2) {
|
|
|
1462
1463
|
processData: this.processData.bind(this),
|
|
1463
1464
|
ref: 'transaction_read_ref',
|
|
1464
1465
|
noDataImage: _variables2.default.nodataIcon,
|
|
1465
|
-
currentPageKey: 'page'
|
|
1466
|
-
noDataTip: this.state.noDataTip3
|
|
1466
|
+
currentPageKey: 'page'
|
|
1467
1467
|
},
|
|
1468
1468
|
_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) })
|
|
1469
1469
|
)
|
|
@@ -1507,8 +1507,8 @@ var PageHome = function (_React$Component2) {
|
|
|
1507
1507
|
processData: this.processData.bind(this),
|
|
1508
1508
|
ref: 'transaction_myself_ref',
|
|
1509
1509
|
noDataImage: _variables2.default.nodataIcon,
|
|
1510
|
-
currentPageKey: 'page'
|
|
1511
|
-
|
|
1510
|
+
currentPageKey: 'page'
|
|
1511
|
+
|
|
1512
1512
|
},
|
|
1513
1513
|
_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) })
|
|
1514
1514
|
)
|