apply-clients 3.3.16 → 3.3.17

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 (57) hide show
  1. package/index.html +33 -33
  2. package/package.json +1 -1
  3. package/src/AndroidApp.vue +30 -30
  4. package/src/android.js +21 -21
  5. package/src/apply.js +3 -6
  6. package/src/applyAndroid.js +35 -35
  7. package/src/components/android/AppOnetomany.vue +285 -285
  8. package/src/components/android/AppServiceView.vue +570 -570
  9. package/src/components/android/AppTakePic.vue +143 -143
  10. package/src/components/android/Function/AppFunctionServiceControl.vue +329 -329
  11. package/src/components/android/Function/AppInstallFunction.vue +327 -327
  12. package/src/components/android/Process/AppExplorationUser.vue +268 -268
  13. package/src/components/android/Process/AppServiceControl.vue +711 -686
  14. package/src/components/android/Process/Processes/AppChargeManagement.vue +468 -468
  15. package/src/components/android/Process/Processes/AppDevicesManagement.vue +490 -490
  16. package/src/components/android/Process/Processes/AppInstallationDetails.vue +466 -466
  17. package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +297 -297
  18. package/src/components/android/Supervisory/AppProcessSupervisory.vue +261 -261
  19. package/src/components/android/Supervisory/AppSupervisoryCart.vue +115 -115
  20. package/src/components/product/ApplyCharge/ApplyChargeList.vue +265 -265
  21. package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +30 -30
  22. package/src/components/product/Function/InstallFunction.vue +122 -122
  23. package/src/components/product/Function/InstallInfoSelect.vue +289 -289
  24. package/src/components/product/Function/Service/FunctionServiceControl.vue +254 -254
  25. package/src/components/product/Onetomany.vue +296 -296
  26. package/src/components/product/Order/OrderApply.vue +47 -47
  27. package/src/components/product/Order/OrderApplyList.vue +62 -62
  28. package/src/components/product/Order/OrderMessage.vue +237 -237
  29. package/src/components/product/Process/ExplorationSelect.vue +145 -143
  30. package/src/components/product/Process/ExplorationUser.vue +128 -128
  31. package/src/components/product/Process/Processes/InstallationDetails.vue +421 -352
  32. package/src/components/product/Process/Processes/Print/img/10101.png +0 -0
  33. package/src/components/product/Process/Processes/Print/img/1010109.png +0 -0
  34. package/src/components/product/Process/Processes/Print/img/1010110.png +0 -0
  35. package/src/components/product/Process/Processes/Print/img/1010111.png +0 -0
  36. package/src/components/product/Process/Processes/Print/img/1010112.png +0 -0
  37. package/src/components/product/Process/Processes/{printCharge.vue → Print/printCharge.vue} +139 -121
  38. package/src/components/product/Process/Processes/Print/printRefund.vue +193 -0
  39. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +181 -181
  40. package/src/components/product/Process/Processes/chargeManagement.vue +639 -639
  41. package/src/components/product/Process/Processes/devicesManagement.vue +458 -458
  42. package/src/components/product/Process/Processes/selectApply.vue +250 -250
  43. package/src/components/product/Process/Processes/selectUserinfo.vue +182 -182
  44. package/src/components/product/Process/Processes/supplementalAgreement.vue +298 -298
  45. package/src/components/product/Process/Service/ServiceControl.vue +916 -810
  46. package/src/components/product/Process/ShowBackReason.vue +33 -33
  47. package/src/components/product/ServiceView.vue +301 -307
  48. package/src/components/product/Stop/StopApplyList.vue +254 -254
  49. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +512 -517
  50. package/src/components/product/Supervisory/SupervisoryControl.vue +100 -100
  51. package/src/components/product/Supervisory/SupervisoryList.vue +226 -226
  52. package/src/components/product/Supervisory/SupervisoryhCart.vue +124 -124
  53. package/src/components/product/VueUtils/ApplyUpload.vue +262 -262
  54. package/src/components/product/VueUtils/GaoPaiYi/HighMeter.vue +1090 -1090
  55. package/src/main.js +23 -23
  56. package/src/components/product/Function/Inform.vue +0 -74
  57. package/src/components/product/Function/MarketSurvey.vue +0 -80
@@ -1,289 +1,289 @@
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 = '{}'">
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_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
30
- <div
31
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
32
- @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
33
- class="button_spacing"
34
- style="float: right">
35
- </div>
36
- </div>
37
- </div>
38
- <div class="row" v-show="$parent.$parent.criteriaShow">
39
- <div class="form-group col-sm-3">
40
- <label class="font_normal_body">联系电话:</label>
41
- <input type="text" style="width:60%" class="input_search" placeholder='联系电话' v-model="model.f_phone"
42
- v-on:keyup.enter="$parent.$parent.search()"
43
- condition="f_phone like '%{}%'">
44
- </div>
45
- <div class="form-group col-sm-3">
46
- <label class="font_normal_body">合同编号:</label>
47
- <input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
48
- v-on:keyup.enter="$parent.$parent.search()"
49
- condition="f_contract_number = '{}'">
50
- </div>
51
- <div class="form-group col-sm-3">
52
- <label class="font_normal_body">报建类型:</label>
53
- <v-select
54
- v-model="model.f_apply_type"
55
- placeholder='报建类型'
56
- condition="f_apply_type like '%{}%'"
57
- :value.sync="model.f_apply_type"
58
- :options='$parent.$parent.applytype'
59
- class="select select_list"
60
- :value-single="true"
61
- @change="$parent.$parent.applyTypeChange()"
62
- close-on-select ></v-select>
63
- </div>
64
- <div class="form-group col-sm-3">
65
- <label class="font_normal_body">办理环节:</label>
66
- <v-select
67
- v-model="model.defname"
68
- placeholder='办理环节'
69
- condition="defname = '{}'"
70
- :value.sync="model.defname"
71
- :options='$parent.$parent.defnames'
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
- <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
79
- v-on:keyup.enter="$parent.$parent.search()"
80
- condition="f_address like '%{}%'">
81
- </div>
82
- <div class="form-group col-sm-3">
83
- <label for="startDate" class="font_normal_body">开始时间:</label>
84
- <datepicker id="startDate" placeholder="开始日期"
85
- style="width: 60%!important;"
86
- v-model="model.startDate"
87
- :value.sync="model.startDate"
88
- :format="'yyyy-MM-dd HH:mm:ss'"
89
- :show-reset-button="true"
90
- condition="f_apply_date >= to_date('{}', 'yyyy-mm-dd hh24:mi:ss')">
91
- </datepicker>
92
- </div>
93
- <div class="form-group col-sm-3">
94
- <label for="endDate" class="font_normal_body">结束时间:</label>
95
- <datepicker id="endDate" placeholder="结束日期"
96
- style="width: 60%!important;"
97
- v-model="model.endDate"
98
- :value.sync="model.endDate"
99
- :format="'yyyy-MM-dd HH:mm:ss'"
100
- :show-reset-button="true"
101
- condition="f_apply_date <= to_date('{}', 'yyyy-mm-dd hh24:mi:ss')">
102
- </datepicker>
103
- </div>
104
- </div>
105
- </div>
106
- </criteria>
107
- <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy">
108
- <template partial='head'>
109
- <tr class="title">
110
- <th style="white-space: nowrap;">序号</th>
111
- <th style="white-space: nowrap;">工程编号</th>
112
- <th style="white-space: nowrap;">客户名称</th>
113
- <th style="white-space: nowrap;">合同编号</th>
114
- <th style="white-space: nowrap;">电话</th>
115
- <th style="white-space: nowrap;">地址</th>
116
- <th style="white-space: nowrap;">报建类型</th>
117
- <th style="white-space: nowrap;">办理环节</th>
118
- <th style="white-space: nowrap;">流程状态</th>
119
- <th style="white-space: nowrap;">报建日期</th>
120
- <th style="white-space: nowrap;">操作</th>
121
- </tr>
122
- </template>
123
- <template partial='body'>
124
- <tr>
125
- <td style="text-align: center;">
126
- <nobr>{{$index+1}}</nobr>
127
- </td>
128
- <td style="text-align: center;">
129
- <nobr>{{row.f_apply_num}}</nobr>
130
- </td>
131
- <td style="text-align: center;">
132
- <nobr>{{row.f_user_name}}</nobr>
133
- </td>
134
- <td style="text-align: center;">
135
- <nobr>{{row.f_contract_number}}</nobr>
136
- </td>
137
- <td style="text-align: center;">
138
- <nobr>{{row.f_phone}}</nobr>
139
- </td>
140
- <td style="text-align: center;">
141
- <nobr>{{row.f_address}}</nobr>
142
- </td>
143
- <td style="text-align: center;">
144
- <nobr>{{row.f_apply_type}}</nobr>
145
- </td>
146
- <td style="text-align: center;">
147
- <nobr>{{row.defname}}</nobr>
148
- </td>
149
- <td style="text-align: center;">
150
- <nobr>{{row.f_sub_state}}</nobr>
151
- </td>
152
- <td style="text-align: center;">
153
- <nobr>{{row.f_apply_date}}</nobr>
154
- </td>
155
- <td style="text-align: center;">
156
- <dropdown>
157
- <button @click="$parent.$parent.$parent.checkfuncs(row)" type="button" data-toggle="dropdown" style="border: 0px;background: none;">
158
- <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
159
- </button>
160
- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
161
- <li v-for="(index,func) in $parent.$parent.$parent.funcs" v-if="$parent.$parent.$parent.$parent.showFunc(func.personexpression)">
162
- <a href="#" @click="$parent.$parent.$parent.$parent.func(func,row)">{{func.title}}</a>
163
- </li>
164
- </ul>
165
- </dropdown>
166
- </td>
167
- </tr>
168
- </template>
169
- </data-grid>
170
- </criteria-paged>
171
- </div>
172
- </template>
173
- <script>
174
- import {PagedList} from 'vue-client'
175
- import {isEmpty} from '../../Util'
176
- export default {
177
- title: '报建业务信息',
178
- props: ['showData'],
179
- data () {
180
- return {
181
- model: new PagedList('rs/sql/checkuserfunction', 20, {
182
- data: {
183
- orgid: this.$login.f.orgid
184
- }
185
- }),
186
- funcs: [], // 功能列表
187
- curorgid: [this.$login.f.orgid],
188
- applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
189
- defnames: [{label: '全部', value: ''}], // 流程节点
190
- criteriaShow: false
191
- }
192
- },
193
- ready () {
194
- // 调用查询
195
- this.search()
196
- },
197
- methods: {
198
- // 查询
199
- search () {
200
- this.$dispatch('search')
201
- },
202
- // 获取配置
203
- async checkfuncs (row) {
204
-
205
- this.funcs = []
206
- let functions = this.$function_vue.functions
207
-
208
- for (const item of functions) {
209
- // 显示类型
210
- if (item.showApplyTypes) {
211
- if (item.showApplyTypes.indexOf(row.f_apply_type) === -1) {
212
- continue
213
- }
214
- }
215
- // 显示节点
216
- if (item.showDefnames) {
217
- if (item.showDefnames.indexOf(row.defname) === -1) {
218
- continue
219
- }
220
- }
221
- // 显示设备
222
- if (item.device && item.device !== 'pc') {
223
- continue
224
- }
225
- // if (item.device || item.device !== 'pc') {
226
- // continue
227
- // }
228
- this.funcs.push(item)
229
- }
230
- },
231
- // 点击功能操作
232
- func (func, row) {
233
- this.$dispatch('func', func, row)
234
- },
235
- // 权限控制
236
- showFunc (personexpression) {
237
-
238
- if (isEmpty(personexpression)) {
239
- return true
240
- }
241
-
242
- let mark = personexpression.charAt(0)
243
-
244
- let str = personexpression.substring(2, personexpression.length-1)
245
-
246
- if (mark === 'D' && this.$login.f.f_department_name.includes(str)) {
247
- return true
248
- }
249
- if (mark === 'R' && this.$login.f.f_role_name.includes(str)) {
250
- return true
251
- }
252
- if (mark === 'P' && this.$login.f.id.includes(str)) {
253
- return true
254
- }
255
-
256
- return false
257
- },
258
- async applyTypeChange () {
259
- if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
260
- let res = await this.$resetpost('rs/logic/getDefnameByType',
261
- { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
262
- {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
263
- )
264
-
265
- this.defnames = [{label: '全部', value: ''}, ...res.data]
266
- } else {
267
- this.defnames = [{label: '全部', value: ''}]
268
- }
269
- },
270
- clear () {
271
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
272
- this.$refs.cp.$refs.cri.model[key] = null
273
- })
274
- },
275
- getorg (val) {
276
- if (val.length <= 0) {
277
- return
278
- }
279
- this.model.params.data.orgid = val[0]
280
- }
281
- },
282
- computed: {
283
- },
284
- events: {
285
- }
286
- }
287
- </script>
288
- <style scoped>
289
- </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 = '{}'">
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_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
30
+ <div
31
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
32
+ @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
33
+ class="button_spacing"
34
+ style="float: right">
35
+ </div>
36
+ </div>
37
+ </div>
38
+ <div class="row" v-show="$parent.$parent.criteriaShow">
39
+ <div class="form-group col-sm-3">
40
+ <label class="font_normal_body">联系电话:</label>
41
+ <input type="text" style="width:60%" class="input_search" placeholder='联系电话' v-model="model.f_phone"
42
+ v-on:keyup.enter="$parent.$parent.search()"
43
+ condition="f_phone like '%{}%'">
44
+ </div>
45
+ <div class="form-group col-sm-3">
46
+ <label class="font_normal_body">合同编号:</label>
47
+ <input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
48
+ v-on:keyup.enter="$parent.$parent.search()"
49
+ condition="f_contract_number = '{}'">
50
+ </div>
51
+ <div class="form-group col-sm-3">
52
+ <label class="font_normal_body">报建类型:</label>
53
+ <v-select
54
+ v-model="model.f_apply_type"
55
+ placeholder='报建类型'
56
+ condition="f_apply_type like '%{}%'"
57
+ :value.sync="model.f_apply_type"
58
+ :options='$parent.$parent.applytype'
59
+ class="select select_list"
60
+ :value-single="true"
61
+ @change="$parent.$parent.applyTypeChange()"
62
+ close-on-select ></v-select>
63
+ </div>
64
+ <div class="form-group col-sm-3">
65
+ <label class="font_normal_body">办理环节:</label>
66
+ <v-select
67
+ v-model="model.defname"
68
+ placeholder='办理环节'
69
+ condition="defname = '{}'"
70
+ :value.sync="model.defname"
71
+ :options='$parent.$parent.defnames'
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
+ <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
79
+ v-on:keyup.enter="$parent.$parent.search()"
80
+ condition="f_address like '%{}%'">
81
+ </div>
82
+ <div class="form-group col-sm-3">
83
+ <label for="startDate" class="font_normal_body">开始时间:</label>
84
+ <datepicker id="startDate" placeholder="开始日期"
85
+ style="width: 60%!important;"
86
+ v-model="model.startDate"
87
+ :value.sync="model.startDate"
88
+ :format="'yyyy-MM-dd HH:mm:ss'"
89
+ :show-reset-button="true"
90
+ condition="f_apply_date >= to_date('{}', 'yyyy-mm-dd hh24:mi:ss')">
91
+ </datepicker>
92
+ </div>
93
+ <div class="form-group col-sm-3">
94
+ <label for="endDate" class="font_normal_body">结束时间:</label>
95
+ <datepicker id="endDate" placeholder="结束日期"
96
+ style="width: 60%!important;"
97
+ v-model="model.endDate"
98
+ :value.sync="model.endDate"
99
+ :format="'yyyy-MM-dd HH:mm:ss'"
100
+ :show-reset-button="true"
101
+ condition="f_apply_date <= to_date('{}', 'yyyy-mm-dd hh24:mi:ss')">
102
+ </datepicker>
103
+ </div>
104
+ </div>
105
+ </div>
106
+ </criteria>
107
+ <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy">
108
+ <template partial='head'>
109
+ <tr class="title">
110
+ <th style="white-space: nowrap;">序号</th>
111
+ <th style="white-space: nowrap;">工程编号</th>
112
+ <th style="white-space: nowrap;">客户名称</th>
113
+ <th style="white-space: nowrap;">合同编号</th>
114
+ <th style="white-space: nowrap;">电话</th>
115
+ <th style="white-space: nowrap;">地址</th>
116
+ <th style="white-space: nowrap;">报建类型</th>
117
+ <th style="white-space: nowrap;">办理环节</th>
118
+ <th style="white-space: nowrap;">流程状态</th>
119
+ <th style="white-space: nowrap;">报建日期</th>
120
+ <th style="white-space: nowrap;">操作</th>
121
+ </tr>
122
+ </template>
123
+ <template partial='body'>
124
+ <tr>
125
+ <td style="text-align: center;">
126
+ <nobr>{{$index+1}}</nobr>
127
+ </td>
128
+ <td style="text-align: center;">
129
+ <nobr>{{row.f_apply_num}}</nobr>
130
+ </td>
131
+ <td style="text-align: center;">
132
+ <nobr>{{row.f_user_name}}</nobr>
133
+ </td>
134
+ <td style="text-align: center;">
135
+ <nobr>{{row.f_contract_number}}</nobr>
136
+ </td>
137
+ <td style="text-align: center;">
138
+ <nobr>{{row.f_phone}}</nobr>
139
+ </td>
140
+ <td style="text-align: center;">
141
+ <nobr>{{row.f_address}}</nobr>
142
+ </td>
143
+ <td style="text-align: center;">
144
+ <nobr>{{row.f_apply_type}}</nobr>
145
+ </td>
146
+ <td style="text-align: center;">
147
+ <nobr>{{row.defname}}</nobr>
148
+ </td>
149
+ <td style="text-align: center;">
150
+ <nobr>{{row.f_sub_state}}</nobr>
151
+ </td>
152
+ <td style="text-align: center;">
153
+ <nobr>{{row.f_apply_date}}</nobr>
154
+ </td>
155
+ <td style="text-align: center;">
156
+ <dropdown>
157
+ <button @click="$parent.$parent.$parent.checkfuncs(row)" type="button" data-toggle="dropdown" style="border: 0px;background: none;">
158
+ <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
159
+ </button>
160
+ <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
161
+ <li v-for="(index,func) in $parent.$parent.$parent.funcs" v-if="$parent.$parent.$parent.$parent.showFunc(func.personexpression)">
162
+ <a href="#" @click="$parent.$parent.$parent.$parent.func(func,row)">{{func.title}}</a>
163
+ </li>
164
+ </ul>
165
+ </dropdown>
166
+ </td>
167
+ </tr>
168
+ </template>
169
+ </data-grid>
170
+ </criteria-paged>
171
+ </div>
172
+ </template>
173
+ <script>
174
+ import {PagedList} from 'vue-client'
175
+ import {isEmpty} from '../../Util'
176
+ export default {
177
+ title: '报建业务信息',
178
+ props: ['showData'],
179
+ data () {
180
+ return {
181
+ model: new PagedList('rs/sql/checkuserfunction', 20, {
182
+ data: {
183
+ orgid: this.$login.f.orgid
184
+ }
185
+ }),
186
+ funcs: [], // 功能列表
187
+ curorgid: [this.$login.f.orgid],
188
+ applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
189
+ defnames: [{label: '全部', value: ''}], // 流程节点
190
+ criteriaShow: false
191
+ }
192
+ },
193
+ ready () {
194
+ // 调用查询
195
+ this.search()
196
+ },
197
+ methods: {
198
+ // 查询
199
+ search () {
200
+ this.$dispatch('search')
201
+ },
202
+ // 获取配置
203
+ async checkfuncs (row) {
204
+
205
+ this.funcs = []
206
+ let functions = this.$function_vue.functions
207
+
208
+ for (const item of functions) {
209
+ // 显示类型
210
+ if (item.showApplyTypes) {
211
+ if (item.showApplyTypes.indexOf(row.f_apply_type) === -1) {
212
+ continue
213
+ }
214
+ }
215
+ // 显示节点
216
+ if (item.showDefnames) {
217
+ if (item.showDefnames.indexOf(row.defname) === -1) {
218
+ continue
219
+ }
220
+ }
221
+ // 显示设备
222
+ if (item.device && item.device !== 'pc') {
223
+ continue
224
+ }
225
+ // if (item.device || item.device !== 'pc') {
226
+ // continue
227
+ // }
228
+ this.funcs.push(item)
229
+ }
230
+ },
231
+ // 点击功能操作
232
+ func (func, row) {
233
+ this.$dispatch('func', func, row)
234
+ },
235
+ // 权限控制
236
+ showFunc (personexpression) {
237
+
238
+ if (isEmpty(personexpression)) {
239
+ return true
240
+ }
241
+
242
+ let mark = personexpression.charAt(0)
243
+
244
+ let str = personexpression.substring(2, personexpression.length-1)
245
+
246
+ if (mark === 'D' && this.$login.f.f_department_name.includes(str)) {
247
+ return true
248
+ }
249
+ if (mark === 'R' && this.$login.f.f_role_name.includes(str)) {
250
+ return true
251
+ }
252
+ if (mark === 'P' && this.$login.f.id.includes(str)) {
253
+ return true
254
+ }
255
+
256
+ return false
257
+ },
258
+ async applyTypeChange () {
259
+ if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
260
+ let res = await this.$resetpost('rs/logic/getDefnameByType',
261
+ { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
262
+ {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
263
+ )
264
+
265
+ this.defnames = [{label: '全部', value: ''}, ...res.data]
266
+ } else {
267
+ this.defnames = [{label: '全部', value: ''}]
268
+ }
269
+ },
270
+ clear () {
271
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
272
+ this.$refs.cp.$refs.cri.model[key] = null
273
+ })
274
+ },
275
+ getorg (val) {
276
+ if (val.length <= 0) {
277
+ return
278
+ }
279
+ this.model.params.data.orgid = val[0]
280
+ }
281
+ },
282
+ computed: {
283
+ },
284
+ events: {
285
+ }
286
+ }
287
+ </script>
288
+ <style scoped>
289
+ </style>