tplus-components-touch 3.27.5 → 3.29.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 (30) hide show
  1. package/dist/components/billSearch/api.js +13 -74
  2. package/dist/components/billSearch/api.js.map +1 -1
  3. package/dist/components/commonForm/addressPicker/index.js +7 -16
  4. package/dist/components/commonForm/addressPicker/index.js.map +1 -1
  5. package/dist/components/commonForm/index.js +3 -9
  6. package/dist/components/commonForm/index.js.map +1 -1
  7. package/dist/components/hotKey/localConfig.js +0 -52
  8. package/dist/components/hotKey/localConfig.js.map +1 -1
  9. package/dist/components/settlement/settlement.js +66 -237
  10. package/dist/components/settlement/settlement.js.map +1 -1
  11. package/dist/components/settlement/settlement.less +1 -7
  12. package/dist/components/settlement/settlementStore.js +59 -96
  13. package/dist/components/settlement/settlementStore.js.map +1 -1
  14. package/dist/components/ticon/iconfont/demo.css +539 -539
  15. package/dist/components/ticon/iconfont/demo_index.html +5202 -5225
  16. package/dist/components/ticon/iconfont/iconfont.css +887 -891
  17. package/dist/components/ticon/iconfont/iconfont.js +1 -1
  18. package/dist/components/ticon/iconfont/iconfont.js.map +1 -1
  19. package/dist/components/ticon/iconfont/iconfont.json +1535 -1542
  20. package/dist/components/ticon/iconfont/iconfont.ttf +0 -0
  21. package/dist/components/ticon/iconfont/iconfont.woff +0 -0
  22. package/dist/components/ticon/iconfont/iconfont.woff2 +0 -0
  23. package/dist/components/touchTable/index.js +0 -9
  24. package/dist/components/touchTable/index.js.map +1 -1
  25. package/dist/index.js +3 -8
  26. package/dist/index.js.map +1 -1
  27. package/package.json +2 -2
  28. package/dist/components/presale/pickup.js +0 -419
  29. package/dist/components/presale/pickup.js.map +0 -1
  30. package/dist/components/presale/style.less +0 -48
@@ -999,7 +999,7 @@
999
999
  button{
1000
1000
  background-color: white ;
1001
1001
  opacity:1;
1002
- }
1002
+ }
1003
1003
  }
1004
1004
  }
1005
1005
  .paymode{
@@ -1592,10 +1592,4 @@
1592
1592
  }
1593
1593
  }
1594
1594
  }
1595
- }
1596
- .freight{
1597
- margin-left: 5px;
1598
- vertical-align: middle;
1599
- color: #666666;
1600
- font-size: 12px;
1601
1595
  }
@@ -234,7 +234,7 @@ var SettlementStore = (_class = function () {
234
234
  }
235
235
  detailDTO.listPrice = JSON.getCellValue(item, "listPrice");
236
236
  detailDTO.netAmountWithTax = Math.Multiply(detailDTO.listPrice, Math.Minus(item.Quantity, bookingQuantity)); //item.TaxAmount;
237
- //}
237
+ //}
238
238
  detailDTO.taxRate = item.TaxRate;
239
239
  detailDTO.quantity = item.Quantity;
240
240
 
@@ -307,18 +307,6 @@ var SettlementStore = (_class = function () {
307
307
  return (0, _tplusApi.ccApi)({}, '/marketingtool/paygift/executeRightsForPos/' + _this2.billID, false, false, { method: 'get', timeout_skip: true });
308
308
  };
309
309
 
310
- this.getRefWareHouseList = function () {
311
- return (0, _tplusApi.ccApi)({}, '/retail/RetailPos/getRefWareHouseList', false, false);
312
- };
313
-
314
- this.getPerformanceDistributionValue = function (data) {
315
- return (0, _tplusApi.ccApi)(data, '/retail/RetailPos/getPerformanceDistributionValue', false, false);
316
- };
317
-
318
- this.getPosFreight = function (data) {
319
- return (0, _tplusApi.ccApi)(data, '/retail/RetailPos/getPosFreight', false, false);
320
- };
321
-
322
310
  this.checkCoupon = function () {
323
311
  var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(sn) {
324
312
  var _ref4, isNewRetailBCPos, _enumController$getEn3, PayStyle, Differentiate;
@@ -460,32 +448,7 @@ var SettlementStore = (_class = function () {
460
448
  });
461
449
  // this.member=context.stores && context.stores.memberStore && context.stores.memberStore.member;
462
450
  this.member = this.dto.Member; //stores.selectMemberStore.selectMemberInfo;
463
-
464
- //预订按比例收取订金处理
465
- var value = this.dto.TotalTaxAmount;
466
-
467
- var _getLoginInfo = this.getLoginInfo(),
468
- Book = _getLoginInfo.Book,
469
- PercentageWhenBook = _getLoginInfo.PercentageWhenBook;
470
-
471
- var _ref5 = this.dto || {},
472
- IdbusiType = _ref5.IdbusiType,
473
- DistributionMode = _ref5.DistributionMode;
474
-
475
- if (IdbusiType == 38 && Book && PercentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')) {
476
- value = value * PercentageWhenBook / 100;
477
- (0, _mobx.runInAction)(function () {
478
- _this3.dto.PrepaidAmount = value;
479
- });
480
- }
481
- if (IdbusiType == 38 && Book && (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE')) {
482
- value += this.dto.BuyerPayFreight || 0;
483
- }
484
- if (IdbusiType == 39) {
485
- value = _mutantsMicrofx.stores.drawerStore.thisWaitPaidAmount;
486
- }
487
-
488
- this.brefund = this.paymode.setAmount(value, this.dto.OnlinePaymentAmount);
451
+ this.brefund = this.paymode.setAmount(this.dto.TotalTaxAmount, this.dto.OnlinePaymentAmount);
489
452
  } else {
490
453
  this.brefund = this.paymode.setAmount(amount, 0);
491
454
  this.dto = data;
@@ -533,8 +496,8 @@ var SettlementStore = (_class = function () {
533
496
  var _enumController$getEn4 = _mutantsUtil.enumController.getEnumOj(),
534
497
  PayStyle = _enumController$getEn4.PayStyle;
535
498
 
536
- var _ref6 = _mutantsUtil.platform || {},
537
- isNewRetailBCPos = _ref6.isNewRetailBCPos;
499
+ var _ref5 = _mutantsUtil.platform || {},
500
+ isNewRetailBCPos = _ref5.isNewRetailBCPos;
538
501
 
539
502
  console.log(this.dto, 'dto==========');
540
503
  this.paymode.checkList = [];
@@ -559,14 +522,14 @@ var SettlementStore = (_class = function () {
559
522
  if (themode.paymentType == PayStyle.djq) {
560
523
  (0, _each3.default)(_this5.dto.RetailCouponDetails, function (djq) {
561
524
  if (isNewRetailBCPos) {
562
- var _ref7 = djq || {},
563
- displayText = _ref7.displayText,
564
- promoRuleId = _ref7.promoRuleId,
565
- dateMount = _ref7.dateMount,
566
- promoMethodEnum = _ref7.promoMethodEnum,
567
- discountPct = _ref7.discountPct,
568
- promoId = _ref7.promoId,
569
- id = _ref7.id;
525
+ var _ref6 = djq || {},
526
+ displayText = _ref6.displayText,
527
+ promoRuleId = _ref6.promoRuleId,
528
+ dateMount = _ref6.dateMount,
529
+ promoMethodEnum = _ref6.promoMethodEnum,
530
+ discountPct = _ref6.discountPct,
531
+ promoId = _ref6.promoId,
532
+ id = _ref6.id;
570
533
 
571
534
  _this5.addDjq(djq.CouponCode, djq.CouponTitle, true, djq.ReductionAmount, djq.EnableAmount, djq.LastTS, true, false, _this5.dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, null, id, true);
572
535
  return;
@@ -665,8 +628,8 @@ var SettlementStore = (_class = function () {
665
628
  var IdStore = this.storeInfo.storeID;
666
629
  var StoreCode = this.storeInfo.storeCode; //_find(this.storeInfo.storeInfos,(store)=>{return store.ID==IdStore;}).Code;
667
630
 
668
- var _ref8 = _mutantsUtil.platform || {},
669
- isNewRetailBCPos = _ref8.isNewRetailBCPos;
631
+ var _ref7 = _mutantsUtil.platform || {},
632
+ isNewRetailBCPos = _ref7.isNewRetailBCPos;
670
633
 
671
634
  var address = '';
672
635
  if (isNewRetailBCPos) {
@@ -676,8 +639,8 @@ var SettlementStore = (_class = function () {
676
639
  var data = result.data;
677
640
  var m = data;
678
641
 
679
- var _ref9 = _mutantsUtil.platform || {},
680
- isNewRetailBCPos = _ref9.isNewRetailBCPos;
642
+ var _ref8 = _mutantsUtil.platform || {},
643
+ isNewRetailBCPos = _ref8.isNewRetailBCPos;
681
644
 
682
645
  if (isNewRetailBCPos) {
683
646
  _this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
@@ -722,8 +685,8 @@ var SettlementStore = (_class = function () {
722
685
  var data = JSON.parse(result.Data);
723
686
  var m = data && data.length > 0 && data[0];
724
687
 
725
- var _ref10 = _mutantsUtil.platform || {},
726
- isNewRetailBCPos = _ref10.isNewRetailBCPos;
688
+ var _ref9 = _mutantsUtil.platform || {},
689
+ isNewRetailBCPos = _ref9.isNewRetailBCPos;
727
690
 
728
691
  if (isNewRetailBCPos) {
729
692
  _this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
@@ -1017,8 +980,8 @@ var SettlementStore = (_class = function () {
1017
980
  }, {
1018
981
  key: 'commit',
1019
982
  value: function () {
1020
- var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
1021
- var _ref12, isNewRetailBCPos;
983
+ var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
984
+ var _ref11, isNewRetailBCPos;
1022
985
 
1023
986
  return _regenerator2.default.wrap(function _callee2$(_context2) {
1024
987
  while (1) {
@@ -1034,7 +997,7 @@ var SettlementStore = (_class = function () {
1034
997
  return _context2.abrupt('return', _promise2.default.resolve(true));
1035
998
 
1036
999
  case 3:
1037
- _ref12 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref12.isNewRetailBCPos;
1000
+ _ref11 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref11.isNewRetailBCPos;
1038
1001
  _context2.prev = 4;
1039
1002
 
1040
1003
  if (!(this.type == 1)) {
@@ -1090,7 +1053,7 @@ var SettlementStore = (_class = function () {
1090
1053
  }));
1091
1054
 
1092
1055
  function commit(_x2) {
1093
- return _ref11.apply(this, arguments);
1056
+ return _ref10.apply(this, arguments);
1094
1057
  }
1095
1058
 
1096
1059
  return commit;
@@ -1148,10 +1111,10 @@ var SettlementStore = (_class = function () {
1148
1111
  }, {
1149
1112
  key: 'save',
1150
1113
  value: function () {
1151
- var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
1114
+ var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
1152
1115
  var _this11 = this;
1153
1116
 
1154
- var _enumController$getEn14, PayStyle, _ref15, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1117
+ var _enumController$getEn14, PayStyle, _ref14, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1155
1118
 
1156
1119
  return _regenerator2.default.wrap(function _callee3$(_context3) {
1157
1120
  while (1) {
@@ -1231,8 +1194,8 @@ var SettlementStore = (_class = function () {
1231
1194
  }
1232
1195
  });
1233
1196
 
1234
- var _ref14 = _mutantsUtil.platform || {},
1235
- isNewRetailBCPos = _ref14.isNewRetailBCPos;
1197
+ var _ref13 = _mutantsUtil.platform || {},
1198
+ isNewRetailBCPos = _ref13.isNewRetailBCPos;
1236
1199
 
1237
1200
  if (_this11.dto.RetailStorageDetails.length > 0) {
1238
1201
  var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
@@ -1266,7 +1229,7 @@ var SettlementStore = (_class = function () {
1266
1229
  _this11.dto.Idmember = Idmember;
1267
1230
  }
1268
1231
  });
1269
- _ref15 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref15.isNewRetailBCPos;
1232
+ _ref14 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref14.isNewRetailBCPos;
1270
1233
 
1271
1234
  console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
1272
1235
 
@@ -1336,7 +1299,7 @@ var SettlementStore = (_class = function () {
1336
1299
  }));
1337
1300
 
1338
1301
  function save() {
1339
- return _ref13.apply(this, arguments);
1302
+ return _ref12.apply(this, arguments);
1340
1303
  }
1341
1304
 
1342
1305
  return save;
@@ -1349,7 +1312,7 @@ var SettlementStore = (_class = function () {
1349
1312
  }, {
1350
1313
  key: 'querySettleResult',
1351
1314
  value: function () {
1352
- var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1315
+ var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1353
1316
  return _regenerator2.default.wrap(function _callee4$(_context4) {
1354
1317
  while (1) {
1355
1318
  switch (_context4.prev = _context4.next) {
@@ -1377,7 +1340,7 @@ var SettlementStore = (_class = function () {
1377
1340
  }));
1378
1341
 
1379
1342
  function querySettleResult() {
1380
- return _ref16.apply(this, arguments);
1343
+ return _ref15.apply(this, arguments);
1381
1344
  }
1382
1345
 
1383
1346
  return querySettleResult;
@@ -1403,14 +1366,14 @@ var SettlementStore = (_class = function () {
1403
1366
  }, {
1404
1367
  key: 'validePwd',
1405
1368
  value: function () {
1406
- var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
1407
- var _ref18, isNewRetailBCPos, cook1, cook2, message, memberId, result, count, _result;
1369
+ var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
1370
+ var _ref17, isNewRetailBCPos, cook1, cook2, message, memberId, result, count, _result;
1408
1371
 
1409
1372
  return _regenerator2.default.wrap(function _callee5$(_context5) {
1410
1373
  while (1) {
1411
1374
  switch (_context5.prev = _context5.next) {
1412
1375
  case 0:
1413
- _ref18 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref18.isNewRetailBCPos;
1376
+ _ref17 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref17.isNewRetailBCPos;
1414
1377
  _context5.prev = 1;
1415
1378
 
1416
1379
  if (!isNewRetailBCPos) {
@@ -1495,7 +1458,7 @@ var SettlementStore = (_class = function () {
1495
1458
  }));
1496
1459
 
1497
1460
  function validePwd(_x3) {
1498
- return _ref17.apply(this, arguments);
1461
+ return _ref16.apply(this, arguments);
1499
1462
  }
1500
1463
 
1501
1464
  return validePwd;
@@ -1534,14 +1497,14 @@ var SettlementStore = (_class = function () {
1534
1497
  var _this13 = this;
1535
1498
 
1536
1499
  return function () {
1537
- var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1538
- var _getLoginInfo2, IdStore, StoreCode, resp;
1500
+ var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1501
+ var _getLoginInfo, IdStore, StoreCode, resp;
1539
1502
 
1540
1503
  return _regenerator2.default.wrap(function _callee6$(_context6) {
1541
1504
  while (1) {
1542
1505
  switch (_context6.prev = _context6.next) {
1543
1506
  case 0:
1544
- _getLoginInfo2 = _this13.getLoginInfo(), IdStore = _getLoginInfo2.IdStore, StoreCode = _getLoginInfo2.StoreCode;
1507
+ _getLoginInfo = _this13.getLoginInfo(), IdStore = _getLoginInfo.IdStore, StoreCode = _getLoginInfo.StoreCode;
1545
1508
  _context6.next = 3;
1546
1509
  return (0, _tplusApi.tApi)({ Idmember: _this13.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
1547
1510
 
@@ -1561,7 +1524,7 @@ var SettlementStore = (_class = function () {
1561
1524
  }));
1562
1525
 
1563
1526
  return function (_x4) {
1564
- return _ref19.apply(this, arguments);
1527
+ return _ref18.apply(this, arguments);
1565
1528
  };
1566
1529
  }();
1567
1530
  }
@@ -1653,8 +1616,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
1653
1616
  this.checkList = [];
1654
1617
  }
1655
1618
 
1656
- var _ref20 = _mutantsUtil.platform || {},
1657
- isNewRetailBCPos = _ref20.isNewRetailBCPos;
1619
+ var _ref19 = _mutantsUtil.platform || {},
1620
+ isNewRetailBCPos = _ref19.isNewRetailBCPos;
1658
1621
 
1659
1622
  var _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(),
1660
1623
  PayStyle = _enumController$getEn15.PayStyle,
@@ -1728,13 +1691,13 @@ var PayMode = exports.PayMode = (_class3 = function () {
1728
1691
  // }
1729
1692
  // else
1730
1693
  // {
1731
-
1732
1694
  var bookingQuantity = 0;
1733
1695
  if (item.BookingQuantity) {
1734
1696
  bookingQuantity = item.BookingQuantity;
1735
1697
  }
1736
1698
  detailDTO.listPrice = JSON.getCellValue(item, "listPrice");
1737
1699
  detailDTO.netAmountWithTax = Math.Multiply(detailDTO.listPrice, Math.Minus(item.Quantity, bookingQuantity)); //item.TaxAmount;
1700
+ //}
1738
1701
  detailDTO.taxRate = item.TaxRate;
1739
1702
  detailDTO.quantity = item.Quantity;
1740
1703
 
@@ -1764,18 +1727,18 @@ var PayMode = exports.PayMode = (_class3 = function () {
1764
1727
  }
1765
1728
  });
1766
1729
 
1767
- var _ref21 = element || {},
1768
- couponCode = _ref21.couponCode,
1769
- name = _ref21.name,
1770
- tieredAmountResult = _ref21.tieredAmountResult,
1771
- fromDate = _ref21.fromDate,
1772
- dateMount = _ref21.dateMount,
1773
- promoMethodEnum = _ref21.promoMethodEnum,
1774
- discountPct = _ref21.discountPct,
1775
- nominalAmount = _ref21.nominalAmount,
1776
- promoId = _ref21.promoId,
1777
- id = _ref21.id,
1778
- doorsill = _ref21.doorsill;
1730
+ var _ref20 = element || {},
1731
+ couponCode = _ref20.couponCode,
1732
+ name = _ref20.name,
1733
+ tieredAmountResult = _ref20.tieredAmountResult,
1734
+ fromDate = _ref20.fromDate,
1735
+ dateMount = _ref20.dateMount,
1736
+ promoMethodEnum = _ref20.promoMethodEnum,
1737
+ discountPct = _ref20.discountPct,
1738
+ nominalAmount = _ref20.nominalAmount,
1739
+ promoId = _ref20.promoId,
1740
+ id = _ref20.id,
1741
+ doorsill = _ref20.doorsill;
1779
1742
 
1780
1743
  var condValue = tieredAmountResult.condValue,
1781
1744
  promoDiscount = tieredAmountResult.promoDiscount,
@@ -1819,8 +1782,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
1819
1782
  }, {
1820
1783
  key: 'calcDjqValue',
1821
1784
  value: function calcDjqValue(q1) {
1822
- var _ref22 = _mutantsUtil.platform || {},
1823
- isNewRetailBCPos = _ref22.isNewRetailBCPos;
1785
+ var _ref21 = _mutantsUtil.platform || {},
1786
+ isNewRetailBCPos = _ref21.isNewRetailBCPos;
1824
1787
 
1825
1788
  var _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(),
1826
1789
  Differentiate = _enumController$getEn16.Differentiate;
@@ -1910,7 +1873,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1910
1873
  }, {
1911
1874
  key: 'setPaymodes',
1912
1875
  value: function () {
1913
- var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
1876
+ var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
1914
1877
  var _this15 = this;
1915
1878
 
1916
1879
  var _enumController$getEn18, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
@@ -1965,7 +1928,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1965
1928
  }));
1966
1929
 
1967
1930
  function setPaymodes(_x5, _x6) {
1968
- return _ref23.apply(this, arguments);
1931
+ return _ref22.apply(this, arguments);
1969
1932
  }
1970
1933
 
1971
1934
  return setPaymodes;
@@ -2086,8 +2049,8 @@ var Member = exports.Member = (_class5 = function () {
2086
2049
  return key == 'canusedbalancestorage';
2087
2050
  });
2088
2051
 
2089
- var _ref24 = _mutantsUtil.platform || {},
2090
- isNewRetailBCPos = _ref24.isNewRetailBCPos;
2052
+ var _ref23 = _mutantsUtil.platform || {},
2053
+ isNewRetailBCPos = _ref23.isNewRetailBCPos;
2091
2054
 
2092
2055
  m.StorageCardNo && (this.StorageCardNo = m.StorageCardNo);
2093
2056
  m.MeStorageCardId && (this.MeStorageCardId = m.MeStorageCardId);