vue2-client 1.16.39 → 1.16.41
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 +1 -1
- package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +18 -4
- package/src/base-client/components/common/HIS/HFormTable/HFormTable.vue +43 -18
- package/src/base-client/components/common/XDescriptions/XDescriptions.vue +174 -174
- package/src/base-client/components/common/XReport/XReport.vue +9 -18
- package/src/base-client/components/common/XSimpleDescriptions/XSimpleDescriptions.vue +166 -166
- package/src/base-client/components/his/XHDescriptions/XHDescriptions.vue +22 -14
- package/src/config/CreateQueryConfig.js +325 -325
- package/src/pages/XTreeOneProExample/index.vue +67 -67
- package/src/router/async/router.map.js +1 -4
- package/src/services/api/common.js +0 -1
- 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/base-client/components/common/XReport/XReportHospitalizationDemo.vue +0 -45
- package/src/base-client/components/his/XCharge/testConfig.js +0 -149
@@ -1,67 +1,67 @@
|
|
1
|
-
<template>
|
2
|
-
<x-tree-view ref="xTreeView" @itemChecked="itemChecked">
|
3
|
-
<x-add-native-form ref="nativeForm" />
|
4
|
-
</x-tree-view>
|
5
|
-
</template>
|
6
|
-
|
7
|
-
<script>
|
8
|
-
|
9
|
-
import XTreeView from '@vue2-client/base-client/components/layout/XTreeView'
|
10
|
-
import { mapState } from 'vuex'
|
11
|
-
import XAddNativeForm from '@vue2-client/base-client/components/common/XAddNativeForm/XAddNativeForm.vue'
|
12
|
-
import { getConfigByName } from '@vue2-client/services/api/common'
|
13
|
-
|
14
|
-
export default {
|
15
|
-
components: {
|
16
|
-
XAddNativeForm,
|
17
|
-
XTreeView,
|
18
|
-
},
|
19
|
-
data () {
|
20
|
-
return {
|
21
|
-
currentItem: undefined,
|
22
|
-
}
|
23
|
-
},
|
24
|
-
computed: {
|
25
|
-
...mapState('account', { currUser: 'user' }),
|
26
|
-
...mapState('setting', ['isMobile'])
|
27
|
-
},
|
28
|
-
mounted () {
|
29
|
-
this.initView()
|
30
|
-
},
|
31
|
-
methods: {
|
32
|
-
// 初始化组件
|
33
|
-
initView () {
|
34
|
-
this.$refs.xTreeView.init({
|
35
|
-
configName: 'templateTreeConfig',
|
36
|
-
serviceName: 'af-his',
|
37
|
-
env: 'dev',
|
38
|
-
})
|
39
|
-
},
|
40
|
-
itemChecked (node) {
|
41
|
-
this.currentItem = node
|
42
|
-
if (node.type === 'all' || node.type === 'folder') {
|
43
|
-
this.$refs.nativeForm.close()
|
44
|
-
return
|
45
|
-
}
|
46
|
-
getConfigByName('编辑模板数据Form', 'af-his', (res) => {
|
47
|
-
this.$refs.nativeForm.init({
|
48
|
-
serviceName: 'af-his',
|
49
|
-
formItems: res.formJson,
|
50
|
-
showSubmitBtn: false,
|
51
|
-
title: '收费',
|
52
|
-
businessType: '新增',
|
53
|
-
getDataParams: {
|
54
|
-
content: {
|
55
|
-
pms_patient_id: 1,
|
56
|
-
template_id: node.id
|
57
|
-
}
|
58
|
-
}
|
59
|
-
})
|
60
|
-
})
|
61
|
-
}
|
62
|
-
}
|
63
|
-
}
|
64
|
-
</script>
|
65
|
-
|
66
|
-
<style>
|
67
|
-
</style>
|
1
|
+
<template>
|
2
|
+
<x-tree-view ref="xTreeView" @itemChecked="itemChecked">
|
3
|
+
<x-add-native-form ref="nativeForm" />
|
4
|
+
</x-tree-view>
|
5
|
+
</template>
|
6
|
+
|
7
|
+
<script>
|
8
|
+
|
9
|
+
import XTreeView from '@vue2-client/base-client/components/layout/XTreeView'
|
10
|
+
import { mapState } from 'vuex'
|
11
|
+
import XAddNativeForm from '@vue2-client/base-client/components/common/XAddNativeForm/XAddNativeForm.vue'
|
12
|
+
import { getConfigByName } from '@vue2-client/services/api/common'
|
13
|
+
|
14
|
+
export default {
|
15
|
+
components: {
|
16
|
+
XAddNativeForm,
|
17
|
+
XTreeView,
|
18
|
+
},
|
19
|
+
data () {
|
20
|
+
return {
|
21
|
+
currentItem: undefined,
|
22
|
+
}
|
23
|
+
},
|
24
|
+
computed: {
|
25
|
+
...mapState('account', { currUser: 'user' }),
|
26
|
+
...mapState('setting', ['isMobile'])
|
27
|
+
},
|
28
|
+
mounted () {
|
29
|
+
this.initView()
|
30
|
+
},
|
31
|
+
methods: {
|
32
|
+
// 初始化组件
|
33
|
+
initView () {
|
34
|
+
this.$refs.xTreeView.init({
|
35
|
+
configName: 'templateTreeConfig',
|
36
|
+
serviceName: 'af-his',
|
37
|
+
env: 'dev',
|
38
|
+
})
|
39
|
+
},
|
40
|
+
itemChecked (node) {
|
41
|
+
this.currentItem = node
|
42
|
+
if (node.type === 'all' || node.type === 'folder') {
|
43
|
+
this.$refs.nativeForm.close()
|
44
|
+
return
|
45
|
+
}
|
46
|
+
getConfigByName('编辑模板数据Form', 'af-his', (res) => {
|
47
|
+
this.$refs.nativeForm.init({
|
48
|
+
serviceName: 'af-his',
|
49
|
+
formItems: res.formJson,
|
50
|
+
showSubmitBtn: false,
|
51
|
+
title: '收费',
|
52
|
+
businessType: '新增',
|
53
|
+
getDataParams: {
|
54
|
+
content: {
|
55
|
+
pms_patient_id: 1,
|
56
|
+
template_id: node.id
|
57
|
+
}
|
58
|
+
}
|
59
|
+
})
|
60
|
+
})
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
</script>
|
65
|
+
|
66
|
+
<style>
|
67
|
+
</style>
|
@@ -60,15 +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
|
-
|
64
|
-
// component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
|
63
|
+
component: () => import('@vue2-client/base-client/components/common/HIS/demo.vue'),
|
65
64
|
// component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
|
66
65
|
// component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
|
67
66
|
// component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),
|
68
|
-
component: () => import('@vue2-client/base-client/components/common/XReport/XReportHospitalizationDemo.vue'),
|
69
67
|
// component: () => import('@vue2-client/base-client/components/common/XForm/demo.vue'),
|
70
68
|
// component: () => import('@vue2-client/base-client/components/his/XTimeSelect/XTimeSelectDemo.vue'),
|
71
|
-
// component: () => import('@vue2-client/base-client/components/his/XCharge/XChargeDemo.vue'),
|
72
69
|
// component: () => import('@vue2-client/base-client/components/his/XImportExcelButton/XFrontImportExcelDemo.vue'),
|
73
70
|
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
74
71
|
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
@@ -83,7 +83,6 @@ export function getConfig (content, configName, serviceName = process.env.VUE_AP
|
|
83
83
|
apiPre = '/devApi/'
|
84
84
|
}
|
85
85
|
const getConfigUrl = apiPre + serviceName + '/' + commonApi.getConfig
|
86
|
-
console.log('getConfigUrl', getConfigUrl)
|
87
86
|
indexedDB.getByWeb(configName, getConfigUrl, { configName: configName }, callback)
|
88
87
|
}
|
89
88
|
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -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
|
-
}
|