tplus-components-touch 3.27.3 → 3.27.7
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/dist/components/billSearch/index.js +14 -14
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/cloudPrint/index.js +57 -4
- package/dist/components/cloudPrint/index.js.map +1 -1
- package/dist/components/deliverySearch/index.js +12 -8
- package/dist/components/deliverySearch/index.js.map +1 -1
- package/dist/components/hotKey/localConfig.js +1 -1
- package/dist/components/hotKey/localConfig.js.map +1 -1
- package/dist/components/input/scanInput.js +98 -0
- package/dist/components/input/scanInput.js.map +1 -0
- package/dist/components/input/scanInput.less +28 -0
- package/dist/components/input/style.less +7 -0
- package/dist/components/inventorySearch/store.js +31 -12
- package/dist/components/inventorySearch/store.js.map +1 -1
- package/dist/components/inventorySearch/tab.js +9 -2
- package/dist/components/inventorySearch/tab.js.map +1 -1
- package/dist/components/loading/loadingContent.js +13 -4
- package/dist/components/loading/loadingContent.js.map +1 -1
- package/dist/components/loading/style.less +13 -4
- package/dist/components/message/index.js +8 -5
- package/dist/components/message/index.js.map +1 -1
- package/dist/components/presale/pickup.js +12 -1
- package/dist/components/presale/pickup.js.map +1 -1
- package/dist/components/settlement/settlement.js +59 -55
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlementStore.js +46 -50
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/socket/index.js +6 -5
- package/dist/components/socket/index.js.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/util/tools.js +5 -7
- package/dist/util/tools.js.map +1 -1
- package/package.json +35 -35
|
@@ -648,11 +648,7 @@ var SettlementStore = (_class = function () {
|
|
|
648
648
|
}, {
|
|
649
649
|
key: 'getLoginInfo',
|
|
650
650
|
value: function getLoginInfo() {
|
|
651
|
-
|
|
652
|
-
_ref8$loginInfo = _ref8.loginInfo,
|
|
653
|
-
loginInfo = _ref8$loginInfo === undefined ? {} : _ref8$loginInfo;
|
|
654
|
-
|
|
655
|
-
return loginInfo;
|
|
651
|
+
return _mutantsMicrofx.stores.user.options.get('loginInfo');
|
|
656
652
|
}
|
|
657
653
|
}, {
|
|
658
654
|
key: 'loadCzk',
|
|
@@ -669,8 +665,8 @@ var SettlementStore = (_class = function () {
|
|
|
669
665
|
var IdStore = this.storeInfo.storeID;
|
|
670
666
|
var StoreCode = this.storeInfo.storeCode; //_find(this.storeInfo.storeInfos,(store)=>{return store.ID==IdStore;}).Code;
|
|
671
667
|
|
|
672
|
-
var
|
|
673
|
-
isNewRetailBCPos =
|
|
668
|
+
var _ref8 = _mutantsUtil.platform || {},
|
|
669
|
+
isNewRetailBCPos = _ref8.isNewRetailBCPos;
|
|
674
670
|
|
|
675
671
|
var address = '';
|
|
676
672
|
if (isNewRetailBCPos) {
|
|
@@ -680,8 +676,8 @@ var SettlementStore = (_class = function () {
|
|
|
680
676
|
var data = result.data;
|
|
681
677
|
var m = data;
|
|
682
678
|
|
|
683
|
-
var
|
|
684
|
-
isNewRetailBCPos =
|
|
679
|
+
var _ref9 = _mutantsUtil.platform || {},
|
|
680
|
+
isNewRetailBCPos = _ref9.isNewRetailBCPos;
|
|
685
681
|
|
|
686
682
|
if (isNewRetailBCPos) {
|
|
687
683
|
_this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
|
|
@@ -726,8 +722,8 @@ var SettlementStore = (_class = function () {
|
|
|
726
722
|
var data = JSON.parse(result.Data);
|
|
727
723
|
var m = data && data.length > 0 && data[0];
|
|
728
724
|
|
|
729
|
-
var
|
|
730
|
-
isNewRetailBCPos =
|
|
725
|
+
var _ref10 = _mutantsUtil.platform || {},
|
|
726
|
+
isNewRetailBCPos = _ref10.isNewRetailBCPos;
|
|
731
727
|
|
|
732
728
|
if (isNewRetailBCPos) {
|
|
733
729
|
_this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
|
|
@@ -1021,8 +1017,8 @@ var SettlementStore = (_class = function () {
|
|
|
1021
1017
|
}, {
|
|
1022
1018
|
key: 'commit',
|
|
1023
1019
|
value: function () {
|
|
1024
|
-
var
|
|
1025
|
-
var
|
|
1020
|
+
var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
|
|
1021
|
+
var _ref12, isNewRetailBCPos;
|
|
1026
1022
|
|
|
1027
1023
|
return _regenerator2.default.wrap(function _callee2$(_context2) {
|
|
1028
1024
|
while (1) {
|
|
@@ -1038,7 +1034,7 @@ var SettlementStore = (_class = function () {
|
|
|
1038
1034
|
return _context2.abrupt('return', _promise2.default.resolve(true));
|
|
1039
1035
|
|
|
1040
1036
|
case 3:
|
|
1041
|
-
|
|
1037
|
+
_ref12 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref12.isNewRetailBCPos;
|
|
1042
1038
|
_context2.prev = 4;
|
|
1043
1039
|
|
|
1044
1040
|
if (!(this.type == 1)) {
|
|
@@ -1094,7 +1090,7 @@ var SettlementStore = (_class = function () {
|
|
|
1094
1090
|
}));
|
|
1095
1091
|
|
|
1096
1092
|
function commit(_x2) {
|
|
1097
|
-
return
|
|
1093
|
+
return _ref11.apply(this, arguments);
|
|
1098
1094
|
}
|
|
1099
1095
|
|
|
1100
1096
|
return commit;
|
|
@@ -1152,10 +1148,10 @@ var SettlementStore = (_class = function () {
|
|
|
1152
1148
|
}, {
|
|
1153
1149
|
key: 'save',
|
|
1154
1150
|
value: function () {
|
|
1155
|
-
var
|
|
1151
|
+
var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
|
|
1156
1152
|
var _this11 = this;
|
|
1157
1153
|
|
|
1158
|
-
var _enumController$getEn14, PayStyle,
|
|
1154
|
+
var _enumController$getEn14, PayStyle, _ref15, isNewRetailBCPos, IPMSG, RetailTypeEnum;
|
|
1159
1155
|
|
|
1160
1156
|
return _regenerator2.default.wrap(function _callee3$(_context3) {
|
|
1161
1157
|
while (1) {
|
|
@@ -1235,8 +1231,8 @@ var SettlementStore = (_class = function () {
|
|
|
1235
1231
|
}
|
|
1236
1232
|
});
|
|
1237
1233
|
|
|
1238
|
-
var
|
|
1239
|
-
isNewRetailBCPos =
|
|
1234
|
+
var _ref14 = _mutantsUtil.platform || {},
|
|
1235
|
+
isNewRetailBCPos = _ref14.isNewRetailBCPos;
|
|
1240
1236
|
|
|
1241
1237
|
if (_this11.dto.RetailStorageDetails.length > 0) {
|
|
1242
1238
|
var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
|
|
@@ -1270,7 +1266,7 @@ var SettlementStore = (_class = function () {
|
|
|
1270
1266
|
_this11.dto.Idmember = Idmember;
|
|
1271
1267
|
}
|
|
1272
1268
|
});
|
|
1273
|
-
|
|
1269
|
+
_ref15 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref15.isNewRetailBCPos;
|
|
1274
1270
|
|
|
1275
1271
|
console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
|
|
1276
1272
|
|
|
@@ -1340,7 +1336,7 @@ var SettlementStore = (_class = function () {
|
|
|
1340
1336
|
}));
|
|
1341
1337
|
|
|
1342
1338
|
function save() {
|
|
1343
|
-
return
|
|
1339
|
+
return _ref13.apply(this, arguments);
|
|
1344
1340
|
}
|
|
1345
1341
|
|
|
1346
1342
|
return save;
|
|
@@ -1353,7 +1349,7 @@ var SettlementStore = (_class = function () {
|
|
|
1353
1349
|
}, {
|
|
1354
1350
|
key: 'querySettleResult',
|
|
1355
1351
|
value: function () {
|
|
1356
|
-
var
|
|
1352
|
+
var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
|
|
1357
1353
|
return _regenerator2.default.wrap(function _callee4$(_context4) {
|
|
1358
1354
|
while (1) {
|
|
1359
1355
|
switch (_context4.prev = _context4.next) {
|
|
@@ -1381,7 +1377,7 @@ var SettlementStore = (_class = function () {
|
|
|
1381
1377
|
}));
|
|
1382
1378
|
|
|
1383
1379
|
function querySettleResult() {
|
|
1384
|
-
return
|
|
1380
|
+
return _ref16.apply(this, arguments);
|
|
1385
1381
|
}
|
|
1386
1382
|
|
|
1387
1383
|
return querySettleResult;
|
|
@@ -1407,14 +1403,14 @@ var SettlementStore = (_class = function () {
|
|
|
1407
1403
|
}, {
|
|
1408
1404
|
key: 'validePwd',
|
|
1409
1405
|
value: function () {
|
|
1410
|
-
var
|
|
1411
|
-
var
|
|
1406
|
+
var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
|
|
1407
|
+
var _ref18, isNewRetailBCPos, cook1, cook2, message, memberId, result, count, _result;
|
|
1412
1408
|
|
|
1413
1409
|
return _regenerator2.default.wrap(function _callee5$(_context5) {
|
|
1414
1410
|
while (1) {
|
|
1415
1411
|
switch (_context5.prev = _context5.next) {
|
|
1416
1412
|
case 0:
|
|
1417
|
-
|
|
1413
|
+
_ref18 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref18.isNewRetailBCPos;
|
|
1418
1414
|
_context5.prev = 1;
|
|
1419
1415
|
|
|
1420
1416
|
if (!isNewRetailBCPos) {
|
|
@@ -1499,7 +1495,7 @@ var SettlementStore = (_class = function () {
|
|
|
1499
1495
|
}));
|
|
1500
1496
|
|
|
1501
1497
|
function validePwd(_x3) {
|
|
1502
|
-
return
|
|
1498
|
+
return _ref17.apply(this, arguments);
|
|
1503
1499
|
}
|
|
1504
1500
|
|
|
1505
1501
|
return validePwd;
|
|
@@ -1538,7 +1534,7 @@ var SettlementStore = (_class = function () {
|
|
|
1538
1534
|
var _this13 = this;
|
|
1539
1535
|
|
|
1540
1536
|
return function () {
|
|
1541
|
-
var
|
|
1537
|
+
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
|
|
1542
1538
|
var _getLoginInfo2, IdStore, StoreCode, resp;
|
|
1543
1539
|
|
|
1544
1540
|
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
|
@@ -1565,7 +1561,7 @@ var SettlementStore = (_class = function () {
|
|
|
1565
1561
|
}));
|
|
1566
1562
|
|
|
1567
1563
|
return function (_x4) {
|
|
1568
|
-
return
|
|
1564
|
+
return _ref19.apply(this, arguments);
|
|
1569
1565
|
};
|
|
1570
1566
|
}();
|
|
1571
1567
|
}
|
|
@@ -1657,8 +1653,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1657
1653
|
this.checkList = [];
|
|
1658
1654
|
}
|
|
1659
1655
|
|
|
1660
|
-
var
|
|
1661
|
-
isNewRetailBCPos =
|
|
1656
|
+
var _ref20 = _mutantsUtil.platform || {},
|
|
1657
|
+
isNewRetailBCPos = _ref20.isNewRetailBCPos;
|
|
1662
1658
|
|
|
1663
1659
|
var _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(),
|
|
1664
1660
|
PayStyle = _enumController$getEn15.PayStyle,
|
|
@@ -1768,18 +1764,18 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1768
1764
|
}
|
|
1769
1765
|
});
|
|
1770
1766
|
|
|
1771
|
-
var
|
|
1772
|
-
couponCode =
|
|
1773
|
-
name =
|
|
1774
|
-
tieredAmountResult =
|
|
1775
|
-
fromDate =
|
|
1776
|
-
dateMount =
|
|
1777
|
-
promoMethodEnum =
|
|
1778
|
-
discountPct =
|
|
1779
|
-
nominalAmount =
|
|
1780
|
-
promoId =
|
|
1781
|
-
id =
|
|
1782
|
-
doorsill =
|
|
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;
|
|
1783
1779
|
|
|
1784
1780
|
var condValue = tieredAmountResult.condValue,
|
|
1785
1781
|
promoDiscount = tieredAmountResult.promoDiscount,
|
|
@@ -1823,8 +1819,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1823
1819
|
}, {
|
|
1824
1820
|
key: 'calcDjqValue',
|
|
1825
1821
|
value: function calcDjqValue(q1) {
|
|
1826
|
-
var
|
|
1827
|
-
isNewRetailBCPos =
|
|
1822
|
+
var _ref22 = _mutantsUtil.platform || {},
|
|
1823
|
+
isNewRetailBCPos = _ref22.isNewRetailBCPos;
|
|
1828
1824
|
|
|
1829
1825
|
var _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(),
|
|
1830
1826
|
Differentiate = _enumController$getEn16.Differentiate;
|
|
@@ -1900,7 +1896,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1900
1896
|
|
|
1901
1897
|
if (this.amount > 0 && (v === '' || v === '0.00') && sum !== 0) {
|
|
1902
1898
|
this.currentMode.errinfo = "实收金额必须录入";
|
|
1903
|
-
} else if (Math.abs(parseFloat(v)) > Math.abs(sum)) {
|
|
1899
|
+
} else if (Math.abs(parseFloat(v)) > Math.abs((0, _utils.getFixedNumber)(sum))) {
|
|
1904
1900
|
this.currentMode.errinfo = "实收不应大于应收";
|
|
1905
1901
|
} else if (parseFloat(v) > 0 && parseFloat(v) > (max || 0)) {
|
|
1906
1902
|
this.currentMode.errinfo = "余额不足";
|
|
@@ -1914,7 +1910,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1914
1910
|
}, {
|
|
1915
1911
|
key: 'setPaymodes',
|
|
1916
1912
|
value: function () {
|
|
1917
|
-
var
|
|
1913
|
+
var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
|
|
1918
1914
|
var _this15 = this;
|
|
1919
1915
|
|
|
1920
1916
|
var _enumController$getEn18, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
|
|
@@ -1969,7 +1965,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1969
1965
|
}));
|
|
1970
1966
|
|
|
1971
1967
|
function setPaymodes(_x5, _x6) {
|
|
1972
|
-
return
|
|
1968
|
+
return _ref23.apply(this, arguments);
|
|
1973
1969
|
}
|
|
1974
1970
|
|
|
1975
1971
|
return setPaymodes;
|
|
@@ -2090,8 +2086,8 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2090
2086
|
return key == 'canusedbalancestorage';
|
|
2091
2087
|
});
|
|
2092
2088
|
|
|
2093
|
-
var
|
|
2094
|
-
isNewRetailBCPos =
|
|
2089
|
+
var _ref24 = _mutantsUtil.platform || {},
|
|
2090
|
+
isNewRetailBCPos = _ref24.isNewRetailBCPos;
|
|
2095
2091
|
|
|
2096
2092
|
m.StorageCardNo && (this.StorageCardNo = m.StorageCardNo);
|
|
2097
2093
|
m.MeStorageCardId && (this.MeStorageCardId = m.MeStorageCardId);
|