mcrm-mobile 1.7.1 → 1.7.3

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/es/index.css CHANGED
@@ -3141,7 +3141,6 @@ textarea {
3141
3141
  font-weight: bold;
3142
3142
  line-height: 30px;
3143
3143
  cursor: none;
3144
- pointer-events: none;
3145
3144
  text-overflow: ellipsis;
3146
3145
  white-space: nowrap;
3147
3146
  overflow: hidden;
package/es/index.js CHANGED
@@ -91,7 +91,7 @@ import Tag from './tag';
91
91
  import Toast from './toast';
92
92
  import TreeSelect from './tree-select';
93
93
  import Uploader from './uploader';
94
- var version = '1.7.1';
94
+ var version = '1.7.3';
95
95
  var components = [ActionSheet, AddressPicker, Api, Badge, Biz, Button, Calendar, Card, Cell, CellGroup, Checkbox, CheckboxGroup, Circle, Col, Collapse, CollapseItem, CommonUtils, CountDown, DataProcess, DatePicker, DatetimePicker, Dialog, Directive, Divider, Drag, DropdownItem, DropdownMenu, Empty, Field, GoodsAction, GoodsActionButton, GoodsActionIcon, Grid, GridItem, Http, Icon, Image, ImagePreview, IndexAnchor, IndexBar, Info, List, Loading, Local, Menu, MenuIcon, MenuJump, Menus, NavBar, NoticeBar, Notify, Overlay, Pagination, Panel, PasswordInput, Picker, Popover, Popup, Progress, PullRefresh, Radio, RadioGroup, Rank, Rate, Row, SafeKeyboard, Search, Session, ShareSheet, Sidebar, SidebarItem, Slider, Step, Stepper, Steps, Sticky, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, Tab, Tabbar, TabbarItem, Table, TableColumn, Tabs, Tag, Toast, TreeSelect, Uploader];
96
96
 
97
97
  var install = function install(Vue) {
@@ -34,24 +34,27 @@ var viewName = {
34
34
  2001514: "网格通-管理员",
35
35
  2001516: "网格通-销售经理",
36
36
  2001517: "网格通-网格长",
37
- 2001520: "网格通-社区经理"
37
+ 2001520: "网格通-社区经理",
38
+ 2001523: "网格通-商客经理",
39
+ 2001522: "网格通-装维人员",
40
+ 2001521: "网格通-商客联盟"
38
41
  };
39
- /**
40
- * 加密
41
- * @param context
42
- * @param envType
43
- * @return {string} 返回的是base64格式的密文
42
+ /**
43
+ * 加密
44
+ * @param context
45
+ * @param envType
46
+ * @return {string} 返回的是base64格式的密文
44
47
  */
45
48
 
46
49
  var aesEncrypt = function aesEncrypt(context, envType) {
47
50
  var key = envType === "test" ? "6000001111737173" : "6000002087795174";
48
51
  return DataProcess.aesEncrypt(context, key, key);
49
52
  };
50
- /**
51
- * 获取SerialNum
52
- * @param menu 菜单信息
53
- * @param sybInfo 网格通信息
54
- * @returns {Promise<string>}
53
+ /**
54
+ * 获取SerialNum
55
+ * @param menu 菜单信息
56
+ * @param sybInfo 网格通信息
57
+ * @returns {Promise<string>}
55
58
  */
56
59
 
57
60
 
@@ -72,27 +75,27 @@ var getSerialNumNew = /*#__PURE__*/function () {
72
75
  orgId = _yield$getExpInfo.orgId;
73
76
  billId = sybInfo.billId;
74
77
  menuCode = menu.menuCode, menuPageCode = menu.menuPageCode;
75
- /*
76
- * 业务类型
77
- * 00:固话商机;
78
- * 01:营销案;
79
- * 02:终端;
80
- * 03:宽带新装;
81
- * 04:宽带续费;
82
- * 05:套卡;
83
- * 07:亲情网;
84
- * 08:虚拟网;
85
- * 09:融合业务专区;
86
- * 10:业务设置;
87
- * 11:政企号卡订单查询;
88
- * 12:统一支付;
89
- * 13:权益商城;
90
- * 14:营销案一键办理;
91
- * 15:套餐变更;
92
- * 16:业务大厅预约单详情;
93
- * 17:营销案(新);
94
- * 18:终端出库(新);
95
- * 99:通用宝码
78
+ /*
79
+ * 业务类型
80
+ * 00:固话商机;
81
+ * 01:营销案;
82
+ * 02:终端;
83
+ * 03:宽带新装;
84
+ * 04:宽带续费;
85
+ * 05:套卡;
86
+ * 07:亲情网;
87
+ * 08:虚拟网;
88
+ * 09:融合业务专区;
89
+ * 10:业务设置;
90
+ * 11:政企号卡订单查询;
91
+ * 12:统一支付;
92
+ * 13:权益商城;
93
+ * 14:营销案一键办理;
94
+ * 15:套餐变更;
95
+ * 16:业务大厅预约单详情;
96
+ * 17:营销案(新);
97
+ * 18:终端出库(新);
98
+ * 99:通用宝码
96
99
  * */
97
100
 
98
101
  _context.t0 = menuCode;
@@ -224,13 +227,13 @@ var getSerialNumNew = /*#__PURE__*/function () {
224
227
  return _ref.apply(this, arguments);
225
228
  };
226
229
  }();
227
- /**
228
- * spliceUrl 拼接url
229
- * @param data 接口返回数据
230
- * @param menu 菜单信息
231
- * @param sybInfo 网格通信息
232
- * @param extraParams 扩展参数
233
- * @returns {*} 拼接后的url
230
+ /**
231
+ * spliceUrl 拼接url
232
+ * @param data 接口返回数据
233
+ * @param menu 菜单信息
234
+ * @param sybInfo 网格通信息
235
+ * @param extraParams 扩展参数
236
+ * @returns {*} 拼接后的url
234
237
  */
235
238
 
236
239
 
@@ -746,13 +749,13 @@ var spliceUrl = /*#__PURE__*/function () {
746
749
  return _ref2.apply(this, arguments);
747
750
  };
748
751
  }();
749
- /**
750
- * 拼接原生入参
751
- * @param menu 菜单信息
752
- * @param data 接口返回的信息
753
- * @param sybInfo 网格通信息
754
- * @param extraParams 额外信息
755
- * @returns {{}}
752
+ /**
753
+ * 拼接原生入参
754
+ * @param menu 菜单信息
755
+ * @param data 接口返回的信息
756
+ * @param sybInfo 网格通信息
757
+ * @param extraParams 额外信息
758
+ * @returns {{}}
756
759
  */
757
760
 
758
761
 
@@ -869,8 +872,8 @@ var spliceParams = /*#__PURE__*/function () {
869
872
  return _ref5.apply(this, arguments);
870
873
  };
871
874
  }();
872
- /**
873
- * 整合操作日志数据
875
+ /**
876
+ * 整合操作日志数据
874
877
  */
875
878
 
876
879
 
@@ -943,16 +946,16 @@ var operLogData = /*#__PURE__*/function () {
943
946
  return _ref6.apply(this, arguments);
944
947
  };
945
948
  }();
946
- /**
947
- * 根据url打开页面
948
- * @param data 接口响应数据
949
- * @param menu 菜单信息
950
- * @param sybInfo 网格通信息
951
- * @param extraParams 额外参数
952
- * @param openParams 打开页面通过原生传递的参数
953
- * @param onClose 页面关闭时,回调函数
954
- * @param onSuccess 页面打开成功时,回调函数
955
- * @param onFail 页面打开失败时,回调函数
949
+ /**
950
+ * 根据url打开页面
951
+ * @param data 接口响应数据
952
+ * @param menu 菜单信息
953
+ * @param sybInfo 网格通信息
954
+ * @param extraParams 额外参数
955
+ * @param openParams 打开页面通过原生传递的参数
956
+ * @param onClose 页面关闭时,回调函数
957
+ * @param onSuccess 页面打开成功时,回调函数
958
+ * @param onFail 页面打开失败时,回调函数
956
959
  */
957
960
 
958
961
 
@@ -1163,15 +1166,15 @@ var onAuth = function onAuth(menu, sybInfo) {
1163
1166
  });
1164
1167
  });
1165
1168
  };
1166
- /**
1167
- * 打开网格通自己开发的页面
1168
- * @param menu 菜单信息
1169
- * @param data 接口响应数据
1170
- * @param sybInfo {Object} 网格通信息
1171
- * @param extraParams {Object} 额外参数
1172
- * @param onClose {Function} 页面关闭时,回调函数
1173
- * @param onSuccess {Function} 页面打开成功时,回调函数
1174
- * @param onFail {Function} 页面打开失败时,回调函数
1169
+ /**
1170
+ * 打开网格通自己开发的页面
1171
+ * @param menu 菜单信息
1172
+ * @param data 接口响应数据
1173
+ * @param sybInfo {Object} 网格通信息
1174
+ * @param extraParams {Object} 额外参数
1175
+ * @param onClose {Function} 页面关闭时,回调函数
1176
+ * @param onSuccess {Function} 页面打开成功时,回调函数
1177
+ * @param onFail {Function} 页面打开失败时,回调函数
1175
1178
  */
1176
1179
 
1177
1180
 
@@ -345,7 +345,6 @@
345
345
  font-weight: bold;
346
346
  line-height: 30px;
347
347
  cursor: none;
348
- pointer-events: none;
349
348
  text-overflow: ellipsis;
350
349
  white-space: nowrap;
351
350
  overflow: hidden;
@@ -80,7 +80,7 @@
80
80
  font-weight: bold;
81
81
  line-height: @nav-bar-title-height;
82
82
  cursor: none;
83
- pointer-events: none;
83
+ // pointer-events: none;
84
84
  text-overflow: ellipsis;
85
85
  white-space: nowrap;
86
86
  overflow: hidden;
package/es/utils/http.js CHANGED
@@ -6,6 +6,36 @@ import Message from "./message.json";
6
6
  import DataProcess from "../data-process";
7
7
  import Http from "../http";
8
8
  import CommonUtils from "../common-utils";
9
+ import Toast from "../toast";
10
+
11
+ var logoutAlert = function logoutAlert(message) {
12
+ Toast.clear();
13
+
14
+ if (!Session.get("isLoginOutStatus")) {
15
+ Session.set("isLoginOutStatus", true);
16
+ Http.operationSaveLog({
17
+ operationTypeName: "登出",
18
+ operationTypeCode: "loginOut",
19
+ moduleNo: "",
20
+ moduleName: "登录",
21
+ operationResult: 0
22
+ });
23
+
24
+ if (process.env.NODE_ENV === "local") {
25
+ Dialog.alert({
26
+ top: true,
27
+ message: message
28
+ }).then(function () {
29
+ window.location.href = window.location.origin + "/mcrm-marketing-personnel/index.html#/login";
30
+ });
31
+ } else {
32
+ mcrm.util.common({
33
+ action: "logout"
34
+ });
35
+ }
36
+ }
37
+ };
38
+
9
39
  var instanceJson = axios.create({
10
40
  method: "post",
11
41
  headers: {
@@ -105,21 +135,7 @@ instanceJson.interceptors.response.use(function (response) {
105
135
  if (resData.code === 200 || resData.code === "200" || resData.msg && resData.msg.code === 200 || resData.msg && resData.msg.code === "200") {
106
136
  return resData.data;
107
137
  } else if (resData.code === 402 || resData.code === "402" || resData.msg && resData.msg.code === 402 || resData.msg && resData.msg.code === "402") {
108
- Dialog.alert({
109
- top: true,
110
- message: resData.message || resData.msg.message
111
- }).then(function () {
112
- Http.operationSaveLog({
113
- operationTypeName: "登出",
114
- operationTypeCode: "loginOut",
115
- moduleNo: "",
116
- moduleName: "登录",
117
- operationResult: 0
118
- });
119
- mcrm.util.common({
120
- action: "logout"
121
- });
122
- });
138
+ logoutAlert(resData.message || resData.msg.message);
123
139
  return Promise.reject(resData.message || resData.msg.message);
124
140
  } else {
125
141
  return Promise.reject(resData.message || resData.msg.message);
@@ -127,7 +143,7 @@ instanceJson.interceptors.response.use(function (response) {
127
143
  }, function (error) {
128
144
  error.response && error.response.data && (error.response.data = DataProcess.aesDecryptHttp(error.response.data)); // 如果是json字符串则进行转义
129
145
 
130
- typeof error.response.data === "string" && (error.response.data = JSON.parse(error.response.data));
146
+ typeof error.response.data === "string" && error.response.data !== "" && (error.response.data = JSON.parse(error.response.data));
131
147
 
132
148
  if (error.code === "ECONNABORTED" && error.message && error.message.indexOf("timeout") >= 0) {
133
149
  return Promise.reject("请求超时");
@@ -141,21 +157,7 @@ instanceJson.interceptors.response.use(function (response) {
141
157
  var res = JSON.parse(resultMCRMReturn || "");
142
158
 
143
159
  if (res.msg.code === "0") {
144
- Dialog.alert({
145
- message: res.msg.message,
146
- top: true
147
- }).then(function () {
148
- Http.operationSaveLog({
149
- operationTypeName: "登出",
150
- operationTypeCode: "loginOut",
151
- moduleNo: "",
152
- moduleName: "登录",
153
- operationResult: 0
154
- });
155
- mcrm.util.common({
156
- action: "logout"
157
- });
158
- });
160
+ logoutAlert(res.msg.message);
159
161
  }
160
162
 
161
163
  return Promise.reject(res.msg.message);
@@ -163,21 +165,7 @@ instanceJson.interceptors.response.use(function (response) {
163
165
  return Promise.reject(Message.INTERFACE_ERROR_500);
164
166
  }
165
167
  } else if (error.response && error.response.status === 401) {
166
- Dialog.alert({
167
- message: error.response.data.msg.message,
168
- top: true
169
- }).then(function () {
170
- Http.operationSaveLog({
171
- operationTypeName: "登出",
172
- operationTypeCode: "loginOut",
173
- moduleNo: "",
174
- moduleName: "登录",
175
- operationResult: 0
176
- });
177
- mcrm.util.common({
178
- action: "logout"
179
- });
180
- });
168
+ logoutAlert(error.response.data.msg.message);
181
169
  return Promise.reject("");
182
170
  } else if (error.response && error.response.status === 403) {
183
171
  try {
@@ -188,21 +176,14 @@ instanceJson.interceptors.response.use(function (response) {
188
176
  var msg = error.response.data.msg;
189
177
 
190
178
  if (["-103", "-105", "-108"].indexOf(msg.code) > -1) {
191
- Dialog.alert({
192
- top: true,
193
- message: "您的登录会话已失效,请重新登录。"
194
- }).then(function () {
195
- Http.operationSaveLog({
196
- operationTypeName: "登出",
197
- operationTypeCode: "loginOut",
198
- moduleNo: "",
199
- moduleName: "登录",
200
- operationResult: 0
201
- });
202
- mcrm.util.common({
203
- action: "logout"
204
- });
179
+ Http.operationSaveLog({
180
+ operationTypeName: "登出",
181
+ operationTypeCode: "loginOut",
182
+ moduleNo: "",
183
+ moduleName: "登录",
184
+ operationResult: 0
205
185
  });
186
+ logoutAlert("您的登录会话已失效,请重新登录。");
206
187
  }
207
188
  } catch (e) {
208
189
  console.error(e);
package/lib/index.css CHANGED
@@ -3141,7 +3141,6 @@ textarea {
3141
3141
  font-weight: bold;
3142
3142
  line-height: 30px;
3143
3143
  cursor: none;
3144
- pointer-events: none;
3145
3144
  text-overflow: ellipsis;
3146
3145
  white-space: nowrap;
3147
3146
  overflow: hidden;
package/lib/index.js CHANGED
@@ -373,7 +373,7 @@ var _uploader = _interopRequireDefault(require("./uploader"));
373
373
 
374
374
  exports.Uploader = _uploader.default;
375
375
  // This file is auto generated by build/build-entry.js
376
- var version = '1.7.1';
376
+ var version = '1.7.3';
377
377
  exports.version = version;
378
378
  var components = [_actionSheet.default, _addressPicker.default, _api.default, _badge.default, _biz.default, _button.default, _calendar.default, _card.default, _cell.default, _cellGroup.default, _checkbox.default, _checkboxGroup.default, _circle.default, _col.default, _collapse.default, _collapseItem.default, _commonUtils.default, _countDown.default, _dataProcess.default, _datePicker.default, _datetimePicker.default, _dialog.default, _directive.default, _divider.default, _drag.default, _dropdownItem.default, _dropdownMenu.default, _empty.default, _field.default, _goodsAction.default, _goodsActionButton.default, _goodsActionIcon.default, _grid.default, _gridItem.default, _http.default, _icon.default, _image.default, _imagePreview.default, _indexAnchor.default, _indexBar.default, _info.default, _list.default, _loading.default, _local.default, _menu.default, _menuIcon.default, _menuJump.default, _menus.default, _navBar.default, _noticeBar.default, _notify.default, _overlay.default, _pagination.default, _panel.default, _passwordInput.default, _picker.default, _popover.default, _popup.default, _progress.default, _pullRefresh.default, _radio.default, _radioGroup.default, _rank.default, _rate.default, _row.default, _safeKeyboard.default, _search.default, _session.default, _shareSheet.default, _sidebar.default, _sidebarItem.default, _slider.default, _step.default, _stepper.default, _steps.default, _sticky.default, _swipe.default, _swipeCell.default, _swipeItem.default, _switch.default, _switchCell.default, _tab.default, _tabbar.default, _tabbarItem.default, _table.default, _tableColumn.default, _tabs.default, _tag.default, _toast.default, _treeSelect.default, _uploader.default];
379
379