sale-client 3.5.95 → 3.5.97

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.5.95",
3
+ "version": "3.5.97",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -52,6 +52,15 @@
52
52
  </div>
53
53
  </div>
54
54
  <div class="row" v-show="$parent.$parent.criteriaShow">
55
+ <div class="col-sm-2" >
56
+ <label class="font_normal_body">组织机构</label>
57
+ <res-select :initresid='$parent.$parent.curorgid'
58
+ @res-select="$parent.$parent.getorg"
59
+ class="select select_list"
60
+ restype='organization'
61
+ style="width: 60%">
62
+ </res-select>
63
+ </div>
55
64
  <div class="col-sm-2 ">
56
65
  <label class="font_normal_body">表&emsp;号&emsp;</label>
57
66
  <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
@@ -259,6 +268,8 @@ export default {
259
268
  user: [],
260
269
  meterbrand: [],
261
270
  meterstyle: {},
271
+ curorgid: [this.$login.f.orgid],
272
+ f_orgid: '',
262
273
  model: new PagedList('rs/sql/iot_getOpertionList', 20),
263
274
  searchshow: false,
264
275
  showParame: false,
@@ -321,6 +332,9 @@ export default {
321
332
  // this.model.search('1=1')
322
333
  },
323
334
  methods: {
335
+ getorg (val) {
336
+ this.f_orgid = this.$login.convertToIn(val)
337
+ },
324
338
  // let condition = 'f_meter_type = "物联网表"'
325
339
  // this.$resetpost('/rs/sql/getAllBrands',{data:{condition:condition}},{}).then((res)=>{
326
340
  // let arr=[]
@@ -415,11 +429,15 @@ export default {
415
429
  this.search()
416
430
  },
417
431
  selfSearch (args) {
418
- args.condition = `${args.condition} `
432
+ if (this.f_orgid) {
433
+ args.condition = `f_orgid in ${this.f_orgid} and ${args.condition}`
434
+ }
419
435
  if (this.f_gasbrand_id.length > 0) {
420
436
  args.condition += ' and f_gasbrand_id=' + this.f_gasbrand_id[0]
421
437
  this.condition = args.condition
422
438
  this.model.search(args.condition, args.model)
439
+ } else {
440
+ this.$showAlert(`请先选择气表品牌`, 'warning', 0)
423
441
  }
424
442
  // this.isCheckAll = false
425
443
  },