apply-clients 7.1.36-yuchuan-2 → 7.1.36-yuchuan-3

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 (61) hide show
  1. package/build/dev-server.js +7 -3
  2. package/package.json +3 -3
  3. package/src/AndroidApp.vue +35 -35
  4. package/src/apply.js +12 -1
  5. package/src/applyAndroid.js +87 -83
  6. package/src/components/android/AppUpload.vue +15 -0
  7. package/src/components/android/Ignition/VentilationIgnition.vue +1 -1
  8. package/src/components/android/Process/AppExplorationUser.vue +2 -2
  9. package/src/components/android/Process/AppServiceControl.vue +1410 -1397
  10. package/src/components/android/Supervisory/AppProcessSupervisory.vue +334 -334
  11. package/src/components/android/Task/Build/BuildTsak.vue +7 -4
  12. package/src/components/android/Task/GuanXianJianShe/AppExplorationGuanXian.vue +317 -432
  13. package/src/components/android/Task/GuanXianJianShe/AppGuanXianCaiLiao.vue +237 -0
  14. package/src/components/android/Task/ShenHe/BuZhangShenHe.vue +64 -64
  15. package/src/components/android/Task/ShenHe/JingLiShenHe.vue +64 -64
  16. package/src/components/android/Task/ShiGongXinXi/AppShowBuildUser.vue +11 -7
  17. package/src/components/android/Task/UpBuild/UpBuildDui.vue +5 -2
  18. package/src/components/android/Task/UpBuild/UpBuildTsak.vue +5 -2
  19. package/src/components/android/Task/UpBuild/UpJianLi.vue +98 -98
  20. package/src/components/product/ApplyCharge/ApplyChargeList.vue +943 -606
  21. package/src/components/product/ApplyGaiXianCharge/ApplyGaiXianChargeList.vue +8 -7
  22. package/src/components/product/ApplyGuanXian/GuanXianCaiLiao.vue +236 -235
  23. package/src/components/product/ApplyGuanXian/GuanXianExplorationSelect.vue +324 -323
  24. package/src/components/product/ChongZheng/ApplyChongZhengList.vue +10 -9
  25. package/src/components/product/Function/InstallInfoSelect.vue +371 -370
  26. package/src/components/product/Function/Service/FunctionServiceControl.vue +475 -475
  27. package/src/components/product/Ignition/IgnitionList.vue +236 -236
  28. package/src/components/product/Ignition/IgnitionListManage.vue +403 -204
  29. package/src/components/product/Ignition/IgnitionRecord.vue +14 -13
  30. package/src/components/product/List/ShowAllActivity.vue +455 -0
  31. package/src/components/product/List/ShowDevices.vue +279 -279
  32. package/src/components/product/Print/BuildOrder/buildOrderList.vue +9 -8
  33. package/src/components/product/Print/BuildOrder/printBuildOrder.vue +6 -0
  34. package/src/components/product/Process/ExplorationSelect.vue +591 -581
  35. package/src/components/product/Process/ExplorationUser.vue +158 -158
  36. package/src/components/product/Process/New1ExplorationUser.vue +201 -0
  37. package/src/components/product/Process/New2ExplorationUser.vue +163 -0
  38. package/src/components/product/Process/NewExplorationSelect.vue +586 -0
  39. package/src/components/product/Process/NewExplorationUser.vue +219 -184
  40. package/src/components/product/Process/Processes/ApplyChaiChuInfo.vue +587 -587
  41. package/src/components/product/Process/Processes/InstallationDetails.vue +80 -7
  42. package/src/components/product/Process/Processes/Print/printPaymentApproval.vue +224 -224
  43. package/src/components/product/Process/Processes/newDevicesManagement.vue +26 -1
  44. package/src/components/product/Process/Processes/newInstallationDetails.vue +1 -36
  45. package/src/components/product/Process/Processes/selectOldUserinfo.vue +241 -241
  46. package/src/components/product/Process/Service/ServiceControl.vue +2166 -2162
  47. package/src/components/product/Report/ReportItems.vue +85 -79
  48. package/src/components/product/Report/apply-stair-kaifa.vue +0 -1
  49. package/src/components/product/Report/gongchengbu.vue +199 -0
  50. package/src/components/product/ServiceView.vue +644 -644
  51. package/src/components/product/Stop/StopApplyList.vue +8 -8
  52. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +594 -594
  53. package/src/components/product/Supervisory/SupervisoryList.vue +539 -537
  54. package/src/components/product/Supervisory/YiBanSupervisoryControl.vue +114 -0
  55. package/src/components/product/Supervisory/YiBanSupervisoryList.vue +541 -0
  56. package/src/main.js +27 -27
  57. package/dist-android.7z +0 -0
  58. package/dist.7z +0 -0
  59. package/rebel.xml +0 -16
  60. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +0 -207
  61. package/yarn-error.log +0 -9976
@@ -0,0 +1,586 @@
1
+ <template>
2
+ <div>
3
+ <criteria-paged :model="model" v-ref:cp>
4
+ <criteria partial='criteria' @condition-changed='$parent.searchCondition' 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-2" v-if="false">
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-2" v-if="false">
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-2" v-if="false">
19
+ <label class="font_normal_body">联系电话:</label>
20
+ <input type="text" style="width:60%" class="input_search" placeholder='联系电话' v-model="model.f_phone"
21
+ v-on:keyup.enter="$parent.$parent.search()"
22
+ condition="f_phone like '%{}%'">
23
+ </div>
24
+ <div class="form-group col-sm-2" v-if="false">
25
+ <label class="font_normal_body">联&ensp;系&ensp;人:</label>
26
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_contact"
27
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_contact like '%{}%'" placeholder='联系人'>
28
+ </div>
29
+ <div class="form-group col-sm-3 button-range">
30
+ <button class="button_new button_spacing" style="width: max-content"
31
+ v-if="false"
32
+ @click="$parent.$parent.showModal = !$parent.$parent.showModal">工程发起</button>
33
+ <export-excel :data="$parent.$parent.getCondition"
34
+ :field="$parent.$parent.getfield"
35
+ sqlurl="rs/logic/applyExportfile"
36
+ sql-name="checkuserExcel"
37
+ template-name='报建待办信息导出'
38
+ v-if="false"
39
+ :choose-col="true"></export-excel>
40
+ <button class="button_search button_spacing" v-if="false" @click="$parent.$parent.search()" v-el:cx>查询</button>
41
+ <button class="button_search button_spacing" @click="$parent.$parent.loadPage()">返回</button>
42
+ <button class="button_clear button_spacing" v-if="false" @click="$parent.$parent.clear()">清空</button>
43
+ <div
44
+ v-if="false"
45
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
46
+ @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
47
+ class="button_spacing"
48
+ style="float: right">
49
+ </div>
50
+ </div>
51
+ </div>
52
+ <div class="row" v-show="$parent.$parent.criteriaShow">
53
+ <div class="form-group col-sm-2">
54
+ <label class="font_normal_body">合同编号:</label>
55
+ <input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
56
+ v-on:keyup.enter="$parent.$parent.search()"
57
+ condition="f_contract_number like '%{}%'">
58
+ </div>
59
+ <div class="form-group col-sm-2">
60
+ <label class="font_normal_body">报建类型:</label>
61
+ <v-select
62
+ v-model="model.f_apply_type"
63
+ placeholder='报建类型'
64
+ condition="u.f_apply_type in {}"
65
+ :value.sync="model.f_apply_type"
66
+ :options='$parent.$parent.applytype'
67
+ class="select select_list"
68
+ multiple
69
+ @change="$parent.$parent.applyTypeChange()" ></v-select>
70
+ </div>
71
+ <div class="form-group col-sm-2">
72
+ <label class="font_normal_body">办理环节:</label>
73
+ <v-select
74
+ v-model="model.defname"
75
+ placeholder='办理环节'
76
+ condition="act.defname = '{}'"
77
+ :value.sync="model.defname"
78
+ :options='$parent.$parent.defnames'
79
+ class="select select_list"
80
+ :value-single="true"
81
+ close-on-select ></v-select>
82
+ </div>
83
+ <div class="form-group col-sm-2">
84
+ <label class="font_normal_body">报建性质:</label>
85
+ <v-select
86
+ v-model="model.f_apply_nature"
87
+ placeholder='报建性质'
88
+ condition="f_apply_nature = '{}'"
89
+ :value.sync="model.f_apply_nature"
90
+ :options='$parent.$parent.applyNatures'
91
+ class="select select_list"
92
+ :value-single="true"
93
+ close-on-select ></v-select>
94
+ </div>
95
+ <div class="form-group col-sm-2">
96
+ <label class="font_normal_body">用户分类:</label>
97
+ <v-select
98
+ v-model="model.f_user_classification"
99
+ placeholder='用户分类'
100
+ condition="f_user_classification = '{}'"
101
+ :value.sync="model.f_user_classification"
102
+ :options='$parent.$parent.UserList'
103
+ class="select select_list"
104
+ :value-single="true"
105
+ close-on-select ></v-select>
106
+ </div>
107
+ <div class="form-group col-sm-2">
108
+ <label class="font_normal_body">用户类型:</label>
109
+ <v-select
110
+ v-model="model.f_user_type"
111
+ placeholder='普通/煤改'
112
+ condition="f_user_type = '{}'"
113
+ :value.sync="model.f_user_type"
114
+ :options='$parent.$parent.UserType'
115
+ class="select select_list"
116
+ :value-single="true"
117
+ close-on-select ></v-select>
118
+ </div>
119
+ <div class="form-group col-sm-2">
120
+ <label class="font_normal_body">设计人员:</label>
121
+ <v-select class="select select_list"
122
+ placeholder='设计人员'
123
+ v-model="model.f_designer_people"
124
+ :value.sync="model.f_designer_people"
125
+ :options='$parent.$parent.designerPeoples'
126
+ :value-single="true"
127
+ close-on-select
128
+ condition="f_designer_people = '{}'">
129
+ </v-select>
130
+ </div>
131
+ <div class="form-group col-sm-2">
132
+ <label class="font_normal_body">用户地址:</label>
133
+ <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
134
+ v-on:keyup.enter="$parent.$parent.search()"
135
+ condition="f_address like '%{}%'">
136
+ </div>
137
+ <!-- <div class="form-group col-sm-2">-->
138
+ <!-- <label class="font_normal_body">日期类型:</label>-->
139
+ <!-- <v-select class="select select_list"-->
140
+ <!-- placeholder='日期类型'-->
141
+ <!-- v-model="model.f_date_type"-->
142
+ <!-- :value.sync="model.f_date_type"-->
143
+ <!-- :options='$parent.$parent.dateType'-->
144
+ <!-- :value-single="true"-->
145
+ <!-- @change="$parent.$parent.updateDateType()"-->
146
+ <!-- close-on-select>-->
147
+ <!-- </v-select>-->
148
+ <!-- </div>-->
149
+ <div class="form-group col-sm-2">
150
+ <label for="startDate" class="font_normal_body">开始时间:</label>
151
+ <datepicker id="startDate" placeholder="开始日期"
152
+ style="width: 60%!important;"
153
+ v-model="model.startDate"
154
+ :value.sync="model.startDate"
155
+ :format="'yyyy-MM-dd 00:00:00'"
156
+ :show-reset-button="true"
157
+ condition="sendtime >= '{}'">
158
+ </datepicker>
159
+ </div>
160
+ <div class="form-group col-sm-2">
161
+ <label for="endDate" class="font_normal_body">结束时间:</label>
162
+ <datepicker id="endDate" placeholder="结束日期"
163
+ style="width: 60%!important;"
164
+ v-model="model.endDate"
165
+ :value.sync="model.endDate"
166
+ :format="'yyyy-MM-dd 23:59:59'"
167
+ :show-reset-button="true"
168
+ condition="sendtime <= '{}'">
169
+ </datepicker>
170
+ </div>
171
+ <div class="form-group col-sm-2">
172
+ <label class="font_normal_body">来&emsp;&emsp;源:</label>
173
+ <v-select
174
+ v-model="model.f_apply_source"
175
+ placeholder='来源'
176
+ condition="u.f_apply_source = '{}'"
177
+ :value.sync="model.f_apply_source"
178
+ :options='$parent.$parent.sources'
179
+ class="select select_list"
180
+ :value-single="true"
181
+ close-on-select >
182
+ </v-select>
183
+ </div>
184
+ <div class="form-group col-sm-2">
185
+ <label class="font_normal_body">保存状态:</label>
186
+ <v-select
187
+ v-model="model.f_sub_save_state"
188
+ placeholder='保存状态'
189
+ condition="u.f_sub_save_state = '{}'"
190
+ :value.sync="model.f_sub_save_state"
191
+ :options='$parent.$parent.save_states'
192
+ class="select select_list"
193
+ :value-single="true"
194
+ close-on-select >
195
+ </v-select>
196
+ </div>
197
+ <div class="form-group col-sm-2">
198
+ <label class="font_normal_body">新旧报建:</label>
199
+ <v-select
200
+ v-model="model.f_house_type"
201
+ placeholder='新旧报建'
202
+ condition="u.f_house_type {}"
203
+ :value.sync="model.f_house_type"
204
+ :options='$parent.$parent.houseType'
205
+ class="select select_list"
206
+ :value-single="true"
207
+ close-on-select >
208
+ </v-select>
209
+ </div>
210
+ </div>
211
+ </div>
212
+ </criteria>
213
+ <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
214
+ <template partial='head'>
215
+ <tr>
216
+ <th style="white-space: nowrap;">序号</th>
217
+ <th style="white-space: nowrap;">完成状态</th>
218
+ <th style="white-space: nowrap;">工程编号</th>
219
+ <th style="white-space: nowrap;">客户名称</th>
220
+ <th style="white-space: nowrap;">联系人</th>
221
+ <th style="white-space: nowrap;">电话</th>
222
+ <th style="white-space: nowrap;">地址</th>
223
+ <th style="white-space: nowrap;">合同编号</th>
224
+ <th style="white-space: nowrap;">报建类型</th>
225
+ <th style="white-space: nowrap;">报建性质</th>
226
+ <th style="white-space: nowrap;">用户类型</th>
227
+ <th style="white-space: nowrap;">办理环节</th>
228
+ <th style="white-space: nowrap;">安装户数</th>
229
+ <th style="white-space: nowrap;">设计人员</th>
230
+ <th style="white-space: nowrap;">来源</th>
231
+ <th style="white-space: nowrap;">流程状态</th>
232
+ <th style="white-space: nowrap;">流程开始时间</th>
233
+ </tr>
234
+ </template>
235
+ <template partial='body'>
236
+ <tr >
237
+ <td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
238
+ <nobr><font>{{$index+1}}</font></nobr>
239
+ </td>
240
+ <td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
241
+ <nobr><font>{{row.f_sub_save_state}}</font></nobr>
242
+ </td>
243
+ <td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
244
+ <nobr><font>{{row.f_apply_num}}</font></nobr>
245
+ </td>
246
+ <td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
247
+ <nobr><font>{{row.f_user_name}}</font></nobr>
248
+ </td>
249
+ <td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
250
+ <nobr><font>{{row.f_contact}}</font></nobr>
251
+ </td>
252
+ <td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
253
+ <nobr><font>{{row.f_phone}}</font></nobr>
254
+ </td>
255
+ <td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
256
+ <nobr><font>{{row.f_address}}</font></nobr>
257
+ </td>
258
+ <td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
259
+ <nobr><font>{{row.f_contract_number}}</font></nobr>
260
+ </td>
261
+ <td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
262
+ <nobr><font>{{row.f_apply_type}}</font></nobr>
263
+ </td>
264
+ <td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
265
+ <nobr><font>{{row.f_apply_nature}}</font></nobr>
266
+ </td>
267
+ <td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
268
+ <nobr><font>{{row.f_user_type}}</font></nobr>
269
+ </td>
270
+ <td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
271
+ <nobr><font>{{row.defname}}</font></nobr>
272
+ </td>
273
+ <td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
274
+ <nobr><font>{{row.f_install_count}}</font></nobr>
275
+ </td>
276
+ <td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
277
+ <nobr><font>{{row.f_designer_people}}</font></nobr>
278
+ </td>
279
+ <td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
280
+ <nobr><font>{{row.f_apply_source}}</font></nobr>
281
+ </td>
282
+ <td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
283
+ <nobr><font>{{row.f_sub_state}}</font></nobr>
284
+ </td>
285
+ <td @dblclick="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
286
+ <nobr><font>{{row.sendtime}}</font></nobr>
287
+ </td>
288
+ <!-- <td @click="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">-->
289
+ <!-- <dropdown>-->
290
+ <!-- <button type="button" data-toggle="dropdown" style="border: 0px;background: none;">-->
291
+ <!-- <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>-->
292
+ <!-- </button>-->
293
+ <!-- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">-->
294
+ <!-- <li>-->
295
+ <!-- <a href="#" @click="$parent.$parent.$parent.click(row)">{{row.defname}}</a>-->
296
+ <!-- </li>-->
297
+ <!-- </ul>-->
298
+ <!-- </dropdown>-->
299
+ <!-- </td>-->
300
+ </tr>
301
+ </template>
302
+ </data-grid>
303
+ </criteria-paged>
304
+
305
+ <modal
306
+ v-if="showModal"
307
+ :show.sync="showModal"
308
+ backdrop="false"
309
+ title="工程类型"
310
+ cancel-text="取消"
311
+ ok-text="确认"
312
+ :callback="apply"
313
+ >
314
+ <div class="form-horizontal" slot="modal-body">
315
+ <div class="form-group" style="margin: 10px auto">
316
+ <label class="col-sm-3 control-label">报建类型:</label>
317
+ <div class="col-sm-9">
318
+ <v-select
319
+ v-model="applyType"
320
+ placeholder='请选择需要发起的工程类型'
321
+ :value.sync="applyType"
322
+ :options='$appdata.getParam("报建类型")'
323
+ :value-single="true"
324
+ class="select select_list"
325
+ :search="false"
326
+ close-on-select ></v-select>
327
+ </div>
328
+ </div>
329
+ </div>
330
+ </modal>
331
+ </div>
332
+ </template>
333
+ <script>
334
+ import {HttpResetClass, PagedList} from 'vue-client'
335
+ import {isEmpty} from '../../Util'
336
+
337
+ export default {
338
+ title: '工程列表',
339
+ props: ['showData'],
340
+ data () {
341
+ return {
342
+ model: new PagedList('rs/sql/checkuser', 20, {
343
+ data: {
344
+ userid: this.$login.f.id,
345
+ f_filiale: this.$login.f.f_fengongsi
346
+ }
347
+ }),
348
+ // showModal: false, // 控制发起类型选择
349
+ // applyType: '', // 报建类型
350
+ // applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
351
+ // defnames: isEmpty(this.$appdata.getParam('办理环节')) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam('办理环节')], // 流程节点
352
+ // applyNatures: [{label: '全部', value: ''},{label: '工业', value: '工业'},{label: '商业', value: '商业'},{label: '散户', value: '散户'},{label: '小区', value: '小区'},{label: '分户挂表', value: '分户挂表'}], // 报建性质
353
+ // save_states: [{label: '全部', value: ''},{label: '已完成', value: '已完成'},{label: '已退回', value: '已退回'}], // 报建性质
354
+ // designerPeoples: this.getDesigner(),
355
+ // UserList:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户分类')],
356
+ // UserType:[{label: '全部', value: ''}, {label: '普通用户', value: '普通用户'}, {label: '煤改用户', value: '煤改用户'}],
357
+ // houseType:[{label: '全部', value: ''}, {label: '旧报建', value: ` = '旧报建导入'`}, {label: '新报建', value: ' is null' }],
358
+ // // dateType: [{label: '默认', value: ''}, ...this.$appdata.getParam('日期类型')],
359
+ // criteriaShow: false,
360
+ // sources:[{label: '微信公众号', value: '微信公众号'},{label: '线下发起', value: '线下发起'}],
361
+ // getfield: {
362
+ // 'f_apply_num': ' 工 程 编 号 ',
363
+ // 'f_user_name': ' 客 户 名 称 ',
364
+ // 'f_contact': ' 联 系 人 ',
365
+ // 'f_phone': ' 电 话 ',
366
+ // 'f_user_type': ' 用户类型 ',
367
+ // 'f_user_classification': ' 用户分类 ',
368
+ // 'f_address': ' 地 址 ',
369
+ // 'f_apply_type': ' 报 建 类 型 ',
370
+ // 'f_apply_nature': ' 报 建 性 质 ',
371
+ // 'defname': ' 办 理 环 节 ',
372
+ // 'f_install_count': ' 安装户数 ',
373
+ // 'f_designer_people':' 设计人员 ',
374
+ // 'f_construction_name':' 安 装 单 位 '
375
+ // }
376
+ }
377
+ },
378
+ ready () {
379
+ // 调用查询
380
+ // if (this.showData){
381
+ // this.search()
382
+ // }
383
+ this.$refs.cp.pager = false
384
+ },
385
+ methods: {
386
+ // 点击操作
387
+ click (val) {
388
+ this.$dispatch('apply', val)
389
+ },
390
+ // 获取流程id
391
+ async getProcessId(processname) {
392
+ let data = {
393
+ workname: processname
394
+ }
395
+ let http = new HttpResetClass()
396
+ let res = await http.load(
397
+ 'POST',
398
+ 'rs/logic/getProcessId',
399
+ {data: data},
400
+ {resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
401
+ )
402
+
403
+ return res.data
404
+ },
405
+ // 报装申请
406
+ async apply () {
407
+ if (this.applyType === '' || this.applyType === null) {
408
+ this.$showAlert('请选择需要发起的类型', 'warning', 3000)
409
+ return
410
+ }
411
+ let data = {
412
+ f_apply_type: this.applyType
413
+ }
414
+ if (this.getLoginDepartment){
415
+ if (this.applyType === '民用报建') {
416
+ data.processname = '民用报建流程'
417
+ data.defname = '报装申请'
418
+ } else if (this.applyType === '非民用报建') {
419
+ data.processname = '非民用报建流程'
420
+ data.defname = '报装申请'
421
+ } else if (this.applyType === '分户挂表') {
422
+ data.processname = '分户挂表报建流程'
423
+ data.defname = '报装申请'
424
+ } else if (this.applyType === '设备变更') {
425
+ data.processname = '设备变更流程'
426
+ data.defname = '报装申请'
427
+ } else if (this.applyType === '设备拆除') {
428
+ data.processname = '设备拆除流程'
429
+ data.defname = '报建受理'
430
+ } else {
431
+ this.$showMessage('您没有权限办理此业务,或者暂无此类报装')
432
+ return
433
+ }
434
+ }else if (this.$login.f.rolesnames.includes('工程部派工')){
435
+ if (this.applyType === '改线业务') {
436
+ data.processname = '改线业务流程'
437
+ data.defname = '报装申请'
438
+ } else {
439
+ this.$showMessage('您没有权限办理此业务,或者暂无此类报装')
440
+ return
441
+ }
442
+ } else {
443
+ this.$showMessage('您没有权限办理此业务,或者暂无此类报装')
444
+ return
445
+ }
446
+
447
+ data.f_sub_state = "新增"
448
+ data.f_apply_source = "线下发起"
449
+ data.f_process_id = await this.getProcessId(data.processname)
450
+
451
+ // 调用ExplorationUser事件
452
+ this.$dispatch('apply', data)
453
+
454
+ this.applyType = null
455
+ this.showModal = false
456
+ },
457
+ loadPage () {
458
+ this.$dispatch('loadPage')
459
+ },
460
+ searchCondition (args) {
461
+ args.condition = args.condition
462
+ if (args.condition.includes('民用报建')) {
463
+ args.condition = args.condition.replace('f_apply_type = \'民用报建\'', '(f_apply_type = \'民用报建\' or f_apply_type = \'分户挂表\')');
464
+ }
465
+ // if (this.$login.f.rolesnames.includes('工程队派工')){
466
+ // args.condition = args.condition + ` and ((f_construction_unit = ${this.$login.f.id} and act.defname = '工程队派工' )or act.defname <> '工程队派工')`
467
+ // }
468
+ console.log("args.condition",args.condition)
469
+ // this.model.search(args.condition, args.model)
470
+
471
+ console.log("当前数据",this.model)
472
+ },
473
+ search () {
474
+ this.$dispatch('search')
475
+ },
476
+ async applyTypeChange () {
477
+ if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
478
+ let res = await this.$resetpost('rs/logic/getDefnameByType',
479
+ { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
480
+ {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
481
+ )
482
+
483
+ this.defnames = [{label: '全部', value: ''}, ...res.data]
484
+
485
+ // 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}性质`)]
486
+ } else {
487
+ this.defnames = isEmpty(this.$appdata.getParam('办理环节')) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam('办理环节')]
488
+
489
+ // this.applyNatures = isEmpty(this.$appdata.getParam('报建性质')) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam('报建性质')] // 报建性质
490
+ }
491
+ },
492
+ async getDesigner() {
493
+ let data = {
494
+ source: 'this.getParentByType($organization$).getChildByName($设计人员$).getChildren()',
495
+ userid: this.$login.f.id
496
+ }
497
+
498
+ let res = await this.$resetpost(
499
+ 'rs/search',
500
+ {data: data},
501
+ {resolveMsg: null, rejectMsg: '设计人员人员查询失败!!!'}
502
+ )
503
+ console.log("ces",res.data.map(item => {
504
+ return {
505
+ label: item.name,
506
+ value: item.name
507
+ }
508
+ }))
509
+ this.designerPeoples = res.data.map(item => {
510
+ return {
511
+ label: item.name,
512
+ value: item.name
513
+ }
514
+ })
515
+ },
516
+ clear () {
517
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
518
+ this.$refs.cp.$refs.cri.model[key] = null
519
+ this.$refs.cp.$refs.cri.model.f_apply_type = []
520
+ })
521
+ }
522
+ },
523
+ computed: {
524
+ projectStart () {
525
+ return this.$login.r.includes('报建发起')
526
+ },
527
+ getLoginDepartment(){
528
+ return this.$login.f.rolesnames.includes('市场部报装')
529
+ },
530
+ getCondition () {
531
+ return {
532
+ condition: this.$refs.cp.$refs.cri.condition,
533
+ data: {
534
+ userid: this.$login.f.id,
535
+ f_filiale: this.$login.f.f_fengongsi
536
+ }
537
+ }
538
+ }
539
+ },
540
+ watch: {
541
+ 'model.rows': {
542
+ handler: function () {
543
+ let isover = [] // 过期(超时)数据
544
+ let isbeforeover = [] // 未过期 提前提醒
545
+ for (let i = 0; i < this.model.rows.length; i++) {
546
+ let item = this.model.rows[i]
547
+ if (item.isover === '过期') {
548
+ isover.push(i + 1)
549
+ }
550
+ if (item.isbeforeover === '预期提醒') {
551
+ isbeforeover.push(i + 1)
552
+ }
553
+ }
554
+ let msg = null
555
+ if (isover.length > 0) {
556
+ msg = `第${isover.toString()}条数据已过期`
557
+ this.$showAlert(msg, 'warning', 3000)
558
+ }
559
+
560
+ if (isbeforeover.length > 0) {
561
+ msg = `第${isbeforeover.toString()}条数据即将过期`
562
+ if (isover.length > 0) {
563
+ setTimeout(() => {
564
+ this.$showAlert(msg, 'warning', 3000)
565
+ }, 4000)
566
+ } else {
567
+ this.$showAlert(msg, 'warning', 3000)
568
+ }
569
+ }
570
+ }
571
+ }
572
+ },
573
+ events: {
574
+ }
575
+ }
576
+ </script>
577
+ <style scoped>
578
+
579
+ .p1 {
580
+ color: #dc0b12;
581
+ font-weight:bold
582
+ }
583
+ .p {
584
+ color: #ffaf4f;
585
+ }
586
+ </style>