fmui-base 2.3.48 → 2.3.50
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 +3 -1
- package/lib/comment_list/List.js +51 -7
- package/lib/db/db.js +8 -0
- package/lib/db/variables.js +1 -0
- package/lib/form/form.js +13 -1
- package/lib/form/table.js +8 -8
- package/lib/form_info/formInfo.js +1 -1
- package/lib/process_info/processInfo.js +8 -3
- package/lib/tblform/FlowCommentPane.js +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
---npm publish
|
|
4
4
|
|
|
5
5
|
## 更新日志
|
|
6
|
-
- 2.3.
|
|
6
|
+
- 2.3.50:移动表单支持数据表字段宏值和关联值支持获取用户的性别、政治面貌和民族
|
|
7
|
+
- 2.3.49:加签意见显示加签标识
|
|
8
|
+
- 2.3.48:表单组件增加字段关联参数,流程待办或者推送打开已办理或者作废的流程会弹出相应状态的弹框
|
|
7
9
|
- 2.3.47:表单子表编辑保存时会丢失第一条数据
|
|
8
10
|
- 2.3.46:表单子表支持默认展开或者收起
|
|
9
11
|
- 2.3.45:数据已被他人修改时,刷新表单内容保留批示意见
|
package/lib/comment_list/List.js
CHANGED
|
@@ -244,6 +244,28 @@ var PageHome = function (_React$Component) {
|
|
|
244
244
|
}
|
|
245
245
|
return String(attachId).replace(/\|/g, ',');
|
|
246
246
|
}
|
|
247
|
+
|
|
248
|
+
/** 与 PC FormUtils 一致:按 bpm_process_button 按钮名显示,缺省再回退默认文案 */
|
|
249
|
+
|
|
250
|
+
}, {
|
|
251
|
+
key: 'getAddlotsActionLabel',
|
|
252
|
+
value: function getAddlotsActionLabel(isAddlots) {
|
|
253
|
+
var codeMap = { '1': 'HELP_ADDLOTS', '2': 'BACK', '3': 'BASE_TRANSFER' };
|
|
254
|
+
var defaultMap = { '1': '加签', '2': '退回', '3': '转交' };
|
|
255
|
+
if (!isAddlots || !codeMap[isAddlots]) {
|
|
256
|
+
return '';
|
|
257
|
+
}
|
|
258
|
+
var actionName = defaultMap[isAddlots];
|
|
259
|
+
var buttons = this.props.finalButtons;
|
|
260
|
+
if (buttons) {
|
|
261
|
+
var fromBtn = typeof buttons.get === 'function' ? buttons.get(codeMap[isAddlots]) : buttons[codeMap[isAddlots]];
|
|
262
|
+
if (fromBtn) {
|
|
263
|
+
actionName = fromBtn;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
// 意见上若已带解析好的名称则优先(兼容接口/上层预处理)
|
|
267
|
+
return '(' + actionName + ')';
|
|
268
|
+
}
|
|
247
269
|
}, {
|
|
248
270
|
key: 'getCommentSign',
|
|
249
271
|
value: function getCommentSign(item) {
|
|
@@ -251,17 +273,26 @@ var PageHome = function (_React$Component) {
|
|
|
251
273
|
var returnHtml;
|
|
252
274
|
if (item.inscriptionShow) {
|
|
253
275
|
var userName = item.userName;
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
276
|
+
var addlotsLabel = '';
|
|
277
|
+
//是否加签/退回/转交:优先用按钮配置名称(如「加签1」),与 PC 落款一致
|
|
278
|
+
if (item.addlotsActionName) {
|
|
279
|
+
addlotsLabel = '(' + item.addlotsActionName + ')';
|
|
280
|
+
} else if (item.isAddlots) {
|
|
281
|
+
addlotsLabel = t.getAddlotsActionLabel(item.isAddlots);
|
|
282
|
+
}
|
|
283
|
+
if (addlotsLabel && userName) {
|
|
284
|
+
userName = userName + addlotsLabel;
|
|
259
285
|
}
|
|
260
286
|
var userNameHtml = _react2.default.createElement(
|
|
261
287
|
'span',
|
|
262
288
|
{ className: 't-PR5 userName' },
|
|
263
289
|
item.replacename && item.replacename != "" ? item.replacename : userName
|
|
264
290
|
);
|
|
291
|
+
var addlotsOnlyHtml = addlotsLabel ? _react2.default.createElement(
|
|
292
|
+
'span',
|
|
293
|
+
{ className: 't-PR5 userName' },
|
|
294
|
+
addlotsLabel
|
|
295
|
+
) : null;
|
|
265
296
|
|
|
266
297
|
var dateHtml = _react2.default.createElement(
|
|
267
298
|
'span',
|
|
@@ -288,9 +319,10 @@ var PageHome = function (_React$Component) {
|
|
|
288
319
|
);
|
|
289
320
|
var sealHtml = item.sealFileId && item.sealFileId !== "" ? _react2.default.createElement('img', { className: 't-PR5', src: t.state.loadImg + item.sealFileId, style: { 'position': 'absolute', 'top': '-35px', 'right': '10px', 'height': '64px', 'opacity': 0.8 } }) : "";
|
|
290
321
|
var inscriptionShowArray = item.inscriptionShow.split(",");
|
|
322
|
+
var showUserName = inscriptionShowArray.indexOf("userName") >= 0 && (item.inscriptionShow.indexOf("signImg") < 0 || item.inscriptionShow.indexOf("signImg") >= 0 && !hasSignImg);
|
|
291
323
|
var _returnHtml = inscriptionShowArray.map(function (inscriptionItem) {
|
|
292
324
|
if (inscriptionItem) {
|
|
293
|
-
if (inscriptionItem == "userName" &&
|
|
325
|
+
if (inscriptionItem == "userName" && showUserName) {
|
|
294
326
|
return userNameHtml;
|
|
295
327
|
} else if (inscriptionItem == "date") {
|
|
296
328
|
return dateHtml;
|
|
@@ -299,6 +331,15 @@ var PageHome = function (_React$Component) {
|
|
|
299
331
|
} else if (inscriptionItem == "org") {
|
|
300
332
|
return orgNameHtml;
|
|
301
333
|
} else if (inscriptionItem == "signImg") {
|
|
334
|
+
// 签名图顶替姓名时,标识跟在签名图后
|
|
335
|
+
if (hasSignImg && addlotsLabel && !showUserName) {
|
|
336
|
+
return _react2.default.createElement(
|
|
337
|
+
'span',
|
|
338
|
+
{ key: 'signWithAddlots' },
|
|
339
|
+
signPicHtml,
|
|
340
|
+
addlotsOnlyHtml
|
|
341
|
+
);
|
|
342
|
+
}
|
|
302
343
|
return signPicHtml;
|
|
303
344
|
} else if (inscriptionItem == "taskName") {
|
|
304
345
|
return taskNameHtml;
|
|
@@ -307,11 +348,14 @@ var PageHome = function (_React$Component) {
|
|
|
307
348
|
}
|
|
308
349
|
}
|
|
309
350
|
});
|
|
310
|
-
|
|
351
|
+
// 落款无姓名且无签名图可挂靠时,单独补标识
|
|
352
|
+
var needTrailingAddlots = addlotsLabel && !showUserName && !(hasSignImg && item.inscriptionShow.indexOf("signImg") >= 0);
|
|
353
|
+
var replaceHtml = item.replacename && item.replacename != "" ? "(代" + (item.userName || "") + "办理)" : "";
|
|
311
354
|
return _react2.default.createElement(
|
|
312
355
|
Box,
|
|
313
356
|
{ className: 'comment-html', style: { marginLeft: "auto", "text-align": "right", width: '100%', 'position': 'relative' } },
|
|
314
357
|
_returnHtml,
|
|
358
|
+
needTrailingAddlots ? addlotsOnlyHtml : null,
|
|
315
359
|
replaceHtml
|
|
316
360
|
);
|
|
317
361
|
} else {
|
package/lib/db/db.js
CHANGED
|
@@ -855,6 +855,14 @@ context.create('FlowModuleAPI', {
|
|
|
855
855
|
});
|
|
856
856
|
}
|
|
857
857
|
},
|
|
858
|
+
batchCheckCaAuth: {
|
|
859
|
+
mockUrl: 'query/batchValidateForm.json',
|
|
860
|
+
url: _variables2.default.URLS.batchCheckCaAuth,
|
|
861
|
+
method: 'GET',
|
|
862
|
+
header: {
|
|
863
|
+
Authorization: 'Bearer ' + getLoginUserInfo().token
|
|
864
|
+
}
|
|
865
|
+
},
|
|
858
866
|
completeTaskBatch: {
|
|
859
867
|
mockUrl: 'query/getDoneTaskListByProcessId.json',
|
|
860
868
|
url: _variables2.default.URLS.completeTaskBatch,
|
package/lib/db/variables.js
CHANGED
|
@@ -97,6 +97,7 @@ exports.default = {
|
|
|
97
97
|
forceEnd: approveUrlPrefix + 'forceEnd' + '?', //结束流程
|
|
98
98
|
getUndoTaskInfo: approveUrlPrefix + "getUndoTaskInfo" + '?', //获取待办详情
|
|
99
99
|
batchValidateForm: approveUrlPrefix + "batchValidateForm" + '?', //批量校验表单必填
|
|
100
|
+
batchCheckCaAuth: approveUrlPrefix + "batchCheckCaAuth" + '?', //批量通过前CA授权检测
|
|
100
101
|
completeTaskBatch: approveUrlPrefix + "completeTaskBatch" + '?', //批量办理
|
|
101
102
|
readCompleteTaskBatch: approveUrlPrefix + "readCompleteTaskBatch" + '?', //批量已阅
|
|
102
103
|
getSignature: approveUrlPrefix + "getSignature" + '?', //获取签章
|
package/lib/form/form.js
CHANGED
|
@@ -3504,6 +3504,12 @@ var PageHome = function (_React$Component) {
|
|
|
3504
3504
|
mainTblDataItem.value = userInfo.dutyName;
|
|
3505
3505
|
} else if (relatepopuservalue == 'relateusercardid') {
|
|
3506
3506
|
mainTblDataItem.value = userInfo.cardId;
|
|
3507
|
+
} else if (relatepopuservalue == 'relateusersex') {
|
|
3508
|
+
mainTblDataItem.value = userInfo.sexName || '';
|
|
3509
|
+
} else if (relatepopuservalue == 'relateuserpolitical') {
|
|
3510
|
+
mainTblDataItem.value = userInfo.politicalOutlookShow || '';
|
|
3511
|
+
} else if (relatepopuservalue == 'relateusernation') {
|
|
3512
|
+
mainTblDataItem.value = userInfo.nation || '';
|
|
3507
3513
|
}
|
|
3508
3514
|
t.props.reloadItemParam(data.mainTblName + "_" + mainTblDataItem.key, mainTblDataItem.value);
|
|
3509
3515
|
}
|
|
@@ -3526,6 +3532,12 @@ var PageHome = function (_React$Component) {
|
|
|
3526
3532
|
mainTblDataItem.value = userInfo.dutyName;
|
|
3527
3533
|
} else if (relatepopuservalue == 'relateusercardid') {
|
|
3528
3534
|
mainTblDataItem.value = userInfo.cardId;
|
|
3535
|
+
} else if (relatepopuservalue == 'relateusersex') {
|
|
3536
|
+
mainTblDataItem.value = userInfo.sexName || '';
|
|
3537
|
+
} else if (relatepopuservalue == 'relateuserpolitical') {
|
|
3538
|
+
mainTblDataItem.value = userInfo.politicalOutlookShow || '';
|
|
3539
|
+
} else if (relatepopuservalue == 'relateusernation') {
|
|
3540
|
+
mainTblDataItem.value = userInfo.nation || '';
|
|
3529
3541
|
}
|
|
3530
3542
|
// 如果当前Form是在子表中(dataType === 'sub'),需要通过SubForm来刷新
|
|
3531
3543
|
// SubForm的reloadSubItemParam方法可以刷新子表所有行的字段
|
|
@@ -4910,7 +4922,7 @@ var PageHome = function (_React$Component) {
|
|
|
4910
4922
|
_react2.default.createElement(
|
|
4911
4923
|
'div',
|
|
4912
4924
|
{ className: 't-PT10 t-FB1' },
|
|
4913
|
-
_react2.default.createElement(_List2.default, { list: t.state.itemParam.value, isCaUser: t.state.isCaUser, caFirm: t.state.caFirm, caESignatureName: t.state.caESignatureName, caFormSign: t.state.caFormSign }),
|
|
4925
|
+
_react2.default.createElement(_List2.default, { list: t.state.itemParam.value, isCaUser: t.state.isCaUser, caFirm: t.state.caFirm, caESignatureName: t.state.caESignatureName, caFormSign: t.state.caFormSign, finalButtons: t.props.finalButtons }),
|
|
4914
4926
|
_react2.default.createElement(
|
|
4915
4927
|
'div',
|
|
4916
4928
|
{ className: t.state.commentField == this.state.itemParam.uniqueName ? 't-PL10 t-PR10' : 't-DN' },
|
package/lib/form/table.js
CHANGED
|
@@ -2607,16 +2607,16 @@ var PageHome = function (_React$Component) {
|
|
|
2607
2607
|
return _react2.default.createElement(
|
|
2608
2608
|
'div',
|
|
2609
2609
|
{ className: "form_" + item2.uniqueName },
|
|
2610
|
-
_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, commentAttitude: t.props.commentAttitude, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item2, allForm: t.props.allForm, formStyle: t.props.formStyleObj, isCaUser: t.props.isCaUser, caFirm: t.props.caFirm, caESignatureName: t.props.caESignatureName, caFormSign: t.props.caFormSign, 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, inscriptionShow: t.props.inscriptionShow, onChange: this.change.bind(this), reloadItemParam: this.reloadItemParam.bind(this) })
|
|
2610
|
+
_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, commentAttitude: t.props.commentAttitude, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item2, allForm: t.props.allForm, formStyle: t.props.formStyleObj, isCaUser: t.props.isCaUser, caFirm: t.props.caFirm, caESignatureName: t.props.caESignatureName, caFormSign: t.props.caFormSign, finalButtons: t.props.finalButtons, 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, inscriptionShow: t.props.inscriptionShow, onChange: this.change.bind(this), reloadItemParam: this.reloadItemParam.bind(this) })
|
|
2611
2611
|
);
|
|
2612
2612
|
}.bind(this)) : item.itemType == 'detail' ? _react2.default.createElement(
|
|
2613
2613
|
'div',
|
|
2614
2614
|
{ className: "subform_" + item.itemCode },
|
|
2615
|
-
_react2.default.createElement(_subForm2.default, { keyNo: i, ref: 'sub_' + item.itemCode, subColumnCount: t.getSubColumnCount(item), mobileSubTblDefault: t.props.mobileSubTblDefault, operate: t.props.operate, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentUpload: t.props.commentUpload, commentField: t.props.commentField, commentAttitude: t.props.commentAttitude, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item, allForm: t.props.allForm, formStyle: t.props.formStyleObj, isCaUser: t.props.isCaUser, caFirm: t.props.caFirm, caESignatureName: t.props.caESignatureName, caFormSign: t.props.caFormSign, 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, inscriptionShow: t.props.inscriptionShow, onChange: this.change.bind(this) })
|
|
2615
|
+
_react2.default.createElement(_subForm2.default, { keyNo: i, ref: 'sub_' + item.itemCode, subColumnCount: t.getSubColumnCount(item), mobileSubTblDefault: t.props.mobileSubTblDefault, operate: t.props.operate, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentUpload: t.props.commentUpload, commentField: t.props.commentField, commentAttitude: t.props.commentAttitude, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item, allForm: t.props.allForm, formStyle: t.props.formStyleObj, isCaUser: t.props.isCaUser, caFirm: t.props.caFirm, caESignatureName: t.props.caESignatureName, caFormSign: t.props.caFormSign, finalButtons: t.props.finalButtons, 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, inscriptionShow: t.props.inscriptionShow, onChange: this.change.bind(this) })
|
|
2616
2616
|
) : _react2.default.createElement(
|
|
2617
2617
|
'div',
|
|
2618
2618
|
{ className: "form_" + item.uniqueName },
|
|
2619
|
-
_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, commentAttitude: t.props.commentAttitude, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item, allForm: t.props.allForm, formStyle: t.props.formStyleObj, isCaUser: t.props.isCaUser, caFirm: t.props.caFirm, caESignatureName: t.props.caESignatureName, caFormSign: t.props.caFormSign, 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, inscriptionShow: t.props.inscriptionShow, onChange: this.change.bind(this), reloadItemParam: this.reloadItemParam.bind(this) })
|
|
2619
|
+
_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, commentAttitude: t.props.commentAttitude, module: t.props.module, formKey: t.props.allForm.formcode, status: t.props.status, form: item, allForm: t.props.allForm, formStyle: t.props.formStyleObj, isCaUser: t.props.isCaUser, caFirm: t.props.caFirm, caESignatureName: t.props.caESignatureName, caFormSign: t.props.caFormSign, finalButtons: t.props.finalButtons, 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, inscriptionShow: t.props.inscriptionShow, onChange: this.change.bind(this), reloadItemParam: this.reloadItemParam.bind(this) })
|
|
2620
2620
|
);
|
|
2621
2621
|
}.bind(this)) : "" : _react2.default.createElement(
|
|
2622
2622
|
'div',
|
|
@@ -2643,16 +2643,16 @@ var PageHome = function (_React$Component) {
|
|
|
2643
2643
|
return _react2.default.createElement(
|
|
2644
2644
|
'div',
|
|
2645
2645
|
{ className: t.state.active == item.tabCode ? "" : "t-DN" },
|
|
2646
|
-
_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, commentAttitude: t.props.commentAttitude, newspyj: t.props.newspyj, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, isCaUser: t.props.isCaUser, caFirm: t.props.caFirm, caESignatureName: t.props.caESignatureName, caFormSign: t.props.caFormSign, status: t.props.status, form: item2, allForm: t.props.allForm, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, inscriptionShow: t.props.inscriptionShow, data: t.props.data, fieldControll: t.props.fieldControll, onChange: this.change.bind(this), reloadItemParam: this.reloadItemParam.bind(this) })
|
|
2646
|
+
_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, commentAttitude: t.props.commentAttitude, newspyj: t.props.newspyj, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, isCaUser: t.props.isCaUser, caFirm: t.props.caFirm, caESignatureName: t.props.caESignatureName, caFormSign: t.props.caFormSign, finalButtons: t.props.finalButtons, status: t.props.status, form: item2, allForm: t.props.allForm, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, inscriptionShow: t.props.inscriptionShow, data: t.props.data, fieldControll: t.props.fieldControll, onChange: this.change.bind(this), reloadItemParam: this.reloadItemParam.bind(this) })
|
|
2647
2647
|
);
|
|
2648
2648
|
}.bind(this)) : item.itemType == 'detail' ? _react2.default.createElement(
|
|
2649
2649
|
'div',
|
|
2650
2650
|
{ className: t.state.active == item.tabCode ? "" : "t-DN" },
|
|
2651
|
-
_react2.default.createElement(_subForm2.default, { className: "subform_" + item.itemCode, keyNo: i, ref: 'sub_' + item.itemCode, subColumnCount: t.getSubColumnCount(item), mobileSubTblDefault: t.props.mobileSubTblDefault, operate: t.props.operate, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentUpload: t.props.commentUpload, commentAttitude: t.props.commentAttitude, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, isCaUser: t.props.isCaUser, caFirm: t.props.caFirm, caESignatureName: t.props.caESignatureName, caFormSign: t.props.caFormSign, status: t.props.status, form: item, allForm: t.props.allForm, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, inscriptionShow: t.props.inscriptionShow, data: t.props.data, fieldControll: t.props.fieldControll, onChange: this.change.bind(this) })
|
|
2651
|
+
_react2.default.createElement(_subForm2.default, { className: "subform_" + item.itemCode, keyNo: i, ref: 'sub_' + item.itemCode, subColumnCount: t.getSubColumnCount(item), mobileSubTblDefault: t.props.mobileSubTblDefault, operate: t.props.operate, newspyj: t.props.newspyj, hasCommentField: t.props.hasCommentField, commentUpload: t.props.commentUpload, commentAttitude: t.props.commentAttitude, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, isCaUser: t.props.isCaUser, caFirm: t.props.caFirm, caESignatureName: t.props.caESignatureName, caFormSign: t.props.caFormSign, finalButtons: t.props.finalButtons, status: t.props.status, form: item, allForm: t.props.allForm, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, inscriptionShow: t.props.inscriptionShow, data: t.props.data, fieldControll: t.props.fieldControll, onChange: this.change.bind(this) })
|
|
2652
2652
|
) : _react2.default.createElement(
|
|
2653
2653
|
'div',
|
|
2654
2654
|
{ className: t.state.active == item.tabCode ? "" : "t-DN" },
|
|
2655
|
-
_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, commentAttitude: t.props.commentAttitude, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, isCaUser: t.props.isCaUser, caFirm: t.props.caFirm, caESignatureName: t.props.caESignatureName, caFormSign: t.props.caFormSign, status: t.props.status, form: item, allForm: t.props.allForm, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, inscriptionShow: t.props.inscriptionShow, data: t.props.data, fieldControll: t.props.fieldControll, onChange: this.change.bind(this), reloadItemParam: this.reloadItemParam.bind(this) })
|
|
2655
|
+
_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, commentAttitude: t.props.commentAttitude, commentField: t.props.commentField, module: t.props.module, formKey: t.props.allForm.formcode, isCaUser: t.props.isCaUser, caFirm: t.props.caFirm, caESignatureName: t.props.caESignatureName, caFormSign: t.props.caFormSign, finalButtons: t.props.finalButtons, status: t.props.status, form: item, allForm: t.props.allForm, formStyle: t.props.formStyleObj, commentList: t.props.commentFieldList, inscriptionShow: t.props.inscriptionShow, data: t.props.data, fieldControll: t.props.fieldControll, onChange: this.change.bind(this), reloadItemParam: this.reloadItemParam.bind(this) })
|
|
2656
2656
|
);
|
|
2657
2657
|
}.bind(this))
|
|
2658
2658
|
)
|
|
@@ -2673,7 +2673,7 @@ var PageHome = function (_React$Component) {
|
|
|
2673
2673
|
_react2.default.createElement(
|
|
2674
2674
|
'div',
|
|
2675
2675
|
{ className: 't-PT10 t-FB1' },
|
|
2676
|
-
_react2.default.createElement(_List2.default, { list: t.props.commentBackList, isCaUser: t.props.isCaUser, caFirm: t.props.caFirm, caESignatureName: t.props.caESignatureName, caFormSign: t.props.caFormSign })
|
|
2676
|
+
_react2.default.createElement(_List2.default, { list: t.props.commentBackList, isCaUser: t.props.isCaUser, caFirm: t.props.caFirm, caESignatureName: t.props.caESignatureName, caFormSign: t.props.caFormSign, finalButtons: t.props.finalButtons })
|
|
2677
2677
|
)
|
|
2678
2678
|
)
|
|
2679
2679
|
),
|
|
@@ -2696,7 +2696,7 @@ var PageHome = function (_React$Component) {
|
|
|
2696
2696
|
_react2.default.createElement(
|
|
2697
2697
|
'div',
|
|
2698
2698
|
{ className: 't-PT10 t-FB1' },
|
|
2699
|
-
t.props.commentDefaultList && t.props.commentDefaultList.length > 0 ? _react2.default.createElement(_List2.default, { list: t.props.commentDefaultList, isCaUser: t.props.isCaUser, caFirm: t.props.caFirm, caESignatureName: t.props.caESignatureName, caFormSign: t.props.caFormSign }) : "",
|
|
2699
|
+
t.props.commentDefaultList && t.props.commentDefaultList.length > 0 ? _react2.default.createElement(_List2.default, { list: t.props.commentDefaultList, isCaUser: t.props.isCaUser, caFirm: t.props.caFirm, caESignatureName: t.props.caESignatureName, caFormSign: t.props.caFormSign, finalButtons: t.props.finalButtons }) : "",
|
|
2700
2700
|
_react2.default.createElement(
|
|
2701
2701
|
'div',
|
|
2702
2702
|
{ className: t.props.commentField == "default" ? 't-PL10 t-PR10' : 't-DN' },
|
|
@@ -5377,7 +5377,7 @@ var PageHome = function (_React$Component) {
|
|
|
5377
5377
|
_react2.default.createElement(
|
|
5378
5378
|
_Group2.default.List,
|
|
5379
5379
|
null,
|
|
5380
|
-
this.state.tableStatus == '0' ? "" : _react2.default.createElement(_table2.default, { module: this.state.module, operate: this.state.operate, hasCommentField: t.state.hasCommentField, newspyj: t.state.newspyj, commentField: t.state.commentField, status: t.state.status, form: t.state.formItem, 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, onChange: this.change.bind(this) })
|
|
5380
|
+
this.state.tableStatus == '0' ? "" : _react2.default.createElement(_table2.default, { module: this.state.module, operate: this.state.operate, hasCommentField: t.state.hasCommentField, newspyj: t.state.newspyj, commentField: t.state.commentField, status: t.state.status, form: t.state.formItem, 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, finalButtons: t.state.finalButtons, onChange: this.change.bind(this) })
|
|
5381
5381
|
)
|
|
5382
5382
|
)
|
|
5383
5383
|
)
|
|
@@ -355,6 +355,8 @@ var PageHome = function (_React$Component) {
|
|
|
355
355
|
}
|
|
356
356
|
finalButtons.set('BASE_SUMBIT', '通过');
|
|
357
357
|
finalButtons.set('PAGE_SAVE', '保存草稿');
|
|
358
|
+
// 触发重渲染,批示意见落款可按按钮名称显示(如「加签1」)
|
|
359
|
+
_this.setState({ finalButtons: finalButtons });
|
|
358
360
|
}).catch(function (error) {
|
|
359
361
|
console.error(error);
|
|
360
362
|
});
|
|
@@ -1435,7 +1437,10 @@ var PageHome = function (_React$Component) {
|
|
|
1435
1437
|
//当批示意见类型是无,且批示意见内容为空时过滤掉
|
|
1436
1438
|
continue;
|
|
1437
1439
|
}
|
|
1438
|
-
|
|
1440
|
+
// 抢占加签/转交自动返回后,被加签人意见与加签人待办共用同一 taskId。
|
|
1441
|
+
// 必须同时校验办理人,否则会把他人意见回填进当前编辑框并挤出历史列表。
|
|
1442
|
+
var commentOwnerId = commentList[_i].userId || commentList[_i].createdBy || '';
|
|
1443
|
+
if (commentField == commentList[_i].field && commentList[_i].taskId == param.taskId && commentOwnerId && commentOwnerId == param.userId) {
|
|
1439
1444
|
newspyj = commentList[_i];
|
|
1440
1445
|
commentId = commentList[_i].id;
|
|
1441
1446
|
defaultValue = commentList[_i].content;
|
|
@@ -8840,7 +8845,7 @@ var PageHome = function (_React$Component) {
|
|
|
8840
8845
|
_react2.default.createElement(
|
|
8841
8846
|
'div',
|
|
8842
8847
|
{ style: { "text-align": "left" } },
|
|
8843
|
-
_react2.default.createElement(_List2.default, { list: t.state.commentBackAlert })
|
|
8848
|
+
_react2.default.createElement(_List2.default, { list: t.state.commentBackAlert, finalButtons: t.state.finalButtons })
|
|
8844
8849
|
)
|
|
8845
8850
|
) : "",
|
|
8846
8851
|
_react2.default.createElement(
|
|
@@ -8891,7 +8896,7 @@ var PageHome = function (_React$Component) {
|
|
|
8891
8896
|
_react2.default.createElement(
|
|
8892
8897
|
_Group2.default.List,
|
|
8893
8898
|
null,
|
|
8894
|
-
this.state.tableStatus == '0' ? "" : _react2.default.createElement(_table2.default, { key: 'approveFormTable_' + this.state.formTableKey, ref: 'approveFormTable', 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, commentAttitude: t.state.commentAttitude, status: t.state.status, form: t.state.formItem, formStyleObj: t.state.formStyleObj, subColumnCount: t.state.subColumnCount, mobileSubTblDefault: t.state.mobileSubTblDefault, 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, isCaUser: t.state.isCaUser, caFirm: t.state.caFirm, caESignatureName: t.state.caESignatureName, caFormSign: t.state.caFormSign, inscriptionShow: t.state.inscriptionShow, onChange: this.change.bind(this) })
|
|
8899
|
+
this.state.tableStatus == '0' ? "" : _react2.default.createElement(_table2.default, { key: 'approveFormTable_' + this.state.formTableKey, ref: 'approveFormTable', 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, commentAttitude: t.state.commentAttitude, status: t.state.status, form: t.state.formItem, formStyleObj: t.state.formStyleObj, subColumnCount: t.state.subColumnCount, mobileSubTblDefault: t.state.mobileSubTblDefault, 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, isCaUser: t.state.isCaUser, caFirm: t.state.caFirm, caESignatureName: t.state.caESignatureName, caFormSign: t.state.caFormSign, inscriptionShow: t.state.inscriptionShow, finalButtons: t.state.finalButtons, onChange: this.change.bind(this) })
|
|
8895
8900
|
)
|
|
8896
8901
|
)
|
|
8897
8902
|
)
|
|
@@ -94,7 +94,8 @@ var FlowCommentPane = function (_BaseTable) {
|
|
|
94
94
|
isCaUser: t.props.isCaUser,
|
|
95
95
|
caFirm: t.props.caFirm,
|
|
96
96
|
caESignatureName: t.props.caESignatureName,
|
|
97
|
-
caFormSign: t.props.caFormSign
|
|
97
|
+
caFormSign: t.props.caFormSign,
|
|
98
|
+
finalButtons: t.props.finalButtons
|
|
98
99
|
})
|
|
99
100
|
)
|
|
100
101
|
)
|
|
@@ -123,7 +124,8 @@ var FlowCommentPane = function (_BaseTable) {
|
|
|
123
124
|
isCaUser: t.props.isCaUser,
|
|
124
125
|
caFirm: t.props.caFirm,
|
|
125
126
|
caESignatureName: t.props.caESignatureName,
|
|
126
|
-
caFormSign: t.props.caFormSign
|
|
127
|
+
caFormSign: t.props.caFormSign,
|
|
128
|
+
finalButtons: t.props.finalButtons
|
|
127
129
|
}) : '',
|
|
128
130
|
_react2.default.createElement(
|
|
129
131
|
'div',
|