apply-clients 3.5.5-75 → 3.5.5-76

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.
@@ -8,10 +8,14 @@ var compiler = webpack(config)
8
8
  // var proxy = httpProxy.createProxyServer()
9
9
  // var ldap = 'http://121.36.79.201:8400'
10
10
  // var applyinstall = 'http://121.36.79.201:8400'
11
- var ldap = 'http://125.71.238.50:30789'
12
- var applyinstall = 'http://125.71.238.50:30789'
11
+ var ldap = 'http://113.219.4.57:31467'
12
+ var applyinstall = 'http://113.219.4.57:31467'
13
13
 
14
14
  var proxyTable = {
15
+ '/api': {
16
+ target: ldap,
17
+ changeOrigin: true
18
+ },
15
19
  '/rs/logic/getSaleInitData': {
16
20
  target: ldap,
17
21
  changeOrigin: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.5.5-75",
3
+ "version": "3.5.5-76",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -96,7 +96,7 @@
96
96
  "sinon-chai": "^2.8.0",
97
97
  "style": "0.0.3",
98
98
  "style-loader": "^0.20.3",
99
- "system-clients": "3.2.86",
99
+ "system-clients": "4.0.5",
100
100
  "system-phone": "1.2.80-49",
101
101
  "url-loader": "^0.5.7",
102
102
  "vue-client": "1.25.33",
@@ -1,497 +1,523 @@
1
- <template>
2
- <div>
3
- <criteria-paged :model="model" v-ref:cp>
4
- <criteria partial='criteria' @condition-changed='search' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <div class="form-group col-sm-3">
8
- <label class="font_normal_body">客户名称:</label>
9
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
10
- v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
11
- </div>
12
- <div class="form-group col-sm-3">
13
- <label class="font_normal_body">组织机构:</label>
14
- <res-select
15
- restype='organization'
16
- :initresid='$parent.$parent.curorgid'
17
- @res-select="$parent.$parent.getorg"
18
- is-mul="false"
19
- ></res-select>
20
- </div>
21
- <!-- <div class="form-group col-sm-3">-->
22
- <!-- <label class="font_normal_body">工程编号:</label>-->
23
- <!-- <input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"-->
24
- <!-- v-on:keyup.enter="$parent.$parent.search()"-->
25
- <!-- condition="u.f_apply_num = '{}'">-->
26
- <!-- </div>-->
27
- <div class="form-group col-sm-3 button-range">
28
- <a type="button" class="button_new button_spacing" v-if="$parent.$parent.projectStart"
29
- href="/apply/download/excel/散户报装模板.xlsx" download>模板下载</a>
30
- <button class="button_new button_spacing" style="width: max-content"
31
- v-if="$parent.$parent.projectStart"
32
- @click="$parent.$parent.showFile = !$parent.$parent.showFile">批量散户导入</button>
33
- <button class="button_new button_spacing" style="width: max-content"
34
- v-if="$parent.$parent.projectStart"
35
- @click="$parent.$parent.showModal = !$parent.$parent.showModal">工程发起</button>
36
- <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
37
- <button class="button_search button_spacing" @click="$parent.$parent.loadPage()">返回</button>
38
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
39
- <div
40
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
41
- @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
42
- class="button_spacing"
43
- style="float: right">
44
- </div>
45
- </div>
46
- </div>
47
- <div class="row" v-show="$parent.$parent.criteriaShow">
48
- <!-- <div class="form-group col-sm-3">-->
49
- <!-- <label class="font_normal_body">客户名称:</label>-->
50
- <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"-->
51
- <!-- v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>-->
52
- <!-- </div>-->
53
- <div class="form-group col-sm-3">
54
- <label class="font_normal_body">用户编号:</label>
55
- <input type="text" style="width:60%" class="input_search" placeholder='用户编号' v-model="model.f_userinfo_code"
56
- v-on:keyup.enter="$parent.$parent.search()"
57
- condition="ui.f_userinfo_code 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_apply_num"
62
- v-on:keyup.enter="$parent.$parent.search()"
63
- condition="u.f_apply_num 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_contract_money"
68
- v-on:keyup.enter="$parent.$parent.search()"
69
- condition="u.f_contract_money 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_phone"
74
- v-on:keyup.enter="$parent.$parent.search()"
75
- condition="f_phone like '%{}%'">
76
- </div>
77
- <div class="form-group col-sm-3">
78
- <label class="font_normal_body">合同编号:</label>
79
- <input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
80
- v-on:keyup.enter="$parent.$parent.search()"
81
- condition="f_contract_number = '{}'">
82
- </div>
83
- <div class="form-group col-sm-3">
84
- <label class="font_normal_body">报建类型:</label>
85
- <v-select
86
- v-model="model.f_apply_type"
87
- placeholder='报建类型'
88
- condition="f_apply_type = '{}'"
89
- :value.sync="model.f_apply_type"
90
- :options='$parent.$parent.applytype'
91
- class="select select_list"
92
- :value-single="true"
93
- @change="$parent.$parent.applyTypeChange()"
94
- close-on-select ></v-select>
95
- </div>
96
- <div class="form-group col-sm-3">
97
- <label class="font_normal_body">办理环节:</label>
98
- <v-select
99
- v-model="model.defname"
100
- placeholder='办理环节'
101
- condition="act.defname = '{}'"
102
- :value.sync="model.defname"
103
- :options='$parent.$parent.defnames'
104
- class="select select_list"
105
- :value-single="true"
106
- close-on-select ></v-select>
107
- </div>
108
- <div class="form-group col-sm-3">
109
- <label class="font_normal_body">报建性质:</label>
110
- <v-select
111
- v-model="model.f_apply_nature"
112
- placeholder='报建性质'
113
- condition="f_apply_nature = '{}'"
114
- :value.sync="model.f_apply_nature"
115
- :options='$parent.$parent.applyNatures'
116
- class="select select_list"
117
- :value-single="true"
118
- close-on-select ></v-select>
119
- </div>
120
- <div class="form-group col-sm-3">
121
- <label class="font_normal_body">用户地址:</label>
122
- <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
123
- v-on:keyup.enter="$parent.$parent.search()"
124
- condition="f_address like '%{}%'">
125
- </div>
126
- <div class="form-group col-sm-3">
127
- <label for="startDate" class="font_normal_body">开始时间:</label>
128
- <datepicker id="startDate" placeholder="开始日期"
129
- style="width: 60%!important;"
130
- v-model="model.startDate"
131
- :value.sync="model.startDate"
132
- :format="'yyyy-MM-dd 00:00:00'"
133
- :show-reset-button="true"
134
- condition="f_apply_date >= '{}'">
135
- </datepicker>
136
- </div>
137
- <div class="form-group col-sm-3">
138
- <label for="endDate" class="font_normal_body">结束时间:</label>
139
- <datepicker id="endDate" placeholder="结束日期"
140
- style="width: 60%!important;"
141
- v-model="model.endDate"
142
- :value.sync="model.endDate"
143
- :format="'yyyy-MM-dd 23:59:59'"
144
- :show-reset-button="true"
145
- condition="f_apply_date <= '{}'">
146
- </datepicker>
147
- </div>
148
- <div class="form-group col-sm-3">
149
- <label class="font_normal_body">稍后处理:</label>
150
- <v-select
151
- v-model="model.f_no_valid"
152
- placeholder='稍后处理'
153
- condition="lp.f_no_valid = '{}'"
154
- :value.sync="model.f_no_valid"
155
- :options='$parent.$parent.laterList'
156
- class="select select_list"
157
- :value-single="true"
158
- close-on-select ></v-select>
159
- </div>
160
- <div class="form-group col-sm-3">
161
- <label class="font_normal_body">节点发起人:</label>
162
- <input type="text" style="width:60%" class="input_search" v-model="model.act_sender"
163
- v-on:keyup.enter="$parent.$parent.search()" condition="act.sender like '%{}%'" placeholder='节点发起人'>
164
- </div>
165
- </div>
166
- </div>
167
- </criteria>
168
- <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
169
- <template partial='head'>
170
- <tr>
171
- <th style="white-space: nowrap;">序号</th>
172
- <th style="white-space: nowrap;">工程编号</th>
173
- <th style="white-space: nowrap;">客户名称</th>
174
- <th style="white-space: nowrap;">合同编号</th>
175
- <th style="white-space: nowrap;">电话</th>
176
- <th style="white-space: nowrap;">地址</th>
177
- <th style="white-space: nowrap;">来源</th>
178
- <th style="white-space: nowrap;">报建类型</th>
179
- <th style="white-space: nowrap;">办理环节</th>
180
- <th style="white-space: nowrap;">流程状态</th>
181
- <th style="white-space: nowrap;">报建日期</th>
182
- <th style="white-space: nowrap;">操作</th>
183
- </tr>
184
- </template>
185
- <template partial='body'>
186
- <tr class="back-style">
187
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'', row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
188
- <nobr><font>{{$index+1}}</font></nobr>
189
- </td>
190
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
191
- <nobr><font>{{row.f_apply_num}}</font></nobr>
192
- </td>
193
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
194
- <nobr><font>{{row.f_user_name}}</font></nobr>
195
- </td>
196
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
197
- <nobr><font>{{row.f_contract_number}}</font></nobr>
198
- </td>
199
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
200
- <nobr><font>{{row.f_phone}}</font></nobr>
201
- </td>
202
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
203
- <nobr><font>{{row.f_address}}</font></nobr>
204
- </td>
205
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
206
- <nobr><font>{{row.f_apply_source}}</font></nobr>
207
- </td>
208
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
209
- <nobr><font>{{row.f_apply_type}}</font></nobr>
210
- </td>
211
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
212
- <nobr><font>{{row.defname}}</font></nobr>
213
- </td>
214
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
215
- <nobr><font>{{row.f_sub_state}}</font></nobr>
216
- </td>
217
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
218
- <nobr><font>{{row.f_apply_date}}</font></nobr>
219
- </td>
220
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
221
- <dropdown>
222
- <button type="button" data-toggle="dropdown" style="border: 0px;background: none;">
223
- <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
224
- </button>
225
- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
226
- <li>
227
- <a href="#" @click="$parent.$parent.$parent.click(row)">{{row.defname}}</a>
228
- <a href="#" @click="$parent.$parent.$parent.openLater(row)" v-if="row.f_no_valid !== '有效'">稍后处理</a>
229
- </li>
230
- </ul>
231
- </dropdown>
232
- </td>
233
- </tr>
234
- </template>
235
- </data-grid>
236
- </criteria-paged>
237
-
238
- <modal
239
- v-if="showModal"
240
- :show.sync="showModal"
241
- backdrop="false"
242
- title="工程类型"
243
- cancel-text="取消"
244
- ok-text="确认"
245
- :callback="apply"
246
- >
247
- <div class="form-horizontal" slot="modal-body">
248
- <div class="form-group" style="margin: 10px auto">
249
- <label class="col-sm-3 control-label">报建类型:</label>
250
- <div class="col-sm-9">
251
- <v-select
252
- v-model="applyType"
253
- placeholder='请选择需要发起的工程类型'
254
- :value.sync="applyType"
255
- :options='$appdata.getParam("报建类型")'
256
- :value-single="true"
257
- class="select select_list"
258
- :search="false"
259
- close-on-select ></v-select>
260
- </div>
261
- </div>
262
- </div>
263
- </modal>
264
-
265
- <modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="选择文件">
266
- <header slot="modal-header" class="modal-header">
267
- <button type="button" class="close" @click="closeFile"><span>&times;</span></button>
268
- <h4 class="modal-title">选择文件</h4>
269
- </header>
270
- <article slot="modal-body" class="modal-body">
271
- <div class="form-group">
272
- <file-upload class="my-file-uploader" action="singlepage/rs/file/uploadFile" tagname="确定" v-ref:file></file-upload>
273
- </div>
274
- </article>
275
- <footer slot="modal-footer" class="modal-footer"></footer>
276
- </modal>
277
- </div>
278
- </template>
279
- <script>
280
- import {HttpResetClass, PagedList} from 'vue-client'
281
- import {isEmpty} from "../../../components/Util";
282
-
283
- export default {
284
- title: '工程列表',
285
- props: ['showData'],
286
- data () {
287
- return {
288
- model: new PagedList('rs/sql/checkuser', 20, {
289
- data: {
290
- id: this.$login.f.id,
291
- orgid: this.$login.f.orgid
292
- }
293
- }),
294
- showModal: false, // 控制发起类型选择
295
- applyType: '', // 报建类型
296
- curorgid: [this.$login.f.orgid],
297
- applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
298
- defnames: [{label: '全部', value: ''}], // 流程节点
299
- applyNatures: [{label: '全部', value: ''}], // 报建性质
300
- criteriaShow: false,
301
- showFile: false,
302
- laterList: [
303
- {label: '全部', value: ''},
304
- {label: '有效', value: '有效'}
305
- ]
306
- }
307
- },
308
- ready () {
309
- // 调用查询
310
- this.search()
311
- },
312
- methods: {
313
- openLater (row) {
314
- this.$dispatch('openLater', row)
315
- },
316
- closeFile () {
317
- this.showFile = false
318
- // 将选的文件清空
319
- this.$refs.file.$el.querySelector('input').value = ''
320
- this.search()
321
- },
322
- // 点击操作
323
- click (val) {
324
- this.$dispatch('apply', val)
325
- },
326
- // 获取流程id
327
- async getProcessId(processname) {
328
- let data = {
329
- workname: processname
330
- }
331
- let http = new HttpResetClass()
332
- let res = await http.load(
333
- 'POST',
334
- 'rs/logic/getProcessId',
335
- {data: data},
336
- {resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
337
- )
338
-
339
- return res.data
340
- },
341
- // 报装申请
342
- async apply () {
343
- if (this.applyType === '' || this.applyType === null) {
344
- this.$showAlert('请选择需要发起的类型', 'warning', 3000)
345
- return
346
- }
347
- let data = {
348
- f_apply_type: this.applyType
349
- }
350
- if (this.applyType === '散户报建') {
351
- data.processname = '散户报建流程'
352
- data.defname = '报装申请'
353
- } else if (this.applyType === '工商户报建') {
354
- data.processname = '工商户报建流程'
355
- data.defname = '报装申请'
356
- } else if (this.applyType === '改管报建') {
357
- data.processname = '改管报建流程'
358
- data.defname = '报装申请'
359
- } else if (this.applyType === '增容报建') {
360
- data.processname = '增容报建流程'
361
- data.defname = '报装申请'
362
- } else if (this.applyType === '团购报建') {
363
- data.processname = '团购报建流程'
364
- data.defname = '报装申请'
365
- } else if (this.applyType === '退款报建') {
366
- data.processname = '退款报建流程'
367
- data.defname = '终止报建'
368
- } else if (this.applyType === '团购转散户') {
369
- data.processname = '团购转散户报建流程'
370
- data.defname = '信息确认'
371
- }else if (this.applyType === '报警器报建') {
372
- data.processname = '报警器报建流程'
373
- data.defname = '报装申请'
374
- }else if (this.applyType === '工商业报警器报建') {
375
- data.processname = '工商业报警器报建流程'
376
- data.defname = '报装申请'
377
- }else if (this.applyType === '集体报建') {
378
- data.processname = '集体报建流程'
379
- data.defname = '报装申请'
380
- } else if (this.applyType === '工商业报建') {
381
- data.processname = '工商业报建流程'
382
- data.defname = '报装申请'
383
- } else if (this.applyType === '民改商报建') {
384
- data.processname = '民改商报建流程'
385
- data.defname = '报装申请'
386
- } else {
387
- this.$showMessage('暂无此类报装')
388
- return
389
- }
390
-
391
- data.f_sub_state = "新增"
392
- data.f_apply_source = "线下发起"
393
- data.f_process_id = await this.getProcessId(data.processname)
394
-
395
- // 调用ExplorationUser事件
396
- this.$dispatch('apply', data)
397
-
398
- this.applyType = null
399
- this.showModal = false
400
- },
401
- loadPage () {
402
- this.$dispatch('loadPage')
403
- },
404
- search () {
405
- this.$dispatch('search')
406
- },
407
- async applyTypeChange () {
408
- if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
409
- let res = await this.$resetpost('rs/logic/getDefnameByType',
410
- { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
411
- {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
412
- )
413
-
414
- this.defnames = [{label: '全部', value: ''}, ...res.data]
415
-
416
- 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}性质`)]
417
- } else {
418
- this.defnames = [{label: '全部', value: ''}]
419
-
420
- this.applyNatures = [{label: '全部', value: ''}]
421
- }
422
- },
423
- clear () {
424
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
425
- this.$refs.cp.$refs.cri.model[key] = null
426
- })
427
- },
428
- getorg (val) {
429
- if (val.length <= 0) {
430
- return
431
- }
432
- this.model.params.data.orgid = val[0]
433
- }
434
- },
435
- computed: {
436
- projectStart () {
437
- return this.$login.r.includes('报建发起')
438
- }
439
- },
440
- watch: {
441
- 'model.rows': {
442
- handler: function () {
443
- let isover = [] // 过期(超时)数据
444
- let isbeforeover = [] // 未过期 提前提醒
445
- for (let i = 0; i < this.model.rows.length; i++) {
446
- let item = this.model.rows[i]
447
- if (item.isover === '过期') {
448
- isover.push(i + 1)
449
- }
450
- if (item.isbeforeover === '预期提醒') {
451
- isbeforeover.push(i + 1)
452
- }
453
- }
454
- let msg = null
455
- if (isover.length > 0) {
456
- msg = `第${isover.toString()}条数据已过期`
457
- this.$showAlert(msg, 'warning', 3000)
458
- }
459
-
460
- if (isbeforeover.length > 0) {
461
- msg = `第${isbeforeover.toString()}条数据即将过期`
462
- if (isover.length > 0) {
463
- setTimeout(() => {
464
- this.$showAlert(msg, 'warning', 3000)
465
- }, 4000)
466
- } else {
467
- this.$showAlert(msg, 'warning', 3000)
468
- }
469
- }
470
- }
471
- }
472
- },
473
- events: {
474
- async 'onFileUpload'(file, result) {
475
- let data = {
476
- filepath: result.f_realpath,
477
- user: this.$login.f
478
- }
479
- let res = await this.$resetpost(`rs/logic/importApply`, {data:data}, {resolveMsg: null, rejectMsg: '导入失败!!!', silent: true}, 0)
480
-
481
- this.closeFile()
482
- }
483
- }
484
- }
485
- </script>
486
- <style scoped>
487
- .back-style{
488
- background-color: #ffa726;
489
- }
490
- .p1 {
491
- color: #dc0b12;
492
- font-weight:bold
493
- }
494
- .p {
495
- color: #ffaf4f;
496
- }
497
- </style>
1
+ <template>
2
+ <div>
3
+ <criteria-paged :model="model" v-ref:cp>
4
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div class="form-group col-sm-3">
8
+ <label class="font_normal_body">客户名称:</label>
9
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
10
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
11
+ </div>
12
+ <div class="form-group col-sm-3">
13
+ <label class="font_normal_body">组织机构:</label>
14
+ <res-select
15
+ restype='organization'
16
+ :initresid='$parent.$parent.curorgid'
17
+ @res-select="$parent.$parent.getorg"
18
+ is-mul="false"
19
+ ></res-select>
20
+ </div>
21
+ <!-- <div class="form-group col-sm-3">-->
22
+ <!-- <label class="font_normal_body">工程编号:</label>-->
23
+ <!-- <input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"-->
24
+ <!-- v-on:keyup.enter="$parent.$parent.search()"-->
25
+ <!-- condition="u.f_apply_num = '{}'">-->
26
+ <!-- </div>-->
27
+ <div class="form-group col-sm-3 button-range">
28
+ <a type="button" class="button_new button_spacing" v-if="$parent.$parent.projectStart"
29
+ href="/apply/download/excel/散户报装模板.xlsx" download>模板下载</a>
30
+ <button class="button_new button_spacing" style="width: max-content"
31
+ v-if="$parent.$parent.projectStart"
32
+ @click="$parent.$parent.showFile = !$parent.$parent.showFile">批量散户导入</button>
33
+ <button class="button_new button_spacing" style="width: max-content"
34
+ v-if="$parent.$parent.projectStart"
35
+ @click="$parent.$parent.showModal = !$parent.$parent.showModal">工程发起</button>
36
+ <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
37
+ <button class="button_search button_spacing" @click="$parent.$parent.loadPage()">返回</button>
38
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
39
+ <div
40
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
41
+ @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
42
+ class="button_spacing"
43
+ style="float: right">
44
+ </div>
45
+ </div>
46
+ </div>
47
+ <div class="row" v-show="$parent.$parent.criteriaShow">
48
+ <!-- <div class="form-group col-sm-3">-->
49
+ <!-- <label class="font_normal_body">客户名称:</label>-->
50
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"-->
51
+ <!-- v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>-->
52
+ <!-- </div>-->
53
+ <div class="form-group col-sm-3">
54
+ <label class="font_normal_body">用户编号:</label>
55
+ <input type="text" style="width:60%" class="input_search" placeholder='用户编号' v-model="model.f_userinfo_code"
56
+ v-on:keyup.enter="$parent.$parent.search()"
57
+ condition="ui.f_userinfo_code 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_apply_num"
62
+ v-on:keyup.enter="$parent.$parent.search()"
63
+ condition="u.f_apply_num 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_contract_money"
68
+ v-on:keyup.enter="$parent.$parent.search()"
69
+ condition="u.f_contract_money 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_phone"
74
+ v-on:keyup.enter="$parent.$parent.search()"
75
+ condition="f_phone like '%{}%'">
76
+ </div>
77
+ <div class="form-group col-sm-3">
78
+ <label class="font_normal_body">合同编号:</label>
79
+ <input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
80
+ v-on:keyup.enter="$parent.$parent.search()"
81
+ condition="f_contract_number = '{}'">
82
+ </div>
83
+ <div class="form-group col-sm-3">
84
+ <label class="font_normal_body">报建类型:</label>
85
+ <v-select
86
+ v-model="model.f_apply_type"
87
+ placeholder='报建类型'
88
+ condition="f_apply_type = '{}'"
89
+ :value.sync="model.f_apply_type"
90
+ :options='$parent.$parent.applytype'
91
+ class="select select_list"
92
+ :value-single="true"
93
+ @change="$parent.$parent.applyTypeChange()"
94
+ close-on-select ></v-select>
95
+ </div>
96
+ <div class="form-group col-sm-3">
97
+ <label class="font_normal_body">办理环节:</label>
98
+ <v-select
99
+ v-model="model.defname"
100
+ placeholder='办理环节'
101
+ condition="act.defname = '{}'"
102
+ :value.sync="model.defname"
103
+ :options='$parent.$parent.defnames'
104
+ class="select select_list"
105
+ :value-single="true"
106
+ close-on-select ></v-select>
107
+ </div>
108
+ <div class="form-group col-sm-3">
109
+ <label class="font_normal_body">报建性质:</label>
110
+ <v-select
111
+ v-model="model.f_apply_nature"
112
+ placeholder='报建性质'
113
+ condition="f_apply_nature = '{}'"
114
+ :value.sync="model.f_apply_nature"
115
+ :options='$parent.$parent.applyNatures'
116
+ class="select select_list"
117
+ :value-single="true"
118
+ close-on-select ></v-select>
119
+ </div>
120
+ <div class="form-group col-sm-3">
121
+ <label class="font_normal_body">用户地址:</label>
122
+ <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
123
+ v-on:keyup.enter="$parent.$parent.search()"
124
+ condition="f_address like '%{}%'">
125
+ </div>
126
+ <div class="form-group col-sm-3">
127
+ <label for="startDate" class="font_normal_body">开始时间:</label>
128
+ <datepicker id="startDate" placeholder="开始日期"
129
+ style="width: 60%!important;"
130
+ v-model="model.startDate"
131
+ :value.sync="model.startDate"
132
+ :format="'yyyy-MM-dd 00:00:00'"
133
+ :show-reset-button="true"
134
+ condition="f_apply_date >= '{}'">
135
+ </datepicker>
136
+ </div>
137
+ <div class="form-group col-sm-3">
138
+ <label for="endDate" class="font_normal_body">结束时间:</label>
139
+ <datepicker id="endDate" placeholder="结束日期"
140
+ style="width: 60%!important;"
141
+ v-model="model.endDate"
142
+ :value.sync="model.endDate"
143
+ :format="'yyyy-MM-dd 23:59:59'"
144
+ :show-reset-button="true"
145
+ condition="f_apply_date <= '{}'">
146
+ </datepicker>
147
+ </div>
148
+ <div class="form-group col-sm-3">
149
+ <label class="font_normal_body">稍后处理:</label>
150
+ <v-select
151
+ v-model="model.f_no_valid"
152
+ placeholder='稍后处理'
153
+ condition="lp.f_no_valid = '{}'"
154
+ :value.sync="model.f_no_valid"
155
+ :options='$parent.$parent.laterList'
156
+ class="select select_list"
157
+ :value-single="true"
158
+ close-on-select ></v-select>
159
+ </div>
160
+ <div class="form-group col-sm-3">
161
+ <label class="font_normal_body">节点发起人:</label>
162
+ <input type="text" style="width:60%" class="input_search" v-model="model.act_sender"
163
+ v-on:keyup.enter="$parent.$parent.search()" condition="act.sender like '%{}%'" placeholder='节点发起人'>
164
+ </div>
165
+ <div class="form-group col-sm-3">
166
+ <label class="font_normal_body">点火类型:</label>
167
+ <v-select
168
+ v-model="model.f_igniter_type"
169
+ placeholder='点火类型'
170
+ condition="f_igniter_type = '{}'"
171
+ :value.sync="model.f_igniter_type"
172
+ :options='$parent.$parent.ignitertype'
173
+ class="select select_list"
174
+ :value-single="true"
175
+ close-on-select ></v-select>
176
+ </div>
177
+ <div class="form-group col-sm-3">
178
+ <label class="font_normal_body">老居民首次开发:</label>
179
+ <v-select
180
+ v-model="model.f_first_user"
181
+ placeholder='是否老居民首次开发'
182
+ condition="f_first_user = '{}'"
183
+ :value.sync="model.f_first_user"
184
+ :options='$parent.$parent.firstUser'
185
+ class="select select_list"
186
+ :value-single="true"
187
+ close-on-select ></v-select>
188
+ </div>
189
+ </div>
190
+ </div>
191
+ </criteria>
192
+ <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
193
+ <template partial='head'>
194
+ <tr>
195
+ <th style="white-space: nowrap;">序号</th>
196
+ <th style="white-space: nowrap;">工程编号</th>
197
+ <th style="white-space: nowrap;">客户名称</th>
198
+ <th style="white-space: nowrap;">发起人</th>
199
+ <th style="white-space: nowrap;">电话</th>
200
+ <th style="white-space: nowrap;">地址</th>
201
+ <th style="white-space: nowrap;">来源</th>
202
+ <th style="white-space: nowrap;">报建类型</th>
203
+ <th style="white-space: nowrap;">办理环节</th>
204
+ <th style="white-space: nowrap;">流程状态</th>
205
+ <th style="white-space: nowrap;">报建日期</th>
206
+ <th style="white-space: nowrap;">操作</th>
207
+ </tr>
208
+ </template>
209
+ <template partial='body'>
210
+ <tr class="back-style">
211
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'', row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
212
+ <nobr><font>{{$index+1}}</font></nobr>
213
+ </td>
214
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
215
+ <nobr><font>{{row.f_apply_num}}</font></nobr>
216
+ </td>
217
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
218
+ <nobr><font>{{row.f_user_name}}</font></nobr>
219
+ </td>
220
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
221
+ <nobr><font>{{row.f_operator}}</font></nobr>
222
+ </td>
223
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
224
+ <nobr><font>{{row.f_phone}}</font></nobr>
225
+ </td>
226
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
227
+ <nobr><font>{{row.f_address}}</font></nobr>
228
+ </td>
229
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
230
+ <nobr><font>{{row.f_apply_source}}</font></nobr>
231
+ </td>
232
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
233
+ <nobr><font>{{row.f_apply_type}}</font></nobr>
234
+ </td>
235
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
236
+ <nobr><font>{{row.defname}}</font></nobr>
237
+ </td>
238
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
239
+ <nobr><font>{{row.f_sub_state}}</font></nobr>
240
+ </td>
241
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
242
+ <nobr><font>{{row.f_apply_date}}</font></nobr>
243
+ </td>
244
+ <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' , row.f_back_reason ? 'back-style':'' ]" style="text-align: center;">
245
+ <dropdown>
246
+ <button type="button" data-toggle="dropdown" style="border: 0px;background: none;">
247
+ <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
248
+ </button>
249
+ <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
250
+ <li>
251
+ <a href="#" @click="$parent.$parent.$parent.click(row)">{{row.defname}}</a>
252
+ <a href="#" @click="$parent.$parent.$parent.openLater(row)" v-if="row.f_no_valid !== '有效'">稍后处理</a>
253
+ </li>
254
+ </ul>
255
+ </dropdown>
256
+ </td>
257
+ </tr>
258
+ </template>
259
+ </data-grid>
260
+ </criteria-paged>
261
+
262
+ <modal
263
+ v-if="showModal"
264
+ :show.sync="showModal"
265
+ backdrop="false"
266
+ title="工程类型"
267
+ cancel-text="取消"
268
+ ok-text="确认"
269
+ :callback="apply"
270
+ >
271
+ <div class="form-horizontal" slot="modal-body">
272
+ <div class="form-group" style="margin: 10px auto">
273
+ <label class="col-sm-3 control-label">报建类型:</label>
274
+ <div class="col-sm-9">
275
+ <v-select
276
+ v-model="applyType"
277
+ placeholder='请选择需要发起的工程类型'
278
+ :value.sync="applyType"
279
+ :options='$appdata.getParam("报建类型")'
280
+ :value-single="true"
281
+ class="select select_list"
282
+ :search="false"
283
+ close-on-select ></v-select>
284
+ </div>
285
+ </div>
286
+ </div>
287
+ </modal>
288
+
289
+ <modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="选择文件">
290
+ <header slot="modal-header" class="modal-header">
291
+ <button type="button" class="close" @click="closeFile"><span>&times;</span></button>
292
+ <h4 class="modal-title">选择文件</h4>
293
+ </header>
294
+ <article slot="modal-body" class="modal-body">
295
+ <div class="form-group">
296
+ <file-upload class="my-file-uploader" action="singlepage/rs/file/uploadFile" tagname="确定" v-ref:file></file-upload>
297
+ </div>
298
+ </article>
299
+ <footer slot="modal-footer" class="modal-footer"></footer>
300
+ </modal>
301
+ </div>
302
+ </template>
303
+ <script>
304
+ import {HttpResetClass, PagedList} from 'vue-client'
305
+ import {isEmpty} from "../../../components/Util";
306
+
307
+ export default {
308
+ title: '工程列表',
309
+ props: ['showData'],
310
+ data () {
311
+ return {
312
+ model: new PagedList('rs/sql/checkuser', 20, {
313
+ data: {
314
+ id: this.$login.f.id,
315
+ orgid: this.$login.f.orgid
316
+ }
317
+ }),
318
+ showModal: false, // 控制发起类型选择
319
+ applyType: '', // 报建类型
320
+ curorgid: [this.$login.f.orgid],
321
+ ignitertype: [{label: '全部', value: ''},{label: '一次点火', value: '一次点火'},{label: '二次点火', value: '二次点火'}],
322
+ firstUser: [{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}],
323
+ applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
324
+ defnames: [{label: '全部', value: ''}], // 流程节点
325
+ applyNatures: [{label: '全部', value: ''}], // 报建性质
326
+ criteriaShow: false,
327
+ showFile: false,
328
+ laterList: [
329
+ {label: '全部', value: ''},
330
+ {label: '有效', value: '有效'}
331
+ ]
332
+ }
333
+ },
334
+ ready () {
335
+ // 调用查询
336
+ this.search()
337
+ },
338
+ methods: {
339
+ openLater (row) {
340
+ this.$dispatch('openLater', row)
341
+ },
342
+ closeFile () {
343
+ this.showFile = false
344
+ // 将选的文件清空
345
+ this.$refs.file.$el.querySelector('input').value = ''
346
+ this.search()
347
+ },
348
+ // 点击操作
349
+ click (val) {
350
+ this.$dispatch('apply', val)
351
+ },
352
+ // 获取流程id
353
+ async getProcessId(processname) {
354
+ let data = {
355
+ workname: processname
356
+ }
357
+ let http = new HttpResetClass()
358
+ let res = await http.load(
359
+ 'POST',
360
+ 'rs/logic/getProcessId',
361
+ {data: data},
362
+ {resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
363
+ )
364
+
365
+ return res.data
366
+ },
367
+ // 报装申请
368
+ async apply () {
369
+ if (this.applyType === '' || this.applyType === null) {
370
+ this.$showAlert('请选择需要发起的类型', 'warning', 3000)
371
+ return
372
+ }
373
+ let data = {
374
+ f_apply_type: this.applyType
375
+ }
376
+ 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 if (this.applyType === '增容报建') {
386
+ data.processname = '增容报建流程'
387
+ data.defname = '报装申请'
388
+ } else if (this.applyType === '团购报建') {
389
+ data.processname = '团购报建流程'
390
+ data.defname = '报装申请'
391
+ } else if (this.applyType === '退款报建') {
392
+ data.processname = '退款报建流程'
393
+ data.defname = '终止报建'
394
+ } else if (this.applyType === '团购转散户') {
395
+ data.processname = '团购转散户报建流程'
396
+ data.defname = '信息确认'
397
+ }else if (this.applyType === '报警器报建') {
398
+ data.processname = '报警器报建流程'
399
+ data.defname = '报装申请'
400
+ }else if (this.applyType === '工商业报警器报建') {
401
+ data.processname = '工商业报警器报建流程'
402
+ data.defname = '报装申请'
403
+ }else if (this.applyType === '集体报建') {
404
+ data.processname = '集体报建流程'
405
+ data.defname = '报装申请'
406
+ } else if (this.applyType === '工商业报建') {
407
+ data.processname = '工商业报建流程'
408
+ data.defname = '报装申请'
409
+ } else if (this.applyType === '民改商报建') {
410
+ data.processname = '民改商报建流程'
411
+ data.defname = '报装申请'
412
+ } else {
413
+ this.$showMessage('暂无此类报装')
414
+ return
415
+ }
416
+
417
+ data.f_sub_state = "新增"
418
+ data.f_apply_source = "线下发起"
419
+ data.f_process_id = await this.getProcessId(data.processname)
420
+
421
+ // 调用ExplorationUser事件
422
+ this.$dispatch('apply', data)
423
+
424
+ this.applyType = null
425
+ this.showModal = false
426
+ },
427
+ loadPage () {
428
+ this.$dispatch('loadPage')
429
+ },
430
+ search () {
431
+ this.$dispatch('search')
432
+ },
433
+ async applyTypeChange () {
434
+ if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
435
+ let res = await this.$resetpost('rs/logic/getDefnameByType',
436
+ { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
437
+ {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
438
+ )
439
+
440
+ this.defnames = [{label: '全部', value: ''}, ...res.data]
441
+
442
+ 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}性质`)]
443
+ } else {
444
+ this.defnames = [{label: '全部', value: ''}]
445
+
446
+ this.applyNatures = [{label: '全部', value: ''}]
447
+ }
448
+ },
449
+ clear () {
450
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
451
+ this.$refs.cp.$refs.cri.model[key] = null
452
+ })
453
+ },
454
+ getorg (val) {
455
+ if (val.length <= 0) {
456
+ return
457
+ }
458
+ this.model.params.data.orgid = val[0]
459
+ }
460
+ },
461
+ computed: {
462
+ projectStart () {
463
+ return this.$login.r.includes('报建发起')
464
+ }
465
+ },
466
+ watch: {
467
+ 'model.rows': {
468
+ handler: function () {
469
+ let isover = [] // 过期(超时)数据
470
+ let isbeforeover = [] // 未过期 提前提醒
471
+ for (let i = 0; i < this.model.rows.length; i++) {
472
+ let item = this.model.rows[i]
473
+ if (item.isover === '过期') {
474
+ isover.push(i + 1)
475
+ }
476
+ if (item.isbeforeover === '预期提醒') {
477
+ isbeforeover.push(i + 1)
478
+ }
479
+ }
480
+ let msg = null
481
+ if (isover.length > 0) {
482
+ msg = `第${isover.toString()}条数据已过期`
483
+ this.$showAlert(msg, 'warning', 3000)
484
+ }
485
+
486
+ if (isbeforeover.length > 0) {
487
+ msg = `第${isbeforeover.toString()}条数据即将过期`
488
+ if (isover.length > 0) {
489
+ setTimeout(() => {
490
+ this.$showAlert(msg, 'warning', 3000)
491
+ }, 4000)
492
+ } else {
493
+ this.$showAlert(msg, 'warning', 3000)
494
+ }
495
+ }
496
+ }
497
+ }
498
+ },
499
+ events: {
500
+ async 'onFileUpload'(file, result) {
501
+ let data = {
502
+ filepath: result.f_realpath,
503
+ user: this.$login.f
504
+ }
505
+ let res = await this.$resetpost(`rs/logic/importApply`, {data:data}, {resolveMsg: null, rejectMsg: '导入失败!!!', silent: true}, 0)
506
+
507
+ this.closeFile()
508
+ }
509
+ }
510
+ }
511
+ </script>
512
+ <style scoped>
513
+ .back-style{
514
+ background-color: #ffa726;
515
+ }
516
+ .p1 {
517
+ color: #dc0b12;
518
+ font-weight:bold
519
+ }
520
+ .p {
521
+ color: #ffaf4f;
522
+ }
523
+ </style>
package/src/main.js CHANGED
@@ -9,7 +9,7 @@ import {material} from 'material-client'
9
9
  import apply from './apply'
10
10
 
11
11
  all()
12
- apply('yangchunboneng')
12
+ apply('jinhuang')
13
13
  ldap()
14
14
  sale()
15
15
  material()