manage-client 3.2.54 → 3.2.59

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,443 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex">
5
+ <div style="flex:1;" class="flex" v-if="!show">
6
+ <criteria-paged :model="model" v-ref:paged>
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <div class="col-sm-2 form-group" >
11
+ <label class="font_normal_body">客户编号</label>
12
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
13
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
14
+ </div>
15
+
16
+ <div class="col-sm-2 form-group">
17
+ <label class="font_normal_body" title="旧客户编号">档案编号</label>
18
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
19
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
20
+ </div>
21
+
22
+ <div class="col-sm-2 form-group" >
23
+ <label for="startDate" class="font_normal_body">开始日期</label>
24
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
25
+ v-model="model.startDate"
26
+ :value.sync="model.startDate"
27
+ :format="'yyyy-MM-dd'"
28
+ :show-reset-button="true"
29
+ condition="f_operate_date >= '{} 00:00:00'">
30
+ </datepicker>
31
+ </div>
32
+ <div class="col-sm-2 form-group" >
33
+ <label for="endDate" class="font_normal_body">结束日期</label>
34
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
35
+ v-model="model.endDate"
36
+ :value.sync="model.endDate"
37
+ :format="'yyyy-MM-dd'"
38
+ :show-reset-button="true"
39
+ condition="f_operate_date <= '{} 23:59:59'">
40
+ </datepicker>
41
+ </div>
42
+ <div class="span" style = "float:right;">
43
+ <button class="button_search button_spacing" @click="search()">查询</button>
44
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
45
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
46
+
47
+ <export-excel :data="$parent.$parent.getCondition"
48
+ :field="$parent.$parent.getExportField"
49
+ :header="$parent.$parent.other"
50
+ :footer="$parent.$parent.footer"
51
+ v-if="$parent.$parent.authArr.includes('档案查询导出')"
52
+ sqlurl="rs/logic/exportfile"
53
+ sql-name="userDeviceQuery"
54
+ template-name='用户设备查询导出' :choose-col="true"></export-excel>
55
+ <print-data :sum-field="$parent.$parent.getExportField" :model="$parent.model" :field="$parent.$parent.getExportField"
56
+ :defaultfield="$parent.$parent.defaultfield"
57
+ titletable="用户设备查询"
58
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
59
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
60
+ </div>
61
+ </div>
62
+ <div class="row" v-show="$parent.$parent.criteriaShow">
63
+ <div class="col-sm-2 form-group" >
64
+ <label class="font_normal_body">客户名称</label>
65
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
66
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
67
+ </div>
68
+ <div class="col-sm-2 form-group" >
69
+ <label class="font_normal_body">客户状态</label>
70
+ <v-select :value.sync="model.f_user_state"
71
+ v-model="model.f_user_state"
72
+ :options='$parent.$parent.userstates' placeholder='请选择'
73
+ condition="f_user_state = '{}'"
74
+ close-on-select></v-select>
75
+ </div>
76
+ <div class="col-sm-2 form-group" >
77
+ <label class="font_normal_body">客户地址</label>
78
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
79
+ condition="f_address like '%{}%'" placeholder='客户地址'>
80
+ </div>
81
+ <div
82
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
83
+ class="form-group">
84
+ <label class="font_normal_body">区&nbsp;&nbsp;&nbsp;&nbsp;域</label>
85
+ <v-select
86
+ v-model="model.f_pcd"
87
+ placeholder='选择区域'
88
+ :value.sync="model.f_pcd"
89
+ :options='$parent.$parent.pcdslist'
90
+ condition="f_pcd_id = '{}'"
91
+ style="width: 60%"
92
+ close-on-select >
93
+ </v-select>
94
+ </div>
95
+ <div class="col-sm-2 form-group" >
96
+ <label class="font_normal_body">设备编号</label>
97
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
98
+ condition="f_userinfodevices_no like '%{}%'" placeholder='设备编号'>
99
+ </div>
100
+
101
+ <div class="col-sm-2 form-group" >
102
+ <label class="font_normal_body">设备类型</label>
103
+ <v-select :value.sync="model.f_devices_type"
104
+ v-model="model.f_devices_type"
105
+ :options='$parent.$parent.deviceTypes' placeholder='请选择'
106
+ condition="f_userinfodevices_type = '{}'"
107
+ close-on-select></v-select>
108
+ </div>
109
+ <!-- <div class="col-sm-2 form-group" >-->
110
+ <!-- <label class="font_normal_body">设备品牌</label>-->
111
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_brand"-->
112
+ <!-- condition="f_brand like '%{}%'" placeholder='设备品牌'>-->
113
+ <!-- </div>-->
114
+ <!-- <div class="col-sm-2 form-group" >-->
115
+ <!-- <label class="font_normal_body">设备型号</label>-->
116
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_devices_model"-->
117
+ <!-- condition="f_devices_model like '%{}%'" placeholder='设备型号'>-->
118
+ <!-- </div>-->
119
+
120
+ <div class="col-sm-2 form-group" >
121
+ <label class="font_normal_body">缴费到期开始时间</label>
122
+ <datepicker placeholder="开始时间" style="width:40%"
123
+ v-model="model.expirestartDate"
124
+ :value.sync="model.expirestartDate"
125
+ :format="'yyyy-MM-dd'"
126
+ :show-reset-button="true"
127
+ condition="f_expire_date >= '{} 00:00:00'">
128
+ </datepicker>
129
+ </div>
130
+ <div class="col-sm-2 form-group" >
131
+ <label class="font_normal_body">缴费到期结束时间</label>
132
+ <datepicker placeholder="结束日期" style="width:40%;"
133
+ v-model="model.expireendDate"
134
+ :value.sync="model.expireendDate"
135
+ :format="'yyyy-MM-dd'"
136
+ :show-reset-button="true"
137
+ condition="f_expire_date <= '{} 23:59:59'">
138
+ </datepicker>
139
+ </div>
140
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
141
+ </div>
142
+ </div>
143
+ </criteria>
144
+
145
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
146
+ <template partial='head'>
147
+ <tr>
148
+ <th><nobr>客户编号</nobr></th>
149
+ <th><nobr>客户名称</nobr></th>
150
+ <th><nobr>档案编号</nobr></th>
151
+ <th><nobr>用户性质</nobr></th>
152
+ <th><nobr>设备类型</nobr></th>
153
+ <th><nobr>设备编号</nobr></th>
154
+ <th><nobr>设备型号</nobr></th>
155
+ <th><nobr>设备数量</nobr></th>
156
+ <th><nobr>设备别名</nobr></th>
157
+ <th><nobr>缴费到期时间</nobr></th>
158
+ <th><nobr>累计维护缴费金额</nobr></th>
159
+ </tr>
160
+ </template>
161
+ <template partial='body'>
162
+ <td style="text-align: center;"><nobr>
163
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
164
+ </nobr> </td>
165
+ <td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
166
+ <td style="text-align: center;"><nobr>{{row.f_olduserinfo_code}}</nobr></td>
167
+ <td style="text-align: center;"><nobr>{{row.f_user_nature}}</nobr></td>
168
+ <td style="text-align: center;"><nobr>{{row.f_userinfodevices_type}}</nobr></td>
169
+ <td style="text-align: center;"><nobr>{{row.f_userinfodevices_no}}</nobr></td>
170
+ <td style="text-align: center;"><nobr>{{row.f_userinfodevices_model}}</nobr></td>
171
+ <td style="text-align: center;"><nobr>{{row.f_userinfodevices_num}}</nobr></td>
172
+ <td style="text-align: center;"><nobr>{{row.f_userinfodevices_name}}</nobr></td>
173
+ <td style="text-align: center;"><nobr>{{row.f_expire_date}}</nobr></td>
174
+ <td style="text-align: center;"><nobr>{{row.f_mtc_fee}}</nobr></td>
175
+ </template>
176
+ <template partial='foot'>
177
+
178
+ </template>
179
+ </data-grid>
180
+ </criteria-paged>
181
+
182
+ <table class="table-hover">
183
+ <tr style="position: relative" class="table-bordered">
184
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
185
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
186
+ 累计维护缴费金额合计:&emsp;{{sumsmodel.f_mtc_fee}}
187
+ </td>
188
+ </tr>
189
+ </table>
190
+
191
+ <modal :show.sync="printshow" v-ref:modal backdrop="false">
192
+ <header slot="modal-header" class="modal-header text-center">
193
+ <h4 class="modal-title">打印列选择</h4>
194
+ <input type="checkbox" class="" id="f_generations" v-model="all">
195
+ <label for="f_generations" class="font-size">全选</label>
196
+ </header>
197
+ <article slot="modal-body">
198
+ <div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">
199
+ <div class="col-sm-3" v-for="f in fields">
200
+ <input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">
201
+ <label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>
202
+ </div>
203
+ </div>
204
+ </article>
205
+ <footer slot="modal-footer" class="modal-footer">
206
+ <center>
207
+ <button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>
208
+ <button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>
209
+ <print-table :model='model' v-show="false" v-ref:print
210
+ :top='40' :left='60' :right='40' :bottom='60'
211
+ :thead="thead" :tfoot='tfoot' :attach="yangsen"
212
+ :fields="modelval" :printpage="true">
213
+ </print-table>
214
+ </center>
215
+ </footer>
216
+ </modal>
217
+ </div>
218
+ <div class="flex" v-if="show">
219
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
220
+ </div>
221
+ </div></div></div>
222
+ </template>
223
+
224
+ <script>
225
+ import {HttpResetClass, PagedList} from 'vue-client'
226
+ import defaultPrint from './config/DefaultPrint'
227
+ import exportConfig from './config/exportConfig'
228
+
229
+ let readySomething = async function (self) {
230
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
231
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
232
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
233
+ // await self.$refs.paged.$refs.cri.search()
234
+ }
235
+ export default {
236
+ title: '用户设备查询',
237
+ data() {
238
+ return {
239
+ pcdslist:[],
240
+ other:[],
241
+ footer:[],
242
+ model: new PagedList('rs/sql/userDeviceQuery', 20,{},{
243
+ f_mtc_fee:0
244
+ }),
245
+ criteriaShow: false,
246
+ orgCondtionStr:'',
247
+ defaultfield: [],
248
+ config: {
249
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone']
250
+ },
251
+ modelval: [],
252
+ expireendDate:'',
253
+ expirestartDate:'',
254
+ printshow: false,
255
+ all: false,
256
+ fields: {},
257
+ thead: '',
258
+ tfoot: '',
259
+ show:false,
260
+ rowdata:{},
261
+ // 下拉框参数
262
+ userstates:this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
263
+ deviceTypes: this.$appdata.getParam('设备类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备类型')] : [],
264
+ // brand: this.$appdata.getParam('设备品牌') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备品牌')] : [],
265
+ initres: {
266
+ org:[this.$login.f.orgid],
267
+ dep:[],
268
+ user:[],
269
+ },
270
+ // 合计数据
271
+ sumsmodel: {}
272
+ }
273
+ },
274
+ ready(){
275
+ //加载区域
276
+ this.getpcd()
277
+ readySomething(this).then(() => {
278
+ this.$emit('ready')
279
+ }).catch((error) => {
280
+ this.$emit('error', error)
281
+ })
282
+ },
283
+ methods: {
284
+ getotherfooter () {
285
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
286
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
287
+ this.other = [];
288
+ this.footer = [];
289
+ // let exportdata = this.getCondition;
290
+ let otherInData = [];
291
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
292
+ let footerData = [], exportfield = this.getExportField;
293
+ footerData.push("合计");
294
+ let self = this;
295
+ for (var field in self.sumsmodel) {
296
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
297
+ }
298
+ this.footer.push(footerData);
299
+ this.other.push(otherInData);
300
+ },
301
+ search(){
302
+ this.$refs.paged.$refs.cri.search()
303
+ },
304
+ cancel() {
305
+ this.show = false
306
+ },
307
+ showmsg(obj){
308
+ this.rowdata=obj
309
+ this.show=true
310
+ },
311
+ selfSearch (args) {
312
+ if (!this.orgCondtionStr) {
313
+ args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
314
+ } else {
315
+ args.condition = `${args.condition}` + this.orgCondtionStr
316
+ }
317
+
318
+ this.model.search(args.condition, args.model)
319
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
320
+ console.log('合计字段',this.sumsmodel)
321
+ },
322
+ clear(){
323
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
324
+ this.$refs.paged.$refs.cri.model[key] = []
325
+ })
326
+ },
327
+ hidden(){
328
+ this.criteriaShow = !this.criteriaShow
329
+ },
330
+ getRes(obj) {
331
+ this.orgCondtionStr = obj
332
+ },
333
+ stamp () {
334
+ this.all = false
335
+ //默认选择要打印的列
336
+ this.modelval = defaultPrint.config
337
+ this.fields = this.getfield
338
+ console.log('所有打印字段',this.fields)
339
+ this.printshow = true
340
+ this.put()
341
+ },
342
+ put () {
343
+ // 对Modelval进行排序
344
+ this.sortModelval()
345
+ this.thead = `<tr><th colspan=${this.modelval.length}>设备查询统计报表</th></tr><tr>`
346
+ for (let key of this.modelval) {
347
+ this.thead += '<th>' + this.fields[key] + '</th>'
348
+ }
349
+ this.thead += '</tr>'
350
+ },
351
+ print () {
352
+ this.$refs.print.PrintAsFile()
353
+ this.printshow = false
354
+ },
355
+ close () {
356
+ this.printshow = false
357
+ this.all = false
358
+ },
359
+ // 对选择的列进行排序
360
+ sortModelval () {
361
+ let sortModel = []
362
+ Object.keys(this.fields).forEach((key) => {
363
+ if (this.modelval.includes(key)) {
364
+ sortModel.push(key)
365
+ }
366
+ })
367
+ this.modelval = sortModel
368
+ console.log('选择的打印的字段', this.modelval)
369
+ },
370
+ async getpcd(){
371
+ let HttpReset = new HttpResetClass()
372
+ console.log('开始获取区域')
373
+ var req = await HttpReset.load('POST','rs/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
374
+ data: {
375
+ items: '*',
376
+ tablename: 't_pcd',
377
+ orderitem: 'id',
378
+ condition: `1=1`
379
+ }
380
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
381
+ let redata = []
382
+ console.log('区域是:',req)
383
+ req.data.forEach((row, n) => {
384
+ redata[n] = {
385
+ label: row.f_pcd,
386
+ value: row.id,
387
+ data: row,
388
+ id: row.id
389
+ }
390
+ })
391
+ console.log('获取到的区域',redata)
392
+ this.pcdslist = redata
393
+ }
394
+ },
395
+ watch:{
396
+ 'all' (val) {
397
+ if (val) {
398
+ this.modelval = this.bodyData
399
+ } else {
400
+ this.modelval = defaultPrint.config
401
+ this.put()
402
+ }
403
+ },
404
+ sumsmodel:{
405
+ handler: function(val) {
406
+ this.getotherfooter();
407
+ },
408
+ deep: true
409
+ },
410
+ 'modelval.length' () {
411
+ this.put()
412
+ },
413
+ },
414
+ computed:{
415
+ authArr () {
416
+ return this.$login.r ? this.$login.r : []
417
+ },
418
+ getCondition(){
419
+ return {condition: `${this.$refs.paged.$refs.cri.condition}`+this.orgCondtionStr}
420
+ },
421
+ getfield(){
422
+ let data = {}
423
+ this.bodyData.forEach((value, index)=>{
424
+ data[this.bodyData[index]] = this.headData[index]
425
+ })
426
+ //合计字段打印
427
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
428
+ if(this.sumsmodel){
429
+ Object.keys(this.sumsmodel).forEach((key) => {
430
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
431
+ })
432
+ }else{
433
+ this.tfoot += '暂无'
434
+ }
435
+ this.tfoot += '</th></tr>'
436
+ return data
437
+ },
438
+ getExportField() {
439
+ return exportConfig.userDeviceConfig
440
+ }
441
+ }
442
+ }
443
+ </script>
@@ -7,8 +7,11 @@ let specialComp = {
7
7
  'fill-gas-query': (resolve) => { require(['./FillGasQuery'], resolve) },
8
8
  'charge-query': (resolve) => { require(['./ChargeQuery'], resolve) },
9
9
  'report-list':(resolve) => { require(['./reportList'], resolve) },
10
- 'handplan-query': (resolve) => {require(['./HandplanQuery'], resolve)}
11
- }
10
+ 'handplan-query': (resolve) => {require(['./HandplanQuery'], resolve)},
11
+ // 表具设备查询
12
+ 'price-change-query':(resolve) => {require(['./PriceChangeQuery'], resolve)},
13
+ // 用户设备查询
14
+ 'user-equipment-query':(resolve) => {require(['./UserDeviceQuery'], resolve)}}
12
15
  exports.specialComp = specialComp
13
16
 
14
17
 
@@ -0,0 +1,171 @@
1
+ <template>
2
+ <!-- <div v-if="listpage">-->
3
+ <tab-button v-ref:list :active="-1">
4
+ <tabs header="收费查询" v-if="permission('收费查询')">
5
+ <charge-query v-if="show.includes('收费查询')" @deal-msg="dealMsg" :data="data"></charge-query>
6
+ </tabs>
7
+ <tabs header="换表查询" v-if="permission('换表查询')">
8
+ <change-meter-query v-if="show.includes('换表查询')" @deal-msg="dealMsg" :data="data"></change-meter-query>
9
+ </tabs>
10
+ <tabs header="物联网抄表查询" v-if="permission('物联网抄表查询')">
11
+ <handplan-query v-if="show.includes('物联网抄表查询')" @deal-msg="dealMsg" :data="data"></handplan-query>
12
+ </tabs>
13
+ <tabs header="过户查询" v-if="permission('过户查询')">
14
+ <transfer-query v-if="show.includes('过户查询')" @deal-msg="dealMsg" :data="data"></transfer-query>
15
+ </tabs>
16
+ <tabs header="其他收费查询" v-if="permission('其他收费查询')">
17
+ <other-charge-query v-if="show.includes('其他收费查询')" @deal-msg="dealMsg" :data="data"></other-charge-query>
18
+ </tabs>
19
+ <tabs header="冲正查询" v-if="permission('冲正查询')">
20
+ <reverse-query v-if="show.includes('冲正查询')" @deal-msg="dealMsg" :data="data"></reverse-query>
21
+ </tabs>
22
+ <tabs header="补卡查询" v-if="permission('补卡查询')">
23
+ <fill-card-query v-if="show.includes('补卡查询')" @deal-msg="dealMsg" :data="data"></fill-card-query>
24
+ </tabs>
25
+ <tabs header="补气查询" v-if="permission('补气查询')">
26
+ <fill-gas-query v-if="show.includes('补气查询')" @deal-msg="dealMsg" :data="data"></fill-gas-query>
27
+ </tabs>
28
+ <tabs header="启用查询" v-if="permission('启用查询')">
29
+ <enable-query v-if="show.includes('启用查询')" @deal-msg="dealMsg" :data="data" :residentialarea="residentialArea"></enable-query>
30
+ </tabs>
31
+ <tabs header="停用查询" v-if="permission('停用查询')">
32
+ <disable-query v-if="show.includes('停用查询')" @deal-msg="dealMsg" :data="data" :residentialarea="residentialArea"></disable-query>
33
+ </tabs>
34
+ <tabs header="销户查询" v-if="permission('销户查询')">
35
+ <cancellation-query v-if="show.includes('销户查询')" @deal-msg="dealMsg" :data="data"></cancellation-query>
36
+ </tabs>
37
+ <tabs header="减免优惠查询" v-if="permission('减免优惠查询')">
38
+ <over-due-query v-if="show.includes('减免优惠查询')" @deal-msg="dealMsg" :data="data"></over-due-query>
39
+ </tabs>
40
+ <tabs header="调价补差查询" v-if="permission('调价补差查询')">
41
+ <priceadjust-query v-if="show.includes('调价补差查询')" @deal-msg="dealMsg" :data="data"></priceadjust-query>
42
+ </tabs>
43
+ <tabs header="迁表查询" v-if="permission('迁表查询')">
44
+ <movemeter-query v-if="show.includes('迁表查询')" @deal-msg="dealMsg" :data="data"></movemeter-query>
45
+ </tabs>
46
+ <tabs header="卡表抄表查询" v-if="permission('卡表抄表查询')">
47
+ <card-handplan-query v-if="show.includes('卡表抄表查询')" @deal-msg="dealMsg" :data="data"></card-handplan-query>
48
+ </tabs>
49
+ <tabs header="收据查询" v-if="permission('收据查询')">
50
+ <meter-receipt-query v-if="show.includes('收据查询')" @deal-msg="dealMsg" :data="data"></meter-receipt-query>
51
+ </tabs>
52
+ <!-- <tabs header="操作记录查询" v-if="permission('操作记录查询')">-->
53
+ <!-- <record-query v-if="show == '操作记录查询'" @deal-msg="dealMsg" :data="data"></record-query>-->
54
+ <!-- </tabs>-->
55
+ <tabs header="业务查询" v-if="permission('业务查询')">
56
+ <busines-query v-if="show.includes('业务查询')" @deal-msg="dealMsg" :data="data"></busines-query>
57
+ </tabs>
58
+ <tabs header="预存查询" v-if="permission('预存查询')">
59
+ <yucun-detailss v-if="show.includes('预存查询')" @deal-msg="dealMsg" :data="data"></yucun-detailss>
60
+ </tabs>
61
+ <tabs header="发折查询" v-if="permission('发折查询')">
62
+ <sendbook-query v-if="show.includes('发折查询')" @deal-msg="dealMsg" :data="data"></sendbook-query>
63
+ </tabs>
64
+ <tabs header="可疑用户查询" v-if="permission('可疑用户查询')">
65
+ <suspicious-user-query v-if="show.includes('可疑用户查询')" @deal-msg="dealMsg" :data="data"></suspicious-user-query>
66
+ </tabs>
67
+ <tabs header="气价变更查询" v-if="permission('气价变更查询')">
68
+ <price-change v-if="show.includes('气价变更查询')" @deal-msg="dealMsg" :data="data"></price-change>
69
+ </tabs>
70
+ <tabs header="扎帐查询" v-if="permission('扎帐查询')">
71
+ <prick-bill-query v-if="show.includes('扎帐查询')" @deal-msg="dealMsg" :data="data"></prick-bill-query>
72
+ </tabs>
73
+ <!-- <tabs header="资源操作记录查询" v-if="permission('资源操作记录查询')">-->
74
+ <!-- <resource-operating-query v-if="show == '资源操作记录查询'" @deal-msg="dealMsg" :data="data"></resource-operating-query>-->
75
+ <!-- </tabs>-->
76
+ <tabs header="调价记录查询" v-if="permission('调价记录查询')">
77
+ <pricechange-record v-if="show.includes('调价记录查询')" @deal-msg="dealMsg" :data="data"></pricechange-record>
78
+ </tabs>
79
+ <tabs header="维护记录查询" v-if="permission('维护记录查询')">
80
+ <infooperate-record v-if="show.includes('维护记录查询')" @deal-msg="dealMsg" :data="data"></infooperate-record>
81
+ </tabs>
82
+ <tabs header="气损收费查询" v-if="permission('气损收费查询')">
83
+ <gasloss-query v-if="show.includes('气损收费查询')" @deal-msg="dealMsg" :data="data"></gasloss-query>
84
+ </tabs>
85
+ <tabs header="气价信息查询" v-if="permission('气价信息查询')">
86
+ <gas-price-query v-if="show.includes('气价信息查询')" @deal-msg="dealMsg" :data="data"></gas-price-query>
87
+ </tabs>
88
+
89
+ </tab-button>
90
+ <!-- </div>-->
91
+ <!-- <div v-if="!listpage">-->
92
+ <!-- <meter-info-manage :row="rowData" :f_start_date="f_start_date" :f_end_date="f_end_date"></meter-info-manage>-->
93
+ <!-- </div>-->
94
+ </template>
95
+
96
+ <script>
97
+ import TabButton from './common/TabButton'
98
+ import Tabs from './common/Tabs'
99
+ import ChargeQuery from './ChargeQuery'
100
+ import { HttpResetClass } from 'vue-client'
101
+
102
+ export default {
103
+ name: "BusinessQuery",
104
+ title: '业务查询',
105
+ data() {
106
+ return {// 页面开关
107
+ residentialArea: [],
108
+ f_start_date: '',
109
+ f_end_date: '',
110
+ listpage: true,
111
+ width: {
112
+ left: '100%',
113
+ right: '0%'
114
+ },
115
+ // searchNumber:'',
116
+ rowData: {},
117
+ show: [],
118
+ data: {
119
+ startDate: this.$login.toStandardDateString() + ' 00:00:00',
120
+ endDate: this.$login.toStandardDateString() + ' 23:59:59',
121
+ f_userinfo_code:''
122
+ }
123
+
124
+ }
125
+ },
126
+ components: {Tabs, TabButton, ChargeQuery},
127
+ ready() {
128
+ this.getaddress()
129
+ console.log(this.$refs.list)
130
+ console.log('业务查询')
131
+ },
132
+ methods: {
133
+ async getaddress(){
134
+ let HttpReset = new HttpResetClass()
135
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
136
+ data: {
137
+ condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
138
+ }
139
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
140
+ console.log('小区',data)
141
+ let house = []
142
+ for (let row of data.data){
143
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
144
+ }
145
+ house.unshift({label: '全部', value: ''})
146
+ this.residentialArea = house
147
+ },
148
+ permission(name) {
149
+ if (this.$login.r.find(value => value == '综合查询')) {
150
+ if (!this.$login.r.find(value => value == name)) {
151
+ return false
152
+ }
153
+ }
154
+ return true
155
+ },
156
+ cancel(obj) {
157
+ this.listpage = true
158
+ },
159
+ dealMsg(obj) {
160
+ this.rowData = obj
161
+ this.listpage = false
162
+ this.f_start_date = obj.model.startDate
163
+ this.f_end_date = obj.model.endDate
164
+ }
165
+ }
166
+ }
167
+ </script>
168
+
169
+ <style scoped>
170
+
171
+ </style>