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