tplus-components-touch 3.28.1 → 3.28.5

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 (35) hide show
  1. package/dist/components/billSearch/index.js +14 -14
  2. package/dist/components/billSearch/index.js.map +1 -1
  3. package/dist/components/cloudPrint/index.js +57 -4
  4. package/dist/components/cloudPrint/index.js.map +1 -1
  5. package/dist/components/deliverySearch/index.js +12 -8
  6. package/dist/components/deliverySearch/index.js.map +1 -1
  7. package/dist/components/input/scanInput.js +98 -0
  8. package/dist/components/input/scanInput.js.map +1 -0
  9. package/dist/components/input/scanInput.less +28 -0
  10. package/dist/components/inventorySearch/store.js +31 -12
  11. package/dist/components/inventorySearch/store.js.map +1 -1
  12. package/dist/components/inventorySearch/tab.js +7 -9
  13. package/dist/components/inventorySearch/tab.js.map +1 -1
  14. package/dist/components/keyboard/numberButton_input.js +4 -2
  15. package/dist/components/keyboard/numberButton_input.js.map +1 -1
  16. package/dist/components/keyboard/onlyLetterButton2.less +35 -40
  17. package/dist/components/loading/loadingContent.js +13 -4
  18. package/dist/components/loading/loadingContent.js.map +1 -1
  19. package/dist/components/loading/style.less +17 -6
  20. package/dist/components/message/index.js +8 -5
  21. package/dist/components/message/index.js.map +1 -1
  22. package/dist/components/settlement/settlement.js +3 -6
  23. package/dist/components/settlement/settlement.js.map +1 -1
  24. package/dist/components/settlement/settlementStore.js +46 -50
  25. package/dist/components/settlement/settlementStore.js.map +1 -1
  26. package/dist/components/socket/index.js +6 -5
  27. package/dist/components/socket/index.js.map +1 -1
  28. package/dist/components/touchTable/index.js +4 -3
  29. package/dist/components/touchTable/index.js.map +1 -1
  30. package/dist/components/touchTable/index.less +20 -13
  31. package/dist/index.js +6 -1
  32. package/dist/index.js.map +1 -1
  33. package/dist/util/tools.js +5 -7
  34. package/dist/util/tools.js.map +1 -1
  35. package/package.json +35 -35
@@ -617,11 +617,7 @@ var SettlementStore = (_class = function () {
617
617
  }, {
618
618
  key: 'getLoginInfo',
619
619
  value: function getLoginInfo() {
620
- var _ref7 = _mutantsMicrofx.localStore.get('user') || {},
621
- _ref7$loginInfo = _ref7.loginInfo,
622
- loginInfo = _ref7$loginInfo === undefined ? {} : _ref7$loginInfo;
623
-
624
- return loginInfo;
620
+ return _mutantsMicrofx.stores.user.options.get('loginInfo');
625
621
  }
626
622
  }, {
627
623
  key: 'loadCzk',
@@ -638,8 +634,8 @@ var SettlementStore = (_class = function () {
638
634
  var IdStore = this.storeInfo.storeID;
639
635
  var StoreCode = this.storeInfo.storeCode; //_find(this.storeInfo.storeInfos,(store)=>{return store.ID==IdStore;}).Code;
640
636
 
641
- var _ref8 = _mutantsUtil.platform || {},
642
- isNewRetailBCPos = _ref8.isNewRetailBCPos;
637
+ var _ref7 = _mutantsUtil.platform || {},
638
+ isNewRetailBCPos = _ref7.isNewRetailBCPos;
643
639
 
644
640
  var address = '';
645
641
  if (isNewRetailBCPos) {
@@ -649,8 +645,8 @@ var SettlementStore = (_class = function () {
649
645
  var data = result.data;
650
646
  var m = data;
651
647
 
652
- var _ref9 = _mutantsUtil.platform || {},
653
- isNewRetailBCPos = _ref9.isNewRetailBCPos;
648
+ var _ref8 = _mutantsUtil.platform || {},
649
+ isNewRetailBCPos = _ref8.isNewRetailBCPos;
654
650
 
655
651
  if (isNewRetailBCPos) {
656
652
  _this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
@@ -695,8 +691,8 @@ var SettlementStore = (_class = function () {
695
691
  var data = JSON.parse(result.Data);
696
692
  var m = data && data.length > 0 && data[0];
697
693
 
698
- var _ref10 = _mutantsUtil.platform || {},
699
- isNewRetailBCPos = _ref10.isNewRetailBCPos;
694
+ var _ref9 = _mutantsUtil.platform || {},
695
+ isNewRetailBCPos = _ref9.isNewRetailBCPos;
700
696
 
701
697
  if (isNewRetailBCPos) {
702
698
  _this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
@@ -991,8 +987,8 @@ var SettlementStore = (_class = function () {
991
987
  }, {
992
988
  key: 'commit',
993
989
  value: function () {
994
- var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
995
- var _ref12, isNewRetailBCPos;
990
+ var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
991
+ var _ref11, isNewRetailBCPos;
996
992
 
997
993
  return _regenerator2.default.wrap(function _callee2$(_context2) {
998
994
  while (1) {
@@ -1008,7 +1004,7 @@ var SettlementStore = (_class = function () {
1008
1004
  return _context2.abrupt('return', _promise2.default.resolve(true));
1009
1005
 
1010
1006
  case 3:
1011
- _ref12 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref12.isNewRetailBCPos;
1007
+ _ref11 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref11.isNewRetailBCPos;
1012
1008
  _context2.prev = 4;
1013
1009
 
1014
1010
  if (!(this.type == 1)) {
@@ -1064,7 +1060,7 @@ var SettlementStore = (_class = function () {
1064
1060
  }));
1065
1061
 
1066
1062
  function commit(_x2) {
1067
- return _ref11.apply(this, arguments);
1063
+ return _ref10.apply(this, arguments);
1068
1064
  }
1069
1065
 
1070
1066
  return commit;
@@ -1122,10 +1118,10 @@ var SettlementStore = (_class = function () {
1122
1118
  }, {
1123
1119
  key: 'save',
1124
1120
  value: function () {
1125
- var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
1121
+ var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
1126
1122
  var _this11 = this;
1127
1123
 
1128
- var _enumController$getEn15, PayStyle, _ref15, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1124
+ var _enumController$getEn15, PayStyle, _ref14, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1129
1125
 
1130
1126
  return _regenerator2.default.wrap(function _callee3$(_context3) {
1131
1127
  while (1) {
@@ -1205,8 +1201,8 @@ var SettlementStore = (_class = function () {
1205
1201
  }
1206
1202
  });
1207
1203
 
1208
- var _ref14 = _mutantsUtil.platform || {},
1209
- isNewRetailBCPos = _ref14.isNewRetailBCPos;
1204
+ var _ref13 = _mutantsUtil.platform || {},
1205
+ isNewRetailBCPos = _ref13.isNewRetailBCPos;
1210
1206
 
1211
1207
  if (_this11.dto.RetailStorageDetails.length > 0) {
1212
1208
  var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
@@ -1240,7 +1236,7 @@ var SettlementStore = (_class = function () {
1240
1236
  _this11.dto.Idmember = Idmember;
1241
1237
  }
1242
1238
  });
1243
- _ref15 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref15.isNewRetailBCPos;
1239
+ _ref14 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref14.isNewRetailBCPos;
1244
1240
 
1245
1241
  console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
1246
1242
 
@@ -1310,7 +1306,7 @@ var SettlementStore = (_class = function () {
1310
1306
  }));
1311
1307
 
1312
1308
  function save() {
1313
- return _ref13.apply(this, arguments);
1309
+ return _ref12.apply(this, arguments);
1314
1310
  }
1315
1311
 
1316
1312
  return save;
@@ -1323,7 +1319,7 @@ var SettlementStore = (_class = function () {
1323
1319
  }, {
1324
1320
  key: 'querySettleResult',
1325
1321
  value: function () {
1326
- var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1322
+ var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1327
1323
  return _regenerator2.default.wrap(function _callee4$(_context4) {
1328
1324
  while (1) {
1329
1325
  switch (_context4.prev = _context4.next) {
@@ -1351,7 +1347,7 @@ var SettlementStore = (_class = function () {
1351
1347
  }));
1352
1348
 
1353
1349
  function querySettleResult() {
1354
- return _ref16.apply(this, arguments);
1350
+ return _ref15.apply(this, arguments);
1355
1351
  }
1356
1352
 
1357
1353
  return querySettleResult;
@@ -1377,14 +1373,14 @@ var SettlementStore = (_class = function () {
1377
1373
  }, {
1378
1374
  key: 'validePwd',
1379
1375
  value: function () {
1380
- var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
1381
- var _ref18, isNewRetailBCPos, cook1, cook2, message, memberId, result, count, _result;
1376
+ var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
1377
+ var _ref17, isNewRetailBCPos, cook1, cook2, message, memberId, result, count, _result;
1382
1378
 
1383
1379
  return _regenerator2.default.wrap(function _callee5$(_context5) {
1384
1380
  while (1) {
1385
1381
  switch (_context5.prev = _context5.next) {
1386
1382
  case 0:
1387
- _ref18 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref18.isNewRetailBCPos;
1383
+ _ref17 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref17.isNewRetailBCPos;
1388
1384
  _context5.prev = 1;
1389
1385
 
1390
1386
  if (!isNewRetailBCPos) {
@@ -1469,7 +1465,7 @@ var SettlementStore = (_class = function () {
1469
1465
  }));
1470
1466
 
1471
1467
  function validePwd(_x3) {
1472
- return _ref17.apply(this, arguments);
1468
+ return _ref16.apply(this, arguments);
1473
1469
  }
1474
1470
 
1475
1471
  return validePwd;
@@ -1508,7 +1504,7 @@ var SettlementStore = (_class = function () {
1508
1504
  var _this13 = this;
1509
1505
 
1510
1506
  return function () {
1511
- var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1507
+ var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1512
1508
  var _getLoginInfo, IdStore, StoreCode, resp;
1513
1509
 
1514
1510
  return _regenerator2.default.wrap(function _callee6$(_context6) {
@@ -1535,7 +1531,7 @@ var SettlementStore = (_class = function () {
1535
1531
  }));
1536
1532
 
1537
1533
  return function (_x4) {
1538
- return _ref19.apply(this, arguments);
1534
+ return _ref18.apply(this, arguments);
1539
1535
  };
1540
1536
  }();
1541
1537
  }
@@ -1627,8 +1623,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
1627
1623
  this.checkList = [];
1628
1624
  }
1629
1625
 
1630
- var _ref20 = _mutantsUtil.platform || {},
1631
- isNewRetailBCPos = _ref20.isNewRetailBCPos;
1626
+ var _ref19 = _mutantsUtil.platform || {},
1627
+ isNewRetailBCPos = _ref19.isNewRetailBCPos;
1632
1628
 
1633
1629
  var _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(),
1634
1630
  PayStyle = _enumController$getEn16.PayStyle,
@@ -1738,18 +1734,18 @@ var PayMode = exports.PayMode = (_class3 = function () {
1738
1734
  }
1739
1735
  });
1740
1736
 
1741
- var _ref21 = element || {},
1742
- couponCode = _ref21.couponCode,
1743
- name = _ref21.name,
1744
- tieredAmountResult = _ref21.tieredAmountResult,
1745
- fromDate = _ref21.fromDate,
1746
- dateMount = _ref21.dateMount,
1747
- promoMethodEnum = _ref21.promoMethodEnum,
1748
- discountPct = _ref21.discountPct,
1749
- nominalAmount = _ref21.nominalAmount,
1750
- promoId = _ref21.promoId,
1751
- id = _ref21.id,
1752
- doorsill = _ref21.doorsill;
1737
+ var _ref20 = element || {},
1738
+ couponCode = _ref20.couponCode,
1739
+ name = _ref20.name,
1740
+ tieredAmountResult = _ref20.tieredAmountResult,
1741
+ fromDate = _ref20.fromDate,
1742
+ dateMount = _ref20.dateMount,
1743
+ promoMethodEnum = _ref20.promoMethodEnum,
1744
+ discountPct = _ref20.discountPct,
1745
+ nominalAmount = _ref20.nominalAmount,
1746
+ promoId = _ref20.promoId,
1747
+ id = _ref20.id,
1748
+ doorsill = _ref20.doorsill;
1753
1749
 
1754
1750
  var condValue = tieredAmountResult.condValue,
1755
1751
  promoDiscount = tieredAmountResult.promoDiscount,
@@ -1793,8 +1789,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
1793
1789
  }, {
1794
1790
  key: 'calcDjqValue',
1795
1791
  value: function calcDjqValue(q1) {
1796
- var _ref22 = _mutantsUtil.platform || {},
1797
- isNewRetailBCPos = _ref22.isNewRetailBCPos;
1792
+ var _ref21 = _mutantsUtil.platform || {},
1793
+ isNewRetailBCPos = _ref21.isNewRetailBCPos;
1798
1794
 
1799
1795
  var _enumController$getEn17 = _mutantsUtil.enumController.getEnumOj(),
1800
1796
  Differentiate = _enumController$getEn17.Differentiate;
@@ -1870,7 +1866,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1870
1866
 
1871
1867
  if (this.amount > 0 && (v === '' || v === '0.00') && sum !== 0) {
1872
1868
  this.currentMode.errinfo = "实收金额必须录入";
1873
- } else if (Math.abs(parseFloat(v)) > Math.abs(sum)) {
1869
+ } else if (Math.abs(parseFloat(v)) > Math.abs((0, _utils.getFixedNumber)(sum))) {
1874
1870
  this.currentMode.errinfo = "实收不应大于应收";
1875
1871
  } else if (parseFloat(v) > 0 && parseFloat(v) > (max || 0)) {
1876
1872
  this.currentMode.errinfo = "余额不足";
@@ -1884,7 +1880,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1884
1880
  }, {
1885
1881
  key: 'setPaymodes',
1886
1882
  value: function () {
1887
- var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
1883
+ var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
1888
1884
  var _this15 = this;
1889
1885
 
1890
1886
  var _enumController$getEn19, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
@@ -1939,7 +1935,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1939
1935
  }));
1940
1936
 
1941
1937
  function setPaymodes(_x5, _x6) {
1942
- return _ref23.apply(this, arguments);
1938
+ return _ref22.apply(this, arguments);
1943
1939
  }
1944
1940
 
1945
1941
  return setPaymodes;
@@ -2060,8 +2056,8 @@ var Member = exports.Member = (_class5 = function () {
2060
2056
  return key == 'canusedbalancestorage';
2061
2057
  });
2062
2058
 
2063
- var _ref24 = _mutantsUtil.platform || {},
2064
- isNewRetailBCPos = _ref24.isNewRetailBCPos;
2059
+ var _ref23 = _mutantsUtil.platform || {},
2060
+ isNewRetailBCPos = _ref23.isNewRetailBCPos;
2065
2061
 
2066
2062
  m.StorageCardNo && (this.StorageCardNo = m.StorageCardNo);
2067
2063
  m.MeStorageCardId && (this.MeStorageCardId = m.MeStorageCardId);