fmui-base 2.0.93 → 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 +1 -0
- package/lib/db/db.js +16 -0
- package/lib/db/variables.js +2 -1
- package/lib/form/form.js +45 -4
- package/lib/form/subForm.js +3 -3
- package/lib/form/table.js +52 -8
- package/lib/process_info/processInfo.js +25 -5
- 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;
|
|
@@ -2516,8 +2520,26 @@ var PageHome = function (_React$Component) {
|
|
|
2516
2520
|
spyj: newValue
|
|
2517
2521
|
});
|
|
2518
2522
|
this.props.newspyj.content = newValue;
|
|
2519
|
-
|
|
2520
|
-
|
|
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
|
+
});
|
|
2521
2543
|
}
|
|
2522
2544
|
|
|
2523
2545
|
//矩阵评分
|
|
@@ -2784,6 +2806,9 @@ var PageHome = function (_React$Component) {
|
|
|
2784
2806
|
}, {
|
|
2785
2807
|
key: 'render',
|
|
2786
2808
|
value: function render() {
|
|
2809
|
+
var _this3 = this,
|
|
2810
|
+
_React$createElement;
|
|
2811
|
+
|
|
2787
2812
|
var t = this;
|
|
2788
2813
|
var radioFieldProps = {
|
|
2789
2814
|
groupListArgument: {
|
|
@@ -3316,7 +3341,23 @@ var PageHome = function (_React$Component) {
|
|
|
3316
3341
|
minRows: 1, maxRows: 5,
|
|
3317
3342
|
placeholder: '请输入批示意见',
|
|
3318
3343
|
value: t.state.spyj,
|
|
3319
|
-
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
|
+
)
|
|
3320
3361
|
)
|
|
3321
3362
|
),
|
|
3322
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";
|
|
@@ -1506,6 +1513,26 @@ var PageHome = function (_React$Component) {
|
|
|
1506
1513
|
//alert(this.props.newspyj.content);
|
|
1507
1514
|
}
|
|
1508
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
|
+
|
|
1509
1536
|
//选择是否保存常用语
|
|
1510
1537
|
|
|
1511
1538
|
}, {
|
|
@@ -1610,7 +1637,8 @@ var PageHome = function (_React$Component) {
|
|
|
1610
1637
|
}, {
|
|
1611
1638
|
key: 'render',
|
|
1612
1639
|
value: function render() {
|
|
1613
|
-
var _this2 = this
|
|
1640
|
+
var _this2 = this,
|
|
1641
|
+
_React$createElement;
|
|
1614
1642
|
|
|
1615
1643
|
var t = this;
|
|
1616
1644
|
var allForm = this.props.allForm;
|
|
@@ -1631,16 +1659,16 @@ var PageHome = function (_React$Component) {
|
|
|
1631
1659
|
return _react2.default.createElement(
|
|
1632
1660
|
'div',
|
|
1633
1661
|
{ className: "form_" + item2.uniqueName },
|
|
1634
|
-
_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) })
|
|
1635
1663
|
);
|
|
1636
1664
|
}.bind(this)) : item.itemType == 'detail' ? _react2.default.createElement(
|
|
1637
1665
|
'div',
|
|
1638
1666
|
{ className: "subform_" + item.itemCode },
|
|
1639
|
-
_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) })
|
|
1640
1668
|
) : _react2.default.createElement(
|
|
1641
1669
|
'div',
|
|
1642
1670
|
{ className: "form_" + item.uniqueName },
|
|
1643
|
-
_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) })
|
|
1644
1672
|
);
|
|
1645
1673
|
}.bind(this)) : "" : _react2.default.createElement(
|
|
1646
1674
|
'div',
|
|
@@ -1667,16 +1695,16 @@ var PageHome = function (_React$Component) {
|
|
|
1667
1695
|
return _react2.default.createElement(
|
|
1668
1696
|
'div',
|
|
1669
1697
|
{ className: t.state.active == item.tabCode ? "" : "t-DN" },
|
|
1670
|
-
_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) })
|
|
1671
1699
|
);
|
|
1672
1700
|
}.bind(this)) : item.itemType == 'detail' ? _react2.default.createElement(
|
|
1673
1701
|
'div',
|
|
1674
1702
|
{ className: t.state.active == item.tabCode ? "" : "t-DN" },
|
|
1675
|
-
_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) })
|
|
1676
1704
|
) : _react2.default.createElement(
|
|
1677
1705
|
'div',
|
|
1678
1706
|
{ className: t.state.active == item.tabCode ? "" : "t-DN" },
|
|
1679
|
-
_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) })
|
|
1680
1708
|
);
|
|
1681
1709
|
}.bind(this))
|
|
1682
1710
|
)
|
|
@@ -1744,6 +1772,22 @@ var PageHome = function (_React$Component) {
|
|
|
1744
1772
|
placeholder: '请输入批示意见',
|
|
1745
1773
|
value: this.state.spyj,
|
|
1746
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
|
+
),
|
|
1747
1791
|
_react2.default.createElement(_CheckboxField2.default, {
|
|
1748
1792
|
className: this.state.hasCommentField == '1' ? "" : "t-DN",
|
|
1749
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) {
|
|
@@ -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
|
*/
|