vue2-client 1.16.47 → 1.16.48

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 (25) hide show
  1. package/package.json +112 -112
  2. package/src/assets/img/paymentMethod/icon1.png +0 -0
  3. package/src/assets/img/paymentMethod/icon2.png +0 -0
  4. package/src/assets/img/paymentMethod/icon3.png +0 -0
  5. package/src/assets/img/paymentMethod/icon4.png +0 -0
  6. package/src/assets/img/paymentMethod/icon5.png +0 -0
  7. package/src/assets/img/paymentMethod/icon6.png +0 -0
  8. package/src/base-client/components/common/HIS/HButtons/HButtons.vue +47 -45
  9. package/src/base-client/components/common/HIS/HFormGroup/HFormGroup.vue +120 -120
  10. package/src/base-client/components/common/HIS/HFormGroup/index.js +3 -3
  11. package/src/base-client/components/common/HIS/HFormTable/HFormTable.vue +257 -256
  12. package/src/base-client/components/common/HIS/demo.vue +61 -61
  13. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +1178 -1178
  14. package/src/base-client/components/common/XCollapse/XCollapse.vue +461 -461
  15. package/src/base-client/components/common/XInput/XInput.vue +147 -147
  16. package/src/base-client/components/common/XReport/XReportHospitalizationDemo.vue +45 -0
  17. package/src/base-client/components/common/XReportGrid/XReportTrGroup.vue +824 -824
  18. package/src/base-client/components/common/XTable/XTable.vue +1610 -1610
  19. package/src/base-client/components/common/XTimeline/XTimeline.vue +454 -454
  20. package/src/base-client/components/his/XCharge/testConfig.js +149 -0
  21. package/src/base-client/components/his/XHDescriptions/XHDescriptions.vue +6 -1
  22. package/src/base-client/components/his/XHisEditor/XHisEditor.vue +705 -705
  23. package/src/base-client/components/his/threeTestOrders/editor.vue +113 -113
  24. package/src/pages/userInfoDetailManage/ExceptionRecordQuery/index.vue +45 -45
  25. package/src/router/async/router.map.js +132 -129
@@ -1,147 +1,147 @@
1
- <template>
2
- <div class="x-input-wrapper" :class="wrapperClassObject">
3
- <div class="input-container">
4
- <span v-if="config?.label" class="input-label">{{ config.label }}</span>
5
- <div class="input-wrapper">
6
- <a-input
7
- v-model="innerValue"
8
- v-bind="$attrs"
9
- :placeholder="config?.placeholder"
10
- :size="config?.size"
11
- :maxLength="config?.maxLength"
12
- :disabled="config?.disabled"
13
- :allowClear="config?.allowClear"
14
- @change="handleInput"
15
- @pressEnter="handleSearch"
16
- >
17
- <template v-if="config?.prefix" #prefix>
18
- <a-icon :type="config.prefix" @click="handleSearch" class="clickable-icon" />
19
- </template>
20
- <template v-if="config?.suffix" #suffix>
21
- <a-icon :type="config.suffix" @click="handleSearch" class="clickable-icon" />
22
- </template>
23
- </a-input>
24
- </div>
25
- <span v-if="config?.tail" class="input-tail">{{ config.tail }}</span>
26
- </div>
27
- </div>
28
- </template>
29
-
30
- <script>
31
- import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
32
-
33
- export default {
34
- name: 'XInput',
35
- inheritAttrs: false,
36
- props: {
37
- value: {
38
- type: [String, Number],
39
- default: ''
40
- },
41
- queryParamsName: {
42
- type: String,
43
- default: ''
44
- }
45
- },
46
- data () {
47
- return {
48
- innerValue: this.value || '',
49
- config: null
50
- }
51
- },
52
- computed: {
53
- // 动态样式开关:布尔开关 + size 派生类
54
- wrapperClassObject () {
55
- const attrs = this.$attrs || {}
56
- const classes = {}
57
- const booleanStyleKeys = [
58
-
59
- ]
60
- booleanStyleKeys.forEach(key => {
61
- const val = attrs[key]
62
- const truthy = val === true || val === '' || val === 'true'
63
- if (truthy) classes[`xinput-${key}`] = true
64
- })
65
- const size = attrs.size
66
- if (size && typeof size === 'string') classes[`xinput-size-${size}`] = true
67
- return classes
68
- }
69
- },
70
- created () {
71
- this.getData(this.queryParamsName)
72
- },
73
- emits: ['search'],
74
- methods: {
75
- runLogic,
76
- async getData (data) {
77
- getConfigByName(data, 'af-his', res => {
78
- this.config = res
79
- if (res.defaultValue !== undefined) {
80
- this.innerValue = res.defaultValue
81
- }
82
- })
83
- },
84
- handleInput (e) {
85
- const value = e.target.value
86
- this.innerValue = value
87
- this.$emit('search', value)
88
- },
89
- handleSearch () {
90
- // 统一的搜索事件:将当前输入值发送给父组件
91
- this.$emit('search', this.innerValue)
92
- }
93
- },
94
- watch: {
95
- value: {
96
- handler (newValue) {
97
- this.innerValue = newValue
98
- },
99
- immediate: true
100
- },
101
- queryParamsName: {
102
- handler (newValue) {
103
- this.getData(newValue)
104
- },
105
- deep: true
106
- }
107
- }
108
- }
109
- </script>
110
-
111
- <style scoped lang="less">
112
- .x-input-wrapper {
113
- position: relative;
114
- display: inline-block;
115
- width: 100%;
116
- }
117
-
118
- .input-container {
119
- display: flex;
120
- align-items: center;
121
- }
122
-
123
- .input-label {
124
- white-space: nowrap;
125
- color: rgba(0, 0, 0, 0.85);
126
- padding-right: 8px; /* 标签右侧固定间距 */
127
- }
128
-
129
- .input-label {
130
- white-space: nowrap;
131
- color: rgba(0, 0, 0, 0.85);
132
- padding-left: 4px; /* 标签左侧固定间距 */
133
- }
134
-
135
- .input-wrapper {
136
- flex: 1; /* 输入框占据剩余空间 */
137
- }
138
-
139
- :deep(.clickable-icon) {
140
- cursor: pointer;
141
- }
142
-
143
- :deep(.clickable-icon:hover) {
144
- color: #1890ff;
145
- }
146
-
147
- </style>
1
+ <template>
2
+ <div class="x-input-wrapper" :class="wrapperClassObject">
3
+ <div class="input-container">
4
+ <span v-if="config?.label" class="input-label">{{ config.label }}</span>
5
+ <div class="input-wrapper">
6
+ <a-input
7
+ v-model="innerValue"
8
+ v-bind="$attrs"
9
+ :placeholder="config?.placeholder"
10
+ :size="config?.size"
11
+ :maxLength="config?.maxLength"
12
+ :disabled="config?.disabled"
13
+ :allowClear="config?.allowClear"
14
+ @change="handleInput"
15
+ @pressEnter="handleSearch"
16
+ >
17
+ <template v-if="config?.prefix" #prefix>
18
+ <a-icon :type="config.prefix" @click="handleSearch" class="clickable-icon" />
19
+ </template>
20
+ <template v-if="config?.suffix" #suffix>
21
+ <a-icon :type="config.suffix" @click="handleSearch" class="clickable-icon" />
22
+ </template>
23
+ </a-input>
24
+ </div>
25
+ <span v-if="config?.tail" class="input-tail">{{ config.tail }}</span>
26
+ </div>
27
+ </div>
28
+ </template>
29
+
30
+ <script>
31
+ import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
32
+
33
+ export default {
34
+ name: 'XInput',
35
+ inheritAttrs: false,
36
+ props: {
37
+ value: {
38
+ type: [String, Number],
39
+ default: ''
40
+ },
41
+ queryParamsName: {
42
+ type: String,
43
+ default: ''
44
+ }
45
+ },
46
+ data () {
47
+ return {
48
+ innerValue: this.value || '',
49
+ config: null
50
+ }
51
+ },
52
+ computed: {
53
+ // 动态样式开关:布尔开关 + size 派生类
54
+ wrapperClassObject () {
55
+ const attrs = this.$attrs || {}
56
+ const classes = {}
57
+ const booleanStyleKeys = [
58
+
59
+ ]
60
+ booleanStyleKeys.forEach(key => {
61
+ const val = attrs[key]
62
+ const truthy = val === true || val === '' || val === 'true'
63
+ if (truthy) classes[`xinput-${key}`] = true
64
+ })
65
+ const size = attrs.size
66
+ if (size && typeof size === 'string') classes[`xinput-size-${size}`] = true
67
+ return classes
68
+ }
69
+ },
70
+ created () {
71
+ this.getData(this.queryParamsName)
72
+ },
73
+ emits: ['search'],
74
+ methods: {
75
+ runLogic,
76
+ async getData (data) {
77
+ getConfigByName(data, 'af-his', res => {
78
+ this.config = res
79
+ if (res.defaultValue !== undefined) {
80
+ this.innerValue = res.defaultValue
81
+ }
82
+ })
83
+ },
84
+ handleInput (e) {
85
+ const value = e.target.value
86
+ this.innerValue = value
87
+ this.$emit('search', value)
88
+ },
89
+ handleSearch () {
90
+ // 统一的搜索事件:将当前输入值发送给父组件
91
+ this.$emit('search', this.innerValue)
92
+ }
93
+ },
94
+ watch: {
95
+ value: {
96
+ handler (newValue) {
97
+ this.innerValue = newValue
98
+ },
99
+ immediate: true
100
+ },
101
+ queryParamsName: {
102
+ handler (newValue) {
103
+ this.getData(newValue)
104
+ },
105
+ deep: true
106
+ }
107
+ }
108
+ }
109
+ </script>
110
+
111
+ <style scoped lang="less">
112
+ .x-input-wrapper {
113
+ position: relative;
114
+ display: inline-block;
115
+ width: 100%;
116
+ }
117
+
118
+ .input-container {
119
+ display: flex;
120
+ align-items: center;
121
+ }
122
+
123
+ .input-label {
124
+ white-space: nowrap;
125
+ color: rgba(0, 0, 0, 0.85);
126
+ padding-right: 8px; /* 标签右侧固定间距 */
127
+ }
128
+
129
+ .input-label {
130
+ white-space: nowrap;
131
+ color: rgba(0, 0, 0, 0.85);
132
+ padding-left: 4px; /* 标签左侧固定间距 */
133
+ }
134
+
135
+ .input-wrapper {
136
+ flex: 1; /* 输入框占据剩余空间 */
137
+ }
138
+
139
+ :deep(.clickable-icon) {
140
+ cursor: pointer;
141
+ }
142
+
143
+ :deep(.clickable-icon:hover) {
144
+ color: #1890ff;
145
+ }
146
+
147
+ </style>
@@ -0,0 +1,45 @@
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>