tplus-components-touch 3.25.7 → 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.
Files changed (47) hide show
  1. package/dist/components/billSearch/api.js +74 -13
  2. package/dist/components/billSearch/api.js.map +1 -1
  3. package/dist/components/billSearch/index.js +14 -14
  4. package/dist/components/billSearch/index.js.map +1 -1
  5. package/dist/components/cloudPrint/index.js +4 -57
  6. package/dist/components/cloudPrint/index.js.map +1 -1
  7. package/dist/components/deliverySearch/index.js +8 -12
  8. package/dist/components/deliverySearch/index.js.map +1 -1
  9. package/dist/components/hotKey/localConfig.js +52 -0
  10. package/dist/components/hotKey/localConfig.js.map +1 -1
  11. package/dist/components/inventorySearch/store.js +12 -31
  12. package/dist/components/inventorySearch/store.js.map +1 -1
  13. package/dist/components/inventorySearch/tab.js +2 -9
  14. package/dist/components/inventorySearch/tab.js.map +1 -1
  15. package/dist/components/loading/loadingContent.js +4 -12
  16. package/dist/components/loading/loadingContent.js.map +1 -1
  17. package/dist/components/loading/style.less +5 -14
  18. package/dist/components/message/index.js +5 -8
  19. package/dist/components/message/index.js.map +1 -1
  20. package/dist/components/presale/pickup.js +419 -0
  21. package/dist/components/presale/pickup.js.map +1 -0
  22. package/dist/components/presale/style.less +48 -0
  23. package/dist/components/settlement/settlement.js +207 -65
  24. package/dist/components/settlement/settlement.js.map +1 -1
  25. package/dist/components/settlement/settlementStore.js +157 -107
  26. package/dist/components/settlement/settlementStore.js.map +1 -1
  27. package/dist/components/socket/index.js +5 -6
  28. package/dist/components/socket/index.js.map +1 -1
  29. package/dist/components/ticon/iconfont/demo.css +539 -539
  30. package/dist/components/ticon/iconfont/demo_index.html +5225 -5202
  31. package/dist/components/ticon/iconfont/iconfont.css +891 -887
  32. package/dist/components/ticon/iconfont/iconfont.js +1 -1
  33. package/dist/components/ticon/iconfont/iconfont.js.map +1 -1
  34. package/dist/components/ticon/iconfont/iconfont.json +1542 -1535
  35. package/dist/components/ticon/iconfont/iconfont.ttf +0 -0
  36. package/dist/components/ticon/iconfont/iconfont.woff +0 -0
  37. package/dist/components/ticon/iconfont/iconfont.woff2 +0 -0
  38. package/dist/components/touchTable/index.js +4 -0
  39. package/dist/components/touchTable/index.js.map +1 -1
  40. package/dist/index.js +8 -8
  41. package/dist/index.js.map +1 -1
  42. package/dist/util/tools.js +7 -5
  43. package/dist/util/tools.js.map +1 -1
  44. package/package.json +35 -35
  45. package/dist/components/input/scanInput.js +0 -98
  46. package/dist/components/input/scanInput.js.map +0 -1
  47. package/dist/components/input/scanInput.less +0 -28
@@ -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,7 +648,11 @@ var SettlementStore = (_class = function () {
611
648
  }, {
612
649
  key: 'getLoginInfo',
613
650
  value: function getLoginInfo() {
614
- return _mutantsMicrofx.stores.user.options.get('loginInfo');
651
+ var _ref8 = _mutantsMicrofx.localStore.get('user') || {},
652
+ _ref8$loginInfo = _ref8.loginInfo,
653
+ loginInfo = _ref8$loginInfo === undefined ? {} : _ref8$loginInfo;
654
+
655
+ return loginInfo;
615
656
  }
616
657
  }, {
617
658
  key: 'loadCzk',
@@ -628,8 +669,8 @@ var SettlementStore = (_class = function () {
628
669
  var IdStore = this.storeInfo.storeID;
629
670
  var StoreCode = this.storeInfo.storeCode; //_find(this.storeInfo.storeInfos,(store)=>{return store.ID==IdStore;}).Code;
630
671
 
631
- var _ref7 = _mutantsUtil.platform || {},
632
- isNewRetailBCPos = _ref7.isNewRetailBCPos;
672
+ var _ref9 = _mutantsUtil.platform || {},
673
+ isNewRetailBCPos = _ref9.isNewRetailBCPos;
633
674
 
634
675
  var address = '';
635
676
  if (isNewRetailBCPos) {
@@ -639,8 +680,8 @@ var SettlementStore = (_class = function () {
639
680
  var data = result.data;
640
681
  var m = data;
641
682
 
642
- var _ref8 = _mutantsUtil.platform || {},
643
- isNewRetailBCPos = _ref8.isNewRetailBCPos;
683
+ var _ref10 = _mutantsUtil.platform || {},
684
+ isNewRetailBCPos = _ref10.isNewRetailBCPos;
644
685
 
645
686
  if (isNewRetailBCPos) {
646
687
  _this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
@@ -685,8 +726,8 @@ var SettlementStore = (_class = function () {
685
726
  var data = JSON.parse(result.Data);
686
727
  var m = data && data.length > 0 && data[0];
687
728
 
688
- var _ref9 = _mutantsUtil.platform || {},
689
- isNewRetailBCPos = _ref9.isNewRetailBCPos;
729
+ var _ref11 = _mutantsUtil.platform || {},
730
+ isNewRetailBCPos = _ref11.isNewRetailBCPos;
690
731
 
691
732
  if (isNewRetailBCPos) {
692
733
  _this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
@@ -980,8 +1021,8 @@ var SettlementStore = (_class = function () {
980
1021
  }, {
981
1022
  key: 'commit',
982
1023
  value: function () {
983
- var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
984
- var _ref11, isNewRetailBCPos;
1024
+ var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
1025
+ var _ref13, isNewRetailBCPos;
985
1026
 
986
1027
  return _regenerator2.default.wrap(function _callee2$(_context2) {
987
1028
  while (1) {
@@ -997,7 +1038,7 @@ var SettlementStore = (_class = function () {
997
1038
  return _context2.abrupt('return', _promise2.default.resolve(true));
998
1039
 
999
1040
  case 3:
1000
- _ref11 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref11.isNewRetailBCPos;
1041
+ _ref13 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref13.isNewRetailBCPos;
1001
1042
  _context2.prev = 4;
1002
1043
 
1003
1044
  if (!(this.type == 1)) {
@@ -1053,7 +1094,7 @@ var SettlementStore = (_class = function () {
1053
1094
  }));
1054
1095
 
1055
1096
  function commit(_x2) {
1056
- return _ref10.apply(this, arguments);
1097
+ return _ref12.apply(this, arguments);
1057
1098
  }
1058
1099
 
1059
1100
  return commit;
@@ -1111,10 +1152,10 @@ var SettlementStore = (_class = function () {
1111
1152
  }, {
1112
1153
  key: 'save',
1113
1154
  value: function () {
1114
- var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
1155
+ var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
1115
1156
  var _this11 = this;
1116
1157
 
1117
- var _enumController$getEn14, PayStyle, _ref14, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1158
+ var _enumController$getEn14, PayStyle, _ref16, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1118
1159
 
1119
1160
  return _regenerator2.default.wrap(function _callee3$(_context3) {
1120
1161
  while (1) {
@@ -1194,8 +1235,8 @@ var SettlementStore = (_class = function () {
1194
1235
  }
1195
1236
  });
1196
1237
 
1197
- var _ref13 = _mutantsUtil.platform || {},
1198
- isNewRetailBCPos = _ref13.isNewRetailBCPos;
1238
+ var _ref15 = _mutantsUtil.platform || {},
1239
+ isNewRetailBCPos = _ref15.isNewRetailBCPos;
1199
1240
 
1200
1241
  if (_this11.dto.RetailStorageDetails.length > 0) {
1201
1242
  var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
@@ -1229,7 +1270,7 @@ var SettlementStore = (_class = function () {
1229
1270
  _this11.dto.Idmember = Idmember;
1230
1271
  }
1231
1272
  });
1232
- _ref14 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref14.isNewRetailBCPos;
1273
+ _ref16 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref16.isNewRetailBCPos;
1233
1274
 
1234
1275
  console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
1235
1276
 
@@ -1299,7 +1340,7 @@ var SettlementStore = (_class = function () {
1299
1340
  }));
1300
1341
 
1301
1342
  function save() {
1302
- return _ref12.apply(this, arguments);
1343
+ return _ref14.apply(this, arguments);
1303
1344
  }
1304
1345
 
1305
1346
  return save;
@@ -1312,7 +1353,7 @@ var SettlementStore = (_class = function () {
1312
1353
  }, {
1313
1354
  key: 'querySettleResult',
1314
1355
  value: function () {
1315
- var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1356
+ var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1316
1357
  return _regenerator2.default.wrap(function _callee4$(_context4) {
1317
1358
  while (1) {
1318
1359
  switch (_context4.prev = _context4.next) {
@@ -1340,7 +1381,7 @@ var SettlementStore = (_class = function () {
1340
1381
  }));
1341
1382
 
1342
1383
  function querySettleResult() {
1343
- return _ref15.apply(this, arguments);
1384
+ return _ref17.apply(this, arguments);
1344
1385
  }
1345
1386
 
1346
1387
  return querySettleResult;
@@ -1366,14 +1407,14 @@ var SettlementStore = (_class = function () {
1366
1407
  }, {
1367
1408
  key: 'validePwd',
1368
1409
  value: function () {
1369
- var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
1370
- 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;
1371
1412
 
1372
1413
  return _regenerator2.default.wrap(function _callee5$(_context5) {
1373
1414
  while (1) {
1374
1415
  switch (_context5.prev = _context5.next) {
1375
1416
  case 0:
1376
- _ref17 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref17.isNewRetailBCPos;
1417
+ _ref19 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref19.isNewRetailBCPos;
1377
1418
  _context5.prev = 1;
1378
1419
 
1379
1420
  if (!isNewRetailBCPos) {
@@ -1458,7 +1499,7 @@ var SettlementStore = (_class = function () {
1458
1499
  }));
1459
1500
 
1460
1501
  function validePwd(_x3) {
1461
- return _ref16.apply(this, arguments);
1502
+ return _ref18.apply(this, arguments);
1462
1503
  }
1463
1504
 
1464
1505
  return validePwd;
@@ -1497,14 +1538,14 @@ var SettlementStore = (_class = function () {
1497
1538
  var _this13 = this;
1498
1539
 
1499
1540
  return function () {
1500
- var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1501
- var _getLoginInfo, IdStore, StoreCode, resp;
1541
+ var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1542
+ var _getLoginInfo2, IdStore, StoreCode, resp;
1502
1543
 
1503
1544
  return _regenerator2.default.wrap(function _callee6$(_context6) {
1504
1545
  while (1) {
1505
1546
  switch (_context6.prev = _context6.next) {
1506
1547
  case 0:
1507
- _getLoginInfo = _this13.getLoginInfo(), IdStore = _getLoginInfo.IdStore, StoreCode = _getLoginInfo.StoreCode;
1548
+ _getLoginInfo2 = _this13.getLoginInfo(), IdStore = _getLoginInfo2.IdStore, StoreCode = _getLoginInfo2.StoreCode;
1508
1549
  _context6.next = 3;
1509
1550
  return (0, _tplusApi.tApi)({ Idmember: _this13.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
1510
1551
 
@@ -1524,10 +1565,19 @@ var SettlementStore = (_class = function () {
1524
1565
  }));
1525
1566
 
1526
1567
  return function (_x4) {
1527
- return _ref18.apply(this, arguments);
1568
+ return _ref20.apply(this, arguments);
1528
1569
  };
1529
1570
  }();
1530
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
+ }
1531
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);
1532
1582
  exports.default = SettlementStore;
1533
1583
  var PayMode = exports.PayMode = (_class3 = function () {
@@ -1542,15 +1592,15 @@ var PayMode = exports.PayMode = (_class3 = function () {
1542
1592
  this.onlineamount = 0;
1543
1593
  this.maxamount = 0;
1544
1594
 
1545
- _initDefineProp(this, 'currentFocus', _descriptor3, this);
1595
+ _initDefineProp(this, 'currentFocus', _descriptor4, this);
1546
1596
 
1547
- _initDefineProp(this, 'received', _descriptor4, this);
1597
+ _initDefineProp(this, 'received', _descriptor5, this);
1548
1598
 
1549
- _initDefineProp(this, 'receivable', _descriptor5, this);
1599
+ _initDefineProp(this, 'receivable', _descriptor6, this);
1550
1600
 
1551
- _initDefineProp(this, 'paymodes', _descriptor6, this);
1601
+ _initDefineProp(this, 'paymodes', _descriptor7, this);
1552
1602
 
1553
- _initDefineProp(this, 'thePaymodes', _descriptor7, this);
1603
+ _initDefineProp(this, 'thePaymodes', _descriptor8, this);
1554
1604
 
1555
1605
  this.currentMode = null;
1556
1606
  this.checkList = [];
@@ -1559,11 +1609,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
1559
1609
  hotKey: "Ctrl+M"
1560
1610
  };
1561
1611
 
1562
- _initDefineProp(this, 'calcCheckList', _descriptor8, this);
1612
+ _initDefineProp(this, 'calcCheckList', _descriptor9, this);
1563
1613
 
1564
- _initDefineProp(this, 'setCouponNum', _descriptor9, this);
1614
+ _initDefineProp(this, 'setCouponNum', _descriptor10, this);
1565
1615
 
1566
- _initDefineProp(this, 'addDjqs', _descriptor10, this);
1616
+ _initDefineProp(this, 'addDjqs', _descriptor11, this);
1567
1617
  }
1568
1618
  // @observable store = null;
1569
1619
 
@@ -1602,7 +1652,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1602
1652
  }, {
1603
1653
  key: 'calcDjqCheckValue',
1604
1654
  value: function calcDjqCheckValue(q1, dto, params) {
1605
- var _this14 = this;
1655
+ var _this15 = this;
1606
1656
 
1607
1657
  var useLimitPerOrder = (0, _tplusPoslogin.PosInitData)('UseLimitPerOrder');
1608
1658
  var qList = (0, _filter3.default)(this.currentMode.djqs, function (djq) {
@@ -1616,8 +1666,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
1616
1666
  this.checkList = [];
1617
1667
  }
1618
1668
 
1619
- var _ref19 = _mutantsUtil.platform || {},
1620
- isNewRetailBCPos = _ref19.isNewRetailBCPos;
1669
+ var _ref21 = _mutantsUtil.platform || {},
1670
+ isNewRetailBCPos = _ref21.isNewRetailBCPos;
1621
1671
 
1622
1672
  var _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(),
1623
1673
  PayStyle = _enumController$getEn15.PayStyle,
@@ -1649,7 +1699,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1649
1699
  if (!q1.checked) {
1650
1700
  this.checkList.forEach(function (ele, i) {
1651
1701
  if (ele.id === q1.id) {
1652
- _this14.checkList.splice(i, 1);
1702
+ _this15.checkList.splice(i, 1);
1653
1703
  }
1654
1704
  });
1655
1705
  } else {
@@ -1691,13 +1741,13 @@ var PayMode = exports.PayMode = (_class3 = function () {
1691
1741
  // }
1692
1742
  // else
1693
1743
  // {
1744
+
1694
1745
  var bookingQuantity = 0;
1695
1746
  if (item.BookingQuantity) {
1696
1747
  bookingQuantity = item.BookingQuantity;
1697
1748
  }
1698
1749
  detailDTO.listPrice = JSON.getCellValue(item, "listPrice");
1699
1750
  detailDTO.netAmountWithTax = Math.Multiply(detailDTO.listPrice, Math.Minus(item.Quantity, bookingQuantity)); //item.TaxAmount;
1700
- //}
1701
1751
  detailDTO.taxRate = item.TaxRate;
1702
1752
  detailDTO.quantity = item.Quantity;
1703
1753
 
@@ -1721,24 +1771,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
1721
1771
  if (result && result.length != 0) {
1722
1772
  result.forEach(function (element, index) {
1723
1773
  var djq1 = false;
1724
- _this14.currentMode.djqs.forEach(function (djq) {
1774
+ _this15.currentMode.djqs.forEach(function (djq) {
1725
1775
  if (element.id === djq.id) {
1726
1776
  djq1 = true;
1727
1777
  }
1728
1778
  });
1729
1779
 
1730
- var _ref20 = element || {},
1731
- couponCode = _ref20.couponCode,
1732
- name = _ref20.name,
1733
- tieredAmountResult = _ref20.tieredAmountResult,
1734
- fromDate = _ref20.fromDate,
1735
- dateMount = _ref20.dateMount,
1736
- promoMethodEnum = _ref20.promoMethodEnum,
1737
- discountPct = _ref20.discountPct,
1738
- nominalAmount = _ref20.nominalAmount,
1739
- promoId = _ref20.promoId,
1740
- id = _ref20.id,
1741
- 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;
1742
1792
 
1743
1793
  var condValue = tieredAmountResult.condValue,
1744
1794
  promoDiscount = tieredAmountResult.promoDiscount,
@@ -1766,10 +1816,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
1766
1816
  // couponCategoryEnum: tieredAmountResult.couponCategoryEnum,
1767
1817
  // id
1768
1818
  // })
1769
- _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);
1770
1820
  djq1 = false;
1771
1821
  } else {
1772
- _this14.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
1822
+ _this15.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
1773
1823
  // this.currentMode.djqs[0].couponCategoryEnum = 'couponCategoryEnum';
1774
1824
  // djq1.couponCategoryEnum = element.tieredAmountResult.couponCategoryEnum
1775
1825
  }
@@ -1782,8 +1832,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
1782
1832
  }, {
1783
1833
  key: 'calcDjqValue',
1784
1834
  value: function calcDjqValue(q1) {
1785
- var _ref21 = _mutantsUtil.platform || {},
1786
- isNewRetailBCPos = _ref21.isNewRetailBCPos;
1835
+ var _ref23 = _mutantsUtil.platform || {},
1836
+ isNewRetailBCPos = _ref23.isNewRetailBCPos;
1787
1837
 
1788
1838
  var _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(),
1789
1839
  Differentiate = _enumController$getEn16.Differentiate;
@@ -1859,7 +1909,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1859
1909
 
1860
1910
  if (this.amount > 0 && (v === '' || v === '0.00') && sum !== 0) {
1861
1911
  this.currentMode.errinfo = "实收金额必须录入";
1862
- } else if (Math.abs(parseFloat(v)) > Math.abs((0, _utils.getFixedNumber)(sum))) {
1912
+ } else if (Math.abs(parseFloat(v)) > Math.abs(sum)) {
1863
1913
  this.currentMode.errinfo = "实收不应大于应收";
1864
1914
  } else if (parseFloat(v) > 0 && parseFloat(v) > (max || 0)) {
1865
1915
  this.currentMode.errinfo = "余额不足";
@@ -1873,8 +1923,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
1873
1923
  }, {
1874
1924
  key: 'setPaymodes',
1875
1925
  value: function () {
1876
- var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
1877
- var _this15 = this;
1926
+ var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
1927
+ var _this16 = this;
1878
1928
 
1879
1929
  var _enumController$getEn18, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
1880
1930
 
@@ -1914,7 +1964,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1914
1964
  calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88"
1915
1965
  });
1916
1966
  });
1917
- _this15.paymodes = paymodes;
1967
+ _this16.paymodes = paymodes;
1918
1968
  //modes.QuickSettleStyles
1919
1969
  });
1920
1970
  }
@@ -1928,7 +1978,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1928
1978
  }));
1929
1979
 
1930
1980
  function setPaymodes(_x5, _x6) {
1931
- return _ref22.apply(this, arguments);
1981
+ return _ref24.apply(this, arguments);
1932
1982
  }
1933
1983
 
1934
1984
  return setPaymodes;
@@ -1945,47 +1995,47 @@ var PayMode = exports.PayMode = (_class3 = function () {
1945
1995
  }
1946
1996
  }]);
1947
1997
  return PayMode;
1948
- }(), (_descriptor3 = _applyDecoratedDescriptor(_class3.prototype, 'currentFocus', [_mobx.observable], {
1998
+ }(), (_descriptor4 = _applyDecoratedDescriptor(_class3.prototype, 'currentFocus', [_mobx.observable], {
1949
1999
  enumerable: true,
1950
2000
  initializer: function initializer() {
1951
2001
  return "";
1952
2002
  }
1953
- }), _descriptor4 = _applyDecoratedDescriptor(_class3.prototype, 'received', [_mobx.observable], {
2003
+ }), _descriptor5 = _applyDecoratedDescriptor(_class3.prototype, 'received', [_mobx.observable], {
1954
2004
  enumerable: true,
1955
2005
  initializer: function initializer() {
1956
2006
  return 0;
1957
2007
  }
1958
- }), _descriptor5 = _applyDecoratedDescriptor(_class3.prototype, 'receivable', [_mobx.observable], {
2008
+ }), _descriptor6 = _applyDecoratedDescriptor(_class3.prototype, 'receivable', [_mobx.observable], {
1959
2009
  enumerable: true,
1960
2010
  initializer: function initializer() {
1961
2011
  return 0;
1962
2012
  }
1963
- }), _descriptor6 = _applyDecoratedDescriptor(_class3.prototype, 'paymodes', [_mobx.observable], {
2013
+ }), _descriptor7 = _applyDecoratedDescriptor(_class3.prototype, 'paymodes', [_mobx.observable], {
1964
2014
  enumerable: true,
1965
2015
  initializer: function initializer() {
1966
2016
  return [];
1967
2017
  }
1968
- }), _descriptor7 = _applyDecoratedDescriptor(_class3.prototype, 'thePaymodes', [_mobx.observable], {
2018
+ }), _descriptor8 = _applyDecoratedDescriptor(_class3.prototype, 'thePaymodes', [_mobx.observable], {
1969
2019
  enumerable: true,
1970
2020
  initializer: function initializer() {
1971
2021
  return [];
1972
2022
  }
1973
- }), _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], {
1974
2024
  enumerable: true,
1975
2025
  initializer: function initializer() {
1976
- var _this16 = this;
2026
+ var _this17 = this;
1977
2027
 
1978
2028
  return function () {
1979
- _this16.checkList = [];
2029
+ _this17.checkList = [];
1980
2030
  };
1981
2031
  }
1982
- }), _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], {
1983
2033
  enumerable: true,
1984
2034
  initializer: function initializer() {
1985
- var _this17 = this;
2035
+ var _this18 = this;
1986
2036
 
1987
2037
  return function (id, couponNum, promoMethodEnum, nominalAmount, promoDiscount) {
1988
- _this17.currentMode.djqs.forEach(function (ele) {
2038
+ _this18.currentMode.djqs.forEach(function (ele) {
1989
2039
  if (ele.id === id) {
1990
2040
  promoMethodEnum == "CASH_COUPON" ? ele.amount = nominalAmount : ele.amount = promoDiscount;
1991
2041
  ele.couponCategoryEnum = couponNum;
@@ -1995,10 +2045,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
1995
2045
  });
1996
2046
  };
1997
2047
  }
1998
- }), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
2048
+ }), _descriptor11 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
1999
2049
  enumerable: true,
2000
2050
  initializer: function initializer() {
2001
- var _this18 = this;
2051
+ var _this19 = this;
2002
2052
 
2003
2053
  return function (promoCouponCode, name, IsEnable, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id) {
2004
2054
  var djq = {
@@ -2020,25 +2070,25 @@ var PayMode = exports.PayMode = (_class3 = function () {
2020
2070
  couponCategoryEnum: couponCategoryEnum,
2021
2071
  id: id
2022
2072
  };
2023
- _this18.currentMode.djqs.push(djq);
2073
+ _this19.currentMode.djqs.push(djq);
2024
2074
  };
2025
2075
  }
2026
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);
2027
2077
  var Member = exports.Member = (_class5 = function () {
2028
2078
  function Member(m) {
2029
- var _this19 = this;
2079
+ var _this20 = this;
2030
2080
 
2031
2081
  (0, _classCallCheck3.default)(this, Member);
2032
2082
 
2033
- _initDefineProp(this, 'cardNo', _descriptor11, this);
2083
+ _initDefineProp(this, 'cardNo', _descriptor12, this);
2034
2084
 
2035
- _initDefineProp(this, 'balance', _descriptor12, this);
2085
+ _initDefineProp(this, 'balance', _descriptor13, this);
2036
2086
 
2037
- _initDefineProp(this, 'exchangable', _descriptor13, this);
2087
+ _initDefineProp(this, 'exchangable', _descriptor14, this);
2038
2088
 
2039
- _initDefineProp(this, 'MeStorageCardId', _descriptor14, this);
2089
+ _initDefineProp(this, 'MeStorageCardId', _descriptor15, this);
2040
2090
 
2041
- _initDefineProp(this, 'StorageCardNo', _descriptor15, this);
2091
+ _initDefineProp(this, 'StorageCardNo', _descriptor16, this);
2042
2092
 
2043
2093
  if (m) {
2044
2094
  this.id = m.ID;
@@ -2049,17 +2099,17 @@ var Member = exports.Member = (_class5 = function () {
2049
2099
  return key == 'canusedbalancestorage';
2050
2100
  });
2051
2101
 
2052
- var _ref23 = _mutantsUtil.platform || {},
2053
- isNewRetailBCPos = _ref23.isNewRetailBCPos;
2102
+ var _ref25 = _mutantsUtil.platform || {},
2103
+ isNewRetailBCPos = _ref25.isNewRetailBCPos;
2054
2104
 
2055
2105
  m.StorageCardNo && (this.StorageCardNo = m.StorageCardNo);
2056
2106
  m.MeStorageCardId && (this.MeStorageCardId = m.MeStorageCardId);
2057
2107
  (0, _mobx.runInAction)(function () {
2058
- _this19.cardNo = m.CardCode;
2108
+ _this20.cardNo = m.CardCode;
2059
2109
  if (index >= 0) {
2060
- _this19.balance = parseFloat(m.DynamicPropertyValues[index]);
2110
+ _this20.balance = parseFloat(m.DynamicPropertyValues[index]);
2061
2111
  } else {
2062
- _this19.balance = _this19.rawbalance;
2112
+ _this20.balance = _this20.rawbalance;
2063
2113
  }
2064
2114
  });
2065
2115
  this.needPwd = m.MemberType ? m.MemberType.IsNeedPwd : false;
@@ -2091,19 +2141,19 @@ var Member = exports.Member = (_class5 = function () {
2091
2141
  }
2092
2142
  }]);
2093
2143
  return Member;
2094
- }(), (_descriptor11 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
2144
+ }(), (_descriptor12 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
2095
2145
  enumerable: true,
2096
2146
  initializer: null
2097
- }), _descriptor12 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
2147
+ }), _descriptor13 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
2098
2148
  enumerable: true,
2099
2149
  initializer: null
2100
- }), _descriptor13 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
2150
+ }), _descriptor14 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
2101
2151
  enumerable: true,
2102
2152
  initializer: null
2103
- }), _descriptor14 = _applyDecoratedDescriptor(_class5.prototype, 'MeStorageCardId', [_mobx.observable], {
2153
+ }), _descriptor15 = _applyDecoratedDescriptor(_class5.prototype, 'MeStorageCardId', [_mobx.observable], {
2104
2154
  enumerable: true,
2105
2155
  initializer: null
2106
- }), _descriptor15 = _applyDecoratedDescriptor(_class5.prototype, 'StorageCardNo', [_mobx.observable], {
2156
+ }), _descriptor16 = _applyDecoratedDescriptor(_class5.prototype, 'StorageCardNo', [_mobx.observable], {
2107
2157
  enumerable: true,
2108
2158
  initializer: null
2109
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);