tplus-components-touch 3.33.10 → 3.33.14
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.
- package/README.md +16 -16
- package/dist/components/acCitySelect/CitySelect.js +18 -18
- package/dist/components/acCitySelect/CitySelect.js.map +1 -1
- package/dist/components/acCitySelect/CitySelect.less +9 -9
- package/dist/components/acCitySelect/citys.js.map +1 -1
- package/dist/components/acCitySelect/index.js.map +1 -1
- package/dist/components/acCitySelect/provinceData.js +7 -7
- package/dist/components/acCitySelect/provinceData.js.map +1 -1
- package/dist/components/addLog/AddLogProcessor.js +6 -6
- package/dist/components/addLog/AddLogProcessor.js.map +1 -1
- package/dist/components/addLog/OperationLogApi.js +3 -3
- package/dist/components/addLog/OperationLogApi.js.map +1 -1
- package/dist/components/autoComplete/index.js +14 -14
- package/dist/components/autoComplete/index.js.map +1 -1
- package/dist/components/autoComplete/index.less +89 -89
- package/dist/components/autoComplete/option.js.map +1 -1
- package/dist/components/autoCompleteWithKeyboard/index.js +14 -14
- package/dist/components/autoCompleteWithKeyboard/index.js.map +1 -1
- package/dist/components/autoCompleteWithKeyboard/index.less +7 -7
- package/dist/components/billSearch/api.js +29 -29
- package/dist/components/billSearch/api.js.map +1 -1
- package/dist/components/billSearch/index.js +6 -6
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/billSearch/index.less +376 -376
- package/dist/components/cloudPrint/BTPrintFormatUtil.js +17 -17
- package/dist/components/cloudPrint/BTPrintFormatUtil.js.map +1 -1
- package/dist/components/cloudPrint/api.js.map +1 -1
- package/dist/components/cloudPrint/index.js.map +1 -1
- package/dist/components/cloudPrint/printDispatch.js +7 -7
- package/dist/components/cloudPrint/printDispatch.js.map +1 -1
- package/dist/components/commonForm/addressPicker/index.js +7 -7
- package/dist/components/commonForm/addressPicker/index.js.map +1 -1
- package/dist/components/commonForm/addressPicker/style.less +10 -10
- package/dist/components/commonForm/autoComplete/index.js.map +1 -1
- package/dist/components/commonForm/autoComplete/style.less +2 -2
- package/dist/components/commonForm/datePicker/index.js.map +1 -1
- package/dist/components/commonForm/datePicker/style.less +4 -4
- package/dist/components/commonForm/formControl/index.js.map +1 -1
- package/dist/components/commonForm/index.js +4 -4
- package/dist/components/commonForm/index.js.map +1 -1
- package/dist/components/commonForm/inputNumber/index.js.map +1 -1
- package/dist/components/commonForm/inputNumber/style.less +10 -10
- package/dist/components/commonForm/radio/index.js.map +1 -1
- package/dist/components/commonForm/style.less +1 -1
- package/dist/components/deliverySearch/api.js +21 -21
- package/dist/components/deliverySearch/api.js.map +1 -1
- package/dist/components/deliverySearch/index.js +6 -6
- package/dist/components/deliverySearch/index.js.map +1 -1
- package/dist/components/deliverySearch/index.less +553 -553
- package/dist/components/form/index.js.map +1 -1
- package/dist/components/hardwareAPI/index.js.map +1 -1
- package/dist/components/hotKey/config.js +23 -23
- package/dist/components/hotKey/config.js.map +1 -1
- package/dist/components/hotKey/hotKeyModal.js.map +1 -1
- package/dist/components/hotKey/index.js +26 -26
- package/dist/components/hotKey/index.js.map +1 -1
- package/dist/components/hotKey/localConfig.js.map +1 -1
- package/dist/components/hotKey/style.less +96 -96
- package/dist/components/hotKey/utils.js.map +1 -1
- package/dist/components/input/index.js +6 -6
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/input/scanInput.js.map +1 -1
- package/dist/components/input/scanInput.less +27 -27
- package/dist/components/input/style.less +99 -99
- package/dist/components/input/tplusInput/index.js +30 -30
- package/dist/components/input/tplusInput/index.js.map +1 -1
- package/dist/components/input/tplusInput/inputContent.js.map +1 -1
- package/dist/components/input/tplusInput/inputs.js.map +1 -1
- package/dist/components/input/tplusInput/style.less +132 -132
- package/dist/components/input/utils/index.js.map +1 -1
- package/dist/components/inventorySearch/api.js +58 -58
- package/dist/components/inventorySearch/api.js.map +1 -1
- package/dist/components/inventorySearch/index.js +3 -3
- package/dist/components/inventorySearch/index.js.map +1 -1
- package/dist/components/inventorySearch/index.less +119 -119
- package/dist/components/inventorySearch/store.js.map +1 -1
- package/dist/components/inventorySearch/tab.js.map +1 -1
- package/dist/components/keyboard/index.js.map +1 -1
- package/dist/components/keyboard/index.less +469 -469
- package/dist/components/keyboard/letterKeyboard.js +2 -2
- package/dist/components/keyboard/letterKeyboard.js.map +1 -1
- package/dist/components/keyboard/numKeyboard.js +4 -4
- package/dist/components/keyboard/numKeyboard.js.map +1 -1
- package/dist/components/keyboard/numKeyboardScan.js.map +1 -1
- package/dist/components/keyboard/numberButton_input.js +5 -5
- package/dist/components/keyboard/numberButton_input.js.map +1 -1
- package/dist/components/keyboard/numkeyboardPassword.js +4 -4
- package/dist/components/keyboard/numkeyboardPassword.js.map +1 -1
- package/dist/components/keyboard/onlyKeyboard.js +7 -7
- package/dist/components/keyboard/onlyKeyboard.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton.js +2 -2
- package/dist/components/keyboard/onlyLetterButton.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton2.js +2 -2
- package/dist/components/keyboard/onlyLetterButton2.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton2.less +156 -156
- package/dist/components/keyboard/onlyNumberButton.js +2 -2
- package/dist/components/keyboard/onlyNumberButton.js.map +1 -1
- package/dist/components/keyboard/onlyNumberButton2.js +3 -3
- package/dist/components/keyboard/onlyNumberButton2.js.map +1 -1
- package/dist/components/keyboard/textKeyboard.js.map +1 -1
- package/dist/components/layout/hamburger.js.map +1 -1
- package/dist/components/layout/index.js +10 -10
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/layout.js.map +1 -1
- package/dist/components/layout/sider.js +12 -12
- package/dist/components/layout/sider.js.map +1 -1
- package/dist/components/layout/style.less +82 -82
- package/dist/components/loading/index.js +15 -15
- package/dist/components/loading/index.js.map +1 -1
- package/dist/components/loading/loadingContent.js.map +1 -1
- package/dist/components/loading/style.less +72 -72
- package/dist/components/loading/utils.js.map +1 -1
- package/dist/components/message/index.js +8 -8
- package/dist/components/message/index.js.map +1 -1
- package/dist/components/message/index.less +101 -101
- package/dist/components/modal/index.js.map +1 -1
- package/dist/components/modal/index.less +19 -19
- package/dist/components/modalVertical/index.js +7 -7
- package/dist/components/modalVertical/index.js.map +1 -1
- package/dist/components/modalVertical/style.less +60 -60
- package/dist/components/modalWraper/index.js +15 -15
- package/dist/components/modalWraper/index.js.map +1 -1
- package/dist/components/modalWraper/style.less +257 -257
- package/dist/components/modalWraper/utils.js.map +1 -1
- package/dist/components/notification/index.js +4 -4
- package/dist/components/notification/index.js.map +1 -1
- package/dist/components/notification/index.less +51 -51
- package/dist/components/overflowTip/index.js +15 -15
- package/dist/components/overflowTip/index.js.map +1 -1
- package/dist/components/overflowTip/style.less +66 -66
- package/dist/components/page/index.js.map +1 -1
- package/dist/components/page/index.less +21 -21
- package/dist/components/product/detail.js +7 -7
- package/dist/components/product/detail.js.map +1 -1
- package/dist/components/product/getCard.js +5 -5
- package/dist/components/product/getCard.js.map +1 -1
- package/dist/components/product/index.less +128 -128
- package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
- package/dist/components/progressState/ProgressState.js +10 -10
- package/dist/components/progressState/ProgressState.js.map +1 -1
- package/dist/components/progressState/index.js.map +1 -1
- package/dist/components/progressState/style.less +65 -65
- package/dist/components/scan/index.js.map +1 -1
- package/dist/components/scan/index.less +33 -33
- package/dist/components/select/index.js.map +1 -1
- package/dist/components/select/index.less +11 -11
- package/dist/components/settlement/asyncModal.js.map +1 -1
- package/dist/components/settlement/index.js.map +1 -1
- package/dist/components/settlement/moreCzkTable/index.js.map +1 -1
- package/dist/components/settlement/moreCzkTable/style.less +6 -6
- package/dist/components/settlement/prototypeTable/index.js.map +1 -1
- package/dist/components/settlement/prototypeTable/style.less +58 -58
- package/dist/components/settlement/prototypeTable/utils.js.map +1 -1
- package/dist/components/settlement/settlement.js +253 -299
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +1686 -1686
- package/dist/components/settlement/settlementStore.js +459 -360
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/settlement/utils.js.map +1 -1
- package/dist/components/socket/index.js +11 -11
- package/dist/components/socket/index.js.map +1 -1
- package/dist/components/spin/index.js +6 -6
- package/dist/components/spin/index.js.map +1 -1
- package/dist/components/spin/spin-style.less +436 -436
- package/dist/components/test/index.js +3 -3
- package/dist/components/test/index.js.map +1 -1
- package/dist/components/ticon/iconfont/demo_index.html +5248 -5248
- package/dist/components/ticon/iconfont/iconfont.css +895 -895
- package/dist/components/ticon/iconfont/iconfont.json +1549 -1549
- package/dist/components/ticon/iconfont/iconfont.svg +593 -593
- package/dist/components/ticon/index.js.map +1 -1
- package/dist/components/touchScroll/index.js +9 -9
- package/dist/components/touchScroll/index.js.map +1 -1
- package/dist/components/touchTable/AuthProcess.js.map +1 -1
- package/dist/components/touchTable/generateWater.js.map +1 -1
- package/dist/components/touchTable/index.js +9 -9
- package/dist/components/touchTable/index.js.map +1 -1
- package/dist/components/touchTable/index.less +376 -376
- package/dist/components/touchTable/utils.js.map +1 -1
- package/dist/demo/PopOverDemo.js.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/util/tools.js.map +1 -1
- package/locales/zh/tplus-components-touch.json +1 -1
- package/locales/zh-CN/tplus-components-touch.json +1 -1
- package/mocks/memberInfo.json +79 -79
- package/package.json +35 -35
- 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,
|
|
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;
|
|
45
45
|
|
|
46
46
|
var _mobx = require('mobx');
|
|
47
47
|
|
|
@@ -234,8 +234,6 @@ var SettlementStore = (_class = function () {
|
|
|
234
234
|
var promoVoucher = {};
|
|
235
235
|
_this2.paymode.clearDjqs();
|
|
236
236
|
_this2.paymode.reCalculationDjqs();
|
|
237
|
-
// promoVoucher.bizDate = dto.VoucherDate;
|
|
238
|
-
// promoVoucher.bizDate = new Date().getTime();
|
|
239
237
|
promoVoucher.coupon_code = coupon_code || "";
|
|
240
238
|
promoVoucher.boName = "Retail";
|
|
241
239
|
promoVoucher.voucherId = dto.ID;
|
|
@@ -322,10 +320,6 @@ var SettlementStore = (_class = function () {
|
|
|
322
320
|
_message2.default.error(Differentiate.COUPON + '\uFF08' + result.SN + '\uFF09\u4E0D\u53EF\u4E0E\u79EF\u5206\u4E00\u8D77\u4F7F\u7528');
|
|
323
321
|
} else {
|
|
324
322
|
var IsEnable = couponCategoryEnum === 'RIGUP' || couponCategoryEnum === 'UN_MATCH' || couponCategoryEnum === "PREPARING" || couponCategoryEnum === 'PROMO_LIMITED' || couponCategoryEnum === 'COUPON_CONFLICT' ? false : true;
|
|
325
|
-
|
|
326
|
-
var _ref2 = _mutantsUtil.platform || {},
|
|
327
|
-
isNewRetailBCPos = _ref2.isNewRetailBCPos;
|
|
328
|
-
|
|
329
323
|
_this2.addDjq(couponCode, name, IsEnable, promoMethodEnum == "CASH_COUPON" && nominalAmount, promoDiscount, condValue, null, false, !result.IsRepelWithPoints, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id, true, 1);
|
|
330
324
|
}
|
|
331
325
|
});
|
|
@@ -349,14 +343,14 @@ var SettlementStore = (_class = function () {
|
|
|
349
343
|
};
|
|
350
344
|
|
|
351
345
|
this.checkCoupon = function () {
|
|
352
|
-
var
|
|
353
|
-
var
|
|
346
|
+
var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(sn) {
|
|
347
|
+
var _ref3, isNewRetailBCPos, _enumController$getEn3, PayStyle, Differentiate;
|
|
354
348
|
|
|
355
349
|
return _regenerator2.default.wrap(function _callee$(_context) {
|
|
356
350
|
while (1) {
|
|
357
351
|
switch (_context.prev = _context.next) {
|
|
358
352
|
case 0:
|
|
359
|
-
|
|
353
|
+
_ref3 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref3.isNewRetailBCPos;
|
|
360
354
|
|
|
361
355
|
if (!isNewRetailBCPos) {
|
|
362
356
|
_context.next = 7;
|
|
@@ -424,7 +418,7 @@ var SettlementStore = (_class = function () {
|
|
|
424
418
|
}));
|
|
425
419
|
|
|
426
420
|
return function (_x) {
|
|
427
|
-
return
|
|
421
|
+
return _ref2.apply(this, arguments);
|
|
428
422
|
};
|
|
429
423
|
}();
|
|
430
424
|
|
|
@@ -437,7 +431,8 @@ var SettlementStore = (_class = function () {
|
|
|
437
431
|
zIndex: 1007,
|
|
438
432
|
content: content,
|
|
439
433
|
onOk: function () {
|
|
440
|
-
var
|
|
434
|
+
var _ref4 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2() {
|
|
435
|
+
var ret;
|
|
441
436
|
return _regenerator2.default.wrap(function _callee2$(_context2) {
|
|
442
437
|
while (1) {
|
|
443
438
|
switch (_context2.prev = _context2.next) {
|
|
@@ -446,9 +441,15 @@ var SettlementStore = (_class = function () {
|
|
|
446
441
|
return _this2.saveMember();
|
|
447
442
|
|
|
448
443
|
case 2:
|
|
449
|
-
|
|
444
|
+
ret = _context2.sent;
|
|
445
|
+
|
|
446
|
+
if (ret === false) {
|
|
447
|
+
resolve(false);
|
|
448
|
+
} else {
|
|
449
|
+
resolve(true);
|
|
450
|
+
}
|
|
450
451
|
|
|
451
|
-
case
|
|
452
|
+
case 4:
|
|
452
453
|
case 'end':
|
|
453
454
|
return _context2.stop();
|
|
454
455
|
}
|
|
@@ -457,7 +458,7 @@ var SettlementStore = (_class = function () {
|
|
|
457
458
|
}));
|
|
458
459
|
|
|
459
460
|
return function onOk() {
|
|
460
|
-
return
|
|
461
|
+
return _ref4.apply(this, arguments);
|
|
461
462
|
};
|
|
462
463
|
}(),
|
|
463
464
|
onCancel: function onCancel() {
|
|
@@ -467,8 +468,6 @@ var SettlementStore = (_class = function () {
|
|
|
467
468
|
});
|
|
468
469
|
};
|
|
469
470
|
|
|
470
|
-
_initDefineProp(this, 'setVoucherDate', _descriptor5, this);
|
|
471
|
-
|
|
472
471
|
this.checkIntegralExchangeReturn = function (id) {
|
|
473
472
|
return new _promise2.default(function (resolve, reject) {
|
|
474
473
|
(0, _tplusApi.tApi)({ param: { refVoucherId: id } }, 'chanjet.RE.NewPos.GetNewIntegralExchange', false, false, { timeout_skip: true }).then(function (resp) {
|
|
@@ -584,8 +583,8 @@ var SettlementStore = (_class = function () {
|
|
|
584
583
|
var _enumController$getEn5 = _mutantsUtil.enumController.getEnumOj(),
|
|
585
584
|
PayStyle = _enumController$getEn5.PayStyle;
|
|
586
585
|
|
|
587
|
-
var
|
|
588
|
-
isNewRetailBCPos =
|
|
586
|
+
var _ref5 = _mutantsUtil.platform || {},
|
|
587
|
+
isNewRetailBCPos = _ref5.isNewRetailBCPos;
|
|
589
588
|
|
|
590
589
|
console.log(this.dto, 'dto==========');
|
|
591
590
|
this.paymode.checkList = [];
|
|
@@ -611,14 +610,14 @@ var SettlementStore = (_class = function () {
|
|
|
611
610
|
if (themode.paymentType == PayStyle.djq) {
|
|
612
611
|
(0, _each3.default)(_this5.dto.RetailCouponDetails, function (djq) {
|
|
613
612
|
if (isNewRetailBCPos) {
|
|
614
|
-
var
|
|
615
|
-
displayText =
|
|
616
|
-
promoRuleId =
|
|
617
|
-
dateMount =
|
|
618
|
-
promoMethodEnum =
|
|
619
|
-
discountPct =
|
|
620
|
-
promoId =
|
|
621
|
-
id =
|
|
613
|
+
var _ref6 = djq || {},
|
|
614
|
+
displayText = _ref6.displayText,
|
|
615
|
+
promoRuleId = _ref6.promoRuleId,
|
|
616
|
+
dateMount = _ref6.dateMount,
|
|
617
|
+
promoMethodEnum = _ref6.promoMethodEnum,
|
|
618
|
+
discountPct = _ref6.discountPct,
|
|
619
|
+
promoId = _ref6.promoId,
|
|
620
|
+
id = _ref6.id;
|
|
622
621
|
|
|
623
622
|
_this5.addDjq(djq.CouponCode, djq.CouponTitle, true, null, djq.ReductionAmount, djq.EnableAmount, djq.LastTS, true, false, _this5.dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, null, id, true);
|
|
624
623
|
return;
|
|
@@ -726,15 +725,15 @@ var SettlementStore = (_class = function () {
|
|
|
726
725
|
var IdStore = this.storeInfo.storeID;
|
|
727
726
|
var StoreCode = this.storeInfo.storeCode; //_find(this.storeInfo.storeInfos,(store)=>{return store.ID==IdStore;}).Code;
|
|
728
727
|
|
|
729
|
-
var
|
|
730
|
-
isNewRetailBCPos =
|
|
728
|
+
var _ref7 = _mutantsUtil.platform || {},
|
|
729
|
+
isNewRetailBCPos = _ref7.isNewRetailBCPos;
|
|
731
730
|
|
|
732
731
|
var address = '';
|
|
733
732
|
if (isNewRetailBCPos) {
|
|
734
733
|
// address = '/member/memberProfile/FindByStorageCode/'+v;
|
|
735
734
|
address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + v + '/' + true;
|
|
736
735
|
return (0, _tplusApi.ccApi)({ code: v }, address, false, false, { method: 'get', timeout_skip: true }).then(function () {
|
|
737
|
-
var
|
|
736
|
+
var _ref8 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(result) {
|
|
738
737
|
var data, m;
|
|
739
738
|
return _regenerator2.default.wrap(function _callee3$(_context3) {
|
|
740
739
|
while (1) {
|
|
@@ -809,7 +808,7 @@ var SettlementStore = (_class = function () {
|
|
|
809
808
|
}));
|
|
810
809
|
|
|
811
810
|
return function (_x2) {
|
|
812
|
-
return
|
|
811
|
+
return _ref8.apply(this, arguments);
|
|
813
812
|
};
|
|
814
813
|
}()
|
|
815
814
|
// result.data.forEach((m) => {
|
|
@@ -1080,10 +1079,10 @@ var SettlementStore = (_class = function () {
|
|
|
1080
1079
|
var _enumController$getEn12 = _mutantsUtil.enumController.getEnumOj(),
|
|
1081
1080
|
PayStyle = _enumController$getEn12.PayStyle;
|
|
1082
1081
|
|
|
1083
|
-
var hasThirdPay = this.paymode.thePaymodes.
|
|
1084
|
-
return !!v.thridPayment;
|
|
1085
|
-
});
|
|
1086
|
-
if (hasThirdPay >
|
|
1082
|
+
var hasThirdPay = this.paymode.thePaymodes.filter(function (v) {
|
|
1083
|
+
return !!v.thridPayment && v.value > 0;
|
|
1084
|
+
}) || [];
|
|
1085
|
+
if (hasThirdPay && hasThirdPay.length > 0) {
|
|
1087
1086
|
_message2.default.warn('二开支付目前仅支持单一结算。');
|
|
1088
1087
|
return;
|
|
1089
1088
|
}
|
|
@@ -1155,8 +1154,8 @@ var SettlementStore = (_class = function () {
|
|
|
1155
1154
|
}, {
|
|
1156
1155
|
key: 'commit',
|
|
1157
1156
|
value: function () {
|
|
1158
|
-
var
|
|
1159
|
-
var ret,
|
|
1157
|
+
var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4(bTest) {
|
|
1158
|
+
var status, paylist, ret, _ref10, _ref10$data, code, returnMsg, state, ret1, ret2;
|
|
1160
1159
|
|
|
1161
1160
|
return _regenerator2.default.wrap(function _callee4$(_context4) {
|
|
1162
1161
|
while (1) {
|
|
@@ -1172,96 +1171,116 @@ var SettlementStore = (_class = function () {
|
|
|
1172
1171
|
return _context4.abrupt('return', _promise2.default.resolve(true));
|
|
1173
1172
|
|
|
1174
1173
|
case 3:
|
|
1175
|
-
|
|
1174
|
+
status = this.type;
|
|
1175
|
+
_context4.prev = 4;
|
|
1176
|
+
paylist = this.paymode.thePaymodes.filter(function (v) {
|
|
1177
|
+
return !!v.thridPayment && v.value > 0;
|
|
1178
|
+
}) || [];
|
|
1179
|
+
|
|
1180
|
+
if (!(paylist && paylist.length > 1)) {
|
|
1181
|
+
_context4.next = 9;
|
|
1182
|
+
break;
|
|
1183
|
+
}
|
|
1176
1184
|
|
|
1177
|
-
|
|
1178
|
-
|
|
1185
|
+
_message2.default.warn('二开支付目前仅支持单一结算方式。');
|
|
1186
|
+
return _context4.abrupt('return', _promise2.default.resolve(false));
|
|
1187
|
+
|
|
1188
|
+
case 9:
|
|
1189
|
+
if (!(status == 1)) {
|
|
1190
|
+
_context4.next = 30;
|
|
1179
1191
|
break;
|
|
1180
1192
|
}
|
|
1181
1193
|
|
|
1182
|
-
_context4.next =
|
|
1194
|
+
_context4.next = 12;
|
|
1183
1195
|
return this.findStorageBillValidate();
|
|
1184
1196
|
|
|
1185
|
-
case
|
|
1197
|
+
case 12:
|
|
1186
1198
|
ret = _context4.sent;
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
code =
|
|
1199
|
+
_ref10 = ret || {}, _ref10$data = _ref10.data;
|
|
1200
|
+
_ref10$data = _ref10$data === undefined ? {} : _ref10$data;
|
|
1201
|
+
code = _ref10$data.code, returnMsg = _ref10$data.returnMsg;
|
|
1190
1202
|
|
|
1191
1203
|
if (!(code && code == 10001)) {
|
|
1192
|
-
_context4.next =
|
|
1204
|
+
_context4.next = 24;
|
|
1193
1205
|
break;
|
|
1194
1206
|
}
|
|
1195
1207
|
|
|
1196
|
-
_context4.next =
|
|
1208
|
+
_context4.next = 19;
|
|
1197
1209
|
return this.repeatStorageModal(returnMsg);
|
|
1198
1210
|
|
|
1199
|
-
case
|
|
1211
|
+
case 19:
|
|
1200
1212
|
state = _context4.sent;
|
|
1201
1213
|
|
|
1202
1214
|
if (!(state === false)) {
|
|
1203
|
-
_context4.next =
|
|
1215
|
+
_context4.next = 22;
|
|
1204
1216
|
break;
|
|
1205
1217
|
}
|
|
1206
1218
|
|
|
1207
1219
|
return _context4.abrupt('return', _promise2.default.resolve(false));
|
|
1208
1220
|
|
|
1209
|
-
case
|
|
1210
|
-
_context4.next =
|
|
1221
|
+
case 22:
|
|
1222
|
+
_context4.next = 28;
|
|
1211
1223
|
break;
|
|
1212
1224
|
|
|
1213
|
-
case
|
|
1214
|
-
_context4.next =
|
|
1225
|
+
case 24:
|
|
1226
|
+
_context4.next = 26;
|
|
1215
1227
|
return this.saveMember();
|
|
1216
1228
|
|
|
1217
|
-
case
|
|
1218
|
-
|
|
1229
|
+
case 26:
|
|
1230
|
+
ret1 = _context4.sent;
|
|
1231
|
+
|
|
1232
|
+
if (ret1 === false) {
|
|
1233
|
+
_promise2.default.resolve(false);
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
case 28:
|
|
1237
|
+
_context4.next = 39;
|
|
1219
1238
|
break;
|
|
1220
1239
|
|
|
1221
|
-
case
|
|
1222
|
-
_context4.next =
|
|
1240
|
+
case 30:
|
|
1241
|
+
_context4.next = 32;
|
|
1223
1242
|
return _mutantsMicrofx.stores.offlineSys.generatorCode(this.dto);
|
|
1224
1243
|
|
|
1225
|
-
case
|
|
1226
|
-
_context4.next =
|
|
1244
|
+
case 32:
|
|
1245
|
+
_context4.next = 34;
|
|
1227
1246
|
return this.save();
|
|
1228
1247
|
|
|
1229
|
-
case
|
|
1230
|
-
|
|
1248
|
+
case 34:
|
|
1249
|
+
ret2 = _context4.sent;
|
|
1231
1250
|
|
|
1232
|
-
if (!(
|
|
1233
|
-
_context4.next =
|
|
1251
|
+
if (!(ret2 === false)) {
|
|
1252
|
+
_context4.next = 37;
|
|
1234
1253
|
break;
|
|
1235
1254
|
}
|
|
1236
1255
|
|
|
1237
1256
|
return _context4.abrupt('return', _promise2.default.resolve(false));
|
|
1238
1257
|
|
|
1239
|
-
case
|
|
1240
|
-
_context4.next =
|
|
1258
|
+
case 37:
|
|
1259
|
+
_context4.next = 39;
|
|
1241
1260
|
return _mutantsMicrofx.stores.offlineSys.retailSequenceUpload();
|
|
1242
1261
|
|
|
1243
|
-
case
|
|
1262
|
+
case 39:
|
|
1244
1263
|
return _context4.abrupt('return', _promise2.default.resolve(true));
|
|
1245
1264
|
|
|
1246
|
-
case
|
|
1247
|
-
_context4.prev =
|
|
1248
|
-
_context4.t0 = _context4['catch'](
|
|
1265
|
+
case 42:
|
|
1266
|
+
_context4.prev = 42;
|
|
1267
|
+
_context4.t0 = _context4['catch'](4);
|
|
1249
1268
|
|
|
1250
1269
|
console.error('settlementStore.commit失败,错误信息:' + _context4.t0);
|
|
1251
1270
|
//其他支付失败时,处理二开支付情况。
|
|
1252
|
-
this.thirdPayRefund();
|
|
1271
|
+
this.thirdPayRefund(status == 1 ? 2 : 1);
|
|
1253
1272
|
return _context4.abrupt('return', _promise2.default.resolve(_context4.t0));
|
|
1254
1273
|
|
|
1255
|
-
case
|
|
1274
|
+
case 47:
|
|
1256
1275
|
case 'end':
|
|
1257
1276
|
return _context4.stop();
|
|
1258
1277
|
}
|
|
1259
1278
|
}
|
|
1260
|
-
}, _callee4, this, [[
|
|
1279
|
+
}, _callee4, this, [[4, 42]]);
|
|
1261
1280
|
}));
|
|
1262
1281
|
|
|
1263
1282
|
function commit(_x3) {
|
|
1264
|
-
return
|
|
1283
|
+
return _ref9.apply(this, arguments);
|
|
1265
1284
|
}
|
|
1266
1285
|
|
|
1267
1286
|
return commit;
|
|
@@ -1274,59 +1293,119 @@ var SettlementStore = (_class = function () {
|
|
|
1274
1293
|
}
|
|
1275
1294
|
}, {
|
|
1276
1295
|
key: 'saveMember',
|
|
1277
|
-
value: function
|
|
1278
|
-
var
|
|
1296
|
+
value: function () {
|
|
1297
|
+
var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
|
|
1298
|
+
var _this11 = this;
|
|
1279
1299
|
|
|
1280
|
-
|
|
1281
|
-
PayStyle = _enumController$getEn15.PayStyle;
|
|
1300
|
+
var _enumController$getEn15, PayStyle, TradeType, IPMSG, dtoParams, payList, payment, tradeType, ret, _ref12, type, data, msg, code;
|
|
1282
1301
|
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
(0, _each3.default)(thePaymodes, function (mode) {
|
|
1289
|
-
var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': mode.paymentType });
|
|
1302
|
+
return _regenerator2.default.wrap(function _callee5$(_context5) {
|
|
1303
|
+
while (1) {
|
|
1304
|
+
switch (_context5.prev = _context5.next) {
|
|
1305
|
+
case 0:
|
|
1306
|
+
_enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn15.PayStyle, TradeType = _enumController$getEn15.TradeType;
|
|
1290
1307
|
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1308
|
+
(0, _mobx.runInAction)(function () {
|
|
1309
|
+
_this11.dto.StorageMutiSettleDetails = [];
|
|
1310
|
+
var thePaymodes = _this11.newStyle ? (0, _filter3.default)(_this11.paymode.thePaymodes, function (mode) {
|
|
1311
|
+
return parseFloat(mode.value) != 0;
|
|
1312
|
+
}) : _this11.paymode.thePaymodes;
|
|
1313
|
+
(0, _each3.default)(thePaymodes, function (mode) {
|
|
1314
|
+
var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': mode.paymentType });
|
|
1315
|
+
|
|
1316
|
+
var value = parseFloat(mode.value);
|
|
1317
|
+
var giveChange = null;
|
|
1318
|
+
if (mode.paymentType == PayStyle.xianjin && _this11.paymode.receivable < 0 && value > Math.abs(_this11.paymode.receivable)) {
|
|
1319
|
+
value = Math.Add(value, _this11.paymode.receivable);
|
|
1320
|
+
giveChange = Math.abs(_this11.paymode.receivable);
|
|
1321
|
+
}
|
|
1322
|
+
_this11.dto.StorageMutiSettleDetails.push({
|
|
1323
|
+
Code: mode.paymethodId,
|
|
1324
|
+
StorageAmount: value,
|
|
1325
|
+
GiveChange: giveChange,
|
|
1326
|
+
IdsettleStyle: themode.idSettleStyle,
|
|
1327
|
+
IdbankAccount: themode.idBankAccount,
|
|
1328
|
+
PaymentCode: mode.authCode,
|
|
1329
|
+
DynamicPropertyKeys: [],
|
|
1330
|
+
DynamicPropertyValues: [],
|
|
1331
|
+
DataSource: { Id: _this11.dataSource },
|
|
1332
|
+
ThirdPaymentInfo: themode.thridPayment || null,
|
|
1333
|
+
ThirdPaymentReturnInfo: mode.thirdPaymentReturnInfo || null
|
|
1334
|
+
});
|
|
1335
|
+
});
|
|
1336
|
+
});
|
|
1337
|
+
// cc结算调用
|
|
1338
|
+
IPMSG = {};
|
|
1339
|
+
|
|
1340
|
+
if (!!window.localStorage.IPMSG) {
|
|
1341
|
+
IPMSG = JSON.parse(window.localStorage.IPMSG);
|
|
1342
|
+
}
|
|
1343
|
+
dtoParams = this.dto;
|
|
1344
|
+
//处理存在二开支付情况
|
|
1345
|
+
|
|
1346
|
+
payList = dtoParams.StorageMutiSettleDetails.filter(function (v) {
|
|
1347
|
+
return v.ThirdPaymentInfo;
|
|
1348
|
+
});
|
|
1349
|
+
|
|
1350
|
+
if (!(payList && payList.length > 0)) {
|
|
1351
|
+
_context5.next = 19;
|
|
1352
|
+
break;
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
payment = payList[0];
|
|
1356
|
+
tradeType = payment && payment.StorageAmount > 0 ? TradeType.PAY : TradeType.REFUND;
|
|
1357
|
+
_context5.next = 11;
|
|
1358
|
+
return this.thirdPay(2, payment, tradeType, dtoParams);
|
|
1359
|
+
|
|
1360
|
+
case 11:
|
|
1361
|
+
ret = _context5.sent;
|
|
1362
|
+
_ref12 = ret || {}, type = _ref12.type, data = _ref12.data, msg = _ref12.msg, code = _ref12.code;
|
|
1363
|
+
|
|
1364
|
+
if (!(type === true)) {
|
|
1365
|
+
_context5.next = 17;
|
|
1366
|
+
break;
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
dtoParams = data;
|
|
1370
|
+
_context5.next = 19;
|
|
1371
|
+
break;
|
|
1372
|
+
|
|
1373
|
+
case 17:
|
|
1374
|
+
_message2.default.warn('\u5237\u5361\u652F\u4ED8\u5931\u8D25,\u9519\u8BEF\u7801:' + code);
|
|
1375
|
+
return _context5.abrupt('return', false);
|
|
1376
|
+
|
|
1377
|
+
case 19:
|
|
1378
|
+
this.dtoParams = dtoParams;
|
|
1379
|
+
console.log('储值结算信息:', dtoParams);
|
|
1380
|
+
return _context5.abrupt('return', (0, _tplusApi.tApi)({ dto: dtoParams }, 'chanjet.ME.INewRetailMemberStorage.Save', false, false).then(function (resp) {
|
|
1381
|
+
_this11.handlePrint(resp);
|
|
1382
|
+
}));
|
|
1383
|
+
|
|
1384
|
+
case 22:
|
|
1385
|
+
case 'end':
|
|
1386
|
+
return _context5.stop();
|
|
1387
|
+
}
|
|
1296
1388
|
}
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
IdbankAccount: themode.idBankAccount,
|
|
1303
|
-
PaymentCode: mode.authCode,
|
|
1304
|
-
DynamicPropertyKeys: [],
|
|
1305
|
-
DynamicPropertyValues: [],
|
|
1306
|
-
DataSource: { Id: _this11.dataSource }
|
|
1307
|
-
});
|
|
1308
|
-
});
|
|
1309
|
-
});
|
|
1310
|
-
// cc结算调用
|
|
1311
|
-
var IPMSG = {};
|
|
1312
|
-
if (!!window.localStorage.IPMSG) {
|
|
1313
|
-
IPMSG = JSON.parse(window.localStorage.IPMSG);
|
|
1389
|
+
}, _callee5, this);
|
|
1390
|
+
}));
|
|
1391
|
+
|
|
1392
|
+
function saveMember() {
|
|
1393
|
+
return _ref11.apply(this, arguments);
|
|
1314
1394
|
}
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
}
|
|
1395
|
+
|
|
1396
|
+
return saveMember;
|
|
1397
|
+
}()
|
|
1319
1398
|
}, {
|
|
1320
1399
|
key: 'save',
|
|
1321
1400
|
value: function () {
|
|
1322
|
-
var
|
|
1401
|
+
var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6() {
|
|
1323
1402
|
var _this12 = this;
|
|
1324
1403
|
|
|
1325
|
-
var _enumController$getEn16, PayStyle, TradeType, IPMSG, RetailTypeEnum, dtoParams, payList,
|
|
1404
|
+
var _enumController$getEn16, PayStyle, TradeType, IPMSG, RetailTypeEnum, dtoParams, payList, payment, tradeType, ret, _ref14, type, data, msg, code;
|
|
1326
1405
|
|
|
1327
|
-
return _regenerator2.default.wrap(function
|
|
1406
|
+
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
|
1328
1407
|
while (1) {
|
|
1329
|
-
switch (
|
|
1408
|
+
switch (_context6.prev = _context6.next) {
|
|
1330
1409
|
case 0:
|
|
1331
1410
|
_enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn16.PayStyle, TradeType = _enumController$getEn16.TradeType;
|
|
1332
1411
|
|
|
@@ -1421,32 +1500,32 @@ var SettlementStore = (_class = function () {
|
|
|
1421
1500
|
IPMSG = JSON.parse(window.localStorage.IPMSG);
|
|
1422
1501
|
}
|
|
1423
1502
|
RetailTypeEnum = this.dto.IdbusiType == 36 ? "INTEGRAL_EXCHANGE" : "NORMAL";
|
|
1424
|
-
|
|
1503
|
+
_context6.t1 = this.dto.IdbusiType == 37;
|
|
1425
1504
|
|
|
1426
|
-
if (!
|
|
1427
|
-
|
|
1505
|
+
if (!_context6.t1) {
|
|
1506
|
+
_context6.next = 11;
|
|
1428
1507
|
break;
|
|
1429
1508
|
}
|
|
1430
1509
|
|
|
1431
|
-
|
|
1510
|
+
_context6.next = 10;
|
|
1432
1511
|
return this.checkIntegralExchangeReturn(this.dto.RetailDetails[0].ReturnSourceId);
|
|
1433
1512
|
|
|
1434
1513
|
case 10:
|
|
1435
|
-
|
|
1514
|
+
_context6.t1 = _context6.sent;
|
|
1436
1515
|
|
|
1437
1516
|
case 11:
|
|
1438
|
-
|
|
1517
|
+
_context6.t0 = _context6.t1;
|
|
1439
1518
|
|
|
1440
|
-
if (
|
|
1441
|
-
|
|
1519
|
+
if (_context6.t0) {
|
|
1520
|
+
_context6.next = 14;
|
|
1442
1521
|
break;
|
|
1443
1522
|
}
|
|
1444
1523
|
|
|
1445
|
-
|
|
1524
|
+
_context6.t0 = this.dto.IdbusiType != 37;
|
|
1446
1525
|
|
|
1447
1526
|
case 14:
|
|
1448
|
-
if (!
|
|
1449
|
-
|
|
1527
|
+
if (!_context6.t0) {
|
|
1528
|
+
_context6.next = 33;
|
|
1450
1529
|
break;
|
|
1451
1530
|
}
|
|
1452
1531
|
|
|
@@ -1458,38 +1537,38 @@ var SettlementStore = (_class = function () {
|
|
|
1458
1537
|
});
|
|
1459
1538
|
|
|
1460
1539
|
if (!(payList && payList.length > 0)) {
|
|
1461
|
-
|
|
1540
|
+
_context6.next = 30;
|
|
1462
1541
|
break;
|
|
1463
1542
|
}
|
|
1464
1543
|
|
|
1465
|
-
|
|
1466
|
-
tradeType =
|
|
1467
|
-
|
|
1468
|
-
return this.thirdPay(tradeType, dtoParams);
|
|
1544
|
+
payment = payList[0];
|
|
1545
|
+
tradeType = payment && payment.Amount > 0 ? TradeType.PAY : TradeType.REFUND;
|
|
1546
|
+
_context6.next = 22;
|
|
1547
|
+
return this.thirdPay(1, payment, tradeType, dtoParams);
|
|
1469
1548
|
|
|
1470
1549
|
case 22:
|
|
1471
|
-
ret =
|
|
1472
|
-
|
|
1550
|
+
ret = _context6.sent;
|
|
1551
|
+
_ref14 = ret || {}, type = _ref14.type, data = _ref14.data, msg = _ref14.msg, code = _ref14.code;
|
|
1473
1552
|
|
|
1474
1553
|
if (!(type === true)) {
|
|
1475
|
-
|
|
1554
|
+
_context6.next = 28;
|
|
1476
1555
|
break;
|
|
1477
1556
|
}
|
|
1478
1557
|
|
|
1479
1558
|
dtoParams = data;
|
|
1480
|
-
|
|
1559
|
+
_context6.next = 30;
|
|
1481
1560
|
break;
|
|
1482
1561
|
|
|
1483
1562
|
case 28:
|
|
1484
1563
|
_message2.default.warn('\u5237\u5361\u652F\u4ED8\u5931\u8D25,\u9519\u8BEF\u7801:' + code);
|
|
1485
|
-
return
|
|
1564
|
+
return _context6.abrupt('return', false);
|
|
1486
1565
|
|
|
1487
1566
|
case 30:
|
|
1488
1567
|
this.dtoParams = dtoParams;
|
|
1489
1568
|
console.log('结算信息:', dtoParams);
|
|
1490
|
-
return
|
|
1491
|
-
var
|
|
1492
|
-
ID =
|
|
1569
|
+
return _context6.abrupt('return', (0, _tplusApi.ccApi)({ dto: dtoParams, cip: IPMSG.query || "" }, '/retail/RetailPos/settle', false, false, { method: 'post', timeout_skip: true }).then(function (resp) {
|
|
1570
|
+
var _ref15 = resp || {},
|
|
1571
|
+
ID = _ref15.ID;
|
|
1493
1572
|
|
|
1494
1573
|
_this12.setDtoID(ID);
|
|
1495
1574
|
_this12.billID = ID;
|
|
@@ -1498,14 +1577,14 @@ var SettlementStore = (_class = function () {
|
|
|
1498
1577
|
|
|
1499
1578
|
case 33:
|
|
1500
1579
|
case 'end':
|
|
1501
|
-
return
|
|
1580
|
+
return _context6.stop();
|
|
1502
1581
|
}
|
|
1503
1582
|
}
|
|
1504
|
-
},
|
|
1583
|
+
}, _callee6, this);
|
|
1505
1584
|
}));
|
|
1506
1585
|
|
|
1507
1586
|
function save() {
|
|
1508
|
-
return
|
|
1587
|
+
return _ref13.apply(this, arguments);
|
|
1509
1588
|
}
|
|
1510
1589
|
|
|
1511
1590
|
return save;
|
|
@@ -1522,76 +1601,100 @@ var SettlementStore = (_class = function () {
|
|
|
1522
1601
|
return data;
|
|
1523
1602
|
}
|
|
1524
1603
|
|
|
1525
|
-
|
|
1604
|
+
/**
|
|
1605
|
+
* 二开支付
|
|
1606
|
+
* vType:1零售单、2储值单
|
|
1607
|
+
* payment:结算方式
|
|
1608
|
+
* trade:00表示结算、02表示退款
|
|
1609
|
+
* dto:结算数据集合
|
|
1610
|
+
*/
|
|
1526
1611
|
|
|
1527
1612
|
}, {
|
|
1528
1613
|
key: 'thirdPay',
|
|
1529
1614
|
value: function () {
|
|
1530
|
-
var
|
|
1531
|
-
var cto, params, ret,
|
|
1615
|
+
var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(vType, payment, trade, dto) {
|
|
1616
|
+
var cto, params, ret, _ref17, Code, _Message, Result, _ref18, ThirdPaymentReturnInfo;
|
|
1532
1617
|
|
|
1533
|
-
return _regenerator2.default.wrap(function
|
|
1618
|
+
return _regenerator2.default.wrap(function _callee7$(_context7) {
|
|
1534
1619
|
while (1) {
|
|
1535
|
-
switch (
|
|
1620
|
+
switch (_context7.prev = _context7.next) {
|
|
1536
1621
|
case 0:
|
|
1622
|
+
_context7.prev = 0;
|
|
1537
1623
|
cto = this.removeThirdPayDto(dto);
|
|
1538
|
-
params = { TradeType:
|
|
1624
|
+
params = { VoucherType: vType, Payment: payment, TradeType: trade, dto: cto };
|
|
1539
1625
|
|
|
1540
1626
|
console.log('刷卡信息:', (0, _stringify2.default)(params));
|
|
1541
|
-
|
|
1627
|
+
_context7.next = 6;
|
|
1542
1628
|
return new _promise2.default(function (resolve, reject) {
|
|
1543
1629
|
_mutantsMicrofx.nativeMs.setIpcRendererMethod('ThirdPayment', (0, _extends3.default)({}, params), function (res) {
|
|
1544
1630
|
return resolve(res);
|
|
1545
1631
|
});
|
|
1546
1632
|
});
|
|
1547
1633
|
|
|
1548
|
-
case
|
|
1549
|
-
ret =
|
|
1634
|
+
case 6:
|
|
1635
|
+
ret = _context7.sent;
|
|
1550
1636
|
|
|
1551
1637
|
console.log('刷卡返回信息:', ret);
|
|
1552
1638
|
ret = JSON.parse(ret);
|
|
1553
|
-
|
|
1639
|
+
_ref17 = ret || {}, Code = _ref17.Code, _Message = _ref17.Message, Result = _ref17.Result;
|
|
1554
1640
|
|
|
1555
1641
|
if (!(Code > 0)) {
|
|
1556
|
-
|
|
1642
|
+
_context7.next = 14;
|
|
1557
1643
|
break;
|
|
1558
1644
|
}
|
|
1559
1645
|
|
|
1560
|
-
return
|
|
1646
|
+
return _context7.abrupt('return', { type: false, data: null, msg: _Message, code: Code });
|
|
1561
1647
|
|
|
1562
|
-
case
|
|
1563
|
-
if (!(
|
|
1564
|
-
|
|
1648
|
+
case 14:
|
|
1649
|
+
if (!(trade == '00')) {
|
|
1650
|
+
_context7.next = 20;
|
|
1565
1651
|
break;
|
|
1566
1652
|
}
|
|
1567
1653
|
|
|
1568
|
-
|
|
1654
|
+
_ref18 = Result || {}, ThirdPaymentReturnInfo = _ref18.ThirdPaymentReturnInfo;
|
|
1569
1655
|
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
v.
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1656
|
+
if (vType == 1) {
|
|
1657
|
+
dto.RetailPaymentDetails.forEach(function (v) {
|
|
1658
|
+
if (v.ThirdPaymentInfo != null) {
|
|
1659
|
+
v.ThirdPaymentReturnInfo = ThirdPaymentReturnInfo;
|
|
1660
|
+
}
|
|
1661
|
+
});
|
|
1662
|
+
} else if (vType == 2) {
|
|
1663
|
+
dto.StorageMutiSettleDetails.forEach(function (v) {
|
|
1664
|
+
if (v.ThirdPaymentInfo != null) {
|
|
1665
|
+
v.ThirdPaymentReturnInfo = ThirdPaymentReturnInfo;
|
|
1666
|
+
}
|
|
1667
|
+
});
|
|
1668
|
+
}
|
|
1669
|
+
return _context7.abrupt('return', { type: true, data: dto, msg: _Message, code: Code });
|
|
1576
1670
|
|
|
1577
|
-
case
|
|
1578
|
-
if (!(
|
|
1579
|
-
|
|
1671
|
+
case 20:
|
|
1672
|
+
if (!(trade == '02')) {
|
|
1673
|
+
_context7.next = 22;
|
|
1580
1674
|
break;
|
|
1581
1675
|
}
|
|
1582
1676
|
|
|
1583
|
-
return
|
|
1677
|
+
return _context7.abrupt('return', { type: true, data: dto, msg: _Message, code: Code });
|
|
1678
|
+
|
|
1679
|
+
case 22:
|
|
1680
|
+
_context7.next = 27;
|
|
1681
|
+
break;
|
|
1682
|
+
|
|
1683
|
+
case 24:
|
|
1684
|
+
_context7.prev = 24;
|
|
1685
|
+
_context7.t0 = _context7['catch'](0);
|
|
1686
|
+
return _context7.abrupt('return', { type: false, data: null, msg: _context7.t0 });
|
|
1584
1687
|
|
|
1585
|
-
case
|
|
1688
|
+
case 27:
|
|
1586
1689
|
case 'end':
|
|
1587
|
-
return
|
|
1690
|
+
return _context7.stop();
|
|
1588
1691
|
}
|
|
1589
1692
|
}
|
|
1590
|
-
},
|
|
1693
|
+
}, _callee7, this, [[0, 24]]);
|
|
1591
1694
|
}));
|
|
1592
1695
|
|
|
1593
|
-
function thirdPay(_x4, _x5) {
|
|
1594
|
-
return
|
|
1696
|
+
function thirdPay(_x4, _x5, _x6, _x7) {
|
|
1697
|
+
return _ref16.apply(this, arguments);
|
|
1595
1698
|
}
|
|
1596
1699
|
|
|
1597
1700
|
return thirdPay;
|
|
@@ -1602,17 +1705,17 @@ var SettlementStore = (_class = function () {
|
|
|
1602
1705
|
}, {
|
|
1603
1706
|
key: 'thirdPayRefund',
|
|
1604
1707
|
value: function () {
|
|
1605
|
-
var
|
|
1708
|
+
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(type) {
|
|
1606
1709
|
var _this13 = this;
|
|
1607
1710
|
|
|
1608
|
-
var dto, pay, _enumController$getEn17, TradeType;
|
|
1711
|
+
var dto, pay, payment, _enumController$getEn17, TradeType;
|
|
1609
1712
|
|
|
1610
|
-
return _regenerator2.default.wrap(function
|
|
1713
|
+
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
|
1611
1714
|
while (1) {
|
|
1612
|
-
switch (
|
|
1715
|
+
switch (_context9.prev = _context9.next) {
|
|
1613
1716
|
case 0:
|
|
1614
|
-
dto = this.dtoParams;
|
|
1615
|
-
pay = dto && dto.
|
|
1717
|
+
dto = type == 1 ? this.dtoParams.RetailPaymentDetails : this.dtoParams.StorageMutiSettleDetails;
|
|
1718
|
+
pay = dto && dto.filter(function (v) {
|
|
1616
1719
|
return v.ThirdPaymentInfo;
|
|
1617
1720
|
});
|
|
1618
1721
|
|
|
@@ -1620,43 +1723,44 @@ var SettlementStore = (_class = function () {
|
|
|
1620
1723
|
setTimeout(function () {
|
|
1621
1724
|
_message2.default.warn("支付出现异常,将发起刷卡退款。", { duration: 4.5 });
|
|
1622
1725
|
}, 1000);
|
|
1726
|
+
payment = pay[0];
|
|
1623
1727
|
_enumController$getEn17 = _mutantsUtil.enumController.getEnumOj(), TradeType = _enumController$getEn17.TradeType;
|
|
1624
1728
|
|
|
1625
|
-
setTimeout((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
1626
|
-
var ret,
|
|
1729
|
+
setTimeout((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
|
|
1730
|
+
var ret, _ref21, msg;
|
|
1627
1731
|
|
|
1628
|
-
return _regenerator2.default.wrap(function
|
|
1732
|
+
return _regenerator2.default.wrap(function _callee8$(_context8) {
|
|
1629
1733
|
while (1) {
|
|
1630
|
-
switch (
|
|
1734
|
+
switch (_context8.prev = _context8.next) {
|
|
1631
1735
|
case 0:
|
|
1632
|
-
|
|
1633
|
-
return _this13.thirdPay(TradeType.REFUND, dto);
|
|
1736
|
+
_context8.next = 2;
|
|
1737
|
+
return _this13.thirdPay(type, payment, TradeType.REFUND, dto);
|
|
1634
1738
|
|
|
1635
1739
|
case 2:
|
|
1636
|
-
ret =
|
|
1637
|
-
|
|
1740
|
+
ret = _context8.sent;
|
|
1741
|
+
_ref21 = ret || {}, msg = _ref21.msg;
|
|
1638
1742
|
|
|
1639
1743
|
console.log('\u5237\u5361\u652F\u4ED8\u9000\u6B3E:' + msg);
|
|
1640
1744
|
|
|
1641
1745
|
case 5:
|
|
1642
1746
|
case 'end':
|
|
1643
|
-
return
|
|
1747
|
+
return _context8.stop();
|
|
1644
1748
|
}
|
|
1645
1749
|
}
|
|
1646
|
-
},
|
|
1750
|
+
}, _callee8, _this13);
|
|
1647
1751
|
})), 4500);
|
|
1648
1752
|
}
|
|
1649
1753
|
|
|
1650
1754
|
case 3:
|
|
1651
1755
|
case 'end':
|
|
1652
|
-
return
|
|
1756
|
+
return _context9.stop();
|
|
1653
1757
|
}
|
|
1654
1758
|
}
|
|
1655
|
-
},
|
|
1759
|
+
}, _callee9, this);
|
|
1656
1760
|
}));
|
|
1657
1761
|
|
|
1658
|
-
function thirdPayRefund() {
|
|
1659
|
-
return
|
|
1762
|
+
function thirdPayRefund(_x8) {
|
|
1763
|
+
return _ref19.apply(this, arguments);
|
|
1660
1764
|
}
|
|
1661
1765
|
|
|
1662
1766
|
return thirdPayRefund;
|
|
@@ -1669,35 +1773,35 @@ var SettlementStore = (_class = function () {
|
|
|
1669
1773
|
}, {
|
|
1670
1774
|
key: 'querySettleResult',
|
|
1671
1775
|
value: function () {
|
|
1672
|
-
var
|
|
1673
|
-
return _regenerator2.default.wrap(function
|
|
1776
|
+
var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10() {
|
|
1777
|
+
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
|
1674
1778
|
while (1) {
|
|
1675
|
-
switch (
|
|
1779
|
+
switch (_context10.prev = _context10.next) {
|
|
1676
1780
|
case 0:
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1781
|
+
_context10.prev = 0;
|
|
1782
|
+
_context10.t0 = _promise2.default;
|
|
1783
|
+
_context10.next = 4;
|
|
1680
1784
|
return (0, _tplusApi.tApi)({ RetailCode: this.dto.Code }, 'chanjet.RE.newRetail.QuerySettleResult', false, false, { timeout_skip: true });
|
|
1681
1785
|
|
|
1682
1786
|
case 4:
|
|
1683
|
-
|
|
1684
|
-
return
|
|
1787
|
+
_context10.t1 = _context10.sent;
|
|
1788
|
+
return _context10.abrupt('return', _context10.t0.resolve.call(_context10.t0, _context10.t1));
|
|
1685
1789
|
|
|
1686
1790
|
case 8:
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
return
|
|
1791
|
+
_context10.prev = 8;
|
|
1792
|
+
_context10.t2 = _context10['catch'](0);
|
|
1793
|
+
return _context10.abrupt('return', _promise2.default.resolve({ Flag: "1" }));
|
|
1690
1794
|
|
|
1691
1795
|
case 11:
|
|
1692
1796
|
case 'end':
|
|
1693
|
-
return
|
|
1797
|
+
return _context10.stop();
|
|
1694
1798
|
}
|
|
1695
1799
|
}
|
|
1696
|
-
},
|
|
1800
|
+
}, _callee10, this, [[0, 8]]);
|
|
1697
1801
|
}));
|
|
1698
1802
|
|
|
1699
1803
|
function querySettleResult() {
|
|
1700
|
-
return
|
|
1804
|
+
return _ref22.apply(this, arguments);
|
|
1701
1805
|
}
|
|
1702
1806
|
|
|
1703
1807
|
return querySettleResult;
|
|
@@ -1723,18 +1827,18 @@ var SettlementStore = (_class = function () {
|
|
|
1723
1827
|
}, {
|
|
1724
1828
|
key: 'validePwd',
|
|
1725
1829
|
value: function () {
|
|
1726
|
-
var
|
|
1727
|
-
var
|
|
1830
|
+
var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(value) {
|
|
1831
|
+
var _ref24, isNewRetailBCPos, cook1, cook2, message, memberStorageId, _paymode$currentMode, cardTypeEnum, memberId, meStorageCardId, cardStatusEnum, result, count, _result;
|
|
1728
1832
|
|
|
1729
|
-
return _regenerator2.default.wrap(function
|
|
1833
|
+
return _regenerator2.default.wrap(function _callee11$(_context11) {
|
|
1730
1834
|
while (1) {
|
|
1731
|
-
switch (
|
|
1835
|
+
switch (_context11.prev = _context11.next) {
|
|
1732
1836
|
case 0:
|
|
1733
|
-
|
|
1734
|
-
|
|
1837
|
+
_ref24 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref24.isNewRetailBCPos;
|
|
1838
|
+
_context11.prev = 1;
|
|
1735
1839
|
|
|
1736
1840
|
if (!isNewRetailBCPos) {
|
|
1737
|
-
|
|
1841
|
+
_context11.next = 33;
|
|
1738
1842
|
break;
|
|
1739
1843
|
}
|
|
1740
1844
|
|
|
@@ -1744,60 +1848,60 @@ var SettlementStore = (_class = function () {
|
|
|
1744
1848
|
memberStorageId = this.paymode.currentMode.meStorageCardId;
|
|
1745
1849
|
|
|
1746
1850
|
if (!cook2) {
|
|
1747
|
-
|
|
1851
|
+
_context11.next = 12;
|
|
1748
1852
|
break;
|
|
1749
1853
|
}
|
|
1750
1854
|
|
|
1751
1855
|
if (!cook2.hasOwnProperty(memberStorageId + "")) {
|
|
1752
|
-
|
|
1856
|
+
_context11.next = 12;
|
|
1753
1857
|
break;
|
|
1754
1858
|
}
|
|
1755
1859
|
|
|
1756
1860
|
if (!(cook2[memberStorageId] > 3)) {
|
|
1757
|
-
|
|
1861
|
+
_context11.next = 12;
|
|
1758
1862
|
break;
|
|
1759
1863
|
}
|
|
1760
1864
|
|
|
1761
1865
|
message = '今日密码错误已达上限,不可使用储值消费,请明日再试,如忘记请重置密码或修改密码。';
|
|
1762
|
-
return
|
|
1866
|
+
return _context11.abrupt('return', _promise2.default.resolve(message));
|
|
1763
1867
|
|
|
1764
1868
|
case 12:
|
|
1765
1869
|
_paymode$currentMode = this.paymode.currentMode, cardTypeEnum = _paymode$currentMode.cardTypeEnum, memberId = _paymode$currentMode.memberId, meStorageCardId = _paymode$currentMode.meStorageCardId, cardStatusEnum = _paymode$currentMode.cardStatusEnum;
|
|
1766
1870
|
result = null;
|
|
1767
1871
|
|
|
1768
1872
|
if (!(cardTypeEnum === 'BALANCE_CARD')) {
|
|
1769
|
-
|
|
1873
|
+
_context11.next = 20;
|
|
1770
1874
|
break;
|
|
1771
1875
|
}
|
|
1772
1876
|
|
|
1773
|
-
|
|
1877
|
+
_context11.next = 17;
|
|
1774
1878
|
return (0, _tplusApi.ccApi)({ md5Password: _tplusApi.User.pwdEncrypt(value.pwd), cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + memberId, false, false);
|
|
1775
1879
|
|
|
1776
1880
|
case 17:
|
|
1777
|
-
result =
|
|
1778
|
-
|
|
1881
|
+
result = _context11.sent;
|
|
1882
|
+
_context11.next = 29;
|
|
1779
1883
|
break;
|
|
1780
1884
|
|
|
1781
1885
|
case 20:
|
|
1782
1886
|
if (!(cardStatusEnum === 'BINDING' && this.member && this.member.ID === memberId)) {
|
|
1783
|
-
|
|
1887
|
+
_context11.next = 26;
|
|
1784
1888
|
break;
|
|
1785
1889
|
}
|
|
1786
1890
|
|
|
1787
|
-
|
|
1891
|
+
_context11.next = 23;
|
|
1788
1892
|
return (0, _tplusApi.ccApi)({ md5Password: _tplusApi.User.pwdEncrypt(value.pwd), password: value.pwd, cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + meStorageCardId, false, false);
|
|
1789
1893
|
|
|
1790
1894
|
case 23:
|
|
1791
|
-
result =
|
|
1792
|
-
|
|
1895
|
+
result = _context11.sent;
|
|
1896
|
+
_context11.next = 29;
|
|
1793
1897
|
break;
|
|
1794
1898
|
|
|
1795
1899
|
case 26:
|
|
1796
|
-
|
|
1900
|
+
_context11.next = 28;
|
|
1797
1901
|
return (0, _tplusApi.ccApi)({ password: value.pwd, cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + meStorageCardId, false, false);
|
|
1798
1902
|
|
|
1799
1903
|
case 28:
|
|
1800
|
-
result =
|
|
1904
|
+
result = _context11.sent;
|
|
1801
1905
|
|
|
1802
1906
|
case 29:
|
|
1803
1907
|
if (!result.data) {
|
|
@@ -1816,38 +1920,38 @@ var SettlementStore = (_class = function () {
|
|
|
1816
1920
|
this.setCookie('errorPwd', '', -1);
|
|
1817
1921
|
this.setCookie('errorPwd', (0, _stringify2.default)(cook2));
|
|
1818
1922
|
}
|
|
1819
|
-
return
|
|
1923
|
+
return _context11.abrupt('return', _promise2.default.resolve(result.data ? "" : message));
|
|
1820
1924
|
|
|
1821
1925
|
case 33:
|
|
1822
|
-
|
|
1926
|
+
_context11.next = 35;
|
|
1823
1927
|
return (0, _tplusApi.tApi)({ "CheckoutParams": {
|
|
1824
1928
|
"Idmember": value.id,
|
|
1825
1929
|
"Password": value.pwd
|
|
1826
1930
|
} }, 'AA.DR.newRetailMember.CheckoutMemberPassword', false, false);
|
|
1827
1931
|
|
|
1828
1932
|
case 35:
|
|
1829
|
-
_result =
|
|
1830
|
-
return
|
|
1933
|
+
_result = _context11.sent;
|
|
1934
|
+
return _context11.abrupt('return', _promise2.default.resolve(_result.Success ? "" : _result.Message));
|
|
1831
1935
|
|
|
1832
1936
|
case 37:
|
|
1833
|
-
|
|
1937
|
+
_context11.next = 42;
|
|
1834
1938
|
break;
|
|
1835
1939
|
|
|
1836
1940
|
case 39:
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
return
|
|
1941
|
+
_context11.prev = 39;
|
|
1942
|
+
_context11.t0 = _context11['catch'](1);
|
|
1943
|
+
return _context11.abrupt('return', "failed");
|
|
1840
1944
|
|
|
1841
1945
|
case 42:
|
|
1842
1946
|
case 'end':
|
|
1843
|
-
return
|
|
1947
|
+
return _context11.stop();
|
|
1844
1948
|
}
|
|
1845
1949
|
}
|
|
1846
|
-
},
|
|
1950
|
+
}, _callee11, this, [[1, 39]]);
|
|
1847
1951
|
}));
|
|
1848
1952
|
|
|
1849
|
-
function validePwd(
|
|
1850
|
-
return
|
|
1953
|
+
function validePwd(_x9) {
|
|
1954
|
+
return _ref23.apply(this, arguments);
|
|
1851
1955
|
}
|
|
1852
1956
|
|
|
1853
1957
|
return validePwd;
|
|
@@ -1886,34 +1990,34 @@ var SettlementStore = (_class = function () {
|
|
|
1886
1990
|
var _this15 = this;
|
|
1887
1991
|
|
|
1888
1992
|
return function () {
|
|
1889
|
-
var
|
|
1993
|
+
var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(_this) {
|
|
1890
1994
|
var _getLoginInfo, IdStore, StoreCode, resp;
|
|
1891
1995
|
|
|
1892
|
-
return _regenerator2.default.wrap(function
|
|
1996
|
+
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
|
1893
1997
|
while (1) {
|
|
1894
|
-
switch (
|
|
1998
|
+
switch (_context12.prev = _context12.next) {
|
|
1895
1999
|
case 0:
|
|
1896
2000
|
_getLoginInfo = _this15.getLoginInfo(), IdStore = _getLoginInfo.IdStore, StoreCode = _getLoginInfo.StoreCode;
|
|
1897
|
-
|
|
2001
|
+
_context12.next = 3;
|
|
1898
2002
|
return (0, _tplusApi.tApi)({ Idmember: _this15.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
|
|
1899
2003
|
|
|
1900
2004
|
case 3:
|
|
1901
|
-
resp =
|
|
2005
|
+
resp = _context12.sent;
|
|
1902
2006
|
|
|
1903
2007
|
_this.member = resp;
|
|
1904
2008
|
_this.paymode.updateMemberStorageCardNo(resp.StorageCardNo, resp.WalletEnabled);
|
|
1905
|
-
return
|
|
2009
|
+
return _context12.abrupt('return', _promise2.default.resolve(resp));
|
|
1906
2010
|
|
|
1907
2011
|
case 7:
|
|
1908
2012
|
case 'end':
|
|
1909
|
-
return
|
|
2013
|
+
return _context12.stop();
|
|
1910
2014
|
}
|
|
1911
2015
|
}
|
|
1912
|
-
},
|
|
2016
|
+
}, _callee12, _this15);
|
|
1913
2017
|
}));
|
|
1914
2018
|
|
|
1915
|
-
return function (
|
|
1916
|
-
return
|
|
2019
|
+
return function (_x10) {
|
|
2020
|
+
return _ref25.apply(this, arguments);
|
|
1917
2021
|
};
|
|
1918
2022
|
}();
|
|
1919
2023
|
}
|
|
@@ -1923,62 +2027,62 @@ var SettlementStore = (_class = function () {
|
|
|
1923
2027
|
var _this16 = this;
|
|
1924
2028
|
|
|
1925
2029
|
return function () {
|
|
1926
|
-
var
|
|
2030
|
+
var _ref26 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(memberId) {
|
|
1927
2031
|
var result;
|
|
1928
|
-
return _regenerator2.default.wrap(function
|
|
2032
|
+
return _regenerator2.default.wrap(function _callee13$(_context13) {
|
|
1929
2033
|
while (1) {
|
|
1930
|
-
switch (
|
|
2034
|
+
switch (_context13.prev = _context13.next) {
|
|
1931
2035
|
case 0:
|
|
1932
|
-
|
|
2036
|
+
_context13.next = 2;
|
|
1933
2037
|
return (0, _tplusApi.ccApi)({}, '/marketingtool/MeStorageCard/getCardInfoByMemberId/' + memberId + '/' + true, false, false, { method: 'get' });
|
|
1934
2038
|
|
|
1935
2039
|
case 2:
|
|
1936
|
-
result =
|
|
2040
|
+
result = _context13.sent;
|
|
1937
2041
|
|
|
1938
2042
|
if (!(result && result.data.length)) {
|
|
1939
|
-
|
|
2043
|
+
_context13.next = 20;
|
|
1940
2044
|
break;
|
|
1941
2045
|
}
|
|
1942
2046
|
|
|
1943
2047
|
if (!(result.data.length === 1)) {
|
|
1944
|
-
|
|
2048
|
+
_context13.next = 9;
|
|
1945
2049
|
break;
|
|
1946
2050
|
}
|
|
1947
2051
|
|
|
1948
2052
|
_this16.paymode.updateCardInfo(result.data[0]);
|
|
1949
|
-
return
|
|
2053
|
+
return _context13.abrupt('return', result.data);
|
|
1950
2054
|
|
|
1951
2055
|
case 9:
|
|
1952
2056
|
if (!(result.data && result.data.length === 1)) {
|
|
1953
|
-
|
|
2057
|
+
_context13.next = 14;
|
|
1954
2058
|
break;
|
|
1955
2059
|
}
|
|
1956
2060
|
|
|
1957
2061
|
_this16.paymode.updateCardInfo(result.data[0]);
|
|
1958
|
-
return
|
|
2062
|
+
return _context13.abrupt('return', result.data);
|
|
1959
2063
|
|
|
1960
2064
|
case 14:
|
|
1961
2065
|
if (!(result.data && result.data.length > 1)) {
|
|
1962
|
-
|
|
2066
|
+
_context13.next = 18;
|
|
1963
2067
|
break;
|
|
1964
2068
|
}
|
|
1965
2069
|
|
|
1966
|
-
return
|
|
2070
|
+
return _context13.abrupt('return', result.data);
|
|
1967
2071
|
|
|
1968
2072
|
case 18:
|
|
1969
2073
|
_message2.default.warn('没有可用储值卡!');
|
|
1970
|
-
return
|
|
2074
|
+
return _context13.abrupt('return', false);
|
|
1971
2075
|
|
|
1972
2076
|
case 20:
|
|
1973
2077
|
case 'end':
|
|
1974
|
-
return
|
|
2078
|
+
return _context13.stop();
|
|
1975
2079
|
}
|
|
1976
2080
|
}
|
|
1977
|
-
},
|
|
2081
|
+
}, _callee13, _this16);
|
|
1978
2082
|
}));
|
|
1979
2083
|
|
|
1980
|
-
return function (
|
|
1981
|
-
return
|
|
2084
|
+
return function (_x11) {
|
|
2085
|
+
return _ref26.apply(this, arguments);
|
|
1982
2086
|
};
|
|
1983
2087
|
}();
|
|
1984
2088
|
}
|
|
@@ -1987,39 +2091,30 @@ var SettlementStore = (_class = function () {
|
|
|
1987
2091
|
initializer: function initializer() {
|
|
1988
2092
|
var _this17 = this;
|
|
1989
2093
|
|
|
1990
|
-
return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
2094
|
+
return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
|
|
1991
2095
|
var address, result;
|
|
1992
|
-
return _regenerator2.default.wrap(function
|
|
2096
|
+
return _regenerator2.default.wrap(function _callee14$(_context14) {
|
|
1993
2097
|
while (1) {
|
|
1994
|
-
switch (
|
|
2098
|
+
switch (_context14.prev = _context14.next) {
|
|
1995
2099
|
case 0:
|
|
1996
2100
|
address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + _this17.paymode.currentMode.storageCardNo;
|
|
1997
|
-
|
|
2101
|
+
_context14.next = 3;
|
|
1998
2102
|
return (0, _tplusApi.ccApi)({}, address, false, false, { method: 'get', timeout_skip: true });
|
|
1999
2103
|
|
|
2000
2104
|
case 3:
|
|
2001
|
-
result =
|
|
2105
|
+
result = _context14.sent;
|
|
2002
2106
|
|
|
2003
2107
|
_this17.paymode.updateCardInfo(result.data);
|
|
2004
2108
|
|
|
2005
2109
|
case 5:
|
|
2006
2110
|
case 'end':
|
|
2007
|
-
return
|
|
2111
|
+
return _context14.stop();
|
|
2008
2112
|
}
|
|
2009
2113
|
}
|
|
2010
|
-
},
|
|
2114
|
+
}, _callee14, _this17);
|
|
2011
2115
|
}));
|
|
2012
2116
|
}
|
|
2013
|
-
}), _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),
|
|
2014
|
-
enumerable: true,
|
|
2015
|
-
initializer: function initializer() {
|
|
2016
|
-
var _this18 = this;
|
|
2017
|
-
|
|
2018
|
-
return function () {
|
|
2019
|
-
_this18.dto.VoucherDate = new Date();
|
|
2020
|
-
};
|
|
2021
|
-
}
|
|
2022
|
-
}), _applyDecoratedDescriptor(_class.prototype, 'setDtoID', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'setDtoID'), _class.prototype)), _class);
|
|
2117
|
+
}), _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);
|
|
2023
2118
|
exports.default = SettlementStore;
|
|
2024
2119
|
var PayMode = exports.PayMode = (_class3 = function () {
|
|
2025
2120
|
//应收
|
|
@@ -2033,19 +2128,19 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2033
2128
|
this.onlineamount = 0;
|
|
2034
2129
|
this.maxamount = 0;
|
|
2035
2130
|
|
|
2036
|
-
_initDefineProp(this, 'currentFocus',
|
|
2131
|
+
_initDefineProp(this, 'currentFocus', _descriptor5, this);
|
|
2037
2132
|
|
|
2038
|
-
_initDefineProp(this, 'received',
|
|
2133
|
+
_initDefineProp(this, 'received', _descriptor6, this);
|
|
2039
2134
|
|
|
2040
|
-
_initDefineProp(this, 'receivable',
|
|
2135
|
+
_initDefineProp(this, 'receivable', _descriptor7, this);
|
|
2041
2136
|
|
|
2042
|
-
_initDefineProp(this, 'paymodes',
|
|
2137
|
+
_initDefineProp(this, 'paymodes', _descriptor8, this);
|
|
2043
2138
|
|
|
2044
|
-
_initDefineProp(this, 'thePaymodes',
|
|
2139
|
+
_initDefineProp(this, 'thePaymodes', _descriptor9, this);
|
|
2045
2140
|
|
|
2046
|
-
_initDefineProp(this, 'storageCardNo',
|
|
2141
|
+
_initDefineProp(this, 'storageCardNo', _descriptor10, this);
|
|
2047
2142
|
|
|
2048
|
-
_initDefineProp(this, 'balance',
|
|
2143
|
+
_initDefineProp(this, 'balance', _descriptor11, this);
|
|
2049
2144
|
|
|
2050
2145
|
this.currentMode = null;
|
|
2051
2146
|
this.checkList = [];
|
|
@@ -2054,11 +2149,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2054
2149
|
hotKey: "Ctrl+M"
|
|
2055
2150
|
};
|
|
2056
2151
|
|
|
2057
|
-
_initDefineProp(this, 'calcCheckList',
|
|
2152
|
+
_initDefineProp(this, 'calcCheckList', _descriptor12, this);
|
|
2058
2153
|
|
|
2059
|
-
_initDefineProp(this, 'setCouponNum',
|
|
2154
|
+
_initDefineProp(this, 'setCouponNum', _descriptor13, this);
|
|
2060
2155
|
|
|
2061
|
-
_initDefineProp(this, 'addDjqs',
|
|
2156
|
+
_initDefineProp(this, 'addDjqs', _descriptor14, this);
|
|
2062
2157
|
}
|
|
2063
2158
|
// @observable store = null;
|
|
2064
2159
|
|
|
@@ -2117,7 +2212,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2117
2212
|
}, {
|
|
2118
2213
|
key: 'calcDjqCheckValue',
|
|
2119
2214
|
value: function calcDjqCheckValue(q1, dto, params) {
|
|
2120
|
-
var
|
|
2215
|
+
var _this18 = this;
|
|
2121
2216
|
|
|
2122
2217
|
var useLimitPerOrder = (0, _tplusPoslogin.PosInitData)('UseLimitPerOrder');
|
|
2123
2218
|
var qList = (0, _filter3.default)(this.currentMode.djqs, function (djq) {
|
|
@@ -2131,8 +2226,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2131
2226
|
this.checkList = [];
|
|
2132
2227
|
}
|
|
2133
2228
|
|
|
2134
|
-
var
|
|
2135
|
-
isNewRetailBCPos =
|
|
2229
|
+
var _ref28 = _mutantsUtil.platform || {},
|
|
2230
|
+
isNewRetailBCPos = _ref28.isNewRetailBCPos;
|
|
2136
2231
|
|
|
2137
2232
|
var _enumController$getEn18 = _mutantsUtil.enumController.getEnumOj(),
|
|
2138
2233
|
PayStyle = _enumController$getEn18.PayStyle,
|
|
@@ -2164,7 +2259,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2164
2259
|
if (!q1.checked) {
|
|
2165
2260
|
this.checkList.forEach(function (ele, i) {
|
|
2166
2261
|
if (ele.id === q1.id) {
|
|
2167
|
-
|
|
2262
|
+
_this18.checkList.splice(i, 1);
|
|
2168
2263
|
}
|
|
2169
2264
|
});
|
|
2170
2265
|
} else {
|
|
@@ -2236,24 +2331,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2236
2331
|
if (result && result.length != 0) {
|
|
2237
2332
|
result.forEach(function (element, index) {
|
|
2238
2333
|
var djq1 = false;
|
|
2239
|
-
|
|
2334
|
+
_this18.currentMode.djqs.forEach(function (djq) {
|
|
2240
2335
|
if (element.id === djq.id) {
|
|
2241
2336
|
djq1 = true;
|
|
2242
2337
|
}
|
|
2243
2338
|
});
|
|
2244
2339
|
|
|
2245
|
-
var
|
|
2246
|
-
couponCode =
|
|
2247
|
-
name =
|
|
2248
|
-
tieredAmountResult =
|
|
2249
|
-
fromDate =
|
|
2250
|
-
dateMount =
|
|
2251
|
-
promoMethodEnum =
|
|
2252
|
-
discountPct =
|
|
2253
|
-
nominalAmount =
|
|
2254
|
-
promoId =
|
|
2255
|
-
id =
|
|
2256
|
-
doorsill =
|
|
2340
|
+
var _ref29 = element || {},
|
|
2341
|
+
couponCode = _ref29.couponCode,
|
|
2342
|
+
name = _ref29.name,
|
|
2343
|
+
tieredAmountResult = _ref29.tieredAmountResult,
|
|
2344
|
+
fromDate = _ref29.fromDate,
|
|
2345
|
+
dateMount = _ref29.dateMount,
|
|
2346
|
+
promoMethodEnum = _ref29.promoMethodEnum,
|
|
2347
|
+
discountPct = _ref29.discountPct,
|
|
2348
|
+
nominalAmount = _ref29.nominalAmount,
|
|
2349
|
+
promoId = _ref29.promoId,
|
|
2350
|
+
id = _ref29.id,
|
|
2351
|
+
doorsill = _ref29.doorsill;
|
|
2257
2352
|
|
|
2258
2353
|
var condValue = tieredAmountResult.condValue,
|
|
2259
2354
|
promoDiscount = tieredAmountResult.promoDiscount,
|
|
@@ -2281,10 +2376,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2281
2376
|
// couponCategoryEnum: tieredAmountResult.couponCategoryEnum,
|
|
2282
2377
|
// id
|
|
2283
2378
|
// })
|
|
2284
|
-
|
|
2379
|
+
_this18.addDjqs(couponCode, name, true, nominalAmount, promoDiscount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
|
|
2285
2380
|
djq1 = false;
|
|
2286
2381
|
} else {
|
|
2287
|
-
|
|
2382
|
+
_this18.setCouponNum(element.id, couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
|
|
2288
2383
|
// this.currentMode.djqs[0].couponCategoryEnum = 'couponCategoryEnum';
|
|
2289
2384
|
// djq1.couponCategoryEnum = element.tieredAmountResult.couponCategoryEnum
|
|
2290
2385
|
}
|
|
@@ -2297,8 +2392,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2297
2392
|
}, {
|
|
2298
2393
|
key: 'calcDjqValue',
|
|
2299
2394
|
value: function calcDjqValue(q1) {
|
|
2300
|
-
var
|
|
2301
|
-
isNewRetailBCPos =
|
|
2395
|
+
var _ref30 = _mutantsUtil.platform || {},
|
|
2396
|
+
isNewRetailBCPos = _ref30.isNewRetailBCPos;
|
|
2302
2397
|
|
|
2303
2398
|
var _enumController$getEn19 = _mutantsUtil.enumController.getEnumOj(),
|
|
2304
2399
|
Differentiate = _enumController$getEn19.Differentiate;
|
|
@@ -2388,24 +2483,28 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2388
2483
|
}, {
|
|
2389
2484
|
key: 'setPaymodes',
|
|
2390
2485
|
value: function () {
|
|
2391
|
-
var
|
|
2392
|
-
var
|
|
2486
|
+
var _ref31 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(type, isIntegralExchange) {
|
|
2487
|
+
var _this19 = this;
|
|
2393
2488
|
|
|
2394
|
-
var _enumController$getEn21, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
|
|
2489
|
+
var _ref32, isHorizontalPad, isHorizontalSunMi, _enumController$getEn21, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
|
|
2395
2490
|
|
|
2396
|
-
return _regenerator2.default.wrap(function
|
|
2491
|
+
return _regenerator2.default.wrap(function _callee15$(_context15) {
|
|
2397
2492
|
while (1) {
|
|
2398
|
-
switch (
|
|
2493
|
+
switch (_context15.prev = _context15.next) {
|
|
2399
2494
|
case 0:
|
|
2495
|
+
_ref32 = _mutantsUtil.platform || {}, isHorizontalPad = _ref32.isHorizontalPad, isHorizontalSunMi = _ref32.isHorizontalSunMi;
|
|
2400
2496
|
_enumController$getEn21 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn21.settleStyleType, PayStyle = _enumController$getEn21.PayStyle;
|
|
2401
2497
|
memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
|
|
2402
2498
|
param = { 'settleStyleType': type == 1 ? memberStoreCode : settlementCode, isIntegralExchange: isIntegralExchange };
|
|
2403
|
-
|
|
2499
|
+
_context15.next = 6;
|
|
2404
2500
|
return (0, _tplusApi.tApi)({ param: param }, 'chanjet.RE.NewPos.GetNewStoreSettleStyles', false, false);
|
|
2405
2501
|
|
|
2406
|
-
case
|
|
2407
|
-
modes =
|
|
2502
|
+
case 6:
|
|
2503
|
+
modes = _context15.sent;
|
|
2408
2504
|
|
|
2505
|
+
modes = !(!!isHorizontalPad || !!isHorizontalSunMi) ? modes : modes.filter(function (v) {
|
|
2506
|
+
return !!v.ThirdPaymentInfo;
|
|
2507
|
+
});
|
|
2409
2508
|
if (modes) {
|
|
2410
2509
|
(0, _mobx.runInAction)(function () {
|
|
2411
2510
|
var paymodes = [];
|
|
@@ -2429,20 +2528,20 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2429
2528
|
thridPayment: mode.ThirdPaymentInfo
|
|
2430
2529
|
});
|
|
2431
2530
|
});
|
|
2432
|
-
|
|
2531
|
+
_this19.paymodes = paymodes;
|
|
2433
2532
|
});
|
|
2434
2533
|
}
|
|
2435
2534
|
|
|
2436
|
-
case
|
|
2535
|
+
case 9:
|
|
2437
2536
|
case 'end':
|
|
2438
|
-
return
|
|
2537
|
+
return _context15.stop();
|
|
2439
2538
|
}
|
|
2440
2539
|
}
|
|
2441
|
-
},
|
|
2540
|
+
}, _callee15, this);
|
|
2442
2541
|
}));
|
|
2443
2542
|
|
|
2444
|
-
function setPaymodes(
|
|
2445
|
-
return
|
|
2543
|
+
function setPaymodes(_x12, _x13) {
|
|
2544
|
+
return _ref31.apply(this, arguments);
|
|
2446
2545
|
}
|
|
2447
2546
|
|
|
2448
2547
|
return setPaymodes;
|
|
@@ -2459,57 +2558,57 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2459
2558
|
}
|
|
2460
2559
|
}]);
|
|
2461
2560
|
return PayMode;
|
|
2462
|
-
}(), (
|
|
2561
|
+
}(), (_descriptor5 = _applyDecoratedDescriptor(_class3.prototype, 'currentFocus', [_mobx.observable], {
|
|
2463
2562
|
enumerable: true,
|
|
2464
2563
|
initializer: function initializer() {
|
|
2465
2564
|
return "";
|
|
2466
2565
|
}
|
|
2467
|
-
}),
|
|
2566
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class3.prototype, 'received', [_mobx.observable], {
|
|
2468
2567
|
enumerable: true,
|
|
2469
2568
|
initializer: function initializer() {
|
|
2470
2569
|
return 0;
|
|
2471
2570
|
}
|
|
2472
|
-
}),
|
|
2571
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class3.prototype, 'receivable', [_mobx.observable], {
|
|
2473
2572
|
enumerable: true,
|
|
2474
2573
|
initializer: function initializer() {
|
|
2475
2574
|
return 0;
|
|
2476
2575
|
}
|
|
2477
|
-
}),
|
|
2576
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class3.prototype, 'paymodes', [_mobx.observable], {
|
|
2478
2577
|
enumerable: true,
|
|
2479
2578
|
initializer: function initializer() {
|
|
2480
2579
|
return [];
|
|
2481
2580
|
}
|
|
2482
|
-
}),
|
|
2581
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, 'thePaymodes', [_mobx.observable], {
|
|
2483
2582
|
enumerable: true,
|
|
2484
2583
|
initializer: function initializer() {
|
|
2485
2584
|
return [];
|
|
2486
2585
|
}
|
|
2487
|
-
}),
|
|
2586
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'storageCardNo', [_mobx.observable], {
|
|
2488
2587
|
enumerable: true,
|
|
2489
2588
|
initializer: function initializer() {
|
|
2490
2589
|
return null;
|
|
2491
2590
|
}
|
|
2492
|
-
}),
|
|
2591
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class3.prototype, 'balance', [_mobx.observable], {
|
|
2493
2592
|
enumerable: true,
|
|
2494
2593
|
initializer: function initializer() {
|
|
2495
2594
|
return null;
|
|
2496
2595
|
}
|
|
2497
|
-
}), _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),
|
|
2596
|
+
}), _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], {
|
|
2498
2597
|
enumerable: true,
|
|
2499
2598
|
initializer: function initializer() {
|
|
2500
|
-
var
|
|
2599
|
+
var _this20 = this;
|
|
2501
2600
|
|
|
2502
2601
|
return function () {
|
|
2503
|
-
|
|
2602
|
+
_this20.checkList = [];
|
|
2504
2603
|
};
|
|
2505
2604
|
}
|
|
2506
|
-
}), _applyDecoratedDescriptor(_class3.prototype, 'updateMemberStorageCardNo', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'updateMemberStorageCardNo'), _class3.prototype), _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),
|
|
2605
|
+
}), _applyDecoratedDescriptor(_class3.prototype, 'updateMemberStorageCardNo', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'updateMemberStorageCardNo'), _class3.prototype), _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], {
|
|
2507
2606
|
enumerable: true,
|
|
2508
2607
|
initializer: function initializer() {
|
|
2509
|
-
var
|
|
2608
|
+
var _this21 = this;
|
|
2510
2609
|
|
|
2511
2610
|
return function (id, couponNum, promoMethodEnum, nominalAmount, promoDiscount) {
|
|
2512
|
-
|
|
2611
|
+
_this21.currentMode.djqs.forEach(function (ele) {
|
|
2513
2612
|
if (ele.id === id) {
|
|
2514
2613
|
ele.amount = promoDiscount;
|
|
2515
2614
|
promoMethodEnum == "CASH_COUPON" && (ele.nominalAmount = nominalAmount);
|
|
@@ -2520,10 +2619,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2520
2619
|
});
|
|
2521
2620
|
};
|
|
2522
2621
|
}
|
|
2523
|
-
}),
|
|
2622
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
|
|
2524
2623
|
enumerable: true,
|
|
2525
2624
|
initializer: function initializer() {
|
|
2526
|
-
var
|
|
2625
|
+
var _this22 = this;
|
|
2527
2626
|
|
|
2528
2627
|
return function (promoCouponCode, name, IsEnable, nominalAmount, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id) {
|
|
2529
2628
|
var djq = {
|
|
@@ -2546,25 +2645,25 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2546
2645
|
couponCategoryEnum: couponCategoryEnum,
|
|
2547
2646
|
id: id
|
|
2548
2647
|
};
|
|
2549
|
-
|
|
2648
|
+
_this22.currentMode.djqs.push(djq);
|
|
2550
2649
|
};
|
|
2551
2650
|
}
|
|
2552
2651
|
}), _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);
|
|
2553
2652
|
var Member = exports.Member = (_class5 = function () {
|
|
2554
2653
|
function Member(m) {
|
|
2555
|
-
var
|
|
2654
|
+
var _this23 = this;
|
|
2556
2655
|
|
|
2557
2656
|
(0, _classCallCheck3.default)(this, Member);
|
|
2558
2657
|
|
|
2559
|
-
_initDefineProp(this, 'cardNo',
|
|
2658
|
+
_initDefineProp(this, 'cardNo', _descriptor15, this);
|
|
2560
2659
|
|
|
2561
|
-
_initDefineProp(this, 'balance',
|
|
2660
|
+
_initDefineProp(this, 'balance', _descriptor16, this);
|
|
2562
2661
|
|
|
2563
|
-
_initDefineProp(this, 'exchangable',
|
|
2662
|
+
_initDefineProp(this, 'exchangable', _descriptor17, this);
|
|
2564
2663
|
|
|
2565
|
-
_initDefineProp(this, 'meStorageCardId',
|
|
2664
|
+
_initDefineProp(this, 'meStorageCardId', _descriptor18, this);
|
|
2566
2665
|
|
|
2567
|
-
_initDefineProp(this, 'storageCardNo',
|
|
2666
|
+
_initDefineProp(this, 'storageCardNo', _descriptor19, this);
|
|
2568
2667
|
|
|
2569
2668
|
if (m) {
|
|
2570
2669
|
this.id = m.ID;
|
|
@@ -2575,15 +2674,15 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2575
2674
|
return key == 'canusedbalancestorage';
|
|
2576
2675
|
});
|
|
2577
2676
|
|
|
2578
|
-
var
|
|
2579
|
-
isNewRetailBCPos =
|
|
2677
|
+
var _ref33 = _mutantsUtil.platform || {},
|
|
2678
|
+
isNewRetailBCPos = _ref33.isNewRetailBCPos;
|
|
2580
2679
|
|
|
2581
2680
|
(0, _mobx.runInAction)(function () {
|
|
2582
|
-
|
|
2681
|
+
_this23.cardNo = m.CardCode;
|
|
2583
2682
|
if (index >= 0) {
|
|
2584
|
-
|
|
2683
|
+
_this23.balance = parseFloat(m.DynamicPropertyValues[index]);
|
|
2585
2684
|
} else {
|
|
2586
|
-
|
|
2685
|
+
_this23.balance = _this23.rawbalance;
|
|
2587
2686
|
}
|
|
2588
2687
|
});
|
|
2589
2688
|
this.needPwd = m.MemberType ? m.MemberType.IsNeedPwd : false;
|
|
@@ -2605,19 +2704,19 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2605
2704
|
}
|
|
2606
2705
|
}]);
|
|
2607
2706
|
return Member;
|
|
2608
|
-
}(), (
|
|
2707
|
+
}(), (_descriptor15 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
|
|
2609
2708
|
enumerable: true,
|
|
2610
2709
|
initializer: null
|
|
2611
|
-
}),
|
|
2710
|
+
}), _descriptor16 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
|
|
2612
2711
|
enumerable: true,
|
|
2613
2712
|
initializer: null
|
|
2614
|
-
}),
|
|
2713
|
+
}), _descriptor17 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
|
|
2615
2714
|
enumerable: true,
|
|
2616
2715
|
initializer: null
|
|
2617
|
-
}),
|
|
2716
|
+
}), _descriptor18 = _applyDecoratedDescriptor(_class5.prototype, 'meStorageCardId', [_mobx.observable], {
|
|
2618
2717
|
enumerable: true,
|
|
2619
2718
|
initializer: null
|
|
2620
|
-
}),
|
|
2719
|
+
}), _descriptor19 = _applyDecoratedDescriptor(_class5.prototype, 'storageCardNo', [_mobx.observable], {
|
|
2621
2720
|
enumerable: true,
|
|
2622
2721
|
initializer: null
|
|
2623
2722
|
}), _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);
|