apply-clients 3.4.19 → 3.4.21
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/build/dev-server.js +2 -2
- package/package.json +1 -1
- package/src/components/android/Process/AppExplorationUser.vue +4 -0
- package/src/components/product/Process/ExplorationUser.vue +189 -189
- package/src/components/product/Process/Service/ServiceControl.vue +111 -110
- package/src/components/product/Supervisory/SupervisoryControl.vue +137 -137
- package/src/filiale/gehua/pc/ServiceControl.vue +113 -103
- package/src/filiale/gehua/pc/SupervisoryControl.vue +137 -0
- package/src/filiale/gehua/pc/SupervisoryServiceControl.vue +890 -0
- package/src/filiale/gehua/pc.js +3 -1
- package/src/filiale/guangxi/pc/Process/ExplorationSelect.vue +4 -0
- package/src/main.js +1 -1
|
@@ -1,137 +1,137 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="flex-row">
|
|
3
|
-
<div class="basic-main">
|
|
4
|
-
<div :class="showData ? 'top' : 'auto'">
|
|
5
|
-
<supervisory-list v-ref:query :show-data="showData"></supervisory-list>
|
|
6
|
-
</div>
|
|
7
|
-
<div v-if="showtotal" style="height: 89%">
|
|
8
|
-
<div class="col-sm-2" style="margin-top: 20px">
|
|
9
|
-
<supervisory-chart :selectdata="selectdata"></supervisory-chart>
|
|
10
|
-
</div>
|
|
11
|
-
<div class="col-sm-10" style="margin-top: 20px">
|
|
12
|
-
<tabset v-ref:tabs :close="false">
|
|
13
|
-
<tab :header='selectdata.defname'>
|
|
14
|
-
<supervisory-service-control :selectdata="selectdata" :node-snapshot="true"></supervisory-service-control>
|
|
15
|
-
</tab>
|
|
16
|
-
<tab header='附件'>
|
|
17
|
-
<apply-upload :blodid="selectdata.f_process_id"
|
|
18
|
-
:isupload = "false"
|
|
19
|
-
:isdelete="false"
|
|
20
|
-
:isusetype="true"
|
|
21
|
-
:isremark = "true"
|
|
22
|
-
:takeimg="
|
|
23
|
-
:issearch="true"
|
|
24
|
-
:defname="selectdata.defname">
|
|
25
|
-
</apply-upload>
|
|
26
|
-
</tab>
|
|
27
|
-
</tabset>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
|
|
33
|
-
</template>
|
|
34
|
-
<script>
|
|
35
|
-
import Vue from 'vue'
|
|
36
|
-
import {HttpResetClass} from 'vue-client'
|
|
37
|
-
export default {
|
|
38
|
-
title: '流程监控',
|
|
39
|
-
data () {
|
|
40
|
-
return {
|
|
41
|
-
showtotal: false, // 控制详细信息显示
|
|
42
|
-
showData: true,
|
|
43
|
-
selectdata: {},
|
|
44
|
-
xmlname: '' // 配置文件名称
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
created () {
|
|
48
|
-
},
|
|
49
|
-
methods: {
|
|
50
|
-
// 获取页面配置json文件
|
|
51
|
-
async loadName () {
|
|
52
|
-
let data = {
|
|
53
|
-
workname: this.selectdata.processname
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
let res = await this.$resetpost(
|
|
57
|
-
'rs/logic/ApplyGetConfigs',
|
|
58
|
-
{data: data},
|
|
59
|
-
{resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
|
|
60
|
-
)
|
|
61
|
-
|
|
62
|
-
Vue.prototype.$workflow_vue = res.data
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
events: {
|
|
66
|
-
// 刷新控制层
|
|
67
|
-
async 'breakControl' (servicedata) {
|
|
68
|
-
|
|
69
|
-
if (servicedata.id) {
|
|
70
|
-
let data = {
|
|
71
|
-
condition: `u.id = ${servicedata.id}`,
|
|
72
|
-
data: {
|
|
73
|
-
orgid: this.$login.f.orgid
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
let res = await this.$resetpost(
|
|
77
|
-
'rs/sql/supervisory',
|
|
78
|
-
{data: data},
|
|
79
|
-
{resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
|
|
80
|
-
)
|
|
81
|
-
this.selectdata = Object.assign({}, this.selectdata, res.data[0])
|
|
82
|
-
} else {
|
|
83
|
-
this.selectdata = servicedata
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
this.showtotal = false
|
|
87
|
-
this.$nextTick(() => {
|
|
88
|
-
this.showtotal = true
|
|
89
|
-
})
|
|
90
|
-
|
|
91
|
-
},
|
|
92
|
-
'onMessage' (data) {
|
|
93
|
-
console.log('接收消息')
|
|
94
|
-
console.log(data)
|
|
95
|
-
if (data.type === 'apply-task') {
|
|
96
|
-
this.$refs.queryuser.$refs.cp.$refs.cri.search()
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
async 'apply' (val) {
|
|
100
|
-
this.selectdata = null
|
|
101
|
-
this.selectdata = val
|
|
102
|
-
this.showtotal = false
|
|
103
|
-
|
|
104
|
-
// 获取配置文件
|
|
105
|
-
await this.loadName()
|
|
106
|
-
|
|
107
|
-
this.$refs.query.$refs.cp.pager = false
|
|
108
|
-
this.showData = false
|
|
109
|
-
|
|
110
|
-
this.showtotal = true
|
|
111
|
-
},
|
|
112
|
-
'search' () {
|
|
113
|
-
// 关闭详细
|
|
114
|
-
this.showtotal = false
|
|
115
|
-
// 显示列表数据
|
|
116
|
-
this.showData = true
|
|
117
|
-
// 显示分页
|
|
118
|
-
this.$refs.query.$refs.cp.pager = true
|
|
119
|
-
// 调用查询
|
|
120
|
-
this.$refs.query.$refs.cp.$refs.cri.search()
|
|
121
|
-
},
|
|
122
|
-
'loadPage' () {
|
|
123
|
-
// 关闭详细
|
|
124
|
-
this.showtotal = false
|
|
125
|
-
// 显示列表数据
|
|
126
|
-
this.showData = true
|
|
127
|
-
// 显示分页
|
|
128
|
-
this.$refs.query.$refs.cp.pager = true
|
|
129
|
-
// 调用查询
|
|
130
|
-
this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
|
|
134
|
-
watch: {
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex-row">
|
|
3
|
+
<div class="basic-main">
|
|
4
|
+
<div :class="showData ? 'top' : 'auto'">
|
|
5
|
+
<supervisory-list v-ref:query :show-data="showData"></supervisory-list>
|
|
6
|
+
</div>
|
|
7
|
+
<div v-if="showtotal" style="height: 89%">
|
|
8
|
+
<div class="col-sm-2" style="margin-top: 20px">
|
|
9
|
+
<supervisory-chart :selectdata="selectdata"></supervisory-chart>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="col-sm-10" style="margin-top: 20px">
|
|
12
|
+
<tabset v-ref:tabs :close="false">
|
|
13
|
+
<tab :header='selectdata.defname'>
|
|
14
|
+
<supervisory-service-control :selectdata="selectdata" :node-snapshot="true"></supervisory-service-control>
|
|
15
|
+
</tab>
|
|
16
|
+
<tab header='附件'>
|
|
17
|
+
<apply-upload :blodid="selectdata.f_process_id"
|
|
18
|
+
:isupload = "false"
|
|
19
|
+
:isdelete="false"
|
|
20
|
+
:isusetype="true"
|
|
21
|
+
:isremark = "true"
|
|
22
|
+
:takeimg="false"
|
|
23
|
+
:issearch="true"
|
|
24
|
+
:defname="selectdata.defname">
|
|
25
|
+
</apply-upload>
|
|
26
|
+
</tab>
|
|
27
|
+
</tabset>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
</template>
|
|
34
|
+
<script>
|
|
35
|
+
import Vue from 'vue'
|
|
36
|
+
import {HttpResetClass} from 'vue-client'
|
|
37
|
+
export default {
|
|
38
|
+
title: '流程监控',
|
|
39
|
+
data () {
|
|
40
|
+
return {
|
|
41
|
+
showtotal: false, // 控制详细信息显示
|
|
42
|
+
showData: true,
|
|
43
|
+
selectdata: {},
|
|
44
|
+
xmlname: '' // 配置文件名称
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
created () {
|
|
48
|
+
},
|
|
49
|
+
methods: {
|
|
50
|
+
// 获取页面配置json文件
|
|
51
|
+
async loadName () {
|
|
52
|
+
let data = {
|
|
53
|
+
workname: this.selectdata.processname
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
let res = await this.$resetpost(
|
|
57
|
+
'rs/logic/ApplyGetConfigs',
|
|
58
|
+
{data: data},
|
|
59
|
+
{resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
Vue.prototype.$workflow_vue = res.data
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
events: {
|
|
66
|
+
// 刷新控制层
|
|
67
|
+
async 'breakControl' (servicedata) {
|
|
68
|
+
|
|
69
|
+
if (servicedata.id) {
|
|
70
|
+
let data = {
|
|
71
|
+
condition: `u.id = ${servicedata.id}`,
|
|
72
|
+
data: {
|
|
73
|
+
orgid: this.$login.f.orgid
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
let res = await this.$resetpost(
|
|
77
|
+
'rs/sql/supervisory',
|
|
78
|
+
{data: data},
|
|
79
|
+
{resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
|
|
80
|
+
)
|
|
81
|
+
this.selectdata = Object.assign({}, this.selectdata, res.data[0])
|
|
82
|
+
} else {
|
|
83
|
+
this.selectdata = servicedata
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
this.showtotal = false
|
|
87
|
+
this.$nextTick(() => {
|
|
88
|
+
this.showtotal = true
|
|
89
|
+
})
|
|
90
|
+
|
|
91
|
+
},
|
|
92
|
+
'onMessage' (data) {
|
|
93
|
+
console.log('接收消息')
|
|
94
|
+
console.log(data)
|
|
95
|
+
if (data.type === 'apply-task') {
|
|
96
|
+
this.$refs.queryuser.$refs.cp.$refs.cri.search()
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
async 'apply' (val) {
|
|
100
|
+
this.selectdata = null
|
|
101
|
+
this.selectdata = val
|
|
102
|
+
this.showtotal = false
|
|
103
|
+
|
|
104
|
+
// 获取配置文件
|
|
105
|
+
await this.loadName()
|
|
106
|
+
|
|
107
|
+
this.$refs.query.$refs.cp.pager = false
|
|
108
|
+
this.showData = false
|
|
109
|
+
|
|
110
|
+
this.showtotal = true
|
|
111
|
+
},
|
|
112
|
+
'search' () {
|
|
113
|
+
// 关闭详细
|
|
114
|
+
this.showtotal = false
|
|
115
|
+
// 显示列表数据
|
|
116
|
+
this.showData = true
|
|
117
|
+
// 显示分页
|
|
118
|
+
this.$refs.query.$refs.cp.pager = true
|
|
119
|
+
// 调用查询
|
|
120
|
+
this.$refs.query.$refs.cp.$refs.cri.search()
|
|
121
|
+
},
|
|
122
|
+
'loadPage' () {
|
|
123
|
+
// 关闭详细
|
|
124
|
+
this.showtotal = false
|
|
125
|
+
// 显示列表数据
|
|
126
|
+
this.showData = true
|
|
127
|
+
// 显示分页
|
|
128
|
+
this.$refs.query.$refs.cp.pager = true
|
|
129
|
+
// 调用查询
|
|
130
|
+
this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
|
|
134
|
+
watch: {
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
</script>
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
this.refurbish()
|
|
44
44
|
this.servicer()
|
|
45
45
|
this.ceshi()
|
|
46
|
+
debugger
|
|
46
47
|
},
|
|
47
48
|
methods: {
|
|
48
49
|
async servicer(){
|
|
@@ -764,27 +765,27 @@
|
|
|
764
765
|
}
|
|
765
766
|
throw '用户信息确认!!!'
|
|
766
767
|
},
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
768
|
+
async getDesignerPeople () {
|
|
769
|
+
let data = {
|
|
770
|
+
source: 'this.getParentByType($organization$).getChildByName($设计员$).getChildren()',
|
|
771
|
+
userid: this.$login.f.id
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
let http = new HttpResetClass()
|
|
775
|
+
let res = await http.load(
|
|
776
|
+
'POST',
|
|
777
|
+
`rs/search`,
|
|
778
|
+
{data: data},
|
|
779
|
+
{resolveMsg: null, rejectMsg: '设计人员查询失败!!!'}
|
|
780
|
+
)
|
|
781
|
+
|
|
782
|
+
return res.data.map(item => {
|
|
783
|
+
return {
|
|
784
|
+
label: item.name,
|
|
785
|
+
value: item.id
|
|
786
|
+
}
|
|
787
|
+
})
|
|
788
|
+
},
|
|
788
789
|
async surveyStopApply () {
|
|
789
790
|
console.log('终止报建!!!!!')
|
|
790
791
|
|
|
@@ -1467,6 +1468,7 @@
|
|
|
1467
1468
|
},
|
|
1468
1469
|
// ===========================================
|
|
1469
1470
|
async 'button'() {
|
|
1471
|
+
debugger
|
|
1470
1472
|
if (this.show_data.button.before) {
|
|
1471
1473
|
await this[this.show_data.button.before]()
|
|
1472
1474
|
}
|
|
@@ -1637,23 +1639,24 @@
|
|
|
1637
1639
|
&& (this.show_data.defname === '报装申请') && this.show_data.button.button_name === '提交'){
|
|
1638
1640
|
await this.contract_number()
|
|
1639
1641
|
}
|
|
1640
|
-
if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && (this.show_data.button.button_name === '保存'||this.show_data.button.button_name === '提交')){
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
}
|
|
1642
|
+
// if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && (this.show_data.button.button_name === '保存'||this.show_data.button.button_name === '提交')){
|
|
1643
|
+
// let dataz = {
|
|
1644
|
+
// condition: `u.id = ${this.show_data.id}`,
|
|
1645
|
+
// data: {
|
|
1646
|
+
// id: this.$login.f.id,
|
|
1647
|
+
// orgid: this.$login.f.orgid
|
|
1648
|
+
// }
|
|
1649
|
+
// }
|
|
1650
|
+
// let http = new HttpResetClass()
|
|
1651
|
+
// let restpz = await http.load(
|
|
1652
|
+
// 'POST',
|
|
1653
|
+
// `rs/sql/checkuser`,
|
|
1654
|
+
// {data: dataz},
|
|
1655
|
+
// {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
1656
|
+
// )
|
|
1657
|
+
// this.show_data.actid=restpz.data[0].actid
|
|
1658
|
+
// }
|
|
1659
|
+
debugger
|
|
1657
1660
|
let res = await this.$resetpost(
|
|
1658
1661
|
`rs/logic/ApplyProductService`,
|
|
1659
1662
|
{data: this.show_data},
|
|
@@ -1708,75 +1711,82 @@
|
|
|
1708
1711
|
|
|
1709
1712
|
}
|
|
1710
1713
|
|
|
1711
|
-
|
|
1712
|
-
if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装申请' && this.show_data.button.button_name === '合同'){
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
} else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && this.show_data.button.button_name === '提交'){
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
}else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装缴费' && this.show_data.button.button_name === '提交'){
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
}
|
|
1773
|
-
else{
|
|
1774
|
-
|
|
1775
|
-
}
|
|
1714
|
+
//
|
|
1715
|
+
// if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装申请' && this.show_data.button.button_name === '合同'){
|
|
1716
|
+
// let data = {
|
|
1717
|
+
// tablename: 't_apply',
|
|
1718
|
+
// condition: `f_process_id='${this.show_data.f_process_id}'`
|
|
1719
|
+
// }
|
|
1720
|
+
// let http = new HttpResetClass()
|
|
1721
|
+
// let restp = await http.load(
|
|
1722
|
+
// 'POST',
|
|
1723
|
+
// `rs/sql/singleTable`,
|
|
1724
|
+
// {data: data},
|
|
1725
|
+
// {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
1726
|
+
// )
|
|
1727
|
+
// debugger
|
|
1728
|
+
// restp.data[0].processname = '散户报建流程'
|
|
1729
|
+
// restp.data[0].defname = '合同签订'
|
|
1730
|
+
// this.$dispatch('apply',restp.data[0])
|
|
1731
|
+
//
|
|
1732
|
+
// } else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && this.show_data.button.button_name === '提交'){
|
|
1733
|
+
// let data2 = {
|
|
1734
|
+
// condition: `u.id = ${this.show_data.id}`,
|
|
1735
|
+
// data: {
|
|
1736
|
+
// id: this.$login.f.id,
|
|
1737
|
+
// orgid: this.$login.f.orgid
|
|
1738
|
+
// }
|
|
1739
|
+
// }
|
|
1740
|
+
// let http = new HttpResetClass()
|
|
1741
|
+
// let restp1 = await http.load(
|
|
1742
|
+
// 'POST',
|
|
1743
|
+
// `rs/sql/checkuser`,
|
|
1744
|
+
// {data: data2},
|
|
1745
|
+
// {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
1746
|
+
// )
|
|
1747
|
+
// debugger
|
|
1748
|
+
// console.log('有没有发请求打印查询的内容restp1',restp1)
|
|
1749
|
+
// // restp1.data[0].processname = '散户报建流程'
|
|
1750
|
+
// // restp1.data[0].defname = '报装缴费'
|
|
1751
|
+
// this.$dispatch('apply',restp1.data[0])
|
|
1752
|
+
// }else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装缴费' && this.show_data.button.button_name === '提交'){
|
|
1753
|
+
// let data3 = {
|
|
1754
|
+
// condition: `u.id = ${this.show_data.id}`,
|
|
1755
|
+
// data: {
|
|
1756
|
+
// id: this.$login.f.id,
|
|
1757
|
+
// orgid: this.$login.f.orgid
|
|
1758
|
+
// }
|
|
1759
|
+
// }
|
|
1760
|
+
// let http = new HttpResetClass()
|
|
1761
|
+
// let restp2 = await http.load(
|
|
1762
|
+
// 'POST',
|
|
1763
|
+
// `rs/sql/checkuser`,
|
|
1764
|
+
// {data: data3},
|
|
1765
|
+
// {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
1766
|
+
// )
|
|
1767
|
+
// debugger
|
|
1768
|
+
// console.log('打印查询的内容',restp2)
|
|
1769
|
+
// if(restp2.length>0){
|
|
1770
|
+
// this.$dispatch('apply',restp2.data[0])
|
|
1771
|
+
// }else{
|
|
1772
|
+
// debugger
|
|
1773
|
+
// this.$dispatch('loadPage')
|
|
1774
|
+
// }
|
|
1775
|
+
// }
|
|
1776
|
+
// else{
|
|
1777
|
+
// this.$dispatch('loadPage')
|
|
1778
|
+
// }
|
|
1779
|
+
this.$dispatch('loadPage')
|
|
1776
1780
|
|
|
1777
1781
|
},
|
|
1778
1782
|
// 失去焦点出触发事件
|
|
1779
1783
|
'onchange' (index) {
|
|
1784
|
+
debugger
|
|
1785
|
+
if(this.show_data.defname==='移交' && this.show_data.f_is_have==='否'){
|
|
1786
|
+
this.show_data.buttons[1].hidden = true
|
|
1787
|
+
}else{
|
|
1788
|
+
this.show_data.buttons[1].hidden = false
|
|
1789
|
+
}
|
|
1780
1790
|
if (this.show_data.defname === '报装申请' || this.show_data.defname === '信息确认') {
|
|
1781
1791
|
if (
|
|
1782
1792
|
this.show_data.fields[index].label === '区/县' ||
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex-row">
|
|
3
|
+
<div class="basic-main">
|
|
4
|
+
<div :class="showData ? 'top' : 'auto'">
|
|
5
|
+
<supervisory-list v-ref:query :show-data="showData"></supervisory-list>
|
|
6
|
+
</div>
|
|
7
|
+
<div v-if="showtotal" style="height: 89%">
|
|
8
|
+
<div class="col-sm-2" style="margin-top: 20px">
|
|
9
|
+
<supervisory-chart :selectdata="selectdata"></supervisory-chart>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="col-sm-10" style="margin-top: 20px">
|
|
12
|
+
<tabset v-ref:tabs :close="false">
|
|
13
|
+
<tab :header='selectdata.defname'>
|
|
14
|
+
<supervisory-service-control :selectdata="selectdata" :node-snapshot="true"></supervisory-service-control>
|
|
15
|
+
</tab>
|
|
16
|
+
<tab header='附件'>
|
|
17
|
+
<apply-upload :blodid="selectdata.f_process_id"
|
|
18
|
+
:isupload = "true"
|
|
19
|
+
:isdelete="false"
|
|
20
|
+
:isusetype="true"
|
|
21
|
+
:isremark = "true"
|
|
22
|
+
:takeimg="false"
|
|
23
|
+
:issearch="true"
|
|
24
|
+
:defname="selectdata.defname">
|
|
25
|
+
</apply-upload>
|
|
26
|
+
</tab>
|
|
27
|
+
</tabset>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
</template>
|
|
34
|
+
<script>
|
|
35
|
+
import Vue from 'vue'
|
|
36
|
+
import {isEmpty} from "../../../components/Util";
|
|
37
|
+
export default {
|
|
38
|
+
title: '流程监控',
|
|
39
|
+
data () {
|
|
40
|
+
return {
|
|
41
|
+
showtotal: false, // 控制详细信息显示
|
|
42
|
+
showData: true,
|
|
43
|
+
selectdata: {},
|
|
44
|
+
xmlname: '' // 配置文件名称
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
created () {
|
|
48
|
+
},
|
|
49
|
+
methods: {
|
|
50
|
+
// 获取页面配置json文件
|
|
51
|
+
async loadName () {
|
|
52
|
+
let data = {
|
|
53
|
+
workname: this.selectdata.processname
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
let res = await this.$resetpost(
|
|
57
|
+
'rs/logic/ApplyGetConfigs',
|
|
58
|
+
{data: data},
|
|
59
|
+
{resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
Vue.prototype.$workflow_vue = res.data
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
events: {
|
|
66
|
+
// 刷新控制层
|
|
67
|
+
async 'breakControl' (servicedata) {
|
|
68
|
+
|
|
69
|
+
if (servicedata.id) {
|
|
70
|
+
let data = {
|
|
71
|
+
condition: `u.id = ${servicedata.id}`,
|
|
72
|
+
data: {
|
|
73
|
+
orgid: this.$login.f.orgid
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
let res = await this.$resetpost(
|
|
77
|
+
'rs/sql/supervisory',
|
|
78
|
+
{data: data},
|
|
79
|
+
{resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
|
|
80
|
+
)
|
|
81
|
+
this.selectdata = Object.assign({}, this.selectdata, res.data[0])
|
|
82
|
+
} else {
|
|
83
|
+
this.selectdata = servicedata
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
this.showtotal = false
|
|
87
|
+
this.$nextTick(() => {
|
|
88
|
+
this.showtotal = true
|
|
89
|
+
})
|
|
90
|
+
|
|
91
|
+
},
|
|
92
|
+
'onMessage' (data) {
|
|
93
|
+
console.log('接收消息')
|
|
94
|
+
console.log(data)
|
|
95
|
+
if (data.type === 'apply-task') {
|
|
96
|
+
this.$refs.queryuser.$refs.cp.$refs.cri.search()
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
async 'apply' (val) {
|
|
100
|
+
this.selectdata = null
|
|
101
|
+
this.selectdata = val
|
|
102
|
+
this.showtotal = false
|
|
103
|
+
|
|
104
|
+
// 获取配置文件
|
|
105
|
+
await this.loadName()
|
|
106
|
+
|
|
107
|
+
this.$refs.query.$refs.cp.pager = false
|
|
108
|
+
this.showData = false
|
|
109
|
+
|
|
110
|
+
this.showtotal = true
|
|
111
|
+
},
|
|
112
|
+
'search' () {
|
|
113
|
+
// 关闭详细
|
|
114
|
+
this.showtotal = false
|
|
115
|
+
// 显示列表数据
|
|
116
|
+
this.showData = true
|
|
117
|
+
// 显示分页
|
|
118
|
+
this.$refs.query.$refs.cp.pager = true
|
|
119
|
+
// 调用查询
|
|
120
|
+
this.$refs.query.$refs.cp.$refs.cri.search()
|
|
121
|
+
},
|
|
122
|
+
'loadPage' () {
|
|
123
|
+
// 关闭详细
|
|
124
|
+
this.showtotal = false
|
|
125
|
+
// 显示列表数据
|
|
126
|
+
this.showData = true
|
|
127
|
+
// 显示分页
|
|
128
|
+
this.$refs.query.$refs.cp.pager = true
|
|
129
|
+
// 调用查询
|
|
130
|
+
this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
|
|
134
|
+
watch: {
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
</script>
|