tplus-components-touch 3.25.2 → 3.26.1

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.
@@ -661,12 +661,25 @@
661
661
  padding-top:25px;
662
662
  padding-left:30px;
663
663
  padding-right: 20px;
664
- .settlement-pay-item-border {
665
- border-bottom: 1px solid #FF8C25 !important;
664
+ width: 300px;
665
+ position: relative;
666
+ .minus {
667
+ text-align: center;
668
+ display: inline-block;
669
+ height: 40px;
670
+ line-height: 40px;
671
+ width: 40px;
672
+ position: absolute;
673
+ left: 284px;
674
+ top: 34px;
675
+ .minusIcon {
676
+ font-size: 24px;
677
+ }
666
678
  }
667
679
  .main{
668
680
  display: flex;
669
- border-bottom: 1px solid #C8C8CD;
681
+ border-bottom-width: 1px;
682
+ border-bottom-style: solid;
670
683
  .content{
671
684
  display: inline-block;
672
685
  vertical-align: top;
@@ -700,8 +713,8 @@
700
713
  }
701
714
  .lefticon{
702
715
  display: inline-block;
703
- width: 20px;
704
716
  margin-right: 16px;
717
+ position: absolute;
705
718
  i{
706
719
  font-size: 20px;
707
720
  }
@@ -715,6 +728,7 @@
715
728
  }
716
729
  }
717
730
  .name{
731
+ margin-left: 6px;
718
732
  width: 100px;
719
733
  display: inline-block;
720
734
  font-size: 16px;
@@ -733,6 +747,22 @@
733
747
  padding-left: 36px;
734
748
  padding-top: 6px;
735
749
  padding-right: 60px;
750
+ .addCard {
751
+ width: 112px;
752
+ height: 32px;
753
+ border-radius: 4px;
754
+ text-align: center;
755
+ border: none;
756
+ font-size: 16px;
757
+ display: flex;
758
+ align-items: center;
759
+ border: none;
760
+ padding-top: 16px !important;
761
+ .plus {
762
+ font-size: 18px;
763
+ margin-right: 6px;
764
+ }
765
+ }
736
766
  }
737
767
  }
738
768
 
@@ -936,6 +966,22 @@
936
966
  padding-left: 74px;
937
967
  padding-top: 6px;
938
968
  padding-right: 60px;
969
+ .addCard {
970
+ width: 112px;
971
+ height: 32px;
972
+ border-radius: 4px;
973
+ text-align: center;
974
+ border: none;
975
+ font-size: 16px;
976
+ display: flex;
977
+ align-items: center;
978
+ border: none;
979
+ padding-top: 16px !important;
980
+ .plus {
981
+ font-size: 18px;
982
+ margin-right: 6px;
983
+ }
984
+ }
939
985
  }
940
986
 
941
987
  }
@@ -611,7 +611,7 @@ var SettlementStore = (_class = function () {
611
611
  }, {
612
612
  key: 'getLoginInfo',
613
613
  value: function getLoginInfo() {
614
- var _ref7 = _mutantsMicrofx.stores.user || {},
614
+ var _ref7 = _mutantsMicrofx.localStore.get('user') || {},
615
615
  _ref7$loginInfo = _ref7.loginInfo,
616
616
  loginInfo = _ref7$loginInfo === undefined ? {} : _ref7$loginInfo;
617
617
 
@@ -642,16 +642,10 @@ var SettlementStore = (_class = function () {
642
642
  return (0, _tplusApi.ccApi)({ code: v }, address, false, false, { method: 'get', timeout_skip: true }).then(function (result) {
643
643
  var data = result.data;
644
644
  var m = data;
645
-
646
- var _ref9 = _mutantsUtil.platform || {},
647
- isNewRetailBCPos = _ref9.isNewRetailBCPos;
648
-
649
- if (isNewRetailBCPos) {
650
- _this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
651
- _this7.paymode && _this7.paymode.currentMode.member.setStorageCardNo(m.StorageCardNo);
652
- _this7.paymode && (_this7.paymode.currentMode.MeStorageCardId = m.MeStorageCardId);
653
- _this7.paymode && (_this7.paymode.currentMode.StorageCardNo = m.StorageCardNo);
654
- }
645
+ _this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
646
+ _this7.paymode && _this7.paymode.currentMode.member.setStorageCardNo(m.StorageCardNo);
647
+ _this7.paymode && (_this7.paymode.currentMode.MeStorageCardId = m.MeStorageCardId);
648
+ _this7.paymode && (_this7.paymode.currentMode.StorageCardNo = m.StorageCardNo);
655
649
  if (!m || !m.ID) {
656
650
  (0, _mobx.runInAction)(function () {
657
651
  _this7.paymode.currentMode.errinfo = "无效的会员卡号";
@@ -689,8 +683,8 @@ var SettlementStore = (_class = function () {
689
683
  var data = JSON.parse(result.Data);
690
684
  var m = data && data.length > 0 && data[0];
691
685
 
692
- var _ref10 = _mutantsUtil.platform || {},
693
- isNewRetailBCPos = _ref10.isNewRetailBCPos;
686
+ var _ref9 = _mutantsUtil.platform || {},
687
+ isNewRetailBCPos = _ref9.isNewRetailBCPos;
694
688
 
695
689
  if (isNewRetailBCPos) {
696
690
  _this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
@@ -984,8 +978,8 @@ var SettlementStore = (_class = function () {
984
978
  }, {
985
979
  key: 'commit',
986
980
  value: function () {
987
- var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
988
- var _ref12, isNewRetailBCPos;
981
+ var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
982
+ var _ref11, isNewRetailBCPos;
989
983
 
990
984
  return _regenerator2.default.wrap(function _callee2$(_context2) {
991
985
  while (1) {
@@ -1001,7 +995,7 @@ var SettlementStore = (_class = function () {
1001
995
  return _context2.abrupt('return', _promise2.default.resolve(true));
1002
996
 
1003
997
  case 3:
1004
- _ref12 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref12.isNewRetailBCPos;
998
+ _ref11 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref11.isNewRetailBCPos;
1005
999
  _context2.prev = 4;
1006
1000
 
1007
1001
  if (!(this.type == 1)) {
@@ -1057,7 +1051,7 @@ var SettlementStore = (_class = function () {
1057
1051
  }));
1058
1052
 
1059
1053
  function commit(_x2) {
1060
- return _ref11.apply(this, arguments);
1054
+ return _ref10.apply(this, arguments);
1061
1055
  }
1062
1056
 
1063
1057
  return commit;
@@ -1115,10 +1109,10 @@ var SettlementStore = (_class = function () {
1115
1109
  }, {
1116
1110
  key: 'save',
1117
1111
  value: function () {
1118
- var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
1112
+ var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
1119
1113
  var _this11 = this;
1120
1114
 
1121
- var _enumController$getEn14, PayStyle, _ref15, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1115
+ var _enumController$getEn14, PayStyle, _ref14, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1122
1116
 
1123
1117
  return _regenerator2.default.wrap(function _callee3$(_context3) {
1124
1118
  while (1) {
@@ -1198,8 +1192,8 @@ var SettlementStore = (_class = function () {
1198
1192
  }
1199
1193
  });
1200
1194
 
1201
- var _ref14 = _mutantsUtil.platform || {},
1202
- isNewRetailBCPos = _ref14.isNewRetailBCPos;
1195
+ var _ref13 = _mutantsUtil.platform || {},
1196
+ isNewRetailBCPos = _ref13.isNewRetailBCPos;
1203
1197
 
1204
1198
  if (_this11.dto.RetailStorageDetails.length > 0) {
1205
1199
  var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
@@ -1233,7 +1227,7 @@ var SettlementStore = (_class = function () {
1233
1227
  _this11.dto.Idmember = Idmember;
1234
1228
  }
1235
1229
  });
1236
- _ref15 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref15.isNewRetailBCPos;
1230
+ _ref14 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref14.isNewRetailBCPos;
1237
1231
 
1238
1232
  console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
1239
1233
 
@@ -1303,7 +1297,7 @@ var SettlementStore = (_class = function () {
1303
1297
  }));
1304
1298
 
1305
1299
  function save() {
1306
- return _ref13.apply(this, arguments);
1300
+ return _ref12.apply(this, arguments);
1307
1301
  }
1308
1302
 
1309
1303
  return save;
@@ -1316,7 +1310,7 @@ var SettlementStore = (_class = function () {
1316
1310
  }, {
1317
1311
  key: 'querySettleResult',
1318
1312
  value: function () {
1319
- var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1313
+ var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1320
1314
  return _regenerator2.default.wrap(function _callee4$(_context4) {
1321
1315
  while (1) {
1322
1316
  switch (_context4.prev = _context4.next) {
@@ -1344,7 +1338,7 @@ var SettlementStore = (_class = function () {
1344
1338
  }));
1345
1339
 
1346
1340
  function querySettleResult() {
1347
- return _ref16.apply(this, arguments);
1341
+ return _ref15.apply(this, arguments);
1348
1342
  }
1349
1343
 
1350
1344
  return querySettleResult;
@@ -1370,14 +1364,14 @@ var SettlementStore = (_class = function () {
1370
1364
  }, {
1371
1365
  key: 'validePwd',
1372
1366
  value: function () {
1373
- var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
1374
- var _ref18, isNewRetailBCPos, cook1, cook2, message, memberId, result, count, _result;
1367
+ var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
1368
+ var _ref17, isNewRetailBCPos, cook1, cook2, message, memberId, result, count, _result;
1375
1369
 
1376
1370
  return _regenerator2.default.wrap(function _callee5$(_context5) {
1377
1371
  while (1) {
1378
1372
  switch (_context5.prev = _context5.next) {
1379
1373
  case 0:
1380
- _ref18 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref18.isNewRetailBCPos;
1374
+ _ref17 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref17.isNewRetailBCPos;
1381
1375
  _context5.prev = 1;
1382
1376
 
1383
1377
  if (!isNewRetailBCPos) {
@@ -1462,7 +1456,7 @@ var SettlementStore = (_class = function () {
1462
1456
  }));
1463
1457
 
1464
1458
  function validePwd(_x3) {
1465
- return _ref17.apply(this, arguments);
1459
+ return _ref16.apply(this, arguments);
1466
1460
  }
1467
1461
 
1468
1462
  return validePwd;
@@ -1501,7 +1495,7 @@ var SettlementStore = (_class = function () {
1501
1495
  var _this13 = this;
1502
1496
 
1503
1497
  return function () {
1504
- var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1498
+ var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1505
1499
  var _getLoginInfo, IdStore, StoreCode, resp;
1506
1500
 
1507
1501
  return _regenerator2.default.wrap(function _callee6$(_context6) {
@@ -1528,7 +1522,7 @@ var SettlementStore = (_class = function () {
1528
1522
  }));
1529
1523
 
1530
1524
  return function (_x4) {
1531
- return _ref19.apply(this, arguments);
1525
+ return _ref18.apply(this, arguments);
1532
1526
  };
1533
1527
  }();
1534
1528
  }
@@ -1620,8 +1614,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
1620
1614
  this.checkList = [];
1621
1615
  }
1622
1616
 
1623
- var _ref20 = _mutantsUtil.platform || {},
1624
- isNewRetailBCPos = _ref20.isNewRetailBCPos;
1617
+ var _ref19 = _mutantsUtil.platform || {},
1618
+ isNewRetailBCPos = _ref19.isNewRetailBCPos;
1625
1619
 
1626
1620
  var _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(),
1627
1621
  PayStyle = _enumController$getEn15.PayStyle,
@@ -1731,18 +1725,18 @@ var PayMode = exports.PayMode = (_class3 = function () {
1731
1725
  }
1732
1726
  });
1733
1727
 
1734
- var _ref21 = element || {},
1735
- couponCode = _ref21.couponCode,
1736
- name = _ref21.name,
1737
- tieredAmountResult = _ref21.tieredAmountResult,
1738
- fromDate = _ref21.fromDate,
1739
- dateMount = _ref21.dateMount,
1740
- promoMethodEnum = _ref21.promoMethodEnum,
1741
- discountPct = _ref21.discountPct,
1742
- nominalAmount = _ref21.nominalAmount,
1743
- promoId = _ref21.promoId,
1744
- id = _ref21.id,
1745
- doorsill = _ref21.doorsill;
1728
+ var _ref20 = element || {},
1729
+ couponCode = _ref20.couponCode,
1730
+ name = _ref20.name,
1731
+ tieredAmountResult = _ref20.tieredAmountResult,
1732
+ fromDate = _ref20.fromDate,
1733
+ dateMount = _ref20.dateMount,
1734
+ promoMethodEnum = _ref20.promoMethodEnum,
1735
+ discountPct = _ref20.discountPct,
1736
+ nominalAmount = _ref20.nominalAmount,
1737
+ promoId = _ref20.promoId,
1738
+ id = _ref20.id,
1739
+ doorsill = _ref20.doorsill;
1746
1740
 
1747
1741
  var condValue = tieredAmountResult.condValue,
1748
1742
  promoDiscount = tieredAmountResult.promoDiscount,
@@ -1786,8 +1780,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
1786
1780
  }, {
1787
1781
  key: 'calcDjqValue',
1788
1782
  value: function calcDjqValue(q1) {
1789
- var _ref22 = _mutantsUtil.platform || {},
1790
- isNewRetailBCPos = _ref22.isNewRetailBCPos;
1783
+ var _ref21 = _mutantsUtil.platform || {},
1784
+ isNewRetailBCPos = _ref21.isNewRetailBCPos;
1791
1785
 
1792
1786
  var _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(),
1793
1787
  Differentiate = _enumController$getEn16.Differentiate;
@@ -1863,7 +1857,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1863
1857
 
1864
1858
  if (this.amount > 0 && (v === '' || v === '0.00') && sum !== 0) {
1865
1859
  this.currentMode.errinfo = "实收金额必须录入";
1866
- } else if (Math.abs(parseFloat(v)) > Math.abs(sum)) {
1860
+ } else if (Math.abs(parseFloat(v)) > Math.abs((0, _utils.getFixedNumber)(sum))) {
1867
1861
  this.currentMode.errinfo = "实收不应大于应收";
1868
1862
  } else if (parseFloat(v) > 0 && parseFloat(v) > (max || 0)) {
1869
1863
  this.currentMode.errinfo = "余额不足";
@@ -1877,7 +1871,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1877
1871
  }, {
1878
1872
  key: 'setPaymodes',
1879
1873
  value: function () {
1880
- var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
1874
+ var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
1881
1875
  var _this15 = this;
1882
1876
 
1883
1877
  var _enumController$getEn18, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
@@ -1902,7 +1896,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1902
1896
  //产品需求确认会员储值卡结算方式前端展示统一调整为“储值卡" tuzha by 2020-07-08
1903
1897
 
1904
1898
  if (mode.Code == PayStyle.hyczk) {
1905
- mode.Name = '储值余额';
1899
+ mode.Name = '储值卡';
1906
1900
  }
1907
1901
  paymodes.push({
1908
1902
  name: mode.Name,
@@ -1932,7 +1926,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1932
1926
  }));
1933
1927
 
1934
1928
  function setPaymodes(_x5, _x6) {
1935
- return _ref23.apply(this, arguments);
1929
+ return _ref22.apply(this, arguments);
1936
1930
  }
1937
1931
 
1938
1932
  return setPaymodes;
@@ -2053,8 +2047,8 @@ var Member = exports.Member = (_class5 = function () {
2053
2047
  return key == 'canusedbalancestorage';
2054
2048
  });
2055
2049
 
2056
- var _ref24 = _mutantsUtil.platform || {},
2057
- isNewRetailBCPos = _ref24.isNewRetailBCPos;
2050
+ var _ref23 = _mutantsUtil.platform || {},
2051
+ isNewRetailBCPos = _ref23.isNewRetailBCPos;
2058
2052
 
2059
2053
  m.StorageCardNo && (this.StorageCardNo = m.StorageCardNo);
2060
2054
  m.MeStorageCardId && (this.MeStorageCardId = m.MeStorageCardId);