tplus-components-touch 3.54.1 → 3.55.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/cloudPrint/printTemplate/template.js +52 -0
- package/dist/components/cloudPrint/printTemplate/template.js.map +1 -0
- package/dist/components/commonForm/addressPicker/index.js +255 -0
- package/dist/components/commonForm/addressPicker/index.js.map +1 -0
- package/dist/components/commonForm/autoComplete/index.js +260 -0
- package/dist/components/commonForm/autoComplete/index.js.map +1 -0
- package/dist/components/commonForm/datePicker/index.js +92 -0
- package/dist/components/commonForm/datePicker/index.js.map +1 -0
- package/dist/components/commonForm/formControl/index.js +144 -0
- package/dist/components/commonForm/formControl/index.js.map +1 -0
- package/dist/components/commonForm/index.js +231 -0
- package/dist/components/commonForm/index.js.map +1 -0
- package/dist/components/commonForm/inputNumber/index.js +272 -0
- package/dist/components/commonForm/inputNumber/index.js.map +1 -0
- package/dist/components/commonForm/radio/index.js +132 -0
- package/dist/components/commonForm/radio/index.js.map +1 -0
- package/dist/components/deliverySearch/api.js +355 -0
- package/dist/components/deliverySearch/api.js.map +1 -0
- package/dist/components/deliverySearch/index.js +1222 -0
- package/dist/components/deliverySearch/index.js.map +1 -0
- package/dist/components/form/index.js +310 -0
- package/dist/components/form/index.js.map +1 -0
- package/dist/components/hardwareAPI/index.js +215 -0
- package/dist/components/hardwareAPI/index.js.map +1 -0
- package/dist/components/hotKey/config.js +306 -0
- package/dist/components/hotKey/config.js.map +1 -0
- package/dist/components/hotKey/hotKeyModal.js +479 -0
- package/dist/components/hotKey/hotKeyModal.js.map +1 -0
- package/dist/components/hotKey/index.js +795 -0
- package/dist/components/hotKey/index.js.map +1 -0
- package/dist/components/hotKey/localConfig.js +1216 -0
- package/dist/components/hotKey/localConfig.js.map +1 -0
- package/dist/components/hotKey/utils.js +135 -0
- package/dist/components/hotKey/utils.js.map +1 -0
- package/dist/components/input/index.js +254 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/input/scanInput.js +98 -0
- package/dist/components/input/scanInput.js.map +1 -0
- package/dist/components/input/tplusInput/index.js +81 -0
- package/dist/components/input/tplusInput/index.js.map +1 -0
- package/dist/components/input/tplusInput/inputContent.js +128 -0
- package/dist/components/input/tplusInput/inputContent.js.map +1 -0
- package/dist/components/input/tplusInput/inputs.js +151 -0
- package/dist/components/input/tplusInput/inputs.js.map +1 -0
- package/dist/components/input/utils/index.js +26 -0
- package/dist/components/input/utils/index.js.map +1 -0
- package/dist/components/inventorySearch/api.js +214 -0
- package/dist/components/inventorySearch/api.js.map +1 -0
- package/dist/components/inventorySearch/index.js +303 -0
- package/dist/components/inventorySearch/index.js.map +1 -0
- package/dist/components/inventorySearch/store.js +363 -0
- package/dist/components/inventorySearch/store.js.map +1 -0
- package/dist/components/inventorySearch/tab.js +280 -0
- package/dist/components/inventorySearch/tab.js.map +1 -0
- package/dist/components/keyboard/index.js +259 -0
- package/dist/components/keyboard/index.js.map +1 -0
- package/dist/components/keyboard/letterKeyboard.js +227 -0
- package/dist/components/keyboard/letterKeyboard.js.map +1 -0
- package/dist/components/keyboard/numKeyboard.js +469 -0
- package/dist/components/keyboard/numKeyboard.js.map +1 -0
- package/dist/components/keyboard/numKeyboardScan.js +208 -0
- package/dist/components/keyboard/numKeyboardScan.js.map +1 -0
- package/dist/components/keyboard/numberButton_input.js +305 -0
- package/dist/components/keyboard/numberButton_input.js.map +1 -0
- package/dist/components/keyboard/numkeyboardPassword.js +477 -0
- package/dist/components/keyboard/numkeyboardPassword.js.map +1 -0
- package/dist/components/keyboard/onlyKeyboard.js +90 -0
- package/dist/components/keyboard/onlyKeyboard.js.map +1 -0
- package/dist/components/keyboard/onlyLetterButton.js +187 -0
- package/dist/components/keyboard/onlyLetterButton.js.map +1 -0
- package/dist/components/keyboard/onlyLetterButton2.js +235 -0
- package/dist/components/keyboard/onlyLetterButton2.js.map +1 -0
- package/dist/components/keyboard/onlyNumberButton.js +128 -0
- package/dist/components/keyboard/onlyNumberButton.js.map +1 -0
- package/dist/components/keyboard/onlyNumberButton2.js +115 -0
- package/dist/components/keyboard/onlyNumberButton2.js.map +1 -0
- package/dist/components/keyboard/textKeyboard.js +50 -0
- package/dist/components/keyboard/textKeyboard.js.map +1 -0
- package/dist/components/layout/hamburger.js +29 -0
- package/dist/components/layout/hamburger.js.map +1 -0
- package/dist/components/layout/index.js +31 -0
- package/dist/components/layout/index.js.map +1 -0
- package/dist/components/layout/layout.js +182 -0
- package/dist/components/layout/layout.js.map +1 -0
- package/dist/components/layout/sider.js +167 -0
- package/dist/components/layout/sider.js.map +1 -0
- package/dist/components/loading/index.js +198 -0
- package/dist/components/loading/index.js.map +1 -0
- package/dist/components/loading/loadingContent.js +188 -0
- package/dist/components/loading/loadingContent.js.map +1 -0
- package/dist/components/loading/utils.js +29 -0
- package/dist/components/loading/utils.js.map +1 -0
- package/dist/components/message/index.js +309 -0
- package/dist/components/message/index.js.map +1 -0
- package/dist/components/modal/index.js +93 -0
- package/dist/components/modal/index.js.map +1 -0
- package/dist/components/modalVertical/index.js +325 -0
- package/dist/components/modalVertical/index.js.map +1 -0
- package/dist/components/modalWraper/index.js +485 -0
- package/dist/components/modalWraper/index.js.map +1 -0
- package/dist/components/modalWraper/utils.js +48 -0
- package/dist/components/modalWraper/utils.js.map +1 -0
- package/dist/components/notification/index.js +118 -0
- package/dist/components/notification/index.js.map +1 -0
- package/dist/components/overflowTip/index.js +269 -0
- package/dist/components/overflowTip/index.js.map +1 -0
- package/dist/components/page/index.js +49 -0
- package/dist/components/page/index.js.map +1 -0
- package/dist/components/presale/pickup.js +479 -0
- package/dist/components/presale/pickup.js.map +1 -0
- package/dist/components/product/detail.js +148 -0
- package/dist/components/product/detail.js.map +1 -0
- package/dist/components/product/getCard.js +145 -0
- package/dist/components/product/getCard.js.map +1 -0
- package/dist/components/progressState/EmptyAndErrorView.js +142 -0
- package/dist/components/progressState/EmptyAndErrorView.js.map +1 -0
- package/dist/components/progressState/ProgressState.js +158 -0
- package/dist/components/progressState/ProgressState.js.map +1 -0
- package/dist/components/progressState/index.js +14 -0
- package/dist/components/progressState/index.js.map +1 -0
- package/dist/components/scan/index.js +219 -0
- package/dist/components/scan/index.js.map +1 -0
- package/dist/components/select/index.js +28 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/settlement/asyncModal.js +207 -0
- package/dist/components/settlement/asyncModal.js.map +1 -0
- package/dist/components/settlement/index.js +25 -0
- package/dist/components/settlement/index.js.map +1 -0
- package/dist/components/settlement/moreCzkTable/index.js +156 -0
- package/dist/components/settlement/moreCzkTable/index.js.map +1 -0
- package/dist/components/settlement/prototypeTable/index.js +353 -0
- package/dist/components/settlement/prototypeTable/index.js.map +1 -0
- package/dist/components/settlement/prototypeTable/utils.js +14 -0
- package/dist/components/settlement/prototypeTable/utils.js.map +1 -0
- package/dist/components/settlement/settlement.js +5557 -0
- package/dist/components/settlement/settlement.js.map +1 -0
- package/dist/components/settlement/settlement.less +0 -10
- package/dist/components/settlement/settlementApi.js +512 -0
- package/dist/components/settlement/settlementApi.js.map +1 -0
- package/dist/components/settlement/settlementStore.js +2833 -0
- package/dist/components/settlement/settlementStore.js.map +1 -0
- package/dist/components/settlement/utils.js +249 -0
- package/dist/components/settlement/utils.js.map +1 -0
- package/dist/components/socket/index.js +221 -0
- package/dist/components/socket/index.js.map +1 -0
- package/dist/components/spin/index.js +95 -0
- package/dist/components/spin/index.js.map +1 -0
- package/dist/components/test/index.js +330 -0
- package/dist/components/test/index.js.map +1 -0
- package/dist/components/ticon/iconfont/demo_index.html +3 -72
- package/dist/components/ticon/iconfont/iconfont.css +3 -15
- package/dist/components/ticon/iconfont/iconfont.js +36 -0
- package/dist/components/ticon/iconfont/iconfont.js.map +1 -0
- package/dist/components/ticon/iconfont/iconfont.json +0 -21
- package/dist/components/ticon/iconfont/iconfont.ttf +0 -0
- package/dist/components/ticon/iconfont/iconfont.woff +0 -0
- package/dist/components/ticon/iconfont/iconfont.woff2 +0 -0
- package/dist/components/ticon/index.js +60 -0
- package/dist/components/ticon/index.js.map +1 -0
- package/dist/components/touchScroll/index.js +186 -0
- package/dist/components/touchScroll/index.js.map +1 -0
- package/dist/components/touchTable/AuthProcess.js +42 -0
- package/dist/components/touchTable/AuthProcess.js.map +1 -0
- package/dist/components/touchTable/generateWater.js +59 -0
- package/dist/components/touchTable/generateWater.js.map +1 -0
- package/dist/components/touchTable/index.js +1148 -0
- package/dist/components/touchTable/index.js.map +1 -0
- package/dist/components/touchTable/utils.js +27 -0
- package/dist/components/touchTable/utils.js.map +1 -0
- package/dist/index.js +1 -22
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/components/collection/api.js +0 -105
- package/dist/components/collection/api.js.map +0 -1
- package/dist/components/collection/searchView/index.less +0 -134
- package/dist/components/password/style.less +0 -95
@@ -1,11 +1,6 @@
|
|
1
1
|
.asyncModal[role='dialog'] {
|
2
2
|
z-index: 1006 !important;
|
3
3
|
}
|
4
|
-
.confirmPwdWraper {
|
5
|
-
.ant-modal-content {
|
6
|
-
width: 440px;
|
7
|
-
}
|
8
|
-
}
|
9
4
|
.moreCzkModal {
|
10
5
|
.ant-modal {
|
11
6
|
width: 800px !important;
|
@@ -329,11 +324,6 @@
|
|
329
324
|
padding: 20px 45px;
|
330
325
|
}
|
331
326
|
}
|
332
|
-
.modify-password {
|
333
|
-
.ant-modal-body {
|
334
|
-
height: 300px !important;
|
335
|
-
}
|
336
|
-
}
|
337
327
|
|
338
328
|
.djq{
|
339
329
|
height:calc(~"100vh + 20px");
|
@@ -0,0 +1,512 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = undefined;
|
7
|
+
|
8
|
+
var _extends2 = require('babel-runtime/helpers/extends');
|
9
|
+
|
10
|
+
var _extends3 = _interopRequireDefault(_extends2);
|
11
|
+
|
12
|
+
var _regenerator = require('babel-runtime/regenerator');
|
13
|
+
|
14
|
+
var _regenerator2 = _interopRequireDefault(_regenerator);
|
15
|
+
|
16
|
+
var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
|
17
|
+
|
18
|
+
var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
|
19
|
+
|
20
|
+
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
|
21
|
+
|
22
|
+
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
|
23
|
+
|
24
|
+
var _class, _temp; /*
|
25
|
+
* @Author: Lixuhan
|
26
|
+
* @Date: 2022-03-16 18:51:16
|
27
|
+
* @LastEditTime: 2022-04-01 14:03:31
|
28
|
+
* @LastEditors: Lixuhan
|
29
|
+
* @Description: 结算接口文件
|
30
|
+
* @FilePath: /new_retail_cc_ssh_ master_running_fast/componentsTouch/src/components/settlement/settlementApi.js
|
31
|
+
*/
|
32
|
+
|
33
|
+
|
34
|
+
var _tplusApi = require('tplus-api');
|
35
|
+
|
36
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
37
|
+
|
38
|
+
var SettlementApi = (_temp = _class = function SettlementApi() {
|
39
|
+
(0, _classCallCheck3.default)(this, SettlementApi);
|
40
|
+
}, _class.setWalletPayPassword = function () {
|
41
|
+
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(params) {
|
42
|
+
var result;
|
43
|
+
return _regenerator2.default.wrap(function _callee$(_context) {
|
44
|
+
while (1) {
|
45
|
+
switch (_context.prev = _context.next) {
|
46
|
+
case 0:
|
47
|
+
_context.next = 2;
|
48
|
+
return (0, _tplusApi.ccApi)(params, '/member/MeMemberWallet/setWalletPayPassword', false, false, { method: 'post', timeout_skip: true });
|
49
|
+
|
50
|
+
case 2:
|
51
|
+
result = _context.sent;
|
52
|
+
return _context.abrupt('return', result);
|
53
|
+
|
54
|
+
case 4:
|
55
|
+
case 'end':
|
56
|
+
return _context.stop();
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}, _callee, undefined);
|
60
|
+
}));
|
61
|
+
|
62
|
+
return function (_x) {
|
63
|
+
return _ref.apply(this, arguments);
|
64
|
+
};
|
65
|
+
}(), _class.getCardInfoByCardNo = function () {
|
66
|
+
var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(storageCardNo, isPay) {
|
67
|
+
var params, result;
|
68
|
+
return _regenerator2.default.wrap(function _callee2$(_context2) {
|
69
|
+
while (1) {
|
70
|
+
switch (_context2.prev = _context2.next) {
|
71
|
+
case 0:
|
72
|
+
params = isPay != undefined ? { code: storageCardNo } : {};
|
73
|
+
_context2.next = 3;
|
74
|
+
return (0, _tplusApi.ccApi)(params, '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + storageCardNo + '/' + isPay, false, false, { method: 'get', timeout_skip: true });
|
75
|
+
|
76
|
+
case 3:
|
77
|
+
result = _context2.sent;
|
78
|
+
return _context2.abrupt('return', result);
|
79
|
+
|
80
|
+
case 5:
|
81
|
+
case 'end':
|
82
|
+
return _context2.stop();
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}, _callee2, undefined);
|
86
|
+
}));
|
87
|
+
|
88
|
+
return function (_x2, _x3) {
|
89
|
+
return _ref2.apply(this, arguments);
|
90
|
+
};
|
91
|
+
}(), _class.checkPaymentPassword = function () {
|
92
|
+
var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(params, id) {
|
93
|
+
var result;
|
94
|
+
return _regenerator2.default.wrap(function _callee3$(_context3) {
|
95
|
+
while (1) {
|
96
|
+
switch (_context3.prev = _context3.next) {
|
97
|
+
case 0:
|
98
|
+
_context3.next = 2;
|
99
|
+
return (0, _tplusApi.ccApi)(params, '/member/MeMemberWallet/checkPaymentPassword/' + id, false, false);
|
100
|
+
|
101
|
+
case 2:
|
102
|
+
result = _context3.sent;
|
103
|
+
return _context3.abrupt('return', result);
|
104
|
+
|
105
|
+
case 4:
|
106
|
+
case 'end':
|
107
|
+
return _context3.stop();
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}, _callee3, undefined);
|
111
|
+
}));
|
112
|
+
|
113
|
+
return function (_x4, _x5) {
|
114
|
+
return _ref3.apply(this, arguments);
|
115
|
+
};
|
116
|
+
}(), _class.CheckoutMemberPassword = function () {
|
117
|
+
var _ref4 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4(params) {
|
118
|
+
var result;
|
119
|
+
return _regenerator2.default.wrap(function _callee4$(_context4) {
|
120
|
+
while (1) {
|
121
|
+
switch (_context4.prev = _context4.next) {
|
122
|
+
case 0:
|
123
|
+
_context4.next = 2;
|
124
|
+
return (0, _tplusApi.tApi)(params, 'AA.DR.newRetailMember.CheckoutMemberPassword', false, false);
|
125
|
+
|
126
|
+
case 2:
|
127
|
+
result = _context4.sent;
|
128
|
+
return _context4.abrupt('return', result);
|
129
|
+
|
130
|
+
case 4:
|
131
|
+
case 'end':
|
132
|
+
return _context4.stop();
|
133
|
+
}
|
134
|
+
}
|
135
|
+
}, _callee4, undefined);
|
136
|
+
}));
|
137
|
+
|
138
|
+
return function (_x6) {
|
139
|
+
return _ref4.apply(this, arguments);
|
140
|
+
};
|
141
|
+
}(), _class.findUsefulCouponPromoList = function () {
|
142
|
+
var _ref5 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(params) {
|
143
|
+
var result;
|
144
|
+
return _regenerator2.default.wrap(function _callee5$(_context5) {
|
145
|
+
while (1) {
|
146
|
+
switch (_context5.prev = _context5.next) {
|
147
|
+
case 0:
|
148
|
+
_context5.next = 2;
|
149
|
+
return (0, _tplusApi.ccApi)((0, _extends3.default)({}, params), 'promotion/PromoCalculate/findUsefulCouponPromoList', false, false, { method: 'post', timeout_skip: true });
|
150
|
+
|
151
|
+
case 2:
|
152
|
+
result = _context5.sent;
|
153
|
+
return _context5.abrupt('return', result);
|
154
|
+
|
155
|
+
case 4:
|
156
|
+
case 'end':
|
157
|
+
return _context5.stop();
|
158
|
+
}
|
159
|
+
}
|
160
|
+
}, _callee5, undefined);
|
161
|
+
}));
|
162
|
+
|
163
|
+
return function (_x7) {
|
164
|
+
return _ref5.apply(this, arguments);
|
165
|
+
};
|
166
|
+
}(), _class.CheckCoupon = function () {
|
167
|
+
var _ref6 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(params) {
|
168
|
+
var result;
|
169
|
+
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
170
|
+
while (1) {
|
171
|
+
switch (_context6.prev = _context6.next) {
|
172
|
+
case 0:
|
173
|
+
_context6.next = 2;
|
174
|
+
return (0, _tplusApi.tApi)(params, 'chanjet.AA.DR.coupon.CheckCoupon', false, false);
|
175
|
+
|
176
|
+
case 2:
|
177
|
+
result = _context6.sent;
|
178
|
+
return _context6.abrupt('return', result);
|
179
|
+
|
180
|
+
case 4:
|
181
|
+
case 'end':
|
182
|
+
return _context6.stop();
|
183
|
+
}
|
184
|
+
}
|
185
|
+
}, _callee6, undefined);
|
186
|
+
}));
|
187
|
+
|
188
|
+
return function (_x8) {
|
189
|
+
return _ref6.apply(this, arguments);
|
190
|
+
};
|
191
|
+
}(), _class.getCardInfoByMemberId = function () {
|
192
|
+
var _ref7 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(memberId, isPay) {
|
193
|
+
var result;
|
194
|
+
return _regenerator2.default.wrap(function _callee7$(_context7) {
|
195
|
+
while (1) {
|
196
|
+
switch (_context7.prev = _context7.next) {
|
197
|
+
case 0:
|
198
|
+
_context7.next = 2;
|
199
|
+
return (0, _tplusApi.ccApi)({}, '/marketingtool/MeStorageCard/getCardInfoByMemberId/' + memberId + '/' + isPay, false, false, { method: 'get' });
|
200
|
+
|
201
|
+
case 2:
|
202
|
+
result = _context7.sent;
|
203
|
+
return _context7.abrupt('return', result);
|
204
|
+
|
205
|
+
case 4:
|
206
|
+
case 'end':
|
207
|
+
return _context7.stop();
|
208
|
+
}
|
209
|
+
}
|
210
|
+
}, _callee7, undefined);
|
211
|
+
}));
|
212
|
+
|
213
|
+
return function (_x9, _x10) {
|
214
|
+
return _ref7.apply(this, arguments);
|
215
|
+
};
|
216
|
+
}(), _class.executeRightsForPos = function () {
|
217
|
+
var _ref8 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8(billID) {
|
218
|
+
var result;
|
219
|
+
return _regenerator2.default.wrap(function _callee8$(_context8) {
|
220
|
+
while (1) {
|
221
|
+
switch (_context8.prev = _context8.next) {
|
222
|
+
case 0:
|
223
|
+
_context8.next = 2;
|
224
|
+
return (0, _tplusApi.ccApi)({}, '/marketingtool/paygift/executeRightsForPos/' + billID, false, false, { method: 'get', timeout_skip: true });
|
225
|
+
|
226
|
+
case 2:
|
227
|
+
result = _context8.sent;
|
228
|
+
return _context8.abrupt('return', result);
|
229
|
+
|
230
|
+
case 4:
|
231
|
+
case 'end':
|
232
|
+
return _context8.stop();
|
233
|
+
}
|
234
|
+
}
|
235
|
+
}, _callee8, undefined);
|
236
|
+
}));
|
237
|
+
|
238
|
+
return function (_x11) {
|
239
|
+
return _ref8.apply(this, arguments);
|
240
|
+
};
|
241
|
+
}(), _class.getRefWareHouseList = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9() {
|
242
|
+
var result;
|
243
|
+
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
244
|
+
while (1) {
|
245
|
+
switch (_context9.prev = _context9.next) {
|
246
|
+
case 0:
|
247
|
+
_context9.next = 2;
|
248
|
+
return (0, _tplusApi.ccApi)({}, '/retail/RetailPos/getRefWareHouseList', false, false);
|
249
|
+
|
250
|
+
case 2:
|
251
|
+
result = _context9.sent;
|
252
|
+
return _context9.abrupt('return', result);
|
253
|
+
|
254
|
+
case 4:
|
255
|
+
case 'end':
|
256
|
+
return _context9.stop();
|
257
|
+
}
|
258
|
+
}
|
259
|
+
}, _callee9, undefined);
|
260
|
+
})), _class.findStorageBillValidate = function () {
|
261
|
+
var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(dto) {
|
262
|
+
var result;
|
263
|
+
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
264
|
+
while (1) {
|
265
|
+
switch (_context10.prev = _context10.next) {
|
266
|
+
case 0:
|
267
|
+
_context10.next = 2;
|
268
|
+
return (0, _tplusApi.ccApi)(dto, '/marketingtool/Storage/findStorageBillValidate', false, false);
|
269
|
+
|
270
|
+
case 2:
|
271
|
+
result = _context10.sent;
|
272
|
+
return _context10.abrupt('return', result);
|
273
|
+
|
274
|
+
case 4:
|
275
|
+
case 'end':
|
276
|
+
return _context10.stop();
|
277
|
+
}
|
278
|
+
}
|
279
|
+
}, _callee10, undefined);
|
280
|
+
}));
|
281
|
+
|
282
|
+
return function (_x12) {
|
283
|
+
return _ref10.apply(this, arguments);
|
284
|
+
};
|
285
|
+
}(), _class.retailPosSettle = function () {
|
286
|
+
var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(params) {
|
287
|
+
var result;
|
288
|
+
return _regenerator2.default.wrap(function _callee11$(_context11) {
|
289
|
+
while (1) {
|
290
|
+
switch (_context11.prev = _context11.next) {
|
291
|
+
case 0:
|
292
|
+
_context11.next = 2;
|
293
|
+
return (0, _tplusApi.ccApi)(params, '/retail/RetailPos/settle', false, false, { method: 'post', timeout_skip: true });
|
294
|
+
|
295
|
+
case 2:
|
296
|
+
result = _context11.sent;
|
297
|
+
return _context11.abrupt('return', result);
|
298
|
+
|
299
|
+
case 4:
|
300
|
+
case 'end':
|
301
|
+
return _context11.stop();
|
302
|
+
}
|
303
|
+
}
|
304
|
+
}, _callee11, undefined);
|
305
|
+
}));
|
306
|
+
|
307
|
+
return function (_x13) {
|
308
|
+
return _ref11.apply(this, arguments);
|
309
|
+
};
|
310
|
+
}(), _class.validateRetailStorageCard = function () {
|
311
|
+
var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(params) {
|
312
|
+
var result;
|
313
|
+
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
314
|
+
while (1) {
|
315
|
+
switch (_context12.prev = _context12.next) {
|
316
|
+
case 0:
|
317
|
+
_context12.next = 2;
|
318
|
+
return (0, _tplusApi.ccApi)(params, '/retail/RetailPos/validateRetailStorageCard', false, false);
|
319
|
+
|
320
|
+
case 2:
|
321
|
+
result = _context12.sent;
|
322
|
+
return _context12.abrupt('return', result);
|
323
|
+
|
324
|
+
case 4:
|
325
|
+
case 'end':
|
326
|
+
return _context12.stop();
|
327
|
+
}
|
328
|
+
}
|
329
|
+
}, _callee12, undefined);
|
330
|
+
}));
|
331
|
+
|
332
|
+
return function (_x14) {
|
333
|
+
return _ref12.apply(this, arguments);
|
334
|
+
};
|
335
|
+
}(), _class.CalculdateIntegralSteadCash = function () {
|
336
|
+
var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(params) {
|
337
|
+
var result;
|
338
|
+
return _regenerator2.default.wrap(function _callee13$(_context13) {
|
339
|
+
while (1) {
|
340
|
+
switch (_context13.prev = _context13.next) {
|
341
|
+
case 0:
|
342
|
+
_context13.next = 2;
|
343
|
+
return (0, _tplusApi.tApi)(params, 'AA.DR.newRetailMember.CalculdateIntegralSteadCash', false, false);
|
344
|
+
|
345
|
+
case 2:
|
346
|
+
result = _context13.sent;
|
347
|
+
return _context13.abrupt('return', result);
|
348
|
+
|
349
|
+
case 4:
|
350
|
+
case 'end':
|
351
|
+
return _context13.stop();
|
352
|
+
}
|
353
|
+
}
|
354
|
+
}, _callee13, undefined);
|
355
|
+
}));
|
356
|
+
|
357
|
+
return function (_x15) {
|
358
|
+
return _ref13.apply(this, arguments);
|
359
|
+
};
|
360
|
+
}(), _class.GetUmemberDTO = function () {
|
361
|
+
var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14(params) {
|
362
|
+
var result;
|
363
|
+
return _regenerator2.default.wrap(function _callee14$(_context14) {
|
364
|
+
while (1) {
|
365
|
+
switch (_context14.prev = _context14.next) {
|
366
|
+
case 0:
|
367
|
+
_context14.next = 2;
|
368
|
+
return (0, _tplusApi.tApi)(params, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
|
369
|
+
|
370
|
+
case 2:
|
371
|
+
result = _context14.sent;
|
372
|
+
return _context14.abrupt('return', result);
|
373
|
+
|
374
|
+
case 4:
|
375
|
+
case 'end':
|
376
|
+
return _context14.stop();
|
377
|
+
}
|
378
|
+
}
|
379
|
+
}, _callee14, undefined);
|
380
|
+
}));
|
381
|
+
|
382
|
+
return function (_x16) {
|
383
|
+
return _ref14.apply(this, arguments);
|
384
|
+
};
|
385
|
+
}(), _class.SearchMember = function () {
|
386
|
+
var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(params) {
|
387
|
+
var result;
|
388
|
+
return _regenerator2.default.wrap(function _callee15$(_context15) {
|
389
|
+
while (1) {
|
390
|
+
switch (_context15.prev = _context15.next) {
|
391
|
+
case 0:
|
392
|
+
_context15.next = 2;
|
393
|
+
return (0, _tplusApi.tApi)(params, 'AA.DR.newRetailMember.SearchMember', false, false);
|
394
|
+
|
395
|
+
case 2:
|
396
|
+
result = _context15.sent;
|
397
|
+
return _context15.abrupt('return', result);
|
398
|
+
|
399
|
+
case 4:
|
400
|
+
case 'end':
|
401
|
+
return _context15.stop();
|
402
|
+
}
|
403
|
+
}
|
404
|
+
}, _callee15, undefined);
|
405
|
+
}));
|
406
|
+
|
407
|
+
return function (_x17) {
|
408
|
+
return _ref15.apply(this, arguments);
|
409
|
+
};
|
410
|
+
}(), _class.INewRetailMemberStorageSave = function () {
|
411
|
+
var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(params) {
|
412
|
+
var result;
|
413
|
+
return _regenerator2.default.wrap(function _callee16$(_context16) {
|
414
|
+
while (1) {
|
415
|
+
switch (_context16.prev = _context16.next) {
|
416
|
+
case 0:
|
417
|
+
_context16.next = 2;
|
418
|
+
return (0, _tplusApi.tApi)(params, 'chanjet.ME.INewRetailMemberStorage.Save', false, false);
|
419
|
+
|
420
|
+
case 2:
|
421
|
+
result = _context16.sent;
|
422
|
+
return _context16.abrupt('return', result);
|
423
|
+
|
424
|
+
case 4:
|
425
|
+
case 'end':
|
426
|
+
return _context16.stop();
|
427
|
+
}
|
428
|
+
}
|
429
|
+
}, _callee16, undefined);
|
430
|
+
}));
|
431
|
+
|
432
|
+
return function (_x18) {
|
433
|
+
return _ref16.apply(this, arguments);
|
434
|
+
};
|
435
|
+
}(), _class.GetNewIntegralExchange = function () {
|
436
|
+
var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee17(params) {
|
437
|
+
var result;
|
438
|
+
return _regenerator2.default.wrap(function _callee17$(_context17) {
|
439
|
+
while (1) {
|
440
|
+
switch (_context17.prev = _context17.next) {
|
441
|
+
case 0:
|
442
|
+
_context17.next = 2;
|
443
|
+
return (0, _tplusApi.tApi)(params, 'chanjet.RE.NewPos.GetNewIntegralExchange', false, false);
|
444
|
+
|
445
|
+
case 2:
|
446
|
+
result = _context17.sent;
|
447
|
+
return _context17.abrupt('return', result);
|
448
|
+
|
449
|
+
case 4:
|
450
|
+
case 'end':
|
451
|
+
return _context17.stop();
|
452
|
+
}
|
453
|
+
}
|
454
|
+
}, _callee17, undefined);
|
455
|
+
}));
|
456
|
+
|
457
|
+
return function (_x19) {
|
458
|
+
return _ref17.apply(this, arguments);
|
459
|
+
};
|
460
|
+
}(), _class.QuerySettleResult = function () {
|
461
|
+
var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee18(params) {
|
462
|
+
var result;
|
463
|
+
return _regenerator2.default.wrap(function _callee18$(_context18) {
|
464
|
+
while (1) {
|
465
|
+
switch (_context18.prev = _context18.next) {
|
466
|
+
case 0:
|
467
|
+
_context18.next = 2;
|
468
|
+
return (0, _tplusApi.tApi)(params, 'chanjet.RE.newRetail.QuerySettleResult', false, false);
|
469
|
+
|
470
|
+
case 2:
|
471
|
+
result = _context18.sent;
|
472
|
+
return _context18.abrupt('return', result);
|
473
|
+
|
474
|
+
case 4:
|
475
|
+
case 'end':
|
476
|
+
return _context18.stop();
|
477
|
+
}
|
478
|
+
}
|
479
|
+
}, _callee18, undefined);
|
480
|
+
}));
|
481
|
+
|
482
|
+
return function (_x20) {
|
483
|
+
return _ref18.apply(this, arguments);
|
484
|
+
};
|
485
|
+
}(), _class.GetNewStoreSettleStyles = function () {
|
486
|
+
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee19(params) {
|
487
|
+
var result;
|
488
|
+
return _regenerator2.default.wrap(function _callee19$(_context19) {
|
489
|
+
while (1) {
|
490
|
+
switch (_context19.prev = _context19.next) {
|
491
|
+
case 0:
|
492
|
+
_context19.next = 2;
|
493
|
+
return (0, _tplusApi.tApi)(params, 'chanjet.RE.NewPos.GetNewStoreSettleStyles', false, false);
|
494
|
+
|
495
|
+
case 2:
|
496
|
+
result = _context19.sent;
|
497
|
+
return _context19.abrupt('return', result);
|
498
|
+
|
499
|
+
case 4:
|
500
|
+
case 'end':
|
501
|
+
return _context19.stop();
|
502
|
+
}
|
503
|
+
}
|
504
|
+
}, _callee19, undefined);
|
505
|
+
}));
|
506
|
+
|
507
|
+
return function (_x21) {
|
508
|
+
return _ref19.apply(this, arguments);
|
509
|
+
};
|
510
|
+
}(), _temp);
|
511
|
+
exports.default = SettlementApi;
|
512
|
+
//# sourceMappingURL=settlementApi.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["tplus-components-touch/components/settlement/settlementApi.js"],"names":["SettlementApi","setWalletPayPassword","params","method","timeout_skip","result","getCardInfoByCardNo","storageCardNo","isPay","undefined","code","checkPaymentPassword","id","CheckoutMemberPassword","findUsefulCouponPromoList","CheckCoupon","getCardInfoByMemberId","memberId","executeRightsForPos","billID","getRefWareHouseList","findStorageBillValidate","dto","retailPosSettle","validateRetailStorageCard","CalculdateIntegralSteadCash","GetUmemberDTO","SearchMember","INewRetailMemberStorageSave","GetNewIntegralExchange","QuerySettleResult","GetNewStoreSettleStyles"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;mBAAA;;;;;;;;;;AAQA;;;;IAEqBA,a;;UAMVC,oB;wFAAuB,iBAAOC,MAAP;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+BACL,qBACjBA,MADiB,EAEjB,6CAFiB,EAGjB,KAHiB,EAIjB,KAJiB,EAKjB,EAAEC,QAAQ,MAAV,EAAkBC,cAAc,IAAhC,EALiB,CADK;;AAAA;AACpBC,8BADoB;AAAA,yDAQnBA,MARmB;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,K;;;;;YAgBtBC,mB;yFAAsB,kBAAOC,aAAP,EAAsBC,KAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AACpBN,8BADoB,GACXM,SAASC,SAAT,GAAqB,EAACC,MAAMH,aAAP,EAArB,GAA6C,EADlC;AAAA;AAAA,+BAEL,qBACjBL,MADiB,wDAEmCK,aAFnC,SAEoDC,KAFpD,EAGjB,KAHiB,EAIjB,KAJiB,EAKjB,EAAEL,QAAQ,KAAV,EAAiBC,cAAc,IAA/B,EALiB,CAFK;;AAAA;AAEpBC,8BAFoB;AAAA,0DASnBA,MATmB;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,K;;;;;YAkBvBM,oB;yFAAuB,kBAAOT,MAAP,EAAeU,EAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+BACL,qBACjBV,MADiB,mDAE8BU,EAF9B,EAGjB,KAHiB,EAIjB,KAJiB,CADK;;AAAA;AACpBP,8BADoB;AAAA,0DAOnBA,MAPmB;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,K;;;;;YAetBQ,sB;yFAAyB,kB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AClBG,8BADkB;AAAA,2DAOjBA,MAPiB;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,K;;;;;YAepB0B,uB;0FAA0B,mBAAO7B,MAAP;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+BACT,oBACjBA,MADiB,EAEjB,2CAFiB,EAGjB,KAHiB,EAIjB,KAJiB,CADS;;AAAA;AACxBG,8BADwB;AAAA,2DAOvBA,MAPuB;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,K;;;;;;kBA7RjBL,a","file":"settlementApi.js","sourcesContent":["/*\n * @Author: Lixuhan\n * @Date: 2022-03-16 18:51:16\n * @LastEditTime: 2022-04-01 14:03:31\n * @LastEditors: Lixuhan\n * @Description: 结算接口文件\n * @FilePath: /new_retail_cc_ssh_ master_running_fast/componentsTouch/src/components/settlement/settlementApi.js\n */\nimport {ccApi,tApi, User} from 'tplus-api';\n\nexport default class SettlementApi {\n /**\n * @description: 设置/修改储值卡支付密码\n * @param {*} params 请求参数\n * @return {*} Promise\n */ \n static setWalletPayPassword = async (params) => {\n const result = await ccApi(\n params, \n '/member/MeMemberWallet/setWalletPayPassword', \n false, \n false, \n { method: 'post', timeout_skip: true}\n )\n return result\n }\n /**\n * @description: 获取储值卡信息\n * @param {*} storageCardNo String 储值卡号\n * @param {*} isPay Boolean 是否是支付时获取卡信息\n * @return {*} Promise\n */ \n static getCardInfoByCardNo = async (storageCardNo, isPay) => {\n const params = isPay != undefined ? {code: storageCardNo} : {}\n const result = await ccApi(\n params, \n `/marketingtool/MeStorageCard/getCardInfoByCardNo/${storageCardNo}/${isPay}`, \n false, \n false, \n { method: 'get', timeout_skip: true }\n )\n return result\n }\n\n /**\n * @description: 检查支付密码是否可用\n * @param {*} params Object 请求参数\n * @param {*} id String 卡ID/会员ID\n * @return {*}\n */ \n static checkPaymentPassword = async (params, id) => {\n const result = await ccApi(\n params, \n `/member/MeMemberWallet/checkPaymentPassword/${id}`, \n false, \n false\n )\n return result\n }\n\n /**\n * @description: 检查会员密码是否正确\n * @param {*} params Object\n * @return {*} Promise\n */ \n static CheckoutMemberPassword = async (params) => {\n const result = await tApi(\n params, \n 'AA.DR.newRetailMember.CheckoutMemberPassword', \n false, \n false\n )\n return result \n }\n\n /**\n * @description: 查询可用的优惠券\n * @param {*} params Object\n * @return {*} Promise\n */ \n static findUsefulCouponPromoList = async (params) => {\n const result = await ccApi(\n {...params}, \n 'promotion/PromoCalculate/findUsefulCouponPromoList', \n false, \n false,\n {method:'post',timeout_skip:true}\n )\n return result\n }\n\n /**\n * @description: 获取优惠券\n * @param {*} params Object\n * @return {*} Promise\n */ \n static CheckCoupon = async (params) => {\n const result = await tApi(\n params, \n 'chanjet.AA.DR.coupon.CheckCoupon', \n false, \n false\n )\n return result \n }\n\n /**\n * @description: 使用会员ID查看余额卡信息\n * @param {*} memberId String 会员ID\n * @param {*} isPay Boolean 是否是支付时查看\n * @return {*} Promise\n */ \n static getCardInfoByMemberId = async (memberId, isPay) => {\n const result = await ccApi(\n {},\n `/marketingtool/MeStorageCard/getCardInfoByMemberId/${memberId}/${isPay}`,\n false, \n false, \n { method: 'get' }\n )\n return result\n }\n \n /**\n * @description: 根据单据ID获取赠品信息\n * @param {*} billID String 单据ID\n * @return {*} Promise\n */ \n static executeRightsForPos = async (billID) => {\n const result = await ccApi(\n {}, \n `/marketingtool/paygift/executeRightsForPos/${billID}`, \n false, \n false, \n { method: 'get', timeout_skip: true }\n )\n return result\n }\n\n /**\n * @description: \n * @param {*}\n * @return {*}\n */ \n static getRefWareHouseList = async () => {\n const result = await ccApi(\n {}, \n `/retail/RetailPos/getRefWareHouseList`, \n false, \n false\n )\n return result\n }\n\n /**\n * @description: 是否是重复储值\n * @param {*} dto Object 结算信息\n * @return {*} Promise\n */ \n static findStorageBillValidate = async (dto) => {\n const result = await ccApi(\n dto, \n `/marketingtool/Storage/findStorageBillValidate`, \n false, \n false\n )\n return result \n }\n\n /**\n * @description: 保存结算信息\n * @param {*} params Object 结算信息\n * @return {*} Promise\n */ \n static retailPosSettle = async (params) => {\n const result = await ccApi(\n params, \n '/retail/RetailPos/settle', \n false, \n false, \n { method: 'post', timeout_skip: true }\n )\n return result \n }\n\n /**\n * @description: 校验储值卡是否可用\n * @param {*} params Object 卡信息\n * @return {*} Promise\n */ \n static validateRetailStorageCard = async (params) => {\n const result = await ccApi(\n params, \n '/retail/RetailPos/validateRetailStorageCard', \n false, \n false\n )\n return result\n }\n\n /**\n * @description: 查询会员可用积分\n * @param {*} params Object\n * @return {*} Promise\n */ \n static CalculdateIntegralSteadCash = async (params) => {\n const result = await tApi(\n params, \n 'AA.DR.newRetailMember.CalculdateIntegralSteadCash', \n false, \n false\n )\n return result\n }\n\n /**\n * @description: 设置密码后更新会员信息\n * @param {*} params Object\n * @return {*} Promise\n */ \n static GetUmemberDTO = async (params) => {\n const result = await tApi(\n params, \n 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', \n false, \n false\n )\n return result \n }\n\n /**\n * @description: 获取会员信息\n * @param {*} params Object\n * @return {*} Promise\n */ \n static SearchMember = async (params) => {\n const result = await tApi(\n params, \n 'AA.DR.newRetailMember.SearchMember', \n false, \n false\n )\n return result \n }\n\n /**\n * @description: 保存储值结算\n * @param {*} params Object\n * @return {*} Promise\n */ \n static INewRetailMemberStorageSave = async (params) => {\n const result = await tApi(\n params, \n 'chanjet.ME.INewRetailMemberStorage.Save', \n false, \n false\n )\n return result \n }\n\n /**\n * @description: 查询退货的积分是否可用\n * @param {*} params Object\n * @return {*} Promise\n */ \n static GetNewIntegralExchange = async (params) => {\n const result = await tApi(\n params, \n 'chanjet.RE.NewPos.GetNewIntegralExchange', \n false, \n false\n )\n return result \n }\n\n /**\n * @description: 查询结算处理结果\n * @param {*} params Object\n * @return {*} Promise\n */ \n static QuerySettleResult = async (params) => {\n const result = await tApi(\n params, \n 'chanjet.RE.newRetail.QuerySettleResult', \n false, \n false\n )\n return result \n }\n\n /**\n * @description: 查询结算处理结果\n * @param {*} params Object\n * @return {*} Promise\n */ \n static GetNewStoreSettleStyles = async (params) => {\n const result = await tApi(\n params, \n 'chanjet.RE.NewPos.GetNewStoreSettleStyles', \n false, \n false\n )\n return result \n }\n}"]}
|