apply-clients 3.4.39 → 3.4.51

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 (58) hide show
  1. package/build/dev-server.js +2 -2
  2. package/package.json +1 -1
  3. package/src/android.js +21 -21
  4. package/src/apply.js +113 -113
  5. package/src/applyAndroid.js +53 -53
  6. package/src/components/android/AppServiceView.vue +745 -745
  7. package/src/components/android/AppSign.vue +154 -154
  8. package/src/components/android/Process/AppExplorationUser.vue +507 -507
  9. package/src/components/android/Process/AppServiceControl.vue +1708 -1708
  10. package/src/components/android/Process/Processes/AppAddMaterialScience.vue +477 -477
  11. package/src/components/android/Process/Processes/AppDevicesManagement.vue +519 -519
  12. package/src/components/android/Process/Processes/AppInstallationDetails.vue +482 -482
  13. package/src/components/android/Supervisory/AppSupervisoryCart.vue +156 -156
  14. package/src/components/product/Business/BusinessApply.vue +269 -269
  15. package/src/components/product/Business/CivilApply.vue +269 -269
  16. package/src/components/product/GroupByApply/ApplyGroupByList.vue +253 -253
  17. package/src/components/product/GroupByApply/ApplyGroupByMain.vue +53 -53
  18. package/src/components/product/GroupByApply/ApplyGroupByPaper.vue +376 -376
  19. package/src/components/product/Material/MaterialDetailed.vue +262 -262
  20. package/src/components/product/OldApply/Monitor/MonitorApply.vue +360 -360
  21. package/src/components/product/Print/BuildOrder/printBuildOrder.vue +157 -157
  22. package/src/components/product/Print/IgnitionBill/IgnitionBill.vue +259 -259
  23. package/src/components/product/Print/IgnitionBill/printIgnitionBill.vue +168 -168
  24. package/src/components/product/Process/ExplorationSelect.vue +495 -495
  25. package/src/components/product/Process/ExplorationUser.vue +189 -189
  26. package/src/components/product/Process/Processes/InstallationDetails.vue +610 -610
  27. package/src/components/product/Process/Processes/Print/printCharge.vue +166 -166
  28. package/src/components/product/Process/Processes/addMaterialScience.vue +454 -454
  29. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +211 -211
  30. package/src/components/product/Process/Processes/chargeManagement.vue +656 -656
  31. package/src/components/product/Process/Processes/devicesManagement.vue +484 -484
  32. package/src/components/product/Process/Service/ServiceControl.vue +1918 -1920
  33. package/src/components/product/ServiceView.vue +981 -981
  34. package/src/components/product/Supervisory/SupervisoryControl.vue +137 -137
  35. package/src/components/product/Supervisory/SupervisoryList.vue +404 -404
  36. package/src/components/product/VueUtils/ApplyUpload.vue +275 -280
  37. package/src/filiale/gehua/pc/ExplorationSelect.vue +483 -483
  38. package/src/filiale/gehua/pc/ServiceControl.vue +1929 -1929
  39. package/src/filiale/gehua/pc/SupervisoryControl.vue +137 -137
  40. package/src/filiale/gehua/pc/SupervisoryServiceControl.vue +890 -890
  41. package/src/filiale/gehua/pc/buildOrderList.vue +339 -0
  42. package/src/filiale/gehua/pc/printBuildOrder.vue +243 -0
  43. package/src/filiale/gehua/pc.js +3 -2
  44. package/src/filiale/guangxi/android/Process/AppExplorationUser.vue +503 -503
  45. package/src/filiale/guangxi/android/Process/Processes/AppAddMaterialScience.vue +470 -470
  46. package/src/filiale/guangxi/android/Process/Processes/AppDevicesManagement.vue +519 -519
  47. package/src/filiale/guangxi/android/Process/Processes/AppInstallationDetails.vue +482 -482
  48. package/src/filiale/guangxi/android/Process/Processes/AppServiceControl.vue +1708 -1708
  49. package/src/filiale/guangxi/android/Process/Processes/AppServiceView.vue +766 -766
  50. package/src/filiale/guangxi/android.js +9 -9
  51. package/src/filiale/guangxi/pc/ApplyCharge/ApplyChargeList.vue +470 -470
  52. package/src/filiale/guangxi/pc/ApplyCharge/chargeManagement.vue +702 -702
  53. package/src/filiale/guangxi/pc/Process/ExplorationSelect.vue +538 -538
  54. package/src/filiale/guangxi/pc/Process/Service/ServiceControl.vue +1922 -1922
  55. package/src/filiale/guangxi/pc/Process/Service/SupervisoryServiceControl.vue +891 -891
  56. package/src/filiale/guangxi/pc/Process/Service/addMaterialScience.vue +482 -482
  57. package/src/filiale/guangxi/pc.js +15 -15
  58. package/src/main.js +1 -4
@@ -1,538 +1,538 @@
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" v-model="model.f_user_name"
10
- v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
11
- </div>
12
- <div class="form-group col-sm-3">
13
- <label class="font_normal_body">组织机构:</label>
14
- <res-select
15
- restype='organization'
16
- :initresid='$parent.$parent.curorgid'
17
- @res-select="$parent.$parent.getorg"
18
- is-mul="false"
19
- ></res-select>
20
- </div>
21
- <!-- <div class="form-group col-sm-3">-->
22
- <!-- <label class="font_normal_body">工程编号:</label>-->
23
- <!-- <input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"-->
24
- <!-- v-on:keyup.enter="$parent.$parent.search()"-->
25
- <!-- condition="u.f_apply_num = '{}'">-->
26
- <!-- </div>-->
27
- <div class="form-group col-sm-3 button-range">
28
- <!-- <a type="button" class="button_new button_spacing" v-if="$parent.$parent.projectStart"-->
29
- <!-- href="/apply/download/excel/散户报装模板.xlsx" download>模板下载</a>-->
30
- <!-- <button class="button_new button_spacing" style="width: max-content"-->
31
- <!-- v-if="$parent.$parent.projectStart"-->
32
- <!-- @click="$parent.$parent.showFile = !$parent.$parent.showFile">批量散户导入</button>-->
33
- <button class="button_new button_spacing" style="width: max-content"
34
- v-if="$parent.$parent.projectStart"
35
- @click="$parent.$parent.showModal = !$parent.$parent.showModal">工程发起</button>
36
- <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
37
- <button class="button_search button_spacing" @click="$parent.$parent.loadPage()">返回</button>
38
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
39
- <div
40
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
41
- @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
42
- class="button_spacing"
43
- style="float: right">
44
- </div>
45
- </div>
46
- </div>
47
- <div class="row" v-show="$parent.$parent.criteriaShow">
48
- <!-- <div class="form-group col-sm-3">-->
49
- <!-- <label class="font_normal_body">客户名称:</label>-->
50
- <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"-->
51
- <!-- v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>-->
52
- <!-- </div>-->
53
- <div class="form-group col-sm-3">
54
- <label class="font_normal_body">工程编号:</label>
55
- <input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
56
- v-on:keyup.enter="$parent.$parent.search()"
57
- condition="u.f_apply_num = '{}'">
58
- </div>
59
- <div class="form-group col-sm-3">
60
- <label class="font_normal_body">合同编号:</label>
61
- <input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_money"
62
- v-on:keyup.enter="$parent.$parent.search()"
63
- condition="u.f_contract_money like '%{}%'">
64
- </div>
65
- <div class="form-group col-sm-3">
66
- <label class="font_normal_body">联系电话:</label>
67
- <input type="text" style="width:60%" class="input_search" placeholder='联系电话' v-model="model.f_phone"
68
- v-on:keyup.enter="$parent.$parent.search()"
69
- condition="f_phone like '%{}%'">
70
- </div>
71
- <div class="form-group col-sm-3">
72
- <label class="font_normal_body">合同编号:</label>
73
- <input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
74
- v-on:keyup.enter="$parent.$parent.search()"
75
- condition="f_contract_number = '{}'">
76
- </div>
77
- <div class="form-group col-sm-3">
78
- <label class="font_normal_body">报建类型:</label>
79
- <v-select
80
- v-model="model.f_apply_type"
81
- placeholder='报建类型'
82
- condition="f_apply_type = '{}'"
83
- :value.sync="model.f_apply_type"
84
- :options='$parent.$parent.applytype'
85
- class="select select_list"
86
- :value-single="true"
87
- @change="$parent.$parent.applyTypeChange()"
88
- close-on-select ></v-select>
89
- </div>
90
- <div class="form-group col-sm-3">
91
- <label class="font_normal_body">办理环节:</label>
92
- <v-select
93
- v-model="model.defname"
94
- placeholder='办理环节'
95
- condition="act.defname = '{}'"
96
- :value.sync="model.defname"
97
- :options='$parent.$parent.defnames'
98
- class="select select_list"
99
- :value-single="true"
100
- close-on-select ></v-select>
101
- </div>
102
- <div class="form-group col-sm-3">
103
- <label class="font_normal_body">报建性质:</label>
104
- <v-select
105
- v-model="model.f_apply_nature"
106
- placeholder='报建性质'
107
- condition="f_apply_nature = '{}'"
108
- :value.sync="model.f_apply_nature"
109
- :options='$parent.$parent.applyNatures'
110
- class="select select_list"
111
- :value-single="true"
112
- close-on-select ></v-select>
113
- </div>
114
- <div class="form-group col-sm-3">
115
- <label class="font_normal_body">用户地址:</label>
116
- <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
117
- v-on:keyup.enter="$parent.$parent.search()"
118
- condition="f_address like '%{}%'">
119
- </div>
120
- <div class="form-group col-sm-3">
121
- <label for="startDate" class="font_normal_body">开始时间:</label>
122
- <datepicker id="startDate" placeholder="开始日期"
123
- style="width: 60%!important;"
124
- v-model="model.startDate"
125
- :value.sync="model.startDate"
126
- :format="'yyyy-MM-dd 00:00:00'"
127
- :show-reset-button="true"
128
- condition="f_apply_date >= '{}'">
129
- </datepicker>
130
- </div>
131
- <div class="form-group col-sm-3">
132
- <label for="endDate" class="font_normal_body">结束时间:</label>
133
- <datepicker id="endDate" placeholder="结束日期"
134
- style="width: 60%!important;"
135
- v-model="model.endDate"
136
- :value.sync="model.endDate"
137
- :format="'yyyy-MM-dd 23:59:59'"
138
- :show-reset-button="true"
139
- condition="f_apply_date <= '{}'">
140
- </datepicker>
141
- </div>
142
- <div class="form-group col-sm-3">
143
- <label class="font_normal_body">稍后处理:</label>
144
- <v-select
145
- v-model="model.f_no_valid"
146
- placeholder='稍后处理'
147
- condition="lp.f_no_valid = '{}'"
148
- :value.sync="model.f_no_valid"
149
- :options='$parent.$parent.laterList'
150
- class="select select_list"
151
- :value-single="true"
152
- close-on-select ></v-select>
153
- </div>
154
- <!-- <div class="form-group col-sm-3">-->
155
- <!-- <label class="font_normal_body">是否对账:</label>-->
156
- <!-- <v-select-->
157
- <!-- v-model="model.f_no_reconciliation"-->
158
- <!-- placeholder='是否对账'-->
159
- <!-- condition="f_no_reconciliation = '{}'"-->
160
- <!-- :value.sync="model.f_no_reconciliation"-->
161
- <!-- :options='$parent.$parent.reconciliation'-->
162
- <!-- class="select select_list"-->
163
- <!-- :value-single="true"-->
164
- <!-- close-on-select ></v-select>-->
165
- <!-- </div>-->
166
- <div class="form-group col-sm-3">
167
- <label class="font_normal_body">节点发起人:</label>
168
- <input type="text" style="width:60%" class="input_search" v-model="model.act_sender"
169
- v-on:keyup.enter="$parent.$parent.search()" condition="act.sender like '%{}%'" placeholder='节点发起人'>
170
- </div>
171
- </div>
172
- </div>
173
- </criteria>
174
- <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
175
- <template partial='head'>
176
- <tr>
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
- <th style="white-space: nowrap;">流程状态</th>
187
- <th style="white-space: nowrap;">预约日期</th>
188
- <th style="white-space: nowrap;">报建日期</th>
189
- <th style="white-space: nowrap;">操作</th>
190
- </tr>
191
- </template>
192
- <template partial='body'>
193
- <tr class="back-style">
194
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'', row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
195
- <nobr><font>{{$index+1}}</font></nobr>
196
- </td>
197
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
198
- <nobr><font>{{row.f_apply_num}}</font></nobr>
199
- </td>
200
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
201
- <nobr><font>{{row.f_user_name}}</font></nobr>
202
- </td>
203
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
204
- <nobr><font>{{row.f_contract_number}}</font></nobr>
205
- </td>
206
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
207
- <nobr><font>{{row.f_phone}}</font></nobr>
208
- </td>
209
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
210
- <nobr><font>{{row.f_address}}</font></nobr>
211
- </td>
212
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
213
- <nobr><font>{{row.f_apply_source}}</font></nobr>
214
- </td>
215
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
216
- <nobr><font>{{row.f_apply_type}}</font></nobr>
217
- </td>
218
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
219
- <nobr><font>{{row.defname}}</font></nobr>
220
- </td>
221
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
222
- <nobr><font>{{row.f_sub_state}}</font></nobr>
223
- </td>
224
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'', row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
225
- <nobr><font>{{row.f_order_date}}</font></nobr>
226
- </td>
227
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
228
- <nobr><font>{{row.f_apply_date}}</font></nobr>
229
- </td>
230
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
231
- <dropdown>
232
- <button type="button" data-toggle="dropdown" style="border: 0px;background: none;">
233
- <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
234
- </button>
235
- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
236
- <li>
237
- <a href="#" @click="$parent.$parent.$parent.click(row)">{{row.defname}}</a>
238
- <a href="#" @click="$parent.$parent.$parent.openLater(row)" v-if="row.f_no_valid !== '有效'">稍后处理</a>
239
- </li>
240
- </ul>
241
- </dropdown>
242
- </td>
243
- </tr>
244
- </template>
245
- </data-grid>
246
- </criteria-paged>
247
-
248
- <modal
249
- v-if="showModal"
250
- :show.sync="showModal"
251
- backdrop="false"
252
- title="工程类型"
253
- cancel-text="取消"
254
- ok-text="确认"
255
- :callback="apply"
256
- >
257
- <div class="form-horizontal" slot="modal-body">
258
- <div class="form-group" style="margin: 10px auto">
259
- <label class="col-sm-3 control-label">报建类型:</label>
260
- <div class="col-sm-9">
261
- <v-select
262
- v-model="applyType"
263
- placeholder='请选择需要发起的工程类型'
264
- :value.sync="applyType"
265
- :options='$appdata.getParam("报建类型")'
266
- :value-single="true"
267
- class="select select_list"
268
- :search="false"
269
- close-on-select ></v-select>
270
- </div>
271
- </div>
272
- <div class="form-group" style="margin: 10px auto">
273
- <label class="col-sm-3 control-label">用户类型:</label>
274
- <div class="col-sm-9">
275
- <v-select
276
- v-model="f_user_type"
277
- placeholder='请选择需要发起的用户类型'
278
- :value.sync="f_user_type"
279
- :options='usertype'
280
- :value-single="true"
281
- class="select select_list"
282
- :search="false"
283
- close-on-select ></v-select>
284
- </div>
285
- </div>
286
- </div>
287
- </modal>
288
-
289
- <modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="选择文件">
290
- <header slot="modal-header" class="modal-header">
291
- <button type="button" class="close" @click="closeFile"><span>&times;</span></button>
292
- <h4 class="modal-title">选择文件</h4>
293
- </header>
294
- <article slot="modal-body" class="modal-body">
295
- <div class="form-group">
296
- <file-upload class="my-file-uploader" action="rs/file/uploadFile" tagname="确定" v-ref:file></file-upload>
297
- </div>
298
- </article>
299
- <footer slot="modal-footer" class="modal-footer"></footer>
300
- </modal>
301
- </div>
302
- </template>
303
- <script>
304
- import {HttpResetClass, PagedList} from 'vue-client'
305
- import {isEmpty} from "../../../../components/Util";
306
-
307
- export default {
308
- title: '工程列表',
309
- props: ['showData'],
310
- data () {
311
- return {
312
- model: new PagedList('rs/sql/checkuser', 20, {
313
- data: {
314
- id: this.$login.f.id,
315
- orgid: this.$login.f.orgid
316
- }
317
- }),
318
- showModal: false, // 控制发起类型选择
319
- applyType: [], // 报建类型
320
- curorgid: [this.$login.f.orgid],
321
- // reconciliation: [{label: '全部', value: ''}, ...this.$appdata.getParam('是否对账')], // 是否合账
322
- applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
323
- defnames: [{label: '全部', value: ''}], // 流程节点
324
- usertype:[{label:"民用",value:'民用'},{label:"非民用",value:'非民用'}],
325
- applyNatures: [{label: '全部', value: ''}], // 报建性质
326
- criteriaShow: false,
327
- showFile: false,
328
- laterList: [
329
- {label: '全部', value: ''},
330
- {label: '有效', value: '有效'}
331
- ]
332
- }
333
- },
334
- ready () {
335
- this.applytype= [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
336
- // 调用查询
337
- this.search()
338
- // this.getOrgName()
339
- },
340
- methods: {
341
- // 获取所有组织名称
342
- async getOrgName() {
343
- let http = new HttpResetClass()
344
- let org = this.$login.f.orgs === '重庆盛焰集团' || this.$login.f.orgs === '湖南燎原燃气有限公司' ? " 1 = 1" : " name = '" + this.$login.f.orgs + "'"
345
- let data = {
346
- tablename: 't_organization',
347
- condition: " name != '组织机构' and " + org
348
-
349
- }
350
- let res = await http.load('POST','rs/sql/applysingleTable',{data:data}, {
351
- resolveMsg: null,
352
- rejectMsg: '获取公司名称失败'
353
- })
354
- for (let i = 0; i < res.data.length; i++) {
355
- // 所属公司
356
- let data1 = []
357
- let array1 = []
358
- data1 = res.data.map(item => {
359
- return item.name;
360
- })
361
- for (let q = 0; q < data1.length; q++) {
362
- let arraydata = {
363
- 'label': data1[q],
364
- 'value': data1[q]
365
- }
366
- if (array1.length != 0) {
367
- for (let w = 0; w < array1.length; w++) {
368
- if (array1[w].label == data1[q]) {
369
- break
370
- }
371
- while (w == array1.length - 1) {
372
- array1.push(arraydata)
373
- break
374
- }
375
- }
376
- } else {
377
- array1.push(arraydata)
378
- }
379
- }
380
- this.apply_org = array1
381
- }
382
- },
383
- openLater (row) {
384
- this.$dispatch('openLater', row)
385
- },
386
- closeFile () {
387
- this.showFile = false
388
- // 将选的文件清空
389
- this.$refs.file.$el.querySelector('input').value = ''
390
- this.search()
391
- },
392
- // 点击操作
393
- click (val) {
394
- this.$dispatch('apply', val)
395
- },
396
- // 获取流程id
397
- async getProcessId(processname) {
398
- let data = {
399
- workname: processname
400
- }
401
- let http = new HttpResetClass()
402
- let res = await http.load(
403
- 'POST',
404
- 'rs/logic/getProcessId',
405
- {data: data},
406
- {resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
407
- )
408
-
409
- return res.data
410
- },
411
- // 报装申请
412
- async apply () {
413
- if (this.applyType === '' || this.applyType === null) {
414
- this.$showAlert('请选择需要发起的类型', 'warning', 3000)
415
- return
416
- }
417
- let data = {
418
- f_apply_type: this.applyType
419
- }
420
- if(this.f_user_type==='民用'){
421
- data.processname = "报建初装居民流程"
422
- data.defname = "报装申请"
423
- } else if(this.f_user_type==='非民用'){
424
- data.processname = "报建初装流程"
425
- data.defname = "报装申请"
426
- }
427
- else {
428
- this.$showMessage('暂无此类报装')
429
- return
430
- }
431
-
432
- data.f_sub_state = "新增"
433
- data.f_apply_source = "线下发起"
434
- data.f_process_id = await this.getProcessId(data.processname)
435
-
436
- // 调用ExplorationUser事件
437
- this.$dispatch('apply', data)
438
-
439
- this.applyType = null
440
- this.showModal = false
441
- },
442
- loadPage () {
443
- this.$dispatch('loadPage')
444
- },
445
- search () {
446
- this.$dispatch('search')
447
- },
448
- async applyTypeChange () {
449
- if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
450
- let res = await this.$resetpost('rs/logic/getDefnameByType',
451
- { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
452
- {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
453
- )
454
-
455
- this.defnames = [{label: '全部', value: ''}, ...res.data]
456
-
457
- 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}性质`)]
458
- } else {
459
- this.defnames = [{label: '全部', value: ''}]
460
-
461
- this.applyNatures = [{label: '全部', value: ''}]
462
- }
463
- },
464
- clear () {
465
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
466
- this.$refs.cp.$refs.cri.model[key] = null
467
- })
468
- },
469
- getorg (val) {
470
- if (val.length <= 0) {
471
- return
472
- }
473
- this.model.params.data.orgid = val[0]
474
- }
475
- },
476
- computed: {
477
- projectStart () {
478
- return this.$login.r.includes('报建发起')
479
- }
480
- },
481
- watch: {
482
- 'model.rows': {
483
- handler: function () {
484
- let isover = [] // 过期(超时)数据
485
- let isbeforeover = [] // 未过期 提前提醒
486
- for (let i = 0; i < this.model.rows.length; i++) {
487
- let item = this.model.rows[i]
488
- if (item.isover === '过期') {
489
- isover.push(i + 1)
490
- }
491
- if (item.isbeforeover === '预期提醒') {
492
- isbeforeover.push(i + 1)
493
- }
494
- }
495
- let msg = null
496
- if (isover.length > 0) {
497
- msg = `第${isover.toString()}条数据已过期`
498
- this.$showAlert(msg, 'warning', 3000)
499
- }
500
-
501
- if (isbeforeover.length > 0) {
502
- msg = `第${isbeforeover.toString()}条数据即将过期`
503
- if (isover.length > 0) {
504
- setTimeout(() => {
505
- this.$showAlert(msg, 'warning', 3000)
506
- }, 4000)
507
- } else {
508
- this.$showAlert(msg, 'warning', 3000)
509
- }
510
- }
511
- }
512
- }
513
- },
514
- events: {
515
- async 'onFileUpload'(file, result) {
516
- let data = {
517
- filepath: result.f_downloadpath,
518
- user: this.$login.f
519
- }
520
- let res = await this.$resetpost(`rs/logic/importApply`, {data:data}, {resolveMsg: null, rejectMsg: '导入失败!!!', silent: true}, 0)
521
-
522
- this.closeFile()
523
- }
524
- }
525
- }
526
- </script>
527
- <style scoped>
528
- .back-style{
529
- background-color: #ffa726;
530
- }
531
- .p1 {
532
- color: #dc0b12;
533
- font-weight:bold
534
- }
535
- .p {
536
- color: #ffaf4f;
537
- }
538
- </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" v-model="model.f_user_name"
10
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
11
+ </div>
12
+ <div class="form-group col-sm-3">
13
+ <label class="font_normal_body">组织机构:</label>
14
+ <res-select
15
+ restype='organization'
16
+ :initresid='$parent.$parent.curorgid'
17
+ @res-select="$parent.$parent.getorg"
18
+ is-mul="false"
19
+ ></res-select>
20
+ </div>
21
+ <!-- <div class="form-group col-sm-3">-->
22
+ <!-- <label class="font_normal_body">工程编号:</label>-->
23
+ <!-- <input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"-->
24
+ <!-- v-on:keyup.enter="$parent.$parent.search()"-->
25
+ <!-- condition="u.f_apply_num = '{}'">-->
26
+ <!-- </div>-->
27
+ <div class="form-group col-sm-3 button-range">
28
+ <!-- <a type="button" class="button_new button_spacing" v-if="$parent.$parent.projectStart"-->
29
+ <!-- href="/apply/download/excel/散户报装模板.xlsx" download>模板下载</a>-->
30
+ <!-- <button class="button_new button_spacing" style="width: max-content"-->
31
+ <!-- v-if="$parent.$parent.projectStart"-->
32
+ <!-- @click="$parent.$parent.showFile = !$parent.$parent.showFile">批量散户导入</button>-->
33
+ <button class="button_new button_spacing" style="width: max-content"
34
+ v-if="$parent.$parent.projectStart"
35
+ @click="$parent.$parent.showModal = !$parent.$parent.showModal">工程发起</button>
36
+ <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
37
+ <button class="button_search button_spacing" @click="$parent.$parent.loadPage()">返回</button>
38
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
39
+ <div
40
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
41
+ @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
42
+ class="button_spacing"
43
+ style="float: right">
44
+ </div>
45
+ </div>
46
+ </div>
47
+ <div class="row" v-show="$parent.$parent.criteriaShow">
48
+ <!-- <div class="form-group col-sm-3">-->
49
+ <!-- <label class="font_normal_body">客户名称:</label>-->
50
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"-->
51
+ <!-- v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>-->
52
+ <!-- </div>-->
53
+ <div class="form-group col-sm-3">
54
+ <label class="font_normal_body">工程编号:</label>
55
+ <input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
56
+ v-on:keyup.enter="$parent.$parent.search()"
57
+ condition="u.f_apply_num = '{}'">
58
+ </div>
59
+ <div class="form-group col-sm-3">
60
+ <label class="font_normal_body">合同编号:</label>
61
+ <input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_money"
62
+ v-on:keyup.enter="$parent.$parent.search()"
63
+ condition="u.f_contract_money like '%{}%'">
64
+ </div>
65
+ <div class="form-group col-sm-3">
66
+ <label class="font_normal_body">联系电话:</label>
67
+ <input type="text" style="width:60%" class="input_search" placeholder='联系电话' v-model="model.f_phone"
68
+ v-on:keyup.enter="$parent.$parent.search()"
69
+ condition="f_phone like '%{}%'">
70
+ </div>
71
+ <div class="form-group col-sm-3">
72
+ <label class="font_normal_body">合同编号:</label>
73
+ <input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
74
+ v-on:keyup.enter="$parent.$parent.search()"
75
+ condition="f_contract_number = '{}'">
76
+ </div>
77
+ <div class="form-group col-sm-3">
78
+ <label class="font_normal_body">报建类型:</label>
79
+ <v-select
80
+ v-model="model.f_apply_type"
81
+ placeholder='报建类型'
82
+ condition="f_apply_type = '{}'"
83
+ :value.sync="model.f_apply_type"
84
+ :options='$parent.$parent.applytype'
85
+ class="select select_list"
86
+ :value-single="true"
87
+ @change="$parent.$parent.applyTypeChange()"
88
+ close-on-select ></v-select>
89
+ </div>
90
+ <div class="form-group col-sm-3">
91
+ <label class="font_normal_body">办理环节:</label>
92
+ <v-select
93
+ v-model="model.defname"
94
+ placeholder='办理环节'
95
+ condition="act.defname = '{}'"
96
+ :value.sync="model.defname"
97
+ :options='$parent.$parent.defnames'
98
+ class="select select_list"
99
+ :value-single="true"
100
+ close-on-select ></v-select>
101
+ </div>
102
+ <div class="form-group col-sm-3">
103
+ <label class="font_normal_body">报建性质:</label>
104
+ <v-select
105
+ v-model="model.f_apply_nature"
106
+ placeholder='报建性质'
107
+ condition="f_apply_nature = '{}'"
108
+ :value.sync="model.f_apply_nature"
109
+ :options='$parent.$parent.applyNatures'
110
+ class="select select_list"
111
+ :value-single="true"
112
+ close-on-select ></v-select>
113
+ </div>
114
+ <div class="form-group col-sm-3">
115
+ <label class="font_normal_body">用户地址:</label>
116
+ <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
117
+ v-on:keyup.enter="$parent.$parent.search()"
118
+ condition="f_address like '%{}%'">
119
+ </div>
120
+ <div class="form-group col-sm-3">
121
+ <label for="startDate" class="font_normal_body">开始时间:</label>
122
+ <datepicker id="startDate" placeholder="开始日期"
123
+ style="width: 60%!important;"
124
+ v-model="model.startDate"
125
+ :value.sync="model.startDate"
126
+ :format="'yyyy-MM-dd 00:00:00'"
127
+ :show-reset-button="true"
128
+ condition="f_apply_date >= '{}'">
129
+ </datepicker>
130
+ </div>
131
+ <div class="form-group col-sm-3">
132
+ <label for="endDate" class="font_normal_body">结束时间:</label>
133
+ <datepicker id="endDate" placeholder="结束日期"
134
+ style="width: 60%!important;"
135
+ v-model="model.endDate"
136
+ :value.sync="model.endDate"
137
+ :format="'yyyy-MM-dd 23:59:59'"
138
+ :show-reset-button="true"
139
+ condition="f_apply_date <= '{}'">
140
+ </datepicker>
141
+ </div>
142
+ <div class="form-group col-sm-3">
143
+ <label class="font_normal_body">稍后处理:</label>
144
+ <v-select
145
+ v-model="model.f_no_valid"
146
+ placeholder='稍后处理'
147
+ condition="lp.f_no_valid = '{}'"
148
+ :value.sync="model.f_no_valid"
149
+ :options='$parent.$parent.laterList'
150
+ class="select select_list"
151
+ :value-single="true"
152
+ close-on-select ></v-select>
153
+ </div>
154
+ <!-- <div class="form-group col-sm-3">-->
155
+ <!-- <label class="font_normal_body">是否对账:</label>-->
156
+ <!-- <v-select-->
157
+ <!-- v-model="model.f_no_reconciliation"-->
158
+ <!-- placeholder='是否对账'-->
159
+ <!-- condition="f_no_reconciliation = '{}'"-->
160
+ <!-- :value.sync="model.f_no_reconciliation"-->
161
+ <!-- :options='$parent.$parent.reconciliation'-->
162
+ <!-- class="select select_list"-->
163
+ <!-- :value-single="true"-->
164
+ <!-- close-on-select ></v-select>-->
165
+ <!-- </div>-->
166
+ <div class="form-group col-sm-3">
167
+ <label class="font_normal_body">节点发起人:</label>
168
+ <input type="text" style="width:60%" class="input_search" v-model="model.act_sender"
169
+ v-on:keyup.enter="$parent.$parent.search()" condition="act.sender like '%{}%'" placeholder='节点发起人'>
170
+ </div>
171
+ </div>
172
+ </div>
173
+ </criteria>
174
+ <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
175
+ <template partial='head'>
176
+ <tr>
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
+ <th style="white-space: nowrap;">流程状态</th>
187
+ <th style="white-space: nowrap;">预约日期</th>
188
+ <th style="white-space: nowrap;">报建日期</th>
189
+ <th style="white-space: nowrap;">操作</th>
190
+ </tr>
191
+ </template>
192
+ <template partial='body'>
193
+ <tr class="back-style">
194
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'', row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
195
+ <nobr><font>{{$index+1}}</font></nobr>
196
+ </td>
197
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
198
+ <nobr><font>{{row.f_apply_num}}</font></nobr>
199
+ </td>
200
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
201
+ <nobr><font>{{row.f_user_name}}</font></nobr>
202
+ </td>
203
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
204
+ <nobr><font>{{row.f_contract_number}}</font></nobr>
205
+ </td>
206
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
207
+ <nobr><font>{{row.f_phone}}</font></nobr>
208
+ </td>
209
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
210
+ <nobr><font>{{row.f_address}}</font></nobr>
211
+ </td>
212
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
213
+ <nobr><font>{{row.f_apply_source}}</font></nobr>
214
+ </td>
215
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
216
+ <nobr><font>{{row.f_apply_type}}</font></nobr>
217
+ </td>
218
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
219
+ <nobr><font>{{row.defname}}</font></nobr>
220
+ </td>
221
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
222
+ <nobr><font>{{row.f_sub_state}}</font></nobr>
223
+ </td>
224
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'', row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
225
+ <nobr><font>{{row.f_order_date}}</font></nobr>
226
+ </td>
227
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
228
+ <nobr><font>{{row.f_apply_date}}</font></nobr>
229
+ </td>
230
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
231
+ <dropdown>
232
+ <button type="button" data-toggle="dropdown" style="border: 0px;background: none;">
233
+ <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
234
+ </button>
235
+ <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
236
+ <li>
237
+ <a href="#" @click="$parent.$parent.$parent.click(row)">{{row.defname}}</a>
238
+ <a href="#" @click="$parent.$parent.$parent.openLater(row)" v-if="row.f_no_valid !== '有效'">稍后处理</a>
239
+ </li>
240
+ </ul>
241
+ </dropdown>
242
+ </td>
243
+ </tr>
244
+ </template>
245
+ </data-grid>
246
+ </criteria-paged>
247
+
248
+ <modal
249
+ v-if="showModal"
250
+ :show.sync="showModal"
251
+ backdrop="false"
252
+ title="工程类型"
253
+ cancel-text="取消"
254
+ ok-text="确认"
255
+ :callback="apply"
256
+ >
257
+ <div class="form-horizontal" slot="modal-body">
258
+ <div class="form-group" style="margin: 10px auto">
259
+ <label class="col-sm-3 control-label">报建类型:</label>
260
+ <div class="col-sm-9">
261
+ <v-select
262
+ v-model="applyType"
263
+ placeholder='请选择需要发起的工程类型'
264
+ :value.sync="applyType"
265
+ :options='$appdata.getParam("报建类型")'
266
+ :value-single="true"
267
+ class="select select_list"
268
+ :search="false"
269
+ close-on-select ></v-select>
270
+ </div>
271
+ </div>
272
+ <div class="form-group" style="margin: 10px auto">
273
+ <label class="col-sm-3 control-label">用户类型:</label>
274
+ <div class="col-sm-9">
275
+ <v-select
276
+ v-model="f_user_type"
277
+ placeholder='请选择需要发起的用户类型'
278
+ :value.sync="f_user_type"
279
+ :options='usertype'
280
+ :value-single="true"
281
+ class="select select_list"
282
+ :search="false"
283
+ close-on-select ></v-select>
284
+ </div>
285
+ </div>
286
+ </div>
287
+ </modal>
288
+
289
+ <modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="选择文件">
290
+ <header slot="modal-header" class="modal-header">
291
+ <button type="button" class="close" @click="closeFile"><span>&times;</span></button>
292
+ <h4 class="modal-title">选择文件</h4>
293
+ </header>
294
+ <article slot="modal-body" class="modal-body">
295
+ <div class="form-group">
296
+ <file-upload class="my-file-uploader" action="rs/file/uploadFile" tagname="确定" v-ref:file></file-upload>
297
+ </div>
298
+ </article>
299
+ <footer slot="modal-footer" class="modal-footer"></footer>
300
+ </modal>
301
+ </div>
302
+ </template>
303
+ <script>
304
+ import {HttpResetClass, PagedList} from 'vue-client'
305
+ import {isEmpty} from "../../../../components/Util";
306
+
307
+ export default {
308
+ title: '工程列表',
309
+ props: ['showData'],
310
+ data () {
311
+ return {
312
+ model: new PagedList('rs/sql/checkuser', 20, {
313
+ data: {
314
+ id: this.$login.f.id,
315
+ orgid: this.$login.f.orgid
316
+ }
317
+ }),
318
+ showModal: false, // 控制发起类型选择
319
+ applyType: [], // 报建类型
320
+ curorgid: [this.$login.f.orgid],
321
+ // reconciliation: [{label: '全部', value: ''}, ...this.$appdata.getParam('是否对账')], // 是否合账
322
+ applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
323
+ defnames: [{label: '全部', value: ''}], // 流程节点
324
+ usertype:[{label:"民用",value:'民用'},{label:"非民用",value:'非民用'}],
325
+ applyNatures: [{label: '全部', value: ''}], // 报建性质
326
+ criteriaShow: false,
327
+ showFile: false,
328
+ laterList: [
329
+ {label: '全部', value: ''},
330
+ {label: '有效', value: '有效'}
331
+ ]
332
+ }
333
+ },
334
+ ready () {
335
+ this.applytype= [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
336
+ // 调用查询
337
+ this.search()
338
+ // this.getOrgName()
339
+ },
340
+ methods: {
341
+ // 获取所有组织名称
342
+ async getOrgName() {
343
+ let http = new HttpResetClass()
344
+ let org = this.$login.f.orgs === '重庆盛焰集团' || this.$login.f.orgs === '湖南燎原燃气有限公司' ? " 1 = 1" : " name = '" + this.$login.f.orgs + "'"
345
+ let data = {
346
+ tablename: 't_organization',
347
+ condition: " name != '组织机构' and " + org
348
+
349
+ }
350
+ let res = await http.load('POST','rs/sql/applysingleTable',{data:data}, {
351
+ resolveMsg: null,
352
+ rejectMsg: '获取公司名称失败'
353
+ })
354
+ for (let i = 0; i < res.data.length; i++) {
355
+ // 所属公司
356
+ let data1 = []
357
+ let array1 = []
358
+ data1 = res.data.map(item => {
359
+ return item.name;
360
+ })
361
+ for (let q = 0; q < data1.length; q++) {
362
+ let arraydata = {
363
+ 'label': data1[q],
364
+ 'value': data1[q]
365
+ }
366
+ if (array1.length != 0) {
367
+ for (let w = 0; w < array1.length; w++) {
368
+ if (array1[w].label == data1[q]) {
369
+ break
370
+ }
371
+ while (w == array1.length - 1) {
372
+ array1.push(arraydata)
373
+ break
374
+ }
375
+ }
376
+ } else {
377
+ array1.push(arraydata)
378
+ }
379
+ }
380
+ this.apply_org = array1
381
+ }
382
+ },
383
+ openLater (row) {
384
+ this.$dispatch('openLater', row)
385
+ },
386
+ closeFile () {
387
+ this.showFile = false
388
+ // 将选的文件清空
389
+ this.$refs.file.$el.querySelector('input').value = ''
390
+ this.search()
391
+ },
392
+ // 点击操作
393
+ click (val) {
394
+ this.$dispatch('apply', val)
395
+ },
396
+ // 获取流程id
397
+ async getProcessId(processname) {
398
+ let data = {
399
+ workname: processname
400
+ }
401
+ let http = new HttpResetClass()
402
+ let res = await http.load(
403
+ 'POST',
404
+ 'rs/logic/getProcessId',
405
+ {data: data},
406
+ {resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
407
+ )
408
+
409
+ return res.data
410
+ },
411
+ // 报装申请
412
+ async apply () {
413
+ if (this.applyType === '' || this.applyType === null) {
414
+ this.$showAlert('请选择需要发起的类型', 'warning', 3000)
415
+ return
416
+ }
417
+ let data = {
418
+ f_apply_type: this.applyType
419
+ }
420
+ if(this.f_user_type==='民用'){
421
+ data.processname = "报建初装居民流程"
422
+ data.defname = "报装申请"
423
+ } else if(this.f_user_type==='非民用'){
424
+ data.processname = "报建初装流程"
425
+ data.defname = "报装申请"
426
+ }
427
+ else {
428
+ this.$showMessage('暂无此类报装')
429
+ return
430
+ }
431
+
432
+ data.f_sub_state = "新增"
433
+ data.f_apply_source = "线下发起"
434
+ data.f_process_id = await this.getProcessId(data.processname)
435
+
436
+ // 调用ExplorationUser事件
437
+ this.$dispatch('apply', data)
438
+
439
+ this.applyType = null
440
+ this.showModal = false
441
+ },
442
+ loadPage () {
443
+ this.$dispatch('loadPage')
444
+ },
445
+ search () {
446
+ this.$dispatch('search')
447
+ },
448
+ async applyTypeChange () {
449
+ if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
450
+ let res = await this.$resetpost('rs/logic/getDefnameByType',
451
+ { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
452
+ {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
453
+ )
454
+
455
+ this.defnames = [{label: '全部', value: ''}, ...res.data]
456
+
457
+ 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}性质`)]
458
+ } else {
459
+ this.defnames = [{label: '全部', value: ''}]
460
+
461
+ this.applyNatures = [{label: '全部', value: ''}]
462
+ }
463
+ },
464
+ clear () {
465
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
466
+ this.$refs.cp.$refs.cri.model[key] = null
467
+ })
468
+ },
469
+ getorg (val) {
470
+ if (val.length <= 0) {
471
+ return
472
+ }
473
+ this.model.params.data.orgid = val[0]
474
+ }
475
+ },
476
+ computed: {
477
+ projectStart () {
478
+ return this.$login.r.includes('报建发起')
479
+ }
480
+ },
481
+ watch: {
482
+ 'model.rows': {
483
+ handler: function () {
484
+ let isover = [] // 过期(超时)数据
485
+ let isbeforeover = [] // 未过期 提前提醒
486
+ for (let i = 0; i < this.model.rows.length; i++) {
487
+ let item = this.model.rows[i]
488
+ if (item.isover === '过期') {
489
+ isover.push(i + 1)
490
+ }
491
+ if (item.isbeforeover === '预期提醒') {
492
+ isbeforeover.push(i + 1)
493
+ }
494
+ }
495
+ let msg = null
496
+ if (isover.length > 0) {
497
+ msg = `第${isover.toString()}条数据已过期`
498
+ this.$showAlert(msg, 'warning', 3000)
499
+ }
500
+
501
+ if (isbeforeover.length > 0) {
502
+ msg = `第${isbeforeover.toString()}条数据即将过期`
503
+ if (isover.length > 0) {
504
+ setTimeout(() => {
505
+ this.$showAlert(msg, 'warning', 3000)
506
+ }, 4000)
507
+ } else {
508
+ this.$showAlert(msg, 'warning', 3000)
509
+ }
510
+ }
511
+ }
512
+ }
513
+ },
514
+ events: {
515
+ async 'onFileUpload'(file, result) {
516
+ let data = {
517
+ filepath: result.f_downloadpath,
518
+ user: this.$login.f
519
+ }
520
+ let res = await this.$resetpost(`rs/logic/importApply`, {data:data}, {resolveMsg: null, rejectMsg: '导入失败!!!', silent: true}, 0)
521
+
522
+ this.closeFile()
523
+ }
524
+ }
525
+ }
526
+ </script>
527
+ <style scoped>
528
+ .back-style{
529
+ background-color: #ffa726;
530
+ }
531
+ .p1 {
532
+ color: #dc0b12;
533
+ font-weight:bold
534
+ }
535
+ .p {
536
+ color: #ffaf4f;
537
+ }
538
+ </style>