tplus-components-touch 3.54.5 → 3.54.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.
@@ -359,7 +359,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
359
359
  };
360
360
 
361
361
  _this2.payQuick = function () {
362
- var IdbusiType = _this2.context.viewModel.data.IdbusiType;
363
362
  var _this2$state = _this2.state,
364
363
  currentKey = _this2$state.currentKey,
365
364
  returnAmount = _this2$state.returnAmount;
@@ -367,13 +366,19 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
367
366
  var _enumController$getEn = _mutantsUtil.enumController.getEnumOj(),
368
367
  PayStyle = _enumController$getEn.PayStyle;
369
368
 
369
+ var newAmount = _this2.props.amount;
370
+ if (_this2.props.type != 1) {
371
+ var IdbusiType = _this2.context.viewModel.data.IdbusiType;
372
+
373
+ if (IdbusiType === 42) newAmount = -returnAmount;
374
+ }
370
375
  _this2.store.init({
371
376
  context: _this2.props.type == 1 ? null : _this2.context,
372
377
  amounthandler: _this2.props.onHandleAmount,
373
378
  datasource: _this2.props.dataSource.Code_02,
374
379
  storeinfo: _this2.props.storeInfo,
375
380
  bquick: true,
376
- amount: IdbusiType === 42 ? -returnAmount : _this2.props.amount,
381
+ amount: newAmount,
377
382
  type: _this2.props.type,
378
383
  data: _this2.props.dto,
379
384
  payModeKey: currentKey
@@ -438,16 +443,21 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
438
443
  };
439
444
 
440
445
  _this2.payFun = function () {
441
- var IdbusiType = _this2.context.viewModel.data.IdbusiType;
442
446
  var returnAmount = _this2.state.returnAmount;
443
447
 
448
+ var newAmount = _this2.props.amount;
449
+ if (_this2.props.type != 1) {
450
+ var IdbusiType = _this2.context.viewModel.data.IdbusiType;
451
+
452
+ if (IdbusiType === 42) newAmount = -returnAmount;
453
+ }
444
454
  _this2.store.init({
445
455
  context: _this2.props.type == 1 ? null : _this2.context,
446
456
  amounthandler: _this2.props.onHandleAmount,
447
457
  datasource: _this2.props.dataSource.Code_02,
448
458
  storeinfo: _this2.props.storeInfo,
449
459
  bquick: false,
450
- amount: IdbusiType === 42 ? -returnAmount : _this2.props.amount,
460
+ amount: newAmount,
451
461
  type: _this2.props.type,
452
462
  data: _this2.props.dto,
453
463
  creditSalesVoucher: _this2.props.creditSalesVoucher,
@@ -2312,13 +2322,116 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2312
2322
  };
2313
2323
  }();
2314
2324
 
2315
- _this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
2316
- var curmode, promises, _enumController$getEn22, PayStyle;
2325
+ _this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16() {
2326
+ var handleUserInputs = function () {
2327
+ var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(promises) {
2328
+ var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
2329
+
2330
+ return _regenerator2.default.wrap(function _callee15$(_context15) {
2331
+ while (1) {
2332
+ switch (_context15.prev = _context15.next) {
2333
+ case 0:
2334
+ results = [];
2335
+ _context15.prev = 1;
2336
+ _iteratorNormalCompletion2 = true;
2337
+ _didIteratorError2 = false;
2338
+ _iteratorError2 = undefined;
2339
+ _context15.prev = 5;
2340
+ _iterator2 = (0, _getIterator3.default)(promises);
2341
+
2342
+ case 7:
2343
+ if (_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done) {
2344
+ _context15.next = 16;
2345
+ break;
2346
+ }
2347
+
2348
+ p = _step2.value;
2349
+ _context15.next = 11;
2350
+ return p;
2351
+
2352
+ case 11:
2353
+ _result2 = _context15.sent;
2354
+
2355
+ results.push(_result2);
2356
+
2357
+ case 13:
2358
+ _iteratorNormalCompletion2 = true;
2359
+ _context15.next = 7;
2360
+ break;
2361
+
2362
+ case 16:
2363
+ _context15.next = 22;
2364
+ break;
2365
+
2366
+ case 18:
2367
+ _context15.prev = 18;
2368
+ _context15.t0 = _context15['catch'](5);
2369
+ _didIteratorError2 = true;
2370
+ _iteratorError2 = _context15.t0;
2371
+
2372
+ case 22:
2373
+ _context15.prev = 22;
2374
+ _context15.prev = 23;
2375
+
2376
+ if (!_iteratorNormalCompletion2 && _iterator2.return) {
2377
+ _iterator2.return();
2378
+ }
2379
+
2380
+ case 25:
2381
+ _context15.prev = 25;
2382
+
2383
+ if (!_didIteratorError2) {
2384
+ _context15.next = 28;
2385
+ break;
2386
+ }
2387
+
2388
+ throw _iteratorError2;
2389
+
2390
+ case 28:
2391
+ return _context15.finish(25);
2392
+
2393
+ case 29:
2394
+ return _context15.finish(22);
2395
+
2396
+ case 30:
2397
+ _context15.next = 32;
2398
+ return commit(results);
2399
+
2400
+ case 32:
2401
+ _context15.next = 37;
2402
+ break;
2403
+
2404
+ case 34:
2405
+ _context15.prev = 34;
2406
+ _context15.t1 = _context15['catch'](1);
2407
+
2408
+ if (_context15.t1 != "cancelpwd") {
2409
+ _message2.default.error(_context15.t1);
2410
+ setTimeout(function () {
2411
+ that.handleCzk();
2412
+ }, 500);
2413
+ }
2414
+
2415
+ case 37:
2416
+ case 'end':
2417
+ return _context15.stop();
2418
+ }
2419
+ }
2420
+ }, _callee15, this, [[1, 34], [5, 18, 22, 30], [23,, 25, 29]]);
2421
+ }));
2422
+
2423
+ return function handleUserInputs(_x9) {
2424
+ return _ref18.apply(this, arguments);
2425
+ };
2426
+ }();
2427
+
2428
+ var that, curmode, promises, _enumController$getEn22, PayStyle, commit;
2317
2429
 
2318
- return _regenerator2.default.wrap(function _callee14$(_context14) {
2430
+ return _regenerator2.default.wrap(function _callee16$(_context16) {
2319
2431
  while (1) {
2320
- switch (_context14.prev = _context14.next) {
2432
+ switch (_context16.prev = _context16.next) {
2321
2433
  case 0:
2434
+ that = _this2;
2322
2435
  curmode = _this2.store.paymode.currentMode;
2323
2436
  promises = [];
2324
2437
 
@@ -2338,12 +2451,69 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2338
2451
  }
2339
2452
  }
2340
2453
 
2341
- case 3:
2454
+ commit = function () {
2455
+ var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14(values) {
2456
+ var result;
2457
+ return _regenerator2.default.wrap(function _callee14$(_context14) {
2458
+ while (1) {
2459
+ switch (_context14.prev = _context14.next) {
2460
+ case 0:
2461
+ if (!(values.length > 0)) {
2462
+ _context14.next = 6;
2463
+ break;
2464
+ }
2465
+
2466
+ _context14.next = 3;
2467
+ return that.store.validePwd(values[0]);
2468
+
2469
+ case 3:
2470
+ _context14.t0 = _context14.sent;
2471
+ _context14.next = 7;
2472
+ break;
2473
+
2474
+ case 6:
2475
+ _context14.t0 = "";
2476
+
2477
+ case 7:
2478
+ result = _context14.t0;
2479
+
2480
+ if (!(result == "")) {
2481
+ _context14.next = 13;
2482
+ break;
2483
+ }
2484
+
2485
+ //成功
2486
+ //返回
2487
+ that.setCurrentFocusAndAddPay(curmode.paymentType, null, curmode.paymethodId);
2488
+ _promise2.default.resolve();
2489
+ _context14.next = 15;
2490
+ break;
2491
+
2492
+ case 13:
2493
+ _context14.next = 15;
2494
+ return _promise2.default.reject(result);
2495
+
2496
+ case 15:
2497
+ case 'end':
2498
+ return _context14.stop();
2499
+ }
2500
+ }
2501
+ }, _callee14, _this3);
2502
+ }));
2503
+
2504
+ return function commit(_x8) {
2505
+ return _ref17.apply(this, arguments);
2506
+ };
2507
+ }();
2508
+
2509
+ handleUserInputs(promises);
2510
+
2511
+ case 6:
2342
2512
  case 'end':
2343
- return _context14.stop();
2513
+ return _context16.stop();
2344
2514
  }
2345
2515
  }
2346
- }, _callee14, _this3);
2516
+ }, _callee16, _this3);
2347
2517
  }));
2348
2518
 
2349
2519
  _this2.fKeyboardOnOk = function (paymethodeId) {
@@ -2383,12 +2553,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2383
2553
  };
2384
2554
 
2385
2555
  _this2.handleBtnDebounced = function () {
2386
- var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(type, bquick) {
2556
+ var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee17(type, bquick) {
2387
2557
  var IdbusiType, CustomerPhone, DistributionMode, Address, isEnableSerialNumber, resultObj, title, productStore, checkResult, _enumController$getEn23, PayStyle, _this2$store7, paymode, brefund, boriginReturn, newStyle, status;
2388
2558
 
2389
- return _regenerator2.default.wrap(function _callee15$(_context15) {
2559
+ return _regenerator2.default.wrap(function _callee17$(_context17) {
2390
2560
  while (1) {
2391
- switch (_context15.prev = _context15.next) {
2561
+ switch (_context17.prev = _context17.next) {
2392
2562
  case 0:
2393
2563
  IdbusiType = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.IdbusiType;
2394
2564
  CustomerPhone = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.CustomerPhone;
@@ -2397,7 +2567,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2397
2567
  //预订时,若没录入买家手机号,或配送方式为快递时,弹框买家信息确认框
2398
2568
 
2399
2569
  if (!(IdbusiType == 38)) {
2400
- _context15.next = 14;
2570
+ _context17.next = 14;
2401
2571
  break;
2402
2572
  }
2403
2573
 
@@ -2408,11 +2578,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2408
2578
  });
2409
2579
 
2410
2580
  if (!(isEnableSerialNumber && resultObj && (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE'))) {
2411
- _context15.next = 9;
2581
+ _context17.next = 9;
2412
2582
  break;
2413
2583
  }
2414
2584
 
2415
- return _context15.abrupt('return', _message2.default.error('启用了序列号管理和批号/有效期管理的商品,不支持快递和同城配送'));
2585
+ return _context17.abrupt('return', _message2.default.error('启用了序列号管理和批号/有效期管理的商品,不支持快递和同城配送'));
2416
2586
 
2417
2587
  case 9:
2418
2588
 
@@ -2421,12 +2591,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2421
2591
  }
2422
2592
 
2423
2593
  if (!(!CustomerPhone && !_this2.context.viewModel.data.Member.Mobilephone || DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE')) {
2424
- _context15.next = 14;
2594
+ _context17.next = 14;
2425
2595
  break;
2426
2596
  }
2427
2597
 
2428
2598
  title = (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && Address ? '收货地址确认' : '收货人';
2429
- _context15.next = 14;
2599
+ _context17.next = 14;
2430
2600
  return _this2.props.openBuyerModal(title);
2431
2601
 
2432
2602
  case 14:
@@ -2434,18 +2604,18 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2434
2604
  // 极速模式错误校验
2435
2605
 
2436
2606
  productStore = _mutantsMicrofx.stores.productStore;
2437
- _context15.next = 17;
2607
+ _context17.next = 17;
2438
2608
  return productStore.checkShouldSettlement();
2439
2609
 
2440
2610
  case 17:
2441
- checkResult = _context15.sent;
2611
+ checkResult = _context17.sent;
2442
2612
 
2443
2613
  if (checkResult) {
2444
- _context15.next = 20;
2614
+ _context17.next = 20;
2445
2615
  break;
2446
2616
  }
2447
2617
 
2448
- return _context15.abrupt('return', false);
2618
+ return _context17.abrupt('return', false);
2449
2619
 
2450
2620
  case 20:
2451
2621
 
@@ -2456,11 +2626,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2456
2626
  _this2$store7 = _this2.store, paymode = _this2$store7.paymode, brefund = _this2$store7.brefund, boriginReturn = _this2$store7.boriginReturn, newStyle = _this2$store7.newStyle;
2457
2627
 
2458
2628
  if (!(bquick && !_mutantsMicrofx.stores.offlineSys.shouldSettlement(type))) {
2459
- _context15.next = 25;
2629
+ _context17.next = 25;
2460
2630
  break;
2461
2631
  }
2462
2632
 
2463
- return _context15.abrupt('return', false);
2633
+ return _context17.abrupt('return', false);
2464
2634
 
2465
2635
  case 25:
2466
2636
  status = false;
@@ -2475,11 +2645,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2475
2645
  });
2476
2646
 
2477
2647
  if (!_this2.btndebounced) {
2478
- _context15.next = 30;
2648
+ _context17.next = 30;
2479
2649
  break;
2480
2650
  }
2481
2651
 
2482
- return _context15.abrupt('return');
2652
+ return _context17.abrupt('return');
2483
2653
 
2484
2654
  case 30:
2485
2655
  _this2.btndebounced = (0, _debounce3.default)(function () {
@@ -2500,50 +2670,48 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2500
2670
 
2501
2671
  case 33:
2502
2672
  case 'end':
2503
- return _context15.stop();
2673
+ return _context17.stop();
2504
2674
  }
2505
2675
  }
2506
- }, _callee15, _this3);
2676
+ }, _callee17, _this3);
2507
2677
  }));
2508
2678
 
2509
- return function (_x8, _x9) {
2510
- return _ref17.apply(this, arguments);
2679
+ return function (_x10, _x11) {
2680
+ return _ref19.apply(this, arguments);
2511
2681
  };
2512
2682
  }();
2513
2683
 
2514
2684
  _this2.btnDebounced = function () {
2515
- var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(type, bquick) {
2516
- var _this2$context$viewMo2, IdbusiType, _this2$context$viewMo3, TotalTaxAmount, _this2$context$viewMo4, ArrearsAmount, save, _this2$props3, settlementType, _this2$props3$creditS, creditSalesVoucher, amount, notSelectableVoucherList, returnAmount1, _result2;
2685
+ var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee18(type, bquick) {
2686
+ var _this2$props3, settlementType, _this2$props3$creditS, creditSalesVoucher, amount, notSelectableVoucherList, _this2$context$viewMo2, IdbusiType, _this2$context$viewMo3, TotalTaxAmount, _this2$context$viewMo4, ArrearsAmount, returnAmount1, _result3;
2517
2687
 
2518
- return _regenerator2.default.wrap(function _callee16$(_context16) {
2688
+ return _regenerator2.default.wrap(function _callee18$(_context18) {
2519
2689
  while (1) {
2520
- switch (_context16.prev = _context16.next) {
2690
+ switch (_context18.prev = _context18.next) {
2521
2691
  case 0:
2522
- _this2$context$viewMo2 = _this2.context.viewModel.data, IdbusiType = _this2$context$viewMo2.IdbusiType, _this2$context$viewMo3 = _this2$context$viewMo2.TotalTaxAmount, TotalTaxAmount = _this2$context$viewMo3 === undefined ? 0 : _this2$context$viewMo3, _this2$context$viewMo4 = _this2$context$viewMo2.ArrearsAmount, ArrearsAmount = _this2$context$viewMo4 === undefined ? 0 : _this2$context$viewMo4;
2523
- save = _this2.store.save;
2524
2692
  _this2$props3 = _this2.props, settlementType = _this2$props3.type, _this2$props3$creditS = _this2$props3.creditSalesVoucher, creditSalesVoucher = _this2$props3$creditS === undefined ? [] : _this2$props3$creditS, amount = _this2$props3.amount;
2525
2693
  notSelectableVoucherList = [];
2526
2694
  //赊销-未生成零售结算单的单据不能进行收款
2527
2695
 
2528
2696
  if (!(settlementType == 2)) {
2529
- _context16.next = 11;
2697
+ _context18.next = 9;
2530
2698
  break;
2531
2699
  }
2532
2700
 
2533
2701
  if (!(Number(amount) < 0)) {
2534
- _context16.next = 7;
2702
+ _context18.next = 5;
2535
2703
  break;
2536
2704
  }
2537
2705
 
2538
- return _context16.abrupt('return', _message2.default.warn('所勾选零售单的欠款合计须大于等于0!'));
2706
+ return _context18.abrupt('return', _message2.default.warn('所勾选零售单的欠款合计须大于等于0!'));
2539
2707
 
2540
- case 7:
2708
+ case 5:
2541
2709
  notSelectableVoucherList = creditSalesVoucher.filter(function (o) {
2542
2710
  return o.SettleStatusEnum != 'SETTLED';
2543
2711
  });
2544
2712
 
2545
2713
  if (!(notSelectableVoucherList.length > 0)) {
2546
- _context16.next = 11;
2714
+ _context18.next = 9;
2547
2715
  break;
2548
2716
  }
2549
2717
 
@@ -2572,11 +2740,19 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2572
2740
  )
2573
2741
  )
2574
2742
  });
2575
- return _context16.abrupt('return');
2743
+ return _context18.abrupt('return');
2744
+
2745
+ case 9:
2746
+ if (!(_this2.props.type != 1)) {
2747
+ _context18.next = 28;
2748
+ break;
2749
+ }
2750
+
2751
+ _this2$context$viewMo2 = _this2.context.viewModel.data, IdbusiType = _this2$context$viewMo2.IdbusiType, _this2$context$viewMo3 = _this2$context$viewMo2.TotalTaxAmount, TotalTaxAmount = _this2$context$viewMo3 === undefined ? 0 : _this2$context$viewMo3, _this2$context$viewMo4 = _this2$context$viewMo2.ArrearsAmount, ArrearsAmount = _this2$context$viewMo4 === undefined ? 0 : _this2$context$viewMo4;
2752
+ //赊销原单退货
2576
2753
 
2577
- case 11:
2578
2754
  if (!(IdbusiType === 42)) {
2579
- _context16.next = 25;
2755
+ _context18.next = 25;
2580
2756
  break;
2581
2757
  }
2582
2758
 
@@ -2589,7 +2765,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2589
2765
  //判断欠款金额
2590
2766
 
2591
2767
  if (!(returnAmount1 > 0)) {
2592
- _context16.next = 18;
2768
+ _context18.next = 18;
2593
2769
  break;
2594
2770
  }
2595
2771
 
@@ -2602,18 +2778,18 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2602
2778
  },
2603
2779
  onCancel: function onCancel() {}
2604
2780
  });
2605
- _context16.next = 23;
2781
+ _context18.next = 23;
2606
2782
  break;
2607
2783
 
2608
2784
  case 18:
2609
2785
  returnAmount1 = 0;
2610
- _context16.next = 21;
2786
+ _context18.next = 21;
2611
2787
  return _this2.store.commit(_this2.props.bTest, _this2.context.viewModel.data);
2612
2788
 
2613
2789
  case 21:
2614
- _result2 = _context16.sent;
2790
+ _result3 = _context18.sent;
2615
2791
 
2616
- if (_result2 === true) {
2792
+ if (_result3 === true) {
2617
2793
  //成功
2618
2794
  _this2.settleSuccess('onCreditReturn');
2619
2795
  _promise2.default.resolve();
@@ -2631,28 +2807,35 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2631
2807
  }
2632
2808
 
2633
2809
  case 23:
2634
- _context16.next = 26;
2810
+ _context18.next = 26;
2635
2811
  break;
2636
2812
 
2637
2813
  case 25:
2638
2814
  _this2.handleBtnDebounced(type, bquick);
2639
2815
 
2640
2816
  case 26:
2817
+ _context18.next = 29;
2818
+ break;
2819
+
2820
+ case 28:
2821
+ _this2.handleBtnDebounced(type, bquick);
2822
+
2823
+ case 29:
2641
2824
  case 'end':
2642
- return _context16.stop();
2825
+ return _context18.stop();
2643
2826
  }
2644
2827
  }
2645
- }, _callee16, _this3);
2828
+ }, _callee18, _this3);
2646
2829
  }));
2647
2830
 
2648
- return function (_x10, _x11) {
2649
- return _ref18.apply(this, arguments);
2831
+ return function (_x12, _x13) {
2832
+ return _ref20.apply(this, arguments);
2650
2833
  };
2651
2834
  }();
2652
2835
 
2653
2836
  _this2.onCzkChange = function (v) {
2654
- var _ref19 = _mutantsUtil.platform || {},
2655
- isNewRetailBCPos = _ref19.isNewRetailBCPos;
2837
+ var _ref21 = _mutantsUtil.platform || {},
2838
+ isNewRetailBCPos = _ref21.isNewRetailBCPos;
2656
2839
 
2657
2840
  if (!isNewRetailBCPos) {
2658
2841
  _this2.store.paymode.currentMode.member.setCardNo(v);
@@ -3119,9 +3302,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3119
3302
  return false;
3120
3303
  }
3121
3304
  if (_this2.store.brefund) {
3122
- var _result3 = !(paymode.receivable == 0 && thePaymodes.length > 0);
3123
- console.log("settlement.checkSettleDisabled返回结果:", _result3);
3124
- return _result3;
3305
+ var _result4 = !(paymode.receivable == 0 && thePaymodes.length > 0);
3306
+ console.log("settlement.checkSettleDisabled返回结果:", _result4);
3307
+ return _result4;
3125
3308
  }
3126
3309
  var xj = (0, _find3.default)(thePaymodes, function (mode) {
3127
3310
  return mode.paymentType == PayStyle.xianjin;
@@ -3258,12 +3441,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3258
3441
 
3259
3442
  _this2.hasElectron = hasElectron;
3260
3443
 
3261
- var _ref20 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
3262
- MemberMeStorageCardInputByKeyBoard = _ref20.MemberMeStorageCardInputByKeyBoard,
3263
- ICCardServer = _ref20.ICCardServer,
3264
- ICCardPassword = _ref20.ICCardPassword,
3265
- PreSellOrBook = _ref20.PreSellOrBook,
3266
- PercentageWhenBook = _ref20.PercentageWhenBook;
3444
+ var _ref22 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
3445
+ MemberMeStorageCardInputByKeyBoard = _ref22.MemberMeStorageCardInputByKeyBoard,
3446
+ ICCardServer = _ref22.ICCardServer,
3447
+ ICCardPassword = _ref22.ICCardPassword,
3448
+ PreSellOrBook = _ref22.PreSellOrBook,
3449
+ PercentageWhenBook = _ref22.PercentageWhenBook;
3267
3450
 
3268
3451
  _this2.isStorageCardInputType = MemberMeStorageCardInputByKeyBoard; // 仅储值卡是否禁用键盘输入,'0'为不禁用 '1'为禁用
3269
3452
  _this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
@@ -3272,9 +3455,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3272
3455
  _this2.percentageWhenBook = PercentageWhenBook;
3273
3456
  //移动端环境下,没有读取IC卡的方式。
3274
3457
 
3275
- var _ref21 = _mutantsUtil.platform || {},
3276
- isHorizontalPad = _ref21.isHorizontalPad,
3277
- isHorizontalSunMi = _ref21.isHorizontalSunMi;
3458
+ var _ref23 = _mutantsUtil.platform || {},
3459
+ isHorizontalPad = _ref23.isHorizontalPad,
3460
+ isHorizontalSunMi = _ref23.isHorizontalSunMi;
3278
3461
 
3279
3462
  _this2.isHorizontalPad = !!isHorizontalPad;
3280
3463
  _this2.isHorizontalSunMi = !!isHorizontalSunMi;
@@ -3423,8 +3606,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3423
3606
  }, {
3424
3607
  key: 'isNoProductTip',
3425
3608
  value: function isNoProductTip(nonProductMap) {
3426
- var _ref22 = this.context.viewModel.data || {},
3427
- RetailDetails = _ref22.RetailDetails;
3609
+ var _ref24 = this.context.viewModel.data || {},
3610
+ RetailDetails = _ref24.RetailDetails;
3428
3611
 
3429
3612
  var temphtml = [];
3430
3613
  if ((0, _keys2.default)(nonProductMap).length > 0) {
@@ -3697,11 +3880,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3697
3880
  quantity4 = 0;
3698
3881
  var sumQuantity = 0; //数量总和的值,包括称重的。
3699
3882
 
3700
- var _ref23 = quantityDetail || {},
3701
- _ref23$buyQuantity = _ref23.buyQuantity,
3702
- buyQuantity = _ref23$buyQuantity === undefined ? 0 : _ref23$buyQuantity,
3703
- _ref23$returnQuantity = _ref23.returnQuantity,
3704
- returnQuantity = _ref23$returnQuantity === undefined ? 0 : _ref23$returnQuantity;
3883
+ var _ref25 = quantityDetail || {},
3884
+ _ref25$buyQuantity = _ref25.buyQuantity,
3885
+ buyQuantity = _ref25$buyQuantity === undefined ? 0 : _ref25$buyQuantity,
3886
+ _ref25$returnQuantity = _ref25.returnQuantity,
3887
+ returnQuantity = _ref25$returnQuantity === undefined ? 0 : _ref25$returnQuantity;
3705
3888
 
3706
3889
  var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
3707
3890
  quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
@@ -4589,22 +4772,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4589
4772
  return _this8.czkInput = input;
4590
4773
  },
4591
4774
  onKeyDown: function () {
4592
- var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee17(e) {
4775
+ var _ref26 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee19(e) {
4593
4776
  var time, _paymode;
4594
4777
 
4595
- return _regenerator2.default.wrap(function _callee17$(_context17) {
4778
+ return _regenerator2.default.wrap(function _callee19$(_context19) {
4596
4779
  while (1) {
4597
- switch (_context17.prev = _context17.next) {
4780
+ switch (_context19.prev = _context19.next) {
4598
4781
  case 0:
4599
4782
  if (!(e.keyCode == 13)) {
4600
- _context17.next = 14;
4783
+ _context19.next = 14;
4601
4784
  break;
4602
4785
  }
4603
4786
 
4604
4787
  time = Date.parse(new Date());
4605
4788
 
4606
4789
  if (!(_this8.isStorageCardInputType && time - _this8.keypressStime > 350)) {
4607
- _context17.next = 7;
4790
+ _context19.next = 7;
4608
4791
  break;
4609
4792
  }
4610
4793
 
@@ -4613,11 +4796,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4613
4796
  _this8.setState({
4614
4797
  czkValue: null
4615
4798
  });
4616
- return _context17.abrupt('return');
4799
+ return _context19.abrupt('return');
4617
4800
 
4618
4801
  case 7:
4619
4802
  _this8.keypressStime = null;
4620
- _context17.next = 10;
4803
+ _context19.next = 10;
4621
4804
  return _this8.loadCzk(e.target.value);
4622
4805
 
4623
4806
  case 10:
@@ -4628,7 +4811,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4628
4811
  czkvalue: null
4629
4812
  });
4630
4813
  }
4631
- _context17.next = 15;
4814
+ _context19.next = 15;
4632
4815
  break;
4633
4816
 
4634
4817
  case 14:
@@ -4638,14 +4821,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4638
4821
 
4639
4822
  case 15:
4640
4823
  case 'end':
4641
- return _context17.stop();
4824
+ return _context19.stop();
4642
4825
  }
4643
4826
  }
4644
- }, _callee17, _this8);
4827
+ }, _callee19, _this8);
4645
4828
  }));
4646
4829
 
4647
- return function (_x13) {
4648
- return _ref24.apply(this, arguments);
4830
+ return function (_x15) {
4831
+ return _ref26.apply(this, arguments);
4649
4832
  };
4650
4833
  }(),
4651
4834
  onFocus: function onFocus(e) {
@@ -4702,8 +4885,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4702
4885
  _this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.balance));
4703
4886
  },
4704
4887
  defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance)),
4705
- ref: function ref(_ref25) {
4706
- return _this8["inputCzkAmount"] = _ref25;
4888
+ ref: function ref(_ref27) {
4889
+ return _this8["inputCzkAmount"] = _ref27;
4707
4890
  },
4708
4891
  onFocus: function onFocus(e) {
4709
4892
  _this8.inputkey = "inputCzkAmount";
@@ -4822,8 +5005,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4822
5005
  '\u786E\u5B9A'
4823
5006
  )
4824
5007
  )),
4825
- _react2.default.createElement(_ModifyPass2.default, { changeBtnDisabled: this.changeBtnDisabled, passwordTitle: '\u8BBE\u7F6E\u5BC6\u7801', ref: function ref(_ref26) {
4826
- return _this8.modifyPass = _ref26;
5008
+ _react2.default.createElement(_ModifyPass2.default, { changeBtnDisabled: this.changeBtnDisabled, passwordTitle: '\u8BBE\u7F6E\u5BC6\u7801', ref: function ref(_ref28) {
5009
+ return _this8.modifyPass = _ref28;
4827
5010
  }, cardList: this.store.paymode.currentMode, cancelModal: this.handleSetPwdCancel })
4828
5011
  ),
4829
5012
  _react2.default.createElement(
@@ -5346,8 +5529,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5346
5529
  _this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
5347
5530
  },
5348
5531
  defaultValue: currentMode && currentMode.member && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
5349
- ref: function ref(_ref27) {
5350
- return _this8["inputJfdxAmount"] = _ref27;
5532
+ ref: function ref(_ref29) {
5533
+ return _this8["inputJfdxAmount"] = _ref29;
5351
5534
  },
5352
5535
  onFocus: function onFocus(e) {
5353
5536
  _this8.inputkey = "inputJfdxAmount";