tplus-components-touch 3.33.6 → 3.33.7
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 +1686 -1686
- package/dist/components/settlement/settlementStore.js +413 -256
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/settlement/utils.js.map +1 -1
- package/dist/components/socket/index.js +11 -11
- package/dist/components/socket/index.js.map +1 -1
- package/dist/components/spin/index.js +6 -6
- package/dist/components/spin/index.js.map +1 -1
- package/dist/components/spin/spin-style.less +436 -436
- package/dist/components/test/index.js +3 -3
- package/dist/components/test/index.js.map +1 -1
- package/dist/components/ticon/iconfont/demo_index.html +5248 -5248
- package/dist/components/ticon/iconfont/iconfont.css +895 -895
- package/dist/components/ticon/iconfont/iconfont.json +1549 -1549
- package/dist/components/ticon/iconfont/iconfont.svg +593 -593
- package/dist/components/ticon/index.js.map +1 -1
- package/dist/components/touchScroll/index.js +9 -9
- package/dist/components/touchScroll/index.js.map +1 -1
- package/dist/components/touchTable/AuthProcess.js.map +1 -1
- package/dist/components/touchTable/generateWater.js.map +1 -1
- package/dist/components/touchTable/index.js +9 -9
- package/dist/components/touchTable/index.js.map +1 -1
- package/dist/components/touchTable/index.less +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;
|
|
@@ -603,7 +604,8 @@ var SettlementStore = (_class = function () {
|
|
|
603
604
|
authCode: detail.PaymentCode,
|
|
604
605
|
steadCashIntegral: detail.SteadCashIntegral,
|
|
605
606
|
overchargesAmount: detail.OverchargesAmount,
|
|
606
|
-
boriginReturn: true
|
|
607
|
+
boriginReturn: true,
|
|
608
|
+
thirdPaymentReturnInfo: detail.ThirdPaymentReturnInfo
|
|
607
609
|
});
|
|
608
610
|
_this5.paymode.currentMode = newmode;
|
|
609
611
|
if (themode.paymentType == PayStyle.djq) {
|
|
@@ -950,6 +952,7 @@ var SettlementStore = (_class = function () {
|
|
|
950
952
|
name: themode.name,
|
|
951
953
|
exchangeRate: themode.exchangeRate,
|
|
952
954
|
calDirection: themode.calDirection,
|
|
955
|
+
thridPayment: themode.thridPayment,
|
|
953
956
|
value: value,
|
|
954
957
|
value2: (0, _utils.getFixedNumber)(themode.calDirection == "88" ? value / themode.exchangeRate : value * themode.exchangeRate),
|
|
955
958
|
value3: value,
|
|
@@ -978,7 +981,7 @@ var SettlementStore = (_class = function () {
|
|
|
978
981
|
if (type == PayStyle.hyczk || type == PayStyle.jfdx || type == PayStyle.djq) {
|
|
979
982
|
this.setMaxAmount(type, mode);
|
|
980
983
|
}
|
|
981
|
-
console.log(mode);
|
|
984
|
+
console.log('\u5F53\u524D\u64CD\u4F5C\u7ED3\u7B97\u65B9\u5F0F\u4FE1\u606F:' + mode);
|
|
982
985
|
return mode;
|
|
983
986
|
}
|
|
984
987
|
}, {
|
|
@@ -1015,15 +1018,6 @@ var SettlementStore = (_class = function () {
|
|
|
1015
1018
|
key: 'changeFocusOnly',
|
|
1016
1019
|
value: function changeFocusOnly(type) {
|
|
1017
1020
|
this.paymode.currentFocus = type;
|
|
1018
|
-
// 获取焦点时带入剩余的值
|
|
1019
|
-
// let mode=_find(this.paymode.thePaymodes,{'paymentType':type});
|
|
1020
|
-
// if(mode && this.isIntegralExchange){
|
|
1021
|
-
// const shouldSetValue =getFixedNumber(parseFloat(this.paymode.receivable) + parseFloat(mode.value));
|
|
1022
|
-
// mode.value = shouldSetValue;
|
|
1023
|
-
// mode.value2 = getFixedNumber(mode.calDirection=="88"?shouldSetValue / mode.exchangeRate:(shouldSetValue * mode.exchangeRate));
|
|
1024
|
-
// mode.value3 = shouldSetValue;
|
|
1025
|
-
// this.paymode.calcReserved();
|
|
1026
|
-
// }
|
|
1027
1021
|
}
|
|
1028
1022
|
}, {
|
|
1029
1023
|
key: 'changeClickFocusOnly',
|
|
@@ -1085,6 +1079,13 @@ var SettlementStore = (_class = function () {
|
|
|
1085
1079
|
var _enumController$getEn12 = _mutantsUtil.enumController.getEnumOj(),
|
|
1086
1080
|
PayStyle = _enumController$getEn12.PayStyle;
|
|
1087
1081
|
|
|
1082
|
+
var hasThirdPay = this.paymode.thePaymodes.findIndex(function (v) {
|
|
1083
|
+
return !!v.thridPayment;
|
|
1084
|
+
});
|
|
1085
|
+
if (hasThirdPay > -1) {
|
|
1086
|
+
_message2.default.warn('二开支付目前仅支持单一结算。');
|
|
1087
|
+
return;
|
|
1088
|
+
}
|
|
1088
1089
|
var pos = this.paymode.thePaymodes.length;
|
|
1089
1090
|
if (type == PayStyle.hyczk) {
|
|
1090
1091
|
var index = (0, _findLastIndex3.default)(this.paymode.thePaymodes, function (m) {
|
|
@@ -1092,8 +1093,6 @@ var SettlementStore = (_class = function () {
|
|
|
1092
1093
|
});
|
|
1093
1094
|
pos = index == -1 ? pos : index + 1;
|
|
1094
1095
|
}
|
|
1095
|
-
// this.paymode.thePaymodes.push(this.genNewMode(type) );
|
|
1096
|
-
|
|
1097
1096
|
this.paymode.thePaymodes.splice(pos, 0, this.genNewMode(type, this.newStyle && type == PayStyle.hyczk, undefined, isQuick));
|
|
1098
1097
|
this.paymode.calcReserved();
|
|
1099
1098
|
}
|
|
@@ -1156,7 +1155,7 @@ var SettlementStore = (_class = function () {
|
|
|
1156
1155
|
key: 'commit',
|
|
1157
1156
|
value: function () {
|
|
1158
1157
|
var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4(bTest) {
|
|
1159
|
-
var
|
|
1158
|
+
var ret, _ref11, _ref11$data, code, returnMsg, state, _ret;
|
|
1160
1159
|
|
|
1161
1160
|
return _regenerator2.default.wrap(function _callee4$(_context4) {
|
|
1162
1161
|
while (1) {
|
|
@@ -1172,72 +1171,71 @@ var SettlementStore = (_class = function () {
|
|
|
1172
1171
|
return _context4.abrupt('return', _promise2.default.resolve(true));
|
|
1173
1172
|
|
|
1174
1173
|
case 3:
|
|
1175
|
-
|
|
1176
|
-
_context4.prev = 4;
|
|
1174
|
+
_context4.prev = 3;
|
|
1177
1175
|
|
|
1178
1176
|
if (!(this.type == 1)) {
|
|
1179
|
-
_context4.next =
|
|
1177
|
+
_context4.next = 23;
|
|
1180
1178
|
break;
|
|
1181
1179
|
}
|
|
1182
1180
|
|
|
1183
|
-
_context4.next =
|
|
1181
|
+
_context4.next = 7;
|
|
1184
1182
|
return this.findStorageBillValidate();
|
|
1185
1183
|
|
|
1186
|
-
case
|
|
1184
|
+
case 7:
|
|
1187
1185
|
ret = _context4.sent;
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
code =
|
|
1186
|
+
_ref11 = ret || {}, _ref11$data = _ref11.data;
|
|
1187
|
+
_ref11$data = _ref11$data === undefined ? {} : _ref11$data;
|
|
1188
|
+
code = _ref11$data.code, returnMsg = _ref11$data.returnMsg;
|
|
1191
1189
|
|
|
1192
1190
|
if (!(code && code == 10001)) {
|
|
1193
|
-
_context4.next =
|
|
1191
|
+
_context4.next = 19;
|
|
1194
1192
|
break;
|
|
1195
1193
|
}
|
|
1196
1194
|
|
|
1197
|
-
_context4.next =
|
|
1195
|
+
_context4.next = 14;
|
|
1198
1196
|
return this.repeatStorageModal(returnMsg);
|
|
1199
1197
|
|
|
1200
|
-
case
|
|
1198
|
+
case 14:
|
|
1201
1199
|
state = _context4.sent;
|
|
1202
1200
|
|
|
1203
1201
|
if (!(state === false)) {
|
|
1204
|
-
_context4.next =
|
|
1202
|
+
_context4.next = 17;
|
|
1205
1203
|
break;
|
|
1206
1204
|
}
|
|
1207
1205
|
|
|
1208
1206
|
return _context4.abrupt('return', _promise2.default.resolve(false));
|
|
1209
1207
|
|
|
1210
|
-
case
|
|
1211
|
-
_context4.next =
|
|
1208
|
+
case 17:
|
|
1209
|
+
_context4.next = 21;
|
|
1212
1210
|
break;
|
|
1213
1211
|
|
|
1214
|
-
case
|
|
1215
|
-
_context4.next =
|
|
1212
|
+
case 19:
|
|
1213
|
+
_context4.next = 21;
|
|
1216
1214
|
return this.saveMember();
|
|
1217
1215
|
|
|
1218
|
-
case
|
|
1216
|
+
case 21:
|
|
1219
1217
|
_context4.next = 32;
|
|
1220
1218
|
break;
|
|
1221
1219
|
|
|
1222
|
-
case
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
break;
|
|
1226
|
-
}
|
|
1220
|
+
case 23:
|
|
1221
|
+
_context4.next = 25;
|
|
1222
|
+
return _mutantsMicrofx.stores.offlineSys.generatorCode(this.dto);
|
|
1227
1223
|
|
|
1224
|
+
case 25:
|
|
1228
1225
|
_context4.next = 27;
|
|
1229
|
-
return
|
|
1226
|
+
return this.save();
|
|
1230
1227
|
|
|
1231
1228
|
case 27:
|
|
1232
|
-
|
|
1233
|
-
return this.save();
|
|
1229
|
+
_ret = _context4.sent;
|
|
1234
1230
|
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
_context4.next = 32;
|
|
1231
|
+
if (!(_ret === false)) {
|
|
1232
|
+
_context4.next = 30;
|
|
1238
1233
|
break;
|
|
1239
1234
|
}
|
|
1240
1235
|
|
|
1236
|
+
return _context4.abrupt('return', _promise2.default.resolve(false));
|
|
1237
|
+
|
|
1238
|
+
case 30:
|
|
1241
1239
|
_context4.next = 32;
|
|
1242
1240
|
return _mutantsMicrofx.stores.offlineSys.retailSequenceUpload();
|
|
1243
1241
|
|
|
@@ -1246,17 +1244,19 @@ var SettlementStore = (_class = function () {
|
|
|
1246
1244
|
|
|
1247
1245
|
case 35:
|
|
1248
1246
|
_context4.prev = 35;
|
|
1249
|
-
_context4.t0 = _context4['catch'](
|
|
1247
|
+
_context4.t0 = _context4['catch'](3);
|
|
1250
1248
|
|
|
1251
1249
|
console.error('settlementStore.commit失败,错误信息:' + _context4.t0);
|
|
1250
|
+
//其他支付失败时,处理二开支付情况。
|
|
1251
|
+
this.thirdPayRefund();
|
|
1252
1252
|
return _context4.abrupt('return', _promise2.default.resolve(_context4.t0));
|
|
1253
1253
|
|
|
1254
|
-
case
|
|
1254
|
+
case 40:
|
|
1255
1255
|
case 'end':
|
|
1256
1256
|
return _context4.stop();
|
|
1257
1257
|
}
|
|
1258
1258
|
}
|
|
1259
|
-
}, _callee4, this, [[
|
|
1259
|
+
}, _callee4, this, [[3, 35]]);
|
|
1260
1260
|
}));
|
|
1261
1261
|
|
|
1262
1262
|
function commit(_x3) {
|
|
@@ -1318,16 +1318,16 @@ var SettlementStore = (_class = function () {
|
|
|
1318
1318
|
}, {
|
|
1319
1319
|
key: 'save',
|
|
1320
1320
|
value: function () {
|
|
1321
|
-
var
|
|
1321
|
+
var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
|
|
1322
1322
|
var _this12 = this;
|
|
1323
1323
|
|
|
1324
|
-
var _enumController$getEn16, PayStyle,
|
|
1324
|
+
var _enumController$getEn16, PayStyle, TradeType, IPMSG, RetailTypeEnum, dtoParams, payList, amount, tradeType, ret, _ref13, type, data, msg, code;
|
|
1325
1325
|
|
|
1326
1326
|
return _regenerator2.default.wrap(function _callee5$(_context5) {
|
|
1327
1327
|
while (1) {
|
|
1328
1328
|
switch (_context5.prev = _context5.next) {
|
|
1329
1329
|
case 0:
|
|
1330
|
-
_enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn16.PayStyle;
|
|
1330
|
+
_enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn16.PayStyle, TradeType = _enumController$getEn16.TradeType;
|
|
1331
1331
|
|
|
1332
1332
|
(0, _mobx.runInAction)(function () {
|
|
1333
1333
|
_this12.dto.RetailPaymentDetails = [];
|
|
@@ -1375,7 +1375,9 @@ var SettlementStore = (_class = function () {
|
|
|
1375
1375
|
OverchargesAmount: mode.overchargesAmount,
|
|
1376
1376
|
DynamicPropertyKeys: [],
|
|
1377
1377
|
DynamicPropertyValues: [],
|
|
1378
|
-
DataSource: { Id: _this12.dataSource }
|
|
1378
|
+
DataSource: { Id: _this12.dataSource },
|
|
1379
|
+
ThirdPaymentInfo: themode.thridPayment || null,
|
|
1380
|
+
ThirdPaymentReturnInfo: mode.thirdPaymentReturnInfo || null
|
|
1379
1381
|
});
|
|
1380
1382
|
if (mode.paymentType == PayStyle.djq) {
|
|
1381
1383
|
(0, _each3.default)(_this12.paymode.checkList && _this12.paymode.checkList.length ? _this12.paymode.checkList : mode.djqs, function (djq) {
|
|
@@ -1395,47 +1397,22 @@ var SettlementStore = (_class = function () {
|
|
|
1395
1397
|
}
|
|
1396
1398
|
}
|
|
1397
1399
|
});
|
|
1398
|
-
|
|
1399
|
-
var _ref14 = _mutantsUtil.platform || {},
|
|
1400
|
-
isNewRetailBCPos = _ref14.isNewRetailBCPos;
|
|
1401
|
-
|
|
1402
1400
|
if (_this12.dto.RetailStorageDetails.length > 0) {
|
|
1403
1401
|
var themode = (0, _find3.default)(_this12.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
|
|
1404
|
-
|
|
1405
|
-
_this12.
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
});
|
|
1416
|
-
} else {
|
|
1417
|
-
_this12.dto.RetailPaymentDetails.push({
|
|
1418
|
-
Code: _this12.paymode.counter,
|
|
1419
|
-
OrigAmount: czkSum,
|
|
1420
|
-
Amount: czkSum,
|
|
1421
|
-
IdsettleStyle: themode.idSettleStyle,
|
|
1422
|
-
IdbankAccount: themode.idBankAccount,
|
|
1423
|
-
DynamicPropertyKeys: [],
|
|
1424
|
-
DynamicPropertyValues: [],
|
|
1425
|
-
DataSource: { Id: _this12.dataSource }
|
|
1426
|
-
});
|
|
1427
|
-
}
|
|
1402
|
+
_this12.dto.RetailPaymentDetails.push({
|
|
1403
|
+
Code: _this12.paymode.counter,
|
|
1404
|
+
OrigAmount: czkSum,
|
|
1405
|
+
Amount: czkSum,
|
|
1406
|
+
IdsettleStyle: themode.idSettleStyle,
|
|
1407
|
+
IdbankAccount: themode.idBankAccount,
|
|
1408
|
+
DynamicPropertyKeys: [],
|
|
1409
|
+
DynamicPropertyValues: [],
|
|
1410
|
+
DataSource: { Id: _this12.dataSource },
|
|
1411
|
+
RetailStorageDetails: _this12.dto.RetailStorageDetails
|
|
1412
|
+
});
|
|
1428
1413
|
}
|
|
1429
1414
|
});
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
|
|
1433
|
-
|
|
1434
|
-
if (!isNewRetailBCPos) {
|
|
1435
|
-
_context5.next = 20;
|
|
1436
|
-
break;
|
|
1437
|
-
}
|
|
1438
|
-
|
|
1415
|
+
console.log('\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
|
|
1439
1416
|
// cc结算调用
|
|
1440
1417
|
IPMSG = {};
|
|
1441
1418
|
|
|
@@ -1446,49 +1423,79 @@ var SettlementStore = (_class = function () {
|
|
|
1446
1423
|
_context5.t1 = this.dto.IdbusiType == 37;
|
|
1447
1424
|
|
|
1448
1425
|
if (!_context5.t1) {
|
|
1449
|
-
_context5.next =
|
|
1426
|
+
_context5.next = 11;
|
|
1450
1427
|
break;
|
|
1451
1428
|
}
|
|
1452
1429
|
|
|
1453
|
-
_context5.next =
|
|
1430
|
+
_context5.next = 10;
|
|
1454
1431
|
return this.checkIntegralExchangeReturn(this.dto.RetailDetails[0].ReturnSourceId);
|
|
1455
1432
|
|
|
1456
|
-
case
|
|
1433
|
+
case 10:
|
|
1457
1434
|
_context5.t1 = _context5.sent;
|
|
1458
1435
|
|
|
1459
|
-
case
|
|
1436
|
+
case 11:
|
|
1460
1437
|
_context5.t0 = _context5.t1;
|
|
1461
1438
|
|
|
1462
1439
|
if (_context5.t0) {
|
|
1463
|
-
_context5.next =
|
|
1440
|
+
_context5.next = 14;
|
|
1464
1441
|
break;
|
|
1465
1442
|
}
|
|
1466
1443
|
|
|
1467
1444
|
_context5.t0 = this.dto.IdbusiType != 37;
|
|
1468
1445
|
|
|
1469
|
-
case
|
|
1446
|
+
case 14:
|
|
1470
1447
|
if (!_context5.t0) {
|
|
1471
|
-
_context5.next =
|
|
1448
|
+
_context5.next = 33;
|
|
1472
1449
|
break;
|
|
1473
1450
|
}
|
|
1474
1451
|
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
_this12.paymode.checkList = [];
|
|
1478
|
-
_this12.billID = resp.ID;
|
|
1479
|
-
}));
|
|
1452
|
+
dtoParams = (0, _extends3.default)({}, this.dto.cut(), { RetailOms: { RetailTypeEnum: RetailTypeEnum } });
|
|
1453
|
+
//处理存在二开支付情况
|
|
1480
1454
|
|
|
1481
|
-
|
|
1482
|
-
|
|
1455
|
+
payList = dtoParams.RetailPaymentDetails.filter(function (v) {
|
|
1456
|
+
return v.ThirdPaymentInfo;
|
|
1457
|
+
});
|
|
1458
|
+
|
|
1459
|
+
if (!(payList && payList.length > 0)) {
|
|
1460
|
+
_context5.next = 30;
|
|
1461
|
+
break;
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
amount = payList[0].Amount;
|
|
1465
|
+
tradeType = amount > 0 ? TradeType.PAY : TradeType.REFUND;
|
|
1466
|
+
_context5.next = 22;
|
|
1467
|
+
return this.thirdPay(tradeType, dtoParams);
|
|
1468
|
+
|
|
1469
|
+
case 22:
|
|
1470
|
+
ret = _context5.sent;
|
|
1471
|
+
_ref13 = ret || {}, type = _ref13.type, data = _ref13.data, msg = _ref13.msg, code = _ref13.code;
|
|
1472
|
+
|
|
1473
|
+
if (!(type === true)) {
|
|
1474
|
+
_context5.next = 28;
|
|
1475
|
+
break;
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
dtoParams = data;
|
|
1479
|
+
_context5.next = 30;
|
|
1483
1480
|
break;
|
|
1484
1481
|
|
|
1485
|
-
case
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1482
|
+
case 28:
|
|
1483
|
+
_message2.default.warn('\u5237\u5361\u652F\u4ED8\u5931\u8D25,\u9519\u8BEF\u7801:' + code);
|
|
1484
|
+
return _context5.abrupt('return', false);
|
|
1485
|
+
|
|
1486
|
+
case 30:
|
|
1487
|
+
this.dtoParams = dtoParams;
|
|
1488
|
+
console.log('结算信息:', dtoParams);
|
|
1489
|
+
return _context5.abrupt('return', (0, _tplusApi.ccApi)({ dto: dtoParams, cip: IPMSG.query || "" }, '/retail/RetailPos/settle', false, false, { method: 'post', timeout_skip: true }).then(function (resp) {
|
|
1490
|
+
var _ref14 = resp || {},
|
|
1491
|
+
ID = _ref14.ID;
|
|
1492
|
+
|
|
1493
|
+
_this12.setDtoID(ID);
|
|
1494
|
+
_this12.billID = ID;
|
|
1495
|
+
_this12.paymode.checkList = [];
|
|
1489
1496
|
}));
|
|
1490
1497
|
|
|
1491
|
-
case
|
|
1498
|
+
case 33:
|
|
1492
1499
|
case 'end':
|
|
1493
1500
|
return _context5.stop();
|
|
1494
1501
|
}
|
|
@@ -1497,11 +1504,162 @@ var SettlementStore = (_class = function () {
|
|
|
1497
1504
|
}));
|
|
1498
1505
|
|
|
1499
1506
|
function save() {
|
|
1500
|
-
return
|
|
1507
|
+
return _ref12.apply(this, arguments);
|
|
1501
1508
|
}
|
|
1502
1509
|
|
|
1503
1510
|
return save;
|
|
1504
1511
|
}()
|
|
1512
|
+
|
|
1513
|
+
//裁剪二开支付数据
|
|
1514
|
+
|
|
1515
|
+
}, {
|
|
1516
|
+
key: 'removeThirdPayDto',
|
|
1517
|
+
value: function removeThirdPayDto(dto) {
|
|
1518
|
+
var data = (0, _extends3.default)({}, dto);
|
|
1519
|
+
delete data['DynamicPropertyKeys'];
|
|
1520
|
+
delete data['DynamicPropertyValues'];
|
|
1521
|
+
return data;
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
//二开支付
|
|
1525
|
+
|
|
1526
|
+
}, {
|
|
1527
|
+
key: 'thirdPay',
|
|
1528
|
+
value: function () {
|
|
1529
|
+
var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(status, dto) {
|
|
1530
|
+
var cto, params, ret, _ref16, Code, Message, Result, _ref17, ThirdPaymentReturnInfo;
|
|
1531
|
+
|
|
1532
|
+
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
|
1533
|
+
while (1) {
|
|
1534
|
+
switch (_context6.prev = _context6.next) {
|
|
1535
|
+
case 0:
|
|
1536
|
+
cto = this.removeThirdPayDto(dto);
|
|
1537
|
+
params = { TradeType: status, dto: cto };
|
|
1538
|
+
|
|
1539
|
+
console.log('刷卡信息:', (0, _stringify2.default)(params));
|
|
1540
|
+
_context6.next = 5;
|
|
1541
|
+
return new _promise2.default(function (resolve, reject) {
|
|
1542
|
+
_mutantsMicrofx.nativeMs.setIpcRendererMethod('ThirdPayment', (0, _extends3.default)({}, params), function (res) {
|
|
1543
|
+
return resolve(res);
|
|
1544
|
+
});
|
|
1545
|
+
});
|
|
1546
|
+
|
|
1547
|
+
case 5:
|
|
1548
|
+
ret = _context6.sent;
|
|
1549
|
+
|
|
1550
|
+
console.log('刷卡返回信息:', ret);
|
|
1551
|
+
ret = JSON.parse(ret);
|
|
1552
|
+
_ref16 = ret || {}, Code = _ref16.Code, Message = _ref16.Message, Result = _ref16.Result;
|
|
1553
|
+
|
|
1554
|
+
if (!(Code > 0)) {
|
|
1555
|
+
_context6.next = 13;
|
|
1556
|
+
break;
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
return _context6.abrupt('return', { type: false, data: null, msg: Message, code: Code });
|
|
1560
|
+
|
|
1561
|
+
case 13:
|
|
1562
|
+
if (!(status == '00')) {
|
|
1563
|
+
_context6.next = 19;
|
|
1564
|
+
break;
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
_ref17 = Result || {}, ThirdPaymentReturnInfo = _ref17.ThirdPaymentReturnInfo;
|
|
1568
|
+
|
|
1569
|
+
dto.RetailPaymentDetails.forEach(function (v) {
|
|
1570
|
+
if (v.ThirdPaymentInfo != null) {
|
|
1571
|
+
v.ThirdPaymentReturnInfo = ThirdPaymentReturnInfo;
|
|
1572
|
+
}
|
|
1573
|
+
});
|
|
1574
|
+
return _context6.abrupt('return', { type: true, data: dto, msg: Message, code: Code });
|
|
1575
|
+
|
|
1576
|
+
case 19:
|
|
1577
|
+
if (!(status == '02')) {
|
|
1578
|
+
_context6.next = 21;
|
|
1579
|
+
break;
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
return _context6.abrupt('return', { type: true, data: dto, msg: Message, code: Code });
|
|
1583
|
+
|
|
1584
|
+
case 21:
|
|
1585
|
+
case 'end':
|
|
1586
|
+
return _context6.stop();
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
}, _callee6, this);
|
|
1590
|
+
}));
|
|
1591
|
+
|
|
1592
|
+
function thirdPay(_x4, _x5) {
|
|
1593
|
+
return _ref15.apply(this, arguments);
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
return thirdPay;
|
|
1597
|
+
}()
|
|
1598
|
+
|
|
1599
|
+
//二开支付强制退款情况
|
|
1600
|
+
|
|
1601
|
+
}, {
|
|
1602
|
+
key: 'thirdPayRefund',
|
|
1603
|
+
value: function () {
|
|
1604
|
+
var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
|
|
1605
|
+
var _this13 = this;
|
|
1606
|
+
|
|
1607
|
+
var dto, pay, _enumController$getEn17, TradeType;
|
|
1608
|
+
|
|
1609
|
+
return _regenerator2.default.wrap(function _callee8$(_context8) {
|
|
1610
|
+
while (1) {
|
|
1611
|
+
switch (_context8.prev = _context8.next) {
|
|
1612
|
+
case 0:
|
|
1613
|
+
dto = this.dtoParams;
|
|
1614
|
+
pay = dto && dto.RetailPaymentDetails.filter(function (v) {
|
|
1615
|
+
return v.ThirdPaymentInfo;
|
|
1616
|
+
});
|
|
1617
|
+
|
|
1618
|
+
if (pay && pay.length > 0) {
|
|
1619
|
+
setTimeout(function () {
|
|
1620
|
+
_message2.default.warn("支付出现异常,将发起刷卡退款。", { duration: 4.5 });
|
|
1621
|
+
}, 1000);
|
|
1622
|
+
_enumController$getEn17 = _mutantsUtil.enumController.getEnumOj(), TradeType = _enumController$getEn17.TradeType;
|
|
1623
|
+
|
|
1624
|
+
setTimeout((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7() {
|
|
1625
|
+
var ret, _ref20, msg;
|
|
1626
|
+
|
|
1627
|
+
return _regenerator2.default.wrap(function _callee7$(_context7) {
|
|
1628
|
+
while (1) {
|
|
1629
|
+
switch (_context7.prev = _context7.next) {
|
|
1630
|
+
case 0:
|
|
1631
|
+
_context7.next = 2;
|
|
1632
|
+
return _this13.thirdPay(TradeType.REFUND, dto);
|
|
1633
|
+
|
|
1634
|
+
case 2:
|
|
1635
|
+
ret = _context7.sent;
|
|
1636
|
+
_ref20 = ret || {}, msg = _ref20.msg;
|
|
1637
|
+
|
|
1638
|
+
console.log('\u5237\u5361\u652F\u4ED8\u9000\u6B3E:' + msg);
|
|
1639
|
+
|
|
1640
|
+
case 5:
|
|
1641
|
+
case 'end':
|
|
1642
|
+
return _context7.stop();
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1645
|
+
}, _callee7, _this13);
|
|
1646
|
+
})), 4500);
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
case 3:
|
|
1650
|
+
case 'end':
|
|
1651
|
+
return _context8.stop();
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
}, _callee8, this);
|
|
1655
|
+
}));
|
|
1656
|
+
|
|
1657
|
+
function thirdPayRefund() {
|
|
1658
|
+
return _ref18.apply(this, arguments);
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
return thirdPayRefund;
|
|
1662
|
+
}()
|
|
1505
1663
|
}, {
|
|
1506
1664
|
key: 'setDtoID',
|
|
1507
1665
|
value: function setDtoID(id) {
|
|
@@ -1510,35 +1668,35 @@ var SettlementStore = (_class = function () {
|
|
|
1510
1668
|
}, {
|
|
1511
1669
|
key: 'querySettleResult',
|
|
1512
1670
|
value: function () {
|
|
1513
|
-
var
|
|
1514
|
-
return _regenerator2.default.wrap(function
|
|
1671
|
+
var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9() {
|
|
1672
|
+
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
|
1515
1673
|
while (1) {
|
|
1516
|
-
switch (
|
|
1674
|
+
switch (_context9.prev = _context9.next) {
|
|
1517
1675
|
case 0:
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1676
|
+
_context9.prev = 0;
|
|
1677
|
+
_context9.t0 = _promise2.default;
|
|
1678
|
+
_context9.next = 4;
|
|
1521
1679
|
return (0, _tplusApi.tApi)({ RetailCode: this.dto.Code }, 'chanjet.RE.newRetail.QuerySettleResult', false, false, { timeout_skip: true });
|
|
1522
1680
|
|
|
1523
1681
|
case 4:
|
|
1524
|
-
|
|
1525
|
-
return
|
|
1682
|
+
_context9.t1 = _context9.sent;
|
|
1683
|
+
return _context9.abrupt('return', _context9.t0.resolve.call(_context9.t0, _context9.t1));
|
|
1526
1684
|
|
|
1527
1685
|
case 8:
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
return
|
|
1686
|
+
_context9.prev = 8;
|
|
1687
|
+
_context9.t2 = _context9['catch'](0);
|
|
1688
|
+
return _context9.abrupt('return', _promise2.default.resolve({ Flag: "1" }));
|
|
1531
1689
|
|
|
1532
1690
|
case 11:
|
|
1533
1691
|
case 'end':
|
|
1534
|
-
return
|
|
1692
|
+
return _context9.stop();
|
|
1535
1693
|
}
|
|
1536
1694
|
}
|
|
1537
|
-
},
|
|
1695
|
+
}, _callee9, this, [[0, 8]]);
|
|
1538
1696
|
}));
|
|
1539
1697
|
|
|
1540
1698
|
function querySettleResult() {
|
|
1541
|
-
return
|
|
1699
|
+
return _ref21.apply(this, arguments);
|
|
1542
1700
|
}
|
|
1543
1701
|
|
|
1544
1702
|
return querySettleResult;
|
|
@@ -1564,18 +1722,18 @@ var SettlementStore = (_class = function () {
|
|
|
1564
1722
|
}, {
|
|
1565
1723
|
key: 'validePwd',
|
|
1566
1724
|
value: function () {
|
|
1567
|
-
var
|
|
1568
|
-
var
|
|
1725
|
+
var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(value) {
|
|
1726
|
+
var _ref23, isNewRetailBCPos, cook1, cook2, message, memberStorageId, _paymode$currentMode, cardTypeEnum, memberId, meStorageCardId, cardStatusEnum, result, count, _result;
|
|
1569
1727
|
|
|
1570
|
-
return _regenerator2.default.wrap(function
|
|
1728
|
+
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
|
1571
1729
|
while (1) {
|
|
1572
|
-
switch (
|
|
1730
|
+
switch (_context10.prev = _context10.next) {
|
|
1573
1731
|
case 0:
|
|
1574
|
-
|
|
1575
|
-
|
|
1732
|
+
_ref23 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref23.isNewRetailBCPos;
|
|
1733
|
+
_context10.prev = 1;
|
|
1576
1734
|
|
|
1577
1735
|
if (!isNewRetailBCPos) {
|
|
1578
|
-
|
|
1736
|
+
_context10.next = 33;
|
|
1579
1737
|
break;
|
|
1580
1738
|
}
|
|
1581
1739
|
|
|
@@ -1585,60 +1743,60 @@ var SettlementStore = (_class = function () {
|
|
|
1585
1743
|
memberStorageId = this.paymode.currentMode.meStorageCardId;
|
|
1586
1744
|
|
|
1587
1745
|
if (!cook2) {
|
|
1588
|
-
|
|
1746
|
+
_context10.next = 12;
|
|
1589
1747
|
break;
|
|
1590
1748
|
}
|
|
1591
1749
|
|
|
1592
1750
|
if (!cook2.hasOwnProperty(memberStorageId + "")) {
|
|
1593
|
-
|
|
1751
|
+
_context10.next = 12;
|
|
1594
1752
|
break;
|
|
1595
1753
|
}
|
|
1596
1754
|
|
|
1597
1755
|
if (!(cook2[memberStorageId] > 3)) {
|
|
1598
|
-
|
|
1756
|
+
_context10.next = 12;
|
|
1599
1757
|
break;
|
|
1600
1758
|
}
|
|
1601
1759
|
|
|
1602
1760
|
message = '今日密码错误已达上限,不可使用储值消费,请明日再试,如忘记请重置密码或修改密码。';
|
|
1603
|
-
return
|
|
1761
|
+
return _context10.abrupt('return', _promise2.default.resolve(message));
|
|
1604
1762
|
|
|
1605
1763
|
case 12:
|
|
1606
1764
|
_paymode$currentMode = this.paymode.currentMode, cardTypeEnum = _paymode$currentMode.cardTypeEnum, memberId = _paymode$currentMode.memberId, meStorageCardId = _paymode$currentMode.meStorageCardId, cardStatusEnum = _paymode$currentMode.cardStatusEnum;
|
|
1607
1765
|
result = null;
|
|
1608
1766
|
|
|
1609
1767
|
if (!(cardTypeEnum === 'BALANCE_CARD')) {
|
|
1610
|
-
|
|
1768
|
+
_context10.next = 20;
|
|
1611
1769
|
break;
|
|
1612
1770
|
}
|
|
1613
1771
|
|
|
1614
|
-
|
|
1772
|
+
_context10.next = 17;
|
|
1615
1773
|
return (0, _tplusApi.ccApi)({ md5Password: _tplusApi.User.pwdEncrypt(value.pwd), cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + memberId, false, false);
|
|
1616
1774
|
|
|
1617
1775
|
case 17:
|
|
1618
|
-
result =
|
|
1619
|
-
|
|
1776
|
+
result = _context10.sent;
|
|
1777
|
+
_context10.next = 29;
|
|
1620
1778
|
break;
|
|
1621
1779
|
|
|
1622
1780
|
case 20:
|
|
1623
1781
|
if (!(cardStatusEnum === 'BINDING' && this.member && this.member.ID === memberId)) {
|
|
1624
|
-
|
|
1782
|
+
_context10.next = 26;
|
|
1625
1783
|
break;
|
|
1626
1784
|
}
|
|
1627
1785
|
|
|
1628
|
-
|
|
1786
|
+
_context10.next = 23;
|
|
1629
1787
|
return (0, _tplusApi.ccApi)({ md5Password: _tplusApi.User.pwdEncrypt(value.pwd), password: value.pwd, cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + meStorageCardId, false, false);
|
|
1630
1788
|
|
|
1631
1789
|
case 23:
|
|
1632
|
-
result =
|
|
1633
|
-
|
|
1790
|
+
result = _context10.sent;
|
|
1791
|
+
_context10.next = 29;
|
|
1634
1792
|
break;
|
|
1635
1793
|
|
|
1636
1794
|
case 26:
|
|
1637
|
-
|
|
1795
|
+
_context10.next = 28;
|
|
1638
1796
|
return (0, _tplusApi.ccApi)({ password: value.pwd, cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + meStorageCardId, false, false);
|
|
1639
1797
|
|
|
1640
1798
|
case 28:
|
|
1641
|
-
result =
|
|
1799
|
+
result = _context10.sent;
|
|
1642
1800
|
|
|
1643
1801
|
case 29:
|
|
1644
1802
|
if (!result.data) {
|
|
@@ -1657,38 +1815,38 @@ var SettlementStore = (_class = function () {
|
|
|
1657
1815
|
this.setCookie('errorPwd', '', -1);
|
|
1658
1816
|
this.setCookie('errorPwd', (0, _stringify2.default)(cook2));
|
|
1659
1817
|
}
|
|
1660
|
-
return
|
|
1818
|
+
return _context10.abrupt('return', _promise2.default.resolve(result.data ? "" : message));
|
|
1661
1819
|
|
|
1662
1820
|
case 33:
|
|
1663
|
-
|
|
1821
|
+
_context10.next = 35;
|
|
1664
1822
|
return (0, _tplusApi.tApi)({ "CheckoutParams": {
|
|
1665
1823
|
"Idmember": value.id,
|
|
1666
1824
|
"Password": value.pwd
|
|
1667
1825
|
} }, 'AA.DR.newRetailMember.CheckoutMemberPassword', false, false);
|
|
1668
1826
|
|
|
1669
1827
|
case 35:
|
|
1670
|
-
_result =
|
|
1671
|
-
return
|
|
1828
|
+
_result = _context10.sent;
|
|
1829
|
+
return _context10.abrupt('return', _promise2.default.resolve(_result.Success ? "" : _result.Message));
|
|
1672
1830
|
|
|
1673
1831
|
case 37:
|
|
1674
|
-
|
|
1832
|
+
_context10.next = 42;
|
|
1675
1833
|
break;
|
|
1676
1834
|
|
|
1677
1835
|
case 39:
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
return
|
|
1836
|
+
_context10.prev = 39;
|
|
1837
|
+
_context10.t0 = _context10['catch'](1);
|
|
1838
|
+
return _context10.abrupt('return', "failed");
|
|
1681
1839
|
|
|
1682
1840
|
case 42:
|
|
1683
1841
|
case 'end':
|
|
1684
|
-
return
|
|
1842
|
+
return _context10.stop();
|
|
1685
1843
|
}
|
|
1686
1844
|
}
|
|
1687
|
-
},
|
|
1845
|
+
}, _callee10, this, [[1, 39]]);
|
|
1688
1846
|
}));
|
|
1689
1847
|
|
|
1690
|
-
function validePwd(
|
|
1691
|
-
return
|
|
1848
|
+
function validePwd(_x6) {
|
|
1849
|
+
return _ref22.apply(this, arguments);
|
|
1692
1850
|
}
|
|
1693
1851
|
|
|
1694
1852
|
return validePwd;
|
|
@@ -1698,7 +1856,7 @@ var SettlementStore = (_class = function () {
|
|
|
1698
1856
|
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'queryPwd', [_mobx.action], {
|
|
1699
1857
|
enumerable: true,
|
|
1700
1858
|
initializer: function initializer() {
|
|
1701
|
-
var
|
|
1859
|
+
var _this14 = this;
|
|
1702
1860
|
|
|
1703
1861
|
return function (newPass, newPassConfirm) {
|
|
1704
1862
|
if (!newPass || !newPassConfirm) {
|
|
@@ -1710,7 +1868,7 @@ var SettlementStore = (_class = function () {
|
|
|
1710
1868
|
var idstore = (0, _tplusPoslogin.PosInitData)('storeID');
|
|
1711
1869
|
return (0, _tplusApi.ccApi)({
|
|
1712
1870
|
Idstore: idstore,
|
|
1713
|
-
meMemberId:
|
|
1871
|
+
meMemberId: _this14.paymode.currentMode.memberId,
|
|
1714
1872
|
oldPassword: null,
|
|
1715
1873
|
newPassword: _tplusApi.User.pwdEncrypt(newPassConfirm),
|
|
1716
1874
|
dataSource: "POS"
|
|
@@ -1724,140 +1882,140 @@ var SettlementStore = (_class = function () {
|
|
|
1724
1882
|
}), _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], {
|
|
1725
1883
|
enumerable: true,
|
|
1726
1884
|
initializer: function initializer() {
|
|
1727
|
-
var
|
|
1885
|
+
var _this15 = this;
|
|
1728
1886
|
|
|
1729
1887
|
return function () {
|
|
1730
|
-
var
|
|
1888
|
+
var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(_this) {
|
|
1731
1889
|
var _getLoginInfo, IdStore, StoreCode, resp;
|
|
1732
1890
|
|
|
1733
|
-
return _regenerator2.default.wrap(function
|
|
1891
|
+
return _regenerator2.default.wrap(function _callee11$(_context11) {
|
|
1734
1892
|
while (1) {
|
|
1735
|
-
switch (
|
|
1893
|
+
switch (_context11.prev = _context11.next) {
|
|
1736
1894
|
case 0:
|
|
1737
|
-
_getLoginInfo =
|
|
1738
|
-
|
|
1739
|
-
return (0, _tplusApi.tApi)({ Idmember:
|
|
1895
|
+
_getLoginInfo = _this15.getLoginInfo(), IdStore = _getLoginInfo.IdStore, StoreCode = _getLoginInfo.StoreCode;
|
|
1896
|
+
_context11.next = 3;
|
|
1897
|
+
return (0, _tplusApi.tApi)({ Idmember: _this15.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
|
|
1740
1898
|
|
|
1741
1899
|
case 3:
|
|
1742
|
-
resp =
|
|
1900
|
+
resp = _context11.sent;
|
|
1743
1901
|
|
|
1744
1902
|
_this.member = resp;
|
|
1745
1903
|
_this.paymode.updateMemberStorageCardNo(resp.StorageCardNo, resp.WalletEnabled);
|
|
1746
|
-
return
|
|
1904
|
+
return _context11.abrupt('return', _promise2.default.resolve(resp));
|
|
1747
1905
|
|
|
1748
1906
|
case 7:
|
|
1749
1907
|
case 'end':
|
|
1750
|
-
return
|
|
1908
|
+
return _context11.stop();
|
|
1751
1909
|
}
|
|
1752
1910
|
}
|
|
1753
|
-
},
|
|
1911
|
+
}, _callee11, _this15);
|
|
1754
1912
|
}));
|
|
1755
1913
|
|
|
1756
|
-
return function (
|
|
1757
|
-
return
|
|
1914
|
+
return function (_x7) {
|
|
1915
|
+
return _ref24.apply(this, arguments);
|
|
1758
1916
|
};
|
|
1759
1917
|
}();
|
|
1760
1918
|
}
|
|
1761
1919
|
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'updateCurrentMode', [_mobx.action], {
|
|
1762
1920
|
enumerable: true,
|
|
1763
1921
|
initializer: function initializer() {
|
|
1764
|
-
var
|
|
1922
|
+
var _this16 = this;
|
|
1765
1923
|
|
|
1766
1924
|
return function () {
|
|
1767
|
-
var
|
|
1925
|
+
var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(memberId) {
|
|
1768
1926
|
var result;
|
|
1769
|
-
return _regenerator2.default.wrap(function
|
|
1927
|
+
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
|
1770
1928
|
while (1) {
|
|
1771
|
-
switch (
|
|
1929
|
+
switch (_context12.prev = _context12.next) {
|
|
1772
1930
|
case 0:
|
|
1773
|
-
|
|
1931
|
+
_context12.next = 2;
|
|
1774
1932
|
return (0, _tplusApi.ccApi)({}, '/marketingtool/MeStorageCard/getCardInfoByMemberId/' + memberId + '/' + true, false, false, { method: 'get' });
|
|
1775
1933
|
|
|
1776
1934
|
case 2:
|
|
1777
|
-
result =
|
|
1935
|
+
result = _context12.sent;
|
|
1778
1936
|
|
|
1779
1937
|
if (!(result && result.data.length)) {
|
|
1780
|
-
|
|
1938
|
+
_context12.next = 20;
|
|
1781
1939
|
break;
|
|
1782
1940
|
}
|
|
1783
1941
|
|
|
1784
1942
|
if (!(result.data.length === 1)) {
|
|
1785
|
-
|
|
1943
|
+
_context12.next = 9;
|
|
1786
1944
|
break;
|
|
1787
1945
|
}
|
|
1788
1946
|
|
|
1789
|
-
|
|
1790
|
-
return
|
|
1947
|
+
_this16.paymode.updateCardInfo(result.data[0]);
|
|
1948
|
+
return _context12.abrupt('return', result.data);
|
|
1791
1949
|
|
|
1792
1950
|
case 9:
|
|
1793
1951
|
if (!(result.data && result.data.length === 1)) {
|
|
1794
|
-
|
|
1952
|
+
_context12.next = 14;
|
|
1795
1953
|
break;
|
|
1796
1954
|
}
|
|
1797
1955
|
|
|
1798
|
-
|
|
1799
|
-
return
|
|
1956
|
+
_this16.paymode.updateCardInfo(result.data[0]);
|
|
1957
|
+
return _context12.abrupt('return', result.data);
|
|
1800
1958
|
|
|
1801
1959
|
case 14:
|
|
1802
1960
|
if (!(result.data && result.data.length > 1)) {
|
|
1803
|
-
|
|
1961
|
+
_context12.next = 18;
|
|
1804
1962
|
break;
|
|
1805
1963
|
}
|
|
1806
1964
|
|
|
1807
|
-
return
|
|
1965
|
+
return _context12.abrupt('return', result.data);
|
|
1808
1966
|
|
|
1809
1967
|
case 18:
|
|
1810
1968
|
_message2.default.warn('没有可用储值卡!');
|
|
1811
|
-
return
|
|
1969
|
+
return _context12.abrupt('return', false);
|
|
1812
1970
|
|
|
1813
1971
|
case 20:
|
|
1814
1972
|
case 'end':
|
|
1815
|
-
return
|
|
1973
|
+
return _context12.stop();
|
|
1816
1974
|
}
|
|
1817
1975
|
}
|
|
1818
|
-
},
|
|
1976
|
+
}, _callee12, _this16);
|
|
1819
1977
|
}));
|
|
1820
1978
|
|
|
1821
|
-
return function (
|
|
1822
|
-
return
|
|
1979
|
+
return function (_x8) {
|
|
1980
|
+
return _ref25.apply(this, arguments);
|
|
1823
1981
|
};
|
|
1824
1982
|
}();
|
|
1825
1983
|
}
|
|
1826
1984
|
}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, 'updateCardInfo', [_mobx.action], {
|
|
1827
1985
|
enumerable: true,
|
|
1828
1986
|
initializer: function initializer() {
|
|
1829
|
-
var
|
|
1987
|
+
var _this17 = this;
|
|
1830
1988
|
|
|
1831
|
-
return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
1989
|
+
return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13() {
|
|
1832
1990
|
var address, result;
|
|
1833
|
-
return _regenerator2.default.wrap(function
|
|
1991
|
+
return _regenerator2.default.wrap(function _callee13$(_context13) {
|
|
1834
1992
|
while (1) {
|
|
1835
|
-
switch (
|
|
1993
|
+
switch (_context13.prev = _context13.next) {
|
|
1836
1994
|
case 0:
|
|
1837
|
-
address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' +
|
|
1838
|
-
|
|
1995
|
+
address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + _this17.paymode.currentMode.storageCardNo;
|
|
1996
|
+
_context13.next = 3;
|
|
1839
1997
|
return (0, _tplusApi.ccApi)({}, address, false, false, { method: 'get', timeout_skip: true });
|
|
1840
1998
|
|
|
1841
1999
|
case 3:
|
|
1842
|
-
result =
|
|
2000
|
+
result = _context13.sent;
|
|
1843
2001
|
|
|
1844
|
-
|
|
2002
|
+
_this17.paymode.updateCardInfo(result.data);
|
|
1845
2003
|
|
|
1846
2004
|
case 5:
|
|
1847
2005
|
case 'end':
|
|
1848
|
-
return
|
|
2006
|
+
return _context13.stop();
|
|
1849
2007
|
}
|
|
1850
2008
|
}
|
|
1851
|
-
},
|
|
2009
|
+
}, _callee13, _this17);
|
|
1852
2010
|
}));
|
|
1853
2011
|
}
|
|
1854
2012
|
}), _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), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, 'setVoucherDate', [_mobx.action], {
|
|
1855
2013
|
enumerable: true,
|
|
1856
2014
|
initializer: function initializer() {
|
|
1857
|
-
var
|
|
2015
|
+
var _this18 = this;
|
|
1858
2016
|
|
|
1859
2017
|
return function () {
|
|
1860
|
-
|
|
2018
|
+
_this18.dto.VoucherDate = new Date();
|
|
1861
2019
|
};
|
|
1862
2020
|
}
|
|
1863
2021
|
}), _applyDecoratedDescriptor(_class.prototype, 'setDtoID', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'setDtoID'), _class.prototype)), _class);
|
|
@@ -1958,7 +2116,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1958
2116
|
}, {
|
|
1959
2117
|
key: 'calcDjqCheckValue',
|
|
1960
2118
|
value: function calcDjqCheckValue(q1, dto, params) {
|
|
1961
|
-
var
|
|
2119
|
+
var _this19 = this;
|
|
1962
2120
|
|
|
1963
2121
|
var useLimitPerOrder = (0, _tplusPoslogin.PosInitData)('UseLimitPerOrder');
|
|
1964
2122
|
var qList = (0, _filter3.default)(this.currentMode.djqs, function (djq) {
|
|
@@ -1972,12 +2130,12 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1972
2130
|
this.checkList = [];
|
|
1973
2131
|
}
|
|
1974
2132
|
|
|
1975
|
-
var
|
|
1976
|
-
isNewRetailBCPos =
|
|
2133
|
+
var _ref27 = _mutantsUtil.platform || {},
|
|
2134
|
+
isNewRetailBCPos = _ref27.isNewRetailBCPos;
|
|
1977
2135
|
|
|
1978
|
-
var _enumController$
|
|
1979
|
-
PayStyle = _enumController$
|
|
1980
|
-
Differentiate = _enumController$
|
|
2136
|
+
var _enumController$getEn18 = _mutantsUtil.enumController.getEnumOj(),
|
|
2137
|
+
PayStyle = _enumController$getEn18.PayStyle,
|
|
2138
|
+
Differentiate = _enumController$getEn18.Differentiate;
|
|
1981
2139
|
|
|
1982
2140
|
if (q1) {
|
|
1983
2141
|
if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
|
|
@@ -2005,7 +2163,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2005
2163
|
if (!q1.checked) {
|
|
2006
2164
|
this.checkList.forEach(function (ele, i) {
|
|
2007
2165
|
if (ele.id === q1.id) {
|
|
2008
|
-
|
|
2166
|
+
_this19.checkList.splice(i, 1);
|
|
2009
2167
|
}
|
|
2010
2168
|
});
|
|
2011
2169
|
} else {
|
|
@@ -2077,24 +2235,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2077
2235
|
if (result && result.length != 0) {
|
|
2078
2236
|
result.forEach(function (element, index) {
|
|
2079
2237
|
var djq1 = false;
|
|
2080
|
-
|
|
2238
|
+
_this19.currentMode.djqs.forEach(function (djq) {
|
|
2081
2239
|
if (element.id === djq.id) {
|
|
2082
2240
|
djq1 = true;
|
|
2083
2241
|
}
|
|
2084
2242
|
});
|
|
2085
2243
|
|
|
2086
|
-
var
|
|
2087
|
-
couponCode =
|
|
2088
|
-
name =
|
|
2089
|
-
tieredAmountResult =
|
|
2090
|
-
fromDate =
|
|
2091
|
-
dateMount =
|
|
2092
|
-
promoMethodEnum =
|
|
2093
|
-
discountPct =
|
|
2094
|
-
nominalAmount =
|
|
2095
|
-
promoId =
|
|
2096
|
-
id =
|
|
2097
|
-
doorsill =
|
|
2244
|
+
var _ref28 = element || {},
|
|
2245
|
+
couponCode = _ref28.couponCode,
|
|
2246
|
+
name = _ref28.name,
|
|
2247
|
+
tieredAmountResult = _ref28.tieredAmountResult,
|
|
2248
|
+
fromDate = _ref28.fromDate,
|
|
2249
|
+
dateMount = _ref28.dateMount,
|
|
2250
|
+
promoMethodEnum = _ref28.promoMethodEnum,
|
|
2251
|
+
discountPct = _ref28.discountPct,
|
|
2252
|
+
nominalAmount = _ref28.nominalAmount,
|
|
2253
|
+
promoId = _ref28.promoId,
|
|
2254
|
+
id = _ref28.id,
|
|
2255
|
+
doorsill = _ref28.doorsill;
|
|
2098
2256
|
|
|
2099
2257
|
var condValue = tieredAmountResult.condValue,
|
|
2100
2258
|
promoDiscount = tieredAmountResult.promoDiscount,
|
|
@@ -2122,10 +2280,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2122
2280
|
// couponCategoryEnum: tieredAmountResult.couponCategoryEnum,
|
|
2123
2281
|
// id
|
|
2124
2282
|
// })
|
|
2125
|
-
|
|
2283
|
+
_this19.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
|
|
2126
2284
|
djq1 = false;
|
|
2127
2285
|
} else {
|
|
2128
|
-
|
|
2286
|
+
_this19.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
|
|
2129
2287
|
// this.currentMode.djqs[0].couponCategoryEnum = 'couponCategoryEnum';
|
|
2130
2288
|
// djq1.couponCategoryEnum = element.tieredAmountResult.couponCategoryEnum
|
|
2131
2289
|
}
|
|
@@ -2138,11 +2296,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2138
2296
|
}, {
|
|
2139
2297
|
key: 'calcDjqValue',
|
|
2140
2298
|
value: function calcDjqValue(q1) {
|
|
2141
|
-
var
|
|
2142
|
-
isNewRetailBCPos =
|
|
2299
|
+
var _ref29 = _mutantsUtil.platform || {},
|
|
2300
|
+
isNewRetailBCPos = _ref29.isNewRetailBCPos;
|
|
2143
2301
|
|
|
2144
|
-
var _enumController$
|
|
2145
|
-
Differentiate = _enumController$
|
|
2302
|
+
var _enumController$getEn19 = _mutantsUtil.enumController.getEnumOj(),
|
|
2303
|
+
Differentiate = _enumController$getEn19.Differentiate;
|
|
2146
2304
|
|
|
2147
2305
|
if (q1) {
|
|
2148
2306
|
if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
|
|
@@ -2204,8 +2362,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2204
2362
|
this.currentMode.errinfo = '';
|
|
2205
2363
|
var sum = this.amount;
|
|
2206
2364
|
|
|
2207
|
-
var _enumController$
|
|
2208
|
-
PayStyle = _enumController$
|
|
2365
|
+
var _enumController$getEn20 = _mutantsUtil.enumController.getEnumOj(),
|
|
2366
|
+
PayStyle = _enumController$getEn20.PayStyle;
|
|
2209
2367
|
|
|
2210
2368
|
this.thePaymodes && this.thePaymodes.forEach(function (mode) {
|
|
2211
2369
|
if (mode.paymentType === PayStyle.hyczk) {
|
|
@@ -2229,30 +2387,29 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2229
2387
|
}, {
|
|
2230
2388
|
key: 'setPaymodes',
|
|
2231
2389
|
value: function () {
|
|
2232
|
-
var
|
|
2233
|
-
var
|
|
2390
|
+
var _ref30 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14(type, isIntegralExchange) {
|
|
2391
|
+
var _this20 = this;
|
|
2234
2392
|
|
|
2235
|
-
var _enumController$
|
|
2393
|
+
var _enumController$getEn21, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
|
|
2236
2394
|
|
|
2237
|
-
return _regenerator2.default.wrap(function
|
|
2395
|
+
return _regenerator2.default.wrap(function _callee14$(_context14) {
|
|
2238
2396
|
while (1) {
|
|
2239
|
-
switch (
|
|
2397
|
+
switch (_context14.prev = _context14.next) {
|
|
2240
2398
|
case 0:
|
|
2241
|
-
_enumController$
|
|
2399
|
+
_enumController$getEn21 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn21.settleStyleType, PayStyle = _enumController$getEn21.PayStyle;
|
|
2242
2400
|
memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
|
|
2243
2401
|
param = { 'settleStyleType': type == 1 ? memberStoreCode : settlementCode, isIntegralExchange: isIntegralExchange };
|
|
2244
|
-
|
|
2402
|
+
_context14.next = 5;
|
|
2245
2403
|
return (0, _tplusApi.tApi)({ param: param }, 'chanjet.RE.NewPos.GetNewStoreSettleStyles', false, false);
|
|
2246
2404
|
|
|
2247
2405
|
case 5:
|
|
2248
|
-
modes =
|
|
2406
|
+
modes = _context14.sent;
|
|
2249
2407
|
|
|
2250
2408
|
if (modes) {
|
|
2251
2409
|
(0, _mobx.runInAction)(function () {
|
|
2252
2410
|
var paymodes = [];
|
|
2253
2411
|
(0, _each3.default)(modes.SettleStyles, function (mode, index) {
|
|
2254
2412
|
//产品需求确认会员储值卡结算方式前端展示统一调整为“储值卡" tuzha by 2020-07-08
|
|
2255
|
-
|
|
2256
2413
|
if (mode.Code == PayStyle.hyczk) {
|
|
2257
2414
|
mode.Name = '储值卡';
|
|
2258
2415
|
}
|
|
@@ -2267,24 +2424,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2267
2424
|
idBankAccount: mode.IdBankAccount,
|
|
2268
2425
|
exchangeRate: mode.Currency ? mode.Currency.ExchangeRate : 1,
|
|
2269
2426
|
idCurrency: mode.Currency ? mode.Currency.ID : -1,
|
|
2270
|
-
calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88"
|
|
2427
|
+
calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88",
|
|
2428
|
+
thridPayment: mode.ThirdPaymentInfo
|
|
2271
2429
|
});
|
|
2272
2430
|
});
|
|
2273
|
-
|
|
2274
|
-
//modes.QuickSettleStyles
|
|
2431
|
+
_this20.paymodes = paymodes;
|
|
2275
2432
|
});
|
|
2276
2433
|
}
|
|
2277
2434
|
|
|
2278
2435
|
case 7:
|
|
2279
2436
|
case 'end':
|
|
2280
|
-
return
|
|
2437
|
+
return _context14.stop();
|
|
2281
2438
|
}
|
|
2282
2439
|
}
|
|
2283
|
-
},
|
|
2440
|
+
}, _callee14, this);
|
|
2284
2441
|
}));
|
|
2285
2442
|
|
|
2286
|
-
function setPaymodes(
|
|
2287
|
-
return
|
|
2443
|
+
function setPaymodes(_x9, _x10) {
|
|
2444
|
+
return _ref30.apply(this, arguments);
|
|
2288
2445
|
}
|
|
2289
2446
|
|
|
2290
2447
|
return setPaymodes;
|
|
@@ -2339,19 +2496,19 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2339
2496
|
}), _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), _descriptor13 = _applyDecoratedDescriptor(_class3.prototype, 'calcCheckList', [_mobx.action], {
|
|
2340
2497
|
enumerable: true,
|
|
2341
2498
|
initializer: function initializer() {
|
|
2342
|
-
var
|
|
2499
|
+
var _this21 = this;
|
|
2343
2500
|
|
|
2344
2501
|
return function () {
|
|
2345
|
-
|
|
2502
|
+
_this21.checkList = [];
|
|
2346
2503
|
};
|
|
2347
2504
|
}
|
|
2348
2505
|
}), _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), _descriptor14 = _applyDecoratedDescriptor(_class3.prototype, 'setCouponNum', [_mobx.action], {
|
|
2349
2506
|
enumerable: true,
|
|
2350
2507
|
initializer: function initializer() {
|
|
2351
|
-
var
|
|
2508
|
+
var _this22 = this;
|
|
2352
2509
|
|
|
2353
2510
|
return function (id, couponNum, promoMethodEnum, nominalAmount, promoDiscount) {
|
|
2354
|
-
|
|
2511
|
+
_this22.currentMode.djqs.forEach(function (ele) {
|
|
2355
2512
|
if (ele.id === id) {
|
|
2356
2513
|
promoMethodEnum == "CASH_COUPON" ? ele.amount = nominalAmount : ele.amount = promoDiscount;
|
|
2357
2514
|
ele.couponCategoryEnum = couponNum;
|
|
@@ -2364,7 +2521,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2364
2521
|
}), _descriptor15 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
|
|
2365
2522
|
enumerable: true,
|
|
2366
2523
|
initializer: function initializer() {
|
|
2367
|
-
var
|
|
2524
|
+
var _this23 = this;
|
|
2368
2525
|
|
|
2369
2526
|
return function (promoCouponCode, name, IsEnable, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id) {
|
|
2370
2527
|
var djq = {
|
|
@@ -2386,13 +2543,13 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2386
2543
|
couponCategoryEnum: couponCategoryEnum,
|
|
2387
2544
|
id: id
|
|
2388
2545
|
};
|
|
2389
|
-
|
|
2546
|
+
_this23.currentMode.djqs.push(djq);
|
|
2390
2547
|
};
|
|
2391
2548
|
}
|
|
2392
2549
|
}), _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);
|
|
2393
2550
|
var Member = exports.Member = (_class5 = function () {
|
|
2394
2551
|
function Member(m) {
|
|
2395
|
-
var
|
|
2552
|
+
var _this24 = this;
|
|
2396
2553
|
|
|
2397
2554
|
(0, _classCallCheck3.default)(this, Member);
|
|
2398
2555
|
|
|
@@ -2415,15 +2572,15 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2415
2572
|
return key == 'canusedbalancestorage';
|
|
2416
2573
|
});
|
|
2417
2574
|
|
|
2418
|
-
var
|
|
2419
|
-
isNewRetailBCPos =
|
|
2575
|
+
var _ref31 = _mutantsUtil.platform || {},
|
|
2576
|
+
isNewRetailBCPos = _ref31.isNewRetailBCPos;
|
|
2420
2577
|
|
|
2421
2578
|
(0, _mobx.runInAction)(function () {
|
|
2422
|
-
|
|
2579
|
+
_this24.cardNo = m.CardCode;
|
|
2423
2580
|
if (index >= 0) {
|
|
2424
|
-
|
|
2581
|
+
_this24.balance = parseFloat(m.DynamicPropertyValues[index]);
|
|
2425
2582
|
} else {
|
|
2426
|
-
|
|
2583
|
+
_this24.balance = _this24.rawbalance;
|
|
2427
2584
|
}
|
|
2428
2585
|
});
|
|
2429
2586
|
this.needPwd = m.MemberType ? m.MemberType.IsNeedPwd : false;
|