apply-clients 3.3.216 → 3.4.1

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 (96) hide show
  1. package/android.html +23 -23
  2. package/index.html +33 -33
  3. package/package.json +3 -3
  4. package/src/AndroidApp.vue +35 -30
  5. package/src/App.vue +20 -20
  6. package/src/android.js +21 -21
  7. package/src/apply.js +81 -90
  8. package/src/applyAndroid.js +1 -23
  9. package/src/components/android/AppOnetomany.vue +301 -285
  10. package/src/components/android/AppServiceView.vue +566 -570
  11. package/src/components/android/AppSign.vue +142 -142
  12. package/src/components/android/AppTakePic.vue +143 -144
  13. package/src/components/android/Process/AppExplorationUser.vue +320 -270
  14. package/src/components/android/Process/AppServiceControl.vue +757 -686
  15. package/src/components/android/Process/Processes/AppInstallationDetails.vue +456 -466
  16. package/src/components/android/ProgressReport/ProgressReportDetail.vue +64 -0
  17. package/src/components/android/ProgressReport/ProgressReportList.vue +209 -0
  18. package/src/components/android/Supervisory/AppProcessSupervisory.vue +73 -152
  19. package/src/components/android/Supervisory/AppSupervisoryCart.vue +121 -115
  20. package/src/components/android/TaskGraph.vue +125 -0
  21. package/src/components/product/ApplyCharge/ApplyChargeList.vue +36 -50
  22. package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +3 -3
  23. package/src/components/product/Function/InstallFunction.vue +125 -122
  24. package/src/components/product/Function/InstallInfoSelect.vue +292 -318
  25. package/src/components/product/Function/Service/FunctionServiceControl.vue +222 -254
  26. package/src/components/product/Function/StopApplyCrrdList.vue +176 -0
  27. package/src/components/product/Function/functions/ApplyRecordCancel.vue +102 -0
  28. package/src/components/product/Function/functions/StopInstall.vue +106 -0
  29. package/src/components/product/Onetomany.vue +377 -296
  30. package/src/components/product/Order/OrderApply.vue +30 -30
  31. package/src/components/product/Order/OrderApplyList.vue +78 -67
  32. package/src/components/product/Order/OrderMessage.vue +11 -87
  33. package/src/components/product/Process/ExplorationSelect.vue +410 -369
  34. package/src/components/product/Process/ExplorationUser.vue +138 -128
  35. package/src/components/product/Process/Processes/InstallationDetails.vue +592 -504
  36. package/src/components/product/Process/Processes/Print/img/10101.png +0 -0
  37. package/src/components/product/Process/Processes/Print/img/1010109.png +0 -0
  38. package/src/components/product/Process/Processes/Print/img/1010110.png +0 -0
  39. package/src/components/product/Process/Processes/Print/img/1010111.png +0 -0
  40. package/src/components/product/Process/Processes/Print/img/1010112.png +0 -0
  41. package/src/components/product/Process/Processes/Print/printCharge.vue +142 -0
  42. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +207 -181
  43. package/src/components/product/Process/Processes/chargeManagement.vue +639 -638
  44. package/src/components/product/Process/Processes/devicesManagement.vue +22 -2
  45. package/src/components/product/Process/Processes/selectApply.vue +1 -1
  46. package/src/components/product/Process/Service/ServiceControl.vue +1254 -883
  47. package/src/components/product/Process/Service/ShowBackReason.vue +33 -0
  48. package/src/components/product/ServiceView.vue +631 -741
  49. package/src/components/product/Stop/StopApply.vue +103 -103
  50. package/src/components/product/Stop/StopApplyList.vue +269 -254
  51. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +186 -517
  52. package/src/components/product/Supervisory/SupervisoryControl.vue +100 -108
  53. package/src/components/product/Supervisory/SupervisoryList.vue +233 -253
  54. package/src/components/product/Supervisory/SupervisoryhCart.vue +107 -124
  55. package/src/components/product/VueUtils/ApplyUpload.vue +273 -264
  56. package/src/components/product/VueUtils/HighMeter.vue +208 -0
  57. package/src/expandcssAndroid.less +1034 -517
  58. package/src/filiale/yuchuan/android/Process/AppServiceControl.vue +548 -414
  59. package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetails.vue +754 -456
  60. package/src/filiale/yuchuan/android/Task/Survey/SurveyTsak.vue +60 -0
  61. package/src/filiale/yuchuan/android.js +7 -8
  62. package/src/filiale/yuchuan/pc/Order/OrderApply.vue +528 -517
  63. package/src/filiale/yuchuan/pc/Order/OrderApplyList.vue +343 -343
  64. package/src/filiale/yuchuan/pc/Process/ExplorationSelect.vue +270 -231
  65. package/src/filiale/yuchuan/pc/Process/ExplorationUser.vue +147 -131
  66. package/src/filiale/yuchuan/pc/Process/Processes/ApplyMapCom.vue +66 -0
  67. package/src/filiale/yuchuan/pc/Process/Processes/InstallationDetails.vue +759 -0
  68. package/src/filiale/yuchuan/pc/Process/Processes/chargeManagement.vue +470 -0
  69. package/src/filiale/yuchuan/pc/Process/Service/ServiceControl.vue +879 -517
  70. package/src/filiale/yuchuan/pc.js +11 -13
  71. package/src/main.js +23 -23
  72. package/src/components/android/Function/AppFunctionServiceControl.vue +0 -329
  73. package/src/components/android/Function/AppInstallFunction.vue +0 -330
  74. package/src/components/android/Process/Processes/AppBuildSign.vue +0 -47
  75. package/src/components/android/Process/Processes/AppChargeManagement.vue +0 -468
  76. package/src/components/android/Process/Processes/AppDevicesManagement.vue +0 -490
  77. package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +0 -297
  78. package/src/components/android/Process/Processes/AppjiaSign.vue +0 -47
  79. package/src/components/android/Process/Processes/AppjiafangSign.vue +0 -47
  80. package/src/components/android/Process/Processes/ApptechnologySign.vue +0 -47
  81. package/src/components/image/dwg.jpg +0 -0
  82. package/src/components/image/yasuobao.jpg +0 -0
  83. package/src/components/product/Function/Inform.vue +0 -73
  84. package/src/components/product/Function/MarketSurvey.vue +0 -81
  85. package/src/components/product/Process/Processes/printCharge.vue +0 -121
  86. package/src/components/product/Process/ShowBackReason.vue +0 -33
  87. package/src/components/product/Supervisory/Service/printChargeNode.vue +0 -873
  88. package/src/components/product/VueUtils/GaoPaiYi/HighMeter.vue +0 -1090
  89. package/src/components/product/VueUtils/ToolsPage.vue +0 -51
  90. package/src/components/product/VueUtils/Tree.vue +0 -330
  91. package/src/filiale/wuan/android.js +0 -0
  92. package/src/filiale/wuan/pc.js +0 -4
  93. package/src/filiale/yuchuan/android/AppServiceView.vue +0 -599
  94. package/src/filiale/yuchuan/android/Reserve/ApplyReserve.vue +0 -200
  95. package/src/filiale/yuchuan/android/SiteSurvey/TaskGraph.vue +0 -137
  96. package/src/filiale/yuchuan/pc/Process/Processes/MapCom.vue +0 -51
@@ -1,369 +1,410 @@
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">
23
- <label class="font_normal_body">项目名称:</label>
24
- <input type="text" style="width:60%" class="input_search" v-model="model.f_entry_name"
25
- v-on:keyup.enter="$parent.$parent.search()" condition="f_entry_name like '%{}%'" placeholder='项目名称'>
26
- </div>
27
- <div class="form-group col-sm-3 button-range">
28
- <button class="button_new button_spacing" style="width: max-content"
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_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
32
- <div
33
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
34
- @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
35
- class="button_spacing"
36
- style="float: right">
37
- </div>
38
- </div>
39
- </div>
40
- <div class="row" v-show="$parent.$parent.criteriaShow">
41
- <div class="form-group col-sm-3">
42
- <label class="font_normal_body">客户名称:</label>
43
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
44
- v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
45
- </div>
46
- <div class="form-group col-sm-3">
47
- <label class="font_normal_body">联系电话:</label>
48
- <input type="text" style="width:60%" class="input_search" placeholder='联系电话' v-model="model.f_phone"
49
- v-on:keyup.enter="$parent.$parent.search()"
50
- condition="f_phone like '%{}%'">
51
- </div>
52
- <div class="form-group col-sm-3">
53
- <label class="font_normal_body">合同编号:</label>
54
- <input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
55
- v-on:keyup.enter="$parent.$parent.search()"
56
- condition="f_contract_number = '{}'">
57
- </div>
58
- <div class="form-group col-sm-3">
59
- <label class="font_normal_body">报建类型:</label>
60
- <v-select
61
- v-model="model.f_apply_type"
62
- placeholder='报建类型'
63
- condition="f_apply_type like '%{}%'"
64
- :value.sync="model.f_apply_type"
65
- :options='$parent.$parent.applytype'
66
- class="select select_list"
67
- :value-single="true"
68
- @change="$parent.$parent.applyTypeChange()"
69
- close-on-select ></v-select>
70
- </div>
71
- <div class="form-group col-sm-3">
72
- <label class="font_normal_body">办理环节:</label>
73
- <v-select
74
- v-model="model.defname"
75
- placeholder='办理环节'
76
- condition="defname = '{}'"
77
- :value.sync="model.defname"
78
- :options='$parent.$parent.defnames'
79
- class="select select_list"
80
- :value-single="true"
81
- close-on-select ></v-select>
82
- </div>
83
- <div class="form-group col-sm-3">
84
- <label class="font_normal_body">用户地址:</label>
85
- <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
86
- v-on:keyup.enter="$parent.$parent.search()"
87
- condition="f_address like '%{}%'">
88
- </div>
89
- <div class="form-group col-sm-3">
90
- <label for="startDate" class="font_normal_body">开始时间:</label>
91
- <datepicker id="startDate" placeholder="开始日期"
92
- style="width: 60%!important;"
93
- v-model="model.startDate"
94
- :value.sync="model.startDate"
95
- :format="'yyyy-MM-dd HH:mm:ss'"
96
- :show-reset-button="true"
97
- condition="f_apply_date >= to_date('{}', 'yyyy-mm-dd hh24:mi:ss')">
98
- </datepicker>
99
- </div>
100
- <div class="form-group col-sm-3">
101
- <label for="endDate" class="font_normal_body">结束时间:</label>
102
- <datepicker id="endDate" placeholder="结束日期"
103
- style="width: 60%!important;"
104
- v-model="model.endDate"
105
- :value.sync="model.endDate"
106
- :format="'yyyy-MM-dd HH:mm:ss'"
107
- :show-reset-button="true"
108
- condition="f_apply_date <= to_date('{}', 'yyyy-mm-dd hh24:mi:ss')">
109
- </datepicker>
110
- </div>
111
- </div>
112
- </div>
113
- </criteria>
114
- <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
115
- <template partial='head'>
116
- <tr>
117
- <th style="white-space: nowrap;">序号</th>
118
- <th style="white-space: nowrap;">工程编号</th>
119
- <th style="white-space: nowrap;">项目名称</th>
120
- <th style="white-space: nowrap;">客户名称</th>
121
- <th style="white-space: nowrap;">合同编号</th>
122
- <th style="white-space: nowrap;">电话</th>
123
- <th style="white-space: nowrap;">地址</th>
124
- <th style="white-space: nowrap;">来源</th>
125
- <th style="white-space: nowrap;">报建类型</th>
126
- <th style="white-space: nowrap;">办理环节</th>
127
- <th style="white-space: nowrap;">流程状态</th>
128
- <th style="white-space: nowrap;">报建日期</th>
129
- <th style="white-space: nowrap;">操作</th>
130
- </tr>
131
- </template>
132
- <template partial='body'>
133
- <tr >
134
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
135
- <nobr><font>{{$index+1}}</font></nobr>
136
- </td>
137
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
138
- <nobr><font>{{row.f_apply_num}}</font></nobr>
139
- </td>
140
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
141
- <nobr><font>{{row.f_entry_name}}</font></nobr>
142
- </td>
143
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
144
- <nobr><font>{{row.f_user_name}}</font></nobr>
145
- </td>
146
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
147
- <nobr><font>{{row.f_contract_number}}</font></nobr>
148
- </td>
149
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
150
- <nobr><font>{{row.f_phone}}</font></nobr>
151
- </td>
152
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
153
- <nobr><font>{{row.f_address}}</font></nobr>
154
- </td>
155
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
156
- <nobr><font>{{row.f_apply_source}}</font></nobr>
157
- </td>
158
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
159
- <nobr><font>{{row.f_apply_type}}</font></nobr>
160
- </td>
161
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
162
- <nobr><font>{{row.defname}}</font></nobr>
163
- </td>
164
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
165
- <nobr><font>{{row.f_sub_state}}</font></nobr>
166
- </td>
167
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
168
- <nobr><font>{{row.f_apply_date}}</font></nobr>
169
- </td>
170
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
171
- <dropdown>
172
- <button type="button" data-toggle="dropdown" style="border: 0px;background: none;">
173
- <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
174
- </button>
175
- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
176
- <li>
177
- <a href="#" @click="$parent.$parent.$parent.click(row)">{{row.defname}}</a>
178
- </li>
179
- </ul>
180
- </dropdown>
181
- </td>
182
- </tr>
183
- </template>
184
- </data-grid>
185
- </criteria-paged>
186
-
187
- <modal
188
- v-if="showModal"
189
- :show.sync="showModal"
190
- backdrop="false"
191
- title="工程类型"
192
- cancel-text="取消"
193
- ok-text="确认"
194
- :callback="apply"
195
- >
196
- <div class="form-horizontal" slot="modal-body">
197
- <div class="form-group" style="margin: 10px auto">
198
- <label class="col-sm-3 control-label">报建类型:</label>
199
- <div class="col-sm-9">
200
- <v-select
201
- v-model="applyType"
202
- placeholder='请选择需要发起的工程类型'
203
- :value.sync="applyType"
204
- :options='$appdata.getParam("报建类型")'
205
- :value-single="true"
206
- class="select select_list"
207
- :search="false"
208
- close-on-select ></v-select>
209
- </div>
210
- </div>
211
- </div>
212
- </modal>
213
- </div>
214
- </template>
215
- <script>
216
- import {PagedList} from 'vue-client'
217
- import {isEmpty} from '../../Util'
218
-
219
- export default {
220
- title: '工程列表',
221
- props: ['showData'],
222
- data () {
223
- return {
224
- model: new PagedList('rs/sql/checkuser', 20, {
225
- data: {
226
- id: this.$login.f.id,
227
- orgid: this.$login.f.orgid
228
- }
229
- }),
230
- showModal: false, // 控制发起类型选择
231
- applyType: '', // 报建类型
232
- curorgid: [this.$login.f.orgid],
233
- applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
234
- defnames: [{label: '全部', value: ''}], // 流程节点
235
- criteriaShow: false
236
- }
237
- },
238
- ready () {
239
- // 调用查询
240
- this.search()
241
- },
242
- methods: {
243
- // 点击操作
244
- click (val) {
245
- this.$dispatch('apply', val)
246
- },
247
- // 获取流程id
248
- async getProcessId(processname) {
249
- let data = {
250
- workname: processname
251
- }
252
- let res = await this.$resetpost(
253
- 'rs/logic/getProcessId',
254
- {data: data},
255
- {resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
256
- )
257
-
258
- return res.data
259
- },
260
- // 报装申请
261
- async apply () {
262
- if (this.applyType === '' || this.applyType === null) {
263
- this.$showAlert('请选择需要发起的类型', 'warning', 3000)
264
- return
265
- }
266
- let data = {
267
- f_apply_type: this.applyType
268
- }
269
- if (this.applyType === '开发商集体报建') {
270
- data.processname = '开发商集体报建流程'
271
- data.defname = '用户受理'
272
- } else if (this.applyType === '工商户报建') {
273
- data.processname = '工商户报建流程'
274
- data.defname = '用户受理'
275
- } else if (this.applyType === '散户报建') {
276
- data.processname = '散户报建流程'
277
- data.defname = '用户受理'
278
- } else if (this.applyType === '预埋管报建') {
279
- data.processname = '预埋管报建流程'
280
- data.defname = '用户受理'
281
- } else {
282
- this.$showMessage('暂无此类报装')
283
- return
284
- }
285
-
286
- data.f_sub_state = "新增"
287
- data.f_apply_source = "线下发起"
288
- data.f_process_id = await this.getProcessId(data.processname)
289
-
290
- // 调用ExplorationUser事件
291
- this.$dispatch('apply', data)
292
-
293
- this.applyType = null
294
- this.showModal = false
295
- },
296
- search () {
297
- this.$dispatch('search')
298
- },
299
- async applyTypeChange () {
300
- if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
301
- let res = await this.$resetpost('rs/logic/getDefnameByType',
302
- { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
303
- {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
304
- )
305
-
306
- this.defnames = [{label: '全部', value: ''}, ...res.data]
307
- } else {
308
- this.defnames = [{label: '全部', value: ''}]
309
- }
310
- },
311
- clear () {
312
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
313
- this.$refs.cp.$refs.cri.model[key] = null
314
- })
315
- },
316
- getorg (val) {
317
- if (val.length <= 0) {
318
- return
319
- }
320
- this.model.params.data.orgid = val[0]
321
- }
322
- },
323
- computed: {
324
- },
325
- watch: {
326
- 'model.rows': {
327
- handler: function () {
328
- let isover = [] // 过期(超时)数据
329
- let isbeforeover = [] // 未过期 提前提醒
330
- for (let i = 0; i < this.model.rows.length; i++) {
331
- let item = this.model.rows[i]
332
- if (item.isover === '过期') {
333
- isover.push(i + 1)
334
- }
335
- if (item.isbeforeover === '预期提醒') {
336
- isbeforeover.push(i + 1)
337
- }
338
- }
339
- let msg = null
340
- if (isover.length > 0) {
341
- msg = `第${isover.toString()}条数据已过期`
342
- this.$showAlert(msg, 'warning', 3000)
343
- }
344
-
345
- if (isbeforeover.length > 0) {
346
- msg = `第${isbeforeover.toString()}条数据即将过期`
347
- if (isover.length > 0) {
348
- setTimeout(() => {
349
- this.$showAlert(msg, 'warning', 3000)
350
- }, 4000)
351
- } else {
352
- this.$showAlert(msg, 'warning', 3000)
353
- }
354
- }
355
- }
356
- }
357
- }
358
- }
359
- </script>
360
- <style scoped>
361
-
362
- .p1 {
363
- color: #dc0b12;
364
- font-weight:bold
365
- }
366
- .p {
367
- color: #ffaf4f;
368
- }
369
- </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
+ <button class="button_new button_spacing" style="width: max-content"
24
+ v-if="$parent.$parent.projectStart"
25
+ @click="$parent.$parent.showModal = !$parent.$parent.showModal">工程发起</button>
26
+ <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
27
+ <button class="button_search button_spacing" @click="$parent.$parent.loadPage()">返回</button>
28
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
29
+ <div
30
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
31
+ @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
32
+ class="button_spacing"
33
+ style="float: right">
34
+ </div>
35
+ </div>
36
+ </div>
37
+ <div class="row" v-show="$parent.$parent.criteriaShow">
38
+ <div class="form-group col-sm-3">
39
+ <label class="font_normal_body">客户名称:</label>
40
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
41
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
42
+ </div>
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" placeholder='联系电话' v-model="model.f_phone"
46
+ v-on:keyup.enter="$parent.$parent.search()"
47
+ condition="f_phone like '%{}%'">
48
+ </div>
49
+ <div class="form-group col-sm-3">
50
+ <label class="font_normal_body">合同编号:</label>
51
+ <input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
52
+ v-on:keyup.enter="$parent.$parent.search()"
53
+ condition="f_contract_number = '{}'">
54
+ </div>
55
+ <div class="form-group col-sm-3">
56
+ <label class="font_normal_body">报建类型:</label>
57
+ <v-select
58
+ v-model="model.f_apply_type"
59
+ placeholder='报建类型'
60
+ condition="f_apply_type = '{}'"
61
+ :value.sync="model.f_apply_type"
62
+ :options='$parent.$parent.applytype'
63
+ class="select select_list"
64
+ :value-single="true"
65
+ @change="$parent.$parent.applyTypeChange()"
66
+ close-on-select ></v-select>
67
+ </div>
68
+ <div class="form-group col-sm-3">
69
+ <label class="font_normal_body">办理环节:</label>
70
+ <v-select
71
+ v-model="model.defname"
72
+ placeholder='办理环节'
73
+ condition="defname = '{}'"
74
+ :value.sync="model.defname"
75
+ :options='$parent.$parent.defnames'
76
+ class="select select_list"
77
+ :value-single="true"
78
+ close-on-select ></v-select>
79
+ </div>
80
+ <div class="form-group col-sm-3">
81
+ <label class="font_normal_body">报建性质:</label>
82
+ <v-select
83
+ v-model="model.f_apply_nature"
84
+ placeholder='报建性质'
85
+ condition="f_apply_nature = '{}'"
86
+ :value.sync="model.f_apply_nature"
87
+ :options='$parent.$parent.applyNatures'
88
+ class="select select_list"
89
+ :value-single="true"
90
+ close-on-select ></v-select>
91
+ </div>
92
+ <div class="form-group col-sm-3">
93
+ <label class="font_normal_body">用户地址:</label>
94
+ <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
95
+ v-on:keyup.enter="$parent.$parent.search()"
96
+ condition="f_address like '%{}%'">
97
+ </div>
98
+ <div class="form-group col-sm-3">
99
+ <label for="startDate" class="font_normal_body">开始时间:</label>
100
+ <datepicker id="startDate" placeholder="开始日期"
101
+ style="width: 60%!important;"
102
+ v-model="model.startDate"
103
+ :value.sync="model.startDate"
104
+ :format="'yyyy-MM-dd 00:00:00'"
105
+ :show-reset-button="true"
106
+ condition="f_apply_date >= '{}'">
107
+ </datepicker>
108
+ </div>
109
+ <div class="form-group col-sm-3">
110
+ <label for="endDate" class="font_normal_body">结束时间:</label>
111
+ <datepicker id="endDate" placeholder="结束日期"
112
+ style="width: 60%!important;"
113
+ v-model="model.endDate"
114
+ :value.sync="model.endDate"
115
+ :format="'yyyy-MM-dd 23:59:59'"
116
+ :show-reset-button="true"
117
+ condition="f_apply_date <= '{}'">
118
+ </datepicker>
119
+ </div>
120
+ <div class="form-group col-sm-3">
121
+ <label class="font_normal_body">稍后处理:</label>
122
+ <v-select
123
+ v-model="model.f_is_later"
124
+ placeholder='稍后处理'
125
+ condition="f_is_later = '{}'"
126
+ :value.sync="model.f_is_later"
127
+ :options='$parent.$parent.laterList'
128
+ class="select select_list"
129
+ :value-single="true"
130
+ close-on-select ></v-select>
131
+ </div>
132
+ </div>
133
+ </div>
134
+ </criteria>
135
+ <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
136
+ <template partial='head'>
137
+ <tr>
138
+ <th style="white-space: nowrap;">序号</th>
139
+ <th style="white-space: nowrap;">工程编号</th>
140
+ <th style="white-space: nowrap;">客户名称</th>
141
+ <th style="white-space: nowrap;">合同编号</th>
142
+ <th style="white-space: nowrap;">电话</th>
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
+ </tr>
151
+ </template>
152
+ <template partial='body'>
153
+ <tr >
154
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
155
+ <nobr><font>{{$index+1}}</font></nobr>
156
+ </td>
157
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
158
+ <nobr><font>{{row.f_apply_num}}</font></nobr>
159
+ </td>
160
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
161
+ <nobr><font>{{row.f_user_name}}</font></nobr>
162
+ </td>
163
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
164
+ <nobr><font>{{row.f_contract_number}}</font></nobr>
165
+ </td>
166
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
167
+ <nobr><font>{{row.f_phone}}</font></nobr>
168
+ </td>
169
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
170
+ <nobr><font>{{row.f_address}}</font></nobr>
171
+ </td>
172
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
173
+ <nobr><font>{{row.f_apply_source}}</font></nobr>
174
+ </td>
175
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
176
+ <nobr><font>{{row.f_apply_type}}</font></nobr>
177
+ </td>
178
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
179
+ <nobr><font>{{row.defname}}</font></nobr>
180
+ </td>
181
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
182
+ <nobr><font>{{row.f_sub_state}}</font></nobr>
183
+ </td>
184
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
185
+ <nobr><font>{{row.f_apply_date}}</font></nobr>
186
+ </td>
187
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
188
+ <dropdown>
189
+ <button type="button" data-toggle="dropdown" style="border: 0px;background: none;">
190
+ <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
191
+ </button>
192
+ <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
193
+ <li>
194
+ <a href="#" @click="$parent.$parent.$parent.click(row)">{{row.defname}}</a>
195
+ </li>
196
+ </ul>
197
+ </dropdown>
198
+ </td>
199
+ </tr>
200
+ </template>
201
+ </data-grid>
202
+ </criteria-paged>
203
+
204
+ <modal
205
+ v-if="showModal"
206
+ :show.sync="showModal"
207
+ backdrop="false"
208
+ title="工程类型"
209
+ cancel-text="取消"
210
+ ok-text="确认"
211
+ :callback="apply"
212
+ >
213
+ <div class="form-horizontal" slot="modal-body">
214
+ <div class="form-group" style="margin: 10px auto">
215
+ <label class="col-sm-3 control-label">报建类型:</label>
216
+ <div class="col-sm-9">
217
+ <v-select
218
+ v-model="applyType"
219
+ placeholder='请选择需要发起的工程类型'
220
+ :value.sync="applyType"
221
+ :options='$appdata.getParam("报建类型")'
222
+ :value-single="true"
223
+ class="select select_list"
224
+ :search="false"
225
+ close-on-select ></v-select>
226
+ </div>
227
+ </div>
228
+ </div>
229
+ </modal>
230
+ </div>
231
+ </template>
232
+ <script>
233
+ import {HttpResetClass, PagedList} from 'vue-client'
234
+ import {isEmpty} from '../../Util'
235
+
236
+ export default {
237
+ title: '工程列表',
238
+ props: ['showData'],
239
+ data () {
240
+ return {
241
+ model: new PagedList('rs/sql/checkuser', 20, {
242
+ data: {
243
+ userid: this.$login.f.id,
244
+ orgid: this.$login.f.orgid
245
+ }
246
+ }),
247
+ showModal: false, // 控制发起类型选择
248
+ applyType: '', // 报建类型
249
+ curorgid: [this.$login.f.orgid],
250
+ applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
251
+ defnames: [{label: '全部', value: ''}], // 流程节点
252
+ applyNatures: [{label: '全部', value: ''}], // 报建性质
253
+ criteriaShow: false
254
+ }
255
+ },
256
+ ready () {
257
+ // 调用查询
258
+ this.search()
259
+ },
260
+ methods: {
261
+ // 点击操作
262
+ click (val) {
263
+ this.$dispatch('apply', val)
264
+ },
265
+ // 获取流程id
266
+ async getProcessId(processname) {
267
+ let data = {
268
+ workname: processname
269
+ }
270
+ let http = new HttpResetClass()
271
+ let res = await http.load(
272
+ 'POST',
273
+ 'rs/logic/getProcessId',
274
+ {data: data},
275
+ {resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
276
+ )
277
+
278
+ return res.data
279
+ },
280
+ // 报装申请
281
+ async apply () {
282
+ if (this.applyType === '' || this.applyType === null) {
283
+ this.$showAlert('请选择需要发起的类型', 'warning', 3000)
284
+ return
285
+ }
286
+ let data = {
287
+ f_apply_type: this.applyType
288
+ }
289
+ if (this.applyType === '散户报建') {
290
+ data.processname = '散户报建流程'
291
+ data.defname = '报装申请'
292
+ } else if (this.applyType === '工商户报建') {
293
+ data.processname = '工商户报建流程'
294
+ data.defname = '报装申请'
295
+ } else if (this.applyType === '改管报建') {
296
+ data.processname = '改管报建流程'
297
+ data.defname = '报装申请'
298
+ } else if (this.applyType === '增容报建') {
299
+ data.processname = '增容报建流程'
300
+ data.defname = '报装申请'
301
+ } else if (this.applyType === '团购报建') {
302
+ data.processname = '团购报建流程'
303
+ data.defname = '报装申请'
304
+ } else if (this.applyType === '退款报建') {
305
+ data.processname = '退款报建流程'
306
+ data.defname = '终止报建'
307
+ } else if (this.applyType === '团购转散户') {
308
+ data.processname = '团购转散户报建流程'
309
+ data.defname = '信息确认'
310
+ } else {
311
+ this.$showMessage('暂无此类报装')
312
+ return
313
+ }
314
+
315
+ data.f_sub_state = "新增"
316
+ data.f_apply_source = "线下发起"
317
+ data.f_process_id = await this.getProcessId(data.processname)
318
+
319
+ // 调用ExplorationUser事件
320
+ this.$dispatch('apply', data)
321
+
322
+ this.applyType = null
323
+ this.showModal = false
324
+ },
325
+ loadPage () {
326
+ this.$dispatch('loadPage')
327
+ },
328
+ search () {
329
+ this.$dispatch('search')
330
+ },
331
+ async applyTypeChange () {
332
+ if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
333
+ let res = await this.$resetpost('rs/logic/getDefnameByType',
334
+ { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
335
+ {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
336
+ )
337
+
338
+ this.defnames = [{label: '全部', value: ''}, ...res.data]
339
+
340
+ 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}性质`)]
341
+ } else {
342
+ this.defnames = [{label: '全部', value: ''}]
343
+
344
+ this.applyNatures = [{label: '全部', value: ''}]
345
+ }
346
+ },
347
+ clear () {
348
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
349
+ this.$refs.cp.$refs.cri.model[key] = null
350
+ })
351
+ },
352
+ getorg (val) {
353
+ if (val.length <= 0) {
354
+ return
355
+ }
356
+ this.model.params.data.orgid = val[0]
357
+ }
358
+ },
359
+ computed: {
360
+ projectStart () {
361
+ return this.$login.r.includes('报建发起')
362
+ }
363
+ },
364
+ watch: {
365
+ 'model.rows': {
366
+ handler: function () {
367
+ let isover = [] // 过期(超时)数据
368
+ let isbeforeover = [] // 未过期 提前提醒
369
+ for (let i = 0; i < this.model.rows.length; i++) {
370
+ let item = this.model.rows[i]
371
+ if (item.isover === '过期') {
372
+ isover.push(i + 1)
373
+ }
374
+ if (item.isbeforeover === '预期提醒') {
375
+ isbeforeover.push(i + 1)
376
+ }
377
+ }
378
+ let msg = null
379
+ if (isover.length > 0) {
380
+ msg = `第${isover.toString()}条数据已过期`
381
+ this.$showAlert(msg, 'warning', 3000)
382
+ }
383
+
384
+ if (isbeforeover.length > 0) {
385
+ msg = `第${isbeforeover.toString()}条数据即将过期`
386
+ if (isover.length > 0) {
387
+ setTimeout(() => {
388
+ this.$showAlert(msg, 'warning', 3000)
389
+ }, 4000)
390
+ } else {
391
+ this.$showAlert(msg, 'warning', 3000)
392
+ }
393
+ }
394
+ }
395
+ }
396
+ },
397
+ events: {
398
+ }
399
+ }
400
+ </script>
401
+ <style scoped>
402
+
403
+ .p1 {
404
+ color: #dc0b12;
405
+ font-weight:bold
406
+ }
407
+ .p {
408
+ color: #ffaf4f;
409
+ }
410
+ </style>