apply-clients 3.3.210 → 3.3.215
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 +1 -1
- package/src/apply.js +90 -90
- package/src/applyAndroid.js +18 -0
- package/src/components/android/AppSign.vue +142 -0
- package/src/components/android/AppTakePic.vue +144 -144
- package/src/components/android/Process/Processes/AppBuildSign.vue +47 -0
- package/src/components/android/Process/Processes/AppjiaASign.vue +47 -0
- package/src/components/android/Process/Processes/AppjiaSign.vue +47 -0
- package/src/components/android/Process/Processes/ApptechnologySign.vue +47 -0
- package/src/components/android/Supervisory/AppProcessSupervisory.vue +262 -262
- package/src/components/product/Function/Inform.vue +3 -4
- package/src/components/product/Function/InstallFunction.vue +122 -122
- package/src/components/product/Function/InstallInfoSelect.vue +29 -0
- package/src/components/product/Function/MarketSurvey.vue +11 -10
- package/src/components/product/Process/ExplorationUser.vue +128 -128
- package/src/components/product/Supervisory/Service/printChargeNode.vue +873 -873
- package/src/components/product/Supervisory/SupervisoryControl.vue +108 -108
- package/src/components/product/VueUtils/ApplyUpload.vue +264 -264
|
@@ -1,122 +1,122 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="flex-row">
|
|
3
|
-
<div class="basic-main">
|
|
4
|
-
<div :class="showData ? 'top' : 'auto'">
|
|
5
|
-
<installinfoselect :show-data="showData" v-ref:query></installinfoselect>
|
|
6
|
-
</div>
|
|
7
|
-
<div v-if="showtotal" class="panel panel-info" style="height: 90%;">
|
|
8
|
-
<tabset v-ref:tabs :close="false">
|
|
9
|
-
<tab :header='selectdata.title'>
|
|
10
|
-
<function-service-control v-ref:service :selectdata="selectdata"></function-service-control>
|
|
11
|
-
</tab>
|
|
12
|
-
<tab header='附件'>
|
|
13
|
-
<apply-upload :blodid="show_data.f_process_id"
|
|
14
|
-
:isupload = "true"
|
|
15
|
-
:isdelete="true"
|
|
16
|
-
:isusetype="true"
|
|
17
|
-
:isremark = "true"
|
|
18
|
-
:takeimg="false"
|
|
19
|
-
:issearch="true"
|
|
20
|
-
:defname="show_data.defname"
|
|
21
|
-
>
|
|
22
|
-
</apply-upload>
|
|
23
|
-
</tab>
|
|
24
|
-
</tabset>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
|
|
29
|
-
</template>
|
|
30
|
-
<script>
|
|
31
|
-
import Vue from 'vue'
|
|
32
|
-
import {HttpResetClass} from 'vue-client'
|
|
33
|
-
export default {
|
|
34
|
-
title: '报建业务',
|
|
35
|
-
data () {
|
|
36
|
-
return {
|
|
37
|
-
selectdata: null,
|
|
38
|
-
showtotal: false, // 控制详情显示
|
|
39
|
-
showData: true // 控制列表数据
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
created () {
|
|
43
|
-
this.getConfig()
|
|
44
|
-
},
|
|
45
|
-
methods: {
|
|
46
|
-
// 获取功能配置
|
|
47
|
-
async getConfig () {
|
|
48
|
-
let res = await this.$resetpost(
|
|
49
|
-
'rs/logic/ApplyGetFunction',
|
|
50
|
-
null,
|
|
51
|
-
{resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
|
|
52
|
-
)
|
|
53
|
-
Vue.prototype.$function_vue = res.data
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
events: {
|
|
57
|
-
// 刷新控制层
|
|
58
|
-
async 'breakControl' (servicedata) {
|
|
59
|
-
let http = new HttpResetClass()
|
|
60
|
-
let data = {
|
|
61
|
-
condition: `u.id = ${servicedata.id}`,
|
|
62
|
-
data: {
|
|
63
|
-
id: this.$login.f.id,
|
|
64
|
-
orgid: this.$login.f.orgid
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
let res = await http.load('POST', 'rs/sql/checkuserfunction', {data:data}, {
|
|
69
|
-
resolveMsg: null,
|
|
70
|
-
rejectMsg: '数据更新失败!!!'
|
|
71
|
-
})
|
|
72
|
-
|
|
73
|
-
this.showtotal = false
|
|
74
|
-
|
|
75
|
-
this.selectdata = Object.assign({}, this.selectdata, res.data[0])
|
|
76
|
-
|
|
77
|
-
this.$nextTick(() => {
|
|
78
|
-
this.showtotal = true
|
|
79
|
-
})
|
|
80
|
-
},
|
|
81
|
-
// 查询
|
|
82
|
-
'search' () {
|
|
83
|
-
// 关闭详细
|
|
84
|
-
this.showtotal = false
|
|
85
|
-
// 显示列表数据
|
|
86
|
-
this.showData = true
|
|
87
|
-
// 显示分页
|
|
88
|
-
this.$refs.query.$refs.cp.pager = true
|
|
89
|
-
// 调用查询
|
|
90
|
-
this.$refs.query.$refs.cp.$refs.cri.search()
|
|
91
|
-
},
|
|
92
|
-
// 点击功能操作
|
|
93
|
-
'func' (funcdata, row) {
|
|
94
|
-
this.selectdata = Object.assign({}, funcdata, row)
|
|
95
|
-
|
|
96
|
-
// 关闭分页
|
|
97
|
-
this.$refs.query.$refs.cp.pager = false
|
|
98
|
-
// 关闭列表数据
|
|
99
|
-
this.showData = false
|
|
100
|
-
|
|
101
|
-
this.$nextTick(() => {
|
|
102
|
-
this.showtotal = true
|
|
103
|
-
})
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
</script>
|
|
108
|
-
<style scoped>
|
|
109
|
-
/*清除浮动*/
|
|
110
|
-
.clearfix:after,.clearfix:before{
|
|
111
|
-
display: table;
|
|
112
|
-
}
|
|
113
|
-
.clearfix:after{
|
|
114
|
-
clear: both;
|
|
115
|
-
}
|
|
116
|
-
.head{
|
|
117
|
-
height: auto;
|
|
118
|
-
font-weight: bold;
|
|
119
|
-
color: #000000;
|
|
120
|
-
font-family: 微软雅黑;
|
|
121
|
-
}
|
|
122
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex-row">
|
|
3
|
+
<div class="basic-main">
|
|
4
|
+
<div :class="showData ? 'top' : 'auto'">
|
|
5
|
+
<installinfoselect :show-data="showData" v-ref:query></installinfoselect>
|
|
6
|
+
</div>
|
|
7
|
+
<div v-if="showtotal" class="panel panel-info" style="height: 90%;">
|
|
8
|
+
<tabset v-ref:tabs :close="false">
|
|
9
|
+
<tab :header='selectdata.title'>
|
|
10
|
+
<function-service-control v-ref:service :selectdata="selectdata"></function-service-control>
|
|
11
|
+
</tab>
|
|
12
|
+
<tab header='附件'>
|
|
13
|
+
<apply-upload :blodid="show_data.f_process_id"
|
|
14
|
+
:isupload = "true"
|
|
15
|
+
:isdelete="true"
|
|
16
|
+
:isusetype="true"
|
|
17
|
+
:isremark = "true"
|
|
18
|
+
:takeimg="false"
|
|
19
|
+
:issearch="true"
|
|
20
|
+
:defname="show_data.defname"
|
|
21
|
+
>
|
|
22
|
+
</apply-upload>
|
|
23
|
+
</tab>
|
|
24
|
+
</tabset>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
</template>
|
|
30
|
+
<script>
|
|
31
|
+
import Vue from 'vue'
|
|
32
|
+
import {HttpResetClass} from 'vue-client'
|
|
33
|
+
export default {
|
|
34
|
+
title: '报建业务',
|
|
35
|
+
data () {
|
|
36
|
+
return {
|
|
37
|
+
selectdata: null,
|
|
38
|
+
showtotal: false, // 控制详情显示
|
|
39
|
+
showData: true // 控制列表数据
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
created () {
|
|
43
|
+
this.getConfig()
|
|
44
|
+
},
|
|
45
|
+
methods: {
|
|
46
|
+
// 获取功能配置
|
|
47
|
+
async getConfig () {
|
|
48
|
+
let res = await this.$resetpost(
|
|
49
|
+
'rs/logic/ApplyGetFunction',
|
|
50
|
+
null,
|
|
51
|
+
{resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
|
|
52
|
+
)
|
|
53
|
+
Vue.prototype.$function_vue = res.data
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
events: {
|
|
57
|
+
// 刷新控制层
|
|
58
|
+
async 'breakControl' (servicedata) {
|
|
59
|
+
let http = new HttpResetClass()
|
|
60
|
+
let data = {
|
|
61
|
+
condition: `u.id = ${servicedata.id}`,
|
|
62
|
+
data: {
|
|
63
|
+
id: this.$login.f.id,
|
|
64
|
+
orgid: this.$login.f.orgid
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
let res = await http.load('POST', 'rs/sql/checkuserfunction', {data:data}, {
|
|
69
|
+
resolveMsg: null,
|
|
70
|
+
rejectMsg: '数据更新失败!!!'
|
|
71
|
+
})
|
|
72
|
+
|
|
73
|
+
this.showtotal = false
|
|
74
|
+
|
|
75
|
+
this.selectdata = Object.assign({}, this.selectdata, res.data[0])
|
|
76
|
+
|
|
77
|
+
this.$nextTick(() => {
|
|
78
|
+
this.showtotal = true
|
|
79
|
+
})
|
|
80
|
+
},
|
|
81
|
+
// 查询
|
|
82
|
+
'search' () {
|
|
83
|
+
// 关闭详细
|
|
84
|
+
this.showtotal = false
|
|
85
|
+
// 显示列表数据
|
|
86
|
+
this.showData = true
|
|
87
|
+
// 显示分页
|
|
88
|
+
this.$refs.query.$refs.cp.pager = true
|
|
89
|
+
// 调用查询
|
|
90
|
+
this.$refs.query.$refs.cp.$refs.cri.search()
|
|
91
|
+
},
|
|
92
|
+
// 点击功能操作
|
|
93
|
+
'func' (funcdata, row) {
|
|
94
|
+
this.selectdata = Object.assign({}, funcdata, row)
|
|
95
|
+
|
|
96
|
+
// 关闭分页
|
|
97
|
+
this.$refs.query.$refs.cp.pager = false
|
|
98
|
+
// 关闭列表数据
|
|
99
|
+
this.showData = false
|
|
100
|
+
|
|
101
|
+
this.$nextTick(() => {
|
|
102
|
+
this.showtotal = true
|
|
103
|
+
})
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
</script>
|
|
108
|
+
<style scoped>
|
|
109
|
+
/*清除浮动*/
|
|
110
|
+
.clearfix:after,.clearfix:before{
|
|
111
|
+
display: table;
|
|
112
|
+
}
|
|
113
|
+
.clearfix:after{
|
|
114
|
+
clear: both;
|
|
115
|
+
}
|
|
116
|
+
.head{
|
|
117
|
+
height: auto;
|
|
118
|
+
font-weight: bold;
|
|
119
|
+
color: #000000;
|
|
120
|
+
font-family: 微软雅黑;
|
|
121
|
+
}
|
|
122
|
+
</style>
|
|
@@ -177,6 +177,35 @@
|
|
|
177
177
|
title: '报建业务信息',
|
|
178
178
|
props: ['showData'],
|
|
179
179
|
data () {
|
|
180
|
+
if(this.$login.f.orgs==='华东大区' || this.$login.f.orgs==='华中大区'|| this.$login.f.orgs==='华北大区' || this.$login.f.orgs==='东北大区'
|
|
181
|
+
||this.$login.f.orgs==='鲁北区域'|| this.$login.f.orgs==='广西区域' || this.$login.f.orgs==='苏皖区域'|| this.$login.f.orgs === '奥德装备集团'||
|
|
182
|
+
this.$login.f.orgs==='黑龙江区域'
|
|
183
|
+
){
|
|
184
|
+
return {
|
|
185
|
+
model: new PagedList('rs/sql/checkuserfunctiondq', 20, {
|
|
186
|
+
data: {
|
|
187
|
+
orgs: this.$login.f.orgs
|
|
188
|
+
}
|
|
189
|
+
}),
|
|
190
|
+
funcs: [], // 功能列表
|
|
191
|
+
curorgid: [this.$login.f.orgid],
|
|
192
|
+
applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
|
|
193
|
+
defnames: [{label: '全部', value: ''}], // 流程节点
|
|
194
|
+
criteriaShow: false
|
|
195
|
+
}}
|
|
196
|
+
if(this.$login.f.orgs==='设计院'){
|
|
197
|
+
return {
|
|
198
|
+
model: new PagedList('rs/sql/checkuserfunctionsjy', 20, {
|
|
199
|
+
data: {
|
|
200
|
+
orgid: this.$login.f.orgid
|
|
201
|
+
}
|
|
202
|
+
}),
|
|
203
|
+
funcs: [], // 功能列表
|
|
204
|
+
curorgid: [this.$login.f.orgid],
|
|
205
|
+
applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
|
|
206
|
+
defnames: [{label: '全部', value: ''}], // 流程节点
|
|
207
|
+
criteriaShow: false
|
|
208
|
+
}}
|
|
180
209
|
return {
|
|
181
210
|
model: new PagedList('rs/sql/checkuserfunction', 20, {
|
|
182
211
|
data: {
|
|
@@ -2,23 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
<div style="margin-left: 50% ;"> <button class="btn btn-primary"@click.prevent="showPrintModal()">打印调研表</button> </div>
|
|
4
4
|
|
|
5
|
-
<modal :show.sync="showQuery">
|
|
5
|
+
<modal :show.sync="showQuery" style="width: 100%">
|
|
6
6
|
<header slot="modal-header" class="modal-header">
|
|
7
7
|
<h3 style="color:black" class="modal-title">调研表打印</h3>
|
|
8
8
|
</header>
|
|
9
|
-
<article slot="modal-body" class="modal-body">
|
|
10
|
-
<div
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
<article slot="modal-body" class="modal-body"style="width: 100%">
|
|
10
|
+
<div >
|
|
11
|
+
<div id="print">
|
|
12
|
+
<br />
|
|
13
|
+
<font style="text-align: center;font-style: normal;font-size: 30px">{{selectdata.f_orgname}}市场调查报告</font>
|
|
14
|
+
<h4 style="margin-left: 70%">{{selectdata.operate_date}}</h4>
|
|
15
|
+
{{{ model.data }}}
|
|
16
|
+
<h5 style="margin-right: 25%">说明:以上甲方提供的用气设备及参数为出具工程预算书的依据,燃气表、燃气管道管径等设备的选择将以此为依据,应以甲方提供用气设备的铭牌数据为准,不能提供时可参照相关灶具额定用气量。</h5>
|
|
17
|
+
</div>
|
|
16
18
|
</div>
|
|
17
|
-
|
|
18
19
|
</article>
|
|
19
20
|
|
|
20
21
|
<footer slot="modal-footer" class="modal-footer">
|
|
21
|
-
<print-element v-ref:print v-show="false" id='print' styleid='
|
|
22
|
+
<print-element v-ref:print v-show="false" id='print' styleid='style2'
|
|
22
23
|
top='10' left='60' width='100%' height='100%'>
|
|
23
24
|
</print-element>
|
|
24
25
|
<button type="button" class="btn btn-primary" @click="print()">打印</button>
|
|
@@ -1,128 +1,128 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="flex-row">
|
|
3
|
-
<div class="basic-main">
|
|
4
|
-
<div :class="showData ? 'top' : 'auto'" v-show="showQuery">
|
|
5
|
-
<exploration-select v-ref:query :show-data="showData"></exploration-select>
|
|
6
|
-
</div>
|
|
7
|
-
<div v-if="showtotal" style="height: 89%">
|
|
8
|
-
<tabset v-ref:tabs :close="false">
|
|
9
|
-
<tab :header='selectdata.defname'>
|
|
10
|
-
<service-control v-ref:service :selectdata="selectdata"></service-control>
|
|
11
|
-
</tab>
|
|
12
|
-
<tab header='附件'>
|
|
13
|
-
<apply-upload :blodid="selectdata.f_process_id"
|
|
14
|
-
:isupload = "true"
|
|
15
|
-
:isdelete="true"
|
|
16
|
-
:isusetype="true"
|
|
17
|
-
:isremark = "true"
|
|
18
|
-
:takeimg="false"
|
|
19
|
-
:issearch="true"
|
|
20
|
-
:defname="selectdata.defname">
|
|
21
|
-
</apply-upload>
|
|
22
|
-
</tab>
|
|
23
|
-
</tabset>
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
</template>
|
|
28
|
-
<script>
|
|
29
|
-
import Vue from 'vue'
|
|
30
|
-
import {HttpResetClass} from 'vue-client'
|
|
31
|
-
export default {
|
|
32
|
-
title: '报建流程',
|
|
33
|
-
data () {
|
|
34
|
-
return {
|
|
35
|
-
showQuery: true, // 控制查询页
|
|
36
|
-
showData: true, // 控制列表数据
|
|
37
|
-
showtotal: false, // 详情显示
|
|
38
|
-
selectdata: {},
|
|
39
|
-
xmlname: '' // 配置文件名
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
ready () {
|
|
43
|
-
},
|
|
44
|
-
methods: {
|
|
45
|
-
// 获取页面配置json文件
|
|
46
|
-
async loadName () {
|
|
47
|
-
|
|
48
|
-
let data = {
|
|
49
|
-
workname: this.selectdata.processname
|
|
50
|
-
}
|
|
51
|
-
let http = new HttpResetClass()
|
|
52
|
-
let res = await http.load(
|
|
53
|
-
'POST',
|
|
54
|
-
'rs/logic/ApplyGetConfigs',
|
|
55
|
-
{data: data},
|
|
56
|
-
{resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
|
|
57
|
-
)
|
|
58
|
-
|
|
59
|
-
Vue.prototype.$workflow_vue = res.data
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
events: {
|
|
63
|
-
'onMessage' (data) {
|
|
64
|
-
console.log('接收消息')
|
|
65
|
-
console.log(data)
|
|
66
|
-
if (data.type === 'apply-task') {
|
|
67
|
-
this.$refs.query.$refs.cp.$refs.cri.search()
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
// 刷新控制层
|
|
71
|
-
async 'breakControl' (servicedata) {
|
|
72
|
-
|
|
73
|
-
if (servicedata.id) {
|
|
74
|
-
let data = {
|
|
75
|
-
condition: `u.id = ${servicedata.id}`,
|
|
76
|
-
data: {
|
|
77
|
-
id: this.$login.f.id,
|
|
78
|
-
orgid: this.$login.f.orgid
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
let res = await this.$resetpost(
|
|
82
|
-
'rs/sql/checkuser',
|
|
83
|
-
{data: data},
|
|
84
|
-
{resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
|
|
85
|
-
)
|
|
86
|
-
|
|
87
|
-
this.selectdata = res.data[0]
|
|
88
|
-
} else {
|
|
89
|
-
this.selectdata = servicedata
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
this.showtotal = false
|
|
93
|
-
this.$nextTick(() => {
|
|
94
|
-
this.showtotal = true
|
|
95
|
-
})
|
|
96
|
-
|
|
97
|
-
},
|
|
98
|
-
// 初始化
|
|
99
|
-
async 'apply' (val) {
|
|
100
|
-
this.showtotal = false
|
|
101
|
-
this.selectdata = val
|
|
102
|
-
|
|
103
|
-
// 次方法必须同步执行,否则后续会出问题
|
|
104
|
-
// 获取页面json配置文件
|
|
105
|
-
await this.loadName()
|
|
106
|
-
|
|
107
|
-
// 显示详细
|
|
108
|
-
this.showtotal = true
|
|
109
|
-
// 关闭列表数据
|
|
110
|
-
this.showData = false
|
|
111
|
-
// 关闭分页
|
|
112
|
-
this.$refs.query.$refs.cp.pager = false
|
|
113
|
-
},
|
|
114
|
-
'search' () {
|
|
115
|
-
// 关闭详细
|
|
116
|
-
this.showtotal = false
|
|
117
|
-
// 显示列表数据
|
|
118
|
-
this.showData = true
|
|
119
|
-
// 显示分页
|
|
120
|
-
this.$refs.query.$refs.cp.pager = true
|
|
121
|
-
// 调用查询
|
|
122
|
-
this.$refs.query.$refs.cp.$refs.cri.search()
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
watch: {
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex-row">
|
|
3
|
+
<div class="basic-main">
|
|
4
|
+
<div :class="showData ? 'top' : 'auto'" v-show="showQuery">
|
|
5
|
+
<exploration-select v-ref:query :show-data="showData"></exploration-select>
|
|
6
|
+
</div>
|
|
7
|
+
<div v-if="showtotal" style="height: 89%">
|
|
8
|
+
<tabset v-ref:tabs :close="false">
|
|
9
|
+
<tab :header='selectdata.defname'>
|
|
10
|
+
<service-control v-ref:service :selectdata="selectdata"></service-control>
|
|
11
|
+
</tab>
|
|
12
|
+
<tab header='附件'>
|
|
13
|
+
<apply-upload :blodid="selectdata.f_process_id"
|
|
14
|
+
:isupload = "true"
|
|
15
|
+
:isdelete="true"
|
|
16
|
+
:isusetype="true"
|
|
17
|
+
:isremark = "true"
|
|
18
|
+
:takeimg="false"
|
|
19
|
+
:issearch="true"
|
|
20
|
+
:defname="selectdata.defname">
|
|
21
|
+
</apply-upload>
|
|
22
|
+
</tab>
|
|
23
|
+
</tabset>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</template>
|
|
28
|
+
<script>
|
|
29
|
+
import Vue from 'vue'
|
|
30
|
+
import {HttpResetClass} from 'vue-client'
|
|
31
|
+
export default {
|
|
32
|
+
title: '报建流程',
|
|
33
|
+
data () {
|
|
34
|
+
return {
|
|
35
|
+
showQuery: true, // 控制查询页
|
|
36
|
+
showData: true, // 控制列表数据
|
|
37
|
+
showtotal: false, // 详情显示
|
|
38
|
+
selectdata: {},
|
|
39
|
+
xmlname: '' // 配置文件名
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
ready () {
|
|
43
|
+
},
|
|
44
|
+
methods: {
|
|
45
|
+
// 获取页面配置json文件
|
|
46
|
+
async loadName () {
|
|
47
|
+
|
|
48
|
+
let data = {
|
|
49
|
+
workname: this.selectdata.processname
|
|
50
|
+
}
|
|
51
|
+
let http = new HttpResetClass()
|
|
52
|
+
let res = await http.load(
|
|
53
|
+
'POST',
|
|
54
|
+
'rs/logic/ApplyGetConfigs',
|
|
55
|
+
{data: data},
|
|
56
|
+
{resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
Vue.prototype.$workflow_vue = res.data
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
events: {
|
|
63
|
+
'onMessage' (data) {
|
|
64
|
+
console.log('接收消息')
|
|
65
|
+
console.log(data)
|
|
66
|
+
if (data.type === 'apply-task') {
|
|
67
|
+
this.$refs.query.$refs.cp.$refs.cri.search()
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
// 刷新控制层
|
|
71
|
+
async 'breakControl' (servicedata) {
|
|
72
|
+
|
|
73
|
+
if (servicedata.id) {
|
|
74
|
+
let data = {
|
|
75
|
+
condition: `u.id = ${servicedata.id}`,
|
|
76
|
+
data: {
|
|
77
|
+
id: this.$login.f.id,
|
|
78
|
+
orgid: this.$login.f.orgid
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
let res = await this.$resetpost(
|
|
82
|
+
'rs/sql/checkuser',
|
|
83
|
+
{data: data},
|
|
84
|
+
{resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
this.selectdata = res.data[0]
|
|
88
|
+
} else {
|
|
89
|
+
this.selectdata = servicedata
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
this.showtotal = false
|
|
93
|
+
this.$nextTick(() => {
|
|
94
|
+
this.showtotal = true
|
|
95
|
+
})
|
|
96
|
+
|
|
97
|
+
},
|
|
98
|
+
// 初始化
|
|
99
|
+
async 'apply' (val) {
|
|
100
|
+
this.showtotal = false
|
|
101
|
+
this.selectdata = val
|
|
102
|
+
|
|
103
|
+
// 次方法必须同步执行,否则后续会出问题
|
|
104
|
+
// 获取页面json配置文件
|
|
105
|
+
await this.loadName()
|
|
106
|
+
|
|
107
|
+
// 显示详细
|
|
108
|
+
this.showtotal = true
|
|
109
|
+
// 关闭列表数据
|
|
110
|
+
this.showData = false
|
|
111
|
+
// 关闭分页
|
|
112
|
+
this.$refs.query.$refs.cp.pager = false
|
|
113
|
+
},
|
|
114
|
+
'search' () {
|
|
115
|
+
// 关闭详细
|
|
116
|
+
this.showtotal = false
|
|
117
|
+
// 显示列表数据
|
|
118
|
+
this.showData = true
|
|
119
|
+
// 显示分页
|
|
120
|
+
this.$refs.query.$refs.cp.pager = true
|
|
121
|
+
// 调用查询
|
|
122
|
+
this.$refs.query.$refs.cp.$refs.cri.search()
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
watch: {
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
</script>
|