tplus-components-touch 3.26.1 → 3.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/billSearch/index.js +141 -3
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/billSearch/index.less +6 -3
- package/dist/components/cloudPrint/api.js +85 -43
- package/dist/components/cloudPrint/api.js.map +1 -1
- package/dist/components/cloudPrint/printDispatch.js +209 -108
- package/dist/components/cloudPrint/printDispatch.js.map +1 -1
- package/dist/components/hotKey/localConfig.js +14 -133
- package/dist/components/hotKey/localConfig.js.map +1 -1
- package/dist/components/inventorySearch/tab.js +80 -63
- package/dist/components/inventorySearch/tab.js.map +1 -1
- package/dist/components/settlement/settlement.js +47 -125
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +4 -50
- package/dist/components/settlement/settlementStore.js +98 -85
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/ticon/iconfont/demo_index.html +3 -49
- package/dist/components/ticon/iconfont/iconfont.css +3 -11
- package/dist/components/ticon/iconfont/iconfont.js +6 -6
- package/dist/components/ticon/iconfont/iconfont.js.map +1 -1
- package/dist/components/ticon/iconfont/iconfont.json +0 -14
- package/dist/components/ticon/iconfont/iconfont.ttf +0 -0
- package/dist/components/ticon/iconfont/iconfont.woff +0 -0
- package/dist/components/ticon/iconfont/iconfont.woff2 +0 -0
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -661,25 +661,12 @@
|
|
|
661
661
|
padding-top:25px;
|
|
662
662
|
padding-left:30px;
|
|
663
663
|
padding-right: 20px;
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
.minus {
|
|
667
|
-
text-align: center;
|
|
668
|
-
display: inline-block;
|
|
669
|
-
height: 40px;
|
|
670
|
-
line-height: 40px;
|
|
671
|
-
width: 40px;
|
|
672
|
-
position: absolute;
|
|
673
|
-
left: 284px;
|
|
674
|
-
top: 34px;
|
|
675
|
-
.minusIcon {
|
|
676
|
-
font-size: 24px;
|
|
677
|
-
}
|
|
664
|
+
.settlement-pay-item-border {
|
|
665
|
+
border-bottom: 1px solid #FF8C25 !important;
|
|
678
666
|
}
|
|
679
667
|
.main{
|
|
680
668
|
display: flex;
|
|
681
|
-
border-bottom
|
|
682
|
-
border-bottom-style: solid;
|
|
669
|
+
border-bottom: 1px solid #C8C8CD;
|
|
683
670
|
.content{
|
|
684
671
|
display: inline-block;
|
|
685
672
|
vertical-align: top;
|
|
@@ -713,8 +700,8 @@
|
|
|
713
700
|
}
|
|
714
701
|
.lefticon{
|
|
715
702
|
display: inline-block;
|
|
703
|
+
width: 20px;
|
|
716
704
|
margin-right: 16px;
|
|
717
|
-
position: absolute;
|
|
718
705
|
i{
|
|
719
706
|
font-size: 20px;
|
|
720
707
|
}
|
|
@@ -728,7 +715,6 @@
|
|
|
728
715
|
}
|
|
729
716
|
}
|
|
730
717
|
.name{
|
|
731
|
-
margin-left: 6px;
|
|
732
718
|
width: 100px;
|
|
733
719
|
display: inline-block;
|
|
734
720
|
font-size: 16px;
|
|
@@ -747,22 +733,6 @@
|
|
|
747
733
|
padding-left: 36px;
|
|
748
734
|
padding-top: 6px;
|
|
749
735
|
padding-right: 60px;
|
|
750
|
-
.addCard {
|
|
751
|
-
width: 112px;
|
|
752
|
-
height: 32px;
|
|
753
|
-
border-radius: 4px;
|
|
754
|
-
text-align: center;
|
|
755
|
-
border: none;
|
|
756
|
-
font-size: 16px;
|
|
757
|
-
display: flex;
|
|
758
|
-
align-items: center;
|
|
759
|
-
border: none;
|
|
760
|
-
padding-top: 16px !important;
|
|
761
|
-
.plus {
|
|
762
|
-
font-size: 18px;
|
|
763
|
-
margin-right: 6px;
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
736
|
}
|
|
767
737
|
}
|
|
768
738
|
|
|
@@ -966,22 +936,6 @@
|
|
|
966
936
|
padding-left: 74px;
|
|
967
937
|
padding-top: 6px;
|
|
968
938
|
padding-right: 60px;
|
|
969
|
-
.addCard {
|
|
970
|
-
width: 112px;
|
|
971
|
-
height: 32px;
|
|
972
|
-
border-radius: 4px;
|
|
973
|
-
text-align: center;
|
|
974
|
-
border: none;
|
|
975
|
-
font-size: 16px;
|
|
976
|
-
display: flex;
|
|
977
|
-
align-items: center;
|
|
978
|
-
border: none;
|
|
979
|
-
padding-top: 16px !important;
|
|
980
|
-
.plus {
|
|
981
|
-
font-size: 18px;
|
|
982
|
-
margin-right: 6px;
|
|
983
|
-
}
|
|
984
|
-
}
|
|
985
939
|
}
|
|
986
940
|
|
|
987
941
|
}
|
|
@@ -425,7 +425,7 @@ var SettlementStore = (_class = function () {
|
|
|
425
425
|
}
|
|
426
426
|
}, {
|
|
427
427
|
key: 'init',
|
|
428
|
-
value: function init(context, amounthandler, datasource, storeinfo, bquick, amount, type, data) {
|
|
428
|
+
value: function init(context, amounthandler, datasource, storeinfo, bquick, amount, type, data, payModeKey) {
|
|
429
429
|
var _this3 = this;
|
|
430
430
|
|
|
431
431
|
this.newStyle = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('voucherDefaultPosMode') == 'voucher';
|
|
@@ -441,9 +441,15 @@ var SettlementStore = (_class = function () {
|
|
|
441
441
|
if (global.DealSingleRowAmountSettingProcessorBlock) {
|
|
442
442
|
global.DealSingleRowAmountSettingProcessorBlock.execute(_this3.dto);
|
|
443
443
|
}
|
|
444
|
+
|
|
445
|
+
var _enumController$getEn4 = _mutantsUtil.enumController.getEnumOj(),
|
|
446
|
+
PayStyle = _enumController$getEn4.PayStyle;
|
|
447
|
+
|
|
448
|
+
var isQuickCash = bquick && payModeKey == PayStyle.xianjin;
|
|
449
|
+
|
|
444
450
|
// 成交金额抹零
|
|
445
451
|
if (global.DealAmountSettingProcessorBlock) {
|
|
446
|
-
global.DealAmountSettingProcessorBlock.execute(_this3.dto);
|
|
452
|
+
global.DealAmountSettingProcessorBlock.execute(_this3.dto, isQuickCash);
|
|
447
453
|
}
|
|
448
454
|
});
|
|
449
455
|
// this.member=context.stores && context.stores.memberStore && context.stores.memberStore.member;
|
|
@@ -493,8 +499,8 @@ var SettlementStore = (_class = function () {
|
|
|
493
499
|
value: function initByOriginReturn() {
|
|
494
500
|
var _this5 = this;
|
|
495
501
|
|
|
496
|
-
var _enumController$
|
|
497
|
-
PayStyle = _enumController$
|
|
502
|
+
var _enumController$getEn5 = _mutantsUtil.enumController.getEnumOj(),
|
|
503
|
+
PayStyle = _enumController$getEn5.PayStyle;
|
|
498
504
|
|
|
499
505
|
var _ref5 = _mutantsUtil.platform || {},
|
|
500
506
|
isNewRetailBCPos = _ref5.isNewRetailBCPos;
|
|
@@ -562,7 +568,7 @@ var SettlementStore = (_class = function () {
|
|
|
562
568
|
}, {
|
|
563
569
|
key: 'quickSettle',
|
|
564
570
|
value: function quickSettle(key) {
|
|
565
|
-
this.addPay(key);
|
|
571
|
+
this.addPay(key, true);
|
|
566
572
|
}
|
|
567
573
|
|
|
568
574
|
//outer call
|
|
@@ -573,8 +579,8 @@ var SettlementStore = (_class = function () {
|
|
|
573
579
|
value: function changeFocusAndAddPay(type) {
|
|
574
580
|
var _this6 = this;
|
|
575
581
|
|
|
576
|
-
var _enumController$
|
|
577
|
-
PayStyle = _enumController$
|
|
582
|
+
var _enumController$getEn6 = _mutantsUtil.enumController.getEnumOj(),
|
|
583
|
+
PayStyle = _enumController$getEn6.PayStyle;
|
|
578
584
|
|
|
579
585
|
this.paymode.currentFocus = type;
|
|
580
586
|
if (this.paymode.currentMode) {
|
|
@@ -642,10 +648,16 @@ var SettlementStore = (_class = function () {
|
|
|
642
648
|
return (0, _tplusApi.ccApi)({ code: v }, address, false, false, { method: 'get', timeout_skip: true }).then(function (result) {
|
|
643
649
|
var data = result.data;
|
|
644
650
|
var m = data;
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
651
|
+
|
|
652
|
+
var _ref9 = _mutantsUtil.platform || {},
|
|
653
|
+
isNewRetailBCPos = _ref9.isNewRetailBCPos;
|
|
654
|
+
|
|
655
|
+
if (isNewRetailBCPos) {
|
|
656
|
+
_this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
|
|
657
|
+
_this7.paymode && _this7.paymode.currentMode.member.setStorageCardNo(m.StorageCardNo);
|
|
658
|
+
_this7.paymode && (_this7.paymode.currentMode.MeStorageCardId = m.MeStorageCardId);
|
|
659
|
+
_this7.paymode && (_this7.paymode.currentMode.StorageCardNo = m.StorageCardNo);
|
|
660
|
+
}
|
|
649
661
|
if (!m || !m.ID) {
|
|
650
662
|
(0, _mobx.runInAction)(function () {
|
|
651
663
|
_this7.paymode.currentMode.errinfo = "无效的会员卡号";
|
|
@@ -683,8 +695,8 @@ var SettlementStore = (_class = function () {
|
|
|
683
695
|
var data = JSON.parse(result.Data);
|
|
684
696
|
var m = data && data.length > 0 && data[0];
|
|
685
697
|
|
|
686
|
-
var
|
|
687
|
-
isNewRetailBCPos =
|
|
698
|
+
var _ref10 = _mutantsUtil.platform || {},
|
|
699
|
+
isNewRetailBCPos = _ref10.isNewRetailBCPos;
|
|
688
700
|
|
|
689
701
|
if (isNewRetailBCPos) {
|
|
690
702
|
_this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
|
|
@@ -753,8 +765,8 @@ var SettlementStore = (_class = function () {
|
|
|
753
765
|
}, {
|
|
754
766
|
key: 'setCurrentMode',
|
|
755
767
|
value: function setCurrentMode(id, type, append) {
|
|
756
|
-
var _enumController$
|
|
757
|
-
PayStyle = _enumController$
|
|
768
|
+
var _enumController$getEn7 = _mutantsUtil.enumController.getEnumOj(),
|
|
769
|
+
PayStyle = _enumController$getEn7.PayStyle;
|
|
758
770
|
|
|
759
771
|
var mode = (0, _find3.default)(this.paymode.thePaymodes, { paymethodId: id });
|
|
760
772
|
if (mode) {
|
|
@@ -772,8 +784,8 @@ var SettlementStore = (_class = function () {
|
|
|
772
784
|
value: function afterSetCurrentMode(type) {
|
|
773
785
|
var _this8 = this;
|
|
774
786
|
|
|
775
|
-
var _enumController$
|
|
776
|
-
PayStyle = _enumController$
|
|
787
|
+
var _enumController$getEn8 = _mutantsUtil.enumController.getEnumOj(),
|
|
788
|
+
PayStyle = _enumController$getEn8.PayStyle;
|
|
777
789
|
|
|
778
790
|
if (type == PayStyle.djq) {
|
|
779
791
|
this.paymode.calcDjqValue();
|
|
@@ -808,9 +820,9 @@ var SettlementStore = (_class = function () {
|
|
|
808
820
|
}
|
|
809
821
|
}, {
|
|
810
822
|
key: 'genNewMode',
|
|
811
|
-
value: function genNewMode(type, notwithm, v) {
|
|
812
|
-
var _enumController$
|
|
813
|
-
PayStyle = _enumController$
|
|
823
|
+
value: function genNewMode(type, notwithm, v, isQuick) {
|
|
824
|
+
var _enumController$getEn9 = _mutantsUtil.enumController.getEnumOj(),
|
|
825
|
+
PayStyle = _enumController$getEn9.PayStyle;
|
|
814
826
|
|
|
815
827
|
var value = (0, _utils.getFixedNumber)(v || (this.brefund ? this.paymode.receivable : Math.max(this.paymode.receivable, 0)));
|
|
816
828
|
var themode = (0, _find3.default)(this.paymode.paymodes, { 'paymentType': type });
|
|
@@ -819,9 +831,9 @@ var SettlementStore = (_class = function () {
|
|
|
819
831
|
name: themode.name,
|
|
820
832
|
exchangeRate: themode.exchangeRate,
|
|
821
833
|
calDirection: themode.calDirection,
|
|
822
|
-
value: value,
|
|
823
|
-
value2: (0, _utils.getFixedNumber)(themode.calDirection == "88" ? value / themode.exchangeRate : value * themode.exchangeRate),
|
|
824
|
-
value3: value,
|
|
834
|
+
value: !isQuick ? 0 : value,
|
|
835
|
+
value2: !isQuick ? 0 : (0, _utils.getFixedNumber)(themode.calDirection == "88" ? value / themode.exchangeRate : value * themode.exchangeRate),
|
|
836
|
+
value3: !isQuick ? 0 : value,
|
|
825
837
|
order: this.paymode.thePaymodes.length + 1,
|
|
826
838
|
paymentType: type,
|
|
827
839
|
djqs: [],
|
|
@@ -853,8 +865,8 @@ var SettlementStore = (_class = function () {
|
|
|
853
865
|
value: function setMaxAmount(type, mode) {
|
|
854
866
|
var _this9 = this;
|
|
855
867
|
|
|
856
|
-
var _enumController$
|
|
857
|
-
PayStyle = _enumController$
|
|
868
|
+
var _enumController$getEn10 = _mutantsUtil.enumController.getEnumOj(),
|
|
869
|
+
PayStyle = _enumController$getEn10.PayStyle;
|
|
858
870
|
|
|
859
871
|
var sum = 0;
|
|
860
872
|
if (type == PayStyle.hyczk) {
|
|
@@ -930,8 +942,8 @@ var SettlementStore = (_class = function () {
|
|
|
930
942
|
}, {
|
|
931
943
|
key: 'addPayDirectly',
|
|
932
944
|
value: function addPayDirectly(pay) {
|
|
933
|
-
var _enumController$
|
|
934
|
-
PayStyle = _enumController$
|
|
945
|
+
var _enumController$getEn11 = _mutantsUtil.enumController.getEnumOj(),
|
|
946
|
+
PayStyle = _enumController$getEn11.PayStyle;
|
|
935
947
|
|
|
936
948
|
if (!(0, _find3.default)(this.paymode.thePaymodes, { paymethodId: pay.paymethodId })) {
|
|
937
949
|
var pos = this.paymode.thePaymodes.length;
|
|
@@ -948,9 +960,9 @@ var SettlementStore = (_class = function () {
|
|
|
948
960
|
}
|
|
949
961
|
}, {
|
|
950
962
|
key: 'addPay',
|
|
951
|
-
value: function addPay(type) {
|
|
952
|
-
var _enumController$
|
|
953
|
-
PayStyle = _enumController$
|
|
963
|
+
value: function addPay(type, isQuick) {
|
|
964
|
+
var _enumController$getEn12 = _mutantsUtil.enumController.getEnumOj(),
|
|
965
|
+
PayStyle = _enumController$getEn12.PayStyle;
|
|
954
966
|
|
|
955
967
|
var pos = this.paymode.thePaymodes.length;
|
|
956
968
|
if (type == PayStyle.hyczk) {
|
|
@@ -960,14 +972,15 @@ var SettlementStore = (_class = function () {
|
|
|
960
972
|
pos = index == -1 ? pos : index + 1;
|
|
961
973
|
}
|
|
962
974
|
// this.paymode.thePaymodes.push(this.genNewMode(type) );
|
|
963
|
-
|
|
975
|
+
|
|
976
|
+
this.paymode.thePaymodes.splice(pos, 0, this.genNewMode(type, this.newStyle && type == PayStyle.hyczk, undefined, isQuick));
|
|
964
977
|
this.paymode.calcReserved();
|
|
965
978
|
}
|
|
966
979
|
}, {
|
|
967
980
|
key: 'delPay',
|
|
968
981
|
value: function delPay(index) {
|
|
969
|
-
var _enumController$
|
|
970
|
-
PayStyle = _enumController$
|
|
982
|
+
var _enumController$getEn13 = _mutantsUtil.enumController.getEnumOj(),
|
|
983
|
+
PayStyle = _enumController$getEn13.PayStyle;
|
|
971
984
|
|
|
972
985
|
(0, _remove3.default)(this.paymode.thePaymodes, function (mode) {
|
|
973
986
|
return mode.paymethodId === index;
|
|
@@ -978,8 +991,8 @@ var SettlementStore = (_class = function () {
|
|
|
978
991
|
}, {
|
|
979
992
|
key: 'commit',
|
|
980
993
|
value: function () {
|
|
981
|
-
var
|
|
982
|
-
var
|
|
994
|
+
var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
|
|
995
|
+
var _ref12, isNewRetailBCPos;
|
|
983
996
|
|
|
984
997
|
return _regenerator2.default.wrap(function _callee2$(_context2) {
|
|
985
998
|
while (1) {
|
|
@@ -995,7 +1008,7 @@ var SettlementStore = (_class = function () {
|
|
|
995
1008
|
return _context2.abrupt('return', _promise2.default.resolve(true));
|
|
996
1009
|
|
|
997
1010
|
case 3:
|
|
998
|
-
|
|
1011
|
+
_ref12 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref12.isNewRetailBCPos;
|
|
999
1012
|
_context2.prev = 4;
|
|
1000
1013
|
|
|
1001
1014
|
if (!(this.type == 1)) {
|
|
@@ -1051,7 +1064,7 @@ var SettlementStore = (_class = function () {
|
|
|
1051
1064
|
}));
|
|
1052
1065
|
|
|
1053
1066
|
function commit(_x2) {
|
|
1054
|
-
return
|
|
1067
|
+
return _ref11.apply(this, arguments);
|
|
1055
1068
|
}
|
|
1056
1069
|
|
|
1057
1070
|
return commit;
|
|
@@ -1067,8 +1080,8 @@ var SettlementStore = (_class = function () {
|
|
|
1067
1080
|
value: function saveMember() {
|
|
1068
1081
|
var _this10 = this;
|
|
1069
1082
|
|
|
1070
|
-
var _enumController$
|
|
1071
|
-
PayStyle = _enumController$
|
|
1083
|
+
var _enumController$getEn14 = _mutantsUtil.enumController.getEnumOj(),
|
|
1084
|
+
PayStyle = _enumController$getEn14.PayStyle;
|
|
1072
1085
|
|
|
1073
1086
|
(0, _mobx.runInAction)(function () {
|
|
1074
1087
|
_this10.dto.StorageMutiSettleDetails = [];
|
|
@@ -1109,16 +1122,16 @@ var SettlementStore = (_class = function () {
|
|
|
1109
1122
|
}, {
|
|
1110
1123
|
key: 'save',
|
|
1111
1124
|
value: function () {
|
|
1112
|
-
var
|
|
1125
|
+
var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
|
|
1113
1126
|
var _this11 = this;
|
|
1114
1127
|
|
|
1115
|
-
var _enumController$
|
|
1128
|
+
var _enumController$getEn15, PayStyle, _ref15, isNewRetailBCPos, IPMSG, RetailTypeEnum;
|
|
1116
1129
|
|
|
1117
1130
|
return _regenerator2.default.wrap(function _callee3$(_context3) {
|
|
1118
1131
|
while (1) {
|
|
1119
1132
|
switch (_context3.prev = _context3.next) {
|
|
1120
1133
|
case 0:
|
|
1121
|
-
_enumController$
|
|
1134
|
+
_enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn15.PayStyle;
|
|
1122
1135
|
|
|
1123
1136
|
(0, _mobx.runInAction)(function () {
|
|
1124
1137
|
_this11.dto.RetailPaymentDetails = [];
|
|
@@ -1192,8 +1205,8 @@ var SettlementStore = (_class = function () {
|
|
|
1192
1205
|
}
|
|
1193
1206
|
});
|
|
1194
1207
|
|
|
1195
|
-
var
|
|
1196
|
-
isNewRetailBCPos =
|
|
1208
|
+
var _ref14 = _mutantsUtil.platform || {},
|
|
1209
|
+
isNewRetailBCPos = _ref14.isNewRetailBCPos;
|
|
1197
1210
|
|
|
1198
1211
|
if (_this11.dto.RetailStorageDetails.length > 0) {
|
|
1199
1212
|
var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
|
|
@@ -1227,7 +1240,7 @@ var SettlementStore = (_class = function () {
|
|
|
1227
1240
|
_this11.dto.Idmember = Idmember;
|
|
1228
1241
|
}
|
|
1229
1242
|
});
|
|
1230
|
-
|
|
1243
|
+
_ref15 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref15.isNewRetailBCPos;
|
|
1231
1244
|
|
|
1232
1245
|
console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
|
|
1233
1246
|
|
|
@@ -1297,7 +1310,7 @@ var SettlementStore = (_class = function () {
|
|
|
1297
1310
|
}));
|
|
1298
1311
|
|
|
1299
1312
|
function save() {
|
|
1300
|
-
return
|
|
1313
|
+
return _ref13.apply(this, arguments);
|
|
1301
1314
|
}
|
|
1302
1315
|
|
|
1303
1316
|
return save;
|
|
@@ -1310,7 +1323,7 @@ var SettlementStore = (_class = function () {
|
|
|
1310
1323
|
}, {
|
|
1311
1324
|
key: 'querySettleResult',
|
|
1312
1325
|
value: function () {
|
|
1313
|
-
var
|
|
1326
|
+
var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
|
|
1314
1327
|
return _regenerator2.default.wrap(function _callee4$(_context4) {
|
|
1315
1328
|
while (1) {
|
|
1316
1329
|
switch (_context4.prev = _context4.next) {
|
|
@@ -1338,7 +1351,7 @@ var SettlementStore = (_class = function () {
|
|
|
1338
1351
|
}));
|
|
1339
1352
|
|
|
1340
1353
|
function querySettleResult() {
|
|
1341
|
-
return
|
|
1354
|
+
return _ref16.apply(this, arguments);
|
|
1342
1355
|
}
|
|
1343
1356
|
|
|
1344
1357
|
return querySettleResult;
|
|
@@ -1364,14 +1377,14 @@ var SettlementStore = (_class = function () {
|
|
|
1364
1377
|
}, {
|
|
1365
1378
|
key: 'validePwd',
|
|
1366
1379
|
value: function () {
|
|
1367
|
-
var
|
|
1368
|
-
var
|
|
1380
|
+
var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
|
|
1381
|
+
var _ref18, isNewRetailBCPos, cook1, cook2, message, memberId, result, count, _result;
|
|
1369
1382
|
|
|
1370
1383
|
return _regenerator2.default.wrap(function _callee5$(_context5) {
|
|
1371
1384
|
while (1) {
|
|
1372
1385
|
switch (_context5.prev = _context5.next) {
|
|
1373
1386
|
case 0:
|
|
1374
|
-
|
|
1387
|
+
_ref18 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref18.isNewRetailBCPos;
|
|
1375
1388
|
_context5.prev = 1;
|
|
1376
1389
|
|
|
1377
1390
|
if (!isNewRetailBCPos) {
|
|
@@ -1456,7 +1469,7 @@ var SettlementStore = (_class = function () {
|
|
|
1456
1469
|
}));
|
|
1457
1470
|
|
|
1458
1471
|
function validePwd(_x3) {
|
|
1459
|
-
return
|
|
1472
|
+
return _ref17.apply(this, arguments);
|
|
1460
1473
|
}
|
|
1461
1474
|
|
|
1462
1475
|
return validePwd;
|
|
@@ -1495,7 +1508,7 @@ var SettlementStore = (_class = function () {
|
|
|
1495
1508
|
var _this13 = this;
|
|
1496
1509
|
|
|
1497
1510
|
return function () {
|
|
1498
|
-
var
|
|
1511
|
+
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
|
|
1499
1512
|
var _getLoginInfo, IdStore, StoreCode, resp;
|
|
1500
1513
|
|
|
1501
1514
|
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
|
@@ -1522,7 +1535,7 @@ var SettlementStore = (_class = function () {
|
|
|
1522
1535
|
}));
|
|
1523
1536
|
|
|
1524
1537
|
return function (_x4) {
|
|
1525
|
-
return
|
|
1538
|
+
return _ref19.apply(this, arguments);
|
|
1526
1539
|
};
|
|
1527
1540
|
}();
|
|
1528
1541
|
}
|
|
@@ -1614,12 +1627,12 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1614
1627
|
this.checkList = [];
|
|
1615
1628
|
}
|
|
1616
1629
|
|
|
1617
|
-
var
|
|
1618
|
-
isNewRetailBCPos =
|
|
1630
|
+
var _ref20 = _mutantsUtil.platform || {},
|
|
1631
|
+
isNewRetailBCPos = _ref20.isNewRetailBCPos;
|
|
1619
1632
|
|
|
1620
|
-
var _enumController$
|
|
1621
|
-
PayStyle = _enumController$
|
|
1622
|
-
Differentiate = _enumController$
|
|
1633
|
+
var _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(),
|
|
1634
|
+
PayStyle = _enumController$getEn16.PayStyle,
|
|
1635
|
+
Differentiate = _enumController$getEn16.Differentiate;
|
|
1623
1636
|
|
|
1624
1637
|
if (q1) {
|
|
1625
1638
|
if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
|
|
@@ -1725,18 +1738,18 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1725
1738
|
}
|
|
1726
1739
|
});
|
|
1727
1740
|
|
|
1728
|
-
var
|
|
1729
|
-
couponCode =
|
|
1730
|
-
name =
|
|
1731
|
-
tieredAmountResult =
|
|
1732
|
-
fromDate =
|
|
1733
|
-
dateMount =
|
|
1734
|
-
promoMethodEnum =
|
|
1735
|
-
discountPct =
|
|
1736
|
-
nominalAmount =
|
|
1737
|
-
promoId =
|
|
1738
|
-
id =
|
|
1739
|
-
doorsill =
|
|
1741
|
+
var _ref21 = element || {},
|
|
1742
|
+
couponCode = _ref21.couponCode,
|
|
1743
|
+
name = _ref21.name,
|
|
1744
|
+
tieredAmountResult = _ref21.tieredAmountResult,
|
|
1745
|
+
fromDate = _ref21.fromDate,
|
|
1746
|
+
dateMount = _ref21.dateMount,
|
|
1747
|
+
promoMethodEnum = _ref21.promoMethodEnum,
|
|
1748
|
+
discountPct = _ref21.discountPct,
|
|
1749
|
+
nominalAmount = _ref21.nominalAmount,
|
|
1750
|
+
promoId = _ref21.promoId,
|
|
1751
|
+
id = _ref21.id,
|
|
1752
|
+
doorsill = _ref21.doorsill;
|
|
1740
1753
|
|
|
1741
1754
|
var condValue = tieredAmountResult.condValue,
|
|
1742
1755
|
promoDiscount = tieredAmountResult.promoDiscount,
|
|
@@ -1780,11 +1793,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1780
1793
|
}, {
|
|
1781
1794
|
key: 'calcDjqValue',
|
|
1782
1795
|
value: function calcDjqValue(q1) {
|
|
1783
|
-
var
|
|
1784
|
-
isNewRetailBCPos =
|
|
1796
|
+
var _ref22 = _mutantsUtil.platform || {},
|
|
1797
|
+
isNewRetailBCPos = _ref22.isNewRetailBCPos;
|
|
1785
1798
|
|
|
1786
|
-
var _enumController$
|
|
1787
|
-
Differentiate = _enumController$
|
|
1799
|
+
var _enumController$getEn17 = _mutantsUtil.enumController.getEnumOj(),
|
|
1800
|
+
Differentiate = _enumController$getEn17.Differentiate;
|
|
1788
1801
|
|
|
1789
1802
|
if (q1) {
|
|
1790
1803
|
if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
|
|
@@ -1846,8 +1859,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1846
1859
|
this.currentMode.errinfo = '';
|
|
1847
1860
|
var sum = this.amount;
|
|
1848
1861
|
|
|
1849
|
-
var _enumController$
|
|
1850
|
-
PayStyle = _enumController$
|
|
1862
|
+
var _enumController$getEn18 = _mutantsUtil.enumController.getEnumOj(),
|
|
1863
|
+
PayStyle = _enumController$getEn18.PayStyle;
|
|
1851
1864
|
|
|
1852
1865
|
this.thePaymodes && this.thePaymodes.forEach(function (mode) {
|
|
1853
1866
|
if (mode.paymentType === PayStyle.hyczk) {
|
|
@@ -1857,7 +1870,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1857
1870
|
|
|
1858
1871
|
if (this.amount > 0 && (v === '' || v === '0.00') && sum !== 0) {
|
|
1859
1872
|
this.currentMode.errinfo = "实收金额必须录入";
|
|
1860
|
-
} else if (Math.abs(parseFloat(v)) > Math.abs(
|
|
1873
|
+
} else if (Math.abs(parseFloat(v)) > Math.abs(sum)) {
|
|
1861
1874
|
this.currentMode.errinfo = "实收不应大于应收";
|
|
1862
1875
|
} else if (parseFloat(v) > 0 && parseFloat(v) > (max || 0)) {
|
|
1863
1876
|
this.currentMode.errinfo = "余额不足";
|
|
@@ -1871,16 +1884,16 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1871
1884
|
}, {
|
|
1872
1885
|
key: 'setPaymodes',
|
|
1873
1886
|
value: function () {
|
|
1874
|
-
var
|
|
1887
|
+
var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
|
|
1875
1888
|
var _this15 = this;
|
|
1876
1889
|
|
|
1877
|
-
var _enumController$
|
|
1890
|
+
var _enumController$getEn19, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
|
|
1878
1891
|
|
|
1879
1892
|
return _regenerator2.default.wrap(function _callee7$(_context7) {
|
|
1880
1893
|
while (1) {
|
|
1881
1894
|
switch (_context7.prev = _context7.next) {
|
|
1882
1895
|
case 0:
|
|
1883
|
-
_enumController$
|
|
1896
|
+
_enumController$getEn19 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn19.settleStyleType, PayStyle = _enumController$getEn19.PayStyle;
|
|
1884
1897
|
memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
|
|
1885
1898
|
param = { 'settleStyleType': type == 1 ? memberStoreCode : settlementCode, isIntegralExchange: isIntegralExchange };
|
|
1886
1899
|
_context7.next = 5;
|
|
@@ -1896,7 +1909,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1896
1909
|
//产品需求确认会员储值卡结算方式前端展示统一调整为“储值卡" tuzha by 2020-07-08
|
|
1897
1910
|
|
|
1898
1911
|
if (mode.Code == PayStyle.hyczk) {
|
|
1899
|
-
mode.Name = '
|
|
1912
|
+
mode.Name = '储值余额';
|
|
1900
1913
|
}
|
|
1901
1914
|
paymodes.push({
|
|
1902
1915
|
name: mode.Name,
|
|
@@ -1926,7 +1939,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1926
1939
|
}));
|
|
1927
1940
|
|
|
1928
1941
|
function setPaymodes(_x5, _x6) {
|
|
1929
|
-
return
|
|
1942
|
+
return _ref23.apply(this, arguments);
|
|
1930
1943
|
}
|
|
1931
1944
|
|
|
1932
1945
|
return setPaymodes;
|
|
@@ -2047,8 +2060,8 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2047
2060
|
return key == 'canusedbalancestorage';
|
|
2048
2061
|
});
|
|
2049
2062
|
|
|
2050
|
-
var
|
|
2051
|
-
isNewRetailBCPos =
|
|
2063
|
+
var _ref24 = _mutantsUtil.platform || {},
|
|
2064
|
+
isNewRetailBCPos = _ref24.isNewRetailBCPos;
|
|
2052
2065
|
|
|
2053
2066
|
m.StorageCardNo && (this.StorageCardNo = m.StorageCardNo);
|
|
2054
2067
|
m.MeStorageCardId && (this.MeStorageCardId = m.MeStorageCardId);
|