tplus-components-touch 3.41.3 → 3.41.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/billSearch/index.js +15 -38
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/cloudPrint/BTPrintFormatUtil.js +2 -2
- package/dist/components/cloudPrint/BTPrintFormatUtil.js.map +1 -1
- package/dist/components/cloudPrint/index.js +891 -631
- package/dist/components/cloudPrint/index.js.map +1 -1
- package/dist/components/cloudPrint/printDispatch.js +132 -41
- package/dist/components/cloudPrint/printDispatch.js.map +1 -1
- package/dist/components/cloudPrint/printTemplate/dialy_one.json +239 -0
- package/dist/components/cloudPrint/printTemplate/duty_one.json +239 -0
- package/dist/components/cloudPrint/printTemplate/retail_one.json +208 -0
- package/dist/components/cloudPrint/printTemplate/retail_two.json +220 -0
- package/dist/components/cloudPrint/printTemplate/storage_one.json +129 -0
- package/dist/components/cloudPrint/printTemplate/template.js +52 -0
- package/dist/components/cloudPrint/printTemplate/template.js.map +1 -0
- package/dist/components/commonForm/formControl/index.js +1 -1
- package/dist/components/commonForm/formControl/index.js.map +1 -1
- package/dist/components/deliverySearch/index.js +5 -1
- package/dist/components/deliverySearch/index.js.map +1 -1
- package/dist/components/inventorySearch/tab.js +6 -1
- package/dist/components/inventorySearch/tab.js.map +1 -1
- package/dist/components/loading/loadingContent.js +5 -2
- package/dist/components/loading/loadingContent.js.map +1 -1
- package/dist/components/message/index.js +4 -5
- package/dist/components/message/index.js.map +1 -1
- package/dist/components/notification/index.js +11 -12
- package/dist/components/notification/index.js.map +1 -1
- package/dist/components/progressState/EmptyAndErrorView.js +5 -7
- package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
- package/dist/components/settlement/settlement.js +63 -85
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlementStore.js +16 -26
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/touchTable/index.js +5 -3
- package/dist/components/touchTable/index.js.map +1 -1
- package/package.json +2 -2
@@ -42,11 +42,6 @@ var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
42
42
|
|
43
43
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
44
44
|
|
45
|
-
var imgRef = {
|
46
|
-
empty: 'https://newretail.static.chanjet.com/empty.png',
|
47
|
-
error: 'https://newretail.static.chanjet.com/operation_error.png'
|
48
|
-
};
|
49
|
-
|
50
45
|
var EmptyAndErrorView = (_temp2 = _class = function (_Component) {
|
51
46
|
(0, _inherits3.default)(EmptyAndErrorView, _Component);
|
52
47
|
|
@@ -61,7 +56,10 @@ var EmptyAndErrorView = (_temp2 = _class = function (_Component) {
|
|
61
56
|
args[_key] = arguments[_key];
|
62
57
|
}
|
63
58
|
|
64
|
-
return _ret = (_temp = (_this = (0, _possibleConstructorReturn3.default)(this, (_ref = EmptyAndErrorView.__proto__ || (0, _getPrototypeOf2.default)(EmptyAndErrorView)).call.apply(_ref, [this].concat(args))), _this), _this.
|
59
|
+
return _ret = (_temp = (_this = (0, _possibleConstructorReturn3.default)(this, (_ref = EmptyAndErrorView.__proto__ || (0, _getPrototypeOf2.default)(EmptyAndErrorView)).call.apply(_ref, [this].concat(args))), _this), _this.sys_parms = {
|
60
|
+
empty: window.ossAliyuncsFileURL + '/empty.png',
|
61
|
+
error: window.ossAliyuncsFileURL + '/operation_error.png'
|
62
|
+
}, _this.onButtonClick = function (e) {
|
65
63
|
var onClick = _this.props.onClick;
|
66
64
|
|
67
65
|
onClick && onClick(e);
|
@@ -84,7 +82,7 @@ var EmptyAndErrorView = (_temp2 = _class = function (_Component) {
|
|
84
82
|
_props$imgStyle = _props.imgStyle,
|
85
83
|
imgStyle = _props$imgStyle === undefined ? {} : _props$imgStyle;
|
86
84
|
|
87
|
-
var imgURL =
|
85
|
+
var imgURL = this.sys_parms[type];
|
88
86
|
return _react2.default.createElement(
|
89
87
|
'div',
|
90
88
|
{ className: 'progressState', style: style },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["tplus-components-touch/components/progressState/EmptyAndErrorView.js"],"names":["
|
1
|
+
{"version":3,"sources":["tplus-components-touch/components/progressState/EmptyAndErrorView.js"],"names":["EmptyAndErrorView","sys_parms","empty","window","ossAliyuncsFileURL","error","onButtonClick","e","onClick","props","iconVisible","info","buttonVisible","buttonTitle","secondaryTip","style","type","imgStyle","imgURL","Component","propTypes","PropTypes","bool","string","func","object"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AAEA;;;;;;IAEMA,iB;;;;;;;;;;;;;;sOAaFC,S,GAAY;AACRC,mBAAUC,OAAOC,kBAAjB,eADQ;AAERC,mBAAUF,OAAOC,kBAAjB;AAFQ,S,QAsCZE,a,GAAgB,UAACC,CAAD,EAAK;AAAA,gBACVC,OADU,GACC,MAAKC,KADN,CACVD,OADU;;AAEjBA,uBAAWA,QAAQD,CAAR,CAAX;AACH,S;;;;;iCApCQ;AAAA,yBACoG,KAAKE,KADzG;AAAA,gBACEC,WADF,UACEA,WADF;AAAA,gBACeC,IADf,UACeA,IADf;AAAA,gBACqBC,aADrB,UACqBA,aADrB;AAAA,gBACoCC,WADpC,UACoCA,WADpC;AAAA,gBACgDC,YADhD,UACgDA,YADhD;AAAA,sCAC6DC,KAD7D;AAAA,gBAC6DA,KAD7D,gCACmE,EADnE;AAAA,qCACsEC,IADtE;AAAA,gBACsEA,IADtE,+BAC2E,OAD3E;AAAA,yCACmFC,QADnF;AAAA,gBACmFA,QADnF,mCAC8F,EAD9F;;AAEL,gBAAMC,SAAS,KAAKjB,SAAL,CAAee,IAAf,CAAf;AACA,mBACI;AAAA;AAAA,kBAAK,WAAU,eAAf,EAA+B,OAAOD,KAAtC;AACI;AAAA;AAAA;AACKL,mCACD;AAAA;AAAA,0BAAK,WAAU,MAAf;AACI,+DAAK,OAAOO,QAAZ,EAAsB,KAAKC,MAA3B;AADJ,qBAFJ;AAMKP,4BACD;AAAA;AAAA,0BAAK,WAAU,MAAf;AAAuBA;AAAvB,qBAPJ;AASKC,qCACD;AAAA;AAAA,0BAAK,WAAU,QAAf;AACI;AAAA;AAAA,8BAAQ,MAAK,SAAb,EAAuB,SAAS,KAAKN,aAArC;AACMO;AADN;AADJ;AAVJ,iBADJ;AAkBKC,gCACG;AAAA;AAAA,sBAAK,WAAU,cAAf;AACI;AAAA;AAAA,0BAAM,WAAU,UAAhB;AAAA;AAAA,qBADJ;AAEI;AAAA;AAAA,0BAAK,WAAU,YAAf;AAAA;AAA+BA;AAA/B;AAFJ;AAnBR,aADJ;AA4BH;;;EAjD2BK,gB,UAErBC,S,GAAY;AACfV,iBAAaW,oBAAUC,IADR;AAEfX,UAAMU,oBAAUE,MAFD;AAGfX,mBAAeS,oBAAUC,IAHV;AAIfT,iBAAaQ,oBAAUE,MAJR;AAKfT,kBAAcO,oBAAUE,MALT;AAMff,aAASa,oBAAUG,IANJ;AAOfT,WAAOM,oBAAUI,MAPF;AAQfT,UAAMK,oBAAUE;AARD,C;kBAwDRvB,iB","file":"EmptyAndErrorView.js","sourcesContent":["import React, {Component} from 'react';\r\nimport { Button } from 'antd';\r\nimport PropTypes from 'prop-types';\r\n\r\nclass EmptyAndErrorView extends Component{\r\n\r\n static propTypes = {\r\n iconVisible: PropTypes.bool,\r\n info: PropTypes.string,\r\n buttonVisible: PropTypes.bool,\r\n buttonTitle: PropTypes.string,\r\n secondaryTip: PropTypes.string,\r\n onClick: PropTypes.func,\r\n style: PropTypes.object,\r\n type: PropTypes.string\r\n };\r\n\r\n sys_parms = {\r\n empty: `${window.ossAliyuncsFileURL}/empty.png`,\r\n error: `${window.ossAliyuncsFileURL}/operation_error.png`\r\n }\r\n\r\n render() {\r\n const {iconVisible, info, buttonVisible, buttonTitle,secondaryTip,style={},type='error',imgStyle = {}} = this.props;\r\n const imgURL = this.sys_parms[type];\r\n return (\r\n <div className=\"progressState\" style={style}>\r\n <div>\r\n {iconVisible &&\r\n <div className=\"icon\">\r\n <img style={imgStyle} src={imgURL}/>\r\n </div>\r\n }\r\n {info &&\r\n <div className=\"text\">{info}</div>\r\n }\r\n {buttonVisible &&\r\n <div className=\"addBtn\">\r\n <Button type=\"primary\" onClick={this.onButtonClick}>\r\n {buttonTitle}\r\n </Button>\r\n </div>\r\n }\r\n </div>\r\n {secondaryTip &&\r\n <div className=\"secondaryTip\">\r\n <span className=\"tipLabel\">提示 :</span>\r\n <div className=\"tipContent\"> {secondaryTip}</div>\r\n </div>\r\n }\r\n\r\n </div>\r\n );\r\n }\r\n\r\n onButtonClick = (e)=>{\r\n const {onClick} = this.props;\r\n onClick && onClick(e);\r\n }\r\n\r\n}\r\n\r\nexport default EmptyAndErrorView;"]}
|
@@ -1007,11 +1007,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1007
1007
|
}, 200);
|
1008
1008
|
|
1009
1009
|
// TODO: 测试优惠券支付
|
1010
|
-
|
1011
|
-
var _ref10 = _mutantsUtil.platform || {},
|
1012
|
-
isNewRetailBCPos = _ref10.isNewRetailBCPos;
|
1013
|
-
|
1014
|
-
if (isNewRetailBCPos && !_this2.store.paymode.currentMode.boriginReturn) {
|
1010
|
+
if (!_this2.store.paymode.currentMode.boriginReturn) {
|
1015
1011
|
_this2.store.getCouponList();
|
1016
1012
|
}
|
1017
1013
|
};
|
@@ -1093,8 +1089,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1093
1089
|
};
|
1094
1090
|
|
1095
1091
|
_this2.checkOfflineEnable = function (paymode, key) {
|
1096
|
-
var
|
1097
|
-
paymodes =
|
1092
|
+
var _ref10 = paymode || {},
|
1093
|
+
paymodes = _ref10.paymodes;
|
1098
1094
|
|
1099
1095
|
var isOffline = _mutantsMicrofx.stores.offlineSys.isOffline;
|
1100
1096
|
|
@@ -1441,15 +1437,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1441
1437
|
_message2.default.info('\u539F\u5355\u9000\u8D27\u65F6' + Differentiate.COUPON + '\u4E0D\u53EF\u4EE5\u53D6\u6D88\u3002');
|
1442
1438
|
return;
|
1443
1439
|
}
|
1444
|
-
|
1445
|
-
var _ref12 = _mutantsUtil.platform || {},
|
1446
|
-
isNewRetailBCPos = _ref12.isNewRetailBCPos;
|
1447
|
-
|
1448
|
-
if (isNewRetailBCPos) {
|
1449
|
-
_this2.store.paymode.calcDjqCheckValue(q, _this2.store.dto);
|
1450
|
-
} else {
|
1451
|
-
_this2.store.paymode.calcDjqValue(q);
|
1452
|
-
}
|
1440
|
+
_this2.store.paymode.calcDjqCheckValue(q, _this2.store.dto);
|
1453
1441
|
// this.props.onGetCouponList && this.props.onGetCouponList(this.store.dto, _filter(this.store.paymode.currentMode.djqs,(djq)=>{return djq.couponCategoryEnum !== 'RIGHT'}));
|
1454
1442
|
// this.props.onGetCouponList && this.props.onGetCouponList(this.store.dto, _filter(this.store.paymode.currentMode.djqs,(djq)=>{return djq.checked}), this.store.paymode.currentMode.djqs);
|
1455
1443
|
};
|
@@ -1722,6 +1710,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1722
1710
|
|
1723
1711
|
_modalWraper2.default.confirm({
|
1724
1712
|
className: 'tplus-confirm-modal',
|
1713
|
+
zIndex: 1007,
|
1725
1714
|
content: _react2.default.createElement(
|
1726
1715
|
'div',
|
1727
1716
|
{ className: 'unReturn' },
|
@@ -1938,13 +1927,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1938
1927
|
if (_this2.hasElectron === false) return;
|
1939
1928
|
var dt = _mutantsMicrofx.localStore.get('portsetting_hardSet') || [];
|
1940
1929
|
|
1941
|
-
var
|
1942
|
-
guestshow_enable =
|
1943
|
-
guestshow_clear =
|
1944
|
-
guestshow_welcome =
|
1945
|
-
guestshow_collect =
|
1946
|
-
guestshow_refund =
|
1947
|
-
guestshow_change =
|
1930
|
+
var _ref14 = dt || {},
|
1931
|
+
guestshow_enable = _ref14.guestshow_enable,
|
1932
|
+
guestshow_clear = _ref14.guestshow_clear,
|
1933
|
+
guestshow_welcome = _ref14.guestshow_welcome,
|
1934
|
+
guestshow_collect = _ref14.guestshow_collect,
|
1935
|
+
guestshow_refund = _ref14.guestshow_refund,
|
1936
|
+
guestshow_change = _ref14.guestshow_change;
|
1948
1937
|
|
1949
1938
|
var hasSuccess = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('portsetting_hardSet_isSuccess');
|
1950
1939
|
if (!guestshow_enable || !!guestshow_enable && hasSuccess == '0') return;
|
@@ -1979,9 +1968,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1979
1968
|
};
|
1980
1969
|
|
1981
1970
|
_this2.handleSettle = function () {
|
1982
|
-
var
|
1971
|
+
var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(args) {
|
1983
1972
|
var handleUserInputs = function () {
|
1984
|
-
var
|
1973
|
+
var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
|
1985
1974
|
var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
|
1986
1975
|
|
1987
1976
|
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
@@ -2072,7 +2061,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2072
2061
|
}));
|
2073
2062
|
|
2074
2063
|
return function handleUserInputs(_x6) {
|
2075
|
-
return
|
2064
|
+
return _ref17.apply(this, arguments);
|
2076
2065
|
};
|
2077
2066
|
}();
|
2078
2067
|
|
@@ -2165,7 +2154,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2165
2154
|
});
|
2166
2155
|
|
2167
2156
|
commit = function () {
|
2168
|
-
var
|
2157
|
+
var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(values) {
|
2169
2158
|
var result;
|
2170
2159
|
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
2171
2160
|
while (1) {
|
@@ -2239,7 +2228,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2239
2228
|
}));
|
2240
2229
|
|
2241
2230
|
return function commit(_x5) {
|
2242
|
-
return
|
2231
|
+
return _ref16.apply(this, arguments);
|
2243
2232
|
};
|
2244
2233
|
}();
|
2245
2234
|
|
@@ -2254,13 +2243,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2254
2243
|
}));
|
2255
2244
|
|
2256
2245
|
return function (_x4) {
|
2257
|
-
return
|
2246
|
+
return _ref15.apply(this, arguments);
|
2258
2247
|
};
|
2259
2248
|
}();
|
2260
2249
|
|
2261
2250
|
_this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
|
2262
2251
|
var handleUserInputs = function () {
|
2263
|
-
var
|
2252
|
+
var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(promises) {
|
2264
2253
|
var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
|
2265
2254
|
|
2266
2255
|
return _regenerator2.default.wrap(function _callee13$(_context13) {
|
@@ -2357,11 +2346,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2357
2346
|
}));
|
2358
2347
|
|
2359
2348
|
return function handleUserInputs(_x8) {
|
2360
|
-
return
|
2349
|
+
return _ref20.apply(this, arguments);
|
2361
2350
|
};
|
2362
2351
|
}();
|
2363
2352
|
|
2364
|
-
var that, curmode, promises,
|
2353
|
+
var that, curmode, promises, _enumController$getEn22, PayStyle, commit;
|
2365
2354
|
|
2366
2355
|
return _regenerator2.default.wrap(function _callee14$(_context14) {
|
2367
2356
|
while (1) {
|
@@ -2370,28 +2359,21 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2370
2359
|
that = _this2;
|
2371
2360
|
curmode = _this2.store.paymode.currentMode;
|
2372
2361
|
promises = [];
|
2373
|
-
_ref21 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref21.isNewRetailBCPos;
|
2374
2362
|
|
2375
|
-
if (
|
2376
|
-
|
2377
|
-
_enumController$getEn22 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn22.PayStyle;
|
2363
|
+
if (curmode.value > 0) {
|
2364
|
+
_enumController$getEn22 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn22.PayStyle;
|
2378
2365
|
|
2379
|
-
|
2380
|
-
|
2381
|
-
|
2382
|
-
|
2383
|
-
|
2384
|
-
}
|
2366
|
+
if (curmode.paymentType === PayStyle.hyczk) {
|
2367
|
+
if (curmode.cardTypeEnum === 'BALANCE_CARD') {
|
2368
|
+
!curmode.freePaymentPasswordStore && promises.push(that.inputPwd(curmode));
|
2369
|
+
} else {
|
2370
|
+
curmode.isNeedPassword && promises.push(that.inputPwd(curmode));
|
2385
2371
|
}
|
2386
2372
|
}
|
2387
|
-
} else {
|
2388
|
-
if (curmode.member.needPwd && curmode.value > 0) {
|
2389
|
-
promises.push(that.inputPwd(curmode));
|
2390
|
-
}
|
2391
2373
|
}
|
2392
2374
|
|
2393
2375
|
commit = function () {
|
2394
|
-
var
|
2376
|
+
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(values) {
|
2395
2377
|
var result;
|
2396
2378
|
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
2397
2379
|
while (1) {
|
@@ -2441,13 +2423,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2441
2423
|
}));
|
2442
2424
|
|
2443
2425
|
return function commit(_x7) {
|
2444
|
-
return
|
2426
|
+
return _ref19.apply(this, arguments);
|
2445
2427
|
};
|
2446
2428
|
}();
|
2447
2429
|
|
2448
2430
|
handleUserInputs(promises);
|
2449
2431
|
|
2450
|
-
case
|
2432
|
+
case 6:
|
2451
2433
|
case 'end':
|
2452
2434
|
return _context14.stop();
|
2453
2435
|
}
|
@@ -2492,7 +2474,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2492
2474
|
};
|
2493
2475
|
|
2494
2476
|
_this2.inputPwd = function () {
|
2495
|
-
var
|
2477
|
+
var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(paymode) {
|
2496
2478
|
var that, confirmPwd;
|
2497
2479
|
return _regenerator2.default.wrap(function _callee15$(_context15) {
|
2498
2480
|
while (1) {
|
@@ -2508,8 +2490,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2508
2490
|
// if (v !== '') {
|
2509
2491
|
modal.destroy();
|
2510
2492
|
|
2511
|
-
var
|
2512
|
-
confirmPwd =
|
2493
|
+
var _ref22 = that.state || {},
|
2494
|
+
confirmPwd = _ref22.confirmPwd;
|
2513
2495
|
|
2514
2496
|
setTimeout(function () {
|
2515
2497
|
paymode.authCode = v;
|
@@ -2600,8 +2582,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2600
2582
|
type: 'primary', size: 'large', onClick: function onClick() {
|
2601
2583
|
var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
|
2602
2584
|
|
2603
|
-
var
|
2604
|
-
confirmPwd =
|
2585
|
+
var _ref23 = that.state || {},
|
2586
|
+
confirmPwd = _ref23.confirmPwd;
|
2605
2587
|
// if (v !== '') {
|
2606
2588
|
|
2607
2589
|
|
@@ -2642,12 +2624,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2642
2624
|
}));
|
2643
2625
|
|
2644
2626
|
return function (_x9) {
|
2645
|
-
return
|
2627
|
+
return _ref21.apply(this, arguments);
|
2646
2628
|
};
|
2647
2629
|
}();
|
2648
2630
|
|
2649
2631
|
_this2.btnDebounced = function () {
|
2650
|
-
var
|
2632
|
+
var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(type, bquick) {
|
2651
2633
|
var IdbusiType, CustomerPhone, DistributionMode, Address, isEnableSerialNumber, resultObj, title, _enumController$getEn23, PayStyle, _this2$store8, paymode, brefund, boriginReturn, newStyle, status;
|
2652
2634
|
|
2653
2635
|
return _regenerator2.default.wrap(function _callee16$(_context16) {
|
@@ -2754,14 +2736,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2754
2736
|
}));
|
2755
2737
|
|
2756
2738
|
return function (_x10, _x11) {
|
2757
|
-
return
|
2739
|
+
return _ref24.apply(this, arguments);
|
2758
2740
|
};
|
2759
2741
|
}();
|
2760
2742
|
|
2761
2743
|
_this2.onCzkChange = function (v) {
|
2762
2744
|
// console.log("czk change:"+new Date().toLocaleTimeString())
|
2763
|
-
var
|
2764
|
-
isNewRetailBCPos =
|
2745
|
+
var _ref25 = _mutantsUtil.platform || {},
|
2746
|
+
isNewRetailBCPos = _ref25.isNewRetailBCPos;
|
2765
2747
|
|
2766
2748
|
if (!isNewRetailBCPos) {
|
2767
2749
|
_this2.store.paymode.currentMode.member.setCardNo(v);
|
@@ -3370,12 +3352,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3370
3352
|
|
3371
3353
|
_this2.hasElectron = hasElectron;
|
3372
3354
|
|
3373
|
-
var
|
3374
|
-
MemberMeStorageCardInputByKeyBoard =
|
3375
|
-
ICCardServer =
|
3376
|
-
ICCardPassword =
|
3377
|
-
PreSellOrBook =
|
3378
|
-
PercentageWhenBook =
|
3355
|
+
var _ref26 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
|
3356
|
+
MemberMeStorageCardInputByKeyBoard = _ref26.MemberMeStorageCardInputByKeyBoard,
|
3357
|
+
ICCardServer = _ref26.ICCardServer,
|
3358
|
+
ICCardPassword = _ref26.ICCardPassword,
|
3359
|
+
PreSellOrBook = _ref26.PreSellOrBook,
|
3360
|
+
PercentageWhenBook = _ref26.PercentageWhenBook;
|
3379
3361
|
|
3380
3362
|
_this2.isStorageCardInputType = MemberMeStorageCardInputByKeyBoard; // 仅储值卡是否禁用键盘输入,'0'为不禁用 '1'为禁用
|
3381
3363
|
_this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
|
@@ -3384,9 +3366,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3384
3366
|
_this2.percentageWhenBook = PercentageWhenBook;
|
3385
3367
|
//移动端环境下,没有读取IC卡的方式。
|
3386
3368
|
|
3387
|
-
var
|
3388
|
-
isHorizontalPad =
|
3389
|
-
isHorizontalSunMi =
|
3369
|
+
var _ref27 = _mutantsUtil.platform || {},
|
3370
|
+
isHorizontalPad = _ref27.isHorizontalPad,
|
3371
|
+
isHorizontalSunMi = _ref27.isHorizontalSunMi;
|
3390
3372
|
|
3391
3373
|
_this2.isHorizontalPad = !!isHorizontalPad;
|
3392
3374
|
_this2.isHorizontalSunMi = !!isHorizontalSunMi;
|
@@ -3518,8 +3500,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3518
3500
|
}, {
|
3519
3501
|
key: 'isNoProductTip',
|
3520
3502
|
value: function isNoProductTip(nonProductMap) {
|
3521
|
-
var
|
3522
|
-
RetailDetails =
|
3503
|
+
var _ref28 = this.context.viewModel.data || {},
|
3504
|
+
RetailDetails = _ref28.RetailDetails;
|
3523
3505
|
|
3524
3506
|
var temphtml = [];
|
3525
3507
|
if ((0, _keys2.default)(nonProductMap).length > 0) {
|
@@ -3706,10 +3688,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3706
3688
|
newPassConfirm = _state2.newPassConfirm,
|
3707
3689
|
newPass = _state2.newPass,
|
3708
3690
|
isNotAutoFocus = _state2.isNotAutoFocus;
|
3709
|
-
|
3710
|
-
var _ref32 = _mutantsUtil.platform || {},
|
3711
|
-
isNewRetailBCPos = _ref32.isNewRetailBCPos;
|
3712
|
-
|
3713
3691
|
var _store2 = this.store,
|
3714
3692
|
paymode = _store2.paymode,
|
3715
3693
|
brefund = _store2.brefund,
|
@@ -3794,11 +3772,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3794
3772
|
quantity4 = 0;
|
3795
3773
|
var sumQuantity = 0; //数量总和的值,包括称重的。
|
3796
3774
|
|
3797
|
-
var
|
3798
|
-
|
3799
|
-
buyQuantity =
|
3800
|
-
|
3801
|
-
returnQuantity =
|
3775
|
+
var _ref29 = quantityDetail || {},
|
3776
|
+
_ref29$buyQuantity = _ref29.buyQuantity,
|
3777
|
+
buyQuantity = _ref29$buyQuantity === undefined ? 0 : _ref29$buyQuantity,
|
3778
|
+
_ref29$returnQuantity = _ref29.returnQuantity,
|
3779
|
+
returnQuantity = _ref29$returnQuantity === undefined ? 0 : _ref29$returnQuantity;
|
3802
3780
|
|
3803
3781
|
var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
|
3804
3782
|
quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
|
@@ -4683,7 +4661,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4683
4661
|
return _this8.czkInput = input;
|
4684
4662
|
},
|
4685
4663
|
onKeyDown: function () {
|
4686
|
-
var
|
4664
|
+
var _ref30 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee17(e) {
|
4687
4665
|
var time, _paymode;
|
4688
4666
|
|
4689
4667
|
return _regenerator2.default.wrap(function _callee17$(_context17) {
|
@@ -4739,7 +4717,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4739
4717
|
}));
|
4740
4718
|
|
4741
4719
|
return function (_x13) {
|
4742
|
-
return
|
4720
|
+
return _ref30.apply(this, arguments);
|
4743
4721
|
};
|
4744
4722
|
}(),
|
4745
4723
|
onFocus: function onFocus(e) {
|
@@ -4796,8 +4774,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4796
4774
|
_this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.balance));
|
4797
4775
|
},
|
4798
4776
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance)),
|
4799
|
-
ref: function ref(
|
4800
|
-
return _this8["inputCzkAmount"] =
|
4777
|
+
ref: function ref(_ref31) {
|
4778
|
+
return _this8["inputCzkAmount"] = _ref31;
|
4801
4779
|
},
|
4802
4780
|
onFocus: function onFocus(e) {
|
4803
4781
|
_this8.inputkey = "inputCzkAmount";
|
@@ -5467,8 +5445,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
5467
5445
|
_this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
|
5468
5446
|
},
|
5469
5447
|
defaultValue: currentMode && currentMode.member && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
|
5470
|
-
ref: function ref(
|
5471
|
-
return _this8["inputJfdxAmount"] =
|
5448
|
+
ref: function ref(_ref32) {
|
5449
|
+
return _this8["inputJfdxAmount"] = _ref32;
|
5472
5450
|
},
|
5473
5451
|
onFocus: function onFocus(e) {
|
5474
5452
|
_this8.inputkey = "inputJfdxAmount";
|