tplus-components-touch 3.28.1 → 3.29.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/billSearch/index.js +17 -155
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/billSearch/index.less +3 -6
- package/dist/components/cloudPrint/api.js +43 -85
- package/dist/components/cloudPrint/api.js.map +1 -1
- package/dist/components/cloudPrint/index.js +57 -4
- package/dist/components/cloudPrint/index.js.map +1 -1
- package/dist/components/cloudPrint/printDispatch.js +108 -209
- package/dist/components/cloudPrint/printDispatch.js.map +1 -1
- package/dist/components/deliverySearch/index.js +12 -8
- package/dist/components/deliverySearch/index.js.map +1 -1
- package/dist/components/input/scanInput.js +98 -0
- package/dist/components/input/scanInput.js.map +1 -0
- package/dist/components/input/scanInput.less +28 -0
- package/dist/components/inventorySearch/store.js +31 -12
- package/dist/components/inventorySearch/store.js.map +1 -1
- package/dist/components/inventorySearch/tab.js +70 -80
- package/dist/components/inventorySearch/tab.js.map +1 -1
- package/dist/components/loading/loadingContent.js +13 -4
- package/dist/components/loading/loadingContent.js.map +1 -1
- package/dist/components/loading/style.less +17 -6
- package/dist/components/message/index.js +8 -5
- package/dist/components/message/index.js.map +1 -1
- package/dist/components/settlement/settlement.js +5 -8
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlementStore.js +85 -96
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/socket/index.js +6 -5
- package/dist/components/socket/index.js.map +1 -1
- package/dist/components/ticon/iconfont/demo_index.html +5202 -5202
- package/dist/components/ticon/iconfont/iconfont.css +887 -887
- package/dist/components/ticon/iconfont/iconfont.json +1535 -1535
- package/dist/index.js +7 -14
- package/dist/index.js.map +1 -1
- package/dist/util/tools.js +5 -7
- package/dist/util/tools.js.map +1 -1
- package/package.json +2 -2
|
@@ -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) {
|
|
429
429
|
var _this3 = this;
|
|
430
430
|
|
|
431
431
|
this.newStyle = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('voucherDefaultPosMode') == 'voucher';
|
|
@@ -441,15 +441,9 @@ 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
|
-
|
|
450
444
|
// 成交金额抹零
|
|
451
445
|
if (global.DealAmountSettingProcessorBlock) {
|
|
452
|
-
global.DealAmountSettingProcessorBlock.execute(_this3.dto
|
|
446
|
+
global.DealAmountSettingProcessorBlock.execute(_this3.dto);
|
|
453
447
|
}
|
|
454
448
|
});
|
|
455
449
|
// this.member=context.stores && context.stores.memberStore && context.stores.memberStore.member;
|
|
@@ -499,8 +493,8 @@ var SettlementStore = (_class = function () {
|
|
|
499
493
|
value: function initByOriginReturn() {
|
|
500
494
|
var _this5 = this;
|
|
501
495
|
|
|
502
|
-
var _enumController$
|
|
503
|
-
PayStyle = _enumController$
|
|
496
|
+
var _enumController$getEn4 = _mutantsUtil.enumController.getEnumOj(),
|
|
497
|
+
PayStyle = _enumController$getEn4.PayStyle;
|
|
504
498
|
|
|
505
499
|
var _ref5 = _mutantsUtil.platform || {},
|
|
506
500
|
isNewRetailBCPos = _ref5.isNewRetailBCPos;
|
|
@@ -568,7 +562,7 @@ var SettlementStore = (_class = function () {
|
|
|
568
562
|
}, {
|
|
569
563
|
key: 'quickSettle',
|
|
570
564
|
value: function quickSettle(key) {
|
|
571
|
-
this.addPay(key
|
|
565
|
+
this.addPay(key);
|
|
572
566
|
}
|
|
573
567
|
|
|
574
568
|
//outer call
|
|
@@ -579,8 +573,8 @@ var SettlementStore = (_class = function () {
|
|
|
579
573
|
value: function changeFocusAndAddPay(type) {
|
|
580
574
|
var _this6 = this;
|
|
581
575
|
|
|
582
|
-
var _enumController$
|
|
583
|
-
PayStyle = _enumController$
|
|
576
|
+
var _enumController$getEn5 = _mutantsUtil.enumController.getEnumOj(),
|
|
577
|
+
PayStyle = _enumController$getEn5.PayStyle;
|
|
584
578
|
|
|
585
579
|
this.paymode.currentFocus = type;
|
|
586
580
|
if (this.paymode.currentMode) {
|
|
@@ -617,11 +611,7 @@ var SettlementStore = (_class = function () {
|
|
|
617
611
|
}, {
|
|
618
612
|
key: 'getLoginInfo',
|
|
619
613
|
value: function getLoginInfo() {
|
|
620
|
-
|
|
621
|
-
_ref7$loginInfo = _ref7.loginInfo,
|
|
622
|
-
loginInfo = _ref7$loginInfo === undefined ? {} : _ref7$loginInfo;
|
|
623
|
-
|
|
624
|
-
return loginInfo;
|
|
614
|
+
return _mutantsMicrofx.stores.user.options.get('loginInfo');
|
|
625
615
|
}
|
|
626
616
|
}, {
|
|
627
617
|
key: 'loadCzk',
|
|
@@ -638,8 +628,8 @@ var SettlementStore = (_class = function () {
|
|
|
638
628
|
var IdStore = this.storeInfo.storeID;
|
|
639
629
|
var StoreCode = this.storeInfo.storeCode; //_find(this.storeInfo.storeInfos,(store)=>{return store.ID==IdStore;}).Code;
|
|
640
630
|
|
|
641
|
-
var
|
|
642
|
-
isNewRetailBCPos =
|
|
631
|
+
var _ref7 = _mutantsUtil.platform || {},
|
|
632
|
+
isNewRetailBCPos = _ref7.isNewRetailBCPos;
|
|
643
633
|
|
|
644
634
|
var address = '';
|
|
645
635
|
if (isNewRetailBCPos) {
|
|
@@ -649,8 +639,8 @@ var SettlementStore = (_class = function () {
|
|
|
649
639
|
var data = result.data;
|
|
650
640
|
var m = data;
|
|
651
641
|
|
|
652
|
-
var
|
|
653
|
-
isNewRetailBCPos =
|
|
642
|
+
var _ref8 = _mutantsUtil.platform || {},
|
|
643
|
+
isNewRetailBCPos = _ref8.isNewRetailBCPos;
|
|
654
644
|
|
|
655
645
|
if (isNewRetailBCPos) {
|
|
656
646
|
_this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
|
|
@@ -695,8 +685,8 @@ var SettlementStore = (_class = function () {
|
|
|
695
685
|
var data = JSON.parse(result.Data);
|
|
696
686
|
var m = data && data.length > 0 && data[0];
|
|
697
687
|
|
|
698
|
-
var
|
|
699
|
-
isNewRetailBCPos =
|
|
688
|
+
var _ref9 = _mutantsUtil.platform || {},
|
|
689
|
+
isNewRetailBCPos = _ref9.isNewRetailBCPos;
|
|
700
690
|
|
|
701
691
|
if (isNewRetailBCPos) {
|
|
702
692
|
_this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
|
|
@@ -765,8 +755,8 @@ var SettlementStore = (_class = function () {
|
|
|
765
755
|
}, {
|
|
766
756
|
key: 'setCurrentMode',
|
|
767
757
|
value: function setCurrentMode(id, type, append) {
|
|
768
|
-
var _enumController$
|
|
769
|
-
PayStyle = _enumController$
|
|
758
|
+
var _enumController$getEn6 = _mutantsUtil.enumController.getEnumOj(),
|
|
759
|
+
PayStyle = _enumController$getEn6.PayStyle;
|
|
770
760
|
|
|
771
761
|
var mode = (0, _find3.default)(this.paymode.thePaymodes, { paymethodId: id });
|
|
772
762
|
if (mode) {
|
|
@@ -784,8 +774,8 @@ var SettlementStore = (_class = function () {
|
|
|
784
774
|
value: function afterSetCurrentMode(type) {
|
|
785
775
|
var _this8 = this;
|
|
786
776
|
|
|
787
|
-
var _enumController$
|
|
788
|
-
PayStyle = _enumController$
|
|
777
|
+
var _enumController$getEn7 = _mutantsUtil.enumController.getEnumOj(),
|
|
778
|
+
PayStyle = _enumController$getEn7.PayStyle;
|
|
789
779
|
|
|
790
780
|
if (type == PayStyle.djq) {
|
|
791
781
|
this.paymode.calcDjqValue();
|
|
@@ -820,9 +810,9 @@ var SettlementStore = (_class = function () {
|
|
|
820
810
|
}
|
|
821
811
|
}, {
|
|
822
812
|
key: 'genNewMode',
|
|
823
|
-
value: function genNewMode(type, notwithm, v
|
|
824
|
-
var _enumController$
|
|
825
|
-
PayStyle = _enumController$
|
|
813
|
+
value: function genNewMode(type, notwithm, v) {
|
|
814
|
+
var _enumController$getEn8 = _mutantsUtil.enumController.getEnumOj(),
|
|
815
|
+
PayStyle = _enumController$getEn8.PayStyle;
|
|
826
816
|
|
|
827
817
|
var value = (0, _utils.getFixedNumber)(v || (this.brefund ? this.paymode.receivable : Math.max(this.paymode.receivable, 0)));
|
|
828
818
|
var themode = (0, _find3.default)(this.paymode.paymodes, { 'paymentType': type });
|
|
@@ -831,9 +821,9 @@ var SettlementStore = (_class = function () {
|
|
|
831
821
|
name: themode.name,
|
|
832
822
|
exchangeRate: themode.exchangeRate,
|
|
833
823
|
calDirection: themode.calDirection,
|
|
834
|
-
value:
|
|
835
|
-
value2:
|
|
836
|
-
value3:
|
|
824
|
+
value: value,
|
|
825
|
+
value2: (0, _utils.getFixedNumber)(themode.calDirection == "88" ? value / themode.exchangeRate : value * themode.exchangeRate),
|
|
826
|
+
value3: value,
|
|
837
827
|
order: this.paymode.thePaymodes.length + 1,
|
|
838
828
|
paymentType: type,
|
|
839
829
|
djqs: [],
|
|
@@ -865,8 +855,8 @@ var SettlementStore = (_class = function () {
|
|
|
865
855
|
value: function setMaxAmount(type, mode) {
|
|
866
856
|
var _this9 = this;
|
|
867
857
|
|
|
868
|
-
var _enumController$
|
|
869
|
-
PayStyle = _enumController$
|
|
858
|
+
var _enumController$getEn9 = _mutantsUtil.enumController.getEnumOj(),
|
|
859
|
+
PayStyle = _enumController$getEn9.PayStyle;
|
|
870
860
|
|
|
871
861
|
var sum = 0;
|
|
872
862
|
if (type == PayStyle.hyczk) {
|
|
@@ -942,8 +932,8 @@ var SettlementStore = (_class = function () {
|
|
|
942
932
|
}, {
|
|
943
933
|
key: 'addPayDirectly',
|
|
944
934
|
value: function addPayDirectly(pay) {
|
|
945
|
-
var _enumController$
|
|
946
|
-
PayStyle = _enumController$
|
|
935
|
+
var _enumController$getEn10 = _mutantsUtil.enumController.getEnumOj(),
|
|
936
|
+
PayStyle = _enumController$getEn10.PayStyle;
|
|
947
937
|
|
|
948
938
|
if (!(0, _find3.default)(this.paymode.thePaymodes, { paymethodId: pay.paymethodId })) {
|
|
949
939
|
var pos = this.paymode.thePaymodes.length;
|
|
@@ -960,9 +950,9 @@ var SettlementStore = (_class = function () {
|
|
|
960
950
|
}
|
|
961
951
|
}, {
|
|
962
952
|
key: 'addPay',
|
|
963
|
-
value: function addPay(type
|
|
964
|
-
var _enumController$
|
|
965
|
-
PayStyle = _enumController$
|
|
953
|
+
value: function addPay(type) {
|
|
954
|
+
var _enumController$getEn11 = _mutantsUtil.enumController.getEnumOj(),
|
|
955
|
+
PayStyle = _enumController$getEn11.PayStyle;
|
|
966
956
|
|
|
967
957
|
var pos = this.paymode.thePaymodes.length;
|
|
968
958
|
if (type == PayStyle.hyczk) {
|
|
@@ -972,15 +962,14 @@ var SettlementStore = (_class = function () {
|
|
|
972
962
|
pos = index == -1 ? pos : index + 1;
|
|
973
963
|
}
|
|
974
964
|
// this.paymode.thePaymodes.push(this.genNewMode(type) );
|
|
975
|
-
|
|
976
|
-
this.paymode.thePaymodes.splice(pos, 0, this.genNewMode(type, this.newStyle && type == PayStyle.hyczk, undefined, isQuick));
|
|
965
|
+
this.paymode.thePaymodes.splice(pos, 0, this.genNewMode(type, this.newStyle && type == PayStyle.hyczk));
|
|
977
966
|
this.paymode.calcReserved();
|
|
978
967
|
}
|
|
979
968
|
}, {
|
|
980
969
|
key: 'delPay',
|
|
981
970
|
value: function delPay(index) {
|
|
982
|
-
var _enumController$
|
|
983
|
-
PayStyle = _enumController$
|
|
971
|
+
var _enumController$getEn12 = _mutantsUtil.enumController.getEnumOj(),
|
|
972
|
+
PayStyle = _enumController$getEn12.PayStyle;
|
|
984
973
|
|
|
985
974
|
(0, _remove3.default)(this.paymode.thePaymodes, function (mode) {
|
|
986
975
|
return mode.paymethodId === index;
|
|
@@ -991,8 +980,8 @@ var SettlementStore = (_class = function () {
|
|
|
991
980
|
}, {
|
|
992
981
|
key: 'commit',
|
|
993
982
|
value: function () {
|
|
994
|
-
var
|
|
995
|
-
var
|
|
983
|
+
var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
|
|
984
|
+
var _ref11, isNewRetailBCPos;
|
|
996
985
|
|
|
997
986
|
return _regenerator2.default.wrap(function _callee2$(_context2) {
|
|
998
987
|
while (1) {
|
|
@@ -1008,7 +997,7 @@ var SettlementStore = (_class = function () {
|
|
|
1008
997
|
return _context2.abrupt('return', _promise2.default.resolve(true));
|
|
1009
998
|
|
|
1010
999
|
case 3:
|
|
1011
|
-
|
|
1000
|
+
_ref11 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref11.isNewRetailBCPos;
|
|
1012
1001
|
_context2.prev = 4;
|
|
1013
1002
|
|
|
1014
1003
|
if (!(this.type == 1)) {
|
|
@@ -1064,7 +1053,7 @@ var SettlementStore = (_class = function () {
|
|
|
1064
1053
|
}));
|
|
1065
1054
|
|
|
1066
1055
|
function commit(_x2) {
|
|
1067
|
-
return
|
|
1056
|
+
return _ref10.apply(this, arguments);
|
|
1068
1057
|
}
|
|
1069
1058
|
|
|
1070
1059
|
return commit;
|
|
@@ -1080,8 +1069,8 @@ var SettlementStore = (_class = function () {
|
|
|
1080
1069
|
value: function saveMember() {
|
|
1081
1070
|
var _this10 = this;
|
|
1082
1071
|
|
|
1083
|
-
var _enumController$
|
|
1084
|
-
PayStyle = _enumController$
|
|
1072
|
+
var _enumController$getEn13 = _mutantsUtil.enumController.getEnumOj(),
|
|
1073
|
+
PayStyle = _enumController$getEn13.PayStyle;
|
|
1085
1074
|
|
|
1086
1075
|
(0, _mobx.runInAction)(function () {
|
|
1087
1076
|
_this10.dto.StorageMutiSettleDetails = [];
|
|
@@ -1122,16 +1111,16 @@ var SettlementStore = (_class = function () {
|
|
|
1122
1111
|
}, {
|
|
1123
1112
|
key: 'save',
|
|
1124
1113
|
value: function () {
|
|
1125
|
-
var
|
|
1114
|
+
var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
|
|
1126
1115
|
var _this11 = this;
|
|
1127
1116
|
|
|
1128
|
-
var _enumController$
|
|
1117
|
+
var _enumController$getEn14, PayStyle, _ref14, isNewRetailBCPos, IPMSG, RetailTypeEnum;
|
|
1129
1118
|
|
|
1130
1119
|
return _regenerator2.default.wrap(function _callee3$(_context3) {
|
|
1131
1120
|
while (1) {
|
|
1132
1121
|
switch (_context3.prev = _context3.next) {
|
|
1133
1122
|
case 0:
|
|
1134
|
-
_enumController$
|
|
1123
|
+
_enumController$getEn14 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn14.PayStyle;
|
|
1135
1124
|
|
|
1136
1125
|
(0, _mobx.runInAction)(function () {
|
|
1137
1126
|
_this11.dto.RetailPaymentDetails = [];
|
|
@@ -1205,8 +1194,8 @@ var SettlementStore = (_class = function () {
|
|
|
1205
1194
|
}
|
|
1206
1195
|
});
|
|
1207
1196
|
|
|
1208
|
-
var
|
|
1209
|
-
isNewRetailBCPos =
|
|
1197
|
+
var _ref13 = _mutantsUtil.platform || {},
|
|
1198
|
+
isNewRetailBCPos = _ref13.isNewRetailBCPos;
|
|
1210
1199
|
|
|
1211
1200
|
if (_this11.dto.RetailStorageDetails.length > 0) {
|
|
1212
1201
|
var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
|
|
@@ -1240,7 +1229,7 @@ var SettlementStore = (_class = function () {
|
|
|
1240
1229
|
_this11.dto.Idmember = Idmember;
|
|
1241
1230
|
}
|
|
1242
1231
|
});
|
|
1243
|
-
|
|
1232
|
+
_ref14 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref14.isNewRetailBCPos;
|
|
1244
1233
|
|
|
1245
1234
|
console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
|
|
1246
1235
|
|
|
@@ -1310,7 +1299,7 @@ var SettlementStore = (_class = function () {
|
|
|
1310
1299
|
}));
|
|
1311
1300
|
|
|
1312
1301
|
function save() {
|
|
1313
|
-
return
|
|
1302
|
+
return _ref12.apply(this, arguments);
|
|
1314
1303
|
}
|
|
1315
1304
|
|
|
1316
1305
|
return save;
|
|
@@ -1323,7 +1312,7 @@ var SettlementStore = (_class = function () {
|
|
|
1323
1312
|
}, {
|
|
1324
1313
|
key: 'querySettleResult',
|
|
1325
1314
|
value: function () {
|
|
1326
|
-
var
|
|
1315
|
+
var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
|
|
1327
1316
|
return _regenerator2.default.wrap(function _callee4$(_context4) {
|
|
1328
1317
|
while (1) {
|
|
1329
1318
|
switch (_context4.prev = _context4.next) {
|
|
@@ -1351,7 +1340,7 @@ var SettlementStore = (_class = function () {
|
|
|
1351
1340
|
}));
|
|
1352
1341
|
|
|
1353
1342
|
function querySettleResult() {
|
|
1354
|
-
return
|
|
1343
|
+
return _ref15.apply(this, arguments);
|
|
1355
1344
|
}
|
|
1356
1345
|
|
|
1357
1346
|
return querySettleResult;
|
|
@@ -1377,14 +1366,14 @@ var SettlementStore = (_class = function () {
|
|
|
1377
1366
|
}, {
|
|
1378
1367
|
key: 'validePwd',
|
|
1379
1368
|
value: function () {
|
|
1380
|
-
var
|
|
1381
|
-
var
|
|
1369
|
+
var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
|
|
1370
|
+
var _ref17, isNewRetailBCPos, cook1, cook2, message, memberId, result, count, _result;
|
|
1382
1371
|
|
|
1383
1372
|
return _regenerator2.default.wrap(function _callee5$(_context5) {
|
|
1384
1373
|
while (1) {
|
|
1385
1374
|
switch (_context5.prev = _context5.next) {
|
|
1386
1375
|
case 0:
|
|
1387
|
-
|
|
1376
|
+
_ref17 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref17.isNewRetailBCPos;
|
|
1388
1377
|
_context5.prev = 1;
|
|
1389
1378
|
|
|
1390
1379
|
if (!isNewRetailBCPos) {
|
|
@@ -1469,7 +1458,7 @@ var SettlementStore = (_class = function () {
|
|
|
1469
1458
|
}));
|
|
1470
1459
|
|
|
1471
1460
|
function validePwd(_x3) {
|
|
1472
|
-
return
|
|
1461
|
+
return _ref16.apply(this, arguments);
|
|
1473
1462
|
}
|
|
1474
1463
|
|
|
1475
1464
|
return validePwd;
|
|
@@ -1508,7 +1497,7 @@ var SettlementStore = (_class = function () {
|
|
|
1508
1497
|
var _this13 = this;
|
|
1509
1498
|
|
|
1510
1499
|
return function () {
|
|
1511
|
-
var
|
|
1500
|
+
var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
|
|
1512
1501
|
var _getLoginInfo, IdStore, StoreCode, resp;
|
|
1513
1502
|
|
|
1514
1503
|
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
|
@@ -1535,7 +1524,7 @@ var SettlementStore = (_class = function () {
|
|
|
1535
1524
|
}));
|
|
1536
1525
|
|
|
1537
1526
|
return function (_x4) {
|
|
1538
|
-
return
|
|
1527
|
+
return _ref18.apply(this, arguments);
|
|
1539
1528
|
};
|
|
1540
1529
|
}();
|
|
1541
1530
|
}
|
|
@@ -1627,12 +1616,12 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1627
1616
|
this.checkList = [];
|
|
1628
1617
|
}
|
|
1629
1618
|
|
|
1630
|
-
var
|
|
1631
|
-
isNewRetailBCPos =
|
|
1619
|
+
var _ref19 = _mutantsUtil.platform || {},
|
|
1620
|
+
isNewRetailBCPos = _ref19.isNewRetailBCPos;
|
|
1632
1621
|
|
|
1633
|
-
var _enumController$
|
|
1634
|
-
PayStyle = _enumController$
|
|
1635
|
-
Differentiate = _enumController$
|
|
1622
|
+
var _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(),
|
|
1623
|
+
PayStyle = _enumController$getEn15.PayStyle,
|
|
1624
|
+
Differentiate = _enumController$getEn15.Differentiate;
|
|
1636
1625
|
|
|
1637
1626
|
if (q1) {
|
|
1638
1627
|
if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
|
|
@@ -1738,18 +1727,18 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1738
1727
|
}
|
|
1739
1728
|
});
|
|
1740
1729
|
|
|
1741
|
-
var
|
|
1742
|
-
couponCode =
|
|
1743
|
-
name =
|
|
1744
|
-
tieredAmountResult =
|
|
1745
|
-
fromDate =
|
|
1746
|
-
dateMount =
|
|
1747
|
-
promoMethodEnum =
|
|
1748
|
-
discountPct =
|
|
1749
|
-
nominalAmount =
|
|
1750
|
-
promoId =
|
|
1751
|
-
id =
|
|
1752
|
-
doorsill =
|
|
1730
|
+
var _ref20 = element || {},
|
|
1731
|
+
couponCode = _ref20.couponCode,
|
|
1732
|
+
name = _ref20.name,
|
|
1733
|
+
tieredAmountResult = _ref20.tieredAmountResult,
|
|
1734
|
+
fromDate = _ref20.fromDate,
|
|
1735
|
+
dateMount = _ref20.dateMount,
|
|
1736
|
+
promoMethodEnum = _ref20.promoMethodEnum,
|
|
1737
|
+
discountPct = _ref20.discountPct,
|
|
1738
|
+
nominalAmount = _ref20.nominalAmount,
|
|
1739
|
+
promoId = _ref20.promoId,
|
|
1740
|
+
id = _ref20.id,
|
|
1741
|
+
doorsill = _ref20.doorsill;
|
|
1753
1742
|
|
|
1754
1743
|
var condValue = tieredAmountResult.condValue,
|
|
1755
1744
|
promoDiscount = tieredAmountResult.promoDiscount,
|
|
@@ -1793,11 +1782,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1793
1782
|
}, {
|
|
1794
1783
|
key: 'calcDjqValue',
|
|
1795
1784
|
value: function calcDjqValue(q1) {
|
|
1796
|
-
var
|
|
1797
|
-
isNewRetailBCPos =
|
|
1785
|
+
var _ref21 = _mutantsUtil.platform || {},
|
|
1786
|
+
isNewRetailBCPos = _ref21.isNewRetailBCPos;
|
|
1798
1787
|
|
|
1799
|
-
var _enumController$
|
|
1800
|
-
Differentiate = _enumController$
|
|
1788
|
+
var _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(),
|
|
1789
|
+
Differentiate = _enumController$getEn16.Differentiate;
|
|
1801
1790
|
|
|
1802
1791
|
if (q1) {
|
|
1803
1792
|
if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
|
|
@@ -1859,8 +1848,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1859
1848
|
this.currentMode.errinfo = '';
|
|
1860
1849
|
var sum = this.amount;
|
|
1861
1850
|
|
|
1862
|
-
var _enumController$
|
|
1863
|
-
PayStyle = _enumController$
|
|
1851
|
+
var _enumController$getEn17 = _mutantsUtil.enumController.getEnumOj(),
|
|
1852
|
+
PayStyle = _enumController$getEn17.PayStyle;
|
|
1864
1853
|
|
|
1865
1854
|
this.thePaymodes && this.thePaymodes.forEach(function (mode) {
|
|
1866
1855
|
if (mode.paymentType === PayStyle.hyczk) {
|
|
@@ -1870,7 +1859,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1870
1859
|
|
|
1871
1860
|
if (this.amount > 0 && (v === '' || v === '0.00') && sum !== 0) {
|
|
1872
1861
|
this.currentMode.errinfo = "实收金额必须录入";
|
|
1873
|
-
} else if (Math.abs(parseFloat(v)) > Math.abs(sum)) {
|
|
1862
|
+
} else if (Math.abs(parseFloat(v)) > Math.abs((0, _utils.getFixedNumber)(sum))) {
|
|
1874
1863
|
this.currentMode.errinfo = "实收不应大于应收";
|
|
1875
1864
|
} else if (parseFloat(v) > 0 && parseFloat(v) > (max || 0)) {
|
|
1876
1865
|
this.currentMode.errinfo = "余额不足";
|
|
@@ -1884,16 +1873,16 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1884
1873
|
}, {
|
|
1885
1874
|
key: 'setPaymodes',
|
|
1886
1875
|
value: function () {
|
|
1887
|
-
var
|
|
1876
|
+
var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
|
|
1888
1877
|
var _this15 = this;
|
|
1889
1878
|
|
|
1890
|
-
var _enumController$
|
|
1879
|
+
var _enumController$getEn18, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
|
|
1891
1880
|
|
|
1892
1881
|
return _regenerator2.default.wrap(function _callee7$(_context7) {
|
|
1893
1882
|
while (1) {
|
|
1894
1883
|
switch (_context7.prev = _context7.next) {
|
|
1895
1884
|
case 0:
|
|
1896
|
-
_enumController$
|
|
1885
|
+
_enumController$getEn18 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn18.settleStyleType, PayStyle = _enumController$getEn18.PayStyle;
|
|
1897
1886
|
memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
|
|
1898
1887
|
param = { 'settleStyleType': type == 1 ? memberStoreCode : settlementCode, isIntegralExchange: isIntegralExchange };
|
|
1899
1888
|
_context7.next = 5;
|
|
@@ -1939,7 +1928,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1939
1928
|
}));
|
|
1940
1929
|
|
|
1941
1930
|
function setPaymodes(_x5, _x6) {
|
|
1942
|
-
return
|
|
1931
|
+
return _ref22.apply(this, arguments);
|
|
1943
1932
|
}
|
|
1944
1933
|
|
|
1945
1934
|
return setPaymodes;
|
|
@@ -2060,8 +2049,8 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2060
2049
|
return key == 'canusedbalancestorage';
|
|
2061
2050
|
});
|
|
2062
2051
|
|
|
2063
|
-
var
|
|
2064
|
-
isNewRetailBCPos =
|
|
2052
|
+
var _ref23 = _mutantsUtil.platform || {},
|
|
2053
|
+
isNewRetailBCPos = _ref23.isNewRetailBCPos;
|
|
2065
2054
|
|
|
2066
2055
|
m.StorageCardNo && (this.StorageCardNo = m.StorageCardNo);
|
|
2067
2056
|
m.MeStorageCardId && (this.MeStorageCardId = m.MeStorageCardId);
|