tplus-components-touch 3.22.13 → 3.22.17

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.
@@ -489,6 +489,14 @@
489
489
  font-size: 17px;
490
490
  line-height: 16px;
491
491
  width: 130px;
492
+ text-indent: 0;
493
+ padding-left: 14px;
494
+ display: -webkit-box;
495
+ -webkit-box-orient: vertical;
496
+ -webkit-line-clamp: 2;
497
+ overflow: hidden;
498
+ word-break: break-all;
499
+ white-space: initial;
492
500
  }
493
501
  .info{
494
502
  // padding-left:23px;
@@ -493,6 +493,8 @@ var SettlementStore = (_class = function () {
493
493
  var _ref5 = _mutantsUtil.platform || {},
494
494
  isNewRetailBCPos = _ref5.isNewRetailBCPos;
495
495
 
496
+ console.log(this.dto, 'dto==========');
497
+ this.paymode.checkList = [];
496
498
  (0, _each3.default)(this.dto.RetailPaymentDetails, function (detail) {
497
499
  var themode = (0, _find3.default)(_this5.paymode.paymodes, { 'idSettleStyle': detail.IdsettleStyle });
498
500
  if (detail.SettleStyle.Code === PayStyle.hyczk && !themode) {
@@ -1169,7 +1171,7 @@ var SettlementStore = (_class = function () {
1169
1171
  DataSource: { Id: _this11.dataSource }
1170
1172
  });
1171
1173
  if (mode.paymentType == PayStyle.djq) {
1172
- (0, _each3.default)(_this11.paymode.checkList, function (djq) {
1174
+ (0, _each3.default)(_this11.paymode.checkList && _this11.paymode.checkList.length ? _this11.paymode.checkList : _this11.paymode.currentMode.djqs, function (djq) {
1173
1175
  _this11.dto.RetailCouponDetails.push({
1174
1176
  CouponCode: djq.promoCouponCode,
1175
1177
  ReductionAmount: djq.amount,
@@ -1269,6 +1271,7 @@ var SettlementStore = (_class = function () {
1269
1271
 
1270
1272
  return _context3.abrupt('return', (0, _tplusApi.ccApi)({ dto: (0, _extends3.default)({}, this.dto.cut(), { RetailOms: { RetailTypeEnum: RetailTypeEnum } }), cip: IPMSG.query || "" }, '/retail/RetailPos/settle', false, false, { method: 'post', timeout_skip: true }).then(function (resp) {
1271
1273
  _this11.setDtoID(resp.ID);
1274
+ _this11.paymode.checkList = [];
1272
1275
  _this11.billID = resp.ID;
1273
1276
  }));
1274
1277
 
@@ -1651,6 +1654,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1651
1654
  sum = Math.Add(sum, ele.amount);
1652
1655
  });
1653
1656
  this.currentMode.value = (0, _utils.getFixedNumber)(Math.min(this.receivable, sum, this.currentMode.maxamount));
1657
+ console.log(this.receivable, sum, Math.min(this.receivable, sum, this.currentMode.maxamount), 'sum---------');
1654
1658
  this.currentMode.receivable = (0, _utils.getFixedNumber)(this.receivable - Math.min(this.receivable, sum, this.currentMode.maxamount));
1655
1659
  this.currentMode.overchargesAmount = (0, _utils.getFixedNumber)(sum - this.currentMode.value);
1656
1660
  if (params === 'single') {
@@ -1756,7 +1760,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1756
1760
  _this14.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
1757
1761
  djq1 = false;
1758
1762
  } else {
1759
- _this14.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum, promoDiscount);
1763
+ _this14.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
1760
1764
  // this.currentMode.djqs[0].couponCategoryEnum = 'couponCategoryEnum';
1761
1765
  // djq1.couponCategoryEnum = element.tieredAmountResult.couponCategoryEnum
1762
1766
  }
@@ -1971,12 +1975,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
1971
1975
  initializer: function initializer() {
1972
1976
  var _this17 = this;
1973
1977
 
1974
- return function (id, couponNum, promoDiscount) {
1978
+ return function (id, couponNum, promoMethodEnum, nominalAmount, promoDiscount) {
1975
1979
  _this17.currentMode.djqs.forEach(function (ele) {
1976
1980
  if (ele.id === id) {
1977
- if (promoDiscount) {
1978
- ele.amount = promoDiscount;
1979
- }
1981
+ promoMethodEnum == "CASH_COUPON" ? ele.amount = nominalAmount : ele.amount = promoDiscount;
1980
1982
  ele.couponCategoryEnum = couponNum;
1981
1983
  var IsEnable = ele.couponCategoryEnum === 'RIGUP' || ele.couponCategoryEnum === 'UN_MATCH' || ele.couponCategoryEnum === "PREPARING" || ele.couponCategoryEnum === 'PROMO_LIMITED' || ele.couponCategoryEnum === 'COUPON_CONFLICT' ? false : true;
1982
1984
  ele.IsEnable = IsEnable;