apply-clients 5.0.35-ezhou-6 → 5.0.35-ezhou-8
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/applyAndroid.js +39 -39
- package/src/components/app_apply/ApplyToDoList.vue +376 -376
- package/src/components/app_apply/ServiceControl.vue +693 -693
- package/src/components/app_apply/ezhou/ServiceView.vue +745 -745
- package/src/components/product/Process/Processes/Service/ServiceControl.vue +14 -5
- package/src/components/product/Process/Processes/selectUserinfo.vue +184 -183
- package/src/components/product/ServiceView.vue +4 -10
|
@@ -1,376 +1,376 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="repair-bg auto" id="repair-first" style="padding-bottom:5px;overflow:auto">
|
|
3
|
-
<!--<div class="app-botton" @click="back()">-->
|
|
4
|
-
<!--<span class="glyphicon glyphicon-menu-left">返回</span>-->
|
|
5
|
-
<!--</div>-->
|
|
6
|
-
<!-- <back-page :need-back='true' @flag="back()"></back-page>-->
|
|
7
|
-
<div class="bq-parent">
|
|
8
|
-
<blockquote style="padding: 10px 10px;margin: 0 0 0px;color: #499edf;border-left-color: #499edf;font-size: 16px">
|
|
9
|
-
<div class=" row">
|
|
10
|
-
待办报建<span v-if="rows">({{ rows.length }}单)</span>
|
|
11
|
-
<span v-if="!rows">(暂无待处理报建单)</span>
|
|
12
|
-
<button class="btn btn-primary btn-sm" type="button" style="float:right"
|
|
13
|
-
@click="addactive('报装申请')">
|
|
14
|
-
<span class="glyphicon glyphicon-plus"></span>散户报装
|
|
15
|
-
</button>
|
|
16
|
-
<button class="btn btn-primary btn-sm" type="button" style="float:right"
|
|
17
|
-
@click="addactive('集体报装申请')">
|
|
18
|
-
<span class="glyphicon glyphicon-plus"></span>集体报装
|
|
19
|
-
</button>
|
|
20
|
-
<img @click="search" src="../../assets/shuaxindaiban1.png" style="width: 40px;padding: 5px; float:right">
|
|
21
|
-
<div style="margin-right: 3%;float:right;height: 30px " class="button_spacing"
|
|
22
|
-
:class="{'button_shrink_top':criteriaShow,'button_shrink_bottom':!criteriaShow}" @click="hidden()"></div>
|
|
23
|
-
|
|
24
|
-
</div>
|
|
25
|
-
</blockquote>
|
|
26
|
-
|
|
27
|
-
</div>
|
|
28
|
-
<div style="height: auto;width: 100%" v-if="criteriaShow">
|
|
29
|
-
<div class="row app-row">
|
|
30
|
-
<div class="col-xs-4">
|
|
31
|
-
<img src="../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
32
|
-
<label class="font text-left">用户姓名:</label>
|
|
33
|
-
</div>
|
|
34
|
-
<div class="col-xs-8">
|
|
35
|
-
<input class="search_input input-font" v-model=model.f_user_name condition="f_user_name like '%{}%'"/>
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
<div class="row app-row">
|
|
39
|
-
<div class="col-xs-4">
|
|
40
|
-
<img src="../../assets/用户地址.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
41
|
-
<label class="font text-left">用户地址:</label>
|
|
42
|
-
</div>
|
|
43
|
-
<div class="col-xs-8">
|
|
44
|
-
<input class="search_input input-font" v-model=model.f_address condition="f_user_name like '%{}%'"/>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
<div class="row app-row">
|
|
48
|
-
<div class="col-xs-4">
|
|
49
|
-
<img src="../../assets/用户电话.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
50
|
-
<label class="font text-left">用户电话:</label>
|
|
51
|
-
</div>
|
|
52
|
-
<div class="col-xs-8">
|
|
53
|
-
<input class="search_input input-font" v-model=model.f_phone condition="f_user_name like '%{}%'"/>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
57
|
-
<div class="panel panel-default repair-info-content auto">
|
|
58
|
-
<div class="panel-body">
|
|
59
|
-
<div class="panel panel-default well" v-for="row in rows">
|
|
60
|
-
<div class="panel-body bg-info" style="padding: 10px">
|
|
61
|
-
<div class="row form-group">
|
|
62
|
-
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
63
|
-
<div class="row">
|
|
64
|
-
<div :class="{'text-danger': row.f_remindersign}" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
65
|
-
报建编号: {{ row.f_apply_num }}<!--<span v-if="row.f_remindersign">(催单)</span>-->
|
|
66
|
-
</div>
|
|
67
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
68
|
-
用户姓名: {{ row.f_user_name }}
|
|
69
|
-
</div>
|
|
70
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
71
|
-
用户类型: {{ row.f_user_type }}
|
|
72
|
-
</div>
|
|
73
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
74
|
-
用户地址: {{ row.f_address }}
|
|
75
|
-
</div>
|
|
76
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
77
|
-
用户电话: {{ row.f_phone }}
|
|
78
|
-
<img src="../../assets/telphonesend.png" style="width: 12px;"
|
|
79
|
-
@click.stop.prevent='makeAPhoneCall(row.f_phone)'>
|
|
80
|
-
</div>
|
|
81
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
82
|
-
流程状态: {{ row.defname }}
|
|
83
|
-
</div>
|
|
84
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
85
|
-
报建类型: {{ row.f_apply_type }}
|
|
86
|
-
</div>
|
|
87
|
-
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
88
|
-
报建日期: {{ row.f_apply_date }}
|
|
89
|
-
</div>
|
|
90
|
-
|
|
91
|
-
</div>
|
|
92
|
-
</div>
|
|
93
|
-
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
94
|
-
<button type="button" name="button" class="btn btn-primary"
|
|
95
|
-
style="background-color:#499edf;float: right" @click="selected(row)">立即处理
|
|
96
|
-
</button>
|
|
97
|
-
</div>
|
|
98
|
-
</div>
|
|
99
|
-
</div>
|
|
100
|
-
</div>
|
|
101
|
-
</div>
|
|
102
|
-
</div>
|
|
103
|
-
</div>
|
|
104
|
-
</template>
|
|
105
|
-
<script>
|
|
106
|
-
import Vue from 'vue'
|
|
107
|
-
import {HttpResetClass} from 'vue-client'
|
|
108
|
-
|
|
109
|
-
export default {
|
|
110
|
-
title: '待办报建列表',
|
|
111
|
-
data () {
|
|
112
|
-
return {
|
|
113
|
-
// rows: Object
|
|
114
|
-
rows: [],
|
|
115
|
-
model: {},
|
|
116
|
-
criteriaShow: false,
|
|
117
|
-
editshow: false,
|
|
118
|
-
row: {
|
|
119
|
-
type: Object,
|
|
120
|
-
default: {}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
props: {
|
|
125
|
-
sourcet: {
|
|
126
|
-
type: String,
|
|
127
|
-
default: '横屏'
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
methods: {
|
|
131
|
-
hidden () {
|
|
132
|
-
this.criteriaShow = !this.criteriaShow
|
|
133
|
-
},
|
|
134
|
-
selected (row) {
|
|
135
|
-
var _this = this
|
|
136
|
-
var pardate = {
|
|
137
|
-
_this: _this,
|
|
138
|
-
title: '报建待办详情',
|
|
139
|
-
safe: true
|
|
140
|
-
}
|
|
141
|
-
_this.$dispatch('gotoson', pardate)
|
|
142
|
-
row.canedit = true
|
|
143
|
-
if (_this.sourcet === '横屏') {
|
|
144
|
-
_this.$goto('placecontrolerapp', {row: row}, 'self', this.search)
|
|
145
|
-
} else {
|
|
146
|
-
_this.$goto('placecontrolerapp', {row: row}, 'self', this.search)
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
back () {
|
|
150
|
-
let _this = this
|
|
151
|
-
_this.$back()
|
|
152
|
-
},
|
|
153
|
-
search () {
|
|
154
|
-
// app正式运行程序
|
|
155
|
-
console.log('------app开始查询本地代办工单------')
|
|
156
|
-
var condition = "defname != '完工'"
|
|
157
|
-
|
|
158
|
-
console.log(JSON.stringify(this.model))
|
|
159
|
-
if (this.model.f_user_name) {
|
|
160
|
-
condition += ` and f_user_name like '%${this.model.f_user_name}%'`
|
|
161
|
-
}
|
|
162
|
-
if (this.model.f_address) {
|
|
163
|
-
condition += ` and f_address like '%${this.model.f_address}%'`
|
|
164
|
-
}
|
|
165
|
-
if (this.model.f_phone) {
|
|
166
|
-
condition += ` and f_phone like '%${this.model.f_phone}%'`
|
|
167
|
-
}
|
|
168
|
-
console.log(`login_user_id=>>>${Vue.user.id}`)
|
|
169
|
-
console.log(`分公司=>>>${Vue.user.f_fengongsi}`)
|
|
170
|
-
var param = {
|
|
171
|
-
condition: condition,
|
|
172
|
-
condValue: [],
|
|
173
|
-
data: {'id': Vue.user.id, 'fengongsi': Vue.user.f_fengongsi, f_product_id: 0}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
console.log(`param=>>>${JSON.stringify(param)}`)
|
|
177
|
-
let http = new HttpResetClass()
|
|
178
|
-
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`, {data: param}).then(res => {
|
|
179
|
-
console.log(`前台本地报建代办工单查询结果data=>>>${JSON.stringify(res.data)}`)
|
|
180
|
-
if (res.data) {
|
|
181
|
-
this.rows = res.data
|
|
182
|
-
} else {
|
|
183
|
-
this.rows = []
|
|
184
|
-
}
|
|
185
|
-
})
|
|
186
|
-
},
|
|
187
|
-
makeAPhoneCall (phoneNumber) {
|
|
188
|
-
this.$androidUtil.makeAPhoneCall(phoneNumber)
|
|
189
|
-
},
|
|
190
|
-
upload () {
|
|
191
|
-
this.$goto('up-load')
|
|
192
|
-
},
|
|
193
|
-
getpinpai () {
|
|
194
|
-
Vue.prototype.$pinpai = []
|
|
195
|
-
let data = {
|
|
196
|
-
items: 'id,f_meter_brand',
|
|
197
|
-
tablename: 't_gasbrand',
|
|
198
|
-
condition: `f_filialeids = '${Vue.user.f_orgids}'`,
|
|
199
|
-
orderitem: 'id'
|
|
200
|
-
}
|
|
201
|
-
new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: data}, {
|
|
202
|
-
resolveMsg: null,
|
|
203
|
-
rejectMsg: null
|
|
204
|
-
}).then(res => {
|
|
205
|
-
console.log('666666666666666666662')
|
|
206
|
-
console.log(JSON.stringify(res))
|
|
207
|
-
console.log(typeof res)
|
|
208
|
-
// console.log(JSON.stringify(res.data[0]))
|
|
209
|
-
let result = res.data
|
|
210
|
-
result.forEach(ress => {
|
|
211
|
-
Vue.prototype.$pinpai.push({
|
|
212
|
-
id: ress.id,
|
|
213
|
-
label: ress.f_meter_brand,
|
|
214
|
-
value: ress.f_meter_brand
|
|
215
|
-
})
|
|
216
|
-
})
|
|
217
|
-
})
|
|
218
|
-
},
|
|
219
|
-
getqijia () {
|
|
220
|
-
let data = {
|
|
221
|
-
items: 'f_price_name',
|
|
222
|
-
tablename: 't_stairprice',
|
|
223
|
-
condition: `f_filialeids = '${Vue.user.f_orgids}' and f_state= '有效' and getdate()>=f_perform_date and getdate()<=f_end_date `,
|
|
224
|
-
orderitem: 'id'
|
|
225
|
-
}
|
|
226
|
-
Vue.prototype.$qijia = []
|
|
227
|
-
new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: data}, {
|
|
228
|
-
resolveMsg: null,
|
|
229
|
-
rejectMsg: null
|
|
230
|
-
}).then(res => {
|
|
231
|
-
console.log('66666666666666666666')
|
|
232
|
-
console.log(JSON.stringify(res))
|
|
233
|
-
console.log(typeof res)
|
|
234
|
-
// console.log(JSON.stringify(res.data[0]))
|
|
235
|
-
let result = res.data
|
|
236
|
-
result.forEach(ress => {
|
|
237
|
-
Vue.prototype.$qijia.push({
|
|
238
|
-
label: ress.f_price_name,
|
|
239
|
-
value: ress.f_price_name
|
|
240
|
-
})
|
|
241
|
-
})
|
|
242
|
-
})
|
|
243
|
-
},
|
|
244
|
-
getxinghao () {
|
|
245
|
-
let data = {
|
|
246
|
-
items: 'gm.f_meter_style,gb.id',
|
|
247
|
-
tablename: 't_gasmodel gm left join t_gasbrand gb on gm.f_gasbrand_id=gb.id',
|
|
248
|
-
condition: `gb.f_filialeids = '${Vue.user.f_orgids}'`,
|
|
249
|
-
orderitem: 'gm.id'
|
|
250
|
-
}
|
|
251
|
-
Vue.prototype.$xinghao = []
|
|
252
|
-
new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: data}, {
|
|
253
|
-
resolveMsg: null,
|
|
254
|
-
rejectMsg: null
|
|
255
|
-
}).then(res => {
|
|
256
|
-
console.log('66666666666666666666')
|
|
257
|
-
console.log(JSON.stringify(res))
|
|
258
|
-
console.log(typeof res)
|
|
259
|
-
// console.log(JSON.stringify(res.data[0]))
|
|
260
|
-
let result = res.data
|
|
261
|
-
result.forEach(ress => {
|
|
262
|
-
Vue.prototype.$xinghao.push({
|
|
263
|
-
id: ress.id,
|
|
264
|
-
label: ress.f_meter_style,
|
|
265
|
-
value: ress.f_meter_style
|
|
266
|
-
})
|
|
267
|
-
})
|
|
268
|
-
})
|
|
269
|
-
},
|
|
270
|
-
addactive (modify) {
|
|
271
|
-
this.$showMessage('是否开启一个新的流程?', ['confirm', 'cancel']).then((res) => {
|
|
272
|
-
if (res === 'confirm') {
|
|
273
|
-
let http = new HttpResetClass()
|
|
274
|
-
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyGetProcessID`, {
|
|
275
|
-
data: {
|
|
276
|
-
filename: '鄂州报建流程',
|
|
277
|
-
start_activity: modify
|
|
278
|
-
}
|
|
279
|
-
}).then(res => {
|
|
280
|
-
let data = {
|
|
281
|
-
f_process_id: res.data.f_process_id,
|
|
282
|
-
f_product_id: res.data.f_product_id,
|
|
283
|
-
start_activity: modify,
|
|
284
|
-
user: Vue.user,
|
|
285
|
-
defname: modify
|
|
286
|
-
}
|
|
287
|
-
setTimeout(() => {
|
|
288
|
-
}, 200)
|
|
289
|
-
this.selected(data)
|
|
290
|
-
// http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/newaddApplyproduct`, {data: data})
|
|
291
|
-
})
|
|
292
|
-
}
|
|
293
|
-
})
|
|
294
|
-
},
|
|
295
|
-
async getApplyConfig() {
|
|
296
|
-
let http = new HttpResetClass()
|
|
297
|
-
return await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyGetConfigs`, {data: Vue.user}, {
|
|
298
|
-
resolveMsg: null,
|
|
299
|
-
rejectMsg: null
|
|
300
|
-
}
|
|
301
|
-
)
|
|
302
|
-
}
|
|
303
|
-
},
|
|
304
|
-
ready () {
|
|
305
|
-
this.search()
|
|
306
|
-
var _this = this
|
|
307
|
-
this.timeoutHandle = window.setInterval(function () {
|
|
308
|
-
_this.search()
|
|
309
|
-
}, 6000000)// 60000
|
|
310
|
-
this.getpinpai()
|
|
311
|
-
this.getqijia()
|
|
312
|
-
this.getxinghao()
|
|
313
|
-
},
|
|
314
|
-
async created() {
|
|
315
|
-
// eslint-disable-next-line no-undef
|
|
316
|
-
let result = await this.getApplyConfig()
|
|
317
|
-
console.log("当前获取的值", JSON.stringify(result))
|
|
318
|
-
if (result.data.code === 500) {
|
|
319
|
-
this.$showMessage('获取流程配置文件失败,请联系系统管理员')
|
|
320
|
-
return
|
|
321
|
-
}
|
|
322
|
-
let data = result.data.workflow_vue
|
|
323
|
-
console.log('前台存入缓存中的data=>' + JSON.stringify(data))
|
|
324
|
-
Vue.workflow_vue = Vue.prototype.$workflow_vue = data
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
</script>
|
|
328
|
-
|
|
329
|
-
<style>
|
|
330
|
-
.app-row {
|
|
331
|
-
background-color: white;
|
|
332
|
-
padding: 10px 10px 0 10px;
|
|
333
|
-
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
.search_input {
|
|
337
|
-
border: 0;
|
|
338
|
-
outline: none;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
.button_shrink_top {
|
|
342
|
-
width: 30px;
|
|
343
|
-
height: 30px;
|
|
344
|
-
background-size: 30px 30px;
|
|
345
|
-
background-image: url("../../../static/newStyle/stretch_top.png")
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
.button_shrink_bottom {
|
|
349
|
-
width: 30px;
|
|
350
|
-
height: 30px;
|
|
351
|
-
background-size: 30px 30px;
|
|
352
|
-
background-image: url("../../../static/newStyle/stretch_bottom.png")
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
.app-botton {
|
|
356
|
-
position: fixed;
|
|
357
|
-
background: #87b2dd;
|
|
358
|
-
color: #FFF;
|
|
359
|
-
padding: 8px;
|
|
360
|
-
text-align: center;
|
|
361
|
-
font-size: 1.2em;
|
|
362
|
-
z-index: 10;
|
|
363
|
-
opacity: 0.5;
|
|
364
|
-
bottom: 50px;
|
|
365
|
-
margin-top: -10px;
|
|
366
|
-
height: 40px;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
.class-a {
|
|
370
|
-
border: 1px solid red;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
.padd-div-shu {
|
|
374
|
-
padding-bottom: 5px;
|
|
375
|
-
}
|
|
376
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="repair-bg auto" id="repair-first" style="padding-bottom:5px;overflow:auto">
|
|
3
|
+
<!--<div class="app-botton" @click="back()">-->
|
|
4
|
+
<!--<span class="glyphicon glyphicon-menu-left">返回</span>-->
|
|
5
|
+
<!--</div>-->
|
|
6
|
+
<!-- <back-page :need-back='true' @flag="back()"></back-page>-->
|
|
7
|
+
<div class="bq-parent">
|
|
8
|
+
<blockquote style="padding: 10px 10px;margin: 0 0 0px;color: #499edf;border-left-color: #499edf;font-size: 16px">
|
|
9
|
+
<div class=" row">
|
|
10
|
+
待办报建<span v-if="rows">({{ rows.length }}单)</span>
|
|
11
|
+
<span v-if="!rows">(暂无待处理报建单)</span>
|
|
12
|
+
<button class="btn btn-primary btn-sm" type="button" style="float:right"
|
|
13
|
+
@click="addactive('报装申请')">
|
|
14
|
+
<span class="glyphicon glyphicon-plus"></span>散户报装
|
|
15
|
+
</button>
|
|
16
|
+
<button class="btn btn-primary btn-sm" type="button" style="float:right"
|
|
17
|
+
@click="addactive('集体报装申请')">
|
|
18
|
+
<span class="glyphicon glyphicon-plus"></span>集体报装
|
|
19
|
+
</button>
|
|
20
|
+
<img @click="search" src="../../assets/shuaxindaiban1.png" style="width: 40px;padding: 5px; float:right">
|
|
21
|
+
<div style="margin-right: 3%;float:right;height: 30px " class="button_spacing"
|
|
22
|
+
:class="{'button_shrink_top':criteriaShow,'button_shrink_bottom':!criteriaShow}" @click="hidden()"></div>
|
|
23
|
+
|
|
24
|
+
</div>
|
|
25
|
+
</blockquote>
|
|
26
|
+
|
|
27
|
+
</div>
|
|
28
|
+
<div style="height: auto;width: 100%" v-if="criteriaShow">
|
|
29
|
+
<div class="row app-row">
|
|
30
|
+
<div class="col-xs-4">
|
|
31
|
+
<img src="../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
32
|
+
<label class="font text-left">用户姓名:</label>
|
|
33
|
+
</div>
|
|
34
|
+
<div class="col-xs-8">
|
|
35
|
+
<input class="search_input input-font" v-model=model.f_user_name condition="f_user_name like '%{}%'"/>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="row app-row">
|
|
39
|
+
<div class="col-xs-4">
|
|
40
|
+
<img src="../../assets/用户地址.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
41
|
+
<label class="font text-left">用户地址:</label>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="col-xs-8">
|
|
44
|
+
<input class="search_input input-font" v-model=model.f_address condition="f_user_name like '%{}%'"/>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
<div class="row app-row">
|
|
48
|
+
<div class="col-xs-4">
|
|
49
|
+
<img src="../../assets/用户电话.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
50
|
+
<label class="font text-left">用户电话:</label>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="col-xs-8">
|
|
53
|
+
<input class="search_input input-font" v-model=model.f_phone condition="f_user_name like '%{}%'"/>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
<div class="panel panel-default repair-info-content auto">
|
|
58
|
+
<div class="panel-body">
|
|
59
|
+
<div class="panel panel-default well" v-for="row in rows">
|
|
60
|
+
<div class="panel-body bg-info" style="padding: 10px">
|
|
61
|
+
<div class="row form-group">
|
|
62
|
+
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
63
|
+
<div class="row">
|
|
64
|
+
<div :class="{'text-danger': row.f_remindersign}" class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
65
|
+
报建编号: {{ row.f_apply_num }}<!--<span v-if="row.f_remindersign">(催单)</span>-->
|
|
66
|
+
</div>
|
|
67
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
68
|
+
用户姓名: {{ row.f_user_name }}
|
|
69
|
+
</div>
|
|
70
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
71
|
+
用户类型: {{ row.f_user_type }}
|
|
72
|
+
</div>
|
|
73
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
74
|
+
用户地址: {{ row.f_address }}
|
|
75
|
+
</div>
|
|
76
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
77
|
+
用户电话: {{ row.f_phone }}
|
|
78
|
+
<img src="../../assets/telphonesend.png" style="width: 12px;"
|
|
79
|
+
@click.stop.prevent='makeAPhoneCall(row.f_phone)'>
|
|
80
|
+
</div>
|
|
81
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
82
|
+
流程状态: {{ row.defname }}
|
|
83
|
+
</div>
|
|
84
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
85
|
+
报建类型: {{ row.f_apply_type }}
|
|
86
|
+
</div>
|
|
87
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
88
|
+
报建日期: {{ row.f_apply_date }}
|
|
89
|
+
</div>
|
|
90
|
+
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
94
|
+
<button type="button" name="button" class="btn btn-primary"
|
|
95
|
+
style="background-color:#499edf;float: right" @click="selected(row)">立即处理
|
|
96
|
+
</button>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
</template>
|
|
105
|
+
<script>
|
|
106
|
+
import Vue from 'vue'
|
|
107
|
+
import {HttpResetClass} from 'vue-client'
|
|
108
|
+
|
|
109
|
+
export default {
|
|
110
|
+
title: '待办报建列表',
|
|
111
|
+
data () {
|
|
112
|
+
return {
|
|
113
|
+
// rows: Object
|
|
114
|
+
rows: [],
|
|
115
|
+
model: {},
|
|
116
|
+
criteriaShow: false,
|
|
117
|
+
editshow: false,
|
|
118
|
+
row: {
|
|
119
|
+
type: Object,
|
|
120
|
+
default: {}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
props: {
|
|
125
|
+
sourcet: {
|
|
126
|
+
type: String,
|
|
127
|
+
default: '横屏'
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
methods: {
|
|
131
|
+
hidden () {
|
|
132
|
+
this.criteriaShow = !this.criteriaShow
|
|
133
|
+
},
|
|
134
|
+
selected (row) {
|
|
135
|
+
var _this = this
|
|
136
|
+
var pardate = {
|
|
137
|
+
_this: _this,
|
|
138
|
+
title: '报建待办详情',
|
|
139
|
+
safe: true
|
|
140
|
+
}
|
|
141
|
+
_this.$dispatch('gotoson', pardate)
|
|
142
|
+
row.canedit = true
|
|
143
|
+
if (_this.sourcet === '横屏') {
|
|
144
|
+
_this.$goto('placecontrolerapp', {row: row}, 'self', this.search)
|
|
145
|
+
} else {
|
|
146
|
+
_this.$goto('placecontrolerapp', {row: row}, 'self', this.search)
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
back () {
|
|
150
|
+
let _this = this
|
|
151
|
+
_this.$back()
|
|
152
|
+
},
|
|
153
|
+
search () {
|
|
154
|
+
// app正式运行程序
|
|
155
|
+
console.log('------app开始查询本地代办工单------')
|
|
156
|
+
var condition = "defname != '完工'"
|
|
157
|
+
|
|
158
|
+
console.log(JSON.stringify(this.model))
|
|
159
|
+
if (this.model.f_user_name) {
|
|
160
|
+
condition += ` and f_user_name like '%${this.model.f_user_name}%'`
|
|
161
|
+
}
|
|
162
|
+
if (this.model.f_address) {
|
|
163
|
+
condition += ` and f_address like '%${this.model.f_address}%'`
|
|
164
|
+
}
|
|
165
|
+
if (this.model.f_phone) {
|
|
166
|
+
condition += ` and f_phone like '%${this.model.f_phone}%'`
|
|
167
|
+
}
|
|
168
|
+
console.log(`login_user_id=>>>${Vue.user.id}`)
|
|
169
|
+
console.log(`分公司=>>>${Vue.user.f_fengongsi}`)
|
|
170
|
+
var param = {
|
|
171
|
+
condition: condition,
|
|
172
|
+
condValue: [],
|
|
173
|
+
data: {'id': Vue.user.id, 'fengongsi': Vue.user.f_fengongsi, f_product_id: 0}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
console.log(`param=>>>${JSON.stringify(param)}`)
|
|
177
|
+
let http = new HttpResetClass()
|
|
178
|
+
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`, {data: param}).then(res => {
|
|
179
|
+
console.log(`前台本地报建代办工单查询结果data=>>>${JSON.stringify(res.data)}`)
|
|
180
|
+
if (res.data) {
|
|
181
|
+
this.rows = res.data
|
|
182
|
+
} else {
|
|
183
|
+
this.rows = []
|
|
184
|
+
}
|
|
185
|
+
})
|
|
186
|
+
},
|
|
187
|
+
makeAPhoneCall (phoneNumber) {
|
|
188
|
+
this.$androidUtil.makeAPhoneCall(phoneNumber)
|
|
189
|
+
},
|
|
190
|
+
upload () {
|
|
191
|
+
this.$goto('up-load')
|
|
192
|
+
},
|
|
193
|
+
getpinpai () {
|
|
194
|
+
Vue.prototype.$pinpai = []
|
|
195
|
+
let data = {
|
|
196
|
+
items: 'id,f_meter_brand',
|
|
197
|
+
tablename: 't_gasbrand',
|
|
198
|
+
condition: `f_filialeids = '${Vue.user.f_orgids}'`,
|
|
199
|
+
orderitem: 'id'
|
|
200
|
+
}
|
|
201
|
+
new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: data}, {
|
|
202
|
+
resolveMsg: null,
|
|
203
|
+
rejectMsg: null
|
|
204
|
+
}).then(res => {
|
|
205
|
+
console.log('666666666666666666662')
|
|
206
|
+
console.log(JSON.stringify(res))
|
|
207
|
+
console.log(typeof res)
|
|
208
|
+
// console.log(JSON.stringify(res.data[0]))
|
|
209
|
+
let result = res.data
|
|
210
|
+
result.forEach(ress => {
|
|
211
|
+
Vue.prototype.$pinpai.push({
|
|
212
|
+
id: ress.id,
|
|
213
|
+
label: ress.f_meter_brand,
|
|
214
|
+
value: ress.f_meter_brand
|
|
215
|
+
})
|
|
216
|
+
})
|
|
217
|
+
})
|
|
218
|
+
},
|
|
219
|
+
getqijia () {
|
|
220
|
+
let data = {
|
|
221
|
+
items: 'f_price_name',
|
|
222
|
+
tablename: 't_stairprice',
|
|
223
|
+
condition: `f_filialeids = '${Vue.user.f_orgids}' and f_state= '有效' and getdate()>=f_perform_date and getdate()<=f_end_date `,
|
|
224
|
+
orderitem: 'id'
|
|
225
|
+
}
|
|
226
|
+
Vue.prototype.$qijia = []
|
|
227
|
+
new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: data}, {
|
|
228
|
+
resolveMsg: null,
|
|
229
|
+
rejectMsg: null
|
|
230
|
+
}).then(res => {
|
|
231
|
+
console.log('66666666666666666666')
|
|
232
|
+
console.log(JSON.stringify(res))
|
|
233
|
+
console.log(typeof res)
|
|
234
|
+
// console.log(JSON.stringify(res.data[0]))
|
|
235
|
+
let result = res.data
|
|
236
|
+
result.forEach(ress => {
|
|
237
|
+
Vue.prototype.$qijia.push({
|
|
238
|
+
label: ress.f_price_name,
|
|
239
|
+
value: ress.f_price_name
|
|
240
|
+
})
|
|
241
|
+
})
|
|
242
|
+
})
|
|
243
|
+
},
|
|
244
|
+
getxinghao () {
|
|
245
|
+
let data = {
|
|
246
|
+
items: 'gm.f_meter_style,gb.id',
|
|
247
|
+
tablename: 't_gasmodel gm left join t_gasbrand gb on gm.f_gasbrand_id=gb.id',
|
|
248
|
+
condition: `gb.f_filialeids = '${Vue.user.f_orgids}'`,
|
|
249
|
+
orderitem: 'gm.id'
|
|
250
|
+
}
|
|
251
|
+
Vue.prototype.$xinghao = []
|
|
252
|
+
new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: data}, {
|
|
253
|
+
resolveMsg: null,
|
|
254
|
+
rejectMsg: null
|
|
255
|
+
}).then(res => {
|
|
256
|
+
console.log('66666666666666666666')
|
|
257
|
+
console.log(JSON.stringify(res))
|
|
258
|
+
console.log(typeof res)
|
|
259
|
+
// console.log(JSON.stringify(res.data[0]))
|
|
260
|
+
let result = res.data
|
|
261
|
+
result.forEach(ress => {
|
|
262
|
+
Vue.prototype.$xinghao.push({
|
|
263
|
+
id: ress.id,
|
|
264
|
+
label: ress.f_meter_style,
|
|
265
|
+
value: ress.f_meter_style
|
|
266
|
+
})
|
|
267
|
+
})
|
|
268
|
+
})
|
|
269
|
+
},
|
|
270
|
+
addactive (modify) {
|
|
271
|
+
this.$showMessage('是否开启一个新的流程?', ['confirm', 'cancel']).then((res) => {
|
|
272
|
+
if (res === 'confirm') {
|
|
273
|
+
let http = new HttpResetClass()
|
|
274
|
+
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyGetProcessID`, {
|
|
275
|
+
data: {
|
|
276
|
+
filename: '鄂州报建流程',
|
|
277
|
+
start_activity: modify
|
|
278
|
+
}
|
|
279
|
+
}).then(res => {
|
|
280
|
+
let data = {
|
|
281
|
+
f_process_id: res.data.f_process_id,
|
|
282
|
+
f_product_id: res.data.f_product_id,
|
|
283
|
+
start_activity: modify,
|
|
284
|
+
user: Vue.user,
|
|
285
|
+
defname: modify
|
|
286
|
+
}
|
|
287
|
+
setTimeout(() => {
|
|
288
|
+
}, 200)
|
|
289
|
+
this.selected(data)
|
|
290
|
+
// http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/newaddApplyproduct`, {data: data})
|
|
291
|
+
})
|
|
292
|
+
}
|
|
293
|
+
})
|
|
294
|
+
},
|
|
295
|
+
async getApplyConfig() {
|
|
296
|
+
let http = new HttpResetClass()
|
|
297
|
+
return await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyGetConfigs`, {data: Vue.user}, {
|
|
298
|
+
resolveMsg: null,
|
|
299
|
+
rejectMsg: null
|
|
300
|
+
}
|
|
301
|
+
)
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
ready () {
|
|
305
|
+
this.search()
|
|
306
|
+
var _this = this
|
|
307
|
+
this.timeoutHandle = window.setInterval(function () {
|
|
308
|
+
_this.search()
|
|
309
|
+
}, 6000000)// 60000
|
|
310
|
+
this.getpinpai()
|
|
311
|
+
this.getqijia()
|
|
312
|
+
this.getxinghao()
|
|
313
|
+
},
|
|
314
|
+
async created() {
|
|
315
|
+
// eslint-disable-next-line no-undef
|
|
316
|
+
let result = await this.getApplyConfig()
|
|
317
|
+
console.log("当前获取的值", JSON.stringify(result))
|
|
318
|
+
if (result.data.code === 500) {
|
|
319
|
+
this.$showMessage('获取流程配置文件失败,请联系系统管理员')
|
|
320
|
+
return
|
|
321
|
+
}
|
|
322
|
+
let data = result.data.workflow_vue
|
|
323
|
+
console.log('前台存入缓存中的data=>' + JSON.stringify(data))
|
|
324
|
+
Vue.workflow_vue = Vue.prototype.$workflow_vue = data
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
</script>
|
|
328
|
+
|
|
329
|
+
<style>
|
|
330
|
+
.app-row {
|
|
331
|
+
background-color: white;
|
|
332
|
+
padding: 10px 10px 0 10px;
|
|
333
|
+
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.search_input {
|
|
337
|
+
border: 0;
|
|
338
|
+
outline: none;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.button_shrink_top {
|
|
342
|
+
width: 30px;
|
|
343
|
+
height: 30px;
|
|
344
|
+
background-size: 30px 30px;
|
|
345
|
+
background-image: url("../../../static/newStyle/stretch_top.png")
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.button_shrink_bottom {
|
|
349
|
+
width: 30px;
|
|
350
|
+
height: 30px;
|
|
351
|
+
background-size: 30px 30px;
|
|
352
|
+
background-image: url("../../../static/newStyle/stretch_bottom.png")
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.app-botton {
|
|
356
|
+
position: fixed;
|
|
357
|
+
background: #87b2dd;
|
|
358
|
+
color: #FFF;
|
|
359
|
+
padding: 8px;
|
|
360
|
+
text-align: center;
|
|
361
|
+
font-size: 1.2em;
|
|
362
|
+
z-index: 10;
|
|
363
|
+
opacity: 0.5;
|
|
364
|
+
bottom: 50px;
|
|
365
|
+
margin-top: -10px;
|
|
366
|
+
height: 40px;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.class-a {
|
|
370
|
+
border: 1px solid red;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.padd-div-shu {
|
|
374
|
+
padding-bottom: 5px;
|
|
375
|
+
}
|
|
376
|
+
</style>
|