tplus-components-touch 3.26.7 → 3.27.3

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 (194) 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 +7 -7
  20. package/dist/components/billSearch/api.js +98 -37
  21. package/dist/components/billSearch/api.js.map +1 -1
  22. package/dist/components/billSearch/index.js +6 -6
  23. package/dist/components/billSearch/index.js.map +1 -1
  24. package/dist/components/billSearch/index.less +373 -373
  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 +23 -14
  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.map +1 -1
  37. package/dist/components/commonForm/datePicker/style.less +4 -4
  38. package/dist/components/commonForm/formControl/index.js.map +1 -1
  39. package/dist/components/commonForm/index.js +13 -7
  40. package/dist/components/commonForm/index.js.map +1 -1
  41. package/dist/components/commonForm/inputNumber/index.js.map +1 -1
  42. package/dist/components/commonForm/inputNumber/style.less +10 -10
  43. package/dist/components/commonForm/radio/index.js.map +1 -1
  44. package/dist/components/commonForm/style.less +1 -1
  45. package/dist/components/deliverySearch/api.js +21 -21
  46. package/dist/components/deliverySearch/api.js.map +1 -1
  47. package/dist/components/deliverySearch/index.js +6 -6
  48. package/dist/components/deliverySearch/index.js.map +1 -1
  49. package/dist/components/deliverySearch/index.less +553 -553
  50. package/dist/components/form/index.js.map +1 -1
  51. package/dist/components/hardwareAPI/index.js.map +1 -1
  52. package/dist/components/hotKey/config.js +23 -23
  53. package/dist/components/hotKey/config.js.map +1 -1
  54. package/dist/components/hotKey/hotKeyModal.js.map +1 -1
  55. package/dist/components/hotKey/index.js +26 -26
  56. package/dist/components/hotKey/index.js.map +1 -1
  57. package/dist/components/hotKey/localConfig.js +66 -133
  58. package/dist/components/hotKey/localConfig.js.map +1 -1
  59. package/dist/components/hotKey/style.less +96 -96
  60. package/dist/components/hotKey/utils.js.map +1 -1
  61. package/dist/components/input/index.js +6 -6
  62. package/dist/components/input/index.js.map +1 -1
  63. package/dist/components/input/style.less +99 -99
  64. package/dist/components/input/tplusInput/index.js +30 -30
  65. package/dist/components/input/tplusInput/index.js.map +1 -1
  66. package/dist/components/input/tplusInput/inputContent.js.map +1 -1
  67. package/dist/components/input/tplusInput/inputs.js.map +1 -1
  68. package/dist/components/input/tplusInput/style.less +132 -132
  69. package/dist/components/input/utils/index.js.map +1 -1
  70. package/dist/components/inventorySearch/api.js +58 -58
  71. package/dist/components/inventorySearch/api.js.map +1 -1
  72. package/dist/components/inventorySearch/index.js +3 -3
  73. package/dist/components/inventorySearch/index.js.map +1 -1
  74. package/dist/components/inventorySearch/index.less +119 -119
  75. package/dist/components/inventorySearch/store.js.map +1 -1
  76. package/dist/components/inventorySearch/tab.js.map +1 -1
  77. package/dist/components/keyboard/index.js.map +1 -1
  78. package/dist/components/keyboard/index.less +469 -469
  79. package/dist/components/keyboard/letterKeyboard.js +2 -2
  80. package/dist/components/keyboard/letterKeyboard.js.map +1 -1
  81. package/dist/components/keyboard/numKeyboard.js +4 -4
  82. package/dist/components/keyboard/numKeyboard.js.map +1 -1
  83. package/dist/components/keyboard/numKeyboardScan.js.map +1 -1
  84. package/dist/components/keyboard/numberButton_input.js +5 -5
  85. package/dist/components/keyboard/numberButton_input.js.map +1 -1
  86. package/dist/components/keyboard/numkeyboardPassword.js +4 -4
  87. package/dist/components/keyboard/numkeyboardPassword.js.map +1 -1
  88. package/dist/components/keyboard/onlyKeyboard.js +7 -7
  89. package/dist/components/keyboard/onlyKeyboard.js.map +1 -1
  90. package/dist/components/keyboard/onlyLetterButton.js +2 -2
  91. package/dist/components/keyboard/onlyLetterButton.js.map +1 -1
  92. package/dist/components/keyboard/onlyLetterButton2.js +2 -2
  93. package/dist/components/keyboard/onlyLetterButton2.js.map +1 -1
  94. package/dist/components/keyboard/onlyLetterButton2.less +161 -161
  95. package/dist/components/keyboard/onlyNumberButton.js +2 -2
  96. package/dist/components/keyboard/onlyNumberButton.js.map +1 -1
  97. package/dist/components/keyboard/onlyNumberButton2.js +3 -3
  98. package/dist/components/keyboard/onlyNumberButton2.js.map +1 -1
  99. package/dist/components/keyboard/textKeyboard.js.map +1 -1
  100. package/dist/components/layout/hamburger.js.map +1 -1
  101. package/dist/components/layout/index.js +10 -10
  102. package/dist/components/layout/index.js.map +1 -1
  103. package/dist/components/layout/layout.js.map +1 -1
  104. package/dist/components/layout/sider.js +12 -12
  105. package/dist/components/layout/sider.js.map +1 -1
  106. package/dist/components/layout/style.less +82 -82
  107. package/dist/components/loading/index.js +15 -15
  108. package/dist/components/loading/index.js.map +1 -1
  109. package/dist/components/loading/loadingContent.js.map +1 -1
  110. package/dist/components/loading/style.less +61 -61
  111. package/dist/components/loading/utils.js.map +1 -1
  112. package/dist/components/message/index.js +8 -8
  113. package/dist/components/message/index.js.map +1 -1
  114. package/dist/components/message/index.less +101 -101
  115. package/dist/components/modal/index.js.map +1 -1
  116. package/dist/components/modal/index.less +19 -19
  117. package/dist/components/modalVertical/index.js +7 -7
  118. package/dist/components/modalVertical/index.js.map +1 -1
  119. package/dist/components/modalVertical/style.less +60 -60
  120. package/dist/components/modalWraper/index.js +15 -15
  121. package/dist/components/modalWraper/index.js.map +1 -1
  122. package/dist/components/modalWraper/style.less +257 -257
  123. package/dist/components/modalWraper/utils.js.map +1 -1
  124. package/dist/components/notification/index.js +4 -4
  125. package/dist/components/notification/index.js.map +1 -1
  126. package/dist/components/notification/index.less +51 -51
  127. package/dist/components/overflowTip/index.js +15 -15
  128. package/dist/components/overflowTip/index.js.map +1 -1
  129. package/dist/components/overflowTip/style.less +66 -66
  130. package/dist/components/page/index.js.map +1 -1
  131. package/dist/components/page/index.less +21 -21
  132. package/dist/components/presale/pickup.js +419 -0
  133. package/dist/components/presale/pickup.js.map +1 -0
  134. package/dist/components/presale/style.less +48 -0
  135. package/dist/components/product/detail.js +7 -7
  136. package/dist/components/product/detail.js.map +1 -1
  137. package/dist/components/product/getCard.js +5 -5
  138. package/dist/components/product/getCard.js.map +1 -1
  139. package/dist/components/product/index.less +128 -128
  140. package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
  141. package/dist/components/progressState/ProgressState.js +10 -10
  142. package/dist/components/progressState/ProgressState.js.map +1 -1
  143. package/dist/components/progressState/index.js.map +1 -1
  144. package/dist/components/progressState/style.less +65 -65
  145. package/dist/components/scan/index.js.map +1 -1
  146. package/dist/components/scan/index.less +33 -33
  147. package/dist/components/select/index.js.map +1 -1
  148. package/dist/components/select/index.less +11 -11
  149. package/dist/components/settlement/asyncModal.js.map +1 -1
  150. package/dist/components/settlement/index.js.map +1 -1
  151. package/dist/components/settlement/prototypeTable/index.js.map +1 -1
  152. package/dist/components/settlement/prototypeTable/style.less +58 -58
  153. package/dist/components/settlement/prototypeTable/utils.js.map +1 -1
  154. package/dist/components/settlement/settlement.js +677 -639
  155. package/dist/components/settlement/settlement.js.map +1 -1
  156. package/dist/components/settlement/settlement.less +1600 -1646
  157. package/dist/components/settlement/settlementStore.js +316 -431
  158. package/dist/components/settlement/settlementStore.js.map +1 -1
  159. package/dist/components/settlement/utils.js.map +1 -1
  160. package/dist/components/socket/index.js +11 -11
  161. package/dist/components/socket/index.js.map +1 -1
  162. package/dist/components/spin/index.js +6 -6
  163. package/dist/components/spin/index.js.map +1 -1
  164. package/dist/components/spin/spin-style.less +436 -436
  165. package/dist/components/test/index.js +3 -3
  166. package/dist/components/test/index.js.map +1 -1
  167. package/dist/components/ticon/iconfont/demo.css +539 -539
  168. package/dist/components/ticon/iconfont/demo_index.html +5225 -5248
  169. package/dist/components/ticon/iconfont/iconfont.css +891 -895
  170. package/dist/components/ticon/iconfont/iconfont.js +6 -6
  171. package/dist/components/ticon/iconfont/iconfont.js.map +1 -1
  172. package/dist/components/ticon/iconfont/iconfont.json +1542 -1549
  173. package/dist/components/ticon/iconfont/iconfont.svg +593 -593
  174. package/dist/components/ticon/iconfont/iconfont.ttf +0 -0
  175. package/dist/components/ticon/iconfont/iconfont.woff +0 -0
  176. package/dist/components/ticon/iconfont/iconfont.woff2 +0 -0
  177. package/dist/components/ticon/index.js.map +1 -1
  178. package/dist/components/touchScroll/index.js +9 -9
  179. package/dist/components/touchScroll/index.js.map +1 -1
  180. package/dist/components/touchTable/AuthProcess.js.map +1 -1
  181. package/dist/components/touchTable/generateWater.js.map +1 -1
  182. package/dist/components/touchTable/index.js +18 -9
  183. package/dist/components/touchTable/index.js.map +1 -1
  184. package/dist/components/touchTable/index.less +369 -369
  185. package/dist/components/touchTable/utils.js.map +1 -1
  186. package/dist/demo/PopOverDemo.js.map +1 -1
  187. package/dist/index.js +13 -8
  188. package/dist/index.js.map +1 -1
  189. package/dist/util/tools.js.map +1 -1
  190. package/locales/zh/tplus-components-touch.json +1 -1
  191. package/locales/zh-CN/tplus-components-touch.json +1 -1
  192. package/mocks/memberInfo.json +79 -79
  193. package/package.json +2 -2
  194. package/tsconfig.json +26 -26
@@ -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, _descriptor3, _descriptor4, _desc2, _value2, _class3, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _desc3, _value3, _class5, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19;
44
+ var _desc, _value, _class, _descriptor, _descriptor2, _desc2, _value2, _class3, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _desc3, _value3, _class5, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;
45
45
 
46
46
  var _mobx = require('mobx');
47
47
 
@@ -178,44 +178,6 @@ var SettlementStore = (_class = function () {
178
178
 
179
179
  _initDefineProp(this, 'updateMemberInfo', _descriptor2, this);
180
180
 
181
- _initDefineProp(this, 'updateCurrentMode', _descriptor3, this);
182
-
183
- _initDefineProp(this, 'updateCardInfo', _descriptor4, this);
184
-
185
- this.handleCzkData = function (m) {
186
- if (!m || !m.StorageCardNo) {
187
- (0, _mobx.runInAction)(function () {
188
- _this2.paymode.currentMode.errinfo = "无效的会员卡号";
189
- });
190
- } else {
191
- (0, _mobx.runInAction)(function () {
192
- _this2.paymode.currentMode.errinfo = "";
193
- _this2.paymode.currentMode.memberId = m.ID;
194
- _this2.paymode.currentMode.value = (0, _utils.getFixedNumber)(_this2.brefund ? _this2.paymode.receivable : Math.max(_this2.paymode.receivable, 0));
195
- _this2.updateEvent();
196
- var message = '';
197
- var sum = (0, _reduce3.default)(_this2.paymode.thePaymodes, function (total, cur) {
198
- return total + cur.value;
199
- }, 0);
200
- // 对于卡不用判断会员的一些信息
201
- // if (global.CheckMemberStorageProcessorBlock ) {
202
- // message= CheckMemberStorageProcessorBlock.execute(m);
203
- // }
204
- if (!String.isNullOrEmpty(message)) {
205
- _this2.paymode.currentMode.errinfo = message;
206
- } else if (_this2.checkReceived(_this2.paymode.currentMode, "balance")) {
207
- _this2.paymode.currentMode.errinfo = "余额不足";
208
- } else if (_this2.paymode.amount > 0 && parseFloat(_this2.paymode.amount) !== sum && _this2.paymode.currentMode.value == 0) {
209
- _this2.paymode.currentMode.errinfo = "实收金额必须录入";
210
- } else {
211
- // 查询成功后将焦点移入下一个输入框
212
- var nextInput = document.querySelector('.czk .received .input');
213
- nextInput && nextInput.select();
214
- }
215
- });
216
- }
217
- };
218
-
219
181
  this.getCouponList = function (coupon_code) {
220
182
  var _enumController$getEn = _mutantsUtil.enumController.getEnumOj(),
221
183
  PayStyle = _enumController$getEn.PayStyle,
@@ -272,7 +234,7 @@ var SettlementStore = (_class = function () {
272
234
  }
273
235
  detailDTO.listPrice = JSON.getCellValue(item, "listPrice");
274
236
  detailDTO.netAmountWithTax = Math.Multiply(detailDTO.listPrice, Math.Minus(item.Quantity, bookingQuantity)); //item.TaxAmount;
275
- //}
237
+ //}
276
238
  detailDTO.taxRate = item.TaxRate;
277
239
  detailDTO.quantity = item.Quantity;
278
240
 
@@ -345,6 +307,18 @@ var SettlementStore = (_class = function () {
345
307
  return (0, _tplusApi.ccApi)({}, '/marketingtool/paygift/executeRightsForPos/' + _this2.billID, false, false, { method: 'get', timeout_skip: true });
346
308
  };
347
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
+
348
322
  this.checkCoupon = function () {
349
323
  var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(sn) {
350
324
  var _ref4, isNewRetailBCPos, _enumController$getEn3, PayStyle, Differentiate;
@@ -486,7 +460,32 @@ var SettlementStore = (_class = function () {
486
460
  });
487
461
  // this.member=context.stores && context.stores.memberStore && context.stores.memberStore.member;
488
462
  this.member = this.dto.Member; //stores.selectMemberStore.selectMemberInfo;
489
- this.brefund = this.paymode.setAmount(this.dto.TotalTaxAmount, this.dto.OnlinePaymentAmount);
463
+
464
+ //预订按比例收取订金处理
465
+ var value = this.dto.TotalTaxAmount;
466
+
467
+ var _getLoginInfo = this.getLoginInfo(),
468
+ Book = _getLoginInfo.Book,
469
+ PercentageWhenBook = _getLoginInfo.PercentageWhenBook;
470
+
471
+ var _ref5 = this.dto || {},
472
+ IdbusiType = _ref5.IdbusiType,
473
+ DistributionMode = _ref5.DistributionMode;
474
+
475
+ if (IdbusiType == 38 && Book && PercentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')) {
476
+ value = value * PercentageWhenBook / 100;
477
+ (0, _mobx.runInAction)(function () {
478
+ _this3.dto.PrepaidAmount = value;
479
+ });
480
+ }
481
+ if (IdbusiType == 38 && Book && (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE')) {
482
+ value += this.dto.BuyerPayFreight || 0;
483
+ }
484
+ if (IdbusiType == 39) {
485
+ value = _mutantsMicrofx.stores.drawerStore.thisWaitPaidAmount;
486
+ }
487
+
488
+ this.brefund = this.paymode.setAmount(value, this.dto.OnlinePaymentAmount);
490
489
  } else {
491
490
  this.brefund = this.paymode.setAmount(amount, 0);
492
491
  this.dto = data;
@@ -534,8 +533,8 @@ var SettlementStore = (_class = function () {
534
533
  var _enumController$getEn4 = _mutantsUtil.enumController.getEnumOj(),
535
534
  PayStyle = _enumController$getEn4.PayStyle;
536
535
 
537
- var _ref5 = _mutantsUtil.platform || {},
538
- isNewRetailBCPos = _ref5.isNewRetailBCPos;
536
+ var _ref6 = _mutantsUtil.platform || {},
537
+ isNewRetailBCPos = _ref6.isNewRetailBCPos;
539
538
 
540
539
  console.log(this.dto, 'dto==========');
541
540
  this.paymode.checkList = [];
@@ -560,14 +559,14 @@ var SettlementStore = (_class = function () {
560
559
  if (themode.paymentType == PayStyle.djq) {
561
560
  (0, _each3.default)(_this5.dto.RetailCouponDetails, function (djq) {
562
561
  if (isNewRetailBCPos) {
563
- var _ref6 = djq || {},
564
- displayText = _ref6.displayText,
565
- promoRuleId = _ref6.promoRuleId,
566
- dateMount = _ref6.dateMount,
567
- promoMethodEnum = _ref6.promoMethodEnum,
568
- discountPct = _ref6.discountPct,
569
- promoId = _ref6.promoId,
570
- 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;
571
570
 
572
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);
573
572
  return;
@@ -579,23 +578,13 @@ var SettlementStore = (_class = function () {
579
578
  }
580
579
  });
581
580
  (0, _each3.default)(this.dto.RetailStorageDetails, function (detail) {
582
- var balanceAmount = null;
583
- var storageCardNo = null;
584
- var meStorageCardId = null;
585
- detail.DynamicPropertyKeys.forEach(function (ele, index) {
586
- if (ele === "mestoragecard") {
587
- balanceAmount = detail.DynamicPropertyValues[index].BalanceStorage - detail.StoragePaymentAmount;
588
- storageCardNo = detail.DynamicPropertyValues[index].StorageCardNo;
589
- meStorageCardId = detail.DynamicPropertyValues[index].meStorageCardId;
590
- }
591
- });
581
+ var balanceAmount = detail.Member.BalanceStorage;
582
+ balanceAmount = balanceAmount - detail.StoragePaymentAmount;
592
583
  var newmode = (0, _extends3.default)({}, _this5.genNewMode(PayStyle.hyczk, false, detail.StoragePaymentAmount), {
593
- member: new Member(detail.Member ? detail.Member : null),
594
- authCode: detail.Password ? detail.Password : null,
584
+ member: new Member(detail.Member),
585
+ authCode: detail.Password,
595
586
  balance: balanceAmount,
596
- boriginReturn: true,
597
- meStorageCardId: meStorageCardId ? meStorageCardId : detail.MeStorageCardId,
598
- storageCardNo: storageCardNo ? storageCardNo : detail.StorageCardNo
587
+ boriginReturn: true
599
588
  });
600
589
  _this5.paymode.thePaymodes.push(newmode);
601
590
  });
@@ -639,7 +628,7 @@ var SettlementStore = (_class = function () {
639
628
 
640
629
  //抵现积分
641
630
  (0, _tplusApi.tApi)({ IntegralSteadCashParams: {
642
- Idmember: this.paymode.currentMode.memberId,
631
+ Idmember: this.paymode.currentMode.member.id,
643
632
  TotalTaxAmount: this.paymode.amount,
644
633
  BalanceTaxAmount: this.paymode.currentMode.value
645
634
  } }, 'AA.DR.newRetailMember.CalculdateIntegralSteadCash', false, false).then(function (result) {
@@ -659,9 +648,9 @@ var SettlementStore = (_class = function () {
659
648
  }, {
660
649
  key: 'getLoginInfo',
661
650
  value: function getLoginInfo() {
662
- var _ref7 = _mutantsMicrofx.localStore.get('user') || {},
663
- _ref7$loginInfo = _ref7.loginInfo,
664
- loginInfo = _ref7$loginInfo === undefined ? {} : _ref7$loginInfo;
651
+ var _ref8 = _mutantsMicrofx.localStore.get('user') || {},
652
+ _ref8$loginInfo = _ref8.loginInfo,
653
+ loginInfo = _ref8$loginInfo === undefined ? {} : _ref8$loginInfo;
665
654
 
666
655
  return loginInfo;
667
656
  }
@@ -672,6 +661,7 @@ var SettlementStore = (_class = function () {
672
661
 
673
662
  if ((0, _trim3.default)(v) === "") {
674
663
  (0, _mobx.runInAction)(function () {
664
+ _this7.paymode.currentMode.member = new Member(null);
675
665
  _this7.paymode.currentMode.errinfo = "请输入储值卡";
676
666
  });
677
667
  return;
@@ -679,62 +669,72 @@ var SettlementStore = (_class = function () {
679
669
  var IdStore = this.storeInfo.storeID;
680
670
  var StoreCode = this.storeInfo.storeCode; //_find(this.storeInfo.storeInfos,(store)=>{return store.ID==IdStore;}).Code;
681
671
 
682
- var _ref8 = _mutantsUtil.platform || {},
683
- isNewRetailBCPos = _ref8.isNewRetailBCPos;
672
+ var _ref9 = _mutantsUtil.platform || {},
673
+ isNewRetailBCPos = _ref9.isNewRetailBCPos;
684
674
 
685
675
  var address = '';
686
676
  if (isNewRetailBCPos) {
687
677
  // address = '/member/memberProfile/FindByStorageCode/'+v;
688
- address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + v + '/' + true;
689
- return (0, _tplusApi.ccApi)({ code: v }, address, false, false, { method: 'get', timeout_skip: true }).then(function () {
690
- var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(result) {
691
- var data, m;
692
- return _regenerator2.default.wrap(function _callee2$(_context2) {
693
- while (1) {
694
- switch (_context2.prev = _context2.next) {
695
- case 0:
696
- data = result.data;
697
- m = data && data.length && data[0];
698
-
699
- if (!(m.CardTypeEnum === 'BALANCE_CARD')) {
700
- _context2.next = 7;
701
- break;
702
- }
703
-
704
- _this7.paymode.updateCardInfo(m);
705
- _this7.handleCzkData(m);
706
- _context2.next = 9;
707
- break;
708
-
709
- case 7:
710
- _context2.next = 9;
711
- return (0, _tplusApi.ccApi)({ dto: _this7.dto, meStorageCardId: m.MeStorageCardId }, '/retail/RetailPos/validateRetailStorageCard', false, false).then(function (result1) {
712
- var data1 = result1.data ? JSON.parse(result1.data)[0] : {};
713
- if (data1.enable) {
714
- _this7.paymode.updateCardInfo(m);
715
- _this7.handleCzkData(m);
716
- } else {
717
- _message2.default.warn(data1.disableReason);
718
- }
719
- });
720
-
721
- case 9:
722
- case 'end':
723
- return _context2.stop();
724
- }
678
+ address = '/member/MeMemberWallet/FindByStorageCode';
679
+ return (0, _tplusApi.ccApi)({ code: v }, address, false, false, { method: 'get', timeout_skip: true }).then(function (result) {
680
+ var data = result.data;
681
+ var m = data;
682
+
683
+ var _ref10 = _mutantsUtil.platform || {},
684
+ isNewRetailBCPos = _ref10.isNewRetailBCPos;
685
+
686
+ if (isNewRetailBCPos) {
687
+ _this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
688
+ _this7.paymode && _this7.paymode.currentMode.member.setStorageCardNo(m.StorageCardNo);
689
+ _this7.paymode && (_this7.paymode.currentMode.MeStorageCardId = m.MeStorageCardId);
690
+ _this7.paymode && (_this7.paymode.currentMode.StorageCardNo = m.StorageCardNo);
691
+ }
692
+ if (!m || !m.ID) {
693
+ (0, _mobx.runInAction)(function () {
694
+ _this7.paymode.currentMode.errinfo = "无效的会员卡号";
695
+ });
696
+ } else {
697
+ (0, _mobx.runInAction)(function () {
698
+ _this7.paymode.currentMode.errinfo = "";
699
+ _this7.paymode.currentMode.member = new Member(m);
700
+ _this7.paymode.currentMode.value = (0, _utils.getFixedNumber)(_this7.brefund ? _this7.paymode.receivable : Math.max(_this7.paymode.receivable, 0));
701
+ _this7.updateEvent();
702
+ var message = '';
703
+ var sum = (0, _reduce3.default)(_this7.paymode.thePaymodes, function (total, cur) {
704
+ return total + cur.value;
705
+ }, 0);
706
+ if (global.CheckMemberStorageProcessorBlock) {
707
+ message = CheckMemberStorageProcessorBlock.execute(m);
725
708
  }
726
- }, _callee2, _this7);
727
- }));
728
-
729
- return function (_x2) {
730
- return _ref9.apply(this, arguments);
731
- };
732
- }());
709
+ if (!String.isNullOrEmpty(message)) {
710
+ _this7.paymode.currentMode.errinfo = message;
711
+ } else if (_this7.checkReceived(_this7.paymode.currentMode, "balance")) {
712
+ _this7.paymode.currentMode.errinfo = "余额不足";
713
+ } else if (_this7.paymode.amount > 0 && parseFloat(_this7.paymode.amount) !== sum && _this7.paymode.currentMode.value == 0) {
714
+ _this7.paymode.currentMode.errinfo = "实收金额必须录入";
715
+ } else {
716
+ // 查询成功后将焦点移入下一个输入框
717
+ var nextInput = document.querySelector('.czk .received .input');
718
+ nextInput && nextInput.select();
719
+ }
720
+ });
721
+ }
722
+ });
733
723
  } else {
734
724
  address = 'AA.DR.newRetailMember.SearchMember';
735
725
  return (0, _tplusApi.tApi)({ SearchParams: { Key: v, IsSingleMember: true, IdStore: IdStore, StoreCode: StoreCode } }, address, false, false).then(function (result) {
736
726
  var data = JSON.parse(result.Data);
737
727
  var m = data && data.length > 0 && data[0];
728
+
729
+ var _ref11 = _mutantsUtil.platform || {},
730
+ isNewRetailBCPos = _ref11.isNewRetailBCPos;
731
+
732
+ if (isNewRetailBCPos) {
733
+ _this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
734
+ _this7.paymode && _this7.paymode.currentMode.member.setStorageCardNo(m.StorageCardNo);
735
+ _this7.paymode && (_this7.paymode.currentMode.MeStorageCardId = m.MeStorageCardId);
736
+ _this7.paymode && (_this7.paymode.currentMode.StorageCardNo = m.StorageCardNo);
737
+ }
738
738
  if (!m || !m.ID) {
739
739
  (0, _mobx.runInAction)(function () {
740
740
  _this7.paymode.currentMode.errinfo = "无效的会员卡号";
@@ -830,7 +830,7 @@ var SettlementStore = (_class = function () {
830
830
  }
831
831
 
832
832
  (0, _tplusApi.tApi)({ IntegralSteadCashParams: {
833
- Idmember: this.paymode.currentMode.memberId,
833
+ Idmember: this.paymode.currentMode.member.id,
834
834
  TotalTaxAmount: this.paymode.amount,
835
835
  BalanceTaxAmount: this.paymode.amount
836
836
  } }, 'AA.DR.newRetailMember.CalculdateIntegralSteadCash', false, false).then(function (result) {
@@ -857,22 +857,6 @@ var SettlementStore = (_class = function () {
857
857
 
858
858
  var value = (0, _utils.getFixedNumber)(v || (this.brefund ? this.paymode.receivable : Math.max(this.paymode.receivable, 0)));
859
859
  var themode = (0, _find3.default)(this.paymode.paymodes, { 'paymentType': type });
860
- var balance = null;
861
- var rawbalance = null;
862
- var storageCardNo = null;
863
- var memberId = this.member && this.member.ID ? this.member.ID : null;
864
- var cardTypeEnum = null;
865
- var walletEnabled = null;
866
- var meStorageCardId = null;
867
- if (type === PayStyle.hyczk) {
868
- // 会员概念改为卡,把这些字段都放开
869
- cardTypeEnum = this.member.CardTypeEnum ? this.member.CardTypeEnum : null;
870
- walletEnabled = this.member.WalletEnabled ? this.member.WalletEnabled : null;
871
- storageCardNo = this.member.StorageCardNo ? this.member.StorageCardNo : null;
872
- balance = this.member.BalanceStorage ? this.member.BalanceStorage : null;
873
- rawbalance = this.member.BalanceStorage ? this.member.BalanceStorage : null;
874
- meStorageCardId = this.member.MeStorageCardId ? this.member.MeStorageCardId : null;
875
- }
876
860
  var mode = (0, _mobx.observable)({
877
861
  paymethodId: this.paymode.counter,
878
862
  name: themode.name,
@@ -884,14 +868,6 @@ var SettlementStore = (_class = function () {
884
868
  order: this.paymode.thePaymodes.length + 1,
885
869
  paymentType: type,
886
870
  djqs: [],
887
- card: null,
888
- cardTypeEnum: !notwithm ? cardTypeEnum : null,
889
- walletEnabled: !notwithm ? walletEnabled : null,
890
- memberId: !notwithm ? memberId : null,
891
- meStorageCardId: !notwithm ? meStorageCardId : null,
892
- storageCardNo: !notwithm ? storageCardNo : null,
893
- balance: !notwithm ? balance : null,
894
- rawbalance: !notwithm ? rawbalance : null,
895
871
  member: new Member(!notwithm ? this.member : null),
896
872
  authCode: '',
897
873
  steadCashIntegral: null,
@@ -899,7 +875,7 @@ var SettlementStore = (_class = function () {
899
875
  maxamount: this.paymode.amount
900
876
  });
901
877
  if (type == PayStyle.hyczk) {
902
- if (!mode.storageCardNo) {
878
+ if (!mode.member.id || !mode.member.StorageCardNo) {
903
879
  (0, _mobx.runInAction)(function () {
904
880
  mode.errinfo = '未录入储值卡';
905
881
  });
@@ -1045,80 +1021,80 @@ var SettlementStore = (_class = function () {
1045
1021
  }, {
1046
1022
  key: 'commit',
1047
1023
  value: function () {
1048
- var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(bTest) {
1049
- var _ref11, isNewRetailBCPos;
1024
+ var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
1025
+ var _ref13, isNewRetailBCPos;
1050
1026
 
1051
- return _regenerator2.default.wrap(function _callee3$(_context3) {
1027
+ return _regenerator2.default.wrap(function _callee2$(_context2) {
1052
1028
  while (1) {
1053
- switch (_context3.prev = _context3.next) {
1029
+ switch (_context2.prev = _context2.next) {
1054
1030
  case 0:
1055
1031
  console.log('settlementStore.commit开始,参数:' + bTest);
1056
1032
 
1057
1033
  if (!bTest) {
1058
- _context3.next = 3;
1034
+ _context2.next = 3;
1059
1035
  break;
1060
1036
  }
1061
1037
 
1062
- return _context3.abrupt('return', _promise2.default.resolve(true));
1038
+ return _context2.abrupt('return', _promise2.default.resolve(true));
1063
1039
 
1064
1040
  case 3:
1065
- _ref11 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref11.isNewRetailBCPos;
1066
- _context3.prev = 4;
1041
+ _ref13 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref13.isNewRetailBCPos;
1042
+ _context2.prev = 4;
1067
1043
 
1068
1044
  if (!(this.type == 1)) {
1069
- _context3.next = 10;
1045
+ _context2.next = 10;
1070
1046
  break;
1071
1047
  }
1072
1048
 
1073
- _context3.next = 8;
1049
+ _context2.next = 8;
1074
1050
  return this.saveMember();
1075
1051
 
1076
1052
  case 8:
1077
- _context3.next = 18;
1053
+ _context2.next = 18;
1078
1054
  break;
1079
1055
 
1080
1056
  case 10:
1081
1057
  if (!isNewRetailBCPos) {
1082
- _context3.next = 13;
1058
+ _context2.next = 13;
1083
1059
  break;
1084
1060
  }
1085
1061
 
1086
- _context3.next = 13;
1062
+ _context2.next = 13;
1087
1063
  return _mutantsMicrofx.stores.offlineSys.generatorCode(this.dto);
1088
1064
 
1089
1065
  case 13:
1090
- _context3.next = 15;
1066
+ _context2.next = 15;
1091
1067
  return this.save();
1092
1068
 
1093
1069
  case 15:
1094
1070
  if (!isNewRetailBCPos) {
1095
- _context3.next = 18;
1071
+ _context2.next = 18;
1096
1072
  break;
1097
1073
  }
1098
1074
 
1099
- _context3.next = 18;
1075
+ _context2.next = 18;
1100
1076
  return _mutantsMicrofx.stores.offlineSys.retailSequenceUpload();
1101
1077
 
1102
1078
  case 18:
1103
- return _context3.abrupt('return', _promise2.default.resolve(true));
1079
+ return _context2.abrupt('return', _promise2.default.resolve(true));
1104
1080
 
1105
1081
  case 21:
1106
- _context3.prev = 21;
1107
- _context3.t0 = _context3['catch'](4);
1082
+ _context2.prev = 21;
1083
+ _context2.t0 = _context2['catch'](4);
1108
1084
 
1109
- console.error('settlementStore.commit失败,错误信息:' + _context3.t0);
1110
- return _context3.abrupt('return', _promise2.default.resolve(_context3.t0));
1085
+ console.error('settlementStore.commit失败,错误信息:' + _context2.t0);
1086
+ return _context2.abrupt('return', _promise2.default.resolve(_context2.t0));
1111
1087
 
1112
1088
  case 25:
1113
1089
  case 'end':
1114
- return _context3.stop();
1090
+ return _context2.stop();
1115
1091
  }
1116
1092
  }
1117
- }, _callee3, this, [[4, 21]]);
1093
+ }, _callee2, this, [[4, 21]]);
1118
1094
  }));
1119
1095
 
1120
- function commit(_x3) {
1121
- return _ref10.apply(this, arguments);
1096
+ function commit(_x2) {
1097
+ return _ref12.apply(this, arguments);
1122
1098
  }
1123
1099
 
1124
1100
  return commit;
@@ -1176,14 +1152,14 @@ var SettlementStore = (_class = function () {
1176
1152
  }, {
1177
1153
  key: 'save',
1178
1154
  value: function () {
1179
- var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1155
+ var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
1180
1156
  var _this11 = this;
1181
1157
 
1182
- var _enumController$getEn14, PayStyle, _ref14, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1158
+ var _enumController$getEn14, PayStyle, _ref16, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1183
1159
 
1184
- return _regenerator2.default.wrap(function _callee4$(_context4) {
1160
+ return _regenerator2.default.wrap(function _callee3$(_context3) {
1185
1161
  while (1) {
1186
- switch (_context4.prev = _context4.next) {
1162
+ switch (_context3.prev = _context3.next) {
1187
1163
  case 0:
1188
1164
  _enumController$getEn14 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn14.PayStyle;
1189
1165
 
@@ -1192,6 +1168,7 @@ var SettlementStore = (_class = function () {
1192
1168
  _this11.dto.RetailStorageDetails = [];
1193
1169
  _this11.dto.RetailCouponDetails = [];
1194
1170
  var czkSum = 0;
1171
+ var Idmember = _this11.dto.Idmember;
1195
1172
  var count = 0;
1196
1173
  var thePaymodes = _this11.newStyle ? (0, _filter3.default)(_this11.paymode.thePaymodes, function (mode) {
1197
1174
  return parseFloat(mode.value) != 0;
@@ -1199,14 +1176,18 @@ var SettlementStore = (_class = function () {
1199
1176
  (0, _each3.default)(thePaymodes, function (mode, index) {
1200
1177
  var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': mode.paymentType });
1201
1178
  if (mode.paymentType == PayStyle.hyczk) {
1179
+ if (!Idmember) {
1180
+ Idmember = mode.member.id;
1181
+ }
1202
1182
  czkSum = Math.Add(czkSum, mode.value);
1183
+ var MeStorageCardId = mode.member.MeStorageCardId ? mode.member.MeStorageCardId : _this11.member.MeStorageCardId;
1203
1184
  _this11.dto.RetailStorageDetails.push({
1204
1185
  Code: mode.paymethodId,
1205
- MeStorageCardId: mode.meStorageCardId,
1186
+ MeStorageCardId: MeStorageCardId,
1206
1187
  StoragePaymentAmount: mode.value,
1207
1188
  IsOrigReturn: false,
1208
1189
  BalanceStorage: mode.balance,
1209
- Idmember: mode.memberId,
1190
+ Idmember: mode.member.id,
1210
1191
  DynamicPropertyKeys: [],
1211
1192
  DynamicPropertyValues: [],
1212
1193
  DataSource: { Id: _this11.dataSource },
@@ -1242,7 +1223,7 @@ var SettlementStore = (_class = function () {
1242
1223
  ReductionAmount: djq.amount,
1243
1224
  EnableAmount: djq.doorsill,
1244
1225
  CouponTitle: djq.name,
1245
- IdMember: djq.UMemberID ? mode.memberId : null,
1226
+ IdMember: djq.UMemberID ? mode.member.id : null,
1246
1227
  LastTS: djq.LastTS,
1247
1228
  PromotionId: djq.promoId,
1248
1229
  PromotionRuleId: djq.promoRuleId,
@@ -1254,12 +1235,15 @@ var SettlementStore = (_class = function () {
1254
1235
  }
1255
1236
  });
1256
1237
 
1257
- var _ref13 = _mutantsUtil.platform || {},
1258
- isNewRetailBCPos = _ref13.isNewRetailBCPos;
1238
+ var _ref15 = _mutantsUtil.platform || {},
1239
+ isNewRetailBCPos = _ref15.isNewRetailBCPos;
1259
1240
 
1260
1241
  if (_this11.dto.RetailStorageDetails.length > 0) {
1261
1242
  var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
1262
1243
  if (isNewRetailBCPos) {
1244
+ // this.dto.RetailStorageDetails && this.dto.RetailStorageDetails.forEach((value, index) => {
1245
+ // value.MeStorageCardId = (mode.MeStorageCardId ? mode.MeStorageCardId : this.member.MeStorageCardId);
1246
+ // })
1263
1247
  _this11.dto.RetailPaymentDetails.push({
1264
1248
  Code: _this11.paymode.counter,
1265
1249
  OrigAmount: czkSum,
@@ -1283,14 +1267,15 @@ var SettlementStore = (_class = function () {
1283
1267
  DataSource: { Id: _this11.dataSource }
1284
1268
  });
1285
1269
  }
1270
+ _this11.dto.Idmember = Idmember;
1286
1271
  }
1287
1272
  });
1288
- _ref14 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref14.isNewRetailBCPos;
1273
+ _ref16 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref16.isNewRetailBCPos;
1289
1274
 
1290
1275
  console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
1291
1276
 
1292
1277
  if (!isNewRetailBCPos) {
1293
- _context4.next = 20;
1278
+ _context3.next = 20;
1294
1279
  break;
1295
1280
  }
1296
1281
 
@@ -1301,61 +1286,61 @@ var SettlementStore = (_class = function () {
1301
1286
  IPMSG = JSON.parse(window.localStorage.IPMSG);
1302
1287
  }
1303
1288
  RetailTypeEnum = this.dto.IdbusiType == 36 ? "INTEGRAL_EXCHANGE" : "NORMAL";
1304
- _context4.t1 = this.dto.IdbusiType == 37;
1289
+ _context3.t1 = this.dto.IdbusiType == 37;
1305
1290
 
1306
- if (!_context4.t1) {
1307
- _context4.next = 13;
1291
+ if (!_context3.t1) {
1292
+ _context3.next = 13;
1308
1293
  break;
1309
1294
  }
1310
1295
 
1311
- _context4.next = 12;
1296
+ _context3.next = 12;
1312
1297
  return this.checkIntegralExchangeReturn(this.dto.RetailDetails[0].ReturnSourceId);
1313
1298
 
1314
1299
  case 12:
1315
- _context4.t1 = _context4.sent;
1300
+ _context3.t1 = _context3.sent;
1316
1301
 
1317
1302
  case 13:
1318
- _context4.t0 = _context4.t1;
1303
+ _context3.t0 = _context3.t1;
1319
1304
 
1320
- if (_context4.t0) {
1321
- _context4.next = 16;
1305
+ if (_context3.t0) {
1306
+ _context3.next = 16;
1322
1307
  break;
1323
1308
  }
1324
1309
 
1325
- _context4.t0 = this.dto.IdbusiType != 37;
1310
+ _context3.t0 = this.dto.IdbusiType != 37;
1326
1311
 
1327
1312
  case 16:
1328
- if (!_context4.t0) {
1329
- _context4.next = 18;
1313
+ if (!_context3.t0) {
1314
+ _context3.next = 18;
1330
1315
  break;
1331
1316
  }
1332
1317
 
1333
- return _context4.abrupt('return', (0, _tplusApi.ccApi)({ dto: (0, _extends3.default)({}, this.dto.cut(), { RetailOms: { RetailTypeEnum: RetailTypeEnum } }), cip: IPMSG.query || "" }, '/retail/RetailPos/settle', false, false, { method: 'post', timeout_skip: true }).then(function (resp) {
1318
+ return _context3.abrupt('return', (0, _tplusApi.ccApi)({ dto: (0, _extends3.default)({}, this.dto.cut(), { RetailOms: { RetailTypeEnum: RetailTypeEnum } }), cip: IPMSG.query || "" }, '/retail/RetailPos/settle', false, false, { method: 'post', timeout_skip: true }).then(function (resp) {
1334
1319
  _this11.setDtoID(resp.ID);
1335
1320
  _this11.paymode.checkList = [];
1336
1321
  _this11.billID = resp.ID;
1337
1322
  }));
1338
1323
 
1339
1324
  case 18:
1340
- _context4.next = 21;
1325
+ _context3.next = 21;
1341
1326
  break;
1342
1327
 
1343
1328
  case 20:
1344
- return _context4.abrupt('return', (0, _tplusApi.tApi)({ dto: this.dto.cut() }, 'chanjet.RE.newRetail.Settle', false, false, { timeout_skip: true }).then(function (resp) {
1329
+ return _context3.abrupt('return', (0, _tplusApi.tApi)({ dto: this.dto.cut() }, 'chanjet.RE.newRetail.Settle', false, false, { timeout_skip: true }).then(function (resp) {
1345
1330
  _this11.setDtoID(resp.ID);
1346
1331
  _this11.billID = resp.ID;
1347
1332
  }));
1348
1333
 
1349
1334
  case 21:
1350
1335
  case 'end':
1351
- return _context4.stop();
1336
+ return _context3.stop();
1352
1337
  }
1353
1338
  }
1354
- }, _callee4, this);
1339
+ }, _callee3, this);
1355
1340
  }));
1356
1341
 
1357
1342
  function save() {
1358
- return _ref12.apply(this, arguments);
1343
+ return _ref14.apply(this, arguments);
1359
1344
  }
1360
1345
 
1361
1346
  return save;
@@ -1368,35 +1353,35 @@ var SettlementStore = (_class = function () {
1368
1353
  }, {
1369
1354
  key: 'querySettleResult',
1370
1355
  value: function () {
1371
- var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
1372
- return _regenerator2.default.wrap(function _callee5$(_context5) {
1356
+ var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1357
+ return _regenerator2.default.wrap(function _callee4$(_context4) {
1373
1358
  while (1) {
1374
- switch (_context5.prev = _context5.next) {
1359
+ switch (_context4.prev = _context4.next) {
1375
1360
  case 0:
1376
- _context5.prev = 0;
1377
- _context5.t0 = _promise2.default;
1378
- _context5.next = 4;
1361
+ _context4.prev = 0;
1362
+ _context4.t0 = _promise2.default;
1363
+ _context4.next = 4;
1379
1364
  return (0, _tplusApi.tApi)({ RetailCode: this.dto.Code }, 'chanjet.RE.newRetail.QuerySettleResult', false, false, { timeout_skip: true });
1380
1365
 
1381
1366
  case 4:
1382
- _context5.t1 = _context5.sent;
1383
- return _context5.abrupt('return', _context5.t0.resolve.call(_context5.t0, _context5.t1));
1367
+ _context4.t1 = _context4.sent;
1368
+ return _context4.abrupt('return', _context4.t0.resolve.call(_context4.t0, _context4.t1));
1384
1369
 
1385
1370
  case 8:
1386
- _context5.prev = 8;
1387
- _context5.t2 = _context5['catch'](0);
1388
- return _context5.abrupt('return', _promise2.default.resolve({ Flag: "1" }));
1371
+ _context4.prev = 8;
1372
+ _context4.t2 = _context4['catch'](0);
1373
+ return _context4.abrupt('return', _promise2.default.resolve({ Flag: "1" }));
1389
1374
 
1390
1375
  case 11:
1391
1376
  case 'end':
1392
- return _context5.stop();
1377
+ return _context4.stop();
1393
1378
  }
1394
1379
  }
1395
- }, _callee5, this, [[0, 8]]);
1380
+ }, _callee4, this, [[0, 8]]);
1396
1381
  }));
1397
1382
 
1398
1383
  function querySettleResult() {
1399
- return _ref15.apply(this, arguments);
1384
+ return _ref17.apply(this, arguments);
1400
1385
  }
1401
1386
 
1402
1387
  return querySettleResult;
@@ -1422,117 +1407,99 @@ var SettlementStore = (_class = function () {
1422
1407
  }, {
1423
1408
  key: 'validePwd',
1424
1409
  value: function () {
1425
- var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(value) {
1426
- var _ref17, isNewRetailBCPos, cook1, cook2, message, memberStorageId, _paymode$currentMode, cardTypeEnum, memberId, meStorageCardId, 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;
1427
1412
 
1428
- return _regenerator2.default.wrap(function _callee6$(_context6) {
1413
+ return _regenerator2.default.wrap(function _callee5$(_context5) {
1429
1414
  while (1) {
1430
- switch (_context6.prev = _context6.next) {
1415
+ switch (_context5.prev = _context5.next) {
1431
1416
  case 0:
1432
- _ref17 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref17.isNewRetailBCPos;
1433
- _context6.prev = 1;
1417
+ _ref19 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref19.isNewRetailBCPos;
1418
+ _context5.prev = 1;
1434
1419
 
1435
1420
  if (!isNewRetailBCPos) {
1436
- _context6.next = 27;
1421
+ _context5.next = 19;
1437
1422
  break;
1438
1423
  }
1439
1424
 
1440
1425
  cook1 = this.getAllCookies()['errorPwd'];
1441
1426
  cook2 = cook1 && JSON.parse(cook1);
1442
1427
  message = '密码输入错误';
1443
- memberStorageId = this.paymode.currentMode.meStorageCardId;
1428
+ memberId = this.paymode.currentMode.member.MeStorageCardId;
1444
1429
 
1445
1430
  if (!cook2) {
1446
- _context6.next = 12;
1431
+ _context5.next = 12;
1447
1432
  break;
1448
1433
  }
1449
1434
 
1450
- if (!cook2.hasOwnProperty(memberStorageId + "")) {
1451
- _context6.next = 12;
1435
+ if (!cook2.hasOwnProperty(memberId + "")) {
1436
+ _context5.next = 12;
1452
1437
  break;
1453
1438
  }
1454
1439
 
1455
- if (!(cook2[memberStorageId] > 3)) {
1456
- _context6.next = 12;
1440
+ if (!(cook2[memberId] > 3)) {
1441
+ _context5.next = 12;
1457
1442
  break;
1458
1443
  }
1459
1444
 
1460
1445
  message = '今日密码错误已达上限,不可使用储值消费,请明日再试,如忘记请重置密码或修改密码。';
1461
- return _context6.abrupt('return', _promise2.default.resolve(message));
1446
+ return _context5.abrupt('return', _promise2.default.resolve(message));
1462
1447
 
1463
1448
  case 12:
1464
- _paymode$currentMode = this.paymode.currentMode, cardTypeEnum = _paymode$currentMode.cardTypeEnum, memberId = _paymode$currentMode.memberId, meStorageCardId = _paymode$currentMode.meStorageCardId;
1465
- result = null;
1466
-
1467
- if (!(cardTypeEnum === 'BALANCE_CARD')) {
1468
- _context6.next = 20;
1469
- break;
1470
- }
1471
-
1472
- _context6.next = 17;
1473
- return (0, _tplusApi.ccApi)({ password: _tplusApi.User.pwdEncrypt(value.pwd), cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + memberId, false, false);
1449
+ _context5.next = 14;
1450
+ return (0, _tplusApi.ccApi)({ password: _tplusApi.User.pwdEncrypt(value.pwd) }, '/member/MeMemberWallet/checkPaymentPassword/' + value.id, false, false);
1474
1451
 
1475
- case 17:
1476
- result = _context6.sent;
1477
- _context6.next = 23;
1478
- break;
1479
-
1480
- case 20:
1481
- _context6.next = 22;
1482
- return (0, _tplusApi.ccApi)({ password: value.pwd, cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + meStorageCardId, false, false);
1452
+ case 14:
1453
+ result = _context5.sent;
1483
1454
 
1484
- case 22:
1485
- result = _context6.sent;
1486
-
1487
- case 23:
1488
1455
  if (!result.data) {
1489
1456
  if (cook2) {
1490
- if (cook2.hasOwnProperty(memberStorageId + "")) {
1491
- count = cook2[memberStorageId];
1457
+ if (cook2.hasOwnProperty(memberId + "")) {
1458
+ count = cook2[memberId];
1492
1459
 
1493
- cook2[memberStorageId] = count + 1;
1460
+ cook2[memberId] = count + 1;
1494
1461
  } else {
1495
- cook2[memberStorageId] = 1;
1462
+ cook2[memberId] = 1;
1496
1463
  }
1497
1464
  } else {
1498
1465
  cook2 = {};
1499
- cook2[memberStorageId] = 1;
1466
+ cook2[memberId] = 1;
1500
1467
  }
1501
1468
  this.setCookie('errorPwd', '', -1);
1502
1469
  this.setCookie('errorPwd', (0, _stringify2.default)(cook2));
1503
1470
  }
1504
- return _context6.abrupt('return', _promise2.default.resolve(result.data ? "" : message));
1471
+ return _context5.abrupt('return', _promise2.default.resolve(result.data ? "" : message));
1505
1472
 
1506
- case 27:
1507
- _context6.next = 29;
1473
+ case 19:
1474
+ _context5.next = 21;
1508
1475
  return (0, _tplusApi.tApi)({ "CheckoutParams": {
1509
1476
  "Idmember": value.id,
1510
1477
  "Password": value.pwd
1511
1478
  } }, 'AA.DR.newRetailMember.CheckoutMemberPassword', false, false);
1512
1479
 
1513
- case 29:
1514
- _result = _context6.sent;
1515
- return _context6.abrupt('return', _promise2.default.resolve(_result.Success ? "" : _result.Message));
1480
+ case 21:
1481
+ _result = _context5.sent;
1482
+ return _context5.abrupt('return', _promise2.default.resolve(_result.Success ? "" : _result.Message));
1516
1483
 
1517
- case 31:
1518
- _context6.next = 36;
1484
+ case 23:
1485
+ _context5.next = 28;
1519
1486
  break;
1520
1487
 
1521
- case 33:
1522
- _context6.prev = 33;
1523
- _context6.t0 = _context6['catch'](1);
1524
- return _context6.abrupt('return', "failed");
1488
+ case 25:
1489
+ _context5.prev = 25;
1490
+ _context5.t0 = _context5['catch'](1);
1491
+ return _context5.abrupt('return', "failed");
1525
1492
 
1526
- case 36:
1493
+ case 28:
1527
1494
  case 'end':
1528
- return _context6.stop();
1495
+ return _context5.stop();
1529
1496
  }
1530
1497
  }
1531
- }, _callee6, this, [[1, 33]]);
1498
+ }, _callee5, this, [[1, 25]]);
1532
1499
  }));
1533
1500
 
1534
- function validePwd(_x4) {
1535
- return _ref16.apply(this, arguments);
1501
+ function validePwd(_x3) {
1502
+ return _ref18.apply(this, arguments);
1536
1503
  }
1537
1504
 
1538
1505
  return validePwd;
@@ -1554,7 +1521,7 @@ var SettlementStore = (_class = function () {
1554
1521
  var idstore = (0, _tplusPoslogin.PosInitData)('storeID');
1555
1522
  return (0, _tplusApi.ccApi)({
1556
1523
  Idstore: idstore,
1557
- meMemberId: _this12.paymode.currentMode.memberId,
1524
+ meMemberId: _this12.member.ID,
1558
1525
  oldPassword: null,
1559
1526
  newPassword: _tplusApi.User.pwdEncrypt(newPassConfirm),
1560
1527
  dataSource: "POS"
@@ -1571,105 +1538,37 @@ var SettlementStore = (_class = function () {
1571
1538
  var _this13 = this;
1572
1539
 
1573
1540
  return function () {
1574
- var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(_this) {
1575
- var _getLoginInfo, IdStore, StoreCode, resp;
1541
+ var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1542
+ var _getLoginInfo2, IdStore, StoreCode, resp;
1576
1543
 
1577
- return _regenerator2.default.wrap(function _callee7$(_context7) {
1544
+ return _regenerator2.default.wrap(function _callee6$(_context6) {
1578
1545
  while (1) {
1579
- switch (_context7.prev = _context7.next) {
1546
+ switch (_context6.prev = _context6.next) {
1580
1547
  case 0:
1581
- _getLoginInfo = _this13.getLoginInfo(), IdStore = _getLoginInfo.IdStore, StoreCode = _getLoginInfo.StoreCode;
1582
- _context7.next = 3;
1548
+ _getLoginInfo2 = _this13.getLoginInfo(), IdStore = _getLoginInfo2.IdStore, StoreCode = _getLoginInfo2.StoreCode;
1549
+ _context6.next = 3;
1583
1550
  return (0, _tplusApi.tApi)({ Idmember: _this13.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
1584
1551
 
1585
1552
  case 3:
1586
- resp = _context7.sent;
1553
+ resp = _context6.sent;
1587
1554
 
1588
1555
  _this.member = resp;
1589
- _this.paymode.currentMode.storageCardNo = resp.StorageCardNo;
1590
- return _context7.abrupt('return', _promise2.default.resolve(resp));
1556
+ _this.paymode.currentMode.member.setStorageCardNo(resp.StorageCardNo);
1557
+ return _context6.abrupt('return', _promise2.default.resolve(resp));
1591
1558
 
1592
1559
  case 7:
1593
1560
  case 'end':
1594
- return _context7.stop();
1595
- }
1596
- }
1597
- }, _callee7, _this13);
1598
- }));
1599
-
1600
- return function (_x5) {
1601
- return _ref18.apply(this, arguments);
1602
- };
1603
- }();
1604
- }
1605
- }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'updateCurrentMode', [_mobx.action], {
1606
- enumerable: true,
1607
- initializer: function initializer() {
1608
- var _this14 = this;
1609
-
1610
- return function () {
1611
- var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8(memberId) {
1612
- var result;
1613
- return _regenerator2.default.wrap(function _callee8$(_context8) {
1614
- while (1) {
1615
- switch (_context8.prev = _context8.next) {
1616
- case 0:
1617
- _context8.next = 2;
1618
- return (0, _tplusApi.ccApi)({}, '/marketingtool/MeStorageCard/getCardInfoByMemberId/' + memberId, false, false, { method: 'get' });
1619
-
1620
- case 2:
1621
- result = _context8.sent;
1622
-
1623
- if (result && result.data.length) {
1624
- result.data.forEach(function (m) {
1625
- if (m.CardTypeEnum === 'BALANCE_CARD') {
1626
- // 会员概念改为卡,把这些字段都放开
1627
- _this14.paymode.updateCardInfo(m);
1628
- }
1629
- });
1630
- }
1631
-
1632
- case 4:
1633
- case 'end':
1634
- return _context8.stop();
1561
+ return _context6.stop();
1635
1562
  }
1636
1563
  }
1637
- }, _callee8, _this14);
1564
+ }, _callee6, _this13);
1638
1565
  }));
1639
1566
 
1640
- return function (_x6) {
1641
- return _ref19.apply(this, arguments);
1567
+ return function (_x4) {
1568
+ return _ref20.apply(this, arguments);
1642
1569
  };
1643
1570
  }();
1644
1571
  }
1645
- }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, 'updateCardInfo', [_mobx.action], {
1646
- enumerable: true,
1647
- initializer: function initializer() {
1648
- var _this15 = this;
1649
-
1650
- return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9() {
1651
- var address, result;
1652
- return _regenerator2.default.wrap(function _callee9$(_context9) {
1653
- while (1) {
1654
- switch (_context9.prev = _context9.next) {
1655
- case 0:
1656
- address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + _this15.paymode.currentMode.storageCardNo;
1657
- _context9.next = 3;
1658
- return (0, _tplusApi.ccApi)({}, address, false, false, { method: 'get', timeout_skip: true });
1659
-
1660
- case 3:
1661
- result = _context9.sent;
1662
-
1663
- _this15.paymode.updateCardInfo(result.data);
1664
-
1665
- case 5:
1666
- case 'end':
1667
- return _context9.stop();
1668
- }
1669
- }
1670
- }, _callee9, _this15);
1671
- }));
1672
- }
1673
1572
  }), _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);
1674
1573
  exports.default = SettlementStore;
1675
1574
  var PayMode = exports.PayMode = (_class3 = function () {
@@ -1684,19 +1583,15 @@ var PayMode = exports.PayMode = (_class3 = function () {
1684
1583
  this.onlineamount = 0;
1685
1584
  this.maxamount = 0;
1686
1585
 
1687
- _initDefineProp(this, 'currentFocus', _descriptor5, this);
1688
-
1689
- _initDefineProp(this, 'received', _descriptor6, this);
1690
-
1691
- _initDefineProp(this, 'receivable', _descriptor7, this);
1586
+ _initDefineProp(this, 'currentFocus', _descriptor3, this);
1692
1587
 
1693
- _initDefineProp(this, 'paymodes', _descriptor8, this);
1588
+ _initDefineProp(this, 'received', _descriptor4, this);
1694
1589
 
1695
- _initDefineProp(this, 'thePaymodes', _descriptor9, this);
1590
+ _initDefineProp(this, 'receivable', _descriptor5, this);
1696
1591
 
1697
- _initDefineProp(this, 'storageCardNo', _descriptor10, this);
1592
+ _initDefineProp(this, 'paymodes', _descriptor6, this);
1698
1593
 
1699
- _initDefineProp(this, 'balance', _descriptor11, this);
1594
+ _initDefineProp(this, 'thePaymodes', _descriptor7, this);
1700
1595
 
1701
1596
  this.currentMode = null;
1702
1597
  this.checkList = [];
@@ -1705,11 +1600,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
1705
1600
  hotKey: "Ctrl+M"
1706
1601
  };
1707
1602
 
1708
- _initDefineProp(this, 'calcCheckList', _descriptor12, this);
1603
+ _initDefineProp(this, 'calcCheckList', _descriptor8, this);
1709
1604
 
1710
- _initDefineProp(this, 'setCouponNum', _descriptor13, this);
1605
+ _initDefineProp(this, 'setCouponNum', _descriptor9, this);
1711
1606
 
1712
- _initDefineProp(this, 'addDjqs', _descriptor14, this);
1607
+ _initDefineProp(this, 'addDjqs', _descriptor10, this);
1713
1608
  }
1714
1609
  // @observable store = null;
1715
1610
 
@@ -1745,22 +1640,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
1745
1640
  this.received = (0, _utils.getFixedNumber)(sum);
1746
1641
  this.receivable = (0, _utils.getFixedNumber)(this.amount - sum);
1747
1642
  }
1748
- }, {
1749
- key: 'updateCardInfo',
1750
- value: function updateCardInfo(m) {
1751
- this.currentMode.isNeedPassword = m.IsNeedPassword;
1752
- this.currentMode.meStorageCardId = m.MeStorageCardId;
1753
- this.currentMode.storageCardNo = m.StorageCardNo;
1754
- this.currentMode.balance = m.BalanceStorage;
1755
- this.currentMode.rawbalance = m.BalanceStorage;
1756
- this.currentMode.cardTypeEnum = m.CardTypeEnum;
1757
- this.currentMode.walletEnabled = m.WalletEnabled;
1758
- this.currentMode.memberId = m.ID;
1759
- }
1760
1643
  }, {
1761
1644
  key: 'calcDjqCheckValue',
1762
1645
  value: function calcDjqCheckValue(q1, dto, params) {
1763
- var _this16 = this;
1646
+ var _this14 = this;
1764
1647
 
1765
1648
  var useLimitPerOrder = (0, _tplusPoslogin.PosInitData)('UseLimitPerOrder');
1766
1649
  var qList = (0, _filter3.default)(this.currentMode.djqs, function (djq) {
@@ -1807,7 +1690,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1807
1690
  if (!q1.checked) {
1808
1691
  this.checkList.forEach(function (ele, i) {
1809
1692
  if (ele.id === q1.id) {
1810
- _this16.checkList.splice(i, 1);
1693
+ _this14.checkList.splice(i, 1);
1811
1694
  }
1812
1695
  });
1813
1696
  } else {
@@ -1849,13 +1732,13 @@ var PayMode = exports.PayMode = (_class3 = function () {
1849
1732
  // }
1850
1733
  // else
1851
1734
  // {
1735
+
1852
1736
  var bookingQuantity = 0;
1853
1737
  if (item.BookingQuantity) {
1854
1738
  bookingQuantity = item.BookingQuantity;
1855
1739
  }
1856
1740
  detailDTO.listPrice = JSON.getCellValue(item, "listPrice");
1857
1741
  detailDTO.netAmountWithTax = Math.Multiply(detailDTO.listPrice, Math.Minus(item.Quantity, bookingQuantity)); //item.TaxAmount;
1858
- //}
1859
1742
  detailDTO.taxRate = item.TaxRate;
1860
1743
  detailDTO.quantity = item.Quantity;
1861
1744
 
@@ -1879,7 +1762,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1879
1762
  if (result && result.length != 0) {
1880
1763
  result.forEach(function (element, index) {
1881
1764
  var djq1 = false;
1882
- _this16.currentMode.djqs.forEach(function (djq) {
1765
+ _this14.currentMode.djqs.forEach(function (djq) {
1883
1766
  if (element.id === djq.id) {
1884
1767
  djq1 = true;
1885
1768
  }
@@ -1924,10 +1807,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
1924
1807
  // couponCategoryEnum: tieredAmountResult.couponCategoryEnum,
1925
1808
  // id
1926
1809
  // })
1927
- _this16.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
1810
+ _this14.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
1928
1811
  djq1 = false;
1929
1812
  } else {
1930
- _this16.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
1813
+ _this14.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
1931
1814
  // this.currentMode.djqs[0].couponCategoryEnum = 'couponCategoryEnum';
1932
1815
  // djq1.couponCategoryEnum = element.tieredAmountResult.couponCategoryEnum
1933
1816
  }
@@ -2017,7 +1900,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
2017
1900
 
2018
1901
  if (this.amount > 0 && (v === '' || v === '0.00') && sum !== 0) {
2019
1902
  this.currentMode.errinfo = "实收金额必须录入";
2020
- } else if (Math.abs(parseFloat(v)) > Math.abs((0, _utils.getFixedNumber)(sum))) {
1903
+ } else if (Math.abs(parseFloat(v)) > Math.abs(sum)) {
2021
1904
  this.currentMode.errinfo = "实收不应大于应收";
2022
1905
  } else if (parseFloat(v) > 0 && parseFloat(v) > (max || 0)) {
2023
1906
  this.currentMode.errinfo = "余额不足";
@@ -2026,28 +1909,28 @@ var PayMode = exports.PayMode = (_class3 = function () {
2026
1909
  }, {
2027
1910
  key: 'calcMemberBalance',
2028
1911
  value: function calcMemberBalance() {
2029
- this.currentMode.balance = this.currentMode.rawbalance - this.currentMode.value;
1912
+ this.currentMode.balance = this.currentMode.member.rawbalance - this.currentMode.value;
2030
1913
  }
2031
1914
  }, {
2032
1915
  key: 'setPaymodes',
2033
1916
  value: function () {
2034
- var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(type, isIntegralExchange) {
2035
- var _this17 = this;
1917
+ var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
1918
+ var _this15 = this;
2036
1919
 
2037
1920
  var _enumController$getEn18, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
2038
1921
 
2039
- return _regenerator2.default.wrap(function _callee10$(_context10) {
1922
+ return _regenerator2.default.wrap(function _callee7$(_context7) {
2040
1923
  while (1) {
2041
- switch (_context10.prev = _context10.next) {
1924
+ switch (_context7.prev = _context7.next) {
2042
1925
  case 0:
2043
1926
  _enumController$getEn18 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn18.settleStyleType, PayStyle = _enumController$getEn18.PayStyle;
2044
1927
  memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
2045
1928
  param = { 'settleStyleType': type == 1 ? memberStoreCode : settlementCode, isIntegralExchange: isIntegralExchange };
2046
- _context10.next = 5;
1929
+ _context7.next = 5;
2047
1930
  return (0, _tplusApi.tApi)({ param: param }, 'chanjet.RE.NewPos.GetNewStoreSettleStyles', false, false);
2048
1931
 
2049
1932
  case 5:
2050
- modes = _context10.sent;
1933
+ modes = _context7.sent;
2051
1934
 
2052
1935
  if (modes) {
2053
1936
  (0, _mobx.runInAction)(function () {
@@ -2056,7 +1939,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
2056
1939
  //产品需求确认会员储值卡结算方式前端展示统一调整为“储值卡" tuzha by 2020-07-08
2057
1940
 
2058
1941
  if (mode.Code == PayStyle.hyczk) {
2059
- mode.Name = '储值卡';
1942
+ mode.Name = '储值余额';
2060
1943
  }
2061
1944
  paymodes.push({
2062
1945
  name: mode.Name,
@@ -2072,20 +1955,20 @@ var PayMode = exports.PayMode = (_class3 = function () {
2072
1955
  calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88"
2073
1956
  });
2074
1957
  });
2075
- _this17.paymodes = paymodes;
1958
+ _this15.paymodes = paymodes;
2076
1959
  //modes.QuickSettleStyles
2077
1960
  });
2078
1961
  }
2079
1962
 
2080
1963
  case 7:
2081
1964
  case 'end':
2082
- return _context10.stop();
1965
+ return _context7.stop();
2083
1966
  }
2084
1967
  }
2085
- }, _callee10, this);
1968
+ }, _callee7, this);
2086
1969
  }));
2087
1970
 
2088
- function setPaymodes(_x7, _x8) {
1971
+ function setPaymodes(_x5, _x6) {
2089
1972
  return _ref24.apply(this, arguments);
2090
1973
  }
2091
1974
 
@@ -2103,57 +1986,47 @@ var PayMode = exports.PayMode = (_class3 = function () {
2103
1986
  }
2104
1987
  }]);
2105
1988
  return PayMode;
2106
- }(), (_descriptor5 = _applyDecoratedDescriptor(_class3.prototype, 'currentFocus', [_mobx.observable], {
1989
+ }(), (_descriptor3 = _applyDecoratedDescriptor(_class3.prototype, 'currentFocus', [_mobx.observable], {
2107
1990
  enumerable: true,
2108
1991
  initializer: function initializer() {
2109
1992
  return "";
2110
1993
  }
2111
- }), _descriptor6 = _applyDecoratedDescriptor(_class3.prototype, 'received', [_mobx.observable], {
1994
+ }), _descriptor4 = _applyDecoratedDescriptor(_class3.prototype, 'received', [_mobx.observable], {
2112
1995
  enumerable: true,
2113
1996
  initializer: function initializer() {
2114
1997
  return 0;
2115
1998
  }
2116
- }), _descriptor7 = _applyDecoratedDescriptor(_class3.prototype, 'receivable', [_mobx.observable], {
1999
+ }), _descriptor5 = _applyDecoratedDescriptor(_class3.prototype, 'receivable', [_mobx.observable], {
2117
2000
  enumerable: true,
2118
2001
  initializer: function initializer() {
2119
2002
  return 0;
2120
2003
  }
2121
- }), _descriptor8 = _applyDecoratedDescriptor(_class3.prototype, 'paymodes', [_mobx.observable], {
2004
+ }), _descriptor6 = _applyDecoratedDescriptor(_class3.prototype, 'paymodes', [_mobx.observable], {
2122
2005
  enumerable: true,
2123
2006
  initializer: function initializer() {
2124
2007
  return [];
2125
2008
  }
2126
- }), _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, 'thePaymodes', [_mobx.observable], {
2009
+ }), _descriptor7 = _applyDecoratedDescriptor(_class3.prototype, 'thePaymodes', [_mobx.observable], {
2127
2010
  enumerable: true,
2128
2011
  initializer: function initializer() {
2129
2012
  return [];
2130
2013
  }
2131
- }), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'storageCardNo', [_mobx.observable], {
2132
- enumerable: true,
2133
- initializer: function initializer() {
2134
- return null;
2135
- }
2136
- }), _descriptor11 = _applyDecoratedDescriptor(_class3.prototype, 'balance', [_mobx.observable], {
2137
- enumerable: true,
2138
- initializer: function initializer() {
2139
- return null;
2140
- }
2141
- }), _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), _descriptor12 = _applyDecoratedDescriptor(_class3.prototype, 'calcCheckList', [_mobx.action], {
2014
+ }), _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], {
2142
2015
  enumerable: true,
2143
2016
  initializer: function initializer() {
2144
- var _this18 = this;
2017
+ var _this16 = this;
2145
2018
 
2146
2019
  return function () {
2147
- _this18.checkList = [];
2020
+ _this16.checkList = [];
2148
2021
  };
2149
2022
  }
2150
- }), _applyDecoratedDescriptor(_class3.prototype, 'updateCardInfo', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'updateCardInfo'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqCheckValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqCheckValue'), _class3.prototype), _descriptor13 = _applyDecoratedDescriptor(_class3.prototype, 'setCouponNum', [_mobx.action], {
2023
+ }), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqCheckValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqCheckValue'), _class3.prototype), _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, 'setCouponNum', [_mobx.action], {
2151
2024
  enumerable: true,
2152
2025
  initializer: function initializer() {
2153
- var _this19 = this;
2026
+ var _this17 = this;
2154
2027
 
2155
2028
  return function (id, couponNum, promoMethodEnum, nominalAmount, promoDiscount) {
2156
- _this19.currentMode.djqs.forEach(function (ele) {
2029
+ _this17.currentMode.djqs.forEach(function (ele) {
2157
2030
  if (ele.id === id) {
2158
2031
  promoMethodEnum == "CASH_COUPON" ? ele.amount = nominalAmount : ele.amount = promoDiscount;
2159
2032
  ele.couponCategoryEnum = couponNum;
@@ -2163,10 +2036,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
2163
2036
  });
2164
2037
  };
2165
2038
  }
2166
- }), _descriptor14 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
2039
+ }), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
2167
2040
  enumerable: true,
2168
2041
  initializer: function initializer() {
2169
- var _this20 = this;
2042
+ var _this18 = this;
2170
2043
 
2171
2044
  return function (promoCouponCode, name, IsEnable, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id) {
2172
2045
  var djq = {
@@ -2188,25 +2061,25 @@ var PayMode = exports.PayMode = (_class3 = function () {
2188
2061
  couponCategoryEnum: couponCategoryEnum,
2189
2062
  id: id
2190
2063
  };
2191
- _this20.currentMode.djqs.push(djq);
2064
+ _this18.currentMode.djqs.push(djq);
2192
2065
  };
2193
2066
  }
2194
2067
  }), _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);
2195
2068
  var Member = exports.Member = (_class5 = function () {
2196
2069
  function Member(m) {
2197
- var _this21 = this;
2070
+ var _this19 = this;
2198
2071
 
2199
2072
  (0, _classCallCheck3.default)(this, Member);
2200
2073
 
2201
- _initDefineProp(this, 'cardNo', _descriptor15, this);
2074
+ _initDefineProp(this, 'cardNo', _descriptor11, this);
2202
2075
 
2203
- _initDefineProp(this, 'balance', _descriptor16, this);
2076
+ _initDefineProp(this, 'balance', _descriptor12, this);
2204
2077
 
2205
- _initDefineProp(this, 'exchangable', _descriptor17, this);
2078
+ _initDefineProp(this, 'exchangable', _descriptor13, this);
2206
2079
 
2207
- _initDefineProp(this, 'meStorageCardId', _descriptor18, this);
2080
+ _initDefineProp(this, 'MeStorageCardId', _descriptor14, this);
2208
2081
 
2209
- _initDefineProp(this, 'storageCardNo', _descriptor19, this);
2082
+ _initDefineProp(this, 'StorageCardNo', _descriptor15, this);
2210
2083
 
2211
2084
  if (m) {
2212
2085
  this.id = m.ID;
@@ -2220,12 +2093,14 @@ var Member = exports.Member = (_class5 = function () {
2220
2093
  var _ref25 = _mutantsUtil.platform || {},
2221
2094
  isNewRetailBCPos = _ref25.isNewRetailBCPos;
2222
2095
 
2096
+ m.StorageCardNo && (this.StorageCardNo = m.StorageCardNo);
2097
+ m.MeStorageCardId && (this.MeStorageCardId = m.MeStorageCardId);
2223
2098
  (0, _mobx.runInAction)(function () {
2224
- _this21.cardNo = m.CardCode;
2099
+ _this19.cardNo = m.CardCode;
2225
2100
  if (index >= 0) {
2226
- _this21.balance = parseFloat(m.DynamicPropertyValues[index]);
2101
+ _this19.balance = parseFloat(m.DynamicPropertyValues[index]);
2227
2102
  } else {
2228
- _this21.balance = _this21.rawbalance;
2103
+ _this19.balance = _this19.rawbalance;
2229
2104
  }
2230
2105
  });
2231
2106
  this.needPwd = m.MemberType ? m.MemberType.IsNeedPwd : false;
@@ -2245,22 +2120,32 @@ var Member = exports.Member = (_class5 = function () {
2245
2120
  this.cardNo = v;
2246
2121
  this.id = null;
2247
2122
  }
2123
+ }, {
2124
+ key: 'setMeStorageCardId',
2125
+ value: function setMeStorageCardId(v) {
2126
+ this.MeStorageCardId = v;
2127
+ }
2128
+ }, {
2129
+ key: 'setStorageCardNo',
2130
+ value: function setStorageCardNo(v) {
2131
+ this.StorageCardNo = v;
2132
+ }
2248
2133
  }]);
2249
2134
  return Member;
2250
- }(), (_descriptor15 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
2135
+ }(), (_descriptor11 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
2251
2136
  enumerable: true,
2252
2137
  initializer: null
2253
- }), _descriptor16 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
2138
+ }), _descriptor12 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
2254
2139
  enumerable: true,
2255
2140
  initializer: null
2256
- }), _descriptor17 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
2141
+ }), _descriptor13 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
2257
2142
  enumerable: true,
2258
2143
  initializer: null
2259
- }), _descriptor18 = _applyDecoratedDescriptor(_class5.prototype, 'meStorageCardId', [_mobx.observable], {
2144
+ }), _descriptor14 = _applyDecoratedDescriptor(_class5.prototype, 'MeStorageCardId', [_mobx.observable], {
2260
2145
  enumerable: true,
2261
2146
  initializer: null
2262
- }), _descriptor19 = _applyDecoratedDescriptor(_class5.prototype, 'storageCardNo', [_mobx.observable], {
2147
+ }), _descriptor15 = _applyDecoratedDescriptor(_class5.prototype, 'StorageCardNo', [_mobx.observable], {
2263
2148
  enumerable: true,
2264
2149
  initializer: null
2265
- }), _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)), _class5);
2150
+ }), _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);
2266
2151
  //# sourceMappingURL=settlementStore.js.map