fmui-base 2.2.66 → 2.2.67

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 CHANGED
@@ -3,6 +3,7 @@
3
3
  ---npm publish
4
4
 
5
5
  ## 更新日志
6
+ - 2.2.67: 移动端合同管理移动端跳转
6
7
  - 2.2.66: 移动端关联字段为空报错
7
8
  - 2.2.65: 移动端关联字段报错
8
9
  - 2.2.64: 移动端提醒支持强制选中,移动端必提醒
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_sign') {
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_sign') {
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') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.2.66",
3
+ "version": "2.2.67",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",