tplus-components-touch 3.31.6 → 3.32.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/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 +9 -8
- 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 -241
- 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 +2 -2
- 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,10 +1200,10 @@ 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, 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) {
|
|
@@ -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,150 @@ 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, 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
|
+
tradeType = _TradeType.REFUND;
|
|
1492
|
+
|
|
1493
|
+
setTimeout((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6() {
|
|
1494
|
+
var ret, _ref18, msg;
|
|
1495
|
+
|
|
1496
|
+
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
|
1497
|
+
while (1) {
|
|
1498
|
+
switch (_context6.prev = _context6.next) {
|
|
1499
|
+
case 0:
|
|
1500
|
+
_context6.next = 2;
|
|
1501
|
+
return _this12.thirdPay(tradeType, dto);
|
|
1502
|
+
|
|
1503
|
+
case 2:
|
|
1504
|
+
ret = _context6.sent;
|
|
1505
|
+
_ref18 = ret || {}, msg = _ref18.msg;
|
|
1506
|
+
|
|
1507
|
+
console.log('\u5237\u5361\u652F\u4ED8\u9000\u6B3E:' + msg);
|
|
1508
|
+
|
|
1509
|
+
case 5:
|
|
1510
|
+
case 'end':
|
|
1511
|
+
return _context6.stop();
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
}, _callee6, _this12);
|
|
1515
|
+
})), 4500);
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
case 3:
|
|
1519
|
+
case 'end':
|
|
1520
|
+
return _context7.stop();
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
}, _callee7, this);
|
|
1524
|
+
}));
|
|
1525
|
+
|
|
1526
|
+
function thirdPayRefund() {
|
|
1527
|
+
return _ref16.apply(this, arguments);
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
return thirdPayRefund;
|
|
1531
|
+
}()
|
|
1389
1532
|
}, {
|
|
1390
1533
|
key: 'setDtoID',
|
|
1391
1534
|
value: function setDtoID(id) {
|
|
@@ -1394,35 +1537,35 @@ var SettlementStore = (_class = function () {
|
|
|
1394
1537
|
}, {
|
|
1395
1538
|
key: 'querySettleResult',
|
|
1396
1539
|
value: function () {
|
|
1397
|
-
var
|
|
1398
|
-
return _regenerator2.default.wrap(function
|
|
1540
|
+
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
|
|
1541
|
+
return _regenerator2.default.wrap(function _callee8$(_context8) {
|
|
1399
1542
|
while (1) {
|
|
1400
|
-
switch (
|
|
1543
|
+
switch (_context8.prev = _context8.next) {
|
|
1401
1544
|
case 0:
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1545
|
+
_context8.prev = 0;
|
|
1546
|
+
_context8.t0 = _promise2.default;
|
|
1547
|
+
_context8.next = 4;
|
|
1405
1548
|
return (0, _tplusApi.tApi)({ RetailCode: this.dto.Code }, 'chanjet.RE.newRetail.QuerySettleResult', false, false, { timeout_skip: true });
|
|
1406
1549
|
|
|
1407
1550
|
case 4:
|
|
1408
|
-
|
|
1409
|
-
return
|
|
1551
|
+
_context8.t1 = _context8.sent;
|
|
1552
|
+
return _context8.abrupt('return', _context8.t0.resolve.call(_context8.t0, _context8.t1));
|
|
1410
1553
|
|
|
1411
1554
|
case 8:
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
return
|
|
1555
|
+
_context8.prev = 8;
|
|
1556
|
+
_context8.t2 = _context8['catch'](0);
|
|
1557
|
+
return _context8.abrupt('return', _promise2.default.resolve({ Flag: "1" }));
|
|
1415
1558
|
|
|
1416
1559
|
case 11:
|
|
1417
1560
|
case 'end':
|
|
1418
|
-
return
|
|
1561
|
+
return _context8.stop();
|
|
1419
1562
|
}
|
|
1420
1563
|
}
|
|
1421
|
-
},
|
|
1564
|
+
}, _callee8, this, [[0, 8]]);
|
|
1422
1565
|
}));
|
|
1423
1566
|
|
|
1424
1567
|
function querySettleResult() {
|
|
1425
|
-
return
|
|
1568
|
+
return _ref19.apply(this, arguments);
|
|
1426
1569
|
}
|
|
1427
1570
|
|
|
1428
1571
|
return querySettleResult;
|
|
@@ -1448,18 +1591,18 @@ var SettlementStore = (_class = function () {
|
|
|
1448
1591
|
}, {
|
|
1449
1592
|
key: 'validePwd',
|
|
1450
1593
|
value: function () {
|
|
1451
|
-
var
|
|
1452
|
-
var
|
|
1594
|
+
var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(value) {
|
|
1595
|
+
var _ref21, isNewRetailBCPos, cook1, cook2, message, memberStorageId, _paymode$currentMode, cardTypeEnum, memberId, meStorageCardId, cardStatusEnum, result, count, _result;
|
|
1453
1596
|
|
|
1454
|
-
return _regenerator2.default.wrap(function
|
|
1597
|
+
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
|
1455
1598
|
while (1) {
|
|
1456
|
-
switch (
|
|
1599
|
+
switch (_context9.prev = _context9.next) {
|
|
1457
1600
|
case 0:
|
|
1458
|
-
|
|
1459
|
-
|
|
1601
|
+
_ref21 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref21.isNewRetailBCPos;
|
|
1602
|
+
_context9.prev = 1;
|
|
1460
1603
|
|
|
1461
1604
|
if (!isNewRetailBCPos) {
|
|
1462
|
-
|
|
1605
|
+
_context9.next = 33;
|
|
1463
1606
|
break;
|
|
1464
1607
|
}
|
|
1465
1608
|
|
|
@@ -1469,60 +1612,60 @@ var SettlementStore = (_class = function () {
|
|
|
1469
1612
|
memberStorageId = this.paymode.currentMode.meStorageCardId;
|
|
1470
1613
|
|
|
1471
1614
|
if (!cook2) {
|
|
1472
|
-
|
|
1615
|
+
_context9.next = 12;
|
|
1473
1616
|
break;
|
|
1474
1617
|
}
|
|
1475
1618
|
|
|
1476
1619
|
if (!cook2.hasOwnProperty(memberStorageId + "")) {
|
|
1477
|
-
|
|
1620
|
+
_context9.next = 12;
|
|
1478
1621
|
break;
|
|
1479
1622
|
}
|
|
1480
1623
|
|
|
1481
1624
|
if (!(cook2[memberStorageId] > 3)) {
|
|
1482
|
-
|
|
1625
|
+
_context9.next = 12;
|
|
1483
1626
|
break;
|
|
1484
1627
|
}
|
|
1485
1628
|
|
|
1486
1629
|
message = '今日密码错误已达上限,不可使用储值消费,请明日再试,如忘记请重置密码或修改密码。';
|
|
1487
|
-
return
|
|
1630
|
+
return _context9.abrupt('return', _promise2.default.resolve(message));
|
|
1488
1631
|
|
|
1489
1632
|
case 12:
|
|
1490
1633
|
_paymode$currentMode = this.paymode.currentMode, cardTypeEnum = _paymode$currentMode.cardTypeEnum, memberId = _paymode$currentMode.memberId, meStorageCardId = _paymode$currentMode.meStorageCardId, cardStatusEnum = _paymode$currentMode.cardStatusEnum;
|
|
1491
1634
|
result = null;
|
|
1492
1635
|
|
|
1493
1636
|
if (!(cardTypeEnum === 'BALANCE_CARD')) {
|
|
1494
|
-
|
|
1637
|
+
_context9.next = 20;
|
|
1495
1638
|
break;
|
|
1496
1639
|
}
|
|
1497
1640
|
|
|
1498
|
-
|
|
1641
|
+
_context9.next = 17;
|
|
1499
1642
|
return (0, _tplusApi.ccApi)({ md5Password: _tplusApi.User.pwdEncrypt(value.pwd), cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + memberId, false, false);
|
|
1500
1643
|
|
|
1501
1644
|
case 17:
|
|
1502
|
-
result =
|
|
1503
|
-
|
|
1645
|
+
result = _context9.sent;
|
|
1646
|
+
_context9.next = 29;
|
|
1504
1647
|
break;
|
|
1505
1648
|
|
|
1506
1649
|
case 20:
|
|
1507
1650
|
if (!(cardStatusEnum === 'BINDING' && this.member && this.member.ID === memberId)) {
|
|
1508
|
-
|
|
1651
|
+
_context9.next = 26;
|
|
1509
1652
|
break;
|
|
1510
1653
|
}
|
|
1511
1654
|
|
|
1512
|
-
|
|
1655
|
+
_context9.next = 23;
|
|
1513
1656
|
return (0, _tplusApi.ccApi)({ md5Password: _tplusApi.User.pwdEncrypt(value.pwd), password: value.pwd, cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + meStorageCardId, false, false);
|
|
1514
1657
|
|
|
1515
1658
|
case 23:
|
|
1516
|
-
result =
|
|
1517
|
-
|
|
1659
|
+
result = _context9.sent;
|
|
1660
|
+
_context9.next = 29;
|
|
1518
1661
|
break;
|
|
1519
1662
|
|
|
1520
1663
|
case 26:
|
|
1521
|
-
|
|
1664
|
+
_context9.next = 28;
|
|
1522
1665
|
return (0, _tplusApi.ccApi)({ password: value.pwd, cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + meStorageCardId, false, false);
|
|
1523
1666
|
|
|
1524
1667
|
case 28:
|
|
1525
|
-
result =
|
|
1668
|
+
result = _context9.sent;
|
|
1526
1669
|
|
|
1527
1670
|
case 29:
|
|
1528
1671
|
if (!result.data) {
|
|
@@ -1541,38 +1684,38 @@ var SettlementStore = (_class = function () {
|
|
|
1541
1684
|
this.setCookie('errorPwd', '', -1);
|
|
1542
1685
|
this.setCookie('errorPwd', (0, _stringify2.default)(cook2));
|
|
1543
1686
|
}
|
|
1544
|
-
return
|
|
1687
|
+
return _context9.abrupt('return', _promise2.default.resolve(result.data ? "" : message));
|
|
1545
1688
|
|
|
1546
1689
|
case 33:
|
|
1547
|
-
|
|
1690
|
+
_context9.next = 35;
|
|
1548
1691
|
return (0, _tplusApi.tApi)({ "CheckoutParams": {
|
|
1549
1692
|
"Idmember": value.id,
|
|
1550
1693
|
"Password": value.pwd
|
|
1551
1694
|
} }, 'AA.DR.newRetailMember.CheckoutMemberPassword', false, false);
|
|
1552
1695
|
|
|
1553
1696
|
case 35:
|
|
1554
|
-
_result =
|
|
1555
|
-
return
|
|
1697
|
+
_result = _context9.sent;
|
|
1698
|
+
return _context9.abrupt('return', _promise2.default.resolve(_result.Success ? "" : _result.Message));
|
|
1556
1699
|
|
|
1557
1700
|
case 37:
|
|
1558
|
-
|
|
1701
|
+
_context9.next = 42;
|
|
1559
1702
|
break;
|
|
1560
1703
|
|
|
1561
1704
|
case 39:
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
return
|
|
1705
|
+
_context9.prev = 39;
|
|
1706
|
+
_context9.t0 = _context9['catch'](1);
|
|
1707
|
+
return _context9.abrupt('return', "failed");
|
|
1565
1708
|
|
|
1566
1709
|
case 42:
|
|
1567
1710
|
case 'end':
|
|
1568
|
-
return
|
|
1711
|
+
return _context9.stop();
|
|
1569
1712
|
}
|
|
1570
1713
|
}
|
|
1571
|
-
},
|
|
1714
|
+
}, _callee9, this, [[1, 39]]);
|
|
1572
1715
|
}));
|
|
1573
1716
|
|
|
1574
|
-
function validePwd(
|
|
1575
|
-
return
|
|
1717
|
+
function validePwd(_x6) {
|
|
1718
|
+
return _ref20.apply(this, arguments);
|
|
1576
1719
|
}
|
|
1577
1720
|
|
|
1578
1721
|
return validePwd;
|
|
@@ -1582,7 +1725,7 @@ var SettlementStore = (_class = function () {
|
|
|
1582
1725
|
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'queryPwd', [_mobx.action], {
|
|
1583
1726
|
enumerable: true,
|
|
1584
1727
|
initializer: function initializer() {
|
|
1585
|
-
var
|
|
1728
|
+
var _this13 = this;
|
|
1586
1729
|
|
|
1587
1730
|
return function (newPass, newPassConfirm) {
|
|
1588
1731
|
if (!newPass || !newPassConfirm) {
|
|
@@ -1594,7 +1737,7 @@ var SettlementStore = (_class = function () {
|
|
|
1594
1737
|
var idstore = (0, _tplusPoslogin.PosInitData)('storeID');
|
|
1595
1738
|
return (0, _tplusApi.ccApi)({
|
|
1596
1739
|
Idstore: idstore,
|
|
1597
|
-
meMemberId:
|
|
1740
|
+
meMemberId: _this13.paymode.currentMode.memberId,
|
|
1598
1741
|
oldPassword: null,
|
|
1599
1742
|
newPassword: _tplusApi.User.pwdEncrypt(newPassConfirm),
|
|
1600
1743
|
dataSource: "POS"
|
|
@@ -1608,131 +1751,131 @@ var SettlementStore = (_class = function () {
|
|
|
1608
1751
|
}), _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
1752
|
enumerable: true,
|
|
1610
1753
|
initializer: function initializer() {
|
|
1611
|
-
var
|
|
1754
|
+
var _this14 = this;
|
|
1612
1755
|
|
|
1613
1756
|
return function () {
|
|
1614
|
-
var
|
|
1757
|
+
var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(_this) {
|
|
1615
1758
|
var _getLoginInfo, IdStore, StoreCode, resp;
|
|
1616
1759
|
|
|
1617
|
-
return _regenerator2.default.wrap(function
|
|
1760
|
+
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
|
1618
1761
|
while (1) {
|
|
1619
|
-
switch (
|
|
1762
|
+
switch (_context10.prev = _context10.next) {
|
|
1620
1763
|
case 0:
|
|
1621
|
-
_getLoginInfo =
|
|
1622
|
-
|
|
1623
|
-
return (0, _tplusApi.tApi)({ Idmember:
|
|
1764
|
+
_getLoginInfo = _this14.getLoginInfo(), IdStore = _getLoginInfo.IdStore, StoreCode = _getLoginInfo.StoreCode;
|
|
1765
|
+
_context10.next = 3;
|
|
1766
|
+
return (0, _tplusApi.tApi)({ Idmember: _this14.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
|
|
1624
1767
|
|
|
1625
1768
|
case 3:
|
|
1626
|
-
resp =
|
|
1769
|
+
resp = _context10.sent;
|
|
1627
1770
|
|
|
1628
1771
|
_this.member = resp;
|
|
1629
1772
|
_this.paymode.updateMemberStorageCardNo(resp.StorageCardNo, resp.WalletEnabled);
|
|
1630
|
-
return
|
|
1773
|
+
return _context10.abrupt('return', _promise2.default.resolve(resp));
|
|
1631
1774
|
|
|
1632
1775
|
case 7:
|
|
1633
1776
|
case 'end':
|
|
1634
|
-
return
|
|
1777
|
+
return _context10.stop();
|
|
1635
1778
|
}
|
|
1636
1779
|
}
|
|
1637
|
-
},
|
|
1780
|
+
}, _callee10, _this14);
|
|
1638
1781
|
}));
|
|
1639
1782
|
|
|
1640
|
-
return function (
|
|
1641
|
-
return
|
|
1783
|
+
return function (_x7) {
|
|
1784
|
+
return _ref22.apply(this, arguments);
|
|
1642
1785
|
};
|
|
1643
1786
|
}();
|
|
1644
1787
|
}
|
|
1645
1788
|
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'updateCurrentMode', [_mobx.action], {
|
|
1646
1789
|
enumerable: true,
|
|
1647
1790
|
initializer: function initializer() {
|
|
1648
|
-
var
|
|
1791
|
+
var _this15 = this;
|
|
1649
1792
|
|
|
1650
1793
|
return function () {
|
|
1651
|
-
var
|
|
1794
|
+
var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(memberId) {
|
|
1652
1795
|
var result;
|
|
1653
|
-
return _regenerator2.default.wrap(function
|
|
1796
|
+
return _regenerator2.default.wrap(function _callee11$(_context11) {
|
|
1654
1797
|
while (1) {
|
|
1655
|
-
switch (
|
|
1798
|
+
switch (_context11.prev = _context11.next) {
|
|
1656
1799
|
case 0:
|
|
1657
|
-
|
|
1800
|
+
_context11.next = 2;
|
|
1658
1801
|
return (0, _tplusApi.ccApi)({}, '/marketingtool/MeStorageCard/getCardInfoByMemberId/' + memberId + '/' + true, false, false, { method: 'get' });
|
|
1659
1802
|
|
|
1660
1803
|
case 2:
|
|
1661
|
-
result =
|
|
1804
|
+
result = _context11.sent;
|
|
1662
1805
|
|
|
1663
1806
|
if (!(result && result.data.length)) {
|
|
1664
|
-
|
|
1807
|
+
_context11.next = 20;
|
|
1665
1808
|
break;
|
|
1666
1809
|
}
|
|
1667
1810
|
|
|
1668
1811
|
if (!(result.data.length === 1)) {
|
|
1669
|
-
|
|
1812
|
+
_context11.next = 9;
|
|
1670
1813
|
break;
|
|
1671
1814
|
}
|
|
1672
1815
|
|
|
1673
|
-
|
|
1674
|
-
return
|
|
1816
|
+
_this15.paymode.updateCardInfo(result.data[0]);
|
|
1817
|
+
return _context11.abrupt('return', result.data);
|
|
1675
1818
|
|
|
1676
1819
|
case 9:
|
|
1677
1820
|
if (!(result.data && result.data.length === 1)) {
|
|
1678
|
-
|
|
1821
|
+
_context11.next = 14;
|
|
1679
1822
|
break;
|
|
1680
1823
|
}
|
|
1681
1824
|
|
|
1682
|
-
|
|
1683
|
-
return
|
|
1825
|
+
_this15.paymode.updateCardInfo(result.data[0]);
|
|
1826
|
+
return _context11.abrupt('return', result.data);
|
|
1684
1827
|
|
|
1685
1828
|
case 14:
|
|
1686
1829
|
if (!(result.data && result.data.length > 1)) {
|
|
1687
|
-
|
|
1830
|
+
_context11.next = 18;
|
|
1688
1831
|
break;
|
|
1689
1832
|
}
|
|
1690
1833
|
|
|
1691
|
-
return
|
|
1834
|
+
return _context11.abrupt('return', result.data);
|
|
1692
1835
|
|
|
1693
1836
|
case 18:
|
|
1694
1837
|
_message2.default.warn('没有可用储值卡!');
|
|
1695
|
-
return
|
|
1838
|
+
return _context11.abrupt('return', false);
|
|
1696
1839
|
|
|
1697
1840
|
case 20:
|
|
1698
1841
|
case 'end':
|
|
1699
|
-
return
|
|
1842
|
+
return _context11.stop();
|
|
1700
1843
|
}
|
|
1701
1844
|
}
|
|
1702
|
-
},
|
|
1845
|
+
}, _callee11, _this15);
|
|
1703
1846
|
}));
|
|
1704
1847
|
|
|
1705
|
-
return function (
|
|
1706
|
-
return
|
|
1848
|
+
return function (_x8) {
|
|
1849
|
+
return _ref23.apply(this, arguments);
|
|
1707
1850
|
};
|
|
1708
1851
|
}();
|
|
1709
1852
|
}
|
|
1710
1853
|
}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, 'updateCardInfo', [_mobx.action], {
|
|
1711
1854
|
enumerable: true,
|
|
1712
1855
|
initializer: function initializer() {
|
|
1713
|
-
var
|
|
1856
|
+
var _this16 = this;
|
|
1714
1857
|
|
|
1715
|
-
return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
1858
|
+
return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12() {
|
|
1716
1859
|
var address, result;
|
|
1717
|
-
return _regenerator2.default.wrap(function
|
|
1860
|
+
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
|
1718
1861
|
while (1) {
|
|
1719
|
-
switch (
|
|
1862
|
+
switch (_context12.prev = _context12.next) {
|
|
1720
1863
|
case 0:
|
|
1721
|
-
address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' +
|
|
1722
|
-
|
|
1864
|
+
address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + _this16.paymode.currentMode.storageCardNo;
|
|
1865
|
+
_context12.next = 3;
|
|
1723
1866
|
return (0, _tplusApi.ccApi)({}, address, false, false, { method: 'get', timeout_skip: true });
|
|
1724
1867
|
|
|
1725
1868
|
case 3:
|
|
1726
|
-
result =
|
|
1869
|
+
result = _context12.sent;
|
|
1727
1870
|
|
|
1728
|
-
|
|
1871
|
+
_this16.paymode.updateCardInfo(result.data);
|
|
1729
1872
|
|
|
1730
1873
|
case 5:
|
|
1731
1874
|
case 'end':
|
|
1732
|
-
return
|
|
1875
|
+
return _context12.stop();
|
|
1733
1876
|
}
|
|
1734
1877
|
}
|
|
1735
|
-
},
|
|
1878
|
+
}, _callee12, _this16);
|
|
1736
1879
|
}));
|
|
1737
1880
|
}
|
|
1738
1881
|
}), _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 +1976,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1833
1976
|
}, {
|
|
1834
1977
|
key: 'calcDjqCheckValue',
|
|
1835
1978
|
value: function calcDjqCheckValue(q1, dto, params) {
|
|
1836
|
-
var
|
|
1979
|
+
var _this17 = this;
|
|
1837
1980
|
|
|
1838
1981
|
var useLimitPerOrder = (0, _tplusPoslogin.PosInitData)('UseLimitPerOrder');
|
|
1839
1982
|
var qList = (0, _filter3.default)(this.currentMode.djqs, function (djq) {
|
|
@@ -1847,12 +1990,12 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1847
1990
|
this.checkList = [];
|
|
1848
1991
|
}
|
|
1849
1992
|
|
|
1850
|
-
var
|
|
1851
|
-
isNewRetailBCPos =
|
|
1993
|
+
var _ref25 = _mutantsUtil.platform || {},
|
|
1994
|
+
isNewRetailBCPos = _ref25.isNewRetailBCPos;
|
|
1852
1995
|
|
|
1853
|
-
var _enumController$
|
|
1854
|
-
PayStyle = _enumController$
|
|
1855
|
-
Differentiate = _enumController$
|
|
1996
|
+
var _enumController$getEn17 = _mutantsUtil.enumController.getEnumOj(),
|
|
1997
|
+
PayStyle = _enumController$getEn17.PayStyle,
|
|
1998
|
+
Differentiate = _enumController$getEn17.Differentiate;
|
|
1856
1999
|
|
|
1857
2000
|
if (q1) {
|
|
1858
2001
|
if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
|
|
@@ -1880,7 +2023,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1880
2023
|
if (!q1.checked) {
|
|
1881
2024
|
this.checkList.forEach(function (ele, i) {
|
|
1882
2025
|
if (ele.id === q1.id) {
|
|
1883
|
-
|
|
2026
|
+
_this17.checkList.splice(i, 1);
|
|
1884
2027
|
}
|
|
1885
2028
|
});
|
|
1886
2029
|
} else {
|
|
@@ -1952,24 +2095,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1952
2095
|
if (result && result.length != 0) {
|
|
1953
2096
|
result.forEach(function (element, index) {
|
|
1954
2097
|
var djq1 = false;
|
|
1955
|
-
|
|
2098
|
+
_this17.currentMode.djqs.forEach(function (djq) {
|
|
1956
2099
|
if (element.id === djq.id) {
|
|
1957
2100
|
djq1 = true;
|
|
1958
2101
|
}
|
|
1959
2102
|
});
|
|
1960
2103
|
|
|
1961
|
-
var
|
|
1962
|
-
couponCode =
|
|
1963
|
-
name =
|
|
1964
|
-
tieredAmountResult =
|
|
1965
|
-
fromDate =
|
|
1966
|
-
dateMount =
|
|
1967
|
-
promoMethodEnum =
|
|
1968
|
-
discountPct =
|
|
1969
|
-
nominalAmount =
|
|
1970
|
-
promoId =
|
|
1971
|
-
id =
|
|
1972
|
-
doorsill =
|
|
2104
|
+
var _ref26 = element || {},
|
|
2105
|
+
couponCode = _ref26.couponCode,
|
|
2106
|
+
name = _ref26.name,
|
|
2107
|
+
tieredAmountResult = _ref26.tieredAmountResult,
|
|
2108
|
+
fromDate = _ref26.fromDate,
|
|
2109
|
+
dateMount = _ref26.dateMount,
|
|
2110
|
+
promoMethodEnum = _ref26.promoMethodEnum,
|
|
2111
|
+
discountPct = _ref26.discountPct,
|
|
2112
|
+
nominalAmount = _ref26.nominalAmount,
|
|
2113
|
+
promoId = _ref26.promoId,
|
|
2114
|
+
id = _ref26.id,
|
|
2115
|
+
doorsill = _ref26.doorsill;
|
|
1973
2116
|
|
|
1974
2117
|
var condValue = tieredAmountResult.condValue,
|
|
1975
2118
|
promoDiscount = tieredAmountResult.promoDiscount,
|
|
@@ -1997,10 +2140,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1997
2140
|
// couponCategoryEnum: tieredAmountResult.couponCategoryEnum,
|
|
1998
2141
|
// id
|
|
1999
2142
|
// })
|
|
2000
|
-
|
|
2143
|
+
_this17.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
|
|
2001
2144
|
djq1 = false;
|
|
2002
2145
|
} else {
|
|
2003
|
-
|
|
2146
|
+
_this17.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
|
|
2004
2147
|
// this.currentMode.djqs[0].couponCategoryEnum = 'couponCategoryEnum';
|
|
2005
2148
|
// djq1.couponCategoryEnum = element.tieredAmountResult.couponCategoryEnum
|
|
2006
2149
|
}
|
|
@@ -2013,11 +2156,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2013
2156
|
}, {
|
|
2014
2157
|
key: 'calcDjqValue',
|
|
2015
2158
|
value: function calcDjqValue(q1) {
|
|
2016
|
-
var
|
|
2017
|
-
isNewRetailBCPos =
|
|
2159
|
+
var _ref27 = _mutantsUtil.platform || {},
|
|
2160
|
+
isNewRetailBCPos = _ref27.isNewRetailBCPos;
|
|
2018
2161
|
|
|
2019
|
-
var _enumController$
|
|
2020
|
-
Differentiate = _enumController$
|
|
2162
|
+
var _enumController$getEn18 = _mutantsUtil.enumController.getEnumOj(),
|
|
2163
|
+
Differentiate = _enumController$getEn18.Differentiate;
|
|
2021
2164
|
|
|
2022
2165
|
if (q1) {
|
|
2023
2166
|
if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
|
|
@@ -2079,8 +2222,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2079
2222
|
this.currentMode.errinfo = '';
|
|
2080
2223
|
var sum = this.amount;
|
|
2081
2224
|
|
|
2082
|
-
var _enumController$
|
|
2083
|
-
PayStyle = _enumController$
|
|
2225
|
+
var _enumController$getEn19 = _mutantsUtil.enumController.getEnumOj(),
|
|
2226
|
+
PayStyle = _enumController$getEn19.PayStyle;
|
|
2084
2227
|
|
|
2085
2228
|
this.thePaymodes && this.thePaymodes.forEach(function (mode) {
|
|
2086
2229
|
if (mode.paymentType === PayStyle.hyczk) {
|
|
@@ -2104,30 +2247,29 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2104
2247
|
}, {
|
|
2105
2248
|
key: 'setPaymodes',
|
|
2106
2249
|
value: function () {
|
|
2107
|
-
var
|
|
2108
|
-
var
|
|
2250
|
+
var _ref28 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(type, isIntegralExchange) {
|
|
2251
|
+
var _this18 = this;
|
|
2109
2252
|
|
|
2110
|
-
var _enumController$
|
|
2253
|
+
var _enumController$getEn20, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
|
|
2111
2254
|
|
|
2112
|
-
return _regenerator2.default.wrap(function
|
|
2255
|
+
return _regenerator2.default.wrap(function _callee13$(_context13) {
|
|
2113
2256
|
while (1) {
|
|
2114
|
-
switch (
|
|
2257
|
+
switch (_context13.prev = _context13.next) {
|
|
2115
2258
|
case 0:
|
|
2116
|
-
_enumController$
|
|
2259
|
+
_enumController$getEn20 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn20.settleStyleType, PayStyle = _enumController$getEn20.PayStyle;
|
|
2117
2260
|
memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
|
|
2118
2261
|
param = { 'settleStyleType': type == 1 ? memberStoreCode : settlementCode, isIntegralExchange: isIntegralExchange };
|
|
2119
|
-
|
|
2262
|
+
_context13.next = 5;
|
|
2120
2263
|
return (0, _tplusApi.tApi)({ param: param }, 'chanjet.RE.NewPos.GetNewStoreSettleStyles', false, false);
|
|
2121
2264
|
|
|
2122
2265
|
case 5:
|
|
2123
|
-
modes =
|
|
2266
|
+
modes = _context13.sent;
|
|
2124
2267
|
|
|
2125
2268
|
if (modes) {
|
|
2126
2269
|
(0, _mobx.runInAction)(function () {
|
|
2127
2270
|
var paymodes = [];
|
|
2128
2271
|
(0, _each3.default)(modes.SettleStyles, function (mode, index) {
|
|
2129
2272
|
//产品需求确认会员储值卡结算方式前端展示统一调整为“储值卡" tuzha by 2020-07-08
|
|
2130
|
-
|
|
2131
2273
|
if (mode.Code == PayStyle.hyczk) {
|
|
2132
2274
|
mode.Name = '储值卡';
|
|
2133
2275
|
}
|
|
@@ -2142,24 +2284,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2142
2284
|
idBankAccount: mode.IdBankAccount,
|
|
2143
2285
|
exchangeRate: mode.Currency ? mode.Currency.ExchangeRate : 1,
|
|
2144
2286
|
idCurrency: mode.Currency ? mode.Currency.ID : -1,
|
|
2145
|
-
calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88"
|
|
2287
|
+
calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88",
|
|
2288
|
+
thridPayment: mode.ThirdPaymentInfo
|
|
2146
2289
|
});
|
|
2147
2290
|
});
|
|
2148
|
-
|
|
2149
|
-
//modes.QuickSettleStyles
|
|
2291
|
+
_this18.paymodes = paymodes;
|
|
2150
2292
|
});
|
|
2151
2293
|
}
|
|
2152
2294
|
|
|
2153
2295
|
case 7:
|
|
2154
2296
|
case 'end':
|
|
2155
|
-
return
|
|
2297
|
+
return _context13.stop();
|
|
2156
2298
|
}
|
|
2157
2299
|
}
|
|
2158
|
-
},
|
|
2300
|
+
}, _callee13, this);
|
|
2159
2301
|
}));
|
|
2160
2302
|
|
|
2161
|
-
function setPaymodes(
|
|
2162
|
-
return
|
|
2303
|
+
function setPaymodes(_x9, _x10) {
|
|
2304
|
+
return _ref28.apply(this, arguments);
|
|
2163
2305
|
}
|
|
2164
2306
|
|
|
2165
2307
|
return setPaymodes;
|
|
@@ -2214,19 +2356,19 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2214
2356
|
}), _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
2357
|
enumerable: true,
|
|
2216
2358
|
initializer: function initializer() {
|
|
2217
|
-
var
|
|
2359
|
+
var _this19 = this;
|
|
2218
2360
|
|
|
2219
2361
|
return function () {
|
|
2220
|
-
|
|
2362
|
+
_this19.checkList = [];
|
|
2221
2363
|
};
|
|
2222
2364
|
}
|
|
2223
2365
|
}), _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
2366
|
enumerable: true,
|
|
2225
2367
|
initializer: function initializer() {
|
|
2226
|
-
var
|
|
2368
|
+
var _this20 = this;
|
|
2227
2369
|
|
|
2228
2370
|
return function (id, couponNum, promoMethodEnum, nominalAmount, promoDiscount) {
|
|
2229
|
-
|
|
2371
|
+
_this20.currentMode.djqs.forEach(function (ele) {
|
|
2230
2372
|
if (ele.id === id) {
|
|
2231
2373
|
promoMethodEnum == "CASH_COUPON" ? ele.amount = nominalAmount : ele.amount = promoDiscount;
|
|
2232
2374
|
ele.couponCategoryEnum = couponNum;
|
|
@@ -2239,7 +2381,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2239
2381
|
}), _descriptor14 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
|
|
2240
2382
|
enumerable: true,
|
|
2241
2383
|
initializer: function initializer() {
|
|
2242
|
-
var
|
|
2384
|
+
var _this21 = this;
|
|
2243
2385
|
|
|
2244
2386
|
return function (promoCouponCode, name, IsEnable, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id) {
|
|
2245
2387
|
var djq = {
|
|
@@ -2261,13 +2403,13 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2261
2403
|
couponCategoryEnum: couponCategoryEnum,
|
|
2262
2404
|
id: id
|
|
2263
2405
|
};
|
|
2264
|
-
|
|
2406
|
+
_this21.currentMode.djqs.push(djq);
|
|
2265
2407
|
};
|
|
2266
2408
|
}
|
|
2267
2409
|
}), _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
2410
|
var Member = exports.Member = (_class5 = function () {
|
|
2269
2411
|
function Member(m) {
|
|
2270
|
-
var
|
|
2412
|
+
var _this22 = this;
|
|
2271
2413
|
|
|
2272
2414
|
(0, _classCallCheck3.default)(this, Member);
|
|
2273
2415
|
|
|
@@ -2290,15 +2432,15 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2290
2432
|
return key == 'canusedbalancestorage';
|
|
2291
2433
|
});
|
|
2292
2434
|
|
|
2293
|
-
var
|
|
2294
|
-
isNewRetailBCPos =
|
|
2435
|
+
var _ref29 = _mutantsUtil.platform || {},
|
|
2436
|
+
isNewRetailBCPos = _ref29.isNewRetailBCPos;
|
|
2295
2437
|
|
|
2296
2438
|
(0, _mobx.runInAction)(function () {
|
|
2297
|
-
|
|
2439
|
+
_this22.cardNo = m.CardCode;
|
|
2298
2440
|
if (index >= 0) {
|
|
2299
|
-
|
|
2441
|
+
_this22.balance = parseFloat(m.DynamicPropertyValues[index]);
|
|
2300
2442
|
} else {
|
|
2301
|
-
|
|
2443
|
+
_this22.balance = _this22.rawbalance;
|
|
2302
2444
|
}
|
|
2303
2445
|
});
|
|
2304
2446
|
this.needPwd = m.MemberType ? m.MemberType.IsNeedPwd : false;
|