vue2-client 1.17.37 → 1.17.38
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/base-client/components/common/AmapMarker/index.js +3 -3
- package/src/base-client/components/common/XDetailsView/index.js +3 -3
- package/src/base-client/components/common/XForm/XTreeSelect.vue +276 -276
- package/src/base-client/components/common/XFormGroupDetails/index.js +3 -3
- package/src/base-client/components/common/XFormTable/demo.vue +89 -89
- package/src/base-client/components/common/XTab/XTab.vue +7 -8
- package/src/pages/WorkflowDetail/WorkFlowDemo.vue +1 -1
- package/src/pages/WorkflowDetail/WorkFlowDemo4.vue +127 -0
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowBaseInformation.vue +417 -417
- package/src/router/async/router.map.js +133 -133
- package/src/services/api/restTools.js +215 -215
- package/tests/unit/a.log +0 -0
|
@@ -1,89 +1,89 @@
|
|
|
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
|
-
serviceName="af-system"
|
|
12
|
-
ref="xFormTable">
|
|
13
|
-
</x-form-table>
|
|
14
|
-
</a-card>
|
|
15
|
-
</template>
|
|
16
|
-
|
|
17
|
-
<script>
|
|
18
|
-
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable.vue'
|
|
19
|
-
import { microDispatch } from '@vue2-client/utils/microAppUtils'
|
|
20
|
-
|
|
21
|
-
export default {
|
|
22
|
-
name: 'Demo',
|
|
23
|
-
components: {
|
|
24
|
-
XFormTable
|
|
25
|
-
},
|
|
26
|
-
data () {
|
|
27
|
-
return {
|
|
28
|
-
// 查询配置文件名
|
|
29
|
-
queryParamsName: 'ceshiCRUD',
|
|
30
|
-
// 查询配置左侧tree
|
|
31
|
-
xTreeConfigName: 'addressType',
|
|
32
|
-
// 新增表单固定值
|
|
33
|
-
fixedAddForm: {},
|
|
34
|
-
// 是否显示详情抽屉
|
|
35
|
-
detailVisible: false,
|
|
36
|
-
// 当前记录
|
|
37
|
-
record: {},
|
|
38
|
-
// 选中的行keys
|
|
39
|
-
selectedKeys: [],
|
|
40
|
-
selected: {
|
|
41
|
-
keys: [],
|
|
42
|
-
rows: []
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
methods: {
|
|
47
|
-
test () {
|
|
48
|
-
this.$refs.xFormTable.setTableData([])
|
|
49
|
-
},
|
|
50
|
-
defaultF () {
|
|
51
|
-
this.$refs.xFormTable.setTableSize('default')
|
|
52
|
-
},
|
|
53
|
-
middleF () {
|
|
54
|
-
this.$refs.xFormTable.setTableSize('middle')
|
|
55
|
-
},
|
|
56
|
-
smallF () {
|
|
57
|
-
this.$refs.xFormTable.setTableSize('small')
|
|
58
|
-
},
|
|
59
|
-
columnClick (key, value, record) {
|
|
60
|
-
microDispatch({
|
|
61
|
-
type: 'v3route',
|
|
62
|
-
path: '/bingliguanli/dianzibingliluru',
|
|
63
|
-
props: { selected: arguments[0].his_f_admission_id }
|
|
64
|
-
})
|
|
65
|
-
},
|
|
66
|
-
action (record, id, actionType) {
|
|
67
|
-
this.detailVisible = true
|
|
68
|
-
console.log('触发了详情操作', record, id, actionType)
|
|
69
|
-
},
|
|
70
|
-
onClose () {
|
|
71
|
-
this.detailVisible = false
|
|
72
|
-
// 关闭详情之后重新查询表单
|
|
73
|
-
this.$refs.xFormTable.refreshTable(true)
|
|
74
|
-
},
|
|
75
|
-
selectRow (selectedRowKeys, selectedRows) {
|
|
76
|
-
this.selected = {
|
|
77
|
-
keys: selectedRowKeys,
|
|
78
|
-
rows: selectedRows
|
|
79
|
-
}
|
|
80
|
-
console.log('selectedDemo', this.selected)
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
computed: {},
|
|
84
|
-
}
|
|
85
|
-
</script>
|
|
86
|
-
|
|
87
|
-
<style scoped>
|
|
88
|
-
|
|
89
|
-
</style>
|
|
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
|
+
serviceName="af-system"
|
|
12
|
+
ref="xFormTable">
|
|
13
|
+
</x-form-table>
|
|
14
|
+
</a-card>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script>
|
|
18
|
+
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable.vue'
|
|
19
|
+
import { microDispatch } from '@vue2-client/utils/microAppUtils'
|
|
20
|
+
|
|
21
|
+
export default {
|
|
22
|
+
name: 'Demo',
|
|
23
|
+
components: {
|
|
24
|
+
XFormTable
|
|
25
|
+
},
|
|
26
|
+
data () {
|
|
27
|
+
return {
|
|
28
|
+
// 查询配置文件名
|
|
29
|
+
queryParamsName: 'ceshiCRUD',
|
|
30
|
+
// 查询配置左侧tree
|
|
31
|
+
xTreeConfigName: 'addressType',
|
|
32
|
+
// 新增表单固定值
|
|
33
|
+
fixedAddForm: {},
|
|
34
|
+
// 是否显示详情抽屉
|
|
35
|
+
detailVisible: false,
|
|
36
|
+
// 当前记录
|
|
37
|
+
record: {},
|
|
38
|
+
// 选中的行keys
|
|
39
|
+
selectedKeys: [],
|
|
40
|
+
selected: {
|
|
41
|
+
keys: [],
|
|
42
|
+
rows: []
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
methods: {
|
|
47
|
+
test () {
|
|
48
|
+
this.$refs.xFormTable.setTableData([])
|
|
49
|
+
},
|
|
50
|
+
defaultF () {
|
|
51
|
+
this.$refs.xFormTable.setTableSize('default')
|
|
52
|
+
},
|
|
53
|
+
middleF () {
|
|
54
|
+
this.$refs.xFormTable.setTableSize('middle')
|
|
55
|
+
},
|
|
56
|
+
smallF () {
|
|
57
|
+
this.$refs.xFormTable.setTableSize('small')
|
|
58
|
+
},
|
|
59
|
+
columnClick (key, value, record) {
|
|
60
|
+
microDispatch({
|
|
61
|
+
type: 'v3route',
|
|
62
|
+
path: '/bingliguanli/dianzibingliluru',
|
|
63
|
+
props: { selected: arguments[0].his_f_admission_id }
|
|
64
|
+
})
|
|
65
|
+
},
|
|
66
|
+
action (record, id, actionType) {
|
|
67
|
+
this.detailVisible = true
|
|
68
|
+
console.log('触发了详情操作', record, id, actionType)
|
|
69
|
+
},
|
|
70
|
+
onClose () {
|
|
71
|
+
this.detailVisible = false
|
|
72
|
+
// 关闭详情之后重新查询表单
|
|
73
|
+
this.$refs.xFormTable.refreshTable(true)
|
|
74
|
+
},
|
|
75
|
+
selectRow (selectedRowKeys, selectedRows) {
|
|
76
|
+
this.selected = {
|
|
77
|
+
keys: selectedRowKeys,
|
|
78
|
+
rows: selectedRows
|
|
79
|
+
}
|
|
80
|
+
console.log('selectedDemo', this.selected)
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
computed: {},
|
|
84
|
+
}
|
|
85
|
+
</script>
|
|
86
|
+
|
|
87
|
+
<style scoped>
|
|
88
|
+
|
|
89
|
+
</style>
|
|
@@ -72,7 +72,7 @@ export default {
|
|
|
72
72
|
},
|
|
73
73
|
data () {
|
|
74
74
|
return {
|
|
75
|
-
activeKey:
|
|
75
|
+
activeKey: -1,
|
|
76
76
|
// 配置
|
|
77
77
|
config: undefined,
|
|
78
78
|
tabBarExtraContent: undefined,
|
|
@@ -85,10 +85,10 @@ export default {
|
|
|
85
85
|
...mapState('account', { currUser: 'user' })
|
|
86
86
|
},
|
|
87
87
|
mounted () {
|
|
88
|
-
this.activeKey = this.defaultActiveKey
|
|
88
|
+
// this.activeKey = this.defaultActiveKey
|
|
89
89
|
// 标记默认激活的页签为已加载
|
|
90
|
-
this.markTabAsLoaded(this.defaultActiveKey)
|
|
91
|
-
this.tabPaneChange(
|
|
90
|
+
// this.markTabAsLoaded(this.defaultActiveKey)
|
|
91
|
+
this.tabPaneChange(this.defaultActiveKey, true)
|
|
92
92
|
},
|
|
93
93
|
methods: {
|
|
94
94
|
// 自定义函数中调用的方法 这个不能删
|
|
@@ -113,7 +113,7 @@ export default {
|
|
|
113
113
|
this.markTabAsLoaded(newKey)
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
if (this.config && this.config.changeFunc) {
|
|
116
|
+
if (this.config && this.config.changeFunc && this.config.data[newKey] !== undefined) {
|
|
117
117
|
let oldRef
|
|
118
118
|
let oldTabName
|
|
119
119
|
let newRef
|
|
@@ -148,7 +148,6 @@ export default {
|
|
|
148
148
|
|
|
149
149
|
// 关键修改:确保新组件实例存在
|
|
150
150
|
if (!newRef || !newRef[0]) {
|
|
151
|
-
console.log('等待新页签组件初始化...')
|
|
152
151
|
// 等待组件挂载完成
|
|
153
152
|
await this.waitForComponentReady(newKey)
|
|
154
153
|
newRef = this.$refs[newTabName]
|
|
@@ -158,7 +157,7 @@ export default {
|
|
|
158
157
|
args.push(newRef[0])
|
|
159
158
|
} else {
|
|
160
159
|
args.push(null)
|
|
161
|
-
console.
|
|
160
|
+
console.error('新页签组件实例获取失败')
|
|
162
161
|
}
|
|
163
162
|
|
|
164
163
|
args.push(this.extraData)
|
|
@@ -203,7 +202,7 @@ export default {
|
|
|
203
202
|
}
|
|
204
203
|
},
|
|
205
204
|
|
|
206
|
-
// 新增:等待组件就绪的方法
|
|
205
|
+
// 新增:等待组件就绪的方法
|
|
207
206
|
waitForComponentReady (index) {
|
|
208
207
|
return new Promise((resolve) => {
|
|
209
208
|
const checkComponent = () => {
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<a-card :bordered="false">
|
|
3
|
+
<a-tabs default-active-key="1" @change="changeTab">
|
|
4
|
+
<a-tab-pane key="1" tab="待办">
|
|
5
|
+
<x-form-table
|
|
6
|
+
title="站点工单(待办)"
|
|
7
|
+
ref="xFormTable"
|
|
8
|
+
queryParamsName="teleProcessCRUD"
|
|
9
|
+
:fixed-query-form="{
|
|
10
|
+
wo_f_department_id: currUser.depids,
|
|
11
|
+
}"
|
|
12
|
+
serviceName="af-telephone"
|
|
13
|
+
@toDeal="toDetail"
|
|
14
|
+
@updateInfo="updateInfo"
|
|
15
|
+
@transfer="transfer"
|
|
16
|
+
@toFinish="toFinish"
|
|
17
|
+
>
|
|
18
|
+
</x-form-table>
|
|
19
|
+
</a-tab-pane>
|
|
20
|
+
<a-tab-pane key="2" tab="已办">
|
|
21
|
+
<x-form-table
|
|
22
|
+
title="站点工单(已办)"
|
|
23
|
+
ref="xFormTableDone"
|
|
24
|
+
queryParamsName="teleProcessDoneCRUD"
|
|
25
|
+
:fixed-query-form="{
|
|
26
|
+
wo_f_department_id: currUser.depids,
|
|
27
|
+
}"
|
|
28
|
+
serviceName="af-telephone"
|
|
29
|
+
@action="toView"
|
|
30
|
+
@reminder="toReminder"
|
|
31
|
+
>
|
|
32
|
+
</x-form-table>
|
|
33
|
+
</a-tab-pane>
|
|
34
|
+
</a-tabs>
|
|
35
|
+
<WorkflowDetail
|
|
36
|
+
ref="workFlow"
|
|
37
|
+
@preClick="preClick"
|
|
38
|
+
@success="success"
|
|
39
|
+
@nextClick="nextClick"
|
|
40
|
+
@x-form-item-emit-func="handleFormItemEvent"
|
|
41
|
+
>
|
|
42
|
+
</WorkflowDetail>
|
|
43
|
+
</a-card>
|
|
44
|
+
</template>
|
|
45
|
+
|
|
46
|
+
<script>
|
|
47
|
+
import WorkflowDetail from '@vue2-client/pages/WorkflowDetail/WorkflowDetail.vue'
|
|
48
|
+
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
49
|
+
import { mapState } from 'vuex'
|
|
50
|
+
import XAddNativeForm from '@vue2-client/base-client/components/common/XAddNativeForm/XAddNativeForm.vue'
|
|
51
|
+
|
|
52
|
+
export default {
|
|
53
|
+
name: 'Telephone',
|
|
54
|
+
components: {
|
|
55
|
+
XFormTable,
|
|
56
|
+
WorkflowDetail,
|
|
57
|
+
XAddNativeForm
|
|
58
|
+
},
|
|
59
|
+
// 透传给子组件的方法(目前XFormTable接了)
|
|
60
|
+
provide () {
|
|
61
|
+
return {
|
|
62
|
+
generalFunction: {}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
data () {
|
|
66
|
+
return {
|
|
67
|
+
// 当前工单id
|
|
68
|
+
currentWorkOrderId: '',
|
|
69
|
+
// 提交加载动画
|
|
70
|
+
confirmLoading: false,
|
|
71
|
+
chargeVisible: false,
|
|
72
|
+
// 环节人员信息
|
|
73
|
+
chargePerson: {},
|
|
74
|
+
chargePersonOptions: [],
|
|
75
|
+
transferData: {
|
|
76
|
+
optionsValue: '',
|
|
77
|
+
remark: ''
|
|
78
|
+
},
|
|
79
|
+
record: {},
|
|
80
|
+
define: {},
|
|
81
|
+
// 是否展示催单结案弹窗
|
|
82
|
+
showReminder: false,
|
|
83
|
+
// 弹窗类型 催单/ 结案
|
|
84
|
+
modelType: ''
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
computed: {
|
|
88
|
+
...mapState('account', { currUser: 'user' }),
|
|
89
|
+
},
|
|
90
|
+
methods: {
|
|
91
|
+
changeTab (key) {
|
|
92
|
+
console.log('切换tab', key)
|
|
93
|
+
if (key === '1') {
|
|
94
|
+
this.$refs.xFormTable.refreshTable(true)
|
|
95
|
+
} else if (key === '2') {
|
|
96
|
+
this.$refs.xFormTableDone.refreshTable(true)
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
success () {
|
|
100
|
+
console.log('完工')
|
|
101
|
+
},
|
|
102
|
+
toDetail (record) {
|
|
103
|
+
// 修改第一步的工单
|
|
104
|
+
if (record.ws_f_step_id === 1 && record.w_f_state === 0) {
|
|
105
|
+
console.log('进入工单详情')
|
|
106
|
+
if (record.w_f_workflow_define_name === '报修单处理流程') {
|
|
107
|
+
this.$refs.dealOrUpdate.dealOrUpdate(record, '处理工单')
|
|
108
|
+
} else if (record.w_f_workflow_define_name === '投诉单处理流程') {
|
|
109
|
+
this.$refs.dealComplaint.dealComplaintOrder(record)
|
|
110
|
+
} else if (record.w_f_workflow_define_name === '咨询单处理流程') {
|
|
111
|
+
this.$refs.dealConsultation.dealConsultationOrder(record)
|
|
112
|
+
} else {
|
|
113
|
+
this.$message.warn('未知流程类型')
|
|
114
|
+
}
|
|
115
|
+
} else {
|
|
116
|
+
// 记录流程节点名称
|
|
117
|
+
this.currentWorkOrderId = record.wo_id
|
|
118
|
+
// 进入流程详情
|
|
119
|
+
this.$refs.workFlow.init({
|
|
120
|
+
workflowId: record.wo_f_workflow_id,
|
|
121
|
+
stepId: record.ws_f_step_id
|
|
122
|
+
})
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
</script>
|