tplus-components-touch 3.27.21 → 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 (189) 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.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 +4 -4
  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.map +1 -1
  58. package/dist/components/hotKey/style.less +96 -96
  59. package/dist/components/hotKey/utils.js.map +1 -1
  60. package/dist/components/input/index.js +6 -6
  61. package/dist/components/input/index.js.map +1 -1
  62. package/dist/components/input/scanInput.js.map +1 -1
  63. package/dist/components/input/scanInput.less +27 -27
  64. package/dist/components/input/style.less +106 -106
  65. package/dist/components/input/tplusInput/index.js +30 -30
  66. package/dist/components/input/tplusInput/index.js.map +1 -1
  67. package/dist/components/input/tplusInput/inputContent.js.map +1 -1
  68. package/dist/components/input/tplusInput/inputs.js.map +1 -1
  69. package/dist/components/input/tplusInput/style.less +132 -132
  70. package/dist/components/input/utils/index.js.map +1 -1
  71. package/dist/components/inventorySearch/api.js +58 -58
  72. package/dist/components/inventorySearch/api.js.map +1 -1
  73. package/dist/components/inventorySearch/index.js +3 -3
  74. package/dist/components/inventorySearch/index.js.map +1 -1
  75. package/dist/components/inventorySearch/index.less +119 -119
  76. package/dist/components/inventorySearch/store.js.map +1 -1
  77. package/dist/components/inventorySearch/tab.js.map +1 -1
  78. package/dist/components/keyboard/index.js.map +1 -1
  79. package/dist/components/keyboard/index.less +469 -469
  80. package/dist/components/keyboard/letterKeyboard.js +2 -2
  81. package/dist/components/keyboard/letterKeyboard.js.map +1 -1
  82. package/dist/components/keyboard/numKeyboard.js +4 -4
  83. package/dist/components/keyboard/numKeyboard.js.map +1 -1
  84. package/dist/components/keyboard/numKeyboardScan.js.map +1 -1
  85. package/dist/components/keyboard/numberButton_input.js +5 -5
  86. package/dist/components/keyboard/numberButton_input.js.map +1 -1
  87. package/dist/components/keyboard/numkeyboardPassword.js +4 -4
  88. package/dist/components/keyboard/numkeyboardPassword.js.map +1 -1
  89. package/dist/components/keyboard/onlyKeyboard.js +7 -7
  90. package/dist/components/keyboard/onlyKeyboard.js.map +1 -1
  91. package/dist/components/keyboard/onlyLetterButton.js +2 -2
  92. package/dist/components/keyboard/onlyLetterButton.js.map +1 -1
  93. package/dist/components/keyboard/onlyLetterButton2.js +2 -2
  94. package/dist/components/keyboard/onlyLetterButton2.js.map +1 -1
  95. package/dist/components/keyboard/onlyLetterButton2.less +161 -161
  96. package/dist/components/keyboard/onlyNumberButton.js +2 -2
  97. package/dist/components/keyboard/onlyNumberButton.js.map +1 -1
  98. package/dist/components/keyboard/onlyNumberButton2.js +3 -3
  99. package/dist/components/keyboard/onlyNumberButton2.js.map +1 -1
  100. package/dist/components/keyboard/textKeyboard.js.map +1 -1
  101. package/dist/components/layout/hamburger.js.map +1 -1
  102. package/dist/components/layout/index.js +10 -10
  103. package/dist/components/layout/index.js.map +1 -1
  104. package/dist/components/layout/layout.js.map +1 -1
  105. package/dist/components/layout/sider.js +12 -12
  106. package/dist/components/layout/sider.js.map +1 -1
  107. package/dist/components/layout/style.less +82 -82
  108. package/dist/components/loading/index.js +15 -15
  109. package/dist/components/loading/index.js.map +1 -1
  110. package/dist/components/loading/loadingContent.js.map +1 -1
  111. package/dist/components/loading/style.less +72 -72
  112. package/dist/components/loading/utils.js.map +1 -1
  113. package/dist/components/message/index.js +8 -8
  114. package/dist/components/message/index.js.map +1 -1
  115. package/dist/components/message/index.less +101 -101
  116. package/dist/components/modal/index.js.map +1 -1
  117. package/dist/components/modal/index.less +19 -19
  118. package/dist/components/modalVertical/index.js +7 -7
  119. package/dist/components/modalVertical/index.js.map +1 -1
  120. package/dist/components/modalVertical/style.less +60 -60
  121. package/dist/components/modalWraper/index.js +15 -15
  122. package/dist/components/modalWraper/index.js.map +1 -1
  123. package/dist/components/modalWraper/style.less +257 -257
  124. package/dist/components/modalWraper/utils.js.map +1 -1
  125. package/dist/components/notification/index.js +4 -4
  126. package/dist/components/notification/index.js.map +1 -1
  127. package/dist/components/notification/index.less +51 -51
  128. package/dist/components/overflowTip/index.js +15 -15
  129. package/dist/components/overflowTip/index.js.map +1 -1
  130. package/dist/components/overflowTip/style.less +66 -66
  131. package/dist/components/page/index.js.map +1 -1
  132. package/dist/components/page/index.less +21 -21
  133. package/dist/components/presale/pickup.js.map +1 -1
  134. package/dist/components/presale/style.less +58 -58
  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 +42 -32
  155. package/dist/components/settlement/settlement.js.map +1 -1
  156. package/dist/components/settlement/settlement.less +1610 -1610
  157. package/dist/components/settlement/settlementStore.js +80 -55
  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 -5225
  169. package/dist/components/ticon/iconfont/iconfont.css +891 -891
  170. package/dist/components/ticon/iconfont/iconfont.json +1542 -1542
  171. package/dist/components/ticon/iconfont/iconfont.svg +593 -593
  172. package/dist/components/ticon/index.js.map +1 -1
  173. package/dist/components/touchScroll/index.js +9 -9
  174. package/dist/components/touchScroll/index.js.map +1 -1
  175. package/dist/components/touchTable/AuthProcess.js.map +1 -1
  176. package/dist/components/touchTable/generateWater.js.map +1 -1
  177. package/dist/components/touchTable/index.js +9 -9
  178. package/dist/components/touchTable/index.js.map +1 -1
  179. package/dist/components/touchTable/index.less +369 -369
  180. package/dist/components/touchTable/utils.js.map +1 -1
  181. package/dist/demo/PopOverDemo.js.map +1 -1
  182. package/dist/index.js +7 -7
  183. package/dist/index.js.map +1 -1
  184. package/dist/util/tools.js.map +1 -1
  185. package/locales/zh/tplus-components-touch.json +1 -1
  186. package/locales/zh-CN/tplus-components-touch.json +1 -1
  187. package/mocks/memberInfo.json +79 -79
  188. package/package.json +35 -35
  189. package/tsconfig.json +26 -26
@@ -470,6 +470,8 @@ var SettlementStore = (_class = function () {
470
470
  this.paymode.bookMaxValue = value;
471
471
  this.paymode.isNotFullBook = true;
472
472
  value = value * PercentageWhenBook / 100;
473
+ }
474
+ if (IdbusiType == 38 && PreSellOrBook == 'BOOK') {
473
475
  (0, _mobx.runInAction)(function () {
474
476
  _this3.dto.PrepaidAmount = value;
475
477
  });
@@ -605,7 +607,7 @@ var SettlementStore = (_class = function () {
605
607
 
606
608
  }, {
607
609
  key: 'changeFocusAndAddPay',
608
- value: function changeFocusAndAddPay(type) {
610
+ value: function changeFocusAndAddPay(type, bookType) {
609
611
  var _this6 = this;
610
612
 
611
613
  var _enumController$getEn5 = _mutantsUtil.enumController.getEnumOj(),
@@ -637,7 +639,7 @@ var SettlementStore = (_class = function () {
637
639
  this.addPayDirectly(this.paymode.currentMode);
638
640
  }
639
641
  } else {
640
- this.addPay(type);
642
+ this.addPay(type, bookType);
641
643
  }
642
644
  }
643
645
 
@@ -940,12 +942,12 @@ var SettlementStore = (_class = function () {
940
942
  mode.value = shouldSetValue;
941
943
  mode.value2 = (0, _utils.getFixedNumber)(mode.calDirection == "88" ? shouldSetValue / mode.exchangeRate : shouldSetValue * mode.exchangeRate);
942
944
  mode.value3 = shouldSetValue;
943
- this.paymode.calcReserved();
945
+ this.paymode.calcReserved('multiPay'); //参数multiPay代表复合结算
944
946
  }
945
947
  }
946
948
  }, {
947
949
  key: 'changeValue',
948
- value: function changeValue(index, value, blur, bookBlur) {
950
+ value: function changeValue(index, value, blur, type) {
949
951
  var mode = (0, _find3.default)(this.paymode.thePaymodes, { 'paymethodId': index });
950
952
  var v = blur ? (0, _utils.getFixedNumber)(value) : isNaN(value) && value != '-' ? 0.00 : value;
951
953
  if (mode) {
@@ -961,7 +963,7 @@ var SettlementStore = (_class = function () {
961
963
  mode.value2 = v;
962
964
  }
963
965
 
964
- this.paymode.calcReserved(bookBlur);
966
+ this.paymode.calcReserved(type);
965
967
  }
966
968
  }
967
969
  }, {
@@ -985,7 +987,7 @@ var SettlementStore = (_class = function () {
985
987
  }
986
988
  }, {
987
989
  key: 'addPay',
988
- value: function addPay(type) {
990
+ value: function addPay(type, bookType) {
989
991
  var _enumController$getEn11 = _mutantsUtil.enumController.getEnumOj(),
990
992
  PayStyle = _enumController$getEn11.PayStyle;
991
993
 
@@ -998,11 +1000,11 @@ var SettlementStore = (_class = function () {
998
1000
  }
999
1001
  // this.paymode.thePaymodes.push(this.genNewMode(type) );
1000
1002
  this.paymode.thePaymodes.splice(pos, 0, this.genNewMode(type, this.newStyle && type == PayStyle.hyczk));
1001
- this.paymode.calcReserved();
1003
+ this.paymode.calcReserved(bookType);
1002
1004
  }
1003
1005
  }, {
1004
1006
  key: 'delPay',
1005
- value: function delPay(index) {
1007
+ value: function delPay(index, bookType) {
1006
1008
  var _enumController$getEn12 = _mutantsUtil.enumController.getEnumOj(),
1007
1009
  PayStyle = _enumController$getEn12.PayStyle;
1008
1010
 
@@ -1010,7 +1012,7 @@ var SettlementStore = (_class = function () {
1010
1012
  return mode.paymethodId === index;
1011
1013
  });
1012
1014
  this.paymode.currentFocus = -1;
1013
- this.paymode.calcReserved();
1015
+ this.paymode.calcReserved(bookType);
1014
1016
  }
1015
1017
  }, {
1016
1018
  key: 'commit',
@@ -1149,7 +1151,7 @@ var SettlementStore = (_class = function () {
1149
1151
  var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
1150
1152
  var _this11 = this;
1151
1153
 
1152
- var _enumController$getEn14, PayStyle, _ref15, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1154
+ var _enumController$getEn14, PayStyle, _ref15, isNewRetailBCPos, IPMSG, RetailTypeEnum, _getLoginInfo2, PreSellOrBook, PercentageWhenBook, _ref16, IdbusiType, DistributionMode, prepaidAmount;
1153
1155
 
1154
1156
  return _regenerator2.default.wrap(function _callee3$(_context3) {
1155
1157
  while (1) {
@@ -1269,7 +1271,7 @@ var SettlementStore = (_class = function () {
1269
1271
  console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
1270
1272
 
1271
1273
  if (!isNewRetailBCPos) {
1272
- _context3.next = 20;
1274
+ _context3.next = 23;
1273
1275
  break;
1274
1276
  }
1275
1277
 
@@ -1280,32 +1282,44 @@ var SettlementStore = (_class = function () {
1280
1282
  IPMSG = JSON.parse(window.localStorage.IPMSG);
1281
1283
  }
1282
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
+ }
1283
1297
  _context3.t1 = this.dto.IdbusiType == 37;
1284
1298
 
1285
1299
  if (!_context3.t1) {
1286
- _context3.next = 13;
1300
+ _context3.next = 16;
1287
1301
  break;
1288
1302
  }
1289
1303
 
1290
- _context3.next = 12;
1304
+ _context3.next = 15;
1291
1305
  return this.checkIntegralExchangeReturn(this.dto.RetailDetails[0].ReturnSourceId);
1292
1306
 
1293
- case 12:
1307
+ case 15:
1294
1308
  _context3.t1 = _context3.sent;
1295
1309
 
1296
- case 13:
1310
+ case 16:
1297
1311
  _context3.t0 = _context3.t1;
1298
1312
 
1299
1313
  if (_context3.t0) {
1300
- _context3.next = 16;
1314
+ _context3.next = 19;
1301
1315
  break;
1302
1316
  }
1303
1317
 
1304
1318
  _context3.t0 = this.dto.IdbusiType != 37;
1305
1319
 
1306
- case 16:
1320
+ case 19:
1307
1321
  if (!_context3.t0) {
1308
- _context3.next = 18;
1322
+ _context3.next = 21;
1309
1323
  break;
1310
1324
  }
1311
1325
 
@@ -1315,17 +1329,17 @@ var SettlementStore = (_class = function () {
1315
1329
  _this11.billID = resp.ID;
1316
1330
  }));
1317
1331
 
1318
- case 18:
1319
- _context3.next = 21;
1332
+ case 21:
1333
+ _context3.next = 24;
1320
1334
  break;
1321
1335
 
1322
- case 20:
1336
+ case 23:
1323
1337
  return _context3.abrupt('return', (0, _tplusApi.tApi)({ dto: this.dto.cut() }, 'chanjet.RE.newRetail.Settle', false, false, { timeout_skip: true }).then(function (resp) {
1324
1338
  _this11.setDtoID(resp.ID);
1325
1339
  _this11.billID = resp.ID;
1326
1340
  }));
1327
1341
 
1328
- case 21:
1342
+ case 24:
1329
1343
  case 'end':
1330
1344
  return _context3.stop();
1331
1345
  }
@@ -1347,7 +1361,7 @@ var SettlementStore = (_class = function () {
1347
1361
  }, {
1348
1362
  key: 'querySettleResult',
1349
1363
  value: function () {
1350
- var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1364
+ var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1351
1365
  return _regenerator2.default.wrap(function _callee4$(_context4) {
1352
1366
  while (1) {
1353
1367
  switch (_context4.prev = _context4.next) {
@@ -1375,7 +1389,7 @@ var SettlementStore = (_class = function () {
1375
1389
  }));
1376
1390
 
1377
1391
  function querySettleResult() {
1378
- return _ref16.apply(this, arguments);
1392
+ return _ref17.apply(this, arguments);
1379
1393
  }
1380
1394
 
1381
1395
  return querySettleResult;
@@ -1401,14 +1415,14 @@ var SettlementStore = (_class = function () {
1401
1415
  }, {
1402
1416
  key: 'validePwd',
1403
1417
  value: function () {
1404
- var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
1405
- 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;
1406
1420
 
1407
1421
  return _regenerator2.default.wrap(function _callee5$(_context5) {
1408
1422
  while (1) {
1409
1423
  switch (_context5.prev = _context5.next) {
1410
1424
  case 0:
1411
- _ref18 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref18.isNewRetailBCPos;
1425
+ _ref19 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref19.isNewRetailBCPos;
1412
1426
  _context5.prev = 1;
1413
1427
 
1414
1428
  if (!isNewRetailBCPos) {
@@ -1493,7 +1507,7 @@ var SettlementStore = (_class = function () {
1493
1507
  }));
1494
1508
 
1495
1509
  function validePwd(_x3) {
1496
- return _ref17.apply(this, arguments);
1510
+ return _ref18.apply(this, arguments);
1497
1511
  }
1498
1512
 
1499
1513
  return validePwd;
@@ -1532,14 +1546,14 @@ var SettlementStore = (_class = function () {
1532
1546
  var _this13 = this;
1533
1547
 
1534
1548
  return function () {
1535
- var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1536
- var _getLoginInfo2, IdStore, StoreCode, resp;
1549
+ var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1550
+ var _getLoginInfo3, IdStore, StoreCode, resp;
1537
1551
 
1538
1552
  return _regenerator2.default.wrap(function _callee6$(_context6) {
1539
1553
  while (1) {
1540
1554
  switch (_context6.prev = _context6.next) {
1541
1555
  case 0:
1542
- _getLoginInfo2 = _this13.getLoginInfo(), IdStore = _getLoginInfo2.IdStore, StoreCode = _getLoginInfo2.StoreCode;
1556
+ _getLoginInfo3 = _this13.getLoginInfo(), IdStore = _getLoginInfo3.IdStore, StoreCode = _getLoginInfo3.StoreCode;
1543
1557
  _context6.next = 3;
1544
1558
  return (0, _tplusApi.tApi)({ Idmember: _this13.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
1545
1559
 
@@ -1559,7 +1573,7 @@ var SettlementStore = (_class = function () {
1559
1573
  }));
1560
1574
 
1561
1575
  return function (_x4) {
1562
- return _ref19.apply(this, arguments);
1576
+ return _ref20.apply(this, arguments);
1563
1577
  };
1564
1578
  }();
1565
1579
  }
@@ -1628,14 +1642,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
1628
1642
  }
1629
1643
  }, {
1630
1644
  key: 'calcReserved',
1631
- value: function calcReserved(blur) {
1645
+ value: function calcReserved(type) {
1632
1646
  var sum = 0;
1633
1647
  (0, _each3.default)(this.thePaymodes, function (mode) {
1634
1648
  sum = Math.Add(sum, mode.value == "" ? 0 : mode.value);
1635
1649
  });
1636
1650
  this.received = (0, _utils.getFixedNumber)(sum);
1637
- if (blur && this.isNotFullBook) {
1651
+ if (type === 'xjQuick' && this.isNotFullBook) {
1638
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
+ }
1639
1663
  } else {
1640
1664
  this.receivable = (0, _utils.getFixedNumber)(this.amount - sum);
1641
1665
  }
@@ -1657,8 +1681,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
1657
1681
  this.checkList = [];
1658
1682
  }
1659
1683
 
1660
- var _ref20 = _mutantsUtil.platform || {},
1661
- isNewRetailBCPos = _ref20.isNewRetailBCPos;
1684
+ var _ref21 = _mutantsUtil.platform || {},
1685
+ isNewRetailBCPos = _ref21.isNewRetailBCPos;
1662
1686
 
1663
1687
  var _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(),
1664
1688
  PayStyle = _enumController$getEn15.PayStyle,
@@ -1768,18 +1792,18 @@ var PayMode = exports.PayMode = (_class3 = function () {
1768
1792
  }
1769
1793
  });
1770
1794
 
1771
- var _ref21 = element || {},
1772
- couponCode = _ref21.couponCode,
1773
- name = _ref21.name,
1774
- tieredAmountResult = _ref21.tieredAmountResult,
1775
- fromDate = _ref21.fromDate,
1776
- dateMount = _ref21.dateMount,
1777
- promoMethodEnum = _ref21.promoMethodEnum,
1778
- discountPct = _ref21.discountPct,
1779
- nominalAmount = _ref21.nominalAmount,
1780
- promoId = _ref21.promoId,
1781
- id = _ref21.id,
1782
- 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;
1783
1807
 
1784
1808
  var condValue = tieredAmountResult.condValue,
1785
1809
  promoDiscount = tieredAmountResult.promoDiscount,
@@ -1823,8 +1847,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
1823
1847
  }, {
1824
1848
  key: 'calcDjqValue',
1825
1849
  value: function calcDjqValue(q1) {
1826
- var _ref22 = _mutantsUtil.platform || {},
1827
- isNewRetailBCPos = _ref22.isNewRetailBCPos;
1850
+ var _ref23 = _mutantsUtil.platform || {},
1851
+ isNewRetailBCPos = _ref23.isNewRetailBCPos;
1828
1852
 
1829
1853
  var _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(),
1830
1854
  Differentiate = _enumController$getEn16.Differentiate;
@@ -1914,7 +1938,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1914
1938
  }, {
1915
1939
  key: 'setPaymodes',
1916
1940
  value: function () {
1917
- 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) {
1918
1942
  var _this15 = this;
1919
1943
 
1920
1944
  var _enumController$getEn18, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
@@ -1952,7 +1976,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
1952
1976
  idBankAccount: mode.IdBankAccount,
1953
1977
  exchangeRate: mode.Currency ? mode.Currency.ExchangeRate : 1,
1954
1978
  idCurrency: mode.Currency ? mode.Currency.ID : -1,
1955
- calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88"
1979
+ calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88",
1980
+ virtualPay: mode.VirtualPay //TODO需要跟后端确认是否为零售抵现类支付方式
1956
1981
  });
1957
1982
  });
1958
1983
  _this15.paymodes = paymodes;
@@ -1969,7 +1994,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1969
1994
  }));
1970
1995
 
1971
1996
  function setPaymodes(_x5, _x6) {
1972
- return _ref23.apply(this, arguments);
1997
+ return _ref24.apply(this, arguments);
1973
1998
  }
1974
1999
 
1975
2000
  return setPaymodes;
@@ -2090,8 +2115,8 @@ var Member = exports.Member = (_class5 = function () {
2090
2115
  return key == 'canusedbalancestorage';
2091
2116
  });
2092
2117
 
2093
- var _ref24 = _mutantsUtil.platform || {},
2094
- isNewRetailBCPos = _ref24.isNewRetailBCPos;
2118
+ var _ref25 = _mutantsUtil.platform || {},
2119
+ isNewRetailBCPos = _ref25.isNewRetailBCPos;
2095
2120
 
2096
2121
  m.StorageCardNo && (this.StorageCardNo = m.StorageCardNo);
2097
2122
  m.MeStorageCardId && (this.MeStorageCardId = m.MeStorageCardId);