tplus-components-touch 3.39.4 → 3.40.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 (203) hide show
  1. package/README.md +16 -16
  2. package/dist/components/acCitySelect/CitySelect.js +18 -18
  3. package/dist/components/acCitySelect/CitySelect.js.map +1 -1
  4. package/dist/components/acCitySelect/CitySelect.less +9 -9
  5. package/dist/components/acCitySelect/citys.js.map +1 -1
  6. package/dist/components/acCitySelect/index.js.map +1 -1
  7. package/dist/components/acCitySelect/provinceData.js +7 -7
  8. package/dist/components/acCitySelect/provinceData.js.map +1 -1
  9. package/dist/components/addLog/AddLogProcessor.js +6 -6
  10. package/dist/components/addLog/AddLogProcessor.js.map +1 -1
  11. package/dist/components/addLog/OperationLogApi.js +3 -3
  12. package/dist/components/addLog/OperationLogApi.js.map +1 -1
  13. package/dist/components/autoComplete/index.js +14 -14
  14. package/dist/components/autoComplete/index.js.map +1 -1
  15. package/dist/components/autoComplete/index.less +89 -89
  16. package/dist/components/autoComplete/option.js.map +1 -1
  17. package/dist/components/autoCompleteWithKeyboard/index.js +14 -14
  18. package/dist/components/autoCompleteWithKeyboard/index.js.map +1 -1
  19. package/dist/components/autoCompleteWithKeyboard/index.less +18 -18
  20. package/dist/components/billSearch/api.js +37 -98
  21. package/dist/components/billSearch/api.js.map +1 -1
  22. package/dist/components/billSearch/index.js +47 -82
  23. package/dist/components/billSearch/index.js.map +1 -1
  24. package/dist/components/billSearch/index.less +384 -384
  25. package/dist/components/cloudPrint/BTPrintFormatUtil.js +17 -17
  26. package/dist/components/cloudPrint/BTPrintFormatUtil.js.map +1 -1
  27. package/dist/components/cloudPrint/api.js.map +1 -1
  28. package/dist/components/cloudPrint/index.js.map +1 -1
  29. package/dist/components/cloudPrint/printDispatch.js +7 -7
  30. package/dist/components/cloudPrint/printDispatch.js.map +1 -1
  31. package/dist/components/commonForm/addressPicker/index.js +14 -23
  32. package/dist/components/commonForm/addressPicker/index.js.map +1 -1
  33. package/dist/components/commonForm/addressPicker/style.less +10 -10
  34. package/dist/components/commonForm/autoComplete/index.js.map +1 -1
  35. package/dist/components/commonForm/autoComplete/style.less +2 -2
  36. package/dist/components/commonForm/datePicker/index.js +3 -6
  37. package/dist/components/commonForm/datePicker/index.js.map +1 -1
  38. package/dist/components/commonForm/datePicker/style.less +4 -4
  39. package/dist/components/commonForm/formControl/index.js +1 -2
  40. package/dist/components/commonForm/formControl/index.js.map +1 -1
  41. package/dist/components/commonForm/index.js +7 -13
  42. package/dist/components/commonForm/index.js.map +1 -1
  43. package/dist/components/commonForm/inputNumber/index.js.map +1 -1
  44. package/dist/components/commonForm/inputNumber/style.less +10 -10
  45. package/dist/components/commonForm/radio/index.js.map +1 -1
  46. package/dist/components/commonForm/style.less +1 -1
  47. package/dist/components/deliverySearch/api.js +21 -21
  48. package/dist/components/deliverySearch/api.js.map +1 -1
  49. package/dist/components/deliverySearch/index.js +11 -7
  50. package/dist/components/deliverySearch/index.js.map +1 -1
  51. package/dist/components/deliverySearch/index.less +553 -553
  52. package/dist/components/form/index.js.map +1 -1
  53. package/dist/components/hardwareAPI/index.js.map +1 -1
  54. package/dist/components/hotKey/config.js +23 -23
  55. package/dist/components/hotKey/config.js.map +1 -1
  56. package/dist/components/hotKey/hotKeyModal.js.map +1 -1
  57. package/dist/components/hotKey/index.js +26 -26
  58. package/dist/components/hotKey/index.js.map +1 -1
  59. package/dist/components/hotKey/localConfig.js +0 -52
  60. package/dist/components/hotKey/localConfig.js.map +1 -1
  61. package/dist/components/hotKey/style.less +96 -96
  62. package/dist/components/hotKey/utils.js.map +1 -1
  63. package/dist/components/input/index.js +6 -6
  64. package/dist/components/input/index.js.map +1 -1
  65. package/dist/components/input/scanInput.js.map +1 -1
  66. package/dist/components/input/scanInput.less +30 -30
  67. package/dist/components/input/style.less +99 -106
  68. package/dist/components/input/tplusInput/index.js +30 -30
  69. package/dist/components/input/tplusInput/index.js.map +1 -1
  70. package/dist/components/input/tplusInput/inputContent.js.map +1 -1
  71. package/dist/components/input/tplusInput/inputs.js.map +1 -1
  72. package/dist/components/input/tplusInput/style.less +132 -132
  73. package/dist/components/input/utils/index.js.map +1 -1
  74. package/dist/components/inventorySearch/api.js +58 -58
  75. package/dist/components/inventorySearch/api.js.map +1 -1
  76. package/dist/components/inventorySearch/index.js +3 -3
  77. package/dist/components/inventorySearch/index.js.map +1 -1
  78. package/dist/components/inventorySearch/index.less +119 -119
  79. package/dist/components/inventorySearch/store.js.map +1 -1
  80. package/dist/components/inventorySearch/tab.js +6 -1
  81. package/dist/components/inventorySearch/tab.js.map +1 -1
  82. package/dist/components/keyboard/index.js.map +1 -1
  83. package/dist/components/keyboard/index.less +485 -485
  84. package/dist/components/keyboard/letterKeyboard.js +2 -2
  85. package/dist/components/keyboard/letterKeyboard.js.map +1 -1
  86. package/dist/components/keyboard/numKeyboard.js +4 -4
  87. package/dist/components/keyboard/numKeyboard.js.map +1 -1
  88. package/dist/components/keyboard/numKeyboardScan.js.map +1 -1
  89. package/dist/components/keyboard/numberButton_input.js +5 -5
  90. package/dist/components/keyboard/numberButton_input.js.map +1 -1
  91. package/dist/components/keyboard/numkeyboardPassword.js +4 -4
  92. package/dist/components/keyboard/numkeyboardPassword.js.map +1 -1
  93. package/dist/components/keyboard/onlyKeyboard.js +7 -7
  94. package/dist/components/keyboard/onlyKeyboard.js.map +1 -1
  95. package/dist/components/keyboard/onlyLetterButton.js +2 -2
  96. package/dist/components/keyboard/onlyLetterButton.js.map +1 -1
  97. package/dist/components/keyboard/onlyLetterButton2.js +2 -2
  98. package/dist/components/keyboard/onlyLetterButton2.js.map +1 -1
  99. package/dist/components/keyboard/onlyLetterButton2.less +156 -156
  100. package/dist/components/keyboard/onlyNumberButton.js +2 -2
  101. package/dist/components/keyboard/onlyNumberButton.js.map +1 -1
  102. package/dist/components/keyboard/onlyNumberButton2.js +3 -3
  103. package/dist/components/keyboard/onlyNumberButton2.js.map +1 -1
  104. package/dist/components/keyboard/textKeyboard.js.map +1 -1
  105. package/dist/components/layout/hamburger.js.map +1 -1
  106. package/dist/components/layout/index.js +10 -10
  107. package/dist/components/layout/index.js.map +1 -1
  108. package/dist/components/layout/layout.js.map +1 -1
  109. package/dist/components/layout/sider.js +12 -12
  110. package/dist/components/layout/sider.js.map +1 -1
  111. package/dist/components/layout/style.less +82 -82
  112. package/dist/components/loading/index.js +15 -15
  113. package/dist/components/loading/index.js.map +1 -1
  114. package/dist/components/loading/loadingContent.js +5 -2
  115. package/dist/components/loading/loadingContent.js.map +1 -1
  116. package/dist/components/loading/style.less +72 -72
  117. package/dist/components/loading/utils.js.map +1 -1
  118. package/dist/components/message/index.js +12 -13
  119. package/dist/components/message/index.js.map +1 -1
  120. package/dist/components/message/index.less +101 -101
  121. package/dist/components/modal/index.js.map +1 -1
  122. package/dist/components/modal/index.less +19 -19
  123. package/dist/components/modalVertical/index.js +7 -7
  124. package/dist/components/modalVertical/index.js.map +1 -1
  125. package/dist/components/modalVertical/style.less +60 -60
  126. package/dist/components/modalWraper/index.js +15 -15
  127. package/dist/components/modalWraper/index.js.map +1 -1
  128. package/dist/components/modalWraper/style.less +257 -257
  129. package/dist/components/modalWraper/utils.js.map +1 -1
  130. package/dist/components/notification/index.js +11 -12
  131. package/dist/components/notification/index.js.map +1 -1
  132. package/dist/components/notification/index.less +51 -51
  133. package/dist/components/overflowTip/index.js +15 -15
  134. package/dist/components/overflowTip/index.js.map +1 -1
  135. package/dist/components/overflowTip/style.less +66 -66
  136. package/dist/components/page/index.js.map +1 -1
  137. package/dist/components/page/index.less +21 -21
  138. package/dist/components/product/detail.js +7 -7
  139. package/dist/components/product/detail.js.map +1 -1
  140. package/dist/components/product/getCard.js +5 -5
  141. package/dist/components/product/getCard.js.map +1 -1
  142. package/dist/components/product/index.less +128 -128
  143. package/dist/components/progressState/EmptyAndErrorView.js +5 -7
  144. package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
  145. package/dist/components/progressState/ProgressState.js +10 -10
  146. package/dist/components/progressState/ProgressState.js.map +1 -1
  147. package/dist/components/progressState/index.js.map +1 -1
  148. package/dist/components/progressState/style.less +65 -65
  149. package/dist/components/scan/index.js.map +1 -1
  150. package/dist/components/scan/index.less +33 -33
  151. package/dist/components/select/index.js.map +1 -1
  152. package/dist/components/select/index.less +11 -11
  153. package/dist/components/settlement/asyncModal.js.map +1 -1
  154. package/dist/components/settlement/index.js.map +1 -1
  155. package/dist/components/settlement/moreCzkTable/index.js.map +1 -1
  156. package/dist/components/settlement/moreCzkTable/style.less +6 -6
  157. package/dist/components/settlement/prototypeTable/index.js +1 -3
  158. package/dist/components/settlement/prototypeTable/index.js.map +1 -1
  159. package/dist/components/settlement/prototypeTable/style.less +58 -58
  160. package/dist/components/settlement/prototypeTable/utils.js.map +1 -1
  161. package/dist/components/settlement/settlement.js +169 -418
  162. package/dist/components/settlement/settlement.js.map +1 -1
  163. package/dist/components/settlement/settlement.less +1690 -1705
  164. package/dist/components/settlement/settlementStore.js +111 -254
  165. package/dist/components/settlement/settlementStore.js.map +1 -1
  166. package/dist/components/settlement/utils.js +2 -2
  167. package/dist/components/settlement/utils.js.map +1 -1
  168. package/dist/components/socket/index.js +11 -11
  169. package/dist/components/socket/index.js.map +1 -1
  170. package/dist/components/spin/index.js +6 -6
  171. package/dist/components/spin/index.js.map +1 -1
  172. package/dist/components/spin/spin-style.less +436 -436
  173. package/dist/components/test/index.js +3 -3
  174. package/dist/components/test/index.js.map +1 -1
  175. package/dist/components/ticon/iconfont/demo.css +539 -539
  176. package/dist/components/ticon/iconfont/demo_index.html +5248 -5248
  177. package/dist/components/ticon/iconfont/iconfont.css +895 -895
  178. package/dist/components/ticon/iconfont/iconfont.json +1549 -1549
  179. package/dist/components/ticon/iconfont/iconfont.svg +593 -593
  180. package/dist/components/ticon/iconfont/iconfont.ttf +0 -0
  181. package/dist/components/ticon/iconfont/iconfont.woff +0 -0
  182. package/dist/components/ticon/iconfont/iconfont.woff2 +0 -0
  183. package/dist/components/ticon/index.js.map +1 -1
  184. package/dist/components/touchScroll/index.js +9 -9
  185. package/dist/components/touchScroll/index.js.map +1 -1
  186. package/dist/components/touchTable/AuthProcess.js.map +1 -1
  187. package/dist/components/touchTable/generateWater.js.map +1 -1
  188. package/dist/components/touchTable/index.js +14 -24
  189. package/dist/components/touchTable/index.js.map +1 -1
  190. package/dist/components/touchTable/index.less +376 -376
  191. package/dist/components/touchTable/utils.js.map +1 -1
  192. package/dist/demo/PopOverDemo.js.map +1 -1
  193. package/dist/index.js +8 -13
  194. package/dist/index.js.map +1 -1
  195. package/dist/util/tools.js.map +1 -1
  196. package/locales/zh/tplus-components-touch.json +1 -1
  197. package/locales/zh-CN/tplus-components-touch.json +1 -1
  198. package/mocks/memberInfo.json +79 -79
  199. package/package.json +3 -3
  200. package/tsconfig.json +26 -26
  201. package/dist/components/presale/pickup.js +0 -479
  202. package/dist/components/presale/pickup.js.map +0 -1
  203. package/dist/components/presale/style.less +0 -59
@@ -5,10 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.Member = exports.PayMode = exports.default = undefined;
7
7
 
8
- var _isInteger = require('babel-runtime/core-js/number/is-integer');
9
-
10
- var _isInteger2 = _interopRequireDefault(_isInteger);
11
-
12
8
  var _defineProperty = require('babel-runtime/core-js/object/define-property');
13
9
 
14
10
  var _defineProperty2 = _interopRequireDefault(_defineProperty);
@@ -165,7 +161,7 @@ function _initializerWarningHelper(descriptor, context) {
165
161
  var t = _mutantsMicrofx.i18n.getFixedT(null, 'newretail');
166
162
 
167
163
  var SettlementStore = (_class = function () {
168
- // 预售都是全款;预订是否全款,在点击确认支付时计算订金和商品金额计算得出
164
+ //type==2
169
165
  function SettlementStore() {
170
166
  var _this2 = this;
171
167
 
@@ -180,8 +176,6 @@ var SettlementStore = (_class = function () {
180
176
 
181
177
  _initDefineProp(this, 'newStyle', _descriptor, this);
182
178
 
183
- this.isFull = true;
184
-
185
179
  _initDefineProp(this, 'setNewStyle', _descriptor2, this);
186
180
 
187
181
  _initDefineProp(this, 'queryPwd', _descriptor3, this);
@@ -282,7 +276,7 @@ var SettlementStore = (_class = function () {
282
276
  }
283
277
  detailDTO.listPrice = JSON.getCellValue(item, "listPrice");
284
278
  detailDTO.netAmountWithTax = Math.Multiply(detailDTO.listPrice, Math.Minus(item.Quantity, bookingQuantity)); //item.TaxAmount;
285
- //}
279
+ //}
286
280
  detailDTO.taxRate = item.TaxRate;
287
281
  detailDTO.quantity = item.Quantity;
288
282
 
@@ -351,10 +345,6 @@ var SettlementStore = (_class = function () {
351
345
  return (0, _tplusApi.ccApi)({}, '/marketingtool/paygift/executeRightsForPos/' + _this2.billID, false, false, { method: 'get', timeout_skip: true });
352
346
  };
353
347
 
354
- this.getRefWareHouseList = function () {
355
- return (0, _tplusApi.ccApi)({}, '/retail/RetailPos/getRefWareHouseList', false, false);
356
- };
357
-
358
348
  this.checkCoupon = function () {
359
349
  var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(sn) {
360
350
  var _ref3, isNewRetailBCPos, _enumController$getEn3, PayStyle, Differentiate;
@@ -508,8 +498,7 @@ var SettlementStore = (_class = function () {
508
498
  var params = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('cloudPrintArguments');
509
499
  if (params) this.cloudPrintArguments = params;
510
500
  this.setNewStyle();
511
- } //type==2
512
-
501
+ }
513
502
 
514
503
  (0, _createClass3.default)(SettlementStore, [{
515
504
  key: 'initPaymodes',
@@ -549,45 +538,7 @@ var SettlementStore = (_class = function () {
549
538
  });
550
539
  // this.member=context.stores && context.stores.memberStore && context.stores.memberStore.member;
551
540
  this.member = this.dto.Member; //stores.selectMemberStore.selectMemberInfo;
552
-
553
- this.paymode.isNotFullBook = false;
554
- this.paymode.isNotFullOnlyBook = false;
555
- //预订按比例收取订金处理
556
- var value = this.dto.TotalTaxAmount;
557
-
558
- var _getLoginInfo = this.getLoginInfo(),
559
- PreSellOrBook = _getLoginInfo.PreSellOrBook,
560
- PercentageWhenBook = _getLoginInfo.PercentageWhenBook;
561
-
562
- var _ref5 = this.dto || {},
563
- IdbusiType = _ref5.IdbusiType,
564
- DistributionMode = _ref5.DistributionMode;
565
-
566
- if (IdbusiType == 38 && PreSellOrBook == 'BOOK' && PercentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')) {
567
- this.paymode.bookMaxValue = value;
568
- this.paymode.isNotFullBook = true;
569
- this.paymode.isNotFullOnlyBook = true;
570
- value = value * PercentageWhenBook / 100;
571
- }
572
- if (IdbusiType == 38 && PreSellOrBook == 'BOOK') {
573
- (0, _mobx.runInAction)(function () {
574
- _this3.dto.PrepaidAmount = value;
575
- });
576
- }
577
- //预订计算快递或同城配送运费
578
- if (IdbusiType == 38 && PreSellOrBook != 'DISABLED' && (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE')) {
579
- value += this.dto.BuyerPayFreight || 0;
580
- }
581
- //预订取货应补款金额
582
- if (IdbusiType == 39) {
583
- value = _mutantsMicrofx.stores.drawerStore.thisWaitPaidAmount;
584
- if (_mutantsMicrofx.stores.drawerStore.totalWaitPaidAmount > 0) {
585
- this.paymode.isNotFullBook = true;
586
- this.paymode.bookMaxValue = _mutantsMicrofx.stores.drawerStore.totalWaitPaidAmount;
587
- }
588
- }
589
-
590
- this.brefund = this.paymode.setAmount(value, this.dto.OnlinePaymentAmount);
541
+ this.brefund = this.paymode.setAmount(this.dto.TotalTaxAmount, this.dto.OnlinePaymentAmount);
591
542
  } else {
592
543
  this.brefund = this.paymode.setAmount(amount, 0);
593
544
  this.dto = data;
@@ -635,8 +586,8 @@ var SettlementStore = (_class = function () {
635
586
  var _enumController$getEn5 = _mutantsUtil.enumController.getEnumOj(),
636
587
  PayStyle = _enumController$getEn5.PayStyle;
637
588
 
638
- var _ref6 = _mutantsUtil.platform || {},
639
- isNewRetailBCPos = _ref6.isNewRetailBCPos;
589
+ var _ref5 = _mutantsUtil.platform || {},
590
+ isNewRetailBCPos = _ref5.isNewRetailBCPos;
640
591
 
641
592
  console.log(this.dto, 'dto==========');
642
593
  this.paymode.checkList = [];
@@ -662,14 +613,14 @@ var SettlementStore = (_class = function () {
662
613
  if (themode.paymentType == PayStyle.djq) {
663
614
  (0, _each3.default)(_this5.dto.RetailCouponDetails, function (djq) {
664
615
  if (isNewRetailBCPos) {
665
- var _ref7 = djq || {},
666
- displayText = _ref7.displayText,
667
- promoRuleId = _ref7.promoRuleId,
668
- dateMount = _ref7.dateMount,
669
- promoMethodEnum = _ref7.promoMethodEnum,
670
- discountPct = _ref7.discountPct,
671
- promoId = _ref7.promoId,
672
- id = _ref7.id;
616
+ var _ref6 = djq || {},
617
+ displayText = _ref6.displayText,
618
+ promoRuleId = _ref6.promoRuleId,
619
+ dateMount = _ref6.dateMount,
620
+ promoMethodEnum = _ref6.promoMethodEnum,
621
+ discountPct = _ref6.discountPct,
622
+ promoId = _ref6.promoId,
623
+ id = _ref6.id;
673
624
 
674
625
  _this5.addDjq(djq.CouponCode, djq.CouponTitle, true, null, djq.ReductionAmount, djq.EnableAmount, djq.LastTS, true, false, _this5.dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, null, id, true);
675
626
  return;
@@ -712,7 +663,7 @@ var SettlementStore = (_class = function () {
712
663
  }, {
713
664
  key: 'quickSettle',
714
665
  value: function quickSettle(key) {
715
- this.addPay(key, null, true);
666
+ this.addPay(key, true);
716
667
  }
717
668
 
718
669
  //outer call
@@ -720,7 +671,7 @@ var SettlementStore = (_class = function () {
720
671
 
721
672
  }, {
722
673
  key: 'changeFocusAndAddPay',
723
- value: function changeFocusAndAddPay(type, bookType) {
674
+ value: function changeFocusAndAddPay(type) {
724
675
  var _this6 = this;
725
676
 
726
677
  var _enumController$getEn6 = _mutantsUtil.enumController.getEnumOj(),
@@ -745,17 +696,14 @@ var SettlementStore = (_class = function () {
745
696
  TotalTaxAmount: this.paymode.amount,
746
697
  BalanceTaxAmount: this.paymode.currentMode.value
747
698
  } }, 'AA.DR.newRetailMember.CalculdateIntegralSteadCash', false, false).then(function (result) {
748
- // this.paymode.currentMode.steadCashIntegral=result.Integral;
749
- // this.paymode.currentMode.perIntegral=result.perIntegral;
750
- // this.paymode.currentMode.cashAmount=result.cashAmount;
751
- _this6.paymode.currentMode.integralCashOverOrderAmount = result.integralCashOverOrderAmount;
699
+ _this6.paymode.currentMode.steadCashIntegral = result.Integral;
752
700
  _this6.paymode.currentMode.overchargesAmount = result.Amount - _this6.paymode.currentMode.value;
753
701
  });
754
702
  } else {
755
703
  this.addPayDirectly(this.paymode.currentMode);
756
704
  }
757
705
  } else {
758
- this.addPay(type, bookType);
706
+ this.addPay(type);
759
707
  }
760
708
  }
761
709
 
@@ -780,15 +728,15 @@ var SettlementStore = (_class = function () {
780
728
  var IdStore = this.storeInfo.storeID;
781
729
  var StoreCode = this.storeInfo.storeCode; //_find(this.storeInfo.storeInfos,(store)=>{return store.ID==IdStore;}).Code;
782
730
 
783
- var _ref8 = _mutantsUtil.platform || {},
784
- isNewRetailBCPos = _ref8.isNewRetailBCPos;
731
+ var _ref7 = _mutantsUtil.platform || {},
732
+ isNewRetailBCPos = _ref7.isNewRetailBCPos;
785
733
 
786
734
  var address = '';
787
735
  if (isNewRetailBCPos) {
788
736
  // address = '/member/memberProfile/FindByStorageCode/'+v;
789
737
  address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + v + '/' + true;
790
738
  return (0, _tplusApi.ccApi)({ code: v }, address, false, false, { method: 'get', timeout_skip: true }).then(function () {
791
- var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(result) {
739
+ var _ref8 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(result) {
792
740
  var data, m;
793
741
  return _regenerator2.default.wrap(function _callee3$(_context3) {
794
742
  while (1) {
@@ -863,7 +811,7 @@ var SettlementStore = (_class = function () {
863
811
  }));
864
812
 
865
813
  return function (_x2) {
866
- return _ref9.apply(this, arguments);
814
+ return _ref8.apply(this, arguments);
867
815
  };
868
816
  }()
869
817
  // result.data.forEach((m) => {
@@ -973,34 +921,12 @@ var SettlementStore = (_class = function () {
973
921
  }
974
922
  }
975
923
 
976
- //积分抵现不包含运费
977
- var BuyerPayFreight = this.dto.BuyerPayFreight;
978
- var DistributionMode = this.dto.DistributionMode;
979
- var IdbusiType = this.dto.IdbusiType;
980
-
981
- var _getLoginInfo2 = this.getLoginInfo(),
982
- PreSellOrBook = _getLoginInfo2.PreSellOrBook,
983
- PercentageWhenBook = _getLoginInfo2.PercentageWhenBook;
984
-
985
- var value = 0;
986
- if ((DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && BuyerPayFreight && BuyerPayFreight > 0) {
987
- value = (0, _utils.getFixedNumber)(Math.Minus(this.paymode.amount, BuyerPayFreight));
988
- } else if (IdbusiType == 38 && PreSellOrBook == 'BOOK' && PercentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')) {
989
- //预订场景下:现场提货,且订金比例非100%时,积分抵现按全款计算(因为只有全款才能使用积分抵现)
990
- value = this.paymode.bookMaxValue;
991
- } else {
992
- value = this.paymode.amount;
993
- }
994
-
995
924
  (0, _tplusApi.tApi)({ IntegralSteadCashParams: {
996
925
  Idmember: this.paymode.currentMode.memberId,
997
- TotalTaxAmount: value,
998
- BalanceTaxAmount: value
926
+ TotalTaxAmount: this.paymode.amount,
927
+ BalanceTaxAmount: this.paymode.amount
999
928
  } }, 'AA.DR.newRetailMember.CalculdateIntegralSteadCash', false, false).then(function (result) {
1000
929
  _this8.paymode.currentMode.member.setExchangable(result.MaxAmount);
1001
- _this8.paymode.currentMode.perIntegral = result.perIntegral;
1002
- _this8.paymode.currentMode.cashAmount = result.cashAmount;
1003
- _this8.paymode.currentMode.integralCashOverOrderAmount = result.integralCashOverOrderAmount;
1004
930
  _this8.updateEvent();
1005
931
  if (_this8.checkReceived(_this8.paymode.currentMode, "exchangable")) {
1006
932
  (0, _mobx.runInAction)(function () {
@@ -1042,8 +968,7 @@ var SettlementStore = (_class = function () {
1042
968
  authCode: '',
1043
969
  steadCashIntegral: null,
1044
970
  errinfo: '',
1045
- maxamount: this.paymode.amount,
1046
- virtualPay: themode.virtualPay
971
+ maxamount: this.paymode.amount
1047
972
  });
1048
973
  if (type == PayStyle.hyczk) {
1049
974
  if (!mode.storageCardNo) {
@@ -1087,17 +1012,7 @@ var SettlementStore = (_class = function () {
1087
1012
 
1088
1013
  this.amountHandler && this.amountHandler(type).then(function () {
1089
1014
  (0, _mobx.runInAction)(function () {
1090
-
1091
- //预售储值结算应包含运费
1092
- var BuyerPayFreight = _this9.dto.BuyerPayFreight;
1093
- var DistributionMode = _this9.dto.DistributionMode;
1094
- var value = 0;
1095
- if ((DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && BuyerPayFreight && BuyerPayFreight > 0 && type == PayStyle.hyczk) {
1096
- value = (0, _utils.getFixedNumber)(parseFloat(_this9.context.viewModel.getViewItem('Voucher').availableAmount) + parseFloat(BuyerPayFreight));
1097
- } else {
1098
- value = _this9.context.viewModel.getViewItem('Voucher').availableAmount;
1099
- }
1100
- mode.maxamount = (0, _utils.getFixedNumber)(Math.Minus(value, sum));
1015
+ mode.maxamount = (0, _utils.getFixedNumber)(Math.Minus(_this9.context.viewModel.getViewItem('Voucher').availableAmount, sum));
1101
1016
  _this9.updateEvent();
1102
1017
  });
1103
1018
  });
@@ -1118,12 +1033,12 @@ var SettlementStore = (_class = function () {
1118
1033
  mode.value = shouldSetValue;
1119
1034
  mode.value2 = (0, _utils.getFixedNumber)(mode.calDirection == "88" ? shouldSetValue / mode.exchangeRate : shouldSetValue * mode.exchangeRate);
1120
1035
  mode.value3 = shouldSetValue;
1121
- this.paymode.calcReserved('bookPay'); //参数multiPay代表复合结算
1036
+ this.paymode.calcReserved();
1122
1037
  }
1123
1038
  }
1124
1039
  }, {
1125
1040
  key: 'changeValue',
1126
- value: function changeValue(index, value, blur, type) {
1041
+ value: function changeValue(index, value, blur) {
1127
1042
  var mode = (0, _find3.default)(this.paymode.thePaymodes, { 'paymethodId': index });
1128
1043
  var v = blur ? (0, _utils.getFixedNumber)(value) : isNaN(value) && value != '-' ? 0.00 : value;
1129
1044
  if (mode) {
@@ -1139,7 +1054,7 @@ var SettlementStore = (_class = function () {
1139
1054
  mode.value2 = v;
1140
1055
  }
1141
1056
 
1142
- this.paymode.calcReserved(type);
1057
+ this.paymode.calcReserved();
1143
1058
  }
1144
1059
  }
1145
1060
  }, {
@@ -1163,7 +1078,7 @@ var SettlementStore = (_class = function () {
1163
1078
  }
1164
1079
  }, {
1165
1080
  key: 'addPay',
1166
- value: function addPay(type, bookType, isQuick) {
1081
+ value: function addPay(type, isQuick) {
1167
1082
  var _enumController$getEn12 = _mutantsUtil.enumController.getEnumOj(),
1168
1083
  PayStyle = _enumController$getEn12.PayStyle;
1169
1084
 
@@ -1175,11 +1090,11 @@ var SettlementStore = (_class = function () {
1175
1090
  pos = index == -1 ? pos : index + 1;
1176
1091
  }
1177
1092
  this.paymode.thePaymodes.splice(pos, 0, this.genNewMode(type, this.newStyle && type == PayStyle.hyczk, undefined, isQuick));
1178
- this.paymode.calcReserved(bookType);
1093
+ this.paymode.calcReserved();
1179
1094
  }
1180
1095
  }, {
1181
1096
  key: 'delPay',
1182
- value: function delPay(index, bookType) {
1097
+ value: function delPay(index) {
1183
1098
  var _enumController$getEn13 = _mutantsUtil.enumController.getEnumOj(),
1184
1099
  PayStyle = _enumController$getEn13.PayStyle;
1185
1100
 
@@ -1187,7 +1102,7 @@ var SettlementStore = (_class = function () {
1187
1102
  return mode.paymethodId === index;
1188
1103
  });
1189
1104
  this.paymode.currentFocus = -1;
1190
- this.paymode.calcReserved(bookType);
1105
+ this.paymode.calcReserved();
1191
1106
  }
1192
1107
 
1193
1108
  // 获取储值是否重复, 在commit方法中使用
@@ -1235,8 +1150,8 @@ var SettlementStore = (_class = function () {
1235
1150
  }, {
1236
1151
  key: 'commit',
1237
1152
  value: function () {
1238
- var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4(bTest) {
1239
- var status, paylist, ret, _ref11, _ref11$data, code, returnMsg, state, ret1, ret2;
1153
+ var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4(bTest) {
1154
+ var status, paylist, ret, _ref10, _ref10$data, code, returnMsg, state, ret1, ret2;
1240
1155
 
1241
1156
  return _regenerator2.default.wrap(function _callee4$(_context4) {
1242
1157
  while (1) {
@@ -1277,9 +1192,9 @@ var SettlementStore = (_class = function () {
1277
1192
 
1278
1193
  case 12:
1279
1194
  ret = _context4.sent;
1280
- _ref11 = ret || {}, _ref11$data = _ref11.data;
1281
- _ref11$data = _ref11$data === undefined ? {} : _ref11$data;
1282
- code = _ref11$data.code, returnMsg = _ref11$data.returnMsg;
1195
+ _ref10 = ret || {}, _ref10$data = _ref10.data;
1196
+ _ref10$data = _ref10$data === undefined ? {} : _ref10$data;
1197
+ code = _ref10$data.code, returnMsg = _ref10$data.returnMsg;
1283
1198
 
1284
1199
  if (!(code && code == 10001)) {
1285
1200
  _context4.next = 24;
@@ -1361,7 +1276,7 @@ var SettlementStore = (_class = function () {
1361
1276
  }));
1362
1277
 
1363
1278
  function commit(_x3) {
1364
- return _ref10.apply(this, arguments);
1279
+ return _ref9.apply(this, arguments);
1365
1280
  }
1366
1281
 
1367
1282
  return commit;
@@ -1375,10 +1290,10 @@ var SettlementStore = (_class = function () {
1375
1290
  }, {
1376
1291
  key: 'saveMember',
1377
1292
  value: function () {
1378
- var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
1293
+ var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
1379
1294
  var _this11 = this;
1380
1295
 
1381
- var _enumController$getEn15, PayStyle, TradeType, IPMSG, dtoParams, payList, payment, tradeType, ret, _ref13, type, data, msg, code;
1296
+ var _enumController$getEn15, PayStyle, TradeType, IPMSG, dtoParams, payList, payment, tradeType, ret, _ref12, type, data, msg, code;
1382
1297
 
1383
1298
  return _regenerator2.default.wrap(function _callee5$(_context5) {
1384
1299
  while (1) {
@@ -1440,7 +1355,7 @@ var SettlementStore = (_class = function () {
1440
1355
 
1441
1356
  case 11:
1442
1357
  ret = _context5.sent;
1443
- _ref13 = ret || {}, type = _ref13.type, data = _ref13.data, msg = _ref13.msg, code = _ref13.code;
1358
+ _ref12 = ret || {}, type = _ref12.type, data = _ref12.data, msg = _ref12.msg, code = _ref12.code;
1444
1359
 
1445
1360
  if (!(type === true)) {
1446
1361
  _context5.next = 17;
@@ -1471,7 +1386,7 @@ var SettlementStore = (_class = function () {
1471
1386
  }));
1472
1387
 
1473
1388
  function saveMember() {
1474
- return _ref12.apply(this, arguments);
1389
+ return _ref11.apply(this, arguments);
1475
1390
  }
1476
1391
 
1477
1392
  return saveMember;
@@ -1479,10 +1394,10 @@ var SettlementStore = (_class = function () {
1479
1394
  }, {
1480
1395
  key: 'save',
1481
1396
  value: function () {
1482
- var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6() {
1397
+ var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6() {
1483
1398
  var _this12 = this;
1484
1399
 
1485
- var _enumController$getEn16, PayStyle, TradeType, IPMSG, RetailTypeEnum, _getLoginInfo3, PreSellOrBook, PercentageWhenBook, _ref15, IdbusiType, DistributionMode, prepaidAmount, fullPayment, dtoParams, payList, payment, tradeType, ret, _ref16, type, data, msg, code;
1400
+ var _enumController$getEn16, PayStyle, TradeType, IPMSG, RetailTypeEnum, dtoParams, payList, payment, tradeType, ret, _ref14, type, data, msg, code;
1486
1401
 
1487
1402
  return _regenerator2.default.wrap(function _callee6$(_context6) {
1488
1403
  while (1) {
@@ -1581,48 +1496,32 @@ var SettlementStore = (_class = function () {
1581
1496
  IPMSG = JSON.parse(window.localStorage.IPMSG);
1582
1497
  }
1583
1498
  RetailTypeEnum = this.dto.IdbusiType == 36 ? "INTEGRAL_EXCHANGE" : "NORMAL";
1584
- _getLoginInfo3 = this.getLoginInfo(), PreSellOrBook = _getLoginInfo3.PreSellOrBook, PercentageWhenBook = _getLoginInfo3.PercentageWhenBook;
1585
- _ref15 = this.dto || {}, IdbusiType = _ref15.IdbusiType, DistributionMode = _ref15.DistributionMode;
1586
-
1587
- if (IdbusiType == 38 && PreSellOrBook == 'BOOK' && PercentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')) {
1588
- prepaidAmount = (0, _utils.getFixedNumber)(this.dto.RetailPaymentDetails.reduce(function (c, item) {
1589
- return c + (item.Amount || 0);
1590
- }, 0));
1591
- fullPayment = (0, _utils.getFixedNumber)(this.dto.RetailDetails.reduce(function (c, item) {
1592
- return c + (item.TaxAmount || 0);
1593
- }, 0));
1594
-
1595
- this.isFull = fullPayment == prepaidAmount; // 是否全款
1596
- (0, _mobx.runInAction)(function () {
1597
- _this12.dto.PrepaidAmount = prepaidAmount;
1598
- });
1599
- }
1600
1499
  _context6.t1 = this.dto.IdbusiType == 37;
1601
1500
 
1602
1501
  if (!_context6.t1) {
1603
- _context6.next = 14;
1502
+ _context6.next = 11;
1604
1503
  break;
1605
1504
  }
1606
1505
 
1607
- _context6.next = 13;
1506
+ _context6.next = 10;
1608
1507
  return this.checkIntegralExchangeReturn(this.dto.RetailDetails[0].ReturnSourceId);
1609
1508
 
1610
- case 13:
1509
+ case 10:
1611
1510
  _context6.t1 = _context6.sent;
1612
1511
 
1613
- case 14:
1512
+ case 11:
1614
1513
  _context6.t0 = _context6.t1;
1615
1514
 
1616
1515
  if (_context6.t0) {
1617
- _context6.next = 17;
1516
+ _context6.next = 14;
1618
1517
  break;
1619
1518
  }
1620
1519
 
1621
1520
  _context6.t0 = this.dto.IdbusiType != 37;
1622
1521
 
1623
- case 17:
1522
+ case 14:
1624
1523
  if (!_context6.t0) {
1625
- _context6.next = 36;
1524
+ _context6.next = 33;
1626
1525
  break;
1627
1526
  }
1628
1527
 
@@ -1634,45 +1533,45 @@ var SettlementStore = (_class = function () {
1634
1533
  });
1635
1534
 
1636
1535
  if (!(payList && payList.length > 0)) {
1637
- _context6.next = 33;
1536
+ _context6.next = 30;
1638
1537
  break;
1639
1538
  }
1640
1539
 
1641
1540
  payment = payList[0];
1642
1541
  tradeType = payment && payment.Amount > 0 ? TradeType.PAY : TradeType.REFUND;
1643
- _context6.next = 25;
1542
+ _context6.next = 22;
1644
1543
  return this.thirdPay(1, payment, tradeType, dtoParams);
1645
1544
 
1646
- case 25:
1545
+ case 22:
1647
1546
  ret = _context6.sent;
1648
- _ref16 = ret || {}, type = _ref16.type, data = _ref16.data, msg = _ref16.msg, code = _ref16.code;
1547
+ _ref14 = ret || {}, type = _ref14.type, data = _ref14.data, msg = _ref14.msg, code = _ref14.code;
1649
1548
 
1650
1549
  if (!(type === true)) {
1651
- _context6.next = 31;
1550
+ _context6.next = 28;
1652
1551
  break;
1653
1552
  }
1654
1553
 
1655
1554
  dtoParams = data;
1656
- _context6.next = 33;
1555
+ _context6.next = 30;
1657
1556
  break;
1658
1557
 
1659
- case 31:
1558
+ case 28:
1660
1559
  _message2.default.warn('\u5237\u5361\u652F\u4ED8\u5931\u8D25,\u9519\u8BEF\u7801:' + code);
1661
1560
  return _context6.abrupt('return', false);
1662
1561
 
1663
- case 33:
1562
+ case 30:
1664
1563
  this.dtoParams = dtoParams;
1665
1564
  console.log('结算信息:', dtoParams);
1666
1565
  return _context6.abrupt('return', (0, _tplusApi.ccApi)({ dto: dtoParams, cip: IPMSG.query || "" }, '/retail/RetailPos/settle', false, false, { method: 'post', timeout_skip: true }).then(function (resp) {
1667
- var _ref17 = resp || {},
1668
- ID = _ref17.ID;
1566
+ var _ref15 = resp || {},
1567
+ ID = _ref15.ID;
1669
1568
 
1670
1569
  _this12.setDtoID(ID);
1671
1570
  _this12.billID = ID;
1672
1571
  _this12.paymode.checkList = [];
1673
1572
  }));
1674
1573
 
1675
- case 36:
1574
+ case 33:
1676
1575
  case 'end':
1677
1576
  return _context6.stop();
1678
1577
  }
@@ -1681,7 +1580,7 @@ var SettlementStore = (_class = function () {
1681
1580
  }));
1682
1581
 
1683
1582
  function save() {
1684
- return _ref14.apply(this, arguments);
1583
+ return _ref13.apply(this, arguments);
1685
1584
  }
1686
1585
 
1687
1586
  return save;
@@ -1698,19 +1597,19 @@ var SettlementStore = (_class = function () {
1698
1597
  return data;
1699
1598
  }
1700
1599
 
1701
- /**
1702
- * 二开支付
1703
- * vType:1零售单、2储值单
1704
- * payment:结算方式
1705
- * trade:00表示结算、02表示退款
1706
- * dto:结算数据集合
1600
+ /**
1601
+ * 二开支付
1602
+ * vType:1零售单、2储值单
1603
+ * payment:结算方式
1604
+ * trade:00表示结算、02表示退款
1605
+ * dto:结算数据集合
1707
1606
  */
1708
1607
 
1709
1608
  }, {
1710
1609
  key: 'thirdPay',
1711
1610
  value: function () {
1712
- var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(vType, payment, trade, dto) {
1713
- var cto, params, ret, _ref19, Code, _Message, Result, _ref20, ThirdPaymentReturnInfo;
1611
+ var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(vType, payment, trade, dto) {
1612
+ var cto, params, ret, _ref17, Code, _Message, Result, _ref18, ThirdPaymentReturnInfo;
1714
1613
 
1715
1614
  return _regenerator2.default.wrap(function _callee7$(_context7) {
1716
1615
  while (1) {
@@ -1733,7 +1632,7 @@ var SettlementStore = (_class = function () {
1733
1632
 
1734
1633
  console.log('刷卡返回信息:', ret);
1735
1634
  ret = JSON.parse(ret);
1736
- _ref19 = ret || {}, Code = _ref19.Code, _Message = _ref19.Message, Result = _ref19.Result;
1635
+ _ref17 = ret || {}, Code = _ref17.Code, _Message = _ref17.Message, Result = _ref17.Result;
1737
1636
 
1738
1637
  if (!(Code > 0)) {
1739
1638
  _context7.next = 14;
@@ -1748,7 +1647,7 @@ var SettlementStore = (_class = function () {
1748
1647
  break;
1749
1648
  }
1750
1649
 
1751
- _ref20 = Result || {}, ThirdPaymentReturnInfo = _ref20.ThirdPaymentReturnInfo;
1650
+ _ref18 = Result || {}, ThirdPaymentReturnInfo = _ref18.ThirdPaymentReturnInfo;
1752
1651
 
1753
1652
  if (vType == 1) {
1754
1653
  dto.RetailPaymentDetails.forEach(function (v) {
@@ -1791,7 +1690,7 @@ var SettlementStore = (_class = function () {
1791
1690
  }));
1792
1691
 
1793
1692
  function thirdPay(_x4, _x5, _x6, _x7) {
1794
- return _ref18.apply(this, arguments);
1693
+ return _ref16.apply(this, arguments);
1795
1694
  }
1796
1695
 
1797
1696
  return thirdPay;
@@ -1802,7 +1701,7 @@ var SettlementStore = (_class = function () {
1802
1701
  }, {
1803
1702
  key: 'thirdPayRefund',
1804
1703
  value: function () {
1805
- var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(type) {
1704
+ var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(type) {
1806
1705
  var _this13 = this;
1807
1706
 
1808
1707
  var dto, pay, payment, _enumController$getEn17, TradeType;
@@ -1824,7 +1723,7 @@ var SettlementStore = (_class = function () {
1824
1723
  _enumController$getEn17 = _mutantsUtil.enumController.getEnumOj(), TradeType = _enumController$getEn17.TradeType;
1825
1724
 
1826
1725
  setTimeout((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
1827
- var ret, _ref23, msg;
1726
+ var ret, _ref21, msg;
1828
1727
 
1829
1728
  return _regenerator2.default.wrap(function _callee8$(_context8) {
1830
1729
  while (1) {
@@ -1835,7 +1734,7 @@ var SettlementStore = (_class = function () {
1835
1734
 
1836
1735
  case 2:
1837
1736
  ret = _context8.sent;
1838
- _ref23 = ret || {}, msg = _ref23.msg;
1737
+ _ref21 = ret || {}, msg = _ref21.msg;
1839
1738
 
1840
1739
  console.log('\u5237\u5361\u652F\u4ED8\u9000\u6B3E:' + msg);
1841
1740
 
@@ -1857,7 +1756,7 @@ var SettlementStore = (_class = function () {
1857
1756
  }));
1858
1757
 
1859
1758
  function thirdPayRefund(_x8) {
1860
- return _ref21.apply(this, arguments);
1759
+ return _ref19.apply(this, arguments);
1861
1760
  }
1862
1761
 
1863
1762
  return thirdPayRefund;
@@ -1870,7 +1769,7 @@ var SettlementStore = (_class = function () {
1870
1769
  }, {
1871
1770
  key: 'querySettleResult',
1872
1771
  value: function () {
1873
- var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10() {
1772
+ var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10() {
1874
1773
  return _regenerator2.default.wrap(function _callee10$(_context10) {
1875
1774
  while (1) {
1876
1775
  switch (_context10.prev = _context10.next) {
@@ -1898,7 +1797,7 @@ var SettlementStore = (_class = function () {
1898
1797
  }));
1899
1798
 
1900
1799
  function querySettleResult() {
1901
- return _ref24.apply(this, arguments);
1800
+ return _ref22.apply(this, arguments);
1902
1801
  }
1903
1802
 
1904
1803
  return querySettleResult;
@@ -1924,14 +1823,14 @@ var SettlementStore = (_class = function () {
1924
1823
  }, {
1925
1824
  key: 'validePwd',
1926
1825
  value: function () {
1927
- var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(value) {
1928
- var _ref26, isNewRetailBCPos, cook1, cook2, message, memberStorageId, _paymode$currentMode, cardTypeEnum, memberId, meStorageCardId, cardStatusEnum, result, count, _result;
1826
+ var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(value) {
1827
+ var _ref24, isNewRetailBCPos, cook1, cook2, message, memberStorageId, _paymode$currentMode, cardTypeEnum, memberId, meStorageCardId, cardStatusEnum, result, count, _result;
1929
1828
 
1930
1829
  return _regenerator2.default.wrap(function _callee11$(_context11) {
1931
1830
  while (1) {
1932
1831
  switch (_context11.prev = _context11.next) {
1933
1832
  case 0:
1934
- _ref26 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref26.isNewRetailBCPos;
1833
+ _ref24 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref24.isNewRetailBCPos;
1935
1834
  _context11.prev = 1;
1936
1835
 
1937
1836
  if (!isNewRetailBCPos) {
@@ -2048,7 +1947,7 @@ var SettlementStore = (_class = function () {
2048
1947
  }));
2049
1948
 
2050
1949
  function validePwd(_x9) {
2051
- return _ref25.apply(this, arguments);
1950
+ return _ref23.apply(this, arguments);
2052
1951
  }
2053
1952
 
2054
1953
  return validePwd;
@@ -2101,14 +2000,14 @@ var SettlementStore = (_class = function () {
2101
2000
  var _this16 = this;
2102
2001
 
2103
2002
  return function () {
2104
- var _ref27 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(_this) {
2105
- var _getLoginInfo4, IdStore, StoreCode, resp;
2003
+ var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(_this) {
2004
+ var _getLoginInfo, IdStore, StoreCode, resp;
2106
2005
 
2107
2006
  return _regenerator2.default.wrap(function _callee12$(_context12) {
2108
2007
  while (1) {
2109
2008
  switch (_context12.prev = _context12.next) {
2110
2009
  case 0:
2111
- _getLoginInfo4 = _this16.getLoginInfo(), IdStore = _getLoginInfo4.IdStore, StoreCode = _getLoginInfo4.StoreCode;
2010
+ _getLoginInfo = _this16.getLoginInfo(), IdStore = _getLoginInfo.IdStore, StoreCode = _getLoginInfo.StoreCode;
2112
2011
  _context12.next = 3;
2113
2012
  return (0, _tplusApi.tApi)({ Idmember: _this16.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
2114
2013
 
@@ -2128,7 +2027,7 @@ var SettlementStore = (_class = function () {
2128
2027
  }));
2129
2028
 
2130
2029
  return function (_x10) {
2131
- return _ref27.apply(this, arguments);
2030
+ return _ref25.apply(this, arguments);
2132
2031
  };
2133
2032
  }();
2134
2033
  }
@@ -2138,7 +2037,7 @@ var SettlementStore = (_class = function () {
2138
2037
  var _this17 = this;
2139
2038
 
2140
2039
  return function () {
2141
- var _ref28 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(memberId) {
2040
+ var _ref26 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(memberId) {
2142
2041
  var result;
2143
2042
  return _regenerator2.default.wrap(function _callee13$(_context13) {
2144
2043
  while (1) {
@@ -2193,7 +2092,7 @@ var SettlementStore = (_class = function () {
2193
2092
  }));
2194
2093
 
2195
2094
  return function (_x11) {
2196
- return _ref28.apply(this, arguments);
2095
+ return _ref26.apply(this, arguments);
2197
2096
  };
2198
2097
  }();
2199
2098
  }
@@ -2228,7 +2127,7 @@ var SettlementStore = (_class = function () {
2228
2127
  }), _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);
2229
2128
  exports.default = SettlementStore;
2230
2129
  var PayMode = exports.PayMode = (_class3 = function () {
2231
- //预订场景下,现场提货,且选项设置订金比例非100% or 取货最大补款数大于0时 为 true
2130
+ //应收
2232
2131
  function PayMode() {
2233
2132
  // this.amount=getFixedNumber(amount);
2234
2133
  // this.calcReserved();
@@ -2249,10 +2148,6 @@ var PayMode = exports.PayMode = (_class3 = function () {
2249
2148
 
2250
2149
  _initDefineProp(this, 'thePaymodes', _descriptor11, this);
2251
2150
 
2252
- this.bookMaxValue = 0;
2253
- this.isNotFullBook = false;
2254
- this.isNotFullOnlyBook = false;
2255
-
2256
2151
  _initDefineProp(this, 'storageCardNo', _descriptor12, this);
2257
2152
 
2258
2153
  _initDefineProp(this, 'balance', _descriptor13, this);
@@ -2271,8 +2166,6 @@ var PayMode = exports.PayMode = (_class3 = function () {
2271
2166
  _initDefineProp(this, 'addDjqs', _descriptor16, this);
2272
2167
  }
2273
2168
  // @observable store = null;
2274
- //只是预订场景下,现场提货,且选项设置订金比例非100%时 为 true
2275
- //应收
2276
2169
 
2277
2170
 
2278
2171
  (0, _createClass3.default)(PayMode, [{
@@ -2298,25 +2191,13 @@ var PayMode = exports.PayMode = (_class3 = function () {
2298
2191
  }
2299
2192
  }, {
2300
2193
  key: 'calcReserved',
2301
- value: function calcReserved(type) {
2194
+ value: function calcReserved() {
2302
2195
  var sum = 0;
2303
2196
  (0, _each3.default)(this.thePaymodes, function (mode) {
2304
2197
  sum = Math.Add(sum, mode.value == "" ? 0 : mode.value);
2305
2198
  });
2306
2199
  this.received = (0, _utils.getFixedNumber)(sum);
2307
- if (type === 'bookPay' && this.isNotFullBook) {
2308
- if (this.amount <= sum && sum <= this.bookMaxValue) {
2309
- this.receivable = (0, _utils.getFixedNumber)(0);
2310
- }
2311
- if (sum < this.amount) {
2312
- this.receivable = (0, _utils.getFixedNumber)(this.amount - sum);
2313
- }
2314
- if (sum > this.bookMaxValue) {
2315
- this.receivable = (0, _utils.getFixedNumber)(this.bookMaxValue - sum);
2316
- }
2317
- } else {
2318
- this.receivable = (0, _utils.getFixedNumber)(this.amount - sum);
2319
- }
2200
+ this.receivable = (0, _utils.getFixedNumber)(this.amount - sum);
2320
2201
  }
2321
2202
  }, {
2322
2203
  key: 'updateMemberStorageCardNo',
@@ -2355,9 +2236,6 @@ var PayMode = exports.PayMode = (_class3 = function () {
2355
2236
  this.checkList = [];
2356
2237
  }
2357
2238
 
2358
- var _ref30 = _mutantsUtil.platform || {},
2359
- isNewRetailBCPos = _ref30.isNewRetailBCPos;
2360
-
2361
2239
  var _enumController$getEn18 = _mutantsUtil.enumController.getEnumOj(),
2362
2240
  PayStyle = _enumController$getEn18.PayStyle,
2363
2241
  Differentiate = _enumController$getEn18.Differentiate;
@@ -2430,13 +2308,13 @@ var PayMode = exports.PayMode = (_class3 = function () {
2430
2308
  // }
2431
2309
  // else
2432
2310
  // {
2433
-
2434
2311
  var bookingQuantity = 0;
2435
2312
  if (item.BookingQuantity) {
2436
2313
  bookingQuantity = item.BookingQuantity;
2437
2314
  }
2438
2315
  detailDTO.listPrice = JSON.getCellValue(item, "listPrice");
2439
2316
  detailDTO.netAmountWithTax = Math.Multiply(detailDTO.listPrice, Math.Minus(item.Quantity, bookingQuantity)); //item.TaxAmount;
2317
+ //}
2440
2318
  detailDTO.taxRate = item.TaxRate;
2441
2319
  detailDTO.quantity = item.Quantity;
2442
2320
 
@@ -2466,18 +2344,18 @@ var PayMode = exports.PayMode = (_class3 = function () {
2466
2344
  }
2467
2345
  });
2468
2346
 
2469
- var _ref31 = element || {},
2470
- couponCode = _ref31.couponCode,
2471
- name = _ref31.name,
2472
- tieredAmountResult = _ref31.tieredAmountResult,
2473
- fromDate = _ref31.fromDate,
2474
- dateMount = _ref31.dateMount,
2475
- promoMethodEnum = _ref31.promoMethodEnum,
2476
- discountPct = _ref31.discountPct,
2477
- nominalAmount = _ref31.nominalAmount,
2478
- promoId = _ref31.promoId,
2479
- id = _ref31.id,
2480
- doorsill = _ref31.doorsill;
2347
+ var _ref28 = element || {},
2348
+ couponCode = _ref28.couponCode,
2349
+ name = _ref28.name,
2350
+ tieredAmountResult = _ref28.tieredAmountResult,
2351
+ fromDate = _ref28.fromDate,
2352
+ dateMount = _ref28.dateMount,
2353
+ promoMethodEnum = _ref28.promoMethodEnum,
2354
+ discountPct = _ref28.discountPct,
2355
+ nominalAmount = _ref28.nominalAmount,
2356
+ promoId = _ref28.promoId,
2357
+ id = _ref28.id,
2358
+ doorsill = _ref28.doorsill;
2481
2359
 
2482
2360
  var condValue = tieredAmountResult.condValue,
2483
2361
  promoDiscount = tieredAmountResult.promoDiscount,
@@ -2521,9 +2399,6 @@ var PayMode = exports.PayMode = (_class3 = function () {
2521
2399
  }, {
2522
2400
  key: 'calcDjqValue',
2523
2401
  value: function calcDjqValue(q1) {
2524
- var _ref32 = _mutantsUtil.platform || {},
2525
- isNewRetailBCPos = _ref32.isNewRetailBCPos;
2526
-
2527
2402
  var _enumController$getEn19 = _mutantsUtil.enumController.getEnumOj(),
2528
2403
  Differentiate = _enumController$getEn19.Differentiate;
2529
2404
 
@@ -2603,19 +2478,6 @@ var PayMode = exports.PayMode = (_class3 = function () {
2603
2478
  } else if (parseFloat(v) > 0 && parseFloat(v) > (max || 0)) {
2604
2479
  this.currentMode.errinfo = "余额不足";
2605
2480
  }
2606
- // 如果是积分抵现的一些判断
2607
- if (this.currentMode.paymentType === PayStyle.jfdx) {
2608
- if (this.currentMode.integralCashOverOrderAmount === true) {
2609
- this.currentMode.steadCashIntegral = Math.ceil(this.currentMode.value / this.currentMode.cashAmount) * this.currentMode.perIntegral;
2610
- } else if (this.currentMode.integralCashOverOrderAmount === false) {
2611
- var v1 = this.currentMode.value / this.currentMode.cashAmount;
2612
- if ((0, _isInteger2.default)(v1)) {
2613
- this.currentMode.steadCashIntegral = Math.floor(this.currentMode.value / this.currentMode.cashAmount) * this.currentMode.perIntegral;
2614
- } else {
2615
- this.currentMode.errinfo = '\u8BF7\u6309\u7167\u79EF\u5206\u62B5\u73B0\u89C4\u5219' + this.currentMode.perIntegral + '\u79EF\u5206\u62B5\u7528' + this.currentMode.cashAmount + '\u5143\u8F93\u5165\u91D1\u989D';
2616
- }
2617
- }
2618
- }
2619
2481
  }
2620
2482
  }, {
2621
2483
  key: 'calcMemberBalance',
@@ -2625,17 +2487,17 @@ var PayMode = exports.PayMode = (_class3 = function () {
2625
2487
  }, {
2626
2488
  key: 'setPaymodes',
2627
2489
  value: function () {
2628
- var _ref33 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(type, isIntegralExchange) {
2490
+ var _ref29 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(type, isIntegralExchange) {
2629
2491
  var _this20 = this;
2630
2492
 
2631
- var _ref34, isHorizontalPad, isHorizontalSunMi, isMobileEnvironment, _enumController$getEn21, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
2493
+ var _ref30, isHorizontalPad, isHorizontalSunMi, isMobileEnvironment, _enumController$getEn21, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
2632
2494
 
2633
2495
  return _regenerator2.default.wrap(function _callee15$(_context15) {
2634
2496
  while (1) {
2635
2497
  switch (_context15.prev = _context15.next) {
2636
2498
  case 0:
2637
2499
  // 是否移动端判断
2638
- _ref34 = _mutantsUtil.platform || {}, isHorizontalPad = _ref34.isHorizontalPad, isHorizontalSunMi = _ref34.isHorizontalSunMi;
2500
+ _ref30 = _mutantsUtil.platform || {}, isHorizontalPad = _ref30.isHorizontalPad, isHorizontalSunMi = _ref30.isHorizontalSunMi;
2639
2501
  isMobileEnvironment = !!isHorizontalPad || !!isHorizontalSunMi;
2640
2502
  _enumController$getEn21 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn21.settleStyleType, PayStyle = _enumController$getEn21.PayStyle;
2641
2503
  memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
@@ -2670,7 +2532,6 @@ var PayMode = exports.PayMode = (_class3 = function () {
2670
2532
  exchangeRate: mode.Currency ? mode.Currency.ExchangeRate : 1,
2671
2533
  idCurrency: mode.Currency ? mode.Currency.ID : -1,
2672
2534
  calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88",
2673
- virtualPay: mode.VirtualPay,
2674
2535
  thridPayment: mode.ThirdPaymentInfo
2675
2536
  });
2676
2537
  });
@@ -2687,7 +2548,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
2687
2548
  }));
2688
2549
 
2689
2550
  function setPaymodes(_x12, _x13) {
2690
- return _ref33.apply(this, arguments);
2551
+ return _ref29.apply(this, arguments);
2691
2552
  }
2692
2553
 
2693
2554
  return setPaymodes;
@@ -2819,10 +2680,6 @@ var Member = exports.Member = (_class5 = function () {
2819
2680
  var index = (0, _findIndex3.default)(m.DynamicPropertyKeys, function (key) {
2820
2681
  return key == 'canusedbalancestorage';
2821
2682
  });
2822
-
2823
- var _ref35 = _mutantsUtil.platform || {},
2824
- isNewRetailBCPos = _ref35.isNewRetailBCPos;
2825
-
2826
2683
  (0, _mobx.runInAction)(function () {
2827
2684
  _this24.cardNo = m.CardCode;
2828
2685
  if (index >= 0) {