tplus-components-touch 3.22.11 → 3.22.12
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 +220 -186
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +1585 -1585
- package/dist/components/settlement/settlementStore.js +15 -12
- 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,11 @@ 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
|
+
}
|
|
608
614
|
}
|
|
609
615
|
setTimeout(function () {
|
|
610
616
|
if (!currentMode.member || !currentMode.member.id) {
|
|
@@ -677,7 +683,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
677
683
|
case 13:
|
|
678
684
|
|
|
679
685
|
_this2.setState({
|
|
680
|
-
czkVisible: false
|
|
686
|
+
czkVisible: false,
|
|
687
|
+
storageValue: '0.00'
|
|
681
688
|
});
|
|
682
689
|
_this2.closeRfCard();
|
|
683
690
|
_this2.store.paymode.calcMemberBalance();
|
|
@@ -702,7 +709,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
702
709
|
_this2.store.clean();
|
|
703
710
|
}
|
|
704
711
|
_this2.setState({
|
|
705
|
-
czkVisible: false
|
|
712
|
+
czkVisible: false,
|
|
713
|
+
storageValue: '0.00'
|
|
706
714
|
});
|
|
707
715
|
_this2.closeRfCard();
|
|
708
716
|
_keyboard2.default.close();
|
|
@@ -1323,9 +1331,28 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1323
1331
|
if (_this2.czkdebounced) {
|
|
1324
1332
|
return;
|
|
1325
1333
|
}
|
|
1326
|
-
_this2.czkdebounced = (0, _debounce3.default)(function () {
|
|
1327
|
-
|
|
1328
|
-
|
|
1334
|
+
_this2.czkdebounced = (0, _debounce3.default)((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
|
|
1335
|
+
return _regenerator2.default.wrap(function _callee3$(_context3) {
|
|
1336
|
+
while (1) {
|
|
1337
|
+
switch (_context3.prev = _context3.next) {
|
|
1338
|
+
case 0:
|
|
1339
|
+
_context3.next = 2;
|
|
1340
|
+
return _this2.store.loadCzk(v);
|
|
1341
|
+
|
|
1342
|
+
case 2:
|
|
1343
|
+
if (_this2.store.paymode.currentMode.StorageCardNo) {
|
|
1344
|
+
_this2.setState({
|
|
1345
|
+
czkValue: _this2.store.paymode.currentMode.StorageCardNo
|
|
1346
|
+
});
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
case 3:
|
|
1350
|
+
case 'end':
|
|
1351
|
+
return _context3.stop();
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
}, _callee3, _this3);
|
|
1355
|
+
})), 1000, {
|
|
1329
1356
|
'leading': true,
|
|
1330
1357
|
'trailing': false
|
|
1331
1358
|
});
|
|
@@ -1513,11 +1540,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1513
1540
|
}
|
|
1514
1541
|
};
|
|
1515
1542
|
|
|
1516
|
-
_this2.settleUnReturn = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
1543
|
+
_this2.settleUnReturn = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
|
|
1517
1544
|
var that;
|
|
1518
|
-
return _regenerator2.default.wrap(function
|
|
1545
|
+
return _regenerator2.default.wrap(function _callee5$(_context5) {
|
|
1519
1546
|
while (1) {
|
|
1520
|
-
switch (
|
|
1547
|
+
switch (_context5.prev = _context5.next) {
|
|
1521
1548
|
case 0:
|
|
1522
1549
|
that = _this2;
|
|
1523
1550
|
|
|
@@ -1540,18 +1567,18 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1540
1567
|
onOk: function onOk() {
|
|
1541
1568
|
var _this4 = this;
|
|
1542
1569
|
|
|
1543
|
-
return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
1570
|
+
return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
|
|
1544
1571
|
var result;
|
|
1545
|
-
return _regenerator2.default.wrap(function
|
|
1572
|
+
return _regenerator2.default.wrap(function _callee4$(_context4) {
|
|
1546
1573
|
while (1) {
|
|
1547
|
-
switch (
|
|
1574
|
+
switch (_context4.prev = _context4.next) {
|
|
1548
1575
|
case 0:
|
|
1549
1576
|
window.__queryingModal = (0, _utils.openQueryingModal)();
|
|
1550
|
-
|
|
1577
|
+
_context4.next = 3;
|
|
1551
1578
|
return that.store.querySettleResult();
|
|
1552
1579
|
|
|
1553
1580
|
case 3:
|
|
1554
|
-
result =
|
|
1581
|
+
result = _context4.sent;
|
|
1555
1582
|
|
|
1556
1583
|
setTimeout(function () {
|
|
1557
1584
|
if (window.__queryingModal) {
|
|
@@ -1559,34 +1586,34 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1559
1586
|
window.__queryingModal = null;
|
|
1560
1587
|
}
|
|
1561
1588
|
}, 0);
|
|
1562
|
-
|
|
1563
|
-
|
|
1589
|
+
_context4.t0 = result.Flag;
|
|
1590
|
+
_context4.next = _context4.t0 === "0" ? 8 : _context4.t0 === "1" ? 11 : _context4.t0 === "2" ? 13 : 15;
|
|
1564
1591
|
break;
|
|
1565
1592
|
|
|
1566
1593
|
case 8:
|
|
1567
1594
|
//成功
|
|
1568
1595
|
that.store.setDtoID(result.ID);
|
|
1569
1596
|
that.settleSuccess();
|
|
1570
|
-
return
|
|
1597
|
+
return _context4.abrupt('break', 15);
|
|
1571
1598
|
|
|
1572
1599
|
case 11:
|
|
1573
1600
|
//处理中
|
|
1574
1601
|
that.settleUnReturn();
|
|
1575
1602
|
// Message.info("结算正在处理中,请稍后再次查询。");
|
|
1576
|
-
return
|
|
1603
|
+
return _context4.abrupt('break', 15);
|
|
1577
1604
|
|
|
1578
1605
|
case 13:
|
|
1579
1606
|
//失败
|
|
1580
1607
|
_message2.default.info('\u7ED3\u7B97\u5931\u8D25\uFF0C\u539F\u56E0:' + result.Message + '\u3002');
|
|
1581
1608
|
// that.settleCanceled();
|
|
1582
|
-
return
|
|
1609
|
+
return _context4.abrupt('break', 15);
|
|
1583
1610
|
|
|
1584
1611
|
case 15:
|
|
1585
1612
|
case 'end':
|
|
1586
|
-
return
|
|
1613
|
+
return _context4.stop();
|
|
1587
1614
|
}
|
|
1588
1615
|
}
|
|
1589
|
-
},
|
|
1616
|
+
}, _callee4, _this4);
|
|
1590
1617
|
}))();
|
|
1591
1618
|
},
|
|
1592
1619
|
onCancel: function onCancel() {
|
|
@@ -1596,10 +1623,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1596
1623
|
|
|
1597
1624
|
case 2:
|
|
1598
1625
|
case 'end':
|
|
1599
|
-
return
|
|
1626
|
+
return _context5.stop();
|
|
1600
1627
|
}
|
|
1601
1628
|
}
|
|
1602
|
-
},
|
|
1629
|
+
}, _callee5, _this3);
|
|
1603
1630
|
}));
|
|
1604
1631
|
|
|
1605
1632
|
_this2.settleCanceled = function () {
|
|
@@ -1608,12 +1635,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1608
1635
|
_this2.cancelState();
|
|
1609
1636
|
};
|
|
1610
1637
|
|
|
1611
|
-
_this2.settleSuccess = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
1638
|
+
_this2.settleSuccess = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6() {
|
|
1612
1639
|
var _enumController$getEn19, PayStyle, _this2$store$paymode, amount, received, thePaymodes, IdbusiType, charge, openCashBox, _this, showTwoScreen, getSettleGift, type, resp1;
|
|
1613
1640
|
|
|
1614
|
-
return _regenerator2.default.wrap(function
|
|
1641
|
+
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
|
1615
1642
|
while (1) {
|
|
1616
|
-
switch (
|
|
1643
|
+
switch (_context6.prev = _context6.next) {
|
|
1617
1644
|
case 0:
|
|
1618
1645
|
//提示成功
|
|
1619
1646
|
_enumController$getEn19 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn19.PayStyle;
|
|
@@ -1674,22 +1701,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1674
1701
|
resp1 = false;
|
|
1675
1702
|
|
|
1676
1703
|
if (!(type !== 1)) {
|
|
1677
|
-
|
|
1704
|
+
_context6.next = 20;
|
|
1678
1705
|
break;
|
|
1679
1706
|
}
|
|
1680
1707
|
|
|
1681
|
-
|
|
1682
|
-
|
|
1708
|
+
_context6.prev = 11;
|
|
1709
|
+
_context6.next = 14;
|
|
1683
1710
|
return getSettleGift();
|
|
1684
1711
|
|
|
1685
1712
|
case 14:
|
|
1686
|
-
resp1 =
|
|
1687
|
-
|
|
1713
|
+
resp1 = _context6.sent;
|
|
1714
|
+
_context6.next = 20;
|
|
1688
1715
|
break;
|
|
1689
1716
|
|
|
1690
1717
|
case 17:
|
|
1691
|
-
|
|
1692
|
-
|
|
1718
|
+
_context6.prev = 17;
|
|
1719
|
+
_context6.t0 = _context6['catch'](11);
|
|
1693
1720
|
|
|
1694
1721
|
console.log("获取支付礼包getSettleGift失败");
|
|
1695
1722
|
|
|
@@ -1727,23 +1754,23 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1727
1754
|
|
|
1728
1755
|
case 21:
|
|
1729
1756
|
case 'end':
|
|
1730
|
-
return
|
|
1757
|
+
return _context6.stop();
|
|
1731
1758
|
}
|
|
1732
1759
|
}
|
|
1733
|
-
},
|
|
1760
|
+
}, _callee6, _this3, [[11, 17]]);
|
|
1734
1761
|
}));
|
|
1735
1762
|
|
|
1736
1763
|
_this2.handleGuestShow = function (dtype, value) {
|
|
1737
1764
|
if (_this2.hasElectron === false) return;
|
|
1738
1765
|
var dt = _mutantsMicrofx.localStore.get('portsetting_hardSet') || [];
|
|
1739
1766
|
|
|
1740
|
-
var
|
|
1741
|
-
guestshow_enable =
|
|
1742
|
-
guestshow_clear =
|
|
1743
|
-
guestshow_welcome =
|
|
1744
|
-
guestshow_collect =
|
|
1745
|
-
guestshow_refund =
|
|
1746
|
-
guestshow_change =
|
|
1767
|
+
var _ref13 = dt || {},
|
|
1768
|
+
guestshow_enable = _ref13.guestshow_enable,
|
|
1769
|
+
guestshow_clear = _ref13.guestshow_clear,
|
|
1770
|
+
guestshow_welcome = _ref13.guestshow_welcome,
|
|
1771
|
+
guestshow_collect = _ref13.guestshow_collect,
|
|
1772
|
+
guestshow_refund = _ref13.guestshow_refund,
|
|
1773
|
+
guestshow_change = _ref13.guestshow_change;
|
|
1747
1774
|
|
|
1748
1775
|
var hasSuccess = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('portsetting_hardSet_isSuccess');
|
|
1749
1776
|
if (!guestshow_enable || !!guestshow_enable && hasSuccess == '0') return;
|
|
@@ -1778,108 +1805,108 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1778
1805
|
};
|
|
1779
1806
|
|
|
1780
1807
|
_this2.handleSettle = function () {
|
|
1781
|
-
var
|
|
1808
|
+
var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(args) {
|
|
1782
1809
|
var handleUserInputs = function () {
|
|
1783
|
-
var
|
|
1810
|
+
var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8(promises) {
|
|
1784
1811
|
var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
|
|
1785
1812
|
|
|
1786
|
-
return _regenerator2.default.wrap(function
|
|
1813
|
+
return _regenerator2.default.wrap(function _callee8$(_context8) {
|
|
1787
1814
|
while (1) {
|
|
1788
|
-
switch (
|
|
1815
|
+
switch (_context8.prev = _context8.next) {
|
|
1789
1816
|
case 0:
|
|
1790
1817
|
results = [];
|
|
1791
|
-
|
|
1818
|
+
_context8.prev = 1;
|
|
1792
1819
|
_iteratorNormalCompletion = true;
|
|
1793
1820
|
_didIteratorError = false;
|
|
1794
1821
|
_iteratorError = undefined;
|
|
1795
|
-
|
|
1822
|
+
_context8.prev = 5;
|
|
1796
1823
|
_iterator = (0, _getIterator3.default)(promises);
|
|
1797
1824
|
|
|
1798
1825
|
case 7:
|
|
1799
1826
|
if (_iteratorNormalCompletion = (_step = _iterator.next()).done) {
|
|
1800
|
-
|
|
1827
|
+
_context8.next = 16;
|
|
1801
1828
|
break;
|
|
1802
1829
|
}
|
|
1803
1830
|
|
|
1804
1831
|
p = _step.value;
|
|
1805
|
-
|
|
1832
|
+
_context8.next = 11;
|
|
1806
1833
|
return p;
|
|
1807
1834
|
|
|
1808
1835
|
case 11:
|
|
1809
|
-
_result =
|
|
1836
|
+
_result = _context8.sent;
|
|
1810
1837
|
|
|
1811
1838
|
results.push(_result);
|
|
1812
1839
|
|
|
1813
1840
|
case 13:
|
|
1814
1841
|
_iteratorNormalCompletion = true;
|
|
1815
|
-
|
|
1842
|
+
_context8.next = 7;
|
|
1816
1843
|
break;
|
|
1817
1844
|
|
|
1818
1845
|
case 16:
|
|
1819
|
-
|
|
1846
|
+
_context8.next = 22;
|
|
1820
1847
|
break;
|
|
1821
1848
|
|
|
1822
1849
|
case 18:
|
|
1823
|
-
|
|
1824
|
-
|
|
1850
|
+
_context8.prev = 18;
|
|
1851
|
+
_context8.t0 = _context8['catch'](5);
|
|
1825
1852
|
_didIteratorError = true;
|
|
1826
|
-
_iteratorError =
|
|
1853
|
+
_iteratorError = _context8.t0;
|
|
1827
1854
|
|
|
1828
1855
|
case 22:
|
|
1829
|
-
|
|
1830
|
-
|
|
1856
|
+
_context8.prev = 22;
|
|
1857
|
+
_context8.prev = 23;
|
|
1831
1858
|
|
|
1832
1859
|
if (!_iteratorNormalCompletion && _iterator.return) {
|
|
1833
1860
|
_iterator.return();
|
|
1834
1861
|
}
|
|
1835
1862
|
|
|
1836
1863
|
case 25:
|
|
1837
|
-
|
|
1864
|
+
_context8.prev = 25;
|
|
1838
1865
|
|
|
1839
1866
|
if (!_didIteratorError) {
|
|
1840
|
-
|
|
1867
|
+
_context8.next = 28;
|
|
1841
1868
|
break;
|
|
1842
1869
|
}
|
|
1843
1870
|
|
|
1844
1871
|
throw _iteratorError;
|
|
1845
1872
|
|
|
1846
1873
|
case 28:
|
|
1847
|
-
return
|
|
1874
|
+
return _context8.finish(25);
|
|
1848
1875
|
|
|
1849
1876
|
case 29:
|
|
1850
|
-
return
|
|
1877
|
+
return _context8.finish(22);
|
|
1851
1878
|
|
|
1852
1879
|
case 30:
|
|
1853
1880
|
window.__loadingModal = (0, _utils.openLoadingModal)();
|
|
1854
|
-
|
|
1881
|
+
_context8.next = 33;
|
|
1855
1882
|
return commit(results);
|
|
1856
1883
|
|
|
1857
1884
|
case 33:
|
|
1858
|
-
|
|
1885
|
+
_context8.next = 37;
|
|
1859
1886
|
break;
|
|
1860
1887
|
|
|
1861
1888
|
case 35:
|
|
1862
|
-
|
|
1863
|
-
|
|
1889
|
+
_context8.prev = 35;
|
|
1890
|
+
_context8.t1 = _context8['catch'](1);
|
|
1864
1891
|
|
|
1865
1892
|
case 37:
|
|
1866
1893
|
case 'end':
|
|
1867
|
-
return
|
|
1894
|
+
return _context8.stop();
|
|
1868
1895
|
}
|
|
1869
1896
|
}
|
|
1870
|
-
},
|
|
1897
|
+
}, _callee8, this, [[1, 35], [5, 18, 22, 30], [23,, 25, 29]]);
|
|
1871
1898
|
}));
|
|
1872
1899
|
|
|
1873
1900
|
return function handleUserInputs(_x4) {
|
|
1874
|
-
return
|
|
1901
|
+
return _ref16.apply(this, arguments);
|
|
1875
1902
|
};
|
|
1876
1903
|
}();
|
|
1877
1904
|
|
|
1878
1905
|
var _enumController$getEn20, PayStyle, _this2$store6, paymode, brefund, boriginReturn, newStyle, isQuickPay, that, status, zeromode, promises, thePaymodes, quickmode, commit;
|
|
1879
1906
|
|
|
1880
|
-
return _regenerator2.default.wrap(function
|
|
1907
|
+
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
|
1881
1908
|
while (1) {
|
|
1882
|
-
switch (
|
|
1909
|
+
switch (_context9.prev = _context9.next) {
|
|
1883
1910
|
case 0:
|
|
1884
1911
|
_this2.setState({
|
|
1885
1912
|
settleDisabled: true
|
|
@@ -1911,7 +1938,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1911
1938
|
});
|
|
1912
1939
|
|
|
1913
1940
|
if (!(that.checkCharge() && Math.abs(paymode.receivable) > that.props.initData("posChangeUpperAmount"))) {
|
|
1914
|
-
|
|
1941
|
+
_context9.next = 13;
|
|
1915
1942
|
break;
|
|
1916
1943
|
}
|
|
1917
1944
|
|
|
@@ -1919,11 +1946,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1919
1946
|
_this2.setState({
|
|
1920
1947
|
settleDisabled: false
|
|
1921
1948
|
});
|
|
1922
|
-
return
|
|
1949
|
+
return _context9.abrupt('return');
|
|
1923
1950
|
|
|
1924
1951
|
case 13:
|
|
1925
1952
|
if (!(args !== "zero" && !newStyle)) {
|
|
1926
|
-
|
|
1953
|
+
_context9.next = 19;
|
|
1927
1954
|
break;
|
|
1928
1955
|
}
|
|
1929
1956
|
|
|
@@ -1932,7 +1959,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1932
1959
|
});
|
|
1933
1960
|
|
|
1934
1961
|
if (!zeromode) {
|
|
1935
|
-
|
|
1962
|
+
_context9.next = 19;
|
|
1936
1963
|
break;
|
|
1937
1964
|
}
|
|
1938
1965
|
|
|
@@ -1940,7 +1967,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1940
1967
|
settleDisabled: false
|
|
1941
1968
|
});
|
|
1942
1969
|
_message2.default.error(zeromode.name + ' 的结算金额为零,不可以结算。');
|
|
1943
|
-
return
|
|
1970
|
+
return _context9.abrupt('return');
|
|
1944
1971
|
|
|
1945
1972
|
case 19:
|
|
1946
1973
|
promises = [];
|
|
@@ -1949,14 +1976,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1949
1976
|
}) : paymode.thePaymodes, 'orderBy');
|
|
1950
1977
|
|
|
1951
1978
|
if (!isQuickPay) {
|
|
1952
|
-
|
|
1979
|
+
_context9.next = 27;
|
|
1953
1980
|
break;
|
|
1954
1981
|
}
|
|
1955
1982
|
|
|
1956
1983
|
quickmode = thePaymodes[0];
|
|
1957
1984
|
|
|
1958
1985
|
if (!_this2.checkModeDisabled(quickmode.paymentType, brefund, boriginReturn)) {
|
|
1959
|
-
|
|
1986
|
+
_context9.next = 27;
|
|
1960
1987
|
break;
|
|
1961
1988
|
}
|
|
1962
1989
|
|
|
@@ -1964,7 +1991,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1964
1991
|
settleDisabled: false
|
|
1965
1992
|
});
|
|
1966
1993
|
_message2.default.error('退款不能使用' + quickmode.name + '结算,请使用其他结算方式!');
|
|
1967
|
-
return
|
|
1994
|
+
return _context9.abrupt('return');
|
|
1968
1995
|
|
|
1969
1996
|
case 27:
|
|
1970
1997
|
(0, _forEach3.default)(thePaymodes, function (mode) {
|
|
@@ -1974,27 +2001,27 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1974
2001
|
});
|
|
1975
2002
|
|
|
1976
2003
|
commit = function () {
|
|
1977
|
-
var
|
|
2004
|
+
var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(values) {
|
|
1978
2005
|
var result;
|
|
1979
|
-
return _regenerator2.default.wrap(function
|
|
2006
|
+
return _regenerator2.default.wrap(function _callee7$(_context7) {
|
|
1980
2007
|
while (1) {
|
|
1981
|
-
switch (
|
|
2008
|
+
switch (_context7.prev = _context7.next) {
|
|
1982
2009
|
case 0:
|
|
1983
|
-
|
|
2010
|
+
_context7.next = 2;
|
|
1984
2011
|
return _this2.store.commit(_this2.props.bTest);
|
|
1985
2012
|
|
|
1986
2013
|
case 2:
|
|
1987
|
-
result =
|
|
2014
|
+
result = _context7.sent;
|
|
1988
2015
|
|
|
1989
2016
|
if (!(result === true)) {
|
|
1990
|
-
|
|
2017
|
+
_context7.next = 8;
|
|
1991
2018
|
break;
|
|
1992
2019
|
}
|
|
1993
2020
|
|
|
1994
2021
|
//成功
|
|
1995
2022
|
that.settleSuccess();
|
|
1996
2023
|
_promise2.default.resolve();
|
|
1997
|
-
|
|
2024
|
+
_context7.next = 23;
|
|
1998
2025
|
break;
|
|
1999
2026
|
|
|
2000
2027
|
case 8:
|
|
@@ -2011,24 +2038,24 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2011
2038
|
}, 0);
|
|
2012
2039
|
|
|
2013
2040
|
if (!(result && (result.Code || result.code))) {
|
|
2014
|
-
|
|
2041
|
+
_context7.next = 20;
|
|
2015
2042
|
break;
|
|
2016
2043
|
}
|
|
2017
2044
|
|
|
2018
|
-
|
|
2019
|
-
|
|
2045
|
+
_context7.t0 = result.Code || result.code;
|
|
2046
|
+
_context7.next = _context7.t0 === 'RE_Settle_UnReturn' ? 14 : _context7.t0 === 'ECONNABORTED' ? 18 : 20;
|
|
2020
2047
|
break;
|
|
2021
2048
|
|
|
2022
2049
|
case 14:
|
|
2023
2050
|
console.log('settlement--RE_Settle_UnReturn--调用清除数据==Focus==');
|
|
2024
2051
|
_this2.props.clearVoucherData && _this2.props.clearVoucherData();
|
|
2025
2052
|
_this2.cancelState();
|
|
2026
|
-
return
|
|
2053
|
+
return _context7.abrupt('break', 20);
|
|
2027
2054
|
|
|
2028
2055
|
case 18:
|
|
2029
2056
|
//error.code === 'ECONNABORTED' && error.message.indexOf('timeout')
|
|
2030
2057
|
result.message.indexOf('timeout') > -1 && that.settleUnReturn();
|
|
2031
|
-
return
|
|
2058
|
+
return _context7.abrupt('break', 20);
|
|
2032
2059
|
|
|
2033
2060
|
case 20:
|
|
2034
2061
|
if (isQuickPay) {
|
|
@@ -2036,19 +2063,19 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2036
2063
|
that.cancelState();
|
|
2037
2064
|
}
|
|
2038
2065
|
|
|
2039
|
-
|
|
2066
|
+
_context7.next = 23;
|
|
2040
2067
|
return _promise2.default.reject();
|
|
2041
2068
|
|
|
2042
2069
|
case 23:
|
|
2043
2070
|
case 'end':
|
|
2044
|
-
return
|
|
2071
|
+
return _context7.stop();
|
|
2045
2072
|
}
|
|
2046
2073
|
}
|
|
2047
|
-
},
|
|
2074
|
+
}, _callee7, _this3);
|
|
2048
2075
|
}));
|
|
2049
2076
|
|
|
2050
2077
|
return function commit(_x3) {
|
|
2051
|
-
return
|
|
2078
|
+
return _ref15.apply(this, arguments);
|
|
2052
2079
|
};
|
|
2053
2080
|
}();
|
|
2054
2081
|
|
|
@@ -2056,102 +2083,102 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2056
2083
|
|
|
2057
2084
|
case 30:
|
|
2058
2085
|
case 'end':
|
|
2059
|
-
return
|
|
2086
|
+
return _context9.stop();
|
|
2060
2087
|
}
|
|
2061
2088
|
}
|
|
2062
|
-
},
|
|
2089
|
+
}, _callee9, _this3);
|
|
2063
2090
|
}));
|
|
2064
2091
|
|
|
2065
2092
|
return function (_x2) {
|
|
2066
|
-
return
|
|
2093
|
+
return _ref14.apply(this, arguments);
|
|
2067
2094
|
};
|
|
2068
2095
|
}();
|
|
2069
2096
|
|
|
2070
|
-
_this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
2097
|
+
_this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12() {
|
|
2071
2098
|
var handleUserInputs = function () {
|
|
2072
|
-
var
|
|
2099
|
+
var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(promises) {
|
|
2073
2100
|
var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
|
|
2074
2101
|
|
|
2075
|
-
return _regenerator2.default.wrap(function
|
|
2102
|
+
return _regenerator2.default.wrap(function _callee11$(_context11) {
|
|
2076
2103
|
while (1) {
|
|
2077
|
-
switch (
|
|
2104
|
+
switch (_context11.prev = _context11.next) {
|
|
2078
2105
|
case 0:
|
|
2079
2106
|
results = [];
|
|
2080
|
-
|
|
2107
|
+
_context11.prev = 1;
|
|
2081
2108
|
_iteratorNormalCompletion2 = true;
|
|
2082
2109
|
_didIteratorError2 = false;
|
|
2083
2110
|
_iteratorError2 = undefined;
|
|
2084
|
-
|
|
2111
|
+
_context11.prev = 5;
|
|
2085
2112
|
_iterator2 = (0, _getIterator3.default)(promises);
|
|
2086
2113
|
|
|
2087
2114
|
case 7:
|
|
2088
2115
|
if (_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done) {
|
|
2089
|
-
|
|
2116
|
+
_context11.next = 16;
|
|
2090
2117
|
break;
|
|
2091
2118
|
}
|
|
2092
2119
|
|
|
2093
2120
|
p = _step2.value;
|
|
2094
|
-
|
|
2121
|
+
_context11.next = 11;
|
|
2095
2122
|
return p;
|
|
2096
2123
|
|
|
2097
2124
|
case 11:
|
|
2098
|
-
_result2 =
|
|
2125
|
+
_result2 = _context11.sent;
|
|
2099
2126
|
|
|
2100
2127
|
results.push(_result2);
|
|
2101
2128
|
|
|
2102
2129
|
case 13:
|
|
2103
2130
|
_iteratorNormalCompletion2 = true;
|
|
2104
|
-
|
|
2131
|
+
_context11.next = 7;
|
|
2105
2132
|
break;
|
|
2106
2133
|
|
|
2107
2134
|
case 16:
|
|
2108
|
-
|
|
2135
|
+
_context11.next = 22;
|
|
2109
2136
|
break;
|
|
2110
2137
|
|
|
2111
2138
|
case 18:
|
|
2112
|
-
|
|
2113
|
-
|
|
2139
|
+
_context11.prev = 18;
|
|
2140
|
+
_context11.t0 = _context11['catch'](5);
|
|
2114
2141
|
_didIteratorError2 = true;
|
|
2115
|
-
_iteratorError2 =
|
|
2142
|
+
_iteratorError2 = _context11.t0;
|
|
2116
2143
|
|
|
2117
2144
|
case 22:
|
|
2118
|
-
|
|
2119
|
-
|
|
2145
|
+
_context11.prev = 22;
|
|
2146
|
+
_context11.prev = 23;
|
|
2120
2147
|
|
|
2121
2148
|
if (!_iteratorNormalCompletion2 && _iterator2.return) {
|
|
2122
2149
|
_iterator2.return();
|
|
2123
2150
|
}
|
|
2124
2151
|
|
|
2125
2152
|
case 25:
|
|
2126
|
-
|
|
2153
|
+
_context11.prev = 25;
|
|
2127
2154
|
|
|
2128
2155
|
if (!_didIteratorError2) {
|
|
2129
|
-
|
|
2156
|
+
_context11.next = 28;
|
|
2130
2157
|
break;
|
|
2131
2158
|
}
|
|
2132
2159
|
|
|
2133
2160
|
throw _iteratorError2;
|
|
2134
2161
|
|
|
2135
2162
|
case 28:
|
|
2136
|
-
return
|
|
2163
|
+
return _context11.finish(25);
|
|
2137
2164
|
|
|
2138
2165
|
case 29:
|
|
2139
|
-
return
|
|
2166
|
+
return _context11.finish(22);
|
|
2140
2167
|
|
|
2141
2168
|
case 30:
|
|
2142
|
-
|
|
2169
|
+
_context11.next = 32;
|
|
2143
2170
|
return commit(results);
|
|
2144
2171
|
|
|
2145
2172
|
case 32:
|
|
2146
|
-
|
|
2173
|
+
_context11.next = 37;
|
|
2147
2174
|
break;
|
|
2148
2175
|
|
|
2149
2176
|
case 34:
|
|
2150
|
-
|
|
2151
|
-
|
|
2177
|
+
_context11.prev = 34;
|
|
2178
|
+
_context11.t1 = _context11['catch'](1);
|
|
2152
2179
|
|
|
2153
|
-
if (
|
|
2154
|
-
_message2.default.error(
|
|
2180
|
+
if (_context11.t1 != "cancelpwd") {
|
|
2181
|
+
_message2.default.error(_context11.t1);
|
|
2155
2182
|
setTimeout(function () {
|
|
2156
2183
|
that.handleCzk();
|
|
2157
2184
|
}, 500);
|
|
@@ -2159,27 +2186,27 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2159
2186
|
|
|
2160
2187
|
case 37:
|
|
2161
2188
|
case 'end':
|
|
2162
|
-
return
|
|
2189
|
+
return _context11.stop();
|
|
2163
2190
|
}
|
|
2164
2191
|
}
|
|
2165
|
-
},
|
|
2192
|
+
}, _callee11, this, [[1, 34], [5, 18, 22, 30], [23,, 25, 29]]);
|
|
2166
2193
|
}));
|
|
2167
2194
|
|
|
2168
2195
|
return function handleUserInputs(_x6) {
|
|
2169
|
-
return
|
|
2196
|
+
return _ref20.apply(this, arguments);
|
|
2170
2197
|
};
|
|
2171
2198
|
}();
|
|
2172
2199
|
|
|
2173
|
-
var that, curmode, promises,
|
|
2200
|
+
var that, curmode, promises, _ref18, isNewRetailBCPos, _enumController$getEn21, PayStyle, isNeedPasswordForStoragePay, commit;
|
|
2174
2201
|
|
|
2175
|
-
return _regenerator2.default.wrap(function
|
|
2202
|
+
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
|
2176
2203
|
while (1) {
|
|
2177
|
-
switch (
|
|
2204
|
+
switch (_context12.prev = _context12.next) {
|
|
2178
2205
|
case 0:
|
|
2179
2206
|
that = _this2;
|
|
2180
2207
|
curmode = _this2.store.paymode.currentMode;
|
|
2181
2208
|
promises = [];
|
|
2182
|
-
|
|
2209
|
+
_ref18 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref18.isNewRetailBCPos;
|
|
2183
2210
|
|
|
2184
2211
|
if (isNewRetailBCPos) {
|
|
2185
2212
|
if (curmode.value > 0) {
|
|
@@ -2200,33 +2227,33 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2200
2227
|
}
|
|
2201
2228
|
|
|
2202
2229
|
commit = function () {
|
|
2203
|
-
var
|
|
2230
|
+
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(values) {
|
|
2204
2231
|
var result;
|
|
2205
|
-
return _regenerator2.default.wrap(function
|
|
2232
|
+
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
|
2206
2233
|
while (1) {
|
|
2207
|
-
switch (
|
|
2234
|
+
switch (_context10.prev = _context10.next) {
|
|
2208
2235
|
case 0:
|
|
2209
2236
|
if (!(values.length > 0)) {
|
|
2210
|
-
|
|
2237
|
+
_context10.next = 6;
|
|
2211
2238
|
break;
|
|
2212
2239
|
}
|
|
2213
2240
|
|
|
2214
|
-
|
|
2241
|
+
_context10.next = 3;
|
|
2215
2242
|
return that.store.validePwd(values[0]);
|
|
2216
2243
|
|
|
2217
2244
|
case 3:
|
|
2218
|
-
|
|
2219
|
-
|
|
2245
|
+
_context10.t0 = _context10.sent;
|
|
2246
|
+
_context10.next = 7;
|
|
2220
2247
|
break;
|
|
2221
2248
|
|
|
2222
2249
|
case 6:
|
|
2223
|
-
|
|
2250
|
+
_context10.t0 = "";
|
|
2224
2251
|
|
|
2225
2252
|
case 7:
|
|
2226
|
-
result =
|
|
2253
|
+
result = _context10.t0;
|
|
2227
2254
|
|
|
2228
2255
|
if (!(result == "")) {
|
|
2229
|
-
|
|
2256
|
+
_context10.next = 13;
|
|
2230
2257
|
break;
|
|
2231
2258
|
}
|
|
2232
2259
|
|
|
@@ -2234,23 +2261,23 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2234
2261
|
//返回
|
|
2235
2262
|
that.setCurrentFocusAndAddPay(curmode.paymentType);
|
|
2236
2263
|
_promise2.default.resolve();
|
|
2237
|
-
|
|
2264
|
+
_context10.next = 15;
|
|
2238
2265
|
break;
|
|
2239
2266
|
|
|
2240
2267
|
case 13:
|
|
2241
|
-
|
|
2268
|
+
_context10.next = 15;
|
|
2242
2269
|
return _promise2.default.reject(result);
|
|
2243
2270
|
|
|
2244
2271
|
case 15:
|
|
2245
2272
|
case 'end':
|
|
2246
|
-
return
|
|
2273
|
+
return _context10.stop();
|
|
2247
2274
|
}
|
|
2248
2275
|
}
|
|
2249
|
-
},
|
|
2276
|
+
}, _callee10, _this3);
|
|
2250
2277
|
}));
|
|
2251
2278
|
|
|
2252
2279
|
return function commit(_x5) {
|
|
2253
|
-
return
|
|
2280
|
+
return _ref19.apply(this, arguments);
|
|
2254
2281
|
};
|
|
2255
2282
|
}();
|
|
2256
2283
|
|
|
@@ -2258,10 +2285,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2258
2285
|
|
|
2259
2286
|
case 7:
|
|
2260
2287
|
case 'end':
|
|
2261
|
-
return
|
|
2288
|
+
return _context12.stop();
|
|
2262
2289
|
}
|
|
2263
2290
|
}
|
|
2264
|
-
},
|
|
2291
|
+
}, _callee12, _this3);
|
|
2265
2292
|
}));
|
|
2266
2293
|
|
|
2267
2294
|
_this2.fKeyboardOnOk = function (paymethodeId) {
|
|
@@ -2301,15 +2328,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2301
2328
|
};
|
|
2302
2329
|
|
|
2303
2330
|
_this2.inputPwd = function () {
|
|
2304
|
-
var
|
|
2331
|
+
var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(paymode) {
|
|
2305
2332
|
var that, confirmPwd;
|
|
2306
|
-
return _regenerator2.default.wrap(function
|
|
2333
|
+
return _regenerator2.default.wrap(function _callee13$(_context13) {
|
|
2307
2334
|
while (1) {
|
|
2308
|
-
switch (
|
|
2335
|
+
switch (_context13.prev = _context13.next) {
|
|
2309
2336
|
case 0:
|
|
2310
2337
|
that = _this2;
|
|
2311
2338
|
confirmPwd = _this2.state.confirmPwd;
|
|
2312
|
-
return
|
|
2339
|
+
return _context13.abrupt('return', new _promise2.default(function (resolve, reject) {
|
|
2313
2340
|
var modal = (0, _asyncModal2.default)({
|
|
2314
2341
|
onPressEnter: function onPressEnter() {
|
|
2315
2342
|
_keyboard2.default.close();
|
|
@@ -2317,8 +2344,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2317
2344
|
// if (v !== '') {
|
|
2318
2345
|
modal.destroy();
|
|
2319
2346
|
|
|
2320
|
-
var
|
|
2321
|
-
confirmPwd =
|
|
2347
|
+
var _ref22 = that.state || {},
|
|
2348
|
+
confirmPwd = _ref22.confirmPwd;
|
|
2322
2349
|
|
|
2323
2350
|
setTimeout(function () {
|
|
2324
2351
|
paymode.authCode = v;
|
|
@@ -2408,8 +2435,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2408
2435
|
type: 'primary', size: 'large', onClick: function onClick() {
|
|
2409
2436
|
var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
|
|
2410
2437
|
|
|
2411
|
-
var
|
|
2412
|
-
confirmPwd =
|
|
2438
|
+
var _ref23 = that.state || {},
|
|
2439
|
+
confirmPwd = _ref23.confirmPwd;
|
|
2413
2440
|
// if (v !== '') {
|
|
2414
2441
|
|
|
2415
2442
|
|
|
@@ -2443,14 +2470,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2443
2470
|
|
|
2444
2471
|
case 3:
|
|
2445
2472
|
case 'end':
|
|
2446
|
-
return
|
|
2473
|
+
return _context13.stop();
|
|
2447
2474
|
}
|
|
2448
2475
|
}
|
|
2449
|
-
},
|
|
2476
|
+
}, _callee13, _this3);
|
|
2450
2477
|
}));
|
|
2451
2478
|
|
|
2452
2479
|
return function (_x7) {
|
|
2453
|
-
return
|
|
2480
|
+
return _ref21.apply(this, arguments);
|
|
2454
2481
|
};
|
|
2455
2482
|
}();
|
|
2456
2483
|
|
|
@@ -2503,12 +2530,18 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2503
2530
|
|
|
2504
2531
|
_this2.onCzkChange = function (v) {
|
|
2505
2532
|
// console.log("czk change:"+new Date().toLocaleTimeString())
|
|
2506
|
-
var
|
|
2507
|
-
isNewRetailBCPos =
|
|
2533
|
+
var _ref24 = _mutantsUtil.platform || {},
|
|
2534
|
+
isNewRetailBCPos = _ref24.isNewRetailBCPos;
|
|
2508
2535
|
|
|
2509
2536
|
if (!isNewRetailBCPos) {
|
|
2510
2537
|
_this2.store.paymode.currentMode.member.setCardNo(v);
|
|
2511
2538
|
}
|
|
2539
|
+
if (!/^[0-9]*$/.test(v)) {
|
|
2540
|
+
return;
|
|
2541
|
+
}
|
|
2542
|
+
_this2.setState({
|
|
2543
|
+
czkValue: v
|
|
2544
|
+
});
|
|
2512
2545
|
// if(this.debounced){
|
|
2513
2546
|
// this.debounced.cancel();
|
|
2514
2547
|
// this.debounced=null;
|
|
@@ -3079,20 +3112,20 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3079
3112
|
|
|
3080
3113
|
_this2.hasElectron = hasElectron;
|
|
3081
3114
|
|
|
3082
|
-
var
|
|
3083
|
-
|
|
3115
|
+
var _ref25 = _mutantsMicrofx.localStore.get('user') || {},
|
|
3116
|
+
_ref25$loginInfo = _ref25.loginInfo;
|
|
3084
3117
|
|
|
3085
|
-
|
|
3086
|
-
var ICCardServer =
|
|
3087
|
-
ICCardPassword =
|
|
3118
|
+
_ref25$loginInfo = _ref25$loginInfo === undefined ? {} : _ref25$loginInfo;
|
|
3119
|
+
var ICCardServer = _ref25$loginInfo.ICCardServer,
|
|
3120
|
+
ICCardPassword = _ref25$loginInfo.ICCardPassword;
|
|
3088
3121
|
|
|
3089
3122
|
_this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
|
|
3090
3123
|
_this2.iCCardPassword = ICCardPassword; //IC卡密码
|
|
3091
3124
|
//移动端环境下,没有读取IC卡的方式。
|
|
3092
3125
|
|
|
3093
|
-
var
|
|
3094
|
-
isHorizontalPad =
|
|
3095
|
-
isHorizontalSunMi =
|
|
3126
|
+
var _ref26 = _mutantsUtil.platform || {},
|
|
3127
|
+
isHorizontalPad = _ref26.isHorizontalPad,
|
|
3128
|
+
isHorizontalSunMi = _ref26.isHorizontalSunMi;
|
|
3096
3129
|
|
|
3097
3130
|
_this2.isHorizontalPad = !!isHorizontalPad;
|
|
3098
3131
|
_this2.isHorizontalSunMi = !!isHorizontalSunMi;
|
|
@@ -3207,11 +3240,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3207
3240
|
//jfdx
|
|
3208
3241
|
|
|
3209
3242
|
|
|
3210
|
-
/**
|
|
3211
|
-
*
|
|
3212
|
-
* @param {*} thePaymodes 支付方式列表
|
|
3213
|
-
* @param {*} currenIndex 当前支付方式下标
|
|
3214
|
-
* @param {*} symbol 从当前currenIndex开始 还是从当前currenIndex截止
|
|
3243
|
+
/**
|
|
3244
|
+
*
|
|
3245
|
+
* @param {*} thePaymodes 支付方式列表
|
|
3246
|
+
* @param {*} currenIndex 当前支付方式下标
|
|
3247
|
+
* @param {*} symbol 从当前currenIndex开始 还是从当前currenIndex截止
|
|
3215
3248
|
*/
|
|
3216
3249
|
|
|
3217
3250
|
// 处理客显显示功能
|
|
@@ -3327,8 +3360,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3327
3360
|
discountPrototypeTotalAmount = _state2.discountPrototypeTotalAmount,
|
|
3328
3361
|
storageValue = _state2.storageValue;
|
|
3329
3362
|
|
|
3330
|
-
var
|
|
3331
|
-
isNewRetailBCPos =
|
|
3363
|
+
var _ref27 = _mutantsUtil.platform || {},
|
|
3364
|
+
isNewRetailBCPos = _ref27.isNewRetailBCPos;
|
|
3332
3365
|
|
|
3333
3366
|
var _store2 = this.store,
|
|
3334
3367
|
paymode = _store2.paymode,
|
|
@@ -3391,11 +3424,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3391
3424
|
quantity4 = 0;
|
|
3392
3425
|
var sumQuantity = 0; //数量总和的值,包括称重的。
|
|
3393
3426
|
|
|
3394
|
-
var
|
|
3395
|
-
|
|
3396
|
-
buyQuantity =
|
|
3397
|
-
|
|
3398
|
-
returnQuantity =
|
|
3427
|
+
var _ref28 = quantityDetail || {},
|
|
3428
|
+
_ref28$buyQuantity = _ref28.buyQuantity,
|
|
3429
|
+
buyQuantity = _ref28$buyQuantity === undefined ? 0 : _ref28$buyQuantity,
|
|
3430
|
+
_ref28$returnQuantity = _ref28.returnQuantity,
|
|
3431
|
+
returnQuantity = _ref28$returnQuantity === undefined ? 0 : _ref28$returnQuantity;
|
|
3399
3432
|
|
|
3400
3433
|
var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
|
|
3401
3434
|
quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
|
|
@@ -4710,7 +4743,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4710
4743
|
onChange: function onChange(e) {
|
|
4711
4744
|
return _this8.onCzkChange(e.target.value);
|
|
4712
4745
|
},
|
|
4713
|
-
|
|
4746
|
+
defaultValue: isNewRetailBCPos ? currentMode && currentMode.member.StorageCardNo : currentMode && currentMode.member.cardNo,
|
|
4747
|
+
value: this.state.czkValue,
|
|
4714
4748
|
ref: function ref(input) {
|
|
4715
4749
|
return _this8.czkInput = input;
|
|
4716
4750
|
},
|
|
@@ -4773,8 +4807,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4773
4807
|
_this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.member.balance));
|
|
4774
4808
|
},
|
|
4775
4809
|
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"] =
|
|
4810
|
+
ref: function ref(_ref29) {
|
|
4811
|
+
return _this8["inputCzkAmount"] = _ref29;
|
|
4778
4812
|
},
|
|
4779
4813
|
onFocus: function onFocus(e) {
|
|
4780
4814
|
_this8.inputkey = "inputCzkAmount";
|
|
@@ -5391,8 +5425,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5391
5425
|
_this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
|
|
5392
5426
|
},
|
|
5393
5427
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
|
|
5394
|
-
ref: function ref(
|
|
5395
|
-
return _this8["inputJfdxAmount"] =
|
|
5428
|
+
ref: function ref(_ref30) {
|
|
5429
|
+
return _this8["inputJfdxAmount"] = _ref30;
|
|
5396
5430
|
},
|
|
5397
5431
|
onFocus: function onFocus(e) {
|
|
5398
5432
|
_this8.inputkey = "inputJfdxAmount";
|