tplus-components-touch 3.33.4 → 3.33.8
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 +24 -27
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +1686 -1686
- package/dist/components/settlement/settlementStore.js +452 -289
- 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
|
@@ -41,7 +41,7 @@ var _createClass2 = require('babel-runtime/helpers/createClass');
|
|
|
41
41
|
|
|
42
42
|
var _createClass3 = _interopRequireDefault(_createClass2);
|
|
43
43
|
|
|
44
|
-
var _desc, _value, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _desc2, _value2, _class3,
|
|
44
|
+
var _desc, _value, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _desc2, _value2, _class3, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _desc3, _value3, _class5, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20;
|
|
45
45
|
|
|
46
46
|
var _mobx = require('mobx');
|
|
47
47
|
|
|
@@ -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;
|
|
@@ -466,6 +467,8 @@ var SettlementStore = (_class = function () {
|
|
|
466
467
|
});
|
|
467
468
|
};
|
|
468
469
|
|
|
470
|
+
_initDefineProp(this, 'setVoucherDate', _descriptor5, this);
|
|
471
|
+
|
|
469
472
|
this.checkIntegralExchangeReturn = function (id) {
|
|
470
473
|
return new _promise2.default(function (resolve, reject) {
|
|
471
474
|
(0, _tplusApi.tApi)({ param: { refVoucherId: id } }, 'chanjet.RE.NewPos.GetNewIntegralExchange', false, false, { timeout_skip: true }).then(function (resp) {
|
|
@@ -601,7 +604,8 @@ var SettlementStore = (_class = function () {
|
|
|
601
604
|
authCode: detail.PaymentCode,
|
|
602
605
|
steadCashIntegral: detail.SteadCashIntegral,
|
|
603
606
|
overchargesAmount: detail.OverchargesAmount,
|
|
604
|
-
boriginReturn: true
|
|
607
|
+
boriginReturn: true,
|
|
608
|
+
thirdPaymentReturnInfo: detail.ThirdPaymentReturnInfo
|
|
605
609
|
});
|
|
606
610
|
_this5.paymode.currentMode = newmode;
|
|
607
611
|
if (themode.paymentType == PayStyle.djq) {
|
|
@@ -948,6 +952,7 @@ var SettlementStore = (_class = function () {
|
|
|
948
952
|
name: themode.name,
|
|
949
953
|
exchangeRate: themode.exchangeRate,
|
|
950
954
|
calDirection: themode.calDirection,
|
|
955
|
+
thridPayment: themode.thridPayment,
|
|
951
956
|
value: value,
|
|
952
957
|
value2: (0, _utils.getFixedNumber)(themode.calDirection == "88" ? value / themode.exchangeRate : value * themode.exchangeRate),
|
|
953
958
|
value3: value,
|
|
@@ -976,7 +981,7 @@ var SettlementStore = (_class = function () {
|
|
|
976
981
|
if (type == PayStyle.hyczk || type == PayStyle.jfdx || type == PayStyle.djq) {
|
|
977
982
|
this.setMaxAmount(type, mode);
|
|
978
983
|
}
|
|
979
|
-
console.log(mode);
|
|
984
|
+
console.log('\u5F53\u524D\u64CD\u4F5C\u7ED3\u7B97\u65B9\u5F0F\u4FE1\u606F:' + mode);
|
|
980
985
|
return mode;
|
|
981
986
|
}
|
|
982
987
|
}, {
|
|
@@ -1013,15 +1018,6 @@ var SettlementStore = (_class = function () {
|
|
|
1013
1018
|
key: 'changeFocusOnly',
|
|
1014
1019
|
value: function changeFocusOnly(type) {
|
|
1015
1020
|
this.paymode.currentFocus = type;
|
|
1016
|
-
// 获取焦点时带入剩余的值
|
|
1017
|
-
// let mode=_find(this.paymode.thePaymodes,{'paymentType':type});
|
|
1018
|
-
// if(mode && this.isIntegralExchange){
|
|
1019
|
-
// const shouldSetValue =getFixedNumber(parseFloat(this.paymode.receivable) + parseFloat(mode.value));
|
|
1020
|
-
// mode.value = shouldSetValue;
|
|
1021
|
-
// mode.value2 = getFixedNumber(mode.calDirection=="88"?shouldSetValue / mode.exchangeRate:(shouldSetValue * mode.exchangeRate));
|
|
1022
|
-
// mode.value3 = shouldSetValue;
|
|
1023
|
-
// this.paymode.calcReserved();
|
|
1024
|
-
// }
|
|
1025
1021
|
}
|
|
1026
1022
|
}, {
|
|
1027
1023
|
key: 'changeClickFocusOnly',
|
|
@@ -1083,6 +1079,13 @@ var SettlementStore = (_class = function () {
|
|
|
1083
1079
|
var _enumController$getEn12 = _mutantsUtil.enumController.getEnumOj(),
|
|
1084
1080
|
PayStyle = _enumController$getEn12.PayStyle;
|
|
1085
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
|
+
}
|
|
1086
1089
|
var pos = this.paymode.thePaymodes.length;
|
|
1087
1090
|
if (type == PayStyle.hyczk) {
|
|
1088
1091
|
var index = (0, _findLastIndex3.default)(this.paymode.thePaymodes, function (m) {
|
|
@@ -1090,8 +1093,6 @@ var SettlementStore = (_class = function () {
|
|
|
1090
1093
|
});
|
|
1091
1094
|
pos = index == -1 ? pos : index + 1;
|
|
1092
1095
|
}
|
|
1093
|
-
// this.paymode.thePaymodes.push(this.genNewMode(type) );
|
|
1094
|
-
|
|
1095
1096
|
this.paymode.thePaymodes.splice(pos, 0, this.genNewMode(type, this.newStyle && type == PayStyle.hyczk, undefined, isQuick));
|
|
1096
1097
|
this.paymode.calcReserved();
|
|
1097
1098
|
}
|
|
@@ -1154,7 +1155,7 @@ var SettlementStore = (_class = function () {
|
|
|
1154
1155
|
key: 'commit',
|
|
1155
1156
|
value: function () {
|
|
1156
1157
|
var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4(bTest) {
|
|
1157
|
-
var
|
|
1158
|
+
var ret, _ref11, _ref11$data, code, returnMsg, state, _ret;
|
|
1158
1159
|
|
|
1159
1160
|
return _regenerator2.default.wrap(function _callee4$(_context4) {
|
|
1160
1161
|
while (1) {
|
|
@@ -1170,72 +1171,71 @@ var SettlementStore = (_class = function () {
|
|
|
1170
1171
|
return _context4.abrupt('return', _promise2.default.resolve(true));
|
|
1171
1172
|
|
|
1172
1173
|
case 3:
|
|
1173
|
-
|
|
1174
|
-
_context4.prev = 4;
|
|
1174
|
+
_context4.prev = 3;
|
|
1175
1175
|
|
|
1176
1176
|
if (!(this.type == 1)) {
|
|
1177
|
-
_context4.next =
|
|
1177
|
+
_context4.next = 23;
|
|
1178
1178
|
break;
|
|
1179
1179
|
}
|
|
1180
1180
|
|
|
1181
|
-
_context4.next =
|
|
1181
|
+
_context4.next = 7;
|
|
1182
1182
|
return this.findStorageBillValidate();
|
|
1183
1183
|
|
|
1184
|
-
case
|
|
1184
|
+
case 7:
|
|
1185
1185
|
ret = _context4.sent;
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
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;
|
|
1189
1189
|
|
|
1190
1190
|
if (!(code && code == 10001)) {
|
|
1191
|
-
_context4.next =
|
|
1191
|
+
_context4.next = 19;
|
|
1192
1192
|
break;
|
|
1193
1193
|
}
|
|
1194
1194
|
|
|
1195
|
-
_context4.next =
|
|
1195
|
+
_context4.next = 14;
|
|
1196
1196
|
return this.repeatStorageModal(returnMsg);
|
|
1197
1197
|
|
|
1198
|
-
case
|
|
1198
|
+
case 14:
|
|
1199
1199
|
state = _context4.sent;
|
|
1200
1200
|
|
|
1201
1201
|
if (!(state === false)) {
|
|
1202
|
-
_context4.next =
|
|
1202
|
+
_context4.next = 17;
|
|
1203
1203
|
break;
|
|
1204
1204
|
}
|
|
1205
1205
|
|
|
1206
1206
|
return _context4.abrupt('return', _promise2.default.resolve(false));
|
|
1207
1207
|
|
|
1208
|
-
case
|
|
1209
|
-
_context4.next =
|
|
1208
|
+
case 17:
|
|
1209
|
+
_context4.next = 21;
|
|
1210
1210
|
break;
|
|
1211
1211
|
|
|
1212
|
-
case
|
|
1213
|
-
_context4.next =
|
|
1212
|
+
case 19:
|
|
1213
|
+
_context4.next = 21;
|
|
1214
1214
|
return this.saveMember();
|
|
1215
1215
|
|
|
1216
|
-
case
|
|
1216
|
+
case 21:
|
|
1217
1217
|
_context4.next = 32;
|
|
1218
1218
|
break;
|
|
1219
1219
|
|
|
1220
|
-
case
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
break;
|
|
1224
|
-
}
|
|
1220
|
+
case 23:
|
|
1221
|
+
_context4.next = 25;
|
|
1222
|
+
return _mutantsMicrofx.stores.offlineSys.generatorCode(this.dto);
|
|
1225
1223
|
|
|
1224
|
+
case 25:
|
|
1226
1225
|
_context4.next = 27;
|
|
1227
|
-
return
|
|
1226
|
+
return this.save();
|
|
1228
1227
|
|
|
1229
1228
|
case 27:
|
|
1230
|
-
|
|
1231
|
-
return this.save();
|
|
1229
|
+
_ret = _context4.sent;
|
|
1232
1230
|
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
_context4.next = 32;
|
|
1231
|
+
if (!(_ret === false)) {
|
|
1232
|
+
_context4.next = 30;
|
|
1236
1233
|
break;
|
|
1237
1234
|
}
|
|
1238
1235
|
|
|
1236
|
+
return _context4.abrupt('return', _promise2.default.resolve(false));
|
|
1237
|
+
|
|
1238
|
+
case 30:
|
|
1239
1239
|
_context4.next = 32;
|
|
1240
1240
|
return _mutantsMicrofx.stores.offlineSys.retailSequenceUpload();
|
|
1241
1241
|
|
|
@@ -1244,17 +1244,19 @@ var SettlementStore = (_class = function () {
|
|
|
1244
1244
|
|
|
1245
1245
|
case 35:
|
|
1246
1246
|
_context4.prev = 35;
|
|
1247
|
-
_context4.t0 = _context4['catch'](
|
|
1247
|
+
_context4.t0 = _context4['catch'](3);
|
|
1248
1248
|
|
|
1249
1249
|
console.error('settlementStore.commit失败,错误信息:' + _context4.t0);
|
|
1250
|
+
//其他支付失败时,处理二开支付情况。
|
|
1251
|
+
this.thirdPayRefund();
|
|
1250
1252
|
return _context4.abrupt('return', _promise2.default.resolve(_context4.t0));
|
|
1251
1253
|
|
|
1252
|
-
case
|
|
1254
|
+
case 40:
|
|
1253
1255
|
case 'end':
|
|
1254
1256
|
return _context4.stop();
|
|
1255
1257
|
}
|
|
1256
1258
|
}
|
|
1257
|
-
}, _callee4, this, [[
|
|
1259
|
+
}, _callee4, this, [[3, 35]]);
|
|
1258
1260
|
}));
|
|
1259
1261
|
|
|
1260
1262
|
function commit(_x3) {
|
|
@@ -1316,16 +1318,16 @@ var SettlementStore = (_class = function () {
|
|
|
1316
1318
|
}, {
|
|
1317
1319
|
key: 'save',
|
|
1318
1320
|
value: function () {
|
|
1319
|
-
var
|
|
1321
|
+
var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
|
|
1320
1322
|
var _this12 = this;
|
|
1321
1323
|
|
|
1322
|
-
var _enumController$getEn16, PayStyle,
|
|
1324
|
+
var _enumController$getEn16, PayStyle, TradeType, IPMSG, RetailTypeEnum, dtoParams, payList, amount, tradeType, ret, _ref13, type, data, msg, code;
|
|
1323
1325
|
|
|
1324
1326
|
return _regenerator2.default.wrap(function _callee5$(_context5) {
|
|
1325
1327
|
while (1) {
|
|
1326
1328
|
switch (_context5.prev = _context5.next) {
|
|
1327
1329
|
case 0:
|
|
1328
|
-
_enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn16.PayStyle;
|
|
1330
|
+
_enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn16.PayStyle, TradeType = _enumController$getEn16.TradeType;
|
|
1329
1331
|
|
|
1330
1332
|
(0, _mobx.runInAction)(function () {
|
|
1331
1333
|
_this12.dto.RetailPaymentDetails = [];
|
|
@@ -1373,7 +1375,9 @@ var SettlementStore = (_class = function () {
|
|
|
1373
1375
|
OverchargesAmount: mode.overchargesAmount,
|
|
1374
1376
|
DynamicPropertyKeys: [],
|
|
1375
1377
|
DynamicPropertyValues: [],
|
|
1376
|
-
DataSource: { Id: _this12.dataSource }
|
|
1378
|
+
DataSource: { Id: _this12.dataSource },
|
|
1379
|
+
ThirdPaymentInfo: themode.thridPayment || null,
|
|
1380
|
+
ThirdPaymentReturnInfo: mode.thirdPaymentReturnInfo || null
|
|
1377
1381
|
});
|
|
1378
1382
|
if (mode.paymentType == PayStyle.djq) {
|
|
1379
1383
|
(0, _each3.default)(_this12.paymode.checkList && _this12.paymode.checkList.length ? _this12.paymode.checkList : mode.djqs, function (djq) {
|
|
@@ -1393,47 +1397,22 @@ var SettlementStore = (_class = function () {
|
|
|
1393
1397
|
}
|
|
1394
1398
|
}
|
|
1395
1399
|
});
|
|
1396
|
-
|
|
1397
|
-
var _ref14 = _mutantsUtil.platform || {},
|
|
1398
|
-
isNewRetailBCPos = _ref14.isNewRetailBCPos;
|
|
1399
|
-
|
|
1400
1400
|
if (_this12.dto.RetailStorageDetails.length > 0) {
|
|
1401
1401
|
var themode = (0, _find3.default)(_this12.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
|
|
1402
|
-
|
|
1403
|
-
_this12.
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
});
|
|
1414
|
-
} else {
|
|
1415
|
-
_this12.dto.RetailPaymentDetails.push({
|
|
1416
|
-
Code: _this12.paymode.counter,
|
|
1417
|
-
OrigAmount: czkSum,
|
|
1418
|
-
Amount: czkSum,
|
|
1419
|
-
IdsettleStyle: themode.idSettleStyle,
|
|
1420
|
-
IdbankAccount: themode.idBankAccount,
|
|
1421
|
-
DynamicPropertyKeys: [],
|
|
1422
|
-
DynamicPropertyValues: [],
|
|
1423
|
-
DataSource: { Id: _this12.dataSource }
|
|
1424
|
-
});
|
|
1425
|
-
}
|
|
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
|
+
});
|
|
1426
1413
|
}
|
|
1427
1414
|
});
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
|
|
1431
|
-
|
|
1432
|
-
if (!isNewRetailBCPos) {
|
|
1433
|
-
_context5.next = 20;
|
|
1434
|
-
break;
|
|
1435
|
-
}
|
|
1436
|
-
|
|
1415
|
+
console.log('\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
|
|
1437
1416
|
// cc结算调用
|
|
1438
1417
|
IPMSG = {};
|
|
1439
1418
|
|
|
@@ -1444,49 +1423,79 @@ var SettlementStore = (_class = function () {
|
|
|
1444
1423
|
_context5.t1 = this.dto.IdbusiType == 37;
|
|
1445
1424
|
|
|
1446
1425
|
if (!_context5.t1) {
|
|
1447
|
-
_context5.next =
|
|
1426
|
+
_context5.next = 11;
|
|
1448
1427
|
break;
|
|
1449
1428
|
}
|
|
1450
1429
|
|
|
1451
|
-
_context5.next =
|
|
1430
|
+
_context5.next = 10;
|
|
1452
1431
|
return this.checkIntegralExchangeReturn(this.dto.RetailDetails[0].ReturnSourceId);
|
|
1453
1432
|
|
|
1454
|
-
case
|
|
1433
|
+
case 10:
|
|
1455
1434
|
_context5.t1 = _context5.sent;
|
|
1456
1435
|
|
|
1457
|
-
case
|
|
1436
|
+
case 11:
|
|
1458
1437
|
_context5.t0 = _context5.t1;
|
|
1459
1438
|
|
|
1460
1439
|
if (_context5.t0) {
|
|
1461
|
-
_context5.next =
|
|
1440
|
+
_context5.next = 14;
|
|
1462
1441
|
break;
|
|
1463
1442
|
}
|
|
1464
1443
|
|
|
1465
1444
|
_context5.t0 = this.dto.IdbusiType != 37;
|
|
1466
1445
|
|
|
1467
|
-
case
|
|
1446
|
+
case 14:
|
|
1468
1447
|
if (!_context5.t0) {
|
|
1469
|
-
_context5.next =
|
|
1448
|
+
_context5.next = 33;
|
|
1470
1449
|
break;
|
|
1471
1450
|
}
|
|
1472
1451
|
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
_this12.paymode.checkList = [];
|
|
1476
|
-
_this12.billID = resp.ID;
|
|
1477
|
-
}));
|
|
1452
|
+
dtoParams = (0, _extends3.default)({}, this.dto.cut(), { RetailOms: { RetailTypeEnum: RetailTypeEnum } });
|
|
1453
|
+
//处理存在二开支付情况
|
|
1478
1454
|
|
|
1479
|
-
|
|
1480
|
-
|
|
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;
|
|
1481
1480
|
break;
|
|
1482
1481
|
|
|
1483
|
-
case
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
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 = [];
|
|
1487
1496
|
}));
|
|
1488
1497
|
|
|
1489
|
-
case
|
|
1498
|
+
case 33:
|
|
1490
1499
|
case 'end':
|
|
1491
1500
|
return _context5.stop();
|
|
1492
1501
|
}
|
|
@@ -1495,16 +1504,162 @@ var SettlementStore = (_class = function () {
|
|
|
1495
1504
|
}));
|
|
1496
1505
|
|
|
1497
1506
|
function save() {
|
|
1498
|
-
return
|
|
1507
|
+
return _ref12.apply(this, arguments);
|
|
1499
1508
|
}
|
|
1500
1509
|
|
|
1501
1510
|
return save;
|
|
1502
1511
|
}()
|
|
1512
|
+
|
|
1513
|
+
//裁剪二开支付数据
|
|
1514
|
+
|
|
1503
1515
|
}, {
|
|
1504
|
-
key: '
|
|
1505
|
-
value: function
|
|
1506
|
-
|
|
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;
|
|
1507
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
|
+
}()
|
|
1508
1663
|
}, {
|
|
1509
1664
|
key: 'setDtoID',
|
|
1510
1665
|
value: function setDtoID(id) {
|
|
@@ -1513,35 +1668,35 @@ var SettlementStore = (_class = function () {
|
|
|
1513
1668
|
}, {
|
|
1514
1669
|
key: 'querySettleResult',
|
|
1515
1670
|
value: function () {
|
|
1516
|
-
var
|
|
1517
|
-
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) {
|
|
1518
1673
|
while (1) {
|
|
1519
|
-
switch (
|
|
1674
|
+
switch (_context9.prev = _context9.next) {
|
|
1520
1675
|
case 0:
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1676
|
+
_context9.prev = 0;
|
|
1677
|
+
_context9.t0 = _promise2.default;
|
|
1678
|
+
_context9.next = 4;
|
|
1524
1679
|
return (0, _tplusApi.tApi)({ RetailCode: this.dto.Code }, 'chanjet.RE.newRetail.QuerySettleResult', false, false, { timeout_skip: true });
|
|
1525
1680
|
|
|
1526
1681
|
case 4:
|
|
1527
|
-
|
|
1528
|
-
return
|
|
1682
|
+
_context9.t1 = _context9.sent;
|
|
1683
|
+
return _context9.abrupt('return', _context9.t0.resolve.call(_context9.t0, _context9.t1));
|
|
1529
1684
|
|
|
1530
1685
|
case 8:
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
return
|
|
1686
|
+
_context9.prev = 8;
|
|
1687
|
+
_context9.t2 = _context9['catch'](0);
|
|
1688
|
+
return _context9.abrupt('return', _promise2.default.resolve({ Flag: "1" }));
|
|
1534
1689
|
|
|
1535
1690
|
case 11:
|
|
1536
1691
|
case 'end':
|
|
1537
|
-
return
|
|
1692
|
+
return _context9.stop();
|
|
1538
1693
|
}
|
|
1539
1694
|
}
|
|
1540
|
-
},
|
|
1695
|
+
}, _callee9, this, [[0, 8]]);
|
|
1541
1696
|
}));
|
|
1542
1697
|
|
|
1543
1698
|
function querySettleResult() {
|
|
1544
|
-
return
|
|
1699
|
+
return _ref21.apply(this, arguments);
|
|
1545
1700
|
}
|
|
1546
1701
|
|
|
1547
1702
|
return querySettleResult;
|
|
@@ -1567,18 +1722,18 @@ var SettlementStore = (_class = function () {
|
|
|
1567
1722
|
}, {
|
|
1568
1723
|
key: 'validePwd',
|
|
1569
1724
|
value: function () {
|
|
1570
|
-
var
|
|
1571
|
-
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;
|
|
1572
1727
|
|
|
1573
|
-
return _regenerator2.default.wrap(function
|
|
1728
|
+
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
|
1574
1729
|
while (1) {
|
|
1575
|
-
switch (
|
|
1730
|
+
switch (_context10.prev = _context10.next) {
|
|
1576
1731
|
case 0:
|
|
1577
|
-
|
|
1578
|
-
|
|
1732
|
+
_ref23 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref23.isNewRetailBCPos;
|
|
1733
|
+
_context10.prev = 1;
|
|
1579
1734
|
|
|
1580
1735
|
if (!isNewRetailBCPos) {
|
|
1581
|
-
|
|
1736
|
+
_context10.next = 33;
|
|
1582
1737
|
break;
|
|
1583
1738
|
}
|
|
1584
1739
|
|
|
@@ -1588,60 +1743,60 @@ var SettlementStore = (_class = function () {
|
|
|
1588
1743
|
memberStorageId = this.paymode.currentMode.meStorageCardId;
|
|
1589
1744
|
|
|
1590
1745
|
if (!cook2) {
|
|
1591
|
-
|
|
1746
|
+
_context10.next = 12;
|
|
1592
1747
|
break;
|
|
1593
1748
|
}
|
|
1594
1749
|
|
|
1595
1750
|
if (!cook2.hasOwnProperty(memberStorageId + "")) {
|
|
1596
|
-
|
|
1751
|
+
_context10.next = 12;
|
|
1597
1752
|
break;
|
|
1598
1753
|
}
|
|
1599
1754
|
|
|
1600
1755
|
if (!(cook2[memberStorageId] > 3)) {
|
|
1601
|
-
|
|
1756
|
+
_context10.next = 12;
|
|
1602
1757
|
break;
|
|
1603
1758
|
}
|
|
1604
1759
|
|
|
1605
1760
|
message = '今日密码错误已达上限,不可使用储值消费,请明日再试,如忘记请重置密码或修改密码。';
|
|
1606
|
-
return
|
|
1761
|
+
return _context10.abrupt('return', _promise2.default.resolve(message));
|
|
1607
1762
|
|
|
1608
1763
|
case 12:
|
|
1609
1764
|
_paymode$currentMode = this.paymode.currentMode, cardTypeEnum = _paymode$currentMode.cardTypeEnum, memberId = _paymode$currentMode.memberId, meStorageCardId = _paymode$currentMode.meStorageCardId, cardStatusEnum = _paymode$currentMode.cardStatusEnum;
|
|
1610
1765
|
result = null;
|
|
1611
1766
|
|
|
1612
1767
|
if (!(cardTypeEnum === 'BALANCE_CARD')) {
|
|
1613
|
-
|
|
1768
|
+
_context10.next = 20;
|
|
1614
1769
|
break;
|
|
1615
1770
|
}
|
|
1616
1771
|
|
|
1617
|
-
|
|
1772
|
+
_context10.next = 17;
|
|
1618
1773
|
return (0, _tplusApi.ccApi)({ md5Password: _tplusApi.User.pwdEncrypt(value.pwd), cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + memberId, false, false);
|
|
1619
1774
|
|
|
1620
1775
|
case 17:
|
|
1621
|
-
result =
|
|
1622
|
-
|
|
1776
|
+
result = _context10.sent;
|
|
1777
|
+
_context10.next = 29;
|
|
1623
1778
|
break;
|
|
1624
1779
|
|
|
1625
1780
|
case 20:
|
|
1626
1781
|
if (!(cardStatusEnum === 'BINDING' && this.member && this.member.ID === memberId)) {
|
|
1627
|
-
|
|
1782
|
+
_context10.next = 26;
|
|
1628
1783
|
break;
|
|
1629
1784
|
}
|
|
1630
1785
|
|
|
1631
|
-
|
|
1786
|
+
_context10.next = 23;
|
|
1632
1787
|
return (0, _tplusApi.ccApi)({ md5Password: _tplusApi.User.pwdEncrypt(value.pwd), password: value.pwd, cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + meStorageCardId, false, false);
|
|
1633
1788
|
|
|
1634
1789
|
case 23:
|
|
1635
|
-
result =
|
|
1636
|
-
|
|
1790
|
+
result = _context10.sent;
|
|
1791
|
+
_context10.next = 29;
|
|
1637
1792
|
break;
|
|
1638
1793
|
|
|
1639
1794
|
case 26:
|
|
1640
|
-
|
|
1795
|
+
_context10.next = 28;
|
|
1641
1796
|
return (0, _tplusApi.ccApi)({ password: value.pwd, cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + meStorageCardId, false, false);
|
|
1642
1797
|
|
|
1643
1798
|
case 28:
|
|
1644
|
-
result =
|
|
1799
|
+
result = _context10.sent;
|
|
1645
1800
|
|
|
1646
1801
|
case 29:
|
|
1647
1802
|
if (!result.data) {
|
|
@@ -1660,38 +1815,38 @@ var SettlementStore = (_class = function () {
|
|
|
1660
1815
|
this.setCookie('errorPwd', '', -1);
|
|
1661
1816
|
this.setCookie('errorPwd', (0, _stringify2.default)(cook2));
|
|
1662
1817
|
}
|
|
1663
|
-
return
|
|
1818
|
+
return _context10.abrupt('return', _promise2.default.resolve(result.data ? "" : message));
|
|
1664
1819
|
|
|
1665
1820
|
case 33:
|
|
1666
|
-
|
|
1821
|
+
_context10.next = 35;
|
|
1667
1822
|
return (0, _tplusApi.tApi)({ "CheckoutParams": {
|
|
1668
1823
|
"Idmember": value.id,
|
|
1669
1824
|
"Password": value.pwd
|
|
1670
1825
|
} }, 'AA.DR.newRetailMember.CheckoutMemberPassword', false, false);
|
|
1671
1826
|
|
|
1672
1827
|
case 35:
|
|
1673
|
-
_result =
|
|
1674
|
-
return
|
|
1828
|
+
_result = _context10.sent;
|
|
1829
|
+
return _context10.abrupt('return', _promise2.default.resolve(_result.Success ? "" : _result.Message));
|
|
1675
1830
|
|
|
1676
1831
|
case 37:
|
|
1677
|
-
|
|
1832
|
+
_context10.next = 42;
|
|
1678
1833
|
break;
|
|
1679
1834
|
|
|
1680
1835
|
case 39:
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
return
|
|
1836
|
+
_context10.prev = 39;
|
|
1837
|
+
_context10.t0 = _context10['catch'](1);
|
|
1838
|
+
return _context10.abrupt('return', "failed");
|
|
1684
1839
|
|
|
1685
1840
|
case 42:
|
|
1686
1841
|
case 'end':
|
|
1687
|
-
return
|
|
1842
|
+
return _context10.stop();
|
|
1688
1843
|
}
|
|
1689
1844
|
}
|
|
1690
|
-
},
|
|
1845
|
+
}, _callee10, this, [[1, 39]]);
|
|
1691
1846
|
}));
|
|
1692
1847
|
|
|
1693
|
-
function validePwd(
|
|
1694
|
-
return
|
|
1848
|
+
function validePwd(_x6) {
|
|
1849
|
+
return _ref22.apply(this, arguments);
|
|
1695
1850
|
}
|
|
1696
1851
|
|
|
1697
1852
|
return validePwd;
|
|
@@ -1701,7 +1856,7 @@ var SettlementStore = (_class = function () {
|
|
|
1701
1856
|
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'queryPwd', [_mobx.action], {
|
|
1702
1857
|
enumerable: true,
|
|
1703
1858
|
initializer: function initializer() {
|
|
1704
|
-
var
|
|
1859
|
+
var _this14 = this;
|
|
1705
1860
|
|
|
1706
1861
|
return function (newPass, newPassConfirm) {
|
|
1707
1862
|
if (!newPass || !newPassConfirm) {
|
|
@@ -1713,7 +1868,7 @@ var SettlementStore = (_class = function () {
|
|
|
1713
1868
|
var idstore = (0, _tplusPoslogin.PosInitData)('storeID');
|
|
1714
1869
|
return (0, _tplusApi.ccApi)({
|
|
1715
1870
|
Idstore: idstore,
|
|
1716
|
-
meMemberId:
|
|
1871
|
+
meMemberId: _this14.paymode.currentMode.memberId,
|
|
1717
1872
|
oldPassword: null,
|
|
1718
1873
|
newPassword: _tplusApi.User.pwdEncrypt(newPassConfirm),
|
|
1719
1874
|
dataSource: "POS"
|
|
@@ -1727,134 +1882,143 @@ var SettlementStore = (_class = function () {
|
|
|
1727
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], {
|
|
1728
1883
|
enumerable: true,
|
|
1729
1884
|
initializer: function initializer() {
|
|
1730
|
-
var
|
|
1885
|
+
var _this15 = this;
|
|
1731
1886
|
|
|
1732
1887
|
return function () {
|
|
1733
|
-
var
|
|
1888
|
+
var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(_this) {
|
|
1734
1889
|
var _getLoginInfo, IdStore, StoreCode, resp;
|
|
1735
1890
|
|
|
1736
|
-
return _regenerator2.default.wrap(function
|
|
1891
|
+
return _regenerator2.default.wrap(function _callee11$(_context11) {
|
|
1737
1892
|
while (1) {
|
|
1738
|
-
switch (
|
|
1893
|
+
switch (_context11.prev = _context11.next) {
|
|
1739
1894
|
case 0:
|
|
1740
|
-
_getLoginInfo =
|
|
1741
|
-
|
|
1742
|
-
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);
|
|
1743
1898
|
|
|
1744
1899
|
case 3:
|
|
1745
|
-
resp =
|
|
1900
|
+
resp = _context11.sent;
|
|
1746
1901
|
|
|
1747
1902
|
_this.member = resp;
|
|
1748
1903
|
_this.paymode.updateMemberStorageCardNo(resp.StorageCardNo, resp.WalletEnabled);
|
|
1749
|
-
return
|
|
1904
|
+
return _context11.abrupt('return', _promise2.default.resolve(resp));
|
|
1750
1905
|
|
|
1751
1906
|
case 7:
|
|
1752
1907
|
case 'end':
|
|
1753
|
-
return
|
|
1908
|
+
return _context11.stop();
|
|
1754
1909
|
}
|
|
1755
1910
|
}
|
|
1756
|
-
},
|
|
1911
|
+
}, _callee11, _this15);
|
|
1757
1912
|
}));
|
|
1758
1913
|
|
|
1759
|
-
return function (
|
|
1760
|
-
return
|
|
1914
|
+
return function (_x7) {
|
|
1915
|
+
return _ref24.apply(this, arguments);
|
|
1761
1916
|
};
|
|
1762
1917
|
}();
|
|
1763
1918
|
}
|
|
1764
1919
|
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'updateCurrentMode', [_mobx.action], {
|
|
1765
1920
|
enumerable: true,
|
|
1766
1921
|
initializer: function initializer() {
|
|
1767
|
-
var
|
|
1922
|
+
var _this16 = this;
|
|
1768
1923
|
|
|
1769
1924
|
return function () {
|
|
1770
|
-
var
|
|
1925
|
+
var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(memberId) {
|
|
1771
1926
|
var result;
|
|
1772
|
-
return _regenerator2.default.wrap(function
|
|
1927
|
+
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
|
1773
1928
|
while (1) {
|
|
1774
|
-
switch (
|
|
1929
|
+
switch (_context12.prev = _context12.next) {
|
|
1775
1930
|
case 0:
|
|
1776
|
-
|
|
1931
|
+
_context12.next = 2;
|
|
1777
1932
|
return (0, _tplusApi.ccApi)({}, '/marketingtool/MeStorageCard/getCardInfoByMemberId/' + memberId + '/' + true, false, false, { method: 'get' });
|
|
1778
1933
|
|
|
1779
1934
|
case 2:
|
|
1780
|
-
result =
|
|
1935
|
+
result = _context12.sent;
|
|
1781
1936
|
|
|
1782
1937
|
if (!(result && result.data.length)) {
|
|
1783
|
-
|
|
1938
|
+
_context12.next = 20;
|
|
1784
1939
|
break;
|
|
1785
1940
|
}
|
|
1786
1941
|
|
|
1787
1942
|
if (!(result.data.length === 1)) {
|
|
1788
|
-
|
|
1943
|
+
_context12.next = 9;
|
|
1789
1944
|
break;
|
|
1790
1945
|
}
|
|
1791
1946
|
|
|
1792
|
-
|
|
1793
|
-
return
|
|
1947
|
+
_this16.paymode.updateCardInfo(result.data[0]);
|
|
1948
|
+
return _context12.abrupt('return', result.data);
|
|
1794
1949
|
|
|
1795
1950
|
case 9:
|
|
1796
1951
|
if (!(result.data && result.data.length === 1)) {
|
|
1797
|
-
|
|
1952
|
+
_context12.next = 14;
|
|
1798
1953
|
break;
|
|
1799
1954
|
}
|
|
1800
1955
|
|
|
1801
|
-
|
|
1802
|
-
return
|
|
1956
|
+
_this16.paymode.updateCardInfo(result.data[0]);
|
|
1957
|
+
return _context12.abrupt('return', result.data);
|
|
1803
1958
|
|
|
1804
1959
|
case 14:
|
|
1805
1960
|
if (!(result.data && result.data.length > 1)) {
|
|
1806
|
-
|
|
1961
|
+
_context12.next = 18;
|
|
1807
1962
|
break;
|
|
1808
1963
|
}
|
|
1809
1964
|
|
|
1810
|
-
return
|
|
1965
|
+
return _context12.abrupt('return', result.data);
|
|
1811
1966
|
|
|
1812
1967
|
case 18:
|
|
1813
1968
|
_message2.default.warn('没有可用储值卡!');
|
|
1814
|
-
return
|
|
1969
|
+
return _context12.abrupt('return', false);
|
|
1815
1970
|
|
|
1816
1971
|
case 20:
|
|
1817
1972
|
case 'end':
|
|
1818
|
-
return
|
|
1973
|
+
return _context12.stop();
|
|
1819
1974
|
}
|
|
1820
1975
|
}
|
|
1821
|
-
},
|
|
1976
|
+
}, _callee12, _this16);
|
|
1822
1977
|
}));
|
|
1823
1978
|
|
|
1824
|
-
return function (
|
|
1825
|
-
return
|
|
1979
|
+
return function (_x8) {
|
|
1980
|
+
return _ref25.apply(this, arguments);
|
|
1826
1981
|
};
|
|
1827
1982
|
}();
|
|
1828
1983
|
}
|
|
1829
1984
|
}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, 'updateCardInfo', [_mobx.action], {
|
|
1830
1985
|
enumerable: true,
|
|
1831
1986
|
initializer: function initializer() {
|
|
1832
|
-
var
|
|
1987
|
+
var _this17 = this;
|
|
1833
1988
|
|
|
1834
|
-
return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
1989
|
+
return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13() {
|
|
1835
1990
|
var address, result;
|
|
1836
|
-
return _regenerator2.default.wrap(function
|
|
1991
|
+
return _regenerator2.default.wrap(function _callee13$(_context13) {
|
|
1837
1992
|
while (1) {
|
|
1838
|
-
switch (
|
|
1993
|
+
switch (_context13.prev = _context13.next) {
|
|
1839
1994
|
case 0:
|
|
1840
|
-
address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' +
|
|
1841
|
-
|
|
1995
|
+
address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + _this17.paymode.currentMode.storageCardNo;
|
|
1996
|
+
_context13.next = 3;
|
|
1842
1997
|
return (0, _tplusApi.ccApi)({}, address, false, false, { method: 'get', timeout_skip: true });
|
|
1843
1998
|
|
|
1844
1999
|
case 3:
|
|
1845
|
-
result =
|
|
2000
|
+
result = _context13.sent;
|
|
1846
2001
|
|
|
1847
|
-
|
|
2002
|
+
_this17.paymode.updateCardInfo(result.data);
|
|
1848
2003
|
|
|
1849
2004
|
case 5:
|
|
1850
2005
|
case 'end':
|
|
1851
|
-
return
|
|
2006
|
+
return _context13.stop();
|
|
1852
2007
|
}
|
|
1853
2008
|
}
|
|
1854
|
-
},
|
|
2009
|
+
}, _callee13, _this17);
|
|
1855
2010
|
}));
|
|
1856
2011
|
}
|
|
1857
|
-
}), _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),
|
|
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], {
|
|
2013
|
+
enumerable: true,
|
|
2014
|
+
initializer: function initializer() {
|
|
2015
|
+
var _this18 = this;
|
|
2016
|
+
|
|
2017
|
+
return function () {
|
|
2018
|
+
_this18.dto.VoucherDate = new Date();
|
|
2019
|
+
};
|
|
2020
|
+
}
|
|
2021
|
+
}), _applyDecoratedDescriptor(_class.prototype, 'setDtoID', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'setDtoID'), _class.prototype)), _class);
|
|
1858
2022
|
exports.default = SettlementStore;
|
|
1859
2023
|
var PayMode = exports.PayMode = (_class3 = function () {
|
|
1860
2024
|
//应收
|
|
@@ -1868,19 +2032,19 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1868
2032
|
this.onlineamount = 0;
|
|
1869
2033
|
this.maxamount = 0;
|
|
1870
2034
|
|
|
1871
|
-
_initDefineProp(this, 'currentFocus',
|
|
2035
|
+
_initDefineProp(this, 'currentFocus', _descriptor6, this);
|
|
1872
2036
|
|
|
1873
|
-
_initDefineProp(this, 'received',
|
|
2037
|
+
_initDefineProp(this, 'received', _descriptor7, this);
|
|
1874
2038
|
|
|
1875
|
-
_initDefineProp(this, 'receivable',
|
|
2039
|
+
_initDefineProp(this, 'receivable', _descriptor8, this);
|
|
1876
2040
|
|
|
1877
|
-
_initDefineProp(this, 'paymodes',
|
|
2041
|
+
_initDefineProp(this, 'paymodes', _descriptor9, this);
|
|
1878
2042
|
|
|
1879
|
-
_initDefineProp(this, 'thePaymodes',
|
|
2043
|
+
_initDefineProp(this, 'thePaymodes', _descriptor10, this);
|
|
1880
2044
|
|
|
1881
|
-
_initDefineProp(this, 'storageCardNo',
|
|
2045
|
+
_initDefineProp(this, 'storageCardNo', _descriptor11, this);
|
|
1882
2046
|
|
|
1883
|
-
_initDefineProp(this, 'balance',
|
|
2047
|
+
_initDefineProp(this, 'balance', _descriptor12, this);
|
|
1884
2048
|
|
|
1885
2049
|
this.currentMode = null;
|
|
1886
2050
|
this.checkList = [];
|
|
@@ -1889,11 +2053,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1889
2053
|
hotKey: "Ctrl+M"
|
|
1890
2054
|
};
|
|
1891
2055
|
|
|
1892
|
-
_initDefineProp(this, 'calcCheckList',
|
|
2056
|
+
_initDefineProp(this, 'calcCheckList', _descriptor13, this);
|
|
1893
2057
|
|
|
1894
|
-
_initDefineProp(this, 'setCouponNum',
|
|
2058
|
+
_initDefineProp(this, 'setCouponNum', _descriptor14, this);
|
|
1895
2059
|
|
|
1896
|
-
_initDefineProp(this, 'addDjqs',
|
|
2060
|
+
_initDefineProp(this, 'addDjqs', _descriptor15, this);
|
|
1897
2061
|
}
|
|
1898
2062
|
// @observable store = null;
|
|
1899
2063
|
|
|
@@ -1952,7 +2116,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1952
2116
|
}, {
|
|
1953
2117
|
key: 'calcDjqCheckValue',
|
|
1954
2118
|
value: function calcDjqCheckValue(q1, dto, params) {
|
|
1955
|
-
var
|
|
2119
|
+
var _this19 = this;
|
|
1956
2120
|
|
|
1957
2121
|
var useLimitPerOrder = (0, _tplusPoslogin.PosInitData)('UseLimitPerOrder');
|
|
1958
2122
|
var qList = (0, _filter3.default)(this.currentMode.djqs, function (djq) {
|
|
@@ -1966,12 +2130,12 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1966
2130
|
this.checkList = [];
|
|
1967
2131
|
}
|
|
1968
2132
|
|
|
1969
|
-
var
|
|
1970
|
-
isNewRetailBCPos =
|
|
2133
|
+
var _ref27 = _mutantsUtil.platform || {},
|
|
2134
|
+
isNewRetailBCPos = _ref27.isNewRetailBCPos;
|
|
1971
2135
|
|
|
1972
|
-
var _enumController$
|
|
1973
|
-
PayStyle = _enumController$
|
|
1974
|
-
Differentiate = _enumController$
|
|
2136
|
+
var _enumController$getEn18 = _mutantsUtil.enumController.getEnumOj(),
|
|
2137
|
+
PayStyle = _enumController$getEn18.PayStyle,
|
|
2138
|
+
Differentiate = _enumController$getEn18.Differentiate;
|
|
1975
2139
|
|
|
1976
2140
|
if (q1) {
|
|
1977
2141
|
if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
|
|
@@ -1999,7 +2163,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1999
2163
|
if (!q1.checked) {
|
|
2000
2164
|
this.checkList.forEach(function (ele, i) {
|
|
2001
2165
|
if (ele.id === q1.id) {
|
|
2002
|
-
|
|
2166
|
+
_this19.checkList.splice(i, 1);
|
|
2003
2167
|
}
|
|
2004
2168
|
});
|
|
2005
2169
|
} else {
|
|
@@ -2071,24 +2235,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2071
2235
|
if (result && result.length != 0) {
|
|
2072
2236
|
result.forEach(function (element, index) {
|
|
2073
2237
|
var djq1 = false;
|
|
2074
|
-
|
|
2238
|
+
_this19.currentMode.djqs.forEach(function (djq) {
|
|
2075
2239
|
if (element.id === djq.id) {
|
|
2076
2240
|
djq1 = true;
|
|
2077
2241
|
}
|
|
2078
2242
|
});
|
|
2079
2243
|
|
|
2080
|
-
var
|
|
2081
|
-
couponCode =
|
|
2082
|
-
name =
|
|
2083
|
-
tieredAmountResult =
|
|
2084
|
-
fromDate =
|
|
2085
|
-
dateMount =
|
|
2086
|
-
promoMethodEnum =
|
|
2087
|
-
discountPct =
|
|
2088
|
-
nominalAmount =
|
|
2089
|
-
promoId =
|
|
2090
|
-
id =
|
|
2091
|
-
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;
|
|
2092
2256
|
|
|
2093
2257
|
var condValue = tieredAmountResult.condValue,
|
|
2094
2258
|
promoDiscount = tieredAmountResult.promoDiscount,
|
|
@@ -2116,10 +2280,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2116
2280
|
// couponCategoryEnum: tieredAmountResult.couponCategoryEnum,
|
|
2117
2281
|
// id
|
|
2118
2282
|
// })
|
|
2119
|
-
|
|
2283
|
+
_this19.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
|
|
2120
2284
|
djq1 = false;
|
|
2121
2285
|
} else {
|
|
2122
|
-
|
|
2286
|
+
_this19.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
|
|
2123
2287
|
// this.currentMode.djqs[0].couponCategoryEnum = 'couponCategoryEnum';
|
|
2124
2288
|
// djq1.couponCategoryEnum = element.tieredAmountResult.couponCategoryEnum
|
|
2125
2289
|
}
|
|
@@ -2132,11 +2296,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2132
2296
|
}, {
|
|
2133
2297
|
key: 'calcDjqValue',
|
|
2134
2298
|
value: function calcDjqValue(q1) {
|
|
2135
|
-
var
|
|
2136
|
-
isNewRetailBCPos =
|
|
2299
|
+
var _ref29 = _mutantsUtil.platform || {},
|
|
2300
|
+
isNewRetailBCPos = _ref29.isNewRetailBCPos;
|
|
2137
2301
|
|
|
2138
|
-
var _enumController$
|
|
2139
|
-
Differentiate = _enumController$
|
|
2302
|
+
var _enumController$getEn19 = _mutantsUtil.enumController.getEnumOj(),
|
|
2303
|
+
Differentiate = _enumController$getEn19.Differentiate;
|
|
2140
2304
|
|
|
2141
2305
|
if (q1) {
|
|
2142
2306
|
if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
|
|
@@ -2198,8 +2362,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2198
2362
|
this.currentMode.errinfo = '';
|
|
2199
2363
|
var sum = this.amount;
|
|
2200
2364
|
|
|
2201
|
-
var _enumController$
|
|
2202
|
-
PayStyle = _enumController$
|
|
2365
|
+
var _enumController$getEn20 = _mutantsUtil.enumController.getEnumOj(),
|
|
2366
|
+
PayStyle = _enumController$getEn20.PayStyle;
|
|
2203
2367
|
|
|
2204
2368
|
this.thePaymodes && this.thePaymodes.forEach(function (mode) {
|
|
2205
2369
|
if (mode.paymentType === PayStyle.hyczk) {
|
|
@@ -2223,30 +2387,29 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2223
2387
|
}, {
|
|
2224
2388
|
key: 'setPaymodes',
|
|
2225
2389
|
value: function () {
|
|
2226
|
-
var
|
|
2227
|
-
var
|
|
2390
|
+
var _ref30 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14(type, isIntegralExchange) {
|
|
2391
|
+
var _this20 = this;
|
|
2228
2392
|
|
|
2229
|
-
var _enumController$
|
|
2393
|
+
var _enumController$getEn21, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
|
|
2230
2394
|
|
|
2231
|
-
return _regenerator2.default.wrap(function
|
|
2395
|
+
return _regenerator2.default.wrap(function _callee14$(_context14) {
|
|
2232
2396
|
while (1) {
|
|
2233
|
-
switch (
|
|
2397
|
+
switch (_context14.prev = _context14.next) {
|
|
2234
2398
|
case 0:
|
|
2235
|
-
_enumController$
|
|
2399
|
+
_enumController$getEn21 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn21.settleStyleType, PayStyle = _enumController$getEn21.PayStyle;
|
|
2236
2400
|
memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
|
|
2237
2401
|
param = { 'settleStyleType': type == 1 ? memberStoreCode : settlementCode, isIntegralExchange: isIntegralExchange };
|
|
2238
|
-
|
|
2402
|
+
_context14.next = 5;
|
|
2239
2403
|
return (0, _tplusApi.tApi)({ param: param }, 'chanjet.RE.NewPos.GetNewStoreSettleStyles', false, false);
|
|
2240
2404
|
|
|
2241
2405
|
case 5:
|
|
2242
|
-
modes =
|
|
2406
|
+
modes = _context14.sent;
|
|
2243
2407
|
|
|
2244
2408
|
if (modes) {
|
|
2245
2409
|
(0, _mobx.runInAction)(function () {
|
|
2246
2410
|
var paymodes = [];
|
|
2247
2411
|
(0, _each3.default)(modes.SettleStyles, function (mode, index) {
|
|
2248
2412
|
//产品需求确认会员储值卡结算方式前端展示统一调整为“储值卡" tuzha by 2020-07-08
|
|
2249
|
-
|
|
2250
2413
|
if (mode.Code == PayStyle.hyczk) {
|
|
2251
2414
|
mode.Name = '储值卡';
|
|
2252
2415
|
}
|
|
@@ -2261,24 +2424,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2261
2424
|
idBankAccount: mode.IdBankAccount,
|
|
2262
2425
|
exchangeRate: mode.Currency ? mode.Currency.ExchangeRate : 1,
|
|
2263
2426
|
idCurrency: mode.Currency ? mode.Currency.ID : -1,
|
|
2264
|
-
calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88"
|
|
2427
|
+
calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88",
|
|
2428
|
+
thridPayment: mode.ThirdPaymentInfo
|
|
2265
2429
|
});
|
|
2266
2430
|
});
|
|
2267
|
-
|
|
2268
|
-
//modes.QuickSettleStyles
|
|
2431
|
+
_this20.paymodes = paymodes;
|
|
2269
2432
|
});
|
|
2270
2433
|
}
|
|
2271
2434
|
|
|
2272
2435
|
case 7:
|
|
2273
2436
|
case 'end':
|
|
2274
|
-
return
|
|
2437
|
+
return _context14.stop();
|
|
2275
2438
|
}
|
|
2276
2439
|
}
|
|
2277
|
-
},
|
|
2440
|
+
}, _callee14, this);
|
|
2278
2441
|
}));
|
|
2279
2442
|
|
|
2280
|
-
function setPaymodes(
|
|
2281
|
-
return
|
|
2443
|
+
function setPaymodes(_x9, _x10) {
|
|
2444
|
+
return _ref30.apply(this, arguments);
|
|
2282
2445
|
}
|
|
2283
2446
|
|
|
2284
2447
|
return setPaymodes;
|
|
@@ -2295,57 +2458,57 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2295
2458
|
}
|
|
2296
2459
|
}]);
|
|
2297
2460
|
return PayMode;
|
|
2298
|
-
}(), (
|
|
2461
|
+
}(), (_descriptor6 = _applyDecoratedDescriptor(_class3.prototype, 'currentFocus', [_mobx.observable], {
|
|
2299
2462
|
enumerable: true,
|
|
2300
2463
|
initializer: function initializer() {
|
|
2301
2464
|
return "";
|
|
2302
2465
|
}
|
|
2303
|
-
}),
|
|
2466
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class3.prototype, 'received', [_mobx.observable], {
|
|
2304
2467
|
enumerable: true,
|
|
2305
2468
|
initializer: function initializer() {
|
|
2306
2469
|
return 0;
|
|
2307
2470
|
}
|
|
2308
|
-
}),
|
|
2471
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class3.prototype, 'receivable', [_mobx.observable], {
|
|
2309
2472
|
enumerable: true,
|
|
2310
2473
|
initializer: function initializer() {
|
|
2311
2474
|
return 0;
|
|
2312
2475
|
}
|
|
2313
|
-
}),
|
|
2476
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, 'paymodes', [_mobx.observable], {
|
|
2314
2477
|
enumerable: true,
|
|
2315
2478
|
initializer: function initializer() {
|
|
2316
2479
|
return [];
|
|
2317
2480
|
}
|
|
2318
|
-
}),
|
|
2481
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'thePaymodes', [_mobx.observable], {
|
|
2319
2482
|
enumerable: true,
|
|
2320
2483
|
initializer: function initializer() {
|
|
2321
2484
|
return [];
|
|
2322
2485
|
}
|
|
2323
|
-
}),
|
|
2486
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class3.prototype, 'storageCardNo', [_mobx.observable], {
|
|
2324
2487
|
enumerable: true,
|
|
2325
2488
|
initializer: function initializer() {
|
|
2326
2489
|
return null;
|
|
2327
2490
|
}
|
|
2328
|
-
}),
|
|
2491
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class3.prototype, 'balance', [_mobx.observable], {
|
|
2329
2492
|
enumerable: true,
|
|
2330
2493
|
initializer: function initializer() {
|
|
2331
2494
|
return null;
|
|
2332
2495
|
}
|
|
2333
|
-
}), _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),
|
|
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], {
|
|
2334
2497
|
enumerable: true,
|
|
2335
2498
|
initializer: function initializer() {
|
|
2336
|
-
var
|
|
2499
|
+
var _this21 = this;
|
|
2337
2500
|
|
|
2338
2501
|
return function () {
|
|
2339
|
-
|
|
2502
|
+
_this21.checkList = [];
|
|
2340
2503
|
};
|
|
2341
2504
|
}
|
|
2342
|
-
}), _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),
|
|
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], {
|
|
2343
2506
|
enumerable: true,
|
|
2344
2507
|
initializer: function initializer() {
|
|
2345
|
-
var
|
|
2508
|
+
var _this22 = this;
|
|
2346
2509
|
|
|
2347
2510
|
return function (id, couponNum, promoMethodEnum, nominalAmount, promoDiscount) {
|
|
2348
|
-
|
|
2511
|
+
_this22.currentMode.djqs.forEach(function (ele) {
|
|
2349
2512
|
if (ele.id === id) {
|
|
2350
2513
|
promoMethodEnum == "CASH_COUPON" ? ele.amount = nominalAmount : ele.amount = promoDiscount;
|
|
2351
2514
|
ele.couponCategoryEnum = couponNum;
|
|
@@ -2355,10 +2518,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2355
2518
|
});
|
|
2356
2519
|
};
|
|
2357
2520
|
}
|
|
2358
|
-
}),
|
|
2521
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
|
|
2359
2522
|
enumerable: true,
|
|
2360
2523
|
initializer: function initializer() {
|
|
2361
|
-
var
|
|
2524
|
+
var _this23 = this;
|
|
2362
2525
|
|
|
2363
2526
|
return function (promoCouponCode, name, IsEnable, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id) {
|
|
2364
2527
|
var djq = {
|
|
@@ -2380,25 +2543,25 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2380
2543
|
couponCategoryEnum: couponCategoryEnum,
|
|
2381
2544
|
id: id
|
|
2382
2545
|
};
|
|
2383
|
-
|
|
2546
|
+
_this23.currentMode.djqs.push(djq);
|
|
2384
2547
|
};
|
|
2385
2548
|
}
|
|
2386
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);
|
|
2387
2550
|
var Member = exports.Member = (_class5 = function () {
|
|
2388
2551
|
function Member(m) {
|
|
2389
|
-
var
|
|
2552
|
+
var _this24 = this;
|
|
2390
2553
|
|
|
2391
2554
|
(0, _classCallCheck3.default)(this, Member);
|
|
2392
2555
|
|
|
2393
|
-
_initDefineProp(this, 'cardNo',
|
|
2556
|
+
_initDefineProp(this, 'cardNo', _descriptor16, this);
|
|
2394
2557
|
|
|
2395
|
-
_initDefineProp(this, 'balance',
|
|
2558
|
+
_initDefineProp(this, 'balance', _descriptor17, this);
|
|
2396
2559
|
|
|
2397
|
-
_initDefineProp(this, 'exchangable',
|
|
2560
|
+
_initDefineProp(this, 'exchangable', _descriptor18, this);
|
|
2398
2561
|
|
|
2399
|
-
_initDefineProp(this, 'meStorageCardId',
|
|
2562
|
+
_initDefineProp(this, 'meStorageCardId', _descriptor19, this);
|
|
2400
2563
|
|
|
2401
|
-
_initDefineProp(this, 'storageCardNo',
|
|
2564
|
+
_initDefineProp(this, 'storageCardNo', _descriptor20, this);
|
|
2402
2565
|
|
|
2403
2566
|
if (m) {
|
|
2404
2567
|
this.id = m.ID;
|
|
@@ -2409,15 +2572,15 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2409
2572
|
return key == 'canusedbalancestorage';
|
|
2410
2573
|
});
|
|
2411
2574
|
|
|
2412
|
-
var
|
|
2413
|
-
isNewRetailBCPos =
|
|
2575
|
+
var _ref31 = _mutantsUtil.platform || {},
|
|
2576
|
+
isNewRetailBCPos = _ref31.isNewRetailBCPos;
|
|
2414
2577
|
|
|
2415
2578
|
(0, _mobx.runInAction)(function () {
|
|
2416
|
-
|
|
2579
|
+
_this24.cardNo = m.CardCode;
|
|
2417
2580
|
if (index >= 0) {
|
|
2418
|
-
|
|
2581
|
+
_this24.balance = parseFloat(m.DynamicPropertyValues[index]);
|
|
2419
2582
|
} else {
|
|
2420
|
-
|
|
2583
|
+
_this24.balance = _this24.rawbalance;
|
|
2421
2584
|
}
|
|
2422
2585
|
});
|
|
2423
2586
|
this.needPwd = m.MemberType ? m.MemberType.IsNeedPwd : false;
|
|
@@ -2439,19 +2602,19 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2439
2602
|
}
|
|
2440
2603
|
}]);
|
|
2441
2604
|
return Member;
|
|
2442
|
-
}(), (
|
|
2605
|
+
}(), (_descriptor16 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
|
|
2443
2606
|
enumerable: true,
|
|
2444
2607
|
initializer: null
|
|
2445
|
-
}),
|
|
2608
|
+
}), _descriptor17 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
|
|
2446
2609
|
enumerable: true,
|
|
2447
2610
|
initializer: null
|
|
2448
|
-
}),
|
|
2611
|
+
}), _descriptor18 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
|
|
2449
2612
|
enumerable: true,
|
|
2450
2613
|
initializer: null
|
|
2451
|
-
}),
|
|
2614
|
+
}), _descriptor19 = _applyDecoratedDescriptor(_class5.prototype, 'meStorageCardId', [_mobx.observable], {
|
|
2452
2615
|
enumerable: true,
|
|
2453
2616
|
initializer: null
|
|
2454
|
-
}),
|
|
2617
|
+
}), _descriptor20 = _applyDecoratedDescriptor(_class5.prototype, 'storageCardNo', [_mobx.observable], {
|
|
2455
2618
|
enumerable: true,
|
|
2456
2619
|
initializer: null
|
|
2457
2620
|
}), _applyDecoratedDescriptor(_class5.prototype, 'setExchangable', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class5.prototype, 'setExchangable'), _class5.prototype), _applyDecoratedDescriptor(_class5.prototype, 'setCardNo', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class5.prototype, 'setCardNo'), _class5.prototype)), _class5);
|