manage-client 4.0.49 → 4.0.51

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.
@@ -19,4 +19,12 @@ export default function () {
19
19
  // 小区楼栋汇总信息
20
20
  Vue.component('area-building-info-summary', (resolve) => { require(['./AreaBuildingInfoSummary'], resolve) })
21
21
  Vue.component('area-building-detail-info', (resolve) => { require(['./AreaBuildingDetailInfo'], resolve) })
22
+ // 机表抄表查询
23
+ Vue.component('handplan-query', (resolve) => {
24
+ require(['./HandplanQuery'], resolve)
25
+ })
26
+ // 物联网抄表查询
27
+ Vue.component('web-handplan-query', (resolve) => {
28
+ require(['./WebHandplanQuery'], resolve)
29
+ })
22
30
  }
@@ -234,6 +234,19 @@
234
234
  placeholder="">
235
235
  </div>
236
236
  </div>
237
+ <div class="col-sm-2 form-group">
238
+ <label for="endDate" class="font_normal_body">小&emsp;&emsp;区&emsp;</label>
239
+ <v-select :value.sync="model.f_residential_area_id"
240
+ enter-push
241
+ :disabled="$parent.$parent.isAreaShow"
242
+ v-model="model.f_residential_area_id"
243
+ multiple="true"
244
+ @select-search="$parent.$parent.getAreaList"
245
+ :options='$parent.$parent.areaList'
246
+ placeholder='请选择'
247
+ condition="f_residential_area_id in {}">
248
+ </v-select>
249
+ </div>
237
250
  </div>
238
251
 
239
252
  </div>
@@ -341,7 +354,7 @@
341
354
  /**
342
355
  *用户档案查询列表以及添加操作组件
343
356
  */
344
- import { PagedList } from 'vue-client'
357
+ import {HttpResetClass, PagedList} from 'vue-client'
345
358
  import Vue from 'vue'
346
359
  import plugin from 'system-clients/src/plugins/GetLoginInfoService'
347
360
 
@@ -392,6 +405,8 @@
392
405
  config: {
393
406
  defaultPrint: ['f_userinfo_code','f_user_id']
394
407
  },
408
+ //小区
409
+ areaList: [],
395
410
  show:false,
396
411
  rowdata:{},
397
412
  initres: {
@@ -427,6 +442,7 @@
427
442
  }
428
443
  },
429
444
  ready () {
445
+ this.getAreaList('')
430
446
  readySomething(this).then(() => {
431
447
  this.$emit('ready')
432
448
  }).catch((error) => {
@@ -434,6 +450,30 @@
434
450
  })
435
451
  },
436
452
  methods: {
453
+ async getAreaList(searchText){
454
+ let condition = ` 1 = 1 and f_orgid = '${this.$login.f.orgid}'`
455
+ if (searchText) {
456
+ condition = ` f_residential_area like '%${searchText}%' and f_orgid = '${this.$login.f.orgid}'`
457
+ }
458
+ let HttpReset = new HttpResetClass()
459
+ HttpReset.load('POST', 'api/af-revenue/sql/manageSingleTable?pageNo=1&pageSize=100', {
460
+ data: {
461
+ items: 'f_residential_area, id',
462
+ tablename: 't_area',
463
+ orderitem: 'id desc',
464
+ condition: condition
465
+ }
466
+ }, {resolveMsg: null, rejectMsg: '获取小区信息失败!'}).then((req) => {
467
+ let reData = []
468
+ req.data.forEach((row, n) => {
469
+ reData[n] = {
470
+ label: row.f_residential_area,
471
+ value: row.id
472
+ }
473
+ })
474
+ this.areaList = [{label: '全部', value: ''}, ...reData]
475
+ })
476
+ },
437
477
  // 初始化抄表册片区
438
478
  async initSlice (val) {
439
479
  if (val) {
@@ -208,6 +208,15 @@
208
208
  condition="f_stair = '{}'"
209
209
  close-on-select></v-select>
210
210
  </div>
211
+ <div class="col-sm-2 form-group">
212
+ <label class="font_normal_body">气价名称</label>
213
+ <v-select :value.sync="model.f_price_name"
214
+ v-model="model.f_price_name"
215
+ multiple
216
+ :options="$parent.$parent.pricenames"
217
+ condition="f_price_name in {}"
218
+ ></v-select>
219
+ </div>
211
220
  </div>
212
221
  </div>
213
222
  </criteria>
@@ -223,6 +232,9 @@
223
232
  <th style="text-align:center">
224
233
  <nobr>用气性质</nobr>
225
234
  </th>
235
+ <th style="text-align:center">
236
+ <nobr>气价名称</nobr>
237
+ </th>
226
238
  <th style="text-align:center">
227
239
  <nobr>用户电话</nobr>
228
240
  </th>
@@ -306,6 +318,7 @@
306
318
  <td>{{row.f_userinfo_code}}</td>
307
319
  <td style="text-align:center">{{row.f_user_type}}</td>
308
320
  <td style="text-align:center">{{row.f_gasproperties}}</td>
321
+ <td style="text-align:center">{{row.f_price_name}}</td>
309
322
  <td style="text-align:center">{{row.f_user_phone}}</td>
310
323
  <!--<td style="text-align:center">{{row.f_gasproperties2}}</td>-->
311
324
  <td style="text-align:center">
@@ -392,6 +405,7 @@ let readyGen = async function (self) {
392
405
  await self.$MagLoadParams.loadParam()
393
406
  self.initParams()
394
407
  self.getaddress()
408
+ self.getPricenames()
395
409
  }
396
410
 
397
411
  export default {
@@ -419,6 +433,7 @@ export default {
419
433
  {label: '周', value: 'week'}
420
434
  ],
421
435
  meterbrands: [],
436
+ pricenames: [],
422
437
  residentialArea: [],
423
438
  criteriaShow: false,
424
439
  reportStr: null,
@@ -443,6 +458,7 @@ export default {
443
458
  'f_userinfo_code':'客户编号',
444
459
  'f_user_type':'客户类型',
445
460
  'f_gasproperties': '用气性质',
461
+ 'f_price_name': '气价名称',
446
462
  'f_user_name': '客户名称',
447
463
  'f_user_phone':'客户电话',
448
464
  'f_residential_area': '小区',
@@ -488,6 +504,17 @@ export default {
488
504
  this.getfield = this.config.excelHeaders
489
505
  },
490
506
  methods: {
507
+ getPricenames() {
508
+ this.pricenames = []
509
+ let priceArr = []
510
+ this.$MagGetSaleParam.prices.forEach((item) => {
511
+ let temp = {}
512
+ temp.label = item.f_price_name
513
+ temp.value = item.f_price_name
514
+ priceArr.push(temp)
515
+ })
516
+ this.pricenames = [{label: '全部', value: ''}, ...priceArr]
517
+ },
491
518
  // 查询开关
492
519
  hidden() {
493
520
  this.criteriaShow = !this.criteriaShow