tplus-components-touch 3.33.15 → 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/modalWraper/index.js +1 -1
- package/dist/components/modalWraper/index.js.map +1 -1
- 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 +494 -750
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +10 -101
- package/dist/components/settlement/settlementStore.js +462 -1068
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/ticon/iconfont/demo.css +539 -539
- 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 +35 -35
- 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
package/package.json
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "tplus-components-touch",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "set DEBUG=tplus:*,-not_this && mocha",
|
|
8
|
-
"start": "node node_modules/mutants-devtools/bin/start",
|
|
9
|
-
"build": "rm -rf dist && node node_modules/mutants-devtools/bin/build",
|
|
10
|
-
"pub": "npm run build && npm publish --registry https://registry.npmjs.org && cnpm sync tplus-components-touch",
|
|
11
|
-
"dev": "node node_modules/mutants-devtools/bin/dev ../touch"
|
|
12
|
-
},
|
|
13
|
-
"author": "",
|
|
14
|
-
"license": "ISC",
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"babel-eslint": "^10.0.1",
|
|
17
|
-
"babel-plugin-import-bee": "^1.1.0",
|
|
18
|
-
"eslint": "^5.15.1",
|
|
19
|
-
"eslint-plugin-react": "^7.13.0",
|
|
20
|
-
"mocha": "^6.0.2",
|
|
21
|
-
"mutants-appfx": "^1.0.0",
|
|
22
|
-
"mutants-devtools": "^1.0.0",
|
|
23
|
-
"mutants-microfx": "^1.0.0",
|
|
24
|
-
"tplus-api": "~5.0.1",
|
|
25
|
-
"tplus-components": "~3.
|
|
26
|
-
},
|
|
27
|
-
"dependencies": {
|
|
28
|
-
"antd": "4.10.3",
|
|
29
|
-
"bee-table": "^2.2.24",
|
|
30
|
-
"keymaster": "^1.6.2",
|
|
31
|
-
"lodash.findindex": "^4.6.0",
|
|
32
|
-
"moment": "^2.24.0",
|
|
33
|
-
"swiper": "^4.5.0"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "tplus-components-touch",
|
|
3
|
+
"version": "3.36.1",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "set DEBUG=tplus:*,-not_this && mocha",
|
|
8
|
+
"start": "node node_modules/mutants-devtools/bin/start",
|
|
9
|
+
"build": "rm -rf dist && node node_modules/mutants-devtools/bin/build",
|
|
10
|
+
"pub": "npm run build && npm publish --registry https://registry.npmjs.org && cnpm sync tplus-components-touch",
|
|
11
|
+
"dev": "node node_modules/mutants-devtools/bin/dev ../touch"
|
|
12
|
+
},
|
|
13
|
+
"author": "",
|
|
14
|
+
"license": "ISC",
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"babel-eslint": "^10.0.1",
|
|
17
|
+
"babel-plugin-import-bee": "^1.1.0",
|
|
18
|
+
"eslint": "^5.15.1",
|
|
19
|
+
"eslint-plugin-react": "^7.13.0",
|
|
20
|
+
"mocha": "^6.0.2",
|
|
21
|
+
"mutants-appfx": "^1.0.0",
|
|
22
|
+
"mutants-devtools": "^1.0.0",
|
|
23
|
+
"mutants-microfx": "^1.0.0",
|
|
24
|
+
"tplus-api": "~5.0.1",
|
|
25
|
+
"tplus-components": "~3.36.1"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"antd": "4.10.3",
|
|
29
|
+
"bee-table": "^2.2.24",
|
|
30
|
+
"keymaster": "^1.6.2",
|
|
31
|
+
"lodash.findindex": "^4.6.0",
|
|
32
|
+
"moment": "^2.24.0",
|
|
33
|
+
"swiper": "^4.5.0"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = undefined;
|
|
7
|
-
|
|
8
|
-
var _table = require('antd/es/table');
|
|
9
|
-
|
|
10
|
-
var _table2 = _interopRequireDefault(_table);
|
|
11
|
-
|
|
12
|
-
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
|
|
13
|
-
|
|
14
|
-
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
|
|
15
|
-
|
|
16
|
-
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
|
|
17
|
-
|
|
18
|
-
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
|
|
19
|
-
|
|
20
|
-
var _createClass2 = require('babel-runtime/helpers/createClass');
|
|
21
|
-
|
|
22
|
-
var _createClass3 = _interopRequireDefault(_createClass2);
|
|
23
|
-
|
|
24
|
-
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
|
|
25
|
-
|
|
26
|
-
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
|
|
27
|
-
|
|
28
|
-
var _inherits2 = require('babel-runtime/helpers/inherits');
|
|
29
|
-
|
|
30
|
-
var _inherits3 = _interopRequireDefault(_inherits2);
|
|
31
|
-
|
|
32
|
-
var _class;
|
|
33
|
-
|
|
34
|
-
require('antd/es/table/style');
|
|
35
|
-
|
|
36
|
-
var _react = require('react');
|
|
37
|
-
|
|
38
|
-
var _react2 = _interopRequireDefault(_react);
|
|
39
|
-
|
|
40
|
-
var _mutantsMicrofx = require('mutants-microfx');
|
|
41
|
-
|
|
42
|
-
require('./style.less');
|
|
43
|
-
|
|
44
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
45
|
-
|
|
46
|
-
var PrototypeTableModal = (0, _mutantsMicrofx.observer)(_class = function (_Component) {
|
|
47
|
-
(0, _inherits3.default)(PrototypeTableModal, _Component);
|
|
48
|
-
|
|
49
|
-
function PrototypeTableModal() {
|
|
50
|
-
var _ref;
|
|
51
|
-
|
|
52
|
-
var _temp, _this, _ret;
|
|
53
|
-
|
|
54
|
-
(0, _classCallCheck3.default)(this, PrototypeTableModal);
|
|
55
|
-
|
|
56
|
-
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
57
|
-
args[_key] = arguments[_key];
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
return _ret = (_temp = (_this = (0, _possibleConstructorReturn3.default)(this, (_ref = PrototypeTableModal.__proto__ || (0, _getPrototypeOf2.default)(PrototypeTableModal)).call.apply(_ref, [this].concat(args))), _this), _this.getRowClassName = function (record, index) {
|
|
61
|
-
var selectedRowIndex = _this.props.selectedRowIndex;
|
|
62
|
-
|
|
63
|
-
if (selectedRowIndex == index) {
|
|
64
|
-
return 'row-selected';
|
|
65
|
-
} else {
|
|
66
|
-
return '';
|
|
67
|
-
}
|
|
68
|
-
}, _this.onRowClick = function (record, index) {
|
|
69
|
-
_this.props.setMoreCzkIndex(index);
|
|
70
|
-
}, _temp), (0, _possibleConstructorReturn3.default)(_this, _ret);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
(0, _createClass3.default)(PrototypeTableModal, [{
|
|
74
|
-
key: 'getColumns',
|
|
75
|
-
value: function getColumns(data1) {
|
|
76
|
-
// 卡类型
|
|
77
|
-
var cardTypeEnumList = {
|
|
78
|
-
BALANCE_CARD: "余额卡",
|
|
79
|
-
ELEC_STORAGE_CARD: "电子储值卡",
|
|
80
|
-
STORAGE_CARD: "储值卡",
|
|
81
|
-
PHYSICAL_STORAGE_CARD: "实体储值卡"
|
|
82
|
-
};
|
|
83
|
-
var columns = [{
|
|
84
|
-
title: '卡号',
|
|
85
|
-
dataIndex: 'StorageCardNo',
|
|
86
|
-
key: 'StorageCardNo',
|
|
87
|
-
ellipsis: true,
|
|
88
|
-
align: 'center',
|
|
89
|
-
width: 200
|
|
90
|
-
}, {
|
|
91
|
-
title: '卡类型',
|
|
92
|
-
dataIndex: 'CardTypeEnum',
|
|
93
|
-
key: 'CardTypeEnum',
|
|
94
|
-
ellipsis: true,
|
|
95
|
-
align: 'center',
|
|
96
|
-
width: 120,
|
|
97
|
-
render: function render(showText) {
|
|
98
|
-
return _react2.default.createElement(
|
|
99
|
-
'div',
|
|
100
|
-
null,
|
|
101
|
-
cardTypeEnumList[showText]
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
|
-
}, {
|
|
105
|
-
title: '会员手机号',
|
|
106
|
-
dataIndex: 'MemberMobile',
|
|
107
|
-
key: 'MemberMobile',
|
|
108
|
-
ellipsis: true,
|
|
109
|
-
align: 'center',
|
|
110
|
-
width: 120
|
|
111
|
-
}, {
|
|
112
|
-
title: '会员',
|
|
113
|
-
dataIndex: 'MemberName',
|
|
114
|
-
key: 'MemberName',
|
|
115
|
-
ellipsis: true,
|
|
116
|
-
align: 'center',
|
|
117
|
-
width: 160
|
|
118
|
-
}, {
|
|
119
|
-
title: '余额',
|
|
120
|
-
dataIndex: 'BalanceStorage',
|
|
121
|
-
key: 'BalanceStorage',
|
|
122
|
-
ellipsis: true,
|
|
123
|
-
align: 'center',
|
|
124
|
-
width: 160
|
|
125
|
-
}];
|
|
126
|
-
return columns;
|
|
127
|
-
}
|
|
128
|
-
}, {
|
|
129
|
-
key: 'render',
|
|
130
|
-
value: function render() {
|
|
131
|
-
var _this2 = this;
|
|
132
|
-
|
|
133
|
-
var dataSource = this.props.dataSource;
|
|
134
|
-
|
|
135
|
-
var columns = this.getColumns(dataSource);
|
|
136
|
-
return _react2.default.createElement(_table2.default, {
|
|
137
|
-
className: 'moreCzkTable',
|
|
138
|
-
dataSource: dataSource,
|
|
139
|
-
columns: columns,
|
|
140
|
-
rowClassName: this.getRowClassName,
|
|
141
|
-
scroll: { y: 257 },
|
|
142
|
-
pagination: false,
|
|
143
|
-
onRow: function onRow(record, index) {
|
|
144
|
-
return {
|
|
145
|
-
onClick: function onClick() {
|
|
146
|
-
return _this2.onRowClick(record, index);
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
} });
|
|
150
|
-
}
|
|
151
|
-
}]);
|
|
152
|
-
return PrototypeTableModal;
|
|
153
|
-
}(_react.Component)) || _class;
|
|
154
|
-
|
|
155
|
-
exports.default = PrototypeTableModal;
|
|
156
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["tplus-components-touch/components/settlement/moreCzkTable/index.js"],"names":["PrototypeTableModal","observer","getRowClassName","record","index","selectedRowIndex","props","onRowClick","setMoreCzkIndex","data1","cardTypeEnumList","BALANCE_CARD","ELEC_STORAGE_CARD","STORAGE_CARD","PHYSICAL_STORAGE_CARD","columns","title","dataIndex","key","ellipsis","align","width","render","showText","dataSource","getColumns","y","onClick","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;AAEA;;;;IAGqBA,mB,OADpBC,wB;;;;;;;;;;;;;;sOA4DCC,e,GAAkB,UAACC,MAAD,EAASC,KAAT,EAAmB;AAAA,UAC3BC,gBAD2B,GACN,MAAKC,KADC,CAC3BD,gBAD2B;;AAEnC,UAAIA,oBAAoBD,KAAxB,EAA+B;AAC7B,eAAO,cAAP;AACD,OAFD,MAEO;AACL,eAAO,EAAP;AACD;AACF,K,QAEDG,U,GAAa,UAACJ,MAAD,EAASC,KAAT,EAAmB;AAC9B,YAAKE,KAAL,CAAWE,eAAX,CAA2BJ,KAA3B;AACD,K;;;;;+BArEUK,K,EAAO;AACd;AACF,UAAMC,mBAAmB;AACrBC,sBAAc,KADO;AAErBC,2BAAmB,OAFE;AAGrBC,sBAAc,KAHO;AAIrBC,+BAAuB;AAJF,OAAzB;AAMA,UAAIC,UAAU,CACZ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EAzF8CwB,gB;;kBAA5B5B,mB","file":"index.js","sourcesContent":["import React, { Component } from 'react';\r\nimport { observer } from \"mutants-microfx\"\r\nimport { Table } from 'antd';\r\nimport './style.less';\r\n\r\n@observer\r\nexport default class PrototypeTableModal extends Component {\r\n getColumns(data1) {\r\n // 卡类型\r\n const cardTypeEnumList = {\r\n BALANCE_CARD: \"余额卡\", \r\n ELEC_STORAGE_CARD: \"电子储值卡\",\r\n STORAGE_CARD: \"储值卡\",\r\n PHYSICAL_STORAGE_CARD: \"实体储值卡\"\r\n }\r\n let columns = [\r\n {\r\n title: '卡号',\r\n dataIndex: 'StorageCardNo',\r\n key: 'StorageCardNo',\r\n ellipsis: true,\r\n align: 'center',\r\n width: 200,\r\n },\r\n {\r\n title: '卡类型',\r\n dataIndex: 'CardTypeEnum',\r\n key: 'CardTypeEnum',\r\n ellipsis: true,\r\n align: 'center',\r\n width: 120,\r\n render: (showText) => {\r\n return (\r\n <div>{cardTypeEnumList[showText]}</div>\r\n )\r\n }\r\n },\r\n {\r\n title: '会员手机号',\r\n dataIndex: 'MemberMobile',\r\n key: 'MemberMobile',\r\n ellipsis: true,\r\n align: 'center',\r\n width: 120,\r\n },\r\n {\r\n title: '会员',\r\n dataIndex: 'MemberName',\r\n key: 'MemberName',\r\n ellipsis: true,\r\n align: 'center',\r\n width: 160,\r\n },\r\n {\r\n title: '余额',\r\n dataIndex: 'BalanceStorage',\r\n key: 'BalanceStorage',\r\n ellipsis: true,\r\n align: 'center',\r\n width: 160,\r\n }\r\n ]\r\n return columns;\r\n }\r\n\r\n getRowClassName = (record, index) => {\r\n const { selectedRowIndex } = this.props;\r\n if (selectedRowIndex == index) {\r\n return 'row-selected'\r\n } else {\r\n return '';\r\n }\r\n }\r\n\r\n onRowClick = (record, index) => {\r\n this.props.setMoreCzkIndex(index)\r\n }\r\n\r\n render() {\r\n const {dataSource} = this.props;\r\n let columns = this.getColumns(dataSource);\r\n return (\r\n <Table\r\n className='moreCzkTable'\r\n dataSource={dataSource}\r\n columns={columns}\r\n rowClassName={this.getRowClassName}\r\n scroll={{ y: 257 }}\r\n pagination={false}\r\n onRow={(record, index) => {\r\n return {\r\n onClick: () => this.onRowClick(record, index)\r\n }\r\n }} ></Table>\r\n );\r\n }\r\n}\r\n"]}
|