apply-clients 3.5.4-99 → 3.5.5-10

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.
Files changed (54) hide show
  1. package/build/dev-server.js +9 -6
  2. package/package.json +1 -1
  3. package/src/App.vue +25 -25
  4. package/src/apply.js +2 -0
  5. package/src/components/android/AppTakePic.vue +182 -182
  6. package/src/components/android/Process/AppExplorationUser.vue +508 -508
  7. package/src/components/product/Material/MaterialDetailed.vue +268 -268
  8. package/src/components/product/Process/Processes/contractModel.vue +424 -0
  9. package/src/components/product/ServiceView.vue +1028 -1028
  10. package/src/filiale/ancheng/android/AppSign.vue +149 -149
  11. package/src/filiale/ancheng/android/AppTakePic.vue +143 -143
  12. package/src/filiale/ancheng/android.js +7 -7
  13. package/src/filiale/baiyin/android/ByAddMaterialScience.vue +858 -858
  14. package/src/filiale/fugou/android/AppAddMaterialScience.vue +20 -16
  15. package/src/filiale/fugou/android/AppDevicesManagement.vue +519 -519
  16. package/src/filiale/fugou/android/AppInstallationDetails.vue +541 -541
  17. package/src/filiale/fugou/android/AppServiceControl.vue +1836 -1845
  18. package/src/filiale/fugou/android/printCharge.vue +162 -162
  19. package/src/filiale/fugou/android.js +16 -16
  20. package/src/filiale/fugou/pc/ExplorationSelect.vue +525 -525
  21. package/src/filiale/fugou/pc/ServiceControl.vue +1705 -1705
  22. package/src/filiale/fugou/pc/ServiceView.vue +941 -941
  23. package/src/filiale/fugou/pc/SupervisoryServiceControl.vue +881 -0
  24. package/src/filiale/fugou/pc/devicesManagement.vue +483 -483
  25. package/src/filiale/fugou/pc/printChargepc.vue +148 -148
  26. package/src/filiale/fugou/pc.js +17 -16
  27. package/src/filiale/gongyi/android/AppAddMaterialScience.vue +493 -493
  28. package/src/filiale/hongda/pc/ApplyDetailsList.vue +329 -329
  29. package/src/filiale/qianneng/android/AppChargeManagement.vue +686 -686
  30. package/src/filiale/qianneng/android/AppServiceView.vue +795 -795
  31. package/src/filiale/qianneng/android.js +15 -15
  32. package/src/filiale/qianneng/pc/ApplyChargeList.vue +639 -639
  33. package/src/filiale/qianneng/pc/ApplyMaterialDetailed.vue +261 -261
  34. package/src/filiale/qianneng/pc/Applybatchdispatch.vue +769 -769
  35. package/src/filiale/qianneng/pc/Applydetail.vue +417 -417
  36. package/src/filiale/qianneng/pc/InstallFunction.vue +188 -188
  37. package/src/filiale/qianneng/pc/InstallInfoSelect.vue +434 -434
  38. package/src/filiale/qianneng/pc/ServiceControl.vue +1382 -1382
  39. package/src/filiale/qianneng/pc/StopApplyList.vue +334 -334
  40. package/src/filiale/qianneng/pc/SupervisoryList.vue +396 -396
  41. package/src/filiale/qianneng/pc/chargeManagement.vue +813 -813
  42. package/src/filiale/qianneng/pc.js +29 -29
  43. package/src/filiale/ruihua/pc/ServiceControl.vue +1967 -1966
  44. package/src/filiale/yangchunboneng/android/AppChargeManagement.vue +520 -520
  45. package/src/filiale/yangchunboneng/android/AppDevicesManagement.vue +645 -645
  46. package/src/filiale/yangchunboneng/android/AppServiceControl.vue +1703 -1706
  47. package/src/filiale/yangchunboneng/pc/ExplorationSelect.vue +547 -547
  48. package/src/filiale/yangchunboneng/pc/ServiceControl.vue +2112 -2115
  49. package/src/filiale/yangchunboneng/pc/ServiceView.vue +1007 -1007
  50. package/src/filiale/yangchunboneng/pc/SupervisoryList.vue +605 -605
  51. package/src/filiale/yangchunboneng/pc/SupervisoryListNew.vue +683 -683
  52. package/src/filiale/yangchunboneng/pc/chargeManagement.vue +1053 -1052
  53. package/src/filiale/yangchunboneng/pc/devicesManagement.vue +574 -574
  54. package/src/main.js +23 -23
@@ -1,434 +1,434 @@
1
- <template>
2
- <div>
3
- <criteria-paged :model="model" v-ref:cp>
4
- <criteria partial='criteria' @condition-changed='search' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <div class="form-group col-sm-3">
8
- <label class="font_normal_body">工程编号:</label>
9
- <input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
10
- v-on:keyup.enter="$parent.$parent.search()"
11
- condition="f_apply_num like '%{}%'">
12
- </div>
13
- <div class="form-group col-sm-3">
14
- <label class="font_normal_body">客户名称:</label>
15
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
16
- v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
17
- </div>
18
- <div class="form-group col-sm-3">
19
- <label class="font_normal_body">用户地址:</label>
20
- <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
21
- v-on:keyup.enter="$parent.$parent.search()"
22
- condition="f_address like '%{}%'">
23
- </div>
24
- <div class="form-group col-sm-3 button-range">
25
- <export-excel :data="$parent.$parent.getCondition"
26
- :field="$parent.$parent.getfield"
27
- sqlurl="rs/logic/applyExportfile"
28
- sql-name="checkuserfunction"
29
- template-name='报建管理信息导出'
30
- :choose-col="true"></export-excel>
31
- <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
32
- <button class="button_search button_spacing" @click="$parent.$parent.loadPage()">返回</button>
33
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
34
- <div
35
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
36
- @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
37
- class="button_spacing"
38
- style="float: right">
39
- </div>
40
- </div>
41
- </div>
42
- <div class="row" v-show="$parent.$parent.criteriaShow">
43
- <div class="form-group col-sm-3">
44
- <label class="font_normal_body">组织机构:</label>
45
- <res-select
46
- restype='organization'
47
- :initresid='$parent.$parent.curorgid'
48
- @res-select="$parent.$parent.getorg"
49
- is-mul="false"
50
- ></res-select>
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_userinfo_code"
55
- v-on:keyup.enter="$parent.$parent.search()"
56
- condition="u.f_userinfo_code like '%{}%'">
57
- </div>
58
- <div class="form-group col-sm-3">
59
- <label class="font_normal_body">客户电话:</label>
60
- <input type="text" style="width:60%" class="input_search" placeholder='客户电话' v-model="model.f_phone"
61
- v-on:keyup.enter="$parent.$parent.search()"
62
- condition="u.f_phone like '%{}%'">
63
- </div>
64
- <div class="form-group col-sm-3">
65
- <label class="font_normal_body">入户证号:</label>
66
- <input type="text" style="width:60%" class="input_search" placeholder='入户证号' v-model="model.f_entry_number"
67
- v-on:keyup.enter="$parent.$parent.search()"
68
- condition="u.f_entry_number like '%{}%'">
69
- </div>
70
- <div class="form-group col-sm-3">
71
- <label class="font_normal_body">报建类型:</label>
72
- <v-select
73
- v-model="model.f_apply_type"
74
- placeholder='报建类型'
75
- condition="f_apply_type = '{}'"
76
- :value.sync="model.f_apply_type"
77
- :options='$parent.$parent.applytype'
78
- class="select select_list"
79
- :value-single="true"
80
- close-on-select ></v-select>
81
- </div>
82
- <div class="form-group col-sm-3">
83
- <label class="font_normal_body">办理环节:</label>
84
- <v-select
85
- v-model="model.defname"
86
- placeholder='办理环节'
87
- condition="act.defname = '{}'"
88
- :value.sync="model.defname"
89
- :options='$parent.$parent.defnames'
90
- class="select select_list"
91
- :value-single="true"
92
- close-on-select ></v-select>
93
- </div>
94
- <div class="form-group col-sm-3">
95
- <label class="font_normal_body">报建性质:</label>
96
- <v-select
97
- v-model="model.f_apply_nature"
98
- placeholder='报建性质'
99
- condition="f_apply_nature = '{}'"
100
- :value.sync="model.f_apply_nature"
101
- :options='$parent.$parent.applyNatures'
102
- class="select select_list"
103
- :value-single="true"
104
- close-on-select ></v-select>
105
- </div>
106
- <div class="form-group col-sm-3">
107
- <label for="startDate" class="font_normal_body">开始时间:</label>
108
- <datepicker id="startDate" placeholder="开始日期"
109
- style="width: 60%!important;"
110
- v-model="model.startDate"
111
- :value.sync="model.startDate"
112
- :format="'yyyy-MM-dd 00:00:00'"
113
- :show-reset-button="true"
114
- condition="f_apply_date >= '{}'">
115
- </datepicker>
116
- </div>
117
- <div class="form-group col-sm-3">
118
- <label for="endDate" class="font_normal_body">结束时间:</label>
119
- <datepicker id="endDate" placeholder="结束日期"
120
- style="width: 60%!important;"
121
- v-model="model.endDate"
122
- :value.sync="model.endDate"
123
- :format="'yyyy-MM-dd 23:59:59'"
124
- :show-reset-button="true"
125
- condition="f_apply_date <= '{}'">
126
- </datepicker>
127
- </div>
128
- <div class="form-group col-sm-3">
129
- <label class="font_normal_body">客户类型:</label>
130
- <v-select
131
- v-model="model.f_user_type"
132
- placeholder='客户类型'
133
- condition="f_user_type = '{}'"
134
- :value.sync="model.f_user_type"
135
- :options='$parent.$parent.usertype'
136
- class="select select_list"
137
- :value-single="true"
138
- close-on-select ></v-select>
139
- </div>
140
- <div class="form-group col-sm-3">
141
- <label class="font_normal_body">行业:</label>
142
- <input type="text" style="width:60%" class="input_search" v-model="model.f_industry"
143
- v-on:keyup.enter="$parent.$parent.search()" condition="f_industry like '%{}%'" placeholder='行业'>
144
- </div>
145
- <div class="form-group col-sm-3">
146
- <label class="font_normal_body">用气性质:</label>
147
- <v-select
148
- v-model="model.f_gas_nature"
149
- placeholder='用气性质'
150
- condition="f_gas_nature = '{}'"
151
- :value.sync="model.f_gas_nature"
152
- :options='$parent.$parent.gasNatures'
153
- class="select select_list"
154
- :value-single="true"
155
- close-on-select ></v-select>
156
- </div>
157
- <div class="form-group col-sm-3">
158
- <label class="font_normal_body">备注:</label>
159
- <input type="text"
160
- style="width:60%"
161
- class="input_search"
162
- v-model="model.f_apply_remarks"
163
- v-on:keyup.enter="$parent.$parent.search()"
164
- condition="f_apply_remarks like '%{}%'" placeholder='备注'>
165
- </div>
166
- </div>
167
- </div>
168
- </criteria>
169
- <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy">
170
- <template partial='head'>
171
- <tr class="title">
172
- <th style="white-space: nowrap;">序号</th>
173
- <th style="white-space: nowrap;">操作</th>
174
- <th style="white-space: nowrap;">工程编号</th>
175
- <th style="white-space: nowrap;">客户编号</th>
176
- <th style="white-space: nowrap;">客户名称</th>
177
- <th style="white-space: nowrap;">地址</th>
178
- <th style="white-space: nowrap;">电话</th>
179
- <th style="white-space: nowrap;">入户证号</th>
180
- <th style="white-space: nowrap;">来源</th>
181
- <th style="white-space: nowrap;">报建类型</th>
182
- <th style="white-space: nowrap;">办理环节</th>
183
- <th style="white-space: nowrap;">流程状态</th>
184
- <th style="white-space: nowrap;">报建日期</th>
185
- <th style="white-space: nowrap;">备注</th>
186
- </tr>
187
- </template>
188
- <template partial='body'>
189
- <tr>
190
- <td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center;">
191
- <nobr>{{$index+1}}</nobr>
192
- </td>
193
- <td style="text-align: center;">
194
- <dropdown>
195
- <button @click="$parent.$parent.$parent.checkfuncs(row)" type="button" data-toggle="dropdown" style="border: 0px;background: none;">
196
- <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
197
- </button>
198
- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-left">
199
- <li v-for="(index,func) in $parent.$parent.$parent.funcs" v-if="$parent.$parent.$parent.$parent.showFunc(func.personexpression)">
200
- <a href="#" @click="$parent.$parent.$parent.$parent.func(func,row)">{{func.title}}</a>
201
- </li>
202
- <li v-if="row.f_apply_type !='居民团体用户报建'">
203
- <a href="#" @click="$parent.$parent.$parent.showPrintmodel1(row)" >打印派工单</a>
204
- </li>
205
- </ul>
206
- </dropdown>
207
- </td>
208
- <td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center;">
209
- <nobr>{{row.f_apply_num}}</nobr>
210
- </td>
211
- <td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center;">
212
- <nobr>{{row.f_userinfo_code}}</nobr>
213
- </td>
214
- <td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center;">
215
- <nobr>{{row.f_user_name}}</nobr>
216
- </td>
217
- <td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center;">
218
- <nobr>{{row.f_address}}</nobr>
219
- </td>
220
- <td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center;">
221
- <nobr>{{row.f_phone}}</nobr>
222
- </td>
223
- <td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center;">
224
- <nobr>{{row.f_entry_number}}</nobr>
225
- </td>
226
- <td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center;">
227
- <nobr>{{row.f_apply_source}}</nobr>
228
- </td>
229
- <td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center;">
230
- <nobr>{{row.f_apply_type}}</nobr>
231
- </td>
232
- <td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center;">
233
- <nobr>{{row.defname}}</nobr>
234
- </td>
235
- <td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center;">
236
- <nobr>{{row.f_sub_state}}</nobr>
237
- </td>
238
- <td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center;">
239
- <nobr>{{row.f_apply_date}}</nobr>
240
- </td>
241
- <td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center;">
242
- <nobr>{{row.f_apply_remarks}}</nobr>
243
- </td>
244
- </tr>
245
- </template>
246
- </data-grid>
247
- </criteria-paged>
248
- <modal v-if="showPrint" :show.sync="showPrint" v-ref:modal :large="true" :backdrop="false" title="打印预览">
249
- <header slot="modal-header" class="modal-header">
250
- <button type="button" class="close" @click="closePrint"><span>&times;</span></button>
251
- <h4 class="modal-title">打印预览</h4>
252
- </header>
253
- <article slot="modal-body" class="modal-body clearfix">
254
- <!--开通卡-->
255
- <apply-print-activatecard :selectdata="showdatapr" :type="type" v-ref:print></apply-print-activatecard>
256
- </article>
257
- <footer slot="modal-footer" class="modal-footer">
258
- <button type="button" class="btn btn-primary" @click="print()">打印</button>
259
- </footer>
260
- </modal>
261
- </div>
262
- </template>
263
- <script>
264
- import {PagedList} from 'vue-client'
265
- import {isEmpty} from '../../../components/Util'
266
- export default {
267
- title: '报建业务信息',
268
- props: ['showData'],
269
- data () {
270
- return {
271
- model: new PagedList('rs/sql/checkuserfunction', 20, {
272
- data: {
273
- orgid: this.$login.f.orgid
274
- }
275
- }),
276
- funcs: [], // 功能列表
277
- curorgid: [this.$login.f.orgid],
278
- applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
279
- defnames: this.$appdata.getParam('报建明细-办理环节')?[{label: '全部', value: ''}, ...this.$appdata.getParam('报建明细-办理环节')]:[{label: '全部', value: ''}], // 流程节点
280
- gasNatures: [
281
- {label: '全部',value: ''},
282
- ...this.$appdata.getParam('用气性质')
283
- ],
284
- usertype: [{label: '全部', value: ''},{label: '民用', value: '民用'},{label: '非民用', value: '非民用'}],//客户类型
285
- applyNatures: [{label: '全部', value: ''}], // 报建性质
286
- criteriaShow: false,
287
- showPrint:false,
288
- showdatapr:{},
289
- getfield: {
290
- 'f_apply_num': '工程编号',
291
- 'f_userinfo_code': '客户编号',
292
- 'f_user_name': '客户名称',
293
- 'f_address': '地址',
294
- 'f_phone': '电话',
295
- 'f_entry_number': '入户证号',
296
- 'f_apply_source': '来源',
297
- 'f_apply_type': '报建类型',
298
- 'f_apply_nature': '报建性质',
299
- 'defname': '办理环节',
300
- 'f_sub_state': '流程状态',
301
- 'f_apply_date': '报建日期',
302
- 'f_apply_remarks': '备注'
303
- },
304
- // 打印格式
305
- type:'PRINT'
306
- }
307
- },
308
- ready () {
309
- // 调用查询
310
- this.search()
311
- },
312
- methods: {
313
- check (val) {
314
- this.$dispatch('apply', val)
315
- },
316
- // 查询
317
- search () {
318
- this.$dispatch('search')
319
- },
320
- loadPage () {
321
- this.$dispatch('loadPage')
322
- },
323
- // 获取配置
324
- async checkfuncs (row) {
325
-
326
- this.funcs = []
327
- let functions = JSON.parse(JSON.stringify(this.$function_vue.functions))
328
-
329
- for (const item of functions) {
330
- // 显示类型
331
- if (item.showApplyTypes) {
332
- if (item.showApplyTypes.indexOf(row.f_apply_type) === -1) {
333
- continue
334
- }
335
- }
336
- // 显示节点
337
- if (item.showDefnames) {
338
- if (item.showDefnames.indexOf(row.defname) === -1) {
339
- continue
340
- }
341
- }
342
- // 显示设备
343
- if (item.device && item.device !== 'pc') {
344
- continue
345
- }
346
- // if (item.device || item.device !== 'pc') {
347
- // continue
348
- // }
349
- this.funcs.push(item)
350
- }
351
- },
352
- // 点击功能操作
353
- func (func, row) {
354
- this.$dispatch('func', func, row)
355
- },
356
- // 权限控制
357
- showFunc (personexpression) {
358
-
359
- if (isEmpty(personexpression)) {
360
- return true
361
- }
362
-
363
- let mark = personexpression.charAt(0)
364
-
365
- let str = personexpression.substring(2, personexpression.length-1)
366
-
367
- if (mark === 'D' && this.$login.f.f_department_name.includes(str)) {
368
- return true
369
- }
370
- if (mark === 'R' && this.$login.f.f_role_name.includes(str)) {
371
- return true
372
- }
373
- if (mark === 'P' && this.$login.f.id.includes(str)) {
374
- return true
375
- }
376
-
377
- return false
378
- },
379
- async applyTypeChange () {
380
- if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
381
- let res = await this.$resetpost('rs/logic/getDefnameByType',
382
- { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
383
- {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
384
- )
385
-
386
- this.defnames = [{label: '全部', value: ''}, ...res.data]
387
-
388
- this.applyNatures = isEmpty(this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)]
389
- } else {
390
- this.defnames = [{label: '全部', value: ''}]
391
-
392
- this.applyNatures = [{label: '全部', value: ''}]
393
- }
394
- },
395
- clear () {
396
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
397
- this.$refs.cp.$refs.cri.model[key] = null
398
- })
399
- },
400
- getorg (val) {
401
- if (val.length <= 0) {
402
- return
403
- }
404
- this.model.params.data.orgid = val[0]
405
- },
406
- showPrintmodel1 (row) {
407
- this.showPrint = true
408
- this.showdatapr = row
409
- },
410
- closePrint () {
411
- this.showPrint = false
412
- },
413
- print () {
414
- this.$refs.print.$refs.print.PrintTable()
415
- this.closePrint()
416
- }
417
- },
418
- computed: {
419
- getCondition () {
420
- return {
421
- condition: this.model.condition,
422
- data: {
423
- id: this.$login.f.id,
424
- orgid: this.$login.f.orgid
425
- }
426
- }
427
- },
428
- },
429
- events: {
430
- }
431
- }
432
- </script>
433
- <style scoped>
434
- </style>
1
+ <template>
2
+ <div>
3
+ <criteria-paged :model="model" v-ref:cp>
4
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div class="form-group col-sm-3">
8
+ <label class="font_normal_body">工程编号:</label>
9
+ <input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
10
+ v-on:keyup.enter="$parent.$parent.search()"
11
+ condition="f_apply_num like '%{}%'">
12
+ </div>
13
+ <div class="form-group col-sm-3">
14
+ <label class="font_normal_body">客户名称:</label>
15
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
16
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
17
+ </div>
18
+ <div class="form-group col-sm-3">
19
+ <label class="font_normal_body">用户地址:</label>
20
+ <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
21
+ v-on:keyup.enter="$parent.$parent.search()"
22
+ condition="f_address like '%{}%'">
23
+ </div>
24
+ <div class="form-group col-sm-3 button-range">
25
+ <export-excel :data="$parent.$parent.getCondition"
26
+ :field="$parent.$parent.getfield"
27
+ sqlurl="rs/logic/applyExportfile"
28
+ sql-name="checkuserfunction"
29
+ template-name='报建管理信息导出'
30
+ :choose-col="true"></export-excel>
31
+ <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
32
+ <button class="button_search button_spacing" @click="$parent.$parent.loadPage()">返回</button>
33
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
34
+ <div
35
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
36
+ @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
37
+ class="button_spacing"
38
+ style="float: right">
39
+ </div>
40
+ </div>
41
+ </div>
42
+ <div class="row" v-show="$parent.$parent.criteriaShow">
43
+ <div class="form-group col-sm-3">
44
+ <label class="font_normal_body">组织机构:</label>
45
+ <res-select
46
+ restype='organization'
47
+ :initresid='$parent.$parent.curorgid'
48
+ @res-select="$parent.$parent.getorg"
49
+ is-mul="false"
50
+ ></res-select>
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_userinfo_code"
55
+ v-on:keyup.enter="$parent.$parent.search()"
56
+ condition="u.f_userinfo_code like '%{}%'">
57
+ </div>
58
+ <div class="form-group col-sm-3">
59
+ <label class="font_normal_body">客户电话:</label>
60
+ <input type="text" style="width:60%" class="input_search" placeholder='客户电话' v-model="model.f_phone"
61
+ v-on:keyup.enter="$parent.$parent.search()"
62
+ condition="u.f_phone like '%{}%'">
63
+ </div>
64
+ <div class="form-group col-sm-3">
65
+ <label class="font_normal_body">入户证号:</label>
66
+ <input type="text" style="width:60%" class="input_search" placeholder='入户证号' v-model="model.f_entry_number"
67
+ v-on:keyup.enter="$parent.$parent.search()"
68
+ condition="u.f_entry_number like '%{}%'">
69
+ </div>
70
+ <div class="form-group col-sm-3">
71
+ <label class="font_normal_body">报建类型:</label>
72
+ <v-select
73
+ v-model="model.f_apply_type"
74
+ placeholder='报建类型'
75
+ condition="f_apply_type = '{}'"
76
+ :value.sync="model.f_apply_type"
77
+ :options='$parent.$parent.applytype'
78
+ class="select select_list"
79
+ :value-single="true"
80
+ close-on-select ></v-select>
81
+ </div>
82
+ <div class="form-group col-sm-3">
83
+ <label class="font_normal_body">办理环节:</label>
84
+ <v-select
85
+ v-model="model.defname"
86
+ placeholder='办理环节'
87
+ condition="act.defname = '{}'"
88
+ :value.sync="model.defname"
89
+ :options='$parent.$parent.defnames'
90
+ class="select select_list"
91
+ :value-single="true"
92
+ close-on-select ></v-select>
93
+ </div>
94
+ <div class="form-group col-sm-3">
95
+ <label class="font_normal_body">报建性质:</label>
96
+ <v-select
97
+ v-model="model.f_apply_nature"
98
+ placeholder='报建性质'
99
+ condition="f_apply_nature = '{}'"
100
+ :value.sync="model.f_apply_nature"
101
+ :options='$parent.$parent.applyNatures'
102
+ class="select select_list"
103
+ :value-single="true"
104
+ close-on-select ></v-select>
105
+ </div>
106
+ <div class="form-group col-sm-3">
107
+ <label for="startDate" class="font_normal_body">开始时间:</label>
108
+ <datepicker id="startDate" placeholder="开始日期"
109
+ style="width: 60%!important;"
110
+ v-model="model.startDate"
111
+ :value.sync="model.startDate"
112
+ :format="'yyyy-MM-dd 00:00:00'"
113
+ :show-reset-button="true"
114
+ condition="f_apply_date >= '{}'">
115
+ </datepicker>
116
+ </div>
117
+ <div class="form-group col-sm-3">
118
+ <label for="endDate" class="font_normal_body">结束时间:</label>
119
+ <datepicker id="endDate" placeholder="结束日期"
120
+ style="width: 60%!important;"
121
+ v-model="model.endDate"
122
+ :value.sync="model.endDate"
123
+ :format="'yyyy-MM-dd 23:59:59'"
124
+ :show-reset-button="true"
125
+ condition="f_apply_date <= '{}'">
126
+ </datepicker>
127
+ </div>
128
+ <div class="form-group col-sm-3">
129
+ <label class="font_normal_body">客户类型:</label>
130
+ <v-select
131
+ v-model="model.f_user_type"
132
+ placeholder='客户类型'
133
+ condition="f_user_type = '{}'"
134
+ :value.sync="model.f_user_type"
135
+ :options='$parent.$parent.usertype'
136
+ class="select select_list"
137
+ :value-single="true"
138
+ close-on-select ></v-select>
139
+ </div>
140
+ <div class="form-group col-sm-3">
141
+ <label class="font_normal_body">行业:</label>
142
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_industry"
143
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_industry like '%{}%'" placeholder='行业'>
144
+ </div>
145
+ <div class="form-group col-sm-3">
146
+ <label class="font_normal_body">用气性质:</label>
147
+ <v-select
148
+ v-model="model.f_gas_nature"
149
+ placeholder='用气性质'
150
+ condition="f_gas_nature = '{}'"
151
+ :value.sync="model.f_gas_nature"
152
+ :options='$parent.$parent.gasNatures'
153
+ class="select select_list"
154
+ :value-single="true"
155
+ close-on-select ></v-select>
156
+ </div>
157
+ <div class="form-group col-sm-3">
158
+ <label class="font_normal_body">备注:</label>
159
+ <input type="text"
160
+ style="width:60%"
161
+ class="input_search"
162
+ v-model="model.f_apply_remarks"
163
+ v-on:keyup.enter="$parent.$parent.search()"
164
+ condition="f_apply_remarks like '%{}%'" placeholder='备注'>
165
+ </div>
166
+ </div>
167
+ </div>
168
+ </criteria>
169
+ <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy">
170
+ <template partial='head'>
171
+ <tr class="title">
172
+ <th style="white-space: nowrap;">序号</th>
173
+ <th style="white-space: nowrap;">操作</th>
174
+ <th style="white-space: nowrap;">工程编号</th>
175
+ <th style="white-space: nowrap;">客户编号</th>
176
+ <th style="white-space: nowrap;">客户名称</th>
177
+ <th style="white-space: nowrap;">地址</th>
178
+ <th style="white-space: nowrap;">电话</th>
179
+ <th style="white-space: nowrap;">入户证号</th>
180
+ <th style="white-space: nowrap;">来源</th>
181
+ <th style="white-space: nowrap;">报建类型</th>
182
+ <th style="white-space: nowrap;">办理环节</th>
183
+ <th style="white-space: nowrap;">流程状态</th>
184
+ <th style="white-space: nowrap;">报建日期</th>
185
+ <th style="white-space: nowrap;">备注</th>
186
+ </tr>
187
+ </template>
188
+ <template partial='body'>
189
+ <tr>
190
+ <td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center;">
191
+ <nobr>{{$index+1}}</nobr>
192
+ </td>
193
+ <td style="text-align: center;">
194
+ <dropdown>
195
+ <button @click="$parent.$parent.$parent.checkfuncs(row)" type="button" data-toggle="dropdown" style="border: 0px;background: none;">
196
+ <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
197
+ </button>
198
+ <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-left">
199
+ <li v-for="(index,func) in $parent.$parent.$parent.funcs" v-if="$parent.$parent.$parent.$parent.showFunc(func.personexpression)">
200
+ <a href="#" @click="$parent.$parent.$parent.$parent.func(func,row)">{{func.title}}</a>
201
+ </li>
202
+ <li v-if="row.f_apply_type !='居民团体用户报建'">
203
+ <a href="#" @click="$parent.$parent.$parent.showPrintmodel1(row)" >打印派工单</a>
204
+ </li>
205
+ </ul>
206
+ </dropdown>
207
+ </td>
208
+ <td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center;">
209
+ <nobr>{{row.f_apply_num}}</nobr>
210
+ </td>
211
+ <td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center;">
212
+ <nobr>{{row.f_userinfo_code}}</nobr>
213
+ </td>
214
+ <td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center;">
215
+ <nobr>{{row.f_user_name}}</nobr>
216
+ </td>
217
+ <td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center;">
218
+ <nobr>{{row.f_address}}</nobr>
219
+ </td>
220
+ <td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center;">
221
+ <nobr>{{row.f_phone}}</nobr>
222
+ </td>
223
+ <td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center;">
224
+ <nobr>{{row.f_entry_number}}</nobr>
225
+ </td>
226
+ <td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center;">
227
+ <nobr>{{row.f_apply_source}}</nobr>
228
+ </td>
229
+ <td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center;">
230
+ <nobr>{{row.f_apply_type}}</nobr>
231
+ </td>
232
+ <td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center;">
233
+ <nobr>{{row.defname}}</nobr>
234
+ </td>
235
+ <td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center;">
236
+ <nobr>{{row.f_sub_state}}</nobr>
237
+ </td>
238
+ <td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center;">
239
+ <nobr>{{row.f_apply_date}}</nobr>
240
+ </td>
241
+ <td @dblclick="$parent.$parent.$parent.check(row)" style="text-align: center;">
242
+ <nobr>{{row.f_apply_remarks}}</nobr>
243
+ </td>
244
+ </tr>
245
+ </template>
246
+ </data-grid>
247
+ </criteria-paged>
248
+ <modal v-if="showPrint" :show.sync="showPrint" v-ref:modal :large="true" :backdrop="false" title="打印预览">
249
+ <header slot="modal-header" class="modal-header">
250
+ <button type="button" class="close" @click="closePrint"><span>&times;</span></button>
251
+ <h4 class="modal-title">打印预览</h4>
252
+ </header>
253
+ <article slot="modal-body" class="modal-body clearfix">
254
+ <!--开通卡-->
255
+ <apply-print-activatecard :selectdata="showdatapr" :type="type" v-ref:print></apply-print-activatecard>
256
+ </article>
257
+ <footer slot="modal-footer" class="modal-footer">
258
+ <button type="button" class="btn btn-primary" @click="print()">打印</button>
259
+ </footer>
260
+ </modal>
261
+ </div>
262
+ </template>
263
+ <script>
264
+ import {PagedList} from 'vue-client'
265
+ import {isEmpty} from '../../../components/Util'
266
+ export default {
267
+ title: '报建业务信息',
268
+ props: ['showData'],
269
+ data () {
270
+ return {
271
+ model: new PagedList('rs/sql/checkuserfunction', 20, {
272
+ data: {
273
+ orgid: this.$login.f.orgid
274
+ }
275
+ }),
276
+ funcs: [], // 功能列表
277
+ curorgid: [this.$login.f.orgid],
278
+ applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
279
+ defnames: this.$appdata.getParam('报建明细-办理环节')?[{label: '全部', value: ''}, ...this.$appdata.getParam('报建明细-办理环节')]:[{label: '全部', value: ''}], // 流程节点
280
+ gasNatures: [
281
+ {label: '全部',value: ''},
282
+ ...this.$appdata.getParam('用气性质')
283
+ ],
284
+ usertype: [{label: '全部', value: ''},{label: '民用', value: '民用'},{label: '非民用', value: '非民用'}],//客户类型
285
+ applyNatures: [{label: '全部', value: ''}], // 报建性质
286
+ criteriaShow: false,
287
+ showPrint:false,
288
+ showdatapr:{},
289
+ getfield: {
290
+ 'f_apply_num': '工程编号',
291
+ 'f_userinfo_code': '客户编号',
292
+ 'f_user_name': '客户名称',
293
+ 'f_address': '地址',
294
+ 'f_phone': '电话',
295
+ 'f_entry_number': '入户证号',
296
+ 'f_apply_source': '来源',
297
+ 'f_apply_type': '报建类型',
298
+ 'f_apply_nature': '报建性质',
299
+ 'defname': '办理环节',
300
+ 'f_sub_state': '流程状态',
301
+ 'f_apply_date': '报建日期',
302
+ 'f_apply_remarks': '备注'
303
+ },
304
+ // 打印格式
305
+ type:'PRINT'
306
+ }
307
+ },
308
+ ready () {
309
+ // 调用查询
310
+ this.search()
311
+ },
312
+ methods: {
313
+ check (val) {
314
+ this.$dispatch('apply', val)
315
+ },
316
+ // 查询
317
+ search () {
318
+ this.$dispatch('search')
319
+ },
320
+ loadPage () {
321
+ this.$dispatch('loadPage')
322
+ },
323
+ // 获取配置
324
+ async checkfuncs (row) {
325
+
326
+ this.funcs = []
327
+ let functions = JSON.parse(JSON.stringify(this.$function_vue.functions))
328
+
329
+ for (const item of functions) {
330
+ // 显示类型
331
+ if (item.showApplyTypes) {
332
+ if (item.showApplyTypes.indexOf(row.f_apply_type) === -1) {
333
+ continue
334
+ }
335
+ }
336
+ // 显示节点
337
+ if (item.showDefnames) {
338
+ if (item.showDefnames.indexOf(row.defname) === -1) {
339
+ continue
340
+ }
341
+ }
342
+ // 显示设备
343
+ if (item.device && item.device !== 'pc') {
344
+ continue
345
+ }
346
+ // if (item.device || item.device !== 'pc') {
347
+ // continue
348
+ // }
349
+ this.funcs.push(item)
350
+ }
351
+ },
352
+ // 点击功能操作
353
+ func (func, row) {
354
+ this.$dispatch('func', func, row)
355
+ },
356
+ // 权限控制
357
+ showFunc (personexpression) {
358
+
359
+ if (isEmpty(personexpression)) {
360
+ return true
361
+ }
362
+
363
+ let mark = personexpression.charAt(0)
364
+
365
+ let str = personexpression.substring(2, personexpression.length-1)
366
+
367
+ if (mark === 'D' && this.$login.f.f_department_name.includes(str)) {
368
+ return true
369
+ }
370
+ if (mark === 'R' && this.$login.f.f_role_name.includes(str)) {
371
+ return true
372
+ }
373
+ if (mark === 'P' && this.$login.f.id.includes(str)) {
374
+ return true
375
+ }
376
+
377
+ return false
378
+ },
379
+ async applyTypeChange () {
380
+ if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
381
+ let res = await this.$resetpost('rs/logic/getDefnameByType',
382
+ { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
383
+ {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
384
+ )
385
+
386
+ this.defnames = [{label: '全部', value: ''}, ...res.data]
387
+
388
+ this.applyNatures = isEmpty(this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)]
389
+ } else {
390
+ this.defnames = [{label: '全部', value: ''}]
391
+
392
+ this.applyNatures = [{label: '全部', value: ''}]
393
+ }
394
+ },
395
+ clear () {
396
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
397
+ this.$refs.cp.$refs.cri.model[key] = null
398
+ })
399
+ },
400
+ getorg (val) {
401
+ if (val.length <= 0) {
402
+ return
403
+ }
404
+ this.model.params.data.orgid = val[0]
405
+ },
406
+ showPrintmodel1 (row) {
407
+ this.showPrint = true
408
+ this.showdatapr = row
409
+ },
410
+ closePrint () {
411
+ this.showPrint = false
412
+ },
413
+ print () {
414
+ this.$refs.print.$refs.print.PrintTable()
415
+ this.closePrint()
416
+ }
417
+ },
418
+ computed: {
419
+ getCondition () {
420
+ return {
421
+ condition: this.model.condition,
422
+ data: {
423
+ id: this.$login.f.id,
424
+ orgid: this.$login.f.orgid
425
+ }
426
+ }
427
+ },
428
+ },
429
+ events: {
430
+ }
431
+ }
432
+ </script>
433
+ <style scoped>
434
+ </style>