tplus-components-touch 3.36.4 → 3.36.5
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/autoCompleteWithKeyboard/index.js +31 -9
- package/dist/components/autoCompleteWithKeyboard/index.js.map +1 -1
- package/dist/components/autoCompleteWithKeyboard/index.less +11 -0
- package/dist/components/billSearch/index.js +13 -0
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/billSearch/index.less +8 -0
- package/dist/components/commonForm/autoComplete/index.js +35 -16
- package/dist/components/commonForm/autoComplete/index.js.map +1 -1
- package/dist/components/hotKey/localConfig.js +14 -16
- package/dist/components/hotKey/localConfig.js.map +1 -1
- package/dist/components/input/index.js +4 -1
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/input/scanInput.less +4 -1
- package/dist/components/keyboard/index.js +5 -1
- package/dist/components/keyboard/index.js.map +1 -1
- package/dist/components/keyboard/index.less +39 -23
- package/dist/components/keyboard/letterKeyboard.js +33 -16
- package/dist/components/keyboard/letterKeyboard.js.map +1 -1
- package/dist/components/keyboard/numKeyboard.js +23 -13
- package/dist/components/keyboard/numKeyboard.js.map +1 -1
- package/dist/components/keyboard/numKeyboardScan.js +32 -24
- package/dist/components/keyboard/numKeyboardScan.js.map +1 -1
- package/dist/components/keyboard/numkeyboardPassword.js +31 -14
- package/dist/components/keyboard/numkeyboardPassword.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton2.less +1 -1
- package/dist/components/layout/sider.js +3 -1
- package/dist/components/layout/sider.js.map +1 -1
- package/dist/components/settlement/prototypeTable/index.js +3 -1
- package/dist/components/settlement/prototypeTable/index.js.map +1 -1
- package/dist/components/settlement/settlement.js +74 -539
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +5 -1
- package/dist/components/settlement/settlementStore.js +89 -72
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/touchTable/index.js +11 -1
- package/dist/components/touchTable/index.js.map +1 -1
- package/dist/components/touchTable/index.less +1 -1
- package/package.json +1 -1
|
@@ -605,6 +605,7 @@
|
|
|
605
605
|
z-index: 1006 !important;
|
|
606
606
|
}
|
|
607
607
|
.settlement-wraper2{
|
|
608
|
+
z-index: 1006;
|
|
608
609
|
.ant-modal-body{
|
|
609
610
|
padding:0px !important;
|
|
610
611
|
}
|
|
@@ -1308,7 +1309,8 @@
|
|
|
1308
1309
|
|
|
1309
1310
|
.btns{
|
|
1310
1311
|
float: right;
|
|
1311
|
-
height: 60px;
|
|
1312
|
+
// height: 60px;
|
|
1313
|
+
min-height: 60px;
|
|
1312
1314
|
line-height: 49px;
|
|
1313
1315
|
.quick{
|
|
1314
1316
|
float: left;
|
|
@@ -1376,6 +1378,7 @@
|
|
|
1376
1378
|
border:none;
|
|
1377
1379
|
border-radius: 0px !important;
|
|
1378
1380
|
margin-left:8px;
|
|
1381
|
+
float: right;
|
|
1379
1382
|
}
|
|
1380
1383
|
|
|
1381
1384
|
.settle2{
|
|
@@ -1383,6 +1386,7 @@
|
|
|
1383
1386
|
height:40px;
|
|
1384
1387
|
// line-height: 16px;
|
|
1385
1388
|
border-radius: 4px !important;
|
|
1389
|
+
float: none;
|
|
1386
1390
|
}
|
|
1387
1391
|
|
|
1388
1392
|
.settleStorage{
|
|
@@ -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,
|
|
44
|
+
var _desc, _value, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _desc2, _value2, _class3, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _desc3, _value3, _class5, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21;
|
|
45
45
|
|
|
46
46
|
var _mobx = require('mobx');
|
|
47
47
|
|
|
@@ -173,15 +173,18 @@ var SettlementStore = (_class = function () {
|
|
|
173
173
|
this.brefund = false;
|
|
174
174
|
this.bquick = false;
|
|
175
175
|
this.boriginReturn = false;
|
|
176
|
-
this.newStyle = true;
|
|
177
176
|
|
|
178
|
-
_initDefineProp(this, '
|
|
177
|
+
_initDefineProp(this, 'newStyle', _descriptor, this);
|
|
179
178
|
|
|
180
|
-
_initDefineProp(this, '
|
|
179
|
+
_initDefineProp(this, 'setNewStyle', _descriptor2, this);
|
|
181
180
|
|
|
182
|
-
_initDefineProp(this, '
|
|
181
|
+
_initDefineProp(this, 'queryPwd', _descriptor3, this);
|
|
183
182
|
|
|
184
|
-
_initDefineProp(this, '
|
|
183
|
+
_initDefineProp(this, 'updateMemberInfo', _descriptor4, this);
|
|
184
|
+
|
|
185
|
+
_initDefineProp(this, 'updateCurrentMode', _descriptor5, this);
|
|
186
|
+
|
|
187
|
+
_initDefineProp(this, 'updateCardInfo', _descriptor6, this);
|
|
185
188
|
|
|
186
189
|
this.handleCzkData = function (m) {
|
|
187
190
|
if (!m || !m.StorageCardNo) {
|
|
@@ -494,7 +497,7 @@ var SettlementStore = (_class = function () {
|
|
|
494
497
|
this.paymode = new PayMode();
|
|
495
498
|
var params = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('cloudPrintArguments');
|
|
496
499
|
if (params) this.cloudPrintArguments = params;
|
|
497
|
-
this.
|
|
500
|
+
this.setNewStyle();
|
|
498
501
|
}
|
|
499
502
|
|
|
500
503
|
(0, _createClass3.default)(SettlementStore, [{
|
|
@@ -509,7 +512,7 @@ var SettlementStore = (_class = function () {
|
|
|
509
512
|
value: function init(context, amounthandler, datasource, storeinfo, bquick, amount, type, data, payModeKey) {
|
|
510
513
|
var _this3 = this;
|
|
511
514
|
|
|
512
|
-
this.
|
|
515
|
+
this.setNewStyle();
|
|
513
516
|
this.type = type;
|
|
514
517
|
if (context) {
|
|
515
518
|
this.context = context;
|
|
@@ -1951,11 +1954,25 @@ var SettlementStore = (_class = function () {
|
|
|
1951
1954
|
}()
|
|
1952
1955
|
}]);
|
|
1953
1956
|
return SettlementStore;
|
|
1954
|
-
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, '
|
|
1957
|
+
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'newStyle', [_mobx.observable], {
|
|
1958
|
+
enumerable: true,
|
|
1959
|
+
initializer: function initializer() {
|
|
1960
|
+
return true;
|
|
1961
|
+
}
|
|
1962
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, 'setNewStyle', [_mobx.action], {
|
|
1955
1963
|
enumerable: true,
|
|
1956
1964
|
initializer: function initializer() {
|
|
1957
1965
|
var _this14 = this;
|
|
1958
1966
|
|
|
1967
|
+
return function () {
|
|
1968
|
+
_this14.newStyle = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('voucherDefaultPosMode') == 'voucher';
|
|
1969
|
+
};
|
|
1970
|
+
}
|
|
1971
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'queryPwd', [_mobx.action], {
|
|
1972
|
+
enumerable: true,
|
|
1973
|
+
initializer: function initializer() {
|
|
1974
|
+
var _this15 = this;
|
|
1975
|
+
|
|
1959
1976
|
return function (newPass, newPassConfirm) {
|
|
1960
1977
|
if (!newPass || !newPassConfirm) {
|
|
1961
1978
|
return _message2.default.warn('您还有未填写项');
|
|
@@ -1966,7 +1983,7 @@ var SettlementStore = (_class = function () {
|
|
|
1966
1983
|
var idstore = (0, _tplusPoslogin.PosInitData)('storeID');
|
|
1967
1984
|
return (0, _tplusApi.ccApi)({
|
|
1968
1985
|
Idstore: idstore,
|
|
1969
|
-
meMemberId:
|
|
1986
|
+
meMemberId: _this15.paymode.currentMode.memberId,
|
|
1970
1987
|
oldPassword: null,
|
|
1971
1988
|
newPassword: _tplusApi.User.pwdEncrypt(newPassConfirm),
|
|
1972
1989
|
dataSource: "POS"
|
|
@@ -1977,10 +1994,10 @@ var SettlementStore = (_class = function () {
|
|
|
1977
1994
|
});
|
|
1978
1995
|
};
|
|
1979
1996
|
}
|
|
1980
|
-
}), _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),
|
|
1997
|
+
}), _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), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, 'updateMemberInfo', [_mobx.action], {
|
|
1981
1998
|
enumerable: true,
|
|
1982
1999
|
initializer: function initializer() {
|
|
1983
|
-
var
|
|
2000
|
+
var _this16 = this;
|
|
1984
2001
|
|
|
1985
2002
|
return function () {
|
|
1986
2003
|
var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(_this) {
|
|
@@ -1990,9 +2007,9 @@ var SettlementStore = (_class = function () {
|
|
|
1990
2007
|
while (1) {
|
|
1991
2008
|
switch (_context12.prev = _context12.next) {
|
|
1992
2009
|
case 0:
|
|
1993
|
-
_getLoginInfo =
|
|
2010
|
+
_getLoginInfo = _this16.getLoginInfo(), IdStore = _getLoginInfo.IdStore, StoreCode = _getLoginInfo.StoreCode;
|
|
1994
2011
|
_context12.next = 3;
|
|
1995
|
-
return (0, _tplusApi.tApi)({ Idmember:
|
|
2012
|
+
return (0, _tplusApi.tApi)({ Idmember: _this16.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
|
|
1996
2013
|
|
|
1997
2014
|
case 3:
|
|
1998
2015
|
resp = _context12.sent;
|
|
@@ -2006,7 +2023,7 @@ var SettlementStore = (_class = function () {
|
|
|
2006
2023
|
return _context12.stop();
|
|
2007
2024
|
}
|
|
2008
2025
|
}
|
|
2009
|
-
}, _callee12,
|
|
2026
|
+
}, _callee12, _this16);
|
|
2010
2027
|
}));
|
|
2011
2028
|
|
|
2012
2029
|
return function (_x10) {
|
|
@@ -2014,10 +2031,10 @@ var SettlementStore = (_class = function () {
|
|
|
2014
2031
|
};
|
|
2015
2032
|
}();
|
|
2016
2033
|
}
|
|
2017
|
-
}),
|
|
2034
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, 'updateCurrentMode', [_mobx.action], {
|
|
2018
2035
|
enumerable: true,
|
|
2019
2036
|
initializer: function initializer() {
|
|
2020
|
-
var
|
|
2037
|
+
var _this17 = this;
|
|
2021
2038
|
|
|
2022
2039
|
return function () {
|
|
2023
2040
|
var _ref26 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(memberId) {
|
|
@@ -2042,7 +2059,7 @@ var SettlementStore = (_class = function () {
|
|
|
2042
2059
|
break;
|
|
2043
2060
|
}
|
|
2044
2061
|
|
|
2045
|
-
|
|
2062
|
+
_this17.paymode.updateCardInfo(result.data[0]);
|
|
2046
2063
|
return _context13.abrupt('return', result.data);
|
|
2047
2064
|
|
|
2048
2065
|
case 9:
|
|
@@ -2051,7 +2068,7 @@ var SettlementStore = (_class = function () {
|
|
|
2051
2068
|
break;
|
|
2052
2069
|
}
|
|
2053
2070
|
|
|
2054
|
-
|
|
2071
|
+
_this17.paymode.updateCardInfo(result.data[0]);
|
|
2055
2072
|
return _context13.abrupt('return', result.data);
|
|
2056
2073
|
|
|
2057
2074
|
case 14:
|
|
@@ -2071,7 +2088,7 @@ var SettlementStore = (_class = function () {
|
|
|
2071
2088
|
return _context13.stop();
|
|
2072
2089
|
}
|
|
2073
2090
|
}
|
|
2074
|
-
}, _callee13,
|
|
2091
|
+
}, _callee13, _this17);
|
|
2075
2092
|
}));
|
|
2076
2093
|
|
|
2077
2094
|
return function (_x11) {
|
|
@@ -2079,10 +2096,10 @@ var SettlementStore = (_class = function () {
|
|
|
2079
2096
|
};
|
|
2080
2097
|
}();
|
|
2081
2098
|
}
|
|
2082
|
-
}),
|
|
2099
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, 'updateCardInfo', [_mobx.action], {
|
|
2083
2100
|
enumerable: true,
|
|
2084
2101
|
initializer: function initializer() {
|
|
2085
|
-
var
|
|
2102
|
+
var _this18 = this;
|
|
2086
2103
|
|
|
2087
2104
|
return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
|
|
2088
2105
|
var address, result;
|
|
@@ -2090,21 +2107,21 @@ var SettlementStore = (_class = function () {
|
|
|
2090
2107
|
while (1) {
|
|
2091
2108
|
switch (_context14.prev = _context14.next) {
|
|
2092
2109
|
case 0:
|
|
2093
|
-
address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' +
|
|
2110
|
+
address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + _this18.paymode.currentMode.storageCardNo;
|
|
2094
2111
|
_context14.next = 3;
|
|
2095
2112
|
return (0, _tplusApi.ccApi)({}, address, false, false, { method: 'get', timeout_skip: true });
|
|
2096
2113
|
|
|
2097
2114
|
case 3:
|
|
2098
2115
|
result = _context14.sent;
|
|
2099
2116
|
|
|
2100
|
-
|
|
2117
|
+
_this18.paymode.updateCardInfo(result.data);
|
|
2101
2118
|
|
|
2102
2119
|
case 5:
|
|
2103
2120
|
case 'end':
|
|
2104
2121
|
return _context14.stop();
|
|
2105
2122
|
}
|
|
2106
2123
|
}
|
|
2107
|
-
}, _callee14,
|
|
2124
|
+
}, _callee14, _this18);
|
|
2108
2125
|
}));
|
|
2109
2126
|
}
|
|
2110
2127
|
}), _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);
|
|
@@ -2121,19 +2138,19 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2121
2138
|
this.onlineamount = 0;
|
|
2122
2139
|
this.maxamount = 0;
|
|
2123
2140
|
|
|
2124
|
-
_initDefineProp(this, 'currentFocus',
|
|
2141
|
+
_initDefineProp(this, 'currentFocus', _descriptor7, this);
|
|
2125
2142
|
|
|
2126
|
-
_initDefineProp(this, 'received',
|
|
2143
|
+
_initDefineProp(this, 'received', _descriptor8, this);
|
|
2127
2144
|
|
|
2128
|
-
_initDefineProp(this, 'receivable',
|
|
2145
|
+
_initDefineProp(this, 'receivable', _descriptor9, this);
|
|
2129
2146
|
|
|
2130
|
-
_initDefineProp(this, 'paymodes',
|
|
2147
|
+
_initDefineProp(this, 'paymodes', _descriptor10, this);
|
|
2131
2148
|
|
|
2132
|
-
_initDefineProp(this, 'thePaymodes',
|
|
2149
|
+
_initDefineProp(this, 'thePaymodes', _descriptor11, this);
|
|
2133
2150
|
|
|
2134
|
-
_initDefineProp(this, 'storageCardNo',
|
|
2151
|
+
_initDefineProp(this, 'storageCardNo', _descriptor12, this);
|
|
2135
2152
|
|
|
2136
|
-
_initDefineProp(this, 'balance',
|
|
2153
|
+
_initDefineProp(this, 'balance', _descriptor13, this);
|
|
2137
2154
|
|
|
2138
2155
|
this.currentMode = null;
|
|
2139
2156
|
this.checkList = [];
|
|
@@ -2142,11 +2159,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2142
2159
|
hotKey: "Ctrl+M"
|
|
2143
2160
|
};
|
|
2144
2161
|
|
|
2145
|
-
_initDefineProp(this, 'calcCheckList',
|
|
2162
|
+
_initDefineProp(this, 'calcCheckList', _descriptor14, this);
|
|
2146
2163
|
|
|
2147
|
-
_initDefineProp(this, 'setCouponNum',
|
|
2164
|
+
_initDefineProp(this, 'setCouponNum', _descriptor15, this);
|
|
2148
2165
|
|
|
2149
|
-
_initDefineProp(this, 'addDjqs',
|
|
2166
|
+
_initDefineProp(this, 'addDjqs', _descriptor16, this);
|
|
2150
2167
|
}
|
|
2151
2168
|
// @observable store = null;
|
|
2152
2169
|
|
|
@@ -2205,7 +2222,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2205
2222
|
}, {
|
|
2206
2223
|
key: 'calcDjqCheckValue',
|
|
2207
2224
|
value: function calcDjqCheckValue(q1, dto, params) {
|
|
2208
|
-
var
|
|
2225
|
+
var _this19 = this;
|
|
2209
2226
|
|
|
2210
2227
|
var useLimitPerOrder = (0, _tplusPoslogin.PosInitData)('UseLimitPerOrder');
|
|
2211
2228
|
var qList = (0, _filter3.default)(this.currentMode.djqs, function (djq) {
|
|
@@ -2252,7 +2269,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2252
2269
|
if (!q1.checked) {
|
|
2253
2270
|
this.checkList.forEach(function (ele, i) {
|
|
2254
2271
|
if (ele.id === q1.id) {
|
|
2255
|
-
|
|
2272
|
+
_this19.checkList.splice(i, 1);
|
|
2256
2273
|
}
|
|
2257
2274
|
});
|
|
2258
2275
|
} else {
|
|
@@ -2324,7 +2341,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2324
2341
|
if (result && result.length != 0) {
|
|
2325
2342
|
result.forEach(function (element, index) {
|
|
2326
2343
|
var djq1 = false;
|
|
2327
|
-
|
|
2344
|
+
_this19.currentMode.djqs.forEach(function (djq) {
|
|
2328
2345
|
if (element.id === djq.id) {
|
|
2329
2346
|
djq1 = true;
|
|
2330
2347
|
}
|
|
@@ -2369,10 +2386,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2369
2386
|
// couponCategoryEnum: tieredAmountResult.couponCategoryEnum,
|
|
2370
2387
|
// id
|
|
2371
2388
|
// })
|
|
2372
|
-
|
|
2389
|
+
_this19.addDjqs(couponCode, name, true, nominalAmount, promoDiscount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
|
|
2373
2390
|
djq1 = false;
|
|
2374
2391
|
} else {
|
|
2375
|
-
|
|
2392
|
+
_this19.setCouponNum(element.id, couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
|
|
2376
2393
|
// this.currentMode.djqs[0].couponCategoryEnum = 'couponCategoryEnum';
|
|
2377
2394
|
// djq1.couponCategoryEnum = element.tieredAmountResult.couponCategoryEnum
|
|
2378
2395
|
}
|
|
@@ -2477,7 +2494,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2477
2494
|
key: 'setPaymodes',
|
|
2478
2495
|
value: function () {
|
|
2479
2496
|
var _ref31 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(type, isIntegralExchange) {
|
|
2480
|
-
var
|
|
2497
|
+
var _this20 = this;
|
|
2481
2498
|
|
|
2482
2499
|
var _ref32, isHorizontalPad, isHorizontalSunMi, isMobileEnvironment, _enumController$getEn21, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
|
|
2483
2500
|
|
|
@@ -2524,7 +2541,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2524
2541
|
thridPayment: mode.ThirdPaymentInfo
|
|
2525
2542
|
});
|
|
2526
2543
|
});
|
|
2527
|
-
|
|
2544
|
+
_this20.paymodes = paymodes;
|
|
2528
2545
|
});
|
|
2529
2546
|
}
|
|
2530
2547
|
|
|
@@ -2554,57 +2571,57 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2554
2571
|
}
|
|
2555
2572
|
}]);
|
|
2556
2573
|
return PayMode;
|
|
2557
|
-
}(), (
|
|
2574
|
+
}(), (_descriptor7 = _applyDecoratedDescriptor(_class3.prototype, 'currentFocus', [_mobx.observable], {
|
|
2558
2575
|
enumerable: true,
|
|
2559
2576
|
initializer: function initializer() {
|
|
2560
2577
|
return "";
|
|
2561
2578
|
}
|
|
2562
|
-
}),
|
|
2579
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class3.prototype, 'received', [_mobx.observable], {
|
|
2563
2580
|
enumerable: true,
|
|
2564
2581
|
initializer: function initializer() {
|
|
2565
2582
|
return 0;
|
|
2566
2583
|
}
|
|
2567
|
-
}),
|
|
2584
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, 'receivable', [_mobx.observable], {
|
|
2568
2585
|
enumerable: true,
|
|
2569
2586
|
initializer: function initializer() {
|
|
2570
2587
|
return 0;
|
|
2571
2588
|
}
|
|
2572
|
-
}),
|
|
2589
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'paymodes', [_mobx.observable], {
|
|
2573
2590
|
enumerable: true,
|
|
2574
2591
|
initializer: function initializer() {
|
|
2575
2592
|
return [];
|
|
2576
2593
|
}
|
|
2577
|
-
}),
|
|
2594
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class3.prototype, 'thePaymodes', [_mobx.observable], {
|
|
2578
2595
|
enumerable: true,
|
|
2579
2596
|
initializer: function initializer() {
|
|
2580
2597
|
return [];
|
|
2581
2598
|
}
|
|
2582
|
-
}),
|
|
2599
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class3.prototype, 'storageCardNo', [_mobx.observable], {
|
|
2583
2600
|
enumerable: true,
|
|
2584
2601
|
initializer: function initializer() {
|
|
2585
2602
|
return null;
|
|
2586
2603
|
}
|
|
2587
|
-
}),
|
|
2604
|
+
}), _descriptor13 = _applyDecoratedDescriptor(_class3.prototype, 'balance', [_mobx.observable], {
|
|
2588
2605
|
enumerable: true,
|
|
2589
2606
|
initializer: function initializer() {
|
|
2590
2607
|
return null;
|
|
2591
2608
|
}
|
|
2592
|
-
}), _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),
|
|
2609
|
+
}), _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), _descriptor14 = _applyDecoratedDescriptor(_class3.prototype, 'calcCheckList', [_mobx.action], {
|
|
2593
2610
|
enumerable: true,
|
|
2594
2611
|
initializer: function initializer() {
|
|
2595
|
-
var
|
|
2612
|
+
var _this21 = this;
|
|
2596
2613
|
|
|
2597
2614
|
return function () {
|
|
2598
|
-
|
|
2615
|
+
_this21.checkList = [];
|
|
2599
2616
|
};
|
|
2600
2617
|
}
|
|
2601
|
-
}), _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),
|
|
2618
|
+
}), _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), _descriptor15 = _applyDecoratedDescriptor(_class3.prototype, 'setCouponNum', [_mobx.action], {
|
|
2602
2619
|
enumerable: true,
|
|
2603
2620
|
initializer: function initializer() {
|
|
2604
|
-
var
|
|
2621
|
+
var _this22 = this;
|
|
2605
2622
|
|
|
2606
2623
|
return function (id, couponNum, promoMethodEnum, nominalAmount, promoDiscount) {
|
|
2607
|
-
|
|
2624
|
+
_this22.currentMode.djqs.forEach(function (ele) {
|
|
2608
2625
|
if (ele.id === id) {
|
|
2609
2626
|
ele.amount = promoDiscount;
|
|
2610
2627
|
promoMethodEnum == "CASH_COUPON" && (ele.nominalAmount = nominalAmount);
|
|
@@ -2615,10 +2632,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2615
2632
|
});
|
|
2616
2633
|
};
|
|
2617
2634
|
}
|
|
2618
|
-
}),
|
|
2635
|
+
}), _descriptor16 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
|
|
2619
2636
|
enumerable: true,
|
|
2620
2637
|
initializer: function initializer() {
|
|
2621
|
-
var
|
|
2638
|
+
var _this23 = this;
|
|
2622
2639
|
|
|
2623
2640
|
return function (promoCouponCode, name, IsEnable, nominalAmount, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id) {
|
|
2624
2641
|
var djq = {
|
|
@@ -2641,25 +2658,25 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2641
2658
|
couponCategoryEnum: couponCategoryEnum,
|
|
2642
2659
|
id: id
|
|
2643
2660
|
};
|
|
2644
|
-
|
|
2661
|
+
_this23.currentMode.djqs.push(djq);
|
|
2645
2662
|
};
|
|
2646
2663
|
}
|
|
2647
2664
|
}), _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);
|
|
2648
2665
|
var Member = exports.Member = (_class5 = function () {
|
|
2649
2666
|
function Member(m) {
|
|
2650
|
-
var
|
|
2667
|
+
var _this24 = this;
|
|
2651
2668
|
|
|
2652
2669
|
(0, _classCallCheck3.default)(this, Member);
|
|
2653
2670
|
|
|
2654
|
-
_initDefineProp(this, 'cardNo',
|
|
2671
|
+
_initDefineProp(this, 'cardNo', _descriptor17, this);
|
|
2655
2672
|
|
|
2656
|
-
_initDefineProp(this, 'balance',
|
|
2673
|
+
_initDefineProp(this, 'balance', _descriptor18, this);
|
|
2657
2674
|
|
|
2658
|
-
_initDefineProp(this, 'exchangable',
|
|
2675
|
+
_initDefineProp(this, 'exchangable', _descriptor19, this);
|
|
2659
2676
|
|
|
2660
|
-
_initDefineProp(this, 'meStorageCardId',
|
|
2677
|
+
_initDefineProp(this, 'meStorageCardId', _descriptor20, this);
|
|
2661
2678
|
|
|
2662
|
-
_initDefineProp(this, 'storageCardNo',
|
|
2679
|
+
_initDefineProp(this, 'storageCardNo', _descriptor21, this);
|
|
2663
2680
|
|
|
2664
2681
|
if (m) {
|
|
2665
2682
|
this.id = m.ID;
|
|
@@ -2674,11 +2691,11 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2674
2691
|
isNewRetailBCPos = _ref33.isNewRetailBCPos;
|
|
2675
2692
|
|
|
2676
2693
|
(0, _mobx.runInAction)(function () {
|
|
2677
|
-
|
|
2694
|
+
_this24.cardNo = m.CardCode;
|
|
2678
2695
|
if (index >= 0) {
|
|
2679
|
-
|
|
2696
|
+
_this24.balance = parseFloat(m.DynamicPropertyValues[index]);
|
|
2680
2697
|
} else {
|
|
2681
|
-
|
|
2698
|
+
_this24.balance = _this24.rawbalance;
|
|
2682
2699
|
}
|
|
2683
2700
|
});
|
|
2684
2701
|
this.needPwd = m.MemberType ? m.MemberType.IsNeedPwd : false;
|
|
@@ -2700,19 +2717,19 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2700
2717
|
}
|
|
2701
2718
|
}]);
|
|
2702
2719
|
return Member;
|
|
2703
|
-
}(), (
|
|
2720
|
+
}(), (_descriptor17 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
|
|
2704
2721
|
enumerable: true,
|
|
2705
2722
|
initializer: null
|
|
2706
|
-
}),
|
|
2723
|
+
}), _descriptor18 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
|
|
2707
2724
|
enumerable: true,
|
|
2708
2725
|
initializer: null
|
|
2709
|
-
}),
|
|
2726
|
+
}), _descriptor19 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
|
|
2710
2727
|
enumerable: true,
|
|
2711
2728
|
initializer: null
|
|
2712
|
-
}),
|
|
2729
|
+
}), _descriptor20 = _applyDecoratedDescriptor(_class5.prototype, 'meStorageCardId', [_mobx.observable], {
|
|
2713
2730
|
enumerable: true,
|
|
2714
2731
|
initializer: null
|
|
2715
|
-
}),
|
|
2732
|
+
}), _descriptor21 = _applyDecoratedDescriptor(_class5.prototype, 'storageCardNo', [_mobx.observable], {
|
|
2716
2733
|
enumerable: true,
|
|
2717
2734
|
initializer: null
|
|
2718
2735
|
}), _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);
|