tplus-components-touch 3.22.3 → 3.22.4
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/addLog/AddLogProcessor.js +1 -5
- package/dist/components/addLog/AddLogProcessor.js.map +1 -1
- package/dist/components/addLog/OperationLogApi.js +6 -45
- package/dist/components/addLog/OperationLogApi.js.map +1 -1
- package/dist/components/loading/index.js +5 -0
- package/dist/components/loading/index.js.map +1 -1
- package/dist/components/loading/loadingContent.js +23 -6
- package/dist/components/loading/loadingContent.js.map +1 -1
- package/dist/components/loading/style.less +12 -2
- package/dist/components/message/index.js +11 -0
- package/dist/components/message/index.js.map +1 -1
- package/dist/components/message/index.less +16 -1
- package/dist/components/settlement/settlement.js +92 -55
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +12 -0
- package/dist/components/settlement/settlementStore.js +69 -50
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/ticon/iconfont/demo_index.html +5202 -5202
- package/dist/components/ticon/iconfont/iconfont.css +887 -887
- package/dist/components/ticon/iconfont/iconfont.json +1535 -1535
- 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/package.json +35 -35
|
@@ -277,7 +277,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
277
277
|
});
|
|
278
278
|
}
|
|
279
279
|
if (b.lastChild) {
|
|
280
|
-
|
|
280
|
+
// 原来bWidth < cWidth,过渡过程中右边按钮会隐藏,+20之后解决
|
|
281
|
+
if (bWidth < cWidth + 20) {
|
|
281
282
|
b.lastChild.className = 'btns voucherMode';
|
|
282
283
|
} else {
|
|
283
284
|
b.lastChild.className = 'btns';
|
|
@@ -935,6 +936,31 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
935
936
|
});
|
|
936
937
|
};
|
|
937
938
|
|
|
939
|
+
_this2.checkOfflineEnable = function (paymode, key) {
|
|
940
|
+
var _ref8 = paymode || {},
|
|
941
|
+
paymodes = _ref8.paymodes;
|
|
942
|
+
|
|
943
|
+
var isOffline = _mutantsMicrofx.stores.offlineSys.isOffline;
|
|
944
|
+
|
|
945
|
+
if (isOffline) {
|
|
946
|
+
if (paymodes) {
|
|
947
|
+
var currentPayMode = paymodes.find(function (item) {
|
|
948
|
+
return item.paymentType === key;
|
|
949
|
+
});
|
|
950
|
+
if (currentPayMode && !currentPayMode.offlineDisable) {
|
|
951
|
+
return true;
|
|
952
|
+
} else {
|
|
953
|
+
_message2.default.warn('\u79BB\u7EBF\u6A21\u5F0F\u4E0B\u4E0D\u652F\u6301\u6B64\u7ED3\u7B97\u65B9\u5F0F');
|
|
954
|
+
return false;
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
_message2.default.warn('\u79BB\u7EBF\u6A21\u5F0F\u4E0B\u7ED3\u7B97\u65B9\u5F0F\u6570\u636E\u9519\u8BEF');
|
|
958
|
+
return false;
|
|
959
|
+
} else {
|
|
960
|
+
return true;
|
|
961
|
+
}
|
|
962
|
+
};
|
|
963
|
+
|
|
938
964
|
_this2.onTabsClick2 = function (paymode, brefund, themode, key) {
|
|
939
965
|
var _enumController$getEn7 = _mutantsUtil.enumController.getEnumOj(),
|
|
940
966
|
PayStyle = _enumController$getEn7.PayStyle,
|
|
@@ -1052,6 +1078,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1052
1078
|
boriginReturn = _this2$store3.boriginReturn;
|
|
1053
1079
|
var noAlreadyWarn = _this2.state.noAlreadyWarn;
|
|
1054
1080
|
|
|
1081
|
+
|
|
1082
|
+
if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(key)) return false;
|
|
1083
|
+
|
|
1055
1084
|
if (_this2.checkModeDisabled(key, brefund, boriginReturn)) {
|
|
1056
1085
|
return;
|
|
1057
1086
|
}
|
|
@@ -1140,6 +1169,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1140
1169
|
};
|
|
1141
1170
|
|
|
1142
1171
|
_this2.handleChange = function (index, e) {
|
|
1172
|
+
if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(_this2.store.paymode.currentFocus)) return;
|
|
1143
1173
|
var currentInput = e.target;
|
|
1144
1174
|
var amountMaxLength = parseInt(_this2.props.initData["AmountMaxLength"] || 10);
|
|
1145
1175
|
if (!isNaN(e.target.value) || e.target.value == '-') {
|
|
@@ -1222,8 +1252,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1222
1252
|
return;
|
|
1223
1253
|
}
|
|
1224
1254
|
|
|
1225
|
-
var
|
|
1226
|
-
isNewRetailBCPos =
|
|
1255
|
+
var _ref9 = _mutantsUtil.platform || {},
|
|
1256
|
+
isNewRetailBCPos = _ref9.isNewRetailBCPos;
|
|
1227
1257
|
|
|
1228
1258
|
if (isNewRetailBCPos) {
|
|
1229
1259
|
_this2.store.paymode.calcDjqCheckValue(q, _this2.store.dto);
|
|
@@ -1267,6 +1297,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1267
1297
|
};
|
|
1268
1298
|
|
|
1269
1299
|
_this2.onHotKeyClick1 = function (mode, index, boriginReturn) {
|
|
1300
|
+
if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(mode.paymentType)) return false;
|
|
1270
1301
|
if (_this2.hotkeydebouncedPayMode == mode) {
|
|
1271
1302
|
return;
|
|
1272
1303
|
}
|
|
@@ -1306,6 +1337,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1306
1337
|
};
|
|
1307
1338
|
|
|
1308
1339
|
_this2.onHotKeyClick2 = function (index, mode, paymode, e) {
|
|
1340
|
+
if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(mode.paymentType)) return false;
|
|
1309
1341
|
if (_this2.hotkeydebouncedPayMode == mode) {
|
|
1310
1342
|
return;
|
|
1311
1343
|
}
|
|
@@ -1360,7 +1392,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1360
1392
|
thePaymodes.forEach(function (paymodes, index) {
|
|
1361
1393
|
if (paymodes.paymethodId == _this2.state.currentIndex) payIndex = index;
|
|
1362
1394
|
});
|
|
1363
|
-
|
|
1364
1395
|
_this2.setFocusAndSelectionMode(thePaymodes, payIndex);
|
|
1365
1396
|
}
|
|
1366
1397
|
}, 500, {
|
|
@@ -1406,7 +1437,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1406
1437
|
var findIndex = currenIndex;
|
|
1407
1438
|
var endCurrentMode = thePaymodes.find(function (mode, index) {
|
|
1408
1439
|
findIndex++;
|
|
1409
|
-
return (symbol ? index > currenIndex : index < currenIndex) && mode.paymentType != PayStyle.hyczk && mode.paymentType != PayStyle.djq && mode.paymentType != PayStyle.jfdx;
|
|
1440
|
+
return (symbol ? index > currenIndex : index < currenIndex) && mode.paymentType != PayStyle.hyczk && mode.paymentType != PayStyle.djq && mode.paymentType != PayStyle.jfdx && _mutantsMicrofx.stores.offlineSys.shouldSettlement(mode.paymentType, true);
|
|
1410
1441
|
});
|
|
1411
1442
|
if (endCurrentMode) return { mode: endCurrentMode, index: findIndex };
|
|
1412
1443
|
return null;
|
|
@@ -1647,7 +1678,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1647
1678
|
} else if (MemberPoints && Number(amount) == Number(0)) {
|
|
1648
1679
|
message = "兑换成功";
|
|
1649
1680
|
}
|
|
1650
|
-
window.__successModal = (0, _utils.showSuccessModal)(amount, received, charge, _this.props.onModalClose, isXianjin, message, resp1 && resp1.data, stores, function () {
|
|
1681
|
+
window.__successModal = (0, _utils.showSuccessModal)(amount, received, charge, _this.props.onModalClose, isXianjin, message, resp1 && resp1.data, _mutantsMicrofx.stores, function () {
|
|
1651
1682
|
_this.handleGuestShow(5);
|
|
1652
1683
|
});
|
|
1653
1684
|
_this2.setState({ isXianjin: false });
|
|
@@ -1666,13 +1697,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1666
1697
|
if (_this2.hasElectron === false) return;
|
|
1667
1698
|
var dt = _mutantsMicrofx.localStore.get('portsetting_hardSet') || [];
|
|
1668
1699
|
|
|
1669
|
-
var
|
|
1670
|
-
guestshow_enable =
|
|
1671
|
-
guestshow_clear =
|
|
1672
|
-
guestshow_welcome =
|
|
1673
|
-
guestshow_collect =
|
|
1674
|
-
guestshow_refund =
|
|
1675
|
-
guestshow_change =
|
|
1700
|
+
var _ref12 = dt || {},
|
|
1701
|
+
guestshow_enable = _ref12.guestshow_enable,
|
|
1702
|
+
guestshow_clear = _ref12.guestshow_clear,
|
|
1703
|
+
guestshow_welcome = _ref12.guestshow_welcome,
|
|
1704
|
+
guestshow_collect = _ref12.guestshow_collect,
|
|
1705
|
+
guestshow_refund = _ref12.guestshow_refund,
|
|
1706
|
+
guestshow_change = _ref12.guestshow_change;
|
|
1676
1707
|
|
|
1677
1708
|
var hasSuccess = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('portsetting_hardSet_isSuccess');
|
|
1678
1709
|
if (!guestshow_enable || !!guestshow_enable && hasSuccess == '0') return;
|
|
@@ -1707,9 +1738,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1707
1738
|
};
|
|
1708
1739
|
|
|
1709
1740
|
_this2.handleSettle = function () {
|
|
1710
|
-
var
|
|
1741
|
+
var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8(args) {
|
|
1711
1742
|
var handleUserInputs = function () {
|
|
1712
|
-
var
|
|
1743
|
+
var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(promises) {
|
|
1713
1744
|
var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
|
|
1714
1745
|
|
|
1715
1746
|
return _regenerator2.default.wrap(function _callee7$(_context7) {
|
|
@@ -1800,7 +1831,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1800
1831
|
}));
|
|
1801
1832
|
|
|
1802
1833
|
return function handleUserInputs(_x4) {
|
|
1803
|
-
return
|
|
1834
|
+
return _ref15.apply(this, arguments);
|
|
1804
1835
|
};
|
|
1805
1836
|
}();
|
|
1806
1837
|
|
|
@@ -1903,7 +1934,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1903
1934
|
});
|
|
1904
1935
|
|
|
1905
1936
|
commit = function () {
|
|
1906
|
-
var
|
|
1937
|
+
var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(values) {
|
|
1907
1938
|
var result;
|
|
1908
1939
|
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
|
1909
1940
|
while (1) {
|
|
@@ -1977,7 +2008,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1977
2008
|
}));
|
|
1978
2009
|
|
|
1979
2010
|
return function commit(_x3) {
|
|
1980
|
-
return
|
|
2011
|
+
return _ref14.apply(this, arguments);
|
|
1981
2012
|
};
|
|
1982
2013
|
}();
|
|
1983
2014
|
|
|
@@ -1992,13 +2023,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1992
2023
|
}));
|
|
1993
2024
|
|
|
1994
2025
|
return function (_x2) {
|
|
1995
|
-
return
|
|
2026
|
+
return _ref13.apply(this, arguments);
|
|
1996
2027
|
};
|
|
1997
2028
|
}();
|
|
1998
2029
|
|
|
1999
2030
|
_this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11() {
|
|
2000
2031
|
var handleUserInputs = function () {
|
|
2001
|
-
var
|
|
2032
|
+
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
|
|
2002
2033
|
var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
|
|
2003
2034
|
|
|
2004
2035
|
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
|
@@ -2095,11 +2126,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2095
2126
|
}));
|
|
2096
2127
|
|
|
2097
2128
|
return function handleUserInputs(_x6) {
|
|
2098
|
-
return
|
|
2129
|
+
return _ref19.apply(this, arguments);
|
|
2099
2130
|
};
|
|
2100
2131
|
}();
|
|
2101
2132
|
|
|
2102
|
-
var that, curmode, promises,
|
|
2133
|
+
var that, curmode, promises, _ref17, isNewRetailBCPos, _enumController$getEn20, PayStyle, isNeedPasswordForStoragePay, commit;
|
|
2103
2134
|
|
|
2104
2135
|
return _regenerator2.default.wrap(function _callee11$(_context11) {
|
|
2105
2136
|
while (1) {
|
|
@@ -2108,7 +2139,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2108
2139
|
that = _this2;
|
|
2109
2140
|
curmode = _this2.store.paymode.currentMode;
|
|
2110
2141
|
promises = [];
|
|
2111
|
-
|
|
2142
|
+
_ref17 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref17.isNewRetailBCPos;
|
|
2112
2143
|
|
|
2113
2144
|
if (isNewRetailBCPos) {
|
|
2114
2145
|
if (curmode.value > 0) {
|
|
@@ -2129,7 +2160,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2129
2160
|
}
|
|
2130
2161
|
|
|
2131
2162
|
commit = function () {
|
|
2132
|
-
var
|
|
2163
|
+
var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(values) {
|
|
2133
2164
|
var result;
|
|
2134
2165
|
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
|
2135
2166
|
while (1) {
|
|
@@ -2179,7 +2210,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2179
2210
|
}));
|
|
2180
2211
|
|
|
2181
2212
|
return function commit(_x5) {
|
|
2182
|
-
return
|
|
2213
|
+
return _ref18.apply(this, arguments);
|
|
2183
2214
|
};
|
|
2184
2215
|
}();
|
|
2185
2216
|
|
|
@@ -2230,7 +2261,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2230
2261
|
};
|
|
2231
2262
|
|
|
2232
2263
|
_this2.inputPwd = function () {
|
|
2233
|
-
var
|
|
2264
|
+
var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(paymode) {
|
|
2234
2265
|
var that, confirmPwd;
|
|
2235
2266
|
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
|
2236
2267
|
while (1) {
|
|
@@ -2246,8 +2277,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2246
2277
|
// if (v !== '') {
|
|
2247
2278
|
modal.destroy();
|
|
2248
2279
|
|
|
2249
|
-
var
|
|
2250
|
-
confirmPwd =
|
|
2280
|
+
var _ref21 = that.state || {},
|
|
2281
|
+
confirmPwd = _ref21.confirmPwd;
|
|
2251
2282
|
|
|
2252
2283
|
setTimeout(function () {
|
|
2253
2284
|
paymode.authCode = v;
|
|
@@ -2337,8 +2368,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2337
2368
|
type: 'primary', size: 'large', onClick: function onClick() {
|
|
2338
2369
|
var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
|
|
2339
2370
|
|
|
2340
|
-
var
|
|
2341
|
-
confirmPwd =
|
|
2371
|
+
var _ref22 = that.state || {},
|
|
2372
|
+
confirmPwd = _ref22.confirmPwd;
|
|
2342
2373
|
// if (v !== '') {
|
|
2343
2374
|
|
|
2344
2375
|
|
|
@@ -2379,7 +2410,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2379
2410
|
}));
|
|
2380
2411
|
|
|
2381
2412
|
return function (_x7) {
|
|
2382
|
-
return
|
|
2413
|
+
return _ref20.apply(this, arguments);
|
|
2383
2414
|
};
|
|
2384
2415
|
}();
|
|
2385
2416
|
|
|
@@ -2397,6 +2428,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2397
2428
|
boriginReturn = _this2$store7.boriginReturn,
|
|
2398
2429
|
newStyle = _this2$store7.newStyle;
|
|
2399
2430
|
|
|
2431
|
+
|
|
2432
|
+
if (bquick && !_mutantsMicrofx.stores.offlineSys.shouldSettlement(type)) return false;
|
|
2433
|
+
|
|
2400
2434
|
var status = false;
|
|
2401
2435
|
paymode.thePaymodes.forEach(function (v) {
|
|
2402
2436
|
if (v.paymentType === PayStyle.xianjin && v.value !== '0.00') {
|
|
@@ -2429,8 +2463,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2429
2463
|
|
|
2430
2464
|
_this2.onCzkChange = function (v) {
|
|
2431
2465
|
// console.log("czk change:"+new Date().toLocaleTimeString())
|
|
2432
|
-
var
|
|
2433
|
-
isNewRetailBCPos =
|
|
2466
|
+
var _ref23 = _mutantsUtil.platform || {},
|
|
2467
|
+
isNewRetailBCPos = _ref23.isNewRetailBCPos;
|
|
2434
2468
|
|
|
2435
2469
|
if (!isNewRetailBCPos) {
|
|
2436
2470
|
_this2.store.paymode.currentMode.member.setCardNo(v);
|
|
@@ -3005,20 +3039,20 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3005
3039
|
|
|
3006
3040
|
_this2.hasElectron = hasElectron;
|
|
3007
3041
|
|
|
3008
|
-
var
|
|
3009
|
-
|
|
3042
|
+
var _ref24 = _mutantsMicrofx.localStore.get('user') || {},
|
|
3043
|
+
_ref24$loginInfo = _ref24.loginInfo;
|
|
3010
3044
|
|
|
3011
|
-
|
|
3012
|
-
var ICCardServer =
|
|
3013
|
-
ICCardPassword =
|
|
3045
|
+
_ref24$loginInfo = _ref24$loginInfo === undefined ? {} : _ref24$loginInfo;
|
|
3046
|
+
var ICCardServer = _ref24$loginInfo.ICCardServer,
|
|
3047
|
+
ICCardPassword = _ref24$loginInfo.ICCardPassword;
|
|
3014
3048
|
|
|
3015
3049
|
_this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
|
|
3016
3050
|
_this2.iCCardPassword = ICCardPassword; //IC卡密码
|
|
3017
3051
|
//移动端环境下,没有读取IC卡的方式。
|
|
3018
3052
|
|
|
3019
|
-
var
|
|
3020
|
-
isHorizontalPad =
|
|
3021
|
-
isHorizontalSunMi =
|
|
3053
|
+
var _ref25 = _mutantsUtil.platform || {},
|
|
3054
|
+
isHorizontalPad = _ref25.isHorizontalPad,
|
|
3055
|
+
isHorizontalSunMi = _ref25.isHorizontalSunMi;
|
|
3022
3056
|
|
|
3023
3057
|
_this2.isHorizontalPad = !!isHorizontalPad;
|
|
3024
3058
|
_this2.isHorizontalSunMi = !!isHorizontalSunMi;
|
|
@@ -3252,8 +3286,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3252
3286
|
discountRetailTotalAount = _state2.discountRetailTotalAount,
|
|
3253
3287
|
discountPrototypeTotalAmount = _state2.discountPrototypeTotalAmount;
|
|
3254
3288
|
|
|
3255
|
-
var
|
|
3256
|
-
isNewRetailBCPos =
|
|
3289
|
+
var _ref26 = _mutantsUtil.platform || {},
|
|
3290
|
+
isNewRetailBCPos = _ref26.isNewRetailBCPos;
|
|
3257
3291
|
|
|
3258
3292
|
var _store2 = this.store,
|
|
3259
3293
|
paymode = _store2.paymode,
|
|
@@ -3316,11 +3350,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3316
3350
|
quantity4 = 0;
|
|
3317
3351
|
var sumQuantity = 0; //数量总和的值,包括称重的。
|
|
3318
3352
|
|
|
3319
|
-
var
|
|
3320
|
-
|
|
3321
|
-
buyQuantity =
|
|
3322
|
-
|
|
3323
|
-
returnQuantity =
|
|
3353
|
+
var _ref27 = quantityDetail || {},
|
|
3354
|
+
_ref27$buyQuantity = _ref27.buyQuantity,
|
|
3355
|
+
buyQuantity = _ref27$buyQuantity === undefined ? 0 : _ref27$buyQuantity,
|
|
3356
|
+
_ref27$returnQuantity = _ref27.returnQuantity,
|
|
3357
|
+
returnQuantity = _ref27$returnQuantity === undefined ? 0 : _ref27$returnQuantity;
|
|
3324
3358
|
|
|
3325
3359
|
var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
|
|
3326
3360
|
quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
|
|
@@ -4680,7 +4714,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4680
4714
|
),
|
|
4681
4715
|
_react2.default.createElement(
|
|
4682
4716
|
'div',
|
|
4683
|
-
{ className: 'received' },
|
|
4717
|
+
{ className: 'received receivedNumber' },
|
|
4684
4718
|
_react2.default.createElement(
|
|
4685
4719
|
'span',
|
|
4686
4720
|
null,
|
|
@@ -4689,16 +4723,19 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4689
4723
|
_react2.default.createElement(
|
|
4690
4724
|
'span',
|
|
4691
4725
|
null,
|
|
4692
|
-
_react2.default.createElement(
|
|
4726
|
+
_react2.default.createElement(_numKeyboard2.default, {
|
|
4693
4727
|
id: 'paymentAmount',
|
|
4728
|
+
className: _index.hotKey.hotKeyNotFilter('input') + ' receivedInput',
|
|
4694
4729
|
type: 'text',
|
|
4695
|
-
|
|
4696
|
-
onChange: function onChange(
|
|
4697
|
-
_this8.setCurrentModeValue(
|
|
4730
|
+
style: { width: 230 },
|
|
4731
|
+
onChange: function onChange(value) {
|
|
4732
|
+
_this8.setCurrentModeValue(value, Math.min(currentMode.maxamount, currentMode.member.balance));
|
|
4698
4733
|
},
|
|
4699
4734
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.member.balance)),
|
|
4700
|
-
|
|
4701
|
-
|
|
4735
|
+
maxLength: 12,
|
|
4736
|
+
precisionLength: 2,
|
|
4737
|
+
ref: function ref(input) {
|
|
4738
|
+
return _this8.inputCzkAmount = input;
|
|
4702
4739
|
},
|
|
4703
4740
|
onFocus: function onFocus(e) {
|
|
4704
4741
|
_this8.inputkey = "inputCzkAmount";
|