fmui-base 2.2.66 → 2.2.68
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/form/table.js +9 -3
- package/lib/process_list/processList.js +5 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/form/table.js
CHANGED
|
@@ -1103,6 +1103,11 @@ var PageHome = function (_React$Component) {
|
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
|
+
}, {
|
|
1107
|
+
key: 'replaceDollar',
|
|
1108
|
+
value: function replaceDollar(a) {
|
|
1109
|
+
return a && a.indexOf("$") != -1 ? a.replace(/\$/g, "\\$") : a;
|
|
1110
|
+
}
|
|
1106
1111
|
}, {
|
|
1107
1112
|
key: 'forCalculateExpList',
|
|
1108
1113
|
value: function forCalculateExpList(data, itemParam, uniqueName) {
|
|
@@ -1127,6 +1132,7 @@ var PageHome = function (_React$Component) {
|
|
|
1127
1132
|
var fieldItemArray = []; //计算公式所有参与的字段itemParam
|
|
1128
1133
|
for (var j = 0; j < fieldArray.length; j++) {
|
|
1129
1134
|
var fieldArrayItem = fieldArray[j];
|
|
1135
|
+
|
|
1130
1136
|
var fieldItem = null;
|
|
1131
1137
|
if (this.refs[fieldArrayItem]) {
|
|
1132
1138
|
//当字段是主表时
|
|
@@ -1189,17 +1195,17 @@ var PageHome = function (_React$Component) {
|
|
|
1189
1195
|
filedItemValue = 0;
|
|
1190
1196
|
//return false;
|
|
1191
1197
|
}
|
|
1192
|
-
var sumRegExp = new RegExp("sum\\(\\[" + fieldArrayItem + "\\]\\)", "g");
|
|
1198
|
+
var sumRegExp = new RegExp("sum\\(\\[" + this.replaceDollar(fieldArrayItem) + "\\]\\)", "g");
|
|
1193
1199
|
|
|
1194
1200
|
if (exp.match(sumRegExp)) {
|
|
1195
1201
|
//当有sum函数
|
|
1196
1202
|
if (Array.isArray(fieldItem)) {
|
|
1197
1203
|
var sumValue = this.sum(fieldItem);
|
|
1198
|
-
exp = exp.replace(new RegExp("sum\\(\\[" + fieldArrayItem + "\\]\\)", "g"), "(" + sumValue + ")");
|
|
1204
|
+
exp = exp.replace(new RegExp("sum\\(\\[" + this.replaceDollar(fieldArrayItem) + "\\]\\)", "g"), "(" + sumValue + ")");
|
|
1199
1205
|
}
|
|
1200
1206
|
}
|
|
1201
1207
|
|
|
1202
|
-
exp = exp.replace(new RegExp("\\[" + fieldArrayItem + "\\]", "g"), "(" + filedItemValue + ")");
|
|
1208
|
+
exp = exp.replace(new RegExp("\\[" + this.replaceDollar(fieldArrayItem) + "\\]", "g"), "(" + filedItemValue + ")");
|
|
1203
1209
|
}
|
|
1204
1210
|
}
|
|
1205
1211
|
|
|
@@ -205,6 +205,8 @@ var ListItem = function (_React$Component) {
|
|
|
205
205
|
_fullUrl = _fullUrl.replace("/" + projectPath + "/", "/budget/budgetproject/").split('?_')[0].split('#/')[0];
|
|
206
206
|
} else if (module == 'hoa_topic' || module == 'hoa_funds' || module == 'hoa_achievements') {
|
|
207
207
|
_fullUrl = _fullUrl.replace("/" + projectPath + "/", "/ky/ky/").split('?_')[0].split('#/')[0];
|
|
208
|
+
} else if (module == 'contract_sign' || module == 'contract_exmanage') {
|
|
209
|
+
_fullUrl = _fullUrl.replace("/" + projectPath + "/", "/contract/contract/").split('?_')[0].split('#/')[0];
|
|
208
210
|
} else if (module.indexOf("dj_") != '-1' || module.indexOf("jj_") != '-1' || module.indexOf("zdh_") != '-1' || module.indexOf("gh_") != '-1') {
|
|
209
211
|
_fullUrl = _fullUrl.split('?_')[0].split('#/')[0];
|
|
210
212
|
} else if (module.indexOf("hoa_") != '-1') {
|
|
@@ -325,6 +327,8 @@ var ListItem = function (_React$Component) {
|
|
|
325
327
|
fullUrl = fullUrl.replace("/" + projectPath + "/", "/budget/budgetproject/").split('?_')[0].split('/approval/all')[0];
|
|
326
328
|
} else if (module == 'hoa_topic' || module == 'hoa_funds' || module == 'hoa_achievements') {
|
|
327
329
|
fullUrl = fullUrl.replace("/" + projectPath + "/", "/ky/ky/").split('?_')[0].split('/approval/all')[0];
|
|
330
|
+
} else if (module == 'contract_sign' || module == 'contract_exmanage') {
|
|
331
|
+
fullUrl = fullUrl.replace("/" + projectPath + "/", "/contract/contract/").split('?_')[0].split('#/')[0];
|
|
328
332
|
} else if (module.indexOf("dj_") != '-1' || module.indexOf("jj_") != '-1' || module.indexOf("zdh_") != '-1' || module.indexOf("gh_") != '-1') {
|
|
329
333
|
fullUrl = fullUrl.split('?_')[0].split('/approval/all')[0];
|
|
330
334
|
} else if (module.indexOf("hoa_") != '-1') {
|
|
@@ -335,7 +339,7 @@ var ListItem = function (_React$Component) {
|
|
|
335
339
|
fullUrl = fullUrl.replace("/" + projectPath + "/", "/modules/" + mobilePath + "/").split('?_')[0].split('/approval/all')[0];
|
|
336
340
|
}
|
|
337
341
|
var _url3 = "process/processDetails/" + taskId + "/" + param_formKey + "/" + param_businessKey + "/" + param_list_type + "/0/" + processInstanceId + "/" + module + "/" + loginUserId;
|
|
338
|
-
_url3 = fullUrl + '
|
|
342
|
+
_url3 = fullUrl + '#/' + _url3;
|
|
339
343
|
decodeURI(_url3);
|
|
340
344
|
location.href = _url3;
|
|
341
345
|
}
|