tplus-components-touch 3.54.9 → 3.54.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -2319,7 +2319,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2319
2319
  }();
2320
2320
 
2321
2321
  _this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16() {
2322
- var that, curmode, promises, _enumController$getEn22, _PayStyle, handleUserInputs, _commit;
2322
+ var that, curmode, promises, _enumController$getEn22, PayStyle, pwdStatus, handleUserInputs, _commit;
2323
2323
 
2324
2324
  return _regenerator2.default.wrap(function _callee16$(_context16) {
2325
2325
  while (1) {
@@ -2328,11 +2328,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2328
2328
  that = _this2;
2329
2329
  curmode = _this2.store.paymode.currentMode;
2330
2330
  promises = [];
2331
+ _enumController$getEn22 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn22.PayStyle;
2331
2332
 
2332
2333
  if (curmode.value > 0) {
2333
- _enumController$getEn22 = _mutantsUtil.enumController.getEnumOj(), _PayStyle = _enumController$getEn22.PayStyle;
2334
-
2335
- if (curmode.paymentType === _PayStyle.hyczk) {
2334
+ if (curmode.paymentType === PayStyle.hyczk) {
2336
2335
  if (curmode.cardTypeEnum === 'BALANCE_CARD') {
2337
2336
  !curmode.freePaymentPasswordStore && _this2.setState({
2338
2337
  confirmStatus: true
@@ -2345,7 +2344,19 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2345
2344
  }
2346
2345
  }
2347
2346
 
2348
- if (curmode.paymentType !== PayStyle.hyczk || curmode.freePaymentPasswordStore || !curmode.isNeedPassword) {
2347
+ pwdStatus = true;
2348
+
2349
+ if (curmode.cardTypeEnum === 'BALANCE_CARD') {
2350
+ if (!curmode.freePaymentPasswordStore) {
2351
+ pwdStatus = false;
2352
+ }
2353
+ } else {
2354
+ if (curmode.isNeedPassword) {
2355
+ pwdStatus = false;
2356
+ }
2357
+ }
2358
+
2359
+ if (curmode.paymentType !== PayStyle.hyczk || pwdStatus) {
2349
2360
  handleUserInputs = function () {
2350
2361
  var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(promises) {
2351
2362
  var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
@@ -2506,7 +2517,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2506
2517
  handleUserInputs(promises);
2507
2518
  }
2508
2519
 
2509
- case 5:
2520
+ case 8:
2510
2521
  case 'end':
2511
2522
  return _context16.stop();
2512
2523
  }
@@ -2715,27 +2726,17 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2715
2726
 
2716
2727
  _modalWraper2.default.confirm({
2717
2728
  className: 'not-selectable-voucher',
2718
- title: '提示',
2719
- icon: false,
2729
+ title: '以下零售单尚未生成零售结算单,不能进行收款',
2720
2730
  content: _react2.default.createElement(
2721
- 'div',
2731
+ 'ul',
2722
2732
  null,
2723
- _react2.default.createElement(
2724
- 'div',
2725
- { className: 'content-title' },
2726
- '\u4EE5\u4E0B\u96F6\u552E\u5355\u5C1A\u672A\u751F\u6210\u96F6\u552E\u7ED3\u7B97\u5355\uFF0C\u4E0D\u80FD\u8FDB\u884C\u6536\u6B3E'
2727
- ),
2728
- _react2.default.createElement(
2729
- 'ul',
2730
- null,
2731
- notSelectableVoucherList.map(function (o) {
2732
- return _react2.default.createElement(
2733
- 'li',
2734
- null,
2735
- o.Code
2736
- );
2737
- })
2738
- )
2733
+ notSelectableVoucherList.map(function (o) {
2734
+ return _react2.default.createElement(
2735
+ 'li',
2736
+ null,
2737
+ o.Code
2738
+ );
2739
+ })
2739
2740
  )
2740
2741
  });
2741
2742
  return _context18.abrupt('return');