tplus-components-touch 3.50.2 → 3.50.3
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/dist/components/hotKey/index.js +2 -1
- package/dist/components/hotKey/index.js.map +1 -1
- package/dist/components/settlement/settlement.js +4 -1
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlementStore.js +96 -79
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/package.json +2 -2
@@ -45,7 +45,7 @@ var _createClass2 = require('babel-runtime/helpers/createClass');
|
|
45
45
|
|
46
46
|
var _createClass3 = _interopRequireDefault(_createClass2);
|
47
47
|
|
48
|
-
var _desc, _value, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _class2, _temp, _initialiseProps, _desc2, _value2, _class3,
|
48
|
+
var _desc, _value, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _class2, _temp, _initialiseProps, _desc2, _value2, _class3, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _desc3, _value3, _class5, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23;
|
49
49
|
|
50
50
|
var _mobx = require('mobx');
|
51
51
|
|
@@ -169,7 +169,7 @@ function _initializerWarningHelper(descriptor, context) {
|
|
169
169
|
var t = _mutantsMicrofx.i18n.getFixedT(null, 'newretail');
|
170
170
|
|
171
171
|
var SettlementStore = (_class = (_temp = _class2 = function () {
|
172
|
-
//
|
172
|
+
//type==2
|
173
173
|
function SettlementStore() {
|
174
174
|
(0, _classCallCheck3.default)(this, SettlementStore);
|
175
175
|
|
@@ -180,8 +180,7 @@ var SettlementStore = (_class = (_temp = _class2 = function () {
|
|
180
180
|
if (params) this.cloudPrintArguments = params;
|
181
181
|
this.setNewStyle();
|
182
182
|
this.SettlementApi = _settlementApi2.default;
|
183
|
-
} //
|
184
|
-
|
183
|
+
} // 预售都是全款;预订是否全款,在点击确认支付时计算订金和商品金额计算得出
|
185
184
|
|
186
185
|
(0, _createClass3.default)(SettlementStore, [{
|
187
186
|
key: 'initPaymodes',
|
@@ -1698,15 +1697,19 @@ var SettlementStore = (_class = (_temp = _class2 = function () {
|
|
1698
1697
|
|
1699
1698
|
this.isFull = true;
|
1700
1699
|
|
1701
|
-
_initDefineProp(this, '
|
1700
|
+
_initDefineProp(this, 'isCanSettleOnQuickKey', _descriptor2, this);
|
1701
|
+
|
1702
|
+
_initDefineProp(this, 'setCanSettleOnQuickKey', _descriptor3, this);
|
1702
1703
|
|
1703
|
-
_initDefineProp(this, '
|
1704
|
+
_initDefineProp(this, 'setNewStyle', _descriptor4, this);
|
1704
1705
|
|
1705
|
-
_initDefineProp(this, '
|
1706
|
+
_initDefineProp(this, 'queryPwd', _descriptor5, this);
|
1706
1707
|
|
1707
|
-
_initDefineProp(this, '
|
1708
|
+
_initDefineProp(this, 'updateMemberInfo', _descriptor6, this);
|
1708
1709
|
|
1709
|
-
_initDefineProp(this, '
|
1710
|
+
_initDefineProp(this, 'updateCurrentMode', _descriptor7, this);
|
1711
|
+
|
1712
|
+
_initDefineProp(this, 'updateCardInfo', _descriptor8, this);
|
1710
1713
|
|
1711
1714
|
this.handleCzkData = function (m) {
|
1712
1715
|
if (!m || !m.StorageCardNo) {
|
@@ -2024,20 +2027,34 @@ var SettlementStore = (_class = (_temp = _class2 = function () {
|
|
2024
2027
|
initializer: function initializer() {
|
2025
2028
|
return true;
|
2026
2029
|
}
|
2027
|
-
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, '
|
2030
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, 'isCanSettleOnQuickKey', [_mobx.observable], {
|
2031
|
+
enumerable: true,
|
2032
|
+
initializer: function initializer() {
|
2033
|
+
return true;
|
2034
|
+
}
|
2035
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'setCanSettleOnQuickKey', [_mobx.action], {
|
2028
2036
|
enumerable: true,
|
2029
2037
|
initializer: function initializer() {
|
2030
2038
|
var _this14 = this;
|
2031
2039
|
|
2040
|
+
return function (value) {
|
2041
|
+
_this14.isCanSettleOnQuickKey = value;
|
2042
|
+
};
|
2043
|
+
}
|
2044
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, 'setNewStyle', [_mobx.action], {
|
2045
|
+
enumerable: true,
|
2046
|
+
initializer: function initializer() {
|
2047
|
+
var _this15 = this;
|
2048
|
+
|
2032
2049
|
return function () {
|
2033
2050
|
var voucherDefaultPosMode = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('voucherDefaultPosMode') || 'touch';
|
2034
|
-
|
2051
|
+
_this15.newStyle = voucherDefaultPosMode == 'voucher';
|
2035
2052
|
};
|
2036
2053
|
}
|
2037
|
-
}),
|
2054
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, 'queryPwd', [_mobx.action], {
|
2038
2055
|
enumerable: true,
|
2039
2056
|
initializer: function initializer() {
|
2040
|
-
var
|
2057
|
+
var _this16 = this;
|
2041
2058
|
|
2042
2059
|
return function (newPass, newPassConfirm) {
|
2043
2060
|
if (!newPass || !newPassConfirm) {
|
@@ -2047,9 +2064,9 @@ var SettlementStore = (_class = (_temp = _class2 = function () {
|
|
2047
2064
|
return _message2.default.warn('您两次输入的密码不一致');
|
2048
2065
|
}
|
2049
2066
|
var idstore = (0, _tplusPoslogin.PosInitData)('storeID');
|
2050
|
-
return
|
2067
|
+
return _this16.SettlementApi.setWalletPayPassword({
|
2051
2068
|
Idstore: idstore,
|
2052
|
-
meMemberId:
|
2069
|
+
meMemberId: _this16.paymode.currentMode.memberId,
|
2053
2070
|
oldPassword: null,
|
2054
2071
|
newPassword: _tplusApi.User.pwdEncrypt(newPassConfirm),
|
2055
2072
|
dataSource: "POS"
|
@@ -2060,10 +2077,10 @@ var SettlementStore = (_class = (_temp = _class2 = function () {
|
|
2060
2077
|
});
|
2061
2078
|
};
|
2062
2079
|
}
|
2063
|
-
}), _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),
|
2080
|
+
}), _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), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, 'updateMemberInfo', [_mobx.action], {
|
2064
2081
|
enumerable: true,
|
2065
2082
|
initializer: function initializer() {
|
2066
|
-
var
|
2083
|
+
var _this17 = this;
|
2067
2084
|
|
2068
2085
|
return function () {
|
2069
2086
|
var _ref26 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(_this) {
|
@@ -2073,9 +2090,9 @@ var SettlementStore = (_class = (_temp = _class2 = function () {
|
|
2073
2090
|
while (1) {
|
2074
2091
|
switch (_context12.prev = _context12.next) {
|
2075
2092
|
case 0:
|
2076
|
-
_getLoginInfo4 =
|
2093
|
+
_getLoginInfo4 = _this17.getLoginInfo(), IdStore = _getLoginInfo4.IdStore, StoreCode = _getLoginInfo4.StoreCode;
|
2077
2094
|
_context12.next = 3;
|
2078
|
-
return
|
2095
|
+
return _this17.SettlementApi.GetUmemberDTO({ Idmember: _this17.member.ID, IdStore: IdStore, StoreCode: StoreCode });
|
2079
2096
|
|
2080
2097
|
case 3:
|
2081
2098
|
resp = _context12.sent;
|
@@ -2089,7 +2106,7 @@ var SettlementStore = (_class = (_temp = _class2 = function () {
|
|
2089
2106
|
return _context12.stop();
|
2090
2107
|
}
|
2091
2108
|
}
|
2092
|
-
}, _callee12,
|
2109
|
+
}, _callee12, _this17);
|
2093
2110
|
}));
|
2094
2111
|
|
2095
2112
|
return function (_x10) {
|
@@ -2097,10 +2114,10 @@ var SettlementStore = (_class = (_temp = _class2 = function () {
|
|
2097
2114
|
};
|
2098
2115
|
}();
|
2099
2116
|
}
|
2100
|
-
}),
|
2117
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, 'updateCurrentMode', [_mobx.action], {
|
2101
2118
|
enumerable: true,
|
2102
2119
|
initializer: function initializer() {
|
2103
|
-
var
|
2120
|
+
var _this18 = this;
|
2104
2121
|
|
2105
2122
|
return function () {
|
2106
2123
|
var _ref27 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(memberId, returnType) {
|
@@ -2113,7 +2130,7 @@ var SettlementStore = (_class = (_temp = _class2 = function () {
|
|
2113
2130
|
// 查看会员卡信息
|
2114
2131
|
|
2115
2132
|
_context13.next = 3;
|
2116
|
-
return
|
2133
|
+
return _this18.SettlementApi.getCardInfoByMemberId(memberId, isOnlyEnabled);
|
2117
2134
|
|
2118
2135
|
case 3:
|
2119
2136
|
result = _context13.sent;
|
@@ -2128,7 +2145,7 @@ var SettlementStore = (_class = (_temp = _class2 = function () {
|
|
2128
2145
|
break;
|
2129
2146
|
}
|
2130
2147
|
|
2131
|
-
|
2148
|
+
_this18.paymode.updateCardInfo(result.data[0]);
|
2132
2149
|
return _context13.abrupt('return', result.data);
|
2133
2150
|
|
2134
2151
|
case 10:
|
@@ -2137,7 +2154,7 @@ var SettlementStore = (_class = (_temp = _class2 = function () {
|
|
2137
2154
|
break;
|
2138
2155
|
}
|
2139
2156
|
|
2140
|
-
|
2157
|
+
_this18.paymode.updateCardInfo(result.data[0]);
|
2141
2158
|
return _context13.abrupt('return', result.data);
|
2142
2159
|
|
2143
2160
|
case 15:
|
@@ -2157,7 +2174,7 @@ var SettlementStore = (_class = (_temp = _class2 = function () {
|
|
2157
2174
|
return _context13.stop();
|
2158
2175
|
}
|
2159
2176
|
}
|
2160
|
-
}, _callee13,
|
2177
|
+
}, _callee13, _this18);
|
2161
2178
|
}));
|
2162
2179
|
|
2163
2180
|
return function (_x11, _x12) {
|
@@ -2165,10 +2182,10 @@ var SettlementStore = (_class = (_temp = _class2 = function () {
|
|
2165
2182
|
};
|
2166
2183
|
}();
|
2167
2184
|
}
|
2168
|
-
}),
|
2185
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, 'updateCardInfo', [_mobx.action], {
|
2169
2186
|
enumerable: true,
|
2170
2187
|
initializer: function initializer() {
|
2171
|
-
var
|
2188
|
+
var _this19 = this;
|
2172
2189
|
|
2173
2190
|
return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
|
2174
2191
|
var ctMode, cardNo, result;
|
@@ -2176,22 +2193,22 @@ var SettlementStore = (_class = (_temp = _class2 = function () {
|
|
2176
2193
|
while (1) {
|
2177
2194
|
switch (_context14.prev = _context14.next) {
|
2178
2195
|
case 0:
|
2179
|
-
ctMode =
|
2196
|
+
ctMode = _this19.paymode && _this19.paymode.currentMode;
|
2180
2197
|
cardNo = ctMode && ctMode.storageCardNo;
|
2181
2198
|
_context14.next = 4;
|
2182
|
-
return
|
2199
|
+
return _this19.SettlementApi.getCardInfoByCardNo(cardNo);
|
2183
2200
|
|
2184
2201
|
case 4:
|
2185
2202
|
result = _context14.sent;
|
2186
2203
|
|
2187
|
-
|
2204
|
+
_this19.paymode.updateCardInfo(result && result.data);
|
2188
2205
|
|
2189
2206
|
case 6:
|
2190
2207
|
case 'end':
|
2191
2208
|
return _context14.stop();
|
2192
2209
|
}
|
2193
2210
|
}
|
2194
|
-
}, _callee14,
|
2211
|
+
}, _callee14, _this19);
|
2195
2212
|
}));
|
2196
2213
|
}
|
2197
2214
|
}), _applyDecoratedDescriptor(_class.prototype, 'addDjq', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'addDjq'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeFocusOnly', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeFocusOnly'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeClickFocusOnly', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeClickFocusOnly'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeValue'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'addPayDirectly', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'addPayDirectly'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'addPay', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'addPay'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'delPay', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'delPay'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'setDtoID', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'setDtoID'), _class.prototype)), _class);
|
@@ -2208,23 +2225,23 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
2208
2225
|
this.onlineamount = 0;
|
2209
2226
|
this.maxamount = 0;
|
2210
2227
|
|
2211
|
-
_initDefineProp(this, 'currentFocus',
|
2228
|
+
_initDefineProp(this, 'currentFocus', _descriptor9, this);
|
2212
2229
|
|
2213
|
-
_initDefineProp(this, 'received',
|
2230
|
+
_initDefineProp(this, 'received', _descriptor10, this);
|
2214
2231
|
|
2215
|
-
_initDefineProp(this, 'receivable',
|
2232
|
+
_initDefineProp(this, 'receivable', _descriptor11, this);
|
2216
2233
|
|
2217
|
-
_initDefineProp(this, 'paymodes',
|
2234
|
+
_initDefineProp(this, 'paymodes', _descriptor12, this);
|
2218
2235
|
|
2219
|
-
_initDefineProp(this, 'thePaymodes',
|
2236
|
+
_initDefineProp(this, 'thePaymodes', _descriptor13, this);
|
2220
2237
|
|
2221
2238
|
this.bookMaxValue = 0;
|
2222
2239
|
this.isNotFullBook = false;
|
2223
2240
|
this.isNotFullOnlyBook = false;
|
2224
2241
|
|
2225
|
-
_initDefineProp(this, 'storageCardNo',
|
2242
|
+
_initDefineProp(this, 'storageCardNo', _descriptor14, this);
|
2226
2243
|
|
2227
|
-
_initDefineProp(this, 'balance',
|
2244
|
+
_initDefineProp(this, 'balance', _descriptor15, this);
|
2228
2245
|
|
2229
2246
|
this.currentMode = null;
|
2230
2247
|
this.checkList = [];
|
@@ -2233,11 +2250,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
2233
2250
|
hotKey: "Ctrl+M"
|
2234
2251
|
};
|
2235
2252
|
|
2236
|
-
_initDefineProp(this, 'calcCheckList',
|
2253
|
+
_initDefineProp(this, 'calcCheckList', _descriptor16, this);
|
2237
2254
|
|
2238
|
-
_initDefineProp(this, 'setCouponNum',
|
2255
|
+
_initDefineProp(this, 'setCouponNum', _descriptor17, this);
|
2239
2256
|
|
2240
|
-
_initDefineProp(this, 'addDjqs',
|
2257
|
+
_initDefineProp(this, 'addDjqs', _descriptor18, this);
|
2241
2258
|
}
|
2242
2259
|
// @observable store = null;
|
2243
2260
|
//只是预订场景下,现场提货,且选项设置订金比例非100%时 为 true
|
@@ -2310,7 +2327,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
2310
2327
|
}, {
|
2311
2328
|
key: 'calcDjqCheckValue',
|
2312
2329
|
value: function calcDjqCheckValue(q1, dto, params) {
|
2313
|
-
var
|
2330
|
+
var _this20 = this;
|
2314
2331
|
|
2315
2332
|
var useLimitPerOrder = (0, _tplusPoslogin.PosInitData)('UseLimitPerOrder');
|
2316
2333
|
var qList = (0, _filter3.default)(this.currentMode.djqs, function (djq) {
|
@@ -2354,7 +2371,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
2354
2371
|
if (!q1.checked) {
|
2355
2372
|
this.checkList.forEach(function (ele, i) {
|
2356
2373
|
if (ele.id === q1.id) {
|
2357
|
-
|
2374
|
+
_this20.checkList.splice(i, 1);
|
2358
2375
|
}
|
2359
2376
|
});
|
2360
2377
|
} else {
|
@@ -2426,7 +2443,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
2426
2443
|
if (result && result.length != 0) {
|
2427
2444
|
result.forEach(function (element, index) {
|
2428
2445
|
var djq1 = false;
|
2429
|
-
|
2446
|
+
_this20.currentMode.djqs.forEach(function (djq) {
|
2430
2447
|
if (element.id === djq.id) {
|
2431
2448
|
djq1 = true;
|
2432
2449
|
}
|
@@ -2471,10 +2488,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
2471
2488
|
// couponCategoryEnum: tieredAmountResult.couponCategoryEnum,
|
2472
2489
|
// id
|
2473
2490
|
// })
|
2474
|
-
|
2491
|
+
_this20.addDjqs(couponCode, name, true, nominalAmount, promoDiscount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
|
2475
2492
|
djq1 = false;
|
2476
2493
|
} else {
|
2477
|
-
|
2494
|
+
_this20.setCouponNum(element.id, couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
|
2478
2495
|
// this.currentMode.djqs[0].couponCategoryEnum = 'couponCategoryEnum';
|
2479
2496
|
// djq1.couponCategoryEnum = element.tieredAmountResult.couponCategoryEnum
|
2480
2497
|
}
|
@@ -2589,7 +2606,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
2589
2606
|
key: 'setPaymodes',
|
2590
2607
|
value: function () {
|
2591
2608
|
var _ref30 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(type, isIntegralExchange) {
|
2592
|
-
var
|
2609
|
+
var _this21 = this;
|
2593
2610
|
|
2594
2611
|
var _ref31, isHorizontalPad, isHorizontalSunMi, isMobileEnvironment, _enumController$getEn21, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
|
2595
2612
|
|
@@ -2637,7 +2654,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
2637
2654
|
thridPayment: mode.ThirdPaymentInfo
|
2638
2655
|
});
|
2639
2656
|
});
|
2640
|
-
|
2657
|
+
_this21.paymodes = paymodes;
|
2641
2658
|
});
|
2642
2659
|
}
|
2643
2660
|
|
@@ -2667,57 +2684,57 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
2667
2684
|
}
|
2668
2685
|
}]);
|
2669
2686
|
return PayMode;
|
2670
|
-
}(), (
|
2687
|
+
}(), (_descriptor9 = _applyDecoratedDescriptor(_class3.prototype, 'currentFocus', [_mobx.observable], {
|
2671
2688
|
enumerable: true,
|
2672
2689
|
initializer: function initializer() {
|
2673
2690
|
return "";
|
2674
2691
|
}
|
2675
|
-
}),
|
2692
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'received', [_mobx.observable], {
|
2676
2693
|
enumerable: true,
|
2677
2694
|
initializer: function initializer() {
|
2678
2695
|
return 0;
|
2679
2696
|
}
|
2680
|
-
}),
|
2697
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class3.prototype, 'receivable', [_mobx.observable], {
|
2681
2698
|
enumerable: true,
|
2682
2699
|
initializer: function initializer() {
|
2683
2700
|
return 0;
|
2684
2701
|
}
|
2685
|
-
}),
|
2702
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class3.prototype, 'paymodes', [_mobx.observable], {
|
2686
2703
|
enumerable: true,
|
2687
2704
|
initializer: function initializer() {
|
2688
2705
|
return [];
|
2689
2706
|
}
|
2690
|
-
}),
|
2707
|
+
}), _descriptor13 = _applyDecoratedDescriptor(_class3.prototype, 'thePaymodes', [_mobx.observable], {
|
2691
2708
|
enumerable: true,
|
2692
2709
|
initializer: function initializer() {
|
2693
2710
|
return [];
|
2694
2711
|
}
|
2695
|
-
}),
|
2712
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class3.prototype, 'storageCardNo', [_mobx.observable], {
|
2696
2713
|
enumerable: true,
|
2697
2714
|
initializer: function initializer() {
|
2698
2715
|
return null;
|
2699
2716
|
}
|
2700
|
-
}),
|
2717
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class3.prototype, 'balance', [_mobx.observable], {
|
2701
2718
|
enumerable: true,
|
2702
2719
|
initializer: function initializer() {
|
2703
2720
|
return null;
|
2704
2721
|
}
|
2705
|
-
}), _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),
|
2722
|
+
}), _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), _descriptor16 = _applyDecoratedDescriptor(_class3.prototype, 'calcCheckList', [_mobx.action], {
|
2706
2723
|
enumerable: true,
|
2707
2724
|
initializer: function initializer() {
|
2708
|
-
var
|
2725
|
+
var _this22 = this;
|
2709
2726
|
|
2710
2727
|
return function () {
|
2711
|
-
|
2728
|
+
_this22.checkList = [];
|
2712
2729
|
};
|
2713
2730
|
}
|
2714
|
-
}), _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),
|
2731
|
+
}), _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), _descriptor17 = _applyDecoratedDescriptor(_class3.prototype, 'setCouponNum', [_mobx.action], {
|
2715
2732
|
enumerable: true,
|
2716
2733
|
initializer: function initializer() {
|
2717
|
-
var
|
2734
|
+
var _this23 = this;
|
2718
2735
|
|
2719
2736
|
return function (id, couponNum, promoMethodEnum, nominalAmount, promoDiscount) {
|
2720
|
-
|
2737
|
+
_this23.currentMode.djqs.forEach(function (ele) {
|
2721
2738
|
if (ele.id === id) {
|
2722
2739
|
ele.amount = promoDiscount;
|
2723
2740
|
promoMethodEnum == "CASH_COUPON" && (ele.nominalAmount = nominalAmount);
|
@@ -2728,10 +2745,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
2728
2745
|
});
|
2729
2746
|
};
|
2730
2747
|
}
|
2731
|
-
}),
|
2748
|
+
}), _descriptor18 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
|
2732
2749
|
enumerable: true,
|
2733
2750
|
initializer: function initializer() {
|
2734
|
-
var
|
2751
|
+
var _this24 = this;
|
2735
2752
|
|
2736
2753
|
return function (promoCouponCode, name, IsEnable, nominalAmount, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id) {
|
2737
2754
|
var djq = {
|
@@ -2754,25 +2771,25 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
2754
2771
|
couponCategoryEnum: couponCategoryEnum,
|
2755
2772
|
id: id
|
2756
2773
|
};
|
2757
|
-
|
2774
|
+
_this24.currentMode.djqs.push(djq);
|
2758
2775
|
};
|
2759
2776
|
}
|
2760
2777
|
}), _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);
|
2761
2778
|
var Member = exports.Member = (_class5 = function () {
|
2762
2779
|
function Member(m) {
|
2763
|
-
var
|
2780
|
+
var _this25 = this;
|
2764
2781
|
|
2765
2782
|
(0, _classCallCheck3.default)(this, Member);
|
2766
2783
|
|
2767
|
-
_initDefineProp(this, 'cardNo',
|
2784
|
+
_initDefineProp(this, 'cardNo', _descriptor19, this);
|
2768
2785
|
|
2769
|
-
_initDefineProp(this, 'balance',
|
2786
|
+
_initDefineProp(this, 'balance', _descriptor20, this);
|
2770
2787
|
|
2771
|
-
_initDefineProp(this, 'exchangable',
|
2788
|
+
_initDefineProp(this, 'exchangable', _descriptor21, this);
|
2772
2789
|
|
2773
|
-
_initDefineProp(this, 'meStorageCardId',
|
2790
|
+
_initDefineProp(this, 'meStorageCardId', _descriptor22, this);
|
2774
2791
|
|
2775
|
-
_initDefineProp(this, 'storageCardNo',
|
2792
|
+
_initDefineProp(this, 'storageCardNo', _descriptor23, this);
|
2776
2793
|
|
2777
2794
|
if (m) {
|
2778
2795
|
this.id = m.ID;
|
@@ -2783,11 +2800,11 @@ var Member = exports.Member = (_class5 = function () {
|
|
2783
2800
|
return key == 'canusedbalancestorage';
|
2784
2801
|
});
|
2785
2802
|
(0, _mobx.runInAction)(function () {
|
2786
|
-
|
2803
|
+
_this25.cardNo = m.CardCode;
|
2787
2804
|
if (index >= 0) {
|
2788
|
-
|
2805
|
+
_this25.balance = parseFloat(m.DynamicPropertyValues[index]);
|
2789
2806
|
} else {
|
2790
|
-
|
2807
|
+
_this25.balance = _this25.rawbalance;
|
2791
2808
|
}
|
2792
2809
|
});
|
2793
2810
|
this.needPwd = m.MemberType ? m.MemberType.IsNeedPwd : false;
|
@@ -2809,19 +2826,19 @@ var Member = exports.Member = (_class5 = function () {
|
|
2809
2826
|
}
|
2810
2827
|
}]);
|
2811
2828
|
return Member;
|
2812
|
-
}(), (
|
2829
|
+
}(), (_descriptor19 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
|
2813
2830
|
enumerable: true,
|
2814
2831
|
initializer: null
|
2815
|
-
}),
|
2832
|
+
}), _descriptor20 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
|
2816
2833
|
enumerable: true,
|
2817
2834
|
initializer: null
|
2818
|
-
}),
|
2835
|
+
}), _descriptor21 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
|
2819
2836
|
enumerable: true,
|
2820
2837
|
initializer: null
|
2821
|
-
}),
|
2838
|
+
}), _descriptor22 = _applyDecoratedDescriptor(_class5.prototype, 'meStorageCardId', [_mobx.observable], {
|
2822
2839
|
enumerable: true,
|
2823
2840
|
initializer: null
|
2824
|
-
}),
|
2841
|
+
}), _descriptor23 = _applyDecoratedDescriptor(_class5.prototype, 'storageCardNo', [_mobx.observable], {
|
2825
2842
|
enumerable: true,
|
2826
2843
|
initializer: null
|
2827
2844
|
}), _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);
|