tplus-components-touch 3.27.39 → 3.27.40
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/settlement/settlement.js +29 -18
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlementStore.js +94 -67
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/settlement/utils.js +2 -2
- package/dist/components/settlement/utils.js.map +1 -1
- package/package.json +1 -1
|
@@ -161,7 +161,7 @@ function _initializerWarningHelper(descriptor, context) {
|
|
|
161
161
|
var t = _mutantsMicrofx.i18n.getFixedT(null, 'newretail');
|
|
162
162
|
|
|
163
163
|
var SettlementStore = (_class = function () {
|
|
164
|
-
//
|
|
164
|
+
// 预订是否全款,在点击确认支付时计算订金和商品金额计算得出
|
|
165
165
|
function SettlementStore() {
|
|
166
166
|
var _this2 = this;
|
|
167
167
|
|
|
@@ -174,6 +174,7 @@ var SettlementStore = (_class = function () {
|
|
|
174
174
|
this.bquick = false;
|
|
175
175
|
this.boriginReturn = false;
|
|
176
176
|
this.newStyle = true;
|
|
177
|
+
this.isFull = false;
|
|
177
178
|
|
|
178
179
|
_initDefineProp(this, 'queryPwd', _descriptor, this);
|
|
179
180
|
|
|
@@ -499,7 +500,8 @@ var SettlementStore = (_class = function () {
|
|
|
499
500
|
var params = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('cloudPrintArguments');
|
|
500
501
|
if (params) this.cloudPrintArguments = params;
|
|
501
502
|
this.newStyle = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('voucherDefaultPosMode') == 'voucher';
|
|
502
|
-
}
|
|
503
|
+
} //type==2
|
|
504
|
+
|
|
503
505
|
|
|
504
506
|
(0, _createClass3.default)(SettlementStore, [{
|
|
505
507
|
key: 'initPaymodes',
|
|
@@ -963,9 +965,18 @@ var SettlementStore = (_class = function () {
|
|
|
963
965
|
//积分抵现不包含运费
|
|
964
966
|
var BuyerPayFreight = this.dto.BuyerPayFreight;
|
|
965
967
|
var DistributionMode = this.dto.DistributionMode;
|
|
968
|
+
var IdbusiType = this.dto.IdbusiType;
|
|
969
|
+
|
|
970
|
+
var _getLoginInfo2 = this.getLoginInfo(),
|
|
971
|
+
PreSellOrBook = _getLoginInfo2.PreSellOrBook,
|
|
972
|
+
PercentageWhenBook = _getLoginInfo2.PercentageWhenBook;
|
|
973
|
+
|
|
966
974
|
var value = 0;
|
|
967
975
|
if ((DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && BuyerPayFreight && BuyerPayFreight > 0) {
|
|
968
976
|
value = (0, _utils.getFixedNumber)(Math.Minus(this.paymode.amount, BuyerPayFreight));
|
|
977
|
+
} else if (IdbusiType == 38 && PreSellOrBook == 'BOOK' && PercentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')) {
|
|
978
|
+
//预订场景下:现场提货,且订金比例非100%时,积分抵现按全款计算(因为只有全款才能使用积分抵现)
|
|
979
|
+
value = this.paymode.bookMaxValue;
|
|
969
980
|
} else {
|
|
970
981
|
value = this.paymode.amount;
|
|
971
982
|
}
|
|
@@ -1067,7 +1078,7 @@ var SettlementStore = (_class = function () {
|
|
|
1067
1078
|
var BuyerPayFreight = _this9.dto.BuyerPayFreight;
|
|
1068
1079
|
var DistributionMode = _this9.dto.DistributionMode;
|
|
1069
1080
|
var value = 0;
|
|
1070
|
-
if ((DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && BuyerPayFreight && BuyerPayFreight > 0 && type
|
|
1081
|
+
if ((DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && BuyerPayFreight && BuyerPayFreight > 0 && type == PayStyle.hyczk) {
|
|
1071
1082
|
value = (0, _utils.getFixedNumber)(parseFloat(_this9.context.viewModel.getViewItem('Voucher').availableAmount) + parseFloat(BuyerPayFreight));
|
|
1072
1083
|
} else {
|
|
1073
1084
|
value = _this9.context.viewModel.getViewItem('Voucher').availableAmount;
|
|
@@ -1457,7 +1468,7 @@ var SettlementStore = (_class = function () {
|
|
|
1457
1468
|
var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6() {
|
|
1458
1469
|
var _this12 = this;
|
|
1459
1470
|
|
|
1460
|
-
var _enumController$getEn16, PayStyle, TradeType, IPMSG, RetailTypeEnum, dtoParams, payList, payment, tradeType, ret,
|
|
1471
|
+
var _enumController$getEn16, PayStyle, TradeType, IPMSG, RetailTypeEnum, _getLoginInfo3, PreSellOrBook, PercentageWhenBook, _ref15, IdbusiType, DistributionMode, prepaidAmount, fullPayment, dtoParams, payList, payment, tradeType, ret, _ref16, type, data, msg, code;
|
|
1461
1472
|
|
|
1462
1473
|
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
|
1463
1474
|
while (1) {
|
|
@@ -1556,32 +1567,48 @@ var SettlementStore = (_class = function () {
|
|
|
1556
1567
|
IPMSG = JSON.parse(window.localStorage.IPMSG);
|
|
1557
1568
|
}
|
|
1558
1569
|
RetailTypeEnum = this.dto.IdbusiType == 36 ? "INTEGRAL_EXCHANGE" : "NORMAL";
|
|
1570
|
+
_getLoginInfo3 = this.getLoginInfo(), PreSellOrBook = _getLoginInfo3.PreSellOrBook, PercentageWhenBook = _getLoginInfo3.PercentageWhenBook;
|
|
1571
|
+
_ref15 = this.dto || {}, IdbusiType = _ref15.IdbusiType, DistributionMode = _ref15.DistributionMode;
|
|
1572
|
+
|
|
1573
|
+
if (IdbusiType == 38 && PreSellOrBook == 'BOOK' && PercentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')) {
|
|
1574
|
+
prepaidAmount = (0, _utils.getFixedNumber)(this.dto.RetailPaymentDetails.reduce(function (c, item) {
|
|
1575
|
+
return c + (item.Amount || 0);
|
|
1576
|
+
}, 0));
|
|
1577
|
+
fullPayment = (0, _utils.getFixedNumber)(this.dto.RetailDetails.reduce(function (c, item) {
|
|
1578
|
+
return c + (item.TaxAmount || 0);
|
|
1579
|
+
}, 0));
|
|
1580
|
+
|
|
1581
|
+
this.isFull = fullPayment == prepaidAmount; // 是否全款
|
|
1582
|
+
(0, _mobx.runInAction)(function () {
|
|
1583
|
+
_this12.dto.PrepaidAmount = prepaidAmount;
|
|
1584
|
+
});
|
|
1585
|
+
}
|
|
1559
1586
|
_context6.t1 = this.dto.IdbusiType == 37;
|
|
1560
1587
|
|
|
1561
1588
|
if (!_context6.t1) {
|
|
1562
|
-
_context6.next =
|
|
1589
|
+
_context6.next = 14;
|
|
1563
1590
|
break;
|
|
1564
1591
|
}
|
|
1565
1592
|
|
|
1566
|
-
_context6.next =
|
|
1593
|
+
_context6.next = 13;
|
|
1567
1594
|
return this.checkIntegralExchangeReturn(this.dto.RetailDetails[0].ReturnSourceId);
|
|
1568
1595
|
|
|
1569
|
-
case
|
|
1596
|
+
case 13:
|
|
1570
1597
|
_context6.t1 = _context6.sent;
|
|
1571
1598
|
|
|
1572
|
-
case
|
|
1599
|
+
case 14:
|
|
1573
1600
|
_context6.t0 = _context6.t1;
|
|
1574
1601
|
|
|
1575
1602
|
if (_context6.t0) {
|
|
1576
|
-
_context6.next =
|
|
1603
|
+
_context6.next = 17;
|
|
1577
1604
|
break;
|
|
1578
1605
|
}
|
|
1579
1606
|
|
|
1580
1607
|
_context6.t0 = this.dto.IdbusiType != 37;
|
|
1581
1608
|
|
|
1582
|
-
case
|
|
1609
|
+
case 17:
|
|
1583
1610
|
if (!_context6.t0) {
|
|
1584
|
-
_context6.next =
|
|
1611
|
+
_context6.next = 36;
|
|
1585
1612
|
break;
|
|
1586
1613
|
}
|
|
1587
1614
|
|
|
@@ -1593,45 +1620,45 @@ var SettlementStore = (_class = function () {
|
|
|
1593
1620
|
});
|
|
1594
1621
|
|
|
1595
1622
|
if (!(payList && payList.length > 0)) {
|
|
1596
|
-
_context6.next =
|
|
1623
|
+
_context6.next = 33;
|
|
1597
1624
|
break;
|
|
1598
1625
|
}
|
|
1599
1626
|
|
|
1600
1627
|
payment = payList[0];
|
|
1601
1628
|
tradeType = payment && payment.Amount > 0 ? TradeType.PAY : TradeType.REFUND;
|
|
1602
|
-
_context6.next =
|
|
1629
|
+
_context6.next = 25;
|
|
1603
1630
|
return this.thirdPay(1, payment, tradeType, dtoParams);
|
|
1604
1631
|
|
|
1605
|
-
case
|
|
1632
|
+
case 25:
|
|
1606
1633
|
ret = _context6.sent;
|
|
1607
|
-
|
|
1634
|
+
_ref16 = ret || {}, type = _ref16.type, data = _ref16.data, msg = _ref16.msg, code = _ref16.code;
|
|
1608
1635
|
|
|
1609
1636
|
if (!(type === true)) {
|
|
1610
|
-
_context6.next =
|
|
1637
|
+
_context6.next = 31;
|
|
1611
1638
|
break;
|
|
1612
1639
|
}
|
|
1613
1640
|
|
|
1614
1641
|
dtoParams = data;
|
|
1615
|
-
_context6.next =
|
|
1642
|
+
_context6.next = 33;
|
|
1616
1643
|
break;
|
|
1617
1644
|
|
|
1618
|
-
case
|
|
1645
|
+
case 31:
|
|
1619
1646
|
_message2.default.warn('\u5237\u5361\u652F\u4ED8\u5931\u8D25,\u9519\u8BEF\u7801:' + code);
|
|
1620
1647
|
return _context6.abrupt('return', false);
|
|
1621
1648
|
|
|
1622
|
-
case
|
|
1649
|
+
case 33:
|
|
1623
1650
|
this.dtoParams = dtoParams;
|
|
1624
1651
|
console.log('结算信息:', dtoParams);
|
|
1625
1652
|
return _context6.abrupt('return', (0, _tplusApi.ccApi)({ dto: dtoParams, cip: IPMSG.query || "" }, '/retail/RetailPos/settle', false, false, { method: 'post', timeout_skip: true }).then(function (resp) {
|
|
1626
|
-
var
|
|
1627
|
-
ID =
|
|
1653
|
+
var _ref17 = resp || {},
|
|
1654
|
+
ID = _ref17.ID;
|
|
1628
1655
|
|
|
1629
1656
|
_this12.setDtoID(ID);
|
|
1630
1657
|
_this12.billID = ID;
|
|
1631
1658
|
_this12.paymode.checkList = [];
|
|
1632
1659
|
}));
|
|
1633
1660
|
|
|
1634
|
-
case
|
|
1661
|
+
case 36:
|
|
1635
1662
|
case 'end':
|
|
1636
1663
|
return _context6.stop();
|
|
1637
1664
|
}
|
|
@@ -1668,8 +1695,8 @@ var SettlementStore = (_class = function () {
|
|
|
1668
1695
|
}, {
|
|
1669
1696
|
key: 'thirdPay',
|
|
1670
1697
|
value: function () {
|
|
1671
|
-
var
|
|
1672
|
-
var cto, params, ret,
|
|
1698
|
+
var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(vType, payment, trade, dto) {
|
|
1699
|
+
var cto, params, ret, _ref19, Code, _Message, Result, _ref20, ThirdPaymentReturnInfo;
|
|
1673
1700
|
|
|
1674
1701
|
return _regenerator2.default.wrap(function _callee7$(_context7) {
|
|
1675
1702
|
while (1) {
|
|
@@ -1692,7 +1719,7 @@ var SettlementStore = (_class = function () {
|
|
|
1692
1719
|
|
|
1693
1720
|
console.log('刷卡返回信息:', ret);
|
|
1694
1721
|
ret = JSON.parse(ret);
|
|
1695
|
-
|
|
1722
|
+
_ref19 = ret || {}, Code = _ref19.Code, _Message = _ref19.Message, Result = _ref19.Result;
|
|
1696
1723
|
|
|
1697
1724
|
if (!(Code > 0)) {
|
|
1698
1725
|
_context7.next = 14;
|
|
@@ -1707,7 +1734,7 @@ var SettlementStore = (_class = function () {
|
|
|
1707
1734
|
break;
|
|
1708
1735
|
}
|
|
1709
1736
|
|
|
1710
|
-
|
|
1737
|
+
_ref20 = Result || {}, ThirdPaymentReturnInfo = _ref20.ThirdPaymentReturnInfo;
|
|
1711
1738
|
|
|
1712
1739
|
if (vType == 1) {
|
|
1713
1740
|
dto.RetailPaymentDetails.forEach(function (v) {
|
|
@@ -1750,7 +1777,7 @@ var SettlementStore = (_class = function () {
|
|
|
1750
1777
|
}));
|
|
1751
1778
|
|
|
1752
1779
|
function thirdPay(_x4, _x5, _x6, _x7) {
|
|
1753
|
-
return
|
|
1780
|
+
return _ref18.apply(this, arguments);
|
|
1754
1781
|
}
|
|
1755
1782
|
|
|
1756
1783
|
return thirdPay;
|
|
@@ -1761,7 +1788,7 @@ var SettlementStore = (_class = function () {
|
|
|
1761
1788
|
}, {
|
|
1762
1789
|
key: 'thirdPayRefund',
|
|
1763
1790
|
value: function () {
|
|
1764
|
-
var
|
|
1791
|
+
var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(type) {
|
|
1765
1792
|
var _this13 = this;
|
|
1766
1793
|
|
|
1767
1794
|
var dto, pay, payment, _enumController$getEn17, TradeType;
|
|
@@ -1783,7 +1810,7 @@ var SettlementStore = (_class = function () {
|
|
|
1783
1810
|
_enumController$getEn17 = _mutantsUtil.enumController.getEnumOj(), TradeType = _enumController$getEn17.TradeType;
|
|
1784
1811
|
|
|
1785
1812
|
setTimeout((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
|
|
1786
|
-
var ret,
|
|
1813
|
+
var ret, _ref23, msg;
|
|
1787
1814
|
|
|
1788
1815
|
return _regenerator2.default.wrap(function _callee8$(_context8) {
|
|
1789
1816
|
while (1) {
|
|
@@ -1794,7 +1821,7 @@ var SettlementStore = (_class = function () {
|
|
|
1794
1821
|
|
|
1795
1822
|
case 2:
|
|
1796
1823
|
ret = _context8.sent;
|
|
1797
|
-
|
|
1824
|
+
_ref23 = ret || {}, msg = _ref23.msg;
|
|
1798
1825
|
|
|
1799
1826
|
console.log('\u5237\u5361\u652F\u4ED8\u9000\u6B3E:' + msg);
|
|
1800
1827
|
|
|
@@ -1816,7 +1843,7 @@ var SettlementStore = (_class = function () {
|
|
|
1816
1843
|
}));
|
|
1817
1844
|
|
|
1818
1845
|
function thirdPayRefund(_x8) {
|
|
1819
|
-
return
|
|
1846
|
+
return _ref21.apply(this, arguments);
|
|
1820
1847
|
}
|
|
1821
1848
|
|
|
1822
1849
|
return thirdPayRefund;
|
|
@@ -1829,7 +1856,7 @@ var SettlementStore = (_class = function () {
|
|
|
1829
1856
|
}, {
|
|
1830
1857
|
key: 'querySettleResult',
|
|
1831
1858
|
value: function () {
|
|
1832
|
-
var
|
|
1859
|
+
var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10() {
|
|
1833
1860
|
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
|
1834
1861
|
while (1) {
|
|
1835
1862
|
switch (_context10.prev = _context10.next) {
|
|
@@ -1857,7 +1884,7 @@ var SettlementStore = (_class = function () {
|
|
|
1857
1884
|
}));
|
|
1858
1885
|
|
|
1859
1886
|
function querySettleResult() {
|
|
1860
|
-
return
|
|
1887
|
+
return _ref24.apply(this, arguments);
|
|
1861
1888
|
}
|
|
1862
1889
|
|
|
1863
1890
|
return querySettleResult;
|
|
@@ -1883,14 +1910,14 @@ var SettlementStore = (_class = function () {
|
|
|
1883
1910
|
}, {
|
|
1884
1911
|
key: 'validePwd',
|
|
1885
1912
|
value: function () {
|
|
1886
|
-
var
|
|
1887
|
-
var
|
|
1913
|
+
var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(value) {
|
|
1914
|
+
var _ref26, isNewRetailBCPos, cook1, cook2, message, memberStorageId, _paymode$currentMode, cardTypeEnum, memberId, meStorageCardId, cardStatusEnum, result, count, _result;
|
|
1888
1915
|
|
|
1889
1916
|
return _regenerator2.default.wrap(function _callee11$(_context11) {
|
|
1890
1917
|
while (1) {
|
|
1891
1918
|
switch (_context11.prev = _context11.next) {
|
|
1892
1919
|
case 0:
|
|
1893
|
-
|
|
1920
|
+
_ref26 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref26.isNewRetailBCPos;
|
|
1894
1921
|
_context11.prev = 1;
|
|
1895
1922
|
|
|
1896
1923
|
if (!isNewRetailBCPos) {
|
|
@@ -2007,7 +2034,7 @@ var SettlementStore = (_class = function () {
|
|
|
2007
2034
|
}));
|
|
2008
2035
|
|
|
2009
2036
|
function validePwd(_x9) {
|
|
2010
|
-
return
|
|
2037
|
+
return _ref25.apply(this, arguments);
|
|
2011
2038
|
}
|
|
2012
2039
|
|
|
2013
2040
|
return validePwd;
|
|
@@ -2046,14 +2073,14 @@ var SettlementStore = (_class = function () {
|
|
|
2046
2073
|
var _this15 = this;
|
|
2047
2074
|
|
|
2048
2075
|
return function () {
|
|
2049
|
-
var
|
|
2050
|
-
var
|
|
2076
|
+
var _ref27 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(_this) {
|
|
2077
|
+
var _getLoginInfo4, IdStore, StoreCode, resp;
|
|
2051
2078
|
|
|
2052
2079
|
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
|
2053
2080
|
while (1) {
|
|
2054
2081
|
switch (_context12.prev = _context12.next) {
|
|
2055
2082
|
case 0:
|
|
2056
|
-
|
|
2083
|
+
_getLoginInfo4 = _this15.getLoginInfo(), IdStore = _getLoginInfo4.IdStore, StoreCode = _getLoginInfo4.StoreCode;
|
|
2057
2084
|
_context12.next = 3;
|
|
2058
2085
|
return (0, _tplusApi.tApi)({ Idmember: _this15.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
|
|
2059
2086
|
|
|
@@ -2073,7 +2100,7 @@ var SettlementStore = (_class = function () {
|
|
|
2073
2100
|
}));
|
|
2074
2101
|
|
|
2075
2102
|
return function (_x10) {
|
|
2076
|
-
return
|
|
2103
|
+
return _ref27.apply(this, arguments);
|
|
2077
2104
|
};
|
|
2078
2105
|
}();
|
|
2079
2106
|
}
|
|
@@ -2083,7 +2110,7 @@ var SettlementStore = (_class = function () {
|
|
|
2083
2110
|
var _this16 = this;
|
|
2084
2111
|
|
|
2085
2112
|
return function () {
|
|
2086
|
-
var
|
|
2113
|
+
var _ref28 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(memberId) {
|
|
2087
2114
|
var result;
|
|
2088
2115
|
return _regenerator2.default.wrap(function _callee13$(_context13) {
|
|
2089
2116
|
while (1) {
|
|
@@ -2138,7 +2165,7 @@ var SettlementStore = (_class = function () {
|
|
|
2138
2165
|
}));
|
|
2139
2166
|
|
|
2140
2167
|
return function (_x11) {
|
|
2141
|
-
return
|
|
2168
|
+
return _ref28.apply(this, arguments);
|
|
2142
2169
|
};
|
|
2143
2170
|
}();
|
|
2144
2171
|
}
|
|
@@ -2173,7 +2200,7 @@ var SettlementStore = (_class = function () {
|
|
|
2173
2200
|
}), _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);
|
|
2174
2201
|
exports.default = SettlementStore;
|
|
2175
2202
|
var PayMode = exports.PayMode = (_class3 = function () {
|
|
2176
|
-
|
|
2203
|
+
//预订场景下,现场提货,且选项设置订金比例非100% or 取货最大补款数大于0时 为 true
|
|
2177
2204
|
function PayMode() {
|
|
2178
2205
|
// this.amount=getFixedNumber(amount);
|
|
2179
2206
|
// this.calcReserved();
|
|
@@ -2216,7 +2243,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2216
2243
|
_initDefineProp(this, 'addDjqs', _descriptor14, this);
|
|
2217
2244
|
}
|
|
2218
2245
|
// @observable store = null;
|
|
2219
|
-
|
|
2246
|
+
//只是预订场景下,现场提货,且选项设置订金比例非100%时 为 true
|
|
2220
2247
|
//应收
|
|
2221
2248
|
|
|
2222
2249
|
|
|
@@ -2300,8 +2327,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2300
2327
|
this.checkList = [];
|
|
2301
2328
|
}
|
|
2302
2329
|
|
|
2303
|
-
var
|
|
2304
|
-
isNewRetailBCPos =
|
|
2330
|
+
var _ref30 = _mutantsUtil.platform || {},
|
|
2331
|
+
isNewRetailBCPos = _ref30.isNewRetailBCPos;
|
|
2305
2332
|
|
|
2306
2333
|
var _enumController$getEn18 = _mutantsUtil.enumController.getEnumOj(),
|
|
2307
2334
|
PayStyle = _enumController$getEn18.PayStyle,
|
|
@@ -2411,18 +2438,18 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2411
2438
|
}
|
|
2412
2439
|
});
|
|
2413
2440
|
|
|
2414
|
-
var
|
|
2415
|
-
couponCode =
|
|
2416
|
-
name =
|
|
2417
|
-
tieredAmountResult =
|
|
2418
|
-
fromDate =
|
|
2419
|
-
dateMount =
|
|
2420
|
-
promoMethodEnum =
|
|
2421
|
-
discountPct =
|
|
2422
|
-
nominalAmount =
|
|
2423
|
-
promoId =
|
|
2424
|
-
id =
|
|
2425
|
-
doorsill =
|
|
2441
|
+
var _ref31 = element || {},
|
|
2442
|
+
couponCode = _ref31.couponCode,
|
|
2443
|
+
name = _ref31.name,
|
|
2444
|
+
tieredAmountResult = _ref31.tieredAmountResult,
|
|
2445
|
+
fromDate = _ref31.fromDate,
|
|
2446
|
+
dateMount = _ref31.dateMount,
|
|
2447
|
+
promoMethodEnum = _ref31.promoMethodEnum,
|
|
2448
|
+
discountPct = _ref31.discountPct,
|
|
2449
|
+
nominalAmount = _ref31.nominalAmount,
|
|
2450
|
+
promoId = _ref31.promoId,
|
|
2451
|
+
id = _ref31.id,
|
|
2452
|
+
doorsill = _ref31.doorsill;
|
|
2426
2453
|
|
|
2427
2454
|
var condValue = tieredAmountResult.condValue,
|
|
2428
2455
|
promoDiscount = tieredAmountResult.promoDiscount,
|
|
@@ -2466,8 +2493,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2466
2493
|
}, {
|
|
2467
2494
|
key: 'calcDjqValue',
|
|
2468
2495
|
value: function calcDjqValue(q1) {
|
|
2469
|
-
var
|
|
2470
|
-
isNewRetailBCPos =
|
|
2496
|
+
var _ref32 = _mutantsUtil.platform || {},
|
|
2497
|
+
isNewRetailBCPos = _ref32.isNewRetailBCPos;
|
|
2471
2498
|
|
|
2472
2499
|
var _enumController$getEn19 = _mutantsUtil.enumController.getEnumOj(),
|
|
2473
2500
|
Differentiate = _enumController$getEn19.Differentiate;
|
|
@@ -2557,17 +2584,17 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2557
2584
|
}, {
|
|
2558
2585
|
key: 'setPaymodes',
|
|
2559
2586
|
value: function () {
|
|
2560
|
-
var
|
|
2587
|
+
var _ref33 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(type, isIntegralExchange) {
|
|
2561
2588
|
var _this19 = this;
|
|
2562
2589
|
|
|
2563
|
-
var
|
|
2590
|
+
var _ref34, isHorizontalPad, isHorizontalSunMi, isMobileEnvironment, _enumController$getEn21, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
|
|
2564
2591
|
|
|
2565
2592
|
return _regenerator2.default.wrap(function _callee15$(_context15) {
|
|
2566
2593
|
while (1) {
|
|
2567
2594
|
switch (_context15.prev = _context15.next) {
|
|
2568
2595
|
case 0:
|
|
2569
2596
|
// 是否移动端判断
|
|
2570
|
-
|
|
2597
|
+
_ref34 = _mutantsUtil.platform || {}, isHorizontalPad = _ref34.isHorizontalPad, isHorizontalSunMi = _ref34.isHorizontalSunMi;
|
|
2571
2598
|
isMobileEnvironment = !!isHorizontalPad || !!isHorizontalSunMi;
|
|
2572
2599
|
_enumController$getEn21 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn21.settleStyleType, PayStyle = _enumController$getEn21.PayStyle;
|
|
2573
2600
|
memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
|
|
@@ -2619,7 +2646,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2619
2646
|
}));
|
|
2620
2647
|
|
|
2621
2648
|
function setPaymodes(_x12, _x13) {
|
|
2622
|
-
return
|
|
2649
|
+
return _ref33.apply(this, arguments);
|
|
2623
2650
|
}
|
|
2624
2651
|
|
|
2625
2652
|
return setPaymodes;
|
|
@@ -2752,8 +2779,8 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2752
2779
|
return key == 'canusedbalancestorage';
|
|
2753
2780
|
});
|
|
2754
2781
|
|
|
2755
|
-
var
|
|
2756
|
-
isNewRetailBCPos =
|
|
2782
|
+
var _ref35 = _mutantsUtil.platform || {},
|
|
2783
|
+
isNewRetailBCPos = _ref35.isNewRetailBCPos;
|
|
2757
2784
|
|
|
2758
2785
|
(0, _mobx.runInAction)(function () {
|
|
2759
2786
|
_this23.cardNo = m.CardCode;
|