tplus-components-touch 3.27.19 → 3.27.23
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.
|
@@ -454,6 +454,7 @@ var SettlementStore = (_class = function () {
|
|
|
454
454
|
this.member = this.dto.Member; //stores.selectMemberStore.selectMemberInfo;
|
|
455
455
|
|
|
456
456
|
// this.paymode.bookMaxValue = 0;
|
|
457
|
+
this.paymode.isNotFullBook = false;
|
|
457
458
|
//预订按比例收取订金处理
|
|
458
459
|
var value = this.dto.TotalTaxAmount;
|
|
459
460
|
|
|
@@ -467,7 +468,10 @@ var SettlementStore = (_class = function () {
|
|
|
467
468
|
|
|
468
469
|
if (IdbusiType == 38 && PreSellOrBook == 'BOOK' && PercentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')) {
|
|
469
470
|
this.paymode.bookMaxValue = value;
|
|
471
|
+
this.paymode.isNotFullBook = true;
|
|
470
472
|
value = value * PercentageWhenBook / 100;
|
|
473
|
+
}
|
|
474
|
+
if (IdbusiType == 38 && PreSellOrBook == 'BOOK') {
|
|
471
475
|
(0, _mobx.runInAction)(function () {
|
|
472
476
|
_this3.dto.PrepaidAmount = value;
|
|
473
477
|
});
|
|
@@ -603,7 +607,7 @@ var SettlementStore = (_class = function () {
|
|
|
603
607
|
|
|
604
608
|
}, {
|
|
605
609
|
key: 'changeFocusAndAddPay',
|
|
606
|
-
value: function changeFocusAndAddPay(type) {
|
|
610
|
+
value: function changeFocusAndAddPay(type, bookType) {
|
|
607
611
|
var _this6 = this;
|
|
608
612
|
|
|
609
613
|
var _enumController$getEn5 = _mutantsUtil.enumController.getEnumOj(),
|
|
@@ -635,7 +639,7 @@ var SettlementStore = (_class = function () {
|
|
|
635
639
|
this.addPayDirectly(this.paymode.currentMode);
|
|
636
640
|
}
|
|
637
641
|
} else {
|
|
638
|
-
this.addPay(type);
|
|
642
|
+
this.addPay(type, bookType);
|
|
639
643
|
}
|
|
640
644
|
}
|
|
641
645
|
|
|
@@ -864,7 +868,8 @@ var SettlementStore = (_class = function () {
|
|
|
864
868
|
authCode: '',
|
|
865
869
|
steadCashIntegral: null,
|
|
866
870
|
errinfo: '',
|
|
867
|
-
maxamount: this.paymode.amount
|
|
871
|
+
maxamount: this.paymode.amount,
|
|
872
|
+
virtualPay: themode.virtualPay
|
|
868
873
|
});
|
|
869
874
|
if (type == PayStyle.hyczk) {
|
|
870
875
|
if (!mode.member.id || !mode.member.StorageCardNo) {
|
|
@@ -938,12 +943,12 @@ var SettlementStore = (_class = function () {
|
|
|
938
943
|
mode.value = shouldSetValue;
|
|
939
944
|
mode.value2 = (0, _utils.getFixedNumber)(mode.calDirection == "88" ? shouldSetValue / mode.exchangeRate : shouldSetValue * mode.exchangeRate);
|
|
940
945
|
mode.value3 = shouldSetValue;
|
|
941
|
-
this.paymode.calcReserved();
|
|
946
|
+
this.paymode.calcReserved('bookPay'); //参数multiPay代表复合结算
|
|
942
947
|
}
|
|
943
948
|
}
|
|
944
949
|
}, {
|
|
945
950
|
key: 'changeValue',
|
|
946
|
-
value: function changeValue(index, value, blur) {
|
|
951
|
+
value: function changeValue(index, value, blur, type) {
|
|
947
952
|
var mode = (0, _find3.default)(this.paymode.thePaymodes, { 'paymethodId': index });
|
|
948
953
|
var v = blur ? (0, _utils.getFixedNumber)(value) : isNaN(value) && value != '-' ? 0.00 : value;
|
|
949
954
|
if (mode) {
|
|
@@ -959,7 +964,7 @@ var SettlementStore = (_class = function () {
|
|
|
959
964
|
mode.value2 = v;
|
|
960
965
|
}
|
|
961
966
|
|
|
962
|
-
this.paymode.calcReserved();
|
|
967
|
+
this.paymode.calcReserved(type);
|
|
963
968
|
}
|
|
964
969
|
}
|
|
965
970
|
}, {
|
|
@@ -983,7 +988,7 @@ var SettlementStore = (_class = function () {
|
|
|
983
988
|
}
|
|
984
989
|
}, {
|
|
985
990
|
key: 'addPay',
|
|
986
|
-
value: function addPay(type) {
|
|
991
|
+
value: function addPay(type, bookType) {
|
|
987
992
|
var _enumController$getEn11 = _mutantsUtil.enumController.getEnumOj(),
|
|
988
993
|
PayStyle = _enumController$getEn11.PayStyle;
|
|
989
994
|
|
|
@@ -996,11 +1001,11 @@ var SettlementStore = (_class = function () {
|
|
|
996
1001
|
}
|
|
997
1002
|
// this.paymode.thePaymodes.push(this.genNewMode(type) );
|
|
998
1003
|
this.paymode.thePaymodes.splice(pos, 0, this.genNewMode(type, this.newStyle && type == PayStyle.hyczk));
|
|
999
|
-
this.paymode.calcReserved();
|
|
1004
|
+
this.paymode.calcReserved(bookType);
|
|
1000
1005
|
}
|
|
1001
1006
|
}, {
|
|
1002
1007
|
key: 'delPay',
|
|
1003
|
-
value: function delPay(index) {
|
|
1008
|
+
value: function delPay(index, bookType) {
|
|
1004
1009
|
var _enumController$getEn12 = _mutantsUtil.enumController.getEnumOj(),
|
|
1005
1010
|
PayStyle = _enumController$getEn12.PayStyle;
|
|
1006
1011
|
|
|
@@ -1008,7 +1013,7 @@ var SettlementStore = (_class = function () {
|
|
|
1008
1013
|
return mode.paymethodId === index;
|
|
1009
1014
|
});
|
|
1010
1015
|
this.paymode.currentFocus = -1;
|
|
1011
|
-
this.paymode.calcReserved();
|
|
1016
|
+
this.paymode.calcReserved(bookType);
|
|
1012
1017
|
}
|
|
1013
1018
|
}, {
|
|
1014
1019
|
key: 'commit',
|
|
@@ -1147,7 +1152,7 @@ var SettlementStore = (_class = function () {
|
|
|
1147
1152
|
var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
|
|
1148
1153
|
var _this11 = this;
|
|
1149
1154
|
|
|
1150
|
-
var _enumController$getEn14, PayStyle, _ref15, isNewRetailBCPos, IPMSG, RetailTypeEnum;
|
|
1155
|
+
var _enumController$getEn14, PayStyle, _ref15, isNewRetailBCPos, IPMSG, RetailTypeEnum, _getLoginInfo2, PreSellOrBook, PercentageWhenBook, _ref16, IdbusiType, DistributionMode, prepaidAmount;
|
|
1151
1156
|
|
|
1152
1157
|
return _regenerator2.default.wrap(function _callee3$(_context3) {
|
|
1153
1158
|
while (1) {
|
|
@@ -1267,7 +1272,7 @@ var SettlementStore = (_class = function () {
|
|
|
1267
1272
|
console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
|
|
1268
1273
|
|
|
1269
1274
|
if (!isNewRetailBCPos) {
|
|
1270
|
-
_context3.next =
|
|
1275
|
+
_context3.next = 23;
|
|
1271
1276
|
break;
|
|
1272
1277
|
}
|
|
1273
1278
|
|
|
@@ -1278,32 +1283,44 @@ var SettlementStore = (_class = function () {
|
|
|
1278
1283
|
IPMSG = JSON.parse(window.localStorage.IPMSG);
|
|
1279
1284
|
}
|
|
1280
1285
|
RetailTypeEnum = this.dto.IdbusiType == 36 ? "INTEGRAL_EXCHANGE" : "NORMAL";
|
|
1286
|
+
_getLoginInfo2 = this.getLoginInfo(), PreSellOrBook = _getLoginInfo2.PreSellOrBook, PercentageWhenBook = _getLoginInfo2.PercentageWhenBook;
|
|
1287
|
+
_ref16 = this.dto || {}, IdbusiType = _ref16.IdbusiType, DistributionMode = _ref16.DistributionMode;
|
|
1288
|
+
|
|
1289
|
+
if (IdbusiType == 38 && PreSellOrBook == 'BOOK' && PercentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')) {
|
|
1290
|
+
prepaidAmount = this.dto.RetailPaymentDetails.reduce(function (c, item) {
|
|
1291
|
+
return c + (item.Amount || 0);
|
|
1292
|
+
}, 0);
|
|
1293
|
+
|
|
1294
|
+
(0, _mobx.runInAction)(function () {
|
|
1295
|
+
_this11.dto.PrepaidAmount = prepaidAmount;
|
|
1296
|
+
});
|
|
1297
|
+
}
|
|
1281
1298
|
_context3.t1 = this.dto.IdbusiType == 37;
|
|
1282
1299
|
|
|
1283
1300
|
if (!_context3.t1) {
|
|
1284
|
-
_context3.next =
|
|
1301
|
+
_context3.next = 16;
|
|
1285
1302
|
break;
|
|
1286
1303
|
}
|
|
1287
1304
|
|
|
1288
|
-
_context3.next =
|
|
1305
|
+
_context3.next = 15;
|
|
1289
1306
|
return this.checkIntegralExchangeReturn(this.dto.RetailDetails[0].ReturnSourceId);
|
|
1290
1307
|
|
|
1291
|
-
case
|
|
1308
|
+
case 15:
|
|
1292
1309
|
_context3.t1 = _context3.sent;
|
|
1293
1310
|
|
|
1294
|
-
case
|
|
1311
|
+
case 16:
|
|
1295
1312
|
_context3.t0 = _context3.t1;
|
|
1296
1313
|
|
|
1297
1314
|
if (_context3.t0) {
|
|
1298
|
-
_context3.next =
|
|
1315
|
+
_context3.next = 19;
|
|
1299
1316
|
break;
|
|
1300
1317
|
}
|
|
1301
1318
|
|
|
1302
1319
|
_context3.t0 = this.dto.IdbusiType != 37;
|
|
1303
1320
|
|
|
1304
|
-
case
|
|
1321
|
+
case 19:
|
|
1305
1322
|
if (!_context3.t0) {
|
|
1306
|
-
_context3.next =
|
|
1323
|
+
_context3.next = 21;
|
|
1307
1324
|
break;
|
|
1308
1325
|
}
|
|
1309
1326
|
|
|
@@ -1313,17 +1330,17 @@ var SettlementStore = (_class = function () {
|
|
|
1313
1330
|
_this11.billID = resp.ID;
|
|
1314
1331
|
}));
|
|
1315
1332
|
|
|
1316
|
-
case
|
|
1317
|
-
_context3.next =
|
|
1333
|
+
case 21:
|
|
1334
|
+
_context3.next = 24;
|
|
1318
1335
|
break;
|
|
1319
1336
|
|
|
1320
|
-
case
|
|
1337
|
+
case 23:
|
|
1321
1338
|
return _context3.abrupt('return', (0, _tplusApi.tApi)({ dto: this.dto.cut() }, 'chanjet.RE.newRetail.Settle', false, false, { timeout_skip: true }).then(function (resp) {
|
|
1322
1339
|
_this11.setDtoID(resp.ID);
|
|
1323
1340
|
_this11.billID = resp.ID;
|
|
1324
1341
|
}));
|
|
1325
1342
|
|
|
1326
|
-
case
|
|
1343
|
+
case 24:
|
|
1327
1344
|
case 'end':
|
|
1328
1345
|
return _context3.stop();
|
|
1329
1346
|
}
|
|
@@ -1345,7 +1362,7 @@ var SettlementStore = (_class = function () {
|
|
|
1345
1362
|
}, {
|
|
1346
1363
|
key: 'querySettleResult',
|
|
1347
1364
|
value: function () {
|
|
1348
|
-
var
|
|
1365
|
+
var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
|
|
1349
1366
|
return _regenerator2.default.wrap(function _callee4$(_context4) {
|
|
1350
1367
|
while (1) {
|
|
1351
1368
|
switch (_context4.prev = _context4.next) {
|
|
@@ -1373,7 +1390,7 @@ var SettlementStore = (_class = function () {
|
|
|
1373
1390
|
}));
|
|
1374
1391
|
|
|
1375
1392
|
function querySettleResult() {
|
|
1376
|
-
return
|
|
1393
|
+
return _ref17.apply(this, arguments);
|
|
1377
1394
|
}
|
|
1378
1395
|
|
|
1379
1396
|
return querySettleResult;
|
|
@@ -1399,14 +1416,14 @@ var SettlementStore = (_class = function () {
|
|
|
1399
1416
|
}, {
|
|
1400
1417
|
key: 'validePwd',
|
|
1401
1418
|
value: function () {
|
|
1402
|
-
var
|
|
1403
|
-
var
|
|
1419
|
+
var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
|
|
1420
|
+
var _ref19, isNewRetailBCPos, cook1, cook2, message, memberId, result, count, _result;
|
|
1404
1421
|
|
|
1405
1422
|
return _regenerator2.default.wrap(function _callee5$(_context5) {
|
|
1406
1423
|
while (1) {
|
|
1407
1424
|
switch (_context5.prev = _context5.next) {
|
|
1408
1425
|
case 0:
|
|
1409
|
-
|
|
1426
|
+
_ref19 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref19.isNewRetailBCPos;
|
|
1410
1427
|
_context5.prev = 1;
|
|
1411
1428
|
|
|
1412
1429
|
if (!isNewRetailBCPos) {
|
|
@@ -1491,7 +1508,7 @@ var SettlementStore = (_class = function () {
|
|
|
1491
1508
|
}));
|
|
1492
1509
|
|
|
1493
1510
|
function validePwd(_x3) {
|
|
1494
|
-
return
|
|
1511
|
+
return _ref18.apply(this, arguments);
|
|
1495
1512
|
}
|
|
1496
1513
|
|
|
1497
1514
|
return validePwd;
|
|
@@ -1530,14 +1547,14 @@ var SettlementStore = (_class = function () {
|
|
|
1530
1547
|
var _this13 = this;
|
|
1531
1548
|
|
|
1532
1549
|
return function () {
|
|
1533
|
-
var
|
|
1534
|
-
var
|
|
1550
|
+
var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
|
|
1551
|
+
var _getLoginInfo3, IdStore, StoreCode, resp;
|
|
1535
1552
|
|
|
1536
1553
|
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
|
1537
1554
|
while (1) {
|
|
1538
1555
|
switch (_context6.prev = _context6.next) {
|
|
1539
1556
|
case 0:
|
|
1540
|
-
|
|
1557
|
+
_getLoginInfo3 = _this13.getLoginInfo(), IdStore = _getLoginInfo3.IdStore, StoreCode = _getLoginInfo3.StoreCode;
|
|
1541
1558
|
_context6.next = 3;
|
|
1542
1559
|
return (0, _tplusApi.tApi)({ Idmember: _this13.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
|
|
1543
1560
|
|
|
@@ -1557,13 +1574,14 @@ var SettlementStore = (_class = function () {
|
|
|
1557
1574
|
}));
|
|
1558
1575
|
|
|
1559
1576
|
return function (_x4) {
|
|
1560
|
-
return
|
|
1577
|
+
return _ref20.apply(this, arguments);
|
|
1561
1578
|
};
|
|
1562
1579
|
}();
|
|
1563
1580
|
}
|
|
1564
1581
|
}), _applyDecoratedDescriptor(_class.prototype, 'addDjq', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'addDjq'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeFocusOnly', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeFocusOnly'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeClickFocusOnly', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeClickFocusOnly'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeValue'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'addPayDirectly', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'addPayDirectly'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'addPay', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'addPay'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'delPay', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'delPay'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'setDtoID', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'setDtoID'), _class.prototype)), _class);
|
|
1565
1582
|
exports.default = SettlementStore;
|
|
1566
1583
|
var PayMode = exports.PayMode = (_class3 = function () {
|
|
1584
|
+
//应收
|
|
1567
1585
|
function PayMode() {
|
|
1568
1586
|
// this.amount=getFixedNumber(amount);
|
|
1569
1587
|
// this.calcReserved();
|
|
@@ -1585,6 +1603,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1585
1603
|
_initDefineProp(this, 'thePaymodes', _descriptor7, this);
|
|
1586
1604
|
|
|
1587
1605
|
this.bookMaxValue = 0;
|
|
1606
|
+
this.isNotFullBook = false;
|
|
1588
1607
|
this.currentMode = null;
|
|
1589
1608
|
this.checkList = [];
|
|
1590
1609
|
this.settle = {
|
|
@@ -1597,9 +1616,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1597
1616
|
_initDefineProp(this, 'setCouponNum', _descriptor9, this);
|
|
1598
1617
|
|
|
1599
1618
|
_initDefineProp(this, 'addDjqs', _descriptor10, this);
|
|
1600
|
-
}
|
|
1619
|
+
} //非全款预订
|
|
1601
1620
|
// @observable store = null;
|
|
1602
|
-
//应收
|
|
1603
1621
|
|
|
1604
1622
|
|
|
1605
1623
|
(0, _createClass3.default)(PayMode, [{
|
|
@@ -1625,13 +1643,25 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1625
1643
|
}
|
|
1626
1644
|
}, {
|
|
1627
1645
|
key: 'calcReserved',
|
|
1628
|
-
value: function calcReserved() {
|
|
1646
|
+
value: function calcReserved(type) {
|
|
1629
1647
|
var sum = 0;
|
|
1630
1648
|
(0, _each3.default)(this.thePaymodes, function (mode) {
|
|
1631
1649
|
sum = Math.Add(sum, mode.value == "" ? 0 : mode.value);
|
|
1632
1650
|
});
|
|
1633
1651
|
this.received = (0, _utils.getFixedNumber)(sum);
|
|
1634
|
-
|
|
1652
|
+
if (type === 'bookPay' && this.isNotFullBook) {
|
|
1653
|
+
if (this.amount <= sum && sum <= this.bookMaxValue) {
|
|
1654
|
+
this.receivable = (0, _utils.getFixedNumber)(0);
|
|
1655
|
+
}
|
|
1656
|
+
if (sum < this.amount) {
|
|
1657
|
+
this.receivable = (0, _utils.getFixedNumber)(this.amount - sum);
|
|
1658
|
+
}
|
|
1659
|
+
if (sum > this.bookMaxValue) {
|
|
1660
|
+
this.receivable = (0, _utils.getFixedNumber)(this.bookMaxValue - sum);
|
|
1661
|
+
}
|
|
1662
|
+
} else {
|
|
1663
|
+
this.receivable = (0, _utils.getFixedNumber)(this.amount - sum);
|
|
1664
|
+
}
|
|
1635
1665
|
}
|
|
1636
1666
|
}, {
|
|
1637
1667
|
key: 'calcDjqCheckValue',
|
|
@@ -1650,8 +1680,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1650
1680
|
this.checkList = [];
|
|
1651
1681
|
}
|
|
1652
1682
|
|
|
1653
|
-
var
|
|
1654
|
-
isNewRetailBCPos =
|
|
1683
|
+
var _ref21 = _mutantsUtil.platform || {},
|
|
1684
|
+
isNewRetailBCPos = _ref21.isNewRetailBCPos;
|
|
1655
1685
|
|
|
1656
1686
|
var _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(),
|
|
1657
1687
|
PayStyle = _enumController$getEn15.PayStyle,
|
|
@@ -1761,18 +1791,18 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1761
1791
|
}
|
|
1762
1792
|
});
|
|
1763
1793
|
|
|
1764
|
-
var
|
|
1765
|
-
couponCode =
|
|
1766
|
-
name =
|
|
1767
|
-
tieredAmountResult =
|
|
1768
|
-
fromDate =
|
|
1769
|
-
dateMount =
|
|
1770
|
-
promoMethodEnum =
|
|
1771
|
-
discountPct =
|
|
1772
|
-
nominalAmount =
|
|
1773
|
-
promoId =
|
|
1774
|
-
id =
|
|
1775
|
-
doorsill =
|
|
1794
|
+
var _ref22 = element || {},
|
|
1795
|
+
couponCode = _ref22.couponCode,
|
|
1796
|
+
name = _ref22.name,
|
|
1797
|
+
tieredAmountResult = _ref22.tieredAmountResult,
|
|
1798
|
+
fromDate = _ref22.fromDate,
|
|
1799
|
+
dateMount = _ref22.dateMount,
|
|
1800
|
+
promoMethodEnum = _ref22.promoMethodEnum,
|
|
1801
|
+
discountPct = _ref22.discountPct,
|
|
1802
|
+
nominalAmount = _ref22.nominalAmount,
|
|
1803
|
+
promoId = _ref22.promoId,
|
|
1804
|
+
id = _ref22.id,
|
|
1805
|
+
doorsill = _ref22.doorsill;
|
|
1776
1806
|
|
|
1777
1807
|
var condValue = tieredAmountResult.condValue,
|
|
1778
1808
|
promoDiscount = tieredAmountResult.promoDiscount,
|
|
@@ -1816,8 +1846,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1816
1846
|
}, {
|
|
1817
1847
|
key: 'calcDjqValue',
|
|
1818
1848
|
value: function calcDjqValue(q1) {
|
|
1819
|
-
var
|
|
1820
|
-
isNewRetailBCPos =
|
|
1849
|
+
var _ref23 = _mutantsUtil.platform || {},
|
|
1850
|
+
isNewRetailBCPos = _ref23.isNewRetailBCPos;
|
|
1821
1851
|
|
|
1822
1852
|
var _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(),
|
|
1823
1853
|
Differentiate = _enumController$getEn16.Differentiate;
|
|
@@ -1907,7 +1937,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1907
1937
|
}, {
|
|
1908
1938
|
key: 'setPaymodes',
|
|
1909
1939
|
value: function () {
|
|
1910
|
-
var
|
|
1940
|
+
var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
|
|
1911
1941
|
var _this15 = this;
|
|
1912
1942
|
|
|
1913
1943
|
var _enumController$getEn18, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
|
|
@@ -1945,7 +1975,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1945
1975
|
idBankAccount: mode.IdBankAccount,
|
|
1946
1976
|
exchangeRate: mode.Currency ? mode.Currency.ExchangeRate : 1,
|
|
1947
1977
|
idCurrency: mode.Currency ? mode.Currency.ID : -1,
|
|
1948
|
-
calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88"
|
|
1978
|
+
calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88",
|
|
1979
|
+
virtualPay: mode.VirtualPay
|
|
1949
1980
|
});
|
|
1950
1981
|
});
|
|
1951
1982
|
_this15.paymodes = paymodes;
|
|
@@ -1962,7 +1993,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1962
1993
|
}));
|
|
1963
1994
|
|
|
1964
1995
|
function setPaymodes(_x5, _x6) {
|
|
1965
|
-
return
|
|
1996
|
+
return _ref24.apply(this, arguments);
|
|
1966
1997
|
}
|
|
1967
1998
|
|
|
1968
1999
|
return setPaymodes;
|
|
@@ -2083,8 +2114,8 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2083
2114
|
return key == 'canusedbalancestorage';
|
|
2084
2115
|
});
|
|
2085
2116
|
|
|
2086
|
-
var
|
|
2087
|
-
isNewRetailBCPos =
|
|
2117
|
+
var _ref25 = _mutantsUtil.platform || {},
|
|
2118
|
+
isNewRetailBCPos = _ref25.isNewRetailBCPos;
|
|
2088
2119
|
|
|
2089
2120
|
m.StorageCardNo && (this.StorageCardNo = m.StorageCardNo);
|
|
2090
2121
|
m.MeStorageCardId && (this.MeStorageCardId = m.MeStorageCardId);
|