tplus-components-touch 3.26.21 → 3.26.25
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/scanInput.js.map +1 -1
- package/dist/components/input/scanInput.less +27 -27
- package/dist/components/input/style.less +99 -99
- package/dist/components/input/tplusInput/index.js +30 -30
- package/dist/components/input/tplusInput/index.js.map +1 -1
- package/dist/components/input/tplusInput/inputContent.js.map +1 -1
- package/dist/components/input/tplusInput/inputs.js.map +1 -1
- package/dist/components/input/tplusInput/style.less +132 -132
- package/dist/components/input/utils/index.js.map +1 -1
- package/dist/components/inventorySearch/api.js +58 -58
- package/dist/components/inventorySearch/api.js.map +1 -1
- package/dist/components/inventorySearch/index.js +3 -3
- package/dist/components/inventorySearch/index.js.map +1 -1
- package/dist/components/inventorySearch/index.less +119 -119
- package/dist/components/inventorySearch/store.js.map +1 -1
- package/dist/components/inventorySearch/tab.js.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 +72 -72
- package/dist/components/loading/utils.js.map +1 -1
- package/dist/components/message/index.js +8 -8
- package/dist/components/message/index.js.map +1 -1
- package/dist/components/message/index.less +101 -101
- package/dist/components/modal/index.js.map +1 -1
- package/dist/components/modal/index.less +19 -19
- package/dist/components/modalVertical/index.js +7 -7
- package/dist/components/modalVertical/index.js.map +1 -1
- package/dist/components/modalVertical/style.less +60 -60
- package/dist/components/modalWraper/index.js +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/moreCzkTable/index.js +156 -0
- package/dist/components/settlement/moreCzkTable/index.js.map +1 -0
- package/dist/components/settlement/moreCzkTable/style.less +0 -0
- 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 +172 -61
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +1655 -1646
- package/dist/components/settlement/settlementStore.js +59 -43
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/settlement/utils.js.map +1 -1
- package/dist/components/socket/index.js +11 -11
- package/dist/components/socket/index.js.map +1 -1
- package/dist/components/spin/index.js +6 -6
- package/dist/components/spin/index.js.map +1 -1
- package/dist/components/spin/spin-style.less +436 -436
- package/dist/components/test/index.js +3 -3
- package/dist/components/test/index.js.map +1 -1
- package/dist/components/ticon/iconfont/demo_index.html +5248 -5248
- package/dist/components/ticon/iconfont/iconfont.css +895 -895
- package/dist/components/ticon/iconfont/iconfont.json +1549 -1549
- 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
|
@@ -209,8 +209,10 @@ var SettlementStore = (_class = function () {
|
|
|
209
209
|
_this2.paymode.currentMode.errinfo = "实收金额必须录入";
|
|
210
210
|
} else {
|
|
211
211
|
// 查询成功后将焦点移入下一个输入框
|
|
212
|
-
|
|
213
|
-
|
|
212
|
+
setTimeout(function () {
|
|
213
|
+
var nextInput = document.querySelector('.czk .received .input');
|
|
214
|
+
nextInput && nextInput.select();
|
|
215
|
+
}, 300);
|
|
214
216
|
}
|
|
215
217
|
});
|
|
216
218
|
}
|
|
@@ -681,7 +683,7 @@ var SettlementStore = (_class = function () {
|
|
|
681
683
|
var address = '';
|
|
682
684
|
if (isNewRetailBCPos) {
|
|
683
685
|
// address = '/member/memberProfile/FindByStorageCode/'+v;
|
|
684
|
-
address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + v;
|
|
686
|
+
address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + v + '/' + true;
|
|
685
687
|
return (0, _tplusApi.ccApi)({ code: v }, address, false, false, { method: 'get', timeout_skip: true }).then(function () {
|
|
686
688
|
var _ref8 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(result) {
|
|
687
689
|
var data, m;
|
|
@@ -693,45 +695,63 @@ var SettlementStore = (_class = function () {
|
|
|
693
695
|
m = data && data.length && data[0];
|
|
694
696
|
|
|
695
697
|
if (!(result && result.data.length)) {
|
|
696
|
-
_context2.next =
|
|
698
|
+
_context2.next = 25;
|
|
697
699
|
break;
|
|
698
700
|
}
|
|
699
701
|
|
|
700
702
|
if (!(result.data.length === 1)) {
|
|
701
|
-
_context2.next =
|
|
703
|
+
_context2.next = 14;
|
|
702
704
|
break;
|
|
703
705
|
}
|
|
704
706
|
|
|
705
707
|
if (!(m.CardTypeEnum === 'BALANCE_CARD')) {
|
|
706
|
-
_context2.next =
|
|
708
|
+
_context2.next = 10;
|
|
707
709
|
break;
|
|
708
710
|
}
|
|
709
711
|
|
|
710
712
|
_this7.paymode.updateCardInfo(m);
|
|
711
713
|
_this7.handleCzkData(m);
|
|
712
|
-
_context2.
|
|
713
|
-
break;
|
|
714
|
+
return _context2.abrupt('return', result.data);
|
|
714
715
|
|
|
715
|
-
case
|
|
716
|
-
_context2.next =
|
|
716
|
+
case 10:
|
|
717
|
+
_context2.next = 12;
|
|
717
718
|
return (0, _tplusApi.ccApi)({ dto: _this7.dto, meStorageCardId: m.MeStorageCardId }, '/retail/RetailPos/validateRetailStorageCard', false, false).then(function (result1) {
|
|
718
719
|
var data1 = result1.data ? JSON.parse(result1.data)[0] : {};
|
|
719
720
|
if (data1.enable) {
|
|
720
721
|
_this7.paymode.updateCardInfo(m);
|
|
721
722
|
_this7.handleCzkData(m);
|
|
723
|
+
return result1.data;
|
|
722
724
|
} else {
|
|
723
725
|
_message2.default.warn(data1.disableReason);
|
|
724
726
|
}
|
|
725
727
|
});
|
|
726
728
|
|
|
727
|
-
case
|
|
728
|
-
_context2.next =
|
|
729
|
+
case 12:
|
|
730
|
+
_context2.next = 25;
|
|
729
731
|
break;
|
|
730
732
|
|
|
731
|
-
case
|
|
733
|
+
case 14:
|
|
734
|
+
if (!(result.data && result.data.length === 1)) {
|
|
735
|
+
_context2.next = 19;
|
|
736
|
+
break;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
_this7.paymode.updateCardInfo(result.data[0]);
|
|
732
740
|
return _context2.abrupt('return', result.data);
|
|
733
741
|
|
|
734
|
-
case
|
|
742
|
+
case 19:
|
|
743
|
+
if (!(result.data && result.data.length > 1)) {
|
|
744
|
+
_context2.next = 23;
|
|
745
|
+
break;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
return _context2.abrupt('return', result.data);
|
|
749
|
+
|
|
750
|
+
case 23:
|
|
751
|
+
_message2.default.warn('没有可用储值卡!');
|
|
752
|
+
return _context2.abrupt('return', false);
|
|
753
|
+
|
|
754
|
+
case 25:
|
|
735
755
|
case 'end':
|
|
736
756
|
return _context2.stop();
|
|
737
757
|
}
|
|
@@ -877,22 +897,7 @@ var SettlementStore = (_class = function () {
|
|
|
877
897
|
|
|
878
898
|
var value = (0, _utils.getFixedNumber)(v || (this.brefund ? this.paymode.receivable : Math.max(this.paymode.receivable, 0)));
|
|
879
899
|
var themode = (0, _find3.default)(this.paymode.paymodes, { 'paymentType': type });
|
|
880
|
-
var balance = null;
|
|
881
|
-
var rawbalance = null;
|
|
882
|
-
var storageCardNo = null;
|
|
883
900
|
var memberId = this.member && this.member.ID ? this.member.ID : null;
|
|
884
|
-
var cardTypeEnum = null;
|
|
885
|
-
var walletEnabled = null;
|
|
886
|
-
var meStorageCardId = null;
|
|
887
|
-
if (type === PayStyle.hyczk) {
|
|
888
|
-
// 会员概念改为卡,把这些字段都放开
|
|
889
|
-
cardTypeEnum = this.member.CardTypeEnum ? this.member.CardTypeEnum : null;
|
|
890
|
-
walletEnabled = this.member.WalletEnabled ? this.member.WalletEnabled : null;
|
|
891
|
-
storageCardNo = this.member.StorageCardNo ? this.member.StorageCardNo : null;
|
|
892
|
-
balance = this.member.BalanceStorage ? this.member.BalanceStorage : null;
|
|
893
|
-
rawbalance = this.member.BalanceStorage ? this.member.BalanceStorage : null;
|
|
894
|
-
meStorageCardId = this.member.MeStorageCardId ? this.member.MeStorageCardId : null;
|
|
895
|
-
}
|
|
896
901
|
var mode = (0, _mobx.observable)({
|
|
897
902
|
paymethodId: this.paymode.counter,
|
|
898
903
|
name: themode.name,
|
|
@@ -905,13 +910,7 @@ var SettlementStore = (_class = function () {
|
|
|
905
910
|
paymentType: type,
|
|
906
911
|
djqs: [],
|
|
907
912
|
card: null,
|
|
908
|
-
cardTypeEnum: !notwithm ? cardTypeEnum : null,
|
|
909
|
-
walletEnabled: !notwithm ? walletEnabled : null,
|
|
910
913
|
memberId: !notwithm ? memberId : null,
|
|
911
|
-
meStorageCardId: !notwithm ? meStorageCardId : null,
|
|
912
|
-
storageCardNo: !notwithm ? storageCardNo : null,
|
|
913
|
-
balance: !notwithm ? balance : null,
|
|
914
|
-
rawbalance: !notwithm ? rawbalance : null,
|
|
915
914
|
member: new Member(!notwithm ? this.member : null),
|
|
916
915
|
authCode: '',
|
|
917
916
|
steadCashIntegral: null,
|
|
@@ -921,7 +920,7 @@ var SettlementStore = (_class = function () {
|
|
|
921
920
|
if (type == PayStyle.hyczk) {
|
|
922
921
|
if (!mode.storageCardNo) {
|
|
923
922
|
(0, _mobx.runInAction)(function () {
|
|
924
|
-
mode.errinfo = '
|
|
923
|
+
mode.errinfo = '未录入手机号或储值卡号';
|
|
925
924
|
});
|
|
926
925
|
} else if (this.checkReceived(mode, "balance")) {
|
|
927
926
|
(0, _mobx.runInAction)(function () {
|
|
@@ -1649,29 +1648,46 @@ var SettlementStore = (_class = function () {
|
|
|
1649
1648
|
switch (_context8.prev = _context8.next) {
|
|
1650
1649
|
case 0:
|
|
1651
1650
|
_context8.next = 2;
|
|
1652
|
-
return (0, _tplusApi.ccApi)({}, '/marketingtool/MeStorageCard/getCardInfoByMemberId/' + memberId, false, false, { method: 'get' });
|
|
1651
|
+
return (0, _tplusApi.ccApi)({}, '/marketingtool/MeStorageCard/getCardInfoByMemberId/' + memberId + '/' + true, false, false, { method: 'get' });
|
|
1653
1652
|
|
|
1654
1653
|
case 2:
|
|
1655
1654
|
result = _context8.sent;
|
|
1656
1655
|
|
|
1657
1656
|
if (!(result && result.data.length)) {
|
|
1658
|
-
_context8.next =
|
|
1657
|
+
_context8.next = 20;
|
|
1659
1658
|
break;
|
|
1660
1659
|
}
|
|
1661
1660
|
|
|
1662
1661
|
if (!(result.data.length === 1)) {
|
|
1663
|
-
_context8.next =
|
|
1662
|
+
_context8.next = 9;
|
|
1664
1663
|
break;
|
|
1665
1664
|
}
|
|
1666
1665
|
|
|
1667
1666
|
_this14.paymode.updateCardInfo(result.data[0]);
|
|
1668
|
-
_context8.next = 9;
|
|
1669
|
-
break;
|
|
1670
|
-
|
|
1671
|
-
case 8:
|
|
1672
1667
|
return _context8.abrupt('return', result.data);
|
|
1673
1668
|
|
|
1674
1669
|
case 9:
|
|
1670
|
+
if (!(result.data && result.data.length === 1)) {
|
|
1671
|
+
_context8.next = 14;
|
|
1672
|
+
break;
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
_this14.paymode.updateCardInfo(result.data[0]);
|
|
1676
|
+
return _context8.abrupt('return', result.data);
|
|
1677
|
+
|
|
1678
|
+
case 14:
|
|
1679
|
+
if (!(result.data && result.data.length > 1)) {
|
|
1680
|
+
_context8.next = 18;
|
|
1681
|
+
break;
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
return _context8.abrupt('return', result.data);
|
|
1685
|
+
|
|
1686
|
+
case 18:
|
|
1687
|
+
_message2.default.warn('没有可用储值卡!');
|
|
1688
|
+
return _context8.abrupt('return', false);
|
|
1689
|
+
|
|
1690
|
+
case 20:
|
|
1675
1691
|
case 'end':
|
|
1676
1692
|
return _context8.stop();
|
|
1677
1693
|
}
|