tplus-components-touch 3.33.5 → 3.33.9

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.
@@ -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, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _desc3, _value3, _class5, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19;
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
 
@@ -168,6 +168,7 @@ var SettlementStore = (_class = function () {
168
168
  (0, _classCallCheck3.default)(this, SettlementStore);
169
169
  this.paymode = null;
170
170
  this.dto = null;
171
+ this.dtoParams = null;
171
172
  this.member = null;
172
173
  this.brefund = false;
173
174
  this.bquick = false;
@@ -466,6 +467,8 @@ var SettlementStore = (_class = function () {
466
467
  });
467
468
  };
468
469
 
470
+ _initDefineProp(this, 'setVoucherDate', _descriptor5, this);
471
+
469
472
  this.checkIntegralExchangeReturn = function (id) {
470
473
  return new _promise2.default(function (resolve, reject) {
471
474
  (0, _tplusApi.tApi)({ param: { refVoucherId: id } }, 'chanjet.RE.NewPos.GetNewIntegralExchange', false, false, { timeout_skip: true }).then(function (resp) {
@@ -601,7 +604,8 @@ var SettlementStore = (_class = function () {
601
604
  authCode: detail.PaymentCode,
602
605
  steadCashIntegral: detail.SteadCashIntegral,
603
606
  overchargesAmount: detail.OverchargesAmount,
604
- boriginReturn: true
607
+ boriginReturn: true,
608
+ thirdPaymentReturnInfo: detail.ThirdPaymentReturnInfo
605
609
  });
606
610
  _this5.paymode.currentMode = newmode;
607
611
  if (themode.paymentType == PayStyle.djq) {
@@ -948,6 +952,7 @@ var SettlementStore = (_class = function () {
948
952
  name: themode.name,
949
953
  exchangeRate: themode.exchangeRate,
950
954
  calDirection: themode.calDirection,
955
+ thridPayment: themode.thridPayment,
951
956
  value: value,
952
957
  value2: (0, _utils.getFixedNumber)(themode.calDirection == "88" ? value / themode.exchangeRate : value * themode.exchangeRate),
953
958
  value3: value,
@@ -976,7 +981,7 @@ var SettlementStore = (_class = function () {
976
981
  if (type == PayStyle.hyczk || type == PayStyle.jfdx || type == PayStyle.djq) {
977
982
  this.setMaxAmount(type, mode);
978
983
  }
979
- console.log(mode);
984
+ console.log('\u5F53\u524D\u64CD\u4F5C\u7ED3\u7B97\u65B9\u5F0F\u4FE1\u606F:' + mode);
980
985
  return mode;
981
986
  }
982
987
  }, {
@@ -1013,15 +1018,6 @@ var SettlementStore = (_class = function () {
1013
1018
  key: 'changeFocusOnly',
1014
1019
  value: function changeFocusOnly(type) {
1015
1020
  this.paymode.currentFocus = type;
1016
- // 获取焦点时带入剩余的值
1017
- // let mode=_find(this.paymode.thePaymodes,{'paymentType':type});
1018
- // if(mode && this.isIntegralExchange){
1019
- // const shouldSetValue =getFixedNumber(parseFloat(this.paymode.receivable) + parseFloat(mode.value));
1020
- // mode.value = shouldSetValue;
1021
- // mode.value2 = getFixedNumber(mode.calDirection=="88"?shouldSetValue / mode.exchangeRate:(shouldSetValue * mode.exchangeRate));
1022
- // mode.value3 = shouldSetValue;
1023
- // this.paymode.calcReserved();
1024
- // }
1025
1021
  }
1026
1022
  }, {
1027
1023
  key: 'changeClickFocusOnly',
@@ -1082,6 +1078,12 @@ var SettlementStore = (_class = function () {
1082
1078
  value: function addPay(type, isQuick) {
1083
1079
  var _enumController$getEn12 = _mutantsUtil.enumController.getEnumOj(),
1084
1080
  PayStyle = _enumController$getEn12.PayStyle;
1081
+ // const hasThirdPay = this.paymode.thePaymodes.findIndex(v => !!v.thridPayment);
1082
+ // if (hasThirdPay > -1) {
1083
+ // Message.warn('二开支付目前仅支持单一结算。');
1084
+ // return;
1085
+ // }
1086
+
1085
1087
 
1086
1088
  var pos = this.paymode.thePaymodes.length;
1087
1089
  if (type == PayStyle.hyczk) {
@@ -1090,8 +1092,6 @@ var SettlementStore = (_class = function () {
1090
1092
  });
1091
1093
  pos = index == -1 ? pos : index + 1;
1092
1094
  }
1093
- // this.paymode.thePaymodes.push(this.genNewMode(type) );
1094
-
1095
1095
  this.paymode.thePaymodes.splice(pos, 0, this.genNewMode(type, this.newStyle && type == PayStyle.hyczk, undefined, isQuick));
1096
1096
  this.paymode.calcReserved();
1097
1097
  }
@@ -1154,7 +1154,7 @@ var SettlementStore = (_class = function () {
1154
1154
  key: 'commit',
1155
1155
  value: function () {
1156
1156
  var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4(bTest) {
1157
- var _ref11, isNewRetailBCPos, ret, _ref12, _ref12$data, code, returnMsg, state;
1157
+ var ret, _ref11, _ref11$data, code, returnMsg, state, _ret;
1158
1158
 
1159
1159
  return _regenerator2.default.wrap(function _callee4$(_context4) {
1160
1160
  while (1) {
@@ -1170,72 +1170,71 @@ var SettlementStore = (_class = function () {
1170
1170
  return _context4.abrupt('return', _promise2.default.resolve(true));
1171
1171
 
1172
1172
  case 3:
1173
- _ref11 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref11.isNewRetailBCPos;
1174
- _context4.prev = 4;
1173
+ _context4.prev = 3;
1175
1174
 
1176
1175
  if (!(this.type == 1)) {
1177
- _context4.next = 24;
1176
+ _context4.next = 23;
1178
1177
  break;
1179
1178
  }
1180
1179
 
1181
- _context4.next = 8;
1180
+ _context4.next = 7;
1182
1181
  return this.findStorageBillValidate();
1183
1182
 
1184
- case 8:
1183
+ case 7:
1185
1184
  ret = _context4.sent;
1186
- _ref12 = ret || {}, _ref12$data = _ref12.data;
1187
- _ref12$data = _ref12$data === undefined ? {} : _ref12$data;
1188
- code = _ref12$data.code, returnMsg = _ref12$data.returnMsg;
1185
+ _ref11 = ret || {}, _ref11$data = _ref11.data;
1186
+ _ref11$data = _ref11$data === undefined ? {} : _ref11$data;
1187
+ code = _ref11$data.code, returnMsg = _ref11$data.returnMsg;
1189
1188
 
1190
1189
  if (!(code && code == 10001)) {
1191
- _context4.next = 20;
1190
+ _context4.next = 19;
1192
1191
  break;
1193
1192
  }
1194
1193
 
1195
- _context4.next = 15;
1194
+ _context4.next = 14;
1196
1195
  return this.repeatStorageModal(returnMsg);
1197
1196
 
1198
- case 15:
1197
+ case 14:
1199
1198
  state = _context4.sent;
1200
1199
 
1201
1200
  if (!(state === false)) {
1202
- _context4.next = 18;
1201
+ _context4.next = 17;
1203
1202
  break;
1204
1203
  }
1205
1204
 
1206
1205
  return _context4.abrupt('return', _promise2.default.resolve(false));
1207
1206
 
1208
- case 18:
1209
- _context4.next = 22;
1207
+ case 17:
1208
+ _context4.next = 21;
1210
1209
  break;
1211
1210
 
1212
- case 20:
1213
- _context4.next = 22;
1211
+ case 19:
1212
+ _context4.next = 21;
1214
1213
  return this.saveMember();
1215
1214
 
1216
- case 22:
1215
+ case 21:
1217
1216
  _context4.next = 32;
1218
1217
  break;
1219
1218
 
1220
- case 24:
1221
- if (!isNewRetailBCPos) {
1222
- _context4.next = 27;
1223
- break;
1224
- }
1219
+ case 23:
1220
+ _context4.next = 25;
1221
+ return _mutantsMicrofx.stores.offlineSys.generatorCode(this.dto);
1225
1222
 
1223
+ case 25:
1226
1224
  _context4.next = 27;
1227
- return _mutantsMicrofx.stores.offlineSys.generatorCode(this.dto);
1225
+ return this.save();
1228
1226
 
1229
1227
  case 27:
1230
- _context4.next = 29;
1231
- return this.save();
1228
+ _ret = _context4.sent;
1232
1229
 
1233
- case 29:
1234
- if (!isNewRetailBCPos) {
1235
- _context4.next = 32;
1230
+ if (!(_ret === false)) {
1231
+ _context4.next = 30;
1236
1232
  break;
1237
1233
  }
1238
1234
 
1235
+ return _context4.abrupt('return', _promise2.default.resolve(false));
1236
+
1237
+ case 30:
1239
1238
  _context4.next = 32;
1240
1239
  return _mutantsMicrofx.stores.offlineSys.retailSequenceUpload();
1241
1240
 
@@ -1244,17 +1243,19 @@ var SettlementStore = (_class = function () {
1244
1243
 
1245
1244
  case 35:
1246
1245
  _context4.prev = 35;
1247
- _context4.t0 = _context4['catch'](4);
1246
+ _context4.t0 = _context4['catch'](3);
1248
1247
 
1249
1248
  console.error('settlementStore.commit失败,错误信息:' + _context4.t0);
1249
+ //其他支付失败时,处理二开支付情况。
1250
+ this.thirdPayRefund();
1250
1251
  return _context4.abrupt('return', _promise2.default.resolve(_context4.t0));
1251
1252
 
1252
- case 39:
1253
+ case 40:
1253
1254
  case 'end':
1254
1255
  return _context4.stop();
1255
1256
  }
1256
1257
  }
1257
- }, _callee4, this, [[4, 35]]);
1258
+ }, _callee4, this, [[3, 35]]);
1258
1259
  }));
1259
1260
 
1260
1261
  function commit(_x3) {
@@ -1316,16 +1317,16 @@ var SettlementStore = (_class = function () {
1316
1317
  }, {
1317
1318
  key: 'save',
1318
1319
  value: function () {
1319
- var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
1320
+ var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
1320
1321
  var _this12 = this;
1321
1322
 
1322
- var _enumController$getEn16, PayStyle, _ref15, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1323
+ var _enumController$getEn16, PayStyle, TradeType, IPMSG, RetailTypeEnum, dtoParams, payList, amount, tradeType, ret, _ref13, type, data, msg, code;
1323
1324
 
1324
1325
  return _regenerator2.default.wrap(function _callee5$(_context5) {
1325
1326
  while (1) {
1326
1327
  switch (_context5.prev = _context5.next) {
1327
1328
  case 0:
1328
- _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn16.PayStyle;
1329
+ _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn16.PayStyle, TradeType = _enumController$getEn16.TradeType;
1329
1330
 
1330
1331
  (0, _mobx.runInAction)(function () {
1331
1332
  _this12.dto.RetailPaymentDetails = [];
@@ -1373,7 +1374,9 @@ var SettlementStore = (_class = function () {
1373
1374
  OverchargesAmount: mode.overchargesAmount,
1374
1375
  DynamicPropertyKeys: [],
1375
1376
  DynamicPropertyValues: [],
1376
- DataSource: { Id: _this12.dataSource }
1377
+ DataSource: { Id: _this12.dataSource },
1378
+ ThirdPaymentInfo: themode.thridPayment || null,
1379
+ ThirdPaymentReturnInfo: mode.thirdPaymentReturnInfo || null
1377
1380
  });
1378
1381
  if (mode.paymentType == PayStyle.djq) {
1379
1382
  (0, _each3.default)(_this12.paymode.checkList && _this12.paymode.checkList.length ? _this12.paymode.checkList : mode.djqs, function (djq) {
@@ -1393,47 +1396,22 @@ var SettlementStore = (_class = function () {
1393
1396
  }
1394
1397
  }
1395
1398
  });
1396
-
1397
- var _ref14 = _mutantsUtil.platform || {},
1398
- isNewRetailBCPos = _ref14.isNewRetailBCPos;
1399
-
1400
1399
  if (_this12.dto.RetailStorageDetails.length > 0) {
1401
1400
  var themode = (0, _find3.default)(_this12.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
1402
- if (isNewRetailBCPos) {
1403
- _this12.dto.RetailPaymentDetails.push({
1404
- Code: _this12.paymode.counter,
1405
- OrigAmount: czkSum,
1406
- Amount: czkSum,
1407
- IdsettleStyle: themode.idSettleStyle,
1408
- IdbankAccount: themode.idBankAccount,
1409
- DynamicPropertyKeys: [],
1410
- DynamicPropertyValues: [],
1411
- DataSource: { Id: _this12.dataSource },
1412
- RetailStorageDetails: _this12.dto.RetailStorageDetails
1413
- });
1414
- } else {
1415
- _this12.dto.RetailPaymentDetails.push({
1416
- Code: _this12.paymode.counter,
1417
- OrigAmount: czkSum,
1418
- Amount: czkSum,
1419
- IdsettleStyle: themode.idSettleStyle,
1420
- IdbankAccount: themode.idBankAccount,
1421
- DynamicPropertyKeys: [],
1422
- DynamicPropertyValues: [],
1423
- DataSource: { Id: _this12.dataSource }
1424
- });
1425
- }
1401
+ _this12.dto.RetailPaymentDetails.push({
1402
+ Code: _this12.paymode.counter,
1403
+ OrigAmount: czkSum,
1404
+ Amount: czkSum,
1405
+ IdsettleStyle: themode.idSettleStyle,
1406
+ IdbankAccount: themode.idBankAccount,
1407
+ DynamicPropertyKeys: [],
1408
+ DynamicPropertyValues: [],
1409
+ DataSource: { Id: _this12.dataSource },
1410
+ RetailStorageDetails: _this12.dto.RetailStorageDetails
1411
+ });
1426
1412
  }
1427
1413
  });
1428
- _ref15 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref15.isNewRetailBCPos;
1429
-
1430
- console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
1431
-
1432
- if (!isNewRetailBCPos) {
1433
- _context5.next = 20;
1434
- break;
1435
- }
1436
-
1414
+ console.log('\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
1437
1415
  // cc结算调用
1438
1416
  IPMSG = {};
1439
1417
 
@@ -1444,49 +1422,79 @@ var SettlementStore = (_class = function () {
1444
1422
  _context5.t1 = this.dto.IdbusiType == 37;
1445
1423
 
1446
1424
  if (!_context5.t1) {
1447
- _context5.next = 13;
1425
+ _context5.next = 11;
1448
1426
  break;
1449
1427
  }
1450
1428
 
1451
- _context5.next = 12;
1429
+ _context5.next = 10;
1452
1430
  return this.checkIntegralExchangeReturn(this.dto.RetailDetails[0].ReturnSourceId);
1453
1431
 
1454
- case 12:
1432
+ case 10:
1455
1433
  _context5.t1 = _context5.sent;
1456
1434
 
1457
- case 13:
1435
+ case 11:
1458
1436
  _context5.t0 = _context5.t1;
1459
1437
 
1460
1438
  if (_context5.t0) {
1461
- _context5.next = 16;
1439
+ _context5.next = 14;
1462
1440
  break;
1463
1441
  }
1464
1442
 
1465
1443
  _context5.t0 = this.dto.IdbusiType != 37;
1466
1444
 
1467
- case 16:
1445
+ case 14:
1468
1446
  if (!_context5.t0) {
1469
- _context5.next = 18;
1447
+ _context5.next = 33;
1470
1448
  break;
1471
1449
  }
1472
1450
 
1473
- return _context5.abrupt('return', (0, _tplusApi.ccApi)({ dto: (0, _extends3.default)({}, this.dto.cut(), { RetailOms: { RetailTypeEnum: RetailTypeEnum } }), cip: IPMSG.query || "" }, '/retail/RetailPos/settle', false, false, { method: 'post', timeout_skip: true }).then(function (resp) {
1474
- _this12.setDtoID(resp.ID);
1475
- _this12.paymode.checkList = [];
1476
- _this12.billID = resp.ID;
1477
- }));
1451
+ dtoParams = (0, _extends3.default)({}, this.dto.cut(), { RetailOms: { RetailTypeEnum: RetailTypeEnum } });
1452
+ //处理存在二开支付情况
1478
1453
 
1479
- case 18:
1480
- _context5.next = 21;
1454
+ payList = dtoParams.RetailPaymentDetails.filter(function (v) {
1455
+ return v.ThirdPaymentInfo;
1456
+ });
1457
+
1458
+ if (!(payList && payList.length > 0)) {
1459
+ _context5.next = 30;
1460
+ break;
1461
+ }
1462
+
1463
+ amount = payList[0].Amount;
1464
+ tradeType = amount > 0 ? TradeType.PAY : TradeType.REFUND;
1465
+ _context5.next = 22;
1466
+ return this.thirdPay(tradeType, dtoParams);
1467
+
1468
+ case 22:
1469
+ ret = _context5.sent;
1470
+ _ref13 = ret || {}, type = _ref13.type, data = _ref13.data, msg = _ref13.msg, code = _ref13.code;
1471
+
1472
+ if (!(type === true)) {
1473
+ _context5.next = 28;
1474
+ break;
1475
+ }
1476
+
1477
+ dtoParams = data;
1478
+ _context5.next = 30;
1481
1479
  break;
1482
1480
 
1483
- case 20:
1484
- return _context5.abrupt('return', (0, _tplusApi.tApi)({ dto: this.dto.cut() }, 'chanjet.RE.newRetail.Settle', false, false, { timeout_skip: true }).then(function (resp) {
1485
- _this12.setDtoID(resp.ID);
1486
- _this12.billID = resp.ID;
1481
+ case 28:
1482
+ _message2.default.warn('\u5237\u5361\u652F\u4ED8\u5931\u8D25,\u9519\u8BEF\u7801:' + code);
1483
+ return _context5.abrupt('return', false);
1484
+
1485
+ case 30:
1486
+ this.dtoParams = dtoParams;
1487
+ console.log('结算信息:', dtoParams);
1488
+ return _context5.abrupt('return', (0, _tplusApi.ccApi)({ dto: dtoParams, cip: IPMSG.query || "" }, '/retail/RetailPos/settle', false, false, { method: 'post', timeout_skip: true }).then(function (resp) {
1489
+ var _ref14 = resp || {},
1490
+ ID = _ref14.ID;
1491
+
1492
+ _this12.setDtoID(ID);
1493
+ _this12.billID = ID;
1494
+ _this12.paymode.checkList = [];
1487
1495
  }));
1488
1496
 
1489
- case 21:
1497
+ case 33:
1490
1498
  case 'end':
1491
1499
  return _context5.stop();
1492
1500
  }
@@ -1495,16 +1503,162 @@ var SettlementStore = (_class = function () {
1495
1503
  }));
1496
1504
 
1497
1505
  function save() {
1498
- return _ref13.apply(this, arguments);
1506
+ return _ref12.apply(this, arguments);
1499
1507
  }
1500
1508
 
1501
1509
  return save;
1502
1510
  }()
1511
+
1512
+ //裁剪二开支付数据
1513
+
1503
1514
  }, {
1504
- key: 'setVoucherDate',
1505
- value: function setVoucherDate() {
1506
- this.dto.VoucherDate = new Date();
1515
+ key: 'removeThirdPayDto',
1516
+ value: function removeThirdPayDto(dto) {
1517
+ var data = (0, _extends3.default)({}, dto);
1518
+ delete data['DynamicPropertyKeys'];
1519
+ delete data['DynamicPropertyValues'];
1520
+ return data;
1507
1521
  }
1522
+
1523
+ //二开支付
1524
+
1525
+ }, {
1526
+ key: 'thirdPay',
1527
+ value: function () {
1528
+ var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(status, dto) {
1529
+ var cto, params, ret, _ref16, Code, Message, Result, _ref17, ThirdPaymentReturnInfo;
1530
+
1531
+ return _regenerator2.default.wrap(function _callee6$(_context6) {
1532
+ while (1) {
1533
+ switch (_context6.prev = _context6.next) {
1534
+ case 0:
1535
+ cto = this.removeThirdPayDto(dto);
1536
+ params = { TradeType: status, dto: cto };
1537
+
1538
+ console.log('刷卡信息:', (0, _stringify2.default)(params));
1539
+ _context6.next = 5;
1540
+ return new _promise2.default(function (resolve, reject) {
1541
+ _mutantsMicrofx.nativeMs.setIpcRendererMethod('ThirdPayment', (0, _extends3.default)({}, params), function (res) {
1542
+ return resolve(res);
1543
+ });
1544
+ });
1545
+
1546
+ case 5:
1547
+ ret = _context6.sent;
1548
+
1549
+ console.log('刷卡返回信息:', ret);
1550
+ ret = JSON.parse(ret);
1551
+ _ref16 = ret || {}, Code = _ref16.Code, Message = _ref16.Message, Result = _ref16.Result;
1552
+
1553
+ if (!(Code > 0)) {
1554
+ _context6.next = 13;
1555
+ break;
1556
+ }
1557
+
1558
+ return _context6.abrupt('return', { type: false, data: null, msg: Message, code: Code });
1559
+
1560
+ case 13:
1561
+ if (!(status == '00')) {
1562
+ _context6.next = 19;
1563
+ break;
1564
+ }
1565
+
1566
+ _ref17 = Result || {}, ThirdPaymentReturnInfo = _ref17.ThirdPaymentReturnInfo;
1567
+
1568
+ dto.RetailPaymentDetails.forEach(function (v) {
1569
+ if (v.ThirdPaymentInfo != null) {
1570
+ v.ThirdPaymentReturnInfo = ThirdPaymentReturnInfo;
1571
+ }
1572
+ });
1573
+ return _context6.abrupt('return', { type: true, data: dto, msg: Message, code: Code });
1574
+
1575
+ case 19:
1576
+ if (!(status == '02')) {
1577
+ _context6.next = 21;
1578
+ break;
1579
+ }
1580
+
1581
+ return _context6.abrupt('return', { type: true, data: dto, msg: Message, code: Code });
1582
+
1583
+ case 21:
1584
+ case 'end':
1585
+ return _context6.stop();
1586
+ }
1587
+ }
1588
+ }, _callee6, this);
1589
+ }));
1590
+
1591
+ function thirdPay(_x4, _x5) {
1592
+ return _ref15.apply(this, arguments);
1593
+ }
1594
+
1595
+ return thirdPay;
1596
+ }()
1597
+
1598
+ //二开支付强制退款情况
1599
+
1600
+ }, {
1601
+ key: 'thirdPayRefund',
1602
+ value: function () {
1603
+ var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
1604
+ var _this13 = this;
1605
+
1606
+ var dto, pay, _enumController$getEn17, TradeType;
1607
+
1608
+ return _regenerator2.default.wrap(function _callee8$(_context8) {
1609
+ while (1) {
1610
+ switch (_context8.prev = _context8.next) {
1611
+ case 0:
1612
+ dto = this.dtoParams;
1613
+ pay = dto && dto.RetailPaymentDetails.filter(function (v) {
1614
+ return v.ThirdPaymentInfo;
1615
+ });
1616
+
1617
+ if (pay && pay.length > 0) {
1618
+ setTimeout(function () {
1619
+ _message2.default.warn("支付出现异常,将发起刷卡退款。", { duration: 4.5 });
1620
+ }, 1000);
1621
+ _enumController$getEn17 = _mutantsUtil.enumController.getEnumOj(), TradeType = _enumController$getEn17.TradeType;
1622
+
1623
+ setTimeout((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7() {
1624
+ var ret, _ref20, msg;
1625
+
1626
+ return _regenerator2.default.wrap(function _callee7$(_context7) {
1627
+ while (1) {
1628
+ switch (_context7.prev = _context7.next) {
1629
+ case 0:
1630
+ _context7.next = 2;
1631
+ return _this13.thirdPay(TradeType.REFUND, dto);
1632
+
1633
+ case 2:
1634
+ ret = _context7.sent;
1635
+ _ref20 = ret || {}, msg = _ref20.msg;
1636
+
1637
+ console.log('\u5237\u5361\u652F\u4ED8\u9000\u6B3E:' + msg);
1638
+
1639
+ case 5:
1640
+ case 'end':
1641
+ return _context7.stop();
1642
+ }
1643
+ }
1644
+ }, _callee7, _this13);
1645
+ })), 4500);
1646
+ }
1647
+
1648
+ case 3:
1649
+ case 'end':
1650
+ return _context8.stop();
1651
+ }
1652
+ }
1653
+ }, _callee8, this);
1654
+ }));
1655
+
1656
+ function thirdPayRefund() {
1657
+ return _ref18.apply(this, arguments);
1658
+ }
1659
+
1660
+ return thirdPayRefund;
1661
+ }()
1508
1662
  }, {
1509
1663
  key: 'setDtoID',
1510
1664
  value: function setDtoID(id) {
@@ -1513,35 +1667,35 @@ var SettlementStore = (_class = function () {
1513
1667
  }, {
1514
1668
  key: 'querySettleResult',
1515
1669
  value: function () {
1516
- var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6() {
1517
- return _regenerator2.default.wrap(function _callee6$(_context6) {
1670
+ var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9() {
1671
+ return _regenerator2.default.wrap(function _callee9$(_context9) {
1518
1672
  while (1) {
1519
- switch (_context6.prev = _context6.next) {
1673
+ switch (_context9.prev = _context9.next) {
1520
1674
  case 0:
1521
- _context6.prev = 0;
1522
- _context6.t0 = _promise2.default;
1523
- _context6.next = 4;
1675
+ _context9.prev = 0;
1676
+ _context9.t0 = _promise2.default;
1677
+ _context9.next = 4;
1524
1678
  return (0, _tplusApi.tApi)({ RetailCode: this.dto.Code }, 'chanjet.RE.newRetail.QuerySettleResult', false, false, { timeout_skip: true });
1525
1679
 
1526
1680
  case 4:
1527
- _context6.t1 = _context6.sent;
1528
- return _context6.abrupt('return', _context6.t0.resolve.call(_context6.t0, _context6.t1));
1681
+ _context9.t1 = _context9.sent;
1682
+ return _context9.abrupt('return', _context9.t0.resolve.call(_context9.t0, _context9.t1));
1529
1683
 
1530
1684
  case 8:
1531
- _context6.prev = 8;
1532
- _context6.t2 = _context6['catch'](0);
1533
- return _context6.abrupt('return', _promise2.default.resolve({ Flag: "1" }));
1685
+ _context9.prev = 8;
1686
+ _context9.t2 = _context9['catch'](0);
1687
+ return _context9.abrupt('return', _promise2.default.resolve({ Flag: "1" }));
1534
1688
 
1535
1689
  case 11:
1536
1690
  case 'end':
1537
- return _context6.stop();
1691
+ return _context9.stop();
1538
1692
  }
1539
1693
  }
1540
- }, _callee6, this, [[0, 8]]);
1694
+ }, _callee9, this, [[0, 8]]);
1541
1695
  }));
1542
1696
 
1543
1697
  function querySettleResult() {
1544
- return _ref16.apply(this, arguments);
1698
+ return _ref21.apply(this, arguments);
1545
1699
  }
1546
1700
 
1547
1701
  return querySettleResult;
@@ -1567,18 +1721,18 @@ var SettlementStore = (_class = function () {
1567
1721
  }, {
1568
1722
  key: 'validePwd',
1569
1723
  value: function () {
1570
- var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(value) {
1571
- var _ref18, isNewRetailBCPos, cook1, cook2, message, memberStorageId, _paymode$currentMode, cardTypeEnum, memberId, meStorageCardId, cardStatusEnum, result, count, _result;
1724
+ var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(value) {
1725
+ var _ref23, isNewRetailBCPos, cook1, cook2, message, memberStorageId, _paymode$currentMode, cardTypeEnum, memberId, meStorageCardId, cardStatusEnum, result, count, _result;
1572
1726
 
1573
- return _regenerator2.default.wrap(function _callee7$(_context7) {
1727
+ return _regenerator2.default.wrap(function _callee10$(_context10) {
1574
1728
  while (1) {
1575
- switch (_context7.prev = _context7.next) {
1729
+ switch (_context10.prev = _context10.next) {
1576
1730
  case 0:
1577
- _ref18 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref18.isNewRetailBCPos;
1578
- _context7.prev = 1;
1731
+ _ref23 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref23.isNewRetailBCPos;
1732
+ _context10.prev = 1;
1579
1733
 
1580
1734
  if (!isNewRetailBCPos) {
1581
- _context7.next = 33;
1735
+ _context10.next = 33;
1582
1736
  break;
1583
1737
  }
1584
1738
 
@@ -1588,60 +1742,60 @@ var SettlementStore = (_class = function () {
1588
1742
  memberStorageId = this.paymode.currentMode.meStorageCardId;
1589
1743
 
1590
1744
  if (!cook2) {
1591
- _context7.next = 12;
1745
+ _context10.next = 12;
1592
1746
  break;
1593
1747
  }
1594
1748
 
1595
1749
  if (!cook2.hasOwnProperty(memberStorageId + "")) {
1596
- _context7.next = 12;
1750
+ _context10.next = 12;
1597
1751
  break;
1598
1752
  }
1599
1753
 
1600
1754
  if (!(cook2[memberStorageId] > 3)) {
1601
- _context7.next = 12;
1755
+ _context10.next = 12;
1602
1756
  break;
1603
1757
  }
1604
1758
 
1605
1759
  message = '今日密码错误已达上限,不可使用储值消费,请明日再试,如忘记请重置密码或修改密码。';
1606
- return _context7.abrupt('return', _promise2.default.resolve(message));
1760
+ return _context10.abrupt('return', _promise2.default.resolve(message));
1607
1761
 
1608
1762
  case 12:
1609
1763
  _paymode$currentMode = this.paymode.currentMode, cardTypeEnum = _paymode$currentMode.cardTypeEnum, memberId = _paymode$currentMode.memberId, meStorageCardId = _paymode$currentMode.meStorageCardId, cardStatusEnum = _paymode$currentMode.cardStatusEnum;
1610
1764
  result = null;
1611
1765
 
1612
1766
  if (!(cardTypeEnum === 'BALANCE_CARD')) {
1613
- _context7.next = 20;
1767
+ _context10.next = 20;
1614
1768
  break;
1615
1769
  }
1616
1770
 
1617
- _context7.next = 17;
1771
+ _context10.next = 17;
1618
1772
  return (0, _tplusApi.ccApi)({ md5Password: _tplusApi.User.pwdEncrypt(value.pwd), cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + memberId, false, false);
1619
1773
 
1620
1774
  case 17:
1621
- result = _context7.sent;
1622
- _context7.next = 29;
1775
+ result = _context10.sent;
1776
+ _context10.next = 29;
1623
1777
  break;
1624
1778
 
1625
1779
  case 20:
1626
1780
  if (!(cardStatusEnum === 'BINDING' && this.member && this.member.ID === memberId)) {
1627
- _context7.next = 26;
1781
+ _context10.next = 26;
1628
1782
  break;
1629
1783
  }
1630
1784
 
1631
- _context7.next = 23;
1785
+ _context10.next = 23;
1632
1786
  return (0, _tplusApi.ccApi)({ md5Password: _tplusApi.User.pwdEncrypt(value.pwd), password: value.pwd, cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + meStorageCardId, false, false);
1633
1787
 
1634
1788
  case 23:
1635
- result = _context7.sent;
1636
- _context7.next = 29;
1789
+ result = _context10.sent;
1790
+ _context10.next = 29;
1637
1791
  break;
1638
1792
 
1639
1793
  case 26:
1640
- _context7.next = 28;
1794
+ _context10.next = 28;
1641
1795
  return (0, _tplusApi.ccApi)({ password: value.pwd, cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + meStorageCardId, false, false);
1642
1796
 
1643
1797
  case 28:
1644
- result = _context7.sent;
1798
+ result = _context10.sent;
1645
1799
 
1646
1800
  case 29:
1647
1801
  if (!result.data) {
@@ -1660,38 +1814,38 @@ var SettlementStore = (_class = function () {
1660
1814
  this.setCookie('errorPwd', '', -1);
1661
1815
  this.setCookie('errorPwd', (0, _stringify2.default)(cook2));
1662
1816
  }
1663
- return _context7.abrupt('return', _promise2.default.resolve(result.data ? "" : message));
1817
+ return _context10.abrupt('return', _promise2.default.resolve(result.data ? "" : message));
1664
1818
 
1665
1819
  case 33:
1666
- _context7.next = 35;
1820
+ _context10.next = 35;
1667
1821
  return (0, _tplusApi.tApi)({ "CheckoutParams": {
1668
1822
  "Idmember": value.id,
1669
1823
  "Password": value.pwd
1670
1824
  } }, 'AA.DR.newRetailMember.CheckoutMemberPassword', false, false);
1671
1825
 
1672
1826
  case 35:
1673
- _result = _context7.sent;
1674
- return _context7.abrupt('return', _promise2.default.resolve(_result.Success ? "" : _result.Message));
1827
+ _result = _context10.sent;
1828
+ return _context10.abrupt('return', _promise2.default.resolve(_result.Success ? "" : _result.Message));
1675
1829
 
1676
1830
  case 37:
1677
- _context7.next = 42;
1831
+ _context10.next = 42;
1678
1832
  break;
1679
1833
 
1680
1834
  case 39:
1681
- _context7.prev = 39;
1682
- _context7.t0 = _context7['catch'](1);
1683
- return _context7.abrupt('return', "failed");
1835
+ _context10.prev = 39;
1836
+ _context10.t0 = _context10['catch'](1);
1837
+ return _context10.abrupt('return', "failed");
1684
1838
 
1685
1839
  case 42:
1686
1840
  case 'end':
1687
- return _context7.stop();
1841
+ return _context10.stop();
1688
1842
  }
1689
1843
  }
1690
- }, _callee7, this, [[1, 39]]);
1844
+ }, _callee10, this, [[1, 39]]);
1691
1845
  }));
1692
1846
 
1693
- function validePwd(_x4) {
1694
- return _ref17.apply(this, arguments);
1847
+ function validePwd(_x6) {
1848
+ return _ref22.apply(this, arguments);
1695
1849
  }
1696
1850
 
1697
1851
  return validePwd;
@@ -1701,7 +1855,7 @@ var SettlementStore = (_class = function () {
1701
1855
  }(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'queryPwd', [_mobx.action], {
1702
1856
  enumerable: true,
1703
1857
  initializer: function initializer() {
1704
- var _this13 = this;
1858
+ var _this14 = this;
1705
1859
 
1706
1860
  return function (newPass, newPassConfirm) {
1707
1861
  if (!newPass || !newPassConfirm) {
@@ -1713,7 +1867,7 @@ var SettlementStore = (_class = function () {
1713
1867
  var idstore = (0, _tplusPoslogin.PosInitData)('storeID');
1714
1868
  return (0, _tplusApi.ccApi)({
1715
1869
  Idstore: idstore,
1716
- meMemberId: _this13.paymode.currentMode.memberId,
1870
+ meMemberId: _this14.paymode.currentMode.memberId,
1717
1871
  oldPassword: null,
1718
1872
  newPassword: _tplusApi.User.pwdEncrypt(newPassConfirm),
1719
1873
  dataSource: "POS"
@@ -1727,134 +1881,143 @@ var SettlementStore = (_class = function () {
1727
1881
  }), _applyDecoratedDescriptor(_class.prototype, 'initByOriginReturn', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'initByOriginReturn'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'quickSettle', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'quickSettle'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeFocusAndAddPay', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeFocusAndAddPay'), _class.prototype), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, 'updateMemberInfo', [_mobx.action], {
1728
1882
  enumerable: true,
1729
1883
  initializer: function initializer() {
1730
- var _this14 = this;
1884
+ var _this15 = this;
1731
1885
 
1732
1886
  return function () {
1733
- var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8(_this) {
1887
+ var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(_this) {
1734
1888
  var _getLoginInfo, IdStore, StoreCode, resp;
1735
1889
 
1736
- return _regenerator2.default.wrap(function _callee8$(_context8) {
1890
+ return _regenerator2.default.wrap(function _callee11$(_context11) {
1737
1891
  while (1) {
1738
- switch (_context8.prev = _context8.next) {
1892
+ switch (_context11.prev = _context11.next) {
1739
1893
  case 0:
1740
- _getLoginInfo = _this14.getLoginInfo(), IdStore = _getLoginInfo.IdStore, StoreCode = _getLoginInfo.StoreCode;
1741
- _context8.next = 3;
1742
- return (0, _tplusApi.tApi)({ Idmember: _this14.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
1894
+ _getLoginInfo = _this15.getLoginInfo(), IdStore = _getLoginInfo.IdStore, StoreCode = _getLoginInfo.StoreCode;
1895
+ _context11.next = 3;
1896
+ return (0, _tplusApi.tApi)({ Idmember: _this15.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
1743
1897
 
1744
1898
  case 3:
1745
- resp = _context8.sent;
1899
+ resp = _context11.sent;
1746
1900
 
1747
1901
  _this.member = resp;
1748
1902
  _this.paymode.updateMemberStorageCardNo(resp.StorageCardNo, resp.WalletEnabled);
1749
- return _context8.abrupt('return', _promise2.default.resolve(resp));
1903
+ return _context11.abrupt('return', _promise2.default.resolve(resp));
1750
1904
 
1751
1905
  case 7:
1752
1906
  case 'end':
1753
- return _context8.stop();
1907
+ return _context11.stop();
1754
1908
  }
1755
1909
  }
1756
- }, _callee8, _this14);
1910
+ }, _callee11, _this15);
1757
1911
  }));
1758
1912
 
1759
- return function (_x5) {
1760
- return _ref19.apply(this, arguments);
1913
+ return function (_x7) {
1914
+ return _ref24.apply(this, arguments);
1761
1915
  };
1762
1916
  }();
1763
1917
  }
1764
1918
  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'updateCurrentMode', [_mobx.action], {
1765
1919
  enumerable: true,
1766
1920
  initializer: function initializer() {
1767
- var _this15 = this;
1921
+ var _this16 = this;
1768
1922
 
1769
1923
  return function () {
1770
- var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(memberId) {
1924
+ var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(memberId) {
1771
1925
  var result;
1772
- return _regenerator2.default.wrap(function _callee9$(_context9) {
1926
+ return _regenerator2.default.wrap(function _callee12$(_context12) {
1773
1927
  while (1) {
1774
- switch (_context9.prev = _context9.next) {
1928
+ switch (_context12.prev = _context12.next) {
1775
1929
  case 0:
1776
- _context9.next = 2;
1930
+ _context12.next = 2;
1777
1931
  return (0, _tplusApi.ccApi)({}, '/marketingtool/MeStorageCard/getCardInfoByMemberId/' + memberId + '/' + true, false, false, { method: 'get' });
1778
1932
 
1779
1933
  case 2:
1780
- result = _context9.sent;
1934
+ result = _context12.sent;
1781
1935
 
1782
1936
  if (!(result && result.data.length)) {
1783
- _context9.next = 20;
1937
+ _context12.next = 20;
1784
1938
  break;
1785
1939
  }
1786
1940
 
1787
1941
  if (!(result.data.length === 1)) {
1788
- _context9.next = 9;
1942
+ _context12.next = 9;
1789
1943
  break;
1790
1944
  }
1791
1945
 
1792
- _this15.paymode.updateCardInfo(result.data[0]);
1793
- return _context9.abrupt('return', result.data);
1946
+ _this16.paymode.updateCardInfo(result.data[0]);
1947
+ return _context12.abrupt('return', result.data);
1794
1948
 
1795
1949
  case 9:
1796
1950
  if (!(result.data && result.data.length === 1)) {
1797
- _context9.next = 14;
1951
+ _context12.next = 14;
1798
1952
  break;
1799
1953
  }
1800
1954
 
1801
- _this15.paymode.updateCardInfo(result.data[0]);
1802
- return _context9.abrupt('return', result.data);
1955
+ _this16.paymode.updateCardInfo(result.data[0]);
1956
+ return _context12.abrupt('return', result.data);
1803
1957
 
1804
1958
  case 14:
1805
1959
  if (!(result.data && result.data.length > 1)) {
1806
- _context9.next = 18;
1960
+ _context12.next = 18;
1807
1961
  break;
1808
1962
  }
1809
1963
 
1810
- return _context9.abrupt('return', result.data);
1964
+ return _context12.abrupt('return', result.data);
1811
1965
 
1812
1966
  case 18:
1813
1967
  _message2.default.warn('没有可用储值卡!');
1814
- return _context9.abrupt('return', false);
1968
+ return _context12.abrupt('return', false);
1815
1969
 
1816
1970
  case 20:
1817
1971
  case 'end':
1818
- return _context9.stop();
1972
+ return _context12.stop();
1819
1973
  }
1820
1974
  }
1821
- }, _callee9, _this15);
1975
+ }, _callee12, _this16);
1822
1976
  }));
1823
1977
 
1824
- return function (_x6) {
1825
- return _ref20.apply(this, arguments);
1978
+ return function (_x8) {
1979
+ return _ref25.apply(this, arguments);
1826
1980
  };
1827
1981
  }();
1828
1982
  }
1829
1983
  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, 'updateCardInfo', [_mobx.action], {
1830
1984
  enumerable: true,
1831
1985
  initializer: function initializer() {
1832
- var _this16 = this;
1986
+ var _this17 = this;
1833
1987
 
1834
- return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10() {
1988
+ return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13() {
1835
1989
  var address, result;
1836
- return _regenerator2.default.wrap(function _callee10$(_context10) {
1990
+ return _regenerator2.default.wrap(function _callee13$(_context13) {
1837
1991
  while (1) {
1838
- switch (_context10.prev = _context10.next) {
1992
+ switch (_context13.prev = _context13.next) {
1839
1993
  case 0:
1840
- address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + _this16.paymode.currentMode.storageCardNo;
1841
- _context10.next = 3;
1994
+ address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + _this17.paymode.currentMode.storageCardNo;
1995
+ _context13.next = 3;
1842
1996
  return (0, _tplusApi.ccApi)({}, address, false, false, { method: 'get', timeout_skip: true });
1843
1997
 
1844
1998
  case 3:
1845
- result = _context10.sent;
1999
+ result = _context13.sent;
1846
2000
 
1847
- _this16.paymode.updateCardInfo(result.data);
2001
+ _this17.paymode.updateCardInfo(result.data);
1848
2002
 
1849
2003
  case 5:
1850
2004
  case 'end':
1851
- return _context10.stop();
2005
+ return _context13.stop();
1852
2006
  }
1853
2007
  }
1854
- }, _callee10, _this16);
2008
+ }, _callee13, _this17);
1855
2009
  }));
1856
2010
  }
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), _applyDecoratedDescriptor(_class.prototype, 'setVoucherDate', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'setVoucherDate'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'setDtoID', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'setDtoID'), _class.prototype)), _class);
2011
+ }), _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], {
2012
+ enumerable: true,
2013
+ initializer: function initializer() {
2014
+ var _this18 = this;
2015
+
2016
+ return function () {
2017
+ _this18.dto.VoucherDate = new Date();
2018
+ };
2019
+ }
2020
+ }), _applyDecoratedDescriptor(_class.prototype, 'setDtoID', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'setDtoID'), _class.prototype)), _class);
1858
2021
  exports.default = SettlementStore;
1859
2022
  var PayMode = exports.PayMode = (_class3 = function () {
1860
2023
  //应收
@@ -1868,19 +2031,19 @@ var PayMode = exports.PayMode = (_class3 = function () {
1868
2031
  this.onlineamount = 0;
1869
2032
  this.maxamount = 0;
1870
2033
 
1871
- _initDefineProp(this, 'currentFocus', _descriptor5, this);
2034
+ _initDefineProp(this, 'currentFocus', _descriptor6, this);
1872
2035
 
1873
- _initDefineProp(this, 'received', _descriptor6, this);
2036
+ _initDefineProp(this, 'received', _descriptor7, this);
1874
2037
 
1875
- _initDefineProp(this, 'receivable', _descriptor7, this);
2038
+ _initDefineProp(this, 'receivable', _descriptor8, this);
1876
2039
 
1877
- _initDefineProp(this, 'paymodes', _descriptor8, this);
2040
+ _initDefineProp(this, 'paymodes', _descriptor9, this);
1878
2041
 
1879
- _initDefineProp(this, 'thePaymodes', _descriptor9, this);
2042
+ _initDefineProp(this, 'thePaymodes', _descriptor10, this);
1880
2043
 
1881
- _initDefineProp(this, 'storageCardNo', _descriptor10, this);
2044
+ _initDefineProp(this, 'storageCardNo', _descriptor11, this);
1882
2045
 
1883
- _initDefineProp(this, 'balance', _descriptor11, this);
2046
+ _initDefineProp(this, 'balance', _descriptor12, this);
1884
2047
 
1885
2048
  this.currentMode = null;
1886
2049
  this.checkList = [];
@@ -1889,11 +2052,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
1889
2052
  hotKey: "Ctrl+M"
1890
2053
  };
1891
2054
 
1892
- _initDefineProp(this, 'calcCheckList', _descriptor12, this);
2055
+ _initDefineProp(this, 'calcCheckList', _descriptor13, this);
1893
2056
 
1894
- _initDefineProp(this, 'setCouponNum', _descriptor13, this);
2057
+ _initDefineProp(this, 'setCouponNum', _descriptor14, this);
1895
2058
 
1896
- _initDefineProp(this, 'addDjqs', _descriptor14, this);
2059
+ _initDefineProp(this, 'addDjqs', _descriptor15, this);
1897
2060
  }
1898
2061
  // @observable store = null;
1899
2062
 
@@ -1952,7 +2115,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1952
2115
  }, {
1953
2116
  key: 'calcDjqCheckValue',
1954
2117
  value: function calcDjqCheckValue(q1, dto, params) {
1955
- var _this17 = this;
2118
+ var _this19 = this;
1956
2119
 
1957
2120
  var useLimitPerOrder = (0, _tplusPoslogin.PosInitData)('UseLimitPerOrder');
1958
2121
  var qList = (0, _filter3.default)(this.currentMode.djqs, function (djq) {
@@ -1966,12 +2129,12 @@ var PayMode = exports.PayMode = (_class3 = function () {
1966
2129
  this.checkList = [];
1967
2130
  }
1968
2131
 
1969
- var _ref22 = _mutantsUtil.platform || {},
1970
- isNewRetailBCPos = _ref22.isNewRetailBCPos;
2132
+ var _ref27 = _mutantsUtil.platform || {},
2133
+ isNewRetailBCPos = _ref27.isNewRetailBCPos;
1971
2134
 
1972
- var _enumController$getEn17 = _mutantsUtil.enumController.getEnumOj(),
1973
- PayStyle = _enumController$getEn17.PayStyle,
1974
- Differentiate = _enumController$getEn17.Differentiate;
2135
+ var _enumController$getEn18 = _mutantsUtil.enumController.getEnumOj(),
2136
+ PayStyle = _enumController$getEn18.PayStyle,
2137
+ Differentiate = _enumController$getEn18.Differentiate;
1975
2138
 
1976
2139
  if (q1) {
1977
2140
  if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
@@ -1999,7 +2162,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1999
2162
  if (!q1.checked) {
2000
2163
  this.checkList.forEach(function (ele, i) {
2001
2164
  if (ele.id === q1.id) {
2002
- _this17.checkList.splice(i, 1);
2165
+ _this19.checkList.splice(i, 1);
2003
2166
  }
2004
2167
  });
2005
2168
  } else {
@@ -2071,24 +2234,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
2071
2234
  if (result && result.length != 0) {
2072
2235
  result.forEach(function (element, index) {
2073
2236
  var djq1 = false;
2074
- _this17.currentMode.djqs.forEach(function (djq) {
2237
+ _this19.currentMode.djqs.forEach(function (djq) {
2075
2238
  if (element.id === djq.id) {
2076
2239
  djq1 = true;
2077
2240
  }
2078
2241
  });
2079
2242
 
2080
- var _ref23 = element || {},
2081
- couponCode = _ref23.couponCode,
2082
- name = _ref23.name,
2083
- tieredAmountResult = _ref23.tieredAmountResult,
2084
- fromDate = _ref23.fromDate,
2085
- dateMount = _ref23.dateMount,
2086
- promoMethodEnum = _ref23.promoMethodEnum,
2087
- discountPct = _ref23.discountPct,
2088
- nominalAmount = _ref23.nominalAmount,
2089
- promoId = _ref23.promoId,
2090
- id = _ref23.id,
2091
- doorsill = _ref23.doorsill;
2243
+ var _ref28 = element || {},
2244
+ couponCode = _ref28.couponCode,
2245
+ name = _ref28.name,
2246
+ tieredAmountResult = _ref28.tieredAmountResult,
2247
+ fromDate = _ref28.fromDate,
2248
+ dateMount = _ref28.dateMount,
2249
+ promoMethodEnum = _ref28.promoMethodEnum,
2250
+ discountPct = _ref28.discountPct,
2251
+ nominalAmount = _ref28.nominalAmount,
2252
+ promoId = _ref28.promoId,
2253
+ id = _ref28.id,
2254
+ doorsill = _ref28.doorsill;
2092
2255
 
2093
2256
  var condValue = tieredAmountResult.condValue,
2094
2257
  promoDiscount = tieredAmountResult.promoDiscount,
@@ -2116,10 +2279,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
2116
2279
  // couponCategoryEnum: tieredAmountResult.couponCategoryEnum,
2117
2280
  // id
2118
2281
  // })
2119
- _this17.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
2282
+ _this19.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
2120
2283
  djq1 = false;
2121
2284
  } else {
2122
- _this17.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
2285
+ _this19.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
2123
2286
  // this.currentMode.djqs[0].couponCategoryEnum = 'couponCategoryEnum';
2124
2287
  // djq1.couponCategoryEnum = element.tieredAmountResult.couponCategoryEnum
2125
2288
  }
@@ -2132,11 +2295,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
2132
2295
  }, {
2133
2296
  key: 'calcDjqValue',
2134
2297
  value: function calcDjqValue(q1) {
2135
- var _ref24 = _mutantsUtil.platform || {},
2136
- isNewRetailBCPos = _ref24.isNewRetailBCPos;
2298
+ var _ref29 = _mutantsUtil.platform || {},
2299
+ isNewRetailBCPos = _ref29.isNewRetailBCPos;
2137
2300
 
2138
- var _enumController$getEn18 = _mutantsUtil.enumController.getEnumOj(),
2139
- Differentiate = _enumController$getEn18.Differentiate;
2301
+ var _enumController$getEn19 = _mutantsUtil.enumController.getEnumOj(),
2302
+ Differentiate = _enumController$getEn19.Differentiate;
2140
2303
 
2141
2304
  if (q1) {
2142
2305
  if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
@@ -2198,8 +2361,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
2198
2361
  this.currentMode.errinfo = '';
2199
2362
  var sum = this.amount;
2200
2363
 
2201
- var _enumController$getEn19 = _mutantsUtil.enumController.getEnumOj(),
2202
- PayStyle = _enumController$getEn19.PayStyle;
2364
+ var _enumController$getEn20 = _mutantsUtil.enumController.getEnumOj(),
2365
+ PayStyle = _enumController$getEn20.PayStyle;
2203
2366
 
2204
2367
  this.thePaymodes && this.thePaymodes.forEach(function (mode) {
2205
2368
  if (mode.paymentType === PayStyle.hyczk) {
@@ -2223,30 +2386,29 @@ var PayMode = exports.PayMode = (_class3 = function () {
2223
2386
  }, {
2224
2387
  key: 'setPaymodes',
2225
2388
  value: function () {
2226
- var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(type, isIntegralExchange) {
2227
- var _this18 = this;
2389
+ var _ref30 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14(type, isIntegralExchange) {
2390
+ var _this20 = this;
2228
2391
 
2229
- var _enumController$getEn20, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
2392
+ var _enumController$getEn21, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
2230
2393
 
2231
- return _regenerator2.default.wrap(function _callee11$(_context11) {
2394
+ return _regenerator2.default.wrap(function _callee14$(_context14) {
2232
2395
  while (1) {
2233
- switch (_context11.prev = _context11.next) {
2396
+ switch (_context14.prev = _context14.next) {
2234
2397
  case 0:
2235
- _enumController$getEn20 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn20.settleStyleType, PayStyle = _enumController$getEn20.PayStyle;
2398
+ _enumController$getEn21 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn21.settleStyleType, PayStyle = _enumController$getEn21.PayStyle;
2236
2399
  memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
2237
2400
  param = { 'settleStyleType': type == 1 ? memberStoreCode : settlementCode, isIntegralExchange: isIntegralExchange };
2238
- _context11.next = 5;
2401
+ _context14.next = 5;
2239
2402
  return (0, _tplusApi.tApi)({ param: param }, 'chanjet.RE.NewPos.GetNewStoreSettleStyles', false, false);
2240
2403
 
2241
2404
  case 5:
2242
- modes = _context11.sent;
2405
+ modes = _context14.sent;
2243
2406
 
2244
2407
  if (modes) {
2245
2408
  (0, _mobx.runInAction)(function () {
2246
2409
  var paymodes = [];
2247
2410
  (0, _each3.default)(modes.SettleStyles, function (mode, index) {
2248
2411
  //产品需求确认会员储值卡结算方式前端展示统一调整为“储值卡" tuzha by 2020-07-08
2249
-
2250
2412
  if (mode.Code == PayStyle.hyczk) {
2251
2413
  mode.Name = '储值卡';
2252
2414
  }
@@ -2261,24 +2423,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
2261
2423
  idBankAccount: mode.IdBankAccount,
2262
2424
  exchangeRate: mode.Currency ? mode.Currency.ExchangeRate : 1,
2263
2425
  idCurrency: mode.Currency ? mode.Currency.ID : -1,
2264
- calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88"
2426
+ calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88",
2427
+ thridPayment: mode.ThirdPaymentInfo
2265
2428
  });
2266
2429
  });
2267
- _this18.paymodes = paymodes;
2268
- //modes.QuickSettleStyles
2430
+ _this20.paymodes = paymodes;
2269
2431
  });
2270
2432
  }
2271
2433
 
2272
2434
  case 7:
2273
2435
  case 'end':
2274
- return _context11.stop();
2436
+ return _context14.stop();
2275
2437
  }
2276
2438
  }
2277
- }, _callee11, this);
2439
+ }, _callee14, this);
2278
2440
  }));
2279
2441
 
2280
- function setPaymodes(_x7, _x8) {
2281
- return _ref25.apply(this, arguments);
2442
+ function setPaymodes(_x9, _x10) {
2443
+ return _ref30.apply(this, arguments);
2282
2444
  }
2283
2445
 
2284
2446
  return setPaymodes;
@@ -2295,57 +2457,57 @@ var PayMode = exports.PayMode = (_class3 = function () {
2295
2457
  }
2296
2458
  }]);
2297
2459
  return PayMode;
2298
- }(), (_descriptor5 = _applyDecoratedDescriptor(_class3.prototype, 'currentFocus', [_mobx.observable], {
2460
+ }(), (_descriptor6 = _applyDecoratedDescriptor(_class3.prototype, 'currentFocus', [_mobx.observable], {
2299
2461
  enumerable: true,
2300
2462
  initializer: function initializer() {
2301
2463
  return "";
2302
2464
  }
2303
- }), _descriptor6 = _applyDecoratedDescriptor(_class3.prototype, 'received', [_mobx.observable], {
2465
+ }), _descriptor7 = _applyDecoratedDescriptor(_class3.prototype, 'received', [_mobx.observable], {
2304
2466
  enumerable: true,
2305
2467
  initializer: function initializer() {
2306
2468
  return 0;
2307
2469
  }
2308
- }), _descriptor7 = _applyDecoratedDescriptor(_class3.prototype, 'receivable', [_mobx.observable], {
2470
+ }), _descriptor8 = _applyDecoratedDescriptor(_class3.prototype, 'receivable', [_mobx.observable], {
2309
2471
  enumerable: true,
2310
2472
  initializer: function initializer() {
2311
2473
  return 0;
2312
2474
  }
2313
- }), _descriptor8 = _applyDecoratedDescriptor(_class3.prototype, 'paymodes', [_mobx.observable], {
2475
+ }), _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, 'paymodes', [_mobx.observable], {
2314
2476
  enumerable: true,
2315
2477
  initializer: function initializer() {
2316
2478
  return [];
2317
2479
  }
2318
- }), _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, 'thePaymodes', [_mobx.observable], {
2480
+ }), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'thePaymodes', [_mobx.observable], {
2319
2481
  enumerable: true,
2320
2482
  initializer: function initializer() {
2321
2483
  return [];
2322
2484
  }
2323
- }), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'storageCardNo', [_mobx.observable], {
2485
+ }), _descriptor11 = _applyDecoratedDescriptor(_class3.prototype, 'storageCardNo', [_mobx.observable], {
2324
2486
  enumerable: true,
2325
2487
  initializer: function initializer() {
2326
2488
  return null;
2327
2489
  }
2328
- }), _descriptor11 = _applyDecoratedDescriptor(_class3.prototype, 'balance', [_mobx.observable], {
2490
+ }), _descriptor12 = _applyDecoratedDescriptor(_class3.prototype, 'balance', [_mobx.observable], {
2329
2491
  enumerable: true,
2330
2492
  initializer: function initializer() {
2331
2493
  return null;
2332
2494
  }
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), _descriptor12 = _applyDecoratedDescriptor(_class3.prototype, 'calcCheckList', [_mobx.action], {
2495
+ }), _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
2496
  enumerable: true,
2335
2497
  initializer: function initializer() {
2336
- var _this19 = this;
2498
+ var _this21 = this;
2337
2499
 
2338
2500
  return function () {
2339
- _this19.checkList = [];
2501
+ _this21.checkList = [];
2340
2502
  };
2341
2503
  }
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), _descriptor13 = _applyDecoratedDescriptor(_class3.prototype, 'setCouponNum', [_mobx.action], {
2504
+ }), _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
2505
  enumerable: true,
2344
2506
  initializer: function initializer() {
2345
- var _this20 = this;
2507
+ var _this22 = this;
2346
2508
 
2347
2509
  return function (id, couponNum, promoMethodEnum, nominalAmount, promoDiscount) {
2348
- _this20.currentMode.djqs.forEach(function (ele) {
2510
+ _this22.currentMode.djqs.forEach(function (ele) {
2349
2511
  if (ele.id === id) {
2350
2512
  promoMethodEnum == "CASH_COUPON" ? ele.amount = nominalAmount : ele.amount = promoDiscount;
2351
2513
  ele.couponCategoryEnum = couponNum;
@@ -2355,10 +2517,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
2355
2517
  });
2356
2518
  };
2357
2519
  }
2358
- }), _descriptor14 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
2520
+ }), _descriptor15 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
2359
2521
  enumerable: true,
2360
2522
  initializer: function initializer() {
2361
- var _this21 = this;
2523
+ var _this23 = this;
2362
2524
 
2363
2525
  return function (promoCouponCode, name, IsEnable, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id) {
2364
2526
  var djq = {
@@ -2380,25 +2542,25 @@ var PayMode = exports.PayMode = (_class3 = function () {
2380
2542
  couponCategoryEnum: couponCategoryEnum,
2381
2543
  id: id
2382
2544
  };
2383
- _this21.currentMode.djqs.push(djq);
2545
+ _this23.currentMode.djqs.push(djq);
2384
2546
  };
2385
2547
  }
2386
2548
  }), _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
2549
  var Member = exports.Member = (_class5 = function () {
2388
2550
  function Member(m) {
2389
- var _this22 = this;
2551
+ var _this24 = this;
2390
2552
 
2391
2553
  (0, _classCallCheck3.default)(this, Member);
2392
2554
 
2393
- _initDefineProp(this, 'cardNo', _descriptor15, this);
2555
+ _initDefineProp(this, 'cardNo', _descriptor16, this);
2394
2556
 
2395
- _initDefineProp(this, 'balance', _descriptor16, this);
2557
+ _initDefineProp(this, 'balance', _descriptor17, this);
2396
2558
 
2397
- _initDefineProp(this, 'exchangable', _descriptor17, this);
2559
+ _initDefineProp(this, 'exchangable', _descriptor18, this);
2398
2560
 
2399
- _initDefineProp(this, 'meStorageCardId', _descriptor18, this);
2561
+ _initDefineProp(this, 'meStorageCardId', _descriptor19, this);
2400
2562
 
2401
- _initDefineProp(this, 'storageCardNo', _descriptor19, this);
2563
+ _initDefineProp(this, 'storageCardNo', _descriptor20, this);
2402
2564
 
2403
2565
  if (m) {
2404
2566
  this.id = m.ID;
@@ -2409,15 +2571,15 @@ var Member = exports.Member = (_class5 = function () {
2409
2571
  return key == 'canusedbalancestorage';
2410
2572
  });
2411
2573
 
2412
- var _ref26 = _mutantsUtil.platform || {},
2413
- isNewRetailBCPos = _ref26.isNewRetailBCPos;
2574
+ var _ref31 = _mutantsUtil.platform || {},
2575
+ isNewRetailBCPos = _ref31.isNewRetailBCPos;
2414
2576
 
2415
2577
  (0, _mobx.runInAction)(function () {
2416
- _this22.cardNo = m.CardCode;
2578
+ _this24.cardNo = m.CardCode;
2417
2579
  if (index >= 0) {
2418
- _this22.balance = parseFloat(m.DynamicPropertyValues[index]);
2580
+ _this24.balance = parseFloat(m.DynamicPropertyValues[index]);
2419
2581
  } else {
2420
- _this22.balance = _this22.rawbalance;
2582
+ _this24.balance = _this24.rawbalance;
2421
2583
  }
2422
2584
  });
2423
2585
  this.needPwd = m.MemberType ? m.MemberType.IsNeedPwd : false;
@@ -2439,19 +2601,19 @@ var Member = exports.Member = (_class5 = function () {
2439
2601
  }
2440
2602
  }]);
2441
2603
  return Member;
2442
- }(), (_descriptor15 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
2604
+ }(), (_descriptor16 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
2443
2605
  enumerable: true,
2444
2606
  initializer: null
2445
- }), _descriptor16 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
2607
+ }), _descriptor17 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
2446
2608
  enumerable: true,
2447
2609
  initializer: null
2448
- }), _descriptor17 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
2610
+ }), _descriptor18 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
2449
2611
  enumerable: true,
2450
2612
  initializer: null
2451
- }), _descriptor18 = _applyDecoratedDescriptor(_class5.prototype, 'meStorageCardId', [_mobx.observable], {
2613
+ }), _descriptor19 = _applyDecoratedDescriptor(_class5.prototype, 'meStorageCardId', [_mobx.observable], {
2452
2614
  enumerable: true,
2453
2615
  initializer: null
2454
- }), _descriptor19 = _applyDecoratedDescriptor(_class5.prototype, 'storageCardNo', [_mobx.observable], {
2616
+ }), _descriptor20 = _applyDecoratedDescriptor(_class5.prototype, 'storageCardNo', [_mobx.observable], {
2455
2617
  enumerable: true,
2456
2618
  initializer: null
2457
2619
  }), _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);