tplus-components-touch 3.40.1 → 3.41.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.
- package/dist/components/billSearch/api.js +74 -13
- package/dist/components/billSearch/api.js.map +1 -1
- package/dist/components/billSearch/index.js +76 -41
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/commonForm/addressPicker/index.js +16 -7
- package/dist/components/commonForm/addressPicker/index.js.map +1 -1
- package/dist/components/commonForm/datePicker/index.js +6 -3
- package/dist/components/commonForm/datePicker/index.js.map +1 -1
- package/dist/components/commonForm/formControl/index.js +2 -1
- package/dist/components/commonForm/formControl/index.js.map +1 -1
- package/dist/components/commonForm/index.js +9 -3
- package/dist/components/commonForm/index.js.map +1 -1
- package/dist/components/deliverySearch/index.js +1 -5
- package/dist/components/deliverySearch/index.js.map +1 -1
- package/dist/components/hotKey/localConfig.js +52 -0
- package/dist/components/hotKey/localConfig.js.map +1 -1
- package/dist/components/input/style.less +7 -0
- package/dist/components/inventorySearch/tab.js +1 -6
- package/dist/components/inventorySearch/tab.js.map +1 -1
- package/dist/components/layout/style.less +1 -1
- package/dist/components/loading/loadingContent.js +2 -5
- package/dist/components/loading/loadingContent.js.map +1 -1
- package/dist/components/message/index.js +5 -4
- package/dist/components/message/index.js.map +1 -1
- package/dist/components/notification/index.js +12 -11
- package/dist/components/notification/index.js.map +1 -1
- package/dist/components/presale/pickup.js +479 -0
- package/dist/components/presale/pickup.js.map +1 -0
- package/dist/components/presale/style.less +59 -0
- package/dist/components/progressState/EmptyAndErrorView.js +7 -5
- package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
- package/dist/components/settlement/prototypeTable/index.js +3 -1
- package/dist/components/settlement/prototypeTable/index.js.map +1 -1
- package/dist/components/settlement/settlement.js +413 -164
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +23 -8
- package/dist/components/settlement/settlementStore.js +249 -106
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/settlement/utils.js +2 -2
- package/dist/components/settlement/utils.js.map +1 -1
- package/dist/components/ticon/iconfont/demo_index.html +3 -3
- package/dist/components/ticon/iconfont/iconfont.css +3 -3
- package/dist/components/ticon/iconfont/iconfont.ttf +0 -0
- package/dist/components/ticon/iconfont/iconfont.woff +0 -0
- package/dist/components/ticon/iconfont/iconfont.woff2 +0 -0
- package/dist/components/touchTable/index.js +15 -5
- package/dist/components/touchTable/index.js.map +1 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
@@ -16,6 +16,14 @@ var _drawer = require('antd/es/drawer');
|
|
16
16
|
|
17
17
|
var _drawer2 = _interopRequireDefault(_drawer);
|
18
18
|
|
19
|
+
var _table = require('antd/es/table');
|
20
|
+
|
21
|
+
var _table2 = _interopRequireDefault(_table);
|
22
|
+
|
23
|
+
var _keys = require('babel-runtime/core-js/object/keys');
|
24
|
+
|
25
|
+
var _keys2 = _interopRequireDefault(_keys);
|
26
|
+
|
19
27
|
var _extends2 = require('babel-runtime/helpers/extends');
|
20
28
|
|
21
29
|
var _extends3 = _interopRequireDefault(_extends2);
|
@@ -88,6 +96,8 @@ require('antd/es/input/style');
|
|
88
96
|
|
89
97
|
require('antd/es/drawer/style');
|
90
98
|
|
99
|
+
require('antd/es/table/style');
|
100
|
+
|
91
101
|
require('antd/es/carousel/style');
|
92
102
|
|
93
103
|
require('antd/es/button/style');
|
@@ -362,7 +372,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
362
372
|
isReturn = _this2$props.isReturn,
|
363
373
|
type = _this2$props.type;
|
364
374
|
|
365
|
-
_promise2.default.resolve(!_this2.props.onValidate || _this2.props.onValidate({ isNotAutoFocus: true
|
375
|
+
_promise2.default.resolve(!_this2.props.onValidate || _this2.props.onValidate({ isNotAutoFocus: true, fn: function fn(data) {
|
376
|
+
return _this2.isNoProductTip(data);
|
377
|
+
} })).then(function (result) {
|
366
378
|
if (result) {
|
367
379
|
_this2.setState({
|
368
380
|
settleDisabled: false
|
@@ -427,6 +439,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
427
439
|
return (0, _assign2.default)({}, o);
|
428
440
|
});
|
429
441
|
var discountRetailTotalAount = null;
|
442
|
+
var discountPrototypeTotalAmount = 0;
|
430
443
|
var count = 0;
|
431
444
|
dataSource && dataSource.forEach(function (item) {
|
432
445
|
var count1 = 0;
|
@@ -458,6 +471,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
458
471
|
}
|
459
472
|
item.InventoryName = item.Inventory.Name;
|
460
473
|
item.Discount = (0, _utils.getRoundValue)(item.RetailPrice - item.TaxPrice, pricePrecision);
|
474
|
+
discountPrototypeTotalAmount += item.DetailDiscountAmount;
|
461
475
|
//item.TotalDiscount = getFixedNumber(item.Discount * item.Quantity);
|
462
476
|
item.TotalDiscount = item.DetailDiscountAmount;
|
463
477
|
item.nAmount = (0, _utils.getFixedNumber)(item.TaxAmount);
|
@@ -468,11 +482,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
468
482
|
});
|
469
483
|
_this2.setState({
|
470
484
|
dataSource: dataSource,
|
471
|
-
discountTotalAmount: (0, _utils.getFixedNumber)(
|
472
|
-
|
473
|
-
|
485
|
+
discountTotalAmount: (0, _utils.getFixedNumber)(_this2.props.amount),
|
486
|
+
discountPrototypeTotalAmount: (0, _utils.getFixedNumber)(discountPrototypeTotalAmount),
|
487
|
+
discountRetailTotalAount: (0, _utils.getFixedNumber)(_this2.props.amount + discountPrototypeTotalAmount)
|
474
488
|
});
|
475
|
-
console.log(RetailDetails, 'RetailDetails-----');
|
476
489
|
return count;
|
477
490
|
};
|
478
491
|
|
@@ -483,7 +496,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
483
496
|
|
484
497
|
var isAutoShowCouponWhenCash = (0, _tplusPoslogin.PosInitData)('IsAutoShowCouponWhenCash');
|
485
498
|
// 支持异步验证过程
|
486
|
-
_promise2.default.resolve(!_this2.props.onValidate || _this2.props.onValidate(
|
499
|
+
_promise2.default.resolve(!_this2.props.onValidate || _this2.props.onValidate({ fn: function fn(data) {
|
500
|
+
return _this2.isNoProductTip(data);
|
501
|
+
} })).then(function (result) {
|
487
502
|
if (result) {
|
488
503
|
_this2.setState({
|
489
504
|
settleDisabled: false
|
@@ -986,7 +1001,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
986
1001
|
}, 200);
|
987
1002
|
|
988
1003
|
// TODO: 测试优惠券支付
|
989
|
-
|
1004
|
+
|
1005
|
+
var _ref10 = _mutantsUtil.platform || {},
|
1006
|
+
isNewRetailBCPos = _ref10.isNewRetailBCPos;
|
1007
|
+
|
1008
|
+
if (isNewRetailBCPos && !_this2.store.paymode.currentMode.boriginReturn) {
|
990
1009
|
_this2.store.getCouponList();
|
991
1010
|
}
|
992
1011
|
};
|
@@ -1050,7 +1069,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1050
1069
|
setTimeout(function () {
|
1051
1070
|
_this2.inputJfdxAmount.input.focus();
|
1052
1071
|
_this2.inputJfdxAmount.input.setSelectionRange(0, _this2.inputJfdxAmount.input.value.length);
|
1053
|
-
},
|
1072
|
+
}, 300);
|
1054
1073
|
};
|
1055
1074
|
|
1056
1075
|
_this2.handleJfdxOk = function (e) {
|
@@ -1068,8 +1087,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1068
1087
|
};
|
1069
1088
|
|
1070
1089
|
_this2.checkOfflineEnable = function (paymode, key) {
|
1071
|
-
var
|
1072
|
-
paymodes =
|
1090
|
+
var _ref11 = paymode || {},
|
1091
|
+
paymodes = _ref11.paymodes;
|
1073
1092
|
|
1074
1093
|
var isOffline = _mutantsMicrofx.stores.offlineSys.isOffline;
|
1075
1094
|
|
@@ -1092,7 +1111,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1092
1111
|
}
|
1093
1112
|
};
|
1094
1113
|
|
1095
|
-
_this2.onTabsClick2 = function (paymode, brefund, themode, key) {
|
1114
|
+
_this2.onTabsClick2 = function (paymode, brefund, themode, key, bookType) {
|
1096
1115
|
var _enumController$getEn7 = _mutantsUtil.enumController.getEnumOj(),
|
1097
1116
|
PayStyle = _enumController$getEn7.PayStyle,
|
1098
1117
|
Differentiate = _enumController$getEn7.Differentiate;
|
@@ -1125,7 +1144,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1125
1144
|
})) {
|
1126
1145
|
_message2.default.error('已使用了其他的付款码支付,不可以再使用微信了。');
|
1127
1146
|
} else {
|
1128
|
-
_this2.setCurrentFocusAndAddPay(key);
|
1147
|
+
_this2.setCurrentFocusAndAddPay(key, bookType);
|
1129
1148
|
}
|
1130
1149
|
break;
|
1131
1150
|
case PayStyle.zfb:
|
@@ -1134,7 +1153,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1134
1153
|
})) {
|
1135
1154
|
_message2.default.error('已使用了其他的付款码支付,不可以再使用支付宝了。');
|
1136
1155
|
} else {
|
1137
|
-
_this2.setCurrentFocusAndAddPay(key);
|
1156
|
+
_this2.setCurrentFocusAndAddPay(key, bookType);
|
1138
1157
|
}
|
1139
1158
|
break;
|
1140
1159
|
case PayStyle.smzf:
|
@@ -1143,11 +1162,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1143
1162
|
})) {
|
1144
1163
|
_message2.default.error('已使用了其他的付款码支付,不可以再使用扫码支付了。');
|
1145
1164
|
} else {
|
1146
|
-
_this2.setCurrentFocusAndAddPay(key);
|
1165
|
+
_this2.setCurrentFocusAndAddPay(key, bookType);
|
1147
1166
|
}
|
1148
1167
|
break;
|
1149
1168
|
default:
|
1150
|
-
_this2.setCurrentFocusAndAddPay(key);
|
1169
|
+
_this2.setCurrentFocusAndAddPay(key, bookType);
|
1151
1170
|
break;
|
1152
1171
|
}
|
1153
1172
|
};
|
@@ -1190,7 +1209,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1190
1209
|
return bdisabled;
|
1191
1210
|
};
|
1192
1211
|
|
1193
|
-
_this2.onTabsClick = function (key) {
|
1212
|
+
_this2.onTabsClick = function (key, bookType) {
|
1194
1213
|
var _enumController$getEn9 = _mutantsUtil.enumController.getEnumOj(),
|
1195
1214
|
PayStyle = _enumController$getEn9.PayStyle,
|
1196
1215
|
Differentiate = _enumController$getEn9.Differentiate;
|
@@ -1219,6 +1238,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1219
1238
|
return;
|
1220
1239
|
}
|
1221
1240
|
var themode = (0, _find3.default)(paymode.paymodes, { 'paymentType': key });
|
1241
|
+
//预订非全款不可使用零售抵现类支付方式
|
1242
|
+
// if(bookType == 'bookPay' && this.store.paymode.isNotFullOnlyBook && themode.virtualPay){
|
1243
|
+
// return Message.error("付订金时不可使用零售抵现类结算方式!");
|
1244
|
+
// }
|
1222
1245
|
if (themode.exchangeRate != 1) {
|
1223
1246
|
var forign = (0, _find3.default)(paymode.thePaymodes, function (mode) {
|
1224
1247
|
return mode.exchangeRate != 1 && mode.paymentType != key;
|
@@ -1249,17 +1272,17 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1249
1272
|
that.setState({
|
1250
1273
|
noAlreadyWarn: false
|
1251
1274
|
});
|
1252
|
-
that.onTabsClick2(paymode, brefund, themode, key);
|
1275
|
+
that.onTabsClick2(paymode, brefund, themode, key, bookType);
|
1253
1276
|
},
|
1254
1277
|
onCancel: function onCancel() {}
|
1255
|
-
}) : that.onTabsClick2(paymode, brefund, themode, key)
|
1278
|
+
}) : that.onTabsClick2(paymode, brefund, themode, key, bookType);
|
1256
1279
|
break;
|
1257
1280
|
default:
|
1258
|
-
_this2.onTabsClick2(paymode, brefund, themode, key);
|
1281
|
+
_this2.onTabsClick2(paymode, brefund, themode, key, bookType);
|
1259
1282
|
break;
|
1260
1283
|
}
|
1261
1284
|
} else {
|
1262
|
-
_this2.onTabsClick2(paymode, brefund, themode, key);
|
1285
|
+
_this2.onTabsClick2(paymode, brefund, themode, key, bookType);
|
1263
1286
|
}
|
1264
1287
|
};
|
1265
1288
|
|
@@ -1282,8 +1305,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1282
1305
|
}
|
1283
1306
|
};
|
1284
1307
|
|
1285
|
-
_this2.setCurrentFocusAndAddPay = function (key, payId) {
|
1286
|
-
_this2.store.changeFocusAndAddPay(key);
|
1308
|
+
_this2.setCurrentFocusAndAddPay = function (key, bookType, payId) {
|
1309
|
+
_this2.store.changeFocusAndAddPay(key, bookType);
|
1287
1310
|
if (_this2.store.bquick) {
|
1288
1311
|
_this2.handleSettle("quickPay");
|
1289
1312
|
} else {
|
@@ -1291,7 +1314,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1291
1314
|
}
|
1292
1315
|
};
|
1293
1316
|
|
1294
|
-
_this2.onDelPay = function (index, boriginReturn, type) {
|
1317
|
+
_this2.onDelPay = function (index, boriginReturn, type, bookType) {
|
1295
1318
|
var _enumController$getEn12 = _mutantsUtil.enumController.getEnumOj(),
|
1296
1319
|
PayStyle = _enumController$getEn12.PayStyle;
|
1297
1320
|
|
@@ -1300,17 +1323,21 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1300
1323
|
if (storeType != 1 && boriginReturn && (type == PayStyle.hyczk || type == PayStyle.djq || type == PayStyle.jfdx)) {
|
1301
1324
|
_message2.default.info('原单退货时,该结算方式不可以删除。');
|
1302
1325
|
} else {
|
1303
|
-
_this2.store.delPay(index);
|
1326
|
+
_this2.store.delPay(index, bookType);
|
1304
1327
|
}
|
1305
1328
|
};
|
1306
1329
|
|
1307
|
-
_this2.handleChange = function (index, e) {
|
1330
|
+
_this2.handleChange = function (index, e, type) {
|
1308
1331
|
if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(_this2.store.paymode.currentFocus)) return;
|
1332
|
+
var mode = (0, _find3.default)(_this2.store.paymode.thePaymodes, { 'paymethodId': index });
|
1333
|
+
// if(type == 'bookPay' && this.store.paymode.isNotFullOnlyBook && mode.virtualPay){
|
1334
|
+
// return Message.error("付订金时不可使用零售抵现类结算方式!");
|
1335
|
+
// }
|
1309
1336
|
var currentInput = e.target;
|
1310
1337
|
var amountMaxLength = parseInt(_this2.props.initData["AmountMaxLength"] || 10);
|
1311
1338
|
if (!isNaN(e.target.value) || e.target.value == '-') {
|
1312
1339
|
if (e.target.value.length <= amountMaxLength) {
|
1313
|
-
_this2.store.changeValue(index, e.target.value, false);
|
1340
|
+
_this2.store.changeValue(index, e.target.value, false, type);
|
1314
1341
|
}
|
1315
1342
|
}
|
1316
1343
|
};
|
@@ -1350,14 +1377,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1350
1377
|
}
|
1351
1378
|
}
|
1352
1379
|
}
|
1353
|
-
// let bjfdx=this.store.paymode.currentMode.paymentType==PayStyle.jfdx;
|
1354
1380
|
_this2.store.paymode.setCurrentModeValue(val, max);
|
1355
1381
|
};
|
1356
1382
|
|
1357
|
-
_this2.onBlur = function (index, e) {
|
1383
|
+
_this2.onBlur = function (index, e, type) {
|
1358
1384
|
_this2.currentInput = null;
|
1359
1385
|
_this2.store.changeFocusOnly(-1);
|
1360
|
-
_this2.store.changeValue(index, e.target.value == '-' ? 0 : e.target.value, true);
|
1386
|
+
_this2.store.changeValue(index, e.target.value == '-' ? 0 : e.target.value, true, type);
|
1361
1387
|
};
|
1362
1388
|
|
1363
1389
|
_this2.onFocus = function (index, mode, paymode, e) {
|
@@ -1409,7 +1435,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1409
1435
|
_message2.default.info('\u539F\u5355\u9000\u8D27\u65F6' + Differentiate.COUPON + '\u4E0D\u53EF\u4EE5\u53D6\u6D88\u3002');
|
1410
1436
|
return;
|
1411
1437
|
}
|
1412
|
-
|
1438
|
+
|
1439
|
+
var _ref12 = _mutantsUtil.platform || {},
|
1440
|
+
isNewRetailBCPos = _ref12.isNewRetailBCPos;
|
1441
|
+
|
1442
|
+
if (isNewRetailBCPos) {
|
1443
|
+
_this2.store.paymode.calcDjqCheckValue(q, _this2.store.dto);
|
1444
|
+
} else {
|
1445
|
+
_this2.store.paymode.calcDjqValue(q);
|
1446
|
+
}
|
1413
1447
|
// this.props.onGetCouponList && this.props.onGetCouponList(this.store.dto, _filter(this.store.paymode.currentMode.djqs,(djq)=>{return djq.couponCategoryEnum !== 'RIGHT'}));
|
1414
1448
|
// this.props.onGetCouponList && this.props.onGetCouponList(this.store.dto, _filter(this.store.paymode.currentMode.djqs,(djq)=>{return djq.checked}), this.store.paymode.currentMode.djqs);
|
1415
1449
|
};
|
@@ -1481,7 +1515,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1481
1515
|
}, 2000);
|
1482
1516
|
};
|
1483
1517
|
|
1484
|
-
_this2.onHotKeyClick1 = function (mode, index, boriginReturn) {
|
1518
|
+
_this2.onHotKeyClick1 = function (mode, index, boriginReturn, bookType) {
|
1519
|
+
// if (bookType == 'bookPay' && this.store.paymode.isNotFullOnlyBook && mode.virtualPay){
|
1520
|
+
// return Message.error("付订金时不可使用零售抵现类结算方式!");
|
1521
|
+
// }
|
1485
1522
|
if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(mode.paymentType)) return false;
|
1486
1523
|
if (_this2.hotkeydebouncedPayMode == mode) {
|
1487
1524
|
return;
|
@@ -1521,11 +1558,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1521
1558
|
}
|
1522
1559
|
};
|
1523
1560
|
|
1524
|
-
_this2.onHotKeyClick2 = function (index, mode, paymode, e) {
|
1561
|
+
_this2.onHotKeyClick2 = function (index, mode, paymode, e, bookType) {
|
1525
1562
|
if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(mode.paymentType)) return false;
|
1526
1563
|
if (_this2.hotkeydebouncedPayMode == mode) {
|
1527
1564
|
return;
|
1528
1565
|
}
|
1566
|
+
// if (bookType == 'bookPay' && this.store.paymode.isNotFullOnlyBook && mode.virtualPay){
|
1567
|
+
// return Message.error("付订金时不可使用零售抵现类结算方式!");
|
1568
|
+
// }
|
1529
1569
|
_this2.store.changeClickFocusOnly(mode.paymentType);
|
1530
1570
|
_this2.setCurrentFocusOnly(mode.paymentType);
|
1531
1571
|
if (_this2.hotkeydebounced) {
|
@@ -1762,7 +1802,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1762
1802
|
};
|
1763
1803
|
|
1764
1804
|
_this2.settleSuccess = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
|
1765
|
-
var _enumController$getEn20, PayStyle, _this2$store$paymode, amount, received, thePaymodes, IdbusiType, charge, openCashBox, _this, showTwoScreen, getSettleGift, type, resp1;
|
1805
|
+
var _enumController$getEn20, PayStyle, _this2$store$paymode, amount, received, thePaymodes, IdbusiType, charge, openCashBox, _this, showTwoScreen, _this2$store6, getSettleGift, isFull, type, resp1;
|
1766
1806
|
|
1767
1807
|
return _regenerator2.default.wrap(function _callee8$(_context8) {
|
1768
1808
|
while (1) {
|
@@ -1822,7 +1862,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1822
1862
|
}
|
1823
1863
|
};
|
1824
1864
|
|
1825
|
-
|
1865
|
+
_this2$store6 = _this2.store, getSettleGift = _this2$store6.getSettleGift, isFull = _this2$store6.isFull;
|
1826
1866
|
type = _this2.props.type;
|
1827
1867
|
resp1 = false;
|
1828
1868
|
|
@@ -1871,7 +1911,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1871
1911
|
} else if (MemberPoints && Number(amount) == Number(0)) {
|
1872
1912
|
message = "兑换成功";
|
1873
1913
|
}
|
1874
|
-
window.__successModal = (0, _utils.showSuccessModal)(amount, received, charge, _this.props.onModalClose, isXianjin, message, resp1 && resp1.data, _mutantsMicrofx.stores, function () {
|
1914
|
+
window.__successModal = (0, _utils.showSuccessModal)(amount, received, charge, _this.props.onModalClose, isXianjin, message, resp1 && resp1.data, _mutantsMicrofx.stores, IdbusiType, isFull, function () {
|
1875
1915
|
_this.handleGuestShow(5);
|
1876
1916
|
});
|
1877
1917
|
_this2.setState({ isXianjin: false });
|
@@ -1890,13 +1930,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1890
1930
|
if (_this2.hasElectron === false) return;
|
1891
1931
|
var dt = _mutantsMicrofx.localStore.get('portsetting_hardSet') || [];
|
1892
1932
|
|
1893
|
-
var
|
1894
|
-
guestshow_enable =
|
1895
|
-
guestshow_clear =
|
1896
|
-
guestshow_welcome =
|
1897
|
-
guestshow_collect =
|
1898
|
-
guestshow_refund =
|
1899
|
-
guestshow_change =
|
1933
|
+
var _ref16 = dt || {},
|
1934
|
+
guestshow_enable = _ref16.guestshow_enable,
|
1935
|
+
guestshow_clear = _ref16.guestshow_clear,
|
1936
|
+
guestshow_welcome = _ref16.guestshow_welcome,
|
1937
|
+
guestshow_collect = _ref16.guestshow_collect,
|
1938
|
+
guestshow_refund = _ref16.guestshow_refund,
|
1939
|
+
guestshow_change = _ref16.guestshow_change;
|
1900
1940
|
|
1901
1941
|
var hasSuccess = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('portsetting_hardSet_isSuccess');
|
1902
1942
|
if (!guestshow_enable || !!guestshow_enable && hasSuccess == '0') return;
|
@@ -1931,9 +1971,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1931
1971
|
};
|
1932
1972
|
|
1933
1973
|
_this2.handleSettle = function () {
|
1934
|
-
var
|
1974
|
+
var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(args) {
|
1935
1975
|
var handleUserInputs = function () {
|
1936
|
-
var
|
1976
|
+
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
|
1937
1977
|
var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
|
1938
1978
|
|
1939
1979
|
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
@@ -2024,11 +2064,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2024
2064
|
}));
|
2025
2065
|
|
2026
2066
|
return function handleUserInputs(_x6) {
|
2027
|
-
return
|
2067
|
+
return _ref19.apply(this, arguments);
|
2028
2068
|
};
|
2029
2069
|
}();
|
2030
2070
|
|
2031
|
-
var _enumController$getEn21, PayStyle, _this2$
|
2071
|
+
var _enumController$getEn21, PayStyle, _this2$store7, paymode, brefund, boriginReturn, newStyle, isQuickPay, that, status, zeromode, promises, thePaymodes, quickmode, commit;
|
2032
2072
|
|
2033
2073
|
return _regenerator2.default.wrap(function _callee11$(_context11) {
|
2034
2074
|
while (1) {
|
@@ -2039,7 +2079,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2039
2079
|
});
|
2040
2080
|
console.log("settlement.handleSettle开始执行,参数:", +args);
|
2041
2081
|
_enumController$getEn21 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn21.PayStyle;
|
2042
|
-
_this2$
|
2082
|
+
_this2$store7 = _this2.store, paymode = _this2$store7.paymode, brefund = _this2$store7.brefund, boriginReturn = _this2$store7.boriginReturn, newStyle = _this2$store7.newStyle;
|
2043
2083
|
isQuickPay = args === 'quickPay';
|
2044
2084
|
that = _this2;
|
2045
2085
|
status = false;
|
@@ -2117,7 +2157,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2117
2157
|
});
|
2118
2158
|
|
2119
2159
|
commit = function () {
|
2120
|
-
var
|
2160
|
+
var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(values) {
|
2121
2161
|
var result;
|
2122
2162
|
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
2123
2163
|
while (1) {
|
@@ -2191,7 +2231,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2191
2231
|
}));
|
2192
2232
|
|
2193
2233
|
return function commit(_x5) {
|
2194
|
-
return
|
2234
|
+
return _ref18.apply(this, arguments);
|
2195
2235
|
};
|
2196
2236
|
}();
|
2197
2237
|
|
@@ -2206,13 +2246,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2206
2246
|
}));
|
2207
2247
|
|
2208
2248
|
return function (_x4) {
|
2209
|
-
return
|
2249
|
+
return _ref17.apply(this, arguments);
|
2210
2250
|
};
|
2211
2251
|
}();
|
2212
2252
|
|
2213
2253
|
_this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
|
2214
2254
|
var handleUserInputs = function () {
|
2215
|
-
var
|
2255
|
+
var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(promises) {
|
2216
2256
|
var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
|
2217
2257
|
|
2218
2258
|
return _regenerator2.default.wrap(function _callee13$(_context13) {
|
@@ -2309,11 +2349,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2309
2349
|
}));
|
2310
2350
|
|
2311
2351
|
return function handleUserInputs(_x8) {
|
2312
|
-
return
|
2352
|
+
return _ref23.apply(this, arguments);
|
2313
2353
|
};
|
2314
2354
|
}();
|
2315
2355
|
|
2316
|
-
var that, curmode, promises, _enumController$getEn22, PayStyle, commit;
|
2356
|
+
var that, curmode, promises, _ref21, isNewRetailBCPos, _enumController$getEn22, PayStyle, commit;
|
2317
2357
|
|
2318
2358
|
return _regenerator2.default.wrap(function _callee14$(_context14) {
|
2319
2359
|
while (1) {
|
@@ -2322,21 +2362,28 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2322
2362
|
that = _this2;
|
2323
2363
|
curmode = _this2.store.paymode.currentMode;
|
2324
2364
|
promises = [];
|
2365
|
+
_ref21 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref21.isNewRetailBCPos;
|
2325
2366
|
|
2326
|
-
if (
|
2327
|
-
|
2367
|
+
if (isNewRetailBCPos) {
|
2368
|
+
if (curmode.value > 0) {
|
2369
|
+
_enumController$getEn22 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn22.PayStyle;
|
2328
2370
|
|
2329
|
-
|
2330
|
-
|
2331
|
-
|
2332
|
-
|
2333
|
-
|
2371
|
+
if (curmode.paymentType === PayStyle.hyczk) {
|
2372
|
+
if (curmode.cardTypeEnum === 'BALANCE_CARD') {
|
2373
|
+
!curmode.freePaymentPasswordStore && promises.push(that.inputPwd(curmode));
|
2374
|
+
} else {
|
2375
|
+
curmode.isNeedPassword && promises.push(that.inputPwd(curmode));
|
2376
|
+
}
|
2334
2377
|
}
|
2335
2378
|
}
|
2379
|
+
} else {
|
2380
|
+
if (curmode.member.needPwd && curmode.value > 0) {
|
2381
|
+
promises.push(that.inputPwd(curmode));
|
2382
|
+
}
|
2336
2383
|
}
|
2337
2384
|
|
2338
2385
|
commit = function () {
|
2339
|
-
var
|
2386
|
+
var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(values) {
|
2340
2387
|
var result;
|
2341
2388
|
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
2342
2389
|
while (1) {
|
@@ -2368,7 +2415,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2368
2415
|
|
2369
2416
|
//成功
|
2370
2417
|
//返回
|
2371
|
-
that.setCurrentFocusAndAddPay(curmode.paymentType, curmode.paymethodId);
|
2418
|
+
that.setCurrentFocusAndAddPay(curmode.paymentType, null, curmode.paymethodId);
|
2372
2419
|
_promise2.default.resolve();
|
2373
2420
|
_context12.next = 15;
|
2374
2421
|
break;
|
@@ -2386,13 +2433,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2386
2433
|
}));
|
2387
2434
|
|
2388
2435
|
return function commit(_x7) {
|
2389
|
-
return
|
2436
|
+
return _ref22.apply(this, arguments);
|
2390
2437
|
};
|
2391
2438
|
}();
|
2392
2439
|
|
2393
2440
|
handleUserInputs(promises);
|
2394
2441
|
|
2395
|
-
case
|
2442
|
+
case 7:
|
2396
2443
|
case 'end':
|
2397
2444
|
return _context14.stop();
|
2398
2445
|
}
|
@@ -2437,7 +2484,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2437
2484
|
};
|
2438
2485
|
|
2439
2486
|
_this2.inputPwd = function () {
|
2440
|
-
var
|
2487
|
+
var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(paymode) {
|
2441
2488
|
var that, confirmPwd;
|
2442
2489
|
return _regenerator2.default.wrap(function _callee15$(_context15) {
|
2443
2490
|
while (1) {
|
@@ -2453,8 +2500,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2453
2500
|
// if (v !== '') {
|
2454
2501
|
modal.destroy();
|
2455
2502
|
|
2456
|
-
var
|
2457
|
-
confirmPwd =
|
2503
|
+
var _ref25 = that.state || {},
|
2504
|
+
confirmPwd = _ref25.confirmPwd;
|
2458
2505
|
|
2459
2506
|
setTimeout(function () {
|
2460
2507
|
paymode.authCode = v;
|
@@ -2545,8 +2592,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2545
2592
|
type: 'primary', size: 'large', onClick: function onClick() {
|
2546
2593
|
var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
|
2547
2594
|
|
2548
|
-
var
|
2549
|
-
confirmPwd =
|
2595
|
+
var _ref26 = that.state || {},
|
2596
|
+
confirmPwd = _ref26.confirmPwd;
|
2550
2597
|
// if (v !== '') {
|
2551
2598
|
|
2552
2599
|
|
@@ -2587,62 +2634,111 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2587
2634
|
}));
|
2588
2635
|
|
2589
2636
|
return function (_x9) {
|
2590
|
-
return
|
2637
|
+
return _ref24.apply(this, arguments);
|
2591
2638
|
};
|
2592
2639
|
}();
|
2593
2640
|
|
2594
|
-
_this2.btnDebounced = function (
|
2595
|
-
|
2596
|
-
|
2597
|
-
isInputMember: true
|
2598
|
-
});
|
2641
|
+
_this2.btnDebounced = function () {
|
2642
|
+
var _ref27 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(type, bquick) {
|
2643
|
+
var IdbusiType, CustomerPhone, DistributionMode, Address, title, _enumController$getEn23, PayStyle, _this2$store8, paymode, brefund, boriginReturn, newStyle, status;
|
2599
2644
|
|
2600
|
-
|
2601
|
-
|
2645
|
+
return _regenerator2.default.wrap(function _callee16$(_context16) {
|
2646
|
+
while (1) {
|
2647
|
+
switch (_context16.prev = _context16.next) {
|
2648
|
+
case 0:
|
2649
|
+
IdbusiType = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.IdbusiType;
|
2650
|
+
CustomerPhone = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.CustomerPhone;
|
2651
|
+
DistributionMode = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.DistributionMode;
|
2652
|
+
Address = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.Address;
|
2653
|
+
//预订时,若没录入买家手机号,或配送方式为快递时,弹框买家信息确认框
|
2654
|
+
|
2655
|
+
if (!(IdbusiType == 38)) {
|
2656
|
+
_context16.next = 10;
|
2657
|
+
break;
|
2658
|
+
}
|
2602
2659
|
|
2603
|
-
|
2604
|
-
|
2605
|
-
|
2606
|
-
boriginReturn = _this2$store7.boriginReturn,
|
2607
|
-
newStyle = _this2$store7.newStyle;
|
2660
|
+
if (DistributionMode.Id == 'ON_SITE_PICKUP' && !CustomerPhone && _this2.context.viewModel.data.Member.Mobilephone) {
|
2661
|
+
_this2.props.syncMemberInfoProcessor();
|
2662
|
+
}
|
2608
2663
|
|
2664
|
+
if (!(!CustomerPhone && !_this2.context.viewModel.data.Member.Mobilephone || DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE')) {
|
2665
|
+
_context16.next = 10;
|
2666
|
+
break;
|
2667
|
+
}
|
2609
2668
|
|
2610
|
-
|
2669
|
+
title = (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && Address ? '收货地址确认' : '收货人';
|
2670
|
+
_context16.next = 10;
|
2671
|
+
return _this2.props.openBuyerModal(title);
|
2611
2672
|
|
2612
|
-
|
2613
|
-
paymode.thePaymodes.forEach(function (v) {
|
2614
|
-
if (v.paymentType === PayStyle.xianjin && v.value !== '0.00') {
|
2615
|
-
status = true;
|
2616
|
-
}
|
2617
|
-
});
|
2618
|
-
_this2.setState({
|
2619
|
-
isXianjin: status ? true : false
|
2620
|
-
});
|
2673
|
+
case 10:
|
2621
2674
|
|
2622
|
-
|
2623
|
-
|
2624
|
-
|
2625
|
-
|
2626
|
-
|
2627
|
-
|
2628
|
-
|
2629
|
-
|
2630
|
-
|
2631
|
-
|
2632
|
-
|
2633
|
-
|
2634
|
-
|
2635
|
-
|
2636
|
-
|
2637
|
-
|
2638
|
-
|
2639
|
-
|
2640
|
-
|
2675
|
+
_this2.setState({
|
2676
|
+
bquick: bquick,
|
2677
|
+
isInputMember: true
|
2678
|
+
});
|
2679
|
+
_enumController$getEn23 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn23.PayStyle;
|
2680
|
+
_this2$store8 = _this2.store, paymode = _this2$store8.paymode, brefund = _this2$store8.brefund, boriginReturn = _this2$store8.boriginReturn, newStyle = _this2$store8.newStyle;
|
2681
|
+
|
2682
|
+
if (!(bquick && !_mutantsMicrofx.stores.offlineSys.shouldSettlement(type))) {
|
2683
|
+
_context16.next = 15;
|
2684
|
+
break;
|
2685
|
+
}
|
2686
|
+
|
2687
|
+
return _context16.abrupt('return', false);
|
2688
|
+
|
2689
|
+
case 15:
|
2690
|
+
status = false;
|
2691
|
+
|
2692
|
+
paymode.thePaymodes.forEach(function (v) {
|
2693
|
+
if (v.paymentType === PayStyle.xianjin && v.value !== '0.00') {
|
2694
|
+
status = true;
|
2695
|
+
}
|
2696
|
+
});
|
2697
|
+
_this2.setState({
|
2698
|
+
isXianjin: status ? true : false
|
2699
|
+
});
|
2700
|
+
|
2701
|
+
if (!_this2.btndebounced) {
|
2702
|
+
_context16.next = 20;
|
2703
|
+
break;
|
2704
|
+
}
|
2705
|
+
|
2706
|
+
return _context16.abrupt('return');
|
2707
|
+
|
2708
|
+
case 20:
|
2709
|
+
_this2.btndebounced = (0, _debounce3.default)(function () {
|
2710
|
+
if (bquick) {
|
2711
|
+
_this2.quickSettle(type);
|
2712
|
+
} else {
|
2713
|
+
_this2.showModal();
|
2714
|
+
}
|
2715
|
+
}, 1000, {
|
2716
|
+
'leading': true,
|
2717
|
+
'trailing': false
|
2718
|
+
});
|
2719
|
+
_this2.btndebounced();
|
2720
|
+
setTimeout(function () {
|
2721
|
+
_this2.btndebounced.cancel();
|
2722
|
+
_this2.btndebounced = null;
|
2723
|
+
}, 2000);
|
2724
|
+
|
2725
|
+
case 23:
|
2726
|
+
case 'end':
|
2727
|
+
return _context16.stop();
|
2728
|
+
}
|
2729
|
+
}
|
2730
|
+
}, _callee16, _this3);
|
2731
|
+
}));
|
2732
|
+
|
2733
|
+
return function (_x10, _x11) {
|
2734
|
+
return _ref27.apply(this, arguments);
|
2735
|
+
};
|
2736
|
+
}();
|
2641
2737
|
|
2642
2738
|
_this2.onCzkChange = function (v) {
|
2643
2739
|
// console.log("czk change:"+new Date().toLocaleTimeString())
|
2644
|
-
var
|
2645
|
-
isNewRetailBCPos =
|
2740
|
+
var _ref28 = _mutantsUtil.platform || {},
|
2741
|
+
isNewRetailBCPos = _ref28.isNewRetailBCPos;
|
2646
2742
|
|
2647
2743
|
if (!isNewRetailBCPos) {
|
2648
2744
|
_this2.store.paymode.currentMode.member.setCardNo(v);
|
@@ -2722,7 +2818,20 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2722
2818
|
value = parseFloat(receivable) + parseFloat(inputTarget2.innerHTML);
|
2723
2819
|
}
|
2724
2820
|
inputTarget.value = value;
|
2725
|
-
|
2821
|
+
//预订现金快捷支付,这里修改找零计算,大于应收小于全额金额,不找零,大于全额金额找零
|
2822
|
+
if (_this2.store.paymode.isNotFullBook) {
|
2823
|
+
if (parseFloat(value || 0) > _this2.store.paymode.bookMaxValue) {
|
2824
|
+
inputTarget2.innerHTML = (0, _utils.getFixedNumber)(parseFloat(value || 0) - parseFloat(_this2.store.paymode.bookMaxValue));
|
2825
|
+
}
|
2826
|
+
if (parseFloat(value || 0) < parseFloat(receivable)) {
|
2827
|
+
inputTarget2.innerHTML = (0, _utils.getFixedNumber)(parseFloat(value || 0) - parseFloat(receivable));
|
2828
|
+
}
|
2829
|
+
if (parseFloat(receivable) <= parseFloat(value || 0) && parseFloat(value || 0) <= _this2.store.paymode.bookMaxValue) {
|
2830
|
+
inputTarget2.innerHTML = (0, _utils.getFixedNumber)(0);
|
2831
|
+
}
|
2832
|
+
} else {
|
2833
|
+
inputTarget2.innerHTML = (0, _utils.getFixedNumber)(parseFloat(value || 0) - parseFloat(receivable));
|
2834
|
+
}
|
2726
2835
|
};
|
2727
2836
|
|
2728
2837
|
_this2.changeScanProduct = function () {
|
@@ -2779,6 +2888,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2779
2888
|
type = _this2$props3.type;
|
2780
2889
|
|
2781
2890
|
var isManualIntoAmount = void 0;
|
2891
|
+
var BuyerPayFreight = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.BuyerPayFreight;
|
2892
|
+
var DistributionMode = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.DistributionMode;
|
2782
2893
|
// 付款弹窗
|
2783
2894
|
return new _promise2.default(function (resolve, reject) {
|
2784
2895
|
var _enumController$getEn27 = _mutantsUtil.enumController.getEnumOj(),
|
@@ -2868,7 +2979,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2868
2979
|
_react2.default.createElement(
|
2869
2980
|
'span',
|
2870
2981
|
{ className: 'yfje' },
|
2871
|
-
paymode.value
|
2982
|
+
paymode.value,
|
2983
|
+
DistributionMode && (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && BuyerPayFreight && BuyerPayFreight > 0 ? _react2.default.createElement(
|
2984
|
+
'span',
|
2985
|
+
{ className: 'freight' },
|
2986
|
+
'(\u5305\u542B',
|
2987
|
+
BuyerPayFreight,
|
2988
|
+
'\u5143\u8FD0\u8D39)'
|
2989
|
+
) : null
|
2872
2990
|
)
|
2873
2991
|
),
|
2874
2992
|
paymode.paymentType == PayStyle.xianjin && _react2.default.createElement(
|
@@ -2992,7 +3110,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2992
3110
|
settleDisabled: false
|
2993
3111
|
});
|
2994
3112
|
that.store.bquick && that.props.onCancelSettle && that.props.onCancelSettle();
|
2995
|
-
that.store.bquick && that.store.delPay(paymode.paymethodId);
|
3113
|
+
that.store.bquick && that.store.delPay(paymode.paymethodId, !isQuickPay ? 'bookPay' : '');
|
2996
3114
|
reject('\u652F\u4ED8\u65B9\u5F0F: ' + paymode.name + '\u5931\u8D25');
|
2997
3115
|
} },
|
2998
3116
|
'\u53D6\u6D88'
|
@@ -3022,7 +3140,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3022
3140
|
modal.destroy();
|
3023
3141
|
setTimeout(function () {
|
3024
3142
|
if (paymode.paymentType == PayStyle.xianjin) {
|
3025
|
-
that.store.changeValue(paymode.paymethodId, v, false);
|
3143
|
+
that.store.changeValue(paymode.paymethodId, v, false, 'bookPay');
|
3026
3144
|
} else {
|
3027
3145
|
paymode.authCode = v;
|
3028
3146
|
}
|
@@ -3051,9 +3169,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3051
3169
|
};
|
3052
3170
|
|
3053
3171
|
_this2.checkCurrentModeHaveMutex = function (type) {
|
3054
|
-
var _this2$
|
3055
|
-
paymode = _this2$
|
3056
|
-
newStyle = _this2$
|
3172
|
+
var _this2$store9 = _this2.store,
|
3173
|
+
paymode = _this2$store9.paymode,
|
3174
|
+
newStyle = _this2$store9.newStyle;
|
3057
3175
|
|
3058
3176
|
var _enumController$getEn28 = _mutantsUtil.enumController.getEnumOj(),
|
3059
3177
|
PayStyle = _enumController$getEn28.PayStyle;
|
@@ -3161,6 +3279,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3161
3279
|
var CarouselTp = CarouseOut || _carousel2.default;
|
3162
3280
|
var newParams = CarouseOut ? {} : params;
|
3163
3281
|
var mapList = [];
|
3282
|
+
var type = _this2.props.type;
|
3283
|
+
|
3164
3284
|
paymodes.forEach(function (item, index) {
|
3165
3285
|
// 整除则新增轮播页面
|
3166
3286
|
if (index % carouselStart === 0) {
|
@@ -3176,7 +3296,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3176
3296
|
'div',
|
3177
3297
|
null,
|
3178
3298
|
(0, _map3.default)(modeList, function (mode, modeIndex) {
|
3179
|
-
return _this2.renderToolbtn(mode, index * carouselStart + modeIndex);
|
3299
|
+
return _this2.renderToolbtn(mode, index * carouselStart + modeIndex, type !== 1 ? 'bookPay' : '');
|
3180
3300
|
})
|
3181
3301
|
);
|
3182
3302
|
})
|
@@ -3227,19 +3347,23 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3227
3347
|
|
3228
3348
|
_this2.hasElectron = hasElectron;
|
3229
3349
|
|
3230
|
-
var
|
3231
|
-
MemberMeStorageCardInputByKeyBoard =
|
3232
|
-
ICCardServer =
|
3233
|
-
ICCardPassword =
|
3350
|
+
var _ref29 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
|
3351
|
+
MemberMeStorageCardInputByKeyBoard = _ref29.MemberMeStorageCardInputByKeyBoard,
|
3352
|
+
ICCardServer = _ref29.ICCardServer,
|
3353
|
+
ICCardPassword = _ref29.ICCardPassword,
|
3354
|
+
PreSellOrBook = _ref29.PreSellOrBook,
|
3355
|
+
PercentageWhenBook = _ref29.PercentageWhenBook;
|
3234
3356
|
|
3235
3357
|
_this2.isStorageCardInputType = MemberMeStorageCardInputByKeyBoard; // 仅储值卡是否禁用键盘输入,'0'为不禁用 '1'为禁用
|
3236
3358
|
_this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
|
3237
3359
|
_this2.iCCardPassword = ICCardPassword; //IC卡密码
|
3360
|
+
_this2.isBook = PreSellOrBook == 'BOOK';
|
3361
|
+
_this2.percentageWhenBook = PercentageWhenBook;
|
3238
3362
|
//移动端环境下,没有读取IC卡的方式。
|
3239
3363
|
|
3240
|
-
var
|
3241
|
-
isHorizontalPad =
|
3242
|
-
isHorizontalSunMi =
|
3364
|
+
var _ref30 = _mutantsUtil.platform || {},
|
3365
|
+
isHorizontalPad = _ref30.isHorizontalPad,
|
3366
|
+
isHorizontalSunMi = _ref30.isHorizontalSunMi;
|
3243
3367
|
|
3244
3368
|
_this2.isHorizontalPad = !!isHorizontalPad;
|
3245
3369
|
_this2.isHorizontalSunMi = !!isHorizontalSunMi;
|
@@ -3368,6 +3492,76 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3368
3492
|
|
3369
3493
|
//that[`inputS${paymode.paymethodId}`]
|
3370
3494
|
|
3495
|
+
}, {
|
3496
|
+
key: 'isNoProductTip',
|
3497
|
+
value: function isNoProductTip(nonProductMap) {
|
3498
|
+
var _ref31 = this.context.viewModel.data || {},
|
3499
|
+
RetailDetails = _ref31.RetailDetails;
|
3500
|
+
|
3501
|
+
var temphtml = [];
|
3502
|
+
if ((0, _keys2.default)(nonProductMap).length > 0) {
|
3503
|
+
var columns = [{
|
3504
|
+
title: '商品名称',
|
3505
|
+
dataIndex: 'name',
|
3506
|
+
key: 'name',
|
3507
|
+
ellipsis: true
|
3508
|
+
}, {
|
3509
|
+
title: '原因',
|
3510
|
+
dataIndex: 'reason',
|
3511
|
+
key: 'reason',
|
3512
|
+
ellipsis: true
|
3513
|
+
}];
|
3514
|
+
|
3515
|
+
var _loop = function _loop(key) {
|
3516
|
+
var product = RetailDetails.find(function (o) {
|
3517
|
+
return o.Idinventory == key;
|
3518
|
+
});
|
3519
|
+
temphtml.push({ name: product.Inventory.Name, reason: nonProductMap[key] });
|
3520
|
+
};
|
3521
|
+
|
3522
|
+
for (var key in nonProductMap) {
|
3523
|
+
_loop(key);
|
3524
|
+
}
|
3525
|
+
var modal = (0, _asyncModal2.default)({
|
3526
|
+
onPressEnter: function onPressEnter() {
|
3527
|
+
modal.destroy();
|
3528
|
+
},
|
3529
|
+
maskClosable: false,
|
3530
|
+
keyboard: false,
|
3531
|
+
closable: true,
|
3532
|
+
title: '不可配送商品',
|
3533
|
+
width: 600,
|
3534
|
+
className: '',
|
3535
|
+
content: _react2.default.createElement(
|
3536
|
+
'div',
|
3537
|
+
{ className: 'not-distribution-tip' },
|
3538
|
+
_react2.default.createElement(
|
3539
|
+
'div',
|
3540
|
+
{ className: 'tip-content' },
|
3541
|
+
_react2.default.createElement(_table2.default, {
|
3542
|
+
columns: columns,
|
3543
|
+
dataSource: temphtml,
|
3544
|
+
scroll: { y: 240 },
|
3545
|
+
pagination: false,
|
3546
|
+
size: 'middle' })
|
3547
|
+
),
|
3548
|
+
_react2.default.createElement(
|
3549
|
+
'div',
|
3550
|
+
{ className: 'not-distribution-btn' },
|
3551
|
+
_react2.default.createElement(
|
3552
|
+
_button2.default,
|
3553
|
+
{ type: 'primary', onClick: function onClick() {
|
3554
|
+
modal.destroy();
|
3555
|
+
} },
|
3556
|
+
'\u77E5\u9053\u4E86'
|
3557
|
+
)
|
3558
|
+
)
|
3559
|
+
)
|
3560
|
+
});
|
3561
|
+
return true;
|
3562
|
+
}
|
3563
|
+
return false;
|
3564
|
+
}
|
3371
3565
|
}, {
|
3372
3566
|
key: 'checkThepaymode',
|
3373
3567
|
value: function checkThepaymode(key) {
|
@@ -3395,7 +3589,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3395
3589
|
}
|
3396
3590
|
}, {
|
3397
3591
|
key: 'renderToolbtn',
|
3398
|
-
value: function renderToolbtn(mode, index) {
|
3592
|
+
value: function renderToolbtn(mode, index, bookType) {
|
3399
3593
|
var _this7 = this;
|
3400
3594
|
|
3401
3595
|
var _enumController$getEn33 = _mutantsUtil.enumController.getEnumOj(),
|
@@ -3433,7 +3627,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3433
3627
|
return _react2.default.createElement(
|
3434
3628
|
'div',
|
3435
3629
|
{ key: index + "", className: paymodeDisabled + ' ' + paymodeSelected + ' paymode hotkey_' + this.compoundHotkeysList[hotkeyIndex], onClick: function onClick() {
|
3436
|
-
_this7.onTabsClick(mode.paymentType);
|
3630
|
+
_this7.onTabsClick(mode.paymentType, bookType);
|
3437
3631
|
} },
|
3438
3632
|
_react2.default.createElement(
|
3439
3633
|
'div',
|
@@ -3489,6 +3683,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3489
3683
|
newPassConfirm = _state2.newPassConfirm,
|
3490
3684
|
newPass = _state2.newPass,
|
3491
3685
|
isNotAutoFocus = _state2.isNotAutoFocus;
|
3686
|
+
|
3687
|
+
var _ref32 = _mutantsUtil.platform || {},
|
3688
|
+
isNewRetailBCPos = _ref32.isNewRetailBCPos;
|
3689
|
+
|
3492
3690
|
var _store2 = this.store,
|
3493
3691
|
paymode = _store2.paymode,
|
3494
3692
|
brefund = _store2.brefund,
|
@@ -3506,15 +3704,34 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3506
3704
|
|
3507
3705
|
var boriginReturn = this.context && this.context.viewModel && this.context.viewModel.data && JSON.getCellValue(this.context.viewModel.data, "IsOriginalReturn");
|
3508
3706
|
var totalTaxAmount = this.context && this.context.viewModel && this.context.viewModel.data && this.context.viewModel.data.TotalTaxAmount;
|
3707
|
+
|
3708
|
+
//收订金
|
3709
|
+
var IdbusiType = this.context && this.context.viewModel && this.context.viewModel.data && this.context.viewModel.data.IdbusiType;
|
3710
|
+
var BuyerPayFreight = this.context && this.context.viewModel && this.context.viewModel.data && this.context.viewModel.data.BuyerPayFreight;
|
3711
|
+
var DistributionMode = this.context && this.context.viewModel && this.context.viewModel.data && this.context.viewModel.data.DistributionMode;
|
3712
|
+
if (IdbusiType == 38 && this.isBook && this.percentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')) {
|
3713
|
+
totalTaxAmount = totalTaxAmount * this.percentageWhenBook / 100;
|
3714
|
+
}
|
3715
|
+
|
3509
3716
|
// 单据模式
|
3510
3717
|
var thePaymodes = newStyle ? (0, _filter3.default)(paymode.thePaymodes, function (m) {
|
3718
|
+
if (IdbusiType == 39) {
|
3719
|
+
return !(_this8.checkModeDisabled(m.paymentType, brefund, boriginReturn) && parseFloat(m.value) == 0) && m.paymentType != PayStyle.hyczk;
|
3720
|
+
}
|
3511
3721
|
return !(_this8.checkModeDisabled(m.paymentType, brefund, boriginReturn) && parseFloat(m.value) == 0);
|
3512
3722
|
}) : paymode.thePaymodes;
|
3513
3723
|
var paymodes = paymode.paymodes,
|
3514
3724
|
settle = paymode.settle,
|
3515
3725
|
currentMode = paymode.currentMode;
|
3516
|
-
// 积分兑换 总积分
|
3517
3726
|
|
3727
|
+
|
3728
|
+
if (IdbusiType == 39) {
|
3729
|
+
totalTaxAmount = _mutantsMicrofx.stores.drawerStore.thisWaitPaidAmount;
|
3730
|
+
paymodes = (0, _filter3.default)(paymodes, function (mode) {
|
3731
|
+
return mode.paymentType != PayStyle.hyczk;
|
3732
|
+
}); //取货过滤掉储值
|
3733
|
+
}
|
3734
|
+
// 积分兑换 总积分
|
3518
3735
|
var ExchangeIntegral = this.context && this.context.viewModel && this.context.viewModel.data.ExchangeIntegral;
|
3519
3736
|
|
3520
3737
|
var _hasSMZF = (0, _find3.default)(paymodes, function (item) {
|
@@ -3530,7 +3747,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3530
3747
|
}
|
3531
3748
|
|
3532
3749
|
var quickPay = boriginReturn ? [] : (0, _filter3.default)(paymodes, function (paymode) {
|
3533
|
-
|
3750
|
+
if (IdbusiType == 39) {
|
3751
|
+
return paymode.isQuick && paymode.paymentType != PayStyle.hyczk; //取货过滤掉储值
|
3752
|
+
} else {
|
3753
|
+
return paymode.isQuick;
|
3754
|
+
}
|
3534
3755
|
});
|
3535
3756
|
var productsIsEmpty = type != 1 && this.context.viewModel.data.RetailDetails.length == 0 || type == 1 && parseFloat(amount || 0) <= 0 || memberDisabled || noIsMinAmount;
|
3536
3757
|
var moreToolbtns = [];
|
@@ -3550,11 +3771,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3550
3771
|
quantity4 = 0;
|
3551
3772
|
var sumQuantity = 0; //数量总和的值,包括称重的。
|
3552
3773
|
|
3553
|
-
var
|
3554
|
-
|
3555
|
-
buyQuantity =
|
3556
|
-
|
3557
|
-
returnQuantity =
|
3774
|
+
var _ref33 = quantityDetail || {},
|
3775
|
+
_ref33$buyQuantity = _ref33.buyQuantity,
|
3776
|
+
buyQuantity = _ref33$buyQuantity === undefined ? 0 : _ref33$buyQuantity,
|
3777
|
+
_ref33$returnQuantity = _ref33.returnQuantity,
|
3778
|
+
returnQuantity = _ref33$returnQuantity === undefined ? 0 : _ref33$returnQuantity;
|
3558
3779
|
|
3559
3780
|
var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
|
3560
3781
|
quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
|
@@ -3759,7 +3980,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3759
3980
|
'div',
|
3760
3981
|
null,
|
3761
3982
|
(0, _map3.default)(paymodes, function (mode, index) {
|
3762
|
-
return _this8.renderToolbtn(mode, index);
|
3983
|
+
return _this8.renderToolbtn(mode, index, 'bookPay');
|
3763
3984
|
})
|
3764
3985
|
),
|
3765
3986
|
paymodes.length > carouselStart && this.paymodesCarouselList(params, paymodes, carouselStart)
|
@@ -3804,20 +4025,20 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3804
4025
|
return _this8.onHotKeyClick2(index, mode, paymode, e);
|
3805
4026
|
},
|
3806
4027
|
onBlur: function onBlur(e) {
|
3807
|
-
return _this8.onBlur(index, e);
|
4028
|
+
return _this8.onBlur(index, e, 'bookPay');
|
3808
4029
|
},
|
3809
4030
|
onFocus: function onFocus(e) {
|
3810
4031
|
return _this8.onFocusHack(index, mode, paymode, e);
|
3811
4032
|
},
|
3812
4033
|
onChange: function onChange(e) {
|
3813
|
-
return _this8.handleChange(index, e);
|
4034
|
+
return _this8.handleChange(index, e, 'bookPay');
|
3814
4035
|
}
|
3815
4036
|
})
|
3816
4037
|
),
|
3817
4038
|
_react2.default.createElement(
|
3818
4039
|
'span',
|
3819
4040
|
{ className: 'minus', onClick: function onClick() {
|
3820
|
-
_this8.onDelPay(index, boriginReturn && mode.boriginReturn, mode.paymentType);
|
4041
|
+
_this8.onDelPay(index, boriginReturn && mode.boriginReturn, mode.paymentType, 'bookPay');
|
3821
4042
|
} },
|
3822
4043
|
_react2.default.createElement(_ticon2.default, { type: 'shanchu', className: 'minusIcon primary-color' })
|
3823
4044
|
)
|
@@ -3951,6 +4172,20 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3951
4172
|
{ className: 'received' },
|
3952
4173
|
(0, _utils.getFixedNumber)(Math.abs(paymode.receivable))
|
3953
4174
|
)
|
4175
|
+
),
|
4176
|
+
_react2.default.createElement(
|
4177
|
+
'div',
|
4178
|
+
{ className: 'receivable', style: { display: DistributionMode && (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && BuyerPayFreight && BuyerPayFreight > 0 ? 'block' : 'none' } },
|
4179
|
+
_react2.default.createElement(
|
4180
|
+
'span',
|
4181
|
+
null,
|
4182
|
+
'\u8FD0\u8D39'
|
4183
|
+
),
|
4184
|
+
_react2.default.createElement(
|
4185
|
+
'span',
|
4186
|
+
{ className: 'received' },
|
4187
|
+
(0, _utils.getFixedNumber)(Math.abs(BuyerPayFreight))
|
4188
|
+
)
|
3954
4189
|
)
|
3955
4190
|
),
|
3956
4191
|
type != 1 && !isReturn && _react2.default.createElement(
|
@@ -4087,6 +4322,20 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4087
4322
|
{ className: 'received' },
|
4088
4323
|
(0, _utils.getFixedNumber)(Math.abs(paymode.receivable))
|
4089
4324
|
)
|
4325
|
+
),
|
4326
|
+
_react2.default.createElement(
|
4327
|
+
'div',
|
4328
|
+
{ className: 'receivable', style: { display: DistributionMode && (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && BuyerPayFreight && BuyerPayFreight > 0 ? 'block' : 'none' } },
|
4329
|
+
_react2.default.createElement(
|
4330
|
+
'span',
|
4331
|
+
null,
|
4332
|
+
'\u8FD0\u8D39'
|
4333
|
+
),
|
4334
|
+
_react2.default.createElement(
|
4335
|
+
'span',
|
4336
|
+
{ className: 'received' },
|
4337
|
+
(0, _utils.getFixedNumber)(Math.abs(BuyerPayFreight))
|
4338
|
+
)
|
4090
4339
|
)
|
4091
4340
|
),
|
4092
4341
|
type != 1 && !isReturn && _react2.default.createElement(
|
@@ -4181,7 +4430,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4181
4430
|
_this8.onHotKeyClick1(mode, index, boriginReturn);
|
4182
4431
|
}
|
4183
4432
|
} else {
|
4184
|
-
_this8.onHotKeyClick1(mode, index, boriginReturn);
|
4433
|
+
_this8.onHotKeyClick1(mode, index, boriginReturn, 'bookPay');
|
4185
4434
|
}
|
4186
4435
|
},
|
4187
4436
|
value: mode.paymentType == PayStyle.hyczk ? (0, _utils.getFixedNumber)((0, _reduce3.default)((0, _filter3.default)(thePaymodes, function (tm) {
|
@@ -4193,16 +4442,16 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4193
4442
|
disabled: _this8.checkModeDisabled(mode.paymentType, brefund, boriginReturn) || _this8.checkScanDisabled(mode.paymentType),
|
4194
4443
|
value: mode.exchangeRate != 1 ? mode.value2 : mode.value,
|
4195
4444
|
onClick: function onClick(e) {
|
4196
|
-
return _this8.onHotKeyClick2(index, mode, paymode, e);
|
4445
|
+
return _this8.onHotKeyClick2(index, mode, paymode, e, 'bookPay');
|
4197
4446
|
},
|
4198
4447
|
onBlur: function onBlur(e) {
|
4199
|
-
return _this8.onBlur(index, e);
|
4448
|
+
return _this8.onBlur(index, e, 'bookPay');
|
4200
4449
|
},
|
4201
4450
|
onFocus: function onFocus(e) {
|
4202
4451
|
return _this8.onFocusHack(index, mode, paymode, e);
|
4203
4452
|
},
|
4204
4453
|
onChange: function onChange(e) {
|
4205
|
-
return _this8.handleChange(index, e);
|
4454
|
+
return _this8.handleChange(index, e, 'bookPay');
|
4206
4455
|
}
|
4207
4456
|
})
|
4208
4457
|
)
|
@@ -4411,22 +4660,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4411
4660
|
return _this8.czkInput = input;
|
4412
4661
|
},
|
4413
4662
|
onKeyDown: function () {
|
4414
|
-
var
|
4663
|
+
var _ref34 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee17(e) {
|
4415
4664
|
var time, _paymode;
|
4416
4665
|
|
4417
|
-
return _regenerator2.default.wrap(function
|
4666
|
+
return _regenerator2.default.wrap(function _callee17$(_context17) {
|
4418
4667
|
while (1) {
|
4419
|
-
switch (
|
4668
|
+
switch (_context17.prev = _context17.next) {
|
4420
4669
|
case 0:
|
4421
4670
|
if (!(e.keyCode == 13)) {
|
4422
|
-
|
4671
|
+
_context17.next = 14;
|
4423
4672
|
break;
|
4424
4673
|
}
|
4425
4674
|
|
4426
4675
|
time = Date.parse(new Date());
|
4427
4676
|
|
4428
4677
|
if (!(_this8.isStorageCardInputType && time - _this8.keypressStime > 350)) {
|
4429
|
-
|
4678
|
+
_context17.next = 7;
|
4430
4679
|
break;
|
4431
4680
|
}
|
4432
4681
|
|
@@ -4435,11 +4684,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4435
4684
|
_this8.setState({
|
4436
4685
|
czkValue: null
|
4437
4686
|
});
|
4438
|
-
return
|
4687
|
+
return _context17.abrupt('return');
|
4439
4688
|
|
4440
4689
|
case 7:
|
4441
4690
|
_this8.keypressStime = null;
|
4442
|
-
|
4691
|
+
_context17.next = 10;
|
4443
4692
|
return _this8.loadCzk(e.target.value);
|
4444
4693
|
|
4445
4694
|
case 10:
|
@@ -4450,7 +4699,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4450
4699
|
czkvalue: null
|
4451
4700
|
});
|
4452
4701
|
}
|
4453
|
-
|
4702
|
+
_context17.next = 15;
|
4454
4703
|
break;
|
4455
4704
|
|
4456
4705
|
case 14:
|
@@ -4460,14 +4709,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4460
4709
|
|
4461
4710
|
case 15:
|
4462
4711
|
case 'end':
|
4463
|
-
return
|
4712
|
+
return _context17.stop();
|
4464
4713
|
}
|
4465
4714
|
}
|
4466
|
-
},
|
4715
|
+
}, _callee17, _this8);
|
4467
4716
|
}));
|
4468
4717
|
|
4469
|
-
return function (
|
4470
|
-
return
|
4718
|
+
return function (_x13) {
|
4719
|
+
return _ref34.apply(this, arguments);
|
4471
4720
|
};
|
4472
4721
|
}(),
|
4473
4722
|
onFocus: function onFocus(e) {
|
@@ -4524,8 +4773,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4524
4773
|
_this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.balance));
|
4525
4774
|
},
|
4526
4775
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance)),
|
4527
|
-
ref: function ref(
|
4528
|
-
return _this8["inputCzkAmount"] =
|
4776
|
+
ref: function ref(_ref35) {
|
4777
|
+
return _this8["inputCzkAmount"] = _ref35;
|
4529
4778
|
},
|
4530
4779
|
onFocus: function onFocus(e) {
|
4531
4780
|
_this8.inputkey = "inputCzkAmount";
|
@@ -5118,12 +5367,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
5118
5367
|
_react2.default.createElement(
|
5119
5368
|
'div',
|
5120
5369
|
{ className: 'value' },
|
5121
|
-
currentMode && currentMode.member && (0, _utils.getFixedNumber)(currentMode.
|
5370
|
+
currentMode && currentMode.member && (0, _utils.getFixedNumber)(currentMode.steadCashIntegral)
|
5122
5371
|
),
|
5123
5372
|
_react2.default.createElement(
|
5124
5373
|
'div',
|
5125
5374
|
{ className: 'name' },
|
5126
|
-
'\
|
5375
|
+
'\u672C\u5355\u4F7F\u7528\u79EF\u5206'
|
5127
5376
|
)
|
5128
5377
|
),
|
5129
5378
|
_react2.default.createElement(
|
@@ -5144,7 +5393,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
5144
5393
|
_react2.default.createElement(
|
5145
5394
|
'div',
|
5146
5395
|
{ className: 'name' },
|
5147
|
-
'\u672C\u5355\u53EF\
|
5396
|
+
'\u672C\u5355\u53EF\u62B5\u73B0\u91D1\u989D'
|
5148
5397
|
)
|
5149
5398
|
)
|
5150
5399
|
),
|
@@ -5195,8 +5444,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
5195
5444
|
_this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
|
5196
5445
|
},
|
5197
5446
|
defaultValue: currentMode && currentMode.member && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
|
5198
|
-
ref: function ref(
|
5199
|
-
return _this8["inputJfdxAmount"] =
|
5447
|
+
ref: function ref(_ref36) {
|
5448
|
+
return _this8["inputJfdxAmount"] = _ref36;
|
5200
5449
|
},
|
5201
5450
|
onFocus: function onFocus(e) {
|
5202
5451
|
_this8.inputkey = "inputJfdxAmount";
|