apply-clients 3.1.61 → 3.1.63
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.
|
@@ -1,168 +1,178 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="basic-main">
|
|
3
|
-
<div class="tops" v-bind:style="{ height: topheight }">
|
|
4
|
-
<exploration-select v-ref:queryuser v-show="show"></exploration-select>
|
|
5
|
-
</div>
|
|
6
|
-
<div v-if="showtotal" v-bind:style="{ height: botheight, 'margin-top' : '20px'}">
|
|
7
|
-
<tabset v-ref:tabs :close="false">
|
|
8
|
-
<tab header='集中报装' v-if="selectdata.f_apply_type == '集中报建'" style="background-color :#f6f6f6">
|
|
9
|
-
<record-message v-ref:record :selectdata="selectdata" :key="tittle1"
|
|
10
|
-
:edit = "true">
|
|
11
|
-
</record-message>
|
|
12
|
-
</tab>
|
|
13
|
-
<tab :header='header' style="background-color :#ffffff!important;overflow: auto;">
|
|
14
|
-
<service-control v-ref:service :selectdata="selectdata"></service-control>
|
|
15
|
-
</tab>
|
|
16
|
-
<tab header='附件' style="background-color :#ffffff!important;overflow: auto;">
|
|
17
|
-
<apply-upload v-ref:file :blodid = "selectdata.f_process_id" :isusetype = "true" :isdelete = "true" :isremark = "true" :isupload = "true" :defname="selectdata.defname"></apply-upload>
|
|
18
|
-
</tab>
|
|
19
|
-
</tabset>
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
</template>
|
|
23
|
-
<script>
|
|
24
|
-
import Vue from 'vue'
|
|
25
|
-
import {HttpResetClass} from 'vue-client'
|
|
26
|
-
export default {
|
|
27
|
-
title: '报建流程',
|
|
28
|
-
data () {
|
|
29
|
-
return {
|
|
30
|
-
show: true, // 控制列表列表
|
|
31
|
-
showtotal: false, // 详情显示
|
|
32
|
-
header: null, // tag 标题
|
|
33
|
-
selectdata: {},
|
|
34
|
-
botheight: '0%', // 详情信息显示高度
|
|
35
|
-
topheight: '100%', // 列表显示高度
|
|
36
|
-
xmlname: '' // 配置文件名
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
created () {
|
|
40
|
-
},
|
|
41
|
-
methods: {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
let
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
let
|
|
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
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
this.
|
|
143
|
-
|
|
144
|
-
this.$refs.queryuser.$refs.cp.pager =
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
if (this.showtotal && criteriaShow) {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="basic-main">
|
|
3
|
+
<div class="tops" v-bind:style="{ height: topheight }">
|
|
4
|
+
<exploration-select v-ref:queryuser v-show="show"></exploration-select>
|
|
5
|
+
</div>
|
|
6
|
+
<div v-if="showtotal" v-bind:style="{ height: botheight, 'margin-top' : '20px'}">
|
|
7
|
+
<tabset v-ref:tabs :close="false">
|
|
8
|
+
<tab header='集中报装' v-if="selectdata.f_apply_type == '集中报建'" style="background-color :#f6f6f6">
|
|
9
|
+
<record-message v-ref:record :selectdata="selectdata" :key="tittle1"
|
|
10
|
+
:edit = "true">
|
|
11
|
+
</record-message>
|
|
12
|
+
</tab>
|
|
13
|
+
<tab :header='header' style="background-color :#ffffff!important;overflow: auto;">
|
|
14
|
+
<service-control v-ref:service :selectdata="selectdata"></service-control>
|
|
15
|
+
</tab>
|
|
16
|
+
<tab header='附件' style="background-color :#ffffff!important;overflow: auto;">
|
|
17
|
+
<apply-upload v-ref:file :blodid = "selectdata.f_process_id" :isusetype = "true" :isdelete = "true" :isremark = "true" :isupload = "true" :defname="selectdata.defname"></apply-upload>
|
|
18
|
+
</tab>
|
|
19
|
+
</tabset>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|
|
23
|
+
<script>
|
|
24
|
+
import Vue from 'vue'
|
|
25
|
+
import {HttpResetClass} from 'vue-client'
|
|
26
|
+
export default {
|
|
27
|
+
title: '报建流程',
|
|
28
|
+
data () {
|
|
29
|
+
return {
|
|
30
|
+
show: true, // 控制列表列表
|
|
31
|
+
showtotal: false, // 详情显示
|
|
32
|
+
header: null, // tag 标题
|
|
33
|
+
selectdata: {},
|
|
34
|
+
botheight: '0%', // 详情信息显示高度
|
|
35
|
+
topheight: '100%', // 列表显示高度
|
|
36
|
+
xmlname: '' // 配置文件名
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
created () {
|
|
40
|
+
},
|
|
41
|
+
methods: {
|
|
42
|
+
|
|
43
|
+
// 获取页面配置json文件
|
|
44
|
+
async loadName () {
|
|
45
|
+
let http = new HttpResetClass()
|
|
46
|
+
let xmldata = {
|
|
47
|
+
data: this.$login.f,
|
|
48
|
+
workname: this.xmlname
|
|
49
|
+
}
|
|
50
|
+
let res = await http.load('POST', 'rs/logic/ApplyGetConfigs', {data: xmldata}, {resolveMsg: null, rejectMsg: null})
|
|
51
|
+
|
|
52
|
+
if (res.data.code && res.data.code === 200) {
|
|
53
|
+
Vue.prototype.$workflow_vue = res.data.workflow_vue
|
|
54
|
+
} else {
|
|
55
|
+
this.$showMessage('获取报建配置失败,原因:' + res.data.msg)
|
|
56
|
+
return
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
async getProcessId() {
|
|
60
|
+
let http = new HttpResetClass()
|
|
61
|
+
let data = {
|
|
62
|
+
workname: this.xmlname
|
|
63
|
+
}
|
|
64
|
+
let res = await http.load('POST', 'rs/logic/getProcessId', {data: data}, {resolveMsg: null, rejectMsg: null})
|
|
65
|
+
|
|
66
|
+
this.selectdata.f_process_id = res.data
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
events: {
|
|
70
|
+
'loadPage' () {
|
|
71
|
+
// 关闭详细
|
|
72
|
+
this.showtotal = false
|
|
73
|
+
// 显示列表数据
|
|
74
|
+
this.showData = true
|
|
75
|
+
// 显示分页
|
|
76
|
+
this.$refs.queryuser.$refs.cp.pager = true
|
|
77
|
+
this.$refs.queryuser.$refs.cp.$refs.cri.search()
|
|
78
|
+
},
|
|
79
|
+
'onMessage' (data) {
|
|
80
|
+
console.log('接收消息')
|
|
81
|
+
console.log(data)
|
|
82
|
+
if (data.type === 'apply-task') {
|
|
83
|
+
this.$refs.queryuser.$refs.cp.$refs.cri.search()
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
// 刷新控制层
|
|
87
|
+
async 'breakControl' (servicedata) {
|
|
88
|
+
|
|
89
|
+
if (servicedata.id) {
|
|
90
|
+
let data = {
|
|
91
|
+
condition: `u.id = ${servicedata.id}`,
|
|
92
|
+
data: {
|
|
93
|
+
id: this.$login.f.id,
|
|
94
|
+
org: this.$login.f.orgs
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
let res = await this.$resetpost(
|
|
98
|
+
'rs/sql/checkuser',
|
|
99
|
+
{data: data},
|
|
100
|
+
{resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
this.selectdata = res.data[0]
|
|
104
|
+
} else {
|
|
105
|
+
this.selectdata = servicedata
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
this.showtotal = false
|
|
109
|
+
this.$nextTick(() => {
|
|
110
|
+
this.showtotal = true
|
|
111
|
+
})
|
|
112
|
+
|
|
113
|
+
},
|
|
114
|
+
// 初始化
|
|
115
|
+
async 'apply' (val) {
|
|
116
|
+
this.selectdata = val
|
|
117
|
+
|
|
118
|
+
if (this.selectdata.f_apply_type === '集中报建') {
|
|
119
|
+
this.xmlname = '集中报建流程'
|
|
120
|
+
} else if (this.selectdata.f_apply_type === '散户报建') {
|
|
121
|
+
this.xmlname = '散户报建流程'
|
|
122
|
+
} else if (this.selectdata.f_apply_type === '非民用报建') {
|
|
123
|
+
this.xmlname = '非民用报建流程'
|
|
124
|
+
} else {
|
|
125
|
+
this.$showMessage('暂无此类报装')
|
|
126
|
+
return
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// 获取页面json配置文件
|
|
130
|
+
// 次方法必须同步执行,否则后续会出问题
|
|
131
|
+
await this.loadName()
|
|
132
|
+
|
|
133
|
+
if(this.selectdata.defname === this.$workflow_vue.start_activity) {
|
|
134
|
+
// 获取流程id
|
|
135
|
+
await this.getProcessId()
|
|
136
|
+
}
|
|
137
|
+
// 显示详细
|
|
138
|
+
this.showtotal = true
|
|
139
|
+
this.topheight = '10%'
|
|
140
|
+
this.botheight = '90%'
|
|
141
|
+
// 列表显示当前数据
|
|
142
|
+
this.$refs.queryuser.$refs.cp.$refs.grid.model.rows = [this.selectdata]
|
|
143
|
+
// 关闭分页
|
|
144
|
+
this.$refs.queryuser.$refs.cp.pager = false
|
|
145
|
+
|
|
146
|
+
// tab标题
|
|
147
|
+
this.header = this.selectdata.defname
|
|
148
|
+
},
|
|
149
|
+
// 关闭详情页等
|
|
150
|
+
'close' () {
|
|
151
|
+
this.showtotal = false
|
|
152
|
+
this.topheight = '100%'
|
|
153
|
+
this.botheight = '0%'
|
|
154
|
+
this.$refs.queryuser.$refs.cp.pager = true
|
|
155
|
+
this.$refs.queryuser.$refs.cp.$refs.cri.search()
|
|
156
|
+
},
|
|
157
|
+
'hidden' (criteriaShow) {
|
|
158
|
+
if (!this.showtotal && !criteriaShow) {
|
|
159
|
+
|
|
160
|
+
}
|
|
161
|
+
if (!this.showtotal && criteriaShow) {
|
|
162
|
+
|
|
163
|
+
}
|
|
164
|
+
if (this.showtotal && !criteriaShow) {
|
|
165
|
+
this.topheight = '20%'
|
|
166
|
+
this.botheight = '80%'
|
|
167
|
+
}
|
|
168
|
+
if (this.showtotal && criteriaShow) {
|
|
169
|
+
this.topheight = '10%'
|
|
170
|
+
this.botheight = '90%'
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
watch: {
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
</script>
|