fmui-base 2.3.12 → 2.3.13
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 -1
- package/lib/db/db.js +10 -0
- package/lib/db/variables.js +2 -1
- package/lib/form/form.js +2 -1
- package/lib/form/table.js +3 -3
- package/lib/nvoice/index.js +16 -0
- package/lib/nvoice/nvoice.js +177 -0
- package/lib/nvoice/nvoice.less +0 -0
- package/lib/process_info/processInfo.js +139 -1
- package/lib/selectMember/select.js +26 -194
- package/lib/tblform/FlowCommentPane.js +2 -2
- package/package.json +1 -1
- package/lib/selectMember/select copy.js +0 -11393
|
@@ -951,127 +951,7 @@ var Page = function (_React$Component) {
|
|
|
951
951
|
var t = this;
|
|
952
952
|
var scopeList = this.state.scopeList;
|
|
953
953
|
var chooseType = this.getChooseType();
|
|
954
|
-
if ("
|
|
955
|
-
var commonCheckAll = t.state.commonCheckAll;
|
|
956
|
-
commonCheckAll = !commonCheckAll;
|
|
957
|
-
var commonUsedData = t.state.commonUsedData;
|
|
958
|
-
var total = t.state.total;
|
|
959
|
-
var selectCommonNum = t.state.selectCommonNum;
|
|
960
|
-
var selectedList = t.state.selectedList;
|
|
961
|
-
var selectUsers = selectedList.selectUsers;
|
|
962
|
-
var selectOrgs = selectedList.selectOrgs;
|
|
963
|
-
var selectRoles = selectedList.selectRoles;
|
|
964
|
-
var selectStations = selectedList.selectStations;
|
|
965
|
-
var selectGroups = selectedList.selectGroups;
|
|
966
|
-
if (selectUsers == null || selectUsers == undefined) {
|
|
967
|
-
selectUsers = [];
|
|
968
|
-
}
|
|
969
|
-
if (selectOrgs == null || selectOrgs == undefined) {
|
|
970
|
-
selectOrgs = [];
|
|
971
|
-
}
|
|
972
|
-
if (selectRoles == null || selectRoles == undefined) {
|
|
973
|
-
selectRoles = [];
|
|
974
|
-
}
|
|
975
|
-
if (selectStations == null || selectStations == undefined) {
|
|
976
|
-
selectStations = [];
|
|
977
|
-
}
|
|
978
|
-
if (selectGroups == null || selectGroups == undefined) {
|
|
979
|
-
selectGroups = [];
|
|
980
|
-
}
|
|
981
|
-
if (commonCheckAll) {
|
|
982
|
-
for (var i = 0; i < commonUsedData.length; i++) {
|
|
983
|
-
var common = commonUsedData[i];
|
|
984
|
-
if (!common.checked) {
|
|
985
|
-
commonUsedData[i].checked = true;
|
|
986
|
-
total++;
|
|
987
|
-
selectCommonNum++;
|
|
988
|
-
var selectedData = { id: common.scopeValue };
|
|
989
|
-
var selectData = null;
|
|
990
|
-
if (common.scopeType == "user") {
|
|
991
|
-
selectedData.userName = common.scopeName;
|
|
992
|
-
selectedData.imageId = common.imageId;
|
|
993
|
-
selectData = selectUsers;
|
|
994
|
-
} else if (common.scopeType == "org") {
|
|
995
|
-
selectedData.orgName = common.scopeName;
|
|
996
|
-
selectData = selectOrgs;
|
|
997
|
-
} else if (common.scopeType == "role") {
|
|
998
|
-
selectedData.roleName = common.scopeName;
|
|
999
|
-
selectData = selectRoles;
|
|
1000
|
-
} else if (common.scopeType == "station") {
|
|
1001
|
-
selectedData.stationName = common.scopeName;
|
|
1002
|
-
selectData = selectStations;
|
|
1003
|
-
} else if (common.scopeType == "group") {
|
|
1004
|
-
selectedData.groupName = common.scopeName;
|
|
1005
|
-
selectData = selectGroups;
|
|
1006
|
-
}
|
|
1007
|
-
if (selectData != null) {
|
|
1008
|
-
var flag = true;
|
|
1009
|
-
for (var j = 0; j < selectData.length; j++) {
|
|
1010
|
-
if (selectData[j].id == common.scopeValue) {
|
|
1011
|
-
flag = false;
|
|
1012
|
-
break;
|
|
1013
|
-
}
|
|
1014
|
-
}
|
|
1015
|
-
if (flag) {
|
|
1016
|
-
selectData.push(selectedData);
|
|
1017
|
-
scopeList.push(commonUsedData[i]);
|
|
1018
|
-
}
|
|
1019
|
-
}
|
|
1020
|
-
}
|
|
1021
|
-
}
|
|
1022
|
-
} else {
|
|
1023
|
-
for (var i = 0; i < commonUsedData.length; i++) {
|
|
1024
|
-
var common = commonUsedData[i];
|
|
1025
|
-
if (common.checked) {
|
|
1026
|
-
commonUsedData[i].checked = false;
|
|
1027
|
-
total--;
|
|
1028
|
-
selectCommonNum--;
|
|
1029
|
-
var selectData = null;
|
|
1030
|
-
if (common.scopeType == "user") {
|
|
1031
|
-
selectData = selectUsers;
|
|
1032
|
-
} else if (common.scopeType == "org") {
|
|
1033
|
-
selectData = selectOrgs;
|
|
1034
|
-
} else if (common.scopeType == "role") {
|
|
1035
|
-
selectData = selectRoles;
|
|
1036
|
-
} else if (common.scopeType == "station") {
|
|
1037
|
-
selectData = selectStations;
|
|
1038
|
-
} else if (common.scopeType == "group") {
|
|
1039
|
-
selectData = selectGroups;
|
|
1040
|
-
}
|
|
1041
|
-
if (selectData != null) {
|
|
1042
|
-
for (var j = 0; j < selectData.length; j++) {
|
|
1043
|
-
if (selectData[j].id == common.scopeValue) {
|
|
1044
|
-
selectData.splice(j, 1);
|
|
1045
|
-
break;
|
|
1046
|
-
}
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1049
|
-
for (var j = 0; j < scopeList.length; j++) {
|
|
1050
|
-
if (scopeList[j].scopeValue == common.scopeValue) {
|
|
1051
|
-
scopeList.splice(j, 1);
|
|
1052
|
-
break;
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
}
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1058
|
-
selectedList.selectUsers = selectUsers;
|
|
1059
|
-
selectedList.selectOrgs = selectOrgs;
|
|
1060
|
-
selectedList.selectRoles = selectRoles;
|
|
1061
|
-
selectedList.selectStations = selectStations;
|
|
1062
|
-
selectedList.selectGroups = selectGroups;
|
|
1063
|
-
var commonCheckState = t.syncCommonCheckState(commonUsedData);
|
|
1064
|
-
t.setState({
|
|
1065
|
-
commonUsedData: commonUsedData,
|
|
1066
|
-
total: total,
|
|
1067
|
-
selectCommonNum: commonCheckState.selectCommonNum,
|
|
1068
|
-
commonCheckAll: commonCheckState.commonCheckAll,
|
|
1069
|
-
selectedList: selectedList,
|
|
1070
|
-
scopeList: scopeList
|
|
1071
|
-
}, function () {
|
|
1072
|
-
_this2.instance.update(_this2.getContent());
|
|
1073
|
-
});
|
|
1074
|
-
} else if ("user" == type) {
|
|
954
|
+
if ("user" == type) {
|
|
1075
955
|
var navList = t.state.navUserList;
|
|
1076
956
|
var index = navList.length - 1;
|
|
1077
957
|
navList[index].checkAll = !navList[index].checkAll;
|
|
@@ -2261,13 +2141,10 @@ var Page = function (_React$Component) {
|
|
|
2261
2141
|
};
|
|
2262
2142
|
commonUsedData.push(data);
|
|
2263
2143
|
}
|
|
2264
|
-
var commonCheckState = t.syncCommonCheckState(commonUsedData);
|
|
2265
2144
|
t.setState({
|
|
2266
2145
|
commonTreeData: commonTreeData,
|
|
2267
2146
|
commonUsedData: commonUsedData,
|
|
2268
2147
|
selectUserNum: selectUserNum,
|
|
2269
|
-
selectCommonNum: commonCheckState.selectCommonNum,
|
|
2270
|
-
commonCheckAll: commonCheckState.commonCheckAll,
|
|
2271
2148
|
navCommonList: navList,
|
|
2272
2149
|
isShowNav: isShowNav,
|
|
2273
2150
|
isShowCheckAll: isShowCheckAll
|
|
@@ -4047,12 +3924,9 @@ var Page = function (_React$Component) {
|
|
|
4047
3924
|
};
|
|
4048
3925
|
commonUsedData.push(data);
|
|
4049
3926
|
}
|
|
4050
|
-
var commonCheckState = t.syncCommonCheckState(commonUsedData);
|
|
4051
3927
|
stateParam = {
|
|
4052
3928
|
commonTreeData: commonTreeData,
|
|
4053
3929
|
commonUsedData: commonUsedData,
|
|
4054
|
-
selectCommonNum: commonCheckState.selectCommonNum,
|
|
4055
|
-
commonCheckAll: commonCheckState.commonCheckAll,
|
|
4056
3930
|
navCommonList: navList,
|
|
4057
3931
|
isShowNav: true,
|
|
4058
3932
|
isShowCheckAll: isShowCheckAll
|
|
@@ -4274,7 +4148,7 @@ var Page = function (_React$Component) {
|
|
|
4274
4148
|
}
|
|
4275
4149
|
var result = t.checkOneCommonItem(commonUsedData[index].checked, selectData, commonUsedData, selectedData, checkType, total, selectCommonNum, index, scopeList);
|
|
4276
4150
|
total = result.total;
|
|
4277
|
-
|
|
4151
|
+
selectUserNum = result.selectNum;
|
|
4278
4152
|
if (common.scopeType == "user") {
|
|
4279
4153
|
selectedList.selectUsers = selectData;
|
|
4280
4154
|
} else if (common.scopeType == "org") {
|
|
@@ -4286,12 +4160,10 @@ var Page = function (_React$Component) {
|
|
|
4286
4160
|
} else if (common.scopeType == "group") {
|
|
4287
4161
|
selectedList.selectGroups = selectData;
|
|
4288
4162
|
}
|
|
4289
|
-
var commonCheckState = t.syncCommonCheckState(commonUsedData);
|
|
4290
4163
|
t.setState({
|
|
4291
4164
|
commonUsedData: commonUsedData,
|
|
4292
4165
|
total: total,
|
|
4293
|
-
selectCommonNum:
|
|
4294
|
-
commonCheckAll: commonCheckState.commonCheckAll,
|
|
4166
|
+
selectCommonNum: selectUserNum,
|
|
4295
4167
|
selectedList: selectedList,
|
|
4296
4168
|
scopeList: scopeList
|
|
4297
4169
|
}, function () {
|
|
@@ -5826,23 +5698,6 @@ var Page = function (_React$Component) {
|
|
|
5826
5698
|
}
|
|
5827
5699
|
}
|
|
5828
5700
|
|
|
5829
|
-
// 根据 commonUsedData 实际选中状态同步全选(仿照 roleCheckAll 逻辑)
|
|
5830
|
-
|
|
5831
|
-
}, {
|
|
5832
|
-
key: 'syncCommonCheckState',
|
|
5833
|
-
value: function syncCommonCheckState(commonUsedData) {
|
|
5834
|
-
var selectCommonNum = 0;
|
|
5835
|
-
if (commonUsedData != null && commonUsedData != undefined && commonUsedData.length > 0) {
|
|
5836
|
-
for (var i = 0; i < commonUsedData.length; i++) {
|
|
5837
|
-
if (commonUsedData[i].checked) {
|
|
5838
|
-
selectCommonNum++;
|
|
5839
|
-
}
|
|
5840
|
-
}
|
|
5841
|
-
}
|
|
5842
|
-
var commonCheckAll = commonUsedData != null && commonUsedData != undefined && commonUsedData.length > 0 && selectCommonNum == commonUsedData.length;
|
|
5843
|
-
return { selectCommonNum: selectCommonNum, commonCheckAll: commonCheckAll };
|
|
5844
|
-
}
|
|
5845
|
-
|
|
5846
5701
|
//修改获取的常用数据选中状态
|
|
5847
5702
|
|
|
5848
5703
|
}, {
|
|
@@ -5944,10 +5799,10 @@ var Page = function (_React$Component) {
|
|
|
5944
5799
|
commonTreeData.push(data);
|
|
5945
5800
|
}
|
|
5946
5801
|
}
|
|
5947
|
-
t.commonDataChecked(commonUsedData);
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5802
|
+
selectCommonNum = t.commonDataChecked(commonUsedData);
|
|
5803
|
+
if (selectCommonNum == commonUsedData.length) {
|
|
5804
|
+
commonCheckAll = true;
|
|
5805
|
+
}
|
|
5951
5806
|
}
|
|
5952
5807
|
|
|
5953
5808
|
if (commonUsedDataSearch != null && commonUsedDataSearch != undefined && commonUsedDataSearch.length > 0) {
|
|
@@ -6528,19 +6383,23 @@ var Page = function (_React$Component) {
|
|
|
6528
6383
|
var t = this;
|
|
6529
6384
|
var chooseType = this.getChooseType();
|
|
6530
6385
|
if (obj.activeKey == "common") {
|
|
6386
|
+
var commonUsedData = t.state.commonUsedData;
|
|
6387
|
+
var selectCommonNum = 0;
|
|
6388
|
+
var commonCheckAll = false;
|
|
6389
|
+
if (commonUsedData != null && commonUsedData != undefined && commonUsedData.length > 0) {
|
|
6390
|
+
selectCommonNum = t.commonDataChecked(commonUsedData);
|
|
6391
|
+
if (selectCommonNum == commonUsedData.length) {
|
|
6392
|
+
commonCheckAll = true;
|
|
6393
|
+
}
|
|
6394
|
+
}
|
|
6531
6395
|
var isShowCheckAll = true;
|
|
6532
6396
|
if (checkType == "radio") {
|
|
6533
6397
|
isShowCheckAll = false;
|
|
6534
6398
|
}
|
|
6535
|
-
var commonUsedData = t.state.commonUsedData;
|
|
6536
|
-
if (commonUsedData != null && commonUsedData != undefined && commonUsedData.length > 0) {
|
|
6537
|
-
t.commonDataChecked(commonUsedData);
|
|
6538
|
-
}
|
|
6539
|
-
var commonCheckState = t.syncCommonCheckState(commonUsedData);
|
|
6540
6399
|
t.setState({
|
|
6541
|
-
selectCommonNum:
|
|
6400
|
+
selectCommonNum: selectCommonNum,
|
|
6542
6401
|
isShowCheckAll: isShowCheckAll,
|
|
6543
|
-
commonCheckAll:
|
|
6402
|
+
commonCheckAll: commonCheckAll,
|
|
6544
6403
|
isShowNav: false,
|
|
6545
6404
|
activeKey: obj.activeKey
|
|
6546
6405
|
}, function () {
|
|
@@ -7554,16 +7413,20 @@ var Page = function (_React$Component) {
|
|
|
7554
7413
|
|
|
7555
7414
|
}
|
|
7556
7415
|
|
|
7416
|
+
var selectCommonNum = 0;
|
|
7557
7417
|
if (commonSearchData.length > 0) {
|
|
7558
|
-
t.commonDataChecked(commonSearchData);
|
|
7418
|
+
selectCommonNum = t.commonDataChecked(commonSearchData);
|
|
7419
|
+
}
|
|
7420
|
+
var commonCheckAll = false;
|
|
7421
|
+
if (commonSearchData != null && commonSearchData != undefined && selectCommonNum == commonSearchData.length) {
|
|
7422
|
+
commonCheckAll = true;
|
|
7559
7423
|
}
|
|
7560
|
-
var commonCheckState = t.syncCommonCheckState(commonSearchData);
|
|
7561
7424
|
t.setState({
|
|
7562
7425
|
commonUsedData: commonSearchData,
|
|
7563
7426
|
commonTreeData: commonTreeData,
|
|
7564
|
-
selectCommonNum:
|
|
7427
|
+
selectCommonNum: selectCommonNum,
|
|
7565
7428
|
isShowCheckAll: isShowCheckAll,
|
|
7566
|
-
commonCheckAll:
|
|
7429
|
+
commonCheckAll: commonCheckAll,
|
|
7567
7430
|
commonName: value,
|
|
7568
7431
|
isShowNav: false,
|
|
7569
7432
|
activeKey: type
|
|
@@ -8277,9 +8140,6 @@ var Page = function (_React$Component) {
|
|
|
8277
8140
|
}
|
|
8278
8141
|
if (navList != null && navList.length > 0) {
|
|
8279
8142
|
currentNav = navList[navList.length - 1].id;
|
|
8280
|
-
console.log("currentNav:" + currentNav);
|
|
8281
|
-
console.log("currentCheck:" + JSON.stringify(navList[navList.length - 1]));
|
|
8282
|
-
console.log("currentCheckAll:" + navList[navList.length - 1].checkAll);
|
|
8283
8143
|
currentCheckAll = navList[navList.length - 1].checkAll;
|
|
8284
8144
|
currentCheckThisOrg = navList[navList.length - 1].checkThisOrg;
|
|
8285
8145
|
//是我的部门
|
|
@@ -8717,34 +8577,6 @@ var Page = function (_React$Component) {
|
|
|
8717
8577
|
tabContent = _react2.default.createElement(
|
|
8718
8578
|
'div',
|
|
8719
8579
|
{ id: 'anchor', style: { overflow: "auto", height: '' + t.state.tabHeight }, className: 't-PB68 dd-top-border scrollHeight t-PR' },
|
|
8720
|
-
_react2.default.createElement(
|
|
8721
|
-
'div',
|
|
8722
|
-
{ className: t.state.isShowCheckAll && t.state.commonUsedData.length > 0 ? "" : "t-DN" },
|
|
8723
|
-
_react2.default.createElement(
|
|
8724
|
-
'div',
|
|
8725
|
-
{ className: 't-PL16 t-PR16 t-LH3 dd-bottom-border t-BCf', onClick: function onClick() {
|
|
8726
|
-
t.checkAllMember("common");
|
|
8727
|
-
} },
|
|
8728
|
-
_react2.default.createElement(
|
|
8729
|
-
HBox,
|
|
8730
|
-
{ vAlign: 'center' },
|
|
8731
|
-
_react2.default.createElement(
|
|
8732
|
-
HBox,
|
|
8733
|
-
null,
|
|
8734
|
-
_react2.default.createElement(
|
|
8735
|
-
'div',
|
|
8736
|
-
{ className: t.state.commonCheckAll ? 't-checkbox-field-icon-list checked' : 'un-checked t-checkbox-field-icon-list' },
|
|
8737
|
-
_react2.default.createElement('i', { className: 'iconfont icon-checked t-FCf t-FS14' })
|
|
8738
|
-
)
|
|
8739
|
-
),
|
|
8740
|
-
_react2.default.createElement(
|
|
8741
|
-
Box,
|
|
8742
|
-
{ flex: 1, className: 't-ML10' },
|
|
8743
|
-
'\u5168\u9009'
|
|
8744
|
-
)
|
|
8745
|
-
)
|
|
8746
|
-
)
|
|
8747
|
-
),
|
|
8748
8580
|
_react2.default.createElement(
|
|
8749
8581
|
'div',
|
|
8750
8582
|
{ className: t.state.commonName == "" && t.state.isShowNav ? "t-BCf7 t-OFA t-WSN dd-bottom-border" : "t-DN" },
|
|
@@ -49,8 +49,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
49
49
|
|
|
50
50
|
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
51
51
|
|
|
52
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /**
|
|
53
|
-
* 流程批示意见区块(默认意见、退回意见等),与 TblForm 纯表单分离使用
|
|
52
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /**
|
|
53
|
+
* 流程批示意见区块(默认意见、退回意见等),与 TblForm 纯表单分离使用
|
|
54
54
|
*/
|
|
55
55
|
|
|
56
56
|
|