apply-clients 3.4.91 → 3.4.93

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 (44) hide show
  1. package/build/dev-server.js +133 -133
  2. package/package.json +117 -117
  3. package/src/App.vue +26 -21
  4. package/src/components/android/Ignition/VentilationIgnition.vue +312 -312
  5. package/src/components/android/Ignition/VentilationIgnitionHandle.vue +353 -353
  6. package/src/components/product/ApplyCharge/ApplyChargeList.vue +476 -476
  7. package/src/components/product/Function/InstallInfoSelect.vue +326 -326
  8. package/src/components/product/Ignition/IgnitionListManage.vue +420 -420
  9. package/src/components/product/Material/MaterialDetailed.vue +268 -268
  10. package/src/components/product/Material/Materiallist.vue +74 -74
  11. package/src/components/product/Material/Materialmanger.vue +58 -58
  12. package/src/components/product/Process/ExplorationSelect.vue +491 -491
  13. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +203 -203
  14. package/src/components/product/Process/ShowBackReason.vue +40 -40
  15. package/src/components/product/Stop/StopApplyList.vue +278 -278
  16. package/src/components/product/Supervisory/SupervisoryControl.vue +140 -140
  17. package/src/filiale/hongda/pc/printChargepc.vue +114 -114
  18. package/src/filiale/hongda/pc/printactivatecard.vue +151 -151
  19. package/src/filiale/linzhou/pc/ApplyChargeList.vue +486 -486
  20. package/src/filiale/linzhou/pc/ServiceControl.vue +1968 -1968
  21. package/src/filiale/linzhou/pc/devicesManagement.vue +494 -494
  22. package/src/filiale/linzhou/pc.js +10 -10
  23. package/src/filiale/qianneng/android/AppAddMaterialScience.vue +477 -477
  24. package/src/filiale/qianneng/android/AppExplorationUser.vue +447 -447
  25. package/src/filiale/qianneng/android/AppServiceControl.vue +1608 -1608
  26. package/src/filiale/qianneng/android/AppServiceView.vue +761 -761
  27. package/src/filiale/qianneng/android/AppSign.vue +152 -152
  28. package/src/filiale/qianneng/android/AppTakePic.vue +140 -140
  29. package/src/filiale/qianneng/android.js +12 -12
  30. package/src/filiale/qianneng/pc/ApplyUpload.vue +290 -290
  31. package/src/filiale/qianneng/pc/Applybatchdispatch.vue +685 -685
  32. package/src/filiale/qianneng/pc/ExplorationUser.vue +189 -189
  33. package/src/filiale/qianneng/pc/InstallationDetails.vue +561 -561
  34. package/src/filiale/qianneng/pc/ServiceView.vue +1118 -1121
  35. package/src/filiale/qianneng/pc/SupervisoryList.vue +344 -344
  36. package/src/filiale/qianneng/pc/SupervisoryhCart.vue +127 -127
  37. package/src/filiale/qianneng/pc/addMaterialScience.vue +464 -464
  38. package/src/filiale/qianneng/pc/addressAndUserinfoManagement.vue +389 -389
  39. package/src/filiale/qianneng/pc/devicesManagement.vue +484 -484
  40. package/src/filiale/qianneng/pc/printactivatecard.vue +295 -295
  41. package/src/filiale/qianneng/pc.js +26 -26
  42. package/src/filiale/yangchunboneng/pc/ApplyChargeList.vue +516 -0
  43. package/src/filiale/yangchunboneng/pc.js +13 -12
  44. package/src/main.js +23 -23
@@ -1,326 +1,326 @@
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
- <res-select
10
- restype='organization'
11
- :initresid='$parent.$parent.curorgid'
12
- @res-select="$parent.$parent.getorg"
13
- is-mul="false"
14
- ></res-select>
15
- </div>
16
- <div class="form-group col-sm-3">
17
- <label class="font_normal_body">工程编号:</label>
18
- <input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
19
- v-on:keyup.enter="$parent.$parent.search()"
20
- condition="f_apply_num like '%{}%'">
21
- </div>
22
- <div class="form-group col-sm-3">
23
- <label class="font_normal_body">客户名称:</label>
24
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
25
- v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
26
- </div>
27
- <div class="form-group col-sm-3 button-range">
28
- <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
29
- <button class="button_search button_spacing" @click="$parent.$parent.loadPage()">返回</button>
30
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
31
- <div
32
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
33
- @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
34
- class="button_spacing"
35
- style="float: right">
36
- </div>
37
- </div>
38
- </div>
39
- <div class="row" v-show="$parent.$parent.criteriaShow">
40
- <div class="form-group col-sm-3">
41
- <label class="font_normal_body">用户编号:</label>
42
- <input type="text" style="width:60%" class="input_search" placeholder='用户编号' v-model="model.f_userinfo_code"
43
- v-on:keyup.enter="$parent.$parent.search()"
44
- condition="f_userinfo_code like '%{}%'">
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_phone"
49
- v-on:keyup.enter="$parent.$parent.search()"
50
- condition="f_phone 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_idnumber"
55
- v-on:keyup.enter="$parent.$parent.search()"
56
- condition="f_idnumber 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_contract_number"
61
- v-on:keyup.enter="$parent.$parent.search()"
62
- condition="f_contract_number = '{}'">
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
- @change="$parent.$parent.applyTypeChange()"
75
- close-on-select ></v-select>
76
- </div>
77
- <div class="form-group col-sm-3">
78
- <label class="font_normal_body">办理环节:</label>
79
- <v-select
80
- v-model="model.defname"
81
- placeholder='办理环节'
82
- condition="defname = '{}'"
83
- :value.sync="model.defname"
84
- :options='$parent.$parent.defnames'
85
- class="select select_list"
86
- :value-single="true"
87
- close-on-select ></v-select>
88
- </div>
89
- <div class="form-group col-sm-3">
90
- <label class="font_normal_body">报建性质:</label>
91
- <v-select
92
- v-model="model.f_apply_nature"
93
- placeholder='报建性质'
94
- condition="f_apply_nature = '{}'"
95
- :value.sync="model.f_apply_nature"
96
- :options='$parent.$parent.applyNatures'
97
- class="select select_list"
98
- :value-single="true"
99
- close-on-select ></v-select>
100
- </div>
101
- <div class="form-group col-sm-3">
102
- <label class="font_normal_body">用户地址:</label>
103
- <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
104
- v-on:keyup.enter="$parent.$parent.search()"
105
- condition="f_address like '%{}%'">
106
- </div>
107
- <div class="form-group col-sm-3">
108
- <label for="startDate" class="font_normal_body">开始时间:</label>
109
- <datepicker id="startDate" placeholder="开始日期"
110
- style="width: 60%!important;"
111
- v-model="model.startDate"
112
- :value.sync="model.startDate"
113
- :format="'yyyy-MM-dd 00:00:00'"
114
- :show-reset-button="true"
115
- condition="f_apply_date >= '{}'">
116
- </datepicker>
117
- </div>
118
- <div class="form-group col-sm-3">
119
- <label for="endDate" class="font_normal_body">结束时间:</label>
120
- <datepicker id="endDate" placeholder="结束日期"
121
- style="width: 60%!important;"
122
- v-model="model.endDate"
123
- :value.sync="model.endDate"
124
- :format="'yyyy-MM-dd 23:59:59'"
125
- :show-reset-button="true"
126
- condition="f_apply_date <= '{}'">
127
- </datepicker>
128
- </div>
129
- </div>
130
- </div>
131
- </criteria>
132
- <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy">
133
- <template partial='head'>
134
- <tr class="title">
135
- <th style="white-space: nowrap;">序号</th>
136
- <th style="white-space: nowrap;">工程编号</th>
137
- <th style="white-space: nowrap;">客户名称</th>
138
- <th style="white-space: nowrap;">合同编号</th>
139
- <th style="white-space: nowrap;">电话</th>
140
- <th style="white-space: nowrap;">地址</th>
141
- <th style="white-space: nowrap;">身份证号</th>
142
- <th style="white-space: nowrap;">报建类型</th>
143
- <th style="white-space: nowrap;">办理环节</th>
144
- <th style="white-space: nowrap;">流程状态</th>
145
- <th style="white-space: nowrap;">报建日期</th>
146
- <th style="white-space: nowrap;">操作</th>
147
- </tr>
148
- </template>
149
- <template partial='body'>
150
- <tr>
151
- <td style="text-align: center;">
152
- <nobr>{{$index+1}}</nobr>
153
- </td>
154
- <td style="text-align: center;">
155
- <nobr>{{row.f_apply_num}}</nobr>
156
- </td>
157
- <td style="text-align: center;">
158
- <nobr>{{row.f_user_name}}</nobr>
159
- </td>
160
- <td style="text-align: center;">
161
- <nobr>{{row.f_contract_number}}</nobr>
162
- </td>
163
- <td style="text-align: center;">
164
- <nobr>{{row.f_phone}}</nobr>
165
- </td>
166
- <td style="text-align: center;">
167
- <nobr>{{row.f_address}}</nobr>
168
- </td>
169
- <td style="text-align: center;">
170
- <nobr>{{row.f_idnumber}}</nobr>
171
- </td>
172
- <td style="text-align: center;">
173
- <nobr>{{row.f_apply_type}}</nobr>
174
- </td>
175
- <td style="text-align: center;">
176
- <nobr>{{row.defname}}</nobr>
177
- </td>
178
- <td style="text-align: center;">
179
- <nobr>{{row.f_sub_state}}</nobr>
180
- </td>
181
- <td style="text-align: center;">
182
- <nobr>{{row.f_apply_date}}</nobr>
183
- </td>
184
- <td style="text-align: center;">
185
- <dropdown>
186
- <button @click="$parent.$parent.$parent.checkfuncs(row)" type="button" data-toggle="dropdown" style="border: 0px;background: none;">
187
- <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
188
- </button>
189
- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
190
- <li v-for="(index,func) in $parent.$parent.$parent.funcs" v-if="$parent.$parent.$parent.$parent.showFunc(func.personexpression)">
191
- <a href="#" @click="$parent.$parent.$parent.$parent.func(func,row)">{{func.title}}</a>
192
- </li>
193
- </ul>
194
- </dropdown>
195
- </td>
196
- </tr>
197
- </template>
198
- </data-grid>
199
- </criteria-paged>
200
- </div>
201
- </template>
202
- <script>
203
- import {PagedList} from 'vue-client'
204
- import {isEmpty} from '../../Util'
205
- export default {
206
- title: '报建业务信息',
207
- props: ['showData'],
208
- data () {
209
- return {
210
- model: new PagedList('rs/sql/checkuserfunction', 20, {
211
- data: {
212
- orgid: this.$login.f.orgid
213
- }
214
- }),
215
- funcs: [], // 功能列表
216
- curorgid: [this.$login.f.orgid],
217
- applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
218
- defnames: [{label: '全部', value: ''}], // 流程节点
219
- applyNatures: [{label: '全部', value: ''}], // 报建性质
220
- criteriaShow: false
221
- }
222
- },
223
- ready () {
224
- // 调用查询
225
- this.search()
226
- },
227
- methods: {
228
- // 查询
229
- search () {
230
- this.$dispatch('search')
231
- },
232
- loadPage () {
233
- this.$dispatch('loadPage')
234
- },
235
- // 获取配置
236
- async checkfuncs (row) {
237
-
238
- this.funcs = []
239
- let functions = JSON.parse(JSON.stringify(this.$function_vue.functions))
240
-
241
- for (const item of functions) {
242
- // 显示类型
243
- if (item.showApplyTypes) {
244
- if (item.showApplyTypes.indexOf(row.f_apply_type) === -1) {
245
- continue
246
- }
247
- }
248
- // 显示节点
249
- if (item.showDefnames) {
250
- if (item.showDefnames.indexOf(row.defname) === -1) {
251
- continue
252
- }
253
- }
254
- // 显示设备
255
- if (item.device && item.device !== 'pc') {
256
- continue
257
- }
258
- // if (item.device || item.device !== 'pc') {
259
- // continue
260
- // }
261
- this.funcs.push(item)
262
- }
263
- },
264
- // 点击功能操作
265
- func (func, row) {
266
- this.$dispatch('func', func, row)
267
- },
268
- // 权限控制
269
- showFunc (personexpression) {
270
-
271
- if (isEmpty(personexpression)) {
272
- return true
273
- }
274
-
275
- let mark = personexpression.charAt(0)
276
-
277
- let str = personexpression.substring(2, personexpression.length-1)
278
-
279
- if (mark === 'D' && this.$login.f.f_department_name.includes(str)) {
280
- return true
281
- }
282
- if (mark === 'R' && this.$login.f.f_role_name.includes(str)) {
283
- return true
284
- }
285
- if (mark === 'P' && this.$login.f.id.includes(str)) {
286
- return true
287
- }
288
-
289
- return false
290
- },
291
- async applyTypeChange () {
292
- if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
293
- let res = await this.$resetpost('rs/logic/getDefnameByType',
294
- { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
295
- {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
296
- )
297
-
298
- this.defnames = [{label: '全部', value: ''}, ...res.data]
299
-
300
- 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}性质`)]
301
- } else {
302
- this.defnames = [{label: '全部', value: ''}]
303
-
304
- this.applyNatures = [{label: '全部', value: ''}]
305
- }
306
- },
307
- clear () {
308
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
309
- this.$refs.cp.$refs.cri.model[key] = null
310
- })
311
- },
312
- getorg (val) {
313
- if (val.length <= 0) {
314
- return
315
- }
316
- this.model.params.data.orgid = val[0]
317
- }
318
- },
319
- computed: {
320
- },
321
- events: {
322
- }
323
- }
324
- </script>
325
- <style scoped>
326
- </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
+ <res-select
10
+ restype='organization'
11
+ :initresid='$parent.$parent.curorgid'
12
+ @res-select="$parent.$parent.getorg"
13
+ is-mul="false"
14
+ ></res-select>
15
+ </div>
16
+ <div class="form-group col-sm-3">
17
+ <label class="font_normal_body">工程编号:</label>
18
+ <input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
19
+ v-on:keyup.enter="$parent.$parent.search()"
20
+ condition="f_apply_num like '%{}%'">
21
+ </div>
22
+ <div class="form-group col-sm-3">
23
+ <label class="font_normal_body">客户名称:</label>
24
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
25
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
26
+ </div>
27
+ <div class="form-group col-sm-3 button-range">
28
+ <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
29
+ <button class="button_search button_spacing" @click="$parent.$parent.loadPage()">返回</button>
30
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
31
+ <div
32
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
33
+ @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
34
+ class="button_spacing"
35
+ style="float: right">
36
+ </div>
37
+ </div>
38
+ </div>
39
+ <div class="row" v-show="$parent.$parent.criteriaShow">
40
+ <div class="form-group col-sm-3">
41
+ <label class="font_normal_body">用户编号:</label>
42
+ <input type="text" style="width:60%" class="input_search" placeholder='用户编号' v-model="model.f_userinfo_code"
43
+ v-on:keyup.enter="$parent.$parent.search()"
44
+ condition="f_userinfo_code like '%{}%'">
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_phone"
49
+ v-on:keyup.enter="$parent.$parent.search()"
50
+ condition="f_phone 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_idnumber"
55
+ v-on:keyup.enter="$parent.$parent.search()"
56
+ condition="f_idnumber 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_contract_number"
61
+ v-on:keyup.enter="$parent.$parent.search()"
62
+ condition="f_contract_number = '{}'">
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
+ @change="$parent.$parent.applyTypeChange()"
75
+ close-on-select ></v-select>
76
+ </div>
77
+ <div class="form-group col-sm-3">
78
+ <label class="font_normal_body">办理环节:</label>
79
+ <v-select
80
+ v-model="model.defname"
81
+ placeholder='办理环节'
82
+ condition="defname = '{}'"
83
+ :value.sync="model.defname"
84
+ :options='$parent.$parent.defnames'
85
+ class="select select_list"
86
+ :value-single="true"
87
+ close-on-select ></v-select>
88
+ </div>
89
+ <div class="form-group col-sm-3">
90
+ <label class="font_normal_body">报建性质:</label>
91
+ <v-select
92
+ v-model="model.f_apply_nature"
93
+ placeholder='报建性质'
94
+ condition="f_apply_nature = '{}'"
95
+ :value.sync="model.f_apply_nature"
96
+ :options='$parent.$parent.applyNatures'
97
+ class="select select_list"
98
+ :value-single="true"
99
+ close-on-select ></v-select>
100
+ </div>
101
+ <div class="form-group col-sm-3">
102
+ <label class="font_normal_body">用户地址:</label>
103
+ <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
104
+ v-on:keyup.enter="$parent.$parent.search()"
105
+ condition="f_address like '%{}%'">
106
+ </div>
107
+ <div class="form-group col-sm-3">
108
+ <label for="startDate" class="font_normal_body">开始时间:</label>
109
+ <datepicker id="startDate" placeholder="开始日期"
110
+ style="width: 60%!important;"
111
+ v-model="model.startDate"
112
+ :value.sync="model.startDate"
113
+ :format="'yyyy-MM-dd 00:00:00'"
114
+ :show-reset-button="true"
115
+ condition="f_apply_date >= '{}'">
116
+ </datepicker>
117
+ </div>
118
+ <div class="form-group col-sm-3">
119
+ <label for="endDate" class="font_normal_body">结束时间:</label>
120
+ <datepicker id="endDate" placeholder="结束日期"
121
+ style="width: 60%!important;"
122
+ v-model="model.endDate"
123
+ :value.sync="model.endDate"
124
+ :format="'yyyy-MM-dd 23:59:59'"
125
+ :show-reset-button="true"
126
+ condition="f_apply_date <= '{}'">
127
+ </datepicker>
128
+ </div>
129
+ </div>
130
+ </div>
131
+ </criteria>
132
+ <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy">
133
+ <template partial='head'>
134
+ <tr class="title">
135
+ <th style="white-space: nowrap;">序号</th>
136
+ <th style="white-space: nowrap;">工程编号</th>
137
+ <th style="white-space: nowrap;">客户名称</th>
138
+ <th style="white-space: nowrap;">合同编号</th>
139
+ <th style="white-space: nowrap;">电话</th>
140
+ <th style="white-space: nowrap;">地址</th>
141
+ <th style="white-space: nowrap;">身份证号</th>
142
+ <th style="white-space: nowrap;">报建类型</th>
143
+ <th style="white-space: nowrap;">办理环节</th>
144
+ <th style="white-space: nowrap;">流程状态</th>
145
+ <th style="white-space: nowrap;">报建日期</th>
146
+ <th style="white-space: nowrap;">操作</th>
147
+ </tr>
148
+ </template>
149
+ <template partial='body'>
150
+ <tr>
151
+ <td style="text-align: center;">
152
+ <nobr>{{$index+1}}</nobr>
153
+ </td>
154
+ <td style="text-align: center;">
155
+ <nobr>{{row.f_apply_num}}</nobr>
156
+ </td>
157
+ <td style="text-align: center;">
158
+ <nobr>{{row.f_user_name}}</nobr>
159
+ </td>
160
+ <td style="text-align: center;">
161
+ <nobr>{{row.f_contract_number}}</nobr>
162
+ </td>
163
+ <td style="text-align: center;">
164
+ <nobr>{{row.f_phone}}</nobr>
165
+ </td>
166
+ <td style="text-align: center;">
167
+ <nobr>{{row.f_address}}</nobr>
168
+ </td>
169
+ <td style="text-align: center;">
170
+ <nobr>{{row.f_idnumber}}</nobr>
171
+ </td>
172
+ <td style="text-align: center;">
173
+ <nobr>{{row.f_apply_type}}</nobr>
174
+ </td>
175
+ <td style="text-align: center;">
176
+ <nobr>{{row.defname}}</nobr>
177
+ </td>
178
+ <td style="text-align: center;">
179
+ <nobr>{{row.f_sub_state}}</nobr>
180
+ </td>
181
+ <td style="text-align: center;">
182
+ <nobr>{{row.f_apply_date}}</nobr>
183
+ </td>
184
+ <td style="text-align: center;">
185
+ <dropdown>
186
+ <button @click="$parent.$parent.$parent.checkfuncs(row)" type="button" data-toggle="dropdown" style="border: 0px;background: none;">
187
+ <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
188
+ </button>
189
+ <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
190
+ <li v-for="(index,func) in $parent.$parent.$parent.funcs" v-if="$parent.$parent.$parent.$parent.showFunc(func.personexpression)">
191
+ <a href="#" @click="$parent.$parent.$parent.$parent.func(func,row)">{{func.title}}</a>
192
+ </li>
193
+ </ul>
194
+ </dropdown>
195
+ </td>
196
+ </tr>
197
+ </template>
198
+ </data-grid>
199
+ </criteria-paged>
200
+ </div>
201
+ </template>
202
+ <script>
203
+ import {PagedList} from 'vue-client'
204
+ import {isEmpty} from '../../Util'
205
+ export default {
206
+ title: '报建业务信息',
207
+ props: ['showData'],
208
+ data () {
209
+ return {
210
+ model: new PagedList('rs/sql/checkuserfunction', 20, {
211
+ data: {
212
+ orgid: this.$login.f.orgid
213
+ }
214
+ }),
215
+ funcs: [], // 功能列表
216
+ curorgid: [this.$login.f.orgid],
217
+ applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
218
+ defnames: [{label: '全部', value: ''}], // 流程节点
219
+ applyNatures: [{label: '全部', value: ''}], // 报建性质
220
+ criteriaShow: false
221
+ }
222
+ },
223
+ ready () {
224
+ // 调用查询
225
+ this.search()
226
+ },
227
+ methods: {
228
+ // 查询
229
+ search () {
230
+ this.$dispatch('search')
231
+ },
232
+ loadPage () {
233
+ this.$dispatch('loadPage')
234
+ },
235
+ // 获取配置
236
+ async checkfuncs (row) {
237
+
238
+ this.funcs = []
239
+ let functions = JSON.parse(JSON.stringify(this.$function_vue.functions))
240
+
241
+ for (const item of functions) {
242
+ // 显示类型
243
+ if (item.showApplyTypes) {
244
+ if (item.showApplyTypes.indexOf(row.f_apply_type) === -1) {
245
+ continue
246
+ }
247
+ }
248
+ // 显示节点
249
+ if (item.showDefnames) {
250
+ if (item.showDefnames.indexOf(row.defname) === -1) {
251
+ continue
252
+ }
253
+ }
254
+ // 显示设备
255
+ if (item.device && item.device !== 'pc') {
256
+ continue
257
+ }
258
+ // if (item.device || item.device !== 'pc') {
259
+ // continue
260
+ // }
261
+ this.funcs.push(item)
262
+ }
263
+ },
264
+ // 点击功能操作
265
+ func (func, row) {
266
+ this.$dispatch('func', func, row)
267
+ },
268
+ // 权限控制
269
+ showFunc (personexpression) {
270
+
271
+ if (isEmpty(personexpression)) {
272
+ return true
273
+ }
274
+
275
+ let mark = personexpression.charAt(0)
276
+
277
+ let str = personexpression.substring(2, personexpression.length-1)
278
+
279
+ if (mark === 'D' && this.$login.f.f_department_name.includes(str)) {
280
+ return true
281
+ }
282
+ if (mark === 'R' && this.$login.f.f_role_name.includes(str)) {
283
+ return true
284
+ }
285
+ if (mark === 'P' && this.$login.f.id.includes(str)) {
286
+ return true
287
+ }
288
+
289
+ return false
290
+ },
291
+ async applyTypeChange () {
292
+ if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
293
+ let res = await this.$resetpost('rs/logic/getDefnameByType',
294
+ { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
295
+ {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
296
+ )
297
+
298
+ this.defnames = [{label: '全部', value: ''}, ...res.data]
299
+
300
+ 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}性质`)]
301
+ } else {
302
+ this.defnames = [{label: '全部', value: ''}]
303
+
304
+ this.applyNatures = [{label: '全部', value: ''}]
305
+ }
306
+ },
307
+ clear () {
308
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
309
+ this.$refs.cp.$refs.cri.model[key] = null
310
+ })
311
+ },
312
+ getorg (val) {
313
+ if (val.length <= 0) {
314
+ return
315
+ }
316
+ this.model.params.data.orgid = val[0]
317
+ }
318
+ },
319
+ computed: {
320
+ },
321
+ events: {
322
+ }
323
+ }
324
+ </script>
325
+ <style scoped>
326
+ </style>