tplus-components-touch 3.33.5 → 3.33.6
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/README.md +16 -16
- package/dist/components/acCitySelect/CitySelect.js +18 -18
- package/dist/components/acCitySelect/CitySelect.js.map +1 -1
- package/dist/components/acCitySelect/CitySelect.less +9 -9
- package/dist/components/acCitySelect/citys.js.map +1 -1
- package/dist/components/acCitySelect/index.js.map +1 -1
- package/dist/components/acCitySelect/provinceData.js +7 -7
- package/dist/components/acCitySelect/provinceData.js.map +1 -1
- package/dist/components/addLog/AddLogProcessor.js +6 -6
- package/dist/components/addLog/AddLogProcessor.js.map +1 -1
- package/dist/components/addLog/OperationLogApi.js +3 -3
- package/dist/components/addLog/OperationLogApi.js.map +1 -1
- package/dist/components/autoComplete/index.js +14 -14
- package/dist/components/autoComplete/index.js.map +1 -1
- package/dist/components/autoComplete/index.less +89 -89
- package/dist/components/autoComplete/option.js.map +1 -1
- package/dist/components/autoCompleteWithKeyboard/index.js +14 -14
- package/dist/components/autoCompleteWithKeyboard/index.js.map +1 -1
- package/dist/components/autoCompleteWithKeyboard/index.less +7 -7
- package/dist/components/billSearch/api.js +29 -29
- package/dist/components/billSearch/api.js.map +1 -1
- package/dist/components/billSearch/index.js +6 -6
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/billSearch/index.less +376 -376
- package/dist/components/cloudPrint/BTPrintFormatUtil.js +17 -17
- package/dist/components/cloudPrint/BTPrintFormatUtil.js.map +1 -1
- package/dist/components/cloudPrint/api.js.map +1 -1
- package/dist/components/cloudPrint/index.js.map +1 -1
- package/dist/components/cloudPrint/printDispatch.js +7 -7
- package/dist/components/cloudPrint/printDispatch.js.map +1 -1
- package/dist/components/commonForm/addressPicker/index.js +7 -7
- package/dist/components/commonForm/addressPicker/index.js.map +1 -1
- package/dist/components/commonForm/addressPicker/style.less +10 -10
- package/dist/components/commonForm/autoComplete/index.js.map +1 -1
- package/dist/components/commonForm/autoComplete/style.less +2 -2
- package/dist/components/commonForm/datePicker/index.js.map +1 -1
- package/dist/components/commonForm/datePicker/style.less +4 -4
- package/dist/components/commonForm/formControl/index.js.map +1 -1
- package/dist/components/commonForm/index.js +4 -4
- package/dist/components/commonForm/index.js.map +1 -1
- package/dist/components/commonForm/inputNumber/index.js.map +1 -1
- package/dist/components/commonForm/inputNumber/style.less +10 -10
- package/dist/components/commonForm/radio/index.js.map +1 -1
- package/dist/components/commonForm/style.less +1 -1
- package/dist/components/deliverySearch/api.js +21 -21
- package/dist/components/deliverySearch/api.js.map +1 -1
- package/dist/components/deliverySearch/index.js +6 -6
- package/dist/components/deliverySearch/index.js.map +1 -1
- package/dist/components/deliverySearch/index.less +553 -553
- package/dist/components/form/index.js.map +1 -1
- package/dist/components/hardwareAPI/index.js.map +1 -1
- package/dist/components/hotKey/config.js +23 -23
- package/dist/components/hotKey/config.js.map +1 -1
- package/dist/components/hotKey/hotKeyModal.js.map +1 -1
- package/dist/components/hotKey/index.js +26 -26
- package/dist/components/hotKey/index.js.map +1 -1
- package/dist/components/hotKey/localConfig.js.map +1 -1
- package/dist/components/hotKey/style.less +96 -96
- package/dist/components/hotKey/utils.js.map +1 -1
- package/dist/components/input/index.js +6 -6
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/input/scanInput.js.map +1 -1
- package/dist/components/input/scanInput.less +27 -27
- package/dist/components/input/style.less +99 -99
- package/dist/components/input/tplusInput/index.js +30 -30
- package/dist/components/input/tplusInput/index.js.map +1 -1
- package/dist/components/input/tplusInput/inputContent.js.map +1 -1
- package/dist/components/input/tplusInput/inputs.js.map +1 -1
- package/dist/components/input/tplusInput/style.less +132 -132
- package/dist/components/input/utils/index.js.map +1 -1
- package/dist/components/inventorySearch/api.js +58 -58
- package/dist/components/inventorySearch/api.js.map +1 -1
- package/dist/components/inventorySearch/index.js +3 -3
- package/dist/components/inventorySearch/index.js.map +1 -1
- package/dist/components/inventorySearch/index.less +119 -119
- package/dist/components/inventorySearch/store.js.map +1 -1
- package/dist/components/inventorySearch/tab.js.map +1 -1
- package/dist/components/keyboard/index.js.map +1 -1
- package/dist/components/keyboard/index.less +469 -469
- package/dist/components/keyboard/letterKeyboard.js +2 -2
- package/dist/components/keyboard/letterKeyboard.js.map +1 -1
- package/dist/components/keyboard/numKeyboard.js +4 -4
- package/dist/components/keyboard/numKeyboard.js.map +1 -1
- package/dist/components/keyboard/numKeyboardScan.js.map +1 -1
- package/dist/components/keyboard/numberButton_input.js +5 -5
- package/dist/components/keyboard/numberButton_input.js.map +1 -1
- package/dist/components/keyboard/numkeyboardPassword.js +4 -4
- package/dist/components/keyboard/numkeyboardPassword.js.map +1 -1
- package/dist/components/keyboard/onlyKeyboard.js +7 -7
- package/dist/components/keyboard/onlyKeyboard.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton.js +2 -2
- package/dist/components/keyboard/onlyLetterButton.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton2.js +2 -2
- package/dist/components/keyboard/onlyLetterButton2.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton2.less +156 -156
- package/dist/components/keyboard/onlyNumberButton.js +2 -2
- package/dist/components/keyboard/onlyNumberButton.js.map +1 -1
- package/dist/components/keyboard/onlyNumberButton2.js +3 -3
- package/dist/components/keyboard/onlyNumberButton2.js.map +1 -1
- package/dist/components/keyboard/textKeyboard.js.map +1 -1
- package/dist/components/layout/hamburger.js.map +1 -1
- package/dist/components/layout/index.js +10 -10
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/layout.js.map +1 -1
- package/dist/components/layout/sider.js +12 -12
- package/dist/components/layout/sider.js.map +1 -1
- package/dist/components/layout/style.less +82 -82
- package/dist/components/loading/index.js +15 -15
- package/dist/components/loading/index.js.map +1 -1
- package/dist/components/loading/loadingContent.js.map +1 -1
- package/dist/components/loading/style.less +72 -72
- package/dist/components/loading/utils.js.map +1 -1
- package/dist/components/message/index.js +8 -8
- package/dist/components/message/index.js.map +1 -1
- package/dist/components/message/index.less +101 -101
- package/dist/components/modal/index.js.map +1 -1
- package/dist/components/modal/index.less +19 -19
- package/dist/components/modalVertical/index.js +7 -7
- package/dist/components/modalVertical/index.js.map +1 -1
- package/dist/components/modalVertical/style.less +60 -60
- package/dist/components/modalWraper/index.js +15 -15
- package/dist/components/modalWraper/index.js.map +1 -1
- package/dist/components/modalWraper/style.less +257 -257
- package/dist/components/modalWraper/utils.js.map +1 -1
- package/dist/components/notification/index.js +4 -4
- package/dist/components/notification/index.js.map +1 -1
- package/dist/components/notification/index.less +51 -51
- package/dist/components/overflowTip/index.js +15 -15
- package/dist/components/overflowTip/index.js.map +1 -1
- package/dist/components/overflowTip/style.less +66 -66
- package/dist/components/page/index.js.map +1 -1
- package/dist/components/page/index.less +21 -21
- package/dist/components/product/detail.js +7 -7
- package/dist/components/product/detail.js.map +1 -1
- package/dist/components/product/getCard.js +5 -5
- package/dist/components/product/getCard.js.map +1 -1
- package/dist/components/product/index.less +128 -128
- package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
- package/dist/components/progressState/ProgressState.js +10 -10
- package/dist/components/progressState/ProgressState.js.map +1 -1
- package/dist/components/progressState/index.js.map +1 -1
- package/dist/components/progressState/style.less +65 -65
- package/dist/components/scan/index.js.map +1 -1
- package/dist/components/scan/index.less +33 -33
- package/dist/components/select/index.js.map +1 -1
- package/dist/components/select/index.less +11 -11
- package/dist/components/settlement/asyncModal.js.map +1 -1
- package/dist/components/settlement/index.js.map +1 -1
- package/dist/components/settlement/moreCzkTable/index.js.map +1 -1
- package/dist/components/settlement/moreCzkTable/style.less +6 -6
- package/dist/components/settlement/prototypeTable/index.js.map +1 -1
- package/dist/components/settlement/prototypeTable/style.less +58 -58
- package/dist/components/settlement/prototypeTable/utils.js.map +1 -1
- package/dist/components/settlement/settlement.js +10 -9
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +1686 -1686
- package/dist/components/settlement/settlementStore.js +60 -54
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/settlement/utils.js.map +1 -1
- package/dist/components/socket/index.js +11 -11
- package/dist/components/socket/index.js.map +1 -1
- package/dist/components/spin/index.js +6 -6
- package/dist/components/spin/index.js.map +1 -1
- package/dist/components/spin/spin-style.less +436 -436
- package/dist/components/test/index.js +3 -3
- package/dist/components/test/index.js.map +1 -1
- package/dist/components/ticon/iconfont/demo_index.html +5248 -5248
- package/dist/components/ticon/iconfont/iconfont.css +895 -895
- package/dist/components/ticon/iconfont/iconfont.json +1549 -1549
- package/dist/components/ticon/iconfont/iconfont.svg +593 -593
- package/dist/components/ticon/index.js.map +1 -1
- package/dist/components/touchScroll/index.js +9 -9
- package/dist/components/touchScroll/index.js.map +1 -1
- package/dist/components/touchTable/AuthProcess.js.map +1 -1
- package/dist/components/touchTable/generateWater.js.map +1 -1
- package/dist/components/touchTable/index.js +9 -9
- package/dist/components/touchTable/index.js.map +1 -1
- package/dist/components/touchTable/index.less +376 -376
- package/dist/components/touchTable/utils.js.map +1 -1
- package/dist/demo/PopOverDemo.js.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/util/tools.js.map +1 -1
- package/locales/zh/tplus-components-touch.json +1 -1
- package/locales/zh-CN/tplus-components-touch.json +1 -1
- package/mocks/memberInfo.json +79 -79
- package/package.json +35 -35
- package/tsconfig.json +26 -26
|
@@ -41,7 +41,7 @@ var _createClass2 = require('babel-runtime/helpers/createClass');
|
|
|
41
41
|
|
|
42
42
|
var _createClass3 = _interopRequireDefault(_createClass2);
|
|
43
43
|
|
|
44
|
-
var _desc, _value, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _desc2, _value2, _class3,
|
|
44
|
+
var _desc, _value, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _desc2, _value2, _class3, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _desc3, _value3, _class5, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20;
|
|
45
45
|
|
|
46
46
|
var _mobx = require('mobx');
|
|
47
47
|
|
|
@@ -466,6 +466,8 @@ var SettlementStore = (_class = function () {
|
|
|
466
466
|
});
|
|
467
467
|
};
|
|
468
468
|
|
|
469
|
+
_initDefineProp(this, 'setVoucherDate', _descriptor5, this);
|
|
470
|
+
|
|
469
471
|
this.checkIntegralExchangeReturn = function (id) {
|
|
470
472
|
return new _promise2.default(function (resolve, reject) {
|
|
471
473
|
(0, _tplusApi.tApi)({ param: { refVoucherId: id } }, 'chanjet.RE.NewPos.GetNewIntegralExchange', false, false, { timeout_skip: true }).then(function (resp) {
|
|
@@ -1500,11 +1502,6 @@ var SettlementStore = (_class = function () {
|
|
|
1500
1502
|
|
|
1501
1503
|
return save;
|
|
1502
1504
|
}()
|
|
1503
|
-
}, {
|
|
1504
|
-
key: 'setVoucherDate',
|
|
1505
|
-
value: function setVoucherDate() {
|
|
1506
|
-
this.dto.VoucherDate = new Date();
|
|
1507
|
-
}
|
|
1508
1505
|
}, {
|
|
1509
1506
|
key: 'setDtoID',
|
|
1510
1507
|
value: function setDtoID(id) {
|
|
@@ -1854,7 +1851,16 @@ var SettlementStore = (_class = function () {
|
|
|
1854
1851
|
}, _callee10, _this16);
|
|
1855
1852
|
}));
|
|
1856
1853
|
}
|
|
1857
|
-
}), _applyDecoratedDescriptor(_class.prototype, 'addDjq', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'addDjq'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeFocusOnly', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeFocusOnly'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeClickFocusOnly', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeClickFocusOnly'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeValue'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'addPayDirectly', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'addPayDirectly'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'addPay', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'addPay'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'delPay', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'delPay'), _class.prototype),
|
|
1854
|
+
}), _applyDecoratedDescriptor(_class.prototype, 'addDjq', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'addDjq'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeFocusOnly', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeFocusOnly'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeClickFocusOnly', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeClickFocusOnly'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeValue'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'addPayDirectly', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'addPayDirectly'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'addPay', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'addPay'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'delPay', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'delPay'), _class.prototype), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, 'setVoucherDate', [_mobx.action], {
|
|
1855
|
+
enumerable: true,
|
|
1856
|
+
initializer: function initializer() {
|
|
1857
|
+
var _this17 = this;
|
|
1858
|
+
|
|
1859
|
+
return function () {
|
|
1860
|
+
_this17.dto.VoucherDate = new Date();
|
|
1861
|
+
};
|
|
1862
|
+
}
|
|
1863
|
+
}), _applyDecoratedDescriptor(_class.prototype, 'setDtoID', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'setDtoID'), _class.prototype)), _class);
|
|
1858
1864
|
exports.default = SettlementStore;
|
|
1859
1865
|
var PayMode = exports.PayMode = (_class3 = function () {
|
|
1860
1866
|
//应收
|
|
@@ -1868,19 +1874,19 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1868
1874
|
this.onlineamount = 0;
|
|
1869
1875
|
this.maxamount = 0;
|
|
1870
1876
|
|
|
1871
|
-
_initDefineProp(this, 'currentFocus',
|
|
1877
|
+
_initDefineProp(this, 'currentFocus', _descriptor6, this);
|
|
1872
1878
|
|
|
1873
|
-
_initDefineProp(this, 'received',
|
|
1879
|
+
_initDefineProp(this, 'received', _descriptor7, this);
|
|
1874
1880
|
|
|
1875
|
-
_initDefineProp(this, 'receivable',
|
|
1881
|
+
_initDefineProp(this, 'receivable', _descriptor8, this);
|
|
1876
1882
|
|
|
1877
|
-
_initDefineProp(this, 'paymodes',
|
|
1883
|
+
_initDefineProp(this, 'paymodes', _descriptor9, this);
|
|
1878
1884
|
|
|
1879
|
-
_initDefineProp(this, 'thePaymodes',
|
|
1885
|
+
_initDefineProp(this, 'thePaymodes', _descriptor10, this);
|
|
1880
1886
|
|
|
1881
|
-
_initDefineProp(this, 'storageCardNo',
|
|
1887
|
+
_initDefineProp(this, 'storageCardNo', _descriptor11, this);
|
|
1882
1888
|
|
|
1883
|
-
_initDefineProp(this, 'balance',
|
|
1889
|
+
_initDefineProp(this, 'balance', _descriptor12, this);
|
|
1884
1890
|
|
|
1885
1891
|
this.currentMode = null;
|
|
1886
1892
|
this.checkList = [];
|
|
@@ -1889,11 +1895,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1889
1895
|
hotKey: "Ctrl+M"
|
|
1890
1896
|
};
|
|
1891
1897
|
|
|
1892
|
-
_initDefineProp(this, 'calcCheckList',
|
|
1898
|
+
_initDefineProp(this, 'calcCheckList', _descriptor13, this);
|
|
1893
1899
|
|
|
1894
|
-
_initDefineProp(this, 'setCouponNum',
|
|
1900
|
+
_initDefineProp(this, 'setCouponNum', _descriptor14, this);
|
|
1895
1901
|
|
|
1896
|
-
_initDefineProp(this, 'addDjqs',
|
|
1902
|
+
_initDefineProp(this, 'addDjqs', _descriptor15, this);
|
|
1897
1903
|
}
|
|
1898
1904
|
// @observable store = null;
|
|
1899
1905
|
|
|
@@ -1952,7 +1958,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1952
1958
|
}, {
|
|
1953
1959
|
key: 'calcDjqCheckValue',
|
|
1954
1960
|
value: function calcDjqCheckValue(q1, dto, params) {
|
|
1955
|
-
var
|
|
1961
|
+
var _this18 = this;
|
|
1956
1962
|
|
|
1957
1963
|
var useLimitPerOrder = (0, _tplusPoslogin.PosInitData)('UseLimitPerOrder');
|
|
1958
1964
|
var qList = (0, _filter3.default)(this.currentMode.djqs, function (djq) {
|
|
@@ -1999,7 +2005,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1999
2005
|
if (!q1.checked) {
|
|
2000
2006
|
this.checkList.forEach(function (ele, i) {
|
|
2001
2007
|
if (ele.id === q1.id) {
|
|
2002
|
-
|
|
2008
|
+
_this18.checkList.splice(i, 1);
|
|
2003
2009
|
}
|
|
2004
2010
|
});
|
|
2005
2011
|
} else {
|
|
@@ -2071,7 +2077,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2071
2077
|
if (result && result.length != 0) {
|
|
2072
2078
|
result.forEach(function (element, index) {
|
|
2073
2079
|
var djq1 = false;
|
|
2074
|
-
|
|
2080
|
+
_this18.currentMode.djqs.forEach(function (djq) {
|
|
2075
2081
|
if (element.id === djq.id) {
|
|
2076
2082
|
djq1 = true;
|
|
2077
2083
|
}
|
|
@@ -2116,10 +2122,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2116
2122
|
// couponCategoryEnum: tieredAmountResult.couponCategoryEnum,
|
|
2117
2123
|
// id
|
|
2118
2124
|
// })
|
|
2119
|
-
|
|
2125
|
+
_this18.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
|
|
2120
2126
|
djq1 = false;
|
|
2121
2127
|
} else {
|
|
2122
|
-
|
|
2128
|
+
_this18.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
|
|
2123
2129
|
// this.currentMode.djqs[0].couponCategoryEnum = 'couponCategoryEnum';
|
|
2124
2130
|
// djq1.couponCategoryEnum = element.tieredAmountResult.couponCategoryEnum
|
|
2125
2131
|
}
|
|
@@ -2224,7 +2230,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2224
2230
|
key: 'setPaymodes',
|
|
2225
2231
|
value: function () {
|
|
2226
2232
|
var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(type, isIntegralExchange) {
|
|
2227
|
-
var
|
|
2233
|
+
var _this19 = this;
|
|
2228
2234
|
|
|
2229
2235
|
var _enumController$getEn20, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
|
|
2230
2236
|
|
|
@@ -2264,7 +2270,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2264
2270
|
calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88"
|
|
2265
2271
|
});
|
|
2266
2272
|
});
|
|
2267
|
-
|
|
2273
|
+
_this19.paymodes = paymodes;
|
|
2268
2274
|
//modes.QuickSettleStyles
|
|
2269
2275
|
});
|
|
2270
2276
|
}
|
|
@@ -2295,57 +2301,57 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2295
2301
|
}
|
|
2296
2302
|
}]);
|
|
2297
2303
|
return PayMode;
|
|
2298
|
-
}(), (
|
|
2304
|
+
}(), (_descriptor6 = _applyDecoratedDescriptor(_class3.prototype, 'currentFocus', [_mobx.observable], {
|
|
2299
2305
|
enumerable: true,
|
|
2300
2306
|
initializer: function initializer() {
|
|
2301
2307
|
return "";
|
|
2302
2308
|
}
|
|
2303
|
-
}),
|
|
2309
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class3.prototype, 'received', [_mobx.observable], {
|
|
2304
2310
|
enumerable: true,
|
|
2305
2311
|
initializer: function initializer() {
|
|
2306
2312
|
return 0;
|
|
2307
2313
|
}
|
|
2308
|
-
}),
|
|
2314
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class3.prototype, 'receivable', [_mobx.observable], {
|
|
2309
2315
|
enumerable: true,
|
|
2310
2316
|
initializer: function initializer() {
|
|
2311
2317
|
return 0;
|
|
2312
2318
|
}
|
|
2313
|
-
}),
|
|
2319
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, 'paymodes', [_mobx.observable], {
|
|
2314
2320
|
enumerable: true,
|
|
2315
2321
|
initializer: function initializer() {
|
|
2316
2322
|
return [];
|
|
2317
2323
|
}
|
|
2318
|
-
}),
|
|
2324
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'thePaymodes', [_mobx.observable], {
|
|
2319
2325
|
enumerable: true,
|
|
2320
2326
|
initializer: function initializer() {
|
|
2321
2327
|
return [];
|
|
2322
2328
|
}
|
|
2323
|
-
}),
|
|
2329
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class3.prototype, 'storageCardNo', [_mobx.observable], {
|
|
2324
2330
|
enumerable: true,
|
|
2325
2331
|
initializer: function initializer() {
|
|
2326
2332
|
return null;
|
|
2327
2333
|
}
|
|
2328
|
-
}),
|
|
2334
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class3.prototype, 'balance', [_mobx.observable], {
|
|
2329
2335
|
enumerable: true,
|
|
2330
2336
|
initializer: function initializer() {
|
|
2331
2337
|
return null;
|
|
2332
2338
|
}
|
|
2333
|
-
}), _applyDecoratedDescriptor(_class3.prototype, 'clean', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'clean'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'clear', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'clear'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'calcReserved', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcReserved'), _class3.prototype),
|
|
2339
|
+
}), _applyDecoratedDescriptor(_class3.prototype, 'clean', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'clean'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'clear', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'clear'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'calcReserved', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcReserved'), _class3.prototype), _descriptor13 = _applyDecoratedDescriptor(_class3.prototype, 'calcCheckList', [_mobx.action], {
|
|
2334
2340
|
enumerable: true,
|
|
2335
2341
|
initializer: function initializer() {
|
|
2336
|
-
var
|
|
2342
|
+
var _this20 = this;
|
|
2337
2343
|
|
|
2338
2344
|
return function () {
|
|
2339
|
-
|
|
2345
|
+
_this20.checkList = [];
|
|
2340
2346
|
};
|
|
2341
2347
|
}
|
|
2342
|
-
}), _applyDecoratedDescriptor(_class3.prototype, 'updateMemberStorageCardNo', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'updateMemberStorageCardNo'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'updateCardInfo', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'updateCardInfo'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqCheckValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqCheckValue'), _class3.prototype),
|
|
2348
|
+
}), _applyDecoratedDescriptor(_class3.prototype, 'updateMemberStorageCardNo', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'updateMemberStorageCardNo'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'updateCardInfo', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'updateCardInfo'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqCheckValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqCheckValue'), _class3.prototype), _descriptor14 = _applyDecoratedDescriptor(_class3.prototype, 'setCouponNum', [_mobx.action], {
|
|
2343
2349
|
enumerable: true,
|
|
2344
2350
|
initializer: function initializer() {
|
|
2345
|
-
var
|
|
2351
|
+
var _this21 = this;
|
|
2346
2352
|
|
|
2347
2353
|
return function (id, couponNum, promoMethodEnum, nominalAmount, promoDiscount) {
|
|
2348
|
-
|
|
2354
|
+
_this21.currentMode.djqs.forEach(function (ele) {
|
|
2349
2355
|
if (ele.id === id) {
|
|
2350
2356
|
promoMethodEnum == "CASH_COUPON" ? ele.amount = nominalAmount : ele.amount = promoDiscount;
|
|
2351
2357
|
ele.couponCategoryEnum = couponNum;
|
|
@@ -2355,10 +2361,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2355
2361
|
});
|
|
2356
2362
|
};
|
|
2357
2363
|
}
|
|
2358
|
-
}),
|
|
2364
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
|
|
2359
2365
|
enumerable: true,
|
|
2360
2366
|
initializer: function initializer() {
|
|
2361
|
-
var
|
|
2367
|
+
var _this22 = this;
|
|
2362
2368
|
|
|
2363
2369
|
return function (promoCouponCode, name, IsEnable, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id) {
|
|
2364
2370
|
var djq = {
|
|
@@ -2380,25 +2386,25 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2380
2386
|
couponCategoryEnum: couponCategoryEnum,
|
|
2381
2387
|
id: id
|
|
2382
2388
|
};
|
|
2383
|
-
|
|
2389
|
+
_this22.currentMode.djqs.push(djq);
|
|
2384
2390
|
};
|
|
2385
2391
|
}
|
|
2386
2392
|
}), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqValue'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'reCalculationDjqs', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'reCalculationDjqs'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'clearDjqs', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'clearDjqs'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'setCurrentModeValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'setCurrentModeValue'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'calcMemberBalance', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcMemberBalance'), _class3.prototype)), _class3);
|
|
2387
2393
|
var Member = exports.Member = (_class5 = function () {
|
|
2388
2394
|
function Member(m) {
|
|
2389
|
-
var
|
|
2395
|
+
var _this23 = this;
|
|
2390
2396
|
|
|
2391
2397
|
(0, _classCallCheck3.default)(this, Member);
|
|
2392
2398
|
|
|
2393
|
-
_initDefineProp(this, 'cardNo',
|
|
2399
|
+
_initDefineProp(this, 'cardNo', _descriptor16, this);
|
|
2394
2400
|
|
|
2395
|
-
_initDefineProp(this, 'balance',
|
|
2401
|
+
_initDefineProp(this, 'balance', _descriptor17, this);
|
|
2396
2402
|
|
|
2397
|
-
_initDefineProp(this, 'exchangable',
|
|
2403
|
+
_initDefineProp(this, 'exchangable', _descriptor18, this);
|
|
2398
2404
|
|
|
2399
|
-
_initDefineProp(this, 'meStorageCardId',
|
|
2405
|
+
_initDefineProp(this, 'meStorageCardId', _descriptor19, this);
|
|
2400
2406
|
|
|
2401
|
-
_initDefineProp(this, 'storageCardNo',
|
|
2407
|
+
_initDefineProp(this, 'storageCardNo', _descriptor20, this);
|
|
2402
2408
|
|
|
2403
2409
|
if (m) {
|
|
2404
2410
|
this.id = m.ID;
|
|
@@ -2413,11 +2419,11 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2413
2419
|
isNewRetailBCPos = _ref26.isNewRetailBCPos;
|
|
2414
2420
|
|
|
2415
2421
|
(0, _mobx.runInAction)(function () {
|
|
2416
|
-
|
|
2422
|
+
_this23.cardNo = m.CardCode;
|
|
2417
2423
|
if (index >= 0) {
|
|
2418
|
-
|
|
2424
|
+
_this23.balance = parseFloat(m.DynamicPropertyValues[index]);
|
|
2419
2425
|
} else {
|
|
2420
|
-
|
|
2426
|
+
_this23.balance = _this23.rawbalance;
|
|
2421
2427
|
}
|
|
2422
2428
|
});
|
|
2423
2429
|
this.needPwd = m.MemberType ? m.MemberType.IsNeedPwd : false;
|
|
@@ -2439,19 +2445,19 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2439
2445
|
}
|
|
2440
2446
|
}]);
|
|
2441
2447
|
return Member;
|
|
2442
|
-
}(), (
|
|
2448
|
+
}(), (_descriptor16 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
|
|
2443
2449
|
enumerable: true,
|
|
2444
2450
|
initializer: null
|
|
2445
|
-
}),
|
|
2451
|
+
}), _descriptor17 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
|
|
2446
2452
|
enumerable: true,
|
|
2447
2453
|
initializer: null
|
|
2448
|
-
}),
|
|
2454
|
+
}), _descriptor18 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
|
|
2449
2455
|
enumerable: true,
|
|
2450
2456
|
initializer: null
|
|
2451
|
-
}),
|
|
2457
|
+
}), _descriptor19 = _applyDecoratedDescriptor(_class5.prototype, 'meStorageCardId', [_mobx.observable], {
|
|
2452
2458
|
enumerable: true,
|
|
2453
2459
|
initializer: null
|
|
2454
|
-
}),
|
|
2460
|
+
}), _descriptor20 = _applyDecoratedDescriptor(_class5.prototype, 'storageCardNo', [_mobx.observable], {
|
|
2455
2461
|
enumerable: true,
|
|
2456
2462
|
initializer: null
|
|
2457
2463
|
}), _applyDecoratedDescriptor(_class5.prototype, 'setExchangable', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class5.prototype, 'setExchangable'), _class5.prototype), _applyDecoratedDescriptor(_class5.prototype, 'setCardNo', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class5.prototype, 'setCardNo'), _class5.prototype)), _class5);
|