apply-clients 3.0.7-144 → 3.0.7-145
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
CHANGED
|
@@ -1,299 +1,299 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="d1 flex">
|
|
3
|
-
<div class="left col-sm-12" v-if="refreshed">
|
|
4
|
-
<criteria-paged :model="model" v-ref:cp>
|
|
5
|
-
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri style="padding: 20px;background-color: #f6f6f6;">
|
|
6
|
-
<form novalidate class="" partial>
|
|
7
|
-
<div class="col-sm-12">
|
|
8
|
-
<div class="form-group col-sm-5">
|
|
9
|
-
<label class=" col-sm-6" style="padding-top: 8px">项目名称/客户名称/联系人:</label>
|
|
10
|
-
<div class="col-sm-6">
|
|
11
|
-
<input type="text" class="form-control" v-model="model.f_user_name"
|
|
12
|
-
condition=" (u.f_entry_name like '%{}%' or u.f_user_name like '%{}%' or u.f_contact like '%{}%') " placeholder='三选一输入'>
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
<div class="form-group col-sm-2">
|
|
16
|
-
<div class="col-sm-12">
|
|
17
|
-
<input type="text" class="form-control" placeholder='报建编号' v-model="model.f_apply_num"
|
|
18
|
-
v-on:keyup.enter="search"
|
|
19
|
-
condition="u.f_apply_num like '%{}%'">
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
<div class="form-group col-sm-2">
|
|
23
|
-
<div class="col-sm-12">
|
|
24
|
-
<input type="text" class="form-control" placeholder='合同编号' v-model="model.f_contract_number"
|
|
25
|
-
v-on:keyup.enter="search"
|
|
26
|
-
condition="u.f_contract_number like '%{}%'">
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
<div class="form-group col-sm-2">
|
|
30
|
-
<div class="col-sm-12">
|
|
31
|
-
<input type="text" class="form-control" placeholder='用户地址' v-model="model.f_address"
|
|
32
|
-
v-on:keyup.enter="search"
|
|
33
|
-
condition="u.f_address like '%{}%'">
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
<div class="col-sm-12">
|
|
38
|
-
<div class="form-group col-sm-2">
|
|
39
|
-
<div class="col-sm-12">
|
|
40
|
-
<v-select width ="100%" :options="$parent.$parent.applytype" placeholder='报建类型' condition="u.f_apply_type like '%{}%'"
|
|
41
|
-
v-model="model.f_apply_type" :value.sync="model.f_apply_type" close-on-select>
|
|
42
|
-
</v-select>
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
<div class="form-group col-sm-2">
|
|
46
|
-
<div class="col-sm-12">
|
|
47
|
-
<v-select width ="100%" :options="$parent.$parent.defnames"
|
|
48
|
-
condition="act.defname = '{}'" placeholder='办理环节'
|
|
49
|
-
v-model="model.defname" :value.sync="model.defname" close-on-select>
|
|
50
|
-
</v-select>
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
<div class="form-group col-sm-2">
|
|
54
|
-
<datepicker id="startDate" placeholder="开始日期"
|
|
55
|
-
v-model="model.startDate"
|
|
56
|
-
:value.sync="model.startDate"
|
|
57
|
-
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
58
|
-
:show-reset-button="true"
|
|
59
|
-
condition="u.f_apply_date >= '{}'">
|
|
60
|
-
</datepicker>
|
|
61
|
-
</div>
|
|
62
|
-
<div class="form-group col-sm-2">
|
|
63
|
-
<datepicker id="endDate" placeholder="结束日期"
|
|
64
|
-
v-model="model.endDate"
|
|
65
|
-
:value.sync="model.endDate"
|
|
66
|
-
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
67
|
-
:show-reset-button="true"
|
|
68
|
-
condition="u.f_apply_date <= '{}'">
|
|
69
|
-
</datepicker>
|
|
70
|
-
</div>
|
|
71
|
-
<div class="form-group col-sm-2">
|
|
72
|
-
<v-select placeholder='是否进入工程管理' :options="$parent.$parent.isList" width="100%" :value-single="true"
|
|
73
|
-
v-model="model.f_is_project" :value.sync="model.f_is_project" close-on-select condition="" >
|
|
74
|
-
</v-select>
|
|
75
|
-
</div>
|
|
76
|
-
<div class="form-group col-sm-1" style="text-align: right">
|
|
77
|
-
<button class="btn btn-primary btn-sm" type="button" @click="search(),$parent.$parent.showpager()">
|
|
78
|
-
<span class="glyphicon glyphicon-search"></span>查询
|
|
79
|
-
</button>
|
|
80
|
-
<button class="button btn btn-warning btn-sm" type="button" @click="$parent.$parent.cancelmain()">
|
|
81
|
-
返回
|
|
82
|
-
</button>
|
|
83
|
-
</div>
|
|
84
|
-
</div>
|
|
85
|
-
</form>
|
|
86
|
-
</criteria>
|
|
87
|
-
<data-grid :model="model" partial='list' v-ref:grid class="data-grid" is-fixed='false' style="overflow-x:auto">
|
|
88
|
-
<template partial='head'>
|
|
89
|
-
<tr class="title">
|
|
90
|
-
<th>
|
|
91
|
-
<nobr>序号</nobr>
|
|
92
|
-
</th>
|
|
93
|
-
<th>
|
|
94
|
-
<nobr>当前环节</nobr>
|
|
95
|
-
</th>
|
|
96
|
-
|
|
97
|
-
<th>
|
|
98
|
-
<nobr>报建编号</nobr>
|
|
99
|
-
</th>
|
|
100
|
-
|
|
101
|
-
<th><nobr>项目名称/客户名称/联系人</nobr></th>
|
|
102
|
-
<th>
|
|
103
|
-
<nobr>合同编号</nobr>
|
|
104
|
-
</th>
|
|
105
|
-
<th>
|
|
106
|
-
<nobr>合同金额</nobr>
|
|
107
|
-
</th>
|
|
108
|
-
<th>
|
|
109
|
-
<nobr>电话</nobr>
|
|
110
|
-
</th>
|
|
111
|
-
<th>
|
|
112
|
-
<nobr>地址</nobr>
|
|
113
|
-
</th>
|
|
114
|
-
<th v-if="!this.$login.f.f_fengongsi.includes('中燃')">
|
|
115
|
-
<nobr>用户类型</nobr>
|
|
116
|
-
</th>
|
|
117
|
-
<th>
|
|
118
|
-
<nobr>报建类型</nobr>
|
|
119
|
-
</th>
|
|
120
|
-
<th>
|
|
121
|
-
<nobr>报建日期</nobr>
|
|
122
|
-
</th>
|
|
123
|
-
<th>
|
|
124
|
-
<nobr>是否进入工程管理</nobr>
|
|
125
|
-
</th>
|
|
126
|
-
<!--<th>-->
|
|
127
|
-
<!--<nobr>申请户数</nobr>-->
|
|
128
|
-
<!--</th>-->
|
|
129
|
-
<th>
|
|
130
|
-
<nobr>操作</nobr>
|
|
131
|
-
</th>
|
|
132
|
-
</tr>
|
|
133
|
-
</template>
|
|
134
|
-
<template partial='body'>
|
|
135
|
-
<tr>
|
|
136
|
-
<td style="text-align: center;">
|
|
137
|
-
<nobr>{{$index+1}}</nobr>
|
|
138
|
-
</td>
|
|
139
|
-
<td style="text-align: center;">
|
|
140
|
-
<nobr>{{row.defname}}</nobr>
|
|
141
|
-
</td>
|
|
142
|
-
<td style="text-align: center;">
|
|
143
|
-
<nobr>{{row.f_apply_num}}</nobr>
|
|
144
|
-
</td>
|
|
145
|
-
<td style="text-align: center;">
|
|
146
|
-
<nobr>{{row.f_entry_name}}/{{row.f_user_name}}/{{row.f_contact}}</nobr>
|
|
147
|
-
</td>
|
|
148
|
-
<td style="text-align: center;">
|
|
149
|
-
<nobr>{{row.f_contract_number}}</nobr>
|
|
150
|
-
</td>
|
|
151
|
-
<td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
152
|
-
<nobr><font>{{row.f_project_cost}}</font></nobr>
|
|
153
|
-
</td>
|
|
154
|
-
<td style="text-align: center;">
|
|
155
|
-
<nobr>{{row.f_phone}}</nobr>
|
|
156
|
-
</td>
|
|
157
|
-
<td style="text-align: center;">
|
|
158
|
-
<nobr>{{row.f_address}}</nobr>
|
|
159
|
-
</td>
|
|
160
|
-
<td style="text-align: center;" v-if="!this.$login.f.f_fengongsi.includes('中燃')">
|
|
161
|
-
<nobr>{{row.f_user_type}}</nobr>
|
|
162
|
-
</td>
|
|
163
|
-
<td style="text-align: center;">
|
|
164
|
-
<nobr>{{row.f_apply_type}}</nobr>
|
|
165
|
-
</td>
|
|
166
|
-
<td style="text-align: center;">
|
|
167
|
-
<nobr>{{row.f_apply_date}}</nobr>
|
|
168
|
-
</td>
|
|
169
|
-
<td style="text-align: center;">
|
|
170
|
-
<nobr>{{row.isproject}}</nobr>
|
|
171
|
-
</td>
|
|
172
|
-
<!--<td style="text-align: center;">-->
|
|
173
|
-
<!--<nobr>{{row.f_apply_count}}</nobr>-->
|
|
174
|
-
<!--</td>-->
|
|
175
|
-
<td style="text-align: center;">
|
|
176
|
-
<!-- <dropdown v-if="row.defname != '完工'" >-->
|
|
177
|
-
<dropdown>
|
|
178
|
-
<button @click="$dispatch('checkfuncs',row)" type="button" data-toggle="dropdown" style="border: 0px;background: none;">
|
|
179
|
-
<span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
|
|
180
|
-
</button>
|
|
181
|
-
<ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
|
|
182
|
-
<li v-for="(index,func) in $parent.$parent.$parent.funcs">
|
|
183
|
-
<a href="#" @click="$dispatch('func',func,row)">{{func.title}}</a>
|
|
184
|
-
</li>
|
|
185
|
-
</ul>
|
|
186
|
-
</dropdown>
|
|
187
|
-
</td>
|
|
188
|
-
</tr>
|
|
189
|
-
</template>
|
|
190
|
-
</data-grid>
|
|
191
|
-
</criteria-paged>
|
|
192
|
-
</div>
|
|
193
|
-
</div>
|
|
194
|
-
</template>
|
|
195
|
-
<script>
|
|
196
|
-
import {HttpResetClass} from 'vue-client'
|
|
197
|
-
import {
|
|
198
|
-
PagedList
|
|
199
|
-
} from 'vue-client'
|
|
200
|
-
|
|
201
|
-
export default {
|
|
202
|
-
title: '报建业务信息',
|
|
203
|
-
data() {
|
|
204
|
-
return {
|
|
205
|
-
refreshed:true,
|
|
206
|
-
usertype: this.$appdata.getParam('用户类型'),
|
|
207
|
-
defnameType: this.$appdata.getParam('流程状态'),
|
|
208
|
-
bjstate: [{label:"全部",value:''},...this.$appdata.getParam('报建状态')],
|
|
209
|
-
applytype: [{label:"全部",value:''},...this.$appdata.getParam('报建类型')],
|
|
210
|
-
//中燃 专用
|
|
211
|
-
fapplytype: this.$appdata.getParam('用户类型'),
|
|
212
|
-
funcs:[],
|
|
213
|
-
defnames:[],
|
|
214
|
-
showbtn: false,
|
|
215
|
-
model: new PagedList('rs/sql/checkuserfunction', 20, {
|
|
216
|
-
data: {
|
|
217
|
-
id: this.$login.f.id,
|
|
218
|
-
fengongsi: this.$login.f.orgs
|
|
219
|
-
}
|
|
220
|
-
}),
|
|
221
|
-
condition: '',
|
|
222
|
-
isList: [
|
|
223
|
-
{label: '全部', value: ''},
|
|
224
|
-
{label: '是', value: '是'},
|
|
225
|
-
{label: '否', value: '否'}
|
|
226
|
-
],
|
|
227
|
-
}
|
|
228
|
-
},
|
|
229
|
-
ready() {
|
|
230
|
-
this.$refs.cp.$refs.cri.search()
|
|
231
|
-
let http = new HttpResetClass()
|
|
232
|
-
http.load('POST', 'rs/sql/getDefnamesForActivityins', {data:{}}, {
|
|
233
|
-
resolveMsg: null,
|
|
234
|
-
rejectMsg: null
|
|
235
|
-
}).then((res)=>{
|
|
236
|
-
// 先获取所有流程环节
|
|
237
|
-
this.defnames = [{label: '全部', value: ''}]
|
|
238
|
-
for(let i=0;i<res.data.length;i++){
|
|
239
|
-
this.defnames.push({label:res.data[i].defname,value:res.data[i].defname})
|
|
240
|
-
}
|
|
241
|
-
})
|
|
242
|
-
},
|
|
243
|
-
events:{
|
|
244
|
-
// func(func,row){
|
|
245
|
-
// console.log('aaaaaaaaaaaaa')
|
|
246
|
-
// this.$dispatch('func',func,row)
|
|
247
|
-
// },
|
|
248
|
-
async checkfuncs(row){
|
|
249
|
-
if(row.defname =='报装申请'||row.defname =='任务分配'||row.defname =='勘察初设'||row.defname =='合同信息'||row.defname =='合同审核'){
|
|
250
|
-
let temp = JSON.parse(JSON.stringify(this.$function_vue.functions))
|
|
251
|
-
delete temp[0]
|
|
252
|
-
this.funcs = temp // test.splice(1, 1);
|
|
253
|
-
// this.update()
|
|
254
|
-
}else {
|
|
255
|
-
this.funcs = this.$function_vue.functions
|
|
256
|
-
// this.update()z
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
},
|
|
260
|
-
methods: {
|
|
261
|
-
selfSearch (args) {
|
|
262
|
-
let f_apply_department=this.$login.f.f_department_name
|
|
263
|
-
if(f_apply_department === '成山供气部'){
|
|
264
|
-
args.condition = `${args.condition} and (u.f_apply_department ='成山供气部' OR u.f_apply_department is null)`
|
|
265
|
-
}else{
|
|
266
|
-
args.condition = `${args.condition} and (u.f_apply_department !='成山供气部' OR u.f_apply_department is null)`
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
if (this.$refs.cp.$refs.cri.model.f_is_project === '是') {
|
|
270
|
-
args.condition = `${args.condition} and pu.f_parent_process_id is not null `
|
|
271
|
-
}
|
|
272
|
-
if (this.$refs.cp.$refs.cri.model.f_is_project === '否') {
|
|
273
|
-
args.condition = `${args.condition} and pu.f_parent_process_id is null `
|
|
274
|
-
}
|
|
275
|
-
this.model.search(args.condition, args.model)
|
|
276
|
-
},
|
|
277
|
-
update(){
|
|
278
|
-
this.refreshed = false
|
|
279
|
-
this.$nextTick(()=>{
|
|
280
|
-
this.refreshed = true
|
|
281
|
-
})
|
|
282
|
-
},
|
|
283
|
-
clifun(row) {
|
|
284
|
-
// this.$refs.cp.$refs.grid.model.rows = [row]
|
|
285
|
-
this.$refs.cp.pager = false
|
|
286
|
-
this.$dispatch('showbtn', row)
|
|
287
|
-
},
|
|
288
|
-
showpager() {
|
|
289
|
-
this.$refs.cp.pager = true
|
|
290
|
-
this.$dispatch('hiddenbtn')
|
|
291
|
-
},
|
|
292
|
-
cancelmain(){
|
|
293
|
-
this.$refs.cp.pager = true
|
|
294
|
-
this.$dispatch('cancelmain')
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="d1 flex">
|
|
3
|
+
<div class="left col-sm-12" v-if="refreshed">
|
|
4
|
+
<criteria-paged :model="model" v-ref:cp>
|
|
5
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri style="padding: 20px;background-color: #f6f6f6;">
|
|
6
|
+
<form novalidate class="" partial>
|
|
7
|
+
<div class="col-sm-12">
|
|
8
|
+
<div class="form-group col-sm-5">
|
|
9
|
+
<label class=" col-sm-6" style="padding-top: 8px">项目名称/客户名称/联系人:</label>
|
|
10
|
+
<div class="col-sm-6">
|
|
11
|
+
<input type="text" class="form-control" v-model="model.f_user_name"
|
|
12
|
+
condition=" (u.f_entry_name like '%{}%' or u.f_user_name like '%{}%' or u.f_contact like '%{}%') " placeholder='三选一输入'>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="form-group col-sm-2">
|
|
16
|
+
<div class="col-sm-12">
|
|
17
|
+
<input type="text" class="form-control" placeholder='报建编号' v-model="model.f_apply_num"
|
|
18
|
+
v-on:keyup.enter="search"
|
|
19
|
+
condition="u.f_apply_num like '%{}%'">
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="form-group col-sm-2">
|
|
23
|
+
<div class="col-sm-12">
|
|
24
|
+
<input type="text" class="form-control" placeholder='合同编号' v-model="model.f_contract_number"
|
|
25
|
+
v-on:keyup.enter="search"
|
|
26
|
+
condition="u.f_contract_number like '%{}%'">
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="form-group col-sm-2">
|
|
30
|
+
<div class="col-sm-12">
|
|
31
|
+
<input type="text" class="form-control" placeholder='用户地址' v-model="model.f_address"
|
|
32
|
+
v-on:keyup.enter="search"
|
|
33
|
+
condition="u.f_address like '%{}%'">
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="col-sm-12">
|
|
38
|
+
<div class="form-group col-sm-2">
|
|
39
|
+
<div class="col-sm-12">
|
|
40
|
+
<v-select width ="100%" :options="$parent.$parent.applytype" placeholder='报建类型' condition="u.f_apply_type like '%{}%'"
|
|
41
|
+
v-model="model.f_apply_type" :value.sync="model.f_apply_type" close-on-select>
|
|
42
|
+
</v-select>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
<div class="form-group col-sm-2">
|
|
46
|
+
<div class="col-sm-12">
|
|
47
|
+
<v-select width ="100%" :options="$parent.$parent.defnames"
|
|
48
|
+
condition="act.defname = '{}'" placeholder='办理环节'
|
|
49
|
+
v-model="model.defname" :value.sync="model.defname" close-on-select>
|
|
50
|
+
</v-select>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
<div class="form-group col-sm-2">
|
|
54
|
+
<datepicker id="startDate" placeholder="开始日期"
|
|
55
|
+
v-model="model.startDate"
|
|
56
|
+
:value.sync="model.startDate"
|
|
57
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
58
|
+
:show-reset-button="true"
|
|
59
|
+
condition="u.f_apply_date >= '{}'">
|
|
60
|
+
</datepicker>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="form-group col-sm-2">
|
|
63
|
+
<datepicker id="endDate" placeholder="结束日期"
|
|
64
|
+
v-model="model.endDate"
|
|
65
|
+
:value.sync="model.endDate"
|
|
66
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
67
|
+
:show-reset-button="true"
|
|
68
|
+
condition="u.f_apply_date <= '{}'">
|
|
69
|
+
</datepicker>
|
|
70
|
+
</div>
|
|
71
|
+
<div class="form-group col-sm-2">
|
|
72
|
+
<v-select placeholder='是否进入工程管理' :options="$parent.$parent.isList" width="100%" :value-single="true"
|
|
73
|
+
v-model="model.f_is_project" :value.sync="model.f_is_project" close-on-select condition="" >
|
|
74
|
+
</v-select>
|
|
75
|
+
</div>
|
|
76
|
+
<div class="form-group col-sm-1" style="text-align: right">
|
|
77
|
+
<button class="btn btn-primary btn-sm" type="button" @click="search(),$parent.$parent.showpager()">
|
|
78
|
+
<span class="glyphicon glyphicon-search"></span>查询
|
|
79
|
+
</button>
|
|
80
|
+
<button class="button btn btn-warning btn-sm" type="button" @click="$parent.$parent.cancelmain()">
|
|
81
|
+
返回
|
|
82
|
+
</button>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
</form>
|
|
86
|
+
</criteria>
|
|
87
|
+
<data-grid :model="model" partial='list' v-ref:grid class="data-grid" is-fixed='false' style="overflow-x:auto">
|
|
88
|
+
<template partial='head'>
|
|
89
|
+
<tr class="title">
|
|
90
|
+
<th>
|
|
91
|
+
<nobr>序号</nobr>
|
|
92
|
+
</th>
|
|
93
|
+
<th>
|
|
94
|
+
<nobr>当前环节</nobr>
|
|
95
|
+
</th>
|
|
96
|
+
|
|
97
|
+
<th>
|
|
98
|
+
<nobr>报建编号</nobr>
|
|
99
|
+
</th>
|
|
100
|
+
|
|
101
|
+
<th><nobr>项目名称/客户名称/联系人</nobr></th>
|
|
102
|
+
<th>
|
|
103
|
+
<nobr>合同编号</nobr>
|
|
104
|
+
</th>
|
|
105
|
+
<th>
|
|
106
|
+
<nobr>合同金额</nobr>
|
|
107
|
+
</th>
|
|
108
|
+
<th>
|
|
109
|
+
<nobr>电话</nobr>
|
|
110
|
+
</th>
|
|
111
|
+
<th>
|
|
112
|
+
<nobr>地址</nobr>
|
|
113
|
+
</th>
|
|
114
|
+
<th v-if="!this.$login.f.f_fengongsi.includes('中燃')">
|
|
115
|
+
<nobr>用户类型</nobr>
|
|
116
|
+
</th>
|
|
117
|
+
<th>
|
|
118
|
+
<nobr>报建类型</nobr>
|
|
119
|
+
</th>
|
|
120
|
+
<th>
|
|
121
|
+
<nobr>报建日期</nobr>
|
|
122
|
+
</th>
|
|
123
|
+
<th>
|
|
124
|
+
<nobr>是否进入工程管理</nobr>
|
|
125
|
+
</th>
|
|
126
|
+
<!--<th>-->
|
|
127
|
+
<!--<nobr>申请户数</nobr>-->
|
|
128
|
+
<!--</th>-->
|
|
129
|
+
<th>
|
|
130
|
+
<nobr>操作</nobr>
|
|
131
|
+
</th>
|
|
132
|
+
</tr>
|
|
133
|
+
</template>
|
|
134
|
+
<template partial='body'>
|
|
135
|
+
<tr>
|
|
136
|
+
<td style="text-align: center;">
|
|
137
|
+
<nobr>{{$index+1}}</nobr>
|
|
138
|
+
</td>
|
|
139
|
+
<td style="text-align: center;">
|
|
140
|
+
<nobr>{{row.defname}}</nobr>
|
|
141
|
+
</td>
|
|
142
|
+
<td style="text-align: center;">
|
|
143
|
+
<nobr>{{row.f_apply_num}}</nobr>
|
|
144
|
+
</td>
|
|
145
|
+
<td style="text-align: center;">
|
|
146
|
+
<nobr>{{row.f_entry_name}}/{{row.f_user_name}}/{{row.f_contact}}</nobr>
|
|
147
|
+
</td>
|
|
148
|
+
<td style="text-align: center;">
|
|
149
|
+
<nobr>{{row.f_contract_number}}</nobr>
|
|
150
|
+
</td>
|
|
151
|
+
<td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
152
|
+
<nobr><font>{{row.f_project_cost}}</font></nobr>
|
|
153
|
+
</td>
|
|
154
|
+
<td style="text-align: center;">
|
|
155
|
+
<nobr>{{row.f_phone}}</nobr>
|
|
156
|
+
</td>
|
|
157
|
+
<td style="text-align: center;">
|
|
158
|
+
<nobr>{{row.f_address}}</nobr>
|
|
159
|
+
</td>
|
|
160
|
+
<td style="text-align: center;" v-if="!this.$login.f.f_fengongsi.includes('中燃')">
|
|
161
|
+
<nobr>{{row.f_user_type}}</nobr>
|
|
162
|
+
</td>
|
|
163
|
+
<td style="text-align: center;">
|
|
164
|
+
<nobr>{{row.f_apply_type}}</nobr>
|
|
165
|
+
</td>
|
|
166
|
+
<td style="text-align: center;">
|
|
167
|
+
<nobr>{{row.f_apply_date}}</nobr>
|
|
168
|
+
</td>
|
|
169
|
+
<td style="text-align: center;">
|
|
170
|
+
<nobr>{{row.isproject}}</nobr>
|
|
171
|
+
</td>
|
|
172
|
+
<!--<td style="text-align: center;">-->
|
|
173
|
+
<!--<nobr>{{row.f_apply_count}}</nobr>-->
|
|
174
|
+
<!--</td>-->
|
|
175
|
+
<td style="text-align: center;">
|
|
176
|
+
<!-- <dropdown v-if="row.defname != '完工'" >-->
|
|
177
|
+
<dropdown>
|
|
178
|
+
<button @click="$dispatch('checkfuncs',row)" type="button" data-toggle="dropdown" style="border: 0px;background: none;">
|
|
179
|
+
<span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
|
|
180
|
+
</button>
|
|
181
|
+
<ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
|
|
182
|
+
<li v-for="(index,func) in $parent.$parent.$parent.funcs">
|
|
183
|
+
<a href="#" @click="$dispatch('func',func,row)">{{func.title}}</a>
|
|
184
|
+
</li>
|
|
185
|
+
</ul>
|
|
186
|
+
</dropdown>
|
|
187
|
+
</td>
|
|
188
|
+
</tr>
|
|
189
|
+
</template>
|
|
190
|
+
</data-grid>
|
|
191
|
+
</criteria-paged>
|
|
192
|
+
</div>
|
|
193
|
+
</div>
|
|
194
|
+
</template>
|
|
195
|
+
<script>
|
|
196
|
+
import {HttpResetClass} from 'vue-client'
|
|
197
|
+
import {
|
|
198
|
+
PagedList
|
|
199
|
+
} from 'vue-client'
|
|
200
|
+
|
|
201
|
+
export default {
|
|
202
|
+
title: '报建业务信息',
|
|
203
|
+
data() {
|
|
204
|
+
return {
|
|
205
|
+
refreshed:true,
|
|
206
|
+
usertype: this.$appdata.getParam('用户类型'),
|
|
207
|
+
defnameType: this.$appdata.getParam('流程状态'),
|
|
208
|
+
bjstate: [{label:"全部",value:''},...this.$appdata.getParam('报建状态')],
|
|
209
|
+
applytype: [{label:"全部",value:''},...this.$appdata.getParam('报建类型')],
|
|
210
|
+
//中燃 专用
|
|
211
|
+
fapplytype: this.$appdata.getParam('用户类型'),
|
|
212
|
+
funcs:[],
|
|
213
|
+
defnames:[],
|
|
214
|
+
showbtn: false,
|
|
215
|
+
model: new PagedList('rs/sql/checkuserfunction', 20, {
|
|
216
|
+
data: {
|
|
217
|
+
id: this.$login.f.id,
|
|
218
|
+
fengongsi: this.$login.f.orgs
|
|
219
|
+
}
|
|
220
|
+
}),
|
|
221
|
+
condition: '',
|
|
222
|
+
isList: [
|
|
223
|
+
{label: '全部', value: ''},
|
|
224
|
+
{label: '是', value: '是'},
|
|
225
|
+
{label: '否', value: '否'}
|
|
226
|
+
],
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
ready() {
|
|
230
|
+
this.$refs.cp.$refs.cri.search()
|
|
231
|
+
let http = new HttpResetClass()
|
|
232
|
+
http.load('POST', 'rs/sql/getDefnamesForActivityins', {data:{}}, {
|
|
233
|
+
resolveMsg: null,
|
|
234
|
+
rejectMsg: null
|
|
235
|
+
}).then((res)=>{
|
|
236
|
+
// 先获取所有流程环节
|
|
237
|
+
this.defnames = [{label: '全部', value: ''}]
|
|
238
|
+
for(let i=0;i<res.data.length;i++){
|
|
239
|
+
this.defnames.push({label:res.data[i].defname,value:res.data[i].defname})
|
|
240
|
+
}
|
|
241
|
+
})
|
|
242
|
+
},
|
|
243
|
+
events:{
|
|
244
|
+
// func(func,row){
|
|
245
|
+
// console.log('aaaaaaaaaaaaa')
|
|
246
|
+
// this.$dispatch('func',func,row)
|
|
247
|
+
// },
|
|
248
|
+
async checkfuncs(row){
|
|
249
|
+
if(row.defname =='报装申请'||row.defname =='任务分配'||row.defname =='勘察初设'||row.defname =='合同信息'||row.defname =='合同审核'){
|
|
250
|
+
let temp = JSON.parse(JSON.stringify(this.$function_vue.functions))
|
|
251
|
+
delete temp[0]
|
|
252
|
+
this.funcs = temp // test.splice(1, 1);
|
|
253
|
+
// this.update()
|
|
254
|
+
}else {
|
|
255
|
+
this.funcs = this.$function_vue.functions
|
|
256
|
+
// this.update()z
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
methods: {
|
|
261
|
+
selfSearch (args) {
|
|
262
|
+
let f_apply_department=this.$login.f.f_department_name
|
|
263
|
+
if(f_apply_department === '成山供气部'){
|
|
264
|
+
args.condition = `${args.condition} and (u.f_apply_department ='成山供气部' OR u.f_apply_department is null)`
|
|
265
|
+
}else{
|
|
266
|
+
args.condition = `${args.condition} and (u.f_apply_department !='成山供气部' OR u.f_apply_department is null)`
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
if (this.$refs.cp.$refs.cri.model.f_is_project === '是') {
|
|
270
|
+
args.condition = `${args.condition} and pu.f_parent_process_id is not null `
|
|
271
|
+
}
|
|
272
|
+
if (this.$refs.cp.$refs.cri.model.f_is_project === '否') {
|
|
273
|
+
args.condition = `${args.condition} and pu.f_parent_process_id is null `
|
|
274
|
+
}
|
|
275
|
+
this.model.search(args.condition, args.model)
|
|
276
|
+
},
|
|
277
|
+
update(){
|
|
278
|
+
this.refreshed = false
|
|
279
|
+
this.$nextTick(()=>{
|
|
280
|
+
this.refreshed = true
|
|
281
|
+
})
|
|
282
|
+
},
|
|
283
|
+
clifun(row) {
|
|
284
|
+
// this.$refs.cp.$refs.grid.model.rows = [row]
|
|
285
|
+
this.$refs.cp.pager = false
|
|
286
|
+
this.$dispatch('showbtn', row)
|
|
287
|
+
},
|
|
288
|
+
showpager() {
|
|
289
|
+
this.$refs.cp.pager = true
|
|
290
|
+
this.$dispatch('hiddenbtn')
|
|
291
|
+
},
|
|
292
|
+
cancelmain(){
|
|
293
|
+
this.$refs.cp.pager = true
|
|
294
|
+
this.$dispatch('cancelmain')
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
</script>
|
|
@@ -396,8 +396,8 @@
|
|
|
396
396
|
this.f_project_type = '红线内工程'
|
|
397
397
|
}
|
|
398
398
|
if (modify === 5) {
|
|
399
|
-
if (!(this.$login.f.deps === '客户服务部' || this.$login.f.deps === '管网运行部'
|
|
400
|
-
this.$showMessage("
|
|
399
|
+
if (!(this.$login.f.deps === '客户服务部' || this.$login.f.deps === '管网运行部')) {
|
|
400
|
+
this.$showMessage("只能由客户服务部或管网运行部受理")
|
|
401
401
|
return
|
|
402
402
|
}
|
|
403
403
|
this.urlname = "改造报建流程"
|