tplus-components-touch 3.21.1 → 3.21.2
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.
|
@@ -850,8 +850,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
850
850
|
|
|
851
851
|
_this2.store.setCurrentMode(id, PayStyle.djq);
|
|
852
852
|
_this2.setState({
|
|
853
|
-
djqVisible: true
|
|
853
|
+
djqVisible: true,
|
|
854
|
+
couponLight: true
|
|
854
855
|
});
|
|
856
|
+
_this2.store.paymode.calcCheckList();
|
|
855
857
|
setTimeout(function () {
|
|
856
858
|
_this2.inputdjq && _this2.inputdjq.input && _this2.inputdjq.input.focus();
|
|
857
859
|
}, 200);
|
|
@@ -1228,7 +1230,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1228
1230
|
_message2.default.info('\u539F\u5355\u9000\u8D27\u65F6' + Differentiate.COUPON + '\u4E0D\u53EF\u4EE5\u53D6\u6D88\u3002');
|
|
1229
1231
|
return;
|
|
1230
1232
|
}
|
|
1231
|
-
|
|
1233
|
+
|
|
1234
|
+
var _ref8 = _mutantsUtil.platform || {},
|
|
1235
|
+
isNewRetailBCPos = _ref8.isNewRetailBCPos;
|
|
1236
|
+
|
|
1237
|
+
if (isNewRetailBCPos) {
|
|
1238
|
+
_this2.store.paymode.calcDjqCheckValue(q, _this2.store.dto);
|
|
1239
|
+
} else {
|
|
1240
|
+
_this2.store.paymode.calcDjqValue(q);
|
|
1241
|
+
}
|
|
1232
1242
|
// this.props.onGetCouponList && this.props.onGetCouponList(this.store.dto, _filter(this.store.paymode.currentMode.djqs,(djq)=>{return djq.couponCategoryEnum !== 'RIGHT'}));
|
|
1233
1243
|
// this.props.onGetCouponList && this.props.onGetCouponList(this.store.dto, _filter(this.store.paymode.currentMode.djqs,(djq)=>{return djq.checked}), this.store.paymode.currentMode.djqs);
|
|
1234
1244
|
};
|
|
@@ -1662,13 +1672,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1662
1672
|
if (_this2.hasElectron === false) return;
|
|
1663
1673
|
var dt = _mutantsMicrofx.localStore.get('portsetting_hardSet') || [];
|
|
1664
1674
|
|
|
1665
|
-
var
|
|
1666
|
-
guestshow_enable =
|
|
1667
|
-
guestshow_clear =
|
|
1668
|
-
guestshow_welcome =
|
|
1669
|
-
guestshow_collect =
|
|
1670
|
-
guestshow_refund =
|
|
1671
|
-
guestshow_change =
|
|
1675
|
+
var _ref11 = dt || {},
|
|
1676
|
+
guestshow_enable = _ref11.guestshow_enable,
|
|
1677
|
+
guestshow_clear = _ref11.guestshow_clear,
|
|
1678
|
+
guestshow_welcome = _ref11.guestshow_welcome,
|
|
1679
|
+
guestshow_collect = _ref11.guestshow_collect,
|
|
1680
|
+
guestshow_refund = _ref11.guestshow_refund,
|
|
1681
|
+
guestshow_change = _ref11.guestshow_change;
|
|
1672
1682
|
|
|
1673
1683
|
var hasSuccess = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('portsetting_hardSet_isSuccess');
|
|
1674
1684
|
if (!guestshow_enable || !!guestshow_enable && hasSuccess == '0') return;
|
|
@@ -1703,9 +1713,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1703
1713
|
};
|
|
1704
1714
|
|
|
1705
1715
|
_this2.handleSettle = function () {
|
|
1706
|
-
var
|
|
1716
|
+
var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8(args) {
|
|
1707
1717
|
var handleUserInputs = function () {
|
|
1708
|
-
var
|
|
1718
|
+
var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(promises) {
|
|
1709
1719
|
var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
|
|
1710
1720
|
|
|
1711
1721
|
return _regenerator2.default.wrap(function _callee7$(_context7) {
|
|
@@ -1796,7 +1806,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1796
1806
|
}));
|
|
1797
1807
|
|
|
1798
1808
|
return function handleUserInputs(_x4) {
|
|
1799
|
-
return
|
|
1809
|
+
return _ref14.apply(this, arguments);
|
|
1800
1810
|
};
|
|
1801
1811
|
}();
|
|
1802
1812
|
|
|
@@ -1899,7 +1909,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1899
1909
|
});
|
|
1900
1910
|
|
|
1901
1911
|
commit = function () {
|
|
1902
|
-
var
|
|
1912
|
+
var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(values) {
|
|
1903
1913
|
var result;
|
|
1904
1914
|
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
|
1905
1915
|
while (1) {
|
|
@@ -1973,7 +1983,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1973
1983
|
}));
|
|
1974
1984
|
|
|
1975
1985
|
return function commit(_x3) {
|
|
1976
|
-
return
|
|
1986
|
+
return _ref13.apply(this, arguments);
|
|
1977
1987
|
};
|
|
1978
1988
|
}();
|
|
1979
1989
|
|
|
@@ -1988,13 +1998,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1988
1998
|
}));
|
|
1989
1999
|
|
|
1990
2000
|
return function (_x2) {
|
|
1991
|
-
return
|
|
2001
|
+
return _ref12.apply(this, arguments);
|
|
1992
2002
|
};
|
|
1993
2003
|
}();
|
|
1994
2004
|
|
|
1995
2005
|
_this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11() {
|
|
1996
2006
|
var handleUserInputs = function () {
|
|
1997
|
-
var
|
|
2007
|
+
var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
|
|
1998
2008
|
var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
|
|
1999
2009
|
|
|
2000
2010
|
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
|
@@ -2091,11 +2101,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2091
2101
|
}));
|
|
2092
2102
|
|
|
2093
2103
|
return function handleUserInputs(_x6) {
|
|
2094
|
-
return
|
|
2104
|
+
return _ref18.apply(this, arguments);
|
|
2095
2105
|
};
|
|
2096
2106
|
}();
|
|
2097
2107
|
|
|
2098
|
-
var that, curmode, promises,
|
|
2108
|
+
var that, curmode, promises, _ref16, isNewRetailBCPos, _enumController$getEn20, PayStyle, commit;
|
|
2099
2109
|
|
|
2100
2110
|
return _regenerator2.default.wrap(function _callee11$(_context11) {
|
|
2101
2111
|
while (1) {
|
|
@@ -2104,7 +2114,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2104
2114
|
that = _this2;
|
|
2105
2115
|
curmode = _this2.store.paymode.currentMode;
|
|
2106
2116
|
promises = [];
|
|
2107
|
-
|
|
2117
|
+
_ref16 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref16.isNewRetailBCPos;
|
|
2108
2118
|
|
|
2109
2119
|
if (isNewRetailBCPos) {
|
|
2110
2120
|
if (curmode.value > 0) {
|
|
@@ -2121,7 +2131,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2121
2131
|
}
|
|
2122
2132
|
|
|
2123
2133
|
commit = function () {
|
|
2124
|
-
var
|
|
2134
|
+
var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(values) {
|
|
2125
2135
|
var result;
|
|
2126
2136
|
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
|
2127
2137
|
while (1) {
|
|
@@ -2171,7 +2181,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2171
2181
|
}));
|
|
2172
2182
|
|
|
2173
2183
|
return function commit(_x5) {
|
|
2174
|
-
return
|
|
2184
|
+
return _ref17.apply(this, arguments);
|
|
2175
2185
|
};
|
|
2176
2186
|
}();
|
|
2177
2187
|
|
|
@@ -2222,7 +2232,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2222
2232
|
};
|
|
2223
2233
|
|
|
2224
2234
|
_this2.inputPwd = function () {
|
|
2225
|
-
var
|
|
2235
|
+
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(paymode) {
|
|
2226
2236
|
var that, confirmPwd;
|
|
2227
2237
|
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
|
2228
2238
|
while (1) {
|
|
@@ -2238,8 +2248,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2238
2248
|
// if (v !== '') {
|
|
2239
2249
|
modal.destroy();
|
|
2240
2250
|
|
|
2241
|
-
var
|
|
2242
|
-
confirmPwd =
|
|
2251
|
+
var _ref20 = that.state || {},
|
|
2252
|
+
confirmPwd = _ref20.confirmPwd;
|
|
2243
2253
|
|
|
2244
2254
|
setTimeout(function () {
|
|
2245
2255
|
paymode.authCode = v;
|
|
@@ -2329,8 +2339,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2329
2339
|
type: 'primary', size: 'large', onClick: function onClick() {
|
|
2330
2340
|
var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
|
|
2331
2341
|
|
|
2332
|
-
var
|
|
2333
|
-
confirmPwd =
|
|
2342
|
+
var _ref21 = that.state || {},
|
|
2343
|
+
confirmPwd = _ref21.confirmPwd;
|
|
2334
2344
|
// if (v !== '') {
|
|
2335
2345
|
|
|
2336
2346
|
|
|
@@ -2371,7 +2381,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2371
2381
|
}));
|
|
2372
2382
|
|
|
2373
2383
|
return function (_x7) {
|
|
2374
|
-
return
|
|
2384
|
+
return _ref19.apply(this, arguments);
|
|
2375
2385
|
};
|
|
2376
2386
|
}();
|
|
2377
2387
|
|
|
@@ -2421,8 +2431,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2421
2431
|
|
|
2422
2432
|
_this2.onCzkChange = function (v) {
|
|
2423
2433
|
// console.log("czk change:"+new Date().toLocaleTimeString())
|
|
2424
|
-
var
|
|
2425
|
-
isNewRetailBCPos =
|
|
2434
|
+
var _ref22 = _mutantsUtil.platform || {},
|
|
2435
|
+
isNewRetailBCPos = _ref22.isNewRetailBCPos;
|
|
2426
2436
|
|
|
2427
2437
|
if (!isNewRetailBCPos) {
|
|
2428
2438
|
_this2.store.paymode.currentMode.member.setCardNo(v);
|
|
@@ -2997,20 +3007,20 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2997
3007
|
|
|
2998
3008
|
_this2.hasElectron = hasElectron;
|
|
2999
3009
|
|
|
3000
|
-
var
|
|
3001
|
-
|
|
3010
|
+
var _ref23 = _mutantsMicrofx.localStore.get('user') || {},
|
|
3011
|
+
_ref23$loginInfo = _ref23.loginInfo;
|
|
3002
3012
|
|
|
3003
|
-
|
|
3004
|
-
var ICCardServer =
|
|
3005
|
-
ICCardPassword =
|
|
3013
|
+
_ref23$loginInfo = _ref23$loginInfo === undefined ? {} : _ref23$loginInfo;
|
|
3014
|
+
var ICCardServer = _ref23$loginInfo.ICCardServer,
|
|
3015
|
+
ICCardPassword = _ref23$loginInfo.ICCardPassword;
|
|
3006
3016
|
|
|
3007
3017
|
_this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
|
|
3008
3018
|
_this2.iCCardPassword = ICCardPassword; //IC卡密码
|
|
3009
3019
|
//移动端环境下,没有读取IC卡的方式。
|
|
3010
3020
|
|
|
3011
|
-
var
|
|
3012
|
-
isHorizontalPad =
|
|
3013
|
-
isHorizontalSunMi =
|
|
3021
|
+
var _ref24 = _mutantsUtil.platform || {},
|
|
3022
|
+
isHorizontalPad = _ref24.isHorizontalPad,
|
|
3023
|
+
isHorizontalSunMi = _ref24.isHorizontalSunMi;
|
|
3014
3024
|
|
|
3015
3025
|
_this2.isHorizontalPad = !!isHorizontalPad;
|
|
3016
3026
|
_this2.isHorizontalSunMi = !!isHorizontalSunMi;
|
|
@@ -3244,8 +3254,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3244
3254
|
discountRetailTotalAount = _state2.discountRetailTotalAount,
|
|
3245
3255
|
discountPrototypeTotalAmount = _state2.discountPrototypeTotalAmount;
|
|
3246
3256
|
|
|
3247
|
-
var
|
|
3248
|
-
isNewRetailBCPos =
|
|
3257
|
+
var _ref25 = _mutantsUtil.platform || {},
|
|
3258
|
+
isNewRetailBCPos = _ref25.isNewRetailBCPos;
|
|
3249
3259
|
|
|
3250
3260
|
var _store2 = this.store,
|
|
3251
3261
|
paymode = _store2.paymode,
|
|
@@ -3308,11 +3318,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3308
3318
|
quantity4 = 0;
|
|
3309
3319
|
var sumQuantity = 0; //数量总和的值,包括称重的。
|
|
3310
3320
|
|
|
3311
|
-
var
|
|
3312
|
-
|
|
3313
|
-
buyQuantity =
|
|
3314
|
-
|
|
3315
|
-
returnQuantity =
|
|
3321
|
+
var _ref26 = quantityDetail || {},
|
|
3322
|
+
_ref26$buyQuantity = _ref26.buyQuantity,
|
|
3323
|
+
buyQuantity = _ref26$buyQuantity === undefined ? 0 : _ref26$buyQuantity,
|
|
3324
|
+
_ref26$returnQuantity = _ref26.returnQuantity,
|
|
3325
|
+
returnQuantity = _ref26$returnQuantity === undefined ? 0 : _ref26$returnQuantity;
|
|
3316
3326
|
|
|
3317
3327
|
var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
|
|
3318
3328
|
quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
|
|
@@ -4672,8 +4682,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4672
4682
|
_this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.member.balance));
|
|
4673
4683
|
},
|
|
4674
4684
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.member.balance)),
|
|
4675
|
-
ref: function ref(
|
|
4676
|
-
return _this8["inputCzkAmount"] =
|
|
4685
|
+
ref: function ref(_ref27) {
|
|
4686
|
+
return _this8["inputCzkAmount"] = _ref27;
|
|
4677
4687
|
},
|
|
4678
4688
|
onFocus: function onFocus(e) {
|
|
4679
4689
|
_this8.inputkey = "inputCzkAmount";
|
|
@@ -4958,7 +4968,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4958
4968
|
)
|
|
4959
4969
|
) : _react2.default.createElement(
|
|
4960
4970
|
'div',
|
|
4961
|
-
{ className: 'djqLeft
|
|
4971
|
+
{ className: 'djqLeft ' + (q.IsEnable ? 'djqLeftCash' : 'djqLeftCashGrey') },
|
|
4962
4972
|
_react2.default.createElement(
|
|
4963
4973
|
'div',
|
|
4964
4974
|
{ className: 'amount' },
|
|
@@ -5288,8 +5298,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5288
5298
|
_this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
|
|
5289
5299
|
},
|
|
5290
5300
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
|
|
5291
|
-
ref: function ref(
|
|
5292
|
-
return _this8["inputJfdxAmount"] =
|
|
5301
|
+
ref: function ref(_ref28) {
|
|
5302
|
+
return _this8["inputJfdxAmount"] = _ref28;
|
|
5293
5303
|
},
|
|
5294
5304
|
onFocus: function onFocus(e) {
|
|
5295
5305
|
_this8.inputkey = "inputJfdxAmount";
|