tplus-components-touch 3.35.1 → 3.36.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/index.js +19 -157
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/billSearch/index.less +3 -6
- package/dist/components/cloudPrint/api.js +43 -85
- package/dist/components/cloudPrint/api.js.map +1 -1
- package/dist/components/cloudPrint/printDispatch.js +108 -211
- package/dist/components/cloudPrint/printDispatch.js.map +1 -1
- package/dist/components/deliverySearch/index.js +1 -1
- package/dist/components/deliverySearch/index.js.map +1 -1
- package/dist/components/hotKey/localConfig.js +14 -133
- package/dist/components/hotKey/localConfig.js.map +1 -1
- package/dist/components/inventorySearch/tab.js +67 -77
- package/dist/components/inventorySearch/tab.js.map +1 -1
- package/dist/components/keyboard/numberButton_input.js +2 -4
- package/dist/components/keyboard/numberButton_input.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton2.less +40 -35
- package/dist/components/loading/loadingContent.js +1 -1
- package/dist/components/loading/loadingContent.js.map +1 -1
- package/dist/components/loading/style.less +7 -7
- package/dist/components/progressState/EmptyAndErrorView.js +3 -4
- package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
- package/dist/components/progressState/ProgressState.js +1 -2
- package/dist/components/progressState/ProgressState.js.map +1 -1
- package/dist/components/settlement/settlement.js +481 -736
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +7 -77
- package/dist/components/settlement/settlementStore.js +313 -542
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/ticon/iconfont/demo_index.html +3 -49
- package/dist/components/ticon/iconfont/iconfont.css +3 -11
- package/dist/components/ticon/iconfont/iconfont.js +6 -6
- package/dist/components/ticon/iconfont/iconfont.js.map +1 -1
- package/dist/components/ticon/iconfont/iconfont.json +0 -14
- 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/touchScroll/index.js +2 -6
- package/dist/components/touchScroll/index.js.map +1 -1
- package/dist/components/touchTable/index.js +4 -5
- package/dist/components/touchTable/index.js.map +1 -1
- package/dist/components/touchTable/index.less +13 -20
- package/dist/index.js +2 -14
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/components/settlement/moreCzkTable/index.js +0 -156
- package/dist/components/settlement/moreCzkTable/index.js.map +0 -1
- package/dist/components/settlement/moreCzkTable/style.less +0 -7
|
@@ -354,7 +354,6 @@ var BillSearch = function (_React$Component) {
|
|
|
354
354
|
value4 = _this$state2.value4,
|
|
355
355
|
value5 = _this$state2.value5,
|
|
356
356
|
value6 = _this$state2.value6,
|
|
357
|
-
value7 = _this$state2.value7,
|
|
358
357
|
option = _this$state2.option;
|
|
359
358
|
|
|
360
359
|
return (0, _extends5.default)({
|
|
@@ -362,14 +361,11 @@ var BillSearch = function (_React$Component) {
|
|
|
362
361
|
PageSize: 15, // int 页大小,默认10
|
|
363
362
|
StartVoucherDate: '', // datetime 单据开始日期
|
|
364
363
|
EndVoucherDate: '', // datetime 单据结束日期
|
|
365
|
-
StartCreatedTime: '', // datatime 交易开始时间
|
|
366
|
-
EndCreatedTime: '', // datetime 交易结束时间
|
|
367
364
|
Key: value3, // 单据编号,支持模糊查询
|
|
368
365
|
KeyType: type === 2 ? '1' : '0', //区分原单退货与单据查询
|
|
369
366
|
Inventory: value4, //string 商品名称(条形码、助记码、商品编码、商品名称)
|
|
370
367
|
Member: value5, //string 会员(会员卡号、手机号、会员名称)
|
|
371
368
|
SerialNumber: value6,
|
|
372
|
-
TradeNo: value7, //string 支付流水号
|
|
373
369
|
VoucherType: '', // int 单据业务类型,下拉单选,返回对应业务类型Id
|
|
374
370
|
VoucherState: '', // int 单据状态,下拉单选,返回枚举Id
|
|
375
371
|
Navigator: '', // string 导购,多选,返回导购Id,多个用英文逗号隔开,如:1,2,3,4
|
|
@@ -472,22 +468,6 @@ var BillSearch = function (_React$Component) {
|
|
|
472
468
|
});
|
|
473
469
|
};
|
|
474
470
|
|
|
475
|
-
_this.onTimeChange = function (dateArray) {
|
|
476
|
-
console.log('dateArray => ', dateArray);
|
|
477
|
-
var date1 = void 0,
|
|
478
|
-
date2 = void 0;
|
|
479
|
-
if (!dateArray || dateArray.length == 0) {
|
|
480
|
-
console.log('没有传入dateArray');
|
|
481
|
-
date1 = date2 = '';
|
|
482
|
-
} else {
|
|
483
|
-
date1 = _tools2.default.dateFormat(new Date(dateArray[0]), 'yyyy-MM-dd HH:mm:ss');
|
|
484
|
-
date2 = _tools2.default.dateFormat(new Date(dateArray[1]), 'yyyy-MM-dd HH:mm:ss');
|
|
485
|
-
}
|
|
486
|
-
_this.setState({
|
|
487
|
-
option: (0, _extends5.default)({}, _this.state.option, { StartCreatedTime: date1, EndCreatedTime: date2 })
|
|
488
|
-
});
|
|
489
|
-
};
|
|
490
|
-
|
|
491
471
|
_this.handleChange = function (type, value) {
|
|
492
472
|
_this.setState({
|
|
493
473
|
option: (0, _extends5.default)({}, _this.state.option, (0, _defineProperty3.default)({}, type, Array.isArray(value) ? value.join(',') : value))
|
|
@@ -885,14 +865,6 @@ var BillSearch = function (_React$Component) {
|
|
|
885
865
|
EndVoucherDate: ''
|
|
886
866
|
})
|
|
887
867
|
});
|
|
888
|
-
} else if (type == 'time') {
|
|
889
|
-
// 清空时间
|
|
890
|
-
_this.setState({
|
|
891
|
-
option: (0, _extends5.default)({}, _this.state.option, {
|
|
892
|
-
StartCreatedTime: '',
|
|
893
|
-
EndCreatedTime: ''
|
|
894
|
-
})
|
|
895
|
-
});
|
|
896
868
|
} else if (type == 'money') {
|
|
897
869
|
// 清空金额
|
|
898
870
|
_this.setState({
|
|
@@ -911,10 +883,6 @@ var BillSearch = function (_React$Component) {
|
|
|
911
883
|
_this.setState({
|
|
912
884
|
value6: ''
|
|
913
885
|
});
|
|
914
|
-
} else if (type === 'value7') {
|
|
915
|
-
_this.setState({
|
|
916
|
-
value7: ''
|
|
917
|
-
});
|
|
918
886
|
} else {
|
|
919
887
|
// 剩下的一些单选
|
|
920
888
|
_this.setState({
|
|
@@ -933,7 +901,7 @@ var BillSearch = function (_React$Component) {
|
|
|
933
901
|
|
|
934
902
|
_this.loadingIcon = function () {
|
|
935
903
|
var theme = _mutantsUtil.localStore.get('theme');
|
|
936
|
-
var img = 'https://newretail.static.chanjet.com/bc_pos/loading' + (theme == 'blue' || theme == 'dark' ? '
|
|
904
|
+
var img = 'https://newretail.static.chanjet.com/bc_pos/loading' + (theme == 'blue' || theme == 'dark' ? '2' : '') + '.gif';
|
|
937
905
|
return _react2.default.createElement('img', { src: img, style: { width: '90px', height: '90px' } });
|
|
938
906
|
};
|
|
939
907
|
|
|
@@ -945,7 +913,6 @@ var BillSearch = function (_React$Component) {
|
|
|
945
913
|
value4: '',
|
|
946
914
|
value5: '',
|
|
947
915
|
value6: '',
|
|
948
|
-
value7: '', //支付流水号
|
|
949
916
|
tableDataList: [],
|
|
950
917
|
show: false,
|
|
951
918
|
isLook: true, //区别查看、退货
|
|
@@ -966,8 +933,6 @@ var BillSearch = function (_React$Component) {
|
|
|
966
933
|
option: {
|
|
967
934
|
StartVoucherDate: '', // 单据开始日期
|
|
968
935
|
EndVoucherDate: '', // 单据结束日期
|
|
969
|
-
StartCreatedTime: '', //交易开始时间
|
|
970
|
-
EndCreatedTime: '', //交易结束时间
|
|
971
936
|
VoucherCode: '', //
|
|
972
937
|
VoucherType: '', // 据业务类型,下拉选项,返回对应业务类型Id
|
|
973
938
|
VoucherState: '', // 单据状态,下拉选项,返回枚举Id
|
|
@@ -1021,24 +986,23 @@ var BillSearch = function (_React$Component) {
|
|
|
1021
986
|
var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9() {
|
|
1022
987
|
var _this3 = this;
|
|
1023
988
|
|
|
1024
|
-
var that,
|
|
989
|
+
var that, _props, idStore, type, storeData, listColumn, selectListData, selectList, _ref14, HeadFieldDesign, detailColumn, value3, IdmarketingOrgan, POSCode, VoucherDate, result, Code, DetailColumn, ListColumn, detailColumnMeta, endTime, startTime;
|
|
1025
990
|
|
|
1026
991
|
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
|
1027
992
|
while (1) {
|
|
1028
993
|
switch (_context9.prev = _context9.next) {
|
|
1029
994
|
case 0:
|
|
1030
995
|
that = this;
|
|
1031
|
-
columsArr = [];
|
|
1032
996
|
_props = this.props, idStore = _props.idStore, type = _props.type, storeData = _props.storeData;
|
|
1033
|
-
_context9.next =
|
|
997
|
+
_context9.next = 4;
|
|
1034
998
|
return _api2.default.getPOSSearchRetailListDesigns();
|
|
1035
999
|
|
|
1036
|
-
case
|
|
1000
|
+
case 4:
|
|
1037
1001
|
listColumn = _context9.sent;
|
|
1038
|
-
_context9.next =
|
|
1002
|
+
_context9.next = 7;
|
|
1039
1003
|
return _api2.default.getRetailSearchItemList(idStore);
|
|
1040
1004
|
|
|
1041
|
-
case
|
|
1005
|
+
case 7:
|
|
1042
1006
|
selectListData = _context9.sent;
|
|
1043
1007
|
selectList = SELECT_LIST;
|
|
1044
1008
|
|
|
@@ -1046,26 +1010,26 @@ var BillSearch = function (_React$Component) {
|
|
|
1046
1010
|
selectList[item.ItemType] = item.Items;
|
|
1047
1011
|
});
|
|
1048
1012
|
console.log(listColumn, selectList, 'select-----');
|
|
1049
|
-
_context9.next =
|
|
1013
|
+
_context9.next = 13;
|
|
1050
1014
|
return _api2.default.getPOSSearchDesigns();
|
|
1051
1015
|
|
|
1052
|
-
case
|
|
1016
|
+
case 13:
|
|
1053
1017
|
_ref14 = _context9.sent;
|
|
1054
1018
|
HeadFieldDesign = _ref14.HeadFieldDesign;
|
|
1055
1019
|
detailColumn = _ref14.list;
|
|
1056
1020
|
value3 = '';
|
|
1057
1021
|
|
|
1058
1022
|
if (!(type === 2)) {
|
|
1059
|
-
_context9.next =
|
|
1023
|
+
_context9.next = 27;
|
|
1060
1024
|
break;
|
|
1061
1025
|
}
|
|
1062
1026
|
|
|
1063
1027
|
//退货
|
|
1064
1028
|
IdmarketingOrgan = storeData.IdmarketingOrgan, POSCode = storeData.POSCode, VoucherDate = storeData.VoucherDate;
|
|
1065
|
-
_context9.next =
|
|
1029
|
+
_context9.next = 21;
|
|
1066
1030
|
return _api2.default.getPOSOrigReturnListInitData({ IdmarketingOrgan: IdmarketingOrgan, POSCode: POSCode, VoucherDate: VoucherDate });
|
|
1067
1031
|
|
|
1068
|
-
case
|
|
1032
|
+
case 21:
|
|
1069
1033
|
result = _context9.sent;
|
|
1070
1034
|
Code = result.Code, DetailColumn = result.DetailColumn, ListColumn = result.ListColumn;
|
|
1071
1035
|
|
|
@@ -1074,11 +1038,11 @@ var BillSearch = function (_React$Component) {
|
|
|
1074
1038
|
HeadFieldDesign = DetailColumn.HeadFieldDesign;
|
|
1075
1039
|
detailColumn = DetailColumn.list;
|
|
1076
1040
|
|
|
1077
|
-
case
|
|
1041
|
+
case 27:
|
|
1078
1042
|
detailColumnMeta = detailColumn;
|
|
1079
1043
|
|
|
1080
1044
|
detailColumn = this.initDetailColumn(detailColumn, false);
|
|
1081
|
-
listColumn.map(function (v) {
|
|
1045
|
+
listColumn = listColumn.map(function (v) {
|
|
1082
1046
|
var obj = {
|
|
1083
1047
|
title: v.OriginalTitle,
|
|
1084
1048
|
dataIndex: v.FieldName,
|
|
@@ -1126,9 +1090,9 @@ var BillSearch = function (_React$Component) {
|
|
|
1126
1090
|
);
|
|
1127
1091
|
};
|
|
1128
1092
|
}
|
|
1129
|
-
|
|
1093
|
+
return obj;
|
|
1130
1094
|
});
|
|
1131
|
-
|
|
1095
|
+
listColumn.push({
|
|
1132
1096
|
title: "操作",
|
|
1133
1097
|
dataIndex: "i",
|
|
1134
1098
|
key: "i",
|
|
@@ -1161,8 +1125,6 @@ var BillSearch = function (_React$Component) {
|
|
|
1161
1125
|
});
|
|
1162
1126
|
endTime = (0, _moment2.default)().format('l');
|
|
1163
1127
|
startTime = (0, _moment2.default)().format('l');
|
|
1164
|
-
// let endTime1 = moment().endOf('day');
|
|
1165
|
-
// let startTime1 = moment().format('l');
|
|
1166
1128
|
|
|
1167
1129
|
if (type === 2) startTime = (0, _moment2.default)().subtract(7, 'days').format('YYYY/MM/DD');
|
|
1168
1130
|
this.setState({
|
|
@@ -1171,8 +1133,8 @@ var BillSearch = function (_React$Component) {
|
|
|
1171
1133
|
detailColumn: detailColumn,
|
|
1172
1134
|
detailColumnMeta: detailColumnMeta,
|
|
1173
1135
|
selectList: selectList,
|
|
1174
|
-
listColumn:
|
|
1175
|
-
option: (0, _extends5.default)({}, this.state.option, { StartVoucherDate: startTime, EndVoucherDate: endTime
|
|
1136
|
+
listColumn: listColumn,
|
|
1137
|
+
option: (0, _extends5.default)({}, this.state.option, { StartVoucherDate: startTime, EndVoucherDate: endTime })
|
|
1176
1138
|
}, (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
|
|
1177
1139
|
return _regenerator2.default.wrap(function _callee8$(_context8) {
|
|
1178
1140
|
while (1) {
|
|
@@ -1197,7 +1159,7 @@ var BillSearch = function (_React$Component) {
|
|
|
1197
1159
|
}, _callee8, _this3);
|
|
1198
1160
|
})));
|
|
1199
1161
|
|
|
1200
|
-
case
|
|
1162
|
+
case 35:
|
|
1201
1163
|
case 'end':
|
|
1202
1164
|
return _context9.stop();
|
|
1203
1165
|
}
|
|
@@ -1282,7 +1244,6 @@ var BillSearch = function (_React$Component) {
|
|
|
1282
1244
|
value4 = _state.value4,
|
|
1283
1245
|
value5 = _state.value5,
|
|
1284
1246
|
value6 = _state.value6,
|
|
1285
|
-
value7 = _state.value7,
|
|
1286
1247
|
tableDataList = _state.tableDataList,
|
|
1287
1248
|
show = _state.show,
|
|
1288
1249
|
isLook = _state.isLook,
|
|
@@ -1299,6 +1260,7 @@ var BillSearch = function (_React$Component) {
|
|
|
1299
1260
|
HeadFieldDesign = _state.HeadFieldDesign,
|
|
1300
1261
|
isPickupCard = _state.isPickupCard;
|
|
1301
1262
|
|
|
1263
|
+
|
|
1302
1264
|
tableDataList = [].concat((0, _toConsumableArray3.default)(tableDataList));
|
|
1303
1265
|
tableDataList.push({
|
|
1304
1266
|
VoucherType: "",
|
|
@@ -1563,63 +1525,12 @@ var BillSearch = function (_React$Component) {
|
|
|
1563
1525
|
),
|
|
1564
1526
|
_react2.default.createElement(RangePicker, {
|
|
1565
1527
|
placeholder: ['开始', '结束'],
|
|
1566
|
-
dateInputPlaceholder: ['开始', '结束'],
|
|
1567
|
-
showClear: true,
|
|
1568
|
-
showOk: false,
|
|
1569
|
-
showToday: false,
|
|
1570
1528
|
format: 'YYYY-MM-DD',
|
|
1571
1529
|
onChange: this.onDateChange,
|
|
1572
1530
|
defaultValue: [(0, _moment2.default)(), (0, _moment2.default)()],
|
|
1573
1531
|
value: [this.dateFormat(option.StartVoucherDate), this.dateFormat(option.EndVoucherDate)]
|
|
1574
1532
|
})
|
|
1575
1533
|
),
|
|
1576
|
-
_react2.default.createElement(
|
|
1577
|
-
'div',
|
|
1578
|
-
{ className: 'bill-title-item' },
|
|
1579
|
-
_react2.default.createElement(
|
|
1580
|
-
'label',
|
|
1581
|
-
null,
|
|
1582
|
-
_react2.default.createElement(
|
|
1583
|
-
'span',
|
|
1584
|
-
null,
|
|
1585
|
-
'\u4EA4'
|
|
1586
|
-
),
|
|
1587
|
-
_react2.default.createElement(
|
|
1588
|
-
'span',
|
|
1589
|
-
null,
|
|
1590
|
-
'\u6613'
|
|
1591
|
-
),
|
|
1592
|
-
_react2.default.createElement(
|
|
1593
|
-
'span',
|
|
1594
|
-
null,
|
|
1595
|
-
'\u65F6'
|
|
1596
|
-
),
|
|
1597
|
-
_react2.default.createElement(
|
|
1598
|
-
'span',
|
|
1599
|
-
null,
|
|
1600
|
-
'\u95F4'
|
|
1601
|
-
)
|
|
1602
|
-
),
|
|
1603
|
-
':',
|
|
1604
|
-
_react2.default.createElement(
|
|
1605
|
-
'div',
|
|
1606
|
-
{ className: 'bill-title-item-all ' + (option.StartCreatedTime ? '' : 'text-default'), onClick: this.onClickAll.bind(this, 'time') },
|
|
1607
|
-
'\u5168\u90E8'
|
|
1608
|
-
),
|
|
1609
|
-
_react2.default.createElement(RangePicker, {
|
|
1610
|
-
className: 'searchPicker',
|
|
1611
|
-
showTime: true,
|
|
1612
|
-
placeholder: ['开始', '结束'],
|
|
1613
|
-
dateInputPlaceholder: ['开始', '结束'],
|
|
1614
|
-
showClear: true,
|
|
1615
|
-
showOk: false,
|
|
1616
|
-
showToday: false,
|
|
1617
|
-
format: 'YYYY-MM-DD HH:mm:ss',
|
|
1618
|
-
onChange: this.onTimeChange,
|
|
1619
|
-
defaultValue: [(0, _moment2.default)(), (0, _moment2.default)()],
|
|
1620
|
-
value: [this.dateFormat(option.StartCreatedTime), this.dateFormat(option.EndCreatedTime)]
|
|
1621
|
-
})
|
|
1622
|
-
),
|
|
1623
1534
|
isRefund === false && (isSpecialQuery || isEnableMinMall) ? _react2.default.createElement(
|
|
1624
1535
|
'div',
|
|
1625
1536
|
{ className: 'bill-title-item' },
|
|
@@ -2041,55 +1952,6 @@ var BillSearch = function (_React$Component) {
|
|
|
2041
1952
|
);
|
|
2042
1953
|
})
|
|
2043
1954
|
)
|
|
2044
|
-
),
|
|
2045
|
-
_react2.default.createElement(
|
|
2046
|
-
'div',
|
|
2047
|
-
{ className: 'bill-title-item' },
|
|
2048
|
-
_react2.default.createElement(
|
|
2049
|
-
'label',
|
|
2050
|
-
null,
|
|
2051
|
-
_react2.default.createElement(
|
|
2052
|
-
'span',
|
|
2053
|
-
null,
|
|
2054
|
-
'\u652F'
|
|
2055
|
-
),
|
|
2056
|
-
_react2.default.createElement(
|
|
2057
|
-
'span',
|
|
2058
|
-
null,
|
|
2059
|
-
'\u4ED8'
|
|
2060
|
-
),
|
|
2061
|
-
_react2.default.createElement(
|
|
2062
|
-
'span',
|
|
2063
|
-
null,
|
|
2064
|
-
'\u6D41'
|
|
2065
|
-
),
|
|
2066
|
-
_react2.default.createElement(
|
|
2067
|
-
'span',
|
|
2068
|
-
null,
|
|
2069
|
-
'\u6C34'
|
|
2070
|
-
),
|
|
2071
|
-
_react2.default.createElement(
|
|
2072
|
-
'span',
|
|
2073
|
-
null,
|
|
2074
|
-
'\u53F7'
|
|
2075
|
-
)
|
|
2076
|
-
),
|
|
2077
|
-
':',
|
|
2078
|
-
_react2.default.createElement(
|
|
2079
|
-
'div',
|
|
2080
|
-
{ className: 'bill-title-item-all ' + (value7 ? '' : 'text-default'), onClick: this.onClickAll.bind(this, 'value7') },
|
|
2081
|
-
'\u5168\u90E8'
|
|
2082
|
-
),
|
|
2083
|
-
_react2.default.createElement(_input2.default, { type: 'text',
|
|
2084
|
-
placeholder: '\u626B\u63CF/\u8F93\u5165\u652F\u4ED8\u6D41\u6C34\u53F7',
|
|
2085
|
-
value: value7,
|
|
2086
|
-
className: 'bill-title-txt-input android_focus_keyboard',
|
|
2087
|
-
onChange: this.onChange.bind(this, 7),
|
|
2088
|
-
onClick: this.onFocus.bind(this, 7),
|
|
2089
|
-
ref: function ref(input) {
|
|
2090
|
-
return _this4.input7 = input;
|
|
2091
|
-
}
|
|
2092
|
-
})
|
|
2093
1955
|
)
|
|
2094
1956
|
),
|
|
2095
1957
|
_react2.default.createElement(
|