tplus-components-touch 3.20.3 → 3.20.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.
@@ -451,6 +451,7 @@
451
451
  font-size: 17px;
452
452
  color: #333333;
453
453
  line-height: 16px;
454
+ width: 130px;
454
455
  }
455
456
  .info{
456
457
  // padding-left:23px;
@@ -1304,9 +1305,7 @@
1304
1305
  line-height: 32px;
1305
1306
  padding:4px 8px;
1306
1307
  background: #FFFFFF;
1307
- border: 1px solid #C8C8CD;
1308
1308
  border-radius: 2px;
1309
-
1310
1309
  }
1311
1310
  .notext{
1312
1311
  font-size: 16px;
@@ -41,7 +41,7 @@ var _createClass2 = require('babel-runtime/helpers/createClass');
41
41
 
42
42
  var _createClass3 = _interopRequireDefault(_createClass2);
43
43
 
44
- var _desc, _value, _class, _descriptor, _descriptor2, _desc2, _value2, _class3, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _desc3, _value3, _class5, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12;
44
+ var _desc, _value, _class, _descriptor, _descriptor2, _desc2, _value2, _class3, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _desc3, _value3, _class5, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;
45
45
 
46
46
  var _mobx = require('mobx');
47
47
 
@@ -1573,6 +1573,12 @@ var PayMode = exports.PayMode = (_class3 = function () {
1573
1573
  name: "复合结算",
1574
1574
  hotKey: "Ctrl+M"
1575
1575
  };
1576
+
1577
+ _initDefineProp(this, 'calcCheckList', _descriptor8, this);
1578
+
1579
+ _initDefineProp(this, 'setCouponNum', _descriptor9, this);
1580
+
1581
+ _initDefineProp(this, 'addDjqs', _descriptor10, this);
1576
1582
  } //应收
1577
1583
 
1578
1584
 
@@ -1608,16 +1614,188 @@ var PayMode = exports.PayMode = (_class3 = function () {
1608
1614
  this.receivable = (0, _utils.getFixedNumber)(this.amount - sum);
1609
1615
  }
1610
1616
  }, {
1611
- key: 'calcDjqValue',
1612
- value: function calcDjqValue(q1) {
1617
+ key: 'calcDjqCheckValue',
1618
+ value: function calcDjqCheckValue(q1, dto) {
1613
1619
  var _this14 = this;
1614
1620
 
1621
+ var useLimitPerOrder = (0, _tplusPoslogin.PosInitData)('UseLimitPerOrder');
1622
+ var qList = (0, _filter3.default)(this.currentMode.djqs, function (djq) {
1623
+ return djq.checked;
1624
+ });
1625
+ if (qList.length === useLimitPerOrder && !q1.checked) {
1626
+ _message2.default.warn('本单最多可用' + useLimitPerOrder + '张');
1627
+ return;
1628
+ }
1629
+
1615
1630
  var _ref21 = _mutantsUtil.platform || {},
1616
1631
  isNewRetailBCPos = _ref21.isNewRetailBCPos;
1617
1632
 
1618
1633
  var _enumController$getEn14 = _mutantsUtil.enumController.getEnumOj(),
1634
+ PayStyle = _enumController$getEn14.PayStyle,
1619
1635
  Differentiate = _enumController$getEn14.Differentiate;
1620
1636
 
1637
+ if (q1) {
1638
+ if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
1639
+ _message2.default.error('\u672C\u5355\u6CA1\u6709' + Differentiate.COUPON + '\u53EF\u7528\u91D1\u989D\uFF0C\u8BE5\u5238\u4E0D\u53EF\u4F7F\u7528\u3002');
1640
+ return;
1641
+ }
1642
+ var q = (0, _find3.default)(this.currentMode.djqs, function (djq) {
1643
+ return djq.promoCouponCode == q1.promoCouponCode;
1644
+ });
1645
+ if (q && !q.checked && parseFloat(this.amount) < parseFloat(q.doorsill)) {
1646
+ _message2.default.error("本单金额低于使用门槛,该券不可使用。");
1647
+ return;
1648
+ }
1649
+ //判断是否是选择优惠券 //CC优惠券只能使用一个
1650
+ // if (q1 && !q1.checked && isNewRetailBCPos) {
1651
+ // // 检查是否有已经选定优惠券 并且去除选定的优惠券
1652
+ // this.currentMode.djqs.forEach((djq, index) => {
1653
+ // if (djq.checked) this.currentMode.djqs[index].checked = false;
1654
+ // })
1655
+ // }
1656
+ q && (q.checked = !q.checked);
1657
+ }
1658
+ var sum = 0;
1659
+ // console.log(this.store, 'stores-------');
1660
+ if (!q1.checked) {
1661
+ this.checkList.forEach(function (ele, i) {
1662
+ if (ele.id === q1.id) {
1663
+ _this14.checkList.splice(i, 1);
1664
+ }
1665
+ });
1666
+ } else {
1667
+ if (q1.discountPct > 0) {
1668
+ q1.amount = 0;
1669
+ }
1670
+ this.checkList.push(q1);
1671
+ }
1672
+ this.checkList.forEach(function (ele, i) {
1673
+ if (ele.discountPct > 0) {
1674
+ if (ele.amount === 0) {
1675
+ ele.amount = (1 - ele.discountPct) * _this14.currentMode.receivable;
1676
+ }
1677
+ }
1678
+ sum = Math.Add(sum, ele.amount);
1679
+ });
1680
+ this.currentMode.value = (0, _utils.getFixedNumber)(Math.min(this.receivable, sum, this.currentMode.maxamount));
1681
+ this.currentMode.receivable = (0, _utils.getFixedNumber)(this.receivable - this.currentMode.value);
1682
+ this.currentMode.overchargesAmount = (0, _utils.getFixedNumber)(sum - this.currentMode.value);
1683
+ var promoVoucher = {};
1684
+ promoVoucher.boName = "Retail";
1685
+ // promoVoucher.promoLinks = _filter(this.currentMode.djqs,djq=>djq.checked);
1686
+ promoVoucher.meMemberId = this.currentMode.member.id;
1687
+ promoVoucher.storeFactorId = (0, _tplusPoslogin.PosInitData)('storeID');
1688
+ promoVoucher.voucherDetailList = [];
1689
+ dto.RetailDetails.forEach(function (item) {
1690
+ var detailDTO = {};
1691
+ detailDTO.uuid = item.Code;
1692
+ detailDTO.detailBoName = "RetailDetail";
1693
+ detailDTO.voucherDetailId = item.ID;
1694
+ detailDTO.productId = item.Idinventory;
1695
+ detailDTO.uomId = item.Idunit;
1696
+ detailDTO.productSpecId = item.ProductSpecId;
1697
+ detailDTO.isManualFreeGift = item.IsPresent;
1698
+ detailDTO.isListPriceIncludingTax = item.TaxFlag || true;
1699
+ detailDTO.IsManualChangePrice = item.IsManualChangePrice;
1700
+ if (detailDTO.IsManualChangePrice) //如果是手工改价
1701
+ {
1702
+ detailDTO.listPrice = item.TaxPrice;
1703
+ detailDTO.netAmountWithTax = item.TaxAmount;
1704
+ } else {
1705
+ var bookingQuantity = 0;
1706
+ if (item.BookingQuantity) {
1707
+ bookingQuantity = item.BookingQuantity;
1708
+ }
1709
+ detailDTO.listPrice = item.MemberPrice;
1710
+ detailDTO.netAmountWithTax = Math.Multiply(item.MemberPrice, Math.Minus(item.Quantity, bookingQuantity)); //item.TaxAmount;
1711
+ }
1712
+ detailDTO.taxRate = item.TaxRate;
1713
+ detailDTO.quantity = item.Quantity;
1714
+
1715
+ detailDTO.amountWithTax = item.RetailAmount;
1716
+ // 促销 start
1717
+ if (item.PromotionDetails && item.PromotionDetails.length != 0) {
1718
+ var promoLinks = [];
1719
+ item.PromotionDetails.forEach(function (promotion) {
1720
+ promoLinks.push({
1721
+ promoId: promotion.IdSalesPromotionDTO,
1722
+ promoRuleId: promotion.PromotionRuleId
1723
+ });
1724
+ });
1725
+ if (promoLinks.length != 0) detailDTO.promoLinks = promoLinks;
1726
+ }
1727
+ // 促销 end
1728
+ promoVoucher.voucherDetailList.push(detailDTO);
1729
+ });
1730
+ promoVoucher.promoLinks = this.checkList;
1731
+ return (0, _tplusApi.ccApi)((0, _extends3.default)({}, promoVoucher), 'promotion/PromoCalculate/findUsefulCouponPromoList', false, false, { method: 'post', timeout_skip: true }).then(function (result) {
1732
+ if (result && result.length != 0) {
1733
+ result.forEach(function (element) {
1734
+ var djq1 = (0, _filter3.default)(_this14.currentMode.djqs, function (djq) {
1735
+ return djq.id === element.id;
1736
+ });
1737
+
1738
+ var _ref22 = element || {},
1739
+ couponCode = _ref22.couponCode,
1740
+ name = _ref22.name,
1741
+ tieredAmountResult = _ref22.tieredAmountResult,
1742
+ fromDate = _ref22.fromDate,
1743
+ dateMount = _ref22.dateMount,
1744
+ promoMethodEnum = _ref22.promoMethodEnum,
1745
+ discountPct = _ref22.discountPct,
1746
+ nominalAmount = _ref22.nominalAmount,
1747
+ promoId = _ref22.promoId,
1748
+ id = _ref22.id,
1749
+ doorsill = _ref22.doorsill;
1750
+
1751
+ var condValue = tieredAmountResult.condValue,
1752
+ promoDiscount = tieredAmountResult.promoDiscount,
1753
+ displayText = tieredAmountResult.displayText,
1754
+ promoRuleId = tieredAmountResult.promoRuleId,
1755
+ couponCategoryEnum = tieredAmountResult.couponCategoryEnum;
1756
+
1757
+ if (!djq1.length) {
1758
+ // this.currentMode.djqs.push({
1759
+ // promoCouponCode: element.CouponCode,
1760
+ // name: element.CouponTitle,
1761
+ // IsEnable: true,
1762
+ // amount: element.ReductionAmount,
1763
+ // doorsill: element.EnableAmount,
1764
+ // LastTS: element.LastTS,
1765
+ // checked: false,
1766
+ // IsRepelWithPoints: true,
1767
+ // UMemberID: dto.Idmember,
1768
+ // expired: null,
1769
+ // displayText,
1770
+ // promoMethodEnum,
1771
+ // discountPct,
1772
+ // promoId,
1773
+ // promoRuleId,
1774
+ // couponCategoryEnum: tieredAmountResult.couponCategoryEnum,
1775
+ // id
1776
+ // })
1777
+ _this14.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
1778
+ } else {
1779
+ _this14.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum);
1780
+ // this.currentMode.djqs[0].couponCategoryEnum = 'couponCategoryEnum';
1781
+ // djq1.couponCategoryEnum = element.tieredAmountResult.couponCategoryEnum
1782
+ }
1783
+ });
1784
+ }
1785
+ });
1786
+ //this.receivable = getFixedNumber(this.receivable - sum);
1787
+ }
1788
+ }, {
1789
+ key: 'calcDjqValue',
1790
+ value: function calcDjqValue(q1) {
1791
+ var _this15 = this;
1792
+
1793
+ var _ref23 = _mutantsUtil.platform || {},
1794
+ isNewRetailBCPos = _ref23.isNewRetailBCPos;
1795
+
1796
+ var _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(),
1797
+ Differentiate = _enumController$getEn15.Differentiate;
1798
+
1621
1799
  if (q1) {
1622
1800
  if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
1623
1801
  _message2.default.error('\u672C\u5355\u6CA1\u6709' + Differentiate.COUPON + '\u53EF\u7528\u91D1\u989D\uFF0C\u8BE5\u5238\u4E0D\u53EF\u4F7F\u7528\u3002');
@@ -1634,7 +1812,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1634
1812
  if (q1 && !q1.checked && isNewRetailBCPos) {
1635
1813
  // 检查是否有已经选定优惠券 并且去除选定的优惠券
1636
1814
  this.currentMode.djqs.forEach(function (djq, index) {
1637
- if (djq.checked) _this14.currentMode.djqs[index].checked = false;
1815
+ if (djq.checked) _this15.currentMode.djqs[index].checked = false;
1638
1816
  });
1639
1817
  }
1640
1818
  q && (q.checked = !q.checked);
@@ -1674,9 +1852,20 @@ var PayMode = exports.PayMode = (_class3 = function () {
1674
1852
  value: function setCurrentModeValue(v, max) {
1675
1853
  this.currentMode.value = parseFloat(v) || 0;
1676
1854
  this.currentMode.errinfo = '';
1855
+ var sum = this.amount;
1856
+
1857
+ var _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(),
1858
+ PayStyle = _enumController$getEn16.PayStyle;
1859
+
1860
+ this.paymodes.thePaymodes && this.paymodes.thePaymodes.forEach(function (mode) {
1861
+ if (mode.paymentType === PayStyle.hyczk) {
1862
+ sum -= mode.value;
1863
+ }
1864
+ });
1865
+
1677
1866
  if (this.amount > 0 && (v === '' || v === '0.00')) {
1678
1867
  this.currentMode.errinfo = "实收金额必须录入";
1679
- } else if (Math.abs(parseFloat(v)) > Math.abs(this.amount)) {
1868
+ } else if (Math.abs(parseFloat(v)) > Math.abs(sum)) {
1680
1869
  this.currentMode.errinfo = "实收不应大于应收";
1681
1870
  } else if (parseFloat(v) > 0 && parseFloat(v) > (max || 0)) {
1682
1871
  this.currentMode.errinfo = "余额不足";
@@ -1690,16 +1879,16 @@ var PayMode = exports.PayMode = (_class3 = function () {
1690
1879
  }, {
1691
1880
  key: 'setPaymodes',
1692
1881
  value: function () {
1693
- var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
1694
- var _this15 = this;
1882
+ var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
1883
+ var _this16 = this;
1695
1884
 
1696
- var _enumController$getEn15, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
1885
+ var _enumController$getEn17, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
1697
1886
 
1698
1887
  return _regenerator2.default.wrap(function _callee7$(_context7) {
1699
1888
  while (1) {
1700
1889
  switch (_context7.prev = _context7.next) {
1701
1890
  case 0:
1702
- _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn15.settleStyleType, PayStyle = _enumController$getEn15.PayStyle;
1891
+ _enumController$getEn17 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn17.settleStyleType, PayStyle = _enumController$getEn17.PayStyle;
1703
1892
  memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
1704
1893
  param = { 'settleStyleType': type == 1 ? memberStoreCode : settlementCode, isIntegralExchange: isIntegralExchange };
1705
1894
  _context7.next = 5;
@@ -1730,7 +1919,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1730
1919
  calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88"
1731
1920
  });
1732
1921
  });
1733
- _this15.paymodes = paymodes;
1922
+ _this16.paymodes = paymodes;
1734
1923
  //modes.QuickSettleStyles
1735
1924
  });
1736
1925
  }
@@ -1744,7 +1933,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1744
1933
  }));
1745
1934
 
1746
1935
  function setPaymodes(_x5, _x6) {
1747
- return _ref22.apply(this, arguments);
1936
+ return _ref24.apply(this, arguments);
1748
1937
  }
1749
1938
 
1750
1939
  return setPaymodes;
@@ -1786,22 +1975,74 @@ var PayMode = exports.PayMode = (_class3 = function () {
1786
1975
  initializer: function initializer() {
1787
1976
  return [];
1788
1977
  }
1789
- }), _applyDecoratedDescriptor(_class3.prototype, 'clean', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'clean'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'clear', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'clear'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'calcReserved', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcReserved'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqValue'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'reCalculationDjqs', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'reCalculationDjqs'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'clearDjqs', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'clearDjqs'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'setCurrentModeValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'setCurrentModeValue'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'calcMemberBalance', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcMemberBalance'), _class3.prototype)), _class3);
1978
+ }), _applyDecoratedDescriptor(_class3.prototype, 'clean', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'clean'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'clear', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'clear'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'calcReserved', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcReserved'), _class3.prototype), _descriptor8 = _applyDecoratedDescriptor(_class3.prototype, 'calcCheckList', [_mobx.action], {
1979
+ enumerable: true,
1980
+ initializer: function initializer() {
1981
+ var _this17 = this;
1982
+
1983
+ return function () {
1984
+ _this17.checkList = [];
1985
+ };
1986
+ }
1987
+ }), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqCheckValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqCheckValue'), _class3.prototype), _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, 'setCouponNum', [_mobx.action], {
1988
+ enumerable: true,
1989
+ initializer: function initializer() {
1990
+ var _this18 = this;
1991
+
1992
+ return function (id, couponNum, code) {
1993
+ _this18.currentMode.djqs.forEach(function (ele) {
1994
+ if (ele.id === id) {
1995
+ ele.couponCategoryEnum = couponNum;
1996
+ var IsEnable = ele.couponCategoryEnum === 'RIGUP' || ele.couponCategoryEnum === 'UN_MATCH' || ele.couponCategoryEnum === "PREPARING" || ele.couponCategoryEnum === 'PROMO_LIMITED' || ele.couponCategoryEnum === 'COUPON_CONFLICT' ? false : true;
1997
+ ele.IsEnable = IsEnable;
1998
+ }
1999
+ });
2000
+ };
2001
+ }
2002
+ }), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
2003
+ enumerable: true,
2004
+ initializer: function initializer() {
2005
+ var _this19 = this;
2006
+
2007
+ return function (promoCouponCode, name, IsEnable, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id) {
2008
+ var djq = {
2009
+ promoCouponCode: promoCouponCode,
2010
+ name: name,
2011
+ IsEnable: IsEnable,
2012
+ amount: amount,
2013
+ doorsill: doorsill,
2014
+ LastTS: LastTS,
2015
+ checked: checked,
2016
+ IsRepelWithPoints: IsRepelWithPoints,
2017
+ UMemberID: UMemberID,
2018
+ expired: expired,
2019
+ displayText: displayText,
2020
+ promoMethodEnum: promoMethodEnum,
2021
+ discountPct: discountPct,
2022
+ promoId: promoId,
2023
+ promoRuleId: promoRuleId,
2024
+ couponCategoryEnum: couponCategoryEnum,
2025
+ id: id
2026
+ };
2027
+ _this19.currentMode.djqs.push(djq);
2028
+ };
2029
+ }
2030
+ }), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqValue'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'reCalculationDjqs', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'reCalculationDjqs'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'clearDjqs', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'clearDjqs'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'setCurrentModeValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'setCurrentModeValue'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'calcMemberBalance', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcMemberBalance'), _class3.prototype)), _class3);
1790
2031
  var Member = exports.Member = (_class5 = function () {
1791
2032
  function Member(m) {
1792
- var _this16 = this;
2033
+ var _this20 = this;
1793
2034
 
1794
2035
  (0, _classCallCheck3.default)(this, Member);
1795
2036
 
1796
- _initDefineProp(this, 'cardNo', _descriptor8, this);
2037
+ _initDefineProp(this, 'cardNo', _descriptor11, this);
1797
2038
 
1798
- _initDefineProp(this, 'balance', _descriptor9, this);
2039
+ _initDefineProp(this, 'balance', _descriptor12, this);
1799
2040
 
1800
- _initDefineProp(this, 'exchangable', _descriptor10, this);
2041
+ _initDefineProp(this, 'exchangable', _descriptor13, this);
1801
2042
 
1802
- _initDefineProp(this, 'MeStorageCardId', _descriptor11, this);
2043
+ _initDefineProp(this, 'MeStorageCardId', _descriptor14, this);
1803
2044
 
1804
- _initDefineProp(this, 'StorageCardNo', _descriptor12, this);
2045
+ _initDefineProp(this, 'StorageCardNo', _descriptor15, this);
1805
2046
 
1806
2047
  if (m) {
1807
2048
  this.id = m.ID;
@@ -1812,17 +2053,17 @@ var Member = exports.Member = (_class5 = function () {
1812
2053
  return key == 'canusedbalancestorage';
1813
2054
  });
1814
2055
 
1815
- var _ref23 = _mutantsUtil.platform || {},
1816
- isNewRetailBCPos = _ref23.isNewRetailBCPos;
2056
+ var _ref25 = _mutantsUtil.platform || {},
2057
+ isNewRetailBCPos = _ref25.isNewRetailBCPos;
1817
2058
 
1818
2059
  m.StorageCardNo && (this.StorageCardNo = m.StorageCardNo);
1819
2060
  m.MeStorageCardId && (this.MeStorageCardId = m.MeStorageCardId);
1820
2061
  (0, _mobx.runInAction)(function () {
1821
- _this16.cardNo = m.CardCode;
2062
+ _this20.cardNo = m.CardCode;
1822
2063
  if (index >= 0) {
1823
- _this16.balance = parseFloat(m.DynamicPropertyValues[index]);
2064
+ _this20.balance = parseFloat(m.DynamicPropertyValues[index]);
1824
2065
  } else {
1825
- _this16.balance = _this16.rawbalance;
2066
+ _this20.balance = _this20.rawbalance;
1826
2067
  }
1827
2068
  });
1828
2069
  this.needPwd = m.MemberType ? m.MemberType.IsNeedPwd : false;
@@ -1854,19 +2095,19 @@ var Member = exports.Member = (_class5 = function () {
1854
2095
  }
1855
2096
  }]);
1856
2097
  return Member;
1857
- }(), (_descriptor8 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
2098
+ }(), (_descriptor11 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
1858
2099
  enumerable: true,
1859
2100
  initializer: null
1860
- }), _descriptor9 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
2101
+ }), _descriptor12 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
1861
2102
  enumerable: true,
1862
2103
  initializer: null
1863
- }), _descriptor10 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
2104
+ }), _descriptor13 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
1864
2105
  enumerable: true,
1865
2106
  initializer: null
1866
- }), _descriptor11 = _applyDecoratedDescriptor(_class5.prototype, 'MeStorageCardId', [_mobx.observable], {
2107
+ }), _descriptor14 = _applyDecoratedDescriptor(_class5.prototype, 'MeStorageCardId', [_mobx.observable], {
1867
2108
  enumerable: true,
1868
2109
  initializer: null
1869
- }), _descriptor12 = _applyDecoratedDescriptor(_class5.prototype, 'StorageCardNo', [_mobx.observable], {
2110
+ }), _descriptor15 = _applyDecoratedDescriptor(_class5.prototype, 'StorageCardNo', [_mobx.observable], {
1870
2111
  enumerable: true,
1871
2112
  initializer: null
1872
2113
  }), _applyDecoratedDescriptor(_class5.prototype, 'setExchangable', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class5.prototype, 'setExchangable'), _class5.prototype), _applyDecoratedDescriptor(_class5.prototype, 'setCardNo', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class5.prototype, 'setCardNo'), _class5.prototype), _applyDecoratedDescriptor(_class5.prototype, 'setMeStorageCardId', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class5.prototype, 'setMeStorageCardId'), _class5.prototype), _applyDecoratedDescriptor(_class5.prototype, 'setStorageCardNo', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class5.prototype, 'setStorageCardNo'), _class5.prototype)), _class5);