manage-client 4.1.145 → 4.1.147

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,7 @@
1
+ // 分公司特殊组件页面注册
2
+ import Vue from 'vue'
3
+
4
+ export default function () {
5
+ // 收费查询
6
+ Vue.component('charge-query', (resolve) => { require(['./sale/businessquery/ChargeQuery'], resolve) })
7
+ }
@@ -68,6 +68,20 @@
68
68
  <input type="number" style="width:30%" class="input_search" title="小于等于" v-model="model.f_balance_amount_big"
69
69
  condition="f_balance_amount <= '{}' " placeholder="小于等于">
70
70
  </div>
71
+ <div class="col-sm-2 form-group">
72
+ <label class="font_normal_body">用&nbsp;气&nbsp;量&nbsp;</label>
73
+ <input type="number" style="width:30%" class="input_search" title="大于等于" v-model="model.f_oughtamount_small"
74
+ condition="f_oughtamount >= '{}' " placeholder="大于等于">
75
+ <input type="number" style="width:30%" class="input_search" title="小于等于" v-model="model.f_oughtamount_big"
76
+ condition="f_oughtamount <= '{}' " placeholder="小于等于">
77
+ </div>
78
+ <div class="col-sm-2 form-group">
79
+ <label class="font_normal_body">失联天数</label>
80
+ <input type="number" style="width:30%" class="input_search" title="大于等于" v-model="model.f_day_small"
81
+ condition="f_day >= '{}' " placeholder="大于等于">
82
+ <input type="number" style="width:30%" class="input_search" title="小于等于" v-model="model.f_day_big"
83
+ condition="f_day <= '{}' " placeholder="小于等于">
84
+ </div>
71
85
  <div class="col-sm-2 form-group">
72
86
  <label class="font_normal_body">气表品牌</label>
73
87
  <v-select :value.sync="model.f_meter_brand" multiple="true"
@@ -118,11 +132,11 @@
118
132
  condition="f_batterylevel <= '{}' " placeholder="小于等于">
119
133
  </div>
120
134
  <div class="col-sm-2 form-group">
121
- <label class="font_normal_body">异常级别</label>
135
+ <label class="font_normal_body">报警级别</label>
122
136
  <v-select style="width:60%"
123
137
  v-model="model.f_error_level"
124
- placeholder='异常级别'
125
- @change="$parent.$parent.getErrorInfo('f_error_type')"
138
+ placeholder='报警级别'
139
+ @change="$parent.$parent.getErrorInfo()"
126
140
  :value.sync="model.f_error_level"
127
141
  :options='$parent.$parent.GetErrorLevel'
128
142
  condition="f_error_level = '{}'"
@@ -130,16 +144,27 @@
130
144
  </v-select>
131
145
  </div>
132
146
  <div class="col-sm-2 form-group">
133
- <label class="font_normal_body">异常类型</label>
147
+ <label class="font_normal_body">报警类型</label>
134
148
  <v-select style="width:60%" multiple="true"
135
149
  v-model="model.f_error_type"
136
- placeholder='异常类型'
150
+ placeholder='报警类型'
137
151
  :value.sync="model.f_error_type"
138
152
  :options='$parent.$parent.GetErrorType'
139
153
  condition="f_error_type in {}"
140
154
  >
141
155
  </v-select>
142
156
  </div>
157
+ <div class="col-sm-2 form-group">
158
+ <label class="font_normal_body">阀门状态</label>
159
+ <v-select style="width:60%"
160
+ v-model="model.valvestate"
161
+ placeholder='阀门状态'
162
+ :value.sync="model.valvestate"
163
+ :options='$parent.$parent.valueState'
164
+ condition="valvestate = '{}'"
165
+ close-on-select>
166
+ </v-select>
167
+ </div>
143
168
  <div class="col-sm-2 form-group">
144
169
  <label class="font_normal_body">处理状态</label>
145
170
  <v-select style="width:60%"
@@ -151,6 +176,17 @@
151
176
  close-on-select>
152
177
  </v-select>
153
178
  </div>
179
+ <div class="col-sm-2 form-group">
180
+ <label class="font_normal_body">是否失联</label>
181
+ <v-select style="width:60%"
182
+ v-model="model.f_sl_state"
183
+ placeholder='是否失联'
184
+ :value.sync="model.f_sl_state"
185
+ :options='$parent.$parent.isPush'
186
+ condition="f_sl_state = '{}'"
187
+ close-on-select>
188
+ </v-select>
189
+ </div>
154
190
  <div class="col-sm-2 form-group">
155
191
  <label class="font_normal_body">备注信息</label>
156
192
  <input style="width:60%" type="text" class="input_search"
@@ -181,12 +217,24 @@
181
217
  <th style="text-align:center">
182
218
  <nobr>客户地址</nobr>
183
219
  </th>
220
+ <th style="text-align:center">
221
+ <nobr>用户状态</nobr>
222
+ </th>
223
+ <th style="text-align:center">
224
+ <nobr>用气量</nobr>
225
+ </th>
184
226
  <th style="text-align:center">
185
227
  <nobr>账户余额</nobr>
186
228
  </th>
187
229
  <th style="text-align:center">
188
230
  <nobr>联系电话</nobr>
189
231
  </th>
232
+ <th style="text-align:center">
233
+ <nobr>表具状态</nobr>
234
+ </th>
235
+ <th style="text-align:center">
236
+ <nobr>表位置</nobr>
237
+ </th>
190
238
  <th style="text-align:center">
191
239
  <nobr>表号</nobr>
192
240
  </th>
@@ -199,6 +247,12 @@
199
247
  <th style="text-align:center">
200
248
  <nobr>最后一次通讯时间</nobr>
201
249
  </th>
250
+ <th style="text-align:center">
251
+ <nobr>是否失联</nobr>
252
+ </th>
253
+ <th style="text-align:center">
254
+ <nobr>失联天数</nobr>
255
+ </th>
202
256
  <th style="text-align:center">
203
257
  <nobr>电池电量</nobr>
204
258
  </th>
@@ -215,16 +269,19 @@
215
269
  <nobr>阀门状态</nobr>
216
270
  </th>
217
271
  <th style="text-align:center">
218
- <nobr>异常类型</nobr>
272
+ <nobr>报警类型</nobr>
273
+ </th>
274
+ <th style="text-align:center">
275
+ <nobr>报警级别</nobr>
219
276
  </th>
220
277
  <th style="text-align:center">
221
- <nobr>异常级别</nobr>
278
+ <nobr>报警详情</nobr>
222
279
  </th>
223
280
  <th style="text-align:center">
224
- <nobr>处理状态</nobr>
281
+ <nobr>处理状态</nobr>
225
282
  </th>
226
283
  <th style="text-align:center">
227
- <nobr>备注信息</nobr>
284
+ <nobr>备注信息</nobr>
228
285
  </th>
229
286
  <th style="text-align:center">
230
287
  <nobr>分公司</nobr>
@@ -245,8 +302,12 @@
245
302
  <td>
246
303
  <nobr>{{row.address}}</nobr>
247
304
  </td>
305
+ <td style="text-align:center">{{row.f_user_state}}</td>
306
+ <td style="text-align:center">{{row.f_oughtamount}}</td>
248
307
  <td style="text-align:center">{{row.f_balance_amount}}</td>
249
308
  <td style="text-align:center">{{row.f_user_phone}}</td>
309
+ <td style="text-align:center"><nobr>{{row.f_table_state}}</nobr></td>
310
+ <td style="text-align:center"><nobr>{{row.f_position}}</nobr></td>
250
311
  <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
251
312
  <td style="text-align:center">
252
313
  <nobr>{{row.f_meter_brand}}</nobr>
@@ -257,6 +318,12 @@
257
318
  <td style="text-align:center">
258
319
  <nobr>{{row.f_insert_date}}</nobr>
259
320
  </td>
321
+ <td style="text-align:center">
322
+ <nobr>{{row.f_sl_state}}</nobr>
323
+ </td>
324
+ <td style="text-align:center">
325
+ <nobr>{{row.f_day}}</nobr>
326
+ </td>
260
327
  <td style="text-align:center">
261
328
  <nobr>{{row.f_electricity}}</nobr>
262
329
  </td>
@@ -270,7 +337,7 @@
270
337
  <nobr>{{row.f_magneticInterference == 1 ? '异常' : '正常'}}</nobr>
271
338
  </td>
272
339
  <td style="text-align:center">
273
- <nobr>{{row.f_valvestate == 0 ? '开阀' : '关阀'}}</nobr>
340
+ <nobr>{{row.valvestate}}</nobr>
274
341
  </td>
275
342
  <td style="text-align:center">
276
343
  <nobr>{{row.f_error_type}}</nobr>
@@ -278,6 +345,9 @@
278
345
  <td style="text-align:center">
279
346
  <nobr>{{row.f_error_level}}</nobr>
280
347
  </td>
348
+ <td style="text-align:center">
349
+ <nobr>{{row.f_error_msg}}</nobr>
350
+ </td>
281
351
  <td style="text-align:center">
282
352
  <nobr>{{row.f_is_read}}</nobr>
283
353
  </td>
@@ -291,30 +361,6 @@
291
361
  </data-grid>
292
362
  </criteria-paged>
293
363
  </div>
294
- <!--<div style="height: 40px;width: 100%;" v-show="echarts">
295
- <div style="display: inline-block;width: 20%;">
296
- <button class="button_search button_spacing" v-show="echarts" @click="notShowEcharts()">隐藏图表</button>
297
- <button class="button_search button_spacing" v-show="isActiveTotalForm" @click="notShowTotalForm()">隐藏汇总</button>
298
- </div>
299
- &lt;!&ndash;图显示模板&ndash;&gt;
300
- <div class="mystyle" style="display: inline-block;" >
301
- <label class="font_normal_body">图表统计项</label>
302
- <v-select style="width:60%" id="groupname" v-model="groupname"
303
- placeholder='分组项'
304
- value-single="true"
305
- :value.sync="groupname"
306
- :options='getgroupname'
307
- close-on-select></v-select>
308
- </div>
309
- </div>
310
- <div v-show="echarts" style="width: 100%;height: 90%;">
311
- <new-exception-echarts :condition="condition" :startdate="startDate" :groupname="groupname[0]"
312
- :enddate="endDate" :echarts="echarts"></new-exception-echarts>
313
- </div>
314
- <div v-show="isActiveTotalForm" style="width: 100%;height: 90%;">
315
- <new-exception-eform-total :condition="condition" :startdate="startDate"
316
- :enddate="endDate"></new-exception-eform-total>
317
- </div>-->
318
364
  </div>
319
365
  <div class="flex" v-if="showdetail">
320
366
  <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
@@ -360,9 +406,33 @@
360
406
  {label: '日', value: 'day'}
361
407
  ],
362
408
  getfield:{
363
- "f_userinfo_code":"客户编号", "f_user_name":"客户名称","f_residential_area":"小区", "address":"客户地址","f_balance_amount":"账户余额","f_user_phone":"联系电话",
364
- "f_meternumber":"表号","f_meter_brand":"气表品牌","f_hand_date":"抄表日期","f_insert_date":"最后一次通讯时间","f_electricity":"电池电量","f_batterylevel":"电池电压",
365
- "f_signal":"信号强度","f_magneticInterference":"磁干扰异常","f_valvestate":"阀门状态","f_error_type":"异常类型","f_error_level":"异常级别","f_is_read":"处理状态","f_error_reason":"备注信息","f_orgname":"分公司"
409
+ "f_userinfo_code":"客户编号",
410
+ "f_user_name":"客户名称",
411
+ "f_residential_area":"小区",
412
+ "address":"客户地址",
413
+ "f_user_state":"用户状态",
414
+ "f_balance_amount":"账户余额",
415
+ "f_oughtamount":"用气量",
416
+ "f_user_phone":"联系电话",
417
+ "f_table_state":"表具状态",
418
+ "f_position":"表具位置",
419
+ "f_meternumber":"表号",
420
+ "f_meter_brand":"气表品牌",
421
+ "f_hand_date":"抄表日期",
422
+ "f_insert_date":"最后一次通讯时间",
423
+ "f_sl_state":"是否失联",
424
+ "f_day":"失联天数",
425
+ "f_electricity":"电池电量",
426
+ "f_batterylevel":"电池电压",
427
+ "f_signal":"信号强度",
428
+ "f_magneticInterference":"磁干扰异常",
429
+ "valvestate":"阀门状态",
430
+ "f_error_type":"报警类型",
431
+ "f_error_level":"报警级别",
432
+ "f_error_msg":"报警详情",
433
+ "f_is_read":"处理状态",
434
+ "f_error_reason":"备注信息",
435
+ "f_orgname":"分公司"
366
436
  },
367
437
  outlets: [],
368
438
  operator: [],
@@ -384,9 +454,6 @@
384
454
  readySomething(this)
385
455
  this.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
386
456
  this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
387
- // console.log("type:"+this.$refs.paged.$refs.cri.model.f_error_type)
388
- this.getErrorInfo('f_error_level')
389
- // console.log("type:"+this.$refs.paged.$refs.cri.model.f_error_type)
390
457
  },
391
458
  methods: {
392
459
  showmsg(obj){
@@ -423,50 +490,34 @@
423
490
  clickshow() {
424
491
  this.searchshow = !this.searchshow
425
492
  },
426
- getErrorInfo(items){
427
- let self = this
428
- let f_error_level=''
429
- if (items!='f_error_level') {
430
- if(this.$refs.paged.$refs.cri.model.f_error_level){
431
- f_error_level=this.$refs.paged.$refs.cri.model.f_error_level[0]
432
- }
493
+ getErrorInfo(){
494
+ let self = this
495
+ let load = new HttpResetClass()
496
+ load.load('POST', 'api/af-revenue/sql/singleTableParam', {
497
+ data: {
498
+ items:'name',
499
+ tablename:'t_paramvalue',
500
+ condition:'processid in (select id from t_parameter where name='+ `'${this.$refs.paged.$refs.cri.model.f_error_level[0]}'` + ')'
433
501
  }
434
- let load = new HttpResetClass()
435
- load.load('POST', 'api/af-revenue/sql/singleTableParam', {
436
- data: {
437
- items:items+' f_type',
438
- tablename:'t_exception',
439
- condition:items=='f_error_level'?'1=1 group by '+items:`f_error_level='${f_error_level}' group by `+items
440
- }
441
- },{warnMsg:null,resolveMsg:null}).then((res) => {
442
- let i = 0
443
- let rows=res.data
444
- let array1=[]
445
- array1.push({label: '全部', value: ''})
446
- console.log("rows========",rows)
447
- for (i = 0; i < rows.length; i++) {
448
- let dr = {label: '全部', value: ''}
449
- dr.label=rows[i].f_type
450
- dr.value=rows[i].f_type
451
- array1.push(dr)
452
- console.log("rows[i]========",rows[i],dr)
453
- }
454
- console.log("array1========",array1)
455
- if (items=='f_error_level'){
456
- self.GetErrorLevel=array1
457
- }else {
458
- self.GetErrorType=array1
459
- }
460
- })
502
+ },{warnMsg:null,resolveMsg:null}).then((res) => {
503
+ let i = 0
504
+ let rows=res.data
505
+ let array1=[]
506
+ array1.push({label: '全部', value: ''})
507
+ for (i = 0; i < rows.length; i++) {
508
+ let dr = {label: '全部', value: ''}
509
+ dr.label=rows[i].name
510
+ dr.value=rows[i].name
511
+ array1.push(dr)
512
+ }
513
+ self.GetErrorType=array1
514
+ })
461
515
 
462
516
  },
463
517
  search(args) {
464
518
  this.startDate = this.$refs.paged.$refs.cri.model.startDate
465
519
  this.endDate = this.$refs.paged.$refs.cri.model.endDate
466
520
  this.f_error_type=this.$refs.paged.$refs.cri.model.f_error_type
467
- /* if (this.endDate == '' || this.startDate == '') {
468
- return this.$showMessage("时间区间的开始和结束时间不能为空!")
469
- }*/
470
521
  if (this.orgCondtionStr){
471
522
  args.condition = `${args.condition}` + this.orgCondtionStr
472
523
  }
@@ -559,6 +610,9 @@
559
610
  endDate: this.$refs.paged.$refs.cri.model.endDate
560
611
  }
561
612
  },
613
+ valueState() {
614
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('阀门状态')]
615
+ },
562
616
  usertypes() {
563
617
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
564
618
  },
@@ -568,6 +622,12 @@
568
622
  isread() {
569
623
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('处理状态')]
570
624
  },
625
+ isPush() {
626
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('是否失联')]
627
+ },
628
+ GetErrorLevel() {
629
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('异常级别')]
630
+ },
571
631
  abnormalstatus(){
572
632
  return this.$getParams('异常状态', [{label: '全部', value: ''}])
573
633
  }