tplus-components-touch 3.26.9 → 3.26.13
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/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/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/settlement/settlement.js +114 -124
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlementStore.js +45 -49
- 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 +1 -1
|
@@ -659,11 +659,7 @@ var SettlementStore = (_class = function () {
|
|
|
659
659
|
}, {
|
|
660
660
|
key: 'getLoginInfo',
|
|
661
661
|
value: function getLoginInfo() {
|
|
662
|
-
|
|
663
|
-
_ref7$loginInfo = _ref7.loginInfo,
|
|
664
|
-
loginInfo = _ref7$loginInfo === undefined ? {} : _ref7$loginInfo;
|
|
665
|
-
|
|
666
|
-
return loginInfo;
|
|
662
|
+
return _mutantsMicrofx.stores.user.options.get('loginInfo');
|
|
667
663
|
}
|
|
668
664
|
}, {
|
|
669
665
|
key: 'loadCzk',
|
|
@@ -679,15 +675,15 @@ var SettlementStore = (_class = function () {
|
|
|
679
675
|
var IdStore = this.storeInfo.storeID;
|
|
680
676
|
var StoreCode = this.storeInfo.storeCode; //_find(this.storeInfo.storeInfos,(store)=>{return store.ID==IdStore;}).Code;
|
|
681
677
|
|
|
682
|
-
var
|
|
683
|
-
isNewRetailBCPos =
|
|
678
|
+
var _ref7 = _mutantsUtil.platform || {},
|
|
679
|
+
isNewRetailBCPos = _ref7.isNewRetailBCPos;
|
|
684
680
|
|
|
685
681
|
var address = '';
|
|
686
682
|
if (isNewRetailBCPos) {
|
|
687
683
|
// address = '/member/memberProfile/FindByStorageCode/'+v;
|
|
688
684
|
address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + v + '/' + true;
|
|
689
685
|
return (0, _tplusApi.ccApi)({ code: v }, address, false, false, { method: 'get', timeout_skip: true }).then(function () {
|
|
690
|
-
var
|
|
686
|
+
var _ref8 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(result) {
|
|
691
687
|
var data, m;
|
|
692
688
|
return _regenerator2.default.wrap(function _callee2$(_context2) {
|
|
693
689
|
while (1) {
|
|
@@ -727,7 +723,7 @@ var SettlementStore = (_class = function () {
|
|
|
727
723
|
}));
|
|
728
724
|
|
|
729
725
|
return function (_x2) {
|
|
730
|
-
return
|
|
726
|
+
return _ref8.apply(this, arguments);
|
|
731
727
|
};
|
|
732
728
|
}());
|
|
733
729
|
} else {
|
|
@@ -1045,8 +1041,8 @@ var SettlementStore = (_class = function () {
|
|
|
1045
1041
|
}, {
|
|
1046
1042
|
key: 'commit',
|
|
1047
1043
|
value: function () {
|
|
1048
|
-
var
|
|
1049
|
-
var
|
|
1044
|
+
var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(bTest) {
|
|
1045
|
+
var _ref10, isNewRetailBCPos;
|
|
1050
1046
|
|
|
1051
1047
|
return _regenerator2.default.wrap(function _callee3$(_context3) {
|
|
1052
1048
|
while (1) {
|
|
@@ -1062,7 +1058,7 @@ var SettlementStore = (_class = function () {
|
|
|
1062
1058
|
return _context3.abrupt('return', _promise2.default.resolve(true));
|
|
1063
1059
|
|
|
1064
1060
|
case 3:
|
|
1065
|
-
|
|
1061
|
+
_ref10 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref10.isNewRetailBCPos;
|
|
1066
1062
|
_context3.prev = 4;
|
|
1067
1063
|
|
|
1068
1064
|
if (!(this.type == 1)) {
|
|
@@ -1118,7 +1114,7 @@ var SettlementStore = (_class = function () {
|
|
|
1118
1114
|
}));
|
|
1119
1115
|
|
|
1120
1116
|
function commit(_x3) {
|
|
1121
|
-
return
|
|
1117
|
+
return _ref9.apply(this, arguments);
|
|
1122
1118
|
}
|
|
1123
1119
|
|
|
1124
1120
|
return commit;
|
|
@@ -1176,10 +1172,10 @@ var SettlementStore = (_class = function () {
|
|
|
1176
1172
|
}, {
|
|
1177
1173
|
key: 'save',
|
|
1178
1174
|
value: function () {
|
|
1179
|
-
var
|
|
1175
|
+
var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
|
|
1180
1176
|
var _this11 = this;
|
|
1181
1177
|
|
|
1182
|
-
var _enumController$getEn14, PayStyle,
|
|
1178
|
+
var _enumController$getEn14, PayStyle, _ref13, isNewRetailBCPos, IPMSG, RetailTypeEnum;
|
|
1183
1179
|
|
|
1184
1180
|
return _regenerator2.default.wrap(function _callee4$(_context4) {
|
|
1185
1181
|
while (1) {
|
|
@@ -1254,8 +1250,8 @@ var SettlementStore = (_class = function () {
|
|
|
1254
1250
|
}
|
|
1255
1251
|
});
|
|
1256
1252
|
|
|
1257
|
-
var
|
|
1258
|
-
isNewRetailBCPos =
|
|
1253
|
+
var _ref12 = _mutantsUtil.platform || {},
|
|
1254
|
+
isNewRetailBCPos = _ref12.isNewRetailBCPos;
|
|
1259
1255
|
|
|
1260
1256
|
if (_this11.dto.RetailStorageDetails.length > 0) {
|
|
1261
1257
|
var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
|
|
@@ -1285,7 +1281,7 @@ var SettlementStore = (_class = function () {
|
|
|
1285
1281
|
}
|
|
1286
1282
|
}
|
|
1287
1283
|
});
|
|
1288
|
-
|
|
1284
|
+
_ref13 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref13.isNewRetailBCPos;
|
|
1289
1285
|
|
|
1290
1286
|
console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
|
|
1291
1287
|
|
|
@@ -1355,7 +1351,7 @@ var SettlementStore = (_class = function () {
|
|
|
1355
1351
|
}));
|
|
1356
1352
|
|
|
1357
1353
|
function save() {
|
|
1358
|
-
return
|
|
1354
|
+
return _ref11.apply(this, arguments);
|
|
1359
1355
|
}
|
|
1360
1356
|
|
|
1361
1357
|
return save;
|
|
@@ -1368,7 +1364,7 @@ var SettlementStore = (_class = function () {
|
|
|
1368
1364
|
}, {
|
|
1369
1365
|
key: 'querySettleResult',
|
|
1370
1366
|
value: function () {
|
|
1371
|
-
var
|
|
1367
|
+
var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
|
|
1372
1368
|
return _regenerator2.default.wrap(function _callee5$(_context5) {
|
|
1373
1369
|
while (1) {
|
|
1374
1370
|
switch (_context5.prev = _context5.next) {
|
|
@@ -1396,7 +1392,7 @@ var SettlementStore = (_class = function () {
|
|
|
1396
1392
|
}));
|
|
1397
1393
|
|
|
1398
1394
|
function querySettleResult() {
|
|
1399
|
-
return
|
|
1395
|
+
return _ref14.apply(this, arguments);
|
|
1400
1396
|
}
|
|
1401
1397
|
|
|
1402
1398
|
return querySettleResult;
|
|
@@ -1422,14 +1418,14 @@ var SettlementStore = (_class = function () {
|
|
|
1422
1418
|
}, {
|
|
1423
1419
|
key: 'validePwd',
|
|
1424
1420
|
value: function () {
|
|
1425
|
-
var
|
|
1426
|
-
var
|
|
1421
|
+
var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(value) {
|
|
1422
|
+
var _ref16, isNewRetailBCPos, cook1, cook2, message, memberStorageId, _paymode$currentMode, cardTypeEnum, memberId, meStorageCardId, result, count, _result;
|
|
1427
1423
|
|
|
1428
1424
|
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
|
1429
1425
|
while (1) {
|
|
1430
1426
|
switch (_context6.prev = _context6.next) {
|
|
1431
1427
|
case 0:
|
|
1432
|
-
|
|
1428
|
+
_ref16 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref16.isNewRetailBCPos;
|
|
1433
1429
|
_context6.prev = 1;
|
|
1434
1430
|
|
|
1435
1431
|
if (!isNewRetailBCPos) {
|
|
@@ -1532,7 +1528,7 @@ var SettlementStore = (_class = function () {
|
|
|
1532
1528
|
}));
|
|
1533
1529
|
|
|
1534
1530
|
function validePwd(_x4) {
|
|
1535
|
-
return
|
|
1531
|
+
return _ref15.apply(this, arguments);
|
|
1536
1532
|
}
|
|
1537
1533
|
|
|
1538
1534
|
return validePwd;
|
|
@@ -1571,7 +1567,7 @@ var SettlementStore = (_class = function () {
|
|
|
1571
1567
|
var _this13 = this;
|
|
1572
1568
|
|
|
1573
1569
|
return function () {
|
|
1574
|
-
var
|
|
1570
|
+
var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(_this) {
|
|
1575
1571
|
var _getLoginInfo, IdStore, StoreCode, resp;
|
|
1576
1572
|
|
|
1577
1573
|
return _regenerator2.default.wrap(function _callee7$(_context7) {
|
|
@@ -1598,7 +1594,7 @@ var SettlementStore = (_class = function () {
|
|
|
1598
1594
|
}));
|
|
1599
1595
|
|
|
1600
1596
|
return function (_x5) {
|
|
1601
|
-
return
|
|
1597
|
+
return _ref17.apply(this, arguments);
|
|
1602
1598
|
};
|
|
1603
1599
|
}();
|
|
1604
1600
|
}
|
|
@@ -1608,7 +1604,7 @@ var SettlementStore = (_class = function () {
|
|
|
1608
1604
|
var _this14 = this;
|
|
1609
1605
|
|
|
1610
1606
|
return function () {
|
|
1611
|
-
var
|
|
1607
|
+
var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8(memberId) {
|
|
1612
1608
|
var result;
|
|
1613
1609
|
return _regenerator2.default.wrap(function _callee8$(_context8) {
|
|
1614
1610
|
while (1) {
|
|
@@ -1638,7 +1634,7 @@ var SettlementStore = (_class = function () {
|
|
|
1638
1634
|
}));
|
|
1639
1635
|
|
|
1640
1636
|
return function (_x6) {
|
|
1641
|
-
return
|
|
1637
|
+
return _ref18.apply(this, arguments);
|
|
1642
1638
|
};
|
|
1643
1639
|
}();
|
|
1644
1640
|
}
|
|
@@ -1780,8 +1776,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1780
1776
|
this.checkList = [];
|
|
1781
1777
|
}
|
|
1782
1778
|
|
|
1783
|
-
var
|
|
1784
|
-
isNewRetailBCPos =
|
|
1779
|
+
var _ref20 = _mutantsUtil.platform || {},
|
|
1780
|
+
isNewRetailBCPos = _ref20.isNewRetailBCPos;
|
|
1785
1781
|
|
|
1786
1782
|
var _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(),
|
|
1787
1783
|
PayStyle = _enumController$getEn15.PayStyle,
|
|
@@ -1891,18 +1887,18 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1891
1887
|
}
|
|
1892
1888
|
});
|
|
1893
1889
|
|
|
1894
|
-
var
|
|
1895
|
-
couponCode =
|
|
1896
|
-
name =
|
|
1897
|
-
tieredAmountResult =
|
|
1898
|
-
fromDate =
|
|
1899
|
-
dateMount =
|
|
1900
|
-
promoMethodEnum =
|
|
1901
|
-
discountPct =
|
|
1902
|
-
nominalAmount =
|
|
1903
|
-
promoId =
|
|
1904
|
-
id =
|
|
1905
|
-
doorsill =
|
|
1890
|
+
var _ref21 = element || {},
|
|
1891
|
+
couponCode = _ref21.couponCode,
|
|
1892
|
+
name = _ref21.name,
|
|
1893
|
+
tieredAmountResult = _ref21.tieredAmountResult,
|
|
1894
|
+
fromDate = _ref21.fromDate,
|
|
1895
|
+
dateMount = _ref21.dateMount,
|
|
1896
|
+
promoMethodEnum = _ref21.promoMethodEnum,
|
|
1897
|
+
discountPct = _ref21.discountPct,
|
|
1898
|
+
nominalAmount = _ref21.nominalAmount,
|
|
1899
|
+
promoId = _ref21.promoId,
|
|
1900
|
+
id = _ref21.id,
|
|
1901
|
+
doorsill = _ref21.doorsill;
|
|
1906
1902
|
|
|
1907
1903
|
var condValue = tieredAmountResult.condValue,
|
|
1908
1904
|
promoDiscount = tieredAmountResult.promoDiscount,
|
|
@@ -1946,8 +1942,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1946
1942
|
}, {
|
|
1947
1943
|
key: 'calcDjqValue',
|
|
1948
1944
|
value: function calcDjqValue(q1) {
|
|
1949
|
-
var
|
|
1950
|
-
isNewRetailBCPos =
|
|
1945
|
+
var _ref22 = _mutantsUtil.platform || {},
|
|
1946
|
+
isNewRetailBCPos = _ref22.isNewRetailBCPos;
|
|
1951
1947
|
|
|
1952
1948
|
var _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(),
|
|
1953
1949
|
Differentiate = _enumController$getEn16.Differentiate;
|
|
@@ -2037,7 +2033,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2037
2033
|
}, {
|
|
2038
2034
|
key: 'setPaymodes',
|
|
2039
2035
|
value: function () {
|
|
2040
|
-
var
|
|
2036
|
+
var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(type, isIntegralExchange) {
|
|
2041
2037
|
var _this17 = this;
|
|
2042
2038
|
|
|
2043
2039
|
var _enumController$getEn18, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
|
|
@@ -2092,7 +2088,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2092
2088
|
}));
|
|
2093
2089
|
|
|
2094
2090
|
function setPaymodes(_x7, _x8) {
|
|
2095
|
-
return
|
|
2091
|
+
return _ref23.apply(this, arguments);
|
|
2096
2092
|
}
|
|
2097
2093
|
|
|
2098
2094
|
return setPaymodes;
|
|
@@ -2223,8 +2219,8 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2223
2219
|
return key == 'canusedbalancestorage';
|
|
2224
2220
|
});
|
|
2225
2221
|
|
|
2226
|
-
var
|
|
2227
|
-
isNewRetailBCPos =
|
|
2222
|
+
var _ref24 = _mutantsUtil.platform || {},
|
|
2223
|
+
isNewRetailBCPos = _ref24.isNewRetailBCPos;
|
|
2228
2224
|
|
|
2229
2225
|
(0, _mobx.runInAction)(function () {
|
|
2230
2226
|
_this21.cardNo = m.CardCode;
|