tplus-components-touch 3.42.6 → 3.44.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 +15 -38
- package/dist/components/billSearch/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 +62 -81
- 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 +3 -3
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["tplus-components-touch/components/notification/index.js"],"names":["mtd","
|
1
|
+
{"version":3,"sources":["tplus-components-touch/components/notification/index.js"],"names":["NotificationP","sys_parms","mtd","window","ossAliyuncsFileURL","mtt","click","cb","close","key","show","total","type","callback","that","title","voice","status","Date","now","open","className","description","placement","duration","onClose","console","log"],"mappings":";;;;;;;;;;;;;;;;;AAMA;;;;AAEA;;AACA;;;;IAEqBA,a,GAOjB,yBAAc;AAAA;;AAAA;AAAA,SALdC,SAKc,GALF;AACRC,aAAQC,OAAOC,kBAAf,mBADQ;AAERC,aAAQF,OAAOC,kBAAf;AAFQ,KAKE;;AAAA,SAIdE,KAJc,GAIN,UAACC,EAAD,EAAQ;AACZA,cAAMA,IAAN;AACH,KANa;;AAAA,SAOdC,KAPc,GAON,UAACC,GAAD,EAAS;AACb,+BAAaD,KAAb,CAAmBC,GAAnB;AACH,KATa;;AAAA,SAUdC,IAVc,GAUP,YAAoC;AAAA,YAAnCC,KAAmC,uEAA3B,EAA2B;AAAA,YAAvBC,IAAuB,uEAAhB,CAAgB;AAAA,YAAbC,QAAa;;AACvC,YAAIC,OAAO,KAAX;AACA,YAAI,MAAKL,GAAT,EAAc;AACV,kBAAKD,KAAL,CAAW,MAAKC,GAAhB;AACH;AACD,YAAIM,QAAQ,IAAZ;AAAA,YAAkBC,QAAQ,IAA1B;AAAA,YAAgCC,SAAS,KAAzC;AACA,gBAAQL,IAAR;AACI,iBAAK,CAAL;AACIG,wBAAQ,QAAR;AACAC,wBAAQ,MAAKf,SAAL,CAAeC,GAAvB;AACAe,yBAAS,IAAT;AACA;AACJ,iBAAK,CAAL;AACIF,wBAAQ,UAAR;AACAC,wBAAQ,MAAKf,SAAL,CAAeI,GAAvB;AACAY,yBAAS,KAAT;AACA;AAVR;AAYA,YAAMR,MAAMS,KAAKC,GAAL,EAAZ;AACA,+BAAaC,IAAb,CAAkB;AACdC,uBAAW,uBADG;AAEdC,yBAAa;AAAA;AAAA,kBAAK,WAAU,SAAf,EAAyB,SAAS,mBAAM;AAAE,4BAAIL,MAAJ,EAAY;AAAEH,iCAAKR,KAAL,CAAWO,QAAX;AAAsB;AAAE,qBAAhF;AACT,8CAAC,YAAD,IAAO,MAAK,MAAZ,GADS;AAET;AAAA;AAAA,sBAAK,WAAU,QAAf;AACI;AAAA;AAAA,0BAAK,WAAWI,SAAS,YAAT,GAAwB,MAAxC;AAAiDF;AAAjD,qBADJ;AAGQE,8BACA;AAAA;AAAA,0BAAK,WAAU,OAAf;AAAwBN;AAAxB;AAJR,iBAFS;AAST;AAAA;AAAA,sBAAO,UAAS,UAAhB,EAA2B,UAAS,UAApC,EAA+C,aAA/C,EAAuD,YAAvD;AACI,8DAAQ,KAAKK,KAAb;AADJ;AATS,aAFC;AAedP,oBAfc;AAgBdc,uBAAW,UAhBG;AAiBdC,sBAAU,KAjBI;AAkBdC,mBAlBc,qBAkBJ;AAAEC,wBAAQC,GAAR,CAAY,cAAZ;AAA6B;AAlB3B,SAAlB;AAoBA,cAAKlB,GAAL,GAAWA,GAAX;AACH,KAlDa;;AACV,SAAKA,GAAL,GAAW,IAAX;AACH,C,EApBL;;;;;;kBAWqBT,a","file":"index.js","sourcesContent":["/*\r\n * 1.您有新的订单\r\n * 2.您有新的退款订单\r\n * 3.请注意,商品调价了\r\n*/\r\n\r\nimport React from 'react';\r\nimport { notification } from 'antd';\r\nimport { Ticon } from '../../index';\r\nimport './index.less';\r\n\r\nexport default class NotificationP {\r\n\r\n sys_parms = {\r\n mtd: `${window.ossAliyuncsFileURL}/muisc/mtd.mp3`,\r\n mtt: `${window.ossAliyuncsFileURL}/muisc/mtt.mp3`\r\n }\r\n\r\n constructor() {\r\n this.key = null;\r\n }\r\n\r\n click = (cb) => {\r\n cb && cb();\r\n }\r\n close = (key) => {\r\n notification.close(key);\r\n }\r\n show = (total = 99, type = 1, callback) => {\r\n let that = this;\r\n if (this.key) {\r\n this.close(this.key);\r\n }\r\n let title = null, voice = null, status = false;\r\n switch (type) {\r\n case 1:\r\n title = \"您有新的订单\";\r\n voice = this.sys_parms.mtd;\r\n status = true;\r\n break;\r\n case 2:\r\n title = \"您有新的退款订单\";\r\n voice = this.sys_parms.mtt;\r\n status = false;\r\n break;\r\n }\r\n const key = Date.now();\r\n notification.open({\r\n className: 'notificationContainer',\r\n description: <div className='content' onClick={() => { if (status) { that.click(callback) } }}>\r\n <Ticon type='laba' />\r\n <div className='second'>\r\n <div className={status ? 'text color' : 'text'}>{title}</div>\r\n {\r\n status &&\r\n <div className='total'>{total}</div>\r\n }\r\n </div>\r\n <audio controls=\"controls\" autoplay=\"autoplay\" preload hidden>\r\n <source src={voice} />\r\n </audio>\r\n </div>,\r\n key,\r\n placement: 'topRight',\r\n duration: 99999,\r\n onClose() { console.log('simple close') }\r\n })\r\n this.key = key;\r\n }\r\n}"]}
|
@@ -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;"]}
|
@@ -1024,11 +1024,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1024
1024
|
}, 200);
|
1025
1025
|
|
1026
1026
|
// TODO: 测试优惠券支付
|
1027
|
-
|
1028
|
-
var _ref10 = _mutantsUtil.platform || {},
|
1029
|
-
isNewRetailBCPos = _ref10.isNewRetailBCPos;
|
1030
|
-
|
1031
|
-
if (isNewRetailBCPos && !_this2.store.paymode.currentMode.boriginReturn) {
|
1027
|
+
if (!_this2.store.paymode.currentMode.boriginReturn) {
|
1032
1028
|
_this2.store.getCouponList();
|
1033
1029
|
}
|
1034
1030
|
};
|
@@ -1110,8 +1106,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1110
1106
|
};
|
1111
1107
|
|
1112
1108
|
_this2.checkOfflineEnable = function (paymode, key) {
|
1113
|
-
var
|
1114
|
-
paymodes =
|
1109
|
+
var _ref10 = paymode || {},
|
1110
|
+
paymodes = _ref10.paymodes;
|
1115
1111
|
|
1116
1112
|
var isOffline = _mutantsMicrofx.stores.offlineSys.isOffline;
|
1117
1113
|
|
@@ -1464,15 +1460,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1464
1460
|
_message2.default.info('\u539F\u5355\u9000\u8D27\u65F6' + Differentiate.COUPON + '\u4E0D\u53EF\u4EE5\u53D6\u6D88\u3002');
|
1465
1461
|
return;
|
1466
1462
|
}
|
1467
|
-
|
1468
|
-
var _ref12 = _mutantsUtil.platform || {},
|
1469
|
-
isNewRetailBCPos = _ref12.isNewRetailBCPos;
|
1470
|
-
|
1471
|
-
if (isNewRetailBCPos) {
|
1472
|
-
_this2.store.paymode.calcDjqCheckValue(q, _this2.store.dto);
|
1473
|
-
} else {
|
1474
|
-
_this2.store.paymode.calcDjqValue(q);
|
1475
|
-
}
|
1463
|
+
_this2.store.paymode.calcDjqCheckValue(q, _this2.store.dto);
|
1476
1464
|
// this.props.onGetCouponList && this.props.onGetCouponList(this.store.dto, _filter(this.store.paymode.currentMode.djqs,(djq)=>{return djq.couponCategoryEnum !== 'RIGHT'}));
|
1477
1465
|
// this.props.onGetCouponList && this.props.onGetCouponList(this.store.dto, _filter(this.store.paymode.currentMode.djqs,(djq)=>{return djq.checked}), this.store.paymode.currentMode.djqs);
|
1478
1466
|
};
|
@@ -1964,13 +1952,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1964
1952
|
if (_this2.hasElectron === false) return;
|
1965
1953
|
var dt = _mutantsMicrofx.localStore.get('portsetting_hardSet') || [];
|
1966
1954
|
|
1967
|
-
var
|
1968
|
-
guestshow_enable =
|
1969
|
-
guestshow_clear =
|
1970
|
-
guestshow_welcome =
|
1971
|
-
guestshow_collect =
|
1972
|
-
guestshow_refund =
|
1973
|
-
guestshow_change =
|
1955
|
+
var _ref14 = dt || {},
|
1956
|
+
guestshow_enable = _ref14.guestshow_enable,
|
1957
|
+
guestshow_clear = _ref14.guestshow_clear,
|
1958
|
+
guestshow_welcome = _ref14.guestshow_welcome,
|
1959
|
+
guestshow_collect = _ref14.guestshow_collect,
|
1960
|
+
guestshow_refund = _ref14.guestshow_refund,
|
1961
|
+
guestshow_change = _ref14.guestshow_change;
|
1974
1962
|
|
1975
1963
|
var hasSuccess = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('portsetting_hardSet_isSuccess');
|
1976
1964
|
if (!guestshow_enable || !!guestshow_enable && hasSuccess == '0') return;
|
@@ -2005,9 +1993,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2005
1993
|
};
|
2006
1994
|
|
2007
1995
|
_this2.handleSettle = function () {
|
2008
|
-
var
|
1996
|
+
var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(args) {
|
2009
1997
|
var handleUserInputs = function () {
|
2010
|
-
var
|
1998
|
+
var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
|
2011
1999
|
var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
|
2012
2000
|
|
2013
2001
|
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
@@ -2098,7 +2086,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2098
2086
|
}));
|
2099
2087
|
|
2100
2088
|
return function handleUserInputs(_x6) {
|
2101
|
-
return
|
2089
|
+
return _ref17.apply(this, arguments);
|
2102
2090
|
};
|
2103
2091
|
}();
|
2104
2092
|
|
@@ -2191,7 +2179,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2191
2179
|
});
|
2192
2180
|
|
2193
2181
|
commit = function () {
|
2194
|
-
var
|
2182
|
+
var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(values) {
|
2195
2183
|
var result;
|
2196
2184
|
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
2197
2185
|
while (1) {
|
@@ -2265,7 +2253,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2265
2253
|
}));
|
2266
2254
|
|
2267
2255
|
return function commit(_x5) {
|
2268
|
-
return
|
2256
|
+
return _ref16.apply(this, arguments);
|
2269
2257
|
};
|
2270
2258
|
}();
|
2271
2259
|
|
@@ -2280,13 +2268,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2280
2268
|
}));
|
2281
2269
|
|
2282
2270
|
return function (_x4) {
|
2283
|
-
return
|
2271
|
+
return _ref15.apply(this, arguments);
|
2284
2272
|
};
|
2285
2273
|
}();
|
2286
2274
|
|
2287
2275
|
_this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
|
2288
2276
|
var handleUserInputs = function () {
|
2289
|
-
var
|
2277
|
+
var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(promises) {
|
2290
2278
|
var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
|
2291
2279
|
|
2292
2280
|
return _regenerator2.default.wrap(function _callee13$(_context13) {
|
@@ -2383,11 +2371,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2383
2371
|
}));
|
2384
2372
|
|
2385
2373
|
return function handleUserInputs(_x8) {
|
2386
|
-
return
|
2374
|
+
return _ref20.apply(this, arguments);
|
2387
2375
|
};
|
2388
2376
|
}();
|
2389
2377
|
|
2390
|
-
var that, curmode, promises,
|
2378
|
+
var that, curmode, promises, _enumController$getEn22, PayStyle, commit;
|
2391
2379
|
|
2392
2380
|
return _regenerator2.default.wrap(function _callee14$(_context14) {
|
2393
2381
|
while (1) {
|
@@ -2396,28 +2384,21 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2396
2384
|
that = _this2;
|
2397
2385
|
curmode = _this2.store.paymode.currentMode;
|
2398
2386
|
promises = [];
|
2399
|
-
_ref21 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref21.isNewRetailBCPos;
|
2400
2387
|
|
2401
|
-
if (
|
2402
|
-
|
2403
|
-
_enumController$getEn22 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn22.PayStyle;
|
2388
|
+
if (curmode.value > 0) {
|
2389
|
+
_enumController$getEn22 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn22.PayStyle;
|
2404
2390
|
|
2405
|
-
|
2406
|
-
|
2407
|
-
|
2408
|
-
|
2409
|
-
|
2410
|
-
}
|
2391
|
+
if (curmode.paymentType === PayStyle.hyczk) {
|
2392
|
+
if (curmode.cardTypeEnum === 'BALANCE_CARD') {
|
2393
|
+
!curmode.freePaymentPasswordStore && promises.push(that.inputPwd(curmode));
|
2394
|
+
} else {
|
2395
|
+
curmode.isNeedPassword && promises.push(that.inputPwd(curmode));
|
2411
2396
|
}
|
2412
2397
|
}
|
2413
|
-
} else {
|
2414
|
-
if (curmode.member.needPwd && curmode.value > 0) {
|
2415
|
-
promises.push(that.inputPwd(curmode));
|
2416
|
-
}
|
2417
2398
|
}
|
2418
2399
|
|
2419
2400
|
commit = function () {
|
2420
|
-
var
|
2401
|
+
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(values) {
|
2421
2402
|
var result;
|
2422
2403
|
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
2423
2404
|
while (1) {
|
@@ -2467,13 +2448,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2467
2448
|
}));
|
2468
2449
|
|
2469
2450
|
return function commit(_x7) {
|
2470
|
-
return
|
2451
|
+
return _ref19.apply(this, arguments);
|
2471
2452
|
};
|
2472
2453
|
}();
|
2473
2454
|
|
2474
2455
|
handleUserInputs(promises);
|
2475
2456
|
|
2476
|
-
case
|
2457
|
+
case 6:
|
2477
2458
|
case 'end':
|
2478
2459
|
return _context14.stop();
|
2479
2460
|
}
|
@@ -2518,7 +2499,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2518
2499
|
};
|
2519
2500
|
|
2520
2501
|
_this2.inputPwd = function () {
|
2521
|
-
var
|
2502
|
+
var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(paymode) {
|
2522
2503
|
var that, confirmPwd;
|
2523
2504
|
return _regenerator2.default.wrap(function _callee15$(_context15) {
|
2524
2505
|
while (1) {
|
@@ -2534,8 +2515,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2534
2515
|
// if (v !== '') {
|
2535
2516
|
modal.destroy();
|
2536
2517
|
|
2537
|
-
var
|
2538
|
-
confirmPwd =
|
2518
|
+
var _ref22 = that.state || {},
|
2519
|
+
confirmPwd = _ref22.confirmPwd;
|
2539
2520
|
|
2540
2521
|
setTimeout(function () {
|
2541
2522
|
paymode.authCode = v;
|
@@ -2626,8 +2607,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2626
2607
|
type: 'primary', size: 'large', onClick: function onClick() {
|
2627
2608
|
var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
|
2628
2609
|
|
2629
|
-
var
|
2630
|
-
confirmPwd =
|
2610
|
+
var _ref23 = that.state || {},
|
2611
|
+
confirmPwd = _ref23.confirmPwd;
|
2631
2612
|
// if (v !== '') {
|
2632
2613
|
|
2633
2614
|
|
@@ -2668,12 +2649,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2668
2649
|
}));
|
2669
2650
|
|
2670
2651
|
return function (_x9) {
|
2671
|
-
return
|
2652
|
+
return _ref21.apply(this, arguments);
|
2672
2653
|
};
|
2673
2654
|
}();
|
2674
2655
|
|
2675
2656
|
_this2.btnDebounced = function () {
|
2676
|
-
var
|
2657
|
+
var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(type, bquick) {
|
2677
2658
|
var IdbusiType, CustomerPhone, DistributionMode, Address, isEnableSerialNumber, resultObj, title, _enumController$getEn23, PayStyle, _this2$store8, paymode, brefund, boriginReturn, newStyle, status;
|
2678
2659
|
|
2679
2660
|
return _regenerator2.default.wrap(function _callee16$(_context16) {
|
@@ -2780,14 +2761,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2780
2761
|
}));
|
2781
2762
|
|
2782
2763
|
return function (_x10, _x11) {
|
2783
|
-
return
|
2764
|
+
return _ref24.apply(this, arguments);
|
2784
2765
|
};
|
2785
2766
|
}();
|
2786
2767
|
|
2787
2768
|
_this2.onCzkChange = function (v) {
|
2788
2769
|
// console.log("czk change:"+new Date().toLocaleTimeString())
|
2789
|
-
var
|
2790
|
-
isNewRetailBCPos =
|
2770
|
+
var _ref25 = _mutantsUtil.platform || {},
|
2771
|
+
isNewRetailBCPos = _ref25.isNewRetailBCPos;
|
2791
2772
|
|
2792
2773
|
if (!isNewRetailBCPos) {
|
2793
2774
|
_this2.store.paymode.currentMode.member.setCardNo(v);
|
@@ -3395,12 +3376,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3395
3376
|
|
3396
3377
|
_this2.hasElectron = hasElectron;
|
3397
3378
|
|
3398
|
-
var
|
3399
|
-
MemberMeStorageCardInputByKeyBoard =
|
3400
|
-
ICCardServer =
|
3401
|
-
ICCardPassword =
|
3402
|
-
PreSellOrBook =
|
3403
|
-
PercentageWhenBook =
|
3379
|
+
var _ref26 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
|
3380
|
+
MemberMeStorageCardInputByKeyBoard = _ref26.MemberMeStorageCardInputByKeyBoard,
|
3381
|
+
ICCardServer = _ref26.ICCardServer,
|
3382
|
+
ICCardPassword = _ref26.ICCardPassword,
|
3383
|
+
PreSellOrBook = _ref26.PreSellOrBook,
|
3384
|
+
PercentageWhenBook = _ref26.PercentageWhenBook;
|
3404
3385
|
|
3405
3386
|
_this2.isStorageCardInputType = MemberMeStorageCardInputByKeyBoard; // 仅储值卡是否禁用键盘输入,'0'为不禁用 '1'为禁用
|
3406
3387
|
_this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
|
@@ -3409,9 +3390,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3409
3390
|
_this2.percentageWhenBook = PercentageWhenBook;
|
3410
3391
|
//移动端环境下,没有读取IC卡的方式。
|
3411
3392
|
|
3412
|
-
var
|
3413
|
-
isHorizontalPad =
|
3414
|
-
isHorizontalSunMi =
|
3393
|
+
var _ref27 = _mutantsUtil.platform || {},
|
3394
|
+
isHorizontalPad = _ref27.isHorizontalPad,
|
3395
|
+
isHorizontalSunMi = _ref27.isHorizontalSunMi;
|
3415
3396
|
|
3416
3397
|
_this2.isHorizontalPad = !!isHorizontalPad;
|
3417
3398
|
_this2.isHorizontalSunMi = !!isHorizontalSunMi;
|
@@ -3567,8 +3548,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3567
3548
|
}, {
|
3568
3549
|
key: 'isNoProductTip',
|
3569
3550
|
value: function isNoProductTip(nonProductMap) {
|
3570
|
-
var
|
3571
|
-
RetailDetails =
|
3551
|
+
var _ref28 = this.context.viewModel.data || {},
|
3552
|
+
RetailDetails = _ref28.RetailDetails;
|
3572
3553
|
|
3573
3554
|
var temphtml = [];
|
3574
3555
|
if ((0, _keys2.default)(nonProductMap).length > 0) {
|
@@ -3839,11 +3820,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3839
3820
|
quantity4 = 0;
|
3840
3821
|
var sumQuantity = 0; //数量总和的值,包括称重的。
|
3841
3822
|
|
3842
|
-
var
|
3843
|
-
|
3844
|
-
buyQuantity =
|
3845
|
-
|
3846
|
-
returnQuantity =
|
3823
|
+
var _ref29 = quantityDetail || {},
|
3824
|
+
_ref29$buyQuantity = _ref29.buyQuantity,
|
3825
|
+
buyQuantity = _ref29$buyQuantity === undefined ? 0 : _ref29$buyQuantity,
|
3826
|
+
_ref29$returnQuantity = _ref29.returnQuantity,
|
3827
|
+
returnQuantity = _ref29$returnQuantity === undefined ? 0 : _ref29$returnQuantity;
|
3847
3828
|
|
3848
3829
|
var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
|
3849
3830
|
quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
|
@@ -4728,7 +4709,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4728
4709
|
return _this8.czkInput = input;
|
4729
4710
|
},
|
4730
4711
|
onKeyDown: function () {
|
4731
|
-
var
|
4712
|
+
var _ref30 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee17(e) {
|
4732
4713
|
var time, _paymode;
|
4733
4714
|
|
4734
4715
|
return _regenerator2.default.wrap(function _callee17$(_context17) {
|
@@ -4784,7 +4765,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4784
4765
|
}));
|
4785
4766
|
|
4786
4767
|
return function (_x13) {
|
4787
|
-
return
|
4768
|
+
return _ref30.apply(this, arguments);
|
4788
4769
|
};
|
4789
4770
|
}(),
|
4790
4771
|
onFocus: function onFocus(e) {
|
@@ -4841,8 +4822,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4841
4822
|
_this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.balance));
|
4842
4823
|
},
|
4843
4824
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance)),
|
4844
|
-
ref: function ref(
|
4845
|
-
return _this8["inputCzkAmount"] =
|
4825
|
+
ref: function ref(_ref31) {
|
4826
|
+
return _this8["inputCzkAmount"] = _ref31;
|
4846
4827
|
},
|
4847
4828
|
onFocus: function onFocus(e) {
|
4848
4829
|
_this8.inputkey = "inputCzkAmount";
|
@@ -5512,8 +5493,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
5512
5493
|
_this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
|
5513
5494
|
},
|
5514
5495
|
defaultValue: currentMode && currentMode.member && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
|
5515
|
-
ref: function ref(
|
5516
|
-
return _this8["inputJfdxAmount"] =
|
5496
|
+
ref: function ref(_ref32) {
|
5497
|
+
return _this8["inputJfdxAmount"] = _ref32;
|
5517
5498
|
},
|
5518
5499
|
onFocus: function onFocus(e) {
|
5519
5500
|
_this8.inputkey = "inputJfdxAmount";
|