tplus-components-touch 3.36.1 → 3.37.2
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/dist/components/billSearch/index.js +157 -19
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/billSearch/index.less +6 -3
- package/dist/components/cloudPrint/api.js +85 -43
- package/dist/components/cloudPrint/api.js.map +1 -1
- package/dist/components/cloudPrint/printDispatch.js +211 -108
- package/dist/components/cloudPrint/printDispatch.js.map +1 -1
- package/dist/components/deliverySearch/index.js +1 -1
- package/dist/components/deliverySearch/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/inventorySearch/tab.js +77 -67
- package/dist/components/inventorySearch/tab.js.map +1 -1
- package/dist/components/keyboard/numberButton_input.js +4 -2
- package/dist/components/keyboard/numberButton_input.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton2.less +35 -40
- package/dist/components/loading/loadingContent.js +1 -1
- package/dist/components/loading/loadingContent.js.map +1 -1
- package/dist/components/loading/style.less +7 -7
- package/dist/components/modalWraper/index.js +1 -1
- package/dist/components/modalWraper/index.js.map +1 -1
- package/dist/components/progressState/EmptyAndErrorView.js +4 -3
- package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
- package/dist/components/progressState/ProgressState.js +2 -1
- package/dist/components/progressState/ProgressState.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/settlement.js +752 -505
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +104 -14
- package/dist/components/settlement/settlementStore.js +1096 -464
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/ticon/iconfont/demo_index.html +49 -3
- package/dist/components/ticon/iconfont/iconfont.css +11 -3
- 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 +14 -0
- 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/touchScroll/index.js +6 -2
- package/dist/components/touchScroll/index.js.map +1 -1
- package/dist/components/touchTable/index.js +5 -4
- package/dist/components/touchTable/index.js.map +1 -1
- package/dist/components/touchTable/index.less +20 -13
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/package.json +35 -35
|
@@ -160,10 +160,6 @@ var _modalWraper2 = _interopRequireDefault(_modalWraper);
|
|
|
160
160
|
|
|
161
161
|
var _utils = require('./utils');
|
|
162
162
|
|
|
163
|
-
var _settlementStore = require('./settlementStore');
|
|
164
|
-
|
|
165
|
-
var _settlementStore2 = _interopRequireDefault(_settlementStore);
|
|
166
|
-
|
|
167
163
|
var _keyboard = require('../keyboard');
|
|
168
164
|
|
|
169
165
|
var _keyboard2 = _interopRequireDefault(_keyboard);
|
|
@@ -208,6 +204,12 @@ var _index2 = require('./prototypeTable/index');
|
|
|
208
204
|
|
|
209
205
|
var _index3 = _interopRequireDefault(_index2);
|
|
210
206
|
|
|
207
|
+
var _tplusComponentsTouch = require('tplus-components-touch');
|
|
208
|
+
|
|
209
|
+
var _moreCzkTable = require('./moreCzkTable');
|
|
210
|
+
|
|
211
|
+
var _moreCzkTable2 = _interopRequireDefault(_moreCzkTable);
|
|
212
|
+
|
|
211
213
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
212
214
|
|
|
213
215
|
var hasElectron = _mutantsMicrofx.env.platform === _mutantsMicrofx.env.constant.platform.electron;
|
|
@@ -228,6 +230,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
228
230
|
czkVisible: false,
|
|
229
231
|
djqVisible: false,
|
|
230
232
|
jfdxVisible: false,
|
|
233
|
+
moreCzkVisible: false,
|
|
231
234
|
showSetPwdModal: false,
|
|
232
235
|
prototypeVisible: false, // 优惠明细弹出框
|
|
233
236
|
currentIndex: 0,
|
|
@@ -246,6 +249,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
246
249
|
protytypeCount: null,
|
|
247
250
|
isPrototypeClick: false,
|
|
248
251
|
dataSource: [],
|
|
252
|
+
memberdata1: [],
|
|
249
253
|
discountTotalAmount: null,
|
|
250
254
|
discountRetailTotalAount: null,
|
|
251
255
|
discountPrototypeTotalAmount: null,
|
|
@@ -253,14 +257,16 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
253
257
|
currentKey: null,
|
|
254
258
|
couponLight: true,
|
|
255
259
|
storageValue: '0.00',
|
|
256
|
-
czkValue: null
|
|
260
|
+
czkValue: null,
|
|
261
|
+
isInputMember: false,
|
|
262
|
+
selectedRowIndex: 0 };
|
|
257
263
|
_this2.compoundHotkeysList = (window.$.operationControl[5] ? window.$.operationControl[5].control || [] : []).map(function (key) {
|
|
258
264
|
return key.toLocaleUpperCase();
|
|
259
265
|
});
|
|
260
266
|
_this2.hotkeydebounced = null;
|
|
261
267
|
_this2.hotkeydebouncedPayMode = "";
|
|
262
268
|
_this2.currentInput = null;
|
|
263
|
-
_this2.store =
|
|
269
|
+
_this2.store = _mutantsMicrofx.stores.settlementStore;
|
|
264
270
|
|
|
265
271
|
_this2.resizeSettlementToolBtns = function () {
|
|
266
272
|
var newStyle = _this2.store.newStyle;
|
|
@@ -300,12 +306,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
300
306
|
_this2.inputkey = "inputJfdxAmount";
|
|
301
307
|
_this2["inputJfdxAmount"].input.value = currentMode && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable));
|
|
302
308
|
_this2.setCurrentModeValue(_this2.inputJfdxAmount.input.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
|
|
303
|
-
} else if (_this2.state.czkVisible && currentMode && currentMode.value >= 0 && currentMode.
|
|
309
|
+
} else if (_this2.state.czkVisible && currentMode && currentMode.value >= 0 && currentMode.balance !== undefined) {
|
|
304
310
|
_this2.inputkey = "inputCzkAmount";
|
|
305
|
-
_this2["inputCzkAmount"] && _this2["inputCzkAmount"].input && (_this2["inputCzkAmount"].input.value = (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.
|
|
306
|
-
var maxamount = Math.min(currentMode.maxamount, currentMode.
|
|
311
|
+
_this2["inputCzkAmount"] && _this2["inputCzkAmount"].input && (_this2["inputCzkAmount"].input.value = (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.balance)));
|
|
312
|
+
var maxamount = Math.min(currentMode.maxamount, currentMode.balance);
|
|
307
313
|
_this2.inputCzkAmount && _this2.inputCzkAmount.input && _this2.setCurrentModeValue(_this2.inputCzkAmount.input.value, maxamount);
|
|
308
|
-
if (_this2.store.bquick && currentMode.
|
|
314
|
+
if (_this2.store.bquick && currentMode.storageCardNo && parseFloat(_this2.store.paymode.amount) > parseFloat(maxamount)) {
|
|
309
315
|
_message2.default.error("本单最大可用储值卡结算金额为:" + (0, _utils.getFixedNumber)(maxamount) + ",请使用复合结算!", {
|
|
310
316
|
duration: 4
|
|
311
317
|
});
|
|
@@ -325,7 +331,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
325
331
|
var _enumController$getEn = _mutantsUtil.enumController.getEnumOj(),
|
|
326
332
|
PayStyle = _enumController$getEn.PayStyle;
|
|
327
333
|
|
|
328
|
-
_this2.store.init(_this2.props.type == 1 ? null : _this2.context, _this2.props.onHandleAmount, _this2.props.dataSource.Code_02, _this2.props.storeInfo, true, _this2.props.amount, _this2.props.type, _this2.props.dto);
|
|
334
|
+
_this2.store.init(_this2.props.type == 1 ? null : _this2.context, _this2.props.onHandleAmount, _this2.props.dataSource.Code_02, _this2.props.storeInfo, true, _this2.props.amount, _this2.props.type, _this2.props.dto, currentKey);
|
|
329
335
|
var amount = _this2.store.paymode.amount;
|
|
330
336
|
if (amount == 0) {
|
|
331
337
|
_this2.settleZero();
|
|
@@ -355,7 +361,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
355
361
|
isReturn = _this2$props.isReturn,
|
|
356
362
|
type = _this2$props.type;
|
|
357
363
|
|
|
358
|
-
_promise2.default.resolve(!_this2.props.onValidate || _this2.props.onValidate()).then(function (result) {
|
|
364
|
+
_promise2.default.resolve(!_this2.props.onValidate || _this2.props.onValidate({ isNotAutoFocus: true })).then(function (result) {
|
|
359
365
|
if (result) {
|
|
360
366
|
_this2.setState({
|
|
361
367
|
settleDisabled: false
|
|
@@ -450,7 +456,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
450
456
|
}
|
|
451
457
|
item.InventoryName = item.Inventory.Name;
|
|
452
458
|
item.Discount = (0, _utils.getRoundValue)(item.RetailPrice - item.TaxPrice, pricePrecision);
|
|
453
|
-
item.TotalDiscount =
|
|
459
|
+
//item.TotalDiscount = getFixedNumber(item.Discount * item.Quantity);
|
|
460
|
+
item.TotalDiscount = item.DetailDiscountAmount;
|
|
454
461
|
item.nAmount = (0, _utils.getFixedNumber)(item.TaxAmount);
|
|
455
462
|
item.UnitName = item.Unit.Name;
|
|
456
463
|
item.nQuantity = (0, _utils.getRoundValue)(item.Quantity, quantityPrecision);
|
|
@@ -553,68 +560,30 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
553
560
|
});
|
|
554
561
|
};
|
|
555
562
|
|
|
556
|
-
_this2.
|
|
557
|
-
var _enumController$getEn2 = _mutantsUtil.enumController.getEnumOj(),
|
|
558
|
-
PayStyle = _enumController$getEn2.PayStyle;
|
|
559
|
-
|
|
560
|
-
var _ref = _mutantsUtil.platform || {},
|
|
561
|
-
isNewRetailBCPos = _ref.isNewRetailBCPos;
|
|
562
|
-
|
|
563
|
-
_this2.store.setCurrentMode(id, PayStyle.hyczk, append);
|
|
563
|
+
_this2.handleCzkMoreData = function (params) {
|
|
564
564
|
_this2._val = _this2.store.paymode.currentMode.value;
|
|
565
565
|
var currentMode = _this2.store.paymode.currentMode;
|
|
566
566
|
|
|
567
|
-
var maxamount = Math.min(currentMode.maxamount, currentMode.
|
|
568
|
-
if (_this2.store.bquick && currentMode.
|
|
567
|
+
var maxamount = Math.min(currentMode.maxamount, currentMode.balance);
|
|
568
|
+
if (_this2.store.bquick && currentMode.storageCardNo && parseFloat(_this2.store.paymode.amount) > parseFloat(maxamount)) {
|
|
569
569
|
_message2.default.error("本单最大可用储值卡结算金额为:" + (0, _utils.getFixedNumber)(maxamount) + ",请使用复合结算!", {
|
|
570
570
|
duration: 4
|
|
571
571
|
});
|
|
572
572
|
} else {
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
// return;
|
|
579
|
-
// }
|
|
580
|
-
// if (sMember && sMember.ID) {
|
|
581
|
-
// // noPlaySetPwd 点击结算方式设置密码,点加号不设置
|
|
582
|
-
// if (!sMember.WalletEnabled && params !== 'noPlaySetPwd' && !isReturn) {
|
|
583
|
-
// this.setState({
|
|
584
|
-
// newPass: '',
|
|
585
|
-
// newPassConfirm: '',
|
|
586
|
-
// showSetPwdModal: true
|
|
587
|
-
// })
|
|
588
|
-
// } else {
|
|
589
|
-
// this.setState({
|
|
590
|
-
// showSetPwdModal: false,
|
|
591
|
-
// czkVisible: true
|
|
592
|
-
// })
|
|
593
|
-
// }
|
|
594
|
-
// }
|
|
595
|
-
// // else {
|
|
596
|
-
// // Message.warn('请先录入会员');
|
|
597
|
-
// // }
|
|
598
|
-
// // this.setState({
|
|
599
|
-
// // czkVisible: true,
|
|
600
|
-
// // });
|
|
601
|
-
// } else {
|
|
602
|
-
// this.setState({
|
|
603
|
-
// czkVisible: true,
|
|
604
|
-
// });
|
|
605
|
-
// }
|
|
606
|
-
_this2.setState({
|
|
607
|
-
czkVisible: true
|
|
608
|
-
});
|
|
573
|
+
if (params) {
|
|
574
|
+
_this2.setState({
|
|
575
|
+
czkVisible: true
|
|
576
|
+
});
|
|
577
|
+
}
|
|
609
578
|
var brefund = _this2.store.brefund;
|
|
610
579
|
|
|
611
|
-
var value11 = currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.
|
|
580
|
+
var value11 = currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance));
|
|
612
581
|
_this2.setState({
|
|
613
582
|
storageValue: value11
|
|
614
583
|
});
|
|
615
|
-
if (currentMode.
|
|
584
|
+
if (currentMode.storageCardNo) {
|
|
616
585
|
_this2.setState({
|
|
617
|
-
czkValue: currentMode.
|
|
586
|
+
czkValue: currentMode.storageCardNo
|
|
618
587
|
});
|
|
619
588
|
} else {
|
|
620
589
|
_this2.setState({
|
|
@@ -622,86 +591,68 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
622
591
|
});
|
|
623
592
|
}
|
|
624
593
|
}
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
_this2.inputCzkAmount.input
|
|
631
|
-
|
|
594
|
+
if (params) {
|
|
595
|
+
setTimeout(function () {
|
|
596
|
+
if (!currentMode.storageCardNo) {
|
|
597
|
+
_this2.czkInput && _this2.czkInput.input.focus();
|
|
598
|
+
} else {
|
|
599
|
+
if (_this2.inputCzkAmount && _this2.inputCzkAmount.input) {
|
|
600
|
+
_this2.inputCzkAmount.input.focus();
|
|
601
|
+
_this2.inputCzkAmount.input.setSelectionRange(0, _this2.inputCzkAmount.input.value.length);
|
|
602
|
+
}
|
|
632
603
|
}
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
_this2.connectRfCard();
|
|
604
|
+
}, 500);
|
|
605
|
+
}
|
|
636
606
|
};
|
|
637
607
|
|
|
638
|
-
_this2.
|
|
639
|
-
var
|
|
640
|
-
var _enumController$
|
|
608
|
+
_this2.showCzkModal = function () {
|
|
609
|
+
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(id, append) {
|
|
610
|
+
var _enumController$getEn2, PayStyle, _ref2, isInputMember, memberdata1;
|
|
641
611
|
|
|
642
612
|
return _regenerator2.default.wrap(function _callee$(_context) {
|
|
643
613
|
while (1) {
|
|
644
614
|
switch (_context.prev = _context.next) {
|
|
645
615
|
case 0:
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
// Message.error("本单最大可用储值卡结算金额为:"+getFixedNumber(maxamount)+",请使用复合结算!");
|
|
649
|
-
// this.setState({
|
|
650
|
-
// czkVisible: false,
|
|
651
|
-
// });
|
|
652
|
-
// return;
|
|
653
|
-
// }
|
|
654
|
-
_enumController$getEn3 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn3.PayStyle;
|
|
655
|
-
|
|
656
|
-
if (_this2.store.paymode.currentMode.member.id) {
|
|
657
|
-
_context.next = 4;
|
|
658
|
-
break;
|
|
659
|
-
}
|
|
616
|
+
_this2.connectRfCard();
|
|
617
|
+
_enumController$getEn2 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn2.PayStyle;
|
|
660
618
|
|
|
661
|
-
|
|
662
|
-
|
|
619
|
+
_this2.store.setCurrentMode(id, PayStyle.hyczk, append);
|
|
620
|
+
_ref2 = _this2.state || {}, isInputMember = _ref2.isInputMember;
|
|
621
|
+
_context.t0 = isInputMember && _this2.store.paymode.currentMode.memberId;
|
|
663
622
|
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
_context.next = 7;
|
|
623
|
+
if (!_context.t0) {
|
|
624
|
+
_context.next = 9;
|
|
667
625
|
break;
|
|
668
626
|
}
|
|
669
627
|
|
|
670
|
-
|
|
671
|
-
return
|
|
628
|
+
_context.next = 8;
|
|
629
|
+
return _this2.store.updateCurrentMode(_this2.store.paymode.currentMode.memberId);
|
|
672
630
|
|
|
673
|
-
case
|
|
674
|
-
|
|
675
|
-
return mode.paymethodId != _this2.store.paymode.currentMode.paymethodId && mode.paymentType == PayStyle.hyczk && mode.member.id == _this2.store.paymode.currentMode.member.id;
|
|
676
|
-
})) {
|
|
677
|
-
_context.next = 10;
|
|
678
|
-
break;
|
|
679
|
-
}
|
|
631
|
+
case 8:
|
|
632
|
+
_context.t0 = _context.sent;
|
|
680
633
|
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
case 10:
|
|
685
|
-
if (!(_this2.store.bquick && _this2.store.paymode.amount != _this2.store.paymode.currentMode.value)) {
|
|
686
|
-
_context.next = 13;
|
|
687
|
-
break;
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
_message2.default.error("实收金额应等于应收金额。");
|
|
691
|
-
return _context.abrupt('return');
|
|
692
|
-
|
|
693
|
-
case 13:
|
|
634
|
+
case 9:
|
|
635
|
+
memberdata1 = _context.t0;
|
|
694
636
|
|
|
695
637
|
_this2.setState({
|
|
696
|
-
czkVisible:
|
|
697
|
-
storageValue: '0.00',
|
|
698
|
-
czkvalue: null
|
|
638
|
+
czkVisible: true
|
|
699
639
|
});
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
640
|
+
if (memberdata1 && memberdata1.length === 1) {
|
|
641
|
+
_this2.handleCzkMoreData(true);
|
|
642
|
+
_this2.store.handleCzkData(memberdata1[0]);
|
|
643
|
+
} else if (memberdata1 && memberdata1.length >= 1) {
|
|
644
|
+
_this2.setState({
|
|
645
|
+
moreCzkVisible: true,
|
|
646
|
+
memberdata1: memberdata1
|
|
647
|
+
});
|
|
648
|
+
} else {
|
|
649
|
+
_this2.setState({});
|
|
650
|
+
setTimeout(function () {
|
|
651
|
+
_this2.czkInput && _this2.czkInput.input.focus();
|
|
652
|
+
}, 300);
|
|
653
|
+
}
|
|
703
654
|
|
|
704
|
-
case
|
|
655
|
+
case 12:
|
|
705
656
|
case 'end':
|
|
706
657
|
return _context.stop();
|
|
707
658
|
}
|
|
@@ -709,8 +660,141 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
709
660
|
}, _callee, _this3);
|
|
710
661
|
}));
|
|
711
662
|
|
|
712
|
-
return function (_x) {
|
|
713
|
-
return
|
|
663
|
+
return function (_x, _x2) {
|
|
664
|
+
return _ref.apply(this, arguments);
|
|
665
|
+
};
|
|
666
|
+
}();
|
|
667
|
+
|
|
668
|
+
_this2.handleMoreCzkCancel = function () {
|
|
669
|
+
_this2.setState({
|
|
670
|
+
moreCzkVisible: false,
|
|
671
|
+
selectedRowIndex: 0
|
|
672
|
+
});
|
|
673
|
+
setTimeout(function () {
|
|
674
|
+
_this2.czkInput && _this2.czkInput.input.focus();
|
|
675
|
+
}, 300);
|
|
676
|
+
};
|
|
677
|
+
|
|
678
|
+
_this2.setMoreCzkIndex = function (index) {
|
|
679
|
+
_this2.setState({
|
|
680
|
+
selectedRowIndex: index
|
|
681
|
+
});
|
|
682
|
+
};
|
|
683
|
+
|
|
684
|
+
_this2.handleMoreCzkOk = function () {
|
|
685
|
+
var _this2$state = _this2.state,
|
|
686
|
+
memberdata1 = _this2$state.memberdata1,
|
|
687
|
+
selectedRowIndex = _this2$state.selectedRowIndex;
|
|
688
|
+
|
|
689
|
+
_this2.store.paymode.updateCardInfo(memberdata1[selectedRowIndex]);
|
|
690
|
+
_this2.handleCzkMoreData();
|
|
691
|
+
_this2.store.handleCzkData(memberdata1[selectedRowIndex]);
|
|
692
|
+
_this2.setState({
|
|
693
|
+
moreCzkVisible: false,
|
|
694
|
+
selectedRowIndex: 0
|
|
695
|
+
});
|
|
696
|
+
};
|
|
697
|
+
|
|
698
|
+
_this2.handleCzkData = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2() {
|
|
699
|
+
var _enumController$getEn3, PayStyle;
|
|
700
|
+
|
|
701
|
+
return _regenerator2.default.wrap(function _callee2$(_context2) {
|
|
702
|
+
while (1) {
|
|
703
|
+
switch (_context2.prev = _context2.next) {
|
|
704
|
+
case 0:
|
|
705
|
+
_this2.setState({
|
|
706
|
+
isInputMember: false
|
|
707
|
+
});
|
|
708
|
+
_enumController$getEn3 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn3.PayStyle;
|
|
709
|
+
|
|
710
|
+
if (_this2.store.paymode.currentMode.storageCardNo) {
|
|
711
|
+
_context2.next = 5;
|
|
712
|
+
break;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
_context2.next = 5;
|
|
716
|
+
return _this2.store.loadCzk(_this2.czkInput.input.value);
|
|
717
|
+
|
|
718
|
+
case 5:
|
|
719
|
+
if (_this2.store.paymode.currentMode.storageCardNo) {
|
|
720
|
+
_context2.next = 8;
|
|
721
|
+
break;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
_message2.default.error("请录入储值卡!");
|
|
725
|
+
return _context2.abrupt('return');
|
|
726
|
+
|
|
727
|
+
case 8:
|
|
728
|
+
if (!(0, _find3.default)(_this2.store.paymode.thePaymodes, function (mode) {
|
|
729
|
+
return mode.paymethodId != _this2.store.paymode.currentMode.paymethodId && mode.paymentType == PayStyle.hyczk && mode.storageCardNo == _this2.store.paymode.currentMode.storageCardNo;
|
|
730
|
+
})) {
|
|
731
|
+
_context2.next = 11;
|
|
732
|
+
break;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
_message2.default.error("该储值卡已使用。");
|
|
736
|
+
return _context2.abrupt('return');
|
|
737
|
+
|
|
738
|
+
case 11:
|
|
739
|
+
if (!(_this2.store.bquick && _this2.store.paymode.amount != _this2.store.paymode.currentMode.value)) {
|
|
740
|
+
_context2.next = 14;
|
|
741
|
+
break;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
_message2.default.error("实收金额应等于应收金额。");
|
|
745
|
+
return _context2.abrupt('return');
|
|
746
|
+
|
|
747
|
+
case 14:
|
|
748
|
+
|
|
749
|
+
_this2.setState({
|
|
750
|
+
czkVisible: false,
|
|
751
|
+
storageValue: '0.00',
|
|
752
|
+
czkValue: null
|
|
753
|
+
});
|
|
754
|
+
_this2.closeRfCard();
|
|
755
|
+
_this2.store.paymode.calcMemberBalance();
|
|
756
|
+
_this2.handleCzk();
|
|
757
|
+
|
|
758
|
+
case 18:
|
|
759
|
+
case 'end':
|
|
760
|
+
return _context2.stop();
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
}, _callee2, _this3);
|
|
764
|
+
}));
|
|
765
|
+
|
|
766
|
+
_this2.handleCzkOk = function () {
|
|
767
|
+
var _ref4 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(e) {
|
|
768
|
+
var _this2$store$paymode$, walletEnabled, cardTypeEnum, freePaymentPasswordStore, isNeedPassword;
|
|
769
|
+
|
|
770
|
+
return _regenerator2.default.wrap(function _callee3$(_context3) {
|
|
771
|
+
while (1) {
|
|
772
|
+
switch (_context3.prev = _context3.next) {
|
|
773
|
+
case 0:
|
|
774
|
+
// 判断是否有密码
|
|
775
|
+
_this2$store$paymode$ = _this2.store.paymode.currentMode, walletEnabled = _this2$store$paymode$.walletEnabled, cardTypeEnum = _this2$store$paymode$.cardTypeEnum, freePaymentPasswordStore = _this2$store$paymode$.freePaymentPasswordStore, isNeedPassword = _this2$store$paymode$.isNeedPassword;
|
|
776
|
+
|
|
777
|
+
if (cardTypeEnum === 'BALANCE_CARD' && freePaymentPasswordStore) {
|
|
778
|
+
_this2.handleCzkData();
|
|
779
|
+
} else if (cardTypeEnum === 'BALANCE_CARD' && !walletEnabled) {
|
|
780
|
+
_this2.setState({
|
|
781
|
+
showSetPwdModal: true,
|
|
782
|
+
btnDissabled: true
|
|
783
|
+
});
|
|
784
|
+
} else {
|
|
785
|
+
_this2.handleCzkData();
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
case 2:
|
|
789
|
+
case 'end':
|
|
790
|
+
return _context3.stop();
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
}, _callee3, _this3);
|
|
794
|
+
}));
|
|
795
|
+
|
|
796
|
+
return function (_x3) {
|
|
797
|
+
return _ref4.apply(this, arguments);
|
|
714
798
|
};
|
|
715
799
|
}();
|
|
716
800
|
|
|
@@ -722,7 +806,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
722
806
|
_this2.setState({
|
|
723
807
|
czkVisible: false,
|
|
724
808
|
storageValue: '0.00',
|
|
725
|
-
|
|
809
|
+
czkValue: null
|
|
726
810
|
});
|
|
727
811
|
_this2.closeRfCard();
|
|
728
812
|
_keyboard2.default.close();
|
|
@@ -735,23 +819,24 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
735
819
|
});
|
|
736
820
|
};
|
|
737
821
|
|
|
738
|
-
_this2.handleSetModal = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
739
|
-
var _this2$
|
|
822
|
+
_this2.handleSetModal = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
|
|
823
|
+
var _this2$state2, newPass, newPassConfirm, isInputMember, updataMemberInfo, result, cardTypeEnum, resp;
|
|
740
824
|
|
|
741
|
-
return _regenerator2.default.wrap(function
|
|
825
|
+
return _regenerator2.default.wrap(function _callee4$(_context4) {
|
|
742
826
|
while (1) {
|
|
743
|
-
switch (
|
|
827
|
+
switch (_context4.prev = _context4.next) {
|
|
744
828
|
case 0:
|
|
745
|
-
_this2$
|
|
829
|
+
_this2$state2 = _this2.state, newPass = _this2$state2.newPass, newPassConfirm = _this2$state2.newPassConfirm, isInputMember = _this2$state2.isInputMember;
|
|
746
830
|
updataMemberInfo = _this2.props.updataMemberInfo;
|
|
747
|
-
|
|
831
|
+
_context4.next = 4;
|
|
748
832
|
return _this2.store.queryPwd(newPass, newPassConfirm);
|
|
749
833
|
|
|
750
834
|
case 4:
|
|
751
|
-
result =
|
|
835
|
+
result = _context4.sent;
|
|
836
|
+
cardTypeEnum = _this2.store.paymode.currentMode.cardTypeEnum;
|
|
752
837
|
|
|
753
838
|
if (!result) {
|
|
754
|
-
|
|
839
|
+
_context4.next = 18;
|
|
755
840
|
break;
|
|
756
841
|
}
|
|
757
842
|
|
|
@@ -762,42 +847,68 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
762
847
|
newPassConfirm: ''
|
|
763
848
|
});
|
|
764
849
|
_message2.default.warn('设置成功');
|
|
765
|
-
|
|
766
|
-
|
|
850
|
+
_this2.handleCzkData();
|
|
767
851
|
setTimeout(function () {
|
|
768
|
-
if (
|
|
769
|
-
_this2.
|
|
770
|
-
|
|
771
|
-
if (_this2.inputCzkAmount && _this2.inputCzkAmount.input) {
|
|
772
|
-
_this2.inputCzkAmount.input.focus();
|
|
773
|
-
_this2.inputCzkAmount.input.setSelectionRange(0, _this2.inputCzkAmount.input.value.length);
|
|
774
|
-
}
|
|
852
|
+
if (_this2.inputCzkAmount && _this2.inputCzkAmount.input) {
|
|
853
|
+
_this2.inputCzkAmount.input.focus();
|
|
854
|
+
_this2.inputCzkAmount.input.setSelectionRange(0, _this2.inputCzkAmount.input.value.length);
|
|
775
855
|
}
|
|
776
856
|
}, 350);
|
|
777
|
-
|
|
778
|
-
|
|
857
|
+
|
|
858
|
+
if (!(isInputMember && _this2.store.member.ID)) {
|
|
859
|
+
_context4.next = 16;
|
|
860
|
+
break;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
_context4.next = 14;
|
|
779
864
|
return _this2.store.updateMemberInfo(_this2.store);
|
|
780
865
|
|
|
781
|
-
case
|
|
782
|
-
resp =
|
|
866
|
+
case 14:
|
|
867
|
+
resp = _context4.sent;
|
|
783
868
|
|
|
784
869
|
updataMemberInfo(resp);
|
|
785
870
|
|
|
786
|
-
case
|
|
871
|
+
case 16:
|
|
872
|
+
if (cardTypeEnum === 'BALANCE_CARD') {
|
|
873
|
+
_this2.store.paymode.updateCardInfo();
|
|
874
|
+
}
|
|
875
|
+
_this2.setState({
|
|
876
|
+
isInputMember: false
|
|
877
|
+
});
|
|
878
|
+
|
|
879
|
+
case 18:
|
|
787
880
|
case 'end':
|
|
788
|
-
return
|
|
881
|
+
return _context4.stop();
|
|
789
882
|
}
|
|
790
883
|
}
|
|
791
|
-
},
|
|
884
|
+
}, _callee4, _this3);
|
|
792
885
|
}));
|
|
793
886
|
|
|
887
|
+
_this2.onPressEnterCzk = function (field) {
|
|
888
|
+
var _ref6 = _this2.state || {},
|
|
889
|
+
_ref6$newPass = _ref6.newPass,
|
|
890
|
+
newPass = _ref6$newPass === undefined ? '' : _ref6$newPass,
|
|
891
|
+
_ref6$newPassConfirm = _ref6.newPassConfirm,
|
|
892
|
+
newPassConfirm = _ref6$newPassConfirm === undefined ? '' : _ref6$newPassConfirm;
|
|
893
|
+
|
|
894
|
+
if (field === 'newPass' && newPass.length === 6) {
|
|
895
|
+
_this2.inputConfirmAmount.input.focus();
|
|
896
|
+
}
|
|
897
|
+
if (field === 'newPassConfirm' && newPassConfirm.length === 6 && newPass.length === 6 && newPass === newPassConfirm) {
|
|
898
|
+
_this2.handleSetModal();
|
|
899
|
+
}
|
|
900
|
+
};
|
|
901
|
+
|
|
794
902
|
_this2.setPwdValue = function (field, value) {
|
|
903
|
+
if (!/^[0-9]*$/.test(value)) {
|
|
904
|
+
return;
|
|
905
|
+
}
|
|
795
906
|
_this2.setState((0, _defineProperty3.default)({}, field, value), function () {
|
|
796
|
-
var
|
|
797
|
-
|
|
798
|
-
newPass =
|
|
799
|
-
|
|
800
|
-
newPassConfirm =
|
|
907
|
+
var _ref7 = _this2.state || {},
|
|
908
|
+
_ref7$newPass = _ref7.newPass,
|
|
909
|
+
newPass = _ref7$newPass === undefined ? '' : _ref7$newPass,
|
|
910
|
+
_ref7$newPassConfirm = _ref7.newPassConfirm,
|
|
911
|
+
newPassConfirm = _ref7$newPassConfirm === undefined ? '' : _ref7$newPassConfirm;
|
|
801
912
|
|
|
802
913
|
if (newPassConfirm.length === 6 && newPass.length === 6 && newPass === newPassConfirm) {
|
|
803
914
|
_this2.setState({
|
|
@@ -808,15 +919,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
808
919
|
};
|
|
809
920
|
|
|
810
921
|
_this2.handleBlur = function (field) {
|
|
811
|
-
var
|
|
812
|
-
|
|
813
|
-
newPass =
|
|
814
|
-
|
|
815
|
-
newPassConfirm =
|
|
922
|
+
var _ref8 = _this2.state || {},
|
|
923
|
+
_ref8$newPass = _ref8.newPass,
|
|
924
|
+
newPass = _ref8$newPass === undefined ? '' : _ref8$newPass,
|
|
925
|
+
_ref8$newPassConfirm = _ref8.newPassConfirm,
|
|
926
|
+
newPassConfirm = _ref8$newPassConfirm === undefined ? '' : _ref8$newPassConfirm;
|
|
816
927
|
|
|
817
928
|
setTimeout(function () {
|
|
818
|
-
var
|
|
819
|
-
showSetPwdModal =
|
|
929
|
+
var _ref9 = _this2.state || {},
|
|
930
|
+
showSetPwdModal = _ref9.showSetPwdModal;
|
|
820
931
|
|
|
821
932
|
if (!showSetPwdModal) return;
|
|
822
933
|
if (field === 'newPass' && newPass.length < 6) {
|
|
@@ -873,8 +984,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
873
984
|
|
|
874
985
|
// TODO: 测试优惠券支付
|
|
875
986
|
|
|
876
|
-
var
|
|
877
|
-
isNewRetailBCPos =
|
|
987
|
+
var _ref10 = _mutantsUtil.platform || {},
|
|
988
|
+
isNewRetailBCPos = _ref10.isNewRetailBCPos;
|
|
878
989
|
|
|
879
990
|
if (isNewRetailBCPos && !_this2.store.paymode.currentMode.boriginReturn) {
|
|
880
991
|
_this2.store.getCouponList();
|
|
@@ -940,7 +1051,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
940
1051
|
setTimeout(function () {
|
|
941
1052
|
_this2.inputJfdxAmount.input.focus();
|
|
942
1053
|
_this2.inputJfdxAmount.input.setSelectionRange(0, _this2.inputJfdxAmount.input.value.length);
|
|
943
|
-
},
|
|
1054
|
+
}, 300);
|
|
944
1055
|
};
|
|
945
1056
|
|
|
946
1057
|
_this2.handleJfdxOk = function (e) {
|
|
@@ -958,8 +1069,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
958
1069
|
};
|
|
959
1070
|
|
|
960
1071
|
_this2.checkOfflineEnable = function (paymode, key) {
|
|
961
|
-
var
|
|
962
|
-
paymodes =
|
|
1072
|
+
var _ref11 = paymode || {},
|
|
1073
|
+
paymodes = _ref11.paymodes;
|
|
963
1074
|
|
|
964
1075
|
var isOffline = _mutantsMicrofx.stores.offlineSys.isOffline;
|
|
965
1076
|
|
|
@@ -990,7 +1101,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
990
1101
|
paymode.currentMode = null;
|
|
991
1102
|
switch (key) {
|
|
992
1103
|
case PayStyle.hyczk:
|
|
993
|
-
_this2.
|
|
1104
|
+
_this2.setState({
|
|
1105
|
+
isInputMember: true
|
|
1106
|
+
}, function () {
|
|
1107
|
+
_this2.showCzkModal(-1);
|
|
1108
|
+
});
|
|
994
1109
|
break;
|
|
995
1110
|
case PayStyle.jfdx:
|
|
996
1111
|
_this2.showJfdxModal(-1);
|
|
@@ -1099,7 +1214,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1099
1214
|
boriginReturn = _this2$store3.boriginReturn;
|
|
1100
1215
|
var noAlreadyWarn = _this2.state.noAlreadyWarn;
|
|
1101
1216
|
|
|
1102
|
-
|
|
1103
1217
|
if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(key)) return false;
|
|
1104
1218
|
|
|
1105
1219
|
if (_this2.checkModeDisabled(key, brefund, boriginReturn)) {
|
|
@@ -1169,12 +1283,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1169
1283
|
}
|
|
1170
1284
|
};
|
|
1171
1285
|
|
|
1172
|
-
_this2.setCurrentFocusAndAddPay = function (key) {
|
|
1286
|
+
_this2.setCurrentFocusAndAddPay = function (key, payId) {
|
|
1173
1287
|
_this2.store.changeFocusAndAddPay(key);
|
|
1174
1288
|
if (_this2.store.bquick) {
|
|
1175
1289
|
_this2.handleSettle("quickPay");
|
|
1176
1290
|
} else {
|
|
1177
|
-
_this2.setFocusAndSelection(key);
|
|
1291
|
+
_this2.setFocusAndSelection(key, payId);
|
|
1178
1292
|
}
|
|
1179
1293
|
};
|
|
1180
1294
|
|
|
@@ -1205,7 +1319,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1205
1319
|
PayStyle = _enumController$getEn13.PayStyle;
|
|
1206
1320
|
|
|
1207
1321
|
var reg = /^[\d.]+$/g;
|
|
1208
|
-
if (_this2.store.paymode.currentMode.paymentType === PayStyle.hyczk) {
|
|
1322
|
+
if (_this2.store.paymode.currentMode.paymentType === PayStyle.hyczk || _this2.store.paymode.currentMode.paymentType === PayStyle.jfdx) {
|
|
1209
1323
|
if (!val) {
|
|
1210
1324
|
_this2.setState({
|
|
1211
1325
|
storageValue: val
|
|
@@ -1235,20 +1349,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1235
1349
|
}
|
|
1236
1350
|
}
|
|
1237
1351
|
}
|
|
1238
|
-
|
|
1239
|
-
var value = val;
|
|
1240
|
-
var amountMaxLength = parseInt(_this2.props.initData["AmountMaxLength"] || 10);
|
|
1241
|
-
if (isNaN(val) && val !== '-') {
|
|
1242
|
-
value = _this2._val;
|
|
1243
|
-
} else if (!_this2.store.brefund && !isNaN(val) && parseFloat(val) <= 0) {
|
|
1244
|
-
value = _this2._val;
|
|
1245
|
-
} else if (value.length > amountMaxLength) {
|
|
1246
|
-
value = _this2._val;
|
|
1247
|
-
} else {
|
|
1248
|
-
_this2._val = val;
|
|
1249
|
-
}
|
|
1250
|
-
_this2[_this2.inputkey].input.value = value;
|
|
1251
|
-
_this2.store.paymode.setCurrentModeValue(value, max);
|
|
1352
|
+
_this2.store.paymode.setCurrentModeValue(val, max);
|
|
1252
1353
|
};
|
|
1253
1354
|
|
|
1254
1355
|
_this2.onBlur = function (index, e) {
|
|
@@ -1307,8 +1408,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1307
1408
|
return;
|
|
1308
1409
|
}
|
|
1309
1410
|
|
|
1310
|
-
var
|
|
1311
|
-
isNewRetailBCPos =
|
|
1411
|
+
var _ref12 = _mutantsUtil.platform || {},
|
|
1412
|
+
isNewRetailBCPos = _ref12.isNewRetailBCPos;
|
|
1312
1413
|
|
|
1313
1414
|
if (isNewRetailBCPos) {
|
|
1314
1415
|
_this2.store.paymode.calcDjqCheckValue(q, _this2.store.dto);
|
|
@@ -1343,27 +1444,38 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1343
1444
|
if (_this2.czkdebounced) {
|
|
1344
1445
|
return;
|
|
1345
1446
|
}
|
|
1346
|
-
_this2.czkdebounced = (0, _debounce3.default)((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
1347
|
-
|
|
1447
|
+
_this2.czkdebounced = (0, _debounce3.default)((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
|
|
1448
|
+
var memberdata1;
|
|
1449
|
+
return _regenerator2.default.wrap(function _callee5$(_context5) {
|
|
1348
1450
|
while (1) {
|
|
1349
|
-
switch (
|
|
1451
|
+
switch (_context5.prev = _context5.next) {
|
|
1350
1452
|
case 0:
|
|
1351
|
-
|
|
1453
|
+
_context5.next = 2;
|
|
1352
1454
|
return _this2.store.loadCzk(v);
|
|
1353
1455
|
|
|
1354
1456
|
case 2:
|
|
1355
|
-
|
|
1457
|
+
memberdata1 = _context5.sent;
|
|
1458
|
+
|
|
1459
|
+
if (memberdata1 && memberdata1.length === 1) {
|
|
1460
|
+
if (_this2.store.paymode.currentMode.storageCardNo) {
|
|
1461
|
+
_this2.setState({
|
|
1462
|
+
czkValue: _this2.store.paymode.currentMode.storageCardNo
|
|
1463
|
+
});
|
|
1464
|
+
}
|
|
1465
|
+
} else if (memberdata1 && memberdata1.length >= 1) {
|
|
1356
1466
|
_this2.setState({
|
|
1357
|
-
|
|
1467
|
+
czkVisible: true,
|
|
1468
|
+
moreCzkVisible: true,
|
|
1469
|
+
memberdata1: memberdata1
|
|
1358
1470
|
});
|
|
1359
1471
|
}
|
|
1360
1472
|
|
|
1361
|
-
case
|
|
1473
|
+
case 4:
|
|
1362
1474
|
case 'end':
|
|
1363
|
-
return
|
|
1475
|
+
return _context5.stop();
|
|
1364
1476
|
}
|
|
1365
1477
|
}
|
|
1366
|
-
},
|
|
1478
|
+
}, _callee5, _this3);
|
|
1367
1479
|
})), 1000, {
|
|
1368
1480
|
'leading': true,
|
|
1369
1481
|
'trailing': false
|
|
@@ -1531,13 +1643,21 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1531
1643
|
return null;
|
|
1532
1644
|
};
|
|
1533
1645
|
|
|
1534
|
-
_this2.setFocusAndSelection = function (key) {
|
|
1646
|
+
_this2.setFocusAndSelection = function (key, payId) {
|
|
1535
1647
|
var that = _this2;
|
|
1536
1648
|
var paymode = _this2.store.paymode;
|
|
1537
1649
|
|
|
1650
|
+
var _enumController$getEn19 = _mutantsUtil.enumController.getEnumOj(),
|
|
1651
|
+
PayStyle = _enumController$getEn19.PayStyle;
|
|
1652
|
+
|
|
1538
1653
|
var themode = (0, _find3.default)(paymode.thePaymodes, function (mode) {
|
|
1539
1654
|
return mode.paymentType === key;
|
|
1540
1655
|
});
|
|
1656
|
+
if (key === PayStyle.hyczk) {
|
|
1657
|
+
themode = (0, _find3.default)(paymode.thePaymodes, function (mode) {
|
|
1658
|
+
return mode.paymethodId === payId;
|
|
1659
|
+
});
|
|
1660
|
+
}
|
|
1541
1661
|
var index = themode && themode.paymethodId || -1;
|
|
1542
1662
|
if (index !== -1) {
|
|
1543
1663
|
setTimeout(function () {
|
|
@@ -1552,11 +1672,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1552
1672
|
}
|
|
1553
1673
|
};
|
|
1554
1674
|
|
|
1555
|
-
_this2.settleUnReturn = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
1675
|
+
_this2.settleUnReturn = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7() {
|
|
1556
1676
|
var that;
|
|
1557
|
-
return _regenerator2.default.wrap(function
|
|
1677
|
+
return _regenerator2.default.wrap(function _callee7$(_context7) {
|
|
1558
1678
|
while (1) {
|
|
1559
|
-
switch (
|
|
1679
|
+
switch (_context7.prev = _context7.next) {
|
|
1560
1680
|
case 0:
|
|
1561
1681
|
that = _this2;
|
|
1562
1682
|
|
|
@@ -1579,18 +1699,18 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1579
1699
|
onOk: function onOk() {
|
|
1580
1700
|
var _this4 = this;
|
|
1581
1701
|
|
|
1582
|
-
return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
1702
|
+
return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6() {
|
|
1583
1703
|
var result;
|
|
1584
|
-
return _regenerator2.default.wrap(function
|
|
1704
|
+
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
|
1585
1705
|
while (1) {
|
|
1586
|
-
switch (
|
|
1706
|
+
switch (_context6.prev = _context6.next) {
|
|
1587
1707
|
case 0:
|
|
1588
1708
|
window.__queryingModal = (0, _utils.openQueryingModal)();
|
|
1589
|
-
|
|
1709
|
+
_context6.next = 3;
|
|
1590
1710
|
return that.store.querySettleResult();
|
|
1591
1711
|
|
|
1592
1712
|
case 3:
|
|
1593
|
-
result =
|
|
1713
|
+
result = _context6.sent;
|
|
1594
1714
|
|
|
1595
1715
|
setTimeout(function () {
|
|
1596
1716
|
if (window.__queryingModal) {
|
|
@@ -1598,34 +1718,34 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1598
1718
|
window.__queryingModal = null;
|
|
1599
1719
|
}
|
|
1600
1720
|
}, 0);
|
|
1601
|
-
|
|
1602
|
-
|
|
1721
|
+
_context6.t0 = result.Flag;
|
|
1722
|
+
_context6.next = _context6.t0 === "0" ? 8 : _context6.t0 === "1" ? 11 : _context6.t0 === "2" ? 13 : 15;
|
|
1603
1723
|
break;
|
|
1604
1724
|
|
|
1605
1725
|
case 8:
|
|
1606
1726
|
//成功
|
|
1607
1727
|
that.store.setDtoID(result.ID);
|
|
1608
1728
|
that.settleSuccess();
|
|
1609
|
-
return
|
|
1729
|
+
return _context6.abrupt('break', 15);
|
|
1610
1730
|
|
|
1611
1731
|
case 11:
|
|
1612
1732
|
//处理中
|
|
1613
1733
|
that.settleUnReturn();
|
|
1614
1734
|
// Message.info("结算正在处理中,请稍后再次查询。");
|
|
1615
|
-
return
|
|
1735
|
+
return _context6.abrupt('break', 15);
|
|
1616
1736
|
|
|
1617
1737
|
case 13:
|
|
1618
1738
|
//失败
|
|
1619
1739
|
_message2.default.info('\u7ED3\u7B97\u5931\u8D25\uFF0C\u539F\u56E0:' + result.Message + '\u3002');
|
|
1620
1740
|
// that.settleCanceled();
|
|
1621
|
-
return
|
|
1741
|
+
return _context6.abrupt('break', 15);
|
|
1622
1742
|
|
|
1623
1743
|
case 15:
|
|
1624
1744
|
case 'end':
|
|
1625
|
-
return
|
|
1745
|
+
return _context6.stop();
|
|
1626
1746
|
}
|
|
1627
1747
|
}
|
|
1628
|
-
},
|
|
1748
|
+
}, _callee6, _this4);
|
|
1629
1749
|
}))();
|
|
1630
1750
|
},
|
|
1631
1751
|
onCancel: function onCancel() {
|
|
@@ -1635,10 +1755,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1635
1755
|
|
|
1636
1756
|
case 2:
|
|
1637
1757
|
case 'end':
|
|
1638
|
-
return
|
|
1758
|
+
return _context7.stop();
|
|
1639
1759
|
}
|
|
1640
1760
|
}
|
|
1641
|
-
},
|
|
1761
|
+
}, _callee7, _this3);
|
|
1642
1762
|
}));
|
|
1643
1763
|
|
|
1644
1764
|
_this2.settleCanceled = function () {
|
|
@@ -1647,15 +1767,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1647
1767
|
_this2.cancelState();
|
|
1648
1768
|
};
|
|
1649
1769
|
|
|
1650
|
-
_this2.settleSuccess = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
1651
|
-
var _enumController$
|
|
1770
|
+
_this2.settleSuccess = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
|
|
1771
|
+
var _enumController$getEn20, PayStyle, _this2$store$paymode, amount, received, thePaymodes, IdbusiType, charge, openCashBox, _this, showTwoScreen, getSettleGift, type, resp1;
|
|
1652
1772
|
|
|
1653
|
-
return _regenerator2.default.wrap(function
|
|
1773
|
+
return _regenerator2.default.wrap(function _callee8$(_context8) {
|
|
1654
1774
|
while (1) {
|
|
1655
|
-
switch (
|
|
1775
|
+
switch (_context8.prev = _context8.next) {
|
|
1656
1776
|
case 0:
|
|
1657
1777
|
//提示成功
|
|
1658
|
-
_enumController$
|
|
1778
|
+
_enumController$getEn20 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn20.PayStyle;
|
|
1659
1779
|
_this2$store$paymode = _this2.store.paymode, amount = _this2$store$paymode.amount, received = _this2$store$paymode.received, thePaymodes = _this2$store$paymode.thePaymodes;
|
|
1660
1780
|
IdbusiType = _this2.store.dto.IdbusiType;
|
|
1661
1781
|
charge = _this2.store.paymode.charge;
|
|
@@ -1713,22 +1833,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1713
1833
|
resp1 = false;
|
|
1714
1834
|
|
|
1715
1835
|
if (!(type !== 1)) {
|
|
1716
|
-
|
|
1836
|
+
_context8.next = 20;
|
|
1717
1837
|
break;
|
|
1718
1838
|
}
|
|
1719
1839
|
|
|
1720
|
-
|
|
1721
|
-
|
|
1840
|
+
_context8.prev = 11;
|
|
1841
|
+
_context8.next = 14;
|
|
1722
1842
|
return getSettleGift();
|
|
1723
1843
|
|
|
1724
1844
|
case 14:
|
|
1725
|
-
resp1 =
|
|
1726
|
-
|
|
1845
|
+
resp1 = _context8.sent;
|
|
1846
|
+
_context8.next = 20;
|
|
1727
1847
|
break;
|
|
1728
1848
|
|
|
1729
1849
|
case 17:
|
|
1730
|
-
|
|
1731
|
-
|
|
1850
|
+
_context8.prev = 17;
|
|
1851
|
+
_context8.t0 = _context8['catch'](11);
|
|
1732
1852
|
|
|
1733
1853
|
console.log("获取支付礼包getSettleGift失败");
|
|
1734
1854
|
|
|
@@ -1766,23 +1886,23 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1766
1886
|
|
|
1767
1887
|
case 21:
|
|
1768
1888
|
case 'end':
|
|
1769
|
-
return
|
|
1889
|
+
return _context8.stop();
|
|
1770
1890
|
}
|
|
1771
1891
|
}
|
|
1772
|
-
},
|
|
1892
|
+
}, _callee8, _this3, [[11, 17]]);
|
|
1773
1893
|
}));
|
|
1774
1894
|
|
|
1775
1895
|
_this2.handleGuestShow = function (dtype, value) {
|
|
1776
1896
|
if (_this2.hasElectron === false) return;
|
|
1777
1897
|
var dt = _mutantsMicrofx.localStore.get('portsetting_hardSet') || [];
|
|
1778
1898
|
|
|
1779
|
-
var
|
|
1780
|
-
guestshow_enable =
|
|
1781
|
-
guestshow_clear =
|
|
1782
|
-
guestshow_welcome =
|
|
1783
|
-
guestshow_collect =
|
|
1784
|
-
guestshow_refund =
|
|
1785
|
-
guestshow_change =
|
|
1899
|
+
var _ref16 = dt || {},
|
|
1900
|
+
guestshow_enable = _ref16.guestshow_enable,
|
|
1901
|
+
guestshow_clear = _ref16.guestshow_clear,
|
|
1902
|
+
guestshow_welcome = _ref16.guestshow_welcome,
|
|
1903
|
+
guestshow_collect = _ref16.guestshow_collect,
|
|
1904
|
+
guestshow_refund = _ref16.guestshow_refund,
|
|
1905
|
+
guestshow_change = _ref16.guestshow_change;
|
|
1786
1906
|
|
|
1787
1907
|
var hasSuccess = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('portsetting_hardSet_isSuccess');
|
|
1788
1908
|
if (!guestshow_enable || !!guestshow_enable && hasSuccess == '0') return;
|
|
@@ -1817,124 +1937,114 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1817
1937
|
};
|
|
1818
1938
|
|
|
1819
1939
|
_this2.handleSettle = function () {
|
|
1820
|
-
var
|
|
1940
|
+
var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(args) {
|
|
1821
1941
|
var handleUserInputs = function () {
|
|
1822
|
-
var
|
|
1942
|
+
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
|
|
1823
1943
|
var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
|
|
1824
1944
|
|
|
1825
|
-
return _regenerator2.default.wrap(function
|
|
1945
|
+
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
|
1826
1946
|
while (1) {
|
|
1827
|
-
switch (
|
|
1947
|
+
switch (_context10.prev = _context10.next) {
|
|
1828
1948
|
case 0:
|
|
1829
1949
|
results = [];
|
|
1830
|
-
|
|
1950
|
+
_context10.prev = 1;
|
|
1831
1951
|
_iteratorNormalCompletion = true;
|
|
1832
1952
|
_didIteratorError = false;
|
|
1833
1953
|
_iteratorError = undefined;
|
|
1834
|
-
|
|
1954
|
+
_context10.prev = 5;
|
|
1835
1955
|
_iterator = (0, _getIterator3.default)(promises);
|
|
1836
1956
|
|
|
1837
1957
|
case 7:
|
|
1838
1958
|
if (_iteratorNormalCompletion = (_step = _iterator.next()).done) {
|
|
1839
|
-
|
|
1959
|
+
_context10.next = 16;
|
|
1840
1960
|
break;
|
|
1841
1961
|
}
|
|
1842
1962
|
|
|
1843
1963
|
p = _step.value;
|
|
1844
|
-
|
|
1964
|
+
_context10.next = 11;
|
|
1845
1965
|
return p;
|
|
1846
1966
|
|
|
1847
1967
|
case 11:
|
|
1848
|
-
_result =
|
|
1968
|
+
_result = _context10.sent;
|
|
1849
1969
|
|
|
1850
1970
|
results.push(_result);
|
|
1851
1971
|
|
|
1852
1972
|
case 13:
|
|
1853
1973
|
_iteratorNormalCompletion = true;
|
|
1854
|
-
|
|
1974
|
+
_context10.next = 7;
|
|
1855
1975
|
break;
|
|
1856
1976
|
|
|
1857
1977
|
case 16:
|
|
1858
|
-
|
|
1978
|
+
_context10.next = 22;
|
|
1859
1979
|
break;
|
|
1860
1980
|
|
|
1861
1981
|
case 18:
|
|
1862
|
-
|
|
1863
|
-
|
|
1982
|
+
_context10.prev = 18;
|
|
1983
|
+
_context10.t0 = _context10['catch'](5);
|
|
1864
1984
|
_didIteratorError = true;
|
|
1865
|
-
_iteratorError =
|
|
1985
|
+
_iteratorError = _context10.t0;
|
|
1866
1986
|
|
|
1867
1987
|
case 22:
|
|
1868
|
-
|
|
1869
|
-
|
|
1988
|
+
_context10.prev = 22;
|
|
1989
|
+
_context10.prev = 23;
|
|
1870
1990
|
|
|
1871
1991
|
if (!_iteratorNormalCompletion && _iterator.return) {
|
|
1872
1992
|
_iterator.return();
|
|
1873
1993
|
}
|
|
1874
1994
|
|
|
1875
1995
|
case 25:
|
|
1876
|
-
|
|
1996
|
+
_context10.prev = 25;
|
|
1877
1997
|
|
|
1878
1998
|
if (!_didIteratorError) {
|
|
1879
|
-
|
|
1999
|
+
_context10.next = 28;
|
|
1880
2000
|
break;
|
|
1881
2001
|
}
|
|
1882
2002
|
|
|
1883
2003
|
throw _iteratorError;
|
|
1884
2004
|
|
|
1885
2005
|
case 28:
|
|
1886
|
-
return
|
|
2006
|
+
return _context10.finish(25);
|
|
1887
2007
|
|
|
1888
2008
|
case 29:
|
|
1889
|
-
return
|
|
2009
|
+
return _context10.finish(22);
|
|
1890
2010
|
|
|
1891
2011
|
case 30:
|
|
1892
2012
|
window.__loadingModal = (0, _utils.openLoadingModal)();
|
|
1893
|
-
|
|
2013
|
+
_context10.next = 33;
|
|
1894
2014
|
return commit(results);
|
|
1895
2015
|
|
|
1896
2016
|
case 33:
|
|
1897
|
-
|
|
2017
|
+
_context10.next = 37;
|
|
1898
2018
|
break;
|
|
1899
2019
|
|
|
1900
2020
|
case 35:
|
|
1901
|
-
|
|
1902
|
-
|
|
2021
|
+
_context10.prev = 35;
|
|
2022
|
+
_context10.t1 = _context10['catch'](1);
|
|
1903
2023
|
|
|
1904
2024
|
case 37:
|
|
1905
2025
|
case 'end':
|
|
1906
|
-
return
|
|
2026
|
+
return _context10.stop();
|
|
1907
2027
|
}
|
|
1908
2028
|
}
|
|
1909
|
-
},
|
|
2029
|
+
}, _callee10, this, [[1, 35], [5, 18, 22, 30], [23,, 25, 29]]);
|
|
1910
2030
|
}));
|
|
1911
2031
|
|
|
1912
|
-
return function handleUserInputs(
|
|
1913
|
-
return
|
|
2032
|
+
return function handleUserInputs(_x6) {
|
|
2033
|
+
return _ref19.apply(this, arguments);
|
|
1914
2034
|
};
|
|
1915
2035
|
}();
|
|
1916
2036
|
|
|
1917
|
-
var _enumController$
|
|
2037
|
+
var _enumController$getEn21, PayStyle, _this2$store6, paymode, brefund, boriginReturn, newStyle, isQuickPay, that, status, zeromode, promises, thePaymodes, quickmode, commit;
|
|
1918
2038
|
|
|
1919
|
-
return _regenerator2.default.wrap(function
|
|
2039
|
+
return _regenerator2.default.wrap(function _callee11$(_context11) {
|
|
1920
2040
|
while (1) {
|
|
1921
|
-
switch (
|
|
2041
|
+
switch (_context11.prev = _context11.next) {
|
|
1922
2042
|
case 0:
|
|
1923
2043
|
_this2.setState({
|
|
1924
2044
|
settleDisabled: true
|
|
1925
2045
|
});
|
|
1926
2046
|
console.log("settlement.handleSettle开始执行,参数:", +args);
|
|
1927
|
-
|
|
1928
|
-
// res(args);
|
|
1929
|
-
// });
|
|
1930
|
-
//
|
|
1931
|
-
// const testAsync = async (p) => {
|
|
1932
|
-
// let result = await p;
|
|
1933
|
-
// console.log(result);
|
|
1934
|
-
// }
|
|
1935
|
-
//
|
|
1936
|
-
// testAsync(p);
|
|
1937
|
-
_enumController$getEn20 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn20.PayStyle;
|
|
2047
|
+
_enumController$getEn21 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn21.PayStyle;
|
|
1938
2048
|
_this2$store6 = _this2.store, paymode = _this2$store6.paymode, brefund = _this2$store6.brefund, boriginReturn = _this2$store6.boriginReturn, newStyle = _this2$store6.newStyle;
|
|
1939
2049
|
isQuickPay = args === 'quickPay';
|
|
1940
2050
|
that = _this2;
|
|
@@ -1950,7 +2060,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1950
2060
|
});
|
|
1951
2061
|
|
|
1952
2062
|
if (!(that.checkCharge() && Math.abs(paymode.receivable) > that.props.initData("posChangeUpperAmount"))) {
|
|
1953
|
-
|
|
2063
|
+
_context11.next = 13;
|
|
1954
2064
|
break;
|
|
1955
2065
|
}
|
|
1956
2066
|
|
|
@@ -1958,11 +2068,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1958
2068
|
_this2.setState({
|
|
1959
2069
|
settleDisabled: false
|
|
1960
2070
|
});
|
|
1961
|
-
return
|
|
2071
|
+
return _context11.abrupt('return');
|
|
1962
2072
|
|
|
1963
2073
|
case 13:
|
|
1964
2074
|
if (!(args !== "zero" && !newStyle)) {
|
|
1965
|
-
|
|
2075
|
+
_context11.next = 19;
|
|
1966
2076
|
break;
|
|
1967
2077
|
}
|
|
1968
2078
|
|
|
@@ -1971,7 +2081,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1971
2081
|
});
|
|
1972
2082
|
|
|
1973
2083
|
if (!zeromode) {
|
|
1974
|
-
|
|
2084
|
+
_context11.next = 19;
|
|
1975
2085
|
break;
|
|
1976
2086
|
}
|
|
1977
2087
|
|
|
@@ -1979,7 +2089,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1979
2089
|
settleDisabled: false
|
|
1980
2090
|
});
|
|
1981
2091
|
_message2.default.error(zeromode.name + ' 的结算金额为零,不可以结算。');
|
|
1982
|
-
return
|
|
2092
|
+
return _context11.abrupt('return');
|
|
1983
2093
|
|
|
1984
2094
|
case 19:
|
|
1985
2095
|
promises = [];
|
|
@@ -1988,14 +2098,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1988
2098
|
}) : paymode.thePaymodes, 'orderBy');
|
|
1989
2099
|
|
|
1990
2100
|
if (!isQuickPay) {
|
|
1991
|
-
|
|
2101
|
+
_context11.next = 27;
|
|
1992
2102
|
break;
|
|
1993
2103
|
}
|
|
1994
2104
|
|
|
1995
2105
|
quickmode = thePaymodes[0];
|
|
1996
2106
|
|
|
1997
2107
|
if (!_this2.checkModeDisabled(quickmode.paymentType, brefund, boriginReturn)) {
|
|
1998
|
-
|
|
2108
|
+
_context11.next = 27;
|
|
1999
2109
|
break;
|
|
2000
2110
|
}
|
|
2001
2111
|
|
|
@@ -2003,7 +2113,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2003
2113
|
settleDisabled: false
|
|
2004
2114
|
});
|
|
2005
2115
|
_message2.default.error('退款不能使用' + quickmode.name + '结算,请使用其他结算方式!');
|
|
2006
|
-
return
|
|
2116
|
+
return _context11.abrupt('return');
|
|
2007
2117
|
|
|
2008
2118
|
case 27:
|
|
2009
2119
|
(0, _forEach3.default)(thePaymodes, function (mode) {
|
|
@@ -2013,27 +2123,27 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2013
2123
|
});
|
|
2014
2124
|
|
|
2015
2125
|
commit = function () {
|
|
2016
|
-
var
|
|
2126
|
+
var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(values) {
|
|
2017
2127
|
var result;
|
|
2018
|
-
return _regenerator2.default.wrap(function
|
|
2128
|
+
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
|
2019
2129
|
while (1) {
|
|
2020
|
-
switch (
|
|
2130
|
+
switch (_context9.prev = _context9.next) {
|
|
2021
2131
|
case 0:
|
|
2022
|
-
|
|
2132
|
+
_context9.next = 2;
|
|
2023
2133
|
return _this2.store.commit(_this2.props.bTest);
|
|
2024
2134
|
|
|
2025
2135
|
case 2:
|
|
2026
|
-
result =
|
|
2136
|
+
result = _context9.sent;
|
|
2027
2137
|
|
|
2028
2138
|
if (!(result === true)) {
|
|
2029
|
-
|
|
2139
|
+
_context9.next = 8;
|
|
2030
2140
|
break;
|
|
2031
2141
|
}
|
|
2032
2142
|
|
|
2033
2143
|
//成功
|
|
2034
2144
|
that.settleSuccess();
|
|
2035
2145
|
_promise2.default.resolve();
|
|
2036
|
-
|
|
2146
|
+
_context9.next = 23;
|
|
2037
2147
|
break;
|
|
2038
2148
|
|
|
2039
2149
|
case 8:
|
|
@@ -2050,24 +2160,24 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2050
2160
|
}, 0);
|
|
2051
2161
|
|
|
2052
2162
|
if (!(result && (result.Code || result.code))) {
|
|
2053
|
-
|
|
2163
|
+
_context9.next = 20;
|
|
2054
2164
|
break;
|
|
2055
2165
|
}
|
|
2056
2166
|
|
|
2057
|
-
|
|
2058
|
-
|
|
2167
|
+
_context9.t0 = result.Code || result.code;
|
|
2168
|
+
_context9.next = _context9.t0 === 'RE_Settle_UnReturn' ? 14 : _context9.t0 === 'ECONNABORTED' ? 18 : 20;
|
|
2059
2169
|
break;
|
|
2060
2170
|
|
|
2061
2171
|
case 14:
|
|
2062
2172
|
console.log('settlement--RE_Settle_UnReturn--调用清除数据==Focus==');
|
|
2063
2173
|
_this2.props.clearVoucherData && _this2.props.clearVoucherData();
|
|
2064
2174
|
_this2.cancelState();
|
|
2065
|
-
return
|
|
2175
|
+
return _context9.abrupt('break', 20);
|
|
2066
2176
|
|
|
2067
2177
|
case 18:
|
|
2068
2178
|
//error.code === 'ECONNABORTED' && error.message.indexOf('timeout')
|
|
2069
2179
|
result.message.indexOf('timeout') > -1 && that.settleUnReturn();
|
|
2070
|
-
return
|
|
2180
|
+
return _context9.abrupt('break', 20);
|
|
2071
2181
|
|
|
2072
2182
|
case 20:
|
|
2073
2183
|
if (isQuickPay) {
|
|
@@ -2075,19 +2185,19 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2075
2185
|
that.cancelState();
|
|
2076
2186
|
}
|
|
2077
2187
|
|
|
2078
|
-
|
|
2188
|
+
_context9.next = 23;
|
|
2079
2189
|
return _promise2.default.reject();
|
|
2080
2190
|
|
|
2081
2191
|
case 23:
|
|
2082
2192
|
case 'end':
|
|
2083
|
-
return
|
|
2193
|
+
return _context9.stop();
|
|
2084
2194
|
}
|
|
2085
2195
|
}
|
|
2086
|
-
},
|
|
2196
|
+
}, _callee9, _this3);
|
|
2087
2197
|
}));
|
|
2088
2198
|
|
|
2089
|
-
return function commit(
|
|
2090
|
-
return
|
|
2199
|
+
return function commit(_x5) {
|
|
2200
|
+
return _ref18.apply(this, arguments);
|
|
2091
2201
|
};
|
|
2092
2202
|
}();
|
|
2093
2203
|
|
|
@@ -2095,102 +2205,102 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2095
2205
|
|
|
2096
2206
|
case 30:
|
|
2097
2207
|
case 'end':
|
|
2098
|
-
return
|
|
2208
|
+
return _context11.stop();
|
|
2099
2209
|
}
|
|
2100
2210
|
}
|
|
2101
|
-
},
|
|
2211
|
+
}, _callee11, _this3);
|
|
2102
2212
|
}));
|
|
2103
2213
|
|
|
2104
|
-
return function (
|
|
2105
|
-
return
|
|
2214
|
+
return function (_x4) {
|
|
2215
|
+
return _ref17.apply(this, arguments);
|
|
2106
2216
|
};
|
|
2107
2217
|
}();
|
|
2108
2218
|
|
|
2109
|
-
_this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
2219
|
+
_this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
|
|
2110
2220
|
var handleUserInputs = function () {
|
|
2111
|
-
var
|
|
2221
|
+
var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(promises) {
|
|
2112
2222
|
var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
|
|
2113
2223
|
|
|
2114
|
-
return _regenerator2.default.wrap(function
|
|
2224
|
+
return _regenerator2.default.wrap(function _callee13$(_context13) {
|
|
2115
2225
|
while (1) {
|
|
2116
|
-
switch (
|
|
2226
|
+
switch (_context13.prev = _context13.next) {
|
|
2117
2227
|
case 0:
|
|
2118
2228
|
results = [];
|
|
2119
|
-
|
|
2229
|
+
_context13.prev = 1;
|
|
2120
2230
|
_iteratorNormalCompletion2 = true;
|
|
2121
2231
|
_didIteratorError2 = false;
|
|
2122
2232
|
_iteratorError2 = undefined;
|
|
2123
|
-
|
|
2233
|
+
_context13.prev = 5;
|
|
2124
2234
|
_iterator2 = (0, _getIterator3.default)(promises);
|
|
2125
2235
|
|
|
2126
2236
|
case 7:
|
|
2127
2237
|
if (_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done) {
|
|
2128
|
-
|
|
2238
|
+
_context13.next = 16;
|
|
2129
2239
|
break;
|
|
2130
2240
|
}
|
|
2131
2241
|
|
|
2132
2242
|
p = _step2.value;
|
|
2133
|
-
|
|
2243
|
+
_context13.next = 11;
|
|
2134
2244
|
return p;
|
|
2135
2245
|
|
|
2136
2246
|
case 11:
|
|
2137
|
-
_result2 =
|
|
2247
|
+
_result2 = _context13.sent;
|
|
2138
2248
|
|
|
2139
2249
|
results.push(_result2);
|
|
2140
2250
|
|
|
2141
2251
|
case 13:
|
|
2142
2252
|
_iteratorNormalCompletion2 = true;
|
|
2143
|
-
|
|
2253
|
+
_context13.next = 7;
|
|
2144
2254
|
break;
|
|
2145
2255
|
|
|
2146
2256
|
case 16:
|
|
2147
|
-
|
|
2257
|
+
_context13.next = 22;
|
|
2148
2258
|
break;
|
|
2149
2259
|
|
|
2150
2260
|
case 18:
|
|
2151
|
-
|
|
2152
|
-
|
|
2261
|
+
_context13.prev = 18;
|
|
2262
|
+
_context13.t0 = _context13['catch'](5);
|
|
2153
2263
|
_didIteratorError2 = true;
|
|
2154
|
-
_iteratorError2 =
|
|
2264
|
+
_iteratorError2 = _context13.t0;
|
|
2155
2265
|
|
|
2156
2266
|
case 22:
|
|
2157
|
-
|
|
2158
|
-
|
|
2267
|
+
_context13.prev = 22;
|
|
2268
|
+
_context13.prev = 23;
|
|
2159
2269
|
|
|
2160
2270
|
if (!_iteratorNormalCompletion2 && _iterator2.return) {
|
|
2161
2271
|
_iterator2.return();
|
|
2162
2272
|
}
|
|
2163
2273
|
|
|
2164
2274
|
case 25:
|
|
2165
|
-
|
|
2275
|
+
_context13.prev = 25;
|
|
2166
2276
|
|
|
2167
2277
|
if (!_didIteratorError2) {
|
|
2168
|
-
|
|
2278
|
+
_context13.next = 28;
|
|
2169
2279
|
break;
|
|
2170
2280
|
}
|
|
2171
2281
|
|
|
2172
2282
|
throw _iteratorError2;
|
|
2173
2283
|
|
|
2174
2284
|
case 28:
|
|
2175
|
-
return
|
|
2285
|
+
return _context13.finish(25);
|
|
2176
2286
|
|
|
2177
2287
|
case 29:
|
|
2178
|
-
return
|
|
2288
|
+
return _context13.finish(22);
|
|
2179
2289
|
|
|
2180
2290
|
case 30:
|
|
2181
|
-
|
|
2291
|
+
_context13.next = 32;
|
|
2182
2292
|
return commit(results);
|
|
2183
2293
|
|
|
2184
2294
|
case 32:
|
|
2185
|
-
|
|
2295
|
+
_context13.next = 37;
|
|
2186
2296
|
break;
|
|
2187
2297
|
|
|
2188
2298
|
case 34:
|
|
2189
|
-
|
|
2190
|
-
|
|
2299
|
+
_context13.prev = 34;
|
|
2300
|
+
_context13.t1 = _context13['catch'](1);
|
|
2191
2301
|
|
|
2192
|
-
if (
|
|
2193
|
-
_message2.default.error(
|
|
2302
|
+
if (_context13.t1 != "cancelpwd") {
|
|
2303
|
+
_message2.default.error(_context13.t1);
|
|
2194
2304
|
setTimeout(function () {
|
|
2195
2305
|
that.handleCzk();
|
|
2196
2306
|
}, 500);
|
|
@@ -2198,37 +2308,37 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2198
2308
|
|
|
2199
2309
|
case 37:
|
|
2200
2310
|
case 'end':
|
|
2201
|
-
return
|
|
2311
|
+
return _context13.stop();
|
|
2202
2312
|
}
|
|
2203
2313
|
}
|
|
2204
|
-
},
|
|
2314
|
+
}, _callee13, this, [[1, 34], [5, 18, 22, 30], [23,, 25, 29]]);
|
|
2205
2315
|
}));
|
|
2206
2316
|
|
|
2207
|
-
return function handleUserInputs(
|
|
2208
|
-
return
|
|
2317
|
+
return function handleUserInputs(_x8) {
|
|
2318
|
+
return _ref23.apply(this, arguments);
|
|
2209
2319
|
};
|
|
2210
2320
|
}();
|
|
2211
2321
|
|
|
2212
|
-
var that, curmode, promises,
|
|
2322
|
+
var that, curmode, promises, _ref21, isNewRetailBCPos, _enumController$getEn22, PayStyle, commit;
|
|
2213
2323
|
|
|
2214
|
-
return _regenerator2.default.wrap(function
|
|
2324
|
+
return _regenerator2.default.wrap(function _callee14$(_context14) {
|
|
2215
2325
|
while (1) {
|
|
2216
|
-
switch (
|
|
2326
|
+
switch (_context14.prev = _context14.next) {
|
|
2217
2327
|
case 0:
|
|
2218
2328
|
that = _this2;
|
|
2219
2329
|
curmode = _this2.store.paymode.currentMode;
|
|
2220
2330
|
promises = [];
|
|
2221
|
-
|
|
2331
|
+
_ref21 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref21.isNewRetailBCPos;
|
|
2222
2332
|
|
|
2223
2333
|
if (isNewRetailBCPos) {
|
|
2224
2334
|
if (curmode.value > 0) {
|
|
2225
|
-
_enumController$
|
|
2335
|
+
_enumController$getEn22 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn22.PayStyle;
|
|
2226
2336
|
|
|
2227
2337
|
if (curmode.paymentType === PayStyle.hyczk) {
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
promises.push(that.inputPwd(curmode));
|
|
2338
|
+
if (curmode.cardTypeEnum === 'BALANCE_CARD') {
|
|
2339
|
+
!curmode.freePaymentPasswordStore && promises.push(that.inputPwd(curmode));
|
|
2340
|
+
} else {
|
|
2341
|
+
curmode.isNeedPassword && promises.push(that.inputPwd(curmode));
|
|
2232
2342
|
}
|
|
2233
2343
|
}
|
|
2234
2344
|
}
|
|
@@ -2239,57 +2349,57 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2239
2349
|
}
|
|
2240
2350
|
|
|
2241
2351
|
commit = function () {
|
|
2242
|
-
var
|
|
2352
|
+
var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(values) {
|
|
2243
2353
|
var result;
|
|
2244
|
-
return _regenerator2.default.wrap(function
|
|
2354
|
+
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
|
2245
2355
|
while (1) {
|
|
2246
|
-
switch (
|
|
2356
|
+
switch (_context12.prev = _context12.next) {
|
|
2247
2357
|
case 0:
|
|
2248
2358
|
if (!(values.length > 0)) {
|
|
2249
|
-
|
|
2359
|
+
_context12.next = 6;
|
|
2250
2360
|
break;
|
|
2251
2361
|
}
|
|
2252
2362
|
|
|
2253
|
-
|
|
2363
|
+
_context12.next = 3;
|
|
2254
2364
|
return that.store.validePwd(values[0]);
|
|
2255
2365
|
|
|
2256
2366
|
case 3:
|
|
2257
|
-
|
|
2258
|
-
|
|
2367
|
+
_context12.t0 = _context12.sent;
|
|
2368
|
+
_context12.next = 7;
|
|
2259
2369
|
break;
|
|
2260
2370
|
|
|
2261
2371
|
case 6:
|
|
2262
|
-
|
|
2372
|
+
_context12.t0 = "";
|
|
2263
2373
|
|
|
2264
2374
|
case 7:
|
|
2265
|
-
result =
|
|
2375
|
+
result = _context12.t0;
|
|
2266
2376
|
|
|
2267
2377
|
if (!(result == "")) {
|
|
2268
|
-
|
|
2378
|
+
_context12.next = 13;
|
|
2269
2379
|
break;
|
|
2270
2380
|
}
|
|
2271
2381
|
|
|
2272
2382
|
//成功
|
|
2273
2383
|
//返回
|
|
2274
|
-
that.setCurrentFocusAndAddPay(curmode.paymentType);
|
|
2384
|
+
that.setCurrentFocusAndAddPay(curmode.paymentType, curmode.paymethodId);
|
|
2275
2385
|
_promise2.default.resolve();
|
|
2276
|
-
|
|
2386
|
+
_context12.next = 15;
|
|
2277
2387
|
break;
|
|
2278
2388
|
|
|
2279
2389
|
case 13:
|
|
2280
|
-
|
|
2390
|
+
_context12.next = 15;
|
|
2281
2391
|
return _promise2.default.reject(result);
|
|
2282
2392
|
|
|
2283
2393
|
case 15:
|
|
2284
2394
|
case 'end':
|
|
2285
|
-
return
|
|
2395
|
+
return _context12.stop();
|
|
2286
2396
|
}
|
|
2287
2397
|
}
|
|
2288
|
-
},
|
|
2398
|
+
}, _callee12, _this3);
|
|
2289
2399
|
}));
|
|
2290
2400
|
|
|
2291
|
-
return function commit(
|
|
2292
|
-
return
|
|
2401
|
+
return function commit(_x7) {
|
|
2402
|
+
return _ref22.apply(this, arguments);
|
|
2293
2403
|
};
|
|
2294
2404
|
}();
|
|
2295
2405
|
|
|
@@ -2297,10 +2407,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2297
2407
|
|
|
2298
2408
|
case 7:
|
|
2299
2409
|
case 'end':
|
|
2300
|
-
return
|
|
2410
|
+
return _context14.stop();
|
|
2301
2411
|
}
|
|
2302
2412
|
}
|
|
2303
|
-
},
|
|
2413
|
+
}, _callee14, _this3);
|
|
2304
2414
|
}));
|
|
2305
2415
|
|
|
2306
2416
|
_this2.fKeyboardOnOk = function (paymethodeId) {
|
|
@@ -2340,15 +2450,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2340
2450
|
};
|
|
2341
2451
|
|
|
2342
2452
|
_this2.inputPwd = function () {
|
|
2343
|
-
var
|
|
2453
|
+
var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(paymode) {
|
|
2344
2454
|
var that, confirmPwd;
|
|
2345
|
-
return _regenerator2.default.wrap(function
|
|
2455
|
+
return _regenerator2.default.wrap(function _callee15$(_context15) {
|
|
2346
2456
|
while (1) {
|
|
2347
|
-
switch (
|
|
2457
|
+
switch (_context15.prev = _context15.next) {
|
|
2348
2458
|
case 0:
|
|
2349
2459
|
that = _this2;
|
|
2350
2460
|
confirmPwd = _this2.state.confirmPwd;
|
|
2351
|
-
return
|
|
2461
|
+
return _context15.abrupt('return', new _promise2.default(function (resolve, reject) {
|
|
2352
2462
|
var modal = (0, _asyncModal2.default)({
|
|
2353
2463
|
onPressEnter: function onPressEnter() {
|
|
2354
2464
|
_keyboard2.default.close();
|
|
@@ -2356,8 +2466,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2356
2466
|
// if (v !== '') {
|
|
2357
2467
|
modal.destroy();
|
|
2358
2468
|
|
|
2359
|
-
var
|
|
2360
|
-
confirmPwd =
|
|
2469
|
+
var _ref25 = that.state || {},
|
|
2470
|
+
confirmPwd = _ref25.confirmPwd;
|
|
2361
2471
|
|
|
2362
2472
|
setTimeout(function () {
|
|
2363
2473
|
paymode.authCode = v;
|
|
@@ -2447,8 +2557,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2447
2557
|
type: 'primary', size: 'large', onClick: function onClick() {
|
|
2448
2558
|
var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
|
|
2449
2559
|
|
|
2450
|
-
var
|
|
2451
|
-
confirmPwd =
|
|
2560
|
+
var _ref26 = that.state || {},
|
|
2561
|
+
confirmPwd = _ref26.confirmPwd;
|
|
2452
2562
|
// if (v !== '') {
|
|
2453
2563
|
|
|
2454
2564
|
|
|
@@ -2482,24 +2592,25 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2482
2592
|
|
|
2483
2593
|
case 3:
|
|
2484
2594
|
case 'end':
|
|
2485
|
-
return
|
|
2595
|
+
return _context15.stop();
|
|
2486
2596
|
}
|
|
2487
2597
|
}
|
|
2488
|
-
},
|
|
2598
|
+
}, _callee15, _this3);
|
|
2489
2599
|
}));
|
|
2490
2600
|
|
|
2491
|
-
return function (
|
|
2492
|
-
return
|
|
2601
|
+
return function (_x9) {
|
|
2602
|
+
return _ref24.apply(this, arguments);
|
|
2493
2603
|
};
|
|
2494
2604
|
}();
|
|
2495
2605
|
|
|
2496
2606
|
_this2.btnDebounced = function (type, bquick) {
|
|
2497
2607
|
_this2.setState({
|
|
2498
|
-
bquick: bquick
|
|
2608
|
+
bquick: bquick,
|
|
2609
|
+
isInputMember: true
|
|
2499
2610
|
});
|
|
2500
2611
|
|
|
2501
|
-
var _enumController$
|
|
2502
|
-
PayStyle = _enumController$
|
|
2612
|
+
var _enumController$getEn23 = _mutantsUtil.enumController.getEnumOj(),
|
|
2613
|
+
PayStyle = _enumController$getEn23.PayStyle;
|
|
2503
2614
|
|
|
2504
2615
|
var _this2$store7 = _this2.store,
|
|
2505
2616
|
paymode = _this2$store7.paymode,
|
|
@@ -2542,13 +2653,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2542
2653
|
|
|
2543
2654
|
_this2.onCzkChange = function (v) {
|
|
2544
2655
|
// console.log("czk change:"+new Date().toLocaleTimeString())
|
|
2545
|
-
var
|
|
2546
|
-
isNewRetailBCPos =
|
|
2656
|
+
var _ref27 = _mutantsUtil.platform || {},
|
|
2657
|
+
isNewRetailBCPos = _ref27.isNewRetailBCPos;
|
|
2547
2658
|
|
|
2548
2659
|
if (!isNewRetailBCPos) {
|
|
2549
2660
|
_this2.store.paymode.currentMode.member.setCardNo(v);
|
|
2550
2661
|
}
|
|
2551
|
-
if (!/^[
|
|
2662
|
+
if (!/^[A-Za-z0-9]*$/.test(v)) {
|
|
2552
2663
|
return;
|
|
2553
2664
|
}
|
|
2554
2665
|
_this2.setState({
|
|
@@ -2604,8 +2715,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2604
2715
|
};
|
|
2605
2716
|
|
|
2606
2717
|
_this2.checkCharge = function () {
|
|
2607
|
-
var _enumController$
|
|
2608
|
-
PayStyle = _enumController$
|
|
2718
|
+
var _enumController$getEn24 = _mutantsUtil.enumController.getEnumOj(),
|
|
2719
|
+
PayStyle = _enumController$getEn24.PayStyle;
|
|
2609
2720
|
|
|
2610
2721
|
var paymode = _this2.store.paymode;
|
|
2611
2722
|
|
|
@@ -2652,8 +2763,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2652
2763
|
};
|
|
2653
2764
|
|
|
2654
2765
|
_this2.getXianjinPayment = function (payType, value) {
|
|
2655
|
-
var _enumController$
|
|
2656
|
-
PayStyle = _enumController$
|
|
2766
|
+
var _enumController$getEn25 = _mutantsUtil.enumController.getEnumOj(),
|
|
2767
|
+
PayStyle = _enumController$getEn25.PayStyle;
|
|
2657
2768
|
|
|
2658
2769
|
var isManualIntoAmount = _this2.state.isManualIntoAmount;
|
|
2659
2770
|
|
|
@@ -2661,8 +2772,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2661
2772
|
};
|
|
2662
2773
|
|
|
2663
2774
|
_this2.getXianjinBalance = function (payType, value) {
|
|
2664
|
-
var _enumController$
|
|
2665
|
-
PayStyle = _enumController$
|
|
2775
|
+
var _enumController$getEn26 = _mutantsUtil.enumController.getEnumOj(),
|
|
2776
|
+
PayStyle = _enumController$getEn26.PayStyle;
|
|
2666
2777
|
//找零金额-存在权限控制
|
|
2667
2778
|
|
|
2668
2779
|
|
|
@@ -2682,9 +2793,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2682
2793
|
var isManualIntoAmount = void 0;
|
|
2683
2794
|
// 付款弹窗
|
|
2684
2795
|
return new _promise2.default(function (resolve, reject) {
|
|
2685
|
-
var _enumController$
|
|
2686
|
-
PayStyle = _enumController$
|
|
2687
|
-
PayIcon2 = _enumController$
|
|
2796
|
+
var _enumController$getEn27 = _mutantsUtil.enumController.getEnumOj(),
|
|
2797
|
+
PayStyle = _enumController$getEn27.PayStyle,
|
|
2798
|
+
PayIcon2 = _enumController$getEn27.PayIcon2;
|
|
2688
2799
|
|
|
2689
2800
|
var modal = (0, _asyncModal2.default)({
|
|
2690
2801
|
onPressEnter: function onPressEnter() {
|
|
@@ -2890,7 +3001,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2890
3001
|
settleDisabled: false
|
|
2891
3002
|
});
|
|
2892
3003
|
that.store.bquick && that.props.onCancelSettle && that.props.onCancelSettle();
|
|
2893
|
-
that.store.delPay(paymode.paymethodId);
|
|
3004
|
+
that.store.bquick && that.store.delPay(paymode.paymethodId);
|
|
2894
3005
|
reject('\u652F\u4ED8\u65B9\u5F0F: ' + paymode.name + '\u5931\u8D25');
|
|
2895
3006
|
} },
|
|
2896
3007
|
'\u53D6\u6D88'
|
|
@@ -2953,8 +3064,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2953
3064
|
paymode = _this2$store8.paymode,
|
|
2954
3065
|
newStyle = _this2$store8.newStyle;
|
|
2955
3066
|
|
|
2956
|
-
var _enumController$
|
|
2957
|
-
PayStyle = _enumController$
|
|
3067
|
+
var _enumController$getEn28 = _mutantsUtil.enumController.getEnumOj(),
|
|
3068
|
+
PayStyle = _enumController$getEn28.PayStyle;
|
|
2958
3069
|
|
|
2959
3070
|
var payTypeList = [PayStyle.SQBPAY, PayStyle.CSYH, PayStyle.smzf];
|
|
2960
3071
|
var payTypeFilterList = payTypeList.filter(function (filterType) {
|
|
@@ -2975,15 +3086,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2975
3086
|
};
|
|
2976
3087
|
|
|
2977
3088
|
_this2.checkModeDisabled = function (type, brefund, boriginReturn) {
|
|
2978
|
-
var _enumController$
|
|
2979
|
-
PayStyle = _enumController$
|
|
3089
|
+
var _enumController$getEn29 = _mutantsUtil.enumController.getEnumOj(),
|
|
3090
|
+
PayStyle = _enumController$getEn29.PayStyle;
|
|
2980
3091
|
|
|
2981
3092
|
return (brefund && (type == PayStyle.wx || type == PayStyle.zfb || type == PayStyle.smzf || type == PayStyle.jfdx || type == PayStyle.djq || type == PayStyle.SQBPAY || type == PayStyle.CSYH) || boriginReturn && type == PayStyle.hyczk) && !(boriginReturn && (type == PayStyle.wx || type == PayStyle.zfb)) || _this2.checkCurrentModeHaveMutex(type);
|
|
2982
3093
|
};
|
|
2983
3094
|
|
|
2984
3095
|
_this2.checkSettleDisabled = function (paymode, thePaymodes) {
|
|
2985
|
-
var _enumController$
|
|
2986
|
-
PayStyle = _enumController$
|
|
3096
|
+
var _enumController$getEn30 = _mutantsUtil.enumController.getEnumOj(),
|
|
3097
|
+
PayStyle = _enumController$getEn30.PayStyle;
|
|
2987
3098
|
|
|
2988
3099
|
console.log("settlement.checkSettleDisabled开始执行,参数:", { paymode: paymode, thePaymodes: thePaymodes });
|
|
2989
3100
|
if (paymode.amount == 0 && paymode.received == 0) {
|
|
@@ -3029,8 +3140,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3029
3140
|
};
|
|
3030
3141
|
|
|
3031
3142
|
_this2.editCzkModal = function () {
|
|
3032
|
-
var _enumController$
|
|
3033
|
-
PayStyle = _enumController$
|
|
3143
|
+
var _enumController$getEn31 = _mutantsUtil.enumController.getEnumOj(),
|
|
3144
|
+
PayStyle = _enumController$getEn31.PayStyle;
|
|
3034
3145
|
|
|
3035
3146
|
(0, _find3.default)(_this2.store.paymode.thePaymodes, function (mode) {
|
|
3036
3147
|
if (mode.paymentType == PayStyle.hyczk) {
|
|
@@ -3096,9 +3207,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3096
3207
|
isPrototypeClick: false
|
|
3097
3208
|
});
|
|
3098
3209
|
var that = _this2;
|
|
3099
|
-
var _this2$
|
|
3100
|
-
bquick = _this2$
|
|
3101
|
-
isPrototypeClick = _this2$
|
|
3210
|
+
var _this2$state3 = _this2.state,
|
|
3211
|
+
bquick = _this2$state3.bquick,
|
|
3212
|
+
isPrototypeClick = _this2$state3.isPrototypeClick;
|
|
3102
3213
|
|
|
3103
3214
|
if (!isPrototypeClick) {
|
|
3104
3215
|
if (bquick) {
|
|
@@ -3124,31 +3235,32 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3124
3235
|
|
|
3125
3236
|
_this2.hasElectron = hasElectron;
|
|
3126
3237
|
|
|
3127
|
-
var
|
|
3128
|
-
|
|
3129
|
-
|
|
3238
|
+
var _ref28 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
|
|
3239
|
+
MemberMeStorageCardInputByKeyBoard = _ref28.MemberMeStorageCardInputByKeyBoard,
|
|
3240
|
+
ICCardServer = _ref28.ICCardServer,
|
|
3241
|
+
ICCardPassword = _ref28.ICCardPassword;
|
|
3130
3242
|
|
|
3243
|
+
_this2.isStorageCardInputType = MemberMeStorageCardInputByKeyBoard; // 仅储值卡是否禁用键盘输入,'0'为不禁用 '1'为禁用
|
|
3131
3244
|
_this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
|
|
3132
3245
|
_this2.iCCardPassword = ICCardPassword; //IC卡密码
|
|
3133
3246
|
//移动端环境下,没有读取IC卡的方式。
|
|
3134
3247
|
|
|
3135
|
-
var
|
|
3136
|
-
isHorizontalPad =
|
|
3137
|
-
isHorizontalSunMi =
|
|
3248
|
+
var _ref29 = _mutantsUtil.platform || {},
|
|
3249
|
+
isHorizontalPad = _ref29.isHorizontalPad,
|
|
3250
|
+
isHorizontalSunMi = _ref29.isHorizontalSunMi;
|
|
3138
3251
|
|
|
3139
3252
|
_this2.isHorizontalPad = !!isHorizontalPad;
|
|
3140
3253
|
_this2.isHorizontalSunMi = !!isHorizontalSunMi;
|
|
3141
3254
|
_this2.isMobileEnvironment = !!isHorizontalPad || !!isHorizontalSunMi;
|
|
3142
3255
|
_this2.handleReadICard = _this2.handleReadICard.bind(_this2);
|
|
3143
3256
|
_this2.setTimer = null;
|
|
3257
|
+
_this2.keypressStime = null;
|
|
3144
3258
|
return _this2;
|
|
3145
3259
|
}
|
|
3146
3260
|
|
|
3147
3261
|
(0, _createClass3.default)(Settlement, [{
|
|
3148
3262
|
key: 'componentDidMount',
|
|
3149
3263
|
value: function componentDidMount() {
|
|
3150
|
-
//let retailDetails=this.context.viewModel.data.RetailDetails;//明细
|
|
3151
|
-
//let totalRetailAmount=this.context.viewModel.data.TotalRetailAmount;//零售金额合计
|
|
3152
3264
|
this.store.initPaymodes(this.updateInput, this.props.type, this.props.MemberPoints);
|
|
3153
3265
|
}
|
|
3154
3266
|
}, {
|
|
@@ -3219,8 +3331,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3219
3331
|
_this6.connectRfCard(); //读取失败后,重新连接一下。
|
|
3220
3332
|
return;
|
|
3221
3333
|
} else if (ret.status === 1) {
|
|
3222
|
-
//this.searchMember(ret.value);
|
|
3223
|
-
|
|
3334
|
+
// this.searchMember(ret.value);
|
|
3335
|
+
// this.czkInput.input["value"]=ret.value;
|
|
3336
|
+
_this6.setState({
|
|
3337
|
+
czkValue: ret.value
|
|
3338
|
+
});
|
|
3224
3339
|
_this6.loadCzk(ret.value);
|
|
3225
3340
|
}
|
|
3226
3341
|
});
|
|
@@ -3268,7 +3383,16 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3268
3383
|
}, {
|
|
3269
3384
|
key: 'onKeyboardChange',
|
|
3270
3385
|
value: function onKeyboardChange(key) {
|
|
3386
|
+
var _enumController$getEn32 = _mutantsUtil.enumController.getEnumOj(),
|
|
3387
|
+
PayStyle = _enumController$getEn32.PayStyle;
|
|
3388
|
+
|
|
3271
3389
|
if (this.currentInput) {
|
|
3390
|
+
if (this.store.paymode.currentMode) {
|
|
3391
|
+
var paymentType1 = this.store.paymode.currentMode.paymentType;
|
|
3392
|
+
if (paymentType1 === PayStyle.djq || paymentType1 === PayStyle.hyczk || paymentType1 === PayStyle.jfdx) {
|
|
3393
|
+
return;
|
|
3394
|
+
}
|
|
3395
|
+
}
|
|
3272
3396
|
var value = _keyboard2.default.getNewValue(this.currentInput, this.currentInput.value, key, true);
|
|
3273
3397
|
if (!isNaN(value) || value == '-') {
|
|
3274
3398
|
this.currentInput.value = value;
|
|
@@ -3281,9 +3405,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3281
3405
|
value: function renderToolbtn(mode, index) {
|
|
3282
3406
|
var _this7 = this;
|
|
3283
3407
|
|
|
3284
|
-
var _enumController$
|
|
3285
|
-
PayIcon = _enumController$
|
|
3286
|
-
PayStyle = _enumController$
|
|
3408
|
+
var _enumController$getEn33 = _mutantsUtil.enumController.getEnumOj(),
|
|
3409
|
+
PayIcon = _enumController$getEn33.PayIcon,
|
|
3410
|
+
PayStyle = _enumController$getEn33.PayStyle;
|
|
3287
3411
|
|
|
3288
3412
|
var isReturn = this.props.isReturn;
|
|
3289
3413
|
var _store = this.store,
|
|
@@ -3355,11 +3479,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3355
3479
|
value: function render() {
|
|
3356
3480
|
var _this8 = this;
|
|
3357
3481
|
|
|
3358
|
-
var _enumController$
|
|
3359
|
-
PayIcon = _enumController$
|
|
3360
|
-
PayIcon2 = _enumController$
|
|
3361
|
-
PayStyle = _enumController$
|
|
3362
|
-
Differentiate = _enumController$
|
|
3482
|
+
var _enumController$getEn34 = _mutantsUtil.enumController.getEnumOj(),
|
|
3483
|
+
PayIcon = _enumController$getEn34.PayIcon,
|
|
3484
|
+
PayIcon2 = _enumController$getEn34.PayIcon2,
|
|
3485
|
+
PayStyle = _enumController$getEn34.PayStyle,
|
|
3486
|
+
Differentiate = _enumController$getEn34.Differentiate;
|
|
3363
3487
|
|
|
3364
3488
|
var _state2 = this.state,
|
|
3365
3489
|
btnDissabled = _state2.btnDissabled,
|
|
@@ -3367,10 +3491,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3367
3491
|
discountTotalAmount = _state2.discountTotalAmount,
|
|
3368
3492
|
discountRetailTotalAount = _state2.discountRetailTotalAount,
|
|
3369
3493
|
discountPrototypeTotalAmount = _state2.discountPrototypeTotalAmount,
|
|
3370
|
-
storageValue = _state2.storageValue
|
|
3494
|
+
storageValue = _state2.storageValue,
|
|
3495
|
+
czkValue = _state2.czkValue,
|
|
3496
|
+
newPassConfirm = _state2.newPassConfirm,
|
|
3497
|
+
newPass = _state2.newPass;
|
|
3371
3498
|
|
|
3372
|
-
var
|
|
3373
|
-
isNewRetailBCPos =
|
|
3499
|
+
var _ref30 = _mutantsUtil.platform || {},
|
|
3500
|
+
isNewRetailBCPos = _ref30.isNewRetailBCPos;
|
|
3374
3501
|
|
|
3375
3502
|
var _store2 = this.store,
|
|
3376
3503
|
paymode = _store2.paymode,
|
|
@@ -3433,11 +3560,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3433
3560
|
quantity4 = 0;
|
|
3434
3561
|
var sumQuantity = 0; //数量总和的值,包括称重的。
|
|
3435
3562
|
|
|
3436
|
-
var
|
|
3437
|
-
|
|
3438
|
-
buyQuantity =
|
|
3439
|
-
|
|
3440
|
-
returnQuantity =
|
|
3563
|
+
var _ref31 = quantityDetail || {},
|
|
3564
|
+
_ref31$buyQuantity = _ref31.buyQuantity,
|
|
3565
|
+
buyQuantity = _ref31$buyQuantity === undefined ? 0 : _ref31$buyQuantity,
|
|
3566
|
+
_ref31$returnQuantity = _ref31.returnQuantity,
|
|
3567
|
+
returnQuantity = _ref31$returnQuantity === undefined ? 0 : _ref31$returnQuantity;
|
|
3441
3568
|
|
|
3442
3569
|
var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
|
|
3443
3570
|
quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
|
|
@@ -3455,7 +3582,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3455
3582
|
sumQuantity = this.changeDecimalBuZero(sumQuantity, quantityPrecision);
|
|
3456
3583
|
}
|
|
3457
3584
|
|
|
3458
|
-
var
|
|
3585
|
+
var themodeHyczk = thePaymodes.filter(function (mode) {
|
|
3586
|
+
return mode.paymentType === PayStyle.hyczk && mode.value !== '0.00';
|
|
3587
|
+
});
|
|
3459
3588
|
return _react2.default.createElement(
|
|
3460
3589
|
'div',
|
|
3461
3590
|
{ className: 'billingSettlement', ref: function ref(r) {
|
|
@@ -3661,13 +3790,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3661
3790
|
_react2.default.createElement(
|
|
3662
3791
|
'div',
|
|
3663
3792
|
{ className: (0, _classnames4.default)({ "main": true, "focusbottom": currentIndex == index }) },
|
|
3664
|
-
_react2.default.createElement(
|
|
3665
|
-
'div',
|
|
3666
|
-
{ className: 'lefticon primary-color', onClick: function onClick() {
|
|
3667
|
-
_this8.onDelPay(index, boriginReturn && mode.boriginReturn, mode.paymentType);
|
|
3668
|
-
} },
|
|
3669
|
-
_react2.default.createElement(_ticon2.default, { type: 'jianqu', className: 'minus' })
|
|
3670
|
-
),
|
|
3671
3793
|
_react2.default.createElement(
|
|
3672
3794
|
'div',
|
|
3673
3795
|
{ className: (0, _classnames4.default)({ "name": true }) },
|
|
@@ -3697,13 +3819,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3697
3819
|
}
|
|
3698
3820
|
})
|
|
3699
3821
|
),
|
|
3700
|
-
|
|
3701
|
-
'
|
|
3702
|
-
{ className: '
|
|
3703
|
-
|
|
3704
|
-
_this8.appendCzkmode(boriginReturn, 'noPlaySetPwd');
|
|
3822
|
+
_react2.default.createElement(
|
|
3823
|
+
'span',
|
|
3824
|
+
{ className: 'minus', onClick: function onClick() {
|
|
3825
|
+
_this8.onDelPay(index, boriginReturn && mode.boriginReturn, mode.paymentType);
|
|
3705
3826
|
} },
|
|
3706
|
-
_react2.default.createElement(_ticon2.default, { type: '
|
|
3827
|
+
_react2.default.createElement(_ticon2.default, { type: 'shanchu', className: 'minusIcon primary-color' })
|
|
3707
3828
|
)
|
|
3708
3829
|
),
|
|
3709
3830
|
mode.paymentType == PayStyle.djq ? _react2.default.createElement(
|
|
@@ -3730,7 +3851,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3730
3851
|
_react2.default.createElement(
|
|
3731
3852
|
'span',
|
|
3732
3853
|
{ className: 'fl' },
|
|
3733
|
-
|
|
3854
|
+
mode && mode.storageCardNo
|
|
3734
3855
|
),
|
|
3735
3856
|
_react2.default.createElement('br', null),
|
|
3736
3857
|
_react2.default.createElement(
|
|
@@ -3742,6 +3863,19 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3742
3863
|
'span',
|
|
3743
3864
|
{ className: 'fl' },
|
|
3744
3865
|
(0, _utils.getFixedNumber)(mode.balance)
|
|
3866
|
+
),
|
|
3867
|
+
_react2.default.createElement('br', null),
|
|
3868
|
+
themodeHyczk && themodeHyczk.length && themodeHyczk[themodeHyczk.length - 1].paymethodId === mode.paymethodId && !isReturn && _react2.default.createElement(
|
|
3869
|
+
_button2.default,
|
|
3870
|
+
{ onClick: function onClick() {
|
|
3871
|
+
_this8.appendCzkmode(boriginReturn, 'noPlaySetPwd');
|
|
3872
|
+
}, className: 'addCard btn-border-primary' },
|
|
3873
|
+
_react2.default.createElement(_ticon2.default, { type: 'jiahao', className: 'plus b-theme-color' }),
|
|
3874
|
+
_react2.default.createElement(
|
|
3875
|
+
'span',
|
|
3876
|
+
null,
|
|
3877
|
+
'\u6DFB\u52A0\u5361'
|
|
3878
|
+
)
|
|
3745
3879
|
)
|
|
3746
3880
|
)
|
|
3747
3881
|
);
|
|
@@ -4039,7 +4173,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4039
4173
|
// }
|
|
4040
4174
|
// }
|
|
4041
4175
|
// mode.paymentType == PayStyle.hyczk && czkinput && czkinput.value !== '0.00' ? this.editCzkModal() :
|
|
4042
|
-
|
|
4176
|
+
if (mode.paymentType == PayStyle.hyczk) {
|
|
4177
|
+
if (themodeHyczk && themodeHyczk.length === 0) {
|
|
4178
|
+
_this8.onHotKeyClick1(mode, index, boriginReturn);
|
|
4179
|
+
}
|
|
4180
|
+
} else {
|
|
4181
|
+
_this8.onHotKeyClick1(mode, index, boriginReturn);
|
|
4182
|
+
}
|
|
4043
4183
|
},
|
|
4044
4184
|
value: mode.paymentType == PayStyle.hyczk ? (0, _utils.getFixedNumber)((0, _reduce3.default)((0, _filter3.default)(thePaymodes, function (tm) {
|
|
4045
4185
|
return tm.paymentType == PayStyle.hyczk;
|
|
@@ -4092,7 +4232,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4092
4232
|
_react2.default.createElement(
|
|
4093
4233
|
'span',
|
|
4094
4234
|
null,
|
|
4095
|
-
|
|
4235
|
+
m && m.storageCardNo
|
|
4096
4236
|
),
|
|
4097
4237
|
_react2.default.createElement(
|
|
4098
4238
|
'span',
|
|
@@ -4103,6 +4243,19 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4103
4243
|
'span',
|
|
4104
4244
|
{ className: 'balance fr' },
|
|
4105
4245
|
'\u652F\u4ED8\u91D1\u989D\uFF1A'
|
|
4246
|
+
),
|
|
4247
|
+
_react2.default.createElement('br', null),
|
|
4248
|
+
themodeHyczk && themodeHyczk.length && themodeHyczk[themodeHyczk.length - 1].paymethodId === m.paymethodId && _react2.default.createElement(
|
|
4249
|
+
_button2.default,
|
|
4250
|
+
{ onClick: function onClick() {
|
|
4251
|
+
return _this8.onHotKeyClick1(mode, index, boriginReturn);
|
|
4252
|
+
}, className: 'addCard btn-border-primary' },
|
|
4253
|
+
_react2.default.createElement(_ticon2.default, { type: 'jiahao', className: 'plus b-theme-color' }),
|
|
4254
|
+
_react2.default.createElement(
|
|
4255
|
+
'span',
|
|
4256
|
+
null,
|
|
4257
|
+
'\u6DFB\u52A0\u5361'
|
|
4258
|
+
)
|
|
4106
4259
|
)
|
|
4107
4260
|
);
|
|
4108
4261
|
})
|
|
@@ -4262,14 +4415,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4262
4415
|
{ key: index + '', className: 'modeItem' },
|
|
4263
4416
|
_react2.default.createElement(
|
|
4264
4417
|
'div',
|
|
4265
|
-
{ className: 'main ' + (currentIndex == index && 'settlement-pay-item-border') },
|
|
4266
|
-
_react2.default.createElement(
|
|
4267
|
-
'div',
|
|
4268
|
-
{ className: 'lefticon', onClick: function onClick() {
|
|
4269
|
-
_this8.onDelPay(index);
|
|
4270
|
-
} },
|
|
4271
|
-
_react2.default.createElement(_ticon2.default, { type: 'jianqu', className: 'minus' })
|
|
4272
|
-
),
|
|
4418
|
+
{ className: 'main b-theme-color ' + (currentIndex == index && 'settlement-pay-item-border') },
|
|
4273
4419
|
_react2.default.createElement(
|
|
4274
4420
|
'div',
|
|
4275
4421
|
{ className: (0, _classnames4.default)({ "name": true }) },
|
|
@@ -4294,13 +4440,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4294
4440
|
}
|
|
4295
4441
|
})
|
|
4296
4442
|
),
|
|
4297
|
-
|
|
4443
|
+
_react2.default.createElement(
|
|
4298
4444
|
'div',
|
|
4299
|
-
{ className: '
|
|
4300
|
-
|
|
4301
|
-
_this8.appendCzkmode('', 'noPlaySetPwd');
|
|
4445
|
+
{ className: 'minus', onClick: function onClick() {
|
|
4446
|
+
_this8.onDelPay(index);
|
|
4302
4447
|
} },
|
|
4303
|
-
_react2.default.createElement(_ticon2.default, { type: '
|
|
4448
|
+
_react2.default.createElement(_ticon2.default, { type: 'shanchu', className: 'minusIcon primary-color' })
|
|
4304
4449
|
)
|
|
4305
4450
|
),
|
|
4306
4451
|
mode.paymentType == PayStyle.djq ? _react2.default.createElement(
|
|
@@ -4327,7 +4472,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4327
4472
|
_react2.default.createElement(
|
|
4328
4473
|
'span',
|
|
4329
4474
|
{ className: 'fl' },
|
|
4330
|
-
|
|
4475
|
+
mode && mode.storageCardNo
|
|
4331
4476
|
),
|
|
4332
4477
|
_react2.default.createElement('br', null),
|
|
4333
4478
|
_react2.default.createElement(
|
|
@@ -4516,7 +4661,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4516
4661
|
_react2.default.createElement(
|
|
4517
4662
|
'div',
|
|
4518
4663
|
{ className: (0, _classnames4.default)({ "main": true, "focusbottom": currentIndex == index }) },
|
|
4519
|
-
_react2.default.createElement('div', { className: 'lefticon' }),
|
|
4520
4664
|
_react2.default.createElement(
|
|
4521
4665
|
'div',
|
|
4522
4666
|
{ className: (0, _classnames4.default)({ "name": true }) },
|
|
@@ -4651,7 +4795,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4651
4795
|
visible: this.state.czkVisible,
|
|
4652
4796
|
maskClosable: false,
|
|
4653
4797
|
destroyOnClose: true,
|
|
4654
|
-
title: "
|
|
4798
|
+
title: "储值结算",
|
|
4655
4799
|
onCancel: this.handleCzkCancel,
|
|
4656
4800
|
keyboard: false,
|
|
4657
4801
|
centered: !this.isHorizontalPad ? true : false,
|
|
@@ -4682,7 +4826,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4682
4826
|
_react2.default.createElement(
|
|
4683
4827
|
'div',
|
|
4684
4828
|
{ className: 'value valuetext' },
|
|
4685
|
-
currentMode && currentMode.member.type || '普通'
|
|
4829
|
+
currentMode && currentMode.member && currentMode.member.type || '普通'
|
|
4686
4830
|
),
|
|
4687
4831
|
_react2.default.createElement(
|
|
4688
4832
|
'div',
|
|
@@ -4703,7 +4847,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4703
4847
|
_react2.default.createElement(
|
|
4704
4848
|
'div',
|
|
4705
4849
|
{ className: 'value' },
|
|
4706
|
-
currentMode && (0, _utils.getFixedNumber)(currentMode.
|
|
4850
|
+
currentMode && (0, _utils.getFixedNumber)(currentMode.balance)
|
|
4707
4851
|
),
|
|
4708
4852
|
_react2.default.createElement(
|
|
4709
4853
|
'div',
|
|
@@ -4724,7 +4868,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4724
4868
|
_react2.default.createElement(
|
|
4725
4869
|
'div',
|
|
4726
4870
|
{ className: 'value' },
|
|
4727
|
-
currentMode && (0, _utils.getFixedNumber)(Math.max(0, Math.min(currentMode.maxamount, currentMode.
|
|
4871
|
+
currentMode && (0, _utils.getFixedNumber)(Math.max(0, Math.min(currentMode.maxamount, currentMode.balance)))
|
|
4728
4872
|
),
|
|
4729
4873
|
_react2.default.createElement(
|
|
4730
4874
|
'div',
|
|
@@ -4739,29 +4883,83 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4739
4883
|
_react2.default.createElement(
|
|
4740
4884
|
'span',
|
|
4741
4885
|
null,
|
|
4742
|
-
'\
|
|
4886
|
+
'\u50A8\u503C\u5361\u53F7\uFF1A'
|
|
4743
4887
|
),
|
|
4744
4888
|
_react2.default.createElement(
|
|
4745
4889
|
'span',
|
|
4746
4890
|
null,
|
|
4747
4891
|
_react2.default.createElement(_input2.default, {
|
|
4748
4892
|
type: 'text',
|
|
4749
|
-
placeholder: '\u8BF7\u626B\u63CF\u6216\u8F93\u5165\
|
|
4750
|
-
|
|
4751
|
-
, className: 'input ' + (this.hasElectron === true && this.iCCardServer === 1 || this.isHorizontalPad === true ? 'temp' : ''),
|
|
4893
|
+
placeholder: '\u8BF7\u626B\u63CF\u6216\u8F93\u5165\u624B\u673A\u53F7/\u50A8\u503C\u5361\u53F7',
|
|
4894
|
+
className: 'input ' + (this.hasElectron === true && this.iCCardServer === 1 || this.isHorizontalPad === true ? 'temp' : ''),
|
|
4752
4895
|
onChange: function onChange(e) {
|
|
4753
4896
|
return _this8.onCzkChange(e.target.value);
|
|
4754
4897
|
},
|
|
4755
|
-
defaultValue:
|
|
4756
|
-
value:
|
|
4898
|
+
defaultValue: currentMode && currentMode.storageCardNo,
|
|
4899
|
+
value: czkValue,
|
|
4757
4900
|
ref: function ref(input) {
|
|
4758
4901
|
return _this8.czkInput = input;
|
|
4759
4902
|
},
|
|
4760
|
-
onKeyDown: function
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4903
|
+
onKeyDown: function () {
|
|
4904
|
+
var _ref32 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(e) {
|
|
4905
|
+
var time, _paymode;
|
|
4906
|
+
|
|
4907
|
+
return _regenerator2.default.wrap(function _callee16$(_context16) {
|
|
4908
|
+
while (1) {
|
|
4909
|
+
switch (_context16.prev = _context16.next) {
|
|
4910
|
+
case 0:
|
|
4911
|
+
if (!(e.keyCode == 13)) {
|
|
4912
|
+
_context16.next = 14;
|
|
4913
|
+
break;
|
|
4914
|
+
}
|
|
4915
|
+
|
|
4916
|
+
time = Date.parse(new Date());
|
|
4917
|
+
|
|
4918
|
+
if (!(_this8.isStorageCardInputType && time - _this8.keypressStime > 350)) {
|
|
4919
|
+
_context16.next = 7;
|
|
4920
|
+
break;
|
|
4921
|
+
}
|
|
4922
|
+
|
|
4923
|
+
_message2.default.warn('储值卡不可键盘录入,请刷卡!');
|
|
4924
|
+
_this8.keypressStime = null;
|
|
4925
|
+
_this8.setState({
|
|
4926
|
+
czkValue: null
|
|
4927
|
+
});
|
|
4928
|
+
return _context16.abrupt('return');
|
|
4929
|
+
|
|
4930
|
+
case 7:
|
|
4931
|
+
_this8.keypressStime = null;
|
|
4932
|
+
_context16.next = 10;
|
|
4933
|
+
return _this8.loadCzk(e.target.value);
|
|
4934
|
+
|
|
4935
|
+
case 10:
|
|
4936
|
+
_paymode = _this8.store.paymode;
|
|
4937
|
+
|
|
4938
|
+
if (!_paymode.currentMode.storageCardNo) {
|
|
4939
|
+
_this8.setState({
|
|
4940
|
+
czkvalue: null
|
|
4941
|
+
});
|
|
4942
|
+
}
|
|
4943
|
+
_context16.next = 15;
|
|
4944
|
+
break;
|
|
4945
|
+
|
|
4946
|
+
case 14:
|
|
4947
|
+
if (!_this8.keypressStime && e.keyCode !== 8) {
|
|
4948
|
+
_this8.keypressStime = Date.parse(new Date());
|
|
4949
|
+
}
|
|
4950
|
+
|
|
4951
|
+
case 15:
|
|
4952
|
+
case 'end':
|
|
4953
|
+
return _context16.stop();
|
|
4954
|
+
}
|
|
4955
|
+
}
|
|
4956
|
+
}, _callee16, _this8);
|
|
4957
|
+
}));
|
|
4958
|
+
|
|
4959
|
+
return function (_x11) {
|
|
4960
|
+
return _ref32.apply(this, arguments);
|
|
4961
|
+
};
|
|
4962
|
+
}(),
|
|
4765
4963
|
onFocus: function onFocus(e) {
|
|
4766
4964
|
_this8.inputTarget = _this8.czkInput.input;
|
|
4767
4965
|
!_this8.state.prototypeVisible && _keyboard2.default.open(function (v) {
|
|
@@ -4813,22 +5011,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4813
5011
|
className: _index.hotKey.hotKeyNotFilter('input'),
|
|
4814
5012
|
value: storageValue,
|
|
4815
5013
|
onChange: function onChange(event) {
|
|
4816
|
-
_this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.
|
|
5014
|
+
_this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.balance));
|
|
4817
5015
|
},
|
|
4818
|
-
defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.
|
|
4819
|
-
ref: function ref(
|
|
4820
|
-
return _this8["inputCzkAmount"] =
|
|
5016
|
+
defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance)),
|
|
5017
|
+
ref: function ref(_ref33) {
|
|
5018
|
+
return _this8["inputCzkAmount"] = _ref33;
|
|
4821
5019
|
},
|
|
4822
5020
|
onFocus: function onFocus(e) {
|
|
4823
5021
|
_this8.inputkey = "inputCzkAmount";
|
|
4824
5022
|
_keyboard2.default.open(function (v) {
|
|
4825
5023
|
var value = _keyboard2.default.getNewValue(_this8[_this8.inputkey].input, _this8[_this8.inputkey].input.value, v);
|
|
4826
|
-
_this8.setCurrentModeValue(value, Math.min(currentMode.maxamount, currentMode.
|
|
5024
|
+
_this8.setCurrentModeValue(value, Math.min(currentMode.maxamount, currentMode.balance));
|
|
4827
5025
|
}, _this8.keyboardOnOk, _this8.keyboardOnClose)();
|
|
4828
5026
|
},
|
|
4829
5027
|
onBlur: function onBlur(e) {
|
|
4830
5028
|
_keyboard2.default.close();
|
|
4831
|
-
_this8.setCurrentModeValue((0, _utils.getFixedNumber)(_this8.inputCzkAmount.input.value), Math.min(currentMode.maxamount, currentMode.
|
|
5029
|
+
_this8.setCurrentModeValue((0, _utils.getFixedNumber)(_this8.inputCzkAmount.input.value), Math.min(currentMode.maxamount, currentMode.balance));
|
|
4832
5030
|
}
|
|
4833
5031
|
})
|
|
4834
5032
|
)
|
|
@@ -4866,6 +5064,47 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4866
5064
|
)
|
|
4867
5065
|
)
|
|
4868
5066
|
),
|
|
5067
|
+
_react2.default.createElement(
|
|
5068
|
+
_modal2.default,
|
|
5069
|
+
{
|
|
5070
|
+
wrapClassName: _index.hotKey.hotKeyBindClass('5', 'moreCzkModal') + ' ' + (this.isHorizontalPad ? 'extraHeight' : ''),
|
|
5071
|
+
width: '400px',
|
|
5072
|
+
visible: this.state.moreCzkVisible,
|
|
5073
|
+
maskClosable: false,
|
|
5074
|
+
destroyOnClose: true,
|
|
5075
|
+
title: "储值结算",
|
|
5076
|
+
onCancel: this.handleMoreCzkCancel,
|
|
5077
|
+
keyboard: false,
|
|
5078
|
+
centered: !this.isHorizontalPad ? true : false,
|
|
5079
|
+
footer: _react2.default.createElement(
|
|
5080
|
+
'div',
|
|
5081
|
+
{ className: 'action' },
|
|
5082
|
+
_react2.default.createElement(
|
|
5083
|
+
'span',
|
|
5084
|
+
{ className: 'showUseCard' },
|
|
5085
|
+
'\u4EC5\u5217\u793A\u53EF\u7528\u7684\u50A8\u503C\u5361'
|
|
5086
|
+
),
|
|
5087
|
+
_react2.default.createElement(
|
|
5088
|
+
_button2.default,
|
|
5089
|
+
{ onClick: this.handleMoreCzkCancel },
|
|
5090
|
+
'\u53D6\u6D88'
|
|
5091
|
+
),
|
|
5092
|
+
_react2.default.createElement(
|
|
5093
|
+
_button2.default,
|
|
5094
|
+
{ type: 'primary', onClick: this.handleMoreCzkOk },
|
|
5095
|
+
'\u786E\u5B9A'
|
|
5096
|
+
)
|
|
5097
|
+
)
|
|
5098
|
+
},
|
|
5099
|
+
_react2.default.createElement(
|
|
5100
|
+
'div',
|
|
5101
|
+
null,
|
|
5102
|
+
_react2.default.createElement(_moreCzkTable2.default, {
|
|
5103
|
+
setMoreCzkIndex: this.setMoreCzkIndex,
|
|
5104
|
+
selectedRowIndex: this.state.selectedRowIndex,
|
|
5105
|
+
dataSource: this.state.memberdata1 })
|
|
5106
|
+
)
|
|
5107
|
+
),
|
|
4869
5108
|
_react2.default.createElement(
|
|
4870
5109
|
_modal2.default,
|
|
4871
5110
|
(0, _defineProperty3.default)({
|
|
@@ -4889,7 +5128,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4889
5128
|
),
|
|
4890
5129
|
_react2.default.createElement(
|
|
4891
5130
|
_button2.default,
|
|
4892
|
-
{ type: 'primary', disabled:
|
|
5131
|
+
{ type: 'primary', disabled: btnDissabled, onClick: this.handleSetModal },
|
|
4893
5132
|
'\u786E\u5B9A'
|
|
4894
5133
|
)
|
|
4895
5134
|
)),
|
|
@@ -4907,21 +5146,23 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4907
5146
|
_react2.default.createElement(
|
|
4908
5147
|
'div',
|
|
4909
5148
|
{ className: 'two' },
|
|
4910
|
-
_react2.default.createElement(
|
|
5149
|
+
_react2.default.createElement(_input2.default.Password, {
|
|
4911
5150
|
className: 'content',
|
|
4912
|
-
newType: 'positive',
|
|
4913
|
-
bordered: true,
|
|
4914
5151
|
placeholder: '\u8BF7\u8F93\u51656\u4F4D\u6570\u5B57\u5BC6\u7801',
|
|
4915
5152
|
style: { width: 266, height: 32 },
|
|
4916
5153
|
maxLength: 6,
|
|
5154
|
+
value: newPass,
|
|
4917
5155
|
ref: function ref(input) {
|
|
4918
5156
|
return _this8.inputNewAmount = input;
|
|
4919
5157
|
},
|
|
4920
5158
|
onChange: function onChange(value) {
|
|
4921
|
-
return _this8.setPwdValue('newPass', value);
|
|
5159
|
+
return _this8.setPwdValue('newPass', value.target.value);
|
|
4922
5160
|
},
|
|
4923
5161
|
onBlur: function onBlur(value) {
|
|
4924
5162
|
return _this8.handleBlur('newPass');
|
|
5163
|
+
},
|
|
5164
|
+
onPressEnter: function onPressEnter() {
|
|
5165
|
+
return _this8.onPressEnterCzk('newPass');
|
|
4925
5166
|
}
|
|
4926
5167
|
})
|
|
4927
5168
|
)
|
|
@@ -4937,21 +5178,23 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4937
5178
|
_react2.default.createElement(
|
|
4938
5179
|
'div',
|
|
4939
5180
|
{ className: 'two' },
|
|
4940
|
-
_react2.default.createElement(
|
|
5181
|
+
_react2.default.createElement(_input2.default.Password, {
|
|
4941
5182
|
className: 'content',
|
|
4942
|
-
newType: 'positive',
|
|
4943
|
-
bordered: true,
|
|
4944
5183
|
placeholder: '\u8BF7\u786E\u8BA46\u4F4D\u6570\u5B57\u5BC6\u7801',
|
|
4945
5184
|
style: { width: 266, height: 32 },
|
|
4946
5185
|
maxLength: 6,
|
|
5186
|
+
value: newPassConfirm,
|
|
4947
5187
|
ref: function ref(input) {
|
|
4948
5188
|
return _this8.inputConfirmAmount = input;
|
|
4949
5189
|
},
|
|
4950
5190
|
onChange: function onChange(value) {
|
|
4951
|
-
return _this8.setPwdValue('newPassConfirm', value);
|
|
5191
|
+
return _this8.setPwdValue('newPassConfirm', value.target.value);
|
|
4952
5192
|
},
|
|
4953
5193
|
onBlur: function onBlur(value) {
|
|
4954
5194
|
return _this8.handleBlur('newPassConfirm');
|
|
5195
|
+
},
|
|
5196
|
+
onPressEnter: function onPressEnter() {
|
|
5197
|
+
return _this8.onPressEnterCzk('newPassConfirm');
|
|
4955
5198
|
}
|
|
4956
5199
|
})
|
|
4957
5200
|
)
|
|
@@ -5070,7 +5313,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5070
5313
|
_react2.default.createElement(
|
|
5071
5314
|
'div',
|
|
5072
5315
|
{ className: 'djq2' },
|
|
5073
|
-
(0, _map3.default)(currentMode
|
|
5316
|
+
currentMode && currentMode.djqs && currentMode.djqs.length > 0 ? (0, _map3.default)(currentMode.djqs || [], function (q, index) {
|
|
5074
5317
|
if (!_this8.state.couponLight && !q.count) {
|
|
5075
5318
|
return;
|
|
5076
5319
|
}
|
|
@@ -5089,7 +5332,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5089
5332
|
_react2.default.createElement(
|
|
5090
5333
|
'span',
|
|
5091
5334
|
null,
|
|
5092
|
-
q.
|
|
5335
|
+
q.nominalAmount
|
|
5093
5336
|
),
|
|
5094
5337
|
_react2.default.createElement(
|
|
5095
5338
|
'span',
|
|
@@ -5180,7 +5423,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5180
5423
|
_react2.default.createElement('div', { className: 'point_top' }),
|
|
5181
5424
|
_react2.default.createElement('div', { className: 'point_bottom' })
|
|
5182
5425
|
);
|
|
5183
|
-
})
|
|
5426
|
+
}) : _react2.default.createElement(_tplusComponentsTouch.ProgressState, {
|
|
5427
|
+
state: "empty",
|
|
5428
|
+
stateCommonStyle: { 'paddingTop': "30px", backgroundColor: 'transparent' },
|
|
5429
|
+
empty: { buttonVisible: false, imgStyle: { width: '120px', height: '120px' } } })
|
|
5184
5430
|
)
|
|
5185
5431
|
),
|
|
5186
5432
|
currentMode && !currentMode.boriginReturn && _react2.default.createElement(
|
|
@@ -5316,7 +5562,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5316
5562
|
_react2.default.createElement(
|
|
5317
5563
|
'div',
|
|
5318
5564
|
{ className: 'value valuetext' },
|
|
5319
|
-
currentMode && currentMode.member.type || '普通'
|
|
5565
|
+
currentMode && currentMode.member && currentMode.member.type || '普通'
|
|
5320
5566
|
),
|
|
5321
5567
|
_react2.default.createElement(
|
|
5322
5568
|
'div',
|
|
@@ -5337,7 +5583,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5337
5583
|
_react2.default.createElement(
|
|
5338
5584
|
'div',
|
|
5339
5585
|
{ className: 'value' },
|
|
5340
|
-
currentMode && currentMode.member.bonusPoints
|
|
5586
|
+
currentMode && currentMode.member && currentMode.member.bonusPoints
|
|
5341
5587
|
),
|
|
5342
5588
|
_react2.default.createElement(
|
|
5343
5589
|
'div',
|
|
@@ -5358,12 +5604,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5358
5604
|
_react2.default.createElement(
|
|
5359
5605
|
'div',
|
|
5360
5606
|
{ className: 'value' },
|
|
5361
|
-
currentMode && (0, _utils.getFixedNumber)(currentMode.
|
|
5607
|
+
currentMode && currentMode.member && (0, _utils.getFixedNumber)(currentMode.steadCashIntegral)
|
|
5362
5608
|
),
|
|
5363
5609
|
_react2.default.createElement(
|
|
5364
5610
|
'div',
|
|
5365
5611
|
{ className: 'name' },
|
|
5366
|
-
'\
|
|
5612
|
+
'\u672C\u5355\u4F7F\u7528\u79EF\u5206'
|
|
5367
5613
|
)
|
|
5368
5614
|
),
|
|
5369
5615
|
_react2.default.createElement(
|
|
@@ -5379,12 +5625,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5379
5625
|
_react2.default.createElement(
|
|
5380
5626
|
'div',
|
|
5381
5627
|
{ className: 'value' },
|
|
5382
|
-
currentMode && (0, _utils.getFixedNumber)(Math.max(0, Math.min(currentMode.maxamount, currentMode.member.exchangable)))
|
|
5628
|
+
currentMode && currentMode.member && (0, _utils.getFixedNumber)(Math.max(0, Math.min(currentMode.maxamount, currentMode.member.exchangable)))
|
|
5383
5629
|
),
|
|
5384
5630
|
_react2.default.createElement(
|
|
5385
5631
|
'div',
|
|
5386
5632
|
{ className: 'name' },
|
|
5387
|
-
'\u672C\u5355\u53EF\
|
|
5633
|
+
'\u672C\u5355\u53EF\u62B5\u73B0\u91D1\u989D'
|
|
5388
5634
|
)
|
|
5389
5635
|
)
|
|
5390
5636
|
),
|
|
@@ -5399,7 +5645,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5399
5645
|
_react2.default.createElement(
|
|
5400
5646
|
'span',
|
|
5401
5647
|
{ className: 'notext' },
|
|
5402
|
-
currentMode && currentMode.member.cardNo
|
|
5648
|
+
currentMode && currentMode.member && currentMode.member.cardNo
|
|
5403
5649
|
)
|
|
5404
5650
|
),
|
|
5405
5651
|
_react2.default.createElement(
|
|
@@ -5430,12 +5676,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5430
5676
|
_react2.default.createElement(_input2.default, {
|
|
5431
5677
|
className: _index.hotKey.hotKeyNotFilter('input'),
|
|
5432
5678
|
type: 'text',
|
|
5679
|
+
value: storageValue,
|
|
5433
5680
|
onChange: function onChange(e) {
|
|
5434
5681
|
_this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
|
|
5435
5682
|
},
|
|
5436
|
-
defaultValue: currentMode && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
|
|
5437
|
-
ref: function ref(
|
|
5438
|
-
return _this8["inputJfdxAmount"] =
|
|
5683
|
+
defaultValue: currentMode && currentMode.member && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
|
|
5684
|
+
ref: function ref(_ref34) {
|
|
5685
|
+
return _this8["inputJfdxAmount"] = _ref34;
|
|
5439
5686
|
},
|
|
5440
5687
|
onFocus: function onFocus(e) {
|
|
5441
5688
|
_this8.inputkey = "inputJfdxAmount";
|