tplus-components-touch 3.26.1 → 3.27.1

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.
@@ -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, _descriptor8, _descriptor9, _descriptor10, _desc3, _value3, _class5, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;
44
+ var _desc, _value, _class, _descriptor, _descriptor2, _descriptor3, _desc2, _value2, _class3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _desc3, _value3, _class5, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16;
45
45
 
46
46
  var _mobx = require('mobx');
47
47
 
@@ -161,7 +161,6 @@ function _initializerWarningHelper(descriptor, context) {
161
161
  var t = _mutantsMicrofx.i18n.getFixedT(null, 'newretail');
162
162
 
163
163
  var SettlementStore = (_class = function () {
164
- //type==2
165
164
  function SettlementStore() {
166
165
  var _this2 = this;
167
166
 
@@ -173,6 +172,7 @@ var SettlementStore = (_class = function () {
173
172
  this.bquick = false;
174
173
  this.boriginReturn = false;
175
174
  this.newStyle = true;
175
+ this.freight = 0;
176
176
 
177
177
  _initDefineProp(this, 'queryPwd', _descriptor, this);
178
178
 
@@ -234,7 +234,7 @@ var SettlementStore = (_class = function () {
234
234
  }
235
235
  detailDTO.listPrice = JSON.getCellValue(item, "listPrice");
236
236
  detailDTO.netAmountWithTax = Math.Multiply(detailDTO.listPrice, Math.Minus(item.Quantity, bookingQuantity)); //item.TaxAmount;
237
- //}
237
+ //}
238
238
  detailDTO.taxRate = item.TaxRate;
239
239
  detailDTO.quantity = item.Quantity;
240
240
 
@@ -307,6 +307,20 @@ var SettlementStore = (_class = function () {
307
307
  return (0, _tplusApi.ccApi)({}, '/marketingtool/paygift/executeRightsForPos/' + _this2.billID, false, false, { method: 'get', timeout_skip: true });
308
308
  };
309
309
 
310
+ this.getRefWareHouseList = function () {
311
+ return (0, _tplusApi.ccApi)({}, '/retail/RetailPos/getRefWareHouseList', false, false);
312
+ };
313
+
314
+ this.getPerformanceDistributionValue = function (data) {
315
+ return (0, _tplusApi.ccApi)(data, '/retail/RetailPos/getPerformanceDistributionValue', false, false);
316
+ };
317
+
318
+ this.getPosFreight = function (data) {
319
+ return (0, _tplusApi.ccApi)(data, '/retail/RetailPos/getPosFreight', false, false);
320
+ };
321
+
322
+ _initDefineProp(this, 'updataFreight', _descriptor3, this);
323
+
310
324
  this.checkCoupon = function () {
311
325
  var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(sn) {
312
326
  var _ref4, isNewRetailBCPos, _enumController$getEn3, PayStyle, Differentiate;
@@ -414,7 +428,8 @@ var SettlementStore = (_class = function () {
414
428
  var params = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('cloudPrintArguments');
415
429
  if (params) this.cloudPrintArguments = params;
416
430
  this.newStyle = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('voucherDefaultPosMode') == 'voucher';
417
- }
431
+ } //type==2
432
+
418
433
 
419
434
  (0, _createClass3.default)(SettlementStore, [{
420
435
  key: 'initPaymodes',
@@ -448,7 +463,29 @@ var SettlementStore = (_class = function () {
448
463
  });
449
464
  // this.member=context.stores && context.stores.memberStore && context.stores.memberStore.member;
450
465
  this.member = this.dto.Member; //stores.selectMemberStore.selectMemberInfo;
451
- this.brefund = this.paymode.setAmount(this.dto.TotalTaxAmount, this.dto.OnlinePaymentAmount);
466
+
467
+ //预订按比例收取订金处理
468
+ var value = this.dto.TotalTaxAmount;
469
+
470
+ var _getLoginInfo = this.getLoginInfo(),
471
+ Book = _getLoginInfo.Book,
472
+ PercentageWhenBook = _getLoginInfo.PercentageWhenBook;
473
+
474
+ var _ref5 = this.dto || {},
475
+ IdbusiType = _ref5.IdbusiType,
476
+ DistributionMode = _ref5.DistributionMode;
477
+
478
+ if (IdbusiType == 38 && Book && PercentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')) {
479
+ value = value * PercentageWhenBook / 100;
480
+ }
481
+ if (IdbusiType == 38 && Book && (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE')) {
482
+ value += this.freight;
483
+ }
484
+ if (IdbusiType == 39) {
485
+ value = _mutantsMicrofx.stores.drawerStore.thisWaitPaidAmount;
486
+ }
487
+
488
+ this.brefund = this.paymode.setAmount(value, this.dto.OnlinePaymentAmount);
452
489
  } else {
453
490
  this.brefund = this.paymode.setAmount(amount, 0);
454
491
  this.dto = data;
@@ -496,8 +533,8 @@ var SettlementStore = (_class = function () {
496
533
  var _enumController$getEn4 = _mutantsUtil.enumController.getEnumOj(),
497
534
  PayStyle = _enumController$getEn4.PayStyle;
498
535
 
499
- var _ref5 = _mutantsUtil.platform || {},
500
- isNewRetailBCPos = _ref5.isNewRetailBCPos;
536
+ var _ref6 = _mutantsUtil.platform || {},
537
+ isNewRetailBCPos = _ref6.isNewRetailBCPos;
501
538
 
502
539
  console.log(this.dto, 'dto==========');
503
540
  this.paymode.checkList = [];
@@ -522,14 +559,14 @@ var SettlementStore = (_class = function () {
522
559
  if (themode.paymentType == PayStyle.djq) {
523
560
  (0, _each3.default)(_this5.dto.RetailCouponDetails, function (djq) {
524
561
  if (isNewRetailBCPos) {
525
- var _ref6 = djq || {},
526
- displayText = _ref6.displayText,
527
- promoRuleId = _ref6.promoRuleId,
528
- dateMount = _ref6.dateMount,
529
- promoMethodEnum = _ref6.promoMethodEnum,
530
- discountPct = _ref6.discountPct,
531
- promoId = _ref6.promoId,
532
- id = _ref6.id;
562
+ var _ref7 = djq || {},
563
+ displayText = _ref7.displayText,
564
+ promoRuleId = _ref7.promoRuleId,
565
+ dateMount = _ref7.dateMount,
566
+ promoMethodEnum = _ref7.promoMethodEnum,
567
+ discountPct = _ref7.discountPct,
568
+ promoId = _ref7.promoId,
569
+ id = _ref7.id;
533
570
 
534
571
  _this5.addDjq(djq.CouponCode, djq.CouponTitle, true, djq.ReductionAmount, djq.EnableAmount, djq.LastTS, true, false, _this5.dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, null, id, true);
535
572
  return;
@@ -611,9 +648,9 @@ var SettlementStore = (_class = function () {
611
648
  }, {
612
649
  key: 'getLoginInfo',
613
650
  value: function getLoginInfo() {
614
- var _ref7 = _mutantsMicrofx.localStore.get('user') || {},
615
- _ref7$loginInfo = _ref7.loginInfo,
616
- loginInfo = _ref7$loginInfo === undefined ? {} : _ref7$loginInfo;
651
+ var _ref8 = _mutantsMicrofx.localStore.get('user') || {},
652
+ _ref8$loginInfo = _ref8.loginInfo,
653
+ loginInfo = _ref8$loginInfo === undefined ? {} : _ref8$loginInfo;
617
654
 
618
655
  return loginInfo;
619
656
  }
@@ -632,8 +669,8 @@ var SettlementStore = (_class = function () {
632
669
  var IdStore = this.storeInfo.storeID;
633
670
  var StoreCode = this.storeInfo.storeCode; //_find(this.storeInfo.storeInfos,(store)=>{return store.ID==IdStore;}).Code;
634
671
 
635
- var _ref8 = _mutantsUtil.platform || {},
636
- isNewRetailBCPos = _ref8.isNewRetailBCPos;
672
+ var _ref9 = _mutantsUtil.platform || {},
673
+ isNewRetailBCPos = _ref9.isNewRetailBCPos;
637
674
 
638
675
  var address = '';
639
676
  if (isNewRetailBCPos) {
@@ -642,10 +679,16 @@ var SettlementStore = (_class = function () {
642
679
  return (0, _tplusApi.ccApi)({ code: v }, address, false, false, { method: 'get', timeout_skip: true }).then(function (result) {
643
680
  var data = result.data;
644
681
  var m = data;
645
- _this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
646
- _this7.paymode && _this7.paymode.currentMode.member.setStorageCardNo(m.StorageCardNo);
647
- _this7.paymode && (_this7.paymode.currentMode.MeStorageCardId = m.MeStorageCardId);
648
- _this7.paymode && (_this7.paymode.currentMode.StorageCardNo = m.StorageCardNo);
682
+
683
+ var _ref10 = _mutantsUtil.platform || {},
684
+ isNewRetailBCPos = _ref10.isNewRetailBCPos;
685
+
686
+ if (isNewRetailBCPos) {
687
+ _this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
688
+ _this7.paymode && _this7.paymode.currentMode.member.setStorageCardNo(m.StorageCardNo);
689
+ _this7.paymode && (_this7.paymode.currentMode.MeStorageCardId = m.MeStorageCardId);
690
+ _this7.paymode && (_this7.paymode.currentMode.StorageCardNo = m.StorageCardNo);
691
+ }
649
692
  if (!m || !m.ID) {
650
693
  (0, _mobx.runInAction)(function () {
651
694
  _this7.paymode.currentMode.errinfo = "无效的会员卡号";
@@ -683,8 +726,8 @@ var SettlementStore = (_class = function () {
683
726
  var data = JSON.parse(result.Data);
684
727
  var m = data && data.length > 0 && data[0];
685
728
 
686
- var _ref9 = _mutantsUtil.platform || {},
687
- isNewRetailBCPos = _ref9.isNewRetailBCPos;
729
+ var _ref11 = _mutantsUtil.platform || {},
730
+ isNewRetailBCPos = _ref11.isNewRetailBCPos;
688
731
 
689
732
  if (isNewRetailBCPos) {
690
733
  _this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
@@ -978,8 +1021,8 @@ var SettlementStore = (_class = function () {
978
1021
  }, {
979
1022
  key: 'commit',
980
1023
  value: function () {
981
- var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
982
- var _ref11, isNewRetailBCPos;
1024
+ var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
1025
+ var _ref13, isNewRetailBCPos;
983
1026
 
984
1027
  return _regenerator2.default.wrap(function _callee2$(_context2) {
985
1028
  while (1) {
@@ -995,7 +1038,7 @@ var SettlementStore = (_class = function () {
995
1038
  return _context2.abrupt('return', _promise2.default.resolve(true));
996
1039
 
997
1040
  case 3:
998
- _ref11 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref11.isNewRetailBCPos;
1041
+ _ref13 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref13.isNewRetailBCPos;
999
1042
  _context2.prev = 4;
1000
1043
 
1001
1044
  if (!(this.type == 1)) {
@@ -1051,7 +1094,7 @@ var SettlementStore = (_class = function () {
1051
1094
  }));
1052
1095
 
1053
1096
  function commit(_x2) {
1054
- return _ref10.apply(this, arguments);
1097
+ return _ref12.apply(this, arguments);
1055
1098
  }
1056
1099
 
1057
1100
  return commit;
@@ -1109,10 +1152,10 @@ var SettlementStore = (_class = function () {
1109
1152
  }, {
1110
1153
  key: 'save',
1111
1154
  value: function () {
1112
- var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
1155
+ var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
1113
1156
  var _this11 = this;
1114
1157
 
1115
- var _enumController$getEn14, PayStyle, _ref14, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1158
+ var _enumController$getEn14, PayStyle, _ref16, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1116
1159
 
1117
1160
  return _regenerator2.default.wrap(function _callee3$(_context3) {
1118
1161
  while (1) {
@@ -1192,8 +1235,8 @@ var SettlementStore = (_class = function () {
1192
1235
  }
1193
1236
  });
1194
1237
 
1195
- var _ref13 = _mutantsUtil.platform || {},
1196
- isNewRetailBCPos = _ref13.isNewRetailBCPos;
1238
+ var _ref15 = _mutantsUtil.platform || {},
1239
+ isNewRetailBCPos = _ref15.isNewRetailBCPos;
1197
1240
 
1198
1241
  if (_this11.dto.RetailStorageDetails.length > 0) {
1199
1242
  var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
@@ -1227,7 +1270,7 @@ var SettlementStore = (_class = function () {
1227
1270
  _this11.dto.Idmember = Idmember;
1228
1271
  }
1229
1272
  });
1230
- _ref14 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref14.isNewRetailBCPos;
1273
+ _ref16 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref16.isNewRetailBCPos;
1231
1274
 
1232
1275
  console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
1233
1276
 
@@ -1297,7 +1340,7 @@ var SettlementStore = (_class = function () {
1297
1340
  }));
1298
1341
 
1299
1342
  function save() {
1300
- return _ref12.apply(this, arguments);
1343
+ return _ref14.apply(this, arguments);
1301
1344
  }
1302
1345
 
1303
1346
  return save;
@@ -1310,7 +1353,7 @@ var SettlementStore = (_class = function () {
1310
1353
  }, {
1311
1354
  key: 'querySettleResult',
1312
1355
  value: function () {
1313
- var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1356
+ var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1314
1357
  return _regenerator2.default.wrap(function _callee4$(_context4) {
1315
1358
  while (1) {
1316
1359
  switch (_context4.prev = _context4.next) {
@@ -1338,7 +1381,7 @@ var SettlementStore = (_class = function () {
1338
1381
  }));
1339
1382
 
1340
1383
  function querySettleResult() {
1341
- return _ref15.apply(this, arguments);
1384
+ return _ref17.apply(this, arguments);
1342
1385
  }
1343
1386
 
1344
1387
  return querySettleResult;
@@ -1364,14 +1407,14 @@ var SettlementStore = (_class = function () {
1364
1407
  }, {
1365
1408
  key: 'validePwd',
1366
1409
  value: function () {
1367
- var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
1368
- var _ref17, isNewRetailBCPos, cook1, cook2, message, memberId, result, count, _result;
1410
+ var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
1411
+ var _ref19, isNewRetailBCPos, cook1, cook2, message, memberId, result, count, _result;
1369
1412
 
1370
1413
  return _regenerator2.default.wrap(function _callee5$(_context5) {
1371
1414
  while (1) {
1372
1415
  switch (_context5.prev = _context5.next) {
1373
1416
  case 0:
1374
- _ref17 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref17.isNewRetailBCPos;
1417
+ _ref19 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref19.isNewRetailBCPos;
1375
1418
  _context5.prev = 1;
1376
1419
 
1377
1420
  if (!isNewRetailBCPos) {
@@ -1456,7 +1499,7 @@ var SettlementStore = (_class = function () {
1456
1499
  }));
1457
1500
 
1458
1501
  function validePwd(_x3) {
1459
- return _ref16.apply(this, arguments);
1502
+ return _ref18.apply(this, arguments);
1460
1503
  }
1461
1504
 
1462
1505
  return validePwd;
@@ -1495,14 +1538,14 @@ var SettlementStore = (_class = function () {
1495
1538
  var _this13 = this;
1496
1539
 
1497
1540
  return function () {
1498
- var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1499
- var _getLoginInfo, IdStore, StoreCode, resp;
1541
+ var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1542
+ var _getLoginInfo2, IdStore, StoreCode, resp;
1500
1543
 
1501
1544
  return _regenerator2.default.wrap(function _callee6$(_context6) {
1502
1545
  while (1) {
1503
1546
  switch (_context6.prev = _context6.next) {
1504
1547
  case 0:
1505
- _getLoginInfo = _this13.getLoginInfo(), IdStore = _getLoginInfo.IdStore, StoreCode = _getLoginInfo.StoreCode;
1548
+ _getLoginInfo2 = _this13.getLoginInfo(), IdStore = _getLoginInfo2.IdStore, StoreCode = _getLoginInfo2.StoreCode;
1506
1549
  _context6.next = 3;
1507
1550
  return (0, _tplusApi.tApi)({ Idmember: _this13.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
1508
1551
 
@@ -1522,10 +1565,19 @@ var SettlementStore = (_class = function () {
1522
1565
  }));
1523
1566
 
1524
1567
  return function (_x4) {
1525
- return _ref18.apply(this, arguments);
1568
+ return _ref20.apply(this, arguments);
1526
1569
  };
1527
1570
  }();
1528
1571
  }
1572
+ }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'updataFreight', [_mobx.action], {
1573
+ enumerable: true,
1574
+ initializer: function initializer() {
1575
+ var _this14 = this;
1576
+
1577
+ return function (freight) {
1578
+ _this14.freight = freight;
1579
+ };
1580
+ }
1529
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);
1530
1582
  exports.default = SettlementStore;
1531
1583
  var PayMode = exports.PayMode = (_class3 = function () {
@@ -1540,15 +1592,15 @@ var PayMode = exports.PayMode = (_class3 = function () {
1540
1592
  this.onlineamount = 0;
1541
1593
  this.maxamount = 0;
1542
1594
 
1543
- _initDefineProp(this, 'currentFocus', _descriptor3, this);
1595
+ _initDefineProp(this, 'currentFocus', _descriptor4, this);
1544
1596
 
1545
- _initDefineProp(this, 'received', _descriptor4, this);
1597
+ _initDefineProp(this, 'received', _descriptor5, this);
1546
1598
 
1547
- _initDefineProp(this, 'receivable', _descriptor5, this);
1599
+ _initDefineProp(this, 'receivable', _descriptor6, this);
1548
1600
 
1549
- _initDefineProp(this, 'paymodes', _descriptor6, this);
1601
+ _initDefineProp(this, 'paymodes', _descriptor7, this);
1550
1602
 
1551
- _initDefineProp(this, 'thePaymodes', _descriptor7, this);
1603
+ _initDefineProp(this, 'thePaymodes', _descriptor8, this);
1552
1604
 
1553
1605
  this.currentMode = null;
1554
1606
  this.checkList = [];
@@ -1557,11 +1609,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
1557
1609
  hotKey: "Ctrl+M"
1558
1610
  };
1559
1611
 
1560
- _initDefineProp(this, 'calcCheckList', _descriptor8, this);
1612
+ _initDefineProp(this, 'calcCheckList', _descriptor9, this);
1561
1613
 
1562
- _initDefineProp(this, 'setCouponNum', _descriptor9, this);
1614
+ _initDefineProp(this, 'setCouponNum', _descriptor10, this);
1563
1615
 
1564
- _initDefineProp(this, 'addDjqs', _descriptor10, this);
1616
+ _initDefineProp(this, 'addDjqs', _descriptor11, this);
1565
1617
  }
1566
1618
  // @observable store = null;
1567
1619
 
@@ -1600,7 +1652,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1600
1652
  }, {
1601
1653
  key: 'calcDjqCheckValue',
1602
1654
  value: function calcDjqCheckValue(q1, dto, params) {
1603
- var _this14 = this;
1655
+ var _this15 = this;
1604
1656
 
1605
1657
  var useLimitPerOrder = (0, _tplusPoslogin.PosInitData)('UseLimitPerOrder');
1606
1658
  var qList = (0, _filter3.default)(this.currentMode.djqs, function (djq) {
@@ -1614,8 +1666,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
1614
1666
  this.checkList = [];
1615
1667
  }
1616
1668
 
1617
- var _ref19 = _mutantsUtil.platform || {},
1618
- isNewRetailBCPos = _ref19.isNewRetailBCPos;
1669
+ var _ref21 = _mutantsUtil.platform || {},
1670
+ isNewRetailBCPos = _ref21.isNewRetailBCPos;
1619
1671
 
1620
1672
  var _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(),
1621
1673
  PayStyle = _enumController$getEn15.PayStyle,
@@ -1647,7 +1699,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1647
1699
  if (!q1.checked) {
1648
1700
  this.checkList.forEach(function (ele, i) {
1649
1701
  if (ele.id === q1.id) {
1650
- _this14.checkList.splice(i, 1);
1702
+ _this15.checkList.splice(i, 1);
1651
1703
  }
1652
1704
  });
1653
1705
  } else {
@@ -1689,13 +1741,13 @@ var PayMode = exports.PayMode = (_class3 = function () {
1689
1741
  // }
1690
1742
  // else
1691
1743
  // {
1744
+
1692
1745
  var bookingQuantity = 0;
1693
1746
  if (item.BookingQuantity) {
1694
1747
  bookingQuantity = item.BookingQuantity;
1695
1748
  }
1696
1749
  detailDTO.listPrice = JSON.getCellValue(item, "listPrice");
1697
1750
  detailDTO.netAmountWithTax = Math.Multiply(detailDTO.listPrice, Math.Minus(item.Quantity, bookingQuantity)); //item.TaxAmount;
1698
- //}
1699
1751
  detailDTO.taxRate = item.TaxRate;
1700
1752
  detailDTO.quantity = item.Quantity;
1701
1753
 
@@ -1719,24 +1771,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
1719
1771
  if (result && result.length != 0) {
1720
1772
  result.forEach(function (element, index) {
1721
1773
  var djq1 = false;
1722
- _this14.currentMode.djqs.forEach(function (djq) {
1774
+ _this15.currentMode.djqs.forEach(function (djq) {
1723
1775
  if (element.id === djq.id) {
1724
1776
  djq1 = true;
1725
1777
  }
1726
1778
  });
1727
1779
 
1728
- var _ref20 = element || {},
1729
- couponCode = _ref20.couponCode,
1730
- name = _ref20.name,
1731
- tieredAmountResult = _ref20.tieredAmountResult,
1732
- fromDate = _ref20.fromDate,
1733
- dateMount = _ref20.dateMount,
1734
- promoMethodEnum = _ref20.promoMethodEnum,
1735
- discountPct = _ref20.discountPct,
1736
- nominalAmount = _ref20.nominalAmount,
1737
- promoId = _ref20.promoId,
1738
- id = _ref20.id,
1739
- doorsill = _ref20.doorsill;
1780
+ var _ref22 = element || {},
1781
+ couponCode = _ref22.couponCode,
1782
+ name = _ref22.name,
1783
+ tieredAmountResult = _ref22.tieredAmountResult,
1784
+ fromDate = _ref22.fromDate,
1785
+ dateMount = _ref22.dateMount,
1786
+ promoMethodEnum = _ref22.promoMethodEnum,
1787
+ discountPct = _ref22.discountPct,
1788
+ nominalAmount = _ref22.nominalAmount,
1789
+ promoId = _ref22.promoId,
1790
+ id = _ref22.id,
1791
+ doorsill = _ref22.doorsill;
1740
1792
 
1741
1793
  var condValue = tieredAmountResult.condValue,
1742
1794
  promoDiscount = tieredAmountResult.promoDiscount,
@@ -1764,10 +1816,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
1764
1816
  // couponCategoryEnum: tieredAmountResult.couponCategoryEnum,
1765
1817
  // id
1766
1818
  // })
1767
- _this14.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
1819
+ _this15.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
1768
1820
  djq1 = false;
1769
1821
  } else {
1770
- _this14.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
1822
+ _this15.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
1771
1823
  // this.currentMode.djqs[0].couponCategoryEnum = 'couponCategoryEnum';
1772
1824
  // djq1.couponCategoryEnum = element.tieredAmountResult.couponCategoryEnum
1773
1825
  }
@@ -1780,8 +1832,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
1780
1832
  }, {
1781
1833
  key: 'calcDjqValue',
1782
1834
  value: function calcDjqValue(q1) {
1783
- var _ref21 = _mutantsUtil.platform || {},
1784
- isNewRetailBCPos = _ref21.isNewRetailBCPos;
1835
+ var _ref23 = _mutantsUtil.platform || {},
1836
+ isNewRetailBCPos = _ref23.isNewRetailBCPos;
1785
1837
 
1786
1838
  var _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(),
1787
1839
  Differentiate = _enumController$getEn16.Differentiate;
@@ -1857,7 +1909,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1857
1909
 
1858
1910
  if (this.amount > 0 && (v === '' || v === '0.00') && sum !== 0) {
1859
1911
  this.currentMode.errinfo = "实收金额必须录入";
1860
- } else if (Math.abs(parseFloat(v)) > Math.abs((0, _utils.getFixedNumber)(sum))) {
1912
+ } else if (Math.abs(parseFloat(v)) > Math.abs(sum)) {
1861
1913
  this.currentMode.errinfo = "实收不应大于应收";
1862
1914
  } else if (parseFloat(v) > 0 && parseFloat(v) > (max || 0)) {
1863
1915
  this.currentMode.errinfo = "余额不足";
@@ -1871,8 +1923,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
1871
1923
  }, {
1872
1924
  key: 'setPaymodes',
1873
1925
  value: function () {
1874
- var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
1875
- var _this15 = this;
1926
+ var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
1927
+ var _this16 = this;
1876
1928
 
1877
1929
  var _enumController$getEn18, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
1878
1930
 
@@ -1896,7 +1948,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1896
1948
  //产品需求确认会员储值卡结算方式前端展示统一调整为“储值卡" tuzha by 2020-07-08
1897
1949
 
1898
1950
  if (mode.Code == PayStyle.hyczk) {
1899
- mode.Name = '储值卡';
1951
+ mode.Name = '储值余额';
1900
1952
  }
1901
1953
  paymodes.push({
1902
1954
  name: mode.Name,
@@ -1912,7 +1964,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1912
1964
  calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88"
1913
1965
  });
1914
1966
  });
1915
- _this15.paymodes = paymodes;
1967
+ _this16.paymodes = paymodes;
1916
1968
  //modes.QuickSettleStyles
1917
1969
  });
1918
1970
  }
@@ -1926,7 +1978,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1926
1978
  }));
1927
1979
 
1928
1980
  function setPaymodes(_x5, _x6) {
1929
- return _ref22.apply(this, arguments);
1981
+ return _ref24.apply(this, arguments);
1930
1982
  }
1931
1983
 
1932
1984
  return setPaymodes;
@@ -1943,47 +1995,47 @@ var PayMode = exports.PayMode = (_class3 = function () {
1943
1995
  }
1944
1996
  }]);
1945
1997
  return PayMode;
1946
- }(), (_descriptor3 = _applyDecoratedDescriptor(_class3.prototype, 'currentFocus', [_mobx.observable], {
1998
+ }(), (_descriptor4 = _applyDecoratedDescriptor(_class3.prototype, 'currentFocus', [_mobx.observable], {
1947
1999
  enumerable: true,
1948
2000
  initializer: function initializer() {
1949
2001
  return "";
1950
2002
  }
1951
- }), _descriptor4 = _applyDecoratedDescriptor(_class3.prototype, 'received', [_mobx.observable], {
2003
+ }), _descriptor5 = _applyDecoratedDescriptor(_class3.prototype, 'received', [_mobx.observable], {
1952
2004
  enumerable: true,
1953
2005
  initializer: function initializer() {
1954
2006
  return 0;
1955
2007
  }
1956
- }), _descriptor5 = _applyDecoratedDescriptor(_class3.prototype, 'receivable', [_mobx.observable], {
2008
+ }), _descriptor6 = _applyDecoratedDescriptor(_class3.prototype, 'receivable', [_mobx.observable], {
1957
2009
  enumerable: true,
1958
2010
  initializer: function initializer() {
1959
2011
  return 0;
1960
2012
  }
1961
- }), _descriptor6 = _applyDecoratedDescriptor(_class3.prototype, 'paymodes', [_mobx.observable], {
2013
+ }), _descriptor7 = _applyDecoratedDescriptor(_class3.prototype, 'paymodes', [_mobx.observable], {
1962
2014
  enumerable: true,
1963
2015
  initializer: function initializer() {
1964
2016
  return [];
1965
2017
  }
1966
- }), _descriptor7 = _applyDecoratedDescriptor(_class3.prototype, 'thePaymodes', [_mobx.observable], {
2018
+ }), _descriptor8 = _applyDecoratedDescriptor(_class3.prototype, 'thePaymodes', [_mobx.observable], {
1967
2019
  enumerable: true,
1968
2020
  initializer: function initializer() {
1969
2021
  return [];
1970
2022
  }
1971
- }), _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], {
2023
+ }), _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), _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, 'calcCheckList', [_mobx.action], {
1972
2024
  enumerable: true,
1973
2025
  initializer: function initializer() {
1974
- var _this16 = this;
2026
+ var _this17 = this;
1975
2027
 
1976
2028
  return function () {
1977
- _this16.checkList = [];
2029
+ _this17.checkList = [];
1978
2030
  };
1979
2031
  }
1980
- }), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqCheckValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqCheckValue'), _class3.prototype), _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, 'setCouponNum', [_mobx.action], {
2032
+ }), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqCheckValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqCheckValue'), _class3.prototype), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'setCouponNum', [_mobx.action], {
1981
2033
  enumerable: true,
1982
2034
  initializer: function initializer() {
1983
- var _this17 = this;
2035
+ var _this18 = this;
1984
2036
 
1985
2037
  return function (id, couponNum, promoMethodEnum, nominalAmount, promoDiscount) {
1986
- _this17.currentMode.djqs.forEach(function (ele) {
2038
+ _this18.currentMode.djqs.forEach(function (ele) {
1987
2039
  if (ele.id === id) {
1988
2040
  promoMethodEnum == "CASH_COUPON" ? ele.amount = nominalAmount : ele.amount = promoDiscount;
1989
2041
  ele.couponCategoryEnum = couponNum;
@@ -1993,10 +2045,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
1993
2045
  });
1994
2046
  };
1995
2047
  }
1996
- }), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
2048
+ }), _descriptor11 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
1997
2049
  enumerable: true,
1998
2050
  initializer: function initializer() {
1999
- var _this18 = this;
2051
+ var _this19 = this;
2000
2052
 
2001
2053
  return function (promoCouponCode, name, IsEnable, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id) {
2002
2054
  var djq = {
@@ -2018,25 +2070,25 @@ var PayMode = exports.PayMode = (_class3 = function () {
2018
2070
  couponCategoryEnum: couponCategoryEnum,
2019
2071
  id: id
2020
2072
  };
2021
- _this18.currentMode.djqs.push(djq);
2073
+ _this19.currentMode.djqs.push(djq);
2022
2074
  };
2023
2075
  }
2024
2076
  }), _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);
2025
2077
  var Member = exports.Member = (_class5 = function () {
2026
2078
  function Member(m) {
2027
- var _this19 = this;
2079
+ var _this20 = this;
2028
2080
 
2029
2081
  (0, _classCallCheck3.default)(this, Member);
2030
2082
 
2031
- _initDefineProp(this, 'cardNo', _descriptor11, this);
2083
+ _initDefineProp(this, 'cardNo', _descriptor12, this);
2032
2084
 
2033
- _initDefineProp(this, 'balance', _descriptor12, this);
2085
+ _initDefineProp(this, 'balance', _descriptor13, this);
2034
2086
 
2035
- _initDefineProp(this, 'exchangable', _descriptor13, this);
2087
+ _initDefineProp(this, 'exchangable', _descriptor14, this);
2036
2088
 
2037
- _initDefineProp(this, 'MeStorageCardId', _descriptor14, this);
2089
+ _initDefineProp(this, 'MeStorageCardId', _descriptor15, this);
2038
2090
 
2039
- _initDefineProp(this, 'StorageCardNo', _descriptor15, this);
2091
+ _initDefineProp(this, 'StorageCardNo', _descriptor16, this);
2040
2092
 
2041
2093
  if (m) {
2042
2094
  this.id = m.ID;
@@ -2047,17 +2099,17 @@ var Member = exports.Member = (_class5 = function () {
2047
2099
  return key == 'canusedbalancestorage';
2048
2100
  });
2049
2101
 
2050
- var _ref23 = _mutantsUtil.platform || {},
2051
- isNewRetailBCPos = _ref23.isNewRetailBCPos;
2102
+ var _ref25 = _mutantsUtil.platform || {},
2103
+ isNewRetailBCPos = _ref25.isNewRetailBCPos;
2052
2104
 
2053
2105
  m.StorageCardNo && (this.StorageCardNo = m.StorageCardNo);
2054
2106
  m.MeStorageCardId && (this.MeStorageCardId = m.MeStorageCardId);
2055
2107
  (0, _mobx.runInAction)(function () {
2056
- _this19.cardNo = m.CardCode;
2108
+ _this20.cardNo = m.CardCode;
2057
2109
  if (index >= 0) {
2058
- _this19.balance = parseFloat(m.DynamicPropertyValues[index]);
2110
+ _this20.balance = parseFloat(m.DynamicPropertyValues[index]);
2059
2111
  } else {
2060
- _this19.balance = _this19.rawbalance;
2112
+ _this20.balance = _this20.rawbalance;
2061
2113
  }
2062
2114
  });
2063
2115
  this.needPwd = m.MemberType ? m.MemberType.IsNeedPwd : false;
@@ -2089,19 +2141,19 @@ var Member = exports.Member = (_class5 = function () {
2089
2141
  }
2090
2142
  }]);
2091
2143
  return Member;
2092
- }(), (_descriptor11 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
2144
+ }(), (_descriptor12 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
2093
2145
  enumerable: true,
2094
2146
  initializer: null
2095
- }), _descriptor12 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
2147
+ }), _descriptor13 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
2096
2148
  enumerable: true,
2097
2149
  initializer: null
2098
- }), _descriptor13 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
2150
+ }), _descriptor14 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
2099
2151
  enumerable: true,
2100
2152
  initializer: null
2101
- }), _descriptor14 = _applyDecoratedDescriptor(_class5.prototype, 'MeStorageCardId', [_mobx.observable], {
2153
+ }), _descriptor15 = _applyDecoratedDescriptor(_class5.prototype, 'MeStorageCardId', [_mobx.observable], {
2102
2154
  enumerable: true,
2103
2155
  initializer: null
2104
- }), _descriptor15 = _applyDecoratedDescriptor(_class5.prototype, 'StorageCardNo', [_mobx.observable], {
2156
+ }), _descriptor16 = _applyDecoratedDescriptor(_class5.prototype, 'StorageCardNo', [_mobx.observable], {
2105
2157
  enumerable: true,
2106
2158
  initializer: null
2107
2159
  }), _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);