vue2-client 1.17.46 → 1.17.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.
- package/.env +20 -20
- package/package.json +1 -1
- 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 +491 -491
- package/src/base-client/components/common/HIS/HFormGroup/index.js +3 -3
- package/src/base-client/components/common/HIS/HTab/HTab.vue +443 -443
- package/src/base-client/components/common/XCollapse/XCollapse.vue +830 -830
- package/src/base-client/components/common/XForm/XFormItem.vue +1 -0
- package/src/base-client/components/common/XForm/XTreeSelect.vue +276 -276
- package/src/base-client/components/common/XFormTable/demo.vue +143 -113
- package/src/base-client/components/common/XTimeline/XTimeline.vue +477 -477
- package/src/base-client/components/his/XHisEditor/XHisEditor.vue +705 -705
- package/src/base-client/components/his/XList/XList.vue +938 -938
- package/src/base-client/components/his/XTimeSelect/XTimeSelect.vue +354 -354
- package/src/base-client/components/his/XTitle/XTitle.vue +314 -314
- package/src/base-client/components/his/XTreeRows/XTreeRows.vue +341 -341
- package/src/base-client/components/his/threeTestOrders/editor.vue +113 -113
- package/src/pages/WorkflowDetail/WorkFlowDemo4.vue +127 -0
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowBaseInformation.vue +417 -417
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowPreview.vue +1 -1
- package/src/pages/userInfoDetailManage/ExceptionRecordQuery/index.vue +45 -45
- package/src/router/async/router.map.js +134 -134
- package/src/services/api/restTools.js +215 -215
- package/src-base-client/components/common/HIS/HForm/HForm.vue +0 -347
- package/src-base-client/components/common/XCollapse/XCollapse.vue +0 -0
|
@@ -1,113 +1,143 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<a-card :bordered="false">
|
|
3
|
-
<x-form-table
|
|
4
|
-
title="示例表单"
|
|
5
|
-
|
|
6
|
-
:fixedAddForm="fixedAddForm"
|
|
7
|
-
:externalSelectedRowKeys="selectedKeys"
|
|
8
|
-
@action="action"
|
|
9
|
-
@selectRow="selectRow"
|
|
10
|
-
@columnClick="columnClick"
|
|
11
|
-
@ceshi="ceshi"
|
|
12
|
-
serviceName="af-
|
|
13
|
-
ref="xFormTable"
|
|
14
|
-
>
|
|
15
|
-
</x-form-table>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
//
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
},
|
|
92
|
-
|
|
93
|
-
this.
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
this.$refs.xFormTable.
|
|
100
|
-
},
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<a-card :bordered="false">
|
|
3
|
+
<x-form-table
|
|
4
|
+
title="示例表单"
|
|
5
|
+
queryParamsName="ceshiCRUD"
|
|
6
|
+
:fixedAddForm="fixedAddForm"
|
|
7
|
+
:externalSelectedRowKeys="selectedKeys"
|
|
8
|
+
@action="action"
|
|
9
|
+
@selectRow="selectRow"
|
|
10
|
+
@columnClick="columnClick"
|
|
11
|
+
@ceshi="ceshi"
|
|
12
|
+
serviceName="af-safecheck"
|
|
13
|
+
ref="xFormTable"
|
|
14
|
+
>
|
|
15
|
+
</x-form-table>
|
|
16
|
+
<a-modal
|
|
17
|
+
v-model="formModalVisible"
|
|
18
|
+
title="工单回访"
|
|
19
|
+
:zIndex="1002"
|
|
20
|
+
width="50vw"
|
|
21
|
+
:destroy-on-close="true"
|
|
22
|
+
@cancel="formModalVisible = false"
|
|
23
|
+
>
|
|
24
|
+
<x-add-native-form
|
|
25
|
+
ref="xForm"
|
|
26
|
+
/>
|
|
27
|
+
</a-modal>
|
|
28
|
+
</a-card>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<script>
|
|
32
|
+
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable.vue'
|
|
33
|
+
import XAddNativeForm from '@vue2-client/base-client/components/common/XAddNativeForm/XAddNativeForm.vue'
|
|
34
|
+
import { microDispatch } from '@vue2-client/utils/microAppUtils'
|
|
35
|
+
import { getConfigByNameAsync } from '@vue2-client/services/api/common'
|
|
36
|
+
|
|
37
|
+
export default {
|
|
38
|
+
name: 'Demo',
|
|
39
|
+
components: {
|
|
40
|
+
XFormTable,
|
|
41
|
+
XAddNativeForm,
|
|
42
|
+
},
|
|
43
|
+
data () {
|
|
44
|
+
return {
|
|
45
|
+
// 查询配置文件名
|
|
46
|
+
queryParamsName: 'ceshiCRUD',
|
|
47
|
+
// 查询配置左侧tree
|
|
48
|
+
xTreeConfigName: 'addressType',
|
|
49
|
+
// 新增表单固定值
|
|
50
|
+
fixedAddForm: {},
|
|
51
|
+
// 是否显示详情抽屉
|
|
52
|
+
detailVisible: false,
|
|
53
|
+
// 当前记录
|
|
54
|
+
record: {},
|
|
55
|
+
// 选中的行keys
|
|
56
|
+
selectedKeys: [],
|
|
57
|
+
selected: {
|
|
58
|
+
keys: [],
|
|
59
|
+
rows: [],
|
|
60
|
+
},
|
|
61
|
+
formModalVisible: false,
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
methods: {
|
|
65
|
+
// input框 行編輯參數傳遞
|
|
66
|
+
ceshi (...args) {
|
|
67
|
+
// attr, value, currentRecord, currentIndex, nextRecord, nextIndex
|
|
68
|
+
const [attr, value, currentRecord, currentIndex, nextRecord, nextIndex] =
|
|
69
|
+
args
|
|
70
|
+
console.log(
|
|
71
|
+
'ceshi',
|
|
72
|
+
attr,
|
|
73
|
+
value,
|
|
74
|
+
currentRecord,
|
|
75
|
+
currentIndex,
|
|
76
|
+
nextRecord,
|
|
77
|
+
nextIndex
|
|
78
|
+
)
|
|
79
|
+
// 示例:当按下 Enter 键且有下一行时,跳转到下一行的同一列
|
|
80
|
+
// 可以在这里执行业务逻辑(例如:保存数据)
|
|
81
|
+
console.log('当前行:', currentIndex, '下一行:', nextIndex)
|
|
82
|
+
if (!nextIndex) {
|
|
83
|
+
this.$message.warning('没有下一行')
|
|
84
|
+
return
|
|
85
|
+
}
|
|
86
|
+
// 跳转到下一行的同一列
|
|
87
|
+
this.$refs.xFormTable.$refs.xTable.focusInput(nextIndex, attr.model)
|
|
88
|
+
},
|
|
89
|
+
test () {
|
|
90
|
+
this.$refs.xFormTable.setTableData([])
|
|
91
|
+
},
|
|
92
|
+
defaultF () {
|
|
93
|
+
this.$refs.xFormTable.setTableSize('default')
|
|
94
|
+
},
|
|
95
|
+
middleF () {
|
|
96
|
+
this.$refs.xFormTable.setTableSize('middle')
|
|
97
|
+
},
|
|
98
|
+
smallF () {
|
|
99
|
+
this.$refs.xFormTable.setTableSize('small')
|
|
100
|
+
},
|
|
101
|
+
columnClick (key, value, record) {
|
|
102
|
+
microDispatch({
|
|
103
|
+
type: 'v3route',
|
|
104
|
+
path: '/bingliguanli/dianzibingliluru',
|
|
105
|
+
props: { selected: arguments[0].his_f_admission_id },
|
|
106
|
+
})
|
|
107
|
+
},
|
|
108
|
+
action (record, id, actionType) {
|
|
109
|
+
getConfigByNameAsync('backVisitForm', 'af-telephone').then(config => {
|
|
110
|
+
this.formModalVisible = true
|
|
111
|
+
this.$nextTick(
|
|
112
|
+
() => {
|
|
113
|
+
this.formModalVisible = true
|
|
114
|
+
this.$refs.xForm.init({
|
|
115
|
+
formItems: config.formJson,
|
|
116
|
+
title: '工单回访',
|
|
117
|
+
businessType: '新增',
|
|
118
|
+
...config,
|
|
119
|
+
modifyModelData: { data: { id: 1 } },
|
|
120
|
+
})
|
|
121
|
+
})
|
|
122
|
+
})
|
|
123
|
+
// this.detailVisible = true
|
|
124
|
+
// console.log('触发了详情操作', record, id, actionType)
|
|
125
|
+
},
|
|
126
|
+
onClose () {
|
|
127
|
+
this.detailVisible = false
|
|
128
|
+
// 关闭详情之后重新查询表单
|
|
129
|
+
this.$refs.xFormTable.refreshTable(true)
|
|
130
|
+
},
|
|
131
|
+
selectRow (selectedRowKeys, selectedRows) {
|
|
132
|
+
this.selected = {
|
|
133
|
+
keys: selectedRowKeys,
|
|
134
|
+
rows: selectedRows,
|
|
135
|
+
}
|
|
136
|
+
console.log('selectedDemo', this.selected)
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
computed: {},
|
|
140
|
+
}
|
|
141
|
+
</script>
|
|
142
|
+
|
|
143
|
+
<style scoped></style>
|