tplus-components-touch 3.24.1 → 3.25.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/inventorySearch/store.js +31 -12
- package/dist/components/inventorySearch/store.js.map +1 -1
- package/dist/components/settlement/prototypeTable/style.less +1 -1
- package/dist/components/settlement/settlement.js +9 -6
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +5 -4
- package/dist/components/settlement/settlementStore.js +88 -75
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/socket/index.js +6 -5
- package/dist/components/socket/index.js.map +1 -1
- package/dist/components/ticon/iconfont/demo_index.html +5202 -5202
- package/dist/components/ticon/iconfont/iconfont.css +887 -887
- package/dist/components/ticon/iconfont/iconfont.json +1535 -1535
- package/dist/components/touchTable/index.js +2 -1
- package/dist/components/touchTable/index.js.map +1 -1
- package/dist/util/tools.js +5 -7
- package/dist/util/tools.js.map +1 -1
- package/package.json +3 -3
|
@@ -484,11 +484,12 @@
|
|
|
484
484
|
cursor: pointer;
|
|
485
485
|
.name{
|
|
486
486
|
// padding-left:23px;
|
|
487
|
-
padding-top:
|
|
487
|
+
padding-top: 15px;
|
|
488
488
|
padding-bottom: 19px;
|
|
489
|
-
font-size:
|
|
490
|
-
line-height:
|
|
491
|
-
width:
|
|
489
|
+
font-size: 14px;
|
|
490
|
+
line-height: 1.3;
|
|
491
|
+
width: 120px;
|
|
492
|
+
height: 58px;
|
|
492
493
|
text-indent: 0;
|
|
493
494
|
padding-left: 14px;
|
|
494
495
|
display: -webkit-box;
|
|
@@ -109,6 +109,10 @@ var _moment = require('moment');
|
|
|
109
109
|
|
|
110
110
|
var _moment2 = _interopRequireDefault(_moment);
|
|
111
111
|
|
|
112
|
+
var _reduce2 = require('lodash/reduce');
|
|
113
|
+
|
|
114
|
+
var _reduce3 = _interopRequireDefault(_reduce2);
|
|
115
|
+
|
|
112
116
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
113
117
|
|
|
114
118
|
function _initDefineProp(target, property, descriptor, context) {
|
|
@@ -607,11 +611,7 @@ var SettlementStore = (_class = function () {
|
|
|
607
611
|
}, {
|
|
608
612
|
key: 'getLoginInfo',
|
|
609
613
|
value: function getLoginInfo() {
|
|
610
|
-
|
|
611
|
-
_ref7$loginInfo = _ref7.loginInfo,
|
|
612
|
-
loginInfo = _ref7$loginInfo === undefined ? {} : _ref7$loginInfo;
|
|
613
|
-
|
|
614
|
-
return loginInfo;
|
|
614
|
+
return _mutantsMicrofx.stores.user.options.get('loginInfo');
|
|
615
615
|
}
|
|
616
616
|
}, {
|
|
617
617
|
key: 'loadCzk',
|
|
@@ -628,8 +628,8 @@ var SettlementStore = (_class = function () {
|
|
|
628
628
|
var IdStore = this.storeInfo.storeID;
|
|
629
629
|
var StoreCode = this.storeInfo.storeCode; //_find(this.storeInfo.storeInfos,(store)=>{return store.ID==IdStore;}).Code;
|
|
630
630
|
|
|
631
|
-
var
|
|
632
|
-
isNewRetailBCPos =
|
|
631
|
+
var _ref7 = _mutantsUtil.platform || {},
|
|
632
|
+
isNewRetailBCPos = _ref7.isNewRetailBCPos;
|
|
633
633
|
|
|
634
634
|
var address = '';
|
|
635
635
|
if (isNewRetailBCPos) {
|
|
@@ -639,8 +639,8 @@ var SettlementStore = (_class = function () {
|
|
|
639
639
|
var data = result.data;
|
|
640
640
|
var m = data;
|
|
641
641
|
|
|
642
|
-
var
|
|
643
|
-
isNewRetailBCPos =
|
|
642
|
+
var _ref8 = _mutantsUtil.platform || {},
|
|
643
|
+
isNewRetailBCPos = _ref8.isNewRetailBCPos;
|
|
644
644
|
|
|
645
645
|
if (isNewRetailBCPos) {
|
|
646
646
|
_this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
|
|
@@ -659,6 +659,9 @@ var SettlementStore = (_class = function () {
|
|
|
659
659
|
_this7.paymode.currentMode.value = (0, _utils.getFixedNumber)(_this7.brefund ? _this7.paymode.receivable : Math.max(_this7.paymode.receivable, 0));
|
|
660
660
|
_this7.updateEvent();
|
|
661
661
|
var message = '';
|
|
662
|
+
var sum = (0, _reduce3.default)(_this7.paymode.thePaymodes, function (total, cur) {
|
|
663
|
+
return total + cur.value;
|
|
664
|
+
}, 0);
|
|
662
665
|
if (global.CheckMemberStorageProcessorBlock) {
|
|
663
666
|
message = CheckMemberStorageProcessorBlock.execute(m);
|
|
664
667
|
}
|
|
@@ -666,7 +669,7 @@ var SettlementStore = (_class = function () {
|
|
|
666
669
|
_this7.paymode.currentMode.errinfo = message;
|
|
667
670
|
} else if (_this7.checkReceived(_this7.paymode.currentMode, "balance")) {
|
|
668
671
|
_this7.paymode.currentMode.errinfo = "余额不足";
|
|
669
|
-
} else if (_this7.paymode.amount > 0 && _this7.paymode.currentMode.value == 0) {
|
|
672
|
+
} else if (_this7.paymode.amount > 0 && parseFloat(_this7.paymode.amount) !== sum && _this7.paymode.currentMode.value == 0) {
|
|
670
673
|
_this7.paymode.currentMode.errinfo = "实收金额必须录入";
|
|
671
674
|
} else {
|
|
672
675
|
// 查询成功后将焦点移入下一个输入框
|
|
@@ -682,8 +685,8 @@ var SettlementStore = (_class = function () {
|
|
|
682
685
|
var data = JSON.parse(result.Data);
|
|
683
686
|
var m = data && data.length > 0 && data[0];
|
|
684
687
|
|
|
685
|
-
var
|
|
686
|
-
isNewRetailBCPos =
|
|
688
|
+
var _ref9 = _mutantsUtil.platform || {},
|
|
689
|
+
isNewRetailBCPos = _ref9.isNewRetailBCPos;
|
|
687
690
|
|
|
688
691
|
if (isNewRetailBCPos) {
|
|
689
692
|
_this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
|
|
@@ -977,8 +980,8 @@ var SettlementStore = (_class = function () {
|
|
|
977
980
|
}, {
|
|
978
981
|
key: 'commit',
|
|
979
982
|
value: function () {
|
|
980
|
-
var
|
|
981
|
-
var
|
|
983
|
+
var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
|
|
984
|
+
var _ref11, isNewRetailBCPos;
|
|
982
985
|
|
|
983
986
|
return _regenerator2.default.wrap(function _callee2$(_context2) {
|
|
984
987
|
while (1) {
|
|
@@ -994,7 +997,7 @@ var SettlementStore = (_class = function () {
|
|
|
994
997
|
return _context2.abrupt('return', _promise2.default.resolve(true));
|
|
995
998
|
|
|
996
999
|
case 3:
|
|
997
|
-
|
|
1000
|
+
_ref11 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref11.isNewRetailBCPos;
|
|
998
1001
|
_context2.prev = 4;
|
|
999
1002
|
|
|
1000
1003
|
if (!(this.type == 1)) {
|
|
@@ -1050,7 +1053,7 @@ var SettlementStore = (_class = function () {
|
|
|
1050
1053
|
}));
|
|
1051
1054
|
|
|
1052
1055
|
function commit(_x2) {
|
|
1053
|
-
return
|
|
1056
|
+
return _ref10.apply(this, arguments);
|
|
1054
1057
|
}
|
|
1055
1058
|
|
|
1056
1059
|
return commit;
|
|
@@ -1108,10 +1111,10 @@ var SettlementStore = (_class = function () {
|
|
|
1108
1111
|
}, {
|
|
1109
1112
|
key: 'save',
|
|
1110
1113
|
value: function () {
|
|
1111
|
-
var
|
|
1114
|
+
var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
|
|
1112
1115
|
var _this11 = this;
|
|
1113
1116
|
|
|
1114
|
-
var _enumController$getEn14, PayStyle,
|
|
1117
|
+
var _enumController$getEn14, PayStyle, _ref14, isNewRetailBCPos, IPMSG, RetailTypeEnum;
|
|
1115
1118
|
|
|
1116
1119
|
return _regenerator2.default.wrap(function _callee3$(_context3) {
|
|
1117
1120
|
while (1) {
|
|
@@ -1191,8 +1194,8 @@ var SettlementStore = (_class = function () {
|
|
|
1191
1194
|
}
|
|
1192
1195
|
});
|
|
1193
1196
|
|
|
1194
|
-
var
|
|
1195
|
-
isNewRetailBCPos =
|
|
1197
|
+
var _ref13 = _mutantsUtil.platform || {},
|
|
1198
|
+
isNewRetailBCPos = _ref13.isNewRetailBCPos;
|
|
1196
1199
|
|
|
1197
1200
|
if (_this11.dto.RetailStorageDetails.length > 0) {
|
|
1198
1201
|
var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
|
|
@@ -1226,7 +1229,7 @@ var SettlementStore = (_class = function () {
|
|
|
1226
1229
|
_this11.dto.Idmember = Idmember;
|
|
1227
1230
|
}
|
|
1228
1231
|
});
|
|
1229
|
-
|
|
1232
|
+
_ref14 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref14.isNewRetailBCPos;
|
|
1230
1233
|
|
|
1231
1234
|
console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
|
|
1232
1235
|
|
|
@@ -1296,7 +1299,7 @@ var SettlementStore = (_class = function () {
|
|
|
1296
1299
|
}));
|
|
1297
1300
|
|
|
1298
1301
|
function save() {
|
|
1299
|
-
return
|
|
1302
|
+
return _ref12.apply(this, arguments);
|
|
1300
1303
|
}
|
|
1301
1304
|
|
|
1302
1305
|
return save;
|
|
@@ -1309,7 +1312,7 @@ var SettlementStore = (_class = function () {
|
|
|
1309
1312
|
}, {
|
|
1310
1313
|
key: 'querySettleResult',
|
|
1311
1314
|
value: function () {
|
|
1312
|
-
var
|
|
1315
|
+
var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
|
|
1313
1316
|
return _regenerator2.default.wrap(function _callee4$(_context4) {
|
|
1314
1317
|
while (1) {
|
|
1315
1318
|
switch (_context4.prev = _context4.next) {
|
|
@@ -1337,7 +1340,7 @@ var SettlementStore = (_class = function () {
|
|
|
1337
1340
|
}));
|
|
1338
1341
|
|
|
1339
1342
|
function querySettleResult() {
|
|
1340
|
-
return
|
|
1343
|
+
return _ref15.apply(this, arguments);
|
|
1341
1344
|
}
|
|
1342
1345
|
|
|
1343
1346
|
return querySettleResult;
|
|
@@ -1363,98 +1366,99 @@ var SettlementStore = (_class = function () {
|
|
|
1363
1366
|
}, {
|
|
1364
1367
|
key: 'validePwd',
|
|
1365
1368
|
value: function () {
|
|
1366
|
-
var
|
|
1367
|
-
var
|
|
1369
|
+
var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
|
|
1370
|
+
var _ref17, isNewRetailBCPos, cook1, cook2, message, memberId, result, count, _result;
|
|
1368
1371
|
|
|
1369
1372
|
return _regenerator2.default.wrap(function _callee5$(_context5) {
|
|
1370
1373
|
while (1) {
|
|
1371
1374
|
switch (_context5.prev = _context5.next) {
|
|
1372
1375
|
case 0:
|
|
1373
|
-
|
|
1376
|
+
_ref17 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref17.isNewRetailBCPos;
|
|
1374
1377
|
_context5.prev = 1;
|
|
1375
1378
|
|
|
1376
1379
|
if (!isNewRetailBCPos) {
|
|
1377
|
-
_context5.next =
|
|
1380
|
+
_context5.next = 19;
|
|
1378
1381
|
break;
|
|
1379
1382
|
}
|
|
1380
1383
|
|
|
1381
1384
|
cook1 = this.getAllCookies()['errorPwd'];
|
|
1382
1385
|
cook2 = cook1 && JSON.parse(cook1);
|
|
1383
1386
|
message = '密码输入错误';
|
|
1387
|
+
memberId = this.paymode.currentMode.member.MeStorageCardId;
|
|
1384
1388
|
|
|
1385
1389
|
if (!cook2) {
|
|
1386
|
-
_context5.next =
|
|
1390
|
+
_context5.next = 12;
|
|
1387
1391
|
break;
|
|
1388
1392
|
}
|
|
1389
1393
|
|
|
1390
|
-
if (!cook2.hasOwnProperty(
|
|
1391
|
-
_context5.next =
|
|
1394
|
+
if (!cook2.hasOwnProperty(memberId + "")) {
|
|
1395
|
+
_context5.next = 12;
|
|
1392
1396
|
break;
|
|
1393
1397
|
}
|
|
1394
1398
|
|
|
1395
|
-
if (!(cook2[
|
|
1396
|
-
_context5.next =
|
|
1399
|
+
if (!(cook2[memberId] > 3)) {
|
|
1400
|
+
_context5.next = 12;
|
|
1397
1401
|
break;
|
|
1398
1402
|
}
|
|
1399
1403
|
|
|
1400
1404
|
message = '今日密码错误已达上限,不可使用储值消费,请明日再试,如忘记请重置密码或修改密码。';
|
|
1401
1405
|
return _context5.abrupt('return', _promise2.default.resolve(message));
|
|
1402
1406
|
|
|
1403
|
-
case
|
|
1404
|
-
_context5.next =
|
|
1407
|
+
case 12:
|
|
1408
|
+
_context5.next = 14;
|
|
1405
1409
|
return (0, _tplusApi.ccApi)({ password: _tplusApi.User.pwdEncrypt(value.pwd) }, '/member/MeMemberWallet/checkPaymentPassword/' + value.id, false, false);
|
|
1406
1410
|
|
|
1407
|
-
case
|
|
1411
|
+
case 14:
|
|
1408
1412
|
result = _context5.sent;
|
|
1409
1413
|
|
|
1410
1414
|
if (!result.data) {
|
|
1411
1415
|
if (cook2) {
|
|
1412
|
-
if (cook2.hasOwnProperty(
|
|
1413
|
-
count = cook2[
|
|
1416
|
+
if (cook2.hasOwnProperty(memberId + "")) {
|
|
1417
|
+
count = cook2[memberId];
|
|
1414
1418
|
|
|
1415
|
-
cook2[
|
|
1419
|
+
cook2[memberId] = count + 1;
|
|
1416
1420
|
} else {
|
|
1417
|
-
cook2[
|
|
1421
|
+
cook2[memberId] = 1;
|
|
1418
1422
|
}
|
|
1419
1423
|
} else {
|
|
1420
1424
|
cook2 = {};
|
|
1421
|
-
cook2[
|
|
1425
|
+
cook2[memberId] = 1;
|
|
1422
1426
|
}
|
|
1423
1427
|
this.setCookie('errorPwd', '', -1);
|
|
1424
1428
|
this.setCookie('errorPwd', (0, _stringify2.default)(cook2));
|
|
1425
1429
|
}
|
|
1426
1430
|
return _context5.abrupt('return', _promise2.default.resolve(result.data ? "" : message));
|
|
1427
1431
|
|
|
1428
|
-
case
|
|
1429
|
-
_context5.next =
|
|
1432
|
+
case 19:
|
|
1433
|
+
_context5.next = 21;
|
|
1430
1434
|
return (0, _tplusApi.tApi)({ "CheckoutParams": {
|
|
1431
1435
|
"Idmember": value.id,
|
|
1432
1436
|
"Password": value.pwd
|
|
1433
1437
|
} }, 'AA.DR.newRetailMember.CheckoutMemberPassword', false, false);
|
|
1434
1438
|
|
|
1435
|
-
case
|
|
1439
|
+
case 21:
|
|
1436
1440
|
_result = _context5.sent;
|
|
1437
1441
|
return _context5.abrupt('return', _promise2.default.resolve(_result.Success ? "" : _result.Message));
|
|
1438
1442
|
|
|
1439
|
-
case
|
|
1440
|
-
_context5.next =
|
|
1443
|
+
case 23:
|
|
1444
|
+
_context5.next = 28;
|
|
1441
1445
|
break;
|
|
1442
1446
|
|
|
1443
|
-
case
|
|
1444
|
-
_context5.prev =
|
|
1447
|
+
case 25:
|
|
1448
|
+
_context5.prev = 25;
|
|
1445
1449
|
_context5.t0 = _context5['catch'](1);
|
|
1446
1450
|
return _context5.abrupt('return', "failed");
|
|
1447
1451
|
|
|
1448
|
-
case
|
|
1452
|
+
case 28:
|
|
1449
1453
|
case 'end':
|
|
1450
1454
|
return _context5.stop();
|
|
1451
1455
|
}
|
|
1452
1456
|
}
|
|
1453
|
-
}, _callee5, this, [[1,
|
|
1457
|
+
}, _callee5, this, [[1, 25]]);
|
|
1454
1458
|
}));
|
|
1455
1459
|
|
|
1456
1460
|
function validePwd(_x3) {
|
|
1457
|
-
return
|
|
1461
|
+
return _ref16.apply(this, arguments);
|
|
1458
1462
|
}
|
|
1459
1463
|
|
|
1460
1464
|
return validePwd;
|
|
@@ -1493,7 +1497,7 @@ var SettlementStore = (_class = function () {
|
|
|
1493
1497
|
var _this13 = this;
|
|
1494
1498
|
|
|
1495
1499
|
return function () {
|
|
1496
|
-
var
|
|
1500
|
+
var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
|
|
1497
1501
|
var _getLoginInfo, IdStore, StoreCode, resp;
|
|
1498
1502
|
|
|
1499
1503
|
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
|
@@ -1520,7 +1524,7 @@ var SettlementStore = (_class = function () {
|
|
|
1520
1524
|
}));
|
|
1521
1525
|
|
|
1522
1526
|
return function (_x4) {
|
|
1523
|
-
return
|
|
1527
|
+
return _ref18.apply(this, arguments);
|
|
1524
1528
|
};
|
|
1525
1529
|
}();
|
|
1526
1530
|
}
|
|
@@ -1612,8 +1616,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1612
1616
|
this.checkList = [];
|
|
1613
1617
|
}
|
|
1614
1618
|
|
|
1615
|
-
var
|
|
1616
|
-
isNewRetailBCPos =
|
|
1619
|
+
var _ref19 = _mutantsUtil.platform || {},
|
|
1620
|
+
isNewRetailBCPos = _ref19.isNewRetailBCPos;
|
|
1617
1621
|
|
|
1618
1622
|
var _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(),
|
|
1619
1623
|
PayStyle = _enumController$getEn15.PayStyle,
|
|
@@ -1679,12 +1683,21 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1679
1683
|
detailDTO.isManualFreeGift = item.IsPresent;
|
|
1680
1684
|
detailDTO.isListPriceIncludingTax = item.TaxFlag || true;
|
|
1681
1685
|
detailDTO.IsManualChangePrice = item.IsManualChangePrice;
|
|
1686
|
+
|
|
1687
|
+
// if(detailDTO.IsManualChangePrice)//如果是手工改价
|
|
1688
|
+
// {
|
|
1689
|
+
// detailDTO.listPrice = item.TaxPrice;
|
|
1690
|
+
// detailDTO.netAmountWithTax = item.TaxAmount;
|
|
1691
|
+
// }
|
|
1692
|
+
// else
|
|
1693
|
+
// {
|
|
1682
1694
|
var bookingQuantity = 0;
|
|
1683
1695
|
if (item.BookingQuantity) {
|
|
1684
1696
|
bookingQuantity = item.BookingQuantity;
|
|
1685
1697
|
}
|
|
1686
1698
|
detailDTO.listPrice = JSON.getCellValue(item, "listPrice");
|
|
1687
1699
|
detailDTO.netAmountWithTax = Math.Multiply(detailDTO.listPrice, Math.Minus(item.Quantity, bookingQuantity)); //item.TaxAmount;
|
|
1700
|
+
//}
|
|
1688
1701
|
detailDTO.taxRate = item.TaxRate;
|
|
1689
1702
|
detailDTO.quantity = item.Quantity;
|
|
1690
1703
|
|
|
@@ -1714,18 +1727,18 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1714
1727
|
}
|
|
1715
1728
|
});
|
|
1716
1729
|
|
|
1717
|
-
var
|
|
1718
|
-
couponCode =
|
|
1719
|
-
name =
|
|
1720
|
-
tieredAmountResult =
|
|
1721
|
-
fromDate =
|
|
1722
|
-
dateMount =
|
|
1723
|
-
promoMethodEnum =
|
|
1724
|
-
discountPct =
|
|
1725
|
-
nominalAmount =
|
|
1726
|
-
promoId =
|
|
1727
|
-
id =
|
|
1728
|
-
doorsill =
|
|
1730
|
+
var _ref20 = element || {},
|
|
1731
|
+
couponCode = _ref20.couponCode,
|
|
1732
|
+
name = _ref20.name,
|
|
1733
|
+
tieredAmountResult = _ref20.tieredAmountResult,
|
|
1734
|
+
fromDate = _ref20.fromDate,
|
|
1735
|
+
dateMount = _ref20.dateMount,
|
|
1736
|
+
promoMethodEnum = _ref20.promoMethodEnum,
|
|
1737
|
+
discountPct = _ref20.discountPct,
|
|
1738
|
+
nominalAmount = _ref20.nominalAmount,
|
|
1739
|
+
promoId = _ref20.promoId,
|
|
1740
|
+
id = _ref20.id,
|
|
1741
|
+
doorsill = _ref20.doorsill;
|
|
1729
1742
|
|
|
1730
1743
|
var condValue = tieredAmountResult.condValue,
|
|
1731
1744
|
promoDiscount = tieredAmountResult.promoDiscount,
|
|
@@ -1769,8 +1782,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1769
1782
|
}, {
|
|
1770
1783
|
key: 'calcDjqValue',
|
|
1771
1784
|
value: function calcDjqValue(q1) {
|
|
1772
|
-
var
|
|
1773
|
-
isNewRetailBCPos =
|
|
1785
|
+
var _ref21 = _mutantsUtil.platform || {},
|
|
1786
|
+
isNewRetailBCPos = _ref21.isNewRetailBCPos;
|
|
1774
1787
|
|
|
1775
1788
|
var _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(),
|
|
1776
1789
|
Differentiate = _enumController$getEn16.Differentiate;
|
|
@@ -1838,13 +1851,13 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1838
1851
|
var _enumController$getEn17 = _mutantsUtil.enumController.getEnumOj(),
|
|
1839
1852
|
PayStyle = _enumController$getEn17.PayStyle;
|
|
1840
1853
|
|
|
1841
|
-
this.
|
|
1854
|
+
this.thePaymodes && this.thePaymodes.forEach(function (mode) {
|
|
1842
1855
|
if (mode.paymentType === PayStyle.hyczk) {
|
|
1843
1856
|
sum -= mode.value;
|
|
1844
1857
|
}
|
|
1845
1858
|
});
|
|
1846
1859
|
|
|
1847
|
-
if (this.amount > 0 && (v === '' || v === '0.00')) {
|
|
1860
|
+
if (this.amount > 0 && (v === '' || v === '0.00') && sum !== 0) {
|
|
1848
1861
|
this.currentMode.errinfo = "实收金额必须录入";
|
|
1849
1862
|
} else if (Math.abs(parseFloat(v)) > Math.abs(sum)) {
|
|
1850
1863
|
this.currentMode.errinfo = "实收不应大于应收";
|
|
@@ -1860,7 +1873,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1860
1873
|
}, {
|
|
1861
1874
|
key: 'setPaymodes',
|
|
1862
1875
|
value: function () {
|
|
1863
|
-
var
|
|
1876
|
+
var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
|
|
1864
1877
|
var _this15 = this;
|
|
1865
1878
|
|
|
1866
1879
|
var _enumController$getEn18, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
|
|
@@ -1915,7 +1928,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1915
1928
|
}));
|
|
1916
1929
|
|
|
1917
1930
|
function setPaymodes(_x5, _x6) {
|
|
1918
|
-
return
|
|
1931
|
+
return _ref22.apply(this, arguments);
|
|
1919
1932
|
}
|
|
1920
1933
|
|
|
1921
1934
|
return setPaymodes;
|
|
@@ -2036,8 +2049,8 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2036
2049
|
return key == 'canusedbalancestorage';
|
|
2037
2050
|
});
|
|
2038
2051
|
|
|
2039
|
-
var
|
|
2040
|
-
isNewRetailBCPos =
|
|
2052
|
+
var _ref23 = _mutantsUtil.platform || {},
|
|
2053
|
+
isNewRetailBCPos = _ref23.isNewRetailBCPos;
|
|
2041
2054
|
|
|
2042
2055
|
m.StorageCardNo && (this.StorageCardNo = m.StorageCardNo);
|
|
2043
2056
|
m.MeStorageCardId && (this.MeStorageCardId = m.MeStorageCardId);
|