manage-client 3.2.156 → 3.2.158

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.
@@ -0,0 +1,449 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
8
+ <div class="row">
9
+ <div class="col-sm-2 form-group">
10
+ <label for="startDate" class="font_normal_body">开始日期</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd 00:00:00'"
15
+ :show-reset-button="true">
16
+ </datepicker>
17
+ </div>
18
+ <div class="col-sm-2 form-group">
19
+ <label for="endDate" class="font_normal_body">结束日期</label>
20
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
21
+ v-model="model.endDate"
22
+ :value.sync="model.endDate"
23
+ :format="'yyyy-MM-dd 23:59:59'"
24
+ :show-reset-button="true">
25
+ </datepicker>
26
+ </div>
27
+ <div class="col-sm-2 form-group">
28
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp; </label>
29
+ <right-tree @re-res="$parent.$parent.getRes"></right-tree>
30
+ </div>
31
+ <div class="col-sm-2 form-group">
32
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp; </label>
33
+ <res-select restype='department'
34
+ @res-select="$parent.$parent.getdep"
35
+ :parentresid="$parent.$parent.depresid"
36
+ :initresid='$parent.$parent.depid'>
37
+ </res-select>
38
+
39
+ </div>
40
+ <div class="col-sm-2 form-group">
41
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp; </label>
42
+ <res-select restype='user'
43
+ is-mul="false"
44
+ @res-select="$parent.$parent.getuser"
45
+ :parentresid="$parent.$parent.userresid"
46
+ :initresid='$parent.$parent.operatorid'>
47
+ </res-select>
48
+ </div>
49
+ <div class="span" style="float:right;">
50
+ <button class="button_search button_spacing" @click="search()">查询</button>
51
+
52
+ <export-excel :data="$parent.$parent.getCondition"
53
+ :field="$parent.$parent.getfield"
54
+ :footer="$parent.$parent.footer"
55
+ :header="$parent.$parent.other"
56
+ sqlurl="rs/logic/exportfile"
57
+ sql-name="shoufeistyle"
58
+ template-name='收费划价查询明细'
59
+ :choose-col="true"></export-excel>
60
+ <print-data-self :model="$parent.model" :field="$parent.$parent.getfield"
61
+ :defaultfield="$parent.$parent.defaultfield" printName="营业厅明细"
62
+ :sumsmodel="$parent.$parent.sumsmodel" :sum-field="$parent.$parent.sumField" :page-sum="$parent.$parent.pageSum"
63
+ :start-date="$parent.$parent.startDate" :end-date="$parent.$parent.endDate"
64
+ ></print-data-self>
65
+ </div>
66
+ </div>
67
+ </div>
68
+ </criteria>
69
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
70
+ <template partial='head'>
71
+ <tr>
72
+ <th>
73
+ <nobr>序号</nobr>
74
+ </th>
75
+ <th>
76
+ <nobr>收费编号</nobr>
77
+ </th>
78
+ <th>
79
+ <nobr>客户编号</nobr>
80
+ </th>
81
+ <th>
82
+ <nobr>客户名称</nobr>
83
+ </th>
84
+ <th>
85
+ <nobr>客户地址</nobr>
86
+ </th>
87
+ <th>
88
+ <nobr>客户类型</nobr>
89
+ </th>
90
+ <th>
91
+ <nobr>用气性质</nobr>
92
+ </th>
93
+ <th>
94
+ <nobr>价格类型</nobr>
95
+ </th>
96
+ <th>
97
+ <nobr>上期底数</nobr>
98
+ </th>
99
+ <th>
100
+ <nobr>本期底数</nobr>
101
+ </th>
102
+ <th>
103
+ <nobr>单价</nobr>
104
+ </th>
105
+ <th>
106
+ <nobr>气量</nobr>
107
+ </th>
108
+ <th>
109
+ <nobr>金额</nobr>
110
+ </th>
111
+ <th>
112
+ <nobr>收费类型</nobr>
113
+ </th>
114
+ <th>
115
+ <nobr>收款方式</nobr>
116
+ </th>
117
+ <th>
118
+ <nobr>收费日期</nobr>
119
+ </th>
120
+ <th>
121
+ <nobr>操作员</nobr>
122
+ </th>
123
+ <th>
124
+ <nobr>部门</nobr>
125
+ </th>
126
+ <th>
127
+ <nobr>公司</nobr>
128
+ </th>
129
+
130
+ </tr>
131
+ </template>
132
+ <template partial='body'>
133
+ <td style="text-align:center">
134
+ <nobr>{{$index+1}}</nobr>
135
+ </td>
136
+ <td style="text-align: center;">
137
+ <nobr>{{row.id}}</nobr>
138
+ </td>
139
+ <td style="text-align: center;">
140
+ <nobr>{{row.f_userinfo_code}}</nobr>
141
+ </td>
142
+ <td style="text-align: center;">
143
+ <nobr>{{row.f_user_name}}</nobr>
144
+ </td>
145
+ <td style="text-align: center;">
146
+ <nobr>{{row.f_address}}</nobr>
147
+ </td>
148
+ <td style="text-align: center;">
149
+ <nobr>{{row.f_user_type}}</nobr>
150
+ </td>
151
+ <td style="text-align: center;">
152
+ <nobr>{{row.f_gasproperties}}</nobr>
153
+ </td>
154
+ <td style="text-align: center;">
155
+ <nobr>{{row.f_price_name}}</nobr>
156
+ </td>
157
+ <td style="text-align: center;">
158
+ <nobr>{{row.f_last_tablebase}}</nobr>
159
+ </td>
160
+ <td style="text-align: center;">
161
+ <nobr>{{row.f_tablebase}}</nobr>
162
+ </td>
163
+ <td style="text-align: center;">
164
+ <nobr>{{row.f_price}}</nobr>
165
+ </td>
166
+ <td style="text-align: center;">
167
+ <nobr>{{row.f_gas}}</nobr>
168
+ </td>
169
+ <td style="text-align: center;">
170
+ <nobr>{{row.f_money}}</nobr>
171
+ </td>
172
+ <td style="text-align: center;">
173
+ <nobr>{{row.f_type}}</nobr>
174
+ </td>
175
+ <td style="text-align: center;">
176
+ <nobr>{{row.f_payment}}</nobr>
177
+ </td>
178
+ <td style="text-align: center;">
179
+ <nobr>{{row.f_operate_date}}</nobr>
180
+ </td>
181
+ <td style="text-align: center;">
182
+ <nobr>{{row.f_operator}}</nobr>
183
+ </td>
184
+ <td style="text-align: center;">
185
+ <nobr>{{row.f_depname}}</nobr>
186
+ </td>
187
+ <td style="text-align: center;">
188
+ <nobr>{{row.f_orgname}}</nobr>
189
+ </td>
190
+
191
+ </template>
192
+ <template partial='foot'></template>
193
+ </data-grid>
194
+ </criteria-paged>
195
+ <table class="table-hover">
196
+ <tr style="position: relative" class="table-bordered">
197
+ <td
198
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold" >
199
+ 报表统计时间
200
+ </td>
201
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold" v-if="startDate==endDate">
202
+ {{startDate}}
203
+ </td>
204
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold" v-else>
205
+ {{startDate+" 至 "+endDate}}
206
+ </td>
207
+ </tr>
208
+ <tr style="position: relative" class="table-bordered">
209
+ <td
210
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
211
+ 汇总信息
212
+ </td>
213
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
214
+ 气量汇总:&emsp;{{sumsmodel.f_gas.toFixed(2)}}
215
+ </td>
216
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
217
+ 金额汇总:&emsp;{{sumsmodel.f_money.toFixed(2)}}
218
+ </td>
219
+
220
+ </tr>
221
+ </table>
222
+ </div>
223
+ </div>
224
+ </div>
225
+ </template>
226
+ <script>
227
+ import {PagedList, HttpResetClass} from 'vue-client'
228
+ import defaultPrint from '../sale/config/DefaultPrint'
229
+ import exportConfig from '../sale/config/exportConfig'
230
+ import PrintDataSelf from '../sale/common/PrintDataSelf'
231
+
232
+ let readySomething = async function (self) {
233
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
234
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
235
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
236
+ }
237
+ export default {
238
+ title: '收费划价查询明细',
239
+ props: ['data'],
240
+ data() {
241
+ return {
242
+ depresid: [],
243
+ userresid: [],
244
+ f_orgid: this.$login.f.orgid,
245
+ f_depid: this.$login.f.depids,
246
+ f_operatorid: this.$login.f.id,
247
+ operatorid: [],
248
+ depid: [],
249
+ orgname: '',
250
+ depname: [],
251
+ operatorname: '',
252
+ orgCondtionStr: '1=1',
253
+ data: {},
254
+ other:[],
255
+ footer:[],
256
+ model: new PagedList('rs/sql/shoufeistyle', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate', f_orgid: 'this.model.f_orgid'},{
257
+ f_gas:0,
258
+ f_money:0
259
+ }),
260
+ gasproperties:[],
261
+ show:false,
262
+ rowdata:{},
263
+ residentialArea: [],
264
+ modelval: [],
265
+ startDate:"",
266
+ endDate:"",
267
+ inputtouPerson: [],
268
+ printshow: false,
269
+ all: false,
270
+ fields: {},
271
+ thead: '',
272
+ tfoot: '',
273
+
274
+ // 下拉框
275
+
276
+ //合计数据
277
+ sumsmodel: {},
278
+ sumField: {
279
+ 'f_gas': '气量汇总', 'f_money': '金额汇总'
280
+ },
281
+ pageSum: {
282
+ 'f_gas': '0.00',
283
+ 'f_money': '0.00'
284
+ },
285
+ defaultfield: [],
286
+ config: {
287
+ defaultPrint: ['f_userinfo_code', 'f_user_name']
288
+ },
289
+ batchmoneyShow:false
290
+ }
291
+ },
292
+ ready() {
293
+ readySomething(this).then(() => {
294
+ this.$emit('ready')
295
+ }).catch((error) => {
296
+ this.$emit('error', error)
297
+ })
298
+ },
299
+ methods: {
300
+ getotherfooter(){
301
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
302
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
303
+ this.other=[];
304
+ this.footer=[];
305
+ let exportdata = this.getCondition;
306
+ let otherInData=[];
307
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
308
+ let footerData=[],exportfield=this.getfield;
309
+ footerData.push("合计");
310
+ let self =this;
311
+ for(var field in self.sumsmodel){
312
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
313
+ }
314
+ this.footer.push(footerData);
315
+ this.other.push(otherInData);
316
+ },
317
+ search(){
318
+ this.$refs.paged.$refs.cri.search()
319
+ },
320
+ selfSearch(args) {
321
+ let orgcondition = ' f_orgid in (' + this.f_orgid + ')'
322
+ if (this.f_depid[0]) {
323
+ orgcondition += " and f_depid in("+this.f_depid.toString()+')'
324
+ }
325
+ if(this.f_operatorid[0]) {
326
+ orgcondition += ' and f_operatorid in (' + this.f_operatorid + ')'
327
+ }
328
+ this.startDate=this.$refs.paged.$refs.cri.model.startDate.substring(0,10)
329
+ this.endDate=this.$refs.paged.$refs.cri.model.endDate.substring(0,10)
330
+ this.orgCondtionStr=orgcondition
331
+ this.$refs.paged.$refs.cri.model.f_orgid = orgcondition
332
+ this.model.search(args.f_orgid, args.model)
333
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
334
+ },
335
+ getRes (obj) {
336
+ this.orgname = obj.res[0]
337
+ this.depresid = obj.resids
338
+ this.f_orgid = obj.resids
339
+ },
340
+ getdep (obj, val) {
341
+ this.depname = val
342
+ this.userresid = obj
343
+ this.f_depid = obj
344
+ },
345
+ getuser ( obj, val) {
346
+ this.operatorname = val[0]
347
+ this.f_operatorid = obj
348
+ },
349
+ stamp() {
350
+ this.all = false
351
+ //默认选择要打印的列
352
+ this.modelval = defaultPrint.config
353
+ this.fields = this.getfield
354
+ console.log('所有打印字段', this.fields)
355
+ this.printshow = true
356
+ this.put()
357
+ },
358
+ put() {
359
+ // 对Modelval进行排序
360
+ this.sortModelval()
361
+ this.thead = `<tr><th colspan=${this.modelval.length}>收费查询统计报表</th></tr><tr>`
362
+ for (let key of this.modelval) {
363
+ this.thead += '<th>' + this.fields[key] + '</th>'
364
+ }
365
+ this.thead += '</tr>'
366
+ },
367
+ print() {
368
+ this.$refs.print.PrintAsFile()
369
+ this.printshow = false
370
+ },
371
+ dealmsg(val) {
372
+ console.log('---------------dealmsg')
373
+ this.rowdata=val
374
+ this.show=true
375
+ val.model = this.model.model
376
+ this.$dispatch('deal-msg', val)
377
+ },
378
+ close() {
379
+ this.printshow = false
380
+ this.all = false
381
+ },
382
+ // 对选择的列进行排序
383
+ sortModelval() {
384
+ let sortModel = []
385
+ Object.keys(this.fields).forEach((key) => {
386
+ if (this.modelval.includes(key)) {
387
+ sortModel.push(key)
388
+ }
389
+ })
390
+ this.modelval = sortModel
391
+ console.log('选择的打印的字段', this.modelval)
392
+ },
393
+ userTypeChange () {
394
+ this.gasproperties=[]
395
+ if(this.$refs.paged.$refs.criteria.model !==null) {
396
+ this.$refs.paged.$refs.criteria.model.f_gasproperties=''
397
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
398
+ }
399
+ else{
400
+ this.gasproperties =[{label: '全部', value: ''}]
401
+ }
402
+ },
403
+ },
404
+ watch: {
405
+ 'all'(val) {
406
+ if (val) {
407
+ this.modelval = this.bodyData
408
+ } else {
409
+ this.modelval = defaultPrint.config
410
+ this.put()
411
+ }
412
+ },
413
+ 'modelval.length'() {
414
+ this.put()
415
+ },
416
+ sumsmodel:{
417
+ handler: function(val) {
418
+ this.getotherfooter();
419
+ },
420
+ deep: true
421
+ }
422
+ },
423
+ computed: {
424
+ getCondition() {
425
+ return {
426
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
427
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
428
+ f_orgid: this.orgCondtionStr
429
+
430
+ }
431
+
432
+ },
433
+ getfield() {
434
+ return exportConfig.shoufeistyle
435
+ },
436
+ whetherpaies () {
437
+ return [
438
+ {label: '全部', value: ''},
439
+ {label: '已缴费', value: '是'},
440
+ {label: '未缴费', value: '否'}
441
+ ]
442
+ },
443
+ usertypes() {
444
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
445
+ }
446
+
447
+ }
448
+ }
449
+ </script>
@@ -352,6 +352,20 @@ export default{
352
352
  'f_gas1': '阶一气量', 'f_gas2': '阶二气量', 'f_gas3': '阶三气量',
353
353
  'f_preamount': '收费金额', 'f_user_type': '用户类型', 'f_type': '收费类型', 'f_date': '日期', 'f_operator': '操作员'
354
354
  },
355
+ chaostyle: {
356
+ 'f_userinfo_code': '用户号', 'f_user_name': '用户名', 'f_address': '用户地址', 'f_last_tablebase': '起方',
357
+ 'f_tablebase': '止方', 'gas': '气量', 'f_price': '单价',
358
+ 'f_money': '金额', 'f_accounts_state': '下账状态', 'f_book_name': '抄表册', 'f_inputtor': '抄表员', 'f_operatorr': '录入员', 'f_audit_person': '审核人',
359
+ 'f_audit_date': '审核日期','f_meter_state': '抄表状态','f_hand_state': '表单状态','f_user_type': '客户类型','f_gasproperties': '用气性质',
360
+ 'f_price_id': '气价编号','f_price_name': '气价名称','f_meter_classify': '气表分类','f_accounting_date': '截止日期','beizhu': '备注',
361
+ 'f_meter_brand': '气表型号','f_calculation': '结算方式'
362
+ },
363
+ shoufeistyle: {
364
+ 'id': '收费编号', 'f_userinfo_code': '客户编号', 'f_user_name': '客户名称', 'f_address': '客户地址',
365
+ 'f_user_type': '客户类型', 'f_gasproperties': '用气性质', 'f_price_name': '价格类型',
366
+ 'f_last_tablebase': '上期底数', 'f_tablebase': '本期底数', 'f_price': '单价', 'f_gas': '气量', 'f_money': '金额', 'f_type': '收费类型',
367
+ 'f_payment': '收款方式','f_operate_date': '收费日期','f_operator': '操作员','f_depname': '部门','f_orgname': '公司'
368
+ },
355
369
  chargeSchedule: {
356
370
  'f_serial_id': '流水号', 'f_userinfo_code': '户号', 'f_user_name': '户主', 'f_address': '地址',
357
371
  'a': '气量', 'b': '金额', 'f_operator': '收费员',