tplus-components-touch 3.41.1 → 3.41.5

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 (38) hide show
  1. package/dist/components/billSearch/index.js +15 -38
  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 +891 -608
  6. package/dist/components/cloudPrint/index.js.map +1 -1
  7. package/dist/components/cloudPrint/printDispatch.js +151 -47
  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 +208 -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/formControl/index.js +1 -1
  17. package/dist/components/commonForm/formControl/index.js.map +1 -1
  18. package/dist/components/deliverySearch/index.js +5 -1
  19. package/dist/components/deliverySearch/index.js.map +1 -1
  20. package/dist/components/hardwareAPI/index.js +46 -12
  21. package/dist/components/hardwareAPI/index.js.map +1 -1
  22. package/dist/components/inventorySearch/tab.js +6 -1
  23. package/dist/components/inventorySearch/tab.js.map +1 -1
  24. package/dist/components/loading/loadingContent.js +5 -2
  25. package/dist/components/loading/loadingContent.js.map +1 -1
  26. package/dist/components/message/index.js +4 -5
  27. package/dist/components/message/index.js.map +1 -1
  28. package/dist/components/notification/index.js +11 -12
  29. package/dist/components/notification/index.js.map +1 -1
  30. package/dist/components/progressState/EmptyAndErrorView.js +5 -7
  31. package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
  32. package/dist/components/settlement/settlement.js +139 -116
  33. package/dist/components/settlement/settlement.js.map +1 -1
  34. package/dist/components/settlement/settlementStore.js +16 -26
  35. package/dist/components/settlement/settlementStore.js.map +1 -1
  36. package/dist/components/touchTable/index.js +5 -3
  37. package/dist/components/touchTable/index.js.map +1 -1
  38. package/package.json +35 -35
@@ -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}"]}
@@ -96,7 +96,7 @@ var _default = (0, _mobxReact.observer)(_class = function (_React$Component) {
96
96
 
97
97
  var viewInfo = this.props.viewInfo;
98
98
  // const { getFieldProps, getFieldError,setFieldsValue } = this.props.form;
99
- var isShouldUseAndroidKeyBoard = viewInfo.Title == '会员姓名';
99
+ var isShouldUseAndroidKeyBoard = viewInfo.Title == '会员姓名' || viewInfo.Title == '收货人' || viewInfo.Title == '详细地址';
100
100
 
101
101
  var _this = this;
102
102
  return _react2.default.createElement(
@@ -1 +1 @@
1
- {"version":3,"sources":["tplus-components-touch/components/commonForm/formControl/index.js"],"names":["FormItem","Item","observer","props","context","useKb","setFieldsValue","form","current","viewInfo","_this","Keyboard","close","changeVal","open","v","value","getNewValue","input","changed","state","isShouldUseAndroidKeyBoard","Title","required","AllowNone","message","Format","ReadOnly","el","MaxLength","React","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AAGA;;;;AACA;;;;AAEA;;;;AAJA,IAAMA,WAAW,eAAKC,IAAtB;AAGA;;mBAECC,mB;;;AAGG,sBAAYC,KAAZ,EAAkBC,OAAlB,EAA0B;AAAA;;AAAA,+IAChBD,KADgB;;AAAA,eAO1BE,KAP0B,GAOpB,YAAI;AAAA,gBACEC,cADF,GACqB,OAAKH,KAAL,CAAWI,IAAX,CAAgBC,OADrC,CACEF,cADF;;AAEN,gBAAIG,WAAU,OAAKN,KAAL,CAAWM,QAAzB;AACA,gBAAMC,cAAN;AACAC,+BAASC,KAAT;AAJM,gBAKEC,SALF,GAKgB,OAAKV,KALrB,CAKEU,SALF;;AAMNF,+BAASG,IAAT,CAAc,UAACC,CAAD,EAAK;AACf,oBAAIC,QAAML,mBAASM,WAAT,CAAqBP,MAAMQ,KAAN,CAAYA,KAAjC,EAAuCR,MAAMQ,KAAN,CAAYA,KAAZ,CAAkBF,KAAzD,EAA+DD,CAA/D,CAAV;AACA,oBAAMI,UAAU,EAAhB;AACAA,wBAAQV,SAAS,WAAT,CAAR,IAA+BO,KAA/B;AACAV,+BAAea,OAAf;AACAN,6BAAaA,UAAUM,OAAV,CAAb;AACH,aAND;AAOH,SApByB;;AAEtB,eAAKC,KAAL,GAAW;AACPJ,mBAAM;AADC,SAAX;AAFsB;AAKzB;;;;iCAiBO;AAAA;;AACJ,gBAAIP,WAAU,KAAKN,KAAL,CAAWM,QAAzB;AACA;AACA,gBAAMY,6BAA8BZ,SAASa,KAAT,IAAkB,MAAtD;;AAEA,gBAAMZ,QAAM,IAAZ;AACA,mBACI;AAAC,wBAAD;AAAA,kBAAU,OAAOD,SAASa,KAA1B,EAAiC,MAAMb,SAAS,WAAT,CAAvC,EAA8D,OAAO,CAAC,EAACc,UAAU,CAACd,SAASe,SAArB,EAAgCC,SAAS;AAAA;AAAA;AAAM,0DAAC,eAAD,IAAO,MAAK,QAAZ,GAAN;AAA4B;AAAA;AAAA;AAAA;AAAUhB,yCAASa;AAAnB;AAA5B,yBAAzC,EAAD,CAArE;AACI;AACI,iCAAY,EADhB;AAEI,0BAAMb,SAASiB,MAAT,KAAkB,UAAlB,GAA6B,UAA7B,GAAwC,MAFlD;AAGI,8BAAUjB,SAASkB,QAHvB;AAII,yBAAK,aAACC,EAAD,EAAM;AACPlB,8BAAMQ,KAAN,GAAcU,EAAd;AACH,qBANL;AAOI,qCAAgBP,6BAA2B,wBAA3B,GAAoD,EAApE,CAPJ;AAQI,6BAAS,mBAAI;AACT,+BAAKhB,KAAL;AACH,qBAVL;AAWI,+BAAWI,SAASoB,SAAT,IAAsB;AACjC;AACA;AACA;AACA;AACA;AACA;AAjBJ,sBAkBI,QAAQ,kBAAI;AAAElB,2CAASC,KAAT;AAAkB;AAlBpC;AADJ,aADJ;AAwBH;;;EAtDwBkB,gBAAMC,S","file":"index.js","sourcesContent":["import React from 'react';\r\nimport { Input, Form } from 'antd';\r\nconst FormItem = Form.Item;\r\nimport Ticon from '../../ticon';\r\nimport Keyboard from '../../keyboard';\r\n// import './style.less';\r\nimport {observer} from 'mobx-react';\r\n@observer\r\nexport default class extends React.Component{\r\n\r\n constructor(props,context){\r\n super(props)\r\n this.state={\r\n value:11\r\n }\r\n }\r\n\r\n useKb=()=>{\r\n const { setFieldsValue } = this.props.form.current;\r\n let viewInfo= this.props.viewInfo;\r\n const _this=this;\r\n Keyboard.close();\r\n const { changeVal } = this.props;\r\n Keyboard.open((v)=>{\r\n let value=Keyboard.getNewValue(_this.input.input,_this.input.input.value,v);\r\n const changed = {}\r\n changed[viewInfo['FieldName']]=value;\r\n setFieldsValue(changed);\r\n changeVal && changeVal(changed)\r\n })()\r\n }\r\n\r\n render(){\r\n let viewInfo= this.props.viewInfo;\r\n // const { getFieldProps, getFieldError,setFieldsValue } = this.props.form;\r\n const isShouldUseAndroidKeyBoard = viewInfo.Title == '会员姓名';\r\n\r\n const _this=this;\r\n return (\r\n <FormItem label={viewInfo.Title} name={viewInfo['FieldName']} rules={[{required: !viewInfo.AllowNone, message: <span><Ticon type=\"tanhao\"/><span>请输入{viewInfo.Title}</span></span>}]} >\r\n <Input\r\n placeholder=\"\"\r\n type={viewInfo.Format==='PassWord'?'password':'text'}\r\n disabled={viewInfo.ReadOnly}\r\n ref={(el)=>{\r\n _this.input = el;\r\n }}\r\n className = {`${isShouldUseAndroidKeyBoard?'android_focus_keyboard':''}`}\r\n onFocus={()=>{\r\n this.useKb()\r\n }}\r\n maxLength={viewInfo.MaxLength || '-'}\r\n // suffix={\r\n // <Ticon type='jianpan2' onClick={()=>{\r\n // _this.input.input.focus();\r\n // }}\r\n // ></Ticon>\r\n // }\r\n onBlur={()=>{ Keyboard.close();}}\r\n />\r\n </FormItem>\r\n )\r\n }\r\n}\r\n"]}
1
+ {"version":3,"sources":["tplus-components-touch/components/commonForm/formControl/index.js"],"names":["FormItem","Item","observer","props","context","useKb","setFieldsValue","form","current","viewInfo","_this","Keyboard","close","changeVal","open","v","value","getNewValue","input","changed","state","isShouldUseAndroidKeyBoard","Title","required","AllowNone","message","Format","ReadOnly","el","MaxLength","React","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AAGA;;;;AACA;;;;AAEA;;;;AAJA,IAAMA,WAAW,eAAKC,IAAtB;AAGA;;mBAECC,mB;;;AAGG,sBAAYC,KAAZ,EAAkBC,OAAlB,EAA0B;AAAA;;AAAA,+IAChBD,KADgB;;AAAA,eAO1BE,KAP0B,GAOpB,YAAI;AAAA,gBACEC,cADF,GACqB,OAAKH,KAAL,CAAWI,IAAX,CAAgBC,OADrC,CACEF,cADF;;AAEN,gBAAIG,WAAU,OAAKN,KAAL,CAAWM,QAAzB;AACA,gBAAMC,cAAN;AACAC,+BAASC,KAAT;AAJM,gBAKEC,SALF,GAKgB,OAAKV,KALrB,CAKEU,SALF;;AAMNF,+BAASG,IAAT,CAAc,UAACC,CAAD,EAAK;AACf,oBAAIC,QAAML,mBAASM,WAAT,CAAqBP,MAAMQ,KAAN,CAAYA,KAAjC,EAAuCR,MAAMQ,KAAN,CAAYA,KAAZ,CAAkBF,KAAzD,EAA+DD,CAA/D,CAAV;AACA,oBAAMI,UAAU,EAAhB;AACAA,wBAAQV,SAAS,WAAT,CAAR,IAA+BO,KAA/B;AACAV,+BAAea,OAAf;AACAN,6BAAaA,UAAUM,OAAV,CAAb;AACH,aAND;AAOH,SApByB;;AAEtB,eAAKC,KAAL,GAAW;AACPJ,mBAAM;AADC,SAAX;AAFsB;AAKzB;;;;iCAiBO;AAAA;;AACJ,gBAAIP,WAAU,KAAKN,KAAL,CAAWM,QAAzB;AACA;AACA,gBAAMY,6BAA8BZ,SAASa,KAAT,IAAkB,MAAlB,IAA4Bb,SAASa,KAAT,IAAkB,KAA9C,IAAuDb,SAASa,KAAT,IAAkB,MAA7G;;AAEA,gBAAMZ,QAAM,IAAZ;AACA,mBACI;AAAC,wBAAD;AAAA,kBAAU,OAAOD,SAASa,KAA1B,EAAiC,MAAMb,SAAS,WAAT,CAAvC,EAA8D,OAAO,CAAC,EAACc,UAAU,CAACd,SAASe,SAArB,EAAgCC,SAAS;AAAA;AAAA;AAAM,0DAAC,eAAD,IAAO,MAAK,QAAZ,GAAN;AAA4B;AAAA;AAAA;AAAA;AAAUhB,yCAASa;AAAnB;AAA5B,yBAAzC,EAAD,CAArE;AACI;AACI,iCAAY,EADhB;AAEI,0BAAMb,SAASiB,MAAT,KAAkB,UAAlB,GAA6B,UAA7B,GAAwC,MAFlD;AAGI,8BAAUjB,SAASkB,QAHvB;AAII,yBAAK,aAACC,EAAD,EAAM;AACPlB,8BAAMQ,KAAN,GAAcU,EAAd;AACH,qBANL;AAOI,qCAAgBP,6BAA2B,wBAA3B,GAAoD,EAApE,CAPJ;AAQI,6BAAS,mBAAI;AACT,+BAAKhB,KAAL;AACH,qBAVL;AAWI,+BAAWI,SAASoB,SAAT,IAAsB;AACjC;AACA;AACA;AACA;AACA;AACA;AAjBJ,sBAkBI,QAAQ,kBAAI;AAAElB,2CAASC,KAAT;AAAkB;AAlBpC;AADJ,aADJ;AAwBH;;;EAtDwBkB,gBAAMC,S","file":"index.js","sourcesContent":["import React from 'react';\r\nimport { Input, Form } from 'antd';\r\nconst FormItem = Form.Item;\r\nimport Ticon from '../../ticon';\r\nimport Keyboard from '../../keyboard';\r\n// import './style.less';\r\nimport {observer} from 'mobx-react';\r\n@observer\r\nexport default class extends React.Component{\r\n\r\n constructor(props,context){\r\n super(props)\r\n this.state={\r\n value:11\r\n }\r\n }\r\n\r\n useKb=()=>{\r\n const { setFieldsValue } = this.props.form.current;\r\n let viewInfo= this.props.viewInfo;\r\n const _this=this;\r\n Keyboard.close();\r\n const { changeVal } = this.props;\r\n Keyboard.open((v)=>{\r\n let value=Keyboard.getNewValue(_this.input.input,_this.input.input.value,v);\r\n const changed = {}\r\n changed[viewInfo['FieldName']]=value;\r\n setFieldsValue(changed);\r\n changeVal && changeVal(changed)\r\n })()\r\n }\r\n\r\n render(){\r\n let viewInfo= this.props.viewInfo;\r\n // const { getFieldProps, getFieldError,setFieldsValue } = this.props.form;\r\n const isShouldUseAndroidKeyBoard = viewInfo.Title == '会员姓名' || viewInfo.Title == '收货人' || viewInfo.Title == '详细地址';\r\n\r\n const _this=this;\r\n return (\r\n <FormItem label={viewInfo.Title} name={viewInfo['FieldName']} rules={[{required: !viewInfo.AllowNone, message: <span><Ticon type=\"tanhao\"/><span>请输入{viewInfo.Title}</span></span>}]} >\r\n <Input\r\n placeholder=\"\"\r\n type={viewInfo.Format==='PassWord'?'password':'text'}\r\n disabled={viewInfo.ReadOnly}\r\n ref={(el)=>{\r\n _this.input = el;\r\n }}\r\n className = {`${isShouldUseAndroidKeyBoard?'android_focus_keyboard':''}`}\r\n onFocus={()=>{\r\n this.useKb()\r\n }}\r\n maxLength={viewInfo.MaxLength || '-'}\r\n // suffix={\r\n // <Ticon type='jianpan2' onClick={()=>{\r\n // _this.input.input.focus();\r\n // }}\r\n // ></Ticon>\r\n // }\r\n onBlur={()=>{ Keyboard.close();}}\r\n />\r\n </FormItem>\r\n )\r\n }\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, style: { width: '90px', height: '90px' } });
821
825
  };
822
826