tplus-components-touch 3.44.1 → 3.44.4

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.
Files changed (36) hide show
  1. package/dist/components/billSearch/index.js +17 -40
  2. package/dist/components/billSearch/index.js.map +1 -1
  3. package/dist/components/cloudPrint/BTPrintFormatUtil.js +2 -2
  4. package/dist/components/cloudPrint/BTPrintFormatUtil.js.map +1 -1
  5. package/dist/components/cloudPrint/index.js +893 -608
  6. package/dist/components/cloudPrint/index.js.map +1 -1
  7. package/dist/components/cloudPrint/printDispatch.js +184 -48
  8. package/dist/components/cloudPrint/printDispatch.js.map +1 -1
  9. package/dist/components/cloudPrint/printTemplate/dialy_one.json +239 -0
  10. package/dist/components/cloudPrint/printTemplate/duty_one.json +239 -0
  11. package/dist/components/cloudPrint/printTemplate/retail_one.json +204 -0
  12. package/dist/components/cloudPrint/printTemplate/retail_two.json +220 -0
  13. package/dist/components/cloudPrint/printTemplate/storage_one.json +129 -0
  14. package/dist/components/cloudPrint/printTemplate/template.js +52 -0
  15. package/dist/components/cloudPrint/printTemplate/template.js.map +1 -0
  16. package/dist/components/deliverySearch/index.js +5 -1
  17. package/dist/components/deliverySearch/index.js.map +1 -1
  18. package/dist/components/hardwareAPI/index.js +46 -12
  19. package/dist/components/hardwareAPI/index.js.map +1 -1
  20. package/dist/components/inventorySearch/tab.js +6 -1
  21. package/dist/components/inventorySearch/tab.js.map +1 -1
  22. package/dist/components/loading/loadingContent.js +5 -2
  23. package/dist/components/loading/loadingContent.js.map +1 -1
  24. package/dist/components/message/index.js +4 -5
  25. package/dist/components/message/index.js.map +1 -1
  26. package/dist/components/notification/index.js +11 -12
  27. package/dist/components/notification/index.js.map +1 -1
  28. package/dist/components/progressState/EmptyAndErrorView.js +5 -7
  29. package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
  30. package/dist/components/settlement/settlement.js +69 -97
  31. package/dist/components/settlement/settlement.js.map +1 -1
  32. package/dist/components/settlement/settlementStore.js +17 -26
  33. package/dist/components/settlement/settlementStore.js.map +1 -1
  34. package/dist/components/touchTable/index.js +5 -3
  35. package/dist/components/touchTable/index.js.map +1 -1
  36. package/package.json +35 -35
@@ -0,0 +1,220 @@
1
+ {
2
+ "templateName": "模板2",
3
+ "width": 58,
4
+ "body": [
5
+ {
6
+ "type": "lineFeed",
7
+ "height": 1
8
+ },
9
+ {
10
+ "type": "leftPrintMsg",
11
+ "body": [
12
+ {
13
+ "name": "门店名称",
14
+ "attribute": "Store.Name",
15
+ "type": "string"
16
+ },
17
+ {
18
+ "name": "门店电话",
19
+ "attribute": "Store.Telephone",
20
+ "type": "string"
21
+ },
22
+ {
23
+ "name": "收银员",
24
+ "attribute": "UserName",
25
+ "type": "string"
26
+ },
27
+ {
28
+ "name": "单号",
29
+ "attribute": "Code",
30
+ "type": "string"
31
+ },
32
+ {
33
+ "name": "日期",
34
+ "attribute": "CreatedTime",
35
+ "type": "string"
36
+ }
37
+ ]
38
+ },
39
+ {
40
+ "type": "lineFeed",
41
+ "height": 1
42
+ },
43
+ {
44
+ "type": "printMenuMSG",
45
+ "headerList": [
46
+ {
47
+ "headerText": "商品名称",
48
+ "headerWeight":1,
49
+ "isTitle": true,
50
+ "isFoot": false
51
+ },
52
+ {
53
+ "headerText": "数量",
54
+ "headerWeight":1,
55
+ "isTitle": false,
56
+ "isFoot": false
57
+ },
58
+ {
59
+ "headerText": "零售价",
60
+ "headerWeight":1,
61
+ "isTitle": false,
62
+ "isFoot": false
63
+ },
64
+ {
65
+ "headerText": "折后单价",
66
+ "headerWeight":1,
67
+ "isTitle": false,
68
+ "isFoot": false
69
+ },
70
+ {
71
+ "headerText": "金额",
72
+ "headerWeight":1,
73
+ "isTitle": false,
74
+ "isFoot": false
75
+ }
76
+ ],
77
+ "bodyList":{
78
+ "name": "明细数据",
79
+ "attribute":"details",
80
+ "list":[
81
+ {
82
+ "attribute":"Inventory.NameAndCode",
83
+ "type":"string"
84
+ },
85
+ {
86
+ "attribute":"quantityAndUnit",
87
+ "type":"string"
88
+ },
89
+ {
90
+ "attribute":"RetailPrice",
91
+ "type":"price"
92
+ },
93
+ {
94
+ "attribute":"TaxPrice",
95
+ "type":"price"
96
+ },
97
+ {
98
+ "attribute":"TaxAmount",
99
+ "type":"price"
100
+ }
101
+ ]
102
+ }
103
+ },
104
+ {
105
+ "type": "leftPrintMsg",
106
+ "body": [
107
+ {
108
+ "name": "数量",
109
+ "attribute": "TotalCount",
110
+ "type": "number"
111
+ },
112
+ {
113
+ "name": "金额",
114
+ "attribute": "TotalTaxAmount",
115
+ "type": "price"
116
+ },
117
+ {
118
+ "name": "优惠金额",
119
+ "attribute": "TotalDiscountAmount",
120
+ "type": "price"
121
+ },
122
+ {
123
+ "name": "抹零",
124
+ "attribute": "WipeChange",
125
+ "type": "price"
126
+ }
127
+ ]
128
+ },
129
+ {
130
+ "type": "separateLine",
131
+ "height":1
132
+ },
133
+ {
134
+ "type": "lineFeed",
135
+ "height": 1
136
+ },
137
+ {
138
+ "type": "printMenuMSG",
139
+ "headerList": [
140
+ {
141
+ "headerText": "支付方式",
142
+ "headerWeight":1,
143
+ "isTitle": false,
144
+ "isFoot": false
145
+ },
146
+ {
147
+ "headerText": "金额",
148
+ "headerWeight":1,
149
+ "isTitle": false,
150
+ "isFoot": false
151
+ }
152
+ ],
153
+ "bodyList":{
154
+ "name": "支付方式",
155
+ "attribute":"RetailPaymentDetails",
156
+ "type": "array",
157
+ "list":[
158
+ {
159
+ "attribute":"NameAndCode",
160
+ "type":"string"
161
+ },
162
+ {
163
+ "attribute":"TotalAmount",
164
+ "type":"string"
165
+ }
166
+ ]
167
+ }
168
+ },
169
+ {
170
+ "type": "leftPrintMsg",
171
+ "body": [
172
+ {
173
+ "name": "会员卡号",
174
+ "attribute": "Member.CardCode",
175
+ "type": "string"
176
+ },
177
+ {
178
+ "name": "会员手机",
179
+ "attribute": "Member.Mobilephone",
180
+ "type": "string"
181
+ },
182
+ {
183
+ "name": "积分余额",
184
+ "attribute": "BalanceIntegral",
185
+ "type": "number"
186
+ },
187
+ {
188
+ "name": "本次积分",
189
+ "attribute": "Integral",
190
+ "type": "number"
191
+ },
192
+ {
193
+ "name": "储值余额",
194
+ "attribute": "BalanceStorage",
195
+ "type": "price"
196
+ }
197
+ ]
198
+ },
199
+ {
200
+ "type": "lineFeed",
201
+ "height": 1
202
+ },
203
+ {
204
+ "type": "separateLine",
205
+ "height":1
206
+ },
207
+ {
208
+ "type": "lineFeed",
209
+ "height": 1
210
+ },
211
+ {
212
+ "type": "text",
213
+ "value": "\t谢谢惠顾,欢迎再次光临"
214
+ },
215
+ {
216
+ "type": "lineFeed",
217
+ "height": 3
218
+ }
219
+ ]
220
+ }
@@ -0,0 +1,129 @@
1
+ {
2
+ "templateName": "模板1",
3
+ "width": 58,
4
+ "body": [
5
+ {
6
+ "type": "lineFeed",
7
+ "height": 1
8
+ },
9
+ {
10
+ "type": "leftPrintMsg",
11
+ "body": [
12
+ {
13
+ "name": "门店名称",
14
+ "attribute": "Store.Name",
15
+ "type": "string"
16
+ },
17
+ {
18
+ "name": "储值业务员",
19
+ "attribute": "Person.Name",
20
+ "type": "string"
21
+ },
22
+ {
23
+ "name": "日期",
24
+ "attribute": "CreatedTime",
25
+ "type": "string"
26
+ }
27
+ ]
28
+ },
29
+ {
30
+ "type": "leftPrintMsg",
31
+ "body": [
32
+ {
33
+ "name": "本次储存金额",
34
+ "attribute": "StorageDetails.0.ThisStorageAmount",
35
+ "type": "price"
36
+ },
37
+ {
38
+ "name": "本次赠送金额",
39
+ "attribute": "StorageDetails.0.ThisPresentAmount",
40
+ "type": "price"
41
+ },
42
+ {
43
+ "name": "本次储值后金额",
44
+ "attribute": "StorageDetails.0.AfterBalanceStorage",
45
+ "type": "price"
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ "type": "separateLine",
51
+ "height":1
52
+ },
53
+ {
54
+ "type": "printMenuMSG",
55
+ "headerList": [
56
+ {
57
+ "headerText": "支付方式",
58
+ "headerWeight":1,
59
+ "isTitle": false,
60
+ "isFoot": false
61
+ },
62
+ {
63
+ "headerText": "金额",
64
+ "headerWeight":1,
65
+ "isTitle": false,
66
+ "isFoot": false
67
+ }
68
+ ],
69
+ "bodyList":{
70
+ "name": "支付方式",
71
+ "attribute":"StorageMutiSettleDetails",
72
+ "list": [
73
+ {
74
+ "attribute":"SettleStyle.Name",
75
+ "type":"price"
76
+ },
77
+ {
78
+ "attribute":"StorageAmount",
79
+ "type":"price"
80
+ }
81
+ ]
82
+ }
83
+ },
84
+ {
85
+ "type": "leftPrintMsg",
86
+ "body": [
87
+ {
88
+ "name": "储值卡号",
89
+ "attribute": "StorageDetails.0.meStorageCard.cardNo",
90
+ "type": "string"
91
+ },
92
+ {
93
+ "name": "会员手机",
94
+ "attribute": "Member.Mobilephone",
95
+ "type": "string"
96
+ },
97
+ {
98
+ "name": "会员姓名",
99
+ "attribute": "Member.Name",
100
+ "type": "string"
101
+ },
102
+ {
103
+ "name": "顾客签名",
104
+ "type": "string"
105
+ }
106
+ ]
107
+ },
108
+ {
109
+ "type": "lineFeed",
110
+ "height": 4
111
+ },
112
+ {
113
+ "type": "separateLine",
114
+ "height":1
115
+ },
116
+ {
117
+ "type": "lineFeed",
118
+ "height": 1
119
+ },
120
+ {
121
+ "type": "text",
122
+ "value": "\t谢谢惠顾,欢迎再次光临"
123
+ },
124
+ {
125
+ "type": "lineFeed",
126
+ "height": 3
127
+ }
128
+ ]
129
+ }
@@ -0,0 +1,52 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Template = undefined;
7
+
8
+ var _retail_one = require('./retail_one.json');
9
+
10
+ var _retail_one2 = _interopRequireDefault(_retail_one);
11
+
12
+ var _retail_two = require('./retail_two.json');
13
+
14
+ var _retail_two2 = _interopRequireDefault(_retail_two);
15
+
16
+ var _storage_one = require('./storage_one.json');
17
+
18
+ var _storage_one2 = _interopRequireDefault(_storage_one);
19
+
20
+ var _duty_one = require('./duty_one.json');
21
+
22
+ var _duty_one2 = _interopRequireDefault(_duty_one);
23
+
24
+ var _dialy_one = require('./dialy_one.json');
25
+
26
+ var _dialy_one2 = _interopRequireDefault(_dialy_one);
27
+
28
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
29
+
30
+ var Template = exports.Template = {
31
+ retail: {
32
+ retail_template_one: _retail_one2.default,
33
+ retail_template_two: _retail_two2.default
34
+ },
35
+ storage: {
36
+ storage_template_one: _storage_one2.default
37
+ },
38
+ duty: {
39
+ duty_template_one: _duty_one2.default
40
+ },
41
+ dialy: {
42
+ dialy_template_one: _dialy_one2.default
43
+ }
44
+ }; /*
45
+ * @Descripttion:
46
+ * @version:
47
+ * @Author: chenlongad
48
+ * @Date: 2022-03-07 19:29:29
49
+ * @LastEditors: Lixuhan
50
+ * @LastEditTime: 2022-03-10 11:15:19
51
+ */
52
+ //# sourceMappingURL=template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["tplus-components-touch/components/cloudPrint/printTemplate/template.js"],"names":["Template","retail","retail_template_one","RetailOne","retail_template_two","RetailTwo","storage","storage_template_one","StorageOne","duty","duty_template_one","DutyOne","dialy","dialy_template_one","DialyOne"],"mappings":";;;;;;;AASA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;;;AAEO,IAAMA,8BAAW;AACtBC,UAAO;AACLC,yBAAoBC,oBADf;AAELC,yBAAoBC;AAFf,GADe;AAKtBC,WAAS;AACPC,0BAAsBC;AADf,GALa;AAQtBC,QAAM;AACJC,uBAAmBC;AADf,GARgB;AAWtBC,SAAO;AACLC,wBAAoBC;AADf;AAXe,CAAjB,C,CAfP","file":"template.js","sourcesContent":["/*\r\n * @Descripttion: \r\n * @version: \r\n * @Author: chenlongad\r\n * @Date: 2022-03-07 19:29:29\r\n * @LastEditors: Lixuhan\r\n * @LastEditTime: 2022-03-10 11:15:19\r\n */\r\n\r\nimport RetailOne from './retail_one.json'\r\nimport RetailTwo from './retail_two.json'\r\nimport StorageOne from './storage_one.json'\r\nimport DutyOne from './duty_one.json'\r\nimport DialyOne from './dialy_one.json'\r\n\r\nexport const Template = {\r\n retail:{\r\n retail_template_one:RetailOne,\r\n retail_template_two:RetailTwo\r\n },\r\n storage: {\r\n storage_template_one: StorageOne\r\n },\r\n duty: {\r\n duty_template_one: DutyOne\r\n },\r\n dialy: {\r\n dialy_template_one: DialyOne\r\n }\r\n}"]}
@@ -116,6 +116,10 @@ var DeliverySearch = function (_React$Component) {
116
116
 
117
117
  var _this2 = (0, _possibleConstructorReturn3.default)(this, (DeliverySearch.__proto__ || (0, _getPrototypeOf2.default)(DeliverySearch)).call(this, props));
118
118
 
119
+ _this2.sys_parms = {
120
+ orangeloading: window.ossAliyuncsFileURL + '/bc_pos/loading3.gif',
121
+ blueloading: window.ossAliyuncsFileURL + '/bc_pos/loading4.gif'
122
+ };
119
123
  _this2.initDeliverySearch = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2() {
120
124
  var idStore, listColumn, selectList, _ref2, HeadFieldDesign, detailColumn, value3, listColumnMeta, detailColumnMeta, endTime, startTime;
121
125
 
@@ -816,7 +820,7 @@ var DeliverySearch = function (_React$Component) {
816
820
 
817
821
  _this2.loadingIcon = function () {
818
822
  var theme = _mutantsUtil.localStore.get('theme');
819
- var img = 'https://newretail.static.chanjet.com/bc_pos/loading' + (theme == 'blue' || theme == 'dark' ? '4' : '3') + '.gif';
823
+ var img = theme == 'blue' || theme == 'dark' ? _this2.sys_parms.blueloading : _this2.sys_parms.orangeloading;
820
824
  return _react2.default.createElement('img', { src: img, className: 'loading-img-symbol', style: { width: '90px', height: '90px' } });
821
825
  };
822
826