apply-clients 3.4.84-6 → 3.4.84-7

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.4.84-6",
3
+ "version": "3.4.84-7",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -0,0 +1,475 @@
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_apply_num"
58
+ v-on:keyup.enter="$parent.$parent.search()"
59
+ condition="a.f_apply_num = '{}'">
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_contract_number"
64
+ v-on:keyup.enter="$parent.$parent.search()"
65
+ condition="a.f_contract_number = '{}'">
66
+ </div>
67
+ <div class="form-group col-sm-3">
68
+ <label class="font_normal_body">报建类型:</label>
69
+ <v-select
70
+ v-model="model.f_apply_type"
71
+ placeholder='请选择'
72
+ condition="a.f_apply_type = '{}'"
73
+ :value.sync="model.f_apply_type"
74
+ :options='$parent.$parent.applytype'
75
+ class="select select_list"
76
+ :value-single="true"
77
+ @change="$parent.$parent.applyTypeChange()"
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="a.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" v-model="model.f_user_name"
95
+ v-on:keyup.enter="$parent.$parent.search()" condition="a.f_user_name like '%{}%'" placeholder='用户名称'>
96
+ </div>
97
+ <div class="form-group col-sm-3">
98
+ <label class="font_normal_body">用户电话:</label>
99
+ <input type="text" style="width:60%" class="input_search" placeholder='用户电话' v-model="model.f_phone"
100
+ v-on:keyup.enter="$parent.$parent.search()"
101
+ condition="a.f_phone like '%{}%'">
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_address"
106
+ v-on:keyup.enter="$parent.$parent.search()"
107
+ condition="a.f_address 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_idnumber"
112
+ v-on:keyup.enter="$parent.$parent.search()"
113
+ condition="a.f_idnumber like '%{}%'">
114
+ </div>
115
+ <div class="form-group col-sm-3">
116
+ <label class="font_normal_body">缴费编码:</label>
117
+ <input type="text" class="input_search" style="width: 60%" placeholder='缴费编码' v-model="model.f_charge_number"
118
+ v-on:keyup.enter="$parent.$parent.search()"
119
+ condition="cr.f_charge_number like '%{}%'">
120
+ </div>
121
+ <div class="form-group col-sm-3">
122
+ <label class="font_normal_body">付款方式:</label>
123
+ <v-select
124
+ v-model="model.f_payment_method"
125
+ placeholder='请选择'
126
+ condition="cr.f_payment_method = '{}'"
127
+ :value.sync="model.f_payment_method"
128
+ :options='$parent.$parent.paymentMethod'
129
+ class="select select_list"
130
+ :value-single="true"
131
+ close-on-select ></v-select>
132
+ </div>
133
+ <div class="form-group col-sm-3">
134
+ <label class="font_normal_body">收费项目:</label>
135
+ <v-select
136
+ v-model="model.f_payment_term"
137
+ placeholder='请选择'
138
+ condition="cr.f_payment_term = '{}'"
139
+ :value.sync="model.f_payment_term"
140
+ :options='$parent.$parent.paymentTerm'
141
+ class="select select_list"
142
+ :value-single="true"
143
+ close-on-select ></v-select>
144
+ </div>
145
+ <div class="form-group col-sm-3">
146
+ <label class="font_normal_body">流&ensp;水&ensp;号:</label>
147
+ <input type="text" style="width: 60%" class="input_search" placeholder='流水号' v-model="model.f_payer_number"
148
+ v-on:keyup.enter="$parent.$parent.search()"
149
+ condition="cr.f_payer_number = '{}'">
150
+ </div>
151
+ <div class="form-group col-sm-3">
152
+ <label class="font_normal_body">部&emsp;&emsp;门:</label>
153
+ <res-select
154
+ restype='department'
155
+ :parentresid="$parent.$parent.curorgid"
156
+ :initresid='$parent.$parent.curdepid'
157
+ @res-select="$parent.$parent.getdep"
158
+ :is-mul="true"
159
+ ></res-select>
160
+ </div>
161
+ <div class="form-group col-sm-3">
162
+ <label class="font_normal_body">人&emsp;&emsp;员:</label>
163
+ <res-select
164
+ restype='user'
165
+ :parentresid="$parent.$parent.curdepid"
166
+ :initresid='$parent.$parent.curuserid'
167
+ @res-select="$parent.$parent.getuser"
168
+ :is-mul="true"></res-select>
169
+ </div>
170
+ <div class="form-group col-sm-3">
171
+ <label class="font_normal_body">缴费状态:</label>
172
+ <v-select
173
+ v-model="model.f_charge_status"
174
+ placeholder='请选择'
175
+ condition="cr.f_charge_status = '{}'"
176
+ :value.sync="model.f_charge_status"
177
+ :options='$parent.$parent.chargeStatus'
178
+ class="select select_list"
179
+ :value-single="true"
180
+ close-on-select ></v-select>
181
+ </div>
182
+ <div class="form-group col-sm-3">
183
+ <label class="font_normal_body">服务人:</label>
184
+ <v-select
185
+ v-model="model.f_servicer"
186
+ placeholder='请选择'
187
+ condition="a.f_servicer = '{}'"
188
+ :value.sync="model.f_servicer"
189
+ class="select select_list"
190
+ :options='$parent.$parent.servicerList'
191
+ :value-single="true"
192
+ close-on-select ></v-select>
193
+ </div>
194
+ <div class="form-group col-sm-3">
195
+ <label class="font_normal_body">报建发起人:</label>
196
+ <v-select
197
+ v-model="model.f_operator"
198
+ placeholder='请选择'
199
+ condition="a.f_operator = '{}'"
200
+ :value.sync="model.f_operator"
201
+ class="select select_list"
202
+ :options='$parent.$parent.operatorList'
203
+ :value-single="true"
204
+ close-on-select ></v-select>
205
+ </div>
206
+ <div class="form-group col-sm-3">
207
+ <label class="font_normal_body">发票号:</label>
208
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_invoice_num"
209
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_invoice_num like '%{}%'" placeholder='发票号'>
210
+ </div>
211
+ </div>
212
+ </div>
213
+ </criteria>
214
+ <data-grid :model="model" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
215
+ <template partial='head'>
216
+ <tr>
217
+ <th style="white-space: nowrap;">序号</th>
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
+ </tr>
238
+ </template>
239
+ <template partial='body'>
240
+ <tr >
241
+ <td style="text-align: center;">
242
+ <nobr><font>{{$index+1}}</font></nobr>
243
+ </td>
244
+ <td style="text-align: center;">
245
+ <nobr><font>{{row.f_apply_num}}</font></nobr>
246
+ </td>
247
+ <td style="text-align: center;">
248
+ <nobr><font>{{row.f_contract_number}}</font></nobr>
249
+ </td>
250
+ <td style="text-align: center;">
251
+ <nobr><font>{{row.f_apply_type}}</font></nobr>
252
+ </td>
253
+ <td style="text-align: center;">
254
+ <nobr><font>{{row.f_invoice_num}}</font></nobr>
255
+ </td>
256
+ <td style="text-align: center;">
257
+ <nobr><font>{{row.f_user_name}}</font></nobr>
258
+ </td>
259
+ <td style="text-align: center;">
260
+ <nobr><font>{{row.f_phone}}</font></nobr>
261
+ </td>
262
+ <td style="text-align: center;">
263
+ <nobr><font>{{row.f_address}}</font></nobr>
264
+ </td>
265
+ <td style="text-align: center;">
266
+ <nobr><font>{{row.f_idnumber}}</font></nobr>
267
+ </td>
268
+ <td style="text-align: center;">
269
+ <nobr><font>{{row.f_charge_number}}</font></nobr>
270
+ </td>
271
+ <td style="text-align: center;">
272
+ <nobr><font>{{row.f_payment_term}}</font></nobr>
273
+ </td>
274
+ <td style="text-align: center;">
275
+ <nobr><font>{{row.f_charge_money}}</font></nobr>
276
+ </td>
277
+ <td style="text-align: center;">
278
+ <nobr><font>{{row.f_payment_method}}</font></nobr>
279
+ </td>
280
+ <td style="text-align: center;">
281
+ <nobr><font>{{row.f_payer_number}}</font></nobr>
282
+ </td>
283
+ <td style="text-align: center;">
284
+ <nobr><font>{{row.f_servicer}}</font></nobr>
285
+ </td>
286
+ <td style="text-align: center;">
287
+ <nobr><font>{{row.f_operator}}</font></nobr>
288
+ </td>
289
+ <td style="text-align: center;">
290
+ <nobr><font>{{row.f_charge_collectors}}</font></nobr>
291
+ </td>
292
+ <td style="text-align: center;">
293
+ <nobr><font>{{row.f_charge_date}}</font></nobr>
294
+ </td>
295
+ <td style="text-align: center;">
296
+ <nobr><font>{{row.f_actual_date}}</font></nobr>
297
+ </td>
298
+ <td style="text-align: center;">
299
+ <nobr><font>{{row.f_charge_status}}</font></nobr>
300
+ </td>
301
+ </tr>
302
+ </template>
303
+ </data-grid>
304
+ </criteria-paged>
305
+ </template>
306
+
307
+ <script>
308
+ import {PagedList} from 'vue-client'
309
+ import {HttpResetClass} from 'vue-client'
310
+ import {isEmpty} from "../../../components/Util";
311
+ export default {
312
+ title: '报建收费列表',
313
+ data () {
314
+ return {
315
+ model: new PagedList('rs/sql/getApplyCharge', 30, null, {
316
+ f_charge_money: 0
317
+ }),
318
+ curorgid: [this.$login.f.orgid],
319
+ curdepid: [],
320
+ servicerList:[],
321
+ operatorList:[],
322
+ curuserid: [],
323
+ paymentTerm :[{label: '全部', value: ''}, ...this.$appdata.getParam('收费项目')],
324
+ applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
325
+ applyNatures: [{label: '全部', value: ''}], // 报建性质
326
+ paymentMethod: [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')],
327
+ chargeStatus: [
328
+ {label: '全部', value: ''},
329
+ {label: '有效', value: '有效'},
330
+ {label: '作废', value: '作废'},
331
+ {label: '退款', value: '退款'}
332
+ ],
333
+ criteriaShow: false,
334
+ chargeAll: {
335
+ count: 0,
336
+ sum: 0
337
+ },
338
+ getfield: {
339
+ 'f_apply_num': '工程编号',
340
+ 'f_contract_number': '合同编号',
341
+ 'f_apply_type': '报建类型',
342
+ 'f_apply_nature': '报建性质',
343
+ 'f_user_name': '用户名称',
344
+ 'f_phone': '用户电话',
345
+ 'f_address': '用户地址',
346
+ 'f_idnumber': '身份证号',
347
+ 'f_charge_number': '缴费编码',
348
+ 'f_charge_money': '收费金额',
349
+ 'f_payment_method': '付款方式',
350
+ 'f_payer_number': '流水号',
351
+ 'f_charge_collectors': '收费人员',
352
+ 'f_charge_date': '收费日期',
353
+ 'f_actual_date': '实际收费时间',
354
+ 'f_charge_status': '状态'
355
+ }
356
+ }
357
+ },
358
+ ready () {
359
+ // 调用查询
360
+ this.search()
361
+ this.getservicer()
362
+ this.getapplyoperator()
363
+ },
364
+ methods: {
365
+ async getservicer(){
366
+ debugger
367
+ let data = {
368
+ tablename: 't_user',
369
+ condition: `1=1`
370
+ }
371
+ let http = new HttpResetClass()
372
+ let res = await http.load(
373
+ 'POST',
374
+ `rs/sql/apply_singleTable`,
375
+ {data: data},
376
+ {resolveMsg: null, rejectMsg: '服务人查询失败!!!'}
377
+ )
378
+ res.data.forEach(item => {
379
+ this.servicerList.push({
380
+ 'label': item.name,
381
+ 'value': item.name
382
+ })
383
+ })},
384
+
385
+ async getapplyoperator(){
386
+ debugger
387
+ let data = {
388
+ condition: `1=1`
389
+ }
390
+ let http = new HttpResetClass()
391
+ let res = await http.load('POST', 'rs/sql/getapplyOperator', {data: data}, {resolveMsg: null, rejectMsg: null})
392
+ res.data.forEach(item => {
393
+ this.operatorList.push({
394
+ 'label': item.f_operator,
395
+ 'value': item.f_operator
396
+ })
397
+ })},
398
+
399
+ applyTypeChange () {
400
+ if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
401
+ 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}性质`)]
402
+ } else {
403
+ this.applyNatures = [{label: '全部', value: ''}]
404
+ }
405
+ },
406
+ clear () {
407
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
408
+ this.$refs.cp.$refs.cri.model[key] = ''
409
+ })
410
+ this.curdepid = []
411
+ this.curuserid = []
412
+ },
413
+ searchCondition (args) {
414
+ args.condition = args.condition + ` and cr.f_orgid in (${this.curorgid})`
415
+ if (this.curdepid.length > 0) {
416
+ args.condition = args.condition + ` and cr.f_depid in (${this.curdepid})`
417
+ }
418
+ if (this.curuserid.length > 0) {
419
+ args.condition = args.condition + ` and cr.f_charge_collectors_id in (${this.curuserid})`
420
+ }
421
+ this.model.search(args.condition, args.model)
422
+ },
423
+ // 查询
424
+ search () {
425
+ this.$refs.cp.$refs.cri.search()
426
+ this.getChargeAll()
427
+ this.getapplyoperator()
428
+ },
429
+ async getChargeAll () {
430
+ let http = new HttpResetClass()
431
+ let data = {
432
+ condition: this.model.condition
433
+ }
434
+ let res = await http.load('POST', 'rs/sql/getChargeAll', {data: data}, {resolveMsg: null, rejectMsg: null})
435
+
436
+ this.chargeAll = res.data[0]
437
+ },
438
+ getuser (val) {
439
+ if (val.length <= 0) {
440
+ return
441
+ }
442
+ this.curuserid = val
443
+ this.search()
444
+ },
445
+ getdep (val) {
446
+ if (val.length <= 0) {
447
+ return
448
+ }
449
+ this.curdepid = val
450
+ this.curuserid = []
451
+ this.search()
452
+ },
453
+ getorg (val) {
454
+ if (val.length <= 0) {
455
+ return
456
+ }
457
+ this.curorgid = val
458
+ this.curdepid = []
459
+ this.curuserid = []
460
+ this.search()
461
+ },
462
+
463
+ },
464
+ computed: {
465
+ getCondition () {
466
+ return {
467
+ condition: this.model.condition
468
+ }
469
+ }
470
+ }
471
+ }
472
+ </script>
473
+
474
+ <style scoped>
475
+ </style>