tplus-components-touch 3.36.1 → 3.36.2
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 +157 -19
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/billSearch/index.less +6 -3
- package/dist/components/cloudPrint/api.js +85 -43
- package/dist/components/cloudPrint/api.js.map +1 -1
- package/dist/components/cloudPrint/printDispatch.js +211 -108
- 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 +133 -14
- package/dist/components/hotKey/localConfig.js.map +1 -1
- package/dist/components/inventorySearch/tab.js +77 -67
- package/dist/components/inventorySearch/tab.js.map +1 -1
- package/dist/components/keyboard/numberButton_input.js +4 -2
- package/dist/components/keyboard/numberButton_input.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton2.less +35 -40
- 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/modalWraper/index.js +1 -1
- package/dist/components/modalWraper/index.js.map +1 -1
- package/dist/components/progressState/EmptyAndErrorView.js +4 -3
- package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
- package/dist/components/progressState/ProgressState.js +2 -1
- package/dist/components/progressState/ProgressState.js.map +1 -1
- package/dist/components/settlement/index.js +9 -0
- package/dist/components/settlement/index.js.map +1 -1
- package/dist/components/settlement/moreCzkTable/index.js +156 -0
- package/dist/components/settlement/moreCzkTable/index.js.map +1 -0
- package/dist/components/settlement/moreCzkTable/style.less +7 -0
- package/dist/components/settlement/settlement.js +749 -501
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +101 -10
- package/dist/components/settlement/settlementStore.js +1072 -463
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/ticon/iconfont/demo_index.html +49 -3
- package/dist/components/ticon/iconfont/iconfont.css +11 -3
- 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 +14 -0
- 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 +6 -2
- package/dist/components/touchScroll/index.js.map +1 -1
- package/dist/components/touchTable/index.js +5 -4
- package/dist/components/touchTable/index.js.map +1 -1
- package/dist/components/touchTable/index.less +20 -13
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/package.json +35 -35
|
@@ -354,6 +354,7 @@ 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,
|
|
357
358
|
option = _this$state2.option;
|
|
358
359
|
|
|
359
360
|
return (0, _extends5.default)({
|
|
@@ -361,11 +362,14 @@ var BillSearch = function (_React$Component) {
|
|
|
361
362
|
PageSize: 15, // int 页大小,默认10
|
|
362
363
|
StartVoucherDate: '', // datetime 单据开始日期
|
|
363
364
|
EndVoucherDate: '', // datetime 单据结束日期
|
|
365
|
+
StartCreatedTime: '', // datatime 交易开始时间
|
|
366
|
+
EndCreatedTime: '', // datetime 交易结束时间
|
|
364
367
|
Key: value3, // 单据编号,支持模糊查询
|
|
365
368
|
KeyType: type === 2 ? '1' : '0', //区分原单退货与单据查询
|
|
366
369
|
Inventory: value4, //string 商品名称(条形码、助记码、商品编码、商品名称)
|
|
367
370
|
Member: value5, //string 会员(会员卡号、手机号、会员名称)
|
|
368
371
|
SerialNumber: value6,
|
|
372
|
+
TradeNo: value7, //string 支付流水号
|
|
369
373
|
VoucherType: '', // int 单据业务类型,下拉单选,返回对应业务类型Id
|
|
370
374
|
VoucherState: '', // int 单据状态,下拉单选,返回枚举Id
|
|
371
375
|
Navigator: '', // string 导购,多选,返回导购Id,多个用英文逗号隔开,如:1,2,3,4
|
|
@@ -468,6 +472,22 @@ var BillSearch = function (_React$Component) {
|
|
|
468
472
|
});
|
|
469
473
|
};
|
|
470
474
|
|
|
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
|
+
|
|
471
491
|
_this.handleChange = function (type, value) {
|
|
472
492
|
_this.setState({
|
|
473
493
|
option: (0, _extends5.default)({}, _this.state.option, (0, _defineProperty3.default)({}, type, Array.isArray(value) ? value.join(',') : value))
|
|
@@ -865,6 +885,14 @@ var BillSearch = function (_React$Component) {
|
|
|
865
885
|
EndVoucherDate: ''
|
|
866
886
|
})
|
|
867
887
|
});
|
|
888
|
+
} else if (type == 'time') {
|
|
889
|
+
// 清空时间
|
|
890
|
+
_this.setState({
|
|
891
|
+
option: (0, _extends5.default)({}, _this.state.option, {
|
|
892
|
+
StartCreatedTime: '',
|
|
893
|
+
EndCreatedTime: ''
|
|
894
|
+
})
|
|
895
|
+
});
|
|
868
896
|
} else if (type == 'money') {
|
|
869
897
|
// 清空金额
|
|
870
898
|
_this.setState({
|
|
@@ -883,6 +911,10 @@ var BillSearch = function (_React$Component) {
|
|
|
883
911
|
_this.setState({
|
|
884
912
|
value6: ''
|
|
885
913
|
});
|
|
914
|
+
} else if (type === 'value7') {
|
|
915
|
+
_this.setState({
|
|
916
|
+
value7: ''
|
|
917
|
+
});
|
|
886
918
|
} else {
|
|
887
919
|
// 剩下的一些单选
|
|
888
920
|
_this.setState({
|
|
@@ -901,7 +933,7 @@ var BillSearch = function (_React$Component) {
|
|
|
901
933
|
|
|
902
934
|
_this.loadingIcon = function () {
|
|
903
935
|
var theme = _mutantsUtil.localStore.get('theme');
|
|
904
|
-
var img = 'https://newretail.static.chanjet.com/bc_pos/loading' + (theme == 'blue' || theme == 'dark' ? '
|
|
936
|
+
var img = 'https://newretail.static.chanjet.com/bc_pos/loading' + (theme == 'blue' || theme == 'dark' ? '4' : '3') + '.gif';
|
|
905
937
|
return _react2.default.createElement('img', { src: img, style: { width: '90px', height: '90px' } });
|
|
906
938
|
};
|
|
907
939
|
|
|
@@ -913,6 +945,7 @@ var BillSearch = function (_React$Component) {
|
|
|
913
945
|
value4: '',
|
|
914
946
|
value5: '',
|
|
915
947
|
value6: '',
|
|
948
|
+
value7: '', //支付流水号
|
|
916
949
|
tableDataList: [],
|
|
917
950
|
show: false,
|
|
918
951
|
isLook: true, //区别查看、退货
|
|
@@ -933,6 +966,8 @@ var BillSearch = function (_React$Component) {
|
|
|
933
966
|
option: {
|
|
934
967
|
StartVoucherDate: '', // 单据开始日期
|
|
935
968
|
EndVoucherDate: '', // 单据结束日期
|
|
969
|
+
StartCreatedTime: '', //交易开始时间
|
|
970
|
+
EndCreatedTime: '', //交易结束时间
|
|
936
971
|
VoucherCode: '', //
|
|
937
972
|
VoucherType: '', // 据业务类型,下拉选项,返回对应业务类型Id
|
|
938
973
|
VoucherState: '', // 单据状态,下拉选项,返回枚举Id
|
|
@@ -986,23 +1021,24 @@ var BillSearch = function (_React$Component) {
|
|
|
986
1021
|
var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9() {
|
|
987
1022
|
var _this3 = this;
|
|
988
1023
|
|
|
989
|
-
var that, _props, idStore, type, storeData, listColumn, selectListData, selectList, _ref14, HeadFieldDesign, detailColumn, value3, IdmarketingOrgan, POSCode, VoucherDate, result, Code, DetailColumn, ListColumn, detailColumnMeta, endTime, startTime;
|
|
1024
|
+
var that, columsArr, _props, idStore, type, storeData, listColumn, selectListData, selectList, _ref14, HeadFieldDesign, detailColumn, value3, IdmarketingOrgan, POSCode, VoucherDate, result, Code, DetailColumn, ListColumn, detailColumnMeta, endTime, startTime;
|
|
990
1025
|
|
|
991
1026
|
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
|
992
1027
|
while (1) {
|
|
993
1028
|
switch (_context9.prev = _context9.next) {
|
|
994
1029
|
case 0:
|
|
995
1030
|
that = this;
|
|
1031
|
+
columsArr = [];
|
|
996
1032
|
_props = this.props, idStore = _props.idStore, type = _props.type, storeData = _props.storeData;
|
|
997
|
-
_context9.next =
|
|
1033
|
+
_context9.next = 5;
|
|
998
1034
|
return _api2.default.getPOSSearchRetailListDesigns();
|
|
999
1035
|
|
|
1000
|
-
case
|
|
1036
|
+
case 5:
|
|
1001
1037
|
listColumn = _context9.sent;
|
|
1002
|
-
_context9.next =
|
|
1038
|
+
_context9.next = 8;
|
|
1003
1039
|
return _api2.default.getRetailSearchItemList(idStore);
|
|
1004
1040
|
|
|
1005
|
-
case
|
|
1041
|
+
case 8:
|
|
1006
1042
|
selectListData = _context9.sent;
|
|
1007
1043
|
selectList = SELECT_LIST;
|
|
1008
1044
|
|
|
@@ -1010,26 +1046,26 @@ var BillSearch = function (_React$Component) {
|
|
|
1010
1046
|
selectList[item.ItemType] = item.Items;
|
|
1011
1047
|
});
|
|
1012
1048
|
console.log(listColumn, selectList, 'select-----');
|
|
1013
|
-
_context9.next =
|
|
1049
|
+
_context9.next = 14;
|
|
1014
1050
|
return _api2.default.getPOSSearchDesigns();
|
|
1015
1051
|
|
|
1016
|
-
case
|
|
1052
|
+
case 14:
|
|
1017
1053
|
_ref14 = _context9.sent;
|
|
1018
1054
|
HeadFieldDesign = _ref14.HeadFieldDesign;
|
|
1019
1055
|
detailColumn = _ref14.list;
|
|
1020
1056
|
value3 = '';
|
|
1021
1057
|
|
|
1022
1058
|
if (!(type === 2)) {
|
|
1023
|
-
_context9.next =
|
|
1059
|
+
_context9.next = 28;
|
|
1024
1060
|
break;
|
|
1025
1061
|
}
|
|
1026
1062
|
|
|
1027
1063
|
//退货
|
|
1028
1064
|
IdmarketingOrgan = storeData.IdmarketingOrgan, POSCode = storeData.POSCode, VoucherDate = storeData.VoucherDate;
|
|
1029
|
-
_context9.next =
|
|
1065
|
+
_context9.next = 22;
|
|
1030
1066
|
return _api2.default.getPOSOrigReturnListInitData({ IdmarketingOrgan: IdmarketingOrgan, POSCode: POSCode, VoucherDate: VoucherDate });
|
|
1031
1067
|
|
|
1032
|
-
case
|
|
1068
|
+
case 22:
|
|
1033
1069
|
result = _context9.sent;
|
|
1034
1070
|
Code = result.Code, DetailColumn = result.DetailColumn, ListColumn = result.ListColumn;
|
|
1035
1071
|
|
|
@@ -1038,11 +1074,11 @@ var BillSearch = function (_React$Component) {
|
|
|
1038
1074
|
HeadFieldDesign = DetailColumn.HeadFieldDesign;
|
|
1039
1075
|
detailColumn = DetailColumn.list;
|
|
1040
1076
|
|
|
1041
|
-
case
|
|
1077
|
+
case 28:
|
|
1042
1078
|
detailColumnMeta = detailColumn;
|
|
1043
1079
|
|
|
1044
1080
|
detailColumn = this.initDetailColumn(detailColumn, false);
|
|
1045
|
-
listColumn
|
|
1081
|
+
listColumn.map(function (v) {
|
|
1046
1082
|
var obj = {
|
|
1047
1083
|
title: v.OriginalTitle,
|
|
1048
1084
|
dataIndex: v.FieldName,
|
|
@@ -1090,9 +1126,9 @@ var BillSearch = function (_React$Component) {
|
|
|
1090
1126
|
);
|
|
1091
1127
|
};
|
|
1092
1128
|
}
|
|
1093
|
-
|
|
1129
|
+
columsArr.push(obj);
|
|
1094
1130
|
});
|
|
1095
|
-
|
|
1131
|
+
columsArr.push({
|
|
1096
1132
|
title: "操作",
|
|
1097
1133
|
dataIndex: "i",
|
|
1098
1134
|
key: "i",
|
|
@@ -1125,6 +1161,8 @@ var BillSearch = function (_React$Component) {
|
|
|
1125
1161
|
});
|
|
1126
1162
|
endTime = (0, _moment2.default)().format('l');
|
|
1127
1163
|
startTime = (0, _moment2.default)().format('l');
|
|
1164
|
+
// let endTime1 = moment().endOf('day');
|
|
1165
|
+
// let startTime1 = moment().format('l');
|
|
1128
1166
|
|
|
1129
1167
|
if (type === 2) startTime = (0, _moment2.default)().subtract(7, 'days').format('YYYY/MM/DD');
|
|
1130
1168
|
this.setState({
|
|
@@ -1133,8 +1171,8 @@ var BillSearch = function (_React$Component) {
|
|
|
1133
1171
|
detailColumn: detailColumn,
|
|
1134
1172
|
detailColumnMeta: detailColumnMeta,
|
|
1135
1173
|
selectList: selectList,
|
|
1136
|
-
listColumn:
|
|
1137
|
-
option: (0, _extends5.default)({}, this.state.option, { StartVoucherDate: startTime, EndVoucherDate: endTime })
|
|
1174
|
+
listColumn: columsArr,
|
|
1175
|
+
option: (0, _extends5.default)({}, this.state.option, { StartVoucherDate: startTime, EndVoucherDate: endTime, StartCreatedTime: '', EndCreatedTime: '' })
|
|
1138
1176
|
}, (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
|
|
1139
1177
|
return _regenerator2.default.wrap(function _callee8$(_context8) {
|
|
1140
1178
|
while (1) {
|
|
@@ -1159,7 +1197,7 @@ var BillSearch = function (_React$Component) {
|
|
|
1159
1197
|
}, _callee8, _this3);
|
|
1160
1198
|
})));
|
|
1161
1199
|
|
|
1162
|
-
case
|
|
1200
|
+
case 36:
|
|
1163
1201
|
case 'end':
|
|
1164
1202
|
return _context9.stop();
|
|
1165
1203
|
}
|
|
@@ -1244,6 +1282,7 @@ var BillSearch = function (_React$Component) {
|
|
|
1244
1282
|
value4 = _state.value4,
|
|
1245
1283
|
value5 = _state.value5,
|
|
1246
1284
|
value6 = _state.value6,
|
|
1285
|
+
value7 = _state.value7,
|
|
1247
1286
|
tableDataList = _state.tableDataList,
|
|
1248
1287
|
show = _state.show,
|
|
1249
1288
|
isLook = _state.isLook,
|
|
@@ -1260,7 +1299,6 @@ var BillSearch = function (_React$Component) {
|
|
|
1260
1299
|
HeadFieldDesign = _state.HeadFieldDesign,
|
|
1261
1300
|
isPickupCard = _state.isPickupCard;
|
|
1262
1301
|
|
|
1263
|
-
|
|
1264
1302
|
tableDataList = [].concat((0, _toConsumableArray3.default)(tableDataList));
|
|
1265
1303
|
tableDataList.push({
|
|
1266
1304
|
VoucherType: "",
|
|
@@ -1525,12 +1563,63 @@ var BillSearch = function (_React$Component) {
|
|
|
1525
1563
|
),
|
|
1526
1564
|
_react2.default.createElement(RangePicker, {
|
|
1527
1565
|
placeholder: ['开始', '结束'],
|
|
1566
|
+
dateInputPlaceholder: ['开始', '结束'],
|
|
1567
|
+
showClear: true,
|
|
1568
|
+
showOk: false,
|
|
1569
|
+
showToday: false,
|
|
1528
1570
|
format: 'YYYY-MM-DD',
|
|
1529
1571
|
onChange: this.onDateChange,
|
|
1530
1572
|
defaultValue: [(0, _moment2.default)(), (0, _moment2.default)()],
|
|
1531
1573
|
value: [this.dateFormat(option.StartVoucherDate), this.dateFormat(option.EndVoucherDate)]
|
|
1532
1574
|
})
|
|
1533
1575
|
),
|
|
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
|
+
),
|
|
1534
1623
|
isRefund === false && (isSpecialQuery || isEnableMinMall) ? _react2.default.createElement(
|
|
1535
1624
|
'div',
|
|
1536
1625
|
{ className: 'bill-title-item' },
|
|
@@ -1952,6 +2041,55 @@ var BillSearch = function (_React$Component) {
|
|
|
1952
2041
|
);
|
|
1953
2042
|
})
|
|
1954
2043
|
)
|
|
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
|
+
})
|
|
1955
2093
|
)
|
|
1956
2094
|
),
|
|
1957
2095
|
_react2.default.createElement(
|