tplus-portaltouch 3.19.2 → 3.21.1

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.
Files changed (69) hide show
  1. package/dist/api/ModifyPassApi.js.map +1 -1
  2. package/dist/components/dutyandsettle/dutysettlebill.js.map +1 -1
  3. package/dist/components/dutyandsettle/dutysettlehistory.js +66 -45
  4. package/dist/components/dutyandsettle/dutysettlehistory.js.map +1 -1
  5. package/dist/components/dutyandsettle/index.js.map +1 -1
  6. package/dist/components/dutyandsettle/tipContent.js.map +1 -1
  7. package/dist/components/header/customUse.js.map +1 -1
  8. package/dist/components/header/headContent.js.map +1 -1
  9. package/dist/components/header/index.js +13 -13
  10. package/dist/components/header/index.js.map +1 -1
  11. package/dist/components/header/style.less +351 -351
  12. package/dist/components/header/themeModal.js.map +1 -1
  13. package/dist/components/header/vertical-touch.js.map +1 -1
  14. package/dist/components/header/vertical-touch.less +228 -228
  15. package/dist/containers/Main/index.js.map +1 -1
  16. package/dist/dutyService/index.js.map +1 -1
  17. package/dist/index.js.map +1 -1
  18. package/dist/middleWare/index.js.map +1 -1
  19. package/dist/modalRouter/StaticRouter.js.map +1 -1
  20. package/dist/modalRouter/index.js +8 -8
  21. package/dist/modalRouter/index.js.map +1 -1
  22. package/dist/pages/Modal/index.js.map +1 -1
  23. package/dist/pages/Modal/style.less +5 -5
  24. package/dist/pages/Portal/data.js +7 -7
  25. package/dist/pages/Portal/data.js.map +1 -1
  26. package/dist/pages/Portal/horizontalPadPortal.js.map +1 -1
  27. package/dist/pages/Portal/horizontalSunMiPortal.js.map +1 -1
  28. package/dist/pages/Portal/index.js +63 -32
  29. package/dist/pages/Portal/index.js.map +1 -1
  30. package/dist/pages/Portal/index.less +612 -612
  31. package/dist/pages/Portal/verticalPortal.js.map +1 -1
  32. package/dist/pages/Portalbc/data.js +94 -6
  33. package/dist/pages/Portalbc/data.js.map +1 -1
  34. package/dist/pages/Portalbc/horizontalPadPortal.js.map +1 -1
  35. package/dist/pages/Portalbc/horizontalSunMiPortal.js.map +1 -1
  36. package/dist/pages/Portalbc/index.js +228 -193
  37. package/dist/pages/Portalbc/index.js.map +1 -1
  38. package/dist/pages/Portalbc/index.less +732 -727
  39. package/dist/pages/Portalbc/onframe.js.map +1 -1
  40. package/dist/pages/Portalbc/verticalPortal.js.map +1 -1
  41. package/dist/pages/dutyandsettle/AuthProcess.js.map +1 -1
  42. package/dist/pages/dutyandsettle/index.js.map +1 -1
  43. package/dist/pages/dutyandsettle/index.less +529 -529
  44. package/dist/pages/dutyandsettle/offDuty.js +104 -89
  45. package/dist/pages/dutyandsettle/offDuty.js.map +1 -1
  46. package/dist/pages/dutyandsettle/onDialy.js.map +1 -1
  47. package/dist/pages/dutyandsettle/onDuty.js.map +1 -1
  48. package/dist/pages/dutyandsettle/onUnDaily.js.map +1 -1
  49. package/dist/pages/dutyandsettle/settleDialy.js.map +1 -1
  50. package/dist/pages/index.js.map +1 -1
  51. package/dist/pages/modifyPass/index.js.map +1 -1
  52. package/dist/pages/modifyPass/style.less +71 -71
  53. package/dist/pages/notFound/index.js.map +1 -1
  54. package/dist/pages/notFound/style.less +17 -17
  55. package/dist/stores/ModalRouter.js.map +1 -1
  56. package/dist/stores/ModifyPassStore.js.map +1 -1
  57. package/dist/stores/PortalStore.js +5 -5
  58. package/dist/stores/PortalStore.js.map +1 -1
  59. package/dist/stores/PosLoginStore.js.map +1 -1
  60. package/dist/stores/billHistoryStore.js.map +1 -1
  61. package/dist/stores/dutySettleStore.js.map +1 -1
  62. package/dist/stores/index.js.map +1 -1
  63. package/dist/utils/PrintProcess.js +10 -10
  64. package/dist/utils/PrintProcess.js.map +1 -1
  65. package/dist/utils/index.js.map +1 -1
  66. package/dist/utils/networkCheck.js +6 -8
  67. package/dist/utils/networkCheck.js.map +1 -1
  68. package/package.json +4 -4
  69. package/tsconfig.json +14 -14
@@ -49,12 +49,12 @@ var _inherits2 = require('babel-runtime/helpers/inherits');
49
49
 
50
50
  var _inherits3 = _interopRequireDefault(_inherits2);
51
51
 
52
- var _class, _class2, _temp; /*
53
- * @Description:
54
- * @Date: 2019-08-13 08:42:18
55
- * @LastEditTime: 2021-10-20 11:12:08
56
- * @LastEditors: chenlongad
57
- * @modify:修改跳转到T+的查询方案方式
52
+ var _class, _class2, _temp; /*
53
+ * @Description:
54
+ * @Date: 2019-08-13 08:42:18
55
+ * @LastEditTime: 2020-10-22 14:14:18
56
+ * @LastEditors: chenlongad
57
+ * @modify:修改跳转到T+的查询方案方式
58
58
  */
59
59
 
60
60
 
@@ -137,28 +137,51 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
137
137
  _this.sunMiPresentationInit = function (result) {
138
138
  //SunMi初始化参数设置。
139
139
  //副屏幕交互。硬件改动20200428 需要在商米页面加载成功后才能发送 初始化命令
140
- // 进行主副屏数据交互 初始化
141
- var _ref = _mutantsMicrofx.localStore.get('user') || {},
142
- _ref$store = _ref.store;
143
-
144
- _ref$store = _ref$store === undefined ? {} : _ref$store;
145
- var _ref$store$storeName = _ref$store.storeName,
146
- storeName = _ref$store$storeName === undefined ? '' : _ref$store$storeName;
147
-
148
- console.log(result);
149
-
150
- var _enumController$getEn = _mutantsUtil.enumController.getEnumOj(),
151
- RE_POSParamType = _enumController$getEn.RE_POSParamType;
140
+ // 获取是否缓存副屏地址 只在app打开的生命周期缓存 读取 关闭重新缓存
141
+ var SunMi_fuping_url = sessionStorage.getItem("SunMi_fuping_url");
142
+ // 如果存在缓存地址 使用缓存地址 否则使用新hash地址
143
+ if (!SunMi_fuping_url) {
144
+ var url = location.origin + location.pathname + '?ts=' + new Date().getTime() + '&vt=3&fuping=3';
145
+ window.sunMi_PresentationManager && window.sunMi_PresentationManager.secondScreenLoadUrl(url).then(function () {
146
+ _this.FuPingIsLoaded = true;
147
+ // 加载副屏页面成功 缓存地址
148
+ sessionStorage.setItem("SunMi_fuping_url", url);
149
+ setTimeout(function () {
150
+ // 进行主副屏数据交互 初始化
151
+ var _ref = _mutantsMicrofx.localStore.get('user') || {},
152
+ _ref$store = _ref.store;
153
+
154
+ _ref$store = _ref$store === undefined ? {} : _ref$store;
155
+ var _ref$store$storeName = _ref$store.storeName,
156
+ storeName = _ref$store$storeName === undefined ? '' : _ref$store$storeName;
157
+
158
+ console.log(result);
159
+
160
+ var _enumController$getEn = _mutantsUtil.enumController.getEnumOj(),
161
+ RE_POSParamType = _enumController$getEn.RE_POSParamType;
162
+
163
+ var DUAL_SCREEN_SETTING = RE_POSParamType.DUAL_SCREEN_SETTING;
164
+
165
+ var filterResult = result && result.filter ? result.filter(function (settingItem) {
166
+ return settingItem.ParamType && (settingItem.ParamType.Id === DUAL_SCREEN_SETTING || settingItem.ParamType === DUAL_SCREEN_SETTING);
167
+ }) : [];
168
+ window.sunMi_PresentationManager && window.sunMi_PresentationManager.sharedPreferencesSet("setting_setData", filterResult).then(function () {
169
+ console.log("缓存数据成功");
170
+ window.sunMi_PresentationManager && window.sunMi_PresentationManager.sendMessageToSecondScreen({ step: 0, storeName: storeName });
171
+ });
172
+ }, 2000);
173
+ });
174
+ } else {
175
+ // 表示已经加载过页面只需要重置状态即可
176
+ var _ref2 = _mutantsMicrofx.localStore.get('user') || {},
177
+ _ref2$store = _ref2.store;
152
178
 
153
- var DUAL_SCREEN_SETTING = RE_POSParamType.DUAL_SCREEN_SETTING;
179
+ _ref2$store = _ref2$store === undefined ? {} : _ref2$store;
180
+ var _ref2$store$storeName = _ref2$store.storeName,
181
+ storeName = _ref2$store$storeName === undefined ? '' : _ref2$store$storeName;
154
182
 
155
- var filterResult = result && result.filter ? result.filter(function (settingItem) {
156
- return settingItem.ParamType === DUAL_SCREEN_SETTING;
157
- }) : [];
158
- window.sunMi_PresentationManager && window.sunMi_PresentationManager.sharedPreferencesSet("setting_setData", filterResult).then(function () {
159
- console.log("缓存数据成功");
160
183
  window.sunMi_PresentationManager && window.sunMi_PresentationManager.sendMessageToSecondScreen({ step: 0, storeName: storeName });
161
- });
184
+ }
162
185
  };
163
186
 
164
187
  _this.getTcBasicInfoInit = function () {
@@ -187,11 +210,11 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
187
210
 
188
211
  var loginInfo = user.options.get('loginInfo');
189
212
 
190
- var _ref2 = loginInfo || {},
191
- UserCode = _ref2.UserCode,
192
- AccountNum = _ref2.AccountNum,
193
- posCode = _ref2.posCode,
194
- TplusStoreId = _ref2.TplusStoreId;
213
+ var _ref3 = loginInfo || {},
214
+ UserCode = _ref3.UserCode,
215
+ AccountNum = _ref3.AccountNum,
216
+ posCode = _ref3.posCode,
217
+ TplusStoreId = _ref3.TplusStoreId;
195
218
 
196
219
  var uid = _this.tplusEncode(UserCode);
197
220
  var pwd = _this.tplusEncode(user.options.get("password"));
@@ -243,11 +266,11 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
243
266
  return vv.Name === Name;
244
267
  });
245
268
 
246
- var _ref3 = controllable || {},
247
- Visibility = _ref3.Visibility,
248
- HoldFunctionAuth = _ref3.HoldFunctionAuth,
249
- Title = _ref3.Title,
250
- MenuCode = _ref3.MenuCode;
269
+ var _ref4 = controllable || {},
270
+ Visibility = _ref4.Visibility,
271
+ HoldFunctionAuth = _ref4.HoldFunctionAuth,
272
+ Title = _ref4.Title,
273
+ MenuCode = _ref4.MenuCode;
251
274
 
252
275
  var errorTip = void 0;
253
276
  if (!Title) {
@@ -319,19 +342,19 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
319
342
  };
320
343
 
321
344
  _this.toFramePage = function (params) {
322
- var _ref4 = params || {},
323
- app = _ref4.app,
324
- title = _ref4.title,
325
- style = _ref4.style,
326
- search = _ref4.search,
327
- tmenuCode = _ref4.tmenuCode,
328
- MenuCode = _ref4.MenuCode,
329
- isHsyLoadFinish = _ref4.isHsyLoadFinish;
345
+ var _ref5 = params || {},
346
+ app = _ref5.app,
347
+ title = _ref5.title,
348
+ style = _ref5.style,
349
+ search = _ref5.search,
350
+ tmenuCode = _ref5.tmenuCode,
351
+ MenuCode = _ref5.MenuCode,
352
+ isHsyLoadFinish = _ref5.isHsyLoadFinish;
330
353
 
331
354
  switch (app) {
332
355
  case 'cc':
333
356
  var sh = '';
334
- if (!isHsyLoadFinish && !_this.isHorizontalSunMi) {
357
+ if (!isHsyLoadFinish) {
335
358
  return _tplusComponentsTouch.Message.warn('正在加载资源中,请稍后。');
336
359
  }
337
360
  if (!search) {
@@ -385,8 +408,8 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
385
408
  };
386
409
 
387
410
  _this.toTplusPage = function () {
388
- var _ref5 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(tmenuCode, search) {
389
- var ret, _ref6, ossjumpUrl, postMessageUrl, dsearchPlanID, portalStore, menu, external_frame_tc, win, loadTcURL;
411
+ var _ref6 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(tmenuCode, search) {
412
+ var ret, _ref7, ossjumpUrl, postMessageUrl, dsearchPlanID, portalStore, menu, external_frame_tc, win, loadTcURL;
390
413
 
391
414
  return _regenerator2.default.wrap(function _callee$(_context) {
392
415
  while (1) {
@@ -402,7 +425,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
402
425
  return _context.abrupt('return');
403
426
 
404
427
  case 3:
405
- _ref6 = ret || {}, ossjumpUrl = _ref6.ossjumpUrl, postMessageUrl = _ref6.postMessageUrl;
428
+ _ref7 = ret || {}, ossjumpUrl = _ref7.ossjumpUrl, postMessageUrl = _ref7.postMessageUrl;
406
429
  dsearchPlanID = '';
407
430
 
408
431
  if (!(search && search.id)) {
@@ -424,26 +447,17 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
424
447
  if (dsearchPlanID) {
425
448
  ossjumpUrl += '&searchPlanID=' + _this.tplusEncode(dsearchPlanID);
426
449
  }
450
+ //对于专属云、云主机,如果配置的http,存在跨域问题,暂时解决不了,只能通过打开默认浏览器打开。
427
451
 
428
- if (!_this.isHorizontalSunMi) {
429
- _context.next = 17;
430
- break;
431
- }
432
-
433
- window.android_CommonFun.openWebUrlByOutBrowser(ossjumpUrl);
434
- _context.next = 25;
435
- break;
436
-
437
- case 17:
438
- if (!(_this.hasElectron === true && (postMessageUrl + '').indexOf('https') == -1 && (_this.new_retail_app == 'tczsy' || _this.new_retail_app == 'tcyzj'))) {
439
- _context.next = 20;
452
+ if (!((postMessageUrl + '').indexOf('https') == -1 && (_this.new_retail_app == 'tczsy' || _this.new_retail_app == 'tcyzj'))) {
453
+ _context.next = 16;
440
454
  break;
441
455
  }
442
456
 
443
457
  _mutantsMicrofx.nativeMs.useDefaultBrowser(ossjumpUrl);
444
458
  return _context.abrupt('return');
445
459
 
446
- case 20:
460
+ case 16:
447
461
  external_frame_tc = document.getElementById('external-frame-tc');
448
462
  win = external_frame_tc.contentWindow;
449
463
  loadTcURL = _this.state.loadTcURL;
@@ -462,7 +476,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
462
476
  }
463
477
  });
464
478
 
465
- case 25:
479
+ case 21:
466
480
  case 'end':
467
481
  return _context.stop();
468
482
  }
@@ -471,139 +485,160 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
471
485
  }));
472
486
 
473
487
  return function (_x2, _x3) {
474
- return _ref5.apply(this, arguments);
488
+ return _ref6.apply(this, arguments);
475
489
  };
476
490
  }();
477
491
 
478
- _this.toHsyPage = function () {
479
- var _ref7 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(params) {
480
- var content_only, bar_bg, bar_active_bg, menu, secondRouter, activePrompt, closePrompt, closeable, leavePrompt, lock, pageId, pageParams, path, tabId, tabLabel, pageType, _k, filter, IdWarehouse, WarehouseName, _ref8, _ref8$loginInfo, _ref8$loginInfo$IdSto, IdStore, _ref8$loginInfo$PosId, PosId, _ref8$store, _ref8$store$storeName, storeName, commonArgs, actionUrl, cc_url, CC_WEB_URL, external_frame, win;
481
-
482
- return _regenerator2.default.wrap(function _callee2$(_context2) {
483
- while (1) {
484
- switch (_context2.prev = _context2.next) {
485
- case 0:
486
- content_only = params.content_only, bar_bg = params.bar_bg, bar_active_bg = params.bar_active_bg, menu = params.menu, secondRouter = params.secondRouter, activePrompt = params.activePrompt, closePrompt = params.closePrompt, closeable = params.closeable, leavePrompt = params.leavePrompt, lock = params.lock, pageId = params.pageId, pageParams = params.pageParams, path = params.path, tabId = params.tabId, tabLabel = params.tabLabel, pageType = params.pageType, _k = params._k;
487
- filter = {};
488
- //对仓库参数的处理
489
-
490
- IdWarehouse = (0, _tplusPoslogin.PosInitData)('IdWarehouse') || '';
491
- WarehouseName = (0, _tplusPoslogin.PosInitData)('WarehouseName') || '';
492
- _ref8 = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('user') || {}, _ref8$loginInfo = _ref8.loginInfo, _ref8$loginInfo$IdSto = _ref8$loginInfo.IdStore, IdStore = _ref8$loginInfo$IdSto === undefined ? '' : _ref8$loginInfo$IdSto, _ref8$loginInfo$PosId = _ref8$loginInfo.PosId, PosId = _ref8$loginInfo$PosId === undefined ? '' : _ref8$loginInfo$PosId, _ref8$store = _ref8.store;
493
- _ref8$store = _ref8$store === undefined ? {} : _ref8$store;
494
- _ref8$store$storeName = _ref8$store.storeName, storeName = _ref8$store$storeName === undefined ? '' : _ref8$store$storeName;
495
- _context2.t0 = pageType;
496
- _context2.next = _context2.t0 === 'voucher' ? 10 : _context2.t0 === 'report' ? 13 : 15;
497
- break;
498
-
499
- case 10:
500
- filter = {
501
- defaultValue: {
502
- storeId: {
503
- id: IdStore,
504
- storeName: storeName
505
- },
506
- warehouseId: {
507
- id: IdWarehouse,
508
- name: WarehouseName
509
- }
510
- }
511
- //要货单特殊处理
512
- };if (menu == 'require-goods-new') {
513
- filter = {
514
- defaultValue: {
515
- storeId: {
516
- id: IdStore,
517
- storeName: storeName
518
- },
519
- requireWarehouseId: {
520
- id: IdWarehouse,
521
- name: WarehouseName
522
- }
523
- }
524
- };
492
+ _this.toHsyPage = function (params) {
493
+ var content_only = params.content_only,
494
+ bar_bg = params.bar_bg,
495
+ bar_active_bg = params.bar_active_bg,
496
+ menu = params.menu,
497
+ secondRouter = params.secondRouter,
498
+ activePrompt = params.activePrompt,
499
+ closePrompt = params.closePrompt,
500
+ closeable = params.closeable,
501
+ leavePrompt = params.leavePrompt,
502
+ lock = params.lock,
503
+ pageId = params.pageId,
504
+ pageParams = params.pageParams,
505
+ path = params.path,
506
+ tabId = params.tabId,
507
+ tabLabel = params.tabLabel,
508
+ pageType = params.pageType,
509
+ _k = params._k;
510
+
511
+
512
+ var filter = {};
513
+ //对仓库参数的处理
514
+ var IdWarehouse = (0, _tplusPoslogin.PosInitData)('IdWarehouse') || '';
515
+ var WarehouseName = (0, _tplusPoslogin.PosInitData)('WarehouseName') || '';
516
+ var IsPerformanceDistribution = (0, _tplusPoslogin.PosInitData)('PerformanceDistribution') === 'SHIPPER_STORE' || false;
517
+
518
+ var _ref8 = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('user') || {},
519
+ _ref8$loginInfo = _ref8.loginInfo,
520
+ _ref8$loginInfo$IdSto = _ref8$loginInfo.IdStore,
521
+ IdStore = _ref8$loginInfo$IdSto === undefined ? '' : _ref8$loginInfo$IdSto,
522
+ _ref8$loginInfo$PosId = _ref8$loginInfo.PosId,
523
+ PosId = _ref8$loginInfo$PosId === undefined ? '' : _ref8$loginInfo$PosId,
524
+ _ref8$store = _ref8.store;
525
+
526
+ _ref8$store = _ref8$store === undefined ? {} : _ref8$store;
527
+ var _ref8$store$storeName = _ref8$store.storeName,
528
+ storeName = _ref8$store$storeName === undefined ? '' : _ref8$store$storeName;
529
+
530
+ switch (pageType) {
531
+ case 'voucher':
532
+ filter = {
533
+ defaultValue: {
534
+ storeId: {
535
+ id: IdStore,
536
+ storeName: storeName
537
+ },
538
+ warehouseId: {
539
+ id: IdWarehouse,
540
+ name: WarehouseName
541
+ }
542
+ }
543
+ //要货单特殊处理
544
+ };if (menu == 'require-goods-new') {
545
+ filter = {
546
+ defaultValue: {
547
+ storeId: {
548
+ id: IdStore,
549
+ storeName: storeName
550
+ },
551
+ requireWarehouseId: {
552
+ id: IdWarehouse,
553
+ name: WarehouseName
525
554
  }
526
- return _context2.abrupt('break', 15);
527
-
528
- case 13:
529
- filter = {
530
- filterValue: {
531
- storeId: {
532
- value: {
533
- id: IdStore,
534
- storeName: storeName
535
- }
536
- },
537
- warehouseId: {
538
- value: [{
539
- id: IdWarehouse,
540
- name: WarehouseName
541
- }]
542
- }
555
+ }
556
+ };
557
+ }
558
+ break;
559
+ case 'report':
560
+ filter = {
561
+ filterValue: {
562
+ storeId: {
563
+ value: {
564
+ id: IdStore,
565
+ storeName: storeName
566
+ }
567
+ },
568
+ warehouseId: {
569
+ value: [{
570
+ id: IdWarehouse,
571
+ name: WarehouseName
572
+ }]
573
+ }
574
+ }
575
+ // 收银统计表
576
+ };if (IsPerformanceDistribution && menu == 'retail-cash-report') {
577
+ filter = {
578
+ filterValue: {
579
+ deliveryStoreId: {
580
+ value: {
581
+ id: IdStore,
582
+ storeName: storeName
543
583
  }
544
- };
545
- return _context2.abrupt('break', 15);
546
-
547
- case 15:
548
- bar_bg = encodeURIComponent(bar_bg);
549
- bar_active_bg = encodeURIComponent(bar_active_bg);
550
- menu = secondRouter ? menu + '/' + _this.randomWord(true, 13) : menu;
551
- pageId = menu;
552
- pageParams = (0, _assign2.default)(pageParams, filter);
553
- path = encodeURIComponent(path);
554
- _k = _this.randomWord(false, 6);
555
-
556
- commonArgs = '?posid=' + PosId + '&content_only=' + content_only + '&bar_bg=' + bar_bg + '&bar_active_bg=' + bar_active_bg;
557
- actionUrl = '#/' + menu + '?activePrompt=' + activePrompt + '&closePrompt=' + closePrompt + '&closeable=' + closeable + '&leavePrompt=' + leavePrompt + '&lock=' + lock + '&pageId=' + pageId + '&pageParams=' + encodeURIComponent((0, _stringify2.default)(pageParams)) + '&path=' + path + '&tabId=' + tabId + '&tabLabel=' + encodeURIComponent(tabLabel) + '&_k=' + _k;
558
- cc_url = _this.hsy_domain.replace('#/', '') + commonArgs + actionUrl;
559
-
560
- console.log('web_hsy_url:', cc_url);
561
-
562
- if (!_this.isHorizontalSunMi) {
563
- _context2.next = 34;
564
- break;
584
+ },
585
+ warehouseId: {
586
+ value: [{
587
+ id: IdWarehouse,
588
+ name: WarehouseName
589
+ }]
565
590
  }
566
-
567
- _context2.next = 29;
568
- return _tplusApi.User.getLoginCCMidWebUrl(cc_url);
569
-
570
- case 29:
571
- CC_WEB_URL = _context2.sent;
572
-
573
- console.log('CC_WEB_URL:', CC_WEB_URL);
574
- window.android_CommonFun.openWebUrlByOutBrowser(CC_WEB_URL);
575
- _context2.next = 39;
576
- break;
577
-
578
- case 34:
579
- external_frame = document.getElementById('external-frame-cc');
580
- win = external_frame.contentWindow;
581
-
582
- win && win.HsyRouterJump && win.HsyRouterJump(pageId, pageParams, { closeable: closeable, tabLabel: tabLabel });
583
- _this.setState({ loadHsyPage: true });
584
- rx$.changeHsy.next({
585
- back: true, fn: function fn() {
586
- _this.setState({ loadHsyPage: false });
587
- rx$.changeHsy.next({ back: false });
588
- // 在打开页签之前,关闭之前的。
589
- var external_frame_a = document.getElementById('external-frame-cc');
590
- var wins = external_frame_a.contentWindow;
591
- wins && wins.HsyRouterClean && win.HsyRouterClean();
591
+ }
592
+ };
593
+ }
594
+ // 售后、配送
595
+ if (menu == 'return-order' || menu == 'order-manage') {
596
+ filter = {
597
+ filterValue: {
598
+ storeId: {
599
+ value: {
600
+ id: IdStore,
601
+ storeName: storeName
592
602
  }
593
- });
594
-
595
- case 39:
596
- case 'end':
597
- return _context2.stop();
598
- }
603
+ },
604
+ deliveryWarehouseId: {
605
+ value: [{
606
+ id: IdWarehouse,
607
+ name: WarehouseName
608
+ }]
609
+ }
610
+ }
611
+ };
599
612
  }
600
- }, _callee2, _this2);
601
- }));
602
-
603
- return function (_x4) {
604
- return _ref7.apply(this, arguments);
605
- };
606
- }();
613
+ break;
614
+ }
615
+ bar_bg = encodeURIComponent(bar_bg);
616
+ bar_active_bg = encodeURIComponent(bar_active_bg);
617
+ menu = secondRouter ? menu + '/' + _this.randomWord(true, 13) : menu;
618
+ pageId = menu;
619
+ pageParams = (0, _assign2.default)(pageParams, filter);
620
+ path = encodeURIComponent(path);
621
+ _k = _this.randomWord(false, 6);
622
+
623
+ var commonArgs = '?posid=' + PosId + '&content_only=' + content_only + '&bar_bg=' + bar_bg + '&bar_active_bg=' + bar_active_bg;
624
+ var actionUrl = '#/' + menu + '?activePrompt=' + activePrompt + '&closePrompt=' + closePrompt + '&closeable=' + closeable + '&leavePrompt=' + leavePrompt + '&lock=' + lock + '&pageId=' + pageId + '&pageParams=' + encodeURIComponent((0, _stringify2.default)(pageParams)) + '&path=' + path + '&tabId=' + tabId + '&tabLabel=' + encodeURIComponent(tabLabel) + '&_k=' + _k;
625
+ var cc_url = _this.hsy_domain.replace('#/', '') + commonArgs + actionUrl;
626
+ console.log('web_hsy_url:', cc_url);
627
+ var external_frame = document.getElementById('external-frame-cc');
628
+ var win = external_frame.contentWindow;
629
+ win && win.HsyRouterJump && win.HsyRouterJump(pageId, pageParams, { closeable: closeable, tabLabel: tabLabel });
630
+ _this.setState({ loadHsyPage: true });
631
+ rx$.changeHsy.next({
632
+ back: true, fn: function fn() {
633
+ _this.setState({ loadHsyPage: false });
634
+ rx$.changeHsy.next({ back: false });
635
+ // 在打开页签之前,关闭之前的。
636
+ var external_frame_a = document.getElementById('external-frame-cc');
637
+ var wins = external_frame_a.contentWindow;
638
+ wins && wins.HsyRouterClean && win.HsyRouterClean();
639
+ }
640
+ });
641
+ };
607
642
 
608
643
  _this.randomWord = function (only, digits) {
609
644
  var str = "";
@@ -946,13 +981,13 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
946
981
  value: function componentWillMount() {
947
982
  var _this3 = this;
948
983
 
949
- var _context3 = this.context,
950
- _context3$stores = _context3.stores;
951
- _context3$stores = _context3$stores === undefined ? {} : _context3$stores;
952
- var portalStore = _context3$stores.portalStore,
953
- _context3$headHook = _context3.headHook;
954
- _context3$headHook = _context3$headHook === undefined ? {} : _context3$headHook;
955
- var addClass = _context3$headHook.addClass;
984
+ var _context2 = this.context,
985
+ _context2$stores = _context2.stores;
986
+ _context2$stores = _context2$stores === undefined ? {} : _context2$stores;
987
+ var portalStore = _context2$stores.portalStore,
988
+ _context2$headHook = _context2.headHook;
989
+ _context2$headHook = _context2$headHook === undefined ? {} : _context2$headHook;
990
+ var addClass = _context2$headHook.addClass;
956
991
  var homeOperation = _ModifyPassApi.Request.homeOperation,
957
992
  functionData = _ModifyPassApi.Request.functionData;
958
993