apply-clients 3.4.88-7 → 3.4.88-9

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