tplus-components-touch 3.36.1 → 3.36.4
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 +163 -25
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/billSearch/index.less +376 -373
- package/dist/components/cloudPrint/BTPrintFormatUtil.js +17 -17
- package/dist/components/cloudPrint/BTPrintFormatUtil.js.map +1 -1
- package/dist/components/cloudPrint/api.js +85 -43
- package/dist/components/cloudPrint/api.js.map +1 -1
- package/dist/components/cloudPrint/index.js.map +1 -1
- package/dist/components/cloudPrint/printDispatch.js +211 -108
- 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 +7 -7
- 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 +133 -14
- 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 +77 -67
- 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 +9 -7
- 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 -161
- 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 +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 +16 -16
- 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 +4 -3
- package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
- package/dist/components/progressState/ProgressState.js +12 -11
- 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 +9 -0
- package/dist/components/settlement/index.js.map +1 -1
- package/dist/components/settlement/moreCzkTable/index.js +156 -0
- package/dist/components/settlement/moreCzkTable/index.js.map +1 -0
- package/dist/components/settlement/moreCzkTable/style.less +7 -0
- package/dist/components/settlement/prototypeTable/index.js +3 -1
- 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 +761 -514
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +1686 -1595
- package/dist/components/settlement/settlementStore.js +1072 -463
- 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.css +539 -539
- package/dist/components/ticon/iconfont/demo_index.html +5248 -5202
- package/dist/components/ticon/iconfont/iconfont.css +895 -887
- package/dist/components/ticon/iconfont/iconfont.js +6 -6
- package/dist/components/ticon/iconfont/iconfont.js.map +1 -1
- package/dist/components/ticon/iconfont/iconfont.json +1549 -1535
- package/dist/components/ticon/iconfont/iconfont.svg +593 -593
- package/dist/components/ticon/iconfont/iconfont.ttf +0 -0
- package/dist/components/ticon/iconfont/iconfont.woff +0 -0
- package/dist/components/ticon/iconfont/iconfont.woff2 +0 -0
- package/dist/components/ticon/index.js.map +1 -1
- package/dist/components/touchScroll/index.js +15 -11
- 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 +14 -13
- package/dist/components/touchTable/index.js.map +1 -1
- package/dist/components/touchTable/index.less +376 -369
- package/dist/components/touchTable/utils.js.map +1 -1
- package/dist/demo/PopOverDemo.js.map +1 -1
- package/dist/index.js +20 -8
- 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 +1 -1
- 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,
|
|
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
|
|
|
@@ -168,6 +168,7 @@ var SettlementStore = (_class = function () {
|
|
|
168
168
|
(0, _classCallCheck3.default)(this, SettlementStore);
|
|
169
169
|
this.paymode = null;
|
|
170
170
|
this.dto = null;
|
|
171
|
+
this.dtoParams = null;
|
|
171
172
|
this.member = null;
|
|
172
173
|
this.brefund = false;
|
|
173
174
|
this.bquick = false;
|
|
@@ -178,6 +179,46 @@ var SettlementStore = (_class = function () {
|
|
|
178
179
|
|
|
179
180
|
_initDefineProp(this, 'updateMemberInfo', _descriptor2, this);
|
|
180
181
|
|
|
182
|
+
_initDefineProp(this, 'updateCurrentMode', _descriptor3, this);
|
|
183
|
+
|
|
184
|
+
_initDefineProp(this, 'updateCardInfo', _descriptor4, this);
|
|
185
|
+
|
|
186
|
+
this.handleCzkData = function (m) {
|
|
187
|
+
if (!m || !m.StorageCardNo) {
|
|
188
|
+
(0, _mobx.runInAction)(function () {
|
|
189
|
+
_this2.paymode.currentMode.errinfo = "无效的会员卡号";
|
|
190
|
+
});
|
|
191
|
+
} else {
|
|
192
|
+
(0, _mobx.runInAction)(function () {
|
|
193
|
+
_this2.paymode.currentMode.errinfo = "";
|
|
194
|
+
_this2.paymode.currentMode.memberId = m.ID;
|
|
195
|
+
_this2.paymode.currentMode.value = (0, _utils.getFixedNumber)(_this2.brefund ? _this2.paymode.receivable : Math.max(_this2.paymode.receivable, 0));
|
|
196
|
+
_this2.updateEvent();
|
|
197
|
+
var message = '';
|
|
198
|
+
var sum = (0, _reduce3.default)(_this2.paymode.thePaymodes, function (total, cur) {
|
|
199
|
+
return total + cur.value;
|
|
200
|
+
}, 0);
|
|
201
|
+
// 对于卡不用判断会员的一些信息
|
|
202
|
+
// if (global.CheckMemberStorageProcessorBlock ) {
|
|
203
|
+
// message= CheckMemberStorageProcessorBlock.execute(m);
|
|
204
|
+
// }
|
|
205
|
+
if (!String.isNullOrEmpty(message)) {
|
|
206
|
+
_this2.paymode.currentMode.errinfo = message;
|
|
207
|
+
} else if (_this2.checkReceived(_this2.paymode.currentMode, "balance")) {
|
|
208
|
+
_this2.paymode.currentMode.errinfo = "余额不足";
|
|
209
|
+
} else if (_this2.paymode.amount > 0 && parseFloat(_this2.paymode.amount) !== sum && _this2.paymode.currentMode.value == 0) {
|
|
210
|
+
_this2.paymode.currentMode.errinfo = "实收金额必须录入";
|
|
211
|
+
} else {
|
|
212
|
+
// 查询成功后将焦点移入下一个输入框
|
|
213
|
+
setTimeout(function () {
|
|
214
|
+
var nextInput = document.querySelector('.czk .received .input');
|
|
215
|
+
nextInput && nextInput.select();
|
|
216
|
+
}, 300);
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
|
|
181
222
|
this.getCouponList = function (coupon_code) {
|
|
182
223
|
var _enumController$getEn = _mutantsUtil.enumController.getEnumOj(),
|
|
183
224
|
PayStyle = _enumController$getEn.PayStyle,
|
|
@@ -193,8 +234,6 @@ var SettlementStore = (_class = function () {
|
|
|
193
234
|
var promoVoucher = {};
|
|
194
235
|
_this2.paymode.clearDjqs();
|
|
195
236
|
_this2.paymode.reCalculationDjqs();
|
|
196
|
-
// promoVoucher.bizDate = dto.VoucherDate;
|
|
197
|
-
// promoVoucher.bizDate = new Date().getTime();
|
|
198
237
|
promoVoucher.coupon_code = coupon_code || "";
|
|
199
238
|
promoVoucher.boName = "Retail";
|
|
200
239
|
promoVoucher.voucherId = dto.ID;
|
|
@@ -281,11 +320,7 @@ var SettlementStore = (_class = function () {
|
|
|
281
320
|
_message2.default.error(Differentiate.COUPON + '\uFF08' + result.SN + '\uFF09\u4E0D\u53EF\u4E0E\u79EF\u5206\u4E00\u8D77\u4F7F\u7528');
|
|
282
321
|
} else {
|
|
283
322
|
var IsEnable = couponCategoryEnum === 'RIGUP' || couponCategoryEnum === 'UN_MATCH' || couponCategoryEnum === "PREPARING" || couponCategoryEnum === 'PROMO_LIMITED' || couponCategoryEnum === 'COUPON_CONFLICT' ? false : true;
|
|
284
|
-
|
|
285
|
-
var _ref2 = _mutantsUtil.platform || {},
|
|
286
|
-
isNewRetailBCPos = _ref2.isNewRetailBCPos;
|
|
287
|
-
|
|
288
|
-
_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);
|
|
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);
|
|
289
324
|
}
|
|
290
325
|
});
|
|
291
326
|
if (promoVoucher.coupon_code) {
|
|
@@ -308,14 +343,14 @@ var SettlementStore = (_class = function () {
|
|
|
308
343
|
};
|
|
309
344
|
|
|
310
345
|
this.checkCoupon = function () {
|
|
311
|
-
var
|
|
312
|
-
var
|
|
346
|
+
var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(sn) {
|
|
347
|
+
var _ref3, isNewRetailBCPos, _enumController$getEn3, PayStyle, Differentiate;
|
|
313
348
|
|
|
314
349
|
return _regenerator2.default.wrap(function _callee$(_context) {
|
|
315
350
|
while (1) {
|
|
316
351
|
switch (_context.prev = _context.next) {
|
|
317
352
|
case 0:
|
|
318
|
-
|
|
353
|
+
_ref3 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref3.isNewRetailBCPos;
|
|
319
354
|
|
|
320
355
|
if (!isNewRetailBCPos) {
|
|
321
356
|
_context.next = 7;
|
|
@@ -383,10 +418,56 @@ var SettlementStore = (_class = function () {
|
|
|
383
418
|
}));
|
|
384
419
|
|
|
385
420
|
return function (_x) {
|
|
386
|
-
return
|
|
421
|
+
return _ref2.apply(this, arguments);
|
|
387
422
|
};
|
|
388
423
|
}();
|
|
389
424
|
|
|
425
|
+
this.repeatStorageModal = function (content) {
|
|
426
|
+
return new _promise2.default(function (resolve, reject) {
|
|
427
|
+
_tplusComponentsTouch.ModalWraper.confirm({
|
|
428
|
+
title: '',
|
|
429
|
+
okText: '继续储值',
|
|
430
|
+
className: 'repeat-modal',
|
|
431
|
+
zIndex: 1007,
|
|
432
|
+
content: content,
|
|
433
|
+
onOk: function () {
|
|
434
|
+
var _ref4 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2() {
|
|
435
|
+
var ret;
|
|
436
|
+
return _regenerator2.default.wrap(function _callee2$(_context2) {
|
|
437
|
+
while (1) {
|
|
438
|
+
switch (_context2.prev = _context2.next) {
|
|
439
|
+
case 0:
|
|
440
|
+
_context2.next = 2;
|
|
441
|
+
return _this2.saveMember();
|
|
442
|
+
|
|
443
|
+
case 2:
|
|
444
|
+
ret = _context2.sent;
|
|
445
|
+
|
|
446
|
+
if (ret === false) {
|
|
447
|
+
resolve(false);
|
|
448
|
+
} else {
|
|
449
|
+
resolve(true);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
case 4:
|
|
453
|
+
case 'end':
|
|
454
|
+
return _context2.stop();
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}, _callee2, _this2);
|
|
458
|
+
}));
|
|
459
|
+
|
|
460
|
+
return function onOk() {
|
|
461
|
+
return _ref4.apply(this, arguments);
|
|
462
|
+
};
|
|
463
|
+
}(),
|
|
464
|
+
onCancel: function onCancel() {
|
|
465
|
+
resolve(false);
|
|
466
|
+
}
|
|
467
|
+
});
|
|
468
|
+
});
|
|
469
|
+
};
|
|
470
|
+
|
|
390
471
|
this.checkIntegralExchangeReturn = function (id) {
|
|
391
472
|
return new _promise2.default(function (resolve, reject) {
|
|
392
473
|
(0, _tplusApi.tApi)({ param: { refVoucherId: id } }, 'chanjet.RE.NewPos.GetNewIntegralExchange', false, false, { timeout_skip: true }).then(function (resp) {
|
|
@@ -425,7 +506,7 @@ var SettlementStore = (_class = function () {
|
|
|
425
506
|
}
|
|
426
507
|
}, {
|
|
427
508
|
key: 'init',
|
|
428
|
-
value: function init(context, amounthandler, datasource, storeinfo, bquick, amount, type, data) {
|
|
509
|
+
value: function init(context, amounthandler, datasource, storeinfo, bquick, amount, type, data, payModeKey) {
|
|
429
510
|
var _this3 = this;
|
|
430
511
|
|
|
431
512
|
this.newStyle = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('voucherDefaultPosMode') == 'voucher';
|
|
@@ -441,9 +522,15 @@ var SettlementStore = (_class = function () {
|
|
|
441
522
|
if (global.DealSingleRowAmountSettingProcessorBlock) {
|
|
442
523
|
global.DealSingleRowAmountSettingProcessorBlock.execute(_this3.dto);
|
|
443
524
|
}
|
|
525
|
+
|
|
526
|
+
var _enumController$getEn4 = _mutantsUtil.enumController.getEnumOj(),
|
|
527
|
+
PayStyle = _enumController$getEn4.PayStyle;
|
|
528
|
+
|
|
529
|
+
var isQuickCash = bquick && payModeKey == PayStyle.xianjin;
|
|
530
|
+
|
|
444
531
|
// 成交金额抹零
|
|
445
532
|
if (global.DealAmountSettingProcessorBlock) {
|
|
446
|
-
global.DealAmountSettingProcessorBlock.execute(_this3.dto);
|
|
533
|
+
global.DealAmountSettingProcessorBlock.execute(_this3.dto, isQuickCash);
|
|
447
534
|
}
|
|
448
535
|
});
|
|
449
536
|
// this.member=context.stores && context.stores.memberStore && context.stores.memberStore.member;
|
|
@@ -493,8 +580,8 @@ var SettlementStore = (_class = function () {
|
|
|
493
580
|
value: function initByOriginReturn() {
|
|
494
581
|
var _this5 = this;
|
|
495
582
|
|
|
496
|
-
var _enumController$
|
|
497
|
-
PayStyle = _enumController$
|
|
583
|
+
var _enumController$getEn5 = _mutantsUtil.enumController.getEnumOj(),
|
|
584
|
+
PayStyle = _enumController$getEn5.PayStyle;
|
|
498
585
|
|
|
499
586
|
var _ref5 = _mutantsUtil.platform || {},
|
|
500
587
|
isNewRetailBCPos = _ref5.isNewRetailBCPos;
|
|
@@ -516,7 +603,8 @@ var SettlementStore = (_class = function () {
|
|
|
516
603
|
authCode: detail.PaymentCode,
|
|
517
604
|
steadCashIntegral: detail.SteadCashIntegral,
|
|
518
605
|
overchargesAmount: detail.OverchargesAmount,
|
|
519
|
-
boriginReturn: true
|
|
606
|
+
boriginReturn: true,
|
|
607
|
+
thirdPaymentReturnInfo: detail.ThirdPaymentReturnInfo
|
|
520
608
|
});
|
|
521
609
|
_this5.paymode.currentMode = newmode;
|
|
522
610
|
if (themode.paymentType == PayStyle.djq) {
|
|
@@ -531,23 +619,33 @@ var SettlementStore = (_class = function () {
|
|
|
531
619
|
promoId = _ref6.promoId,
|
|
532
620
|
id = _ref6.id;
|
|
533
621
|
|
|
534
|
-
_this5.addDjq(djq.CouponCode, djq.CouponTitle, true, djq.ReductionAmount, djq.EnableAmount, djq.LastTS, true, false, _this5.dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, null, id, true);
|
|
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);
|
|
535
623
|
return;
|
|
536
624
|
}
|
|
537
|
-
_this5.addDjq(djq.CouponCode, djq.CouponTitle, true, djq.ReductionAmount, djq.EnableAmount, djq.LastTS, true, false);
|
|
625
|
+
_this5.addDjq(djq.CouponCode, djq.CouponTitle, true, null, djq.ReductionAmount, djq.EnableAmount, djq.LastTS, true, false);
|
|
538
626
|
});
|
|
539
627
|
}
|
|
540
628
|
_this5.paymode.thePaymodes.push(newmode);
|
|
541
629
|
}
|
|
542
630
|
});
|
|
543
631
|
(0, _each3.default)(this.dto.RetailStorageDetails, function (detail) {
|
|
544
|
-
var balanceAmount =
|
|
545
|
-
|
|
632
|
+
var balanceAmount = null;
|
|
633
|
+
var storageCardNo = null;
|
|
634
|
+
var meStorageCardId = null;
|
|
635
|
+
detail.DynamicPropertyKeys.forEach(function (ele, index) {
|
|
636
|
+
if (ele === "mestoragecard") {
|
|
637
|
+
balanceAmount = detail.DynamicPropertyValues[index].BalanceStorage - detail.StoragePaymentAmount;
|
|
638
|
+
storageCardNo = detail.DynamicPropertyValues[index].StorageCardNo;
|
|
639
|
+
meStorageCardId = detail.DynamicPropertyValues[index].MeStorageCardId;
|
|
640
|
+
}
|
|
641
|
+
});
|
|
546
642
|
var newmode = (0, _extends3.default)({}, _this5.genNewMode(PayStyle.hyczk, false, detail.StoragePaymentAmount), {
|
|
547
|
-
member: new Member(detail.Member),
|
|
548
|
-
authCode: detail.Password,
|
|
643
|
+
member: new Member(detail.Member ? detail.Member : null),
|
|
644
|
+
authCode: detail.Password ? detail.Password : null,
|
|
549
645
|
balance: balanceAmount,
|
|
550
|
-
boriginReturn: true
|
|
646
|
+
boriginReturn: true,
|
|
647
|
+
meStorageCardId: meStorageCardId ? meStorageCardId : detail.MeStorageCardId,
|
|
648
|
+
storageCardNo: storageCardNo ? storageCardNo : detail.StorageCardNo
|
|
551
649
|
});
|
|
552
650
|
_this5.paymode.thePaymodes.push(newmode);
|
|
553
651
|
});
|
|
@@ -562,7 +660,7 @@ var SettlementStore = (_class = function () {
|
|
|
562
660
|
}, {
|
|
563
661
|
key: 'quickSettle',
|
|
564
662
|
value: function quickSettle(key) {
|
|
565
|
-
this.addPay(key);
|
|
663
|
+
this.addPay(key, true);
|
|
566
664
|
}
|
|
567
665
|
|
|
568
666
|
//outer call
|
|
@@ -573,8 +671,8 @@ var SettlementStore = (_class = function () {
|
|
|
573
671
|
value: function changeFocusAndAddPay(type) {
|
|
574
672
|
var _this6 = this;
|
|
575
673
|
|
|
576
|
-
var _enumController$
|
|
577
|
-
PayStyle = _enumController$
|
|
674
|
+
var _enumController$getEn6 = _mutantsUtil.enumController.getEnumOj(),
|
|
675
|
+
PayStyle = _enumController$getEn6.PayStyle;
|
|
578
676
|
|
|
579
677
|
this.paymode.currentFocus = type;
|
|
580
678
|
if (this.paymode.currentMode) {
|
|
@@ -591,7 +689,7 @@ var SettlementStore = (_class = function () {
|
|
|
591
689
|
|
|
592
690
|
//抵现积分
|
|
593
691
|
(0, _tplusApi.tApi)({ IntegralSteadCashParams: {
|
|
594
|
-
Idmember: this.paymode.currentMode.
|
|
692
|
+
Idmember: this.paymode.currentMode.memberId,
|
|
595
693
|
TotalTaxAmount: this.paymode.amount,
|
|
596
694
|
BalanceTaxAmount: this.paymode.currentMode.value
|
|
597
695
|
} }, 'AA.DR.newRetailMember.CalculdateIntegralSteadCash', false, false).then(function (result) {
|
|
@@ -620,7 +718,6 @@ var SettlementStore = (_class = function () {
|
|
|
620
718
|
|
|
621
719
|
if ((0, _trim3.default)(v) === "") {
|
|
622
720
|
(0, _mobx.runInAction)(function () {
|
|
623
|
-
_this7.paymode.currentMode.member = new Member(null);
|
|
624
721
|
_this7.paymode.currentMode.errinfo = "请输入储值卡";
|
|
625
722
|
});
|
|
626
723
|
return;
|
|
@@ -634,66 +731,98 @@ var SettlementStore = (_class = function () {
|
|
|
634
731
|
var address = '';
|
|
635
732
|
if (isNewRetailBCPos) {
|
|
636
733
|
// address = '/member/memberProfile/FindByStorageCode/'+v;
|
|
637
|
-
address = '/
|
|
638
|
-
return (0, _tplusApi.ccApi)({ code: v }, address, false, false, { method: 'get', timeout_skip: true }).then(function (
|
|
639
|
-
var
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
734
|
+
address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + v + '/' + true;
|
|
735
|
+
return (0, _tplusApi.ccApi)({ code: v }, address, false, false, { method: 'get', timeout_skip: true }).then(function () {
|
|
736
|
+
var _ref8 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(result) {
|
|
737
|
+
var data, m;
|
|
738
|
+
return _regenerator2.default.wrap(function _callee3$(_context3) {
|
|
739
|
+
while (1) {
|
|
740
|
+
switch (_context3.prev = _context3.next) {
|
|
741
|
+
case 0:
|
|
742
|
+
data = result.data;
|
|
743
|
+
m = data && data.length && data[0];
|
|
744
|
+
|
|
745
|
+
if (!(result && result.data.length)) {
|
|
746
|
+
_context3.next = 25;
|
|
747
|
+
break;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
if (!(result.data.length === 1)) {
|
|
751
|
+
_context3.next = 14;
|
|
752
|
+
break;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
if (!(m.CardTypeEnum === 'BALANCE_CARD')) {
|
|
756
|
+
_context3.next = 10;
|
|
757
|
+
break;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
_this7.paymode.updateCardInfo(m);
|
|
761
|
+
_this7.handleCzkData(m);
|
|
762
|
+
return _context3.abrupt('return', result.data);
|
|
763
|
+
|
|
764
|
+
case 10:
|
|
765
|
+
_context3.next = 12;
|
|
766
|
+
return (0, _tplusApi.ccApi)({ dto: _this7.dto, meStorageCardId: m.MeStorageCardId }, '/retail/RetailPos/validateRetailStorageCard', false, false).then(function (result1) {
|
|
767
|
+
var data1 = result1.data ? JSON.parse(result1.data)[0] : {};
|
|
768
|
+
if (data1.enable) {
|
|
769
|
+
_this7.paymode.updateCardInfo(m);
|
|
770
|
+
_this7.handleCzkData(m);
|
|
771
|
+
return result1.data;
|
|
772
|
+
} else {
|
|
773
|
+
_message2.default.warn(data1.disableReason);
|
|
774
|
+
}
|
|
775
|
+
});
|
|
776
|
+
|
|
777
|
+
case 12:
|
|
778
|
+
_context3.next = 25;
|
|
779
|
+
break;
|
|
780
|
+
|
|
781
|
+
case 14:
|
|
782
|
+
if (!(result.data && result.data.length === 1)) {
|
|
783
|
+
_context3.next = 19;
|
|
784
|
+
break;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
_this7.paymode.updateCardInfo(result.data[0]);
|
|
788
|
+
return _context3.abrupt('return', result.data);
|
|
789
|
+
|
|
790
|
+
case 19:
|
|
791
|
+
if (!(result.data && result.data.length > 1)) {
|
|
792
|
+
_context3.next = 23;
|
|
793
|
+
break;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
return _context3.abrupt('return', result.data);
|
|
797
|
+
|
|
798
|
+
case 23:
|
|
799
|
+
_message2.default.warn('没有可用储值卡!');
|
|
800
|
+
return _context3.abrupt('return', false);
|
|
801
|
+
|
|
802
|
+
case 25:
|
|
803
|
+
case 'end':
|
|
804
|
+
return _context3.stop();
|
|
805
|
+
}
|
|
678
806
|
}
|
|
679
|
-
});
|
|
680
|
-
}
|
|
681
|
-
|
|
807
|
+
}, _callee3, _this7);
|
|
808
|
+
}));
|
|
809
|
+
|
|
810
|
+
return function (_x2) {
|
|
811
|
+
return _ref8.apply(this, arguments);
|
|
812
|
+
};
|
|
813
|
+
}()
|
|
814
|
+
// result.data.forEach((m) => {
|
|
815
|
+
// if (m.CardTypeEnum === 'BALANCE_CARD') {
|
|
816
|
+
// // 会员概念改为卡,把这些字段都放开
|
|
817
|
+
// this.paymode.updateCardInfo(m);
|
|
818
|
+
// }
|
|
819
|
+
// })
|
|
820
|
+
);
|
|
682
821
|
} else {
|
|
683
822
|
address = 'AA.DR.newRetailMember.SearchMember';
|
|
684
823
|
return (0, _tplusApi.tApi)({ SearchParams: { Key: v, IsSingleMember: true, IdStore: IdStore, StoreCode: StoreCode } }, address, false, false).then(function (result) {
|
|
685
824
|
var data = JSON.parse(result.Data);
|
|
686
825
|
var m = data && data.length > 0 && data[0];
|
|
687
|
-
|
|
688
|
-
var _ref9 = _mutantsUtil.platform || {},
|
|
689
|
-
isNewRetailBCPos = _ref9.isNewRetailBCPos;
|
|
690
|
-
|
|
691
|
-
if (isNewRetailBCPos) {
|
|
692
|
-
_this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
|
|
693
|
-
_this7.paymode && _this7.paymode.currentMode.member.setStorageCardNo(m.StorageCardNo);
|
|
694
|
-
_this7.paymode && (_this7.paymode.currentMode.MeStorageCardId = m.MeStorageCardId);
|
|
695
|
-
_this7.paymode && (_this7.paymode.currentMode.StorageCardNo = m.StorageCardNo);
|
|
696
|
-
}
|
|
697
826
|
if (!m || !m.ID) {
|
|
698
827
|
(0, _mobx.runInAction)(function () {
|
|
699
828
|
_this7.paymode.currentMode.errinfo = "无效的会员卡号";
|
|
@@ -726,12 +855,13 @@ var SettlementStore = (_class = function () {
|
|
|
726
855
|
}
|
|
727
856
|
}, {
|
|
728
857
|
key: 'addDjq',
|
|
729
|
-
value: function addDjq(promoCouponCode, name, IsEnable, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id, unCheck, count) {
|
|
858
|
+
value: function addDjq(promoCouponCode, name, IsEnable, nominalAmount, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id, unCheck, count) {
|
|
730
859
|
var djq = {
|
|
731
860
|
code: promoCouponCode,
|
|
732
861
|
promoCouponCode: promoCouponCode,
|
|
733
862
|
name: name,
|
|
734
863
|
IsEnable: IsEnable,
|
|
864
|
+
nominalAmount: nominalAmount,
|
|
735
865
|
amount: amount,
|
|
736
866
|
doorsill: doorsill, //:"无门槛"
|
|
737
867
|
LastTS: LastTS,
|
|
@@ -755,8 +885,8 @@ var SettlementStore = (_class = function () {
|
|
|
755
885
|
}, {
|
|
756
886
|
key: 'setCurrentMode',
|
|
757
887
|
value: function setCurrentMode(id, type, append) {
|
|
758
|
-
var _enumController$
|
|
759
|
-
PayStyle = _enumController$
|
|
888
|
+
var _enumController$getEn7 = _mutantsUtil.enumController.getEnumOj(),
|
|
889
|
+
PayStyle = _enumController$getEn7.PayStyle;
|
|
760
890
|
|
|
761
891
|
var mode = (0, _find3.default)(this.paymode.thePaymodes, { paymethodId: id });
|
|
762
892
|
if (mode) {
|
|
@@ -774,8 +904,8 @@ var SettlementStore = (_class = function () {
|
|
|
774
904
|
value: function afterSetCurrentMode(type) {
|
|
775
905
|
var _this8 = this;
|
|
776
906
|
|
|
777
|
-
var _enumController$
|
|
778
|
-
PayStyle = _enumController$
|
|
907
|
+
var _enumController$getEn8 = _mutantsUtil.enumController.getEnumOj(),
|
|
908
|
+
PayStyle = _enumController$getEn8.PayStyle;
|
|
779
909
|
|
|
780
910
|
if (type == PayStyle.djq) {
|
|
781
911
|
this.paymode.calcDjqValue();
|
|
@@ -789,7 +919,7 @@ var SettlementStore = (_class = function () {
|
|
|
789
919
|
}
|
|
790
920
|
|
|
791
921
|
(0, _tplusApi.tApi)({ IntegralSteadCashParams: {
|
|
792
|
-
Idmember: this.paymode.currentMode.
|
|
922
|
+
Idmember: this.paymode.currentMode.memberId,
|
|
793
923
|
TotalTaxAmount: this.paymode.amount,
|
|
794
924
|
BalanceTaxAmount: this.paymode.amount
|
|
795
925
|
} }, 'AA.DR.newRetailMember.CalculdateIntegralSteadCash', false, false).then(function (result) {
|
|
@@ -810,23 +940,27 @@ var SettlementStore = (_class = function () {
|
|
|
810
940
|
}
|
|
811
941
|
}, {
|
|
812
942
|
key: 'genNewMode',
|
|
813
|
-
value: function genNewMode(type, notwithm, v) {
|
|
814
|
-
var _enumController$
|
|
815
|
-
PayStyle = _enumController$
|
|
943
|
+
value: function genNewMode(type, notwithm, v, isQuick) {
|
|
944
|
+
var _enumController$getEn9 = _mutantsUtil.enumController.getEnumOj(),
|
|
945
|
+
PayStyle = _enumController$getEn9.PayStyle;
|
|
816
946
|
|
|
817
947
|
var value = (0, _utils.getFixedNumber)(v || (this.brefund ? this.paymode.receivable : Math.max(this.paymode.receivable, 0)));
|
|
818
948
|
var themode = (0, _find3.default)(this.paymode.paymodes, { 'paymentType': type });
|
|
949
|
+
var memberId = this.member && this.member.ID ? this.member.ID : null;
|
|
819
950
|
var mode = (0, _mobx.observable)({
|
|
820
951
|
paymethodId: this.paymode.counter,
|
|
821
952
|
name: themode.name,
|
|
822
953
|
exchangeRate: themode.exchangeRate,
|
|
823
954
|
calDirection: themode.calDirection,
|
|
955
|
+
thridPayment: themode.thridPayment,
|
|
824
956
|
value: value,
|
|
825
957
|
value2: (0, _utils.getFixedNumber)(themode.calDirection == "88" ? value / themode.exchangeRate : value * themode.exchangeRate),
|
|
826
958
|
value3: value,
|
|
827
959
|
order: this.paymode.thePaymodes.length + 1,
|
|
828
960
|
paymentType: type,
|
|
829
961
|
djqs: [],
|
|
962
|
+
card: null,
|
|
963
|
+
memberId: !notwithm ? memberId : null,
|
|
830
964
|
member: new Member(!notwithm ? this.member : null),
|
|
831
965
|
authCode: '',
|
|
832
966
|
steadCashIntegral: null,
|
|
@@ -834,9 +968,9 @@ var SettlementStore = (_class = function () {
|
|
|
834
968
|
maxamount: this.paymode.amount
|
|
835
969
|
});
|
|
836
970
|
if (type == PayStyle.hyczk) {
|
|
837
|
-
if (!mode.
|
|
971
|
+
if (!mode.storageCardNo) {
|
|
838
972
|
(0, _mobx.runInAction)(function () {
|
|
839
|
-
mode.errinfo = '
|
|
973
|
+
mode.errinfo = '未录入手机号或储值卡号';
|
|
840
974
|
});
|
|
841
975
|
} else if (this.checkReceived(mode, "balance")) {
|
|
842
976
|
(0, _mobx.runInAction)(function () {
|
|
@@ -847,7 +981,7 @@ var SettlementStore = (_class = function () {
|
|
|
847
981
|
if (type == PayStyle.hyczk || type == PayStyle.jfdx || type == PayStyle.djq) {
|
|
848
982
|
this.setMaxAmount(type, mode);
|
|
849
983
|
}
|
|
850
|
-
console.log(mode);
|
|
984
|
+
console.log('\u5F53\u524D\u64CD\u4F5C\u7ED3\u7B97\u65B9\u5F0F\u4FE1\u606F:' + mode);
|
|
851
985
|
return mode;
|
|
852
986
|
}
|
|
853
987
|
}, {
|
|
@@ -855,8 +989,8 @@ var SettlementStore = (_class = function () {
|
|
|
855
989
|
value: function setMaxAmount(type, mode) {
|
|
856
990
|
var _this9 = this;
|
|
857
991
|
|
|
858
|
-
var _enumController$
|
|
859
|
-
PayStyle = _enumController$
|
|
992
|
+
var _enumController$getEn10 = _mutantsUtil.enumController.getEnumOj(),
|
|
993
|
+
PayStyle = _enumController$getEn10.PayStyle;
|
|
860
994
|
|
|
861
995
|
var sum = 0;
|
|
862
996
|
if (type == PayStyle.hyczk) {
|
|
@@ -884,15 +1018,6 @@ var SettlementStore = (_class = function () {
|
|
|
884
1018
|
key: 'changeFocusOnly',
|
|
885
1019
|
value: function changeFocusOnly(type) {
|
|
886
1020
|
this.paymode.currentFocus = type;
|
|
887
|
-
// 获取焦点时带入剩余的值
|
|
888
|
-
// let mode=_find(this.paymode.thePaymodes,{'paymentType':type});
|
|
889
|
-
// if(mode && this.isIntegralExchange){
|
|
890
|
-
// const shouldSetValue =getFixedNumber(parseFloat(this.paymode.receivable) + parseFloat(mode.value));
|
|
891
|
-
// mode.value = shouldSetValue;
|
|
892
|
-
// mode.value2 = getFixedNumber(mode.calDirection=="88"?shouldSetValue / mode.exchangeRate:(shouldSetValue * mode.exchangeRate));
|
|
893
|
-
// mode.value3 = shouldSetValue;
|
|
894
|
-
// this.paymode.calcReserved();
|
|
895
|
-
// }
|
|
896
1021
|
}
|
|
897
1022
|
}, {
|
|
898
1023
|
key: 'changeClickFocusOnly',
|
|
@@ -932,8 +1057,8 @@ var SettlementStore = (_class = function () {
|
|
|
932
1057
|
}, {
|
|
933
1058
|
key: 'addPayDirectly',
|
|
934
1059
|
value: function addPayDirectly(pay) {
|
|
935
|
-
var _enumController$
|
|
936
|
-
PayStyle = _enumController$
|
|
1060
|
+
var _enumController$getEn11 = _mutantsUtil.enumController.getEnumOj(),
|
|
1061
|
+
PayStyle = _enumController$getEn11.PayStyle;
|
|
937
1062
|
|
|
938
1063
|
if (!(0, _find3.default)(this.paymode.thePaymodes, { paymethodId: pay.paymethodId })) {
|
|
939
1064
|
var pos = this.paymode.thePaymodes.length;
|
|
@@ -950,9 +1075,9 @@ var SettlementStore = (_class = function () {
|
|
|
950
1075
|
}
|
|
951
1076
|
}, {
|
|
952
1077
|
key: 'addPay',
|
|
953
|
-
value: function addPay(type) {
|
|
954
|
-
var _enumController$
|
|
955
|
-
PayStyle = _enumController$
|
|
1078
|
+
value: function addPay(type, isQuick) {
|
|
1079
|
+
var _enumController$getEn12 = _mutantsUtil.enumController.getEnumOj(),
|
|
1080
|
+
PayStyle = _enumController$getEn12.PayStyle;
|
|
956
1081
|
|
|
957
1082
|
var pos = this.paymode.thePaymodes.length;
|
|
958
1083
|
if (type == PayStyle.hyczk) {
|
|
@@ -961,15 +1086,14 @@ var SettlementStore = (_class = function () {
|
|
|
961
1086
|
});
|
|
962
1087
|
pos = index == -1 ? pos : index + 1;
|
|
963
1088
|
}
|
|
964
|
-
|
|
965
|
-
this.paymode.thePaymodes.splice(pos, 0, this.genNewMode(type, this.newStyle && type == PayStyle.hyczk));
|
|
1089
|
+
this.paymode.thePaymodes.splice(pos, 0, this.genNewMode(type, this.newStyle && type == PayStyle.hyczk, undefined, isQuick));
|
|
966
1090
|
this.paymode.calcReserved();
|
|
967
1091
|
}
|
|
968
1092
|
}, {
|
|
969
1093
|
key: 'delPay',
|
|
970
1094
|
value: function delPay(index) {
|
|
971
|
-
var _enumController$
|
|
972
|
-
PayStyle = _enumController$
|
|
1095
|
+
var _enumController$getEn13 = _mutantsUtil.enumController.getEnumOj(),
|
|
1096
|
+
PayStyle = _enumController$getEn13.PayStyle;
|
|
973
1097
|
|
|
974
1098
|
(0, _remove3.default)(this.paymode.thePaymodes, function (mode) {
|
|
975
1099
|
return mode.paymethodId === index;
|
|
@@ -977,83 +1101,179 @@ var SettlementStore = (_class = function () {
|
|
|
977
1101
|
this.paymode.currentFocus = -1;
|
|
978
1102
|
this.paymode.calcReserved();
|
|
979
1103
|
}
|
|
1104
|
+
|
|
1105
|
+
// 获取储值是否重复, 在commit方法中使用
|
|
1106
|
+
|
|
1107
|
+
}, {
|
|
1108
|
+
key: 'findStorageBillValidate',
|
|
1109
|
+
value: function findStorageBillValidate() {
|
|
1110
|
+
var _this10 = this;
|
|
1111
|
+
|
|
1112
|
+
var _enumController$getEn14 = _mutantsUtil.enumController.getEnumOj(),
|
|
1113
|
+
PayStyle = _enumController$getEn14.PayStyle;
|
|
1114
|
+
|
|
1115
|
+
(0, _mobx.runInAction)(function () {
|
|
1116
|
+
_this10.dto.StorageMutiSettleDetails = [];
|
|
1117
|
+
var thePaymodes = _this10.newStyle ? (0, _filter3.default)(_this10.paymode.thePaymodes, function (mode) {
|
|
1118
|
+
return parseFloat(mode.value) != 0;
|
|
1119
|
+
}) : _this10.paymode.thePaymodes;
|
|
1120
|
+
(0, _each3.default)(thePaymodes, function (mode) {
|
|
1121
|
+
var themode = (0, _find3.default)(_this10.paymode.paymodes, { 'paymentType': mode.paymentType });
|
|
1122
|
+
|
|
1123
|
+
var value = parseFloat(mode.value);
|
|
1124
|
+
var giveChange = null;
|
|
1125
|
+
if (mode.paymentType == PayStyle.xianjin && _this10.paymode.receivable < 0 && value > Math.abs(_this10.paymode.receivable)) {
|
|
1126
|
+
value = Math.Add(value, _this10.paymode.receivable);
|
|
1127
|
+
giveChange = Math.abs(_this10.paymode.receivable);
|
|
1128
|
+
}
|
|
1129
|
+
_this10.dto.StorageMutiSettleDetails.push({
|
|
1130
|
+
Code: mode.paymethodId,
|
|
1131
|
+
StorageAmount: value,
|
|
1132
|
+
GiveChange: giveChange,
|
|
1133
|
+
IdsettleStyle: themode.idSettleStyle,
|
|
1134
|
+
IdbankAccount: themode.idBankAccount,
|
|
1135
|
+
PaymentCode: mode.authCode,
|
|
1136
|
+
DynamicPropertyKeys: [],
|
|
1137
|
+
DynamicPropertyValues: [],
|
|
1138
|
+
DataSource: { Id: _this10.dataSource }
|
|
1139
|
+
});
|
|
1140
|
+
});
|
|
1141
|
+
});
|
|
1142
|
+
return (0, _tplusApi.ccApi)((0, _extends3.default)({}, this.dto), '/marketingtool/Storage/findStorageBillValidate', false, false);
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
//判断是否重复弹框
|
|
1146
|
+
|
|
980
1147
|
}, {
|
|
981
1148
|
key: 'commit',
|
|
982
1149
|
value: function () {
|
|
983
|
-
var
|
|
984
|
-
var
|
|
1150
|
+
var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4(bTest) {
|
|
1151
|
+
var status, paylist, ret, _ref10, _ref10$data, code, returnMsg, state, ret1, ret2;
|
|
985
1152
|
|
|
986
|
-
return _regenerator2.default.wrap(function
|
|
1153
|
+
return _regenerator2.default.wrap(function _callee4$(_context4) {
|
|
987
1154
|
while (1) {
|
|
988
|
-
switch (
|
|
1155
|
+
switch (_context4.prev = _context4.next) {
|
|
989
1156
|
case 0:
|
|
990
1157
|
console.log('settlementStore.commit开始,参数:' + bTest);
|
|
991
1158
|
|
|
992
1159
|
if (!bTest) {
|
|
993
|
-
|
|
1160
|
+
_context4.next = 3;
|
|
994
1161
|
break;
|
|
995
1162
|
}
|
|
996
1163
|
|
|
997
|
-
return
|
|
1164
|
+
return _context4.abrupt('return', _promise2.default.resolve(true));
|
|
998
1165
|
|
|
999
1166
|
case 3:
|
|
1000
|
-
|
|
1001
|
-
|
|
1167
|
+
status = this.type;
|
|
1168
|
+
_context4.prev = 4;
|
|
1169
|
+
paylist = this.paymode.thePaymodes.filter(function (v) {
|
|
1170
|
+
return !!v.thridPayment && Math.abs(v.value) > 0;
|
|
1171
|
+
}) || [];
|
|
1172
|
+
|
|
1173
|
+
if (!(paylist && paylist.length > 1)) {
|
|
1174
|
+
_context4.next = 9;
|
|
1175
|
+
break;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
_message2.default.warn('二开支付目前仅支持单一结算方式。');
|
|
1179
|
+
return _context4.abrupt('return', _promise2.default.resolve(false));
|
|
1002
1180
|
|
|
1003
|
-
|
|
1004
|
-
|
|
1181
|
+
case 9:
|
|
1182
|
+
if (!(status == 1)) {
|
|
1183
|
+
_context4.next = 30;
|
|
1005
1184
|
break;
|
|
1006
1185
|
}
|
|
1007
1186
|
|
|
1008
|
-
|
|
1009
|
-
return this.
|
|
1187
|
+
_context4.next = 12;
|
|
1188
|
+
return this.findStorageBillValidate();
|
|
1010
1189
|
|
|
1011
|
-
case
|
|
1012
|
-
|
|
1013
|
-
|
|
1190
|
+
case 12:
|
|
1191
|
+
ret = _context4.sent;
|
|
1192
|
+
_ref10 = ret || {}, _ref10$data = _ref10.data;
|
|
1193
|
+
_ref10$data = _ref10$data === undefined ? {} : _ref10$data;
|
|
1194
|
+
code = _ref10$data.code, returnMsg = _ref10$data.returnMsg;
|
|
1014
1195
|
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
_context2.next = 13;
|
|
1196
|
+
if (!(code && code == 10001)) {
|
|
1197
|
+
_context4.next = 24;
|
|
1018
1198
|
break;
|
|
1019
1199
|
}
|
|
1020
1200
|
|
|
1021
|
-
|
|
1201
|
+
_context4.next = 19;
|
|
1202
|
+
return this.repeatStorageModal(returnMsg);
|
|
1203
|
+
|
|
1204
|
+
case 19:
|
|
1205
|
+
state = _context4.sent;
|
|
1206
|
+
|
|
1207
|
+
if (!(state === false)) {
|
|
1208
|
+
_context4.next = 22;
|
|
1209
|
+
break;
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
return _context4.abrupt('return', _promise2.default.resolve(false));
|
|
1213
|
+
|
|
1214
|
+
case 22:
|
|
1215
|
+
_context4.next = 28;
|
|
1216
|
+
break;
|
|
1217
|
+
|
|
1218
|
+
case 24:
|
|
1219
|
+
_context4.next = 26;
|
|
1220
|
+
return this.saveMember();
|
|
1221
|
+
|
|
1222
|
+
case 26:
|
|
1223
|
+
ret1 = _context4.sent;
|
|
1224
|
+
|
|
1225
|
+
if (ret1 === false) {
|
|
1226
|
+
_promise2.default.resolve(false);
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
case 28:
|
|
1230
|
+
_context4.next = 39;
|
|
1231
|
+
break;
|
|
1232
|
+
|
|
1233
|
+
case 30:
|
|
1234
|
+
_context4.next = 32;
|
|
1022
1235
|
return _mutantsMicrofx.stores.offlineSys.generatorCode(this.dto);
|
|
1023
1236
|
|
|
1024
|
-
case
|
|
1025
|
-
|
|
1237
|
+
case 32:
|
|
1238
|
+
_context4.next = 34;
|
|
1026
1239
|
return this.save();
|
|
1027
1240
|
|
|
1028
|
-
case
|
|
1029
|
-
|
|
1030
|
-
|
|
1241
|
+
case 34:
|
|
1242
|
+
ret2 = _context4.sent;
|
|
1243
|
+
|
|
1244
|
+
if (!(ret2 === false)) {
|
|
1245
|
+
_context4.next = 37;
|
|
1031
1246
|
break;
|
|
1032
1247
|
}
|
|
1033
1248
|
|
|
1034
|
-
|
|
1249
|
+
return _context4.abrupt('return', _promise2.default.resolve(false));
|
|
1250
|
+
|
|
1251
|
+
case 37:
|
|
1252
|
+
_context4.next = 39;
|
|
1035
1253
|
return _mutantsMicrofx.stores.offlineSys.retailSequenceUpload();
|
|
1036
1254
|
|
|
1037
|
-
case
|
|
1038
|
-
return
|
|
1255
|
+
case 39:
|
|
1256
|
+
return _context4.abrupt('return', _promise2.default.resolve(true));
|
|
1039
1257
|
|
|
1040
|
-
case
|
|
1041
|
-
|
|
1042
|
-
|
|
1258
|
+
case 42:
|
|
1259
|
+
_context4.prev = 42;
|
|
1260
|
+
_context4.t0 = _context4['catch'](4);
|
|
1043
1261
|
|
|
1044
|
-
console.error('settlementStore.commit失败,错误信息:' +
|
|
1045
|
-
|
|
1262
|
+
console.error('settlementStore.commit失败,错误信息:' + _context4.t0);
|
|
1263
|
+
//其他支付失败时,处理二开支付情况。
|
|
1264
|
+
this.thirdPayRefund(status == 1 ? 2 : 1);
|
|
1265
|
+
return _context4.abrupt('return', _promise2.default.resolve(_context4.t0));
|
|
1046
1266
|
|
|
1047
|
-
case
|
|
1267
|
+
case 47:
|
|
1048
1268
|
case 'end':
|
|
1049
|
-
return
|
|
1269
|
+
return _context4.stop();
|
|
1050
1270
|
}
|
|
1051
1271
|
}
|
|
1052
|
-
},
|
|
1272
|
+
}, _callee4, this, [[4, 42]]);
|
|
1053
1273
|
}));
|
|
1054
1274
|
|
|
1055
|
-
function commit(
|
|
1056
|
-
return
|
|
1275
|
+
function commit(_x3) {
|
|
1276
|
+
return _ref9.apply(this, arguments);
|
|
1057
1277
|
}
|
|
1058
1278
|
|
|
1059
1279
|
return commit;
|
|
@@ -1066,100 +1286,155 @@ var SettlementStore = (_class = function () {
|
|
|
1066
1286
|
}
|
|
1067
1287
|
}, {
|
|
1068
1288
|
key: 'saveMember',
|
|
1069
|
-
value: function
|
|
1070
|
-
var
|
|
1289
|
+
value: function () {
|
|
1290
|
+
var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
|
|
1291
|
+
var _this11 = this;
|
|
1071
1292
|
|
|
1072
|
-
|
|
1073
|
-
PayStyle = _enumController$getEn13.PayStyle;
|
|
1293
|
+
var _enumController$getEn15, PayStyle, TradeType, IPMSG, dtoParams, payList, payment, tradeType, ret, _ref12, type, data, msg, code;
|
|
1074
1294
|
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
(0, _each3.default)(thePaymodes, function (mode) {
|
|
1081
|
-
var themode = (0, _find3.default)(_this10.paymode.paymodes, { 'paymentType': mode.paymentType });
|
|
1295
|
+
return _regenerator2.default.wrap(function _callee5$(_context5) {
|
|
1296
|
+
while (1) {
|
|
1297
|
+
switch (_context5.prev = _context5.next) {
|
|
1298
|
+
case 0:
|
|
1299
|
+
_enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn15.PayStyle, TradeType = _enumController$getEn15.TradeType;
|
|
1082
1300
|
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1301
|
+
(0, _mobx.runInAction)(function () {
|
|
1302
|
+
_this11.dto.StorageMutiSettleDetails = [];
|
|
1303
|
+
var thePaymodes = _this11.newStyle ? (0, _filter3.default)(_this11.paymode.thePaymodes, function (mode) {
|
|
1304
|
+
return parseFloat(mode.value) != 0;
|
|
1305
|
+
}) : _this11.paymode.thePaymodes;
|
|
1306
|
+
(0, _each3.default)(thePaymodes, function (mode) {
|
|
1307
|
+
var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': mode.paymentType });
|
|
1308
|
+
|
|
1309
|
+
var value = parseFloat(mode.value);
|
|
1310
|
+
var giveChange = null;
|
|
1311
|
+
if (mode.paymentType == PayStyle.xianjin && _this11.paymode.receivable < 0 && value > Math.abs(_this11.paymode.receivable)) {
|
|
1312
|
+
value = Math.Add(value, _this11.paymode.receivable);
|
|
1313
|
+
giveChange = Math.abs(_this11.paymode.receivable);
|
|
1314
|
+
}
|
|
1315
|
+
_this11.dto.StorageMutiSettleDetails.push({
|
|
1316
|
+
Code: mode.paymethodId,
|
|
1317
|
+
StorageAmount: value,
|
|
1318
|
+
GiveChange: giveChange,
|
|
1319
|
+
IdsettleStyle: themode.idSettleStyle,
|
|
1320
|
+
IdbankAccount: themode.idBankAccount,
|
|
1321
|
+
PaymentCode: mode.authCode,
|
|
1322
|
+
DynamicPropertyKeys: [],
|
|
1323
|
+
DynamicPropertyValues: [],
|
|
1324
|
+
DataSource: { Id: _this11.dataSource },
|
|
1325
|
+
ThirdPaymentInfo: themode.thridPayment || null,
|
|
1326
|
+
ThirdPaymentReturnInfo: mode.thirdPaymentReturnInfo || null
|
|
1327
|
+
});
|
|
1328
|
+
});
|
|
1329
|
+
});
|
|
1330
|
+
// cc结算调用
|
|
1331
|
+
IPMSG = {};
|
|
1332
|
+
|
|
1333
|
+
if (!!window.localStorage.IPMSG) {
|
|
1334
|
+
IPMSG = JSON.parse(window.localStorage.IPMSG);
|
|
1335
|
+
}
|
|
1336
|
+
dtoParams = this.dto;
|
|
1337
|
+
//处理存在二开支付情况
|
|
1338
|
+
|
|
1339
|
+
payList = dtoParams.StorageMutiSettleDetails.filter(function (v) {
|
|
1340
|
+
return v.ThirdPaymentInfo;
|
|
1341
|
+
});
|
|
1342
|
+
|
|
1343
|
+
if (!(payList && payList.length > 0)) {
|
|
1344
|
+
_context5.next = 19;
|
|
1345
|
+
break;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
payment = payList[0];
|
|
1349
|
+
tradeType = payment && payment.StorageAmount > 0 ? TradeType.PAY : TradeType.REFUND;
|
|
1350
|
+
_context5.next = 11;
|
|
1351
|
+
return this.thirdPay(2, payment, tradeType, dtoParams);
|
|
1352
|
+
|
|
1353
|
+
case 11:
|
|
1354
|
+
ret = _context5.sent;
|
|
1355
|
+
_ref12 = ret || {}, type = _ref12.type, data = _ref12.data, msg = _ref12.msg, code = _ref12.code;
|
|
1356
|
+
|
|
1357
|
+
if (!(type === true)) {
|
|
1358
|
+
_context5.next = 17;
|
|
1359
|
+
break;
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
dtoParams = data;
|
|
1363
|
+
_context5.next = 19;
|
|
1364
|
+
break;
|
|
1365
|
+
|
|
1366
|
+
case 17:
|
|
1367
|
+
_message2.default.warn('\u5237\u5361\u652F\u4ED8\u5931\u8D25,\u9519\u8BEF\u7801:' + code);
|
|
1368
|
+
return _context5.abrupt('return', false);
|
|
1369
|
+
|
|
1370
|
+
case 19:
|
|
1371
|
+
this.dtoParams = dtoParams;
|
|
1372
|
+
console.log('储值结算信息:', dtoParams);
|
|
1373
|
+
return _context5.abrupt('return', (0, _tplusApi.tApi)({ dto: dtoParams }, 'chanjet.ME.INewRetailMemberStorage.Save', false, false).then(function (resp) {
|
|
1374
|
+
_this11.handlePrint(resp);
|
|
1375
|
+
}));
|
|
1376
|
+
|
|
1377
|
+
case 22:
|
|
1378
|
+
case 'end':
|
|
1379
|
+
return _context5.stop();
|
|
1380
|
+
}
|
|
1088
1381
|
}
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
IdbankAccount: themode.idBankAccount,
|
|
1095
|
-
PaymentCode: mode.authCode,
|
|
1096
|
-
DynamicPropertyKeys: [],
|
|
1097
|
-
DynamicPropertyValues: [],
|
|
1098
|
-
DataSource: { Id: _this10.dataSource }
|
|
1099
|
-
});
|
|
1100
|
-
});
|
|
1101
|
-
});
|
|
1102
|
-
// cc结算调用
|
|
1103
|
-
var IPMSG = {};
|
|
1104
|
-
if (!!window.localStorage.IPMSG) {
|
|
1105
|
-
IPMSG = JSON.parse(window.localStorage.IPMSG);
|
|
1382
|
+
}, _callee5, this);
|
|
1383
|
+
}));
|
|
1384
|
+
|
|
1385
|
+
function saveMember() {
|
|
1386
|
+
return _ref11.apply(this, arguments);
|
|
1106
1387
|
}
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
}
|
|
1388
|
+
|
|
1389
|
+
return saveMember;
|
|
1390
|
+
}()
|
|
1111
1391
|
}, {
|
|
1112
1392
|
key: 'save',
|
|
1113
1393
|
value: function () {
|
|
1114
|
-
var
|
|
1115
|
-
var
|
|
1394
|
+
var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6() {
|
|
1395
|
+
var _this12 = this;
|
|
1116
1396
|
|
|
1117
|
-
var _enumController$
|
|
1397
|
+
var _enumController$getEn16, PayStyle, TradeType, IPMSG, RetailTypeEnum, dtoParams, payList, payment, tradeType, ret, _ref14, type, data, msg, code;
|
|
1118
1398
|
|
|
1119
|
-
return _regenerator2.default.wrap(function
|
|
1399
|
+
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
|
1120
1400
|
while (1) {
|
|
1121
|
-
switch (
|
|
1401
|
+
switch (_context6.prev = _context6.next) {
|
|
1122
1402
|
case 0:
|
|
1123
|
-
_enumController$
|
|
1403
|
+
_enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn16.PayStyle, TradeType = _enumController$getEn16.TradeType;
|
|
1124
1404
|
|
|
1125
1405
|
(0, _mobx.runInAction)(function () {
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1406
|
+
_this12.dto.RetailPaymentDetails = [];
|
|
1407
|
+
_this12.dto.RetailStorageDetails = [];
|
|
1408
|
+
_this12.dto.RetailCouponDetails = [];
|
|
1129
1409
|
var czkSum = 0;
|
|
1130
|
-
var Idmember = _this11.dto.Idmember;
|
|
1131
1410
|
var count = 0;
|
|
1132
|
-
var thePaymodes =
|
|
1411
|
+
var thePaymodes = _this12.newStyle ? (0, _filter3.default)(_this12.paymode.thePaymodes, function (mode) {
|
|
1133
1412
|
return parseFloat(mode.value) != 0;
|
|
1134
|
-
}) :
|
|
1413
|
+
}) : _this12.paymode.thePaymodes;
|
|
1135
1414
|
(0, _each3.default)(thePaymodes, function (mode, index) {
|
|
1136
|
-
var themode = (0, _find3.default)(
|
|
1415
|
+
var themode = (0, _find3.default)(_this12.paymode.paymodes, { 'paymentType': mode.paymentType });
|
|
1137
1416
|
if (mode.paymentType == PayStyle.hyczk) {
|
|
1138
|
-
if (!Idmember) {
|
|
1139
|
-
Idmember = mode.member.id;
|
|
1140
|
-
}
|
|
1141
1417
|
czkSum = Math.Add(czkSum, mode.value);
|
|
1142
|
-
|
|
1143
|
-
_this11.dto.RetailStorageDetails.push({
|
|
1418
|
+
_this12.dto.RetailStorageDetails.push({
|
|
1144
1419
|
Code: mode.paymethodId,
|
|
1145
|
-
MeStorageCardId:
|
|
1420
|
+
MeStorageCardId: mode.meStorageCardId,
|
|
1146
1421
|
StoragePaymentAmount: mode.value,
|
|
1147
1422
|
IsOrigReturn: false,
|
|
1148
1423
|
BalanceStorage: mode.balance,
|
|
1149
|
-
Idmember: mode.
|
|
1424
|
+
Idmember: mode.memberId,
|
|
1150
1425
|
DynamicPropertyKeys: [],
|
|
1151
1426
|
DynamicPropertyValues: [],
|
|
1152
|
-
DataSource: { Id:
|
|
1427
|
+
DataSource: { Id: _this12.dataSource },
|
|
1153
1428
|
Password: mode.authCode
|
|
1154
1429
|
});
|
|
1155
1430
|
} else {
|
|
1156
1431
|
var value = parseFloat(mode.value);
|
|
1157
1432
|
var giveChange = null;
|
|
1158
|
-
if (mode.paymentType == PayStyle.xianjin &&
|
|
1159
|
-
value = Math.Add(value,
|
|
1160
|
-
giveChange = Math.abs(
|
|
1433
|
+
if (mode.paymentType == PayStyle.xianjin && _this12.paymode.receivable < 0 && value > Math.abs(_this12.paymode.receivable)) {
|
|
1434
|
+
value = Math.Add(value, _this12.paymode.receivable);
|
|
1435
|
+
giveChange = Math.abs(_this12.paymode.receivable);
|
|
1161
1436
|
}
|
|
1162
|
-
|
|
1437
|
+
_this12.dto.RetailPaymentDetails.push({
|
|
1163
1438
|
Code: mode.paymethodId,
|
|
1164
1439
|
OrigAmount: mode.exchangeRate != 1 ? mode.value2 : value,
|
|
1165
1440
|
Amount: value,
|
|
@@ -1173,71 +1448,44 @@ var SettlementStore = (_class = function () {
|
|
|
1173
1448
|
OverchargesAmount: mode.overchargesAmount,
|
|
1174
1449
|
DynamicPropertyKeys: [],
|
|
1175
1450
|
DynamicPropertyValues: [],
|
|
1176
|
-
DataSource: { Id:
|
|
1451
|
+
DataSource: { Id: _this12.dataSource },
|
|
1452
|
+
ThirdPaymentInfo: themode.thridPayment || null,
|
|
1453
|
+
ThirdPaymentReturnInfo: mode.thirdPaymentReturnInfo || null
|
|
1177
1454
|
});
|
|
1178
1455
|
if (mode.paymentType == PayStyle.djq) {
|
|
1179
|
-
(0, _each3.default)(
|
|
1180
|
-
|
|
1456
|
+
(0, _each3.default)(_this12.paymode.checkList && _this12.paymode.checkList.length ? _this12.paymode.checkList : mode.djqs, function (djq) {
|
|
1457
|
+
_this12.dto.RetailCouponDetails.push({
|
|
1181
1458
|
CouponCode: djq.promoCouponCode,
|
|
1182
1459
|
ReductionAmount: djq.amount,
|
|
1183
1460
|
EnableAmount: djq.doorsill,
|
|
1184
1461
|
CouponTitle: djq.name,
|
|
1185
|
-
IdMember: djq.UMemberID ? mode.
|
|
1462
|
+
IdMember: djq.UMemberID ? mode.memberId : null,
|
|
1186
1463
|
LastTS: djq.LastTS,
|
|
1187
1464
|
PromotionId: djq.promoId,
|
|
1188
1465
|
PromotionRuleId: djq.promoRuleId,
|
|
1189
1466
|
PromoCouponAllocatedId: djq.id,
|
|
1190
|
-
DataSource: { Id:
|
|
1467
|
+
DataSource: { Id: _this12.dataSource }
|
|
1191
1468
|
});
|
|
1192
1469
|
});
|
|
1193
1470
|
}
|
|
1194
1471
|
}
|
|
1195
1472
|
});
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
Amount: czkSum,
|
|
1210
|
-
IdsettleStyle: themode.idSettleStyle,
|
|
1211
|
-
IdbankAccount: themode.idBankAccount,
|
|
1212
|
-
DynamicPropertyKeys: [],
|
|
1213
|
-
DynamicPropertyValues: [],
|
|
1214
|
-
DataSource: { Id: _this11.dataSource },
|
|
1215
|
-
RetailStorageDetails: _this11.dto.RetailStorageDetails
|
|
1216
|
-
});
|
|
1217
|
-
} else {
|
|
1218
|
-
_this11.dto.RetailPaymentDetails.push({
|
|
1219
|
-
Code: _this11.paymode.counter,
|
|
1220
|
-
OrigAmount: czkSum,
|
|
1221
|
-
Amount: czkSum,
|
|
1222
|
-
IdsettleStyle: themode.idSettleStyle,
|
|
1223
|
-
IdbankAccount: themode.idBankAccount,
|
|
1224
|
-
DynamicPropertyKeys: [],
|
|
1225
|
-
DynamicPropertyValues: [],
|
|
1226
|
-
DataSource: { Id: _this11.dataSource }
|
|
1227
|
-
});
|
|
1228
|
-
}
|
|
1229
|
-
_this11.dto.Idmember = Idmember;
|
|
1473
|
+
if (_this12.dto.RetailStorageDetails.length > 0) {
|
|
1474
|
+
var themode = (0, _find3.default)(_this12.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
|
|
1475
|
+
_this12.dto.RetailPaymentDetails.push({
|
|
1476
|
+
Code: _this12.paymode.counter,
|
|
1477
|
+
OrigAmount: czkSum,
|
|
1478
|
+
Amount: czkSum,
|
|
1479
|
+
IdsettleStyle: themode.idSettleStyle,
|
|
1480
|
+
IdbankAccount: themode.idBankAccount,
|
|
1481
|
+
DynamicPropertyKeys: [],
|
|
1482
|
+
DynamicPropertyValues: [],
|
|
1483
|
+
DataSource: { Id: _this12.dataSource },
|
|
1484
|
+
RetailStorageDetails: _this12.dto.RetailStorageDetails
|
|
1485
|
+
});
|
|
1230
1486
|
}
|
|
1231
1487
|
});
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
|
|
1235
|
-
|
|
1236
|
-
if (!isNewRetailBCPos) {
|
|
1237
|
-
_context3.next = 20;
|
|
1238
|
-
break;
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1488
|
+
console.log('\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
|
|
1241
1489
|
// cc结算调用
|
|
1242
1490
|
IPMSG = {};
|
|
1243
1491
|
|
|
@@ -1245,65 +1493,271 @@ var SettlementStore = (_class = function () {
|
|
|
1245
1493
|
IPMSG = JSON.parse(window.localStorage.IPMSG);
|
|
1246
1494
|
}
|
|
1247
1495
|
RetailTypeEnum = this.dto.IdbusiType == 36 ? "INTEGRAL_EXCHANGE" : "NORMAL";
|
|
1248
|
-
|
|
1496
|
+
_context6.t1 = this.dto.IdbusiType == 37;
|
|
1249
1497
|
|
|
1250
|
-
if (!
|
|
1251
|
-
|
|
1498
|
+
if (!_context6.t1) {
|
|
1499
|
+
_context6.next = 11;
|
|
1252
1500
|
break;
|
|
1253
1501
|
}
|
|
1254
1502
|
|
|
1255
|
-
|
|
1503
|
+
_context6.next = 10;
|
|
1256
1504
|
return this.checkIntegralExchangeReturn(this.dto.RetailDetails[0].ReturnSourceId);
|
|
1257
1505
|
|
|
1258
|
-
case
|
|
1259
|
-
|
|
1506
|
+
case 10:
|
|
1507
|
+
_context6.t1 = _context6.sent;
|
|
1260
1508
|
|
|
1261
|
-
case
|
|
1262
|
-
|
|
1509
|
+
case 11:
|
|
1510
|
+
_context6.t0 = _context6.t1;
|
|
1263
1511
|
|
|
1264
|
-
if (
|
|
1265
|
-
|
|
1512
|
+
if (_context6.t0) {
|
|
1513
|
+
_context6.next = 14;
|
|
1266
1514
|
break;
|
|
1267
1515
|
}
|
|
1268
1516
|
|
|
1269
|
-
|
|
1517
|
+
_context6.t0 = this.dto.IdbusiType != 37;
|
|
1270
1518
|
|
|
1271
|
-
case
|
|
1272
|
-
if (!
|
|
1273
|
-
|
|
1519
|
+
case 14:
|
|
1520
|
+
if (!_context6.t0) {
|
|
1521
|
+
_context6.next = 33;
|
|
1274
1522
|
break;
|
|
1275
1523
|
}
|
|
1276
1524
|
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
_this11.paymode.checkList = [];
|
|
1280
|
-
_this11.billID = resp.ID;
|
|
1281
|
-
}));
|
|
1525
|
+
dtoParams = (0, _extends3.default)({}, this.dto.cut(), { RetailOms: { RetailTypeEnum: RetailTypeEnum } });
|
|
1526
|
+
//处理存在二开支付情况
|
|
1282
1527
|
|
|
1283
|
-
|
|
1284
|
-
|
|
1528
|
+
payList = dtoParams.RetailPaymentDetails.filter(function (v) {
|
|
1529
|
+
return v.ThirdPaymentInfo;
|
|
1530
|
+
});
|
|
1531
|
+
|
|
1532
|
+
if (!(payList && payList.length > 0)) {
|
|
1533
|
+
_context6.next = 30;
|
|
1534
|
+
break;
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
payment = payList[0];
|
|
1538
|
+
tradeType = payment && payment.Amount > 0 ? TradeType.PAY : TradeType.REFUND;
|
|
1539
|
+
_context6.next = 22;
|
|
1540
|
+
return this.thirdPay(1, payment, tradeType, dtoParams);
|
|
1541
|
+
|
|
1542
|
+
case 22:
|
|
1543
|
+
ret = _context6.sent;
|
|
1544
|
+
_ref14 = ret || {}, type = _ref14.type, data = _ref14.data, msg = _ref14.msg, code = _ref14.code;
|
|
1545
|
+
|
|
1546
|
+
if (!(type === true)) {
|
|
1547
|
+
_context6.next = 28;
|
|
1548
|
+
break;
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
dtoParams = data;
|
|
1552
|
+
_context6.next = 30;
|
|
1285
1553
|
break;
|
|
1286
1554
|
|
|
1287
|
-
case
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1555
|
+
case 28:
|
|
1556
|
+
_message2.default.warn('\u5237\u5361\u652F\u4ED8\u5931\u8D25,\u9519\u8BEF\u7801:' + code);
|
|
1557
|
+
return _context6.abrupt('return', false);
|
|
1558
|
+
|
|
1559
|
+
case 30:
|
|
1560
|
+
this.dtoParams = dtoParams;
|
|
1561
|
+
console.log('结算信息:', dtoParams);
|
|
1562
|
+
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) {
|
|
1563
|
+
var _ref15 = resp || {},
|
|
1564
|
+
ID = _ref15.ID;
|
|
1565
|
+
|
|
1566
|
+
_this12.setDtoID(ID);
|
|
1567
|
+
_this12.billID = ID;
|
|
1568
|
+
_this12.paymode.checkList = [];
|
|
1291
1569
|
}));
|
|
1292
1570
|
|
|
1293
|
-
case
|
|
1571
|
+
case 33:
|
|
1294
1572
|
case 'end':
|
|
1295
|
-
return
|
|
1573
|
+
return _context6.stop();
|
|
1296
1574
|
}
|
|
1297
1575
|
}
|
|
1298
|
-
},
|
|
1576
|
+
}, _callee6, this);
|
|
1299
1577
|
}));
|
|
1300
1578
|
|
|
1301
1579
|
function save() {
|
|
1302
|
-
return
|
|
1580
|
+
return _ref13.apply(this, arguments);
|
|
1303
1581
|
}
|
|
1304
1582
|
|
|
1305
1583
|
return save;
|
|
1306
1584
|
}()
|
|
1585
|
+
|
|
1586
|
+
//裁剪二开支付数据
|
|
1587
|
+
|
|
1588
|
+
}, {
|
|
1589
|
+
key: 'removeThirdPayDto',
|
|
1590
|
+
value: function removeThirdPayDto(dto) {
|
|
1591
|
+
var data = (0, _extends3.default)({}, dto);
|
|
1592
|
+
delete data['DynamicPropertyKeys'];
|
|
1593
|
+
delete data['DynamicPropertyValues'];
|
|
1594
|
+
return data;
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
/**
|
|
1598
|
+
* 二开支付
|
|
1599
|
+
* vType:1零售单、2储值单
|
|
1600
|
+
* payment:结算方式
|
|
1601
|
+
* trade:00表示结算、02表示退款
|
|
1602
|
+
* dto:结算数据集合
|
|
1603
|
+
*/
|
|
1604
|
+
|
|
1605
|
+
}, {
|
|
1606
|
+
key: 'thirdPay',
|
|
1607
|
+
value: function () {
|
|
1608
|
+
var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(vType, payment, trade, dto) {
|
|
1609
|
+
var cto, params, ret, _ref17, Code, _Message, Result, _ref18, ThirdPaymentReturnInfo;
|
|
1610
|
+
|
|
1611
|
+
return _regenerator2.default.wrap(function _callee7$(_context7) {
|
|
1612
|
+
while (1) {
|
|
1613
|
+
switch (_context7.prev = _context7.next) {
|
|
1614
|
+
case 0:
|
|
1615
|
+
_context7.prev = 0;
|
|
1616
|
+
cto = this.removeThirdPayDto(dto);
|
|
1617
|
+
params = { VoucherType: vType, Payment: payment, TradeType: trade, dto: cto };
|
|
1618
|
+
|
|
1619
|
+
console.log('刷卡信息:', (0, _stringify2.default)(params));
|
|
1620
|
+
_context7.next = 6;
|
|
1621
|
+
return new _promise2.default(function (resolve, reject) {
|
|
1622
|
+
_mutantsMicrofx.nativeMs.setIpcRendererMethod('ThirdPayment', (0, _extends3.default)({}, params), function (res) {
|
|
1623
|
+
return resolve(res);
|
|
1624
|
+
});
|
|
1625
|
+
});
|
|
1626
|
+
|
|
1627
|
+
case 6:
|
|
1628
|
+
ret = _context7.sent;
|
|
1629
|
+
|
|
1630
|
+
console.log('刷卡返回信息:', ret);
|
|
1631
|
+
ret = JSON.parse(ret);
|
|
1632
|
+
_ref17 = ret || {}, Code = _ref17.Code, _Message = _ref17.Message, Result = _ref17.Result;
|
|
1633
|
+
|
|
1634
|
+
if (!(Code > 0)) {
|
|
1635
|
+
_context7.next = 14;
|
|
1636
|
+
break;
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
return _context7.abrupt('return', { type: false, data: null, msg: _Message, code: Code });
|
|
1640
|
+
|
|
1641
|
+
case 14:
|
|
1642
|
+
if (!(trade == '00')) {
|
|
1643
|
+
_context7.next = 20;
|
|
1644
|
+
break;
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1647
|
+
_ref18 = Result || {}, ThirdPaymentReturnInfo = _ref18.ThirdPaymentReturnInfo;
|
|
1648
|
+
|
|
1649
|
+
if (vType == 1) {
|
|
1650
|
+
dto.RetailPaymentDetails.forEach(function (v) {
|
|
1651
|
+
if (v.ThirdPaymentInfo != null && Math.abs(v.Amount) > 0) {
|
|
1652
|
+
v.ThirdPaymentReturnInfo = ThirdPaymentReturnInfo;
|
|
1653
|
+
}
|
|
1654
|
+
});
|
|
1655
|
+
} else if (vType == 2) {
|
|
1656
|
+
dto.StorageMutiSettleDetails.forEach(function (v) {
|
|
1657
|
+
if (v.ThirdPaymentInfo != null && Math.abs(v.StorageAmount) > 0) {
|
|
1658
|
+
v.ThirdPaymentReturnInfo = ThirdPaymentReturnInfo;
|
|
1659
|
+
}
|
|
1660
|
+
});
|
|
1661
|
+
}
|
|
1662
|
+
return _context7.abrupt('return', { type: true, data: dto, msg: _Message, code: Code });
|
|
1663
|
+
|
|
1664
|
+
case 20:
|
|
1665
|
+
if (!(trade == '02')) {
|
|
1666
|
+
_context7.next = 22;
|
|
1667
|
+
break;
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
return _context7.abrupt('return', { type: true, data: dto, msg: _Message, code: Code });
|
|
1671
|
+
|
|
1672
|
+
case 22:
|
|
1673
|
+
_context7.next = 27;
|
|
1674
|
+
break;
|
|
1675
|
+
|
|
1676
|
+
case 24:
|
|
1677
|
+
_context7.prev = 24;
|
|
1678
|
+
_context7.t0 = _context7['catch'](0);
|
|
1679
|
+
return _context7.abrupt('return', { type: false, data: null, msg: _context7.t0, code: '9999' });
|
|
1680
|
+
|
|
1681
|
+
case 27:
|
|
1682
|
+
case 'end':
|
|
1683
|
+
return _context7.stop();
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
}, _callee7, this, [[0, 24]]);
|
|
1687
|
+
}));
|
|
1688
|
+
|
|
1689
|
+
function thirdPay(_x4, _x5, _x6, _x7) {
|
|
1690
|
+
return _ref16.apply(this, arguments);
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
return thirdPay;
|
|
1694
|
+
}()
|
|
1695
|
+
|
|
1696
|
+
//二开支付强制退款情况
|
|
1697
|
+
|
|
1698
|
+
}, {
|
|
1699
|
+
key: 'thirdPayRefund',
|
|
1700
|
+
value: function () {
|
|
1701
|
+
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(type) {
|
|
1702
|
+
var _this13 = this;
|
|
1703
|
+
|
|
1704
|
+
var dto, pay, payment, _enumController$getEn17, TradeType;
|
|
1705
|
+
|
|
1706
|
+
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
|
1707
|
+
while (1) {
|
|
1708
|
+
switch (_context9.prev = _context9.next) {
|
|
1709
|
+
case 0:
|
|
1710
|
+
dto = type == 1 ? this.dtoParams.RetailPaymentDetails : this.dtoParams.StorageMutiSettleDetails;
|
|
1711
|
+
pay = dto && dto.filter(function (v) {
|
|
1712
|
+
return v.ThirdPaymentInfo;
|
|
1713
|
+
});
|
|
1714
|
+
|
|
1715
|
+
if (pay && pay.length > 0) {
|
|
1716
|
+
setTimeout(function () {
|
|
1717
|
+
_message2.default.warn("支付出现异常,将发起刷卡退款。", { duration: 4.5 });
|
|
1718
|
+
}, 1000);
|
|
1719
|
+
payment = pay[0];
|
|
1720
|
+
_enumController$getEn17 = _mutantsUtil.enumController.getEnumOj(), TradeType = _enumController$getEn17.TradeType;
|
|
1721
|
+
|
|
1722
|
+
setTimeout((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
|
|
1723
|
+
var ret, _ref21, msg;
|
|
1724
|
+
|
|
1725
|
+
return _regenerator2.default.wrap(function _callee8$(_context8) {
|
|
1726
|
+
while (1) {
|
|
1727
|
+
switch (_context8.prev = _context8.next) {
|
|
1728
|
+
case 0:
|
|
1729
|
+
_context8.next = 2;
|
|
1730
|
+
return _this13.thirdPay(type, payment, TradeType.REFUND, dto);
|
|
1731
|
+
|
|
1732
|
+
case 2:
|
|
1733
|
+
ret = _context8.sent;
|
|
1734
|
+
_ref21 = ret || {}, msg = _ref21.msg;
|
|
1735
|
+
|
|
1736
|
+
console.log('\u5237\u5361\u652F\u4ED8\u9000\u6B3E:' + msg);
|
|
1737
|
+
|
|
1738
|
+
case 5:
|
|
1739
|
+
case 'end':
|
|
1740
|
+
return _context8.stop();
|
|
1741
|
+
}
|
|
1742
|
+
}
|
|
1743
|
+
}, _callee8, _this13);
|
|
1744
|
+
})), 4500);
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
case 3:
|
|
1748
|
+
case 'end':
|
|
1749
|
+
return _context9.stop();
|
|
1750
|
+
}
|
|
1751
|
+
}
|
|
1752
|
+
}, _callee9, this);
|
|
1753
|
+
}));
|
|
1754
|
+
|
|
1755
|
+
function thirdPayRefund(_x8) {
|
|
1756
|
+
return _ref19.apply(this, arguments);
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
return thirdPayRefund;
|
|
1760
|
+
}()
|
|
1307
1761
|
}, {
|
|
1308
1762
|
key: 'setDtoID',
|
|
1309
1763
|
value: function setDtoID(id) {
|
|
@@ -1312,35 +1766,35 @@ var SettlementStore = (_class = function () {
|
|
|
1312
1766
|
}, {
|
|
1313
1767
|
key: 'querySettleResult',
|
|
1314
1768
|
value: function () {
|
|
1315
|
-
var
|
|
1316
|
-
return _regenerator2.default.wrap(function
|
|
1769
|
+
var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10() {
|
|
1770
|
+
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
|
1317
1771
|
while (1) {
|
|
1318
|
-
switch (
|
|
1772
|
+
switch (_context10.prev = _context10.next) {
|
|
1319
1773
|
case 0:
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1774
|
+
_context10.prev = 0;
|
|
1775
|
+
_context10.t0 = _promise2.default;
|
|
1776
|
+
_context10.next = 4;
|
|
1323
1777
|
return (0, _tplusApi.tApi)({ RetailCode: this.dto.Code }, 'chanjet.RE.newRetail.QuerySettleResult', false, false, { timeout_skip: true });
|
|
1324
1778
|
|
|
1325
1779
|
case 4:
|
|
1326
|
-
|
|
1327
|
-
return
|
|
1780
|
+
_context10.t1 = _context10.sent;
|
|
1781
|
+
return _context10.abrupt('return', _context10.t0.resolve.call(_context10.t0, _context10.t1));
|
|
1328
1782
|
|
|
1329
1783
|
case 8:
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
return
|
|
1784
|
+
_context10.prev = 8;
|
|
1785
|
+
_context10.t2 = _context10['catch'](0);
|
|
1786
|
+
return _context10.abrupt('return', _promise2.default.resolve({ Flag: "1" }));
|
|
1333
1787
|
|
|
1334
1788
|
case 11:
|
|
1335
1789
|
case 'end':
|
|
1336
|
-
return
|
|
1790
|
+
return _context10.stop();
|
|
1337
1791
|
}
|
|
1338
1792
|
}
|
|
1339
|
-
},
|
|
1793
|
+
}, _callee10, this, [[0, 8]]);
|
|
1340
1794
|
}));
|
|
1341
1795
|
|
|
1342
1796
|
function querySettleResult() {
|
|
1343
|
-
return
|
|
1797
|
+
return _ref22.apply(this, arguments);
|
|
1344
1798
|
}
|
|
1345
1799
|
|
|
1346
1800
|
return querySettleResult;
|
|
@@ -1366,99 +1820,131 @@ var SettlementStore = (_class = function () {
|
|
|
1366
1820
|
}, {
|
|
1367
1821
|
key: 'validePwd',
|
|
1368
1822
|
value: function () {
|
|
1369
|
-
var
|
|
1370
|
-
var
|
|
1823
|
+
var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(value) {
|
|
1824
|
+
var _ref24, isNewRetailBCPos, cook1, cook2, message, memberStorageId, _paymode$currentMode, cardTypeEnum, memberId, meStorageCardId, cardStatusEnum, result, count, _result;
|
|
1371
1825
|
|
|
1372
|
-
return _regenerator2.default.wrap(function
|
|
1826
|
+
return _regenerator2.default.wrap(function _callee11$(_context11) {
|
|
1373
1827
|
while (1) {
|
|
1374
|
-
switch (
|
|
1828
|
+
switch (_context11.prev = _context11.next) {
|
|
1375
1829
|
case 0:
|
|
1376
|
-
|
|
1377
|
-
|
|
1830
|
+
_ref24 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref24.isNewRetailBCPos;
|
|
1831
|
+
_context11.prev = 1;
|
|
1378
1832
|
|
|
1379
1833
|
if (!isNewRetailBCPos) {
|
|
1380
|
-
|
|
1834
|
+
_context11.next = 33;
|
|
1381
1835
|
break;
|
|
1382
1836
|
}
|
|
1383
1837
|
|
|
1384
1838
|
cook1 = this.getAllCookies()['errorPwd'];
|
|
1385
1839
|
cook2 = cook1 && JSON.parse(cook1);
|
|
1386
1840
|
message = '密码输入错误';
|
|
1387
|
-
|
|
1841
|
+
memberStorageId = this.paymode.currentMode.meStorageCardId;
|
|
1388
1842
|
|
|
1389
1843
|
if (!cook2) {
|
|
1390
|
-
|
|
1844
|
+
_context11.next = 12;
|
|
1391
1845
|
break;
|
|
1392
1846
|
}
|
|
1393
1847
|
|
|
1394
|
-
if (!cook2.hasOwnProperty(
|
|
1395
|
-
|
|
1848
|
+
if (!cook2.hasOwnProperty(memberStorageId + "")) {
|
|
1849
|
+
_context11.next = 12;
|
|
1396
1850
|
break;
|
|
1397
1851
|
}
|
|
1398
1852
|
|
|
1399
|
-
if (!(cook2[
|
|
1400
|
-
|
|
1853
|
+
if (!(cook2[memberStorageId] > 3)) {
|
|
1854
|
+
_context11.next = 12;
|
|
1401
1855
|
break;
|
|
1402
1856
|
}
|
|
1403
1857
|
|
|
1404
1858
|
message = '今日密码错误已达上限,不可使用储值消费,请明日再试,如忘记请重置密码或修改密码。';
|
|
1405
|
-
return
|
|
1859
|
+
return _context11.abrupt('return', _promise2.default.resolve(message));
|
|
1406
1860
|
|
|
1407
1861
|
case 12:
|
|
1408
|
-
|
|
1409
|
-
|
|
1862
|
+
_paymode$currentMode = this.paymode.currentMode, cardTypeEnum = _paymode$currentMode.cardTypeEnum, memberId = _paymode$currentMode.memberId, meStorageCardId = _paymode$currentMode.meStorageCardId, cardStatusEnum = _paymode$currentMode.cardStatusEnum;
|
|
1863
|
+
result = null;
|
|
1410
1864
|
|
|
1411
|
-
|
|
1412
|
-
|
|
1865
|
+
if (!(cardTypeEnum === 'BALANCE_CARD')) {
|
|
1866
|
+
_context11.next = 20;
|
|
1867
|
+
break;
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
_context11.next = 17;
|
|
1871
|
+
return (0, _tplusApi.ccApi)({ md5Password: _tplusApi.User.pwdEncrypt(value.pwd), cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + memberId, false, false);
|
|
1872
|
+
|
|
1873
|
+
case 17:
|
|
1874
|
+
result = _context11.sent;
|
|
1875
|
+
_context11.next = 29;
|
|
1876
|
+
break;
|
|
1877
|
+
|
|
1878
|
+
case 20:
|
|
1879
|
+
if (!(cardStatusEnum === 'BINDING' && this.member && this.member.ID === memberId)) {
|
|
1880
|
+
_context11.next = 26;
|
|
1881
|
+
break;
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
_context11.next = 23;
|
|
1885
|
+
return (0, _tplusApi.ccApi)({ md5Password: _tplusApi.User.pwdEncrypt(value.pwd), password: value.pwd, cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + meStorageCardId, false, false);
|
|
1886
|
+
|
|
1887
|
+
case 23:
|
|
1888
|
+
result = _context11.sent;
|
|
1889
|
+
_context11.next = 29;
|
|
1890
|
+
break;
|
|
1413
1891
|
|
|
1892
|
+
case 26:
|
|
1893
|
+
_context11.next = 28;
|
|
1894
|
+
return (0, _tplusApi.ccApi)({ password: value.pwd, cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + meStorageCardId, false, false);
|
|
1895
|
+
|
|
1896
|
+
case 28:
|
|
1897
|
+
result = _context11.sent;
|
|
1898
|
+
|
|
1899
|
+
case 29:
|
|
1414
1900
|
if (!result.data) {
|
|
1415
1901
|
if (cook2) {
|
|
1416
|
-
if (cook2.hasOwnProperty(
|
|
1417
|
-
count = cook2[
|
|
1902
|
+
if (cook2.hasOwnProperty(memberStorageId + "")) {
|
|
1903
|
+
count = cook2[memberStorageId];
|
|
1418
1904
|
|
|
1419
|
-
cook2[
|
|
1905
|
+
cook2[memberStorageId] = count + 1;
|
|
1420
1906
|
} else {
|
|
1421
|
-
cook2[
|
|
1907
|
+
cook2[memberStorageId] = 1;
|
|
1422
1908
|
}
|
|
1423
1909
|
} else {
|
|
1424
1910
|
cook2 = {};
|
|
1425
|
-
cook2[
|
|
1911
|
+
cook2[memberStorageId] = 1;
|
|
1426
1912
|
}
|
|
1427
1913
|
this.setCookie('errorPwd', '', -1);
|
|
1428
1914
|
this.setCookie('errorPwd', (0, _stringify2.default)(cook2));
|
|
1429
1915
|
}
|
|
1430
|
-
return
|
|
1916
|
+
return _context11.abrupt('return', _promise2.default.resolve(result.data ? "" : message));
|
|
1431
1917
|
|
|
1432
|
-
case
|
|
1433
|
-
|
|
1918
|
+
case 33:
|
|
1919
|
+
_context11.next = 35;
|
|
1434
1920
|
return (0, _tplusApi.tApi)({ "CheckoutParams": {
|
|
1435
1921
|
"Idmember": value.id,
|
|
1436
1922
|
"Password": value.pwd
|
|
1437
1923
|
} }, 'AA.DR.newRetailMember.CheckoutMemberPassword', false, false);
|
|
1438
1924
|
|
|
1439
|
-
case
|
|
1440
|
-
_result =
|
|
1441
|
-
return
|
|
1925
|
+
case 35:
|
|
1926
|
+
_result = _context11.sent;
|
|
1927
|
+
return _context11.abrupt('return', _promise2.default.resolve(_result.Success ? "" : _result.Message));
|
|
1442
1928
|
|
|
1443
|
-
case
|
|
1444
|
-
|
|
1929
|
+
case 37:
|
|
1930
|
+
_context11.next = 42;
|
|
1445
1931
|
break;
|
|
1446
1932
|
|
|
1447
|
-
case
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
return
|
|
1933
|
+
case 39:
|
|
1934
|
+
_context11.prev = 39;
|
|
1935
|
+
_context11.t0 = _context11['catch'](1);
|
|
1936
|
+
return _context11.abrupt('return', "failed");
|
|
1451
1937
|
|
|
1452
|
-
case
|
|
1938
|
+
case 42:
|
|
1453
1939
|
case 'end':
|
|
1454
|
-
return
|
|
1940
|
+
return _context11.stop();
|
|
1455
1941
|
}
|
|
1456
1942
|
}
|
|
1457
|
-
},
|
|
1943
|
+
}, _callee11, this, [[1, 39]]);
|
|
1458
1944
|
}));
|
|
1459
1945
|
|
|
1460
|
-
function validePwd(
|
|
1461
|
-
return
|
|
1946
|
+
function validePwd(_x9) {
|
|
1947
|
+
return _ref23.apply(this, arguments);
|
|
1462
1948
|
}
|
|
1463
1949
|
|
|
1464
1950
|
return validePwd;
|
|
@@ -1468,7 +1954,7 @@ var SettlementStore = (_class = function () {
|
|
|
1468
1954
|
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'queryPwd', [_mobx.action], {
|
|
1469
1955
|
enumerable: true,
|
|
1470
1956
|
initializer: function initializer() {
|
|
1471
|
-
var
|
|
1957
|
+
var _this14 = this;
|
|
1472
1958
|
|
|
1473
1959
|
return function (newPass, newPassConfirm) {
|
|
1474
1960
|
if (!newPass || !newPassConfirm) {
|
|
@@ -1480,7 +1966,7 @@ var SettlementStore = (_class = function () {
|
|
|
1480
1966
|
var idstore = (0, _tplusPoslogin.PosInitData)('storeID');
|
|
1481
1967
|
return (0, _tplusApi.ccApi)({
|
|
1482
1968
|
Idstore: idstore,
|
|
1483
|
-
meMemberId:
|
|
1969
|
+
meMemberId: _this14.paymode.currentMode.memberId,
|
|
1484
1970
|
oldPassword: null,
|
|
1485
1971
|
newPassword: _tplusApi.User.pwdEncrypt(newPassConfirm),
|
|
1486
1972
|
dataSource: "POS"
|
|
@@ -1494,40 +1980,133 @@ var SettlementStore = (_class = function () {
|
|
|
1494
1980
|
}), _applyDecoratedDescriptor(_class.prototype, 'initByOriginReturn', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'initByOriginReturn'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'quickSettle', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'quickSettle'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeFocusAndAddPay', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeFocusAndAddPay'), _class.prototype), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, 'updateMemberInfo', [_mobx.action], {
|
|
1495
1981
|
enumerable: true,
|
|
1496
1982
|
initializer: function initializer() {
|
|
1497
|
-
var
|
|
1983
|
+
var _this15 = this;
|
|
1498
1984
|
|
|
1499
1985
|
return function () {
|
|
1500
|
-
var
|
|
1986
|
+
var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(_this) {
|
|
1501
1987
|
var _getLoginInfo, IdStore, StoreCode, resp;
|
|
1502
1988
|
|
|
1503
|
-
return _regenerator2.default.wrap(function
|
|
1989
|
+
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
|
1504
1990
|
while (1) {
|
|
1505
|
-
switch (
|
|
1991
|
+
switch (_context12.prev = _context12.next) {
|
|
1506
1992
|
case 0:
|
|
1507
|
-
_getLoginInfo =
|
|
1508
|
-
|
|
1509
|
-
return (0, _tplusApi.tApi)({ Idmember:
|
|
1993
|
+
_getLoginInfo = _this15.getLoginInfo(), IdStore = _getLoginInfo.IdStore, StoreCode = _getLoginInfo.StoreCode;
|
|
1994
|
+
_context12.next = 3;
|
|
1995
|
+
return (0, _tplusApi.tApi)({ Idmember: _this15.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
|
|
1510
1996
|
|
|
1511
1997
|
case 3:
|
|
1512
|
-
resp =
|
|
1998
|
+
resp = _context12.sent;
|
|
1513
1999
|
|
|
1514
2000
|
_this.member = resp;
|
|
1515
|
-
_this.paymode.
|
|
1516
|
-
return
|
|
2001
|
+
_this.paymode.updateMemberStorageCardNo(resp.StorageCardNo, resp.WalletEnabled);
|
|
2002
|
+
return _context12.abrupt('return', _promise2.default.resolve(resp));
|
|
1517
2003
|
|
|
1518
2004
|
case 7:
|
|
1519
2005
|
case 'end':
|
|
1520
|
-
return
|
|
2006
|
+
return _context12.stop();
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
}, _callee12, _this15);
|
|
2010
|
+
}));
|
|
2011
|
+
|
|
2012
|
+
return function (_x10) {
|
|
2013
|
+
return _ref25.apply(this, arguments);
|
|
2014
|
+
};
|
|
2015
|
+
}();
|
|
2016
|
+
}
|
|
2017
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'updateCurrentMode', [_mobx.action], {
|
|
2018
|
+
enumerable: true,
|
|
2019
|
+
initializer: function initializer() {
|
|
2020
|
+
var _this16 = this;
|
|
2021
|
+
|
|
2022
|
+
return function () {
|
|
2023
|
+
var _ref26 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(memberId) {
|
|
2024
|
+
var result;
|
|
2025
|
+
return _regenerator2.default.wrap(function _callee13$(_context13) {
|
|
2026
|
+
while (1) {
|
|
2027
|
+
switch (_context13.prev = _context13.next) {
|
|
2028
|
+
case 0:
|
|
2029
|
+
_context13.next = 2;
|
|
2030
|
+
return (0, _tplusApi.ccApi)({}, '/marketingtool/MeStorageCard/getCardInfoByMemberId/' + memberId + '/' + true, false, false, { method: 'get' });
|
|
2031
|
+
|
|
2032
|
+
case 2:
|
|
2033
|
+
result = _context13.sent;
|
|
2034
|
+
|
|
2035
|
+
if (!(result && result.data.length)) {
|
|
2036
|
+
_context13.next = 20;
|
|
2037
|
+
break;
|
|
2038
|
+
}
|
|
2039
|
+
|
|
2040
|
+
if (!(result.data.length === 1)) {
|
|
2041
|
+
_context13.next = 9;
|
|
2042
|
+
break;
|
|
2043
|
+
}
|
|
2044
|
+
|
|
2045
|
+
_this16.paymode.updateCardInfo(result.data[0]);
|
|
2046
|
+
return _context13.abrupt('return', result.data);
|
|
2047
|
+
|
|
2048
|
+
case 9:
|
|
2049
|
+
if (!(result.data && result.data.length === 1)) {
|
|
2050
|
+
_context13.next = 14;
|
|
2051
|
+
break;
|
|
2052
|
+
}
|
|
2053
|
+
|
|
2054
|
+
_this16.paymode.updateCardInfo(result.data[0]);
|
|
2055
|
+
return _context13.abrupt('return', result.data);
|
|
2056
|
+
|
|
2057
|
+
case 14:
|
|
2058
|
+
if (!(result.data && result.data.length > 1)) {
|
|
2059
|
+
_context13.next = 18;
|
|
2060
|
+
break;
|
|
2061
|
+
}
|
|
2062
|
+
|
|
2063
|
+
return _context13.abrupt('return', result.data);
|
|
2064
|
+
|
|
2065
|
+
case 18:
|
|
2066
|
+
_message2.default.warn('没有可用储值卡!');
|
|
2067
|
+
return _context13.abrupt('return', false);
|
|
2068
|
+
|
|
2069
|
+
case 20:
|
|
2070
|
+
case 'end':
|
|
2071
|
+
return _context13.stop();
|
|
1521
2072
|
}
|
|
1522
2073
|
}
|
|
1523
|
-
},
|
|
2074
|
+
}, _callee13, _this16);
|
|
1524
2075
|
}));
|
|
1525
2076
|
|
|
1526
|
-
return function (
|
|
1527
|
-
return
|
|
2077
|
+
return function (_x11) {
|
|
2078
|
+
return _ref26.apply(this, arguments);
|
|
1528
2079
|
};
|
|
1529
2080
|
}();
|
|
1530
2081
|
}
|
|
2082
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, 'updateCardInfo', [_mobx.action], {
|
|
2083
|
+
enumerable: true,
|
|
2084
|
+
initializer: function initializer() {
|
|
2085
|
+
var _this17 = this;
|
|
2086
|
+
|
|
2087
|
+
return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
|
|
2088
|
+
var address, result;
|
|
2089
|
+
return _regenerator2.default.wrap(function _callee14$(_context14) {
|
|
2090
|
+
while (1) {
|
|
2091
|
+
switch (_context14.prev = _context14.next) {
|
|
2092
|
+
case 0:
|
|
2093
|
+
address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + _this17.paymode.currentMode.storageCardNo;
|
|
2094
|
+
_context14.next = 3;
|
|
2095
|
+
return (0, _tplusApi.ccApi)({}, address, false, false, { method: 'get', timeout_skip: true });
|
|
2096
|
+
|
|
2097
|
+
case 3:
|
|
2098
|
+
result = _context14.sent;
|
|
2099
|
+
|
|
2100
|
+
_this17.paymode.updateCardInfo(result.data);
|
|
2101
|
+
|
|
2102
|
+
case 5:
|
|
2103
|
+
case 'end':
|
|
2104
|
+
return _context14.stop();
|
|
2105
|
+
}
|
|
2106
|
+
}
|
|
2107
|
+
}, _callee14, _this17);
|
|
2108
|
+
}));
|
|
2109
|
+
}
|
|
1531
2110
|
}), _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);
|
|
1532
2111
|
exports.default = SettlementStore;
|
|
1533
2112
|
var PayMode = exports.PayMode = (_class3 = function () {
|
|
@@ -1542,15 +2121,19 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1542
2121
|
this.onlineamount = 0;
|
|
1543
2122
|
this.maxamount = 0;
|
|
1544
2123
|
|
|
1545
|
-
_initDefineProp(this, 'currentFocus',
|
|
2124
|
+
_initDefineProp(this, 'currentFocus', _descriptor5, this);
|
|
1546
2125
|
|
|
1547
|
-
_initDefineProp(this, 'received',
|
|
2126
|
+
_initDefineProp(this, 'received', _descriptor6, this);
|
|
1548
2127
|
|
|
1549
|
-
_initDefineProp(this, 'receivable',
|
|
2128
|
+
_initDefineProp(this, 'receivable', _descriptor7, this);
|
|
1550
2129
|
|
|
1551
|
-
_initDefineProp(this, 'paymodes',
|
|
2130
|
+
_initDefineProp(this, 'paymodes', _descriptor8, this);
|
|
1552
2131
|
|
|
1553
|
-
_initDefineProp(this, 'thePaymodes',
|
|
2132
|
+
_initDefineProp(this, 'thePaymodes', _descriptor9, this);
|
|
2133
|
+
|
|
2134
|
+
_initDefineProp(this, 'storageCardNo', _descriptor10, this);
|
|
2135
|
+
|
|
2136
|
+
_initDefineProp(this, 'balance', _descriptor11, this);
|
|
1554
2137
|
|
|
1555
2138
|
this.currentMode = null;
|
|
1556
2139
|
this.checkList = [];
|
|
@@ -1559,11 +2142,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1559
2142
|
hotKey: "Ctrl+M"
|
|
1560
2143
|
};
|
|
1561
2144
|
|
|
1562
|
-
_initDefineProp(this, 'calcCheckList',
|
|
2145
|
+
_initDefineProp(this, 'calcCheckList', _descriptor12, this);
|
|
1563
2146
|
|
|
1564
|
-
_initDefineProp(this, 'setCouponNum',
|
|
2147
|
+
_initDefineProp(this, 'setCouponNum', _descriptor13, this);
|
|
1565
2148
|
|
|
1566
|
-
_initDefineProp(this, 'addDjqs',
|
|
2149
|
+
_initDefineProp(this, 'addDjqs', _descriptor14, this);
|
|
1567
2150
|
}
|
|
1568
2151
|
// @observable store = null;
|
|
1569
2152
|
|
|
@@ -1599,10 +2182,30 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1599
2182
|
this.received = (0, _utils.getFixedNumber)(sum);
|
|
1600
2183
|
this.receivable = (0, _utils.getFixedNumber)(this.amount - sum);
|
|
1601
2184
|
}
|
|
2185
|
+
}, {
|
|
2186
|
+
key: 'updateMemberStorageCardNo',
|
|
2187
|
+
value: function updateMemberStorageCardNo(storageCardNo, walletEnabled) {
|
|
2188
|
+
this.currentMode.storageCardNo = storageCardNo;
|
|
2189
|
+
this.currentMode.walletEnabled = walletEnabled;
|
|
2190
|
+
}
|
|
2191
|
+
}, {
|
|
2192
|
+
key: 'updateCardInfo',
|
|
2193
|
+
value: function updateCardInfo(m) {
|
|
2194
|
+
this.currentMode.cardStatusEnum = m.CardStatusEnum;
|
|
2195
|
+
this.currentMode.isNeedPassword = m.IsNeedPassword;
|
|
2196
|
+
this.currentMode.meStorageCardId = m.MeStorageCardId;
|
|
2197
|
+
this.currentMode.storageCardNo = m.StorageCardNo;
|
|
2198
|
+
this.currentMode.balance = m.BalanceStorage;
|
|
2199
|
+
this.currentMode.rawbalance = m.BalanceStorage;
|
|
2200
|
+
this.currentMode.cardTypeEnum = m.CardTypeEnum;
|
|
2201
|
+
this.currentMode.walletEnabled = m.WalletEnabled;
|
|
2202
|
+
this.currentMode.memberId = m.ID;
|
|
2203
|
+
this.currentMode.freePaymentPasswordStore = m.FreePaymentPasswordStore;
|
|
2204
|
+
}
|
|
1602
2205
|
}, {
|
|
1603
2206
|
key: 'calcDjqCheckValue',
|
|
1604
2207
|
value: function calcDjqCheckValue(q1, dto, params) {
|
|
1605
|
-
var
|
|
2208
|
+
var _this18 = this;
|
|
1606
2209
|
|
|
1607
2210
|
var useLimitPerOrder = (0, _tplusPoslogin.PosInitData)('UseLimitPerOrder');
|
|
1608
2211
|
var qList = (0, _filter3.default)(this.currentMode.djqs, function (djq) {
|
|
@@ -1616,12 +2219,12 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1616
2219
|
this.checkList = [];
|
|
1617
2220
|
}
|
|
1618
2221
|
|
|
1619
|
-
var
|
|
1620
|
-
isNewRetailBCPos =
|
|
2222
|
+
var _ref28 = _mutantsUtil.platform || {},
|
|
2223
|
+
isNewRetailBCPos = _ref28.isNewRetailBCPos;
|
|
1621
2224
|
|
|
1622
|
-
var _enumController$
|
|
1623
|
-
PayStyle = _enumController$
|
|
1624
|
-
Differentiate = _enumController$
|
|
2225
|
+
var _enumController$getEn18 = _mutantsUtil.enumController.getEnumOj(),
|
|
2226
|
+
PayStyle = _enumController$getEn18.PayStyle,
|
|
2227
|
+
Differentiate = _enumController$getEn18.Differentiate;
|
|
1625
2228
|
|
|
1626
2229
|
if (q1) {
|
|
1627
2230
|
if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
|
|
@@ -1649,7 +2252,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1649
2252
|
if (!q1.checked) {
|
|
1650
2253
|
this.checkList.forEach(function (ele, i) {
|
|
1651
2254
|
if (ele.id === q1.id) {
|
|
1652
|
-
|
|
2255
|
+
_this18.checkList.splice(i, 1);
|
|
1653
2256
|
}
|
|
1654
2257
|
});
|
|
1655
2258
|
} else {
|
|
@@ -1721,24 +2324,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1721
2324
|
if (result && result.length != 0) {
|
|
1722
2325
|
result.forEach(function (element, index) {
|
|
1723
2326
|
var djq1 = false;
|
|
1724
|
-
|
|
2327
|
+
_this18.currentMode.djqs.forEach(function (djq) {
|
|
1725
2328
|
if (element.id === djq.id) {
|
|
1726
2329
|
djq1 = true;
|
|
1727
2330
|
}
|
|
1728
2331
|
});
|
|
1729
2332
|
|
|
1730
|
-
var
|
|
1731
|
-
couponCode =
|
|
1732
|
-
name =
|
|
1733
|
-
tieredAmountResult =
|
|
1734
|
-
fromDate =
|
|
1735
|
-
dateMount =
|
|
1736
|
-
promoMethodEnum =
|
|
1737
|
-
discountPct =
|
|
1738
|
-
nominalAmount =
|
|
1739
|
-
promoId =
|
|
1740
|
-
id =
|
|
1741
|
-
doorsill =
|
|
2333
|
+
var _ref29 = element || {},
|
|
2334
|
+
couponCode = _ref29.couponCode,
|
|
2335
|
+
name = _ref29.name,
|
|
2336
|
+
tieredAmountResult = _ref29.tieredAmountResult,
|
|
2337
|
+
fromDate = _ref29.fromDate,
|
|
2338
|
+
dateMount = _ref29.dateMount,
|
|
2339
|
+
promoMethodEnum = _ref29.promoMethodEnum,
|
|
2340
|
+
discountPct = _ref29.discountPct,
|
|
2341
|
+
nominalAmount = _ref29.nominalAmount,
|
|
2342
|
+
promoId = _ref29.promoId,
|
|
2343
|
+
id = _ref29.id,
|
|
2344
|
+
doorsill = _ref29.doorsill;
|
|
1742
2345
|
|
|
1743
2346
|
var condValue = tieredAmountResult.condValue,
|
|
1744
2347
|
promoDiscount = tieredAmountResult.promoDiscount,
|
|
@@ -1766,10 +2369,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1766
2369
|
// couponCategoryEnum: tieredAmountResult.couponCategoryEnum,
|
|
1767
2370
|
// id
|
|
1768
2371
|
// })
|
|
1769
|
-
|
|
2372
|
+
_this18.addDjqs(couponCode, name, true, nominalAmount, promoDiscount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
|
|
1770
2373
|
djq1 = false;
|
|
1771
2374
|
} else {
|
|
1772
|
-
|
|
2375
|
+
_this18.setCouponNum(element.id, couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
|
|
1773
2376
|
// this.currentMode.djqs[0].couponCategoryEnum = 'couponCategoryEnum';
|
|
1774
2377
|
// djq1.couponCategoryEnum = element.tieredAmountResult.couponCategoryEnum
|
|
1775
2378
|
}
|
|
@@ -1782,11 +2385,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1782
2385
|
}, {
|
|
1783
2386
|
key: 'calcDjqValue',
|
|
1784
2387
|
value: function calcDjqValue(q1) {
|
|
1785
|
-
var
|
|
1786
|
-
isNewRetailBCPos =
|
|
2388
|
+
var _ref30 = _mutantsUtil.platform || {},
|
|
2389
|
+
isNewRetailBCPos = _ref30.isNewRetailBCPos;
|
|
1787
2390
|
|
|
1788
|
-
var _enumController$
|
|
1789
|
-
Differentiate = _enumController$
|
|
2391
|
+
var _enumController$getEn19 = _mutantsUtil.enumController.getEnumOj(),
|
|
2392
|
+
Differentiate = _enumController$getEn19.Differentiate;
|
|
1790
2393
|
|
|
1791
2394
|
if (q1) {
|
|
1792
2395
|
if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
|
|
@@ -1848,8 +2451,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1848
2451
|
this.currentMode.errinfo = '';
|
|
1849
2452
|
var sum = this.amount;
|
|
1850
2453
|
|
|
1851
|
-
var _enumController$
|
|
1852
|
-
PayStyle = _enumController$
|
|
2454
|
+
var _enumController$getEn20 = _mutantsUtil.enumController.getEnumOj(),
|
|
2455
|
+
PayStyle = _enumController$getEn20.PayStyle;
|
|
1853
2456
|
|
|
1854
2457
|
this.thePaymodes && this.thePaymodes.forEach(function (mode) {
|
|
1855
2458
|
if (mode.paymentType === PayStyle.hyczk) {
|
|
@@ -1868,37 +2471,43 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1868
2471
|
}, {
|
|
1869
2472
|
key: 'calcMemberBalance',
|
|
1870
2473
|
value: function calcMemberBalance() {
|
|
1871
|
-
this.currentMode.balance = this.currentMode.
|
|
2474
|
+
this.currentMode.balance = this.currentMode.rawbalance - this.currentMode.value;
|
|
1872
2475
|
}
|
|
1873
2476
|
}, {
|
|
1874
2477
|
key: 'setPaymodes',
|
|
1875
2478
|
value: function () {
|
|
1876
|
-
var
|
|
1877
|
-
var
|
|
2479
|
+
var _ref31 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(type, isIntegralExchange) {
|
|
2480
|
+
var _this19 = this;
|
|
1878
2481
|
|
|
1879
|
-
var _enumController$
|
|
2482
|
+
var _ref32, isHorizontalPad, isHorizontalSunMi, isMobileEnvironment, _enumController$getEn21, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
|
|
1880
2483
|
|
|
1881
|
-
return _regenerator2.default.wrap(function
|
|
2484
|
+
return _regenerator2.default.wrap(function _callee15$(_context15) {
|
|
1882
2485
|
while (1) {
|
|
1883
|
-
switch (
|
|
2486
|
+
switch (_context15.prev = _context15.next) {
|
|
1884
2487
|
case 0:
|
|
1885
|
-
|
|
2488
|
+
// 是否移动端判断
|
|
2489
|
+
_ref32 = _mutantsUtil.platform || {}, isHorizontalPad = _ref32.isHorizontalPad, isHorizontalSunMi = _ref32.isHorizontalSunMi;
|
|
2490
|
+
isMobileEnvironment = !!isHorizontalPad || !!isHorizontalSunMi;
|
|
2491
|
+
_enumController$getEn21 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn21.settleStyleType, PayStyle = _enumController$getEn21.PayStyle;
|
|
1886
2492
|
memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
|
|
1887
2493
|
param = { 'settleStyleType': type == 1 ? memberStoreCode : settlementCode, isIntegralExchange: isIntegralExchange };
|
|
1888
|
-
|
|
2494
|
+
_context15.next = 7;
|
|
1889
2495
|
return (0, _tplusApi.tApi)({ param: param }, 'chanjet.RE.NewPos.GetNewStoreSettleStyles', false, false);
|
|
1890
2496
|
|
|
1891
|
-
case
|
|
1892
|
-
modes =
|
|
2497
|
+
case 7:
|
|
2498
|
+
modes = _context15.sent;
|
|
1893
2499
|
|
|
1894
2500
|
if (modes) {
|
|
1895
2501
|
(0, _mobx.runInAction)(function () {
|
|
1896
2502
|
var paymodes = [];
|
|
1897
|
-
|
|
2503
|
+
var settleLists = modes.SettleStyles;
|
|
2504
|
+
settleLists = isMobileEnvironment ? settleLists.filter(function (v) {
|
|
2505
|
+
return !v.ThirdPaymentInfo;
|
|
2506
|
+
}) : settleLists;
|
|
2507
|
+
(0, _each3.default)(settleLists, function (mode, index) {
|
|
1898
2508
|
//产品需求确认会员储值卡结算方式前端展示统一调整为“储值卡" tuzha by 2020-07-08
|
|
1899
|
-
|
|
1900
2509
|
if (mode.Code == PayStyle.hyczk) {
|
|
1901
|
-
mode.Name = '
|
|
2510
|
+
mode.Name = '储值卡';
|
|
1902
2511
|
}
|
|
1903
2512
|
paymodes.push({
|
|
1904
2513
|
name: mode.Name,
|
|
@@ -1911,24 +2520,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1911
2520
|
idBankAccount: mode.IdBankAccount,
|
|
1912
2521
|
exchangeRate: mode.Currency ? mode.Currency.ExchangeRate : 1,
|
|
1913
2522
|
idCurrency: mode.Currency ? mode.Currency.ID : -1,
|
|
1914
|
-
calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88"
|
|
2523
|
+
calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88",
|
|
2524
|
+
thridPayment: mode.ThirdPaymentInfo
|
|
1915
2525
|
});
|
|
1916
2526
|
});
|
|
1917
|
-
|
|
1918
|
-
//modes.QuickSettleStyles
|
|
2527
|
+
_this19.paymodes = paymodes;
|
|
1919
2528
|
});
|
|
1920
2529
|
}
|
|
1921
2530
|
|
|
1922
|
-
case
|
|
2531
|
+
case 9:
|
|
1923
2532
|
case 'end':
|
|
1924
|
-
return
|
|
2533
|
+
return _context15.stop();
|
|
1925
2534
|
}
|
|
1926
2535
|
}
|
|
1927
|
-
},
|
|
2536
|
+
}, _callee15, this);
|
|
1928
2537
|
}));
|
|
1929
2538
|
|
|
1930
|
-
function setPaymodes(
|
|
1931
|
-
return
|
|
2539
|
+
function setPaymodes(_x12, _x13) {
|
|
2540
|
+
return _ref31.apply(this, arguments);
|
|
1932
2541
|
}
|
|
1933
2542
|
|
|
1934
2543
|
return setPaymodes;
|
|
@@ -1945,49 +2554,60 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1945
2554
|
}
|
|
1946
2555
|
}]);
|
|
1947
2556
|
return PayMode;
|
|
1948
|
-
}(), (
|
|
2557
|
+
}(), (_descriptor5 = _applyDecoratedDescriptor(_class3.prototype, 'currentFocus', [_mobx.observable], {
|
|
1949
2558
|
enumerable: true,
|
|
1950
2559
|
initializer: function initializer() {
|
|
1951
2560
|
return "";
|
|
1952
2561
|
}
|
|
1953
|
-
}),
|
|
2562
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class3.prototype, 'received', [_mobx.observable], {
|
|
1954
2563
|
enumerable: true,
|
|
1955
2564
|
initializer: function initializer() {
|
|
1956
2565
|
return 0;
|
|
1957
2566
|
}
|
|
1958
|
-
}),
|
|
2567
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class3.prototype, 'receivable', [_mobx.observable], {
|
|
1959
2568
|
enumerable: true,
|
|
1960
2569
|
initializer: function initializer() {
|
|
1961
2570
|
return 0;
|
|
1962
2571
|
}
|
|
1963
|
-
}),
|
|
2572
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class3.prototype, 'paymodes', [_mobx.observable], {
|
|
1964
2573
|
enumerable: true,
|
|
1965
2574
|
initializer: function initializer() {
|
|
1966
2575
|
return [];
|
|
1967
2576
|
}
|
|
1968
|
-
}),
|
|
2577
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, 'thePaymodes', [_mobx.observable], {
|
|
1969
2578
|
enumerable: true,
|
|
1970
2579
|
initializer: function initializer() {
|
|
1971
2580
|
return [];
|
|
1972
2581
|
}
|
|
1973
|
-
}),
|
|
2582
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'storageCardNo', [_mobx.observable], {
|
|
1974
2583
|
enumerable: true,
|
|
1975
2584
|
initializer: function initializer() {
|
|
1976
|
-
|
|
2585
|
+
return null;
|
|
2586
|
+
}
|
|
2587
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class3.prototype, 'balance', [_mobx.observable], {
|
|
2588
|
+
enumerable: true,
|
|
2589
|
+
initializer: function initializer() {
|
|
2590
|
+
return null;
|
|
2591
|
+
}
|
|
2592
|
+
}), _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], {
|
|
2593
|
+
enumerable: true,
|
|
2594
|
+
initializer: function initializer() {
|
|
2595
|
+
var _this20 = this;
|
|
1977
2596
|
|
|
1978
2597
|
return function () {
|
|
1979
|
-
|
|
2598
|
+
_this20.checkList = [];
|
|
1980
2599
|
};
|
|
1981
2600
|
}
|
|
1982
|
-
}), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqCheckValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqCheckValue'), _class3.prototype),
|
|
2601
|
+
}), _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], {
|
|
1983
2602
|
enumerable: true,
|
|
1984
2603
|
initializer: function initializer() {
|
|
1985
|
-
var
|
|
2604
|
+
var _this21 = this;
|
|
1986
2605
|
|
|
1987
2606
|
return function (id, couponNum, promoMethodEnum, nominalAmount, promoDiscount) {
|
|
1988
|
-
|
|
2607
|
+
_this21.currentMode.djqs.forEach(function (ele) {
|
|
1989
2608
|
if (ele.id === id) {
|
|
1990
|
-
|
|
2609
|
+
ele.amount = promoDiscount;
|
|
2610
|
+
promoMethodEnum == "CASH_COUPON" && (ele.nominalAmount = nominalAmount);
|
|
1991
2611
|
ele.couponCategoryEnum = couponNum;
|
|
1992
2612
|
var IsEnable = ele.couponCategoryEnum === 'RIGUP' || ele.couponCategoryEnum === 'UN_MATCH' || ele.couponCategoryEnum === "PREPARING" || ele.couponCategoryEnum === 'PROMO_LIMITED' || ele.couponCategoryEnum === 'COUPON_CONFLICT' ? false : true;
|
|
1993
2613
|
ele.IsEnable = IsEnable;
|
|
@@ -1995,16 +2615,17 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1995
2615
|
});
|
|
1996
2616
|
};
|
|
1997
2617
|
}
|
|
1998
|
-
}),
|
|
2618
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
|
|
1999
2619
|
enumerable: true,
|
|
2000
2620
|
initializer: function initializer() {
|
|
2001
|
-
var
|
|
2621
|
+
var _this22 = this;
|
|
2002
2622
|
|
|
2003
|
-
return function (promoCouponCode, name, IsEnable, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id) {
|
|
2623
|
+
return function (promoCouponCode, name, IsEnable, nominalAmount, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id) {
|
|
2004
2624
|
var djq = {
|
|
2005
2625
|
promoCouponCode: promoCouponCode,
|
|
2006
2626
|
name: name,
|
|
2007
2627
|
IsEnable: IsEnable,
|
|
2628
|
+
nominalAmount: nominalAmount,
|
|
2008
2629
|
amount: amount,
|
|
2009
2630
|
doorsill: doorsill,
|
|
2010
2631
|
LastTS: LastTS,
|
|
@@ -2020,25 +2641,25 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2020
2641
|
couponCategoryEnum: couponCategoryEnum,
|
|
2021
2642
|
id: id
|
|
2022
2643
|
};
|
|
2023
|
-
|
|
2644
|
+
_this22.currentMode.djqs.push(djq);
|
|
2024
2645
|
};
|
|
2025
2646
|
}
|
|
2026
2647
|
}), _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);
|
|
2027
2648
|
var Member = exports.Member = (_class5 = function () {
|
|
2028
2649
|
function Member(m) {
|
|
2029
|
-
var
|
|
2650
|
+
var _this23 = this;
|
|
2030
2651
|
|
|
2031
2652
|
(0, _classCallCheck3.default)(this, Member);
|
|
2032
2653
|
|
|
2033
|
-
_initDefineProp(this, 'cardNo',
|
|
2654
|
+
_initDefineProp(this, 'cardNo', _descriptor15, this);
|
|
2034
2655
|
|
|
2035
|
-
_initDefineProp(this, 'balance',
|
|
2656
|
+
_initDefineProp(this, 'balance', _descriptor16, this);
|
|
2036
2657
|
|
|
2037
|
-
_initDefineProp(this, 'exchangable',
|
|
2658
|
+
_initDefineProp(this, 'exchangable', _descriptor17, this);
|
|
2038
2659
|
|
|
2039
|
-
_initDefineProp(this, '
|
|
2660
|
+
_initDefineProp(this, 'meStorageCardId', _descriptor18, this);
|
|
2040
2661
|
|
|
2041
|
-
_initDefineProp(this, '
|
|
2662
|
+
_initDefineProp(this, 'storageCardNo', _descriptor19, this);
|
|
2042
2663
|
|
|
2043
2664
|
if (m) {
|
|
2044
2665
|
this.id = m.ID;
|
|
@@ -2049,17 +2670,15 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2049
2670
|
return key == 'canusedbalancestorage';
|
|
2050
2671
|
});
|
|
2051
2672
|
|
|
2052
|
-
var
|
|
2053
|
-
isNewRetailBCPos =
|
|
2673
|
+
var _ref33 = _mutantsUtil.platform || {},
|
|
2674
|
+
isNewRetailBCPos = _ref33.isNewRetailBCPos;
|
|
2054
2675
|
|
|
2055
|
-
m.StorageCardNo && (this.StorageCardNo = m.StorageCardNo);
|
|
2056
|
-
m.MeStorageCardId && (this.MeStorageCardId = m.MeStorageCardId);
|
|
2057
2676
|
(0, _mobx.runInAction)(function () {
|
|
2058
|
-
|
|
2677
|
+
_this23.cardNo = m.CardCode;
|
|
2059
2678
|
if (index >= 0) {
|
|
2060
|
-
|
|
2679
|
+
_this23.balance = parseFloat(m.DynamicPropertyValues[index]);
|
|
2061
2680
|
} else {
|
|
2062
|
-
|
|
2681
|
+
_this23.balance = _this23.rawbalance;
|
|
2063
2682
|
}
|
|
2064
2683
|
});
|
|
2065
2684
|
this.needPwd = m.MemberType ? m.MemberType.IsNeedPwd : false;
|
|
@@ -2079,32 +2698,22 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2079
2698
|
this.cardNo = v;
|
|
2080
2699
|
this.id = null;
|
|
2081
2700
|
}
|
|
2082
|
-
}, {
|
|
2083
|
-
key: 'setMeStorageCardId',
|
|
2084
|
-
value: function setMeStorageCardId(v) {
|
|
2085
|
-
this.MeStorageCardId = v;
|
|
2086
|
-
}
|
|
2087
|
-
}, {
|
|
2088
|
-
key: 'setStorageCardNo',
|
|
2089
|
-
value: function setStorageCardNo(v) {
|
|
2090
|
-
this.StorageCardNo = v;
|
|
2091
|
-
}
|
|
2092
2701
|
}]);
|
|
2093
2702
|
return Member;
|
|
2094
|
-
}(), (
|
|
2703
|
+
}(), (_descriptor15 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
|
|
2095
2704
|
enumerable: true,
|
|
2096
2705
|
initializer: null
|
|
2097
|
-
}),
|
|
2706
|
+
}), _descriptor16 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
|
|
2098
2707
|
enumerable: true,
|
|
2099
2708
|
initializer: null
|
|
2100
|
-
}),
|
|
2709
|
+
}), _descriptor17 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
|
|
2101
2710
|
enumerable: true,
|
|
2102
2711
|
initializer: null
|
|
2103
|
-
}),
|
|
2712
|
+
}), _descriptor18 = _applyDecoratedDescriptor(_class5.prototype, 'meStorageCardId', [_mobx.observable], {
|
|
2104
2713
|
enumerable: true,
|
|
2105
2714
|
initializer: null
|
|
2106
|
-
}),
|
|
2715
|
+
}), _descriptor19 = _applyDecoratedDescriptor(_class5.prototype, 'storageCardNo', [_mobx.observable], {
|
|
2107
2716
|
enumerable: true,
|
|
2108
2717
|
initializer: null
|
|
2109
|
-
}), _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)
|
|
2718
|
+
}), _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);
|
|
2110
2719
|
//# sourceMappingURL=settlementStore.js.map
|