vue2-client 1.16.26 → 1.16.27

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.
@@ -60,14 +60,12 @@ path: 'example',
60
60
  // component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
61
61
  // component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
62
62
  // component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
63
- // component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
63
+ component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
64
64
  // component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
65
65
  // component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
66
66
  // component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),
67
- component: () => import('@vue2-client/base-client/components/common/XReport/XReportHospitalizationDemo.vue'),
68
67
  // component: () => import('@vue2-client/base-client/components/common/XForm/demo.vue'),
69
68
  // component: () => import('@vue2-client/base-client/components/his/XTimeSelect/XTimeSelectDemo.vue'),
70
- // component: () => import('@vue2-client/base-client/components/his/XCharge/XChargeDemo.vue'),
71
69
  // component: () => import('@vue2-client/base-client/components/his/XImportExcelButton/XFrontImportExcelDemo.vue'),
72
70
  // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
73
71
  // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
@@ -79,7 +79,6 @@ export function getConfig (content, configName, serviceName = process.env.VUE_AP
79
79
  apiPre = '/devApi/'
80
80
  }
81
81
  const getConfigUrl = apiPre + serviceName + '/' + commonApi.getConfig
82
- console.log('getConfigUrl', getConfigUrl)
83
82
  indexedDB.getByWeb(configName, getConfigUrl, { configName: configName }, callback)
84
83
  }
85
84
 
@@ -1,45 +0,0 @@
1
- <template>
2
- <div id="xreport-hosp-demo">
3
- <a-space style="margin-bottom: 12px;">
4
- <a-button type="primary" @click="doInit">手动初始化</a-button>
5
- </a-space>
6
- <XReport
7
- ref="reportRef"
8
- :edit-mode="true"
9
- :show-save-button="true"
10
- :show-img-in-cell="false"
11
- :use-oss-for-img="false"
12
- server-name="af-his"
13
- @updateImg="onUpdateImg"/>
14
- </div>
15
- </template>
16
-
17
- <script setup>
18
- import { ref } from 'vue'
19
- import XReport from '@vue2-client/base-client/components/common/XReport'
20
-
21
- const reportRef = ref(null)
22
-
23
- const payload = {
24
- arr: [
25
- { BQ: '病房区', RY: 0, CY: 0, CW: 0, SW: 0, SS: 0, ZC: 0, ZR: 0, ZY: 0 },
26
- { BQ: '感染科', RY: 0, CY: 0, CW: 0, SW: 0, SS: 0, ZC: 0, ZR: 0, ZY: 0 },
27
- { BQ: '骨科病区', RY: 0, CY: 0, CW: 0, SW: 0, SS: 0, ZC: 0, ZR: 0, ZY: 0 },
28
- { BQ: '呼吸科病区', RY: 0, CY: 0, CW: 0, SW: 0, SS: 0, ZC: 0, ZR: 0, ZY: 0 },
29
- { BQ: '急症科病区', RY: 0, CY: 0, CW: 0, SW: 0, SS: 0, ZC: 0, ZR: 0, ZY: 0 },
30
- { BQ: '内科二病区', RY: 0, CY: 0, CW: 0, SW: 0, SS: 0, ZC: 0, ZR: 0, ZY: 0 }
31
- ]
32
- }
33
-
34
- const doInit = async () => {
35
- if (!reportRef.value || !reportRef.value.init) return
36
- await reportRef.value.init({
37
- configName: 'hospitalizationStatsReport',
38
- configData: payload
39
- })
40
- }
41
-
42
- const onUpdateImg = data => {
43
- console.warn('updateImg:', data)
44
- }
45
- </script>
@@ -1,149 +0,0 @@
1
- // 测试配置 - 用于演示混合支付功能
2
- export const testChargeConfig = {
3
- "amountFields": [
4
- {
5
- "field": 'f_amount',
6
- "disabled": false,
7
- "label": '费用总额'
8
- },
9
- {
10
- "field": 'f_insurance_amount',
11
- "disabled": true,
12
- "label": '医保支付'
13
- },
14
- {
15
- "field": 'f_self_amount',
16
- "disabled": true,
17
- "label": '自费金额'
18
- },
19
- {
20
- "field": 'out_of_pocket_amount',
21
- "disabled": true,
22
- "label": '自付金额'
23
- },
24
- {
25
- "field": 'biscount_amount',
26
- "disabled": true,
27
- "label": '折扣金额'
28
- },
29
- {
30
- "field": 'billing_amount',
31
- "disabled": true,
32
- "label": '记账金额'
33
- }
34
- ],
35
- "paymentMethods": [
36
- {
37
- "key": '医保卡',
38
- "label": '医保卡'
39
- },
40
- {
41
- "key": '微信/支付宝',
42
- "label": '微信/支付宝'
43
- },
44
- {
45
- "key": '银行卡',
46
- "label": '银行卡'
47
- },
48
- {
49
- "key": '现金',
50
- "label": '现金'
51
- }
52
- ],
53
- "bottomFields": [
54
- {
55
- "field": 'f_balance',
56
- "label": '账户余额',
57
- "disabled": false
58
- },
59
- {
60
- "field": 'received',
61
- "label": '实收',
62
- "disabled": false
63
- },
64
- {
65
- "field": 'change',
66
- "label": '找零',
67
- "disabled": false
68
- }
69
- ],
70
- "actionButtons": [
71
- {
72
- "key": 'charge',
73
- "label": '收费',
74
- "icon": 'check'
75
- },
76
- {
77
- "key": 'refund',
78
- "label": '退费',
79
- "icon": 'undo'
80
- },
81
- {
82
- "key": 'print',
83
- "label": '打印',
84
- "icon": 'printer'
85
- }
86
- ],
87
- "enableMixedPayment": true, // 启用混合支付
88
- // 可配置事件名,参考 fronImport 风格
89
- "eventNames": {
90
- "method": 'method',
91
- "methods": 'methods',
92
- "totalPaymentAmount": 'totalPaymentAmount',
93
- "action": 'action'
94
- },
95
- "dataSourceConfig": 'testChargeLogic'
96
- }
97
-
98
- // 单选模式测试配置
99
- export const testSingleChargeConfig = {
100
- "amountFields": [
101
- {
102
- "field": 'f_amount',
103
- "disabled": false,
104
- "label": '费用总额'
105
- },
106
- {
107
- "field": 'f_insurance_amount',
108
- "disabled": true,
109
- "label": '医保支付'
110
- }
111
- ],
112
- "paymentMethods": [
113
- {
114
- "key": '医保卡',
115
- "label": '医保卡'
116
- },
117
- {
118
- "key": '现金',
119
- "label": '现金'
120
- }
121
- ],
122
- "bottomFields": [
123
- {
124
- "field": 'received',
125
- "label": '实收',
126
- "disabled": false
127
- },
128
- {
129
- "field": 'change',
130
- "label": '找零',
131
- "disabled": false
132
- }
133
- ],
134
- "actionButtons": [
135
- {
136
- "key": 'charge',
137
- "label": '收费',
138
- "icon": 'check'
139
- }
140
- ],
141
- "enableMixedPayment": false, // 禁用混合支付(单选模式)
142
- "eventNames": {
143
- "method": 'method',
144
- "methods": 'methods',
145
- "totalPaymentAmount": 'totalPaymentAmount',
146
- "action": 'action'
147
- },
148
- "dataSourceConfig": 'testChargeLogic'
149
- }