tplus-components-touch 3.20.4 → 3.22.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.
- package/dist/components/billSearch/index.js +64 -4
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/billSearch/index.less +12 -2
- package/dist/components/cloudPrint/api.js +1 -1
- package/dist/components/cloudPrint/api.js.map +1 -1
- package/dist/components/cloudPrint/index.js +57 -33
- package/dist/components/cloudPrint/index.js.map +1 -1
- package/dist/components/cloudPrint/printDispatch.js +223 -0
- package/dist/components/cloudPrint/printDispatch.js.map +1 -0
- package/dist/components/commonForm/addressPicker/index.js +4 -2
- package/dist/components/commonForm/addressPicker/index.js.map +1 -1
- package/dist/components/commonForm/formControl/index.js +3 -0
- package/dist/components/commonForm/formControl/index.js.map +1 -1
- package/dist/components/hotKey/localConfig.js +14 -1
- package/dist/components/hotKey/localConfig.js.map +1 -1
- package/dist/components/keyboard/index.js +1 -1
- package/dist/components/keyboard/index.js.map +1 -1
- package/dist/components/modalWraper/style.less +6 -0
- package/dist/components/settlement/settlement.js +106 -54
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +62 -10
- package/dist/components/settlement/settlementStore.js +338 -144
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/ticon/iconfont/demo.css +539 -539
- package/dist/components/ticon/iconfont/demo_index.html +256 -3
- package/dist/components/ticon/iconfont/iconfont.css +47 -3
- package/dist/components/ticon/iconfont/iconfont.js +1 -1
- package/dist/components/ticon/iconfont/iconfont.js.map +1 -1
- package/dist/components/ticon/iconfont/iconfont.json +77 -0
- package/dist/components/ticon/iconfont/iconfont.ttf +0 -0
- package/dist/components/ticon/iconfont/iconfont.woff +0 -0
- package/dist/components/ticon/iconfont/iconfont.woff2 +0 -0
- package/dist/components/touchTable/index.js +8 -0
- package/dist/components/touchTable/index.js.map +1 -1
- package/dist/index.js +17 -2
- package/dist/index.js.map +1 -1
- package/package.json +35 -35
|
@@ -250,7 +250,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
250
250
|
discountRetailTotalAount: null,
|
|
251
251
|
discountPrototypeTotalAmount: null,
|
|
252
252
|
bquick: false,
|
|
253
|
-
currentKey: null
|
|
253
|
+
currentKey: null,
|
|
254
|
+
couponLight: true };
|
|
254
255
|
_this2.compoundHotkeysList = (window.$.operationControl[5] ? window.$.operationControl[5].control || [] : []).map(function (key) {
|
|
255
256
|
return key.toLocaleUpperCase();
|
|
256
257
|
});
|
|
@@ -840,8 +841,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
840
841
|
|
|
841
842
|
_this2.store.setCurrentMode(id, PayStyle.djq);
|
|
842
843
|
_this2.setState({
|
|
843
|
-
djqVisible: true
|
|
844
|
+
djqVisible: true,
|
|
845
|
+
couponLight: true
|
|
844
846
|
});
|
|
847
|
+
_this2.store.paymode.calcCheckList();
|
|
845
848
|
setTimeout(function () {
|
|
846
849
|
_this2.inputdjq && _this2.inputdjq.input && _this2.inputdjq.input.focus();
|
|
847
850
|
}, 200);
|
|
@@ -1210,7 +1213,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1210
1213
|
_this2.showCzkModal(-1, bappend, params);
|
|
1211
1214
|
};
|
|
1212
1215
|
|
|
1213
|
-
_this2.djqChecked = function (q) {
|
|
1216
|
+
_this2.djqChecked = function (q, dto) {
|
|
1214
1217
|
var _enumController$getEn14 = _mutantsUtil.enumController.getEnumOj(),
|
|
1215
1218
|
Differentiate = _enumController$getEn14.Differentiate;
|
|
1216
1219
|
|
|
@@ -1218,7 +1221,17 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1218
1221
|
_message2.default.info('\u539F\u5355\u9000\u8D27\u65F6' + Differentiate.COUPON + '\u4E0D\u53EF\u4EE5\u53D6\u6D88\u3002');
|
|
1219
1222
|
return;
|
|
1220
1223
|
}
|
|
1221
|
-
|
|
1224
|
+
|
|
1225
|
+
var _ref8 = _mutantsUtil.platform || {},
|
|
1226
|
+
isNewRetailBCPos = _ref8.isNewRetailBCPos;
|
|
1227
|
+
|
|
1228
|
+
if (isNewRetailBCPos) {
|
|
1229
|
+
_this2.store.paymode.calcDjqCheckValue(q, _this2.store.dto);
|
|
1230
|
+
} else {
|
|
1231
|
+
_this2.store.paymode.calcDjqValue(q);
|
|
1232
|
+
}
|
|
1233
|
+
// this.props.onGetCouponList && this.props.onGetCouponList(this.store.dto, _filter(this.store.paymode.currentMode.djqs,(djq)=>{return djq.couponCategoryEnum !== 'RIGHT'}));
|
|
1234
|
+
// this.props.onGetCouponList && this.props.onGetCouponList(this.store.dto, _filter(this.store.paymode.currentMode.djqs,(djq)=>{return djq.checked}), this.store.paymode.currentMode.djqs);
|
|
1222
1235
|
};
|
|
1223
1236
|
|
|
1224
1237
|
_this2.addDjq = function () {
|
|
@@ -1571,6 +1584,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1571
1584
|
//副屏-第二屏幕
|
|
1572
1585
|
if (_this.isHorizontalSunMi) {
|
|
1573
1586
|
window.sunMi_PresentationManager.sendMessageToSecondScreen(params);
|
|
1587
|
+
setTimeout(function () {
|
|
1588
|
+
window.sunMi_PresentationManager.sendMessageToSecondScreen({ step: 1 });
|
|
1589
|
+
}, 3000);
|
|
1574
1590
|
} else {
|
|
1575
1591
|
_mutantsMicrofx.nativeMs && _mutantsMicrofx.nativeMs.setIpcRendererMethod('ReplyScreen', params);
|
|
1576
1592
|
}
|
|
@@ -1650,13 +1666,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1650
1666
|
if (_this2.hasElectron === false) return;
|
|
1651
1667
|
var dt = _mutantsMicrofx.localStore.get('portsetting_hardSet') || [];
|
|
1652
1668
|
|
|
1653
|
-
var
|
|
1654
|
-
guestshow_enable =
|
|
1655
|
-
guestshow_clear =
|
|
1656
|
-
guestshow_welcome =
|
|
1657
|
-
guestshow_collect =
|
|
1658
|
-
guestshow_refund =
|
|
1659
|
-
guestshow_change =
|
|
1669
|
+
var _ref11 = dt || {},
|
|
1670
|
+
guestshow_enable = _ref11.guestshow_enable,
|
|
1671
|
+
guestshow_clear = _ref11.guestshow_clear,
|
|
1672
|
+
guestshow_welcome = _ref11.guestshow_welcome,
|
|
1673
|
+
guestshow_collect = _ref11.guestshow_collect,
|
|
1674
|
+
guestshow_refund = _ref11.guestshow_refund,
|
|
1675
|
+
guestshow_change = _ref11.guestshow_change;
|
|
1660
1676
|
|
|
1661
1677
|
var hasSuccess = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('portsetting_hardSet_isSuccess');
|
|
1662
1678
|
if (!guestshow_enable || !!guestshow_enable && hasSuccess == '0') return;
|
|
@@ -1691,9 +1707,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1691
1707
|
};
|
|
1692
1708
|
|
|
1693
1709
|
_this2.handleSettle = function () {
|
|
1694
|
-
var
|
|
1710
|
+
var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8(args) {
|
|
1695
1711
|
var handleUserInputs = function () {
|
|
1696
|
-
var
|
|
1712
|
+
var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(promises) {
|
|
1697
1713
|
var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
|
|
1698
1714
|
|
|
1699
1715
|
return _regenerator2.default.wrap(function _callee7$(_context7) {
|
|
@@ -1784,7 +1800,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1784
1800
|
}));
|
|
1785
1801
|
|
|
1786
1802
|
return function handleUserInputs(_x4) {
|
|
1787
|
-
return
|
|
1803
|
+
return _ref14.apply(this, arguments);
|
|
1788
1804
|
};
|
|
1789
1805
|
}();
|
|
1790
1806
|
|
|
@@ -1887,7 +1903,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1887
1903
|
});
|
|
1888
1904
|
|
|
1889
1905
|
commit = function () {
|
|
1890
|
-
var
|
|
1906
|
+
var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(values) {
|
|
1891
1907
|
var result;
|
|
1892
1908
|
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
|
1893
1909
|
while (1) {
|
|
@@ -1961,7 +1977,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1961
1977
|
}));
|
|
1962
1978
|
|
|
1963
1979
|
return function commit(_x3) {
|
|
1964
|
-
return
|
|
1980
|
+
return _ref13.apply(this, arguments);
|
|
1965
1981
|
};
|
|
1966
1982
|
}();
|
|
1967
1983
|
|
|
@@ -1976,13 +1992,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1976
1992
|
}));
|
|
1977
1993
|
|
|
1978
1994
|
return function (_x2) {
|
|
1979
|
-
return
|
|
1995
|
+
return _ref12.apply(this, arguments);
|
|
1980
1996
|
};
|
|
1981
1997
|
}();
|
|
1982
1998
|
|
|
1983
1999
|
_this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11() {
|
|
1984
2000
|
var handleUserInputs = function () {
|
|
1985
|
-
var
|
|
2001
|
+
var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
|
|
1986
2002
|
var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
|
|
1987
2003
|
|
|
1988
2004
|
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
|
@@ -2079,11 +2095,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2079
2095
|
}));
|
|
2080
2096
|
|
|
2081
2097
|
return function handleUserInputs(_x6) {
|
|
2082
|
-
return
|
|
2098
|
+
return _ref18.apply(this, arguments);
|
|
2083
2099
|
};
|
|
2084
2100
|
}();
|
|
2085
2101
|
|
|
2086
|
-
var that, curmode, promises,
|
|
2102
|
+
var that, curmode, promises, _ref16, isNewRetailBCPos, _enumController$getEn20, PayStyle, isNeedPasswordForStoragePay, commit;
|
|
2087
2103
|
|
|
2088
2104
|
return _regenerator2.default.wrap(function _callee11$(_context11) {
|
|
2089
2105
|
while (1) {
|
|
@@ -2092,7 +2108,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2092
2108
|
that = _this2;
|
|
2093
2109
|
curmode = _this2.store.paymode.currentMode;
|
|
2094
2110
|
promises = [];
|
|
2095
|
-
|
|
2111
|
+
_ref16 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref16.isNewRetailBCPos;
|
|
2096
2112
|
|
|
2097
2113
|
if (isNewRetailBCPos) {
|
|
2098
2114
|
if (curmode.value > 0) {
|
|
@@ -2113,7 +2129,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2113
2129
|
}
|
|
2114
2130
|
|
|
2115
2131
|
commit = function () {
|
|
2116
|
-
var
|
|
2132
|
+
var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(values) {
|
|
2117
2133
|
var result;
|
|
2118
2134
|
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
|
2119
2135
|
while (1) {
|
|
@@ -2163,7 +2179,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2163
2179
|
}));
|
|
2164
2180
|
|
|
2165
2181
|
return function commit(_x5) {
|
|
2166
|
-
return
|
|
2182
|
+
return _ref17.apply(this, arguments);
|
|
2167
2183
|
};
|
|
2168
2184
|
}();
|
|
2169
2185
|
|
|
@@ -2214,7 +2230,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2214
2230
|
};
|
|
2215
2231
|
|
|
2216
2232
|
_this2.inputPwd = function () {
|
|
2217
|
-
var
|
|
2233
|
+
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(paymode) {
|
|
2218
2234
|
var that, confirmPwd;
|
|
2219
2235
|
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
|
2220
2236
|
while (1) {
|
|
@@ -2230,8 +2246,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2230
2246
|
// if (v !== '') {
|
|
2231
2247
|
modal.destroy();
|
|
2232
2248
|
|
|
2233
|
-
var
|
|
2234
|
-
confirmPwd =
|
|
2249
|
+
var _ref20 = that.state || {},
|
|
2250
|
+
confirmPwd = _ref20.confirmPwd;
|
|
2235
2251
|
|
|
2236
2252
|
setTimeout(function () {
|
|
2237
2253
|
paymode.authCode = v;
|
|
@@ -2321,8 +2337,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2321
2337
|
type: 'primary', size: 'large', onClick: function onClick() {
|
|
2322
2338
|
var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
|
|
2323
2339
|
|
|
2324
|
-
var
|
|
2325
|
-
confirmPwd =
|
|
2340
|
+
var _ref21 = that.state || {},
|
|
2341
|
+
confirmPwd = _ref21.confirmPwd;
|
|
2326
2342
|
// if (v !== '') {
|
|
2327
2343
|
|
|
2328
2344
|
|
|
@@ -2363,7 +2379,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2363
2379
|
}));
|
|
2364
2380
|
|
|
2365
2381
|
return function (_x7) {
|
|
2366
|
-
return
|
|
2382
|
+
return _ref19.apply(this, arguments);
|
|
2367
2383
|
};
|
|
2368
2384
|
}();
|
|
2369
2385
|
|
|
@@ -2413,8 +2429,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2413
2429
|
|
|
2414
2430
|
_this2.onCzkChange = function (v) {
|
|
2415
2431
|
// console.log("czk change:"+new Date().toLocaleTimeString())
|
|
2416
|
-
var
|
|
2417
|
-
isNewRetailBCPos =
|
|
2432
|
+
var _ref22 = _mutantsUtil.platform || {},
|
|
2433
|
+
isNewRetailBCPos = _ref22.isNewRetailBCPos;
|
|
2418
2434
|
|
|
2419
2435
|
if (!isNewRetailBCPos) {
|
|
2420
2436
|
_this2.store.paymode.currentMode.member.setCardNo(v);
|
|
@@ -2981,22 +2997,28 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2981
2997
|
}
|
|
2982
2998
|
};
|
|
2983
2999
|
|
|
3000
|
+
_this2.couponClick = function () {
|
|
3001
|
+
_this2.setState({
|
|
3002
|
+
couponLight: !_this2.state.couponLight
|
|
3003
|
+
});
|
|
3004
|
+
};
|
|
3005
|
+
|
|
2984
3006
|
_this2.hasElectron = hasElectron;
|
|
2985
3007
|
|
|
2986
|
-
var
|
|
2987
|
-
|
|
3008
|
+
var _ref23 = _mutantsMicrofx.localStore.get('user') || {},
|
|
3009
|
+
_ref23$loginInfo = _ref23.loginInfo;
|
|
2988
3010
|
|
|
2989
|
-
|
|
2990
|
-
var ICCardServer =
|
|
2991
|
-
ICCardPassword =
|
|
3011
|
+
_ref23$loginInfo = _ref23$loginInfo === undefined ? {} : _ref23$loginInfo;
|
|
3012
|
+
var ICCardServer = _ref23$loginInfo.ICCardServer,
|
|
3013
|
+
ICCardPassword = _ref23$loginInfo.ICCardPassword;
|
|
2992
3014
|
|
|
2993
3015
|
_this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
|
|
2994
3016
|
_this2.iCCardPassword = ICCardPassword; //IC卡密码
|
|
2995
3017
|
//移动端环境下,没有读取IC卡的方式。
|
|
2996
3018
|
|
|
2997
|
-
var
|
|
2998
|
-
isHorizontalPad =
|
|
2999
|
-
isHorizontalSunMi =
|
|
3019
|
+
var _ref24 = _mutantsUtil.platform || {},
|
|
3020
|
+
isHorizontalPad = _ref24.isHorizontalPad,
|
|
3021
|
+
isHorizontalSunMi = _ref24.isHorizontalSunMi;
|
|
3000
3022
|
|
|
3001
3023
|
_this2.isHorizontalPad = !!isHorizontalPad;
|
|
3002
3024
|
_this2.isHorizontalSunMi = !!isHorizontalSunMi;
|
|
@@ -3230,8 +3252,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3230
3252
|
discountRetailTotalAount = _state2.discountRetailTotalAount,
|
|
3231
3253
|
discountPrototypeTotalAmount = _state2.discountPrototypeTotalAmount;
|
|
3232
3254
|
|
|
3233
|
-
var
|
|
3234
|
-
isNewRetailBCPos =
|
|
3255
|
+
var _ref25 = _mutantsUtil.platform || {},
|
|
3256
|
+
isNewRetailBCPos = _ref25.isNewRetailBCPos;
|
|
3235
3257
|
|
|
3236
3258
|
var _store2 = this.store,
|
|
3237
3259
|
paymode = _store2.paymode,
|
|
@@ -3294,11 +3316,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3294
3316
|
quantity4 = 0;
|
|
3295
3317
|
var sumQuantity = 0; //数量总和的值,包括称重的。
|
|
3296
3318
|
|
|
3297
|
-
var
|
|
3298
|
-
|
|
3299
|
-
buyQuantity =
|
|
3300
|
-
|
|
3301
|
-
returnQuantity =
|
|
3319
|
+
var _ref26 = quantityDetail || {},
|
|
3320
|
+
_ref26$buyQuantity = _ref26.buyQuantity,
|
|
3321
|
+
buyQuantity = _ref26$buyQuantity === undefined ? 0 : _ref26$buyQuantity,
|
|
3322
|
+
_ref26$returnQuantity = _ref26.returnQuantity,
|
|
3323
|
+
returnQuantity = _ref26$returnQuantity === undefined ? 0 : _ref26$returnQuantity;
|
|
3302
3324
|
|
|
3303
3325
|
var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
|
|
3304
3326
|
quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
|
|
@@ -4675,8 +4697,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4675
4697
|
_this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.member.balance));
|
|
4676
4698
|
},
|
|
4677
4699
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.member.balance)),
|
|
4678
|
-
ref: function ref(
|
|
4679
|
-
return _this8["inputCzkAmount"] =
|
|
4700
|
+
ref: function ref(_ref27) {
|
|
4701
|
+
return _this8["inputCzkAmount"] = _ref27;
|
|
4680
4702
|
},
|
|
4681
4703
|
onFocus: function onFocus(e) {
|
|
4682
4704
|
_this8.inputkey = "inputCzkAmount";
|
|
@@ -4893,6 +4915,25 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4893
4915
|
currentMode && currentMode.errinfo
|
|
4894
4916
|
)
|
|
4895
4917
|
),
|
|
4918
|
+
_react2.default.createElement(
|
|
4919
|
+
'div',
|
|
4920
|
+
{ className: 'col4' },
|
|
4921
|
+
_react2.default.createElement(
|
|
4922
|
+
_button2.default,
|
|
4923
|
+
{ className: '' + (this.state.couponLight ? "primary-color b-theme" : 'couponBorder'), onClick: this.couponClick },
|
|
4924
|
+
'\u53EF\u7528\u4F18\u60E0\u5238'
|
|
4925
|
+
),
|
|
4926
|
+
_react2.default.createElement(
|
|
4927
|
+
_button2.default,
|
|
4928
|
+
{ className: '' + (!this.state.couponLight ? "primary-color b-theme" : 'couponBorder'), onClick: this.couponClick },
|
|
4929
|
+
'\u4E0D\u53EF\u7528\u4F18\u60E0\u5238'
|
|
4930
|
+
),
|
|
4931
|
+
_react2.default.createElement(
|
|
4932
|
+
'span',
|
|
4933
|
+
{ className: 'couponTip' },
|
|
4934
|
+
'\u9009\u62E9\u5238\u540E\u3001\u4E0D\u53EF\u53E0\u52A0\u3001\u91D1\u989D\u4E0D\u6EE1\u8DB3\u7684\u5238\u4F1A\u7F6E\u7070'
|
|
4935
|
+
)
|
|
4936
|
+
),
|
|
4896
4937
|
this.isHorizontalPad && _react2.default.createElement(
|
|
4897
4938
|
'div',
|
|
4898
4939
|
{ className: 'col3' },
|
|
@@ -4909,12 +4950,18 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4909
4950
|
'div',
|
|
4910
4951
|
{ className: 'djq2' },
|
|
4911
4952
|
(0, _map3.default)(currentMode && currentMode.djqs || [], function (q, index) {
|
|
4953
|
+
if (!_this8.state.couponLight && !q.count) {
|
|
4954
|
+
return;
|
|
4955
|
+
}
|
|
4956
|
+
if (_this8.state.couponLight && q.count && q.count === 1) {
|
|
4957
|
+
return;
|
|
4958
|
+
}
|
|
4912
4959
|
return _react2.default.createElement(
|
|
4913
4960
|
'div',
|
|
4914
4961
|
{ key: index + '', className: 'djqItem' },
|
|
4915
4962
|
!q.promoMethodEnum || q.promoMethodEnum == 'CASH_COUPON' ? _react2.default.createElement(
|
|
4916
4963
|
'div',
|
|
4917
|
-
{ className: 'djqLeft djqLeftCash' },
|
|
4964
|
+
{ className: 'djqLeft ' + (q.IsEnable ? 'djqLeftCash' : 'djqLeftCashGrey') },
|
|
4918
4965
|
_react2.default.createElement(
|
|
4919
4966
|
'div',
|
|
4920
4967
|
{ className: 'amount' },
|
|
@@ -4936,7 +4983,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4936
4983
|
)
|
|
4937
4984
|
) : _react2.default.createElement(
|
|
4938
4985
|
'div',
|
|
4939
|
-
{ className: 'djqLeft
|
|
4986
|
+
{ className: 'djqLeft ' + (q.IsEnable ? 'djqLeftCash' : 'djqLeftCashGrey') },
|
|
4940
4987
|
_react2.default.createElement(
|
|
4941
4988
|
'div',
|
|
4942
4989
|
{ className: 'amount' },
|
|
@@ -4960,9 +5007,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4960
5007
|
_react2.default.createElement(
|
|
4961
5008
|
'div',
|
|
4962
5009
|
{ className: (0, _classnames4.default)('djqRight', { 'djqRightSelected': q.checked }), onClick: function onClick(e) {
|
|
4963
|
-
return _this8.djqChecked(q);
|
|
5010
|
+
return q.IsEnable ? _this8.djqChecked(q, _this8.props.dto) : null;
|
|
4964
5011
|
} },
|
|
4965
|
-
_react2.default.createElement(
|
|
5012
|
+
q.checked ? _react2.default.createElement(_ticon2.default, { className: 'checkIcon primary-color', type: 'xuanzhong1' }) : _react2.default.createElement('span', { className: '' + (q.IsEnable ? 'noxuanzhong' : 'noxuanzhong1') }),
|
|
5013
|
+
q.checked ? _react2.default.createElement(
|
|
5014
|
+
'div',
|
|
5015
|
+
{ className: 'name overflow-hidden-point primary-color' },
|
|
5016
|
+
q.name
|
|
5017
|
+
) : _react2.default.createElement(
|
|
4966
5018
|
'div',
|
|
4967
5019
|
{ className: 'name overflow-hidden-point' },
|
|
4968
5020
|
q.name
|
|
@@ -5261,8 +5313,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5261
5313
|
_this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
|
|
5262
5314
|
},
|
|
5263
5315
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
|
|
5264
|
-
ref: function ref(
|
|
5265
|
-
return _this8["inputJfdxAmount"] =
|
|
5316
|
+
ref: function ref(_ref28) {
|
|
5317
|
+
return _this8["inputJfdxAmount"] = _ref28;
|
|
5266
5318
|
},
|
|
5267
5319
|
onFocus: function onFocus(e) {
|
|
5268
5320
|
_this8.inputkey = "inputJfdxAmount";
|