vue2-client 1.16.59 → 1.16.61
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/svg/female.svg +1 -1
- package/src/assets/svg/male.svg +1 -1
- package/src/base-client/components/common/HIS/HButtons/HButtons.vue +6 -17
- package/src/base-client/components/common/HIS/HFormGroup/HFormGroup.vue +22 -4
- 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 +9 -15
- package/src/base-client/components/common/HIS/demo.vue +61 -61
- package/src/base-client/components/common/XCollapse/XCollapse.vue +708 -461
- package/src/base-client/components/common/XFormGroup/XFormGroup.vue +11 -2
- package/src/base-client/components/common/XFormTable/demo.vue +46 -4
- package/src/base-client/components/common/XInput/XInput.vue +147 -147
- package/src/base-client/components/common/XReport/print.js +186 -186
- 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/XHDescriptions/XHDescriptions.vue +95 -1
- 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/XSidebar/XSidebar.vue +22 -31
- 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 +129 -129
- package/src/utils/map-utils.js +47 -47
- package/src-base-client/components/common/XCollapse/XCollapse.vue +0 -0
- package/vue.config.js +0 -10
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
<div class="group-item" :ref="`group-${index}`" :key="index" v-for="(item, index) in groups">
|
|
19
19
|
<a-row :style="{ marginTop: index === 0 ? '' : '8px' }" v-if="formShow[`show${item.groupName}`] || formShow[`show${item.slotName}`]">
|
|
20
20
|
<a-col :span="5">
|
|
21
|
-
<
|
|
21
|
+
<x-title v-if="showDot === true || showDot === 'true'" :title="item.describe" :dot="true" />
|
|
22
|
+
<span v-else class="xFormGroupTitle">{{ item.describe }}</span>
|
|
22
23
|
</a-col>
|
|
23
24
|
</a-row>
|
|
24
25
|
<div v-show="formShow[`show${item.slotName}`]">
|
|
@@ -41,11 +42,19 @@
|
|
|
41
42
|
|
|
42
43
|
<script>
|
|
43
44
|
import XAddNativeForm from '@vue2-client/base-client/components/common/XAddNativeForm/XAddNativeForm.vue'
|
|
45
|
+
import XTitle from '@vue2-client/base-client/components/his/XTitle/XTitle.vue'
|
|
44
46
|
|
|
45
47
|
export default {
|
|
46
48
|
name: 'XFormGroup',
|
|
47
49
|
components: {
|
|
48
|
-
XAddNativeForm
|
|
50
|
+
XAddNativeForm,
|
|
51
|
+
XTitle
|
|
52
|
+
},
|
|
53
|
+
props: {
|
|
54
|
+
showDot: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: false
|
|
57
|
+
}
|
|
49
58
|
},
|
|
50
59
|
data () {
|
|
51
60
|
return {
|
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
<a-card :bordered="false">
|
|
3
3
|
<x-form-table
|
|
4
4
|
title="示例表单"
|
|
5
|
-
queryParamsName="
|
|
6
|
-
|
|
5
|
+
:queryParamsName="queryParamsName"
|
|
6
|
+
:fixedAddForm="fixedAddForm"
|
|
7
|
+
:x-tree-config-name="xTreeConfigName"
|
|
8
|
+
:externalSelectedRowKeys="selectedKeys"
|
|
9
|
+
@action="action"
|
|
10
|
+
@selectRow="selectRow"
|
|
11
|
+
@columnClick="columnClick"
|
|
12
|
+
serviceName="af-revenue"
|
|
7
13
|
ref="xFormTable">
|
|
8
14
|
</x-form-table>
|
|
9
15
|
</a-card>
|
|
@@ -11,6 +17,7 @@
|
|
|
11
17
|
|
|
12
18
|
<script>
|
|
13
19
|
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable.vue'
|
|
20
|
+
import { microDispatch } from '@vue2-client/utils/microAppUtils'
|
|
14
21
|
|
|
15
22
|
export default {
|
|
16
23
|
name: 'Demo',
|
|
@@ -20,9 +27,9 @@ export default {
|
|
|
20
27
|
data () {
|
|
21
28
|
return {
|
|
22
29
|
// 查询配置文件名
|
|
23
|
-
queryParamsName: '
|
|
30
|
+
queryParamsName: 'address_management',
|
|
24
31
|
// 查询配置左侧tree
|
|
25
|
-
xTreeConfigName: '',
|
|
32
|
+
xTreeConfigName: 'addressType',
|
|
26
33
|
// 新增表单固定值
|
|
27
34
|
fixedAddForm: {},
|
|
28
35
|
// 是否显示详情抽屉
|
|
@@ -38,6 +45,41 @@ export default {
|
|
|
38
45
|
}
|
|
39
46
|
},
|
|
40
47
|
methods: {
|
|
48
|
+
test () {
|
|
49
|
+
this.$refs.xFormTable.setTableData([])
|
|
50
|
+
},
|
|
51
|
+
defaultF () {
|
|
52
|
+
this.$refs.xFormTable.setTableSize('default')
|
|
53
|
+
},
|
|
54
|
+
middleF () {
|
|
55
|
+
this.$refs.xFormTable.setTableSize('middle')
|
|
56
|
+
},
|
|
57
|
+
smallF () {
|
|
58
|
+
this.$refs.xFormTable.setTableSize('small')
|
|
59
|
+
},
|
|
60
|
+
columnClick (key, value, record) {
|
|
61
|
+
microDispatch({
|
|
62
|
+
type: 'v3route',
|
|
63
|
+
path: '/bingliguanli/dianzibingliluru',
|
|
64
|
+
props: { selected: arguments[0].his_f_admission_id }
|
|
65
|
+
})
|
|
66
|
+
},
|
|
67
|
+
action (record, id, actionType) {
|
|
68
|
+
this.detailVisible = true
|
|
69
|
+
console.log('触发了详情操作', record, id, actionType)
|
|
70
|
+
},
|
|
71
|
+
onClose () {
|
|
72
|
+
this.detailVisible = false
|
|
73
|
+
// 关闭详情之后重新查询表单
|
|
74
|
+
this.$refs.xFormTable.refreshTable(true)
|
|
75
|
+
},
|
|
76
|
+
selectRow (selectedRowKeys, selectedRows) {
|
|
77
|
+
this.selected = {
|
|
78
|
+
keys: selectedRowKeys,
|
|
79
|
+
rows: selectedRows
|
|
80
|
+
}
|
|
81
|
+
console.log('selectedDemo', this.selected)
|
|
82
|
+
},
|
|
41
83
|
},
|
|
42
84
|
computed: {},
|
|
43
85
|
}
|
|
@@ -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>
|