tplus-components-touch 3.27.18 → 3.27.22

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 (190) 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 +29 -29
  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 +7 -7
  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 +5 -2
  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.map +1 -1
  40. package/dist/components/commonForm/index.js +4 -4
  41. package/dist/components/commonForm/index.js.map +1 -1
  42. package/dist/components/commonForm/inputNumber/index.js.map +1 -1
  43. package/dist/components/commonForm/inputNumber/style.less +10 -10
  44. package/dist/components/commonForm/radio/index.js.map +1 -1
  45. package/dist/components/commonForm/style.less +1 -1
  46. package/dist/components/deliverySearch/api.js +21 -21
  47. package/dist/components/deliverySearch/api.js.map +1 -1
  48. package/dist/components/deliverySearch/index.js +6 -6
  49. package/dist/components/deliverySearch/index.js.map +1 -1
  50. package/dist/components/deliverySearch/index.less +553 -553
  51. package/dist/components/form/index.js.map +1 -1
  52. package/dist/components/hardwareAPI/index.js.map +1 -1
  53. package/dist/components/hotKey/config.js +23 -23
  54. package/dist/components/hotKey/config.js.map +1 -1
  55. package/dist/components/hotKey/hotKeyModal.js.map +1 -1
  56. package/dist/components/hotKey/index.js +26 -26
  57. package/dist/components/hotKey/index.js.map +1 -1
  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/scanInput.js.map +1 -1
  64. package/dist/components/input/scanInput.less +27 -27
  65. package/dist/components/input/style.less +106 -106
  66. package/dist/components/input/tplusInput/index.js +30 -30
  67. package/dist/components/input/tplusInput/index.js.map +1 -1
  68. package/dist/components/input/tplusInput/inputContent.js.map +1 -1
  69. package/dist/components/input/tplusInput/inputs.js.map +1 -1
  70. package/dist/components/input/tplusInput/style.less +132 -132
  71. package/dist/components/input/utils/index.js.map +1 -1
  72. package/dist/components/inventorySearch/api.js +58 -58
  73. package/dist/components/inventorySearch/api.js.map +1 -1
  74. package/dist/components/inventorySearch/index.js +3 -3
  75. package/dist/components/inventorySearch/index.js.map +1 -1
  76. package/dist/components/inventorySearch/index.less +119 -119
  77. package/dist/components/inventorySearch/store.js.map +1 -1
  78. package/dist/components/inventorySearch/tab.js.map +1 -1
  79. package/dist/components/keyboard/index.js.map +1 -1
  80. package/dist/components/keyboard/index.less +469 -469
  81. package/dist/components/keyboard/letterKeyboard.js +2 -2
  82. package/dist/components/keyboard/letterKeyboard.js.map +1 -1
  83. package/dist/components/keyboard/numKeyboard.js +4 -4
  84. package/dist/components/keyboard/numKeyboard.js.map +1 -1
  85. package/dist/components/keyboard/numKeyboardScan.js.map +1 -1
  86. package/dist/components/keyboard/numberButton_input.js +5 -5
  87. package/dist/components/keyboard/numberButton_input.js.map +1 -1
  88. package/dist/components/keyboard/numkeyboardPassword.js +4 -4
  89. package/dist/components/keyboard/numkeyboardPassword.js.map +1 -1
  90. package/dist/components/keyboard/onlyKeyboard.js +7 -7
  91. package/dist/components/keyboard/onlyKeyboard.js.map +1 -1
  92. package/dist/components/keyboard/onlyLetterButton.js +2 -2
  93. package/dist/components/keyboard/onlyLetterButton.js.map +1 -1
  94. package/dist/components/keyboard/onlyLetterButton2.js +2 -2
  95. package/dist/components/keyboard/onlyLetterButton2.js.map +1 -1
  96. package/dist/components/keyboard/onlyLetterButton2.less +161 -161
  97. package/dist/components/keyboard/onlyNumberButton.js +2 -2
  98. package/dist/components/keyboard/onlyNumberButton.js.map +1 -1
  99. package/dist/components/keyboard/onlyNumberButton2.js +3 -3
  100. package/dist/components/keyboard/onlyNumberButton2.js.map +1 -1
  101. package/dist/components/keyboard/textKeyboard.js.map +1 -1
  102. package/dist/components/layout/hamburger.js.map +1 -1
  103. package/dist/components/layout/index.js +10 -10
  104. package/dist/components/layout/index.js.map +1 -1
  105. package/dist/components/layout/layout.js.map +1 -1
  106. package/dist/components/layout/sider.js +12 -12
  107. package/dist/components/layout/sider.js.map +1 -1
  108. package/dist/components/layout/style.less +82 -82
  109. package/dist/components/loading/index.js +15 -15
  110. package/dist/components/loading/index.js.map +1 -1
  111. package/dist/components/loading/loadingContent.js.map +1 -1
  112. package/dist/components/loading/style.less +72 -72
  113. package/dist/components/loading/utils.js.map +1 -1
  114. package/dist/components/message/index.js +8 -8
  115. package/dist/components/message/index.js.map +1 -1
  116. package/dist/components/message/index.less +101 -101
  117. package/dist/components/modal/index.js.map +1 -1
  118. package/dist/components/modal/index.less +19 -19
  119. package/dist/components/modalVertical/index.js +7 -7
  120. package/dist/components/modalVertical/index.js.map +1 -1
  121. package/dist/components/modalVertical/style.less +60 -60
  122. package/dist/components/modalWraper/index.js +15 -15
  123. package/dist/components/modalWraper/index.js.map +1 -1
  124. package/dist/components/modalWraper/style.less +257 -257
  125. package/dist/components/modalWraper/utils.js.map +1 -1
  126. package/dist/components/notification/index.js +4 -4
  127. package/dist/components/notification/index.js.map +1 -1
  128. package/dist/components/notification/index.less +51 -51
  129. package/dist/components/overflowTip/index.js +15 -15
  130. package/dist/components/overflowTip/index.js.map +1 -1
  131. package/dist/components/overflowTip/style.less +66 -66
  132. package/dist/components/page/index.js.map +1 -1
  133. package/dist/components/page/index.less +21 -21
  134. package/dist/components/presale/pickup.js.map +1 -1
  135. package/dist/components/presale/style.less +58 -58
  136. package/dist/components/product/detail.js +7 -7
  137. package/dist/components/product/detail.js.map +1 -1
  138. package/dist/components/product/getCard.js +5 -5
  139. package/dist/components/product/getCard.js.map +1 -1
  140. package/dist/components/product/index.less +128 -128
  141. package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
  142. package/dist/components/progressState/ProgressState.js +10 -10
  143. package/dist/components/progressState/ProgressState.js.map +1 -1
  144. package/dist/components/progressState/index.js.map +1 -1
  145. package/dist/components/progressState/style.less +65 -65
  146. package/dist/components/scan/index.js.map +1 -1
  147. package/dist/components/scan/index.less +33 -33
  148. package/dist/components/select/index.js.map +1 -1
  149. package/dist/components/select/index.less +11 -11
  150. package/dist/components/settlement/asyncModal.js.map +1 -1
  151. package/dist/components/settlement/index.js.map +1 -1
  152. package/dist/components/settlement/prototypeTable/index.js.map +1 -1
  153. package/dist/components/settlement/prototypeTable/style.less +58 -58
  154. package/dist/components/settlement/prototypeTable/utils.js.map +1 -1
  155. package/dist/components/settlement/settlement.js +56 -34
  156. package/dist/components/settlement/settlement.js.map +1 -1
  157. package/dist/components/settlement/settlement.less +1610 -1610
  158. package/dist/components/settlement/settlementStore.js +93 -56
  159. package/dist/components/settlement/settlementStore.js.map +1 -1
  160. package/dist/components/settlement/utils.js.map +1 -1
  161. package/dist/components/socket/index.js +11 -11
  162. package/dist/components/socket/index.js.map +1 -1
  163. package/dist/components/spin/index.js +6 -6
  164. package/dist/components/spin/index.js.map +1 -1
  165. package/dist/components/spin/spin-style.less +436 -436
  166. package/dist/components/test/index.js +3 -3
  167. package/dist/components/test/index.js.map +1 -1
  168. package/dist/components/ticon/iconfont/demo.css +539 -539
  169. package/dist/components/ticon/iconfont/demo_index.html +5225 -5225
  170. package/dist/components/ticon/iconfont/iconfont.css +891 -891
  171. package/dist/components/ticon/iconfont/iconfont.json +1542 -1542
  172. package/dist/components/ticon/iconfont/iconfont.svg +593 -593
  173. package/dist/components/ticon/index.js.map +1 -1
  174. package/dist/components/touchScroll/index.js +9 -9
  175. package/dist/components/touchScroll/index.js.map +1 -1
  176. package/dist/components/touchTable/AuthProcess.js.map +1 -1
  177. package/dist/components/touchTable/generateWater.js.map +1 -1
  178. package/dist/components/touchTable/index.js +9 -9
  179. package/dist/components/touchTable/index.js.map +1 -1
  180. package/dist/components/touchTable/index.less +369 -369
  181. package/dist/components/touchTable/utils.js.map +1 -1
  182. package/dist/demo/PopOverDemo.js.map +1 -1
  183. package/dist/index.js +7 -7
  184. package/dist/index.js.map +1 -1
  185. package/dist/util/tools.js.map +1 -1
  186. package/locales/zh/tplus-components-touch.json +1 -1
  187. package/locales/zh-CN/tplus-components-touch.json +1 -1
  188. package/mocks/memberInfo.json +79 -79
  189. package/package.json +35 -35
  190. package/tsconfig.json +26 -26
@@ -453,6 +453,8 @@ var SettlementStore = (_class = function () {
453
453
  // this.member=context.stores && context.stores.memberStore && context.stores.memberStore.member;
454
454
  this.member = this.dto.Member; //stores.selectMemberStore.selectMemberInfo;
455
455
 
456
+ // this.paymode.bookMaxValue = 0;
457
+ this.paymode.isNotFullBook = false;
456
458
  //预订按比例收取订金处理
457
459
  var value = this.dto.TotalTaxAmount;
458
460
 
@@ -465,14 +467,20 @@ var SettlementStore = (_class = function () {
465
467
  DistributionMode = _ref5.DistributionMode;
466
468
 
467
469
  if (IdbusiType == 38 && PreSellOrBook == 'BOOK' && PercentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')) {
470
+ this.paymode.bookMaxValue = value;
471
+ this.paymode.isNotFullBook = true;
468
472
  value = value * PercentageWhenBook / 100;
473
+ }
474
+ if (IdbusiType == 38 && PreSellOrBook == 'BOOK') {
469
475
  (0, _mobx.runInAction)(function () {
470
476
  _this3.dto.PrepaidAmount = value;
471
477
  });
472
478
  }
479
+ //预订计算快递或同城配送运费
473
480
  if (IdbusiType == 38 && PreSellOrBook != 'DISABLED' && (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE')) {
474
481
  value += this.dto.BuyerPayFreight || 0;
475
482
  }
483
+ //预订取货应补款金额
476
484
  if (IdbusiType == 39) {
477
485
  value = _mutantsMicrofx.stores.drawerStore.thisWaitPaidAmount;
478
486
  }
@@ -599,7 +607,7 @@ var SettlementStore = (_class = function () {
599
607
 
600
608
  }, {
601
609
  key: 'changeFocusAndAddPay',
602
- value: function changeFocusAndAddPay(type) {
610
+ value: function changeFocusAndAddPay(type, bookType) {
603
611
  var _this6 = this;
604
612
 
605
613
  var _enumController$getEn5 = _mutantsUtil.enumController.getEnumOj(),
@@ -631,7 +639,7 @@ var SettlementStore = (_class = function () {
631
639
  this.addPayDirectly(this.paymode.currentMode);
632
640
  }
633
641
  } else {
634
- this.addPay(type);
642
+ this.addPay(type, bookType);
635
643
  }
636
644
  }
637
645
 
@@ -934,12 +942,12 @@ var SettlementStore = (_class = function () {
934
942
  mode.value = shouldSetValue;
935
943
  mode.value2 = (0, _utils.getFixedNumber)(mode.calDirection == "88" ? shouldSetValue / mode.exchangeRate : shouldSetValue * mode.exchangeRate);
936
944
  mode.value3 = shouldSetValue;
937
- this.paymode.calcReserved();
945
+ this.paymode.calcReserved('multiPay'); //参数multiPay代表复合结算
938
946
  }
939
947
  }
940
948
  }, {
941
949
  key: 'changeValue',
942
- value: function changeValue(index, value, blur) {
950
+ value: function changeValue(index, value, blur, type) {
943
951
  var mode = (0, _find3.default)(this.paymode.thePaymodes, { 'paymethodId': index });
944
952
  var v = blur ? (0, _utils.getFixedNumber)(value) : isNaN(value) && value != '-' ? 0.00 : value;
945
953
  if (mode) {
@@ -955,7 +963,7 @@ var SettlementStore = (_class = function () {
955
963
  mode.value2 = v;
956
964
  }
957
965
 
958
- this.paymode.calcReserved();
966
+ this.paymode.calcReserved(type);
959
967
  }
960
968
  }
961
969
  }, {
@@ -979,7 +987,7 @@ var SettlementStore = (_class = function () {
979
987
  }
980
988
  }, {
981
989
  key: 'addPay',
982
- value: function addPay(type) {
990
+ value: function addPay(type, bookType) {
983
991
  var _enumController$getEn11 = _mutantsUtil.enumController.getEnumOj(),
984
992
  PayStyle = _enumController$getEn11.PayStyle;
985
993
 
@@ -992,11 +1000,11 @@ var SettlementStore = (_class = function () {
992
1000
  }
993
1001
  // this.paymode.thePaymodes.push(this.genNewMode(type) );
994
1002
  this.paymode.thePaymodes.splice(pos, 0, this.genNewMode(type, this.newStyle && type == PayStyle.hyczk));
995
- this.paymode.calcReserved();
1003
+ this.paymode.calcReserved(bookType);
996
1004
  }
997
1005
  }, {
998
1006
  key: 'delPay',
999
- value: function delPay(index) {
1007
+ value: function delPay(index, bookType) {
1000
1008
  var _enumController$getEn12 = _mutantsUtil.enumController.getEnumOj(),
1001
1009
  PayStyle = _enumController$getEn12.PayStyle;
1002
1010
 
@@ -1004,7 +1012,7 @@ var SettlementStore = (_class = function () {
1004
1012
  return mode.paymethodId === index;
1005
1013
  });
1006
1014
  this.paymode.currentFocus = -1;
1007
- this.paymode.calcReserved();
1015
+ this.paymode.calcReserved(bookType);
1008
1016
  }
1009
1017
  }, {
1010
1018
  key: 'commit',
@@ -1143,7 +1151,7 @@ var SettlementStore = (_class = function () {
1143
1151
  var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
1144
1152
  var _this11 = this;
1145
1153
 
1146
- var _enumController$getEn14, PayStyle, _ref15, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1154
+ var _enumController$getEn14, PayStyle, _ref15, isNewRetailBCPos, IPMSG, RetailTypeEnum, _getLoginInfo2, PreSellOrBook, PercentageWhenBook, _ref16, IdbusiType, DistributionMode, prepaidAmount;
1147
1155
 
1148
1156
  return _regenerator2.default.wrap(function _callee3$(_context3) {
1149
1157
  while (1) {
@@ -1263,7 +1271,7 @@ var SettlementStore = (_class = function () {
1263
1271
  console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
1264
1272
 
1265
1273
  if (!isNewRetailBCPos) {
1266
- _context3.next = 20;
1274
+ _context3.next = 23;
1267
1275
  break;
1268
1276
  }
1269
1277
 
@@ -1274,32 +1282,44 @@ var SettlementStore = (_class = function () {
1274
1282
  IPMSG = JSON.parse(window.localStorage.IPMSG);
1275
1283
  }
1276
1284
  RetailTypeEnum = this.dto.IdbusiType == 36 ? "INTEGRAL_EXCHANGE" : "NORMAL";
1285
+ _getLoginInfo2 = this.getLoginInfo(), PreSellOrBook = _getLoginInfo2.PreSellOrBook, PercentageWhenBook = _getLoginInfo2.PercentageWhenBook;
1286
+ _ref16 = this.dto || {}, IdbusiType = _ref16.IdbusiType, DistributionMode = _ref16.DistributionMode;
1287
+
1288
+ if (IdbusiType == 38 && PreSellOrBook == 'BOOK' && PercentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')) {
1289
+ prepaidAmount = this.dto.RetailPaymentDetails.reduce(function (c, item) {
1290
+ return c + (item.Amount || 0);
1291
+ }, 0);
1292
+
1293
+ (0, _mobx.runInAction)(function () {
1294
+ _this11.dto.PrepaidAmount = prepaidAmount;
1295
+ });
1296
+ }
1277
1297
  _context3.t1 = this.dto.IdbusiType == 37;
1278
1298
 
1279
1299
  if (!_context3.t1) {
1280
- _context3.next = 13;
1300
+ _context3.next = 16;
1281
1301
  break;
1282
1302
  }
1283
1303
 
1284
- _context3.next = 12;
1304
+ _context3.next = 15;
1285
1305
  return this.checkIntegralExchangeReturn(this.dto.RetailDetails[0].ReturnSourceId);
1286
1306
 
1287
- case 12:
1307
+ case 15:
1288
1308
  _context3.t1 = _context3.sent;
1289
1309
 
1290
- case 13:
1310
+ case 16:
1291
1311
  _context3.t0 = _context3.t1;
1292
1312
 
1293
1313
  if (_context3.t0) {
1294
- _context3.next = 16;
1314
+ _context3.next = 19;
1295
1315
  break;
1296
1316
  }
1297
1317
 
1298
1318
  _context3.t0 = this.dto.IdbusiType != 37;
1299
1319
 
1300
- case 16:
1320
+ case 19:
1301
1321
  if (!_context3.t0) {
1302
- _context3.next = 18;
1322
+ _context3.next = 21;
1303
1323
  break;
1304
1324
  }
1305
1325
 
@@ -1309,17 +1329,17 @@ var SettlementStore = (_class = function () {
1309
1329
  _this11.billID = resp.ID;
1310
1330
  }));
1311
1331
 
1312
- case 18:
1313
- _context3.next = 21;
1332
+ case 21:
1333
+ _context3.next = 24;
1314
1334
  break;
1315
1335
 
1316
- case 20:
1336
+ case 23:
1317
1337
  return _context3.abrupt('return', (0, _tplusApi.tApi)({ dto: this.dto.cut() }, 'chanjet.RE.newRetail.Settle', false, false, { timeout_skip: true }).then(function (resp) {
1318
1338
  _this11.setDtoID(resp.ID);
1319
1339
  _this11.billID = resp.ID;
1320
1340
  }));
1321
1341
 
1322
- case 21:
1342
+ case 24:
1323
1343
  case 'end':
1324
1344
  return _context3.stop();
1325
1345
  }
@@ -1341,7 +1361,7 @@ var SettlementStore = (_class = function () {
1341
1361
  }, {
1342
1362
  key: 'querySettleResult',
1343
1363
  value: function () {
1344
- var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1364
+ var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1345
1365
  return _regenerator2.default.wrap(function _callee4$(_context4) {
1346
1366
  while (1) {
1347
1367
  switch (_context4.prev = _context4.next) {
@@ -1369,7 +1389,7 @@ var SettlementStore = (_class = function () {
1369
1389
  }));
1370
1390
 
1371
1391
  function querySettleResult() {
1372
- return _ref16.apply(this, arguments);
1392
+ return _ref17.apply(this, arguments);
1373
1393
  }
1374
1394
 
1375
1395
  return querySettleResult;
@@ -1395,14 +1415,14 @@ var SettlementStore = (_class = function () {
1395
1415
  }, {
1396
1416
  key: 'validePwd',
1397
1417
  value: function () {
1398
- var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
1399
- var _ref18, isNewRetailBCPos, cook1, cook2, message, memberId, result, count, _result;
1418
+ var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
1419
+ var _ref19, isNewRetailBCPos, cook1, cook2, message, memberId, result, count, _result;
1400
1420
 
1401
1421
  return _regenerator2.default.wrap(function _callee5$(_context5) {
1402
1422
  while (1) {
1403
1423
  switch (_context5.prev = _context5.next) {
1404
1424
  case 0:
1405
- _ref18 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref18.isNewRetailBCPos;
1425
+ _ref19 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref19.isNewRetailBCPos;
1406
1426
  _context5.prev = 1;
1407
1427
 
1408
1428
  if (!isNewRetailBCPos) {
@@ -1487,7 +1507,7 @@ var SettlementStore = (_class = function () {
1487
1507
  }));
1488
1508
 
1489
1509
  function validePwd(_x3) {
1490
- return _ref17.apply(this, arguments);
1510
+ return _ref18.apply(this, arguments);
1491
1511
  }
1492
1512
 
1493
1513
  return validePwd;
@@ -1526,14 +1546,14 @@ var SettlementStore = (_class = function () {
1526
1546
  var _this13 = this;
1527
1547
 
1528
1548
  return function () {
1529
- var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1530
- var _getLoginInfo2, IdStore, StoreCode, resp;
1549
+ var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1550
+ var _getLoginInfo3, IdStore, StoreCode, resp;
1531
1551
 
1532
1552
  return _regenerator2.default.wrap(function _callee6$(_context6) {
1533
1553
  while (1) {
1534
1554
  switch (_context6.prev = _context6.next) {
1535
1555
  case 0:
1536
- _getLoginInfo2 = _this13.getLoginInfo(), IdStore = _getLoginInfo2.IdStore, StoreCode = _getLoginInfo2.StoreCode;
1556
+ _getLoginInfo3 = _this13.getLoginInfo(), IdStore = _getLoginInfo3.IdStore, StoreCode = _getLoginInfo3.StoreCode;
1537
1557
  _context6.next = 3;
1538
1558
  return (0, _tplusApi.tApi)({ Idmember: _this13.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
1539
1559
 
@@ -1553,7 +1573,7 @@ var SettlementStore = (_class = function () {
1553
1573
  }));
1554
1574
 
1555
1575
  return function (_x4) {
1556
- return _ref19.apply(this, arguments);
1576
+ return _ref20.apply(this, arguments);
1557
1577
  };
1558
1578
  }();
1559
1579
  }
@@ -1581,6 +1601,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
1581
1601
 
1582
1602
  _initDefineProp(this, 'thePaymodes', _descriptor7, this);
1583
1603
 
1604
+ this.bookMaxValue = 0;
1605
+ this.isNotFullBook = false;
1584
1606
  this.currentMode = null;
1585
1607
  this.checkList = [];
1586
1608
  this.settle = {
@@ -1593,7 +1615,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1593
1615
  _initDefineProp(this, 'setCouponNum', _descriptor9, this);
1594
1616
 
1595
1617
  _initDefineProp(this, 'addDjqs', _descriptor10, this);
1596
- }
1618
+ } //非全款预订
1597
1619
  // @observable store = null;
1598
1620
 
1599
1621
 
@@ -1620,13 +1642,27 @@ var PayMode = exports.PayMode = (_class3 = function () {
1620
1642
  }
1621
1643
  }, {
1622
1644
  key: 'calcReserved',
1623
- value: function calcReserved() {
1645
+ value: function calcReserved(type) {
1624
1646
  var sum = 0;
1625
1647
  (0, _each3.default)(this.thePaymodes, function (mode) {
1626
1648
  sum = Math.Add(sum, mode.value == "" ? 0 : mode.value);
1627
1649
  });
1628
1650
  this.received = (0, _utils.getFixedNumber)(sum);
1629
- this.receivable = (0, _utils.getFixedNumber)(this.amount - sum);
1651
+ if (type === 'xjQuick' && this.isNotFullBook) {
1652
+ this.receivable = (0, _utils.getFixedNumber)(this.bookMaxValue - sum);
1653
+ } else if (type === 'multiPay' && this.isNotFullBook) {
1654
+ if (this.amount <= sum && sum <= this.bookMaxValue) {
1655
+ this.receivable = (0, _utils.getFixedNumber)(0);
1656
+ }
1657
+ if (sum < this.amount) {
1658
+ this.receivable = (0, _utils.getFixedNumber)(this.amount - sum);
1659
+ }
1660
+ if (sum > this.bookMaxValue) {
1661
+ this.receivable = (0, _utils.getFixedNumber)(this.bookMaxValue - sum);
1662
+ }
1663
+ } else {
1664
+ this.receivable = (0, _utils.getFixedNumber)(this.amount - sum);
1665
+ }
1630
1666
  }
1631
1667
  }, {
1632
1668
  key: 'calcDjqCheckValue',
@@ -1645,8 +1681,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
1645
1681
  this.checkList = [];
1646
1682
  }
1647
1683
 
1648
- var _ref20 = _mutantsUtil.platform || {},
1649
- isNewRetailBCPos = _ref20.isNewRetailBCPos;
1684
+ var _ref21 = _mutantsUtil.platform || {},
1685
+ isNewRetailBCPos = _ref21.isNewRetailBCPos;
1650
1686
 
1651
1687
  var _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(),
1652
1688
  PayStyle = _enumController$getEn15.PayStyle,
@@ -1756,18 +1792,18 @@ var PayMode = exports.PayMode = (_class3 = function () {
1756
1792
  }
1757
1793
  });
1758
1794
 
1759
- var _ref21 = element || {},
1760
- couponCode = _ref21.couponCode,
1761
- name = _ref21.name,
1762
- tieredAmountResult = _ref21.tieredAmountResult,
1763
- fromDate = _ref21.fromDate,
1764
- dateMount = _ref21.dateMount,
1765
- promoMethodEnum = _ref21.promoMethodEnum,
1766
- discountPct = _ref21.discountPct,
1767
- nominalAmount = _ref21.nominalAmount,
1768
- promoId = _ref21.promoId,
1769
- id = _ref21.id,
1770
- doorsill = _ref21.doorsill;
1795
+ var _ref22 = element || {},
1796
+ couponCode = _ref22.couponCode,
1797
+ name = _ref22.name,
1798
+ tieredAmountResult = _ref22.tieredAmountResult,
1799
+ fromDate = _ref22.fromDate,
1800
+ dateMount = _ref22.dateMount,
1801
+ promoMethodEnum = _ref22.promoMethodEnum,
1802
+ discountPct = _ref22.discountPct,
1803
+ nominalAmount = _ref22.nominalAmount,
1804
+ promoId = _ref22.promoId,
1805
+ id = _ref22.id,
1806
+ doorsill = _ref22.doorsill;
1771
1807
 
1772
1808
  var condValue = tieredAmountResult.condValue,
1773
1809
  promoDiscount = tieredAmountResult.promoDiscount,
@@ -1811,8 +1847,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
1811
1847
  }, {
1812
1848
  key: 'calcDjqValue',
1813
1849
  value: function calcDjqValue(q1) {
1814
- var _ref22 = _mutantsUtil.platform || {},
1815
- isNewRetailBCPos = _ref22.isNewRetailBCPos;
1850
+ var _ref23 = _mutantsUtil.platform || {},
1851
+ isNewRetailBCPos = _ref23.isNewRetailBCPos;
1816
1852
 
1817
1853
  var _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(),
1818
1854
  Differentiate = _enumController$getEn16.Differentiate;
@@ -1902,7 +1938,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1902
1938
  }, {
1903
1939
  key: 'setPaymodes',
1904
1940
  value: function () {
1905
- var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
1941
+ var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
1906
1942
  var _this15 = this;
1907
1943
 
1908
1944
  var _enumController$getEn18, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
@@ -1940,7 +1976,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
1940
1976
  idBankAccount: mode.IdBankAccount,
1941
1977
  exchangeRate: mode.Currency ? mode.Currency.ExchangeRate : 1,
1942
1978
  idCurrency: mode.Currency ? mode.Currency.ID : -1,
1943
- calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88"
1979
+ calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88",
1980
+ virtualPay: mode.VirtualPay //TODO需要跟后端确认是否为零售抵现类支付方式
1944
1981
  });
1945
1982
  });
1946
1983
  _this15.paymodes = paymodes;
@@ -1957,7 +1994,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1957
1994
  }));
1958
1995
 
1959
1996
  function setPaymodes(_x5, _x6) {
1960
- return _ref23.apply(this, arguments);
1997
+ return _ref24.apply(this, arguments);
1961
1998
  }
1962
1999
 
1963
2000
  return setPaymodes;
@@ -2078,8 +2115,8 @@ var Member = exports.Member = (_class5 = function () {
2078
2115
  return key == 'canusedbalancestorage';
2079
2116
  });
2080
2117
 
2081
- var _ref24 = _mutantsUtil.platform || {},
2082
- isNewRetailBCPos = _ref24.isNewRetailBCPos;
2118
+ var _ref25 = _mutantsUtil.platform || {},
2119
+ isNewRetailBCPos = _ref25.isNewRetailBCPos;
2083
2120
 
2084
2121
  m.StorageCardNo && (this.StorageCardNo = m.StorageCardNo);
2085
2122
  m.MeStorageCardId && (this.MeStorageCardId = m.MeStorageCardId);