fmui-base 2.2.85 → 2.2.87

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.
@@ -0,0 +1,252 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = undefined;
7
+
8
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
9
+
10
+ var _react = require('react');
11
+
12
+ var _react2 = _interopRequireDefault(_react);
13
+
14
+ var _List = require('../comment_list/List');
15
+
16
+ var _List2 = _interopRequireDefault(_List);
17
+
18
+ var _CheckboxField = require('saltui/lib/CheckboxField');
19
+
20
+ var _CheckboxField2 = _interopRequireDefault(_CheckboxField);
21
+
22
+ var _TextareaField = require('saltui/lib/TextareaField');
23
+
24
+ var _TextareaField2 = _interopRequireDefault(_TextareaField);
25
+
26
+ var _FoldablePane = require('saltui/lib/FoldablePane');
27
+
28
+ var _FoldablePane2 = _interopRequireDefault(_FoldablePane);
29
+
30
+ var _Slot = require('saltui/lib/Slot');
31
+
32
+ var _Slot2 = _interopRequireDefault(_Slot);
33
+
34
+ var _Boxs = require('saltui/lib/Boxs');
35
+
36
+ var _Boxs2 = _interopRequireDefault(_Boxs);
37
+
38
+ var _upload = require('../upload/upload');
39
+
40
+ var _upload2 = _interopRequireDefault(_upload);
41
+
42
+ var _table = require('../form/table');
43
+
44
+ var _table2 = _interopRequireDefault(_table);
45
+
46
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
47
+
48
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
49
+
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
+
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
+ */
55
+
56
+
57
+ var HBox = _Boxs2.default.HBox;
58
+
59
+ var FlowCommentPane = function (_BaseTable) {
60
+ _inherits(FlowCommentPane, _BaseTable);
61
+
62
+ function FlowCommentPane() {
63
+ _classCallCheck(this, FlowCommentPane);
64
+
65
+ return _possibleConstructorReturn(this, (FlowCommentPane.__proto__ || Object.getPrototypeOf(FlowCommentPane)).apply(this, arguments));
66
+ }
67
+
68
+ _createClass(FlowCommentPane, [{
69
+ key: 'render',
70
+ value: function render() {
71
+ var _this2 = this;
72
+
73
+ var t = this;
74
+ return _react2.default.createElement(
75
+ 'div',
76
+ null,
77
+ _react2.default.createElement('div', { className: t.props.commentBackList && t.props.commentBackList.length > 0 ? 't-H10 t-BCf7' : 't-DN' }),
78
+ _react2.default.createElement(
79
+ 'div',
80
+ { className: t.props.commentBackList && t.props.commentBackList.length > 0 ? '' : 't-DN' },
81
+ _react2.default.createElement(
82
+ HBox,
83
+ { className: 't-field-box' },
84
+ _react2.default.createElement(
85
+ 'div',
86
+ { className: 't-field-layout-h-label' },
87
+ '\u9000\u56DE\u610F\u89C1'
88
+ ),
89
+ _react2.default.createElement(
90
+ 'div',
91
+ { className: 't-PT10 t-FB1' },
92
+ _react2.default.createElement(_List2.default, {
93
+ list: t.props.commentBackList,
94
+ isCaUser: t.props.isCaUser,
95
+ caFirm: t.props.caFirm,
96
+ caESignatureName: t.props.caESignatureName,
97
+ caFormSign: t.props.caFormSign
98
+ })
99
+ )
100
+ )
101
+ ),
102
+ _react2.default.createElement('div', { className: t.props.commentDefaultList && t.props.commentDefaultList.length > 0 || t.props.commentField === 'default' ? 't-H10 t-BCf7' : 't-DN' }),
103
+ _react2.default.createElement(
104
+ 'div',
105
+ { className: t.props.commentDefaultList && t.props.commentDefaultList.length > 0 || t.props.commentField === 'default' ? '' : 't-DN' },
106
+ _react2.default.createElement(
107
+ HBox,
108
+ { className: 'flex-comment default-comment t-field-box' },
109
+ _react2.default.createElement(
110
+ 'div',
111
+ { className: 't-field-layout-h-label t-FBJ' },
112
+ _react2.default.createElement(
113
+ 'span',
114
+ null,
115
+ '\u6279\u793A\u610F\u89C1'
116
+ )
117
+ ),
118
+ _react2.default.createElement(
119
+ 'div',
120
+ { className: 't-PT10 t-FB1' },
121
+ t.props.commentDefaultList && t.props.commentDefaultList.length > 0 ? _react2.default.createElement(_List2.default, {
122
+ list: t.props.commentDefaultList,
123
+ isCaUser: t.props.isCaUser,
124
+ caFirm: t.props.caFirm,
125
+ caESignatureName: t.props.caESignatureName,
126
+ caFormSign: t.props.caFormSign
127
+ }) : '',
128
+ _react2.default.createElement(
129
+ 'div',
130
+ { className: t.props.commentField === 'default' ? 't-PL10 t-PR10' : 't-DN' },
131
+ _react2.default.createElement(
132
+ 'div',
133
+ { className: 'theme-color t-P6 commonwords' },
134
+ _react2.default.createElement(
135
+ 'div',
136
+ { onClick: this.selectCommonwords.bind(this) },
137
+ '\u5E38\u7528\u8BED'
138
+ ),
139
+ _react2.default.createElement(
140
+ 'div',
141
+ {
142
+ className: t.props.inscriptionShow && typeof t.props.inscriptionShow !== 'undefined' && t.props.inscriptionShow.indexOf('seal') !== -1 ? '' : 't-DN',
143
+ onClick: this.selectCommentSeal.bind(this)
144
+ },
145
+ '\u7B7E\u540D\u5370\u7AE0'
146
+ ),
147
+ _react2.default.createElement(
148
+ 'div',
149
+ {
150
+ className: t.props.commentAttitude === '1' || t.props.commentAttitude === '2' ? '' : 't-DN',
151
+ onClick: this.selectAttitude.bind(this)
152
+ },
153
+ '\u6001\u5EA6'
154
+ ),
155
+ _react2.default.createElement(
156
+ 'div',
157
+ { onClick: this.skipToCommonwordsSet.bind(this) },
158
+ '\u7F16\u8F91'
159
+ )
160
+ ),
161
+ _react2.default.createElement(_TextareaField2.default, {
162
+ readOnly: false,
163
+ minRows: 5,
164
+ maxRows: 10,
165
+ placeholder: '\u8BF7\u8F93\u5165\u6279\u793A\u610F\u89C1',
166
+ value: this.state.spyj,
167
+ onChange: this.changeSpyj1.bind(this)
168
+ }),
169
+ _react2.default.createElement(
170
+ 'div',
171
+ { className: t.props.commentUpload === '1' ? '' : 't-DN' },
172
+ _react2.default.createElement(_upload2.default, {
173
+ ref: 'upload_default',
174
+ canAdd: true,
175
+ dir: t.props.module,
176
+ fileSizeLimit: 0,
177
+ canDel: true,
178
+ limitNo: 5,
179
+ initList: this.state.commentInitList,
180
+ onChange: function onChange(value) {
181
+ _this2.changeSpyj4(_this2, value);
182
+ },
183
+ onDel: function onDel(value) {
184
+ t.changeSpyj4(_this2, value);
185
+ }
186
+ })
187
+ ),
188
+ _react2.default.createElement(_CheckboxField2.default, {
189
+ className: t.props.hasCommentField === '1' ? '' : 't-DN',
190
+ data: this.state.savePhraseList,
191
+ mode: 'list',
192
+ onChange: this.selectSavePhrase.bind(this),
193
+ required: false
194
+ }),
195
+ _react2.default.createElement(
196
+ _FoldablePane2.default,
197
+ { foldHeight: 0, isFold: this.state.fold },
198
+ _react2.default.createElement(
199
+ 'div',
200
+ { className: 'phrase-list' },
201
+ this.state.phraseListNew.length > 0 ? this.state.phraseListNew.map(function (item) {
202
+ return _react2.default.createElement(
203
+ 'div',
204
+ {
205
+ key: item.value,
206
+ className: 'phrase-item',
207
+ onClick: this.phraseItemClick.bind(this, item.value)
208
+ },
209
+ item.value
210
+ );
211
+ }.bind(this)) : ''
212
+ )
213
+ ),
214
+ _react2.default.createElement(
215
+ _FoldablePane2.default,
216
+ { foldHeight: 0, isFold: this.state.atfold },
217
+ _react2.default.createElement(
218
+ 'div',
219
+ { className: 'phrase-list' },
220
+ this.state.attitudeList.length > 0 ? this.state.attitudeList.map(function (item) {
221
+ return _react2.default.createElement(
222
+ 'div',
223
+ {
224
+ key: item.value,
225
+ className: 'phrase-item',
226
+ onClick: this.phraseItemClick.bind(this, item.value)
227
+ },
228
+ item.value
229
+ );
230
+ }.bind(this)) : ''
231
+ )
232
+ ),
233
+ _react2.default.createElement(_Slot2.default, {
234
+ ref: 'slotCommentSeal',
235
+ data: this.state.signatureList,
236
+ value: this.state.chooseSignature,
237
+ title: '\u9009\u62E9\u7B7E\u540D\u5370\u7AE0',
238
+ onConfirm: this.handleConfirmCommentSeal.bind(this),
239
+ onChange: this.handleChangeCommentSeal.bind(this)
240
+ })
241
+ )
242
+ )
243
+ )
244
+ )
245
+ );
246
+ }
247
+ }]);
248
+
249
+ return FlowCommentPane;
250
+ }(_table2.default);
251
+
252
+ exports.default = FlowCommentPane;