apply-clients 3.1.37 → 3.1.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/package.json +112 -112
- package/src/App.vue +20 -20
- package/src/apply.js +73 -70
- package/src/components/product/ApplyCharge/ApplyChargeList.vue +266 -247
- package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +30 -232
- package/src/components/product/Function/InstallFunction.vue +165 -165
- package/src/components/product/Function/InstallInfoSelect.vue +234 -195
- package/src/components/product/Function/Service/FunctionServiceControl.vue +260 -203
- package/src/components/product/Function/functions/ChargeManagement.vue +317 -22
- package/src/components/product/Process/ExplorationSelect.vue +326 -287
- package/src/components/product/Process/ExplorationUser.vue +168 -168
- package/src/components/product/Process/Service/ServiceControl.vue +1075 -1074
- package/src/components/product/ReportForm/CustomerRecordMessage.vue +213 -35
- package/src/components/product/ServiceView.vue +718 -714
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +169 -153
- package/src/components/product/Supervisory/SupervisoryControl.vue +132 -132
- package/src/components/product/Supervisory/SupervisoryControl2.vue +132 -0
- package/src/components/product/Supervisory/SupervisoryList.vue +250 -184
- package/src/components/product/Supervisory/SupervisoryList2.vue +285 -0
- package/src/components/product/Supervisory/SupervisoryhCart.vue +105 -104
|
@@ -1,232 +1,30 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="
|
|
3
|
-
<
|
|
4
|
-
<
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
condition="cr.f_charge_date <= '{}'">
|
|
32
|
-
</datepicker>
|
|
33
|
-
</div>
|
|
34
|
-
<div class="form-group col-sm-3 button-range">
|
|
35
|
-
<button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
|
|
36
|
-
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
37
|
-
<div
|
|
38
|
-
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
39
|
-
@click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
|
|
40
|
-
class="button_spacing"
|
|
41
|
-
style="float: right">
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
46
|
-
<div class="form-group col-sm-3">
|
|
47
|
-
<label class="font_normal_body">报建编号:</label>
|
|
48
|
-
<input type="text" style="width: 60%" class="input_search" placeholder='报建编号' v-model="model.f_apply_num"
|
|
49
|
-
v-on:keyup.enter="$parent.$parent.search()"
|
|
50
|
-
condition="a.f_apply_num = '{}'">
|
|
51
|
-
</div>
|
|
52
|
-
<div class="form-group col-sm-3">
|
|
53
|
-
<label class="font_normal_body">合同编号:</label>
|
|
54
|
-
<input type="text" style="width: 60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
|
|
55
|
-
v-on:keyup.enter="$parent.$parent.search()"
|
|
56
|
-
condition="a.f_contract_number = '{}'">
|
|
57
|
-
</div>
|
|
58
|
-
<div class="form-group col-sm-3">
|
|
59
|
-
<label class="font_normal_body">报建类型:</label>
|
|
60
|
-
<v-select
|
|
61
|
-
v-model="model.f_apply_type"
|
|
62
|
-
placeholder='请选择'
|
|
63
|
-
condition="a.f_apply_type = '{}'"
|
|
64
|
-
:value.sync="model.f_apply_type"
|
|
65
|
-
:options='$parent.$parent.applytype'
|
|
66
|
-
class="select select_list"
|
|
67
|
-
:value-single="true"
|
|
68
|
-
close-on-select ></v-select>
|
|
69
|
-
</div>
|
|
70
|
-
<div class="form-group col-sm-3">
|
|
71
|
-
<label class="font_normal_body">收费人员:</label>
|
|
72
|
-
<input type="text" class="input_search" style="width: 60%" placeholder='收费人员' v-model="model.f_charge_collectors"
|
|
73
|
-
v-on:keyup.enter="$parent.$parent.search()"
|
|
74
|
-
condition="cr.f_charge_collectors like '%{}%'">
|
|
75
|
-
</div>
|
|
76
|
-
<div class="form-group col-sm-3">
|
|
77
|
-
<label class="font_normal_body">付款方式:</label>
|
|
78
|
-
<v-select
|
|
79
|
-
v-model="model.f_payment_method"
|
|
80
|
-
placeholder='请选择'
|
|
81
|
-
condition="cr.f_payment_method = '{}'"
|
|
82
|
-
:value.sync="model.f_payment_method"
|
|
83
|
-
:options='$parent.$parent.paymentMethod'
|
|
84
|
-
class="select select_list"
|
|
85
|
-
:value-single="true"
|
|
86
|
-
close-on-select ></v-select>
|
|
87
|
-
</div>
|
|
88
|
-
<div class="form-group col-sm-3">
|
|
89
|
-
<label class="font_normal_body">缴费状态:</label>
|
|
90
|
-
<v-select
|
|
91
|
-
v-model="model.f_charging_status"
|
|
92
|
-
placeholder='请选择'
|
|
93
|
-
condition="cr.f_charging_status = '{}'"
|
|
94
|
-
:value.sync="model.f_charging_status"
|
|
95
|
-
:options='$parent.$parent.chargingStatus'
|
|
96
|
-
class="select select_list"
|
|
97
|
-
:value-single="true"
|
|
98
|
-
close-on-select ></v-select>
|
|
99
|
-
</div>
|
|
100
|
-
</div>
|
|
101
|
-
</div>
|
|
102
|
-
</criteria>
|
|
103
|
-
<data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
|
|
104
|
-
<template partial='head'>
|
|
105
|
-
<tr>
|
|
106
|
-
<th>序号</th>
|
|
107
|
-
<th>报建编号</th>
|
|
108
|
-
<th>项目名称</th>
|
|
109
|
-
<th>合同编号</th>
|
|
110
|
-
<th>报建类型</th>
|
|
111
|
-
<th>收费金额</th>
|
|
112
|
-
<th>付款方式</th>
|
|
113
|
-
<th>收费人员</th>
|
|
114
|
-
<th>收费日期</th>
|
|
115
|
-
<th>状态</th>
|
|
116
|
-
<th>地址</th>
|
|
117
|
-
</tr>
|
|
118
|
-
</template>
|
|
119
|
-
<template partial='body'>
|
|
120
|
-
<tr >
|
|
121
|
-
<td style="text-align: center;">
|
|
122
|
-
<nobr><font>{{$index+1}}</font></nobr>
|
|
123
|
-
</td>
|
|
124
|
-
<td style="text-align: center;">
|
|
125
|
-
<nobr><font>{{row.f_apply_num}}</font></nobr>
|
|
126
|
-
</td>
|
|
127
|
-
<td style="text-align: center;">
|
|
128
|
-
<nobr><font>{{row.f_entry_name}}</font></nobr>
|
|
129
|
-
</td>
|
|
130
|
-
<td style="text-align: center;">
|
|
131
|
-
<nobr><font>{{row.f_contract_number}}</font></nobr>
|
|
132
|
-
</td>
|
|
133
|
-
<td style="text-align: center;">
|
|
134
|
-
<nobr><font>{{row.f_apply_type}}</font></nobr>
|
|
135
|
-
</td>
|
|
136
|
-
<td style="text-align: center;">
|
|
137
|
-
<nobr><font>{{row.f_charge_money}}</font></nobr>
|
|
138
|
-
</td>
|
|
139
|
-
<td style="text-align: center;">
|
|
140
|
-
<nobr><font>{{row.f_payment_method}}</font></nobr>
|
|
141
|
-
</td>
|
|
142
|
-
<td style="text-align: center;">
|
|
143
|
-
<nobr><font>{{row.f_charge_collectors}}</font></nobr>
|
|
144
|
-
</td>
|
|
145
|
-
<td style="text-align: center;">
|
|
146
|
-
<nobr><font>{{row.f_charge_date}}</font></nobr>
|
|
147
|
-
</td>
|
|
148
|
-
<td style="text-align: center;">
|
|
149
|
-
<nobr><font>{{row.f_charging_status}}</font></nobr>
|
|
150
|
-
</td>
|
|
151
|
-
<td style="text-align: center;">
|
|
152
|
-
<nobr><font>{{row.f_address}}</font></nobr>
|
|
153
|
-
</td>
|
|
154
|
-
</tr>
|
|
155
|
-
</template>
|
|
156
|
-
</data-grid>
|
|
157
|
-
</criteria-paged>
|
|
158
|
-
<div class="flex" style="height: 10%">
|
|
159
|
-
<div novalidate class="form-inline auto" partial>
|
|
160
|
-
<p class="bg-info text-center" style="padding: 8px;font-size: 20px">合计收费记录共
|
|
161
|
-
<span style="color: red">{{chargeAll.count}}</span>笔,合计金额<span style="color: red">{{chargeAll.sum}}</span>元
|
|
162
|
-
</p>
|
|
163
|
-
</div>
|
|
164
|
-
</div>
|
|
165
|
-
</div>
|
|
166
|
-
</template>
|
|
167
|
-
|
|
168
|
-
<script>
|
|
169
|
-
import {PagedList} from 'vue-client'
|
|
170
|
-
import {HttpResetClass} from 'vue-client'
|
|
171
|
-
export default {
|
|
172
|
-
title: '报建收费明细',
|
|
173
|
-
data () {
|
|
174
|
-
return {
|
|
175
|
-
model: new PagedList('rs/sql/getApplyCharge', 30, {
|
|
176
|
-
data: {
|
|
177
|
-
orgid: this.$login.f.orgid
|
|
178
|
-
}
|
|
179
|
-
}),
|
|
180
|
-
applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
|
|
181
|
-
paymentMethod: [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')],
|
|
182
|
-
chargingStatus: [
|
|
183
|
-
{label: '全部', value: ''},
|
|
184
|
-
{label: '有效', value: '有效'},
|
|
185
|
-
{label: '作废', value: '作废'}
|
|
186
|
-
],
|
|
187
|
-
criteriaShow: false,
|
|
188
|
-
chargeAll: {
|
|
189
|
-
count: 0,
|
|
190
|
-
sum: 0
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
ready () {
|
|
195
|
-
// 调用查询
|
|
196
|
-
this.search()
|
|
197
|
-
},
|
|
198
|
-
methods: {
|
|
199
|
-
clear() {
|
|
200
|
-
Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
|
|
201
|
-
this.$refs.cp.$refs.cri.model[key] = []
|
|
202
|
-
})
|
|
203
|
-
},
|
|
204
|
-
// 查询
|
|
205
|
-
search () {
|
|
206
|
-
this.$refs.cp.$refs.cri.search()
|
|
207
|
-
this.getChargeAll()
|
|
208
|
-
},
|
|
209
|
-
async getChargeAll () {
|
|
210
|
-
let http = new HttpResetClass()
|
|
211
|
-
let data = {
|
|
212
|
-
condition: this.model.condition,
|
|
213
|
-
data: {
|
|
214
|
-
orgid: this.$login.f.orgid
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
let res = await http.load('POST', 'rs/sql/getChargeAll', {data: data}, {resolveMsg: null, rejectMsg: null})
|
|
218
|
-
|
|
219
|
-
this.chargeAll = res.data[0]
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
</script>
|
|
224
|
-
|
|
225
|
-
<style scoped>
|
|
226
|
-
.button-range {
|
|
227
|
-
display: flex;
|
|
228
|
-
float: right;
|
|
229
|
-
width: auto;
|
|
230
|
-
align-items: center;
|
|
231
|
-
}
|
|
232
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex-row">
|
|
3
|
+
<div class="basic-main">
|
|
4
|
+
<div style="height: 95%">
|
|
5
|
+
<apply-charge-list v-ref:query ></apply-charge-list>
|
|
6
|
+
</div>
|
|
7
|
+
<p class="bg-info text-center" style="font-size: 20px;height: 5%">
|
|
8
|
+
合计记录共<span style="color: red"> {{$refs.query.chargeAll.count}} </span>笔,
|
|
9
|
+
合计金额<span style="color: red"> {{$refs.query.chargeAll.sum}} </span>元
|
|
10
|
+
</p>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script>
|
|
16
|
+
export default {
|
|
17
|
+
title: '报建收费明细',
|
|
18
|
+
data () {
|
|
19
|
+
return {
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
ready () {
|
|
23
|
+
},
|
|
24
|
+
methods: {
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<style scoped>
|
|
30
|
+
</style>
|
|
@@ -1,165 +1,165 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="basic-main">
|
|
3
|
-
<div class="col-sm-10">
|
|
4
|
-
<div class="col-sm-12" :style="{height: selectheight}">
|
|
5
|
-
<installinfoselect v-ref:installselect></installinfoselect>
|
|
6
|
-
</div>
|
|
7
|
-
<div class="col-sm-12" :style="{height: funcheight}" v-if="show">
|
|
8
|
-
<div class="col-sm-3">
|
|
9
|
-
<installfeeinfo :selectdata="selectdata"></installfeeinfo>
|
|
10
|
-
</div>
|
|
11
|
-
<div class="col-sm-9">
|
|
12
|
-
<div class="panel panel-info">
|
|
13
|
-
<div class="panel-heading head auto" style="background-color: #e8f4ff">{{funcdata.title}}</div>
|
|
14
|
-
<div class="panel-body"
|
|
15
|
-
<function-service-control v-ref:func :funcdata="funcdata" :selectdata="selectdata"></function-service-control>
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
</div>
|
|
21
|
-
<div class="col-sm-2">
|
|
22
|
-
<stop-apply-cardlist v-ref:card></stop-apply-cardlist>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
</template>
|
|
26
|
-
<script>
|
|
27
|
-
import Vue from 'vue'
|
|
28
|
-
import {HttpResetClass} from 'vue-client'
|
|
29
|
-
export default {
|
|
30
|
-
title: '报建业务',
|
|
31
|
-
data () {
|
|
32
|
-
return {
|
|
33
|
-
funcdata: null, // 选中功能
|
|
34
|
-
selectdata: null,
|
|
35
|
-
show: false,
|
|
36
|
-
selectheight: '100%',
|
|
37
|
-
funcheight: '0%'
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
created () {
|
|
41
|
-
this.getConfig()
|
|
42
|
-
},
|
|
43
|
-
methods: {
|
|
44
|
-
// 获取功能配置
|
|
45
|
-
getConfig () {
|
|
46
|
-
let http = new HttpResetClass()
|
|
47
|
-
let data = {
|
|
48
|
-
data: this.$login.f
|
|
49
|
-
}
|
|
50
|
-
http.load('POST', 'rs/logic/ApplyGetFunction', {data: data}, {resolveMsg: null, rejectMsg: null}
|
|
51
|
-
).then((res) => {
|
|
52
|
-
if (res.data.code && res.data.code === 200) {
|
|
53
|
-
Vue.prototype.$function_vue = res.data.function_vue
|
|
54
|
-
} else {
|
|
55
|
-
this.$showMessage('获取配置失败,原因:' + res.data.msg)
|
|
56
|
-
return
|
|
57
|
-
}
|
|
58
|
-
})
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
events: {
|
|
62
|
-
'onMessage' (data) {
|
|
63
|
-
console.log('接收消息')
|
|
64
|
-
console.log(data)
|
|
65
|
-
if (data.type === 'apply-task') {
|
|
66
|
-
this.$refs.installselect.$refs.cp.$refs.cri.search()
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
// 点击功能操作
|
|
70
|
-
'func' (funcdata, row) {
|
|
71
|
-
this.funcdata = funcdata
|
|
72
|
-
this.selectdata = row
|
|
73
|
-
this.selectheight = '10%'
|
|
74
|
-
this.funcheight = '90%'
|
|
75
|
-
this.$refs.installselect.$refs.cp.pager = false
|
|
76
|
-
this.show = true
|
|
77
|
-
},
|
|
78
|
-
'close' () {
|
|
79
|
-
this.show = false
|
|
80
|
-
this.selectheight = '100%'
|
|
81
|
-
this.funcheight = '0%'
|
|
82
|
-
this.$refs.installselect.$refs.cp.$refs.cri.search()
|
|
83
|
-
this.$refs.installselect.$refs.cp.pager = true
|
|
84
|
-
},
|
|
85
|
-
// 控制查询条件 显示高度
|
|
86
|
-
'hidden' (criteriaShow) {
|
|
87
|
-
if (!this.show && !criteriaShow) {
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
if (!this.show && criteriaShow) {
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
if (this.show && !criteriaShow) {
|
|
94
|
-
this.selectheight = '20%'
|
|
95
|
-
this.funcheight = '80%'
|
|
96
|
-
}
|
|
97
|
-
if (this.show && criteriaShow) {
|
|
98
|
-
this.selectheight = '10%'
|
|
99
|
-
this.funcheight = '90%'
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
'query' () {
|
|
103
|
-
this.show = false
|
|
104
|
-
this.selectheight = '100%'
|
|
105
|
-
this.funcheight = '0%'
|
|
106
|
-
this.$refs.installselect.$refs.cp.$refs.cri.search()
|
|
107
|
-
this.$refs.installselect.$refs.cp.pager = true
|
|
108
|
-
|
|
109
|
-
this.$refs.card.$refs.paged.$refs.cri.search()
|
|
110
|
-
},
|
|
111
|
-
'operate' (row) {
|
|
112
|
-
this.show = false
|
|
113
|
-
this.funcdata = {
|
|
114
|
-
title: '撤销'
|
|
115
|
-
}
|
|
116
|
-
let http = new HttpResetClass()
|
|
117
|
-
let data = {
|
|
118
|
-
tablename: 't_apply',
|
|
119
|
-
condition: `f_process_id='${row.processid}' and f_apply_orgs = '${this.$login.f.orgs}'`
|
|
120
|
-
}
|
|
121
|
-
http.load('POST', 'rs/sql/applysingleTable', {data: data}, {resolveMsg: null,rejectMsg: '工程查询失败'})
|
|
122
|
-
.then(res => {
|
|
123
|
-
console.log(res.data[0])
|
|
124
|
-
this.selectdata = res.data[0]
|
|
125
|
-
this.selectdata.stopapply = row
|
|
126
|
-
this.selectheight = '10%'
|
|
127
|
-
this.funcheight = '90%'
|
|
128
|
-
this.$refs.installselect.$refs.cp.pager = false
|
|
129
|
-
this.show = true
|
|
130
|
-
})
|
|
131
|
-
},
|
|
132
|
-
// 刷新控制层
|
|
133
|
-
async 'breakControl' () {
|
|
134
|
-
let http = new HttpResetClass()
|
|
135
|
-
let data = {
|
|
136
|
-
tablename: "t_material",
|
|
137
|
-
condition: `f_process_id = ${this.selectdata.f_process_id}`
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
try {
|
|
141
|
-
let res = await http.load('POST', 'rs/sql/applysingleTable', {data: data}, {resolveMsg: null, rejectMsg: null})
|
|
142
|
-
|
|
143
|
-
this.showtotal = false
|
|
144
|
-
this.selectdata = res.data[0]
|
|
145
|
-
this.$nextTick(() => {
|
|
146
|
-
this.showtotal = true
|
|
147
|
-
})
|
|
148
|
-
} catch (e) {
|
|
149
|
-
this.$showAlert('数据更新失败,请手查询更新!!!', 'danger', 3000)
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
'selfsearch'() {
|
|
153
|
-
this.$refs.installselect.$refs.cp.$refs.cri.search()
|
|
154
|
-
},
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
</script>
|
|
158
|
-
<style scoped>
|
|
159
|
-
.head{
|
|
160
|
-
height: auto;
|
|
161
|
-
font-weight: bold;
|
|
162
|
-
color: #000000;
|
|
163
|
-
font-family: 微软雅黑;
|
|
164
|
-
}
|
|
165
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="basic-main">
|
|
3
|
+
<div class="col-sm-10">
|
|
4
|
+
<div class="col-sm-12" :style="{height: selectheight}">
|
|
5
|
+
<installinfoselect v-ref:installselect></installinfoselect>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="col-sm-12" :style="{height: funcheight}" v-if="show">
|
|
8
|
+
<div class="col-sm-3">
|
|
9
|
+
<installfeeinfo :selectdata="selectdata"></installfeeinfo>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="col-sm-9" style="overflow: auto; height: 95%">
|
|
12
|
+
<div class="panel panel-info">
|
|
13
|
+
<div class="panel-heading head auto" style="background-color: #e8f4ff">{{funcdata.title}}</div>
|
|
14
|
+
<div class="panel-body">
|
|
15
|
+
<function-service-control v-ref:func :funcdata="funcdata" :selectdata="selectdata"></function-service-control>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="col-sm-2">
|
|
22
|
+
<stop-apply-cardlist v-ref:card></stop-apply-cardlist>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</template>
|
|
26
|
+
<script>
|
|
27
|
+
import Vue from 'vue'
|
|
28
|
+
import {HttpResetClass} from 'vue-client'
|
|
29
|
+
export default {
|
|
30
|
+
title: '报建业务',
|
|
31
|
+
data () {
|
|
32
|
+
return {
|
|
33
|
+
funcdata: null, // 选中功能
|
|
34
|
+
selectdata: null,
|
|
35
|
+
show: false,
|
|
36
|
+
selectheight: '100%',
|
|
37
|
+
funcheight: '0%'
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
created () {
|
|
41
|
+
this.getConfig()
|
|
42
|
+
},
|
|
43
|
+
methods: {
|
|
44
|
+
// 获取功能配置
|
|
45
|
+
getConfig () {
|
|
46
|
+
let http = new HttpResetClass()
|
|
47
|
+
let data = {
|
|
48
|
+
data: this.$login.f
|
|
49
|
+
}
|
|
50
|
+
http.load('POST', 'rs/logic/ApplyGetFunction', {data: data}, {resolveMsg: null, rejectMsg: null}
|
|
51
|
+
).then((res) => {
|
|
52
|
+
if (res.data.code && res.data.code === 200) {
|
|
53
|
+
Vue.prototype.$function_vue = res.data.function_vue
|
|
54
|
+
} else {
|
|
55
|
+
this.$showMessage('获取配置失败,原因:' + res.data.msg)
|
|
56
|
+
return
|
|
57
|
+
}
|
|
58
|
+
})
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
events: {
|
|
62
|
+
'onMessage' (data) {
|
|
63
|
+
console.log('接收消息')
|
|
64
|
+
console.log(data)
|
|
65
|
+
if (data.type === 'apply-task') {
|
|
66
|
+
this.$refs.installselect.$refs.cp.$refs.cri.search()
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
// 点击功能操作
|
|
70
|
+
'func' (funcdata, row) {
|
|
71
|
+
this.funcdata = funcdata
|
|
72
|
+
this.selectdata = row
|
|
73
|
+
this.selectheight = '10%'
|
|
74
|
+
this.funcheight = '90%'
|
|
75
|
+
this.$refs.installselect.$refs.cp.pager = false
|
|
76
|
+
this.show = true
|
|
77
|
+
},
|
|
78
|
+
'close' () {
|
|
79
|
+
this.show = false
|
|
80
|
+
this.selectheight = '100%'
|
|
81
|
+
this.funcheight = '0%'
|
|
82
|
+
this.$refs.installselect.$refs.cp.$refs.cri.search()
|
|
83
|
+
this.$refs.installselect.$refs.cp.pager = true
|
|
84
|
+
},
|
|
85
|
+
// 控制查询条件 显示高度
|
|
86
|
+
'hidden' (criteriaShow) {
|
|
87
|
+
if (!this.show && !criteriaShow) {
|
|
88
|
+
|
|
89
|
+
}
|
|
90
|
+
if (!this.show && criteriaShow) {
|
|
91
|
+
|
|
92
|
+
}
|
|
93
|
+
if (this.show && !criteriaShow) {
|
|
94
|
+
this.selectheight = '20%'
|
|
95
|
+
this.funcheight = '80%'
|
|
96
|
+
}
|
|
97
|
+
if (this.show && criteriaShow) {
|
|
98
|
+
this.selectheight = '10%'
|
|
99
|
+
this.funcheight = '90%'
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
'query' () {
|
|
103
|
+
this.show = false
|
|
104
|
+
this.selectheight = '100%'
|
|
105
|
+
this.funcheight = '0%'
|
|
106
|
+
this.$refs.installselect.$refs.cp.$refs.cri.search()
|
|
107
|
+
this.$refs.installselect.$refs.cp.pager = true
|
|
108
|
+
|
|
109
|
+
this.$refs.card.$refs.paged.$refs.cri.search()
|
|
110
|
+
},
|
|
111
|
+
'operate' (row) {
|
|
112
|
+
this.show = false
|
|
113
|
+
this.funcdata = {
|
|
114
|
+
title: '撤销'
|
|
115
|
+
}
|
|
116
|
+
let http = new HttpResetClass()
|
|
117
|
+
let data = {
|
|
118
|
+
tablename: 't_apply',
|
|
119
|
+
condition: `f_process_id='${row.processid}' and f_apply_orgs = '${this.$login.f.orgs}'`
|
|
120
|
+
}
|
|
121
|
+
http.load('POST', 'rs/sql/applysingleTable', {data: data}, {resolveMsg: null,rejectMsg: '工程查询失败'})
|
|
122
|
+
.then(res => {
|
|
123
|
+
console.log(res.data[0])
|
|
124
|
+
this.selectdata = res.data[0]
|
|
125
|
+
this.selectdata.stopapply = row
|
|
126
|
+
this.selectheight = '10%'
|
|
127
|
+
this.funcheight = '90%'
|
|
128
|
+
this.$refs.installselect.$refs.cp.pager = false
|
|
129
|
+
this.show = true
|
|
130
|
+
})
|
|
131
|
+
},
|
|
132
|
+
// 刷新控制层
|
|
133
|
+
async 'breakControl' () {
|
|
134
|
+
let http = new HttpResetClass()
|
|
135
|
+
let data = {
|
|
136
|
+
tablename: "t_material",
|
|
137
|
+
condition: `f_process_id = ${this.selectdata.f_process_id}`
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
try {
|
|
141
|
+
let res = await http.load('POST', 'rs/sql/applysingleTable', {data: data}, {resolveMsg: null, rejectMsg: null})
|
|
142
|
+
|
|
143
|
+
this.showtotal = false
|
|
144
|
+
this.selectdata = res.data[0]
|
|
145
|
+
this.$nextTick(() => {
|
|
146
|
+
this.showtotal = true
|
|
147
|
+
})
|
|
148
|
+
} catch (e) {
|
|
149
|
+
this.$showAlert('数据更新失败,请手查询更新!!!', 'danger', 3000)
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
'selfsearch'() {
|
|
153
|
+
this.$refs.installselect.$refs.cp.$refs.cri.search()
|
|
154
|
+
},
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
</script>
|
|
158
|
+
<style scoped>
|
|
159
|
+
.head{
|
|
160
|
+
height: auto;
|
|
161
|
+
font-weight: bold;
|
|
162
|
+
color: #000000;
|
|
163
|
+
font-family: 微软雅黑;
|
|
164
|
+
}
|
|
165
|
+
</style>
|