manage-client 3.2.128 → 3.2.131

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,420 @@
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="userGasFillCard"
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
+
115
+ </th>
116
+ </tr>
117
+ </template>
118
+ <template partial='body'>
119
+ <td style="text-align:center">
120
+ <nobr>{{$index+1}}</nobr>
121
+ </td>
122
+ <td style="text-align: center;">
123
+ <nobr>{{row.f_userinfo_code}}</nobr>
124
+ </td>
125
+ <td style="text-align: center;">
126
+ <nobr>{{row.f_user_name}}</nobr>
127
+ </td>
128
+ <td style="text-align: center;">
129
+ <nobr>{{row.f_balance}}</nobr>
130
+ </td>
131
+ <td style="text-align: center;">
132
+ <nobr>{{row.f_collection}}</nobr>
133
+ </td>
134
+ <td style="text-align: center;">
135
+ <nobr>{{row.f_pregas}}</nobr>
136
+ </td>
137
+ <td style="text-align: center;">
138
+ <nobr>{{row.f_preamount}}</nobr>
139
+ </td>
140
+ <td style="text-align: center;">
141
+ <nobr>{{row.f_delaypay}}</nobr>
142
+ </td>
143
+ <td style="text-align: center;">
144
+ <nobr>{{row.f_curbalance}}</nobr>
145
+ </td>
146
+ <td style="text-align: center;">
147
+ <nobr>{{row.f_charmoney}}</nobr>
148
+ </td>
149
+ <td style="text-align: center;">
150
+ <nobr>{{row.f_user_type}}</nobr>
151
+ </td>
152
+ <td style="text-align: center;">
153
+ <nobr>{{row.f_type}}</nobr>
154
+ </td>
155
+ <td style="text-align: center;">
156
+ <nobr>{{row.f_delivery_date}}</nobr>
157
+ </td>
158
+ <td style="text-align: center;">
159
+ <nobr>{{row.f_operator}}</nobr>
160
+ </td>
161
+
162
+ </td>
163
+ </template>
164
+ <template partial='foot'></template>
165
+ </data-grid>
166
+ </criteria-paged>
167
+ <table class="table-hover">
168
+ <tr style="position: relative" class="table-bordered">
169
+ <td
170
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold" >
171
+ 报表统计时间
172
+ </td>
173
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold" v-if="startDate==endDate">
174
+ {{startDate}}
175
+ </td>
176
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold" v-else>
177
+ {{startDate+" 至 "+endDate}}
178
+ </td>
179
+ </tr>
180
+ <tr style="position: relative" class="table-bordered">
181
+ <td
182
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
183
+ 汇总信息
184
+ </td>
185
+
186
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
187
+ 差值金额:{{sumsmodel.f_charmoney.toFixed(2)}}
188
+ </td>
189
+ </tr>
190
+ </table>
191
+ </div>
192
+ </div>
193
+ </div>
194
+ </template>
195
+ <script>
196
+ import {PagedList, HttpResetClass} from 'vue-client'
197
+ import defaultPrint from '../sale/config/DefaultPrint'
198
+ import exportConfig from '../sale/config/exportConfig'
199
+ import PrintDataSelf from '../sale/common/PrintDataSelf'
200
+
201
+ let readySomething = async function (self) {
202
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
203
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
204
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
205
+ }
206
+ export default {
207
+ title: '收费记录不匹配查询',
208
+ props: ['data'],
209
+ data() {
210
+ return {
211
+ depresid: [],
212
+ userresid: [],
213
+ f_orgid: this.$login.f.orgid,
214
+ f_depid: this.$login.f.depids,
215
+ f_operatorid: this.$login.f.id,
216
+ operatorid: [],
217
+ depid: [],
218
+ orgname: '',
219
+ depname: [],
220
+ operatorname: '',
221
+ orgCondtionStr: '1=1',
222
+ data: {},
223
+ other:[],
224
+ footer:[],
225
+ model: new PagedList('rs/sql/userGasFillmoney', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate', f_orgid: 'this.model.f_orgid'},{
226
+
227
+ f_charmoney:0,
228
+
229
+ }),
230
+ gasproperties:[],
231
+ show:false,
232
+ rowdata:{},
233
+ residentialArea: [],
234
+ modelval: [],
235
+ startDate:"",
236
+ endDate:"",
237
+ inputtouPerson: [],
238
+ printshow: false,
239
+ all: false,
240
+ fields: {},
241
+ thead: '',
242
+ tfoot: '',
243
+
244
+ // 下拉框
245
+
246
+ //合计数据
247
+ sumsmodel: {},
248
+ sumField: {
249
+ 'f_charmoney': '差值金额'
250
+ },
251
+ pageSum: {
252
+
253
+
254
+ 'f_charmoney': '0.00'
255
+ },
256
+ defaultfield: [],
257
+ config: {
258
+ defaultPrint: ['f_userinfo_code', 'f_user_name']
259
+ },
260
+ batchmoneyShow:false
261
+ }
262
+ },
263
+ ready() {
264
+ readySomething(this).then(() => {
265
+ this.$emit('ready')
266
+ }).catch((error) => {
267
+ this.$emit('error', error)
268
+ })
269
+ },
270
+ methods: {
271
+ getotherfooter(){
272
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
273
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
274
+ this.other=[];
275
+ this.footer=[];
276
+ let exportdata = this.getCondition;
277
+ let otherInData=[];
278
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
279
+ let footerData=[],exportfield=this.getfield;
280
+ footerData.push("合计");
281
+ let self =this;
282
+ for(var field in self.sumsmodel){
283
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
284
+ }
285
+ this.footer.push(footerData);
286
+ this.other.push(otherInData);
287
+ },
288
+ search(){
289
+ this.$refs.paged.$refs.cri.search()
290
+ },
291
+ selfSearch(args) {
292
+ let orgcondition = ' s.f_orgid in (' + this.f_orgid + ')'
293
+ if (this.f_depid[0]) {
294
+ orgcondition += " and s.f_depid in("+this.f_depid.toString()+')'
295
+ }
296
+ if(this.f_operatorid[0]) {
297
+ orgcondition += ' and s.f_operatorid in (' + this.f_operatorid + ')'
298
+ }
299
+ this.startDate=this.$refs.paged.$refs.cri.model.startDate.substring(0,10)
300
+ this.endDate=this.$refs.paged.$refs.cri.model.endDate.substring(0,10)
301
+ this.orgCondtionStr=orgcondition
302
+ this.$refs.paged.$refs.cri.model.f_orgid = orgcondition
303
+ this.model.search(args.f_orgid, args.model)
304
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
305
+ },
306
+ getRes (obj) {
307
+ this.orgname = obj.res[0]
308
+ this.depresid = obj.resids
309
+ this.f_orgid = obj.resids
310
+ },
311
+ getdep (obj, val) {
312
+ this.depname = val
313
+ this.userresid = obj
314
+ this.f_depid = obj
315
+ },
316
+ getuser ( obj, val) {
317
+ this.operatorname = val[0]
318
+ this.f_operatorid = obj
319
+ },
320
+ stamp() {
321
+ this.all = false
322
+ //默认选择要打印的列
323
+ this.modelval = defaultPrint.config
324
+ this.fields = this.getfield
325
+ console.log('所有打印字段', this.fields)
326
+ this.printshow = true
327
+ this.put()
328
+ },
329
+ put() {
330
+ // 对Modelval进行排序
331
+ this.sortModelval()
332
+ this.thead = `<tr><th colspan=${this.modelval.length}>收费记录不匹配查询</th></tr><tr>`
333
+ for (let key of this.modelval) {
334
+ this.thead += '<th>' + this.fields[key] + '</th>'
335
+ }
336
+ this.thead += '</tr>'
337
+ },
338
+ print() {
339
+ this.$refs.print.PrintAsFile()
340
+ this.printshow = false
341
+ },
342
+ dealmsg(val) {
343
+ console.log('---------------dealmsg')
344
+ this.rowdata=val
345
+ this.show=true
346
+ val.model = this.model.model
347
+ this.$dispatch('deal-msg', val)
348
+ },
349
+ close() {
350
+ this.printshow = false
351
+ this.all = false
352
+ },
353
+ // 对选择的列进行排序
354
+ sortModelval() {
355
+ let sortModel = []
356
+ Object.keys(this.fields).forEach((key) => {
357
+ if (this.modelval.includes(key)) {
358
+ sortModel.push(key)
359
+ }
360
+ })
361
+ this.modelval = sortModel
362
+ console.log('选择的打印的字段', this.modelval)
363
+ },
364
+ userTypeChange () {
365
+ this.gasproperties=[]
366
+ if(this.$refs.paged.$refs.criteria.model !==null) {
367
+ this.$refs.paged.$refs.criteria.model.f_gasproperties=''
368
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
369
+ }
370
+ else{
371
+ this.gasproperties =[{label: '全部', value: ''}]
372
+ }
373
+ },
374
+ },
375
+ watch: {
376
+ 'all'(val) {
377
+ if (val) {
378
+ this.modelval = this.bodyData
379
+ } else {
380
+ this.modelval = defaultPrint.config
381
+ this.put()
382
+ }
383
+ },
384
+ 'modelval.length'() {
385
+ this.put()
386
+ },
387
+ sumsmodel:{
388
+ handler: function(val) {
389
+ this.getotherfooter();
390
+ },
391
+ deep: true
392
+ }
393
+ },
394
+ computed: {
395
+ getCondition() {
396
+ return {
397
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
398
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
399
+ f_orgid: this.orgCondtionStr
400
+
401
+ }
402
+
403
+ },
404
+ getfield() {
405
+ return exportConfig.UserGasFillCardConfig
406
+ },
407
+ whetherpaies () {
408
+ return [
409
+ {label: '全部', value: ''},
410
+ {label: '已缴费', value: '是'},
411
+ {label: '未缴费', value: '否'}
412
+ ]
413
+ },
414
+ usertypes() {
415
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
416
+ }
417
+
418
+ }
419
+ }
420
+ </script>