apply-clients 3.5.4-91 → 3.5.4-92

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.5.4-91",
3
+ "version": "3.5.4-92",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -0,0 +1,480 @@
1
+ <template>
2
+ <criteria-paged :model="model" v-ref:cp>
3
+ <criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
4
+ <div class="form-horizontal select-overspread container-fluid auto" partial>
5
+ <div class="row">
6
+ <div class="form-group col-sm-3">
7
+ <label class="font_normal_body">组织机构:</label>
8
+ <res-select
9
+ restype='organization'
10
+ :initresid='$parent.$parent.curorgid'
11
+ @res-select="$parent.$parent.getorg"
12
+ :is-mul="false"
13
+ ></res-select>
14
+ </div>
15
+ <div class="form-group col-sm-3">
16
+ <label for="startDate" class="font_normal_body">开始时间:</label>
17
+ <datepicker id="startDate" placeholder="开始日期"
18
+ style="width: 60%!important;"
19
+ v-model="model.startDate"
20
+ :value.sync="model.startDate"
21
+ :format="'yyyy-MM-dd 00:00:00'"
22
+ :show-reset-button="true"
23
+ condition="cr.f_charge_date >= '{}'">
24
+ </datepicker>
25
+ </div>
26
+ <div class="form-group col-sm-3">
27
+ <label for="endDate" class="font_normal_body">结束时间:</label>
28
+ <datepicker id="endDate" placeholder="结束日期"
29
+ style="width: 60%!important;"
30
+ v-model="model.endDate"
31
+ :value.sync="model.endDate"
32
+ :format="'yyyy-MM-dd 23:59:59'"
33
+ :show-reset-button="true"
34
+ condition="cr.f_charge_date <= '{}'">
35
+ </datepicker>
36
+ </div>
37
+ <div class="form-group col-sm-3 button-range">
38
+ <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
39
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
40
+ <export-excel :data="$parent.$parent.getCondition"
41
+ :field="$parent.$parent.getfield"
42
+ sqlurl="rs/logic/applyExportfile"
43
+ sql-name="getApplyCharge"
44
+ template-name='收费记录信息导出'
45
+ :choose-col="true"></export-excel>
46
+ <div
47
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
48
+ @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
49
+ class="button_spacing"
50
+ style="float: right">
51
+ </div>
52
+ </div>
53
+ </div>
54
+ <div class="row" v-show="$parent.$parent.criteriaShow">
55
+ <div class="form-group col-sm-3">
56
+ <label class="font_normal_body">用户编号:</label>
57
+ <input type="text" style="width:60%" class="input_search" placeholder='用户编号' v-model="model.f_userinfo_code"
58
+ v-on:keyup.enter="$parent.$parent.search()"
59
+ condition="f_userinfo_code like '%{}%'">
60
+ </div>
61
+ <div class="form-group col-sm-3">
62
+ <label class="font_normal_body">工程编号:</label>
63
+ <input type="text" style="width: 60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
64
+ v-on:keyup.enter="$parent.$parent.search()"
65
+ condition="a.f_apply_num like '%{}%'">
66
+ </div>
67
+ <div class="form-group col-sm-3">
68
+ <label class="font_normal_body">合同编号:</label>
69
+ <input type="text" style="width: 60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
70
+ v-on:keyup.enter="$parent.$parent.search()"
71
+ condition="a.f_contract_number = '{}'">
72
+ </div>
73
+ <div class="form-group col-sm-3">
74
+ <label class="font_normal_body">报建类型:</label>
75
+ <v-select
76
+ v-model="model.f_apply_type"
77
+ placeholder='请选择'
78
+ condition="a.f_apply_type = '{}'"
79
+ :value.sync="model.f_apply_type"
80
+ :options='$parent.$parent.applytype'
81
+ class="select select_list"
82
+ :value-single="true"
83
+ @change="$parent.$parent.applyTypeChange()"
84
+ close-on-select ></v-select>
85
+ </div>
86
+ <div class="form-group col-sm-3">
87
+ <label class="font_normal_body">报建性质:</label>
88
+ <v-select
89
+ v-model="model.f_apply_nature"
90
+ placeholder='报建性质'
91
+ condition="a.f_apply_nature = '{}'"
92
+ :value.sync="model.f_apply_nature"
93
+ :options='$parent.$parent.applyNatures'
94
+ class="select select_list"
95
+ :value-single="true"
96
+ close-on-select ></v-select>
97
+ </div>
98
+ <div class="form-group col-sm-3">
99
+ <label class="font_normal_body">用户名称:</label>
100
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
101
+ v-on:keyup.enter="$parent.$parent.search()" condition="a.f_user_name like '%{}%'" placeholder='用户名称'>
102
+ </div>
103
+ <div class="form-group col-sm-3">
104
+ <label class="font_normal_body">用户电话:</label>
105
+ <input type="text" style="width:60%" class="input_search" placeholder='用户电话' v-model="model.f_phone"
106
+ v-on:keyup.enter="$parent.$parent.search()"
107
+ condition="a.f_phone like '%{}%'">
108
+ </div>
109
+ <div class="form-group col-sm-3">
110
+ <label class="font_normal_body">用户地址:</label>
111
+ <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
112
+ v-on:keyup.enter="$parent.$parent.search()"
113
+ condition="a.f_address like '%{}%'">
114
+ </div>
115
+ <div class="form-group col-sm-3">
116
+ <label class="font_normal_body">身份证号:</label>
117
+ <input type="text" style="width:60%" class="input_search" placeholder='身份证号' v-model="model.f_idnumber"
118
+ v-on:keyup.enter="$parent.$parent.search()"
119
+ condition="a.f_idnumber like '%{}%'">
120
+ </div>
121
+ <div class="form-group col-sm-3">
122
+ <label class="font_normal_body">缴费编码:</label>
123
+ <input type="text" class="input_search" style="width: 60%" placeholder='缴费编码' v-model="model.f_charge_number"
124
+ v-on:keyup.enter="$parent.$parent.search()"
125
+ condition="cr.f_charge_number like '%{}%'">
126
+ </div>
127
+ <div class="form-group col-sm-3">
128
+ <label class="font_normal_body">付款方式:</label>
129
+ <v-select
130
+ v-model="model.f_payment_method"
131
+ placeholder='请选择'
132
+ condition="cr.f_payment_method = '{}'"
133
+ :value.sync="model.f_payment_method"
134
+ :options='$parent.$parent.paymentMethod'
135
+ class="select select_list"
136
+ :value-single="true"
137
+ close-on-select ></v-select>
138
+ </div>
139
+ <div class="form-group col-sm-3">
140
+ <label class="font_normal_body">收费项目:</label>
141
+ <v-select
142
+ v-model="model.f_payment_term"
143
+ placeholder='请选择'
144
+ condition="cr.f_payment_term = '{}'"
145
+ :value.sync="model.f_payment_term"
146
+ :options='$parent.$parent.paymentTerm'
147
+ class="select select_list"
148
+ :value-single="true"
149
+ close-on-select ></v-select>
150
+ </div>
151
+ <div class="form-group col-sm-3">
152
+ <label class="font_normal_body">流&ensp;水&ensp;号:</label>
153
+ <input type="text" style="width: 60%" class="input_search" placeholder='流水号' v-model="model.f_payer_number"
154
+ v-on:keyup.enter="$parent.$parent.search()"
155
+ condition="cr.f_payer_number = '{}'">
156
+ </div>
157
+ <div class="form-group col-sm-3">
158
+ <label class="font_normal_body">部&emsp;&emsp;门:</label>
159
+ <res-select
160
+ restype='department'
161
+ :parentresid="$parent.$parent.curorgid"
162
+ :initresid='$parent.$parent.curdepid'
163
+ @res-select="$parent.$parent.getdep"
164
+ :is-mul="true"
165
+ ></res-select>
166
+ </div>
167
+ <div class="form-group col-sm-3">
168
+ <label class="font_normal_body">人&emsp;&emsp;员:</label>
169
+ <res-select
170
+ restype='user'
171
+ :parentresid="$parent.$parent.curdepid"
172
+ :initresid='$parent.$parent.curuserid'
173
+ @res-select="$parent.$parent.getuser"
174
+ :is-mul="true"></res-select>
175
+ </div>
176
+ <div class="form-group col-sm-3">
177
+ <label class="font_normal_body">缴费状态:</label>
178
+ <v-select
179
+ v-model="model.f_charge_status"
180
+ placeholder='请选择'
181
+ condition="cr.f_charge_status in {} "
182
+ :value.sync="model.f_charge_status"
183
+ :options='$parent.$parent.chargeStatus'
184
+ class="select select_list"
185
+ :multiple="true"
186
+ ></v-select>
187
+ </div>
188
+ <div class="form-group col-sm-3">
189
+ <label class="font_normal_body">服务人:</label>
190
+ <v-select
191
+ v-model="model.f_servicer"
192
+ placeholder='请选择'
193
+ condition="a.f_servicer = '{}'"
194
+ :value.sync="model.f_servicer"
195
+ class="select select_list"
196
+ :options='$parent.$parent.servicerList'
197
+ :value-single="true"
198
+ close-on-select ></v-select>
199
+ </div>
200
+ <div class="form-group col-sm-3">
201
+ <label class="font_normal_body">报建发起人:</label>
202
+ <v-select
203
+ v-model="model.f_operator"
204
+ placeholder='请选择'
205
+ condition="a.f_operator = '{}'"
206
+ :value.sync="model.f_operator"
207
+ class="select select_list"
208
+ :options='$parent.$parent.operatorList'
209
+ :value-single="true"
210
+ close-on-select ></v-select>
211
+ </div>
212
+ </div>
213
+ </div>
214
+ </criteria>
215
+ <data-grid :model="model" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
216
+ <template partial='head'>
217
+ <tr>
218
+ <th style="white-space: nowrap;">序号</th>
219
+ <th style="white-space: nowrap;">工程编号</th>
220
+ <th style="white-space: nowrap;">合同编号</th>
221
+ <th style="white-space: nowrap;">报建类型</th>
222
+ <th style="white-space: nowrap;">报建性质</th>
223
+ <th style="white-space: nowrap;">用户名称</th>
224
+ <th style="white-space: nowrap;">用户电话</th>
225
+ <th style="white-space: nowrap;">用户地址</th>
226
+ <th style="white-space: nowrap;">身份证号</th>
227
+ <th style="white-space: nowrap;">缴费编码</th>
228
+ <th style="white-space: nowrap;">收费项目</th>
229
+ <th style="white-space: nowrap;">收费金额(退款金额)</th>
230
+ <th style="white-space: nowrap;">付款方式</th>
231
+ <th style="white-space: nowrap;">流水号</th>
232
+ <th style="white-space: nowrap;">服务人</th>
233
+ <th style="white-space: nowrap;">报建发起人</th>
234
+ <th style="white-space: nowrap;">收费人员(退款人员)</th>
235
+ <th style="white-space: nowrap;">收费日期(退款日期)</th>
236
+ <th style="white-space: nowrap;">实际收费时间</th>
237
+ <th style="white-space: nowrap;">状态</th>
238
+ </tr>
239
+ </template>
240
+ <template partial='body'>
241
+ <tr >
242
+ <td style="text-align: center;">
243
+ <nobr><font>{{$index+1}}</font></nobr>
244
+ </td>
245
+ <td style="text-align: center;">
246
+ <nobr><font>{{row.f_apply_num}}</font></nobr>
247
+ </td>
248
+ <td style="text-align: center;">
249
+ <nobr><font>{{row.f_contract_number}}</font></nobr>
250
+ </td>
251
+ <td style="text-align: center;">
252
+ <nobr><font>{{row.f_apply_type}}</font></nobr>
253
+ </td>
254
+ <td style="text-align: center;">
255
+ <nobr><font>{{row.f_apply_nature}}</font></nobr>
256
+ </td>
257
+ <td style="text-align: center;">
258
+ <nobr><font>{{row.f_user_name}}</font></nobr>
259
+ </td>
260
+ <td style="text-align: center;">
261
+ <nobr><font>{{row.f_phone}}</font></nobr>
262
+ </td>
263
+ <td style="text-align: center;">
264
+ <nobr><font>{{row.f_address}}</font></nobr>
265
+ </td>
266
+ <td style="text-align: center;">
267
+ <nobr><font>{{row.f_idnumber}}</font></nobr>
268
+ </td>
269
+ <td style="text-align: center;">
270
+ <nobr><font>{{row.f_charge_number}}</font></nobr>
271
+ </td>
272
+ <td style="text-align: center;">
273
+ <nobr><font>{{row.f_payment_term}}</font></nobr>
274
+ </td>
275
+ <td style="text-align: center;">
276
+ <nobr><font>{{row.f_charge_money}}</font></nobr>
277
+ </td>
278
+ <td style="text-align: center;">
279
+ <nobr><font>{{row.f_payment_method}}</font></nobr>
280
+ </td>
281
+ <td style="text-align: center;">
282
+ <nobr><font>{{row.f_payer_number}}</font></nobr>
283
+ </td>
284
+ <td style="text-align: center;">
285
+ <nobr><font>{{row.f_servicer}}</font></nobr>
286
+ </td>
287
+ <td style="text-align: center;">
288
+ <nobr><font>{{row.f_operator}}</font></nobr>
289
+ </td>
290
+ <td style="text-align: center;">
291
+ <nobr><font>{{row.f_charge_collectors}}</font></nobr>
292
+ </td>
293
+ <td style="text-align: center;">
294
+ <nobr><font>{{row.f_charge_date}}</font></nobr>
295
+ </td>
296
+ <td style="text-align: center;">
297
+ <nobr><font>{{row.f_actual_date}}</font></nobr>
298
+ </td>
299
+ <td style="text-align: center;">
300
+ <nobr><font>{{row.f_charge_status}}</font></nobr>
301
+ </td>
302
+ </tr>
303
+ </template>
304
+ </data-grid>
305
+ </criteria-paged>
306
+ </template>
307
+
308
+ <script>
309
+ import {PagedList} from 'vue-client'
310
+ import {HttpResetClass} from 'vue-client'
311
+ import {isEmpty} from '../../../components/Util'
312
+ export default {
313
+ title: '报建收费列表',
314
+ data () {
315
+ return {
316
+ model: new PagedList('rs/sql/getApplyCharge', 30, null, {
317
+ f_charge_money: 0
318
+ }),
319
+ charge:{},
320
+ curorgid: [this.$login.f.orgid],
321
+ curdepid: [],
322
+ servicerList:[],
323
+ operatorList:[],
324
+ curuserid: [],
325
+ paymentTerm :[{label: '全部', value: ''}, ...this.$appdata.getParam('收费项目')],
326
+ applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
327
+ applyNatures: [{label: '全部', value: ''}], // 报建性质
328
+ paymentMethod: [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')],
329
+ chargeStatus: [
330
+ {label: '全部', value: ''},
331
+ {label: '有效', value: '有效'},
332
+ {label: '作废', value: '作废'},
333
+ {label: '退款', value: '退款'}
334
+ ],
335
+ criteriaShow: false,
336
+ chargeAll: {
337
+ count: 0,
338
+ sum: 0
339
+ },
340
+ getfield: {
341
+ 'f_apply_num': '工程编号',
342
+ 'f_contract_number': '合同编号',
343
+ 'f_apply_type': '报建类型',
344
+ 'f_apply_nature': '报建性质',
345
+ 'f_user_name': '用户名称',
346
+ 'f_phone': '用户电话',
347
+ 'f_address': '用户地址',
348
+ 'f_idnumber': '身份证号',
349
+ 'f_charge_number': '缴费编码',
350
+ 'f_charge_money': '收费金额',
351
+ 'f_payment_method': '付款方式',
352
+ 'f_payer_number': '流水号',
353
+ 'f_charge_collectors': '收费人员',
354
+ 'f_charge_date': '收费日期',
355
+ 'f_actual_date': '实际收费时间',
356
+ 'f_charge_status': '状态'
357
+ }
358
+ }
359
+ },
360
+ ready () {
361
+ // 调用查询
362
+ this.search()
363
+ this.getservicer()
364
+ this.getapplyoperator()
365
+ },
366
+ methods: {
367
+ async getservicer(){
368
+ let data = {
369
+ tablename: 't_user',
370
+ condition: `1=1`
371
+ }
372
+ let http = new HttpResetClass()
373
+ let res = await http.load(
374
+ 'POST',
375
+ `rs/sql/apply_singleTable`,
376
+ {data: data},
377
+ {resolveMsg: null, rejectMsg: '服务人查询失败!!!'}
378
+ )
379
+ res.data.forEach(item => {
380
+ this.servicerList.push({
381
+ 'label': item.name,
382
+ 'value': item.name
383
+ })
384
+ })},
385
+
386
+ async getapplyoperator(){
387
+ debugger
388
+ let data = {
389
+ condition: `1=1`
390
+ }
391
+ let http = new HttpResetClass()
392
+ let res = await http.load('POST', 'rs/sql/getapplyOperator', {data: data}, {resolveMsg: null, rejectMsg: null})
393
+ res.data.forEach(item => {
394
+ this.operatorList.push({
395
+ 'label': item.f_operator,
396
+ 'value': item.f_operator
397
+ })
398
+ })},
399
+
400
+ applyTypeChange () {
401
+ if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
402
+ 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}性质`)]
403
+ } else {
404
+ this.applyNatures = [{label: '全部', value: ''}]
405
+ }
406
+ },
407
+ clear () {
408
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
409
+ this.$refs.cp.$refs.cri.model[key] = ''
410
+ })
411
+ this.curdepid = []
412
+ this.curuserid = []
413
+ },
414
+ searchCondition (args) {
415
+ args.condition = args.condition + ` and cr.f_orgid in (${this.curorgid})`
416
+ if (this.curdepid.length > 0) {
417
+ args.condition = args.condition + ` and cr.f_depid in (${this.curdepid})`
418
+ }
419
+ if (this.curuserid.length > 0) {
420
+ args.condition = args.condition + ` and cr.f_charge_collectors_id in (${this.curuserid})`
421
+ }
422
+ if(isEmpty(this.model.f_charge_status)){
423
+ args.condition+=` and cr.f_charge_status in ('有效','退款')`
424
+ }
425
+
426
+ this.model.search(args.condition, args.model)
427
+ },
428
+ // 查询
429
+ search () {
430
+ this.$refs.cp.$refs.cri.search()
431
+ this.getChargeAll()
432
+ this.getapplyoperator()
433
+ },
434
+ async getChargeAll () {
435
+ let http = new HttpResetClass()
436
+ let data = {
437
+ condition: this.model.condition
438
+ }
439
+ let res = await http.load('POST', 'rs/sql/getChargeAll', {data: data}, {resolveMsg: null, rejectMsg: null})
440
+
441
+ this.chargeAll = res.data[0]
442
+ },
443
+ getuser (val) {
444
+ if (val.length <= 0) {
445
+ return
446
+ }
447
+ this.curuserid = val
448
+ this.search()
449
+ },
450
+ getdep (val) {
451
+ if (val.length <= 0) {
452
+ return
453
+ }
454
+ this.curdepid = val
455
+ this.curuserid = []
456
+ this.search()
457
+ },
458
+ getorg (val) {
459
+ if (val.length <= 0) {
460
+ return
461
+ }
462
+ this.curorgid = val
463
+ this.curdepid = []
464
+ this.curuserid = []
465
+ this.search()
466
+ },
467
+
468
+ },
469
+ computed: {
470
+ getCondition () {
471
+ return {
472
+ condition: this.model.condition
473
+ }
474
+ }
475
+ }
476
+ }
477
+ </script>
478
+
479
+ <style scoped>
480
+ </style>
@@ -10,6 +10,7 @@ let specialComp = {
10
10
  'apply-devices-management': (resolve) => { require(['./pc/devicesManagement'], resolve) },
11
11
  'apply-charge-report': (resolve) => { require(['./pc/chargeReport'], resolve) },
12
12
  'service-view': (resolve) => { require(['./pc/serviceview'], resolve) },
13
+ 'apply-charge-list': (resolve) => { require(['./pc/ApplyChargeList'], resolve) },
13
14
  'apply-print-chargepc': (resolve) => { require(['./pc/printChargepc'], resolve) }
14
15
  }
15
16
  exports.specialComp = specialComp