apply-clients 3.5.1 → 3.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/build/dev-server.js +142 -133
  2. package/package.json +118 -118
  3. package/src/App.vue +26 -21
  4. package/src/applyAndroid.js +58 -58
  5. package/src/components/android/AppSign.vue +152 -152
  6. package/src/components/android/AppTakePic.vue +181 -181
  7. package/src/components/android/Process/AppChargeList.vue +224 -224
  8. package/src/components/android/Process/AppExplorationUser.vue +508 -508
  9. package/src/components/product/Install/ContractCharge.vue +210 -210
  10. package/src/filiale/fugou/android/AppChargeManagement.vue +625 -625
  11. package/src/filiale/hongda/pc/FunctionServiceControl.vue +526 -525
  12. package/src/filiale/qianneng/android/AppExplorationUser.vue +441 -441
  13. package/src/filiale/qianneng/android/AppServiceControl.vue +1608 -1608
  14. package/src/filiale/qianneng/pc/Applybatchdispatch.vue +685 -685
  15. package/src/filiale/qianneng/pc/ExplorationSelect.vue +492 -492
  16. package/src/filiale/qianneng/pc/FunctionServiceControl.vue +521 -521
  17. package/src/filiale/qianneng/pc/InstallInfoSelect.vue +392 -392
  18. package/src/filiale/qianneng/pc/InstallationDetails.vue +561 -561
  19. package/src/filiale/qianneng/pc/ServiceControl.vue +1351 -1340
  20. package/src/filiale/qianneng/pc/SupervisoryList.vue +344 -344
  21. package/src/filiale/qianneng/pc/SupervisoryServiceControl.vue +871 -871
  22. package/src/filiale/qianneng/pc/chargeManagement.vue +656 -656
  23. package/src/filiale/qianneng/pc/printactivatecard.vue +295 -295
  24. package/src/filiale/qianneng/pc/supplementalAgreement.vue +344 -344
  25. package/src/filiale/yangchunboneng/android/AppAddMaterialScience.vue +390 -390
  26. package/src/filiale/yangchunboneng/android/AppChargeManagement.vue +120 -120
  27. package/src/filiale/yangchunboneng/android/AppDevicesManagement.vue +552 -552
  28. package/src/filiale/yangchunboneng/android/AppExplorationUser.vue +507 -507
  29. package/src/filiale/yangchunboneng/android/AppInstallationDetails.vue +492 -492
  30. package/src/filiale/yangchunboneng/android/AppOtherChargeManagement.vue +116 -116
  31. package/src/filiale/yangchunboneng/android/AppServiceControl.vue +1552 -1552
  32. package/src/filiale/yangchunboneng/android/AppTakePic.vue +181 -181
  33. package/src/filiale/yangchunboneng/android/chargesList.vue +170 -170
  34. package/src/filiale/yangchunboneng/android.js +16 -16
  35. package/src/filiale/yangchunboneng/pc/ExplorationSelect.vue +496 -496
  36. package/src/filiale/yangchunboneng/pc/InstallationDetails.vue +609 -609
  37. package/src/filiale/yangchunboneng/pc/ServiceControl.vue +1782 -1782
  38. package/src/filiale/yangchunboneng/pc/ServiceView.vue +1005 -1005
  39. package/src/filiale/yangchunboneng/pc/addMaterialScience.vue +374 -374
  40. package/src/filiale/yangchunboneng/pc/chargeManagement.vue +960 -960
  41. package/src/filiale/yangchunboneng/pc/devicesManagement.vue +511 -511
  42. package/src/filiale/yangchunboneng/pc/otherchargeManagement.vue +214 -214
  43. package/src/filiale/yangchunboneng/pc.js +17 -17
  44. package/src/main.js +23 -23
@@ -1,496 +1,496 @@
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="ui.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_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
- <input type="text" style="width:60%" class="input_search" v-model="model.act_sender"
157
- v-on:keyup.enter="$parent.$parent.search()" condition="act.sender like '%{}%'" placeholder='节点发起人'>
158
- </div>
159
- <div class="form-group col-sm-3">
160
- <label for="bookstart" class="font_normal_body">开始时间:</label>
161
- <datepicker id="bookstart" placeholder="预约开始日期"
162
- style="width: 60%!important;"
163
- v-model="model.bookstart"
164
- :value.sync="model.bookstart"
165
- :format="'yyyy-MM-dd 00:00:00'"
166
- :show-reset-button="true"
167
- condition="f_order_date >= '{}'">
168
- </datepicker>
169
- </div>
170
- <div class="form-group col-sm-3">
171
- <label for="bookend" class="font_normal_body">结束时间:</label>
172
- <datepicker id="bookend" placeholder="预约结束日期"
173
- style="width: 60%!important;"
174
- v-model="model.bookend"
175
- :value.sync="model.bookend"
176
- :format="'yyyy-MM-dd 23:59:59'"
177
- :show-reset-button="true"
178
- condition="f_order_date <= '{}'">
179
- </datepicker>
180
- </div>
181
- </div>
182
- </div>
183
- </criteria>
184
- <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
185
- <template partial='head'>
186
- <tr>
187
- <th style="white-space: nowrap;">操作</th>
188
- <th style="white-space: nowrap;">序号</th>
189
- <th style="white-space: nowrap;">工程编号</th>
190
- <th style="white-space: nowrap;">客户名称</th>
191
- <th style="white-space: nowrap;">合同编号</th>
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
- </tr>
200
- </template>
201
- <template partial='body'>
202
- <tr class="back-style">
203
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
204
- <dropdown>
205
- <button type="button" data-toggle="dropdown" style="border: 0px;background: none;">
206
- <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
207
- </button>
208
- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-left">
209
- <li>
210
- <a href="#" @click="$parent.$parent.$parent.click(row)">{{row.defname}}</a>
211
- </li>
212
- </ul>
213
- </dropdown>
214
- </td>
215
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'', row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
216
- <nobr><font>{{$index+1}}</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.f_apply_num}}</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_user_name}}</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_contract_number}}</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_phone}}</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_address}}</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_apply_source}}</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_apply_type}}</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.defname}}</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_sub_state}}</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_apply_date}}</font></nobr>
247
- </td>
248
- </tr>
249
- </template>
250
- </data-grid>
251
- </criteria-paged>
252
-
253
- <modal
254
- v-if="showModal"
255
- :show.sync="showModal"
256
- backdrop="false"
257
- title="工程类型"
258
- cancel-text="取消"
259
- ok-text="确认"
260
- :callback="apply"
261
- >
262
- <div class="form-horizontal" slot="modal-body">
263
- <div class="form-group" style="margin: 10px auto">
264
- <label class="col-sm-3 control-label">报建类型:</label>
265
- <div class="col-sm-9">
266
- <v-select
267
- v-model="applyType"
268
- placeholder='请选择需要发起的工程类型'
269
- :value.sync="applyType"
270
- :options='$appdata.getParam("报建类型")'
271
- :value-single="true"
272
- class="select select_list"
273
- :search="false"
274
- close-on-select ></v-select>
275
- </div>
276
- </div>
277
- </div>
278
- </modal>
279
-
280
- <modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="选择文件">
281
- <header slot="modal-header" class="modal-header">
282
- <button type="button" class="close" @click="closeFile"><span>&times;</span></button>
283
- <h4 class="modal-title">选择文件</h4>
284
- </header>
285
- <article slot="modal-body" class="modal-body">
286
- <div class="form-group">
287
- <file-upload class="my-file-uploader" action="rs/file/uploadFile" tagname="确定" v-ref:file></file-upload>
288
- </div>
289
- </article>
290
- <footer slot="modal-footer" class="modal-footer"></footer>
291
- </modal>
292
- </div>
293
- </template>
294
- <script>
295
- import {HttpResetClass, PagedList} from 'vue-client'
296
- import {isEmpty} from '../../../components/Util'
297
-
298
- export default {
299
- title: '工程列表',
300
- props: ['showData'],
301
- data () {
302
- return {
303
- model: new PagedList('rs/sql/checkuser', 20, {
304
- data: {
305
- id: this.$login.f.id,
306
- orgid: this.$login.f.orgid
307
- }
308
- }),
309
- showModal: false, // 控制发起类型选择
310
- applyType: '', // 报建类型
311
- curorgid: [this.$login.f.orgid],
312
- applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
313
- defnames: [{label: '全部', value: ''}], // 流程节点
314
- applyNatures: [{label: '全部', value: ''}], // 报建性质
315
- criteriaShow: false,
316
- showFile: false,
317
- laterList: [
318
- {label: '全部', value: ''},
319
- {label: '有效', value: '有效'}
320
- ]
321
- }
322
- },
323
- ready () {
324
- // 调用查询
325
- this.search()
326
- },
327
- methods: {
328
- openLater (row) {
329
- this.$dispatch('openLater', row)
330
- },
331
- closeFile () {
332
- this.showFile = false
333
- // 将选的文件清空
334
- this.$refs.file.$el.querySelector('input').value = ''
335
- this.search()
336
- },
337
- // 点击操作
338
- click (val) {
339
- this.$dispatch('apply', val)
340
- },
341
- // 获取流程id
342
- async getProcessId(processname) {
343
- let data = {
344
- workname: processname
345
- }
346
- let http = new HttpResetClass()
347
- let res = await http.load(
348
- 'POST',
349
- 'rs/logic/getProcessId',
350
- {data: data},
351
- {resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
352
- )
353
-
354
- return res.data
355
- },
356
- // 报装申请
357
- async apply () {
358
- if (this.applyType === '' || this.applyType === null) {
359
- this.$showAlert('请选择需要发起的类型', 'warning', 3000)
360
- return
361
- }
362
- let data = {
363
- f_apply_type: this.applyType
364
- }
365
- if (this.applyType === '民用散户报建流程') {
366
- data.processname = '民用散户报建流程'
367
- data.defname = '报装申请'
368
- }
369
- else if (this.applyType === '民用预留户报建流程') {
370
- data.processname = '民用预留户报建流程'
371
- data.defname = '报装申请'
372
- }
373
- else if (this.applyType === '民用集体报建流程') {
374
- data.processname = '民用集体报建流程'
375
- data.defname = '报装申请'
376
- } else if (this.applyType === '非民用报建流程') {
377
- data.processname = '非民用报建流程'
378
- data.defname = '报装申请'
379
- } else if (this.applyType === '启封通气') {
380
- data.processname = '启封通气流程'
381
- data.defname = '通气申请'
382
- }else if (this.applyType === '整改报建') {
383
- data.processname = '整改报建流程'
384
- data.defname = '报装申请'
385
- }else {
386
- this.$showMessage('暂无此类报装')
387
- return
388
- }
389
-
390
- data.f_sub_state = "新增"
391
- data.f_apply_source = "线下发起"
392
- data.f_process_id = await this.getProcessId(data.processname)
393
-
394
- // 调用ExplorationUser事件
395
- this.$dispatch('apply', data)
396
-
397
- this.applyType = null
398
- this.showModal = false
399
- },
400
- loadPage () {
401
- this.$dispatch('loadPage')
402
- },
403
- search () {
404
- this.$dispatch('search')
405
- },
406
- async applyTypeChange () {
407
- if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
408
- let res = await this.$resetpost('rs/logic/getDefnameByType',
409
- { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
410
- {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
411
- )
412
-
413
- this.defnames = [{label: '全部', value: ''}, ...res.data]
414
-
415
- 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}性质`)]
416
- } else {
417
- this.defnames = [{label: '全部', value: ''}]
418
-
419
- this.applyNatures = [{label: '全部', value: ''}]
420
- }
421
- },
422
- clear () {
423
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
424
- this.$refs.cp.$refs.cri.model[key] = null
425
- })
426
- },
427
- getorg (val) {
428
- if (val.length <= 0) {
429
- return
430
- }
431
- this.model.params.data.orgid = val[0]
432
- }
433
- },
434
- computed: {
435
- projectStart () {
436
- return this.$login.r.includes('报建发起')
437
- }
438
- },
439
- watch: {
440
- 'model.rows': {
441
- handler: function () {
442
- let isover = [] // 过期(超时)数据
443
- let isbeforeover = [] // 未过期 提前提醒
444
- for (let i = 0; i < this.model.rows.length; i++) {
445
- let item = this.model.rows[i]
446
- if (item.isover === '过期') {
447
- isover.push(i + 1)
448
- }
449
- if (item.isbeforeover === '预期提醒') {
450
- isbeforeover.push(i + 1)
451
- }
452
- }
453
- let msg = null
454
- if (isover.length > 0) {
455
- msg = `第${isover.toString()}条数据已过期`
456
- this.$showAlert(msg, 'warning', 3000)
457
- }
458
-
459
- if (isbeforeover.length > 0) {
460
- msg = `第${isbeforeover.toString()}条数据即将过期`
461
- if (isover.length > 0) {
462
- setTimeout(() => {
463
- this.$showAlert(msg, 'warning', 3000)
464
- }, 4000)
465
- } else {
466
- this.$showAlert(msg, 'warning', 3000)
467
- }
468
- }
469
- }
470
- }
471
- },
472
- events: {
473
- async 'onFileUpload'(file, result) {
474
- let data = {
475
- filepath: result.f_downloadpath,
476
- user: this.$login.f
477
- }
478
- let res = await this.$resetpost(`rs/logic/importApply`, {data:data}, {resolveMsg: null, rejectMsg: '导入失败!!!', silent: true}, 0)
479
-
480
- this.closeFile()
481
- }
482
- }
483
- }
484
- </script>
485
- <style scoped>
486
- .back-style{
487
- background-color: #ffa726;
488
- }
489
- .p1 {
490
- color: #dc0b12;
491
- font-weight:bold
492
- }
493
- .p {
494
- color: #ffaf4f;
495
- }
496
- </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="ui.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_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
+ <input type="text" style="width:60%" class="input_search" v-model="model.act_sender"
157
+ v-on:keyup.enter="$parent.$parent.search()" condition="act.sender like '%{}%'" placeholder='节点发起人'>
158
+ </div>
159
+ <div class="form-group col-sm-3">
160
+ <label for="bookstart" class="font_normal_body">开始时间:</label>
161
+ <datepicker id="bookstart" placeholder="预约开始日期"
162
+ style="width: 60%!important;"
163
+ v-model="model.bookstart"
164
+ :value.sync="model.bookstart"
165
+ :format="'yyyy-MM-dd 00:00:00'"
166
+ :show-reset-button="true"
167
+ condition="f_order_date >= '{}'">
168
+ </datepicker>
169
+ </div>
170
+ <div class="form-group col-sm-3">
171
+ <label for="bookend" class="font_normal_body">结束时间:</label>
172
+ <datepicker id="bookend" placeholder="预约结束日期"
173
+ style="width: 60%!important;"
174
+ v-model="model.bookend"
175
+ :value.sync="model.bookend"
176
+ :format="'yyyy-MM-dd 23:59:59'"
177
+ :show-reset-button="true"
178
+ condition="f_order_date <= '{}'">
179
+ </datepicker>
180
+ </div>
181
+ </div>
182
+ </div>
183
+ </criteria>
184
+ <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
185
+ <template partial='head'>
186
+ <tr>
187
+ <th style="white-space: nowrap;">操作</th>
188
+ <th style="white-space: nowrap;">序号</th>
189
+ <th style="white-space: nowrap;">工程编号</th>
190
+ <th style="white-space: nowrap;">客户名称</th>
191
+ <th style="white-space: nowrap;">合同编号</th>
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
+ </tr>
200
+ </template>
201
+ <template partial='body'>
202
+ <tr class="back-style">
203
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
204
+ <dropdown>
205
+ <button type="button" data-toggle="dropdown" style="border: 0px;background: none;">
206
+ <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
207
+ </button>
208
+ <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-left">
209
+ <li>
210
+ <a href="#" @click="$parent.$parent.$parent.click(row)">{{row.defname}}</a>
211
+ </li>
212
+ </ul>
213
+ </dropdown>
214
+ </td>
215
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'', row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
216
+ <nobr><font>{{$index+1}}</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.f_apply_num}}</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_user_name}}</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_contract_number}}</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_phone}}</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_address}}</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_apply_source}}</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_apply_type}}</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.defname}}</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_sub_state}}</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_apply_date}}</font></nobr>
247
+ </td>
248
+ </tr>
249
+ </template>
250
+ </data-grid>
251
+ </criteria-paged>
252
+
253
+ <modal
254
+ v-if="showModal"
255
+ :show.sync="showModal"
256
+ backdrop="false"
257
+ title="工程类型"
258
+ cancel-text="取消"
259
+ ok-text="确认"
260
+ :callback="apply"
261
+ >
262
+ <div class="form-horizontal" slot="modal-body">
263
+ <div class="form-group" style="margin: 10px auto">
264
+ <label class="col-sm-3 control-label">报建类型:</label>
265
+ <div class="col-sm-9">
266
+ <v-select
267
+ v-model="applyType"
268
+ placeholder='请选择需要发起的工程类型'
269
+ :value.sync="applyType"
270
+ :options='$appdata.getParam("报建类型")'
271
+ :value-single="true"
272
+ class="select select_list"
273
+ :search="false"
274
+ close-on-select ></v-select>
275
+ </div>
276
+ </div>
277
+ </div>
278
+ </modal>
279
+
280
+ <modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="选择文件">
281
+ <header slot="modal-header" class="modal-header">
282
+ <button type="button" class="close" @click="closeFile"><span>&times;</span></button>
283
+ <h4 class="modal-title">选择文件</h4>
284
+ </header>
285
+ <article slot="modal-body" class="modal-body">
286
+ <div class="form-group">
287
+ <file-upload class="my-file-uploader" action="rs/file/uploadFile" tagname="确定" v-ref:file></file-upload>
288
+ </div>
289
+ </article>
290
+ <footer slot="modal-footer" class="modal-footer"></footer>
291
+ </modal>
292
+ </div>
293
+ </template>
294
+ <script>
295
+ import {HttpResetClass, PagedList} from 'vue-client'
296
+ import {isEmpty} from '../../../components/Util'
297
+
298
+ export default {
299
+ title: '工程列表',
300
+ props: ['showData'],
301
+ data () {
302
+ return {
303
+ model: new PagedList('rs/sql/checkuser', 20, {
304
+ data: {
305
+ id: this.$login.f.id,
306
+ orgid: this.$login.f.orgid
307
+ }
308
+ }),
309
+ showModal: false, // 控制发起类型选择
310
+ applyType: '', // 报建类型
311
+ curorgid: [this.$login.f.orgid],
312
+ applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
313
+ defnames: [{label: '全部', value: ''}], // 流程节点
314
+ applyNatures: [{label: '全部', value: ''}], // 报建性质
315
+ criteriaShow: false,
316
+ showFile: false,
317
+ laterList: [
318
+ {label: '全部', value: ''},
319
+ {label: '有效', value: '有效'}
320
+ ]
321
+ }
322
+ },
323
+ ready () {
324
+ // 调用查询
325
+ this.search()
326
+ },
327
+ methods: {
328
+ openLater (row) {
329
+ this.$dispatch('openLater', row)
330
+ },
331
+ closeFile () {
332
+ this.showFile = false
333
+ // 将选的文件清空
334
+ this.$refs.file.$el.querySelector('input').value = ''
335
+ this.search()
336
+ },
337
+ // 点击操作
338
+ click (val) {
339
+ this.$dispatch('apply', val)
340
+ },
341
+ // 获取流程id
342
+ async getProcessId(processname) {
343
+ let data = {
344
+ workname: processname
345
+ }
346
+ let http = new HttpResetClass()
347
+ let res = await http.load(
348
+ 'POST',
349
+ 'rs/logic/getProcessId',
350
+ {data: data},
351
+ {resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
352
+ )
353
+
354
+ return res.data
355
+ },
356
+ // 报装申请
357
+ async apply () {
358
+ if (this.applyType === '' || this.applyType === null) {
359
+ this.$showAlert('请选择需要发起的类型', 'warning', 3000)
360
+ return
361
+ }
362
+ let data = {
363
+ f_apply_type: this.applyType
364
+ }
365
+ if (this.applyType === '民用散户报建流程') {
366
+ data.processname = '民用散户报建流程'
367
+ data.defname = '报装申请'
368
+ }
369
+ else if (this.applyType === '民用预留户报建流程') {
370
+ data.processname = '民用预留户报建流程'
371
+ data.defname = '报装申请'
372
+ }
373
+ else if (this.applyType === '民用集体报建流程') {
374
+ data.processname = '民用集体报建流程'
375
+ data.defname = '报装申请'
376
+ } else if (this.applyType === '非民用报建流程') {
377
+ data.processname = '非民用报建流程'
378
+ data.defname = '报装申请'
379
+ } else if (this.applyType === '启封通气') {
380
+ data.processname = '启封通气流程'
381
+ data.defname = '通气申请'
382
+ }else if (this.applyType === '整改报建') {
383
+ data.processname = '整改报建流程'
384
+ data.defname = '报装申请'
385
+ }else {
386
+ this.$showMessage('暂无此类报装')
387
+ return
388
+ }
389
+
390
+ data.f_sub_state = "新增"
391
+ data.f_apply_source = "线下发起"
392
+ data.f_process_id = await this.getProcessId(data.processname)
393
+
394
+ // 调用ExplorationUser事件
395
+ this.$dispatch('apply', data)
396
+
397
+ this.applyType = null
398
+ this.showModal = false
399
+ },
400
+ loadPage () {
401
+ this.$dispatch('loadPage')
402
+ },
403
+ search () {
404
+ this.$dispatch('search')
405
+ },
406
+ async applyTypeChange () {
407
+ if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
408
+ let res = await this.$resetpost('rs/logic/getDefnameByType',
409
+ { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
410
+ {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
411
+ )
412
+
413
+ this.defnames = [{label: '全部', value: ''}, ...res.data]
414
+
415
+ 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}性质`)]
416
+ } else {
417
+ this.defnames = [{label: '全部', value: ''}]
418
+
419
+ this.applyNatures = [{label: '全部', value: ''}]
420
+ }
421
+ },
422
+ clear () {
423
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
424
+ this.$refs.cp.$refs.cri.model[key] = null
425
+ })
426
+ },
427
+ getorg (val) {
428
+ if (val.length <= 0) {
429
+ return
430
+ }
431
+ this.model.params.data.orgid = val[0]
432
+ }
433
+ },
434
+ computed: {
435
+ projectStart () {
436
+ return this.$login.r.includes('报建发起')
437
+ }
438
+ },
439
+ watch: {
440
+ 'model.rows': {
441
+ handler: function () {
442
+ let isover = [] // 过期(超时)数据
443
+ let isbeforeover = [] // 未过期 提前提醒
444
+ for (let i = 0; i < this.model.rows.length; i++) {
445
+ let item = this.model.rows[i]
446
+ if (item.isover === '过期') {
447
+ isover.push(i + 1)
448
+ }
449
+ if (item.isbeforeover === '预期提醒') {
450
+ isbeforeover.push(i + 1)
451
+ }
452
+ }
453
+ let msg = null
454
+ if (isover.length > 0) {
455
+ msg = `第${isover.toString()}条数据已过期`
456
+ this.$showAlert(msg, 'warning', 3000)
457
+ }
458
+
459
+ if (isbeforeover.length > 0) {
460
+ msg = `第${isbeforeover.toString()}条数据即将过期`
461
+ if (isover.length > 0) {
462
+ setTimeout(() => {
463
+ this.$showAlert(msg, 'warning', 3000)
464
+ }, 4000)
465
+ } else {
466
+ this.$showAlert(msg, 'warning', 3000)
467
+ }
468
+ }
469
+ }
470
+ }
471
+ },
472
+ events: {
473
+ async 'onFileUpload'(file, result) {
474
+ let data = {
475
+ filepath: result.f_downloadpath,
476
+ user: this.$login.f
477
+ }
478
+ let res = await this.$resetpost(`rs/logic/importApply`, {data:data}, {resolveMsg: null, rejectMsg: '导入失败!!!', silent: true}, 0)
479
+
480
+ this.closeFile()
481
+ }
482
+ }
483
+ }
484
+ </script>
485
+ <style scoped>
486
+ .back-style{
487
+ background-color: #ffa726;
488
+ }
489
+ .p1 {
490
+ color: #dc0b12;
491
+ font-weight:bold
492
+ }
493
+ .p {
494
+ color: #ffaf4f;
495
+ }
496
+ </style>