tplus-components-touch 3.45.1 → 3.46.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.
Files changed (82) hide show
  1. package/dist/components/billSearch/index.js +2 -2
  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/commonForm/addressPicker/index.js +241 -0
  17. package/dist/components/commonForm/addressPicker/index.js.map +1 -0
  18. package/dist/components/commonForm/autoComplete/index.js +260 -0
  19. package/dist/components/commonForm/autoComplete/index.js.map +1 -0
  20. package/dist/components/commonForm/datePicker/index.js +92 -0
  21. package/dist/components/commonForm/datePicker/index.js.map +1 -0
  22. package/dist/components/commonForm/formControl/index.js +144 -0
  23. package/dist/components/commonForm/formControl/index.js.map +1 -0
  24. package/dist/components/commonForm/inputNumber/index.js +272 -0
  25. package/dist/components/commonForm/inputNumber/index.js.map +1 -0
  26. package/dist/components/commonForm/radio/index.js +132 -0
  27. package/dist/components/commonForm/radio/index.js.map +1 -0
  28. package/dist/components/hardwareAPI/index.js +46 -12
  29. package/dist/components/hardwareAPI/index.js.map +1 -1
  30. package/dist/components/input/tplusInput/index.js +81 -0
  31. package/dist/components/input/tplusInput/index.js.map +1 -0
  32. package/dist/components/input/tplusInput/inputContent.js +128 -0
  33. package/dist/components/input/tplusInput/inputContent.js.map +1 -0
  34. package/dist/components/input/tplusInput/inputs.js +151 -0
  35. package/dist/components/input/tplusInput/inputs.js.map +1 -0
  36. package/dist/components/input/utils/index.js +26 -0
  37. package/dist/components/input/utils/index.js.map +1 -0
  38. package/dist/components/message/index.js +4 -3
  39. package/dist/components/message/index.js.map +1 -1
  40. package/dist/components/modalWraper/index.js +1 -16
  41. package/dist/components/modalWraper/index.js.map +1 -1
  42. package/dist/components/modalWraper/style.less +0 -6
  43. package/dist/components/settlement/asyncModal.js +1 -4
  44. package/dist/components/settlement/asyncModal.js.map +1 -1
  45. package/dist/components/settlement/moreCzkTable/index.js +156 -0
  46. package/dist/components/settlement/moreCzkTable/index.js.map +1 -0
  47. package/dist/components/settlement/prototypeTable/index.js +353 -0
  48. package/dist/components/settlement/prototypeTable/index.js.map +1 -0
  49. package/dist/components/settlement/prototypeTable/utils.js +14 -0
  50. package/dist/components/settlement/prototypeTable/utils.js.map +1 -0
  51. package/dist/components/settlement/settlement.js +225 -292
  52. package/dist/components/settlement/settlement.js.map +1 -1
  53. package/dist/components/settlement/settlement.less +0 -3
  54. package/dist/components/settlement/settlementStore.js +2820 -0
  55. package/dist/components/settlement/settlementStore.js.map +1 -0
  56. package/dist/components/settlement/utils.js +249 -0
  57. package/dist/components/settlement/utils.js.map +1 -0
  58. package/dist/components/socket/index.js +221 -0
  59. package/dist/components/socket/index.js.map +1 -0
  60. package/dist/components/spin/index.js +95 -0
  61. package/dist/components/spin/index.js.map +1 -0
  62. package/dist/components/test/index.js +330 -0
  63. package/dist/components/test/index.js.map +1 -0
  64. package/dist/components/ticon/iconfont/iconfont.js +35 -0
  65. package/dist/components/ticon/iconfont/iconfont.js.map +1 -0
  66. package/dist/components/ticon/index.js +60 -0
  67. package/dist/components/ticon/index.js.map +1 -0
  68. package/dist/components/touchScroll/index.js +186 -0
  69. package/dist/components/touchScroll/index.js.map +1 -0
  70. package/dist/components/touchTable/AuthProcess.js +42 -0
  71. package/dist/components/touchTable/AuthProcess.js.map +1 -0
  72. package/dist/components/touchTable/generateWater.js +59 -0
  73. package/dist/components/touchTable/generateWater.js.map +1 -0
  74. package/dist/components/touchTable/index.js +1135 -0
  75. package/dist/components/touchTable/index.js.map +1 -0
  76. package/dist/components/touchTable/utils.js +14 -0
  77. package/dist/components/touchTable/utils.js.map +1 -0
  78. package/dist/index.js +3 -8
  79. package/dist/index.js.map +1 -1
  80. package/package.json +2 -2
  81. package/dist/components/settlement/settlementApi.js +0 -512
  82. package/dist/components/settlement/settlementApi.js.map +0 -1
@@ -0,0 +1,239 @@
1
+ {
2
+ "templateName": "模板1",
3
+ "width": 58,
4
+ "body": [
5
+ {
6
+ "type": "lineFeed",
7
+ "height": 1
8
+ },
9
+ {
10
+ "type": "printTitle",
11
+ "value": "日结"
12
+ },
13
+ {
14
+ "type": "separateLine",
15
+ "height": 1
16
+ },
17
+ {
18
+ "type": "leftPrintMsg",
19
+ "body": [
20
+ {
21
+ "name": "单号",
22
+ "attribute": "Code",
23
+ "type": "string"
24
+ },
25
+ {
26
+ "name": "门店",
27
+ "attribute": "Store.Name",
28
+ "type": "string"
29
+ },
30
+ {
31
+ "name": "POS编码",
32
+ "attribute": "POSCode",
33
+ "type": "string"
34
+ },
35
+ {
36
+ "name": "POS名称",
37
+ "attribute": "POSName",
38
+ "type": "string"
39
+ },
40
+ {
41
+ "name": "收 银 员",
42
+ "attribute": "UserName",
43
+ "type": "string"
44
+ },
45
+ {
46
+ "name": "上班日期",
47
+ "attribute": "WorkingDateAndTime",
48
+ "type": "string"
49
+ },
50
+ {
51
+ "name": "日结日期",
52
+ "attribute": "DialyDateAndTime",
53
+ "type": "string"
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ "type": "lineFeed",
59
+ "height": 1
60
+ },
61
+ {
62
+ "type": "printStarTitle",
63
+ "value": "销售看板"
64
+ },
65
+ {
66
+ "type": "separateLine",
67
+ "height": 1
68
+ },
69
+ {
70
+ "type": "leftPrintMsg",
71
+ "body": [
72
+ {
73
+ "name": "销售金额",
74
+ "attribute": "RetailAmount",
75
+ "type": "price"
76
+ },
77
+ {
78
+ "name": "退货金额",
79
+ "attribute": "ReturnAmount",
80
+ "type": "price"
81
+ },
82
+ {
83
+ "name": "净销售金额",
84
+ "attribute": "NetAmount",
85
+ "type": "price"
86
+ },
87
+ {
88
+ "name": "储值销售金额",
89
+ "attribute": "SalesStorageTotalAmount",
90
+ "type": "price"
91
+ },
92
+ {
93
+ "name": "抵现销售金额",
94
+ "attribute": "CashOutAmount",
95
+ "type": "price"
96
+ },
97
+ {
98
+ "name": "券抵扣(负劳务行)",
99
+ "attribute": "CouponsDeduct",
100
+ "type": "price"
101
+ },
102
+ {
103
+ "name": "优惠券抵扣、代金券",
104
+ "attribute": "CouponsAmount",
105
+ "type": "price"
106
+ },
107
+ {
108
+ "name": "线上收款金额",
109
+ "attribute": "OnlineAmount",
110
+ "type": "price"
111
+ },
112
+ {
113
+ "name": "水单总数",
114
+ "attribute": "TotalCount",
115
+ "type": "number"
116
+ },
117
+ {
118
+ "name": "来客数量",
119
+ "attribute": "TotalCustom",
120
+ "type": "number"
121
+ },
122
+ {
123
+ "name": "客单价",
124
+ "attribute": "Price",
125
+ "type": "price"
126
+ }
127
+ ]
128
+ },
129
+ {
130
+ "type": "lineFeed",
131
+ "height": 1
132
+ },
133
+ {
134
+ "type": "printStarTitle",
135
+ "value": "收银统计"
136
+ },
137
+ {
138
+ "type": "separateLine",
139
+ "height": 1
140
+ },
141
+ {
142
+ "type": "printMenuMSG",
143
+ "headerList": [
144
+ {
145
+ "headerText": "结算方式",
146
+ "headerWeight":1,
147
+ "isTitle": false,
148
+ "isFoot": false
149
+ },
150
+ {
151
+ "headerText": "零售收款金额",
152
+ "headerWeight":1,
153
+ "isTitle": false,
154
+ "isFoot": false
155
+ },
156
+ {
157
+ "headerText": "储值金额",
158
+ "headerWeight":1,
159
+ "isTitle": false,
160
+ "isFoot": false
161
+ }
162
+ ],
163
+ "bodyList":{
164
+ "name": "结算方式",
165
+ "attribute":"DailyDetails",
166
+ "list": [
167
+ {
168
+ "attribute":"Name",
169
+ "type":"string"
170
+ },
171
+ {
172
+ "attribute":"OrigAmount",
173
+ "type":"price"
174
+ },
175
+ {
176
+ "attribute":"MemberDepositAmount",
177
+ "type":"price"
178
+ }
179
+ ]
180
+ }
181
+ },
182
+ {
183
+ "type": "leftPrintMsg",
184
+ "body": [
185
+ {
186
+ "name": "备用金初始金额",
187
+ "attribute": "InitialAmount",
188
+ "type": "price"
189
+ },
190
+ {
191
+ "name": "增减备用金",
192
+ "attribute": "ImprestAmount",
193
+ "type": "price"
194
+ },
195
+ {
196
+ "name": "备用金余额",
197
+ "attribute": "ImprestBalance",
198
+ "type": "price"
199
+ }
200
+ ]
201
+ },
202
+ {
203
+ "type": "separateLine",
204
+ "height":1,
205
+ "value": "="
206
+ },
207
+ {
208
+ "type": "leftPrintMsg",
209
+ "body": [
210
+ {
211
+ "name": "备注",
212
+ "attribute": "Memo",
213
+ "type": "string"
214
+ }
215
+ ]
216
+ },
217
+
218
+ {
219
+ "type": "lineFeed",
220
+ "height": 1
221
+ },
222
+ {
223
+ "type": "spaceCenterPrintMsg",
224
+ "value": ["收银员签字:", "收银主管签字:"]
225
+ },
226
+ {
227
+ "type": "lineFeed",
228
+ "height": 4
229
+ },
230
+ {
231
+ "type": "separateLine",
232
+ "height":1
233
+ },
234
+ {
235
+ "type": "lineFeed",
236
+ "height": 4
237
+ }
238
+ ]
239
+ }
@@ -0,0 +1,239 @@
1
+ {
2
+ "templateName": "模板1",
3
+ "width": 58,
4
+ "body": [
5
+ {
6
+ "type": "lineFeed",
7
+ "height": 1
8
+ },
9
+ {
10
+ "type": "printTitle",
11
+ "value": "交班"
12
+ },
13
+ {
14
+ "type": "separateLine",
15
+ "height": 1
16
+ },
17
+ {
18
+ "type": "leftPrintMsg",
19
+ "body": [
20
+ {
21
+ "name": "单号",
22
+ "attribute": "Code",
23
+ "type": "string"
24
+ },
25
+ {
26
+ "name": "门店",
27
+ "attribute": "Store.Name",
28
+ "type": "string"
29
+ },
30
+ {
31
+ "name": "POS编码",
32
+ "attribute": "POSCode",
33
+ "type": "string"
34
+ },
35
+ {
36
+ "name": "POS名称",
37
+ "attribute": "POSName",
38
+ "type": "string"
39
+ },
40
+ {
41
+ "name": "收 银 员",
42
+ "attribute": "UserName",
43
+ "type": "string"
44
+ },
45
+ {
46
+ "name": "上班日期",
47
+ "attribute": "WorkingDateAndTime",
48
+ "type": "string"
49
+ },
50
+ {
51
+ "name": "交班日期",
52
+ "attribute": "DutyDateAndTime",
53
+ "type": "string"
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ "type": "lineFeed",
59
+ "height": 1
60
+ },
61
+ {
62
+ "type": "printStarTitle",
63
+ "value": "销售看板"
64
+ },
65
+ {
66
+ "type": "separateLine",
67
+ "height": 1
68
+ },
69
+ {
70
+ "type": "leftPrintMsg",
71
+ "body": [
72
+ {
73
+ "name": "销售金额",
74
+ "attribute": "RetailAmount",
75
+ "type": "price"
76
+ },
77
+ {
78
+ "name": "退货金额",
79
+ "attribute": "ReturnAmount",
80
+ "type": "price"
81
+ },
82
+ {
83
+ "name": "净销售金额",
84
+ "attribute": "NetAmount",
85
+ "type": "price"
86
+ },
87
+ {
88
+ "name": "储值销售金额",
89
+ "attribute": "SalesStorageTotalAmount",
90
+ "type": "price"
91
+ },
92
+ {
93
+ "name": "抵现销售金额",
94
+ "attribute": "CashOutAmount",
95
+ "type": "price"
96
+ },
97
+ {
98
+ "name": "券抵扣(负劳务行)",
99
+ "attribute": "CouponsDeduct",
100
+ "type": "price"
101
+ },
102
+ {
103
+ "name": "优惠券抵扣、代金券",
104
+ "attribute": "CouponsAmount",
105
+ "type": "price"
106
+ },
107
+ {
108
+ "name": "线上收款金额",
109
+ "attribute": "OnlineAmount",
110
+ "type": "price"
111
+ },
112
+ {
113
+ "name": "水单总数",
114
+ "attribute": "TotalCount",
115
+ "type": "number"
116
+ },
117
+ {
118
+ "name": "来客数量",
119
+ "attribute": "TotalCustom",
120
+ "type": "number"
121
+ },
122
+ {
123
+ "name": "客单价",
124
+ "attribute": "Price",
125
+ "type": "price"
126
+ }
127
+ ]
128
+ },
129
+ {
130
+ "type": "lineFeed",
131
+ "height": 1
132
+ },
133
+ {
134
+ "type": "printStarTitle",
135
+ "value": "收银统计"
136
+ },
137
+ {
138
+ "type": "separateLine",
139
+ "height": 1
140
+ },
141
+ {
142
+ "type": "printMenuMSG",
143
+ "headerList": [
144
+ {
145
+ "headerText": "结算方式",
146
+ "headerWeight":1,
147
+ "isTitle": false,
148
+ "isFoot": false
149
+ },
150
+ {
151
+ "headerText": "零售收款金额",
152
+ "headerWeight":1,
153
+ "isTitle": false,
154
+ "isFoot": false
155
+ },
156
+ {
157
+ "headerText": "储值金额",
158
+ "headerWeight":1,
159
+ "isTitle": false,
160
+ "isFoot": false
161
+ }
162
+ ],
163
+ "bodyList":{
164
+ "name": "结算方式",
165
+ "attribute":"ShiftVoucherDetails",
166
+ "list": [
167
+ {
168
+ "attribute":"SettleStyle.Name",
169
+ "type":"string"
170
+ },
171
+ {
172
+ "attribute":"OrigAmount",
173
+ "type":"price"
174
+ },
175
+ {
176
+ "attribute":"MemberDepositAmount",
177
+ "type":"price"
178
+ }
179
+ ]
180
+ }
181
+ },
182
+ {
183
+ "type": "leftPrintMsg",
184
+ "body": [
185
+ {
186
+ "name": "备用金初始金额",
187
+ "attribute": "InitialAmount",
188
+ "type": "price"
189
+ },
190
+ {
191
+ "name": "增减备用金",
192
+ "attribute": "ImprestAmount",
193
+ "type": "price"
194
+ },
195
+ {
196
+ "name": "备用金余额",
197
+ "attribute": "ImprestBalance",
198
+ "type": "price"
199
+ }
200
+ ]
201
+ },
202
+ {
203
+ "type": "separateLine",
204
+ "height":1,
205
+ "value": "="
206
+ },
207
+ {
208
+ "type": "leftPrintMsg",
209
+ "body": [
210
+ {
211
+ "name": "备注",
212
+ "attribute": "Memo",
213
+ "type": "string"
214
+ }
215
+ ]
216
+ },
217
+
218
+ {
219
+ "type": "lineFeed",
220
+ "height": 1
221
+ },
222
+ {
223
+ "type": "spaceCenterPrintMsg",
224
+ "value": ["收银员签字:", "收银主管签字:"]
225
+ },
226
+ {
227
+ "type": "lineFeed",
228
+ "height": 4
229
+ },
230
+ {
231
+ "type": "separateLine",
232
+ "height":1
233
+ },
234
+ {
235
+ "type": "lineFeed",
236
+ "height": 2
237
+ }
238
+ ]
239
+ }
@@ -0,0 +1,204 @@
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":"TaxAmount",
89
+ "type":"price"
90
+ }
91
+ ]
92
+ }
93
+ },
94
+ {
95
+ "type": "leftPrintMsg",
96
+ "body": [
97
+ {
98
+ "name": "数量",
99
+ "attribute": "TotalCount",
100
+ "type": "number"
101
+ },
102
+ {
103
+ "name": "金额",
104
+ "attribute": "TotalTaxAmount",
105
+ "type": "price"
106
+ },
107
+ {
108
+ "name": "抹零",
109
+ "attribute": "WipeChange",
110
+ "type": "price"
111
+ }
112
+ ]
113
+ },
114
+ {
115
+ "type": "separateLine",
116
+ "height":1
117
+ },
118
+ {
119
+ "type": "lineFeed",
120
+ "height": 1
121
+ },
122
+ {
123
+ "type": "printMenuMSG",
124
+ "headerList": [
125
+ {
126
+ "headerText": "支付方式",
127
+ "headerWeight":1,
128
+ "isTitle": false,
129
+ "isFoot": false
130
+ },
131
+ {
132
+ "headerText": "金额",
133
+ "headerWeight":1,
134
+ "isTitle": false,
135
+ "isFoot": false
136
+ }
137
+ ],
138
+ "bodyList":{
139
+ "name": "支付方式",
140
+ "attribute":"RetailPaymentDetails",
141
+ "list":[
142
+ {
143
+ "attribute":"NameAndCode",
144
+ "type":"string"
145
+ },
146
+ {
147
+ "attribute":"TotalAmount",
148
+ "type":"string"
149
+ }
150
+ ]
151
+ }
152
+ },
153
+ {
154
+ "type": "leftPrintMsg",
155
+ "body": [
156
+ {
157
+ "name": "会员卡号",
158
+ "attribute": "Member.CardCode",
159
+ "type": "string"
160
+ },
161
+ {
162
+ "name": "会员手机",
163
+ "attribute": "Member.Mobilephone",
164
+ "type": "string"
165
+ },
166
+ {
167
+ "name": "积分余额",
168
+ "attribute": "BalanceIntegral",
169
+ "type": "number"
170
+ },
171
+ {
172
+ "name": "本次积分",
173
+ "attribute": "Integral",
174
+ "type": "number"
175
+ },
176
+ {
177
+ "name": "储值余额",
178
+ "attribute": "BalanceStorage",
179
+ "type": "price"
180
+ }
181
+ ]
182
+ },
183
+ {
184
+ "type": "lineFeed",
185
+ "height": 1
186
+ },
187
+ {
188
+ "type": "separateLine",
189
+ "height":1
190
+ },
191
+ {
192
+ "type": "lineFeed",
193
+ "height": 1
194
+ },
195
+ {
196
+ "type": "text",
197
+ "value": "\t谢谢惠顾,欢迎再次光临"
198
+ },
199
+ {
200
+ "type": "lineFeed",
201
+ "height": 3
202
+ }
203
+ ]
204
+ }