tplus-components-touch 3.22.11 → 3.22.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -16
- package/dist/components/acCitySelect/CitySelect.js +18 -18
- package/dist/components/acCitySelect/CitySelect.js.map +1 -1
- package/dist/components/acCitySelect/CitySelect.less +9 -9
- package/dist/components/acCitySelect/citys.js.map +1 -1
- package/dist/components/acCitySelect/index.js.map +1 -1
- package/dist/components/acCitySelect/provinceData.js +7 -7
- package/dist/components/acCitySelect/provinceData.js.map +1 -1
- package/dist/components/addLog/AddLogProcessor.js +6 -6
- package/dist/components/addLog/AddLogProcessor.js.map +1 -1
- package/dist/components/addLog/OperationLogApi.js +3 -3
- package/dist/components/addLog/OperationLogApi.js.map +1 -1
- package/dist/components/autoComplete/index.js +14 -14
- package/dist/components/autoComplete/index.js.map +1 -1
- package/dist/components/autoComplete/index.less +89 -89
- package/dist/components/autoComplete/option.js.map +1 -1
- package/dist/components/autoCompleteWithKeyboard/index.js +14 -14
- package/dist/components/autoCompleteWithKeyboard/index.js.map +1 -1
- package/dist/components/autoCompleteWithKeyboard/index.less +7 -7
- package/dist/components/billSearch/api.js +29 -29
- package/dist/components/billSearch/api.js.map +1 -1
- package/dist/components/billSearch/index.js +6 -6
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/billSearch/index.less +373 -373
- package/dist/components/cloudPrint/BTPrintFormatUtil.js +17 -17
- package/dist/components/cloudPrint/BTPrintFormatUtil.js.map +1 -1
- package/dist/components/cloudPrint/api.js.map +1 -1
- package/dist/components/cloudPrint/index.js.map +1 -1
- package/dist/components/cloudPrint/printDispatch.js +7 -7
- package/dist/components/cloudPrint/printDispatch.js.map +1 -1
- package/dist/components/commonForm/addressPicker/index.js +7 -7
- package/dist/components/commonForm/addressPicker/index.js.map +1 -1
- package/dist/components/commonForm/addressPicker/style.less +10 -10
- package/dist/components/commonForm/autoComplete/index.js.map +1 -1
- package/dist/components/commonForm/autoComplete/style.less +2 -2
- package/dist/components/commonForm/datePicker/index.js.map +1 -1
- package/dist/components/commonForm/datePicker/style.less +4 -4
- package/dist/components/commonForm/formControl/index.js.map +1 -1
- package/dist/components/commonForm/index.js +4 -4
- package/dist/components/commonForm/index.js.map +1 -1
- package/dist/components/commonForm/inputNumber/index.js.map +1 -1
- package/dist/components/commonForm/inputNumber/style.less +10 -10
- package/dist/components/commonForm/radio/index.js.map +1 -1
- package/dist/components/commonForm/style.less +1 -1
- package/dist/components/deliverySearch/api.js +21 -21
- package/dist/components/deliverySearch/api.js.map +1 -1
- package/dist/components/deliverySearch/index.js +6 -6
- package/dist/components/deliverySearch/index.js.map +1 -1
- package/dist/components/deliverySearch/index.less +553 -553
- package/dist/components/form/index.js.map +1 -1
- package/dist/components/hardwareAPI/index.js.map +1 -1
- package/dist/components/hotKey/config.js +23 -23
- package/dist/components/hotKey/config.js.map +1 -1
- package/dist/components/hotKey/hotKeyModal.js.map +1 -1
- package/dist/components/hotKey/index.js +26 -26
- package/dist/components/hotKey/index.js.map +1 -1
- package/dist/components/hotKey/localConfig.js.map +1 -1
- package/dist/components/hotKey/style.less +96 -96
- package/dist/components/hotKey/utils.js.map +1 -1
- package/dist/components/input/index.js +6 -6
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/input/style.less +99 -99
- package/dist/components/input/tplusInput/index.js +30 -30
- package/dist/components/input/tplusInput/index.js.map +1 -1
- package/dist/components/input/tplusInput/inputContent.js.map +1 -1
- package/dist/components/input/tplusInput/inputs.js.map +1 -1
- package/dist/components/input/tplusInput/style.less +132 -132
- package/dist/components/input/utils/index.js.map +1 -1
- package/dist/components/inventorySearch/api.js +58 -58
- package/dist/components/inventorySearch/api.js.map +1 -1
- package/dist/components/inventorySearch/index.js +3 -3
- package/dist/components/inventorySearch/index.js.map +1 -1
- package/dist/components/inventorySearch/index.less +119 -119
- package/dist/components/inventorySearch/store.js.map +1 -1
- package/dist/components/inventorySearch/tab.js.map +1 -1
- package/dist/components/keyboard/index.js.map +1 -1
- package/dist/components/keyboard/index.less +469 -469
- package/dist/components/keyboard/letterKeyboard.js +2 -2
- package/dist/components/keyboard/letterKeyboard.js.map +1 -1
- package/dist/components/keyboard/numKeyboard.js +4 -4
- package/dist/components/keyboard/numKeyboard.js.map +1 -1
- package/dist/components/keyboard/numKeyboardScan.js.map +1 -1
- package/dist/components/keyboard/numberButton_input.js +5 -5
- package/dist/components/keyboard/numberButton_input.js.map +1 -1
- package/dist/components/keyboard/numkeyboardPassword.js +4 -4
- package/dist/components/keyboard/numkeyboardPassword.js.map +1 -1
- package/dist/components/keyboard/onlyKeyboard.js +7 -7
- package/dist/components/keyboard/onlyKeyboard.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton.js +2 -2
- package/dist/components/keyboard/onlyLetterButton.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton2.js +2 -2
- package/dist/components/keyboard/onlyLetterButton2.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton2.less +161 -161
- package/dist/components/keyboard/onlyNumberButton.js +2 -2
- package/dist/components/keyboard/onlyNumberButton.js.map +1 -1
- package/dist/components/keyboard/onlyNumberButton2.js +3 -3
- package/dist/components/keyboard/onlyNumberButton2.js.map +1 -1
- package/dist/components/keyboard/textKeyboard.js.map +1 -1
- package/dist/components/layout/hamburger.js.map +1 -1
- package/dist/components/layout/index.js +10 -10
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/layout.js.map +1 -1
- package/dist/components/layout/sider.js +12 -12
- package/dist/components/layout/sider.js.map +1 -1
- package/dist/components/layout/style.less +82 -82
- package/dist/components/loading/index.js +15 -15
- package/dist/components/loading/index.js.map +1 -1
- package/dist/components/loading/loadingContent.js.map +1 -1
- package/dist/components/loading/style.less +61 -61
- package/dist/components/loading/utils.js.map +1 -1
- package/dist/components/message/index.js +8 -8
- package/dist/components/message/index.js.map +1 -1
- package/dist/components/message/index.less +101 -101
- package/dist/components/modal/index.js.map +1 -1
- package/dist/components/modal/index.less +19 -19
- package/dist/components/modalVertical/index.js +7 -7
- package/dist/components/modalVertical/index.js.map +1 -1
- package/dist/components/modalVertical/style.less +60 -60
- package/dist/components/modalWraper/index.js +15 -15
- package/dist/components/modalWraper/index.js.map +1 -1
- package/dist/components/modalWraper/style.less +257 -257
- package/dist/components/modalWraper/utils.js.map +1 -1
- package/dist/components/notification/index.js +4 -4
- package/dist/components/notification/index.js.map +1 -1
- package/dist/components/notification/index.less +51 -51
- package/dist/components/overflowTip/index.js +15 -15
- package/dist/components/overflowTip/index.js.map +1 -1
- package/dist/components/overflowTip/style.less +66 -66
- package/dist/components/page/index.js.map +1 -1
- package/dist/components/page/index.less +21 -21
- package/dist/components/product/detail.js +7 -7
- package/dist/components/product/detail.js.map +1 -1
- package/dist/components/product/getCard.js +5 -5
- package/dist/components/product/getCard.js.map +1 -1
- package/dist/components/product/index.less +128 -128
- package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
- package/dist/components/progressState/ProgressState.js +10 -10
- package/dist/components/progressState/ProgressState.js.map +1 -1
- package/dist/components/progressState/index.js.map +1 -1
- package/dist/components/progressState/style.less +65 -65
- package/dist/components/scan/index.js.map +1 -1
- package/dist/components/scan/index.less +33 -33
- package/dist/components/select/index.js.map +1 -1
- package/dist/components/select/index.less +11 -11
- package/dist/components/settlement/asyncModal.js.map +1 -1
- package/dist/components/settlement/index.js.map +1 -1
- package/dist/components/settlement/prototypeTable/index.js.map +1 -1
- package/dist/components/settlement/prototypeTable/style.less +58 -58
- package/dist/components/settlement/prototypeTable/utils.js.map +1 -1
- package/dist/components/settlement/settlement.js +226 -186
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +1593 -1585
- package/dist/components/settlement/settlementStore.js +18 -38
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/settlement/utils.js.map +1 -1
- package/dist/components/socket/index.js +11 -11
- package/dist/components/socket/index.js.map +1 -1
- package/dist/components/spin/index.js +6 -6
- package/dist/components/spin/index.js.map +1 -1
- package/dist/components/spin/spin-style.less +436 -436
- package/dist/components/test/index.js +3 -3
- package/dist/components/test/index.js.map +1 -1
- package/dist/components/ticon/iconfont/iconfont.svg +593 -593
- package/dist/components/ticon/index.js.map +1 -1
- package/dist/components/touchScroll/index.js +9 -9
- package/dist/components/touchScroll/index.js.map +1 -1
- package/dist/components/touchTable/AuthProcess.js.map +1 -1
- package/dist/components/touchTable/generateWater.js.map +1 -1
- package/dist/components/touchTable/index.js +9 -9
- package/dist/components/touchTable/index.js.map +1 -1
- package/dist/components/touchTable/index.less +369 -369
- package/dist/components/touchTable/utils.js.map +1 -1
- package/dist/demo/PopOverDemo.js.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/util/tools.js.map +1 -1
- package/locales/zh/tplus-components-touch.json +1 -1
- package/locales/zh-CN/tplus-components-touch.json +1 -1
- package/mocks/memberInfo.json +79 -79
- package/package.json +35 -35
- package/tsconfig.json +26 -26
|
@@ -252,7 +252,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
252
252
|
bquick: false,
|
|
253
253
|
currentKey: null,
|
|
254
254
|
couponLight: true,
|
|
255
|
-
storageValue: '0.00'
|
|
255
|
+
storageValue: '0.00',
|
|
256
|
+
czkValue: null };
|
|
256
257
|
_this2.compoundHotkeysList = (window.$.operationControl[5] ? window.$.operationControl[5].control || [] : []).map(function (key) {
|
|
257
258
|
return key.toLocaleUpperCase();
|
|
258
259
|
});
|
|
@@ -605,6 +606,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
605
606
|
_this2.setState({
|
|
606
607
|
czkVisible: true
|
|
607
608
|
});
|
|
609
|
+
if (currentMode.member.id) {
|
|
610
|
+
_this2.setState({
|
|
611
|
+
czkValue: currentMode.member.StorageCardNo
|
|
612
|
+
});
|
|
613
|
+
} else {
|
|
614
|
+
_this2.setState({
|
|
615
|
+
czkValue: null
|
|
616
|
+
});
|
|
617
|
+
}
|
|
608
618
|
}
|
|
609
619
|
setTimeout(function () {
|
|
610
620
|
if (!currentMode.member || !currentMode.member.id) {
|
|
@@ -677,7 +687,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
677
687
|
case 13:
|
|
678
688
|
|
|
679
689
|
_this2.setState({
|
|
680
|
-
czkVisible: false
|
|
690
|
+
czkVisible: false,
|
|
691
|
+
storageValue: '0.00',
|
|
692
|
+
czkvalue: null
|
|
681
693
|
});
|
|
682
694
|
_this2.closeRfCard();
|
|
683
695
|
_this2.store.paymode.calcMemberBalance();
|
|
@@ -702,7 +714,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
702
714
|
_this2.store.clean();
|
|
703
715
|
}
|
|
704
716
|
_this2.setState({
|
|
705
|
-
czkVisible: false
|
|
717
|
+
czkVisible: false,
|
|
718
|
+
storageValue: '0.00',
|
|
719
|
+
czkvalue: null
|
|
706
720
|
});
|
|
707
721
|
_this2.closeRfCard();
|
|
708
722
|
_keyboard2.default.close();
|
|
@@ -1323,9 +1337,28 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1323
1337
|
if (_this2.czkdebounced) {
|
|
1324
1338
|
return;
|
|
1325
1339
|
}
|
|
1326
|
-
_this2.czkdebounced = (0, _debounce3.default)(function () {
|
|
1327
|
-
|
|
1328
|
-
|
|
1340
|
+
_this2.czkdebounced = (0, _debounce3.default)((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
|
|
1341
|
+
return _regenerator2.default.wrap(function _callee3$(_context3) {
|
|
1342
|
+
while (1) {
|
|
1343
|
+
switch (_context3.prev = _context3.next) {
|
|
1344
|
+
case 0:
|
|
1345
|
+
_context3.next = 2;
|
|
1346
|
+
return _this2.store.loadCzk(v);
|
|
1347
|
+
|
|
1348
|
+
case 2:
|
|
1349
|
+
if (_this2.store.paymode.currentMode.StorageCardNo) {
|
|
1350
|
+
_this2.setState({
|
|
1351
|
+
czkValue: _this2.store.paymode.currentMode.StorageCardNo
|
|
1352
|
+
});
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
case 3:
|
|
1356
|
+
case 'end':
|
|
1357
|
+
return _context3.stop();
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
}, _callee3, _this3);
|
|
1361
|
+
})), 1000, {
|
|
1329
1362
|
'leading': true,
|
|
1330
1363
|
'trailing': false
|
|
1331
1364
|
});
|
|
@@ -1513,11 +1546,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1513
1546
|
}
|
|
1514
1547
|
};
|
|
1515
1548
|
|
|
1516
|
-
_this2.settleUnReturn = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
1549
|
+
_this2.settleUnReturn = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
|
|
1517
1550
|
var that;
|
|
1518
|
-
return _regenerator2.default.wrap(function
|
|
1551
|
+
return _regenerator2.default.wrap(function _callee5$(_context5) {
|
|
1519
1552
|
while (1) {
|
|
1520
|
-
switch (
|
|
1553
|
+
switch (_context5.prev = _context5.next) {
|
|
1521
1554
|
case 0:
|
|
1522
1555
|
that = _this2;
|
|
1523
1556
|
|
|
@@ -1540,18 +1573,18 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1540
1573
|
onOk: function onOk() {
|
|
1541
1574
|
var _this4 = this;
|
|
1542
1575
|
|
|
1543
|
-
return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
1576
|
+
return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
|
|
1544
1577
|
var result;
|
|
1545
|
-
return _regenerator2.default.wrap(function
|
|
1578
|
+
return _regenerator2.default.wrap(function _callee4$(_context4) {
|
|
1546
1579
|
while (1) {
|
|
1547
|
-
switch (
|
|
1580
|
+
switch (_context4.prev = _context4.next) {
|
|
1548
1581
|
case 0:
|
|
1549
1582
|
window.__queryingModal = (0, _utils.openQueryingModal)();
|
|
1550
|
-
|
|
1583
|
+
_context4.next = 3;
|
|
1551
1584
|
return that.store.querySettleResult();
|
|
1552
1585
|
|
|
1553
1586
|
case 3:
|
|
1554
|
-
result =
|
|
1587
|
+
result = _context4.sent;
|
|
1555
1588
|
|
|
1556
1589
|
setTimeout(function () {
|
|
1557
1590
|
if (window.__queryingModal) {
|
|
@@ -1559,34 +1592,34 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1559
1592
|
window.__queryingModal = null;
|
|
1560
1593
|
}
|
|
1561
1594
|
}, 0);
|
|
1562
|
-
|
|
1563
|
-
|
|
1595
|
+
_context4.t0 = result.Flag;
|
|
1596
|
+
_context4.next = _context4.t0 === "0" ? 8 : _context4.t0 === "1" ? 11 : _context4.t0 === "2" ? 13 : 15;
|
|
1564
1597
|
break;
|
|
1565
1598
|
|
|
1566
1599
|
case 8:
|
|
1567
1600
|
//成功
|
|
1568
1601
|
that.store.setDtoID(result.ID);
|
|
1569
1602
|
that.settleSuccess();
|
|
1570
|
-
return
|
|
1603
|
+
return _context4.abrupt('break', 15);
|
|
1571
1604
|
|
|
1572
1605
|
case 11:
|
|
1573
1606
|
//处理中
|
|
1574
1607
|
that.settleUnReturn();
|
|
1575
1608
|
// Message.info("结算正在处理中,请稍后再次查询。");
|
|
1576
|
-
return
|
|
1609
|
+
return _context4.abrupt('break', 15);
|
|
1577
1610
|
|
|
1578
1611
|
case 13:
|
|
1579
1612
|
//失败
|
|
1580
1613
|
_message2.default.info('\u7ED3\u7B97\u5931\u8D25\uFF0C\u539F\u56E0:' + result.Message + '\u3002');
|
|
1581
1614
|
// that.settleCanceled();
|
|
1582
|
-
return
|
|
1615
|
+
return _context4.abrupt('break', 15);
|
|
1583
1616
|
|
|
1584
1617
|
case 15:
|
|
1585
1618
|
case 'end':
|
|
1586
|
-
return
|
|
1619
|
+
return _context4.stop();
|
|
1587
1620
|
}
|
|
1588
1621
|
}
|
|
1589
|
-
},
|
|
1622
|
+
}, _callee4, _this4);
|
|
1590
1623
|
}))();
|
|
1591
1624
|
},
|
|
1592
1625
|
onCancel: function onCancel() {
|
|
@@ -1596,10 +1629,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1596
1629
|
|
|
1597
1630
|
case 2:
|
|
1598
1631
|
case 'end':
|
|
1599
|
-
return
|
|
1632
|
+
return _context5.stop();
|
|
1600
1633
|
}
|
|
1601
1634
|
}
|
|
1602
|
-
},
|
|
1635
|
+
}, _callee5, _this3);
|
|
1603
1636
|
}));
|
|
1604
1637
|
|
|
1605
1638
|
_this2.settleCanceled = function () {
|
|
@@ -1608,12 +1641,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1608
1641
|
_this2.cancelState();
|
|
1609
1642
|
};
|
|
1610
1643
|
|
|
1611
|
-
_this2.settleSuccess = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
1644
|
+
_this2.settleSuccess = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6() {
|
|
1612
1645
|
var _enumController$getEn19, PayStyle, _this2$store$paymode, amount, received, thePaymodes, IdbusiType, charge, openCashBox, _this, showTwoScreen, getSettleGift, type, resp1;
|
|
1613
1646
|
|
|
1614
|
-
return _regenerator2.default.wrap(function
|
|
1647
|
+
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
|
1615
1648
|
while (1) {
|
|
1616
|
-
switch (
|
|
1649
|
+
switch (_context6.prev = _context6.next) {
|
|
1617
1650
|
case 0:
|
|
1618
1651
|
//提示成功
|
|
1619
1652
|
_enumController$getEn19 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn19.PayStyle;
|
|
@@ -1674,22 +1707,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1674
1707
|
resp1 = false;
|
|
1675
1708
|
|
|
1676
1709
|
if (!(type !== 1)) {
|
|
1677
|
-
|
|
1710
|
+
_context6.next = 20;
|
|
1678
1711
|
break;
|
|
1679
1712
|
}
|
|
1680
1713
|
|
|
1681
|
-
|
|
1682
|
-
|
|
1714
|
+
_context6.prev = 11;
|
|
1715
|
+
_context6.next = 14;
|
|
1683
1716
|
return getSettleGift();
|
|
1684
1717
|
|
|
1685
1718
|
case 14:
|
|
1686
|
-
resp1 =
|
|
1687
|
-
|
|
1719
|
+
resp1 = _context6.sent;
|
|
1720
|
+
_context6.next = 20;
|
|
1688
1721
|
break;
|
|
1689
1722
|
|
|
1690
1723
|
case 17:
|
|
1691
|
-
|
|
1692
|
-
|
|
1724
|
+
_context6.prev = 17;
|
|
1725
|
+
_context6.t0 = _context6['catch'](11);
|
|
1693
1726
|
|
|
1694
1727
|
console.log("获取支付礼包getSettleGift失败");
|
|
1695
1728
|
|
|
@@ -1727,23 +1760,23 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1727
1760
|
|
|
1728
1761
|
case 21:
|
|
1729
1762
|
case 'end':
|
|
1730
|
-
return
|
|
1763
|
+
return _context6.stop();
|
|
1731
1764
|
}
|
|
1732
1765
|
}
|
|
1733
|
-
},
|
|
1766
|
+
}, _callee6, _this3, [[11, 17]]);
|
|
1734
1767
|
}));
|
|
1735
1768
|
|
|
1736
1769
|
_this2.handleGuestShow = function (dtype, value) {
|
|
1737
1770
|
if (_this2.hasElectron === false) return;
|
|
1738
1771
|
var dt = _mutantsMicrofx.localStore.get('portsetting_hardSet') || [];
|
|
1739
1772
|
|
|
1740
|
-
var
|
|
1741
|
-
guestshow_enable =
|
|
1742
|
-
guestshow_clear =
|
|
1743
|
-
guestshow_welcome =
|
|
1744
|
-
guestshow_collect =
|
|
1745
|
-
guestshow_refund =
|
|
1746
|
-
guestshow_change =
|
|
1773
|
+
var _ref13 = dt || {},
|
|
1774
|
+
guestshow_enable = _ref13.guestshow_enable,
|
|
1775
|
+
guestshow_clear = _ref13.guestshow_clear,
|
|
1776
|
+
guestshow_welcome = _ref13.guestshow_welcome,
|
|
1777
|
+
guestshow_collect = _ref13.guestshow_collect,
|
|
1778
|
+
guestshow_refund = _ref13.guestshow_refund,
|
|
1779
|
+
guestshow_change = _ref13.guestshow_change;
|
|
1747
1780
|
|
|
1748
1781
|
var hasSuccess = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('portsetting_hardSet_isSuccess');
|
|
1749
1782
|
if (!guestshow_enable || !!guestshow_enable && hasSuccess == '0') return;
|
|
@@ -1778,108 +1811,108 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1778
1811
|
};
|
|
1779
1812
|
|
|
1780
1813
|
_this2.handleSettle = function () {
|
|
1781
|
-
var
|
|
1814
|
+
var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(args) {
|
|
1782
1815
|
var handleUserInputs = function () {
|
|
1783
|
-
var
|
|
1816
|
+
var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8(promises) {
|
|
1784
1817
|
var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
|
|
1785
1818
|
|
|
1786
|
-
return _regenerator2.default.wrap(function
|
|
1819
|
+
return _regenerator2.default.wrap(function _callee8$(_context8) {
|
|
1787
1820
|
while (1) {
|
|
1788
|
-
switch (
|
|
1821
|
+
switch (_context8.prev = _context8.next) {
|
|
1789
1822
|
case 0:
|
|
1790
1823
|
results = [];
|
|
1791
|
-
|
|
1824
|
+
_context8.prev = 1;
|
|
1792
1825
|
_iteratorNormalCompletion = true;
|
|
1793
1826
|
_didIteratorError = false;
|
|
1794
1827
|
_iteratorError = undefined;
|
|
1795
|
-
|
|
1828
|
+
_context8.prev = 5;
|
|
1796
1829
|
_iterator = (0, _getIterator3.default)(promises);
|
|
1797
1830
|
|
|
1798
1831
|
case 7:
|
|
1799
1832
|
if (_iteratorNormalCompletion = (_step = _iterator.next()).done) {
|
|
1800
|
-
|
|
1833
|
+
_context8.next = 16;
|
|
1801
1834
|
break;
|
|
1802
1835
|
}
|
|
1803
1836
|
|
|
1804
1837
|
p = _step.value;
|
|
1805
|
-
|
|
1838
|
+
_context8.next = 11;
|
|
1806
1839
|
return p;
|
|
1807
1840
|
|
|
1808
1841
|
case 11:
|
|
1809
|
-
_result =
|
|
1842
|
+
_result = _context8.sent;
|
|
1810
1843
|
|
|
1811
1844
|
results.push(_result);
|
|
1812
1845
|
|
|
1813
1846
|
case 13:
|
|
1814
1847
|
_iteratorNormalCompletion = true;
|
|
1815
|
-
|
|
1848
|
+
_context8.next = 7;
|
|
1816
1849
|
break;
|
|
1817
1850
|
|
|
1818
1851
|
case 16:
|
|
1819
|
-
|
|
1852
|
+
_context8.next = 22;
|
|
1820
1853
|
break;
|
|
1821
1854
|
|
|
1822
1855
|
case 18:
|
|
1823
|
-
|
|
1824
|
-
|
|
1856
|
+
_context8.prev = 18;
|
|
1857
|
+
_context8.t0 = _context8['catch'](5);
|
|
1825
1858
|
_didIteratorError = true;
|
|
1826
|
-
_iteratorError =
|
|
1859
|
+
_iteratorError = _context8.t0;
|
|
1827
1860
|
|
|
1828
1861
|
case 22:
|
|
1829
|
-
|
|
1830
|
-
|
|
1862
|
+
_context8.prev = 22;
|
|
1863
|
+
_context8.prev = 23;
|
|
1831
1864
|
|
|
1832
1865
|
if (!_iteratorNormalCompletion && _iterator.return) {
|
|
1833
1866
|
_iterator.return();
|
|
1834
1867
|
}
|
|
1835
1868
|
|
|
1836
1869
|
case 25:
|
|
1837
|
-
|
|
1870
|
+
_context8.prev = 25;
|
|
1838
1871
|
|
|
1839
1872
|
if (!_didIteratorError) {
|
|
1840
|
-
|
|
1873
|
+
_context8.next = 28;
|
|
1841
1874
|
break;
|
|
1842
1875
|
}
|
|
1843
1876
|
|
|
1844
1877
|
throw _iteratorError;
|
|
1845
1878
|
|
|
1846
1879
|
case 28:
|
|
1847
|
-
return
|
|
1880
|
+
return _context8.finish(25);
|
|
1848
1881
|
|
|
1849
1882
|
case 29:
|
|
1850
|
-
return
|
|
1883
|
+
return _context8.finish(22);
|
|
1851
1884
|
|
|
1852
1885
|
case 30:
|
|
1853
1886
|
window.__loadingModal = (0, _utils.openLoadingModal)();
|
|
1854
|
-
|
|
1887
|
+
_context8.next = 33;
|
|
1855
1888
|
return commit(results);
|
|
1856
1889
|
|
|
1857
1890
|
case 33:
|
|
1858
|
-
|
|
1891
|
+
_context8.next = 37;
|
|
1859
1892
|
break;
|
|
1860
1893
|
|
|
1861
1894
|
case 35:
|
|
1862
|
-
|
|
1863
|
-
|
|
1895
|
+
_context8.prev = 35;
|
|
1896
|
+
_context8.t1 = _context8['catch'](1);
|
|
1864
1897
|
|
|
1865
1898
|
case 37:
|
|
1866
1899
|
case 'end':
|
|
1867
|
-
return
|
|
1900
|
+
return _context8.stop();
|
|
1868
1901
|
}
|
|
1869
1902
|
}
|
|
1870
|
-
},
|
|
1903
|
+
}, _callee8, this, [[1, 35], [5, 18, 22, 30], [23,, 25, 29]]);
|
|
1871
1904
|
}));
|
|
1872
1905
|
|
|
1873
1906
|
return function handleUserInputs(_x4) {
|
|
1874
|
-
return
|
|
1907
|
+
return _ref16.apply(this, arguments);
|
|
1875
1908
|
};
|
|
1876
1909
|
}();
|
|
1877
1910
|
|
|
1878
1911
|
var _enumController$getEn20, PayStyle, _this2$store6, paymode, brefund, boriginReturn, newStyle, isQuickPay, that, status, zeromode, promises, thePaymodes, quickmode, commit;
|
|
1879
1912
|
|
|
1880
|
-
return _regenerator2.default.wrap(function
|
|
1913
|
+
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
|
1881
1914
|
while (1) {
|
|
1882
|
-
switch (
|
|
1915
|
+
switch (_context9.prev = _context9.next) {
|
|
1883
1916
|
case 0:
|
|
1884
1917
|
_this2.setState({
|
|
1885
1918
|
settleDisabled: true
|
|
@@ -1911,7 +1944,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1911
1944
|
});
|
|
1912
1945
|
|
|
1913
1946
|
if (!(that.checkCharge() && Math.abs(paymode.receivable) > that.props.initData("posChangeUpperAmount"))) {
|
|
1914
|
-
|
|
1947
|
+
_context9.next = 13;
|
|
1915
1948
|
break;
|
|
1916
1949
|
}
|
|
1917
1950
|
|
|
@@ -1919,11 +1952,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1919
1952
|
_this2.setState({
|
|
1920
1953
|
settleDisabled: false
|
|
1921
1954
|
});
|
|
1922
|
-
return
|
|
1955
|
+
return _context9.abrupt('return');
|
|
1923
1956
|
|
|
1924
1957
|
case 13:
|
|
1925
1958
|
if (!(args !== "zero" && !newStyle)) {
|
|
1926
|
-
|
|
1959
|
+
_context9.next = 19;
|
|
1927
1960
|
break;
|
|
1928
1961
|
}
|
|
1929
1962
|
|
|
@@ -1932,7 +1965,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1932
1965
|
});
|
|
1933
1966
|
|
|
1934
1967
|
if (!zeromode) {
|
|
1935
|
-
|
|
1968
|
+
_context9.next = 19;
|
|
1936
1969
|
break;
|
|
1937
1970
|
}
|
|
1938
1971
|
|
|
@@ -1940,7 +1973,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1940
1973
|
settleDisabled: false
|
|
1941
1974
|
});
|
|
1942
1975
|
_message2.default.error(zeromode.name + ' 的结算金额为零,不可以结算。');
|
|
1943
|
-
return
|
|
1976
|
+
return _context9.abrupt('return');
|
|
1944
1977
|
|
|
1945
1978
|
case 19:
|
|
1946
1979
|
promises = [];
|
|
@@ -1949,14 +1982,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1949
1982
|
}) : paymode.thePaymodes, 'orderBy');
|
|
1950
1983
|
|
|
1951
1984
|
if (!isQuickPay) {
|
|
1952
|
-
|
|
1985
|
+
_context9.next = 27;
|
|
1953
1986
|
break;
|
|
1954
1987
|
}
|
|
1955
1988
|
|
|
1956
1989
|
quickmode = thePaymodes[0];
|
|
1957
1990
|
|
|
1958
1991
|
if (!_this2.checkModeDisabled(quickmode.paymentType, brefund, boriginReturn)) {
|
|
1959
|
-
|
|
1992
|
+
_context9.next = 27;
|
|
1960
1993
|
break;
|
|
1961
1994
|
}
|
|
1962
1995
|
|
|
@@ -1964,7 +1997,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1964
1997
|
settleDisabled: false
|
|
1965
1998
|
});
|
|
1966
1999
|
_message2.default.error('退款不能使用' + quickmode.name + '结算,请使用其他结算方式!');
|
|
1967
|
-
return
|
|
2000
|
+
return _context9.abrupt('return');
|
|
1968
2001
|
|
|
1969
2002
|
case 27:
|
|
1970
2003
|
(0, _forEach3.default)(thePaymodes, function (mode) {
|
|
@@ -1974,27 +2007,27 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1974
2007
|
});
|
|
1975
2008
|
|
|
1976
2009
|
commit = function () {
|
|
1977
|
-
var
|
|
2010
|
+
var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(values) {
|
|
1978
2011
|
var result;
|
|
1979
|
-
return _regenerator2.default.wrap(function
|
|
2012
|
+
return _regenerator2.default.wrap(function _callee7$(_context7) {
|
|
1980
2013
|
while (1) {
|
|
1981
|
-
switch (
|
|
2014
|
+
switch (_context7.prev = _context7.next) {
|
|
1982
2015
|
case 0:
|
|
1983
|
-
|
|
2016
|
+
_context7.next = 2;
|
|
1984
2017
|
return _this2.store.commit(_this2.props.bTest);
|
|
1985
2018
|
|
|
1986
2019
|
case 2:
|
|
1987
|
-
result =
|
|
2020
|
+
result = _context7.sent;
|
|
1988
2021
|
|
|
1989
2022
|
if (!(result === true)) {
|
|
1990
|
-
|
|
2023
|
+
_context7.next = 8;
|
|
1991
2024
|
break;
|
|
1992
2025
|
}
|
|
1993
2026
|
|
|
1994
2027
|
//成功
|
|
1995
2028
|
that.settleSuccess();
|
|
1996
2029
|
_promise2.default.resolve();
|
|
1997
|
-
|
|
2030
|
+
_context7.next = 23;
|
|
1998
2031
|
break;
|
|
1999
2032
|
|
|
2000
2033
|
case 8:
|
|
@@ -2011,24 +2044,24 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2011
2044
|
}, 0);
|
|
2012
2045
|
|
|
2013
2046
|
if (!(result && (result.Code || result.code))) {
|
|
2014
|
-
|
|
2047
|
+
_context7.next = 20;
|
|
2015
2048
|
break;
|
|
2016
2049
|
}
|
|
2017
2050
|
|
|
2018
|
-
|
|
2019
|
-
|
|
2051
|
+
_context7.t0 = result.Code || result.code;
|
|
2052
|
+
_context7.next = _context7.t0 === 'RE_Settle_UnReturn' ? 14 : _context7.t0 === 'ECONNABORTED' ? 18 : 20;
|
|
2020
2053
|
break;
|
|
2021
2054
|
|
|
2022
2055
|
case 14:
|
|
2023
2056
|
console.log('settlement--RE_Settle_UnReturn--调用清除数据==Focus==');
|
|
2024
2057
|
_this2.props.clearVoucherData && _this2.props.clearVoucherData();
|
|
2025
2058
|
_this2.cancelState();
|
|
2026
|
-
return
|
|
2059
|
+
return _context7.abrupt('break', 20);
|
|
2027
2060
|
|
|
2028
2061
|
case 18:
|
|
2029
2062
|
//error.code === 'ECONNABORTED' && error.message.indexOf('timeout')
|
|
2030
2063
|
result.message.indexOf('timeout') > -1 && that.settleUnReturn();
|
|
2031
|
-
return
|
|
2064
|
+
return _context7.abrupt('break', 20);
|
|
2032
2065
|
|
|
2033
2066
|
case 20:
|
|
2034
2067
|
if (isQuickPay) {
|
|
@@ -2036,19 +2069,19 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2036
2069
|
that.cancelState();
|
|
2037
2070
|
}
|
|
2038
2071
|
|
|
2039
|
-
|
|
2072
|
+
_context7.next = 23;
|
|
2040
2073
|
return _promise2.default.reject();
|
|
2041
2074
|
|
|
2042
2075
|
case 23:
|
|
2043
2076
|
case 'end':
|
|
2044
|
-
return
|
|
2077
|
+
return _context7.stop();
|
|
2045
2078
|
}
|
|
2046
2079
|
}
|
|
2047
|
-
},
|
|
2080
|
+
}, _callee7, _this3);
|
|
2048
2081
|
}));
|
|
2049
2082
|
|
|
2050
2083
|
return function commit(_x3) {
|
|
2051
|
-
return
|
|
2084
|
+
return _ref15.apply(this, arguments);
|
|
2052
2085
|
};
|
|
2053
2086
|
}();
|
|
2054
2087
|
|
|
@@ -2056,102 +2089,102 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2056
2089
|
|
|
2057
2090
|
case 30:
|
|
2058
2091
|
case 'end':
|
|
2059
|
-
return
|
|
2092
|
+
return _context9.stop();
|
|
2060
2093
|
}
|
|
2061
2094
|
}
|
|
2062
|
-
},
|
|
2095
|
+
}, _callee9, _this3);
|
|
2063
2096
|
}));
|
|
2064
2097
|
|
|
2065
2098
|
return function (_x2) {
|
|
2066
|
-
return
|
|
2099
|
+
return _ref14.apply(this, arguments);
|
|
2067
2100
|
};
|
|
2068
2101
|
}();
|
|
2069
2102
|
|
|
2070
|
-
_this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
2103
|
+
_this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12() {
|
|
2071
2104
|
var handleUserInputs = function () {
|
|
2072
|
-
var
|
|
2105
|
+
var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(promises) {
|
|
2073
2106
|
var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
|
|
2074
2107
|
|
|
2075
|
-
return _regenerator2.default.wrap(function
|
|
2108
|
+
return _regenerator2.default.wrap(function _callee11$(_context11) {
|
|
2076
2109
|
while (1) {
|
|
2077
|
-
switch (
|
|
2110
|
+
switch (_context11.prev = _context11.next) {
|
|
2078
2111
|
case 0:
|
|
2079
2112
|
results = [];
|
|
2080
|
-
|
|
2113
|
+
_context11.prev = 1;
|
|
2081
2114
|
_iteratorNormalCompletion2 = true;
|
|
2082
2115
|
_didIteratorError2 = false;
|
|
2083
2116
|
_iteratorError2 = undefined;
|
|
2084
|
-
|
|
2117
|
+
_context11.prev = 5;
|
|
2085
2118
|
_iterator2 = (0, _getIterator3.default)(promises);
|
|
2086
2119
|
|
|
2087
2120
|
case 7:
|
|
2088
2121
|
if (_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done) {
|
|
2089
|
-
|
|
2122
|
+
_context11.next = 16;
|
|
2090
2123
|
break;
|
|
2091
2124
|
}
|
|
2092
2125
|
|
|
2093
2126
|
p = _step2.value;
|
|
2094
|
-
|
|
2127
|
+
_context11.next = 11;
|
|
2095
2128
|
return p;
|
|
2096
2129
|
|
|
2097
2130
|
case 11:
|
|
2098
|
-
_result2 =
|
|
2131
|
+
_result2 = _context11.sent;
|
|
2099
2132
|
|
|
2100
2133
|
results.push(_result2);
|
|
2101
2134
|
|
|
2102
2135
|
case 13:
|
|
2103
2136
|
_iteratorNormalCompletion2 = true;
|
|
2104
|
-
|
|
2137
|
+
_context11.next = 7;
|
|
2105
2138
|
break;
|
|
2106
2139
|
|
|
2107
2140
|
case 16:
|
|
2108
|
-
|
|
2141
|
+
_context11.next = 22;
|
|
2109
2142
|
break;
|
|
2110
2143
|
|
|
2111
2144
|
case 18:
|
|
2112
|
-
|
|
2113
|
-
|
|
2145
|
+
_context11.prev = 18;
|
|
2146
|
+
_context11.t0 = _context11['catch'](5);
|
|
2114
2147
|
_didIteratorError2 = true;
|
|
2115
|
-
_iteratorError2 =
|
|
2148
|
+
_iteratorError2 = _context11.t0;
|
|
2116
2149
|
|
|
2117
2150
|
case 22:
|
|
2118
|
-
|
|
2119
|
-
|
|
2151
|
+
_context11.prev = 22;
|
|
2152
|
+
_context11.prev = 23;
|
|
2120
2153
|
|
|
2121
2154
|
if (!_iteratorNormalCompletion2 && _iterator2.return) {
|
|
2122
2155
|
_iterator2.return();
|
|
2123
2156
|
}
|
|
2124
2157
|
|
|
2125
2158
|
case 25:
|
|
2126
|
-
|
|
2159
|
+
_context11.prev = 25;
|
|
2127
2160
|
|
|
2128
2161
|
if (!_didIteratorError2) {
|
|
2129
|
-
|
|
2162
|
+
_context11.next = 28;
|
|
2130
2163
|
break;
|
|
2131
2164
|
}
|
|
2132
2165
|
|
|
2133
2166
|
throw _iteratorError2;
|
|
2134
2167
|
|
|
2135
2168
|
case 28:
|
|
2136
|
-
return
|
|
2169
|
+
return _context11.finish(25);
|
|
2137
2170
|
|
|
2138
2171
|
case 29:
|
|
2139
|
-
return
|
|
2172
|
+
return _context11.finish(22);
|
|
2140
2173
|
|
|
2141
2174
|
case 30:
|
|
2142
|
-
|
|
2175
|
+
_context11.next = 32;
|
|
2143
2176
|
return commit(results);
|
|
2144
2177
|
|
|
2145
2178
|
case 32:
|
|
2146
|
-
|
|
2179
|
+
_context11.next = 37;
|
|
2147
2180
|
break;
|
|
2148
2181
|
|
|
2149
2182
|
case 34:
|
|
2150
|
-
|
|
2151
|
-
|
|
2183
|
+
_context11.prev = 34;
|
|
2184
|
+
_context11.t1 = _context11['catch'](1);
|
|
2152
2185
|
|
|
2153
|
-
if (
|
|
2154
|
-
_message2.default.error(
|
|
2186
|
+
if (_context11.t1 != "cancelpwd") {
|
|
2187
|
+
_message2.default.error(_context11.t1);
|
|
2155
2188
|
setTimeout(function () {
|
|
2156
2189
|
that.handleCzk();
|
|
2157
2190
|
}, 500);
|
|
@@ -2159,27 +2192,27 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2159
2192
|
|
|
2160
2193
|
case 37:
|
|
2161
2194
|
case 'end':
|
|
2162
|
-
return
|
|
2195
|
+
return _context11.stop();
|
|
2163
2196
|
}
|
|
2164
2197
|
}
|
|
2165
|
-
},
|
|
2198
|
+
}, _callee11, this, [[1, 34], [5, 18, 22, 30], [23,, 25, 29]]);
|
|
2166
2199
|
}));
|
|
2167
2200
|
|
|
2168
2201
|
return function handleUserInputs(_x6) {
|
|
2169
|
-
return
|
|
2202
|
+
return _ref20.apply(this, arguments);
|
|
2170
2203
|
};
|
|
2171
2204
|
}();
|
|
2172
2205
|
|
|
2173
|
-
var that, curmode, promises,
|
|
2206
|
+
var that, curmode, promises, _ref18, isNewRetailBCPos, _enumController$getEn21, PayStyle, isNeedPasswordForStoragePay, commit;
|
|
2174
2207
|
|
|
2175
|
-
return _regenerator2.default.wrap(function
|
|
2208
|
+
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
|
2176
2209
|
while (1) {
|
|
2177
|
-
switch (
|
|
2210
|
+
switch (_context12.prev = _context12.next) {
|
|
2178
2211
|
case 0:
|
|
2179
2212
|
that = _this2;
|
|
2180
2213
|
curmode = _this2.store.paymode.currentMode;
|
|
2181
2214
|
promises = [];
|
|
2182
|
-
|
|
2215
|
+
_ref18 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref18.isNewRetailBCPos;
|
|
2183
2216
|
|
|
2184
2217
|
if (isNewRetailBCPos) {
|
|
2185
2218
|
if (curmode.value > 0) {
|
|
@@ -2200,33 +2233,33 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2200
2233
|
}
|
|
2201
2234
|
|
|
2202
2235
|
commit = function () {
|
|
2203
|
-
var
|
|
2236
|
+
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(values) {
|
|
2204
2237
|
var result;
|
|
2205
|
-
return _regenerator2.default.wrap(function
|
|
2238
|
+
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
|
2206
2239
|
while (1) {
|
|
2207
|
-
switch (
|
|
2240
|
+
switch (_context10.prev = _context10.next) {
|
|
2208
2241
|
case 0:
|
|
2209
2242
|
if (!(values.length > 0)) {
|
|
2210
|
-
|
|
2243
|
+
_context10.next = 6;
|
|
2211
2244
|
break;
|
|
2212
2245
|
}
|
|
2213
2246
|
|
|
2214
|
-
|
|
2247
|
+
_context10.next = 3;
|
|
2215
2248
|
return that.store.validePwd(values[0]);
|
|
2216
2249
|
|
|
2217
2250
|
case 3:
|
|
2218
|
-
|
|
2219
|
-
|
|
2251
|
+
_context10.t0 = _context10.sent;
|
|
2252
|
+
_context10.next = 7;
|
|
2220
2253
|
break;
|
|
2221
2254
|
|
|
2222
2255
|
case 6:
|
|
2223
|
-
|
|
2256
|
+
_context10.t0 = "";
|
|
2224
2257
|
|
|
2225
2258
|
case 7:
|
|
2226
|
-
result =
|
|
2259
|
+
result = _context10.t0;
|
|
2227
2260
|
|
|
2228
2261
|
if (!(result == "")) {
|
|
2229
|
-
|
|
2262
|
+
_context10.next = 13;
|
|
2230
2263
|
break;
|
|
2231
2264
|
}
|
|
2232
2265
|
|
|
@@ -2234,23 +2267,23 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2234
2267
|
//返回
|
|
2235
2268
|
that.setCurrentFocusAndAddPay(curmode.paymentType);
|
|
2236
2269
|
_promise2.default.resolve();
|
|
2237
|
-
|
|
2270
|
+
_context10.next = 15;
|
|
2238
2271
|
break;
|
|
2239
2272
|
|
|
2240
2273
|
case 13:
|
|
2241
|
-
|
|
2274
|
+
_context10.next = 15;
|
|
2242
2275
|
return _promise2.default.reject(result);
|
|
2243
2276
|
|
|
2244
2277
|
case 15:
|
|
2245
2278
|
case 'end':
|
|
2246
|
-
return
|
|
2279
|
+
return _context10.stop();
|
|
2247
2280
|
}
|
|
2248
2281
|
}
|
|
2249
|
-
},
|
|
2282
|
+
}, _callee10, _this3);
|
|
2250
2283
|
}));
|
|
2251
2284
|
|
|
2252
2285
|
return function commit(_x5) {
|
|
2253
|
-
return
|
|
2286
|
+
return _ref19.apply(this, arguments);
|
|
2254
2287
|
};
|
|
2255
2288
|
}();
|
|
2256
2289
|
|
|
@@ -2258,10 +2291,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2258
2291
|
|
|
2259
2292
|
case 7:
|
|
2260
2293
|
case 'end':
|
|
2261
|
-
return
|
|
2294
|
+
return _context12.stop();
|
|
2262
2295
|
}
|
|
2263
2296
|
}
|
|
2264
|
-
},
|
|
2297
|
+
}, _callee12, _this3);
|
|
2265
2298
|
}));
|
|
2266
2299
|
|
|
2267
2300
|
_this2.fKeyboardOnOk = function (paymethodeId) {
|
|
@@ -2301,15 +2334,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2301
2334
|
};
|
|
2302
2335
|
|
|
2303
2336
|
_this2.inputPwd = function () {
|
|
2304
|
-
var
|
|
2337
|
+
var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(paymode) {
|
|
2305
2338
|
var that, confirmPwd;
|
|
2306
|
-
return _regenerator2.default.wrap(function
|
|
2339
|
+
return _regenerator2.default.wrap(function _callee13$(_context13) {
|
|
2307
2340
|
while (1) {
|
|
2308
|
-
switch (
|
|
2341
|
+
switch (_context13.prev = _context13.next) {
|
|
2309
2342
|
case 0:
|
|
2310
2343
|
that = _this2;
|
|
2311
2344
|
confirmPwd = _this2.state.confirmPwd;
|
|
2312
|
-
return
|
|
2345
|
+
return _context13.abrupt('return', new _promise2.default(function (resolve, reject) {
|
|
2313
2346
|
var modal = (0, _asyncModal2.default)({
|
|
2314
2347
|
onPressEnter: function onPressEnter() {
|
|
2315
2348
|
_keyboard2.default.close();
|
|
@@ -2317,8 +2350,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2317
2350
|
// if (v !== '') {
|
|
2318
2351
|
modal.destroy();
|
|
2319
2352
|
|
|
2320
|
-
var
|
|
2321
|
-
confirmPwd =
|
|
2353
|
+
var _ref22 = that.state || {},
|
|
2354
|
+
confirmPwd = _ref22.confirmPwd;
|
|
2322
2355
|
|
|
2323
2356
|
setTimeout(function () {
|
|
2324
2357
|
paymode.authCode = v;
|
|
@@ -2408,8 +2441,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2408
2441
|
type: 'primary', size: 'large', onClick: function onClick() {
|
|
2409
2442
|
var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
|
|
2410
2443
|
|
|
2411
|
-
var
|
|
2412
|
-
confirmPwd =
|
|
2444
|
+
var _ref23 = that.state || {},
|
|
2445
|
+
confirmPwd = _ref23.confirmPwd;
|
|
2413
2446
|
// if (v !== '') {
|
|
2414
2447
|
|
|
2415
2448
|
|
|
@@ -2443,14 +2476,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2443
2476
|
|
|
2444
2477
|
case 3:
|
|
2445
2478
|
case 'end':
|
|
2446
|
-
return
|
|
2479
|
+
return _context13.stop();
|
|
2447
2480
|
}
|
|
2448
2481
|
}
|
|
2449
|
-
},
|
|
2482
|
+
}, _callee13, _this3);
|
|
2450
2483
|
}));
|
|
2451
2484
|
|
|
2452
2485
|
return function (_x7) {
|
|
2453
|
-
return
|
|
2486
|
+
return _ref21.apply(this, arguments);
|
|
2454
2487
|
};
|
|
2455
2488
|
}();
|
|
2456
2489
|
|
|
@@ -2503,12 +2536,18 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2503
2536
|
|
|
2504
2537
|
_this2.onCzkChange = function (v) {
|
|
2505
2538
|
// console.log("czk change:"+new Date().toLocaleTimeString())
|
|
2506
|
-
var
|
|
2507
|
-
isNewRetailBCPos =
|
|
2539
|
+
var _ref24 = _mutantsUtil.platform || {},
|
|
2540
|
+
isNewRetailBCPos = _ref24.isNewRetailBCPos;
|
|
2508
2541
|
|
|
2509
2542
|
if (!isNewRetailBCPos) {
|
|
2510
2543
|
_this2.store.paymode.currentMode.member.setCardNo(v);
|
|
2511
2544
|
}
|
|
2545
|
+
if (!/^[0-9]*$/.test(v)) {
|
|
2546
|
+
return;
|
|
2547
|
+
}
|
|
2548
|
+
_this2.setState({
|
|
2549
|
+
czkValue: v
|
|
2550
|
+
});
|
|
2512
2551
|
// if(this.debounced){
|
|
2513
2552
|
// this.debounced.cancel();
|
|
2514
2553
|
// this.debounced=null;
|
|
@@ -3079,20 +3118,20 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3079
3118
|
|
|
3080
3119
|
_this2.hasElectron = hasElectron;
|
|
3081
3120
|
|
|
3082
|
-
var
|
|
3083
|
-
|
|
3121
|
+
var _ref25 = _mutantsMicrofx.localStore.get('user') || {},
|
|
3122
|
+
_ref25$loginInfo = _ref25.loginInfo;
|
|
3084
3123
|
|
|
3085
|
-
|
|
3086
|
-
var ICCardServer =
|
|
3087
|
-
ICCardPassword =
|
|
3124
|
+
_ref25$loginInfo = _ref25$loginInfo === undefined ? {} : _ref25$loginInfo;
|
|
3125
|
+
var ICCardServer = _ref25$loginInfo.ICCardServer,
|
|
3126
|
+
ICCardPassword = _ref25$loginInfo.ICCardPassword;
|
|
3088
3127
|
|
|
3089
3128
|
_this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
|
|
3090
3129
|
_this2.iCCardPassword = ICCardPassword; //IC卡密码
|
|
3091
3130
|
//移动端环境下,没有读取IC卡的方式。
|
|
3092
3131
|
|
|
3093
|
-
var
|
|
3094
|
-
isHorizontalPad =
|
|
3095
|
-
isHorizontalSunMi =
|
|
3132
|
+
var _ref26 = _mutantsUtil.platform || {},
|
|
3133
|
+
isHorizontalPad = _ref26.isHorizontalPad,
|
|
3134
|
+
isHorizontalSunMi = _ref26.isHorizontalSunMi;
|
|
3096
3135
|
|
|
3097
3136
|
_this2.isHorizontalPad = !!isHorizontalPad;
|
|
3098
3137
|
_this2.isHorizontalSunMi = !!isHorizontalSunMi;
|
|
@@ -3207,11 +3246,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3207
3246
|
//jfdx
|
|
3208
3247
|
|
|
3209
3248
|
|
|
3210
|
-
/**
|
|
3211
|
-
*
|
|
3212
|
-
* @param {*} thePaymodes 支付方式列表
|
|
3213
|
-
* @param {*} currenIndex 当前支付方式下标
|
|
3214
|
-
* @param {*} symbol 从当前currenIndex开始 还是从当前currenIndex截止
|
|
3249
|
+
/**
|
|
3250
|
+
*
|
|
3251
|
+
* @param {*} thePaymodes 支付方式列表
|
|
3252
|
+
* @param {*} currenIndex 当前支付方式下标
|
|
3253
|
+
* @param {*} symbol 从当前currenIndex开始 还是从当前currenIndex截止
|
|
3215
3254
|
*/
|
|
3216
3255
|
|
|
3217
3256
|
// 处理客显显示功能
|
|
@@ -3327,8 +3366,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3327
3366
|
discountPrototypeTotalAmount = _state2.discountPrototypeTotalAmount,
|
|
3328
3367
|
storageValue = _state2.storageValue;
|
|
3329
3368
|
|
|
3330
|
-
var
|
|
3331
|
-
isNewRetailBCPos =
|
|
3369
|
+
var _ref27 = _mutantsUtil.platform || {},
|
|
3370
|
+
isNewRetailBCPos = _ref27.isNewRetailBCPos;
|
|
3332
3371
|
|
|
3333
3372
|
var _store2 = this.store,
|
|
3334
3373
|
paymode = _store2.paymode,
|
|
@@ -3391,11 +3430,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3391
3430
|
quantity4 = 0;
|
|
3392
3431
|
var sumQuantity = 0; //数量总和的值,包括称重的。
|
|
3393
3432
|
|
|
3394
|
-
var
|
|
3395
|
-
|
|
3396
|
-
buyQuantity =
|
|
3397
|
-
|
|
3398
|
-
returnQuantity =
|
|
3433
|
+
var _ref28 = quantityDetail || {},
|
|
3434
|
+
_ref28$buyQuantity = _ref28.buyQuantity,
|
|
3435
|
+
buyQuantity = _ref28$buyQuantity === undefined ? 0 : _ref28$buyQuantity,
|
|
3436
|
+
_ref28$returnQuantity = _ref28.returnQuantity,
|
|
3437
|
+
returnQuantity = _ref28$returnQuantity === undefined ? 0 : _ref28$returnQuantity;
|
|
3399
3438
|
|
|
3400
3439
|
var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
|
|
3401
3440
|
quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
|
|
@@ -4710,7 +4749,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4710
4749
|
onChange: function onChange(e) {
|
|
4711
4750
|
return _this8.onCzkChange(e.target.value);
|
|
4712
4751
|
},
|
|
4713
|
-
|
|
4752
|
+
defaultValue: isNewRetailBCPos ? currentMode && currentMode.member.StorageCardNo : currentMode && currentMode.member.cardNo,
|
|
4753
|
+
value: this.state.czkValue,
|
|
4714
4754
|
ref: function ref(input) {
|
|
4715
4755
|
return _this8.czkInput = input;
|
|
4716
4756
|
},
|
|
@@ -4773,8 +4813,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4773
4813
|
_this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.member.balance));
|
|
4774
4814
|
},
|
|
4775
4815
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.member.balance)),
|
|
4776
|
-
ref: function ref(
|
|
4777
|
-
return _this8["inputCzkAmount"] =
|
|
4816
|
+
ref: function ref(_ref29) {
|
|
4817
|
+
return _this8["inputCzkAmount"] = _ref29;
|
|
4778
4818
|
},
|
|
4779
4819
|
onFocus: function onFocus(e) {
|
|
4780
4820
|
_this8.inputkey = "inputCzkAmount";
|
|
@@ -5391,8 +5431,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5391
5431
|
_this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
|
|
5392
5432
|
},
|
|
5393
5433
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
|
|
5394
|
-
ref: function ref(
|
|
5395
|
-
return _this8["inputJfdxAmount"] =
|
|
5434
|
+
ref: function ref(_ref30) {
|
|
5435
|
+
return _this8["inputJfdxAmount"] = _ref30;
|
|
5396
5436
|
},
|
|
5397
5437
|
onFocus: function onFocus(e) {
|
|
5398
5438
|
_this8.inputkey = "inputJfdxAmount";
|