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