tplus-components-touch 3.31.15 → 3.32.4
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 +376 -376
- 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 +156 -156
- 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.map +1 -1
- package/dist/components/settlement/moreCzkTable/style.less +6 -6
- 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 +5 -15
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +1664 -1664
- package/dist/components/settlement/settlementStore.js +383 -242
- 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.css +539 -539
- 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 +376 -376
- 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
|
@@ -168,6 +168,7 @@ var SettlementStore = (_class = function () {
|
|
|
168
168
|
(0, _classCallCheck3.default)(this, SettlementStore);
|
|
169
169
|
this.paymode = null;
|
|
170
170
|
this.dto = null;
|
|
171
|
+
this.dtoParams = null;
|
|
171
172
|
this.member = null;
|
|
172
173
|
this.brefund = false;
|
|
173
174
|
this.bquick = false;
|
|
@@ -909,6 +910,7 @@ var SettlementStore = (_class = function () {
|
|
|
909
910
|
name: themode.name,
|
|
910
911
|
exchangeRate: themode.exchangeRate,
|
|
911
912
|
calDirection: themode.calDirection,
|
|
913
|
+
thridPayment: themode.thridPayment,
|
|
912
914
|
value: value,
|
|
913
915
|
value2: (0, _utils.getFixedNumber)(themode.calDirection == "88" ? value / themode.exchangeRate : value * themode.exchangeRate),
|
|
914
916
|
value3: value,
|
|
@@ -937,7 +939,7 @@ var SettlementStore = (_class = function () {
|
|
|
937
939
|
if (type == PayStyle.hyczk || type == PayStyle.jfdx || type == PayStyle.djq) {
|
|
938
940
|
this.setMaxAmount(type, mode);
|
|
939
941
|
}
|
|
940
|
-
console.log(mode);
|
|
942
|
+
console.log('\u5F53\u524D\u64CD\u4F5C\u7ED3\u7B97\u65B9\u5F0F\u4FE1\u606F:' + mode);
|
|
941
943
|
return mode;
|
|
942
944
|
}
|
|
943
945
|
}, {
|
|
@@ -974,15 +976,6 @@ var SettlementStore = (_class = function () {
|
|
|
974
976
|
key: 'changeFocusOnly',
|
|
975
977
|
value: function changeFocusOnly(type) {
|
|
976
978
|
this.paymode.currentFocus = type;
|
|
977
|
-
// 获取焦点时带入剩余的值
|
|
978
|
-
// let mode=_find(this.paymode.thePaymodes,{'paymentType':type});
|
|
979
|
-
// if(mode && this.isIntegralExchange){
|
|
980
|
-
// const shouldSetValue =getFixedNumber(parseFloat(this.paymode.receivable) + parseFloat(mode.value));
|
|
981
|
-
// mode.value = shouldSetValue;
|
|
982
|
-
// mode.value2 = getFixedNumber(mode.calDirection=="88"?shouldSetValue / mode.exchangeRate:(shouldSetValue * mode.exchangeRate));
|
|
983
|
-
// mode.value3 = shouldSetValue;
|
|
984
|
-
// this.paymode.calcReserved();
|
|
985
|
-
// }
|
|
986
979
|
}
|
|
987
980
|
}, {
|
|
988
981
|
key: 'changeClickFocusOnly',
|
|
@@ -1044,6 +1037,13 @@ var SettlementStore = (_class = function () {
|
|
|
1044
1037
|
var _enumController$getEn12 = _mutantsUtil.enumController.getEnumOj(),
|
|
1045
1038
|
PayStyle = _enumController$getEn12.PayStyle;
|
|
1046
1039
|
|
|
1040
|
+
var hasThirdPay = this.paymode.thePaymodes.findIndex(function (v) {
|
|
1041
|
+
return !!v.thridPayment;
|
|
1042
|
+
});
|
|
1043
|
+
if (hasThirdPay > -1 && curMode.thridPayment) {
|
|
1044
|
+
_message2.default.warn('二开支付目前仅支持单一结算。');
|
|
1045
|
+
return;
|
|
1046
|
+
}
|
|
1047
1047
|
var pos = this.paymode.thePaymodes.length;
|
|
1048
1048
|
if (type == PayStyle.hyczk) {
|
|
1049
1049
|
var index = (0, _findLastIndex3.default)(this.paymode.thePaymodes, function (m) {
|
|
@@ -1051,8 +1051,6 @@ var SettlementStore = (_class = function () {
|
|
|
1051
1051
|
});
|
|
1052
1052
|
pos = index == -1 ? pos : index + 1;
|
|
1053
1053
|
}
|
|
1054
|
-
// this.paymode.thePaymodes.push(this.genNewMode(type) );
|
|
1055
|
-
|
|
1056
1054
|
this.paymode.thePaymodes.splice(pos, 0, this.genNewMode(type, this.newStyle && type == PayStyle.hyczk, undefined, isQuick));
|
|
1057
1055
|
this.paymode.calcReserved();
|
|
1058
1056
|
}
|
|
@@ -1072,8 +1070,7 @@ var SettlementStore = (_class = function () {
|
|
|
1072
1070
|
key: 'commit',
|
|
1073
1071
|
value: function () {
|
|
1074
1072
|
var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(bTest) {
|
|
1075
|
-
var
|
|
1076
|
-
|
|
1073
|
+
var ret;
|
|
1077
1074
|
return _regenerator2.default.wrap(function _callee3$(_context3) {
|
|
1078
1075
|
while (1) {
|
|
1079
1076
|
switch (_context3.prev = _context3.next) {
|
|
@@ -1088,40 +1085,39 @@ var SettlementStore = (_class = function () {
|
|
|
1088
1085
|
return _context3.abrupt('return', _promise2.default.resolve(true));
|
|
1089
1086
|
|
|
1090
1087
|
case 3:
|
|
1091
|
-
|
|
1092
|
-
_context3.prev = 4;
|
|
1088
|
+
_context3.prev = 3;
|
|
1093
1089
|
|
|
1094
1090
|
if (!(this.type == 1)) {
|
|
1095
|
-
_context3.next =
|
|
1091
|
+
_context3.next = 9;
|
|
1096
1092
|
break;
|
|
1097
1093
|
}
|
|
1098
1094
|
|
|
1099
|
-
_context3.next =
|
|
1095
|
+
_context3.next = 7;
|
|
1100
1096
|
return this.saveMember();
|
|
1101
1097
|
|
|
1102
|
-
case
|
|
1098
|
+
case 7:
|
|
1103
1099
|
_context3.next = 18;
|
|
1104
1100
|
break;
|
|
1105
1101
|
|
|
1106
|
-
case
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
break;
|
|
1110
|
-
}
|
|
1102
|
+
case 9:
|
|
1103
|
+
_context3.next = 11;
|
|
1104
|
+
return _mutantsMicrofx.stores.offlineSys.generatorCode(this.dto);
|
|
1111
1105
|
|
|
1106
|
+
case 11:
|
|
1112
1107
|
_context3.next = 13;
|
|
1113
|
-
return
|
|
1108
|
+
return this.save();
|
|
1114
1109
|
|
|
1115
1110
|
case 13:
|
|
1116
|
-
|
|
1117
|
-
return this.save();
|
|
1111
|
+
ret = _context3.sent;
|
|
1118
1112
|
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
_context3.next = 18;
|
|
1113
|
+
if (!(ret === false)) {
|
|
1114
|
+
_context3.next = 16;
|
|
1122
1115
|
break;
|
|
1123
1116
|
}
|
|
1124
1117
|
|
|
1118
|
+
return _context3.abrupt('return', _promise2.default.resolve(false));
|
|
1119
|
+
|
|
1120
|
+
case 16:
|
|
1125
1121
|
_context3.next = 18;
|
|
1126
1122
|
return _mutantsMicrofx.stores.offlineSys.retailSequenceUpload();
|
|
1127
1123
|
|
|
@@ -1130,17 +1126,19 @@ var SettlementStore = (_class = function () {
|
|
|
1130
1126
|
|
|
1131
1127
|
case 21:
|
|
1132
1128
|
_context3.prev = 21;
|
|
1133
|
-
_context3.t0 = _context3['catch'](
|
|
1129
|
+
_context3.t0 = _context3['catch'](3);
|
|
1134
1130
|
|
|
1135
1131
|
console.error('settlementStore.commit失败,错误信息:' + _context3.t0);
|
|
1132
|
+
//其他支付失败时,处理二开支付情况。
|
|
1133
|
+
this.thirdPayRefund();
|
|
1136
1134
|
return _context3.abrupt('return', _promise2.default.resolve(_context3.t0));
|
|
1137
1135
|
|
|
1138
|
-
case
|
|
1136
|
+
case 26:
|
|
1139
1137
|
case 'end':
|
|
1140
1138
|
return _context3.stop();
|
|
1141
1139
|
}
|
|
1142
1140
|
}
|
|
1143
|
-
}, _callee3, this, [[
|
|
1141
|
+
}, _callee3, this, [[3, 21]]);
|
|
1144
1142
|
}));
|
|
1145
1143
|
|
|
1146
1144
|
function commit(_x3) {
|
|
@@ -1202,16 +1200,16 @@ var SettlementStore = (_class = function () {
|
|
|
1202
1200
|
}, {
|
|
1203
1201
|
key: 'save',
|
|
1204
1202
|
value: function () {
|
|
1205
|
-
var
|
|
1203
|
+
var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
|
|
1206
1204
|
var _this11 = this;
|
|
1207
1205
|
|
|
1208
|
-
var _enumController$getEn15, PayStyle,
|
|
1206
|
+
var _enumController$getEn15, PayStyle, TradeType, IPMSG, RetailTypeEnum, dtoParams, payList, amount, tradeType, ret, _ref11, type, data, msg;
|
|
1209
1207
|
|
|
1210
1208
|
return _regenerator2.default.wrap(function _callee4$(_context4) {
|
|
1211
1209
|
while (1) {
|
|
1212
1210
|
switch (_context4.prev = _context4.next) {
|
|
1213
1211
|
case 0:
|
|
1214
|
-
_enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn15.PayStyle;
|
|
1212
|
+
_enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn15.PayStyle, TradeType = _enumController$getEn15.TradeType;
|
|
1215
1213
|
|
|
1216
1214
|
(0, _mobx.runInAction)(function () {
|
|
1217
1215
|
_this11.dto.RetailPaymentDetails = [];
|
|
@@ -1259,7 +1257,8 @@ var SettlementStore = (_class = function () {
|
|
|
1259
1257
|
OverchargesAmount: mode.overchargesAmount,
|
|
1260
1258
|
DynamicPropertyKeys: [],
|
|
1261
1259
|
DynamicPropertyValues: [],
|
|
1262
|
-
DataSource: { Id: _this11.dataSource }
|
|
1260
|
+
DataSource: { Id: _this11.dataSource },
|
|
1261
|
+
ThirdPaymentInfo: themode.thridPayment || null
|
|
1263
1262
|
});
|
|
1264
1263
|
if (mode.paymentType == PayStyle.djq) {
|
|
1265
1264
|
(0, _each3.default)(_this11.paymode.checkList && _this11.paymode.checkList.length ? _this11.paymode.checkList : mode.djqs, function (djq) {
|
|
@@ -1279,47 +1278,22 @@ var SettlementStore = (_class = function () {
|
|
|
1279
1278
|
}
|
|
1280
1279
|
}
|
|
1281
1280
|
});
|
|
1282
|
-
|
|
1283
|
-
var _ref12 = _mutantsUtil.platform || {},
|
|
1284
|
-
isNewRetailBCPos = _ref12.isNewRetailBCPos;
|
|
1285
|
-
|
|
1286
1281
|
if (_this11.dto.RetailStorageDetails.length > 0) {
|
|
1287
1282
|
var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
|
|
1288
|
-
|
|
1289
|
-
_this11.
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
});
|
|
1300
|
-
} else {
|
|
1301
|
-
_this11.dto.RetailPaymentDetails.push({
|
|
1302
|
-
Code: _this11.paymode.counter,
|
|
1303
|
-
OrigAmount: czkSum,
|
|
1304
|
-
Amount: czkSum,
|
|
1305
|
-
IdsettleStyle: themode.idSettleStyle,
|
|
1306
|
-
IdbankAccount: themode.idBankAccount,
|
|
1307
|
-
DynamicPropertyKeys: [],
|
|
1308
|
-
DynamicPropertyValues: [],
|
|
1309
|
-
DataSource: { Id: _this11.dataSource }
|
|
1310
|
-
});
|
|
1311
|
-
}
|
|
1283
|
+
_this11.dto.RetailPaymentDetails.push({
|
|
1284
|
+
Code: _this11.paymode.counter,
|
|
1285
|
+
OrigAmount: czkSum,
|
|
1286
|
+
Amount: czkSum,
|
|
1287
|
+
IdsettleStyle: themode.idSettleStyle,
|
|
1288
|
+
IdbankAccount: themode.idBankAccount,
|
|
1289
|
+
DynamicPropertyKeys: [],
|
|
1290
|
+
DynamicPropertyValues: [],
|
|
1291
|
+
DataSource: { Id: _this11.dataSource },
|
|
1292
|
+
RetailStorageDetails: _this11.dto.RetailStorageDetails
|
|
1293
|
+
});
|
|
1312
1294
|
}
|
|
1313
1295
|
});
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
|
|
1317
|
-
|
|
1318
|
-
if (!isNewRetailBCPos) {
|
|
1319
|
-
_context4.next = 20;
|
|
1320
|
-
break;
|
|
1321
|
-
}
|
|
1322
|
-
|
|
1296
|
+
console.log('\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
|
|
1323
1297
|
// cc结算调用
|
|
1324
1298
|
IPMSG = {};
|
|
1325
1299
|
|
|
@@ -1330,49 +1304,79 @@ var SettlementStore = (_class = function () {
|
|
|
1330
1304
|
_context4.t1 = this.dto.IdbusiType == 37;
|
|
1331
1305
|
|
|
1332
1306
|
if (!_context4.t1) {
|
|
1333
|
-
_context4.next =
|
|
1307
|
+
_context4.next = 11;
|
|
1334
1308
|
break;
|
|
1335
1309
|
}
|
|
1336
1310
|
|
|
1337
|
-
_context4.next =
|
|
1311
|
+
_context4.next = 10;
|
|
1338
1312
|
return this.checkIntegralExchangeReturn(this.dto.RetailDetails[0].ReturnSourceId);
|
|
1339
1313
|
|
|
1340
|
-
case
|
|
1314
|
+
case 10:
|
|
1341
1315
|
_context4.t1 = _context4.sent;
|
|
1342
1316
|
|
|
1343
|
-
case
|
|
1317
|
+
case 11:
|
|
1344
1318
|
_context4.t0 = _context4.t1;
|
|
1345
1319
|
|
|
1346
1320
|
if (_context4.t0) {
|
|
1347
|
-
_context4.next =
|
|
1321
|
+
_context4.next = 14;
|
|
1348
1322
|
break;
|
|
1349
1323
|
}
|
|
1350
1324
|
|
|
1351
1325
|
_context4.t0 = this.dto.IdbusiType != 37;
|
|
1352
1326
|
|
|
1353
|
-
case
|
|
1327
|
+
case 14:
|
|
1354
1328
|
if (!_context4.t0) {
|
|
1355
|
-
_context4.next =
|
|
1329
|
+
_context4.next = 33;
|
|
1356
1330
|
break;
|
|
1357
1331
|
}
|
|
1358
1332
|
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
_this11.paymode.checkList = [];
|
|
1362
|
-
_this11.billID = resp.ID;
|
|
1363
|
-
}));
|
|
1333
|
+
dtoParams = (0, _extends3.default)({}, this.dto.cut(), { RetailOms: { RetailTypeEnum: RetailTypeEnum } });
|
|
1334
|
+
//处理存在二开支付情况
|
|
1364
1335
|
|
|
1365
|
-
|
|
1366
|
-
|
|
1336
|
+
payList = dtoParams.RetailPaymentDetails.filter(function (v) {
|
|
1337
|
+
return v.ThirdPaymentInfo;
|
|
1338
|
+
});
|
|
1339
|
+
|
|
1340
|
+
if (!(payList && payList.length > 0)) {
|
|
1341
|
+
_context4.next = 30;
|
|
1342
|
+
break;
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
amount = payList[0].Amount;
|
|
1346
|
+
tradeType = amount > 0 ? TradeType.PAY : TradeType.REFUND;
|
|
1347
|
+
_context4.next = 22;
|
|
1348
|
+
return this.thirdPay(tradeType, dtoParams);
|
|
1349
|
+
|
|
1350
|
+
case 22:
|
|
1351
|
+
ret = _context4.sent;
|
|
1352
|
+
_ref11 = ret || {}, type = _ref11.type, data = _ref11.data, msg = _ref11.msg;
|
|
1353
|
+
|
|
1354
|
+
if (!(type === true)) {
|
|
1355
|
+
_context4.next = 28;
|
|
1356
|
+
break;
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
dtoParams = data;
|
|
1360
|
+
_context4.next = 30;
|
|
1367
1361
|
break;
|
|
1368
1362
|
|
|
1369
|
-
case
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1363
|
+
case 28:
|
|
1364
|
+
_message2.default.warn('\u5237\u5361\u652F\u4ED8\u5931\u8D25:' + msg);
|
|
1365
|
+
return _context4.abrupt('return', false);
|
|
1366
|
+
|
|
1367
|
+
case 30:
|
|
1368
|
+
this.dtoParams = dtoParams;
|
|
1369
|
+
console.log('结算信息:', dtoParams);
|
|
1370
|
+
return _context4.abrupt('return', (0, _tplusApi.ccApi)({ dto: dtoParams, cip: IPMSG.query || "" }, '/retail/RetailPos/settle', false, false, { method: 'post', timeout_skip: true }).then(function (resp) {
|
|
1371
|
+
var _ref12 = resp || {},
|
|
1372
|
+
ID = _ref12.ID;
|
|
1373
|
+
|
|
1374
|
+
_this11.setDtoID(ID);
|
|
1375
|
+
_this11.billID = ID;
|
|
1376
|
+
_this11.paymode.checkList = [];
|
|
1373
1377
|
}));
|
|
1374
1378
|
|
|
1375
|
-
case
|
|
1379
|
+
case 33:
|
|
1376
1380
|
case 'end':
|
|
1377
1381
|
return _context4.stop();
|
|
1378
1382
|
}
|
|
@@ -1381,11 +1385,149 @@ var SettlementStore = (_class = function () {
|
|
|
1381
1385
|
}));
|
|
1382
1386
|
|
|
1383
1387
|
function save() {
|
|
1384
|
-
return
|
|
1388
|
+
return _ref10.apply(this, arguments);
|
|
1385
1389
|
}
|
|
1386
1390
|
|
|
1387
1391
|
return save;
|
|
1388
1392
|
}()
|
|
1393
|
+
//二开支付
|
|
1394
|
+
|
|
1395
|
+
}, {
|
|
1396
|
+
key: 'thirdPay',
|
|
1397
|
+
value: function () {
|
|
1398
|
+
var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(status, dto) {
|
|
1399
|
+
var params, ret, _ref14, Code, Message, Result, _ref15, ThirdPaymentReturnInfo;
|
|
1400
|
+
|
|
1401
|
+
return _regenerator2.default.wrap(function _callee5$(_context5) {
|
|
1402
|
+
while (1) {
|
|
1403
|
+
switch (_context5.prev = _context5.next) {
|
|
1404
|
+
case 0:
|
|
1405
|
+
params = { TradeType: status, dto: dto };
|
|
1406
|
+
|
|
1407
|
+
console.log('刷卡信息:', (0, _stringify2.default)(params));
|
|
1408
|
+
_context5.next = 4;
|
|
1409
|
+
return new _promise2.default(function (resolve, reject) {
|
|
1410
|
+
_mutantsMicrofx.nativeMs.setIpcRendererMethod('ThirdPayment', (0, _extends3.default)({}, params), function (res) {
|
|
1411
|
+
return resolve(res);
|
|
1412
|
+
});
|
|
1413
|
+
});
|
|
1414
|
+
|
|
1415
|
+
case 4:
|
|
1416
|
+
ret = _context5.sent;
|
|
1417
|
+
|
|
1418
|
+
console.log('刷卡返回信息:', ret);
|
|
1419
|
+
ret = JSON.parse(ret);
|
|
1420
|
+
_ref14 = ret || {}, Code = _ref14.Code, Message = _ref14.Message, Result = _ref14.Result;
|
|
1421
|
+
|
|
1422
|
+
if (!(Code > 0)) {
|
|
1423
|
+
_context5.next = 12;
|
|
1424
|
+
break;
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
return _context5.abrupt('return', { type: false, data: null, msg: Message });
|
|
1428
|
+
|
|
1429
|
+
case 12:
|
|
1430
|
+
if (!(status == '00')) {
|
|
1431
|
+
_context5.next = 18;
|
|
1432
|
+
break;
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
_ref15 = Result || {}, ThirdPaymentReturnInfo = _ref15.ThirdPaymentReturnInfo;
|
|
1436
|
+
|
|
1437
|
+
dto.RetailPaymentDetails.forEach(function (v) {
|
|
1438
|
+
if (v.ThirdPaymentInfo != null) {
|
|
1439
|
+
v.ThirdPaymentReturnInfo = ThirdPaymentReturnInfo;
|
|
1440
|
+
}
|
|
1441
|
+
});
|
|
1442
|
+
return _context5.abrupt('return', { type: true, data: dto, msg: Message });
|
|
1443
|
+
|
|
1444
|
+
case 18:
|
|
1445
|
+
if (!(status == '02')) {
|
|
1446
|
+
_context5.next = 20;
|
|
1447
|
+
break;
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
return _context5.abrupt('return', { type: true, data: dto, msg: Message });
|
|
1451
|
+
|
|
1452
|
+
case 20:
|
|
1453
|
+
case 'end':
|
|
1454
|
+
return _context5.stop();
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
}, _callee5, this);
|
|
1458
|
+
}));
|
|
1459
|
+
|
|
1460
|
+
function thirdPay(_x4, _x5) {
|
|
1461
|
+
return _ref13.apply(this, arguments);
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
return thirdPay;
|
|
1465
|
+
}()
|
|
1466
|
+
|
|
1467
|
+
//二开支付强制退款情况
|
|
1468
|
+
|
|
1469
|
+
}, {
|
|
1470
|
+
key: 'thirdPayRefund',
|
|
1471
|
+
value: function () {
|
|
1472
|
+
var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7() {
|
|
1473
|
+
var _this12 = this;
|
|
1474
|
+
|
|
1475
|
+
var dto, pay, _enumController$getEn16, TradeType;
|
|
1476
|
+
|
|
1477
|
+
return _regenerator2.default.wrap(function _callee7$(_context7) {
|
|
1478
|
+
while (1) {
|
|
1479
|
+
switch (_context7.prev = _context7.next) {
|
|
1480
|
+
case 0:
|
|
1481
|
+
dto = this.dtoParams;
|
|
1482
|
+
pay = dto && dto.RetailPaymentDetails.filter(function (v) {
|
|
1483
|
+
return v.ThirdPaymentInfo;
|
|
1484
|
+
});
|
|
1485
|
+
|
|
1486
|
+
if (pay && pay.length > 0) {
|
|
1487
|
+
setTimeout(function () {
|
|
1488
|
+
_message2.default.warn("支付出现异常,将发起刷卡退款。", { duration: 4.5 });
|
|
1489
|
+
}, 1000);
|
|
1490
|
+
_enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(), TradeType = _enumController$getEn16.TradeType;
|
|
1491
|
+
|
|
1492
|
+
setTimeout((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6() {
|
|
1493
|
+
var ret, _ref18, msg;
|
|
1494
|
+
|
|
1495
|
+
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
|
1496
|
+
while (1) {
|
|
1497
|
+
switch (_context6.prev = _context6.next) {
|
|
1498
|
+
case 0:
|
|
1499
|
+
_context6.next = 2;
|
|
1500
|
+
return _this12.thirdPay(TradeType.REFUND, dto);
|
|
1501
|
+
|
|
1502
|
+
case 2:
|
|
1503
|
+
ret = _context6.sent;
|
|
1504
|
+
_ref18 = ret || {}, msg = _ref18.msg;
|
|
1505
|
+
|
|
1506
|
+
console.log('\u5237\u5361\u652F\u4ED8\u9000\u6B3E:' + msg);
|
|
1507
|
+
|
|
1508
|
+
case 5:
|
|
1509
|
+
case 'end':
|
|
1510
|
+
return _context6.stop();
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
}, _callee6, _this12);
|
|
1514
|
+
})), 4500);
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
case 3:
|
|
1518
|
+
case 'end':
|
|
1519
|
+
return _context7.stop();
|
|
1520
|
+
}
|
|
1521
|
+
}
|
|
1522
|
+
}, _callee7, this);
|
|
1523
|
+
}));
|
|
1524
|
+
|
|
1525
|
+
function thirdPayRefund() {
|
|
1526
|
+
return _ref16.apply(this, arguments);
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
return thirdPayRefund;
|
|
1530
|
+
}()
|
|
1389
1531
|
}, {
|
|
1390
1532
|
key: 'setDtoID',
|
|
1391
1533
|
value: function setDtoID(id) {
|
|
@@ -1394,35 +1536,35 @@ var SettlementStore = (_class = function () {
|
|
|
1394
1536
|
}, {
|
|
1395
1537
|
key: 'querySettleResult',
|
|
1396
1538
|
value: function () {
|
|
1397
|
-
var
|
|
1398
|
-
return _regenerator2.default.wrap(function
|
|
1539
|
+
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
|
|
1540
|
+
return _regenerator2.default.wrap(function _callee8$(_context8) {
|
|
1399
1541
|
while (1) {
|
|
1400
|
-
switch (
|
|
1542
|
+
switch (_context8.prev = _context8.next) {
|
|
1401
1543
|
case 0:
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1544
|
+
_context8.prev = 0;
|
|
1545
|
+
_context8.t0 = _promise2.default;
|
|
1546
|
+
_context8.next = 4;
|
|
1405
1547
|
return (0, _tplusApi.tApi)({ RetailCode: this.dto.Code }, 'chanjet.RE.newRetail.QuerySettleResult', false, false, { timeout_skip: true });
|
|
1406
1548
|
|
|
1407
1549
|
case 4:
|
|
1408
|
-
|
|
1409
|
-
return
|
|
1550
|
+
_context8.t1 = _context8.sent;
|
|
1551
|
+
return _context8.abrupt('return', _context8.t0.resolve.call(_context8.t0, _context8.t1));
|
|
1410
1552
|
|
|
1411
1553
|
case 8:
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
return
|
|
1554
|
+
_context8.prev = 8;
|
|
1555
|
+
_context8.t2 = _context8['catch'](0);
|
|
1556
|
+
return _context8.abrupt('return', _promise2.default.resolve({ Flag: "1" }));
|
|
1415
1557
|
|
|
1416
1558
|
case 11:
|
|
1417
1559
|
case 'end':
|
|
1418
|
-
return
|
|
1560
|
+
return _context8.stop();
|
|
1419
1561
|
}
|
|
1420
1562
|
}
|
|
1421
|
-
},
|
|
1563
|
+
}, _callee8, this, [[0, 8]]);
|
|
1422
1564
|
}));
|
|
1423
1565
|
|
|
1424
1566
|
function querySettleResult() {
|
|
1425
|
-
return
|
|
1567
|
+
return _ref19.apply(this, arguments);
|
|
1426
1568
|
}
|
|
1427
1569
|
|
|
1428
1570
|
return querySettleResult;
|
|
@@ -1448,18 +1590,18 @@ var SettlementStore = (_class = function () {
|
|
|
1448
1590
|
}, {
|
|
1449
1591
|
key: 'validePwd',
|
|
1450
1592
|
value: function () {
|
|
1451
|
-
var
|
|
1452
|
-
var
|
|
1593
|
+
var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(value) {
|
|
1594
|
+
var _ref21, isNewRetailBCPos, cook1, cook2, message, memberStorageId, _paymode$currentMode, cardTypeEnum, memberId, meStorageCardId, cardStatusEnum, result, count, _result;
|
|
1453
1595
|
|
|
1454
|
-
return _regenerator2.default.wrap(function
|
|
1596
|
+
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
|
1455
1597
|
while (1) {
|
|
1456
|
-
switch (
|
|
1598
|
+
switch (_context9.prev = _context9.next) {
|
|
1457
1599
|
case 0:
|
|
1458
|
-
|
|
1459
|
-
|
|
1600
|
+
_ref21 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref21.isNewRetailBCPos;
|
|
1601
|
+
_context9.prev = 1;
|
|
1460
1602
|
|
|
1461
1603
|
if (!isNewRetailBCPos) {
|
|
1462
|
-
|
|
1604
|
+
_context9.next = 33;
|
|
1463
1605
|
break;
|
|
1464
1606
|
}
|
|
1465
1607
|
|
|
@@ -1469,60 +1611,60 @@ var SettlementStore = (_class = function () {
|
|
|
1469
1611
|
memberStorageId = this.paymode.currentMode.meStorageCardId;
|
|
1470
1612
|
|
|
1471
1613
|
if (!cook2) {
|
|
1472
|
-
|
|
1614
|
+
_context9.next = 12;
|
|
1473
1615
|
break;
|
|
1474
1616
|
}
|
|
1475
1617
|
|
|
1476
1618
|
if (!cook2.hasOwnProperty(memberStorageId + "")) {
|
|
1477
|
-
|
|
1619
|
+
_context9.next = 12;
|
|
1478
1620
|
break;
|
|
1479
1621
|
}
|
|
1480
1622
|
|
|
1481
1623
|
if (!(cook2[memberStorageId] > 3)) {
|
|
1482
|
-
|
|
1624
|
+
_context9.next = 12;
|
|
1483
1625
|
break;
|
|
1484
1626
|
}
|
|
1485
1627
|
|
|
1486
1628
|
message = '今日密码错误已达上限,不可使用储值消费,请明日再试,如忘记请重置密码或修改密码。';
|
|
1487
|
-
return
|
|
1629
|
+
return _context9.abrupt('return', _promise2.default.resolve(message));
|
|
1488
1630
|
|
|
1489
1631
|
case 12:
|
|
1490
1632
|
_paymode$currentMode = this.paymode.currentMode, cardTypeEnum = _paymode$currentMode.cardTypeEnum, memberId = _paymode$currentMode.memberId, meStorageCardId = _paymode$currentMode.meStorageCardId, cardStatusEnum = _paymode$currentMode.cardStatusEnum;
|
|
1491
1633
|
result = null;
|
|
1492
1634
|
|
|
1493
1635
|
if (!(cardTypeEnum === 'BALANCE_CARD')) {
|
|
1494
|
-
|
|
1636
|
+
_context9.next = 20;
|
|
1495
1637
|
break;
|
|
1496
1638
|
}
|
|
1497
1639
|
|
|
1498
|
-
|
|
1640
|
+
_context9.next = 17;
|
|
1499
1641
|
return (0, _tplusApi.ccApi)({ md5Password: _tplusApi.User.pwdEncrypt(value.pwd), cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + memberId, false, false);
|
|
1500
1642
|
|
|
1501
1643
|
case 17:
|
|
1502
|
-
result =
|
|
1503
|
-
|
|
1644
|
+
result = _context9.sent;
|
|
1645
|
+
_context9.next = 29;
|
|
1504
1646
|
break;
|
|
1505
1647
|
|
|
1506
1648
|
case 20:
|
|
1507
1649
|
if (!(cardStatusEnum === 'BINDING' && this.member && this.member.ID === memberId)) {
|
|
1508
|
-
|
|
1650
|
+
_context9.next = 26;
|
|
1509
1651
|
break;
|
|
1510
1652
|
}
|
|
1511
1653
|
|
|
1512
|
-
|
|
1654
|
+
_context9.next = 23;
|
|
1513
1655
|
return (0, _tplusApi.ccApi)({ md5Password: _tplusApi.User.pwdEncrypt(value.pwd), password: value.pwd, cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + meStorageCardId, false, false);
|
|
1514
1656
|
|
|
1515
1657
|
case 23:
|
|
1516
|
-
result =
|
|
1517
|
-
|
|
1658
|
+
result = _context9.sent;
|
|
1659
|
+
_context9.next = 29;
|
|
1518
1660
|
break;
|
|
1519
1661
|
|
|
1520
1662
|
case 26:
|
|
1521
|
-
|
|
1663
|
+
_context9.next = 28;
|
|
1522
1664
|
return (0, _tplusApi.ccApi)({ password: value.pwd, cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + meStorageCardId, false, false);
|
|
1523
1665
|
|
|
1524
1666
|
case 28:
|
|
1525
|
-
result =
|
|
1667
|
+
result = _context9.sent;
|
|
1526
1668
|
|
|
1527
1669
|
case 29:
|
|
1528
1670
|
if (!result.data) {
|
|
@@ -1541,38 +1683,38 @@ var SettlementStore = (_class = function () {
|
|
|
1541
1683
|
this.setCookie('errorPwd', '', -1);
|
|
1542
1684
|
this.setCookie('errorPwd', (0, _stringify2.default)(cook2));
|
|
1543
1685
|
}
|
|
1544
|
-
return
|
|
1686
|
+
return _context9.abrupt('return', _promise2.default.resolve(result.data ? "" : message));
|
|
1545
1687
|
|
|
1546
1688
|
case 33:
|
|
1547
|
-
|
|
1689
|
+
_context9.next = 35;
|
|
1548
1690
|
return (0, _tplusApi.tApi)({ "CheckoutParams": {
|
|
1549
1691
|
"Idmember": value.id,
|
|
1550
1692
|
"Password": value.pwd
|
|
1551
1693
|
} }, 'AA.DR.newRetailMember.CheckoutMemberPassword', false, false);
|
|
1552
1694
|
|
|
1553
1695
|
case 35:
|
|
1554
|
-
_result =
|
|
1555
|
-
return
|
|
1696
|
+
_result = _context9.sent;
|
|
1697
|
+
return _context9.abrupt('return', _promise2.default.resolve(_result.Success ? "" : _result.Message));
|
|
1556
1698
|
|
|
1557
1699
|
case 37:
|
|
1558
|
-
|
|
1700
|
+
_context9.next = 42;
|
|
1559
1701
|
break;
|
|
1560
1702
|
|
|
1561
1703
|
case 39:
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
return
|
|
1704
|
+
_context9.prev = 39;
|
|
1705
|
+
_context9.t0 = _context9['catch'](1);
|
|
1706
|
+
return _context9.abrupt('return', "failed");
|
|
1565
1707
|
|
|
1566
1708
|
case 42:
|
|
1567
1709
|
case 'end':
|
|
1568
|
-
return
|
|
1710
|
+
return _context9.stop();
|
|
1569
1711
|
}
|
|
1570
1712
|
}
|
|
1571
|
-
},
|
|
1713
|
+
}, _callee9, this, [[1, 39]]);
|
|
1572
1714
|
}));
|
|
1573
1715
|
|
|
1574
|
-
function validePwd(
|
|
1575
|
-
return
|
|
1716
|
+
function validePwd(_x6) {
|
|
1717
|
+
return _ref20.apply(this, arguments);
|
|
1576
1718
|
}
|
|
1577
1719
|
|
|
1578
1720
|
return validePwd;
|
|
@@ -1582,7 +1724,7 @@ var SettlementStore = (_class = function () {
|
|
|
1582
1724
|
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'queryPwd', [_mobx.action], {
|
|
1583
1725
|
enumerable: true,
|
|
1584
1726
|
initializer: function initializer() {
|
|
1585
|
-
var
|
|
1727
|
+
var _this13 = this;
|
|
1586
1728
|
|
|
1587
1729
|
return function (newPass, newPassConfirm) {
|
|
1588
1730
|
if (!newPass || !newPassConfirm) {
|
|
@@ -1594,7 +1736,7 @@ var SettlementStore = (_class = function () {
|
|
|
1594
1736
|
var idstore = (0, _tplusPoslogin.PosInitData)('storeID');
|
|
1595
1737
|
return (0, _tplusApi.ccApi)({
|
|
1596
1738
|
Idstore: idstore,
|
|
1597
|
-
meMemberId:
|
|
1739
|
+
meMemberId: _this13.paymode.currentMode.memberId,
|
|
1598
1740
|
oldPassword: null,
|
|
1599
1741
|
newPassword: _tplusApi.User.pwdEncrypt(newPassConfirm),
|
|
1600
1742
|
dataSource: "POS"
|
|
@@ -1608,131 +1750,131 @@ var SettlementStore = (_class = function () {
|
|
|
1608
1750
|
}), _applyDecoratedDescriptor(_class.prototype, 'initByOriginReturn', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'initByOriginReturn'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'quickSettle', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'quickSettle'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeFocusAndAddPay', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeFocusAndAddPay'), _class.prototype), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, 'updateMemberInfo', [_mobx.action], {
|
|
1609
1751
|
enumerable: true,
|
|
1610
1752
|
initializer: function initializer() {
|
|
1611
|
-
var
|
|
1753
|
+
var _this14 = this;
|
|
1612
1754
|
|
|
1613
1755
|
return function () {
|
|
1614
|
-
var
|
|
1756
|
+
var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(_this) {
|
|
1615
1757
|
var _getLoginInfo, IdStore, StoreCode, resp;
|
|
1616
1758
|
|
|
1617
|
-
return _regenerator2.default.wrap(function
|
|
1759
|
+
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
|
1618
1760
|
while (1) {
|
|
1619
|
-
switch (
|
|
1761
|
+
switch (_context10.prev = _context10.next) {
|
|
1620
1762
|
case 0:
|
|
1621
|
-
_getLoginInfo =
|
|
1622
|
-
|
|
1623
|
-
return (0, _tplusApi.tApi)({ Idmember:
|
|
1763
|
+
_getLoginInfo = _this14.getLoginInfo(), IdStore = _getLoginInfo.IdStore, StoreCode = _getLoginInfo.StoreCode;
|
|
1764
|
+
_context10.next = 3;
|
|
1765
|
+
return (0, _tplusApi.tApi)({ Idmember: _this14.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
|
|
1624
1766
|
|
|
1625
1767
|
case 3:
|
|
1626
|
-
resp =
|
|
1768
|
+
resp = _context10.sent;
|
|
1627
1769
|
|
|
1628
1770
|
_this.member = resp;
|
|
1629
1771
|
_this.paymode.updateMemberStorageCardNo(resp.StorageCardNo, resp.WalletEnabled);
|
|
1630
|
-
return
|
|
1772
|
+
return _context10.abrupt('return', _promise2.default.resolve(resp));
|
|
1631
1773
|
|
|
1632
1774
|
case 7:
|
|
1633
1775
|
case 'end':
|
|
1634
|
-
return
|
|
1776
|
+
return _context10.stop();
|
|
1635
1777
|
}
|
|
1636
1778
|
}
|
|
1637
|
-
},
|
|
1779
|
+
}, _callee10, _this14);
|
|
1638
1780
|
}));
|
|
1639
1781
|
|
|
1640
|
-
return function (
|
|
1641
|
-
return
|
|
1782
|
+
return function (_x7) {
|
|
1783
|
+
return _ref22.apply(this, arguments);
|
|
1642
1784
|
};
|
|
1643
1785
|
}();
|
|
1644
1786
|
}
|
|
1645
1787
|
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'updateCurrentMode', [_mobx.action], {
|
|
1646
1788
|
enumerable: true,
|
|
1647
1789
|
initializer: function initializer() {
|
|
1648
|
-
var
|
|
1790
|
+
var _this15 = this;
|
|
1649
1791
|
|
|
1650
1792
|
return function () {
|
|
1651
|
-
var
|
|
1793
|
+
var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(memberId) {
|
|
1652
1794
|
var result;
|
|
1653
|
-
return _regenerator2.default.wrap(function
|
|
1795
|
+
return _regenerator2.default.wrap(function _callee11$(_context11) {
|
|
1654
1796
|
while (1) {
|
|
1655
|
-
switch (
|
|
1797
|
+
switch (_context11.prev = _context11.next) {
|
|
1656
1798
|
case 0:
|
|
1657
|
-
|
|
1799
|
+
_context11.next = 2;
|
|
1658
1800
|
return (0, _tplusApi.ccApi)({}, '/marketingtool/MeStorageCard/getCardInfoByMemberId/' + memberId + '/' + true, false, false, { method: 'get' });
|
|
1659
1801
|
|
|
1660
1802
|
case 2:
|
|
1661
|
-
result =
|
|
1803
|
+
result = _context11.sent;
|
|
1662
1804
|
|
|
1663
1805
|
if (!(result && result.data.length)) {
|
|
1664
|
-
|
|
1806
|
+
_context11.next = 20;
|
|
1665
1807
|
break;
|
|
1666
1808
|
}
|
|
1667
1809
|
|
|
1668
1810
|
if (!(result.data.length === 1)) {
|
|
1669
|
-
|
|
1811
|
+
_context11.next = 9;
|
|
1670
1812
|
break;
|
|
1671
1813
|
}
|
|
1672
1814
|
|
|
1673
|
-
|
|
1674
|
-
return
|
|
1815
|
+
_this15.paymode.updateCardInfo(result.data[0]);
|
|
1816
|
+
return _context11.abrupt('return', result.data);
|
|
1675
1817
|
|
|
1676
1818
|
case 9:
|
|
1677
1819
|
if (!(result.data && result.data.length === 1)) {
|
|
1678
|
-
|
|
1820
|
+
_context11.next = 14;
|
|
1679
1821
|
break;
|
|
1680
1822
|
}
|
|
1681
1823
|
|
|
1682
|
-
|
|
1683
|
-
return
|
|
1824
|
+
_this15.paymode.updateCardInfo(result.data[0]);
|
|
1825
|
+
return _context11.abrupt('return', result.data);
|
|
1684
1826
|
|
|
1685
1827
|
case 14:
|
|
1686
1828
|
if (!(result.data && result.data.length > 1)) {
|
|
1687
|
-
|
|
1829
|
+
_context11.next = 18;
|
|
1688
1830
|
break;
|
|
1689
1831
|
}
|
|
1690
1832
|
|
|
1691
|
-
return
|
|
1833
|
+
return _context11.abrupt('return', result.data);
|
|
1692
1834
|
|
|
1693
1835
|
case 18:
|
|
1694
1836
|
_message2.default.warn('没有可用储值卡!');
|
|
1695
|
-
return
|
|
1837
|
+
return _context11.abrupt('return', false);
|
|
1696
1838
|
|
|
1697
1839
|
case 20:
|
|
1698
1840
|
case 'end':
|
|
1699
|
-
return
|
|
1841
|
+
return _context11.stop();
|
|
1700
1842
|
}
|
|
1701
1843
|
}
|
|
1702
|
-
},
|
|
1844
|
+
}, _callee11, _this15);
|
|
1703
1845
|
}));
|
|
1704
1846
|
|
|
1705
|
-
return function (
|
|
1706
|
-
return
|
|
1847
|
+
return function (_x8) {
|
|
1848
|
+
return _ref23.apply(this, arguments);
|
|
1707
1849
|
};
|
|
1708
1850
|
}();
|
|
1709
1851
|
}
|
|
1710
1852
|
}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, 'updateCardInfo', [_mobx.action], {
|
|
1711
1853
|
enumerable: true,
|
|
1712
1854
|
initializer: function initializer() {
|
|
1713
|
-
var
|
|
1855
|
+
var _this16 = this;
|
|
1714
1856
|
|
|
1715
|
-
return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
1857
|
+
return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12() {
|
|
1716
1858
|
var address, result;
|
|
1717
|
-
return _regenerator2.default.wrap(function
|
|
1859
|
+
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
|
1718
1860
|
while (1) {
|
|
1719
|
-
switch (
|
|
1861
|
+
switch (_context12.prev = _context12.next) {
|
|
1720
1862
|
case 0:
|
|
1721
|
-
address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' +
|
|
1722
|
-
|
|
1863
|
+
address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + _this16.paymode.currentMode.storageCardNo;
|
|
1864
|
+
_context12.next = 3;
|
|
1723
1865
|
return (0, _tplusApi.ccApi)({}, address, false, false, { method: 'get', timeout_skip: true });
|
|
1724
1866
|
|
|
1725
1867
|
case 3:
|
|
1726
|
-
result =
|
|
1868
|
+
result = _context12.sent;
|
|
1727
1869
|
|
|
1728
|
-
|
|
1870
|
+
_this16.paymode.updateCardInfo(result.data);
|
|
1729
1871
|
|
|
1730
1872
|
case 5:
|
|
1731
1873
|
case 'end':
|
|
1732
|
-
return
|
|
1874
|
+
return _context12.stop();
|
|
1733
1875
|
}
|
|
1734
1876
|
}
|
|
1735
|
-
},
|
|
1877
|
+
}, _callee12, _this16);
|
|
1736
1878
|
}));
|
|
1737
1879
|
}
|
|
1738
1880
|
}), _applyDecoratedDescriptor(_class.prototype, 'addDjq', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'addDjq'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeFocusOnly', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeFocusOnly'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeClickFocusOnly', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeClickFocusOnly'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeValue'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'addPayDirectly', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'addPayDirectly'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'addPay', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'addPay'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'delPay', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'delPay'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'setDtoID', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'setDtoID'), _class.prototype)), _class);
|
|
@@ -1833,7 +1975,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1833
1975
|
}, {
|
|
1834
1976
|
key: 'calcDjqCheckValue',
|
|
1835
1977
|
value: function calcDjqCheckValue(q1, dto, params) {
|
|
1836
|
-
var
|
|
1978
|
+
var _this17 = this;
|
|
1837
1979
|
|
|
1838
1980
|
var useLimitPerOrder = (0, _tplusPoslogin.PosInitData)('UseLimitPerOrder');
|
|
1839
1981
|
var qList = (0, _filter3.default)(this.currentMode.djqs, function (djq) {
|
|
@@ -1847,12 +1989,12 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1847
1989
|
this.checkList = [];
|
|
1848
1990
|
}
|
|
1849
1991
|
|
|
1850
|
-
var
|
|
1851
|
-
isNewRetailBCPos =
|
|
1992
|
+
var _ref25 = _mutantsUtil.platform || {},
|
|
1993
|
+
isNewRetailBCPos = _ref25.isNewRetailBCPos;
|
|
1852
1994
|
|
|
1853
|
-
var _enumController$
|
|
1854
|
-
PayStyle = _enumController$
|
|
1855
|
-
Differentiate = _enumController$
|
|
1995
|
+
var _enumController$getEn17 = _mutantsUtil.enumController.getEnumOj(),
|
|
1996
|
+
PayStyle = _enumController$getEn17.PayStyle,
|
|
1997
|
+
Differentiate = _enumController$getEn17.Differentiate;
|
|
1856
1998
|
|
|
1857
1999
|
if (q1) {
|
|
1858
2000
|
if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
|
|
@@ -1880,7 +2022,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1880
2022
|
if (!q1.checked) {
|
|
1881
2023
|
this.checkList.forEach(function (ele, i) {
|
|
1882
2024
|
if (ele.id === q1.id) {
|
|
1883
|
-
|
|
2025
|
+
_this17.checkList.splice(i, 1);
|
|
1884
2026
|
}
|
|
1885
2027
|
});
|
|
1886
2028
|
} else {
|
|
@@ -1952,24 +2094,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1952
2094
|
if (result && result.length != 0) {
|
|
1953
2095
|
result.forEach(function (element, index) {
|
|
1954
2096
|
var djq1 = false;
|
|
1955
|
-
|
|
2097
|
+
_this17.currentMode.djqs.forEach(function (djq) {
|
|
1956
2098
|
if (element.id === djq.id) {
|
|
1957
2099
|
djq1 = true;
|
|
1958
2100
|
}
|
|
1959
2101
|
});
|
|
1960
2102
|
|
|
1961
|
-
var
|
|
1962
|
-
couponCode =
|
|
1963
|
-
name =
|
|
1964
|
-
tieredAmountResult =
|
|
1965
|
-
fromDate =
|
|
1966
|
-
dateMount =
|
|
1967
|
-
promoMethodEnum =
|
|
1968
|
-
discountPct =
|
|
1969
|
-
nominalAmount =
|
|
1970
|
-
promoId =
|
|
1971
|
-
id =
|
|
1972
|
-
doorsill =
|
|
2103
|
+
var _ref26 = element || {},
|
|
2104
|
+
couponCode = _ref26.couponCode,
|
|
2105
|
+
name = _ref26.name,
|
|
2106
|
+
tieredAmountResult = _ref26.tieredAmountResult,
|
|
2107
|
+
fromDate = _ref26.fromDate,
|
|
2108
|
+
dateMount = _ref26.dateMount,
|
|
2109
|
+
promoMethodEnum = _ref26.promoMethodEnum,
|
|
2110
|
+
discountPct = _ref26.discountPct,
|
|
2111
|
+
nominalAmount = _ref26.nominalAmount,
|
|
2112
|
+
promoId = _ref26.promoId,
|
|
2113
|
+
id = _ref26.id,
|
|
2114
|
+
doorsill = _ref26.doorsill;
|
|
1973
2115
|
|
|
1974
2116
|
var condValue = tieredAmountResult.condValue,
|
|
1975
2117
|
promoDiscount = tieredAmountResult.promoDiscount,
|
|
@@ -1997,10 +2139,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1997
2139
|
// couponCategoryEnum: tieredAmountResult.couponCategoryEnum,
|
|
1998
2140
|
// id
|
|
1999
2141
|
// })
|
|
2000
|
-
|
|
2142
|
+
_this17.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
|
|
2001
2143
|
djq1 = false;
|
|
2002
2144
|
} else {
|
|
2003
|
-
|
|
2145
|
+
_this17.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
|
|
2004
2146
|
// this.currentMode.djqs[0].couponCategoryEnum = 'couponCategoryEnum';
|
|
2005
2147
|
// djq1.couponCategoryEnum = element.tieredAmountResult.couponCategoryEnum
|
|
2006
2148
|
}
|
|
@@ -2013,11 +2155,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2013
2155
|
}, {
|
|
2014
2156
|
key: 'calcDjqValue',
|
|
2015
2157
|
value: function calcDjqValue(q1) {
|
|
2016
|
-
var
|
|
2017
|
-
isNewRetailBCPos =
|
|
2158
|
+
var _ref27 = _mutantsUtil.platform || {},
|
|
2159
|
+
isNewRetailBCPos = _ref27.isNewRetailBCPos;
|
|
2018
2160
|
|
|
2019
|
-
var _enumController$
|
|
2020
|
-
Differentiate = _enumController$
|
|
2161
|
+
var _enumController$getEn18 = _mutantsUtil.enumController.getEnumOj(),
|
|
2162
|
+
Differentiate = _enumController$getEn18.Differentiate;
|
|
2021
2163
|
|
|
2022
2164
|
if (q1) {
|
|
2023
2165
|
if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
|
|
@@ -2079,8 +2221,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2079
2221
|
this.currentMode.errinfo = '';
|
|
2080
2222
|
var sum = this.amount;
|
|
2081
2223
|
|
|
2082
|
-
var _enumController$
|
|
2083
|
-
PayStyle = _enumController$
|
|
2224
|
+
var _enumController$getEn19 = _mutantsUtil.enumController.getEnumOj(),
|
|
2225
|
+
PayStyle = _enumController$getEn19.PayStyle;
|
|
2084
2226
|
|
|
2085
2227
|
this.thePaymodes && this.thePaymodes.forEach(function (mode) {
|
|
2086
2228
|
if (mode.paymentType === PayStyle.hyczk) {
|
|
@@ -2104,30 +2246,29 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2104
2246
|
}, {
|
|
2105
2247
|
key: 'setPaymodes',
|
|
2106
2248
|
value: function () {
|
|
2107
|
-
var
|
|
2108
|
-
var
|
|
2249
|
+
var _ref28 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(type, isIntegralExchange) {
|
|
2250
|
+
var _this18 = this;
|
|
2109
2251
|
|
|
2110
|
-
var _enumController$
|
|
2252
|
+
var _enumController$getEn20, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
|
|
2111
2253
|
|
|
2112
|
-
return _regenerator2.default.wrap(function
|
|
2254
|
+
return _regenerator2.default.wrap(function _callee13$(_context13) {
|
|
2113
2255
|
while (1) {
|
|
2114
|
-
switch (
|
|
2256
|
+
switch (_context13.prev = _context13.next) {
|
|
2115
2257
|
case 0:
|
|
2116
|
-
_enumController$
|
|
2258
|
+
_enumController$getEn20 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn20.settleStyleType, PayStyle = _enumController$getEn20.PayStyle;
|
|
2117
2259
|
memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
|
|
2118
2260
|
param = { 'settleStyleType': type == 1 ? memberStoreCode : settlementCode, isIntegralExchange: isIntegralExchange };
|
|
2119
|
-
|
|
2261
|
+
_context13.next = 5;
|
|
2120
2262
|
return (0, _tplusApi.tApi)({ param: param }, 'chanjet.RE.NewPos.GetNewStoreSettleStyles', false, false);
|
|
2121
2263
|
|
|
2122
2264
|
case 5:
|
|
2123
|
-
modes =
|
|
2265
|
+
modes = _context13.sent;
|
|
2124
2266
|
|
|
2125
2267
|
if (modes) {
|
|
2126
2268
|
(0, _mobx.runInAction)(function () {
|
|
2127
2269
|
var paymodes = [];
|
|
2128
2270
|
(0, _each3.default)(modes.SettleStyles, function (mode, index) {
|
|
2129
2271
|
//产品需求确认会员储值卡结算方式前端展示统一调整为“储值卡" tuzha by 2020-07-08
|
|
2130
|
-
|
|
2131
2272
|
if (mode.Code == PayStyle.hyczk) {
|
|
2132
2273
|
mode.Name = '储值卡';
|
|
2133
2274
|
}
|
|
@@ -2142,24 +2283,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2142
2283
|
idBankAccount: mode.IdBankAccount,
|
|
2143
2284
|
exchangeRate: mode.Currency ? mode.Currency.ExchangeRate : 1,
|
|
2144
2285
|
idCurrency: mode.Currency ? mode.Currency.ID : -1,
|
|
2145
|
-
calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88"
|
|
2286
|
+
calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88",
|
|
2287
|
+
thridPayment: mode.ThirdPaymentInfo
|
|
2146
2288
|
});
|
|
2147
2289
|
});
|
|
2148
|
-
|
|
2149
|
-
//modes.QuickSettleStyles
|
|
2290
|
+
_this18.paymodes = paymodes;
|
|
2150
2291
|
});
|
|
2151
2292
|
}
|
|
2152
2293
|
|
|
2153
2294
|
case 7:
|
|
2154
2295
|
case 'end':
|
|
2155
|
-
return
|
|
2296
|
+
return _context13.stop();
|
|
2156
2297
|
}
|
|
2157
2298
|
}
|
|
2158
|
-
},
|
|
2299
|
+
}, _callee13, this);
|
|
2159
2300
|
}));
|
|
2160
2301
|
|
|
2161
|
-
function setPaymodes(
|
|
2162
|
-
return
|
|
2302
|
+
function setPaymodes(_x9, _x10) {
|
|
2303
|
+
return _ref28.apply(this, arguments);
|
|
2163
2304
|
}
|
|
2164
2305
|
|
|
2165
2306
|
return setPaymodes;
|
|
@@ -2214,19 +2355,19 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2214
2355
|
}), _applyDecoratedDescriptor(_class3.prototype, 'clean', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'clean'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'clear', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'clear'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'calcReserved', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcReserved'), _class3.prototype), _descriptor12 = _applyDecoratedDescriptor(_class3.prototype, 'calcCheckList', [_mobx.action], {
|
|
2215
2356
|
enumerable: true,
|
|
2216
2357
|
initializer: function initializer() {
|
|
2217
|
-
var
|
|
2358
|
+
var _this19 = this;
|
|
2218
2359
|
|
|
2219
2360
|
return function () {
|
|
2220
|
-
|
|
2361
|
+
_this19.checkList = [];
|
|
2221
2362
|
};
|
|
2222
2363
|
}
|
|
2223
2364
|
}), _applyDecoratedDescriptor(_class3.prototype, 'updateMemberStorageCardNo', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'updateMemberStorageCardNo'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'updateCardInfo', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'updateCardInfo'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqCheckValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqCheckValue'), _class3.prototype), _descriptor13 = _applyDecoratedDescriptor(_class3.prototype, 'setCouponNum', [_mobx.action], {
|
|
2224
2365
|
enumerable: true,
|
|
2225
2366
|
initializer: function initializer() {
|
|
2226
|
-
var
|
|
2367
|
+
var _this20 = this;
|
|
2227
2368
|
|
|
2228
2369
|
return function (id, couponNum, promoMethodEnum, nominalAmount, promoDiscount) {
|
|
2229
|
-
|
|
2370
|
+
_this20.currentMode.djqs.forEach(function (ele) {
|
|
2230
2371
|
if (ele.id === id) {
|
|
2231
2372
|
promoMethodEnum == "CASH_COUPON" ? ele.amount = nominalAmount : ele.amount = promoDiscount;
|
|
2232
2373
|
ele.couponCategoryEnum = couponNum;
|
|
@@ -2239,7 +2380,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2239
2380
|
}), _descriptor14 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
|
|
2240
2381
|
enumerable: true,
|
|
2241
2382
|
initializer: function initializer() {
|
|
2242
|
-
var
|
|
2383
|
+
var _this21 = this;
|
|
2243
2384
|
|
|
2244
2385
|
return function (promoCouponCode, name, IsEnable, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id) {
|
|
2245
2386
|
var djq = {
|
|
@@ -2261,13 +2402,13 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2261
2402
|
couponCategoryEnum: couponCategoryEnum,
|
|
2262
2403
|
id: id
|
|
2263
2404
|
};
|
|
2264
|
-
|
|
2405
|
+
_this21.currentMode.djqs.push(djq);
|
|
2265
2406
|
};
|
|
2266
2407
|
}
|
|
2267
2408
|
}), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqValue'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'reCalculationDjqs', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'reCalculationDjqs'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'clearDjqs', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'clearDjqs'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'setCurrentModeValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'setCurrentModeValue'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'calcMemberBalance', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcMemberBalance'), _class3.prototype)), _class3);
|
|
2268
2409
|
var Member = exports.Member = (_class5 = function () {
|
|
2269
2410
|
function Member(m) {
|
|
2270
|
-
var
|
|
2411
|
+
var _this22 = this;
|
|
2271
2412
|
|
|
2272
2413
|
(0, _classCallCheck3.default)(this, Member);
|
|
2273
2414
|
|
|
@@ -2290,15 +2431,15 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2290
2431
|
return key == 'canusedbalancestorage';
|
|
2291
2432
|
});
|
|
2292
2433
|
|
|
2293
|
-
var
|
|
2294
|
-
isNewRetailBCPos =
|
|
2434
|
+
var _ref29 = _mutantsUtil.platform || {},
|
|
2435
|
+
isNewRetailBCPos = _ref29.isNewRetailBCPos;
|
|
2295
2436
|
|
|
2296
2437
|
(0, _mobx.runInAction)(function () {
|
|
2297
|
-
|
|
2438
|
+
_this22.cardNo = m.CardCode;
|
|
2298
2439
|
if (index >= 0) {
|
|
2299
|
-
|
|
2440
|
+
_this22.balance = parseFloat(m.DynamicPropertyValues[index]);
|
|
2300
2441
|
} else {
|
|
2301
|
-
|
|
2442
|
+
_this22.balance = _this22.rawbalance;
|
|
2302
2443
|
}
|
|
2303
2444
|
});
|
|
2304
2445
|
this.needPwd = m.MemberType ? m.MemberType.IsNeedPwd : false;
|