vue2-client 1.16.48 → 1.16.51

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 (28) hide show
  1. package/package.json +112 -112
  2. package/src/assets/svg/female.svg +1 -0
  3. package/src/assets/svg/male.svg +1 -0
  4. package/src/base-client/components/common/HIS/HButtons/HButtons.vue +371 -371
  5. package/src/base-client/components/common/HIS/HFormGroup/HFormGroup.vue +120 -120
  6. package/src/base-client/components/common/HIS/HFormGroup/index.js +3 -3
  7. package/src/base-client/components/common/HIS/HFormTable/HFormTable.vue +379 -257
  8. package/src/base-client/components/common/HIS/demo.vue +61 -61
  9. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +1178 -1178
  10. package/src/base-client/components/common/XCollapse/XCollapse.vue +461 -461
  11. package/src/base-client/components/common/XDataCard/XDataCard.vue +44 -18
  12. package/src/base-client/components/common/XInput/XInput.vue +147 -147
  13. package/src/base-client/components/common/XReportGrid/XReportTrGroup.vue +824 -824
  14. package/src/base-client/components/common/XTable/XTable.vue +1610 -1610
  15. package/src/base-client/components/common/XTimeline/XTimeline.vue +454 -454
  16. package/src/base-client/components/his/XHisEditor/XHisEditor.vue +705 -705
  17. package/src/base-client/components/his/XList/XList.vue +829 -607
  18. package/src/base-client/components/his/threeTestOrders/editor.vue +113 -113
  19. package/src/pages/userInfoDetailManage/ExceptionRecordQuery/index.vue +45 -45
  20. package/src/router/async/router.map.js +129 -132
  21. package/src/assets/img/paymentMethod/icon1.png +0 -0
  22. package/src/assets/img/paymentMethod/icon2.png +0 -0
  23. package/src/assets/img/paymentMethod/icon3.png +0 -0
  24. package/src/assets/img/paymentMethod/icon4.png +0 -0
  25. package/src/assets/img/paymentMethod/icon5.png +0 -0
  26. package/src/assets/img/paymentMethod/icon6.png +0 -0
  27. package/src/base-client/components/common/XReport/XReportHospitalizationDemo.vue +0 -45
  28. package/src/base-client/components/his/XCharge/testConfig.js +0 -149
@@ -6,6 +6,7 @@
6
6
  :key="'card' + itemIndex"
7
7
  class="data-card"
8
8
  :class="{ 'card-clicked': card.isClicked }"
9
+ :headStyle="{ backgroundColor: '#f9f9f9' }"
9
10
  >
10
11
  <div
11
12
  v-if="config && card[config.ribbon]"
@@ -56,7 +57,7 @@
56
57
  <div class="progress-done" :style="'width:' + card[item.key] * 100 + '%;backgroundColor: ' + determineRatioColor(card[item.key] * 100)"></div>
57
58
  </div>
58
59
  </div>
59
- <div class="progress-num">{{ card[item.key] * 100 }}%</div>
60
+ <a-progress :percent="card[item.key]" :stroke-color="{ '0%': '#108ee9', '100%': '#87d068' }" strokeWidth="10" :style="{ width: '95%' }" />
60
61
  </template>
61
62
  <template v-else-if="item.type === 'custom' && tableColumns">
62
63
  <!-- 根据 tableColumns 显示自定义内容 -->
@@ -75,7 +76,7 @@
75
76
  </span>
76
77
  </template>
77
78
  <template v-else>
78
- <span class="body-item-value">{{ card[item.key] }}</span>
79
+ <span class="body-item-value" style="float: right;">{{ card[item.key] }}</span>
79
80
  </template>
80
81
  </div>
81
82
  <a-divider
@@ -87,23 +88,19 @@
87
88
  </div>
88
89
  <!-- 下方按钮 -->
89
90
  <template #actions>
90
- <a-row align="middle" class="custom-actions" v-if="config && config.footer && config.footer.length > 0">
91
+ <div class="custom-actions" v-if="config && config.footer && config.footer.length > 0">
91
92
  <template v-for="(item, footerIndex) in config.footer">
92
- <a-col :key="'footer_' + footerIndex" class="footer-item" :span="11" @click="clickFooter(card, item.emit, itemIndex)">
93
- <span>
94
- <a-icon :type="item.icon" class="footer-icon" />
95
- <span>{{ item.label }}</span>
96
- </span>
97
- </a-col>
98
- <a-col
93
+ <div :key="'footer_' + footerIndex" class="footer-item" @click="clickFooter(card, item.emit, itemIndex)">
94
+ <a-icon :type="item.icon" class="footer-icon" />
95
+ <span>{{ item.label }}</span>
96
+ </div>
97
+ <a-divider
99
98
  v-if="footerIndex !== config.footer.length - 1"
100
- :span="1"
101
99
  :key="'footer_' + footerIndex + 'after'"
102
- class="footer-item-split">
103
- |
104
- </a-col>
100
+ type="vertical"
101
+ class="footer-item-split" />
105
102
  </template>
106
- </a-row>
103
+ </div>
107
104
  </template>
108
105
  </a-card>
109
106
  </template>
@@ -428,16 +425,25 @@ export default {
428
425
  overflow-x: hidden;
429
426
  max-height: 85vh;
430
427
  .data-card {
431
- width: 100%;
432
- max-width: 300px;
428
+ flex: 0 0 20%;
429
+ max-width: 20%;
430
+ box-sizing: border-box;
433
431
  border: 2px solid rgb(244,244,244);
434
432
  border-radius: 5px;
435
- margin: 2px;
433
+ margin: 0;
436
434
  overflow: hidden;
437
435
 
438
436
  ::v-deep .ant-card-body {
439
437
  padding: 15px !important; // 使用 !important 确保样式覆盖
440
438
  }
439
+ ::v-deep .ant-card-head {
440
+ padding: 0 8px !important; // 收紧左右内边距,贴近边框
441
+ }
442
+ ::v-deep .ant-card-head-title {
443
+ padding: 10px 0 !important; // 仅上下留白
444
+ margin: 0 !important;
445
+ }
446
+ ::v-deep .ant-card-head-wrapper { padding: 0 !important; }
441
447
 
442
448
  .header {
443
449
  width: 100%;
@@ -526,6 +532,7 @@ export default {
526
532
  display: flex;
527
533
  align-items: center;
528
534
  gap: 12px;
535
+ padding-left: 0; // 取消额外左缩进,进一步贴边
529
536
 
530
537
  &:hover {
531
538
  cursor: pointer;
@@ -568,6 +575,9 @@ export default {
568
575
  margin-left: 6px;
569
576
  color: #808080;
570
577
  }
578
+ .title-name {
579
+ font-weight: bold;
580
+ }
571
581
  .title-title3 {
572
582
  color: #808080;
573
583
  }
@@ -599,6 +609,10 @@ export default {
599
609
  }
600
610
 
601
611
  .custom-actions {
612
+ display: flex;
613
+ align-items: center;
614
+ justify-content: space-between;
615
+ width: 100%;
602
616
  .footer-icon {
603
617
  margin-right: 5px;
604
618
  }
@@ -610,12 +624,24 @@ export default {
610
624
  .footer-item {
611
625
  color: rgba(117, 117, 117, 0.8);
612
626
  font-size: 1em;
627
+ white-space: nowrap;
628
+ display: inline-flex;
629
+ align-items: center;
630
+ justify-content: center;
631
+ flex: 1 1 0;
632
+ min-width: 0;
613
633
  }
614
634
 
615
635
  .footer-item:hover {
616
636
  color: rgb( 24,144,255 );
617
637
  cursor: pointer;
618
638
  }
639
+ :deep(.ant-divider-vertical) {
640
+ height: 24px;
641
+ border-left: 1px solid rgba(220, 220, 220, 0.59);
642
+ top: 0;
643
+ margin: 0 8px;
644
+ }
619
645
  }
620
646
  }
621
647
 
@@ -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>