fmui-base 2.0.92 → 2.0.94
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 +16 -0
- package/lib/db/variables.js +2 -1
- package/lib/form/form.js +50 -5
- package/lib/form/subForm.js +3 -3
- package/lib/form/table.js +67 -11
- package/lib/process_info/processInfo.js +26 -6
- package/lib/process_list/processList.js +24 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/db/db.js
CHANGED
|
@@ -275,6 +275,21 @@ context.create('FlowApproval', {
|
|
|
275
275
|
duration: 800
|
|
276
276
|
});
|
|
277
277
|
}
|
|
278
|
+
},
|
|
279
|
+
|
|
280
|
+
getCategoryListByModule: {
|
|
281
|
+
mockUrl: 'query/getCategoryListByModule.json',
|
|
282
|
+
url: _variables2.default.URLS.getCategoryListByModule,
|
|
283
|
+
header: {
|
|
284
|
+
Authorization: 'Bearer ' + getLoginUserInfo().token
|
|
285
|
+
},
|
|
286
|
+
method: 'GET',
|
|
287
|
+
willFetch: function willFetch() {
|
|
288
|
+
_Toast2.default.show({
|
|
289
|
+
content: _react2.default.createElement(_loading2.default, null),
|
|
290
|
+
duration: 800
|
|
291
|
+
});
|
|
292
|
+
}
|
|
278
293
|
}
|
|
279
294
|
|
|
280
295
|
});
|
|
@@ -873,6 +888,7 @@ context.create('FlowModuleAPI', {
|
|
|
873
888
|
});
|
|
874
889
|
}
|
|
875
890
|
}
|
|
891
|
+
|
|
876
892
|
});
|
|
877
893
|
|
|
878
894
|
context.create('form', {
|
package/lib/db/variables.js
CHANGED
|
@@ -118,7 +118,8 @@ exports.default = {
|
|
|
118
118
|
getNewHomePageRemindCount: portalAllUrlPrefix + "getNewHomePageRemindCount" + '?token=' + getLoginUserInfo().token,
|
|
119
119
|
getComAppInfo: portalAllUrlPrefix + 'getComAppInfo?token=' + getLoginUserInfo().token, //获取首页常用应用
|
|
120
120
|
saveAppCount: portalAllUrlPrefix + "saveAppCount" + '?token=' + getLoginUserInfo().token, //移动应用保存更新点击次数接口
|
|
121
|
-
getAllActivity: approveUrlPrefix + "getAllActivity" + '?token=' + getLoginUserInfo().token //获取所有节点
|
|
121
|
+
getAllActivity: approveUrlPrefix + "getAllActivity" + '?token=' + getLoginUserInfo().token, //获取所有节点
|
|
122
|
+
getCategoryListByModule: approveUrlPrefix + "getCategoryListByModule" + '?token=' + getLoginUserInfo().token //获取所有节点
|
|
122
123
|
},
|
|
123
124
|
nodataIcon: context + "/mobile/fmui/images/noData.png",
|
|
124
125
|
loadingIcon: context + "/mobile/fmui/images/loading.gif",
|
package/lib/form/form.js
CHANGED
|
@@ -95,6 +95,8 @@ var _db2 = _interopRequireDefault(_db);
|
|
|
95
95
|
|
|
96
96
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
97
97
|
|
|
98
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
99
|
+
|
|
98
100
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
99
101
|
|
|
100
102
|
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; }
|
|
@@ -155,6 +157,7 @@ var PageHome = function (_React$Component) {
|
|
|
155
157
|
fieldControll: props.fieldControll,
|
|
156
158
|
commentField: props.commentField,
|
|
157
159
|
hasCommentField: props.hasCommentField,
|
|
160
|
+
commentUpload: props.commentUpload,
|
|
158
161
|
urlPrev: context + '/dingisv/api/common/viewImage?fid=',
|
|
159
162
|
calc: [],
|
|
160
163
|
itemParam: {
|
|
@@ -180,7 +183,8 @@ var PageHome = function (_React$Component) {
|
|
|
180
183
|
savePhrase: [],
|
|
181
184
|
phraseList: [], //常用语列表
|
|
182
185
|
spyj: props.defaultValue,
|
|
183
|
-
isRemoveCommentFormHtml: isRemoveCommentFormHtml
|
|
186
|
+
isRemoveCommentFormHtml: isRemoveCommentFormHtml,
|
|
187
|
+
commentInitList: []
|
|
184
188
|
};
|
|
185
189
|
|
|
186
190
|
return _this;
|
|
@@ -1685,6 +1689,8 @@ var PageHome = function (_React$Component) {
|
|
|
1685
1689
|
}, {
|
|
1686
1690
|
key: 'reloadItemParam',
|
|
1687
1691
|
value: function reloadItemParam(itemNew) {
|
|
1692
|
+
var dataType = this.state.dataType;
|
|
1693
|
+
|
|
1688
1694
|
if (itemNew != null && itemNew != undefined && Array.isArray(itemNew)) {
|
|
1689
1695
|
var itemParam = this.state.itemParam;
|
|
1690
1696
|
var selectText = ''; //多选值修改的显示文本
|
|
@@ -1741,7 +1747,9 @@ var PageHome = function (_React$Component) {
|
|
|
1741
1747
|
selectedText: selectText
|
|
1742
1748
|
});
|
|
1743
1749
|
}
|
|
1744
|
-
|
|
1750
|
+
// if(dataType=='sub'){
|
|
1751
|
+
// this.props.reloadItemParam(itemNew,this.state.itemParam);
|
|
1752
|
+
// }
|
|
1745
1753
|
if (itemParam.itemType == 'popuser') {
|
|
1746
1754
|
this.refs['selectMember_' + itemParam.key].initSelectData();
|
|
1747
1755
|
}
|
|
@@ -2512,8 +2520,26 @@ var PageHome = function (_React$Component) {
|
|
|
2512
2520
|
spyj: newValue
|
|
2513
2521
|
});
|
|
2514
2522
|
this.props.newspyj.content = newValue;
|
|
2515
|
-
|
|
2516
|
-
|
|
2523
|
+
}
|
|
2524
|
+
|
|
2525
|
+
//修改审批意见
|
|
2526
|
+
|
|
2527
|
+
}, {
|
|
2528
|
+
key: 'changeSpyj4',
|
|
2529
|
+
value: function changeSpyj4(t, newValue) {
|
|
2530
|
+
var attachId = "";
|
|
2531
|
+
if (newValue && newValue.length > 0) {
|
|
2532
|
+
for (var i = 0; i < newValue.length; i++) {
|
|
2533
|
+
attachId += "," + newValue[i].id;
|
|
2534
|
+
}
|
|
2535
|
+
}
|
|
2536
|
+
if (attachId != "") {
|
|
2537
|
+
attachId = attachId.substring(1);
|
|
2538
|
+
}
|
|
2539
|
+
this.props.newspyj.attachId = attachId;
|
|
2540
|
+
this.setState({
|
|
2541
|
+
commentInitList: newValue
|
|
2542
|
+
});
|
|
2517
2543
|
}
|
|
2518
2544
|
|
|
2519
2545
|
//矩阵评分
|
|
@@ -2780,6 +2806,9 @@ var PageHome = function (_React$Component) {
|
|
|
2780
2806
|
}, {
|
|
2781
2807
|
key: 'render',
|
|
2782
2808
|
value: function render() {
|
|
2809
|
+
var _this3 = this,
|
|
2810
|
+
_React$createElement;
|
|
2811
|
+
|
|
2783
2812
|
var t = this;
|
|
2784
2813
|
var radioFieldProps = {
|
|
2785
2814
|
groupListArgument: {
|
|
@@ -3312,7 +3341,23 @@ var PageHome = function (_React$Component) {
|
|
|
3312
3341
|
minRows: 1, maxRows: 5,
|
|
3313
3342
|
placeholder: '请输入批示意见',
|
|
3314
3343
|
value: t.state.spyj,
|
|
3315
|
-
onChange: this.changeSpyj3.bind(this) })
|
|
3344
|
+
onChange: this.changeSpyj3.bind(this) }),
|
|
3345
|
+
_react2.default.createElement(
|
|
3346
|
+
'div',
|
|
3347
|
+
{ className: this.state.commentUpload == '1' ? "" : "t-DN" },
|
|
3348
|
+
_react2.default.createElement(_upload2.default, (_React$createElement = {
|
|
3349
|
+
ref: "upload_" + this.state.itemParam.uniqueName,
|
|
3350
|
+
canAdd: true,
|
|
3351
|
+
dir: this.state.module,
|
|
3352
|
+
fileSizeLimit: 0,
|
|
3353
|
+
canDel: true,
|
|
3354
|
+
limitNo: 5
|
|
3355
|
+
}, _defineProperty(_React$createElement, 'fileSizeLimit', 0), _defineProperty(_React$createElement, 'initList', this.state.commentInitList), _defineProperty(_React$createElement, 'onChange', function onChange(value, isInit) {
|
|
3356
|
+
_this3.changeSpyj4(_this3, value);
|
|
3357
|
+
}), _defineProperty(_React$createElement, 'onDel', function onDel(value) {
|
|
3358
|
+
t.changeSpyj4(_this3, value);
|
|
3359
|
+
}), _React$createElement))
|
|
3360
|
+
)
|
|
3316
3361
|
)
|
|
3317
3362
|
),
|
|
3318
3363
|
_react2.default.createElement(
|
package/lib/form/subForm.js
CHANGED
|
@@ -396,13 +396,13 @@ var PageHome = function (_React$Component) {
|
|
|
396
396
|
value: function reloadSubItemParam(itemNew) {
|
|
397
397
|
if (itemNew != null && itemNew != undefined && Array.isArray(itemNew)) {
|
|
398
398
|
var itemParam = this.state.itemParam;
|
|
399
|
-
var
|
|
399
|
+
var valueSub = itemParam.value;
|
|
400
400
|
for (var i = 0; i < itemNew.length; i++) {
|
|
401
401
|
var fieldCode = itemNew[i].key;
|
|
402
402
|
var value = itemNew[i].value;
|
|
403
403
|
var index = itemNew[i].index;
|
|
404
|
-
if (
|
|
405
|
-
|
|
404
|
+
if (valueSub[index]) {
|
|
405
|
+
valueSub[index][fieldCode] = value;
|
|
406
406
|
}
|
|
407
407
|
if (this.refs[fieldCode + '_' + index]) {
|
|
408
408
|
var valueItem = {};
|
package/lib/form/table.js
CHANGED
|
@@ -47,12 +47,18 @@ var _Boxs = require('saltui/lib/Boxs');
|
|
|
47
47
|
|
|
48
48
|
var _Boxs2 = _interopRequireDefault(_Boxs);
|
|
49
49
|
|
|
50
|
+
var _upload = require('../upload/upload');
|
|
51
|
+
|
|
52
|
+
var _upload2 = _interopRequireDefault(_upload);
|
|
53
|
+
|
|
50
54
|
var _db = require('../db/db');
|
|
51
55
|
|
|
52
56
|
var _db2 = _interopRequireDefault(_db);
|
|
53
57
|
|
|
54
58
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
55
59
|
|
|
60
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
61
|
+
|
|
56
62
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
57
63
|
|
|
58
64
|
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; }
|
|
@@ -226,7 +232,8 @@ var PageHome = function (_React$Component) {
|
|
|
226
232
|
phraseList: [], //常用语列表
|
|
227
233
|
spyj: defaultValue,
|
|
228
234
|
formRelaFieldMaps: formRelaFieldMapsNew,
|
|
229
|
-
linkFields: linkFieldsNew
|
|
235
|
+
linkFields: linkFieldsNew,
|
|
236
|
+
commentInitList: []
|
|
230
237
|
};
|
|
231
238
|
|
|
232
239
|
var module = props.module && props.module != "undefined" ? props.module : "approve";
|
|
@@ -850,6 +857,7 @@ var PageHome = function (_React$Component) {
|
|
|
850
857
|
relaFieldTblNameArray.map(function (relaFieldTblNameArrayItem, index) {
|
|
851
858
|
var nowValue = "";
|
|
852
859
|
var mainTblData = data.mainTblData;
|
|
860
|
+
var subTbl = data.subTbl;
|
|
853
861
|
|
|
854
862
|
mainTblData.map(function (item) {
|
|
855
863
|
if (item.key == itemKey) {
|
|
@@ -887,12 +895,23 @@ var PageHome = function (_React$Component) {
|
|
|
887
895
|
} else {
|
|
888
896
|
relaFieldMap["value"] = true;
|
|
889
897
|
}
|
|
890
|
-
var relaFieldNameArray = formRelaFieldMapsObjItem.
|
|
898
|
+
var relaFieldNameArray = formRelaFieldMapsObjItem.relaFieldTblName.split(",");
|
|
891
899
|
mainTblData.map(function (item) {
|
|
892
|
-
if (item.
|
|
900
|
+
if (item.uniqueName == relaFieldNameArray[index]) {
|
|
893
901
|
item.required = triggerFieldValBoolean;
|
|
894
902
|
}
|
|
895
903
|
});
|
|
904
|
+
for (var i = 0; i < subTbl.length; i++) {
|
|
905
|
+
var subTblData = subTbl[i].subTblData;
|
|
906
|
+
for (var a = 0; a < subTblData.length; a++) {
|
|
907
|
+
var subTblDataItem = subTblData[a];
|
|
908
|
+
for (var b = 0; b < subTblDataItem.length; b++) {
|
|
909
|
+
if (subTblDataItem[b].uniqueName == relaFieldNameArray[index]) {
|
|
910
|
+
subTbl[i].subTblData[a][b].required = triggerFieldValBoolean;
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
}
|
|
896
915
|
} else if (editType == 'edit') {
|
|
897
916
|
relaFieldMap["key"] = "readOnly";
|
|
898
917
|
if (triggerFieldVal == nowValue) {
|
|
@@ -918,7 +937,7 @@ var PageHome = function (_React$Component) {
|
|
|
918
937
|
if (relaFieldTblNameArrayItem == subTblDataItem[a].uniqueName) {
|
|
919
938
|
isSubField = true;
|
|
920
939
|
var subTblNameItem = "sub_" + subTblName;
|
|
921
|
-
var subItem = relaFieldTblNameArrayItem + '_' +
|
|
940
|
+
var subItem = relaFieldTblNameArrayItem + '_' + b;
|
|
922
941
|
t.refs[subTblNameItem].refs[subItem].reloadItemParam([relaFieldMap]);
|
|
923
942
|
}
|
|
924
943
|
}
|
|
@@ -1494,6 +1513,26 @@ var PageHome = function (_React$Component) {
|
|
|
1494
1513
|
//alert(this.props.newspyj.content);
|
|
1495
1514
|
}
|
|
1496
1515
|
|
|
1516
|
+
//修改审批意见
|
|
1517
|
+
|
|
1518
|
+
}, {
|
|
1519
|
+
key: 'changeSpyj4',
|
|
1520
|
+
value: function changeSpyj4(t, newValue) {
|
|
1521
|
+
var attachId = "";
|
|
1522
|
+
if (newValue && newValue.length > 0) {
|
|
1523
|
+
for (var i = 0; i < newValue.length; i++) {
|
|
1524
|
+
attachId += "," + newValue[i].id;
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
if (attachId != "") {
|
|
1528
|
+
attachId = attachId.substring(1);
|
|
1529
|
+
}
|
|
1530
|
+
this.props.newspyj.attachId = attachId;
|
|
1531
|
+
this.setState({
|
|
1532
|
+
commentInitList: newValue
|
|
1533
|
+
});
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1497
1536
|
//选择是否保存常用语
|
|
1498
1537
|
|
|
1499
1538
|
}, {
|
|
@@ -1598,7 +1637,8 @@ var PageHome = function (_React$Component) {
|
|
|
1598
1637
|
}, {
|
|
1599
1638
|
key: 'render',
|
|
1600
1639
|
value: function render() {
|
|
1601
|
-
var _this2 = this
|
|
1640
|
+
var _this2 = this,
|
|
1641
|
+
_React$createElement;
|
|
1602
1642
|
|
|
1603
1643
|
var t = this;
|
|
1604
1644
|
var allForm = this.props.allForm;
|
|
@@ -1619,16 +1659,16 @@ var PageHome = function (_React$Component) {
|
|
|
1619
1659
|
return _react2.default.createElement(
|
|
1620
1660
|
'div',
|
|
1621
1661
|
{ className: "form_" + item2.uniqueName },
|
|
1622
|
-
_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, isRemoveCommentFormHtml: t.props.isRemoveCommentFormHtml, onChange: this.change.bind(this) })
|
|
1662
|
+
_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) })
|
|
1623
1663
|
);
|
|
1624
1664
|
}.bind(this)) : item.itemType == 'detail' ? _react2.default.createElement(
|
|
1625
1665
|
'div',
|
|
1626
1666
|
{ className: "subform_" + item.itemCode },
|
|
1627
|
-
_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, isRemoveCommentFormHtml: t.props.isRemoveCommentFormHtml, onChange: this.change.bind(this) })
|
|
1667
|
+
_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) })
|
|
1628
1668
|
) : _react2.default.createElement(
|
|
1629
1669
|
'div',
|
|
1630
1670
|
{ className: "form_" + item.uniqueName },
|
|
1631
|
-
_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, isRemoveCommentFormHtml: t.props.isRemoveCommentFormHtml, onChange: this.change.bind(this) })
|
|
1671
|
+
_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) })
|
|
1632
1672
|
);
|
|
1633
1673
|
}.bind(this)) : "" : _react2.default.createElement(
|
|
1634
1674
|
'div',
|
|
@@ -1655,16 +1695,16 @@ var PageHome = function (_React$Component) {
|
|
|
1655
1695
|
return _react2.default.createElement(
|
|
1656
1696
|
'div',
|
|
1657
1697
|
{ className: t.state.active == item.tabCode ? "" : "t-DN" },
|
|
1658
|
-
_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) })
|
|
1698
|
+
_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) })
|
|
1659
1699
|
);
|
|
1660
1700
|
}.bind(this)) : item.itemType == 'detail' ? _react2.default.createElement(
|
|
1661
1701
|
'div',
|
|
1662
1702
|
{ className: t.state.active == item.tabCode ? "" : "t-DN" },
|
|
1663
|
-
_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) })
|
|
1703
|
+
_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) })
|
|
1664
1704
|
) : _react2.default.createElement(
|
|
1665
1705
|
'div',
|
|
1666
1706
|
{ className: t.state.active == item.tabCode ? "" : "t-DN" },
|
|
1667
|
-
_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) })
|
|
1707
|
+
_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) })
|
|
1668
1708
|
);
|
|
1669
1709
|
}.bind(this))
|
|
1670
1710
|
)
|
|
@@ -1732,6 +1772,22 @@ var PageHome = function (_React$Component) {
|
|
|
1732
1772
|
placeholder: '请输入批示意见',
|
|
1733
1773
|
value: this.state.spyj,
|
|
1734
1774
|
onChange: this.changeSpyj1.bind(this) }),
|
|
1775
|
+
_react2.default.createElement(
|
|
1776
|
+
'div',
|
|
1777
|
+
{ className: t.props.commentUpload == '1' ? "" : "t-DN" },
|
|
1778
|
+
_react2.default.createElement(_upload2.default, (_React$createElement = {
|
|
1779
|
+
ref: "upload_default",
|
|
1780
|
+
canAdd: true,
|
|
1781
|
+
dir: this.state.module,
|
|
1782
|
+
fileSizeLimit: 0,
|
|
1783
|
+
canDel: true,
|
|
1784
|
+
limitNo: 5
|
|
1785
|
+
}, _defineProperty(_React$createElement, 'fileSizeLimit', 0), _defineProperty(_React$createElement, 'initList', this.state.commentInitList), _defineProperty(_React$createElement, 'onChange', function onChange(value, isInit) {
|
|
1786
|
+
_this2.changeSpyj4(_this2, value);
|
|
1787
|
+
}), _defineProperty(_React$createElement, 'onDel', function onDel(value) {
|
|
1788
|
+
t.changeSpyj4(_this2, value);
|
|
1789
|
+
}), _React$createElement))
|
|
1790
|
+
),
|
|
1735
1791
|
_react2.default.createElement(_CheckboxField2.default, {
|
|
1736
1792
|
className: this.state.hasCommentField == '1' ? "" : "t-DN",
|
|
1737
1793
|
data: this.state.savePhraseList,
|
|
@@ -137,6 +137,7 @@ var sysImType = '0';
|
|
|
137
137
|
var shortMessageList = [];
|
|
138
138
|
var readShortMessageList = [];
|
|
139
139
|
var newComment = '';
|
|
140
|
+
var commentAttachId = '';
|
|
140
141
|
var remindStyle = '';
|
|
141
142
|
var FlowCommon = void 0;
|
|
142
143
|
var _thirdMenuType = void 0;
|
|
@@ -436,7 +437,8 @@ var PageHome = function (_React$Component) {
|
|
|
436
437
|
allActivity: [], //所有环节名称
|
|
437
438
|
designActivity: '', //选择的提醒环节id
|
|
438
439
|
processData: '1', //1 保留流程数据,2清除已办数据
|
|
439
|
-
processDataList: []
|
|
440
|
+
processDataList: [],
|
|
441
|
+
commentUpload: '' //1 批示意见允许上传
|
|
440
442
|
};
|
|
441
443
|
FlowCommon = require('pages/flow_common/' + module).default ? require('pages/flow_common/' + module).default : require('pages/flow_common/' + module);
|
|
442
444
|
|
|
@@ -454,6 +456,7 @@ var PageHome = function (_React$Component) {
|
|
|
454
456
|
param.designActivity = '';
|
|
455
457
|
param.processData = '1';
|
|
456
458
|
param.processDataList = [];
|
|
459
|
+
param.commentAttachId = ''; //批示意见附件
|
|
457
460
|
_this.state = param;
|
|
458
461
|
var t = _this;
|
|
459
462
|
var key = "";
|
|
@@ -771,6 +774,10 @@ var PageHome = function (_React$Component) {
|
|
|
771
774
|
if (content.readScopeList && typeof content.readScopeList != "undefined") {
|
|
772
775
|
readScopeList = content.readScopeList;
|
|
773
776
|
}
|
|
777
|
+
var commentUpload = '';
|
|
778
|
+
if (content.commentUpload && typeof content.commentUpload != "undefined") {
|
|
779
|
+
commentUpload = content.commentUpload;
|
|
780
|
+
}
|
|
774
781
|
var formKey = form.formcode;
|
|
775
782
|
var formStyleObj = form.formStyle;
|
|
776
783
|
|
|
@@ -1333,7 +1340,8 @@ var PageHome = function (_React$Component) {
|
|
|
1333
1340
|
mobileFlowChar: mobileFlowChar,
|
|
1334
1341
|
readScopeId: readScopeId,
|
|
1335
1342
|
readScopeList: readScopeList,
|
|
1336
|
-
isRemoveCommentFormHtml: isRemoveCommentFormHtml
|
|
1343
|
+
isRemoveCommentFormHtml: isRemoveCommentFormHtml,
|
|
1344
|
+
commentUpload: commentUpload
|
|
1337
1345
|
}, function () {
|
|
1338
1346
|
t.refs["selectMember_circulate"].initSelectData();
|
|
1339
1347
|
t.refs["selectMember_circulate1"].initSelectData();
|
|
@@ -1832,6 +1840,9 @@ var PageHome = function (_React$Component) {
|
|
|
1832
1840
|
var hasCommentField = t.state.hasCommentField;
|
|
1833
1841
|
var defaultComValue = t.state.defaultValue;
|
|
1834
1842
|
newComment = t.state.newspyj.content;
|
|
1843
|
+
if (t.state.newspyj.attachId && t.state.newspyj.attachId != '') {
|
|
1844
|
+
commentAttachId = t.state.newspyj.attachId;
|
|
1845
|
+
}
|
|
1835
1846
|
if (typeof newComment == "undefined" || newComment == '') {
|
|
1836
1847
|
newComment = t.state.defaultValue;
|
|
1837
1848
|
}
|
|
@@ -1841,6 +1852,11 @@ var PageHome = function (_React$Component) {
|
|
|
1841
1852
|
spyj: newComment
|
|
1842
1853
|
});
|
|
1843
1854
|
}
|
|
1855
|
+
if (commentAttachId && commentAttachId != '') {
|
|
1856
|
+
t.setState({
|
|
1857
|
+
commentAttachId: commentAttachId
|
|
1858
|
+
});
|
|
1859
|
+
}
|
|
1844
1860
|
if (operate == 1 || operate == 10) {
|
|
1845
1861
|
if (newComment && newComment != '') {
|
|
1846
1862
|
if (newComment.length > 2000) {
|
|
@@ -2769,7 +2785,7 @@ var PageHome = function (_React$Component) {
|
|
|
2769
2785
|
selectOptions.push(option);
|
|
2770
2786
|
});
|
|
2771
2787
|
|
|
2772
|
-
var processDataList = [{ value: '1', name: '保留', disable: false, checked: true, text: '保留' }, { value: '2', name: '清除', disable: false, checked: false, text: '清除' }];
|
|
2788
|
+
var processDataList = [{ value: '1', name: '保留', disable: false, checked: true, text: '保留' }, { value: '2', name: '清除', disable: false, checked: false, text: '清除(已办人的已办记录)' }];
|
|
2773
2789
|
t.setState({
|
|
2774
2790
|
allActivity: selectOptions, //所有环节名称
|
|
2775
2791
|
designActivity: selectOptions[0].value, //选择的提醒环节id
|
|
@@ -3498,6 +3514,7 @@ var PageHome = function (_React$Component) {
|
|
|
3498
3514
|
formData: JSON.stringify(editFormData),
|
|
3499
3515
|
module: t.state.module,
|
|
3500
3516
|
comment: newComment,
|
|
3517
|
+
attachId: this.state.commentAttachId,
|
|
3501
3518
|
commentId: t.state.commentId,
|
|
3502
3519
|
hasCommentField: t.state.hasCommentField,
|
|
3503
3520
|
dataId: dataId,
|
|
@@ -3596,6 +3613,7 @@ var PageHome = function (_React$Component) {
|
|
|
3596
3613
|
comment: newComment,
|
|
3597
3614
|
commentId: this.state.commentId,
|
|
3598
3615
|
hasCommentField: t.state.hasCommentField,
|
|
3616
|
+
attachId: this.state.commentAttachId,
|
|
3599
3617
|
dataId: this.state.dataId,
|
|
3600
3618
|
lock: this.state.lock,
|
|
3601
3619
|
sendShortMessage: sendShortMessage,
|
|
@@ -3894,7 +3912,7 @@ var PageHome = function (_React$Component) {
|
|
|
3894
3912
|
formData: JSON.stringify(editFormData),
|
|
3895
3913
|
formType: "4",
|
|
3896
3914
|
editType: editType
|
|
3897
|
-
}, _defineProperty(_param, 'module', t.state.module), _defineProperty(_param, 'comment', newComment), _defineProperty(_param, 'commentType', 'text'), _defineProperty(_param, 'commentId', t.state.commentId), _defineProperty(_param, 'permissionCode', t.state.permissionCode), _defineProperty(_param, 'hasCommentField', t.state.hasCommentField), _defineProperty(_param, 'dataId', dataId), _param);
|
|
3915
|
+
}, _defineProperty(_param, 'module', t.state.module), _defineProperty(_param, 'comment', newComment), _defineProperty(_param, 'commentType', 'text'), _defineProperty(_param, 'commentId', t.state.commentId), _defineProperty(_param, 'attachId', t.state.commentAttachId), _defineProperty(_param, 'permissionCode', t.state.permissionCode), _defineProperty(_param, 'hasCommentField', t.state.hasCommentField), _defineProperty(_param, 'dataId', dataId), _param);
|
|
3898
3916
|
var commentbizSn = t.guid2();
|
|
3899
3917
|
if (param.commentId && param.commentId != "" && param.commentId != null && typeof param.commentId != "undefined") {
|
|
3900
3918
|
commentbizSn = param.commentId;
|
|
@@ -4762,6 +4780,7 @@ var PageHome = function (_React$Component) {
|
|
|
4762
4780
|
hasCommentField: t.state.hasCommentField,
|
|
4763
4781
|
comment: newComment,
|
|
4764
4782
|
commentId: t.state.commentId,
|
|
4783
|
+
attachId: t.state.commentAttachId,
|
|
4765
4784
|
module: t.state.module,
|
|
4766
4785
|
permissionCode: t.state.permissionCode,
|
|
4767
4786
|
participantMode: t.state.participantMode,
|
|
@@ -5400,7 +5419,8 @@ var PageHome = function (_React$Component) {
|
|
|
5400
5419
|
permissionCode: t.state.permissionCode,
|
|
5401
5420
|
shortMessage: shortMessage,
|
|
5402
5421
|
comment: t.state.spyj,
|
|
5403
|
-
commentId: t.state.commentId
|
|
5422
|
+
commentId: t.state.commentId,
|
|
5423
|
+
attachId: t.state.commentAttachId
|
|
5404
5424
|
};
|
|
5405
5425
|
var commentbizSn = t.guid2();
|
|
5406
5426
|
if (param.commentId && param.commentId != "" && param.commentId != null && typeof param.commentId != "undefined") {
|
|
@@ -6783,7 +6803,7 @@ var PageHome = function (_React$Component) {
|
|
|
6783
6803
|
_react2.default.createElement(
|
|
6784
6804
|
_Group2.default.List,
|
|
6785
6805
|
null,
|
|
6786
|
-
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, onChange: this.change.bind(this) })
|
|
6806
|
+
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) })
|
|
6787
6807
|
)
|
|
6788
6808
|
)
|
|
6789
6809
|
)
|
|
@@ -496,9 +496,11 @@ var PageHome = function (_React$Component2) {
|
|
|
496
496
|
doneListUrl: doneListUrl,
|
|
497
497
|
readListUrl: readListUrl,
|
|
498
498
|
myselfListUrl: myselfListUrl,
|
|
499
|
-
hasBatch: hasBatch
|
|
499
|
+
hasBatch: hasBatch,
|
|
500
|
+
categoryList: []
|
|
500
501
|
};
|
|
501
502
|
_this2.getTransactionTitleCount(module, "undo,unread");
|
|
503
|
+
_this2.getCategoryListByModule(module);
|
|
502
504
|
/**
|
|
503
505
|
* 办理页面搜索框设置项
|
|
504
506
|
* @type {{locale: string, instantSearch: boolean, hasHistory: boolean, searchDelay: number, onEnter: (()), onExit: (()), onChange: ((p1:*)), onSearch: ((p1?:*))}}
|
|
@@ -598,6 +600,27 @@ var PageHome = function (_React$Component2) {
|
|
|
598
600
|
});
|
|
599
601
|
}
|
|
600
602
|
|
|
603
|
+
/**
|
|
604
|
+
* 获取分类
|
|
605
|
+
*/
|
|
606
|
+
|
|
607
|
+
}, {
|
|
608
|
+
key: 'getCategoryListByModule',
|
|
609
|
+
value: function getCategoryListByModule(module) {
|
|
610
|
+
var _this4 = this;
|
|
611
|
+
|
|
612
|
+
var t = this;
|
|
613
|
+
_db2.default.FlowApproval.getCategoryListByModule({
|
|
614
|
+
module: module
|
|
615
|
+
}).then(function (content) {
|
|
616
|
+
if (content) {
|
|
617
|
+
_this4.state.categoryList = content;
|
|
618
|
+
}
|
|
619
|
+
}).catch(function (error) {
|
|
620
|
+
console.log(error);
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
|
|
601
624
|
/**
|
|
602
625
|
* ScrollList 请求数据之前的函数
|
|
603
626
|
*/
|