tplus-components-touch 3.36.2 → 3.36.3

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.
@@ -21,5 +21,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
21
21
  exports.default = _settlement2.default;
22
22
 
23
23
 
24
- (0, _mutantsMicrofx.registerStores)({ settlementStore: new _settlementStore2.default() });
24
+ (0, _mutantsMicrofx.registerStores)({ settlementVoucherStore: new _settlementStore2.default(), settlementMemberStore: new _settlementStore2.default() });
25
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["tplus-components-touch/components/settlement/index.js"],"names":["Settlement","settlementStore","SettlementStore"],"mappings":";;;;;;AAAA;;AACA;;;;AACA;;;;AACA;;;;kBAEeA,oB;;;AAEf,oCAAe,EAAEC,iBAAiB,IAAIC,yBAAJ,EAAnB,EAAf","file":"index.js","sourcesContent":["import { registerStores } from 'mutants-microfx';\r\nimport Settlement from './settlement';\r\nimport SettlementStore from './settlementStore';\r\nimport './settlement.less';\r\n\r\nexport default Settlement;\r\n\r\nregisterStores({ settlementStore: new SettlementStore() })"]}
1
+ {"version":3,"sources":["tplus-components-touch/components/settlement/index.js"],"names":["Settlement","settlementVoucherStore","SettlementStore","settlementMemberStore"],"mappings":";;;;;;AAAA;;AACA;;;;AACA;;;;AACA;;;;kBAEeA,oB;;;AAEf,oCAAe,EAAEC,wBAAwB,IAAIC,yBAAJ,EAA1B,EAAiDC,uBAAuB,IAAID,yBAAJ,EAAxE,EAAf","file":"index.js","sourcesContent":["import { registerStores } from 'mutants-microfx';\r\nimport Settlement from './settlement';\r\nimport SettlementStore from './settlementStore';\r\nimport './settlement.less';\r\n\r\nexport default Settlement;\r\n\r\nregisterStores({ settlementVoucherStore: new SettlementStore(), settlementMemberStore: new SettlementStore() })"]}
@@ -217,7 +217,6 @@ var hasElectron = _mutantsMicrofx.env.platform === _mutantsMicrofx.env.constant.
217
217
  var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_React$Component) {
218
218
  (0, _inherits3.default)(Settlement, _React$Component);
219
219
 
220
- // 复核结算方式快捷键列表
221
220
  function Settlement(props) {
222
221
  var _this3 = this;
223
222
 
@@ -259,14 +258,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
259
258
  storageValue: '0.00',
260
259
  czkValue: null,
261
260
  isInputMember: false,
262
- selectedRowIndex: 0 };
261
+ selectedRowIndex: 0
262
+ // 复核结算方式快捷键列表
263
+ };
263
264
  _this2.compoundHotkeysList = (window.$.operationControl[5] ? window.$.operationControl[5].control || [] : []).map(function (key) {
264
265
  return key.toLocaleUpperCase();
265
266
  });
266
267
  _this2.hotkeydebounced = null;
267
268
  _this2.hotkeydebouncedPayMode = "";
268
269
  _this2.currentInput = null;
269
- _this2.store = _mutantsMicrofx.stores.settlementStore;
270
270
 
271
271
  _this2.resizeSettlementToolBtns = function () {
272
272
  var newStyle = _this2.store.newStyle;
@@ -3256,6 +3256,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3256
3256
  _this2.handleReadICard = _this2.handleReadICard.bind(_this2);
3257
3257
  _this2.setTimer = null;
3258
3258
  _this2.keypressStime = null;
3259
+ _this2.store = !(props.type == 1) ? _mutantsMicrofx.stores.settlementVoucherStore : _mutantsMicrofx.stores.settlementMemberStore;
3259
3260
  return _this2;
3260
3261
  }
3261
3262