vue2-client 1.16.54 → 1.16.55
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/package.json +112 -112
- package/src/assets/img/paymentMethod/icon1.png +0 -0
- package/src/assets/img/paymentMethod/icon2.png +0 -0
- package/src/assets/img/paymentMethod/icon3.png +0 -0
- package/src/assets/img/paymentMethod/icon4.png +0 -0
- package/src/assets/img/paymentMethod/icon5.png +0 -0
- package/src/assets/img/paymentMethod/icon6.png +0 -0
- package/src/assets/svg/female.svg +1 -1
- package/src/assets/svg/male.svg +1 -1
- package/src/base-client/components/common/HIS/HButtons/HButtons.vue +1 -1
- package/src/base-client/components/common/HIS/HFormGroup/HFormGroup.vue +120 -120
- package/src/base-client/components/common/HIS/HFormGroup/index.js +3 -3
- package/src/base-client/components/common/HIS/HFormTable/HFormTable.vue +379 -379
- package/src/base-client/components/common/HIS/HTab/HTab.vue +29 -2
- package/src/base-client/components/common/HIS/demo.vue +61 -61
- package/src/base-client/components/common/XCollapse/XCollapse.vue +461 -461
- package/src/base-client/components/common/XInput/XInput.vue +147 -147
- package/src/base-client/components/common/XReport/XReportHospitalizationDemo.vue +45 -0
- package/src/base-client/components/common/XReportGrid/XReportTrGroup.vue +824 -824
- package/src/base-client/components/common/XTable/XTable.vue +1610 -1610
- package/src/base-client/components/common/XTimeline/XTimeline.vue +454 -454
- package/src/base-client/components/his/XCharge/XCharge.vue +244 -86
- package/src/base-client/components/his/XCharge/XChargeDemo.vue +99 -3
- package/src/base-client/components/his/XCharge/testConfig.js +439 -0
- package/src/base-client/components/his/XHisEditor/XHisEditor.vue +705 -705
- package/src/base-client/components/his/XList/XList.vue +829 -829
- package/src/base-client/components/his/XTitle/XTitle.vue +16 -0
- package/src/base-client/components/his/threeTestOrders/editor.vue +113 -113
- package/src/pages/userInfoDetailManage/ExceptionRecordQuery/index.vue +45 -45
- package/src/router/async/router.map.js +132 -129
- package/src-base-client/components/his/XCharge/README.md +0 -0
- package/src-base-client/components/his/XCharge/XCharge.vue +0 -0
@@ -0,0 +1,439 @@
|
|
1
|
+
// XCharge 组件测试配置文件 - 最新最全版本
|
2
|
+
// 包含所有功能:图标、徽章、混合支付模式、XTitle集成等
|
3
|
+
|
4
|
+
// 1. 完整功能配置 - 混合支付手动模式(带图标和徽章)
|
5
|
+
export const testChargeConfig = {
|
6
|
+
"title": "结算-收费方式", // 使用XTitle组件显示标题
|
7
|
+
"amountFields": [
|
8
|
+
{
|
9
|
+
"field": 'f_amount',
|
10
|
+
"disabled": false,
|
11
|
+
"label": '费用总额'
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"field": 'f_insurance_amount',
|
15
|
+
"disabled": true,
|
16
|
+
"label": '医保支付'
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"field": 'f_self_amount',
|
20
|
+
"disabled": true,
|
21
|
+
"label": '自费金额'
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"field": 'out_of_pocket_amount',
|
25
|
+
"disabled": true,
|
26
|
+
"label": '自付金额'
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"field": 'biscount_amount',
|
30
|
+
"disabled": true,
|
31
|
+
"label": '折扣金额'
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"field": 'billing_amount',
|
35
|
+
"disabled": true,
|
36
|
+
"label": '记账金额'
|
37
|
+
}
|
38
|
+
],
|
39
|
+
"paymentMethods": [
|
40
|
+
{
|
41
|
+
"key": '医保卡',
|
42
|
+
"label": '医保卡',
|
43
|
+
"icon": '/img/paymentMethod/medical-card.png'
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"key": '微信/支付宝',
|
47
|
+
"label": '微信/支付宝',
|
48
|
+
"icon": '/img/paymentMethod/wechat-alipay.png'
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"key": '银行卡',
|
52
|
+
"label": '银行卡',
|
53
|
+
"icon": '/img/paymentMethod/bank-card.png'
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"key": '现金',
|
57
|
+
"label": '现金',
|
58
|
+
"icon": '/img/paymentMethod/cash.png'
|
59
|
+
}
|
60
|
+
],
|
61
|
+
"bottomFields": [
|
62
|
+
{
|
63
|
+
"field": 'f_balance',
|
64
|
+
"label": '账户余额',
|
65
|
+
"disabled": false
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"field": 'received',
|
69
|
+
"label": '实收',
|
70
|
+
"disabled": false
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"field": 'change',
|
74
|
+
"label": '找零',
|
75
|
+
"disabled": false
|
76
|
+
}
|
77
|
+
],
|
78
|
+
"actionButtons": [
|
79
|
+
{
|
80
|
+
"key": 'charge',
|
81
|
+
"label": '收费',
|
82
|
+
"icon": 'check'
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"key": 'refund',
|
86
|
+
"label": '退费',
|
87
|
+
"icon": 'undo'
|
88
|
+
},
|
89
|
+
{
|
90
|
+
"key": 'print',
|
91
|
+
"label": '打印',
|
92
|
+
"icon": 'printer'
|
93
|
+
}
|
94
|
+
],
|
95
|
+
"enableMixedPayment": true, // 启用混合支付
|
96
|
+
"mixedPaymentMode": 'manual', // 混合支付模式:'manual'手动输入,'auto'自动模式
|
97
|
+
// 可配置事件名,参考 fronImport 风格
|
98
|
+
"eventNames": {
|
99
|
+
"method": 'method',
|
100
|
+
"methods": 'methods',
|
101
|
+
"totalPaymentAmount": 'totalPaymentAmount',
|
102
|
+
"action": 'action'
|
103
|
+
},
|
104
|
+
"dataSourceConfig": 'testChargeLogic'
|
105
|
+
}
|
106
|
+
|
107
|
+
// 2. 混合支付自动模式配置(外部控制金额分配)
|
108
|
+
export const testAutoMixedChargeConfig = {
|
109
|
+
"title": "自动收费管理",
|
110
|
+
"amountFields": [
|
111
|
+
{
|
112
|
+
"field": 'f_amount',
|
113
|
+
"disabled": false,
|
114
|
+
"label": '费用总额'
|
115
|
+
},
|
116
|
+
{
|
117
|
+
"field": 'f_insurance_amount',
|
118
|
+
"disabled": true,
|
119
|
+
"label": '医保支付'
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"field": 'f_self_amount',
|
123
|
+
"disabled": true,
|
124
|
+
"label": '自费金额'
|
125
|
+
},
|
126
|
+
{
|
127
|
+
"field": 'out_of_pocket_amount',
|
128
|
+
"disabled": true,
|
129
|
+
"label": '自付金额'
|
130
|
+
}
|
131
|
+
],
|
132
|
+
"paymentMethods": [
|
133
|
+
{
|
134
|
+
"key": '医保卡',
|
135
|
+
"label": '医保卡',
|
136
|
+
"icon": 'icon1'
|
137
|
+
},
|
138
|
+
{
|
139
|
+
"key": '微信/支付宝',
|
140
|
+
"label": '微信/支付宝',
|
141
|
+
"icons": ['icon1','icon1']
|
142
|
+
},
|
143
|
+
{
|
144
|
+
"key": '银行卡',
|
145
|
+
"label": '银行卡',
|
146
|
+
"icon": 'icon1'
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"key": '现金',
|
150
|
+
"label": '现金',
|
151
|
+
"icon": 'icon1'
|
152
|
+
}
|
153
|
+
],
|
154
|
+
"bottomFields": [
|
155
|
+
{
|
156
|
+
"field": 'f_balance',
|
157
|
+
"label": '账户余额',
|
158
|
+
"disabled": false
|
159
|
+
},
|
160
|
+
{
|
161
|
+
"field": 'received',
|
162
|
+
"label": '实收',
|
163
|
+
"disabled": false
|
164
|
+
},
|
165
|
+
{
|
166
|
+
"field": 'change',
|
167
|
+
"label": '找零',
|
168
|
+
"disabled": false
|
169
|
+
}
|
170
|
+
],
|
171
|
+
"actionButtons": [
|
172
|
+
{
|
173
|
+
"key": 'charge',
|
174
|
+
"label": '收费',
|
175
|
+
"icon": 'check'
|
176
|
+
},
|
177
|
+
{
|
178
|
+
"key": 'refund',
|
179
|
+
"label": '退费',
|
180
|
+
"icon": 'undo'
|
181
|
+
},
|
182
|
+
{
|
183
|
+
"key": 'print',
|
184
|
+
"label": '打印',
|
185
|
+
"icon": 'printer'
|
186
|
+
}
|
187
|
+
],
|
188
|
+
"enableMixedPayment": true, // 启用混合支付
|
189
|
+
"mixedPaymentMode": 'auto', // 自动模式:不需要手动输入金额,由外部控制
|
190
|
+
"eventNames": {
|
191
|
+
"method": 'method',
|
192
|
+
"methods": 'methods',
|
193
|
+
"totalPaymentAmount": 'totalPaymentAmount',
|
194
|
+
"action": 'action'
|
195
|
+
},
|
196
|
+
"dataSourceConfig": 'testChargeLogic'
|
197
|
+
}
|
198
|
+
|
199
|
+
// 3. 单选模式配置(传统单选支付方式)
|
200
|
+
export const testSingleChargeConfig = {
|
201
|
+
"title": "简单收费",
|
202
|
+
"amountFields": [
|
203
|
+
{
|
204
|
+
"field": 'f_amount',
|
205
|
+
"disabled": false,
|
206
|
+
"label": '费用总额'
|
207
|
+
},
|
208
|
+
{
|
209
|
+
"field": 'f_insurance_amount',
|
210
|
+
"disabled": true,
|
211
|
+
"label": '医保支付'
|
212
|
+
}
|
213
|
+
],
|
214
|
+
"paymentMethods": [
|
215
|
+
{
|
216
|
+
"key": '医保卡',
|
217
|
+
"label": '医保卡',
|
218
|
+
"icon": 'icon2'
|
219
|
+
},
|
220
|
+
{
|
221
|
+
"key": '现金',
|
222
|
+
"label": '现金',
|
223
|
+
"icon": 'icon1'
|
224
|
+
}
|
225
|
+
],
|
226
|
+
"bottomFields": [
|
227
|
+
{
|
228
|
+
"field": 'received',
|
229
|
+
"label": '实收',
|
230
|
+
"disabled": false
|
231
|
+
},
|
232
|
+
{
|
233
|
+
"field": 'change',
|
234
|
+
"label": '找零',
|
235
|
+
"disabled": false
|
236
|
+
}
|
237
|
+
],
|
238
|
+
"actionButtons": [
|
239
|
+
{
|
240
|
+
"key": 'charge',
|
241
|
+
"label": '收费',
|
242
|
+
"icon": 'check'
|
243
|
+
}
|
244
|
+
],
|
245
|
+
"enableMixedPayment": false, // 禁用混合支付(单选模式)
|
246
|
+
"eventNames": {
|
247
|
+
"method": 'method',
|
248
|
+
"methods": 'methods',
|
249
|
+
"totalPaymentAmount": 'totalPaymentAmount',
|
250
|
+
"action": 'action'
|
251
|
+
},
|
252
|
+
"dataSourceConfig": 'testChargeLogic'
|
253
|
+
}
|
254
|
+
|
255
|
+
// 4. 最小配置示例(仅必需字段)
|
256
|
+
export const testMinimalConfig = {
|
257
|
+
"title": "最小配置",
|
258
|
+
"enableMixedPayment": true,
|
259
|
+
"paymentMethods": [
|
260
|
+
{
|
261
|
+
key: '医保卡',
|
262
|
+
label: '医保卡',
|
263
|
+
icon: 'icon1'
|
264
|
+
},
|
265
|
+
{
|
266
|
+
key: '微信/支付宝',
|
267
|
+
label: '微信/支付宝',
|
268
|
+
icon: 'icon1'
|
269
|
+
}
|
270
|
+
],
|
271
|
+
"amountFields": [
|
272
|
+
{ field: 'f_amount', label: '费用总额' }
|
273
|
+
],
|
274
|
+
"bottomFields": [
|
275
|
+
{ field: 'received', label: '实收' },
|
276
|
+
{ field: 'change', label: '找零' }
|
277
|
+
],
|
278
|
+
"actionButtons": [
|
279
|
+
{ key: 'charge', label: '收费' }
|
280
|
+
]
|
281
|
+
}
|
282
|
+
|
283
|
+
// 5. 高级配置示例(包含所有可选字段)
|
284
|
+
export const testAdvancedConfig = {
|
285
|
+
"title": "高级收费管理",
|
286
|
+
"amountFields": [
|
287
|
+
{
|
288
|
+
"field": 'f_amount',
|
289
|
+
"disabled": false,
|
290
|
+
"label": '费用总额'
|
291
|
+
},
|
292
|
+
{
|
293
|
+
"field": 'f_insurance_amount',
|
294
|
+
"disabled": true,
|
295
|
+
"label": '医保支付'
|
296
|
+
},
|
297
|
+
{
|
298
|
+
"field": 'f_self_amount',
|
299
|
+
"disabled": true,
|
300
|
+
"label": '自费金额'
|
301
|
+
},
|
302
|
+
{
|
303
|
+
"field": 'out_of_pocket_amount',
|
304
|
+
"disabled": true,
|
305
|
+
"label": '自付金额'
|
306
|
+
},
|
307
|
+
{
|
308
|
+
"field": 'biscount_amount',
|
309
|
+
"disabled": true,
|
310
|
+
"label": '折扣金额'
|
311
|
+
},
|
312
|
+
{
|
313
|
+
"field": 'billing_amount',
|
314
|
+
"disabled": true,
|
315
|
+
"label": '记账金额'
|
316
|
+
}
|
317
|
+
],
|
318
|
+
"paymentMethods": [
|
319
|
+
{
|
320
|
+
"key": '医保卡',
|
321
|
+
"label": '医保卡',
|
322
|
+
"icon": '/img/paymentMethod/medical-card.png'
|
323
|
+
},
|
324
|
+
{
|
325
|
+
"key": '微信',
|
326
|
+
"label": '微信支付',
|
327
|
+
"icon": '/img/paymentMethod/wechat.png'
|
328
|
+
},
|
329
|
+
{
|
330
|
+
"key": '支付宝',
|
331
|
+
"label": '支付宝',
|
332
|
+
"icon": '/img/paymentMethod/alipay.png'
|
333
|
+
},
|
334
|
+
{
|
335
|
+
"key": '银行卡',
|
336
|
+
"label": '银行卡',
|
337
|
+
"icon": '/img/paymentMethod/bank-card.png'
|
338
|
+
},
|
339
|
+
{
|
340
|
+
"key": '现金',
|
341
|
+
"label": '现金',
|
342
|
+
"icon": '/img/paymentMethod/cash.png'
|
343
|
+
},
|
344
|
+
{
|
345
|
+
"key": '其他',
|
346
|
+
"label": '其他方式',
|
347
|
+
"icon": '/img/paymentMethod/other.png'
|
348
|
+
}
|
349
|
+
],
|
350
|
+
"bottomFields": [
|
351
|
+
{
|
352
|
+
"field": 'f_balance',
|
353
|
+
"label": '账户余额',
|
354
|
+
"disabled": false
|
355
|
+
},
|
356
|
+
{
|
357
|
+
"field": 'received',
|
358
|
+
"label": '实收',
|
359
|
+
"disabled": false
|
360
|
+
},
|
361
|
+
{
|
362
|
+
"field": 'change',
|
363
|
+
"label": '找零',
|
364
|
+
"disabled": false
|
365
|
+
},
|
366
|
+
{
|
367
|
+
"field": 'discount',
|
368
|
+
"label": '优惠金额',
|
369
|
+
"disabled": false
|
370
|
+
}
|
371
|
+
],
|
372
|
+
"actionButtons": [
|
373
|
+
{
|
374
|
+
"key": 'charge',
|
375
|
+
"label": '收费',
|
376
|
+
"icon": 'check'
|
377
|
+
},
|
378
|
+
{
|
379
|
+
"key": 'refund',
|
380
|
+
"label": '退费',
|
381
|
+
"icon": 'undo'
|
382
|
+
},
|
383
|
+
{
|
384
|
+
"key": 'print',
|
385
|
+
"label": '打印',
|
386
|
+
"icon": 'printer'
|
387
|
+
},
|
388
|
+
{
|
389
|
+
"key": 'save',
|
390
|
+
"label": '保存',
|
391
|
+
"icon": 'save'
|
392
|
+
}
|
393
|
+
],
|
394
|
+
"enableMixedPayment": true,
|
395
|
+
"mixedPaymentMode": 'manual',
|
396
|
+
// 自定义事件名
|
397
|
+
"eventNames": {
|
398
|
+
"method": 'onPaymentMethodChange',
|
399
|
+
"methods": 'onPaymentMethodsChange',
|
400
|
+
"totalPaymentAmount": 'onTotalAmountChange',
|
401
|
+
"action": 'onActionClick'
|
402
|
+
},
|
403
|
+
"dataSourceConfig": 'advancedChargeLogic'
|
404
|
+
}
|
405
|
+
|
406
|
+
// 6. 无图标配置示例(测试占位符功能)
|
407
|
+
export const testNoIconConfig = {
|
408
|
+
"title": "无图标测试",
|
409
|
+
"enableMixedPayment": true,
|
410
|
+
"paymentMethods": [
|
411
|
+
{
|
412
|
+
"key": '方式一',
|
413
|
+
"label": '方式一'
|
414
|
+
// 无icon配置,将显示首字母占位符
|
415
|
+
},
|
416
|
+
{
|
417
|
+
"key": '方式二',
|
418
|
+
"label": '方式二'
|
419
|
+
// 无icon配置,将显示首字母占位符
|
420
|
+
}
|
421
|
+
],
|
422
|
+
"amountFields": [
|
423
|
+
{ field: 'f_amount', label: '费用总额' }
|
424
|
+
],
|
425
|
+
"bottomFields": [
|
426
|
+
{ field: 'received', label: '实收' }
|
427
|
+
],
|
428
|
+
"actionButtons": [
|
429
|
+
{ key: 'charge', label: '收费' }
|
430
|
+
]
|
431
|
+
}
|
432
|
+
|
433
|
+
// 配置说明:
|
434
|
+
// 1. title: 标题文本,支持XTitle组件的所有功能
|
435
|
+
// 2. paymentMethods.icon: 图标路径,支持相对路径和绝对路径
|
436
|
+
// 3. mixedPaymentMode: 'manual'手动输入模式,'auto'自动模式
|
437
|
+
// 4. enableMixedPayment: true启用混合支付,false为单选模式
|
438
|
+
// 5. eventNames: 可自定义事件名称
|
439
|
+
// 6. dataSourceConfig: 数据源逻辑配置名
|