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