fmui-base 2.0.90 → 2.0.92
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/db/db.js +14 -0
- package/lib/db/variables.js +2 -2
- package/lib/form/form.js +10 -9
- package/lib/form/table.js +32 -1
- package/lib/process_info/processInfo.js +178 -33
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/db/db.js
CHANGED
|
@@ -858,6 +858,20 @@ context.create('FlowModuleAPI', {
|
|
|
858
858
|
method: 'POST',
|
|
859
859
|
postDataFomat: 'FORM',
|
|
860
860
|
willFetch: function willFetch() {}
|
|
861
|
+
},
|
|
862
|
+
getAllActivity: {
|
|
863
|
+
mockUrl: 'query/getAllActivity.json',
|
|
864
|
+
url: _variables2.default.URLS.getAllActivity,
|
|
865
|
+
header: {
|
|
866
|
+
Authorization: 'Bearer ' + getLoginUserInfo().token
|
|
867
|
+
},
|
|
868
|
+
method: 'GET',
|
|
869
|
+
willFetch: function willFetch() {
|
|
870
|
+
_Toast2.default.show({
|
|
871
|
+
content: _react2.default.createElement(_loading2.default, null),
|
|
872
|
+
duration: 800
|
|
873
|
+
});
|
|
874
|
+
}
|
|
861
875
|
}
|
|
862
876
|
});
|
|
863
877
|
|
package/lib/db/variables.js
CHANGED
|
@@ -117,8 +117,8 @@ exports.default = {
|
|
|
117
117
|
getNewHomePageCollectAppInfoList: portalAllUrlPrefix + "getNewHomePageCollectAppInfoList" + '?token=' + getLoginUserInfo().token,
|
|
118
118
|
getNewHomePageRemindCount: portalAllUrlPrefix + "getNewHomePageRemindCount" + '?token=' + getLoginUserInfo().token,
|
|
119
119
|
getComAppInfo: portalAllUrlPrefix + 'getComAppInfo?token=' + getLoginUserInfo().token, //获取首页常用应用
|
|
120
|
-
saveAppCount: portalAllUrlPrefix + "saveAppCount" + '?token=' + getLoginUserInfo().token //移动应用保存更新点击次数接口
|
|
121
|
-
|
|
120
|
+
saveAppCount: portalAllUrlPrefix + "saveAppCount" + '?token=' + getLoginUserInfo().token, //移动应用保存更新点击次数接口
|
|
121
|
+
getAllActivity: approveUrlPrefix + "getAllActivity" + '?token=' + getLoginUserInfo().token //获取所有节点
|
|
122
122
|
},
|
|
123
123
|
nodataIcon: context + "/mobile/fmui/images/noData.png",
|
|
124
124
|
loadingIcon: context + "/mobile/fmui/images/loading.gif",
|
package/lib/form/form.js
CHANGED
|
@@ -1293,9 +1293,8 @@ var PageHome = function (_React$Component) {
|
|
|
1293
1293
|
t.props.onChange(data, t.state.itemParam);
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
|
-
|
|
1297
1296
|
itemParam = t.dealwithLinkField(itemParam, data, status);
|
|
1298
|
-
itemParam = t.dealwithRelaField(itemParam);
|
|
1297
|
+
itemParam = t.dealwithRelaField(itemParam, allForm);
|
|
1299
1298
|
if (itemType != 'weboffice') {
|
|
1300
1299
|
itemParam.value = value;
|
|
1301
1300
|
//处理特有按钮事件
|
|
@@ -1551,14 +1550,15 @@ var PageHome = function (_React$Component) {
|
|
|
1551
1550
|
|
|
1552
1551
|
}, {
|
|
1553
1552
|
key: 'dealwithRelaField',
|
|
1554
|
-
value: function dealwithRelaField(itemParam) {
|
|
1553
|
+
value: function dealwithRelaField(itemParam, allForm) {
|
|
1555
1554
|
var formRelaFieldMaps = this.props.formRelaFieldMaps;
|
|
1556
1555
|
if (formRelaFieldMaps) {
|
|
1557
1556
|
if (formRelaFieldMaps[itemParam.uniqueName]) {
|
|
1558
1557
|
var data = this.props.data;
|
|
1559
1558
|
var mainTblData = data.mainTblData;
|
|
1560
1559
|
var mainTblName = data.mainTblName;
|
|
1561
|
-
var subTbl = data.subTbl;
|
|
1560
|
+
// var subTbl = data.subTbl;
|
|
1561
|
+
var subTbl = allForm;
|
|
1562
1562
|
var formRelaFieldMapsArray = formRelaFieldMaps[itemParam.uniqueName];
|
|
1563
1563
|
formRelaFieldMapsArray.map(function (item) {
|
|
1564
1564
|
if (item.triggerTblName == mainTblName) {
|
|
@@ -1603,11 +1603,12 @@ var PageHome = function (_React$Component) {
|
|
|
1603
1603
|
}
|
|
1604
1604
|
});
|
|
1605
1605
|
} else {
|
|
1606
|
-
subTbl.
|
|
1607
|
-
|
|
1608
|
-
|
|
1606
|
+
var subTbls = subTbl.item;
|
|
1607
|
+
subTbls.map(function (subTblItem) {
|
|
1608
|
+
if (subTbl.tblName == item.triggerTblName) {
|
|
1609
|
+
var subTblData = subTblItem;
|
|
1609
1610
|
subTblData.map(function (mainTblDataItem) {
|
|
1610
|
-
if (item.triggerFieldName == mainTblDataItem.
|
|
1611
|
+
if (item.triggerFieldName == mainTblDataItem.itemCode) {
|
|
1611
1612
|
// if(item.triggerFieldVal == mainTblDataItem.value){
|
|
1612
1613
|
var editType = item.editType;
|
|
1613
1614
|
if (editType == 'hide') {
|
|
@@ -1633,7 +1634,7 @@ var PageHome = function (_React$Component) {
|
|
|
1633
1634
|
// item.required = triggerFieldValBoolean;
|
|
1634
1635
|
// }
|
|
1635
1636
|
// });
|
|
1636
|
-
if (item.relaFieldName == mainTblDataItem.
|
|
1637
|
+
if (item.relaFieldName == mainTblDataItem.itemCode) {
|
|
1637
1638
|
mainTblDataItem.required = triggerFieldValBoolean;
|
|
1638
1639
|
}
|
|
1639
1640
|
} else if (editType == 'edit') {
|
package/lib/form/table.js
CHANGED
|
@@ -306,6 +306,9 @@ var PageHome = function (_React$Component) {
|
|
|
306
306
|
var module = t.props.module;
|
|
307
307
|
var formKey = t.props.allForm ? t.props.allForm.formcode : "";
|
|
308
308
|
var formTblId = t.props.allForm ? t.props.allForm.formTblId : "";
|
|
309
|
+
if (typeof subTblNo != 'undefined') {
|
|
310
|
+
itemParam.subTblNo = subTblNo;
|
|
311
|
+
}
|
|
309
312
|
if (itemParam && itemParam.key) {
|
|
310
313
|
//修改事件的时候
|
|
311
314
|
|
|
@@ -830,6 +833,8 @@ var PageHome = function (_React$Component) {
|
|
|
830
833
|
key: 'dealwithRelaField',
|
|
831
834
|
value: function dealwithRelaField(formRelaFieldMapsObj, data, itemKey) {
|
|
832
835
|
var t = this;
|
|
836
|
+
var isSubField = false;
|
|
837
|
+
var subTblName = '';
|
|
833
838
|
if (formRelaFieldMapsObj && formRelaFieldMapsObj.length > 0) {
|
|
834
839
|
//解决同一字段 关联字段 编辑方式相同时冲突
|
|
835
840
|
var hideFlag = false;
|
|
@@ -899,7 +904,33 @@ var PageHome = function (_React$Component) {
|
|
|
899
904
|
relaFieldMap["value"] = false;
|
|
900
905
|
}
|
|
901
906
|
}
|
|
902
|
-
|
|
907
|
+
if (relaFieldTblNameArrayItem) {
|
|
908
|
+
var subTbl = data.subTbl;
|
|
909
|
+
if (subTbl && subTbl.length > 0) {
|
|
910
|
+
for (var j = 0; j < subTbl.length; j++) {
|
|
911
|
+
var subTblData = subTbl[j].subTblData;
|
|
912
|
+
subTblName = subTbl[j].subTblName;
|
|
913
|
+
if (subTblData && subTblData.length > 0) {
|
|
914
|
+
for (var b = 0; b < subTblData.length; b++) {
|
|
915
|
+
var subTblDataItem = subTblData[b];
|
|
916
|
+
if (subTblDataItem && subTblDataItem.length > 0) {
|
|
917
|
+
for (var a = 0; a < subTblDataItem.length; a++) {
|
|
918
|
+
if (relaFieldTblNameArrayItem == subTblDataItem[a].uniqueName) {
|
|
919
|
+
isSubField = true;
|
|
920
|
+
var subTblNameItem = "sub_" + subTblName;
|
|
921
|
+
var subItem = relaFieldTblNameArrayItem + '_' + a;
|
|
922
|
+
t.refs[subTblNameItem].refs[subItem].reloadItemParam([relaFieldMap]);
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
if (isSubField) {} else {
|
|
932
|
+
t.refs[relaFieldTblNameArrayItem].reloadItemParam([relaFieldMap]);
|
|
933
|
+
}
|
|
903
934
|
});
|
|
904
935
|
}
|
|
905
936
|
});
|
|
@@ -102,6 +102,10 @@ var _upload = require('../upload/upload');
|
|
|
102
102
|
|
|
103
103
|
var _upload2 = _interopRequireDefault(_upload);
|
|
104
104
|
|
|
105
|
+
var _SelectField = require('saltui/lib/SelectField');
|
|
106
|
+
|
|
107
|
+
var _SelectField2 = _interopRequireDefault(_SelectField);
|
|
108
|
+
|
|
105
109
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
|
|
106
110
|
|
|
107
111
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -415,6 +419,7 @@ var PageHome = function (_React$Component) {
|
|
|
415
419
|
jumpShortMessage: '0',
|
|
416
420
|
backShortMessage: '0',
|
|
417
421
|
addlotsShortMessage: '0',
|
|
422
|
+
handleInvalidShortMessage: '0',
|
|
418
423
|
sysSMSsetting: '0',
|
|
419
424
|
newspyj: {},
|
|
420
425
|
spyj: newComment,
|
|
@@ -427,7 +432,11 @@ var PageHome = function (_React$Component) {
|
|
|
427
432
|
mobileFlowChar: '0', //是否开启流程图 1开启 0禁用
|
|
428
433
|
readScopeId: '',
|
|
429
434
|
readScopeList: [],
|
|
430
|
-
isRemoveCommentFormHtml: '0' //是否隐藏无数据的批示意见 1隐藏
|
|
435
|
+
isRemoveCommentFormHtml: '0', //是否隐藏无数据的批示意见 1隐藏
|
|
436
|
+
allActivity: [], //所有环节名称
|
|
437
|
+
designActivity: '', //选择的提醒环节id
|
|
438
|
+
processData: '1', //1 保留流程数据,2清除已办数据
|
|
439
|
+
processDataList: []
|
|
431
440
|
};
|
|
432
441
|
FlowCommon = require('pages/flow_common/' + module).default ? require('pages/flow_common/' + module).default : require('pages/flow_common/' + module);
|
|
433
442
|
|
|
@@ -441,7 +450,10 @@ var PageHome = function (_React$Component) {
|
|
|
441
450
|
param.nextActivityName = '';
|
|
442
451
|
param.backAttachId = ""; //退回增加附件
|
|
443
452
|
param.backInitList = [];
|
|
444
|
-
param.
|
|
453
|
+
param.allActivity = [];
|
|
454
|
+
param.designActivity = '';
|
|
455
|
+
param.processData = '1';
|
|
456
|
+
param.processDataList = [];
|
|
445
457
|
_this.state = param;
|
|
446
458
|
var t = _this;
|
|
447
459
|
var key = "";
|
|
@@ -857,7 +869,8 @@ var PageHome = function (_React$Component) {
|
|
|
857
869
|
circulateShortMessage: '1,2',
|
|
858
870
|
transferShortMessage: '1,2',
|
|
859
871
|
jumpShortMessage: '1,2',
|
|
860
|
-
backShortMessage: '1,2'
|
|
872
|
+
backShortMessage: '1,2',
|
|
873
|
+
handleInvalidShortMessage: '1,2'
|
|
861
874
|
});
|
|
862
875
|
} else if (sysSMSsetting && sysSMSsetting == '2') {
|
|
863
876
|
t.setState({
|
|
@@ -865,7 +878,8 @@ var PageHome = function (_React$Component) {
|
|
|
865
878
|
circulateShortMessage: '1',
|
|
866
879
|
transferShortMessage: '1',
|
|
867
880
|
jumpShortMessage: '1',
|
|
868
|
-
backShortMessage: '1'
|
|
881
|
+
backShortMessage: '1',
|
|
882
|
+
handleInvalidShortMessage: '1'
|
|
869
883
|
});
|
|
870
884
|
} else if (evoRemind && evoRemind == '2') {
|
|
871
885
|
t.setState({
|
|
@@ -873,7 +887,8 @@ var PageHome = function (_React$Component) {
|
|
|
873
887
|
circulateShortMessage: '2',
|
|
874
888
|
transferShortMessage: '2',
|
|
875
889
|
jumpShortMessage: '2',
|
|
876
|
-
backShortMessage: '2'
|
|
890
|
+
backShortMessage: '2',
|
|
891
|
+
handleInvalidShortMessage: '2'
|
|
877
892
|
});
|
|
878
893
|
} else {
|
|
879
894
|
t.setState({
|
|
@@ -881,7 +896,8 @@ var PageHome = function (_React$Component) {
|
|
|
881
896
|
circulateShortMessage: '0',
|
|
882
897
|
transferShortMessage: '0',
|
|
883
898
|
jumpShortMessage: '0',
|
|
884
|
-
backShortMessage: '0'
|
|
899
|
+
backShortMessage: '0',
|
|
900
|
+
handleInvalidShortMessage: '0'
|
|
885
901
|
});
|
|
886
902
|
}
|
|
887
903
|
|
|
@@ -1459,7 +1475,7 @@ var PageHome = function (_React$Component) {
|
|
|
1459
1475
|
for (var b = 0; b < buttonArray.length; b++) {
|
|
1460
1476
|
var buttonCode = buttonArray[b];
|
|
1461
1477
|
//PAGE_SAVE保存按钮只有当新建时才有,HELP_ADDLOTS加签只有在会签和串签才有,RADOM_FINISH随机流程完成按钮去掉
|
|
1462
|
-
if (buttonCode == 'OTHER_RELATION' || buttonCode == '
|
|
1478
|
+
if (buttonCode == 'OTHER_RELATION' || buttonCode == 'FLOW_REVOKE' || buttonCode == 'RADOM_FINISH' || buttonCode == 'FLOW_CANCEL' || buttonCode == 'FLOW_RECOVER' || buttonCode == 'PAGE_PRINT' || buttonCode == 'PAGE_URGE' || buttonCode == 'PAGE_REDSET' || buttonCode == 'PAGE_FEEDBACK' || buttonCode == 'RECORD' || buttonCode == 'HELP_ADDLOTS' && (participantMode == '0' || participantMode == '3')) {
|
|
1463
1479
|
continue;
|
|
1464
1480
|
} else {
|
|
1465
1481
|
if (isStart == true && permissionCode == 'start' || isDraft == '1') {
|
|
@@ -2731,7 +2747,44 @@ var PageHome = function (_React$Component) {
|
|
|
2731
2747
|
this.handleEnd();
|
|
2732
2748
|
} else if (operate == 9) {
|
|
2733
2749
|
//作废
|
|
2734
|
-
|
|
2750
|
+
|
|
2751
|
+
_db2.default.FlowModuleAPI.getAllActivity({
|
|
2752
|
+
processInstanceId: t.state.processInstanceId
|
|
2753
|
+
}).then(function (content) {
|
|
2754
|
+
var allActivity = content;
|
|
2755
|
+
if (allActivity != null && allActivity != '' && allActivity.length > 0) {
|
|
2756
|
+
var selectOptions = [];
|
|
2757
|
+
allActivity.map(function (item, index) {
|
|
2758
|
+
var option = {};
|
|
2759
|
+
option.value = item.id;
|
|
2760
|
+
option.text = item.name;
|
|
2761
|
+
option.disable = false;
|
|
2762
|
+
if (index == 0) {
|
|
2763
|
+
option.checked = true;
|
|
2764
|
+
} else {
|
|
2765
|
+
option.checked = false;
|
|
2766
|
+
}
|
|
2767
|
+
option.name = item.name;
|
|
2768
|
+
|
|
2769
|
+
selectOptions.push(option);
|
|
2770
|
+
});
|
|
2771
|
+
|
|
2772
|
+
var processDataList = [{ value: '1', name: '保留', disable: false, checked: true, text: '保留' }, { value: '2', name: '清除', disable: false, checked: false, text: '清除' }];
|
|
2773
|
+
t.setState({
|
|
2774
|
+
allActivity: selectOptions, //所有环节名称
|
|
2775
|
+
designActivity: selectOptions[0].value, //选择的提醒环节id
|
|
2776
|
+
processDataList: processDataList,
|
|
2777
|
+
processDataListDefault: processDataList[0],
|
|
2778
|
+
processData: '1', //1 保留流程数据,2清除已办数据
|
|
2779
|
+
operate: operate,
|
|
2780
|
+
pageStatus: '1'
|
|
2781
|
+
}, function () {
|
|
2782
|
+
$(window).scrollTop(0);
|
|
2783
|
+
});
|
|
2784
|
+
}
|
|
2785
|
+
}).catch(function (error) {
|
|
2786
|
+
console.error(error);
|
|
2787
|
+
});
|
|
2735
2788
|
} else if (operate == 10) {
|
|
2736
2789
|
//完成
|
|
2737
2790
|
this.handleFinish();
|
|
@@ -3516,6 +3569,9 @@ var PageHome = function (_React$Component) {
|
|
|
3516
3569
|
} else if (operate == 5) {
|
|
3517
3570
|
//跳转
|
|
3518
3571
|
this.jump();
|
|
3572
|
+
} else if (operate == 9) {
|
|
3573
|
+
//作废
|
|
3574
|
+
this.handleInvalid();
|
|
3519
3575
|
} else if (operate == 10) {
|
|
3520
3576
|
//随机节点结束
|
|
3521
3577
|
var editFormData = this.state.editFormData;
|
|
@@ -4520,7 +4576,48 @@ var PageHome = function (_React$Component) {
|
|
|
4520
4576
|
t.sendFlow(param);
|
|
4521
4577
|
}
|
|
4522
4578
|
}
|
|
4523
|
-
|
|
4579
|
+
}, {
|
|
4580
|
+
key: 'selectProcessDataListChange',
|
|
4581
|
+
value: function selectProcessDataListChange(value) {
|
|
4582
|
+
var processDataList = this.state.processDataList;
|
|
4583
|
+
var processDataListDefault = {};
|
|
4584
|
+
for (var i = 0; i < processDataList.length; i++) {
|
|
4585
|
+
if (processDataList[i].value == value.value) {
|
|
4586
|
+
processDataListDefault = processDataList[i];
|
|
4587
|
+
}
|
|
4588
|
+
}
|
|
4589
|
+
this.setState({
|
|
4590
|
+
processData: value.value,
|
|
4591
|
+
processDataListDefault: processDataListDefault
|
|
4592
|
+
});
|
|
4593
|
+
}
|
|
4594
|
+
}, {
|
|
4595
|
+
key: 'selectDesignActivityChange',
|
|
4596
|
+
value: function selectDesignActivityChange(data) {
|
|
4597
|
+
var designActivity = '';
|
|
4598
|
+
for (var i = 0; i < data.length; i++) {
|
|
4599
|
+
if (data[i].value != '') {
|
|
4600
|
+
designActivity += ',' + data[i].value;
|
|
4601
|
+
}
|
|
4602
|
+
}
|
|
4603
|
+
if (designActivity != '') {
|
|
4604
|
+
designActivity = designActivity.substring(1);
|
|
4605
|
+
}
|
|
4606
|
+
this.setState({
|
|
4607
|
+
designActivity: designActivity
|
|
4608
|
+
});
|
|
4609
|
+
}
|
|
4610
|
+
}, {
|
|
4611
|
+
key: 'changHandleInvalidShortMessage',
|
|
4612
|
+
value: function changHandleInvalidShortMessage(data) {
|
|
4613
|
+
var newremindStyle = "";
|
|
4614
|
+
for (var i = 0; i < data.length; i++) {
|
|
4615
|
+
if (i == data.length - 1) newremindStyle += data[i].value;else newremindStyle += data[i].value + ',';
|
|
4616
|
+
}
|
|
4617
|
+
this.setState({
|
|
4618
|
+
handleInvalidShortMessage: newremindStyle
|
|
4619
|
+
});
|
|
4620
|
+
}
|
|
4524
4621
|
//作废流程
|
|
4525
4622
|
|
|
4526
4623
|
}, {
|
|
@@ -4529,21 +4626,16 @@ var PageHome = function (_React$Component) {
|
|
|
4529
4626
|
var t = this;
|
|
4530
4627
|
var isPush = t.state.isPush;
|
|
4531
4628
|
var db = _db2.default;
|
|
4532
|
-
// Dialog.confirm({
|
|
4533
|
-
// locale: 'zh_CN',
|
|
4534
|
-
// title: '提示',
|
|
4535
|
-
// content: '是否要'+t.state.finalButtons.get("BASE_INVALID")+'审批?',
|
|
4536
|
-
// onConfirm() {
|
|
4537
4629
|
|
|
4538
|
-
// },
|
|
4539
|
-
// onCancel() {
|
|
4540
|
-
// console.log('confirm cancel');
|
|
4541
|
-
// },
|
|
4542
|
-
// });
|
|
4543
4630
|
db.FlowModuleAPI.cancelProcess({
|
|
4544
4631
|
taskId: t.state.taskId,
|
|
4545
4632
|
processInstanceId: t.state.processInstanceId,
|
|
4546
4633
|
module: t.state.module,
|
|
4634
|
+
designActivity: t.state.designActivity,
|
|
4635
|
+
reminders: t.state.handleInvalidShortMessage,
|
|
4636
|
+
dataId: t.state.dataId,
|
|
4637
|
+
formId: t.state.formId,
|
|
4638
|
+
processData: t.state.processData,
|
|
4547
4639
|
permissionCode: t.state.permissionCode
|
|
4548
4640
|
}).then(function (content) {
|
|
4549
4641
|
_Toast2.default.show({
|
|
@@ -4633,8 +4725,8 @@ var PageHome = function (_React$Component) {
|
|
|
4633
4725
|
}
|
|
4634
4726
|
var shortMessage = '0';
|
|
4635
4727
|
var transferShortMessage = t.state.transferShortMessage;
|
|
4636
|
-
if (transferShortMessage
|
|
4637
|
-
shortMessage = transferShortMessage
|
|
4728
|
+
if (transferShortMessage) {
|
|
4729
|
+
shortMessage = transferShortMessage;
|
|
4638
4730
|
}
|
|
4639
4731
|
var automaticReturn = '0';
|
|
4640
4732
|
var transferReturn = t.state.transferReturn;
|
|
@@ -4794,8 +4886,8 @@ var PageHome = function (_React$Component) {
|
|
|
4794
4886
|
}
|
|
4795
4887
|
var shortMessage = '0';
|
|
4796
4888
|
var addlotsShortMessage = t.state.addlotsShortMessage;
|
|
4797
|
-
if (addlotsShortMessage
|
|
4798
|
-
shortMessage = addlotsShortMessage
|
|
4889
|
+
if (addlotsShortMessage) {
|
|
4890
|
+
shortMessage = addlotsShortMessage;
|
|
4799
4891
|
}
|
|
4800
4892
|
// Dialog.confirm({
|
|
4801
4893
|
// locale: 'zh_CN',
|
|
@@ -5032,8 +5124,8 @@ var PageHome = function (_React$Component) {
|
|
|
5032
5124
|
}
|
|
5033
5125
|
var shortMessage = '0';
|
|
5034
5126
|
var circulateShortMessage = t.state.circulateShortMessage;
|
|
5035
|
-
if (circulateShortMessage
|
|
5036
|
-
shortMessage = circulateShortMessage
|
|
5127
|
+
if (circulateShortMessage) {
|
|
5128
|
+
shortMessage = circulateShortMessage;
|
|
5037
5129
|
}
|
|
5038
5130
|
// Dialog.confirm({
|
|
5039
5131
|
// locale: 'zh_CN',
|
|
@@ -5290,8 +5382,8 @@ var PageHome = function (_React$Component) {
|
|
|
5290
5382
|
var selectedActivity = '[{"id":"' + selectJumpActivity.value + '","name":"' + selectJumpActivity.content + '","participants":"' + assignId + '","participantNames":"' + assignName + '"}]';
|
|
5291
5383
|
var shortMessage = '0';
|
|
5292
5384
|
var jumpShortMessage = t.state.jumpShortMessage;
|
|
5293
|
-
if (jumpShortMessage
|
|
5294
|
-
shortMessage = jumpShortMessage
|
|
5385
|
+
if (jumpShortMessage) {
|
|
5386
|
+
shortMessage = jumpShortMessage;
|
|
5295
5387
|
}
|
|
5296
5388
|
var param = {
|
|
5297
5389
|
formId: t.state.formId,
|
|
@@ -5579,7 +5671,7 @@ var PageHome = function (_React$Component) {
|
|
|
5579
5671
|
} else if (buttonCode == 'BASE_END') {
|
|
5580
5672
|
buttonCodeListNew.push({ name: buttonName, type: 'secondary', display: 'inline', no: 8 });
|
|
5581
5673
|
} else if (buttonCode == 'BASE_INVALID') {
|
|
5582
|
-
buttonCodeListNew.push({ name: buttonName, type: '
|
|
5674
|
+
buttonCodeListNew.push({ name: buttonName, type: 'danger', display: 'inline', no: 9 });
|
|
5583
5675
|
} else if (buttonCode == 'HELP_DISTRIBUTE') {
|
|
5584
5676
|
buttonCodeListNew.push({ name: buttonName, type: 'secondary', display: 'inline', no: 'distributeFlow' });
|
|
5585
5677
|
} else if (buttonCode == 'MAILSEND') {
|
|
@@ -5635,7 +5727,7 @@ var PageHome = function (_React$Component) {
|
|
|
5635
5727
|
} else if (buttonCode == 'BASE_END') {
|
|
5636
5728
|
buttonList.push({ name: buttonName, type: 'secondary', display: 'inline', no: 8 });
|
|
5637
5729
|
} else if (buttonCode == 'BASE_INVALID') {
|
|
5638
|
-
buttonList.push({ name: buttonName, type: '
|
|
5730
|
+
buttonList.push({ name: buttonName, type: 'danger', display: 'inline', no: 9 });
|
|
5639
5731
|
} else if (buttonCode == 'HELP_DISTRIBUTE') {
|
|
5640
5732
|
buttonList.push({ name: buttonName, type: 'secondary', display: 'inline', no: 'distributeFlow' });
|
|
5641
5733
|
} else if (buttonCode == 'HELP_FORWARD') {
|
|
@@ -6387,8 +6479,12 @@ var PageHome = function (_React$Component) {
|
|
|
6387
6479
|
}, {
|
|
6388
6480
|
key: 'changeTransferShortMessage',
|
|
6389
6481
|
value: function changeTransferShortMessage(data) {
|
|
6482
|
+
var newremindStyle = "";
|
|
6483
|
+
for (var i = 0; i < data.length; i++) {
|
|
6484
|
+
if (i == data.length - 1) newremindStyle += data[i].value;else newremindStyle += data[i].value + ',';
|
|
6485
|
+
}
|
|
6390
6486
|
this.setState({
|
|
6391
|
-
transferShortMessage:
|
|
6487
|
+
transferShortMessage: newremindStyle
|
|
6392
6488
|
});
|
|
6393
6489
|
}
|
|
6394
6490
|
}, {
|
|
@@ -6405,15 +6501,23 @@ var PageHome = function (_React$Component) {
|
|
|
6405
6501
|
}, {
|
|
6406
6502
|
key: 'changeJumpShortMessage',
|
|
6407
6503
|
value: function changeJumpShortMessage(data) {
|
|
6504
|
+
var newremindStyle = "";
|
|
6505
|
+
for (var i = 0; i < data.length; i++) {
|
|
6506
|
+
if (i == data.length - 1) newremindStyle += data[i].value;else newremindStyle += data[i].value + ',';
|
|
6507
|
+
}
|
|
6408
6508
|
this.setState({
|
|
6409
|
-
jumpShortMessage:
|
|
6509
|
+
jumpShortMessage: newremindStyle
|
|
6410
6510
|
});
|
|
6411
6511
|
}
|
|
6412
6512
|
}, {
|
|
6413
6513
|
key: 'changeBackShortMessage',
|
|
6414
6514
|
value: function changeBackShortMessage(data) {
|
|
6515
|
+
var newremindStyle = "";
|
|
6516
|
+
for (var i = 0; i < data.length; i++) {
|
|
6517
|
+
if (i == data.length - 1) newremindStyle += data[i].value;else newremindStyle += data[i].value + ',';
|
|
6518
|
+
}
|
|
6415
6519
|
this.setState({
|
|
6416
|
-
backShortMessage:
|
|
6520
|
+
backShortMessage: newremindStyle
|
|
6417
6521
|
});
|
|
6418
6522
|
}
|
|
6419
6523
|
}, {
|
|
@@ -6430,8 +6534,12 @@ var PageHome = function (_React$Component) {
|
|
|
6430
6534
|
}, {
|
|
6431
6535
|
key: 'changeAddlotsShortMessage',
|
|
6432
6536
|
value: function changeAddlotsShortMessage(data) {
|
|
6537
|
+
var newremindStyle = "";
|
|
6538
|
+
for (var i = 0; i < data.length; i++) {
|
|
6539
|
+
if (i == data.length - 1) newremindStyle += data[i].value;else newremindStyle += data[i].value + ',';
|
|
6540
|
+
}
|
|
6433
6541
|
this.setState({
|
|
6434
|
-
addlotsShortMessage:
|
|
6542
|
+
addlotsShortMessage: newremindStyle
|
|
6435
6543
|
});
|
|
6436
6544
|
}
|
|
6437
6545
|
|
|
@@ -7401,6 +7509,43 @@ var PageHome = function (_React$Component) {
|
|
|
7401
7509
|
value: this.state.sendMailText,
|
|
7402
7510
|
onChange: this.changeSendMailText.bind(this) })
|
|
7403
7511
|
),
|
|
7512
|
+
_react2.default.createElement(
|
|
7513
|
+
_Group2.default.List,
|
|
7514
|
+
{ className: this.state.operate == 9 ? '' : 't-DN' },
|
|
7515
|
+
_react2.default.createElement(
|
|
7516
|
+
'div',
|
|
7517
|
+
{ style: { background: '#f2f3f5', padding: '10px 5px' } },
|
|
7518
|
+
_react2.default.createElement(
|
|
7519
|
+
'span',
|
|
7520
|
+
{ className: 'theme-color' },
|
|
7521
|
+
_react2.default.createElement('i', { className: 'iconfont icon-back t-rotate-180 t-FS14 t-FR' }),
|
|
7522
|
+
'\u4F5C\u5E9F\u73AF\u8282'
|
|
7523
|
+
)
|
|
7524
|
+
),
|
|
7525
|
+
_react2.default.createElement(_SelectField2.default, {
|
|
7526
|
+
className: 't-W100',
|
|
7527
|
+
required: true,
|
|
7528
|
+
label: "流程数据",
|
|
7529
|
+
readOnly: false,
|
|
7530
|
+
options: this.state.processDataList,
|
|
7531
|
+
onSelect: this.selectProcessDataListChange.bind(this),
|
|
7532
|
+
value: this.state.processDataListDefault
|
|
7533
|
+
}),
|
|
7534
|
+
_react2.default.createElement(_CheckboxField2.default, {
|
|
7535
|
+
className: 't-W100',
|
|
7536
|
+
required: true,
|
|
7537
|
+
label: "提醒对象",
|
|
7538
|
+
readOnly: false,
|
|
7539
|
+
data: this.state.allActivity,
|
|
7540
|
+
onChange: this.selectDesignActivityChange.bind(this)
|
|
7541
|
+
}),
|
|
7542
|
+
_react2.default.createElement(_CheckboxField2.default, {
|
|
7543
|
+
data: this.state.shortMessageList,
|
|
7544
|
+
className: '',
|
|
7545
|
+
mode: 'list',
|
|
7546
|
+
onChange: this.changHandleInvalidShortMessage.bind(this),
|
|
7547
|
+
required: false })
|
|
7548
|
+
),
|
|
7404
7549
|
_react2.default.createElement(
|
|
7405
7550
|
'div',
|
|
7406
7551
|
{ className: 't-P0 t-bottom-fixed' },
|