tplus-components-touch 3.40.2 → 3.41.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.
@@ -0,0 +1,208 @@
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": "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
+ "bodyList":{
72
+ "name": "明细数据",
73
+ "attribute":"details",
74
+ "list":[
75
+ {
76
+ "attribute":"Inventory.NameAndCode",
77
+ "type":"string"
78
+ },
79
+ {
80
+ "attribute":"quantityAndUnit",
81
+ "type":"string"
82
+ },
83
+ {
84
+ "attribute":"TaxPrice",
85
+ "type":"price"
86
+ },
87
+ {
88
+ "attribute":"Price",
89
+ "type":"price"
90
+ },
91
+ {
92
+ "attribute":"TaxAmount",
93
+ "type":"price"
94
+ }
95
+ ]
96
+ }
97
+ },
98
+ {
99
+ "type": "leftPrintMsg",
100
+ "body": [
101
+ {
102
+ "name": "数量",
103
+ "attribute": "TotalCount",
104
+ "type": "number"
105
+ },
106
+ {
107
+ "name": "金额",
108
+ "attribute": "TotalTaxAmount",
109
+ "type": "price"
110
+ },
111
+ {
112
+ "name": "抹零",
113
+ "attribute": "WipeChange",
114
+ "type": "price"
115
+ }
116
+ ]
117
+ },
118
+ {
119
+ "type": "separateLine",
120
+ "height":1
121
+ },
122
+ {
123
+ "type": "lineFeed",
124
+ "height": 1
125
+ },
126
+ {
127
+ "type": "printMenuMSG",
128
+ "headerList": [
129
+ {
130
+ "headerText": "支付方式",
131
+ "headerWeight":1,
132
+ "isTitle": false,
133
+ "isFoot": false
134
+ },
135
+ {
136
+ "headerText": "金额",
137
+ "headerWeight":1,
138
+ "isTitle": false,
139
+ "isFoot": false
140
+ }
141
+ ],
142
+ "bodyList":{
143
+ "name": "支付方式",
144
+ "attribute":"RetailPaymentDetails",
145
+ "list":[
146
+ {
147
+ "attribute":"NameAndCode",
148
+ "type":"string"
149
+ },
150
+ {
151
+ "attribute":"TotalAmount",
152
+ "type":"string"
153
+ }
154
+ ]
155
+ }
156
+ },
157
+ {
158
+ "type": "leftPrintMsg",
159
+ "body": [
160
+ {
161
+ "name": "会员卡号",
162
+ "attribute": "Member.CardCode",
163
+ "type": "string"
164
+ },
165
+ {
166
+ "name": "会员手机",
167
+ "attribute": "Member.Mobilephone",
168
+ "type": "string"
169
+ },
170
+ {
171
+ "name": "积分余额",
172
+ "attribute": "BalanceIntegral",
173
+ "type": "number"
174
+ },
175
+ {
176
+ "name": "本次积分",
177
+ "attribute": "Integral",
178
+ "type": "number"
179
+ },
180
+ {
181
+ "name": "储值余额",
182
+ "attribute": "BalanceStorage",
183
+ "type": "price"
184
+ }
185
+ ]
186
+ },
187
+ {
188
+ "type": "lineFeed",
189
+ "height": 1
190
+ },
191
+ {
192
+ "type": "separateLine",
193
+ "height":1
194
+ },
195
+ {
196
+ "type": "lineFeed",
197
+ "height": 1
198
+ },
199
+ {
200
+ "type": "text",
201
+ "value": "\t谢谢惠顾,欢迎再次光临"
202
+ },
203
+ {
204
+ "type": "lineFeed",
205
+ "height": 3
206
+ }
207
+ ]
208
+ }
@@ -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":"RetailDetails",
80
+ "list":[
81
+ {
82
+ "attribute":"Inventory.NameAndCode",
83
+ "type":"string"
84
+ },
85
+ {
86
+ "attribute":"quantityAndUnit",
87
+ "type":"string"
88
+ },
89
+ {
90
+ "attribute":"TaxPrice",
91
+ "type":"price"
92
+ },
93
+ {
94
+ "attribute":"Price",
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": "Member.CardCode",
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}"]}