fmui-base 2.2.84 → 2.2.86
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/comment_list/List.js +29 -3
- package/lib/db/db.js +16 -0
- package/lib/db/variables.js +1 -0
- package/lib/form/form.js +6 -2
- package/lib/form/table.js +8 -8
- package/lib/process_info/processInfo.js +26 -12
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/comment_list/List.js
CHANGED
|
@@ -85,10 +85,10 @@ var PageHome = function (_React$Component) {
|
|
|
85
85
|
this.initData(token, function (commentList) {
|
|
86
86
|
t.setState({
|
|
87
87
|
commentList: commentList
|
|
88
|
+
}, function () {
|
|
89
|
+
t.casigin();
|
|
88
90
|
});
|
|
89
91
|
});
|
|
90
|
-
|
|
91
|
-
this.casigin();
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
//批示意见验签
|
|
@@ -96,10 +96,13 @@ var PageHome = function (_React$Component) {
|
|
|
96
96
|
}, {
|
|
97
97
|
key: 'casigin',
|
|
98
98
|
value: function casigin() {
|
|
99
|
+
console.log("批示意见验签");
|
|
99
100
|
var commentList = this.props.list;
|
|
100
101
|
var isCaUser = this.props.isCaUser; //是否是CA加签用户
|
|
101
102
|
var caFirm = this.props.caFirm; //是否是开启CA加签
|
|
102
|
-
|
|
103
|
+
var caESignatureName = this.props.caESignatureName; //CA电子签名名称
|
|
104
|
+
var caFormSign = this.props.caFormSign; //CA表单签名
|
|
105
|
+
if (commentList && caFirm && caFirm != '' && caFormSign == '1') {
|
|
103
106
|
commentList.map(function (item) {
|
|
104
107
|
var param = {};
|
|
105
108
|
param.bizSn = item.id;
|
|
@@ -139,6 +142,29 @@ var PageHome = function (_React$Component) {
|
|
|
139
142
|
// }
|
|
140
143
|
});
|
|
141
144
|
});
|
|
145
|
+
} else if (caESignatureName == '1' && isCaUser == '1' && caFirm == 'bjca') {
|
|
146
|
+
commentList.map(function (item) {
|
|
147
|
+
var param = {};
|
|
148
|
+
param.bizSn = item.id;
|
|
149
|
+
param.relationId = getLoginUserInfo().mobile;
|
|
150
|
+
param.msg = item.fullMessage;
|
|
151
|
+
param.commentId = item.id;
|
|
152
|
+
// setTimeout(function(){
|
|
153
|
+
// $("#"+item.id+"_sucess").show();
|
|
154
|
+
// },1000)
|
|
155
|
+
_db2.default.FlowApproval.getBeiJingCaImage(param).then(function (content) {
|
|
156
|
+
var signatureImg = content.image;
|
|
157
|
+
if (signatureImg && signatureImg != null && signatureImg != '') {
|
|
158
|
+
if ($("#commentSign-" + item.id).find(".signPic").length > 0) {
|
|
159
|
+
$("#commentSign-" + item.id).find(".signPic").attr("src", 'data:image/png;base64,' + signatureImg);
|
|
160
|
+
} else {
|
|
161
|
+
var signPicHtml = '<img class="t-H64 t-PR5 signPic" src="data:image/png;base64,' + signatureImg + '"/>';
|
|
162
|
+
$("#commentSign-" + item.id).find('.comment-html').append(signPicHtml);
|
|
163
|
+
$("#commentSign-" + item.id).find(".userName").css("display", "none");
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}).catch(function (error) {});
|
|
167
|
+
});
|
|
142
168
|
}
|
|
143
169
|
}
|
|
144
170
|
|
package/lib/db/db.js
CHANGED
|
@@ -258,6 +258,22 @@ context.create('FlowApproval', {
|
|
|
258
258
|
}
|
|
259
259
|
},
|
|
260
260
|
|
|
261
|
+
getBeiJingCaImage: {
|
|
262
|
+
mockUrl: 'query/getBeiJingCaImage.json',
|
|
263
|
+
url: _variables2.default.URLS.getBeiJingCaImage,
|
|
264
|
+
header: {
|
|
265
|
+
Authorization: 'Bearer ' + getLoginUserInfo().token
|
|
266
|
+
},
|
|
267
|
+
method: 'POST',
|
|
268
|
+
willFetch: function willFetch() {
|
|
269
|
+
_Toast2.default.show({
|
|
270
|
+
content: _react2.default.createElement(_loading2.default, null),
|
|
271
|
+
hasMask: true,
|
|
272
|
+
duration: 800
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
|
|
261
277
|
getPreTaskInfo: {
|
|
262
278
|
mockUrl: 'query/getPreTaskInfo.json',
|
|
263
279
|
url: _variables2.default.URLS.getPreTaskInfo,
|
package/lib/db/variables.js
CHANGED
|
@@ -117,6 +117,7 @@ exports.default = {
|
|
|
117
117
|
editSaveDelegate: approveUrlPrefix + "editSaveDelegate" + '?', //保存委托
|
|
118
118
|
signCA: approveUrlPrefix + "signCA" + '?', //CA加签
|
|
119
119
|
verifySign: approveUrlPrefix + "verifySign" + '?', //CA验签
|
|
120
|
+
getBeiJingCaImage: approveUrlPrefix + "getBeiJingCaImage" + '?', //获取北京CA图片
|
|
120
121
|
getPreTaskInfo: approveUrlPrefix + "getPreTaskInfo" + '?', //获取上一环节CA配置
|
|
121
122
|
getApproveCount: approveUrlPrefix + 'getApproveCount?', //获取审批数量
|
|
122
123
|
getUmcCount: umcUrlPrefix + 'getUndoUnreadMsgCount?', //获取待办消息数量
|
package/lib/form/form.js
CHANGED
|
@@ -154,6 +154,8 @@ var PageHome = function (_React$Component) {
|
|
|
154
154
|
var dataType = props.dataType; //数据类型,main:主表,sub:子表,
|
|
155
155
|
var isCaUser = props.isCaUser; //是否是CA加签用户
|
|
156
156
|
var caFirm = props.caFirm; //是否开启CA加签
|
|
157
|
+
var caESignatureName = props.caESignatureName; //CA电子签名名称
|
|
158
|
+
var caFormSign = props.caFormSign; //CA表单签名
|
|
157
159
|
if (!dataType) {
|
|
158
160
|
dataType = "main";
|
|
159
161
|
}
|
|
@@ -210,7 +212,9 @@ var PageHome = function (_React$Component) {
|
|
|
210
212
|
signatureList: [],
|
|
211
213
|
chooseSignature: [],
|
|
212
214
|
isCaUser: isCaUser,
|
|
213
|
-
caFirm: caFirm
|
|
215
|
+
caFirm: caFirm,
|
|
216
|
+
caESignatureName: caESignatureName,
|
|
217
|
+
caFormSign: caFormSign
|
|
214
218
|
};
|
|
215
219
|
|
|
216
220
|
return _this;
|
|
@@ -4134,7 +4138,7 @@ var PageHome = function (_React$Component) {
|
|
|
4134
4138
|
_react2.default.createElement(
|
|
4135
4139
|
'div',
|
|
4136
4140
|
{ className: 't-PT10 t-FB1' },
|
|
4137
|
-
_react2.default.createElement(_List2.default, { list: t.state.itemParam.value, isCaUser: t.state.isCaUser, caFirm: t.state.caFirm }),
|
|
4141
|
+
_react2.default.createElement(_List2.default, { list: t.state.itemParam.value, isCaUser: t.state.isCaUser, caFirm: t.state.caFirm, caESignatureName: t.state.caESignatureName }),
|
|
4138
4142
|
_react2.default.createElement(
|
|
4139
4143
|
'div',
|
|
4140
4144
|
{ className: t.state.commentField == this.state.itemParam.uniqueName ? 't-PL10 t-PR10' : 't-DN' },
|
package/lib/form/table.js
CHANGED
|
@@ -1977,16 +1977,16 @@ var PageHome = function (_React$Component) {
|
|
|
1977
1977
|
return _react2.default.createElement(
|
|
1978
1978
|
'div',
|
|
1979
1979
|
{ className: "form_" + item2.uniqueName },
|
|
1980
|
-
_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, 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) })
|
|
1980
|
+
_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) })
|
|
1981
1981
|
);
|
|
1982
1982
|
}.bind(this)) : item.itemType == 'detail' ? _react2.default.createElement(
|
|
1983
1983
|
'div',
|
|
1984
1984
|
{ className: "subform_" + item.itemCode },
|
|
1985
|
-
_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, 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, 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) })
|
|
1985
|
+
_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, 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) })
|
|
1986
1986
|
) : _react2.default.createElement(
|
|
1987
1987
|
'div',
|
|
1988
1988
|
{ className: "form_" + item.uniqueName },
|
|
1989
|
-
_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, 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) })
|
|
1989
|
+
_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) })
|
|
1990
1990
|
);
|
|
1991
1991
|
}.bind(this)) : "" : _react2.default.createElement(
|
|
1992
1992
|
'div',
|
|
@@ -2013,16 +2013,16 @@ var PageHome = function (_React$Component) {
|
|
|
2013
2013
|
return _react2.default.createElement(
|
|
2014
2014
|
'div',
|
|
2015
2015
|
{ className: t.state.active == item.tabCode ? "" : "t-DN" },
|
|
2016
|
-
_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, 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) })
|
|
2016
|
+
_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) })
|
|
2017
2017
|
);
|
|
2018
2018
|
}.bind(this)) : item.itemType == 'detail' ? _react2.default.createElement(
|
|
2019
2019
|
'div',
|
|
2020
2020
|
{ className: t.state.active == item.tabCode ? "" : "t-DN" },
|
|
2021
|
-
_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, 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, 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) })
|
|
2021
|
+
_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, 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) })
|
|
2022
2022
|
) : _react2.default.createElement(
|
|
2023
2023
|
'div',
|
|
2024
2024
|
{ className: t.state.active == item.tabCode ? "" : "t-DN" },
|
|
2025
|
-
_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, 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) })
|
|
2025
|
+
_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) })
|
|
2026
2026
|
);
|
|
2027
2027
|
}.bind(this))
|
|
2028
2028
|
)
|
|
@@ -2043,7 +2043,7 @@ var PageHome = function (_React$Component) {
|
|
|
2043
2043
|
_react2.default.createElement(
|
|
2044
2044
|
'div',
|
|
2045
2045
|
{ className: 't-PT10 t-FB1' },
|
|
2046
|
-
_react2.default.createElement(_List2.default, { list: t.props.commentBackList, isCaUser: t.props.isCaUser, caFirm: t.props.caFirm })
|
|
2046
|
+
_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 })
|
|
2047
2047
|
)
|
|
2048
2048
|
)
|
|
2049
2049
|
),
|
|
@@ -2066,7 +2066,7 @@ var PageHome = function (_React$Component) {
|
|
|
2066
2066
|
_react2.default.createElement(
|
|
2067
2067
|
'div',
|
|
2068
2068
|
{ className: 't-PT10 t-FB1' },
|
|
2069
|
-
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 }) : "",
|
|
2069
|
+
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 }) : "",
|
|
2070
2070
|
_react2.default.createElement(
|
|
2071
2071
|
'div',
|
|
2072
2072
|
{ className: t.props.commentField == "default" ? 't-PL10 t-PR10' : 't-DN' },
|
|
@@ -476,7 +476,7 @@ var PageHome = function (_React$Component) {
|
|
|
476
476
|
selectProcessCode: '', //选中的子流程
|
|
477
477
|
subProcessType: '', //子流程类型 0串行 1并行
|
|
478
478
|
urgencyList: [], //紧急程度列表
|
|
479
|
-
urgency: '' }, _defineProperty(_param, 'urgent', ''), _defineProperty(_param, 'backInitiatorEndFlow', '0'), _defineProperty(_param, 'oauthWindowURL', ''), _defineProperty(_param, 'signDataId', ''), _defineProperty(_param, 'isCaUser', '0'), _defineProperty(_param, 'caFirm', ''), _defineProperty(_param, 'addlotsReturn', ''), _defineProperty(_param, 'inscriptionShow', ''), _param);
|
|
479
|
+
urgency: '' }, _defineProperty(_param, 'urgent', ''), _defineProperty(_param, 'backInitiatorEndFlow', '0'), _defineProperty(_param, 'oauthWindowURL', ''), _defineProperty(_param, 'signDataId', ''), _defineProperty(_param, 'isCaUser', '0'), _defineProperty(_param, 'caFirm', ''), _defineProperty(_param, 'caESignatureName', ''), _defineProperty(_param, 'caFormSign', ''), _defineProperty(_param, 'addlotsReturn', ''), _defineProperty(_param, 'inscriptionShow', ''), _param);
|
|
480
480
|
FlowCommon = require('pages/flow_common/' + module).default ? require('pages/flow_common/' + module).default : require('pages/flow_common/' + module);
|
|
481
481
|
|
|
482
482
|
//处理特有参数
|
|
@@ -1245,6 +1245,14 @@ var PageHome = function (_React$Component) {
|
|
|
1245
1245
|
if (content.caFirm && content.caFirm != null && content.caFirm != 'null' && typeof content.caFirm != 'undefined' && content.caFirm != '') {
|
|
1246
1246
|
caFirm = content.caFirm;
|
|
1247
1247
|
}
|
|
1248
|
+
var caESignatureName = "";
|
|
1249
|
+
if (content.caESignatureName && content.caESignatureName != null && content.caESignatureName != 'null' && typeof content.caESignatureName != 'undefined' && content.caESignatureName != '') {
|
|
1250
|
+
caESignatureName = content.caESignatureName;
|
|
1251
|
+
}
|
|
1252
|
+
var caFormSign = "";
|
|
1253
|
+
if (content.caFormSign && content.caFormSign != null && content.caFormSign != 'null' && typeof content.caFormSign != 'undefined' && content.caFormSign != '') {
|
|
1254
|
+
caFormSign = content.caFormSign;
|
|
1255
|
+
}
|
|
1248
1256
|
var commentBackAlert = [];
|
|
1249
1257
|
var titleCommentBackAlert = '退回原因';
|
|
1250
1258
|
if (content.commentCasign == '1') {
|
|
@@ -1495,6 +1503,8 @@ var PageHome = function (_React$Component) {
|
|
|
1495
1503
|
signDataId: signDataId,
|
|
1496
1504
|
isCaUser: isCaUser,
|
|
1497
1505
|
caFirm: caFirm,
|
|
1506
|
+
caESignatureName: caESignatureName,
|
|
1507
|
+
caFormSign: caFormSign,
|
|
1498
1508
|
addlotsReturn: addlotsReturn,
|
|
1499
1509
|
inscriptionShow: inscriptionShow
|
|
1500
1510
|
}, function () {
|
|
@@ -6517,13 +6527,20 @@ var PageHome = function (_React$Component) {
|
|
|
6517
6527
|
}
|
|
6518
6528
|
buttonCodeList = buttonCodeList.concat();
|
|
6519
6529
|
var alllength = buttonCodeList.length + extensionButtonList.length;
|
|
6520
|
-
if (alllength >
|
|
6521
|
-
buttonList.push({ name: '更多', type: '
|
|
6530
|
+
if (alllength > 3) {
|
|
6531
|
+
buttonList.push({ name: '更多', type: 'secondary', display: 'inline', no: -1 });
|
|
6522
6532
|
var buttonCodeListNew = [];
|
|
6533
|
+
var mainSlotCount = 0;
|
|
6534
|
+
var todoSaveInMore = _this3.state.listType == "0";
|
|
6523
6535
|
for (var c = 0; c < buttonCodeList.length; c++) {
|
|
6524
6536
|
var buttonCode = buttonCodeList[c]['buttonCode'];
|
|
6525
6537
|
var buttonName = buttonCodeList[c]['buttonName'];
|
|
6526
|
-
if (
|
|
6538
|
+
if (todoSaveInMore && buttonCode == 'PAGE_SAVE') {
|
|
6539
|
+
actionSheetButtonOpt.push(buttonCode);
|
|
6540
|
+
actionSheetButtonOptName.push(buttonName);
|
|
6541
|
+
continue;
|
|
6542
|
+
}
|
|
6543
|
+
if (mainSlotCount < 2) {
|
|
6527
6544
|
if (buttonCode == 'BACK') {
|
|
6528
6545
|
buttonCodeListNew.push({ name: buttonName, type: 'danger', display: 'inline', no: 2 });
|
|
6529
6546
|
} else if (buttonCode == 'PAGE_SAVE') {
|
|
@@ -6555,18 +6572,15 @@ var PageHome = function (_React$Component) {
|
|
|
6555
6572
|
} else {
|
|
6556
6573
|
buttonCodeListNew.push({ name: buttonName, type: 'secondary', display: 'inline', no: buttonCode });
|
|
6557
6574
|
}
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
actionSheetButtonOpt.push(buttonCode);
|
|
6561
|
-
actionSheetButtonOptName.push(buttonName);
|
|
6562
|
-
} else if (c > 3) {
|
|
6575
|
+
mainSlotCount++;
|
|
6576
|
+
} else {
|
|
6563
6577
|
actionSheetButtonOpt.push(buttonCode);
|
|
6564
6578
|
actionSheetButtonOptName.push(buttonName);
|
|
6565
6579
|
}
|
|
6566
6580
|
}
|
|
6567
|
-
var nowNum =
|
|
6581
|
+
var nowNum = mainSlotCount;
|
|
6568
6582
|
for (var d = 0; d < extensionButtonList.length; d++) {
|
|
6569
|
-
if (nowNum <
|
|
6583
|
+
if (nowNum < 2) {
|
|
6570
6584
|
buttonList.push(extensionButtonList[d]);
|
|
6571
6585
|
} else {
|
|
6572
6586
|
actionSheetButtonOpt.push(extensionButtonList[d].no);
|
|
@@ -7772,7 +7786,7 @@ var PageHome = function (_React$Component) {
|
|
|
7772
7786
|
_react2.default.createElement(
|
|
7773
7787
|
_Group2.default.List,
|
|
7774
7788
|
null,
|
|
7775
|
-
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, commentAttitude: t.state.commentAttitude, 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, isCaUser: t.state.isCaUser, caFirm: t.state.caFirm, inscriptionShow: t.state.inscriptionShow, onChange: this.change.bind(this) })
|
|
7789
|
+
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, commentAttitude: t.state.commentAttitude, 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, 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) })
|
|
7776
7790
|
)
|
|
7777
7791
|
)
|
|
7778
7792
|
)
|