apply-clients 3.5.4-95 → 3.5.4-97

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