apply-clients 3.3.49 → 3.3.50

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 (38) hide show
  1. package/build/dev-server.js +131 -130
  2. package/package.json +1 -1
  3. package/src/AndroidApp.vue +35 -35
  4. package/src/apply.js +93 -93
  5. package/src/applyAndroid.js +31 -31
  6. package/src/components/android/AppOnetomany.vue +301 -301
  7. package/src/components/android/AppServiceView.vue +566 -566
  8. package/src/components/android/AppSign.vue +142 -142
  9. package/src/components/android/Function/AppInstallFunction.vue +366 -366
  10. package/src/components/android/Process/AppExplorationUser.vue +340 -340
  11. package/src/components/android/Process/AppServiceControl.vue +761 -761
  12. package/src/components/android/Process/Processes/AppBuildSign.vue +46 -46
  13. package/src/components/android/Supervisory/AppProcessSupervisory.vue +300 -300
  14. package/src/components/android/Supervisory/AppSupervisoryCart.vue +119 -119
  15. package/src/components/product/ApplyCharge/ApplyChargeList.vue +11 -1
  16. package/src/components/product/Function/InstallFunction.vue +132 -132
  17. package/src/components/product/Function/InstallInfoSelect.vue +320 -310
  18. package/src/components/product/Function/Service/FunctionServiceControl.vue +445 -445
  19. package/src/components/product/Material/MaterialDetailed.vue +235 -235
  20. package/src/components/product/OldApply/Monitor/MonitorApply.vue +329 -329
  21. package/src/components/product/OldApply/OldApply.vue +150 -150
  22. package/src/components/product/Onetomany.vue +377 -377
  23. package/src/components/product/Print/BuildOrder/buildOrderList.vue +264 -264
  24. package/src/components/product/Print/BuildOrder/printBuildOrder.vue +153 -153
  25. package/src/components/product/Process/ExplorationSelect.vue +457 -457
  26. package/src/components/product/Process/ExplorationUser.vue +147 -147
  27. package/src/components/product/Process/Processes/InstallationDetails.vue +592 -592
  28. package/src/components/product/Process/Processes/Print/printCharge.vue +142 -142
  29. package/src/components/product/Process/Processes/Print/printRefund.vue +196 -196
  30. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +207 -207
  31. package/src/components/product/Process/Processes/chargeManagement.vue +656 -656
  32. package/src/components/product/Process/Service/ServiceControl.vue +1265 -1265
  33. package/src/components/product/ServiceView.vue +631 -631
  34. package/src/components/product/Supervisory/SupervisoryControl.vue +137 -137
  35. package/src/components/product/Supervisory/SupervisoryList.vue +296 -296
  36. package/src/components/product/Supervisory/SupervisoryhCart.vue +130 -130
  37. package/src/components/product/VueUtils/ApplyUpload.vue +273 -273
  38. package/src/components/product/VueUtils/HighMeter.vue +208 -208
@@ -1,457 +1,457 @@
1
- <template>
2
- <div>
3
- <criteria-paged :model="model" v-ref:cp>
4
- <criteria partial='criteria' @condition-changed='search' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <div class="form-group col-sm-3">
8
- <label class="font_normal_body">组织机构:</label>
9
- <res-select
10
- restype='organization'
11
- :initresid='$parent.$parent.curorgid'
12
- @res-select="$parent.$parent.getorg"
13
- is-mul="false"
14
- ></res-select>
15
- </div>
16
- <div class="form-group col-sm-3">
17
- <label class="font_normal_body">工程编号:</label>
18
- <input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
19
- v-on:keyup.enter="$parent.$parent.search()"
20
- condition="f_apply_num = '{}'">
21
- </div>
22
- <div class="form-group col-sm-3 button-range">
23
- <a type="button" class="button_new button_spacing" v-if="$parent.$parent.projectStart"
24
- href="/apply/download/excel/散户报装模板.xlsx" download>模板下载</a>
25
- <button class="button_new button_spacing" style="width: max-content"
26
- v-if="$parent.$parent.projectStart"
27
- @click="$parent.$parent.showFile = !$parent.$parent.showFile">批量散户导入</button>
28
- <button class="button_new button_spacing" style="width: max-content"
29
- v-if="$parent.$parent.projectStart"
30
- @click="$parent.$parent.showModal = !$parent.$parent.showModal">工程发起</button>
31
- <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
32
- <button class="button_search button_spacing" @click="$parent.$parent.loadPage()">返回</button>
33
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
34
- <div
35
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
36
- @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
37
- class="button_spacing"
38
- style="float: right">
39
- </div>
40
- </div>
41
- </div>
42
- <div class="row" v-show="$parent.$parent.criteriaShow">
43
- <div class="form-group col-sm-3">
44
- <label class="font_normal_body">客户名称:</label>
45
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
46
- v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
47
- </div>
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" placeholder='联系电话' v-model="model.f_phone"
51
- v-on:keyup.enter="$parent.$parent.search()"
52
- condition="f_phone like '%{}%'">
53
- </div>
54
- <div class="form-group col-sm-3">
55
- <label class="font_normal_body">合同编号:</label>
56
- <input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
57
- v-on:keyup.enter="$parent.$parent.search()"
58
- condition="f_contract_number = '{}'">
59
- </div>
60
- <div class="form-group col-sm-3">
61
- <label class="font_normal_body">报建类型:</label>
62
- <v-select
63
- v-model="model.f_apply_type"
64
- placeholder='报建类型'
65
- condition="f_apply_type = '{}'"
66
- :value.sync="model.f_apply_type"
67
- :options='$parent.$parent.applytype'
68
- class="select select_list"
69
- :value-single="true"
70
- @change="$parent.$parent.applyTypeChange()"
71
- close-on-select ></v-select>
72
- </div>
73
- <div class="form-group col-sm-3">
74
- <label class="font_normal_body">办理环节:</label>
75
- <v-select
76
- v-model="model.defname"
77
- placeholder='办理环节'
78
- condition="defname = '{}'"
79
- :value.sync="model.defname"
80
- :options='$parent.$parent.defnames'
81
- class="select select_list"
82
- :value-single="true"
83
- close-on-select ></v-select>
84
- </div>
85
- <div class="form-group col-sm-3">
86
- <label class="font_normal_body">报建性质:</label>
87
- <v-select
88
- v-model="model.f_apply_nature"
89
- placeholder='报建性质'
90
- condition="f_apply_nature = '{}'"
91
- :value.sync="model.f_apply_nature"
92
- :options='$parent.$parent.applyNatures'
93
- class="select select_list"
94
- :value-single="true"
95
- close-on-select ></v-select>
96
- </div>
97
- <div class="form-group col-sm-3">
98
- <label class="font_normal_body">用户地址:</label>
99
- <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
100
- v-on:keyup.enter="$parent.$parent.search()"
101
- condition="f_address like '%{}%'">
102
- </div>
103
- <div class="form-group col-sm-3">
104
- <label for="startDate" class="font_normal_body">开始时间:</label>
105
- <datepicker id="startDate" placeholder="开始日期"
106
- style="width: 60%!important;"
107
- v-model="model.startDate"
108
- :value.sync="model.startDate"
109
- :format="'yyyy-MM-dd 00:00:00'"
110
- :show-reset-button="true"
111
- condition="f_apply_date >= '{}'">
112
- </datepicker>
113
- </div>
114
- <div class="form-group col-sm-3">
115
- <label for="endDate" class="font_normal_body">结束时间:</label>
116
- <datepicker id="endDate" placeholder="结束日期"
117
- style="width: 60%!important;"
118
- v-model="model.endDate"
119
- :value.sync="model.endDate"
120
- :format="'yyyy-MM-dd 23:59:59'"
121
- :show-reset-button="true"
122
- condition="f_apply_date <= '{}'">
123
- </datepicker>
124
- </div>
125
- <div class="form-group col-sm-3">
126
- <label class="font_normal_body">稍后处理:</label>
127
- <v-select
128
- v-model="model.f_is_later"
129
- placeholder='稍后处理'
130
- condition="f_is_later = '{}'"
131
- :value.sync="model.f_is_later"
132
- :options='$parent.$parent.laterList'
133
- class="select select_list"
134
- :value-single="true"
135
- close-on-select ></v-select>
136
- </div>
137
- </div>
138
- </div>
139
- </criteria>
140
- <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
141
- <template partial='head'>
142
- <tr>
143
- <th style="white-space: nowrap;">序号</th>
144
- <th style="white-space: nowrap;">工程编号</th>
145
- <th style="white-space: nowrap;">客户名称</th>
146
- <th style="white-space: nowrap;">合同编号</th>
147
- <th style="white-space: nowrap;">电话</th>
148
- <th style="white-space: nowrap;">地址</th>
149
- <th style="white-space: nowrap;">来源</th>
150
- <th style="white-space: nowrap;">报建类型</th>
151
- <th style="white-space: nowrap;">办理环节</th>
152
- <th style="white-space: nowrap;">流程状态</th>
153
- <th style="white-space: nowrap;">报建日期</th>
154
- <th style="white-space: nowrap;">操作</th>
155
- </tr>
156
- </template>
157
- <template partial='body'>
158
- <tr >
159
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
160
- <nobr><font>{{$index+1}}</font></nobr>
161
- </td>
162
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
163
- <nobr><font>{{row.f_apply_num}}</font></nobr>
164
- </td>
165
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
166
- <nobr><font>{{row.f_user_name}}</font></nobr>
167
- </td>
168
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
169
- <nobr><font>{{row.f_contract_number}}</font></nobr>
170
- </td>
171
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
172
- <nobr><font>{{row.f_phone}}</font></nobr>
173
- </td>
174
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
175
- <nobr><font>{{row.f_address}}</font></nobr>
176
- </td>
177
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
178
- <nobr><font>{{row.f_apply_source}}</font></nobr>
179
- </td>
180
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
181
- <nobr><font>{{row.f_apply_type}}</font></nobr>
182
- </td>
183
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
184
- <nobr><font>{{row.defname}}</font></nobr>
185
- </td>
186
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
187
- <nobr><font>{{row.f_sub_state}}</font></nobr>
188
- </td>
189
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
190
- <nobr><font>{{row.f_apply_date}}</font></nobr>
191
- </td>
192
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
193
- <dropdown>
194
- <button type="button" data-toggle="dropdown" style="border: 0px;background: none;">
195
- <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
196
- </button>
197
- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
198
- <li>
199
- <a href="#" @click="$parent.$parent.$parent.click(row)">{{row.defname}}</a>
200
- <a href="#" @click="$parent.$parent.$parent.later(row)" v-if="row.f_is_later !== '是'">稍后处理</a>
201
- </li>
202
- </ul>
203
- </dropdown>
204
- </td>
205
- </tr>
206
- </template>
207
- </data-grid>
208
- </criteria-paged>
209
-
210
- <modal
211
- v-if="showModal"
212
- :show.sync="showModal"
213
- backdrop="false"
214
- title="工程类型"
215
- cancel-text="取消"
216
- ok-text="确认"
217
- :callback="apply"
218
- >
219
- <div class="form-horizontal" slot="modal-body">
220
- <div class="form-group" style="margin: 10px auto">
221
- <label class="col-sm-3 control-label">报建类型:</label>
222
- <div class="col-sm-9">
223
- <v-select
224
- v-model="applyType"
225
- placeholder='请选择需要发起的工程类型'
226
- :value.sync="applyType"
227
- :options='$appdata.getParam("报建类型")'
228
- :value-single="true"
229
- class="select select_list"
230
- :search="false"
231
- close-on-select ></v-select>
232
- </div>
233
- </div>
234
- </div>
235
- </modal>
236
-
237
- <modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="选择文件">
238
- <header slot="modal-header" class="modal-header">
239
- <button type="button" class="close" @click="closeFile"><span>&times;</span></button>
240
- <h4 class="modal-title">选择文件</h4>
241
- </header>
242
- <article slot="modal-body" class="modal-body">
243
- <div class="form-group">
244
- <file-upload class="my-file-uploader" action="rs/file/uploadFile" tagname="确定" v-ref:file></file-upload>
245
- </div>
246
- </article>
247
- <footer slot="modal-footer" class="modal-footer"></footer>
248
- </modal>
249
- </div>
250
- </template>
251
- <script>
252
- import {HttpResetClass, PagedList} from 'vue-client'
253
- import {isEmpty} from '../../Util'
254
-
255
- export default {
256
- title: '工程列表',
257
- props: ['showData'],
258
- data () {
259
- return {
260
- model: new PagedList('rs/sql/checkuser', 20, {
261
- data: {
262
- id: this.$login.f.id,
263
- orgid: this.$login.f.orgid
264
- }
265
- }),
266
- showModal: false, // 控制发起类型选择
267
- applyType: '', // 报建类型
268
- curorgid: [this.$login.f.orgid],
269
- applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
270
- defnames: [{label: '全部', value: ''}], // 流程节点
271
- applyNatures: [{label: '全部', value: ''}], // 报建性质
272
- criteriaShow: false,
273
- showFile: false,
274
- laterList: [
275
- {label: '全部', value: ''},
276
- {label: '是', value: '是'},
277
- {label: '否', value: '否'}
278
- ]
279
- }
280
- },
281
- ready () {
282
- // 调用查询
283
- this.search()
284
- },
285
- methods: {
286
- later (row) {
287
- this.$showMessage('您确定要将此任务加入稍后处理吗?', ['confirm']).then((res) => {
288
- if (res === 'confirm') {
289
- this.$dispatch('later', row)
290
- }
291
- })
292
- },
293
- closeFile () {
294
- this.showFile = false
295
- // 将选的文件清空
296
- this.$refs.file.$el.querySelector('input').value = ''
297
- this.search()
298
- },
299
- // 点击操作
300
- click (val) {
301
- this.$dispatch('apply', val)
302
- },
303
- // 获取流程id
304
- async getProcessId(processname) {
305
- let data = {
306
- workname: processname
307
- }
308
- let http = new HttpResetClass()
309
- let res = await http.load(
310
- 'POST',
311
- 'rs/logic/getProcessId',
312
- {data: data},
313
- {resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
314
- )
315
-
316
- return res.data
317
- },
318
- // 报装申请
319
- async apply () {
320
- if (this.applyType === '' || this.applyType === null) {
321
- this.$showAlert('请选择需要发起的类型', 'warning', 3000)
322
- return
323
- }
324
- let data = {
325
- f_apply_type: this.applyType
326
- }
327
- if (this.applyType === '散户报建') {
328
- data.processname = '散户报建流程'
329
- data.defname = '报装申请'
330
- } else if (this.applyType === '工商户报建') {
331
- data.processname = '工商户报建流程'
332
- data.defname = '报装申请'
333
- } else if (this.applyType === '改管报建') {
334
- data.processname = '改管报建流程'
335
- data.defname = '报装申请'
336
- } else if (this.applyType === '增容报建') {
337
- data.processname = '增容报建流程'
338
- data.defname = '报装申请'
339
- } else if (this.applyType === '团购报建') {
340
- data.processname = '团购报建流程'
341
- data.defname = '报装申请'
342
- } else if (this.applyType === '退款报建') {
343
- data.processname = '退款报建流程'
344
- data.defname = '终止报建'
345
- } else if (this.applyType === '团购转散户') {
346
- data.processname = '团购转散户报建流程'
347
- data.defname = '信息确认'
348
- } else {
349
- this.$showMessage('暂无此类报装')
350
- return
351
- }
352
-
353
- data.f_sub_state = "新增"
354
- data.f_apply_source = "线下发起"
355
- data.f_process_id = await this.getProcessId(data.processname)
356
-
357
- // 调用ExplorationUser事件
358
- this.$dispatch('apply', data)
359
-
360
- this.applyType = null
361
- this.showModal = false
362
- },
363
- loadPage () {
364
- this.$dispatch('loadPage')
365
- },
366
- search () {
367
- this.$dispatch('search')
368
- },
369
- async applyTypeChange () {
370
- if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
371
- let res = await this.$resetpost('rs/logic/getDefnameByType',
372
- { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
373
- {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
374
- )
375
-
376
- this.defnames = [{label: '全部', value: ''}, ...res.data]
377
-
378
- 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}性质`)]
379
- } else {
380
- this.defnames = [{label: '全部', value: ''}]
381
-
382
- this.applyNatures = [{label: '全部', value: ''}]
383
- }
384
- },
385
- clear () {
386
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
387
- this.$refs.cp.$refs.cri.model[key] = null
388
- })
389
- },
390
- getorg (val) {
391
- if (val.length <= 0) {
392
- return
393
- }
394
- this.model.params.data.orgid = val[0]
395
- }
396
- },
397
- computed: {
398
- projectStart () {
399
- return this.$login.r.includes('报建发起')
400
- }
401
- },
402
- watch: {
403
- 'model.rows': {
404
- handler: function () {
405
- let isover = [] // 过期(超时)数据
406
- let isbeforeover = [] // 未过期 提前提醒
407
- for (let i = 0; i < this.model.rows.length; i++) {
408
- let item = this.model.rows[i]
409
- if (item.isover === '过期') {
410
- isover.push(i + 1)
411
- }
412
- if (item.isbeforeover === '预期提醒') {
413
- isbeforeover.push(i + 1)
414
- }
415
- }
416
- let msg = null
417
- if (isover.length > 0) {
418
- msg = `第${isover.toString()}条数据已过期`
419
- this.$showAlert(msg, 'warning', 3000)
420
- }
421
-
422
- if (isbeforeover.length > 0) {
423
- msg = `第${isbeforeover.toString()}条数据即将过期`
424
- if (isover.length > 0) {
425
- setTimeout(() => {
426
- this.$showAlert(msg, 'warning', 3000)
427
- }, 4000)
428
- } else {
429
- this.$showAlert(msg, 'warning', 3000)
430
- }
431
- }
432
- }
433
- }
434
- },
435
- events: {
436
- async 'onFileUpload'(file, result) {
437
- let data = {
438
- filepath: result.f_downloadpath,
439
- user: this.$login.f
440
- }
441
- let res = await this.$resetpost(`rs/logic/importApply`, {data:data}, {resolveMsg: null, rejectMsg: '导入失败!!!', silent: true}, 0)
442
-
443
- this.closeFile()
444
- }
445
- }
446
- }
447
- </script>
448
- <style scoped>
449
-
450
- .p1 {
451
- color: #dc0b12;
452
- font-weight:bold
453
- }
454
- .p {
455
- color: #ffaf4f;
456
- }
457
- </style>
1
+ <template>
2
+ <div>
3
+ <criteria-paged :model="model" v-ref:cp>
4
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div class="form-group col-sm-3">
8
+ <label class="font_normal_body">组织机构:</label>
9
+ <res-select
10
+ restype='organization'
11
+ :initresid='$parent.$parent.curorgid'
12
+ @res-select="$parent.$parent.getorg"
13
+ is-mul="false"
14
+ ></res-select>
15
+ </div>
16
+ <div class="form-group col-sm-3">
17
+ <label class="font_normal_body">工程编号:</label>
18
+ <input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
19
+ v-on:keyup.enter="$parent.$parent.search()"
20
+ condition="f_apply_num = '{}'">
21
+ </div>
22
+ <div class="form-group col-sm-3 button-range">
23
+ <a type="button" class="button_new button_spacing" v-if="$parent.$parent.projectStart"
24
+ href="/apply/download/excel/散户报装模板.xlsx" download>模板下载</a>
25
+ <button class="button_new button_spacing" style="width: max-content"
26
+ v-if="$parent.$parent.projectStart"
27
+ @click="$parent.$parent.showFile = !$parent.$parent.showFile">批量散户导入</button>
28
+ <button class="button_new button_spacing" style="width: max-content"
29
+ v-if="$parent.$parent.projectStart"
30
+ @click="$parent.$parent.showModal = !$parent.$parent.showModal">工程发起</button>
31
+ <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
32
+ <button class="button_search button_spacing" @click="$parent.$parent.loadPage()">返回</button>
33
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
34
+ <div
35
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
36
+ @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
37
+ class="button_spacing"
38
+ style="float: right">
39
+ </div>
40
+ </div>
41
+ </div>
42
+ <div class="row" v-show="$parent.$parent.criteriaShow">
43
+ <div class="form-group col-sm-3">
44
+ <label class="font_normal_body">客户名称:</label>
45
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
46
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
47
+ </div>
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" placeholder='联系电话' v-model="model.f_phone"
51
+ v-on:keyup.enter="$parent.$parent.search()"
52
+ condition="f_phone like '%{}%'">
53
+ </div>
54
+ <div class="form-group col-sm-3">
55
+ <label class="font_normal_body">合同编号:</label>
56
+ <input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
57
+ v-on:keyup.enter="$parent.$parent.search()"
58
+ condition="f_contract_number = '{}'">
59
+ </div>
60
+ <div class="form-group col-sm-3">
61
+ <label class="font_normal_body">报建类型:</label>
62
+ <v-select
63
+ v-model="model.f_apply_type"
64
+ placeholder='报建类型'
65
+ condition="f_apply_type = '{}'"
66
+ :value.sync="model.f_apply_type"
67
+ :options='$parent.$parent.applytype'
68
+ class="select select_list"
69
+ :value-single="true"
70
+ @change="$parent.$parent.applyTypeChange()"
71
+ close-on-select ></v-select>
72
+ </div>
73
+ <div class="form-group col-sm-3">
74
+ <label class="font_normal_body">办理环节:</label>
75
+ <v-select
76
+ v-model="model.defname"
77
+ placeholder='办理环节'
78
+ condition="defname = '{}'"
79
+ :value.sync="model.defname"
80
+ :options='$parent.$parent.defnames'
81
+ class="select select_list"
82
+ :value-single="true"
83
+ close-on-select ></v-select>
84
+ </div>
85
+ <div class="form-group col-sm-3">
86
+ <label class="font_normal_body">报建性质:</label>
87
+ <v-select
88
+ v-model="model.f_apply_nature"
89
+ placeholder='报建性质'
90
+ condition="f_apply_nature = '{}'"
91
+ :value.sync="model.f_apply_nature"
92
+ :options='$parent.$parent.applyNatures'
93
+ class="select select_list"
94
+ :value-single="true"
95
+ close-on-select ></v-select>
96
+ </div>
97
+ <div class="form-group col-sm-3">
98
+ <label class="font_normal_body">用户地址:</label>
99
+ <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
100
+ v-on:keyup.enter="$parent.$parent.search()"
101
+ condition="f_address like '%{}%'">
102
+ </div>
103
+ <div class="form-group col-sm-3">
104
+ <label for="startDate" class="font_normal_body">开始时间:</label>
105
+ <datepicker id="startDate" placeholder="开始日期"
106
+ style="width: 60%!important;"
107
+ v-model="model.startDate"
108
+ :value.sync="model.startDate"
109
+ :format="'yyyy-MM-dd 00:00:00'"
110
+ :show-reset-button="true"
111
+ condition="f_apply_date >= '{}'">
112
+ </datepicker>
113
+ </div>
114
+ <div class="form-group col-sm-3">
115
+ <label for="endDate" class="font_normal_body">结束时间:</label>
116
+ <datepicker id="endDate" placeholder="结束日期"
117
+ style="width: 60%!important;"
118
+ v-model="model.endDate"
119
+ :value.sync="model.endDate"
120
+ :format="'yyyy-MM-dd 23:59:59'"
121
+ :show-reset-button="true"
122
+ condition="f_apply_date <= '{}'">
123
+ </datepicker>
124
+ </div>
125
+ <div class="form-group col-sm-3">
126
+ <label class="font_normal_body">稍后处理:</label>
127
+ <v-select
128
+ v-model="model.f_is_later"
129
+ placeholder='稍后处理'
130
+ condition="f_is_later = '{}'"
131
+ :value.sync="model.f_is_later"
132
+ :options='$parent.$parent.laterList'
133
+ class="select select_list"
134
+ :value-single="true"
135
+ close-on-select ></v-select>
136
+ </div>
137
+ </div>
138
+ </div>
139
+ </criteria>
140
+ <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
141
+ <template partial='head'>
142
+ <tr>
143
+ <th style="white-space: nowrap;">序号</th>
144
+ <th style="white-space: nowrap;">工程编号</th>
145
+ <th style="white-space: nowrap;">客户名称</th>
146
+ <th style="white-space: nowrap;">合同编号</th>
147
+ <th style="white-space: nowrap;">电话</th>
148
+ <th style="white-space: nowrap;">地址</th>
149
+ <th style="white-space: nowrap;">来源</th>
150
+ <th style="white-space: nowrap;">报建类型</th>
151
+ <th style="white-space: nowrap;">办理环节</th>
152
+ <th style="white-space: nowrap;">流程状态</th>
153
+ <th style="white-space: nowrap;">报建日期</th>
154
+ <th style="white-space: nowrap;">操作</th>
155
+ </tr>
156
+ </template>
157
+ <template partial='body'>
158
+ <tr >
159
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
160
+ <nobr><font>{{$index+1}}</font></nobr>
161
+ </td>
162
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
163
+ <nobr><font>{{row.f_apply_num}}</font></nobr>
164
+ </td>
165
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
166
+ <nobr><font>{{row.f_user_name}}</font></nobr>
167
+ </td>
168
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
169
+ <nobr><font>{{row.f_contract_number}}</font></nobr>
170
+ </td>
171
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
172
+ <nobr><font>{{row.f_phone}}</font></nobr>
173
+ </td>
174
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
175
+ <nobr><font>{{row.f_address}}</font></nobr>
176
+ </td>
177
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
178
+ <nobr><font>{{row.f_apply_source}}</font></nobr>
179
+ </td>
180
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
181
+ <nobr><font>{{row.f_apply_type}}</font></nobr>
182
+ </td>
183
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
184
+ <nobr><font>{{row.defname}}</font></nobr>
185
+ </td>
186
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
187
+ <nobr><font>{{row.f_sub_state}}</font></nobr>
188
+ </td>
189
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
190
+ <nobr><font>{{row.f_apply_date}}</font></nobr>
191
+ </td>
192
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
193
+ <dropdown>
194
+ <button type="button" data-toggle="dropdown" style="border: 0px;background: none;">
195
+ <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
196
+ </button>
197
+ <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
198
+ <li>
199
+ <a href="#" @click="$parent.$parent.$parent.click(row)">{{row.defname}}</a>
200
+ <a href="#" @click="$parent.$parent.$parent.later(row)" v-if="row.f_is_later !== '是'">稍后处理</a>
201
+ </li>
202
+ </ul>
203
+ </dropdown>
204
+ </td>
205
+ </tr>
206
+ </template>
207
+ </data-grid>
208
+ </criteria-paged>
209
+
210
+ <modal
211
+ v-if="showModal"
212
+ :show.sync="showModal"
213
+ backdrop="false"
214
+ title="工程类型"
215
+ cancel-text="取消"
216
+ ok-text="确认"
217
+ :callback="apply"
218
+ >
219
+ <div class="form-horizontal" slot="modal-body">
220
+ <div class="form-group" style="margin: 10px auto">
221
+ <label class="col-sm-3 control-label">报建类型:</label>
222
+ <div class="col-sm-9">
223
+ <v-select
224
+ v-model="applyType"
225
+ placeholder='请选择需要发起的工程类型'
226
+ :value.sync="applyType"
227
+ :options='$appdata.getParam("报建类型")'
228
+ :value-single="true"
229
+ class="select select_list"
230
+ :search="false"
231
+ close-on-select ></v-select>
232
+ </div>
233
+ </div>
234
+ </div>
235
+ </modal>
236
+
237
+ <modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="选择文件">
238
+ <header slot="modal-header" class="modal-header">
239
+ <button type="button" class="close" @click="closeFile"><span>&times;</span></button>
240
+ <h4 class="modal-title">选择文件</h4>
241
+ </header>
242
+ <article slot="modal-body" class="modal-body">
243
+ <div class="form-group">
244
+ <file-upload class="my-file-uploader" action="rs/file/uploadFile" tagname="确定" v-ref:file></file-upload>
245
+ </div>
246
+ </article>
247
+ <footer slot="modal-footer" class="modal-footer"></footer>
248
+ </modal>
249
+ </div>
250
+ </template>
251
+ <script>
252
+ import {HttpResetClass, PagedList} from 'vue-client'
253
+ import {isEmpty} from '../../Util'
254
+
255
+ export default {
256
+ title: '工程列表',
257
+ props: ['showData'],
258
+ data () {
259
+ return {
260
+ model: new PagedList('rs/sql/checkuser', 20, {
261
+ data: {
262
+ id: this.$login.f.id,
263
+ orgid: this.$login.f.orgid
264
+ }
265
+ }),
266
+ showModal: false, // 控制发起类型选择
267
+ applyType: '', // 报建类型
268
+ curorgid: [this.$login.f.orgid],
269
+ applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
270
+ defnames: [{label: '全部', value: ''}], // 流程节点
271
+ applyNatures: [{label: '全部', value: ''}], // 报建性质
272
+ criteriaShow: false,
273
+ showFile: false,
274
+ laterList: [
275
+ {label: '全部', value: ''},
276
+ {label: '是', value: '是'},
277
+ {label: '否', value: '否'}
278
+ ]
279
+ }
280
+ },
281
+ ready () {
282
+ // 调用查询
283
+ this.search()
284
+ },
285
+ methods: {
286
+ later (row) {
287
+ this.$showMessage('您确定要将此任务加入稍后处理吗?', ['confirm']).then((res) => {
288
+ if (res === 'confirm') {
289
+ this.$dispatch('later', row)
290
+ }
291
+ })
292
+ },
293
+ closeFile () {
294
+ this.showFile = false
295
+ // 将选的文件清空
296
+ this.$refs.file.$el.querySelector('input').value = ''
297
+ this.search()
298
+ },
299
+ // 点击操作
300
+ click (val) {
301
+ this.$dispatch('apply', val)
302
+ },
303
+ // 获取流程id
304
+ async getProcessId(processname) {
305
+ let data = {
306
+ workname: processname
307
+ }
308
+ let http = new HttpResetClass()
309
+ let res = await http.load(
310
+ 'POST',
311
+ 'rs/logic/getProcessId',
312
+ {data: data},
313
+ {resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
314
+ )
315
+
316
+ return res.data
317
+ },
318
+ // 报装申请
319
+ async apply () {
320
+ if (this.applyType === '' || this.applyType === null) {
321
+ this.$showAlert('请选择需要发起的类型', 'warning', 3000)
322
+ return
323
+ }
324
+ let data = {
325
+ f_apply_type: this.applyType
326
+ }
327
+ if (this.applyType === '散户报建') {
328
+ data.processname = '散户报建流程'
329
+ data.defname = '报装申请'
330
+ } else if (this.applyType === '工商户报建') {
331
+ data.processname = '工商户报建流程'
332
+ data.defname = '报装申请'
333
+ } else if (this.applyType === '改管报建') {
334
+ data.processname = '改管报建流程'
335
+ data.defname = '报装申请'
336
+ } else if (this.applyType === '增容报建') {
337
+ data.processname = '增容报建流程'
338
+ data.defname = '报装申请'
339
+ } else if (this.applyType === '团购报建') {
340
+ data.processname = '团购报建流程'
341
+ data.defname = '报装申请'
342
+ } else if (this.applyType === '退款报建') {
343
+ data.processname = '退款报建流程'
344
+ data.defname = '终止报建'
345
+ } else if (this.applyType === '团购转散户') {
346
+ data.processname = '团购转散户报建流程'
347
+ data.defname = '信息确认'
348
+ } else {
349
+ this.$showMessage('暂无此类报装')
350
+ return
351
+ }
352
+
353
+ data.f_sub_state = "新增"
354
+ data.f_apply_source = "线下发起"
355
+ data.f_process_id = await this.getProcessId(data.processname)
356
+
357
+ // 调用ExplorationUser事件
358
+ this.$dispatch('apply', data)
359
+
360
+ this.applyType = null
361
+ this.showModal = false
362
+ },
363
+ loadPage () {
364
+ this.$dispatch('loadPage')
365
+ },
366
+ search () {
367
+ this.$dispatch('search')
368
+ },
369
+ async applyTypeChange () {
370
+ if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
371
+ let res = await this.$resetpost('rs/logic/getDefnameByType',
372
+ { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
373
+ {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
374
+ )
375
+
376
+ this.defnames = [{label: '全部', value: ''}, ...res.data]
377
+
378
+ 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}性质`)]
379
+ } else {
380
+ this.defnames = [{label: '全部', value: ''}]
381
+
382
+ this.applyNatures = [{label: '全部', value: ''}]
383
+ }
384
+ },
385
+ clear () {
386
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
387
+ this.$refs.cp.$refs.cri.model[key] = null
388
+ })
389
+ },
390
+ getorg (val) {
391
+ if (val.length <= 0) {
392
+ return
393
+ }
394
+ this.model.params.data.orgid = val[0]
395
+ }
396
+ },
397
+ computed: {
398
+ projectStart () {
399
+ return this.$login.r.includes('报建发起')
400
+ }
401
+ },
402
+ watch: {
403
+ 'model.rows': {
404
+ handler: function () {
405
+ let isover = [] // 过期(超时)数据
406
+ let isbeforeover = [] // 未过期 提前提醒
407
+ for (let i = 0; i < this.model.rows.length; i++) {
408
+ let item = this.model.rows[i]
409
+ if (item.isover === '过期') {
410
+ isover.push(i + 1)
411
+ }
412
+ if (item.isbeforeover === '预期提醒') {
413
+ isbeforeover.push(i + 1)
414
+ }
415
+ }
416
+ let msg = null
417
+ if (isover.length > 0) {
418
+ msg = `第${isover.toString()}条数据已过期`
419
+ this.$showAlert(msg, 'warning', 3000)
420
+ }
421
+
422
+ if (isbeforeover.length > 0) {
423
+ msg = `第${isbeforeover.toString()}条数据即将过期`
424
+ if (isover.length > 0) {
425
+ setTimeout(() => {
426
+ this.$showAlert(msg, 'warning', 3000)
427
+ }, 4000)
428
+ } else {
429
+ this.$showAlert(msg, 'warning', 3000)
430
+ }
431
+ }
432
+ }
433
+ }
434
+ },
435
+ events: {
436
+ async 'onFileUpload'(file, result) {
437
+ let data = {
438
+ filepath: result.f_downloadpath,
439
+ user: this.$login.f
440
+ }
441
+ let res = await this.$resetpost(`rs/logic/importApply`, {data:data}, {resolveMsg: null, rejectMsg: '导入失败!!!', silent: true}, 0)
442
+
443
+ this.closeFile()
444
+ }
445
+ }
446
+ }
447
+ </script>
448
+ <style scoped>
449
+
450
+ .p1 {
451
+ color: #dc0b12;
452
+ font-weight:bold
453
+ }
454
+ .p {
455
+ color: #ffaf4f;
456
+ }
457
+ </style>