tplus-portaltouch 3.17.14 → 3.18.2

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.
@@ -5,21 +5,13 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = undefined;
7
7
 
8
- var _assign = require('babel-runtime/core-js/object/assign');
9
-
10
- var _assign2 = _interopRequireDefault(_assign);
11
-
12
- var _extends2 = require('babel-runtime/helpers/extends');
13
-
14
- var _extends3 = _interopRequireDefault(_extends2);
15
-
16
8
  var _stringify = require('babel-runtime/core-js/json/stringify');
17
9
 
18
10
  var _stringify2 = _interopRequireDefault(_stringify);
19
11
 
20
- var _promise = require('babel-runtime/core-js/promise');
12
+ var _assign = require('babel-runtime/core-js/object/assign');
21
13
 
22
- var _promise2 = _interopRequireDefault(_promise);
14
+ var _assign2 = _interopRequireDefault(_assign);
23
15
 
24
16
  var _regenerator = require('babel-runtime/regenerator');
25
17
 
@@ -29,6 +21,14 @@ var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
29
21
 
30
22
  var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
31
23
 
24
+ var _promise = require('babel-runtime/core-js/promise');
25
+
26
+ var _promise2 = _interopRequireDefault(_promise);
27
+
28
+ var _extends2 = require('babel-runtime/helpers/extends');
29
+
30
+ var _extends3 = _interopRequireDefault(_extends2);
31
+
32
32
  var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
33
33
 
34
34
  var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
@@ -52,7 +52,7 @@ var _inherits3 = _interopRequireDefault(_inherits2);
52
52
  var _class, _class2, _temp; /*
53
53
  * @Description:
54
54
  * @Date: 2019-08-13 08:42:18
55
- * @LastEditTime: 2021-09-27 19:05:04
55
+ * @LastEditTime: 2020-10-22 14:14:18
56
56
  * @LastEditors: chenlongad
57
57
  * @modify:修改跳转到T+的查询方案方式
58
58
  */
@@ -121,105 +121,6 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
121
121
 
122
122
  var _this = (0, _possibleConstructorReturn3.default)(this, (_default.__proto__ || (0, _getPrototypeOf2.default)(_default)).call(this, props));
123
123
 
124
- _this.catchOfflineData = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee() {
125
- var offlineSys, isLoginAfter, downloadCatcherDay, currentDay, downProgress, result;
126
- return _regenerator2.default.wrap(function _callee$(_context) {
127
- while (1) {
128
- switch (_context.prev = _context.next) {
129
- case 0:
130
- offlineSys = _this.context.stores.offlineSys;
131
- isLoginAfter = _mutantsMicrofx.localStore.get("isLoginAfter");
132
- downloadCatcherDay = _mutantsMicrofx.localStore.get("downloadCatcherDay");
133
- currentDay = Math.ceil(new Date() / 1000 / 60 / 60 / 24);
134
-
135
- if (!(isLoginAfter == 1)) {
136
- _context.next = 14;
137
- break;
138
- }
139
-
140
- if (!(!downloadCatcherDay || currentDay > downloadCatcherDay)) {
141
- _context.next = 13;
142
- break;
143
- }
144
-
145
- downProgress = function downProgress(params) {
146
- _tplusComponentsTouch.Loading.transfer(params);
147
- };
148
-
149
- _tplusComponentsTouch.Loading.show({
150
- text: '离线数据下载中...',
151
- delay: 0,
152
- showProgress: true
153
- });
154
- _context.next = 10;
155
- return offlineSys.downloadCatcherData(downProgress);
156
-
157
- case 10:
158
- result = _context.sent;
159
-
160
- _tplusComponentsTouch.Loading.hide();
161
- if (result) {
162
- _mutantsMicrofx.localStore.set("downloadCatcherDay", currentDay);
163
- }
164
-
165
- case 13:
166
- _mutantsMicrofx.localStore.set("isLoginAfter", 0);
167
-
168
- case 14:
169
- case 'end':
170
- return _context.stop();
171
- }
172
- }
173
- }, _callee, _this2);
174
- }));
175
-
176
- _this.getOperation = function () {
177
- return new _promise2.default(function (resolve, reject) {
178
- var _this$context = _this.context,
179
- _this$context$stores = _this$context.stores;
180
- _this$context$stores = _this$context$stores === undefined ? {} : _this$context$stores;
181
- var portalStore = _this$context$stores.portalStore,
182
- _this$context$headHoo = _this$context.headHook;
183
- _this$context$headHoo = _this$context$headHoo === undefined ? {} : _this$context$headHoo;
184
- var addClass = _this$context$headHoo.addClass;
185
- var homeOperation = _ModifyPassApi.Request.homeOperation,
186
- functionData = _ModifyPassApi.Request.functionData;
187
-
188
- _tplusComponentsTouch.Loading.show({
189
- text: '首页权限加载中...',
190
- delay: 2500
191
- });
192
- homeOperation().then(function (operations) {
193
- _mutantsMicrofx.localStore.set('operationsAuth', (0, _stringify2.default)(operations));
194
- _this.setState({ operations: operations || [] });
195
- _tplusComponentsTouch.Loading.hide();
196
- resolve();
197
- }).catch(function (err) {
198
- console.log('homeOperation.error======', err);
199
- _tplusComponentsTouch.Loading.hide();
200
- resolve();
201
- });
202
- functionData().then(function (data) {
203
- // 加载权限数据 DR-29735 by majian
204
- (0, _tplusPoslogin.PosSetData)(data);
205
- });
206
- // portalStore && portalStore.getPortalMenu();
207
- addClass && addClass(_this.state.id, 'portalHead');
208
- // 初始化参数设置。
209
- _mutantsMicrofx.stores.setStore.initSetParams().then(function (ret) {
210
- // 在客户端中,如果开启了副屏设置,尝试这打开副屏。
211
- if (_this.getScreenType() === true) {
212
- if (_this.isHorizontalSunMi) {
213
- _this.sunMiPresentationInit(ret);
214
- return;
215
- }
216
- window.open('vicescreen?ts=' + new Date().getTime(), 'screen');
217
- }
218
- });
219
- _this.hsyBasicInfoInit();
220
- });
221
- };
222
-
223
124
  _this.initHsyPage = function () {
224
125
  var external_frame = document.getElementById('external-frame-cc');
225
126
  var win = external_frame && external_frame.contentWindow;
@@ -247,12 +148,12 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
247
148
  sessionStorage.setItem("SunMi_fuping_url", url);
248
149
  setTimeout(function () {
249
150
  // 进行主副屏数据交互 初始化
250
- var _ref2 = _mutantsMicrofx.localStore.get('user') || {},
251
- _ref2$store = _ref2.store;
151
+ var _ref = _mutantsMicrofx.localStore.get('user') || {},
152
+ _ref$store = _ref.store;
252
153
 
253
- _ref2$store = _ref2$store === undefined ? {} : _ref2$store;
254
- var _ref2$store$storeName = _ref2$store.storeName,
255
- storeName = _ref2$store$storeName === undefined ? '' : _ref2$store$storeName;
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;
256
157
 
257
158
  console.log(result);
258
159
 
@@ -272,12 +173,12 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
272
173
  });
273
174
  } else {
274
175
  // 表示已经加载过页面只需要重置状态即可
275
- var _ref3 = _mutantsMicrofx.localStore.get('user') || {},
276
- _ref3$store = _ref3.store;
176
+ var _ref2 = _mutantsMicrofx.localStore.get('user') || {},
177
+ _ref2$store = _ref2.store;
277
178
 
278
- _ref3$store = _ref3$store === undefined ? {} : _ref3$store;
279
- var _ref3$store$storeName = _ref3$store.storeName,
280
- storeName = _ref3$store$storeName === undefined ? '' : _ref3$store$storeName;
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;
281
182
 
282
183
  window.sunMi_PresentationManager && window.sunMi_PresentationManager.sendMessageToSecondScreen({ step: 0, storeName: storeName });
283
184
  }
@@ -309,11 +210,11 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
309
210
 
310
211
  var loginInfo = user.options.get('loginInfo');
311
212
 
312
- var _ref4 = loginInfo || {},
313
- UserCode = _ref4.UserCode,
314
- AccountNum = _ref4.AccountNum,
315
- posCode = _ref4.posCode,
316
- TplusStoreId = _ref4.TplusStoreId;
213
+ var _ref3 = loginInfo || {},
214
+ UserCode = _ref3.UserCode,
215
+ AccountNum = _ref3.AccountNum,
216
+ posCode = _ref3.posCode,
217
+ TplusStoreId = _ref3.TplusStoreId;
317
218
 
318
219
  var uid = _this.tplusEncode(UserCode);
319
220
  var pwd = _this.tplusEncode(user.options.get("password"));
@@ -365,11 +266,11 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
365
266
  return vv.Name === Name;
366
267
  });
367
268
 
368
- var _ref5 = controllable || {},
369
- Visibility = _ref5.Visibility,
370
- HoldFunctionAuth = _ref5.HoldFunctionAuth,
371
- Title = _ref5.Title,
372
- MenuCode = _ref5.MenuCode;
269
+ var _ref4 = controllable || {},
270
+ Visibility = _ref4.Visibility,
271
+ HoldFunctionAuth = _ref4.HoldFunctionAuth,
272
+ Title = _ref4.Title,
273
+ MenuCode = _ref4.MenuCode;
373
274
 
374
275
  var errorTip = void 0;
375
276
  if (!Title) {
@@ -383,12 +284,6 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
383
284
  okType: 'primary'
384
285
  });
385
286
  }
386
-
387
- if (!_mutantsMicrofx.stores.offlineSys.shouldOpenHomeOperation(Name)) {
388
- _tplusComponentsTouch.Message.warn("离线模式下此操作不可用");
389
- return;
390
- }
391
-
392
287
  if (!Visibility) {
393
288
  errorTip = '\u60A8\u7684 ' + Title + ' \u6A21\u5757\u6CA1\u6709\u542F\u7528';
394
289
  } else if (!HoldFunctionAuth) {
@@ -447,14 +342,14 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
447
342
  };
448
343
 
449
344
  _this.toFramePage = function (params) {
450
- var _ref6 = params || {},
451
- app = _ref6.app,
452
- title = _ref6.title,
453
- style = _ref6.style,
454
- search = _ref6.search,
455
- tmenuCode = _ref6.tmenuCode,
456
- MenuCode = _ref6.MenuCode,
457
- isHsyLoadFinish = _ref6.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;
458
353
 
459
354
  switch (app) {
460
355
  case 'cc':
@@ -513,37 +408,37 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
513
408
  };
514
409
 
515
410
  _this.toTplusPage = function () {
516
- var _ref7 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(tmenuCode, search) {
517
- var ret, _ref8, 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;
518
413
 
519
- return _regenerator2.default.wrap(function _callee2$(_context2) {
414
+ return _regenerator2.default.wrap(function _callee$(_context) {
520
415
  while (1) {
521
- switch (_context2.prev = _context2.next) {
416
+ switch (_context.prev = _context.next) {
522
417
  case 0:
523
418
  ret = _this.getTcBasicInfoInit();
524
419
 
525
420
  if (!(ret === false)) {
526
- _context2.next = 3;
421
+ _context.next = 3;
527
422
  break;
528
423
  }
529
424
 
530
- return _context2.abrupt('return');
425
+ return _context.abrupt('return');
531
426
 
532
427
  case 3:
533
- _ref8 = ret || {}, ossjumpUrl = _ref8.ossjumpUrl, postMessageUrl = _ref8.postMessageUrl;
428
+ _ref7 = ret || {}, ossjumpUrl = _ref7.ossjumpUrl, postMessageUrl = _ref7.postMessageUrl;
534
429
  dsearchPlanID = '';
535
430
 
536
431
  if (!(search && search.id)) {
537
- _context2.next = 10;
432
+ _context.next = 10;
538
433
  break;
539
434
  }
540
435
 
541
436
  portalStore = _this.context.stores.portalStore;
542
- _context2.next = 9;
437
+ _context.next = 9;
543
438
  return portalStore.getSearchPlanId(search);
544
439
 
545
440
  case 9:
546
- dsearchPlanID = _context2.sent;
441
+ dsearchPlanID = _context.sent;
547
442
 
548
443
  case 10:
549
444
  menu = _this.tplusEncode(tmenuCode);
@@ -554,13 +449,13 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
554
449
  }
555
450
  //对于专属云、云主机,如果配置的http,存在跨域问题,暂时解决不了,只能通过打开默认浏览器打开。
556
451
 
557
- if (!(_this.hasElectron === true && (postMessageUrl + '').indexOf('https') == -1 && (_this.new_retail_app == 'tczsy' || _this.new_retail_app == 'tcyzj'))) {
558
- _context2.next = 16;
452
+ if (!((postMessageUrl + '').indexOf('https') == -1 && (_this.new_retail_app == 'tczsy' || _this.new_retail_app == 'tcyzj'))) {
453
+ _context.next = 16;
559
454
  break;
560
455
  }
561
456
 
562
457
  _mutantsMicrofx.nativeMs.useDefaultBrowser(ossjumpUrl);
563
- return _context2.abrupt('return');
458
+ return _context.abrupt('return');
564
459
 
565
460
  case 16:
566
461
  external_frame_tc = document.getElementById('external-frame-tc');
@@ -583,14 +478,14 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
583
478
 
584
479
  case 21:
585
480
  case 'end':
586
- return _context2.stop();
481
+ return _context.stop();
587
482
  }
588
483
  }
589
- }, _callee2, _this2);
484
+ }, _callee, _this2);
590
485
  }));
591
486
 
592
487
  return function (_x2, _x3) {
593
- return _ref7.apply(this, arguments);
488
+ return _ref6.apply(this, arguments);
594
489
  };
595
490
  }();
596
491
 
@@ -618,18 +513,19 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
618
513
  //对仓库参数的处理
619
514
  var IdWarehouse = (0, _tplusPoslogin.PosInitData)('IdWarehouse') || '';
620
515
  var WarehouseName = (0, _tplusPoslogin.PosInitData)('WarehouseName') || '';
516
+ var IsPerformanceDistribution = (0, _tplusPoslogin.PosInitData)('PerformanceDistribution') === 'SHIPPER_STORE' || false;
621
517
 
622
- var _ref9 = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('user') || {},
623
- _ref9$loginInfo = _ref9.loginInfo,
624
- _ref9$loginInfo$IdSto = _ref9$loginInfo.IdStore,
625
- IdStore = _ref9$loginInfo$IdSto === undefined ? '' : _ref9$loginInfo$IdSto,
626
- _ref9$loginInfo$PosId = _ref9$loginInfo.PosId,
627
- PosId = _ref9$loginInfo$PosId === undefined ? '' : _ref9$loginInfo$PosId,
628
- _ref9$store = _ref9.store;
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;
629
525
 
630
- _ref9$store = _ref9$store === undefined ? {} : _ref9$store;
631
- var _ref9$store$storeName = _ref9$store.storeName,
632
- storeName = _ref9$store$storeName === undefined ? '' : _ref9$store$storeName;
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;
633
529
 
634
530
  switch (pageType) {
635
531
  case 'voucher':
@@ -676,7 +572,44 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
676
572
  }]
677
573
  }
678
574
  }
679
- };
575
+ // 收银统计表
576
+ };if (IsPerformanceDistribution && menu == 'retail-cash-report') {
577
+ filter = {
578
+ filterValue: {
579
+ deliveryStoreId: {
580
+ value: {
581
+ id: IdStore,
582
+ storeName: storeName
583
+ }
584
+ },
585
+ warehouseId: {
586
+ value: [{
587
+ id: IdWarehouse,
588
+ name: WarehouseName
589
+ }]
590
+ }
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
602
+ }
603
+ },
604
+ deliveryWarehouseId: {
605
+ value: [{
606
+ id: IdWarehouse,
607
+ name: WarehouseName
608
+ }]
609
+ }
610
+ }
611
+ };
612
+ }
680
613
  break;
681
614
  }
682
615
  bar_bg = encodeURIComponent(bar_bg);
@@ -793,10 +726,10 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
793
726
  return vv.Name === v.Name;
794
727
  });
795
728
 
796
- var _ref10 = controllable || {},
797
- Visibility = _ref10.Visibility,
798
- HoldFunctionAuth = _ref10.HoldFunctionAuth,
799
- Title = _ref10.Title;
729
+ var _ref9 = controllable || {},
730
+ Visibility = _ref9.Visibility,
731
+ HoldFunctionAuth = _ref9.HoldFunctionAuth,
732
+ Title = _ref9.Title;
800
733
 
801
734
  var errorTip = void 0;
802
735
  if (!Visibility) {
@@ -1007,12 +940,12 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
1007
940
  modalURL: ''
1008
941
  };
1009
942
 
1010
- var _ref11 = _mutantsUtil.platform || {},
1011
- isVerticalTouch = _ref11.isVerticalTouch,
1012
- isHorizontalPad = _ref11.isHorizontalPad,
1013
- isHorizontalSunMi = _ref11.isHorizontalSunMi,
1014
- isNewRetailBCPos = _ref11.isNewRetailBCPos,
1015
- isNewRetailBCPosTC = _ref11.isNewRetailBCPosTC;
943
+ var _ref10 = _mutantsUtil.platform || {},
944
+ isVerticalTouch = _ref10.isVerticalTouch,
945
+ isHorizontalPad = _ref10.isHorizontalPad,
946
+ isHorizontalSunMi = _ref10.isHorizontalSunMi,
947
+ isNewRetailBCPos = _ref10.isNewRetailBCPos,
948
+ isNewRetailBCPosTC = _ref10.isNewRetailBCPosTC;
1016
949
 
1017
950
  _this.isVerticalTouch = !!isVerticalTouch;
1018
951
  _this.isHorizontalPad = !!isHorizontalPad;
@@ -1045,33 +978,49 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
1045
978
 
1046
979
  (0, _createClass3.default)(_default, [{
1047
980
  key: 'componentWillMount',
1048
- value: function () {
1049
- var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
1050
- return _regenerator2.default.wrap(function _callee3$(_context3) {
1051
- while (1) {
1052
- switch (_context3.prev = _context3.next) {
1053
- case 0:
1054
- _context3.next = 2;
1055
- return this.catchOfflineData();
1056
-
1057
- case 2:
1058
- _context3.next = 4;
1059
- return this.getOperation();
1060
-
1061
- case 4:
1062
- case 'end':
1063
- return _context3.stop();
1064
- }
981
+ value: function componentWillMount() {
982
+ var _this3 = this;
983
+
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;
991
+ var homeOperation = _ModifyPassApi.Request.homeOperation,
992
+ functionData = _ModifyPassApi.Request.functionData;
993
+
994
+ _tplusComponentsTouch.Loading.show({
995
+ text: '首页权限加载中...',
996
+ delay: 2500
997
+ });
998
+ homeOperation().then(function (operations) {
999
+ _mutantsMicrofx.localStore.set('operationsAuth', operations ? (0, _stringify2.default)(operations) : []);
1000
+ _this3.setState({ operations: operations || [] });
1001
+ _tplusComponentsTouch.Loading.hide();
1002
+ }).catch(function (err) {
1003
+ console.log('homeOperation.error======', err);
1004
+ _tplusComponentsTouch.Loading.hide();
1005
+ });
1006
+ functionData().then(function (data) {
1007
+ // 加载权限数据 DR-29735 by majian
1008
+ (0, _tplusPoslogin.PosSetData)(data);
1009
+ });
1010
+ addClass && addClass(this.state.id, 'portalHead');
1011
+ // 初始化参数设置。
1012
+ _mutantsMicrofx.stores.setStore.initSetParams().then(function (ret) {
1013
+ // 在客户端中,如果开启了副屏设置,尝试这打开副屏。
1014
+ if (_this3.getScreenType() === true) {
1015
+ if (_this3.isHorizontalSunMi) {
1016
+ _this3.sunMiPresentationInit(ret);
1017
+ return;
1065
1018
  }
1066
- }, _callee3, this);
1067
- }));
1068
-
1069
- function componentWillMount() {
1070
- return _ref12.apply(this, arguments);
1071
- }
1072
-
1073
- return componentWillMount;
1074
- }()
1019
+ window.open('vicescreen?ts=' + new Date().getTime(), 'screen');
1020
+ }
1021
+ });
1022
+ this.hsyBasicInfoInit();
1023
+ }
1075
1024
  }, {
1076
1025
  key: 'componentDidMount',
1077
1026
  value: function componentDidMount() {
@@ -1108,9 +1057,9 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
1108
1057
  break;
1109
1058
  }
1110
1059
 
1111
- var _ref13 = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('StoreKey') || {},
1112
- _ref13$PosId = _ref13.PosId,
1113
- PosId = _ref13$PosId === undefined ? '' : _ref13$PosId;
1060
+ var _ref11 = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('StoreKey') || {},
1061
+ _ref11$PosId = _ref11.PosId,
1062
+ PosId = _ref11$PosId === undefined ? '' : _ref11$PosId;
1114
1063
 
1115
1064
  var cc_url = this.hsy_domain.replace('#/', '') + '?fromApp=nretail&posid=' + PosId + '&content_only=true&bar_bg=' + encodeURIComponent('#FFFFFF') + '&bar_active_bg=' + encodeURIComponent(color);
1116
1065
  this.setState({ loadHsyURL: cc_url });