manage-client 3.2.164 → 3.2.166

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.
@@ -23,59 +23,62 @@ var system = 'http://192.168.50.4:8400'
23
23
  // var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
24
24
  var proxyTable = {
25
25
  '/rs/logic/exportfile': {
26
- target: fuwu
26
+ target: bendi
27
27
  },
28
28
  '/rs/sql/otherChargeQuery': {
29
29
  target: 'http://localhost:8080/'
30
30
  },
31
+ '/rs/sql/BusinessType': {
32
+ target: 'http://localhost:8080/'
33
+ },
31
34
  '/files': {
32
- target: fuwu
35
+ target: bendi
33
36
  },
34
37
  // 查找资源服务数据
35
38
  '/rs/search': {
36
- target: fuwu
39
+ target: bendi
37
40
  },
38
41
  // 查找资源服务数据
39
42
  '/rs/logic/getLogin': {
40
- target: fuwu
43
+ target: bendi
41
44
  },
42
45
  // 查找资源服务数据
43
46
  '/rs/logic/getInitData': {
44
- target: fuwu
47
+ target: bendi
45
48
  },
46
49
  '/rs/logic/getSaleInitData': {
47
- target: fuwu
50
+ target: bendi
48
51
  },
49
52
  // 用户登录服务地址
50
53
  '/rs/user': {
51
- target: fuwu
54
+ target: bendi
52
55
  },
53
56
  '/rs/path/getParams': {
54
- target: fuwu
57
+ target: bendi
55
58
  },
56
59
  '/rs/data': {
57
- target: fuwu
60
+ target: bendi
58
61
  },
59
62
  '/rs/license': {
60
- target: fuwu
63
+ target: bendi
61
64
  },
62
65
  '/rs/db': {
63
- target: fuwu
66
+ target: bendi
64
67
  },
65
68
  '/excel': {
66
- target: fuwu
69
+ target: bendi
67
70
  },
68
71
  '/rs/config': {
69
- target: fuwu
72
+ target: bendi
70
73
  },
71
74
  '/rs/sql/getLicenseById': {
72
- target: fuwu
75
+ target: bendi
73
76
  },
74
77
  '/rs/report': {
75
78
  target: bendi
76
79
  },
77
80
  '/rs/vue': {
78
- target: fuwu
81
+ target: bendi
79
82
  },
80
83
  '/rs/file': {
81
84
  target: bendi
@@ -84,7 +87,7 @@ var proxyTable = {
84
87
  target: 'http://127.0.0.1:8080'
85
88
  },
86
89
  '/rs': {
87
- target: fuwu
90
+ target: bendi
88
91
  }
89
92
  }
90
93
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.2.164",
3
+ "version": "3.2.166",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -158,8 +158,6 @@ export default {
158
158
  components: {Tabs, TabButton, ChargeQuery},
159
159
  ready() {
160
160
  this.getaddress()
161
- console.log(this.$refs.list)
162
- console.log('业务查询')
163
161
  },
164
162
  methods: {
165
163
  async getaddress(){
@@ -417,12 +417,9 @@
417
417
  import {PagedList} from 'vue-client'
418
418
  import defaultPrint from '../config/DefaultPrint'
419
419
  import exportConfig from '../config/exportConfig'
420
-
421
420
  let readySomething = async function (self) {
422
-
423
421
  self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
424
422
  self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
425
-
426
423
  self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
427
424
  // self.$refs.paged.$refs.cri.search()
428
425
  await self.$MagLoadParams.loadParam()
@@ -430,7 +427,6 @@
430
427
  self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
431
428
  }
432
429
  export default {
433
-
434
430
  props:['data'],
435
431
  title: '换表查询',
436
432
  data() {
@@ -468,7 +464,6 @@
468
464
  tfoot: '',
469
465
  defaultfield: [],
470
466
  // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
471
-
472
467
  //合计数据
473
468
  sumsmodel: {},
474
469
  changemeter_fee:[
@@ -480,13 +475,8 @@
480
475
 
481
476
  },
482
477
  ready() {
483
-
484
- console.log(this.$parent.startDate)
485
- console.log(this.$parent.$parent.startDate)
486
- console.log(this.$parent.$parent.$parent.startDate)
487
478
  this.startDate=this.$parent.startDate
488
479
  this.endDate=this.$parent.endDate
489
- console.log("this",this)
490
480
  readySomething(this)
491
481
  },
492
482
  methods: {
@@ -506,8 +496,6 @@
506
496
  this.show=true
507
497
  },
508
498
  getotherfooter () {
509
- // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
510
- // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
511
499
  this.other = [];
512
500
  this.footer = [];
513
501
  let exportdata = this.getCondition;
@@ -532,7 +520,6 @@
532
520
  brandArr.push(temp)
533
521
  })
534
522
  this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
535
-
536
523
  },
537
524
  async selfSearch(args) {
538
525
  if (this.data) {
@@ -564,7 +551,6 @@
564
551
  this.criteriaShow = !this.criteriaShow
565
552
  },
566
553
  getRes(obj) {
567
- console.log(obj,"========")
568
554
  this.orgCondtionStr = obj
569
555
  },
570
556
  stamp() {
@@ -572,12 +558,10 @@
572
558
  //默认选择要打印的列
573
559
  this.modelval = defaultPrint.config
574
560
  this.fields = this.getfield
575
- console.log('所有打印字段', this.fields)
576
561
  this.printshow = true
577
562
  this.put()
578
563
  },
579
564
  dealmsg(val) {
580
- console.log('---------------dealmsg')
581
565
  val.model = this.model.model
582
566
  this.$dispatch('deal-msg', val)
583
567
  },
@@ -6,6 +6,7 @@
6
6
  <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
7
7
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
8
  <div class="row">
9
+ <res-select-group :show-component="['company','department']" :selectin="true" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
9
10
  <div class="col-sm-2 form-group">
10
11
  <label for="startDate" class="font_normal_body">开始日期</label>
11
12
  <datepicker id="startDate" placeholder="开始日期" style="width:60%"
@@ -26,19 +27,6 @@
26
27
  condition="f_operate_date <= '{}'">
27
28
  </datepicker>
28
29
  </div>
29
- <div class="col-sm-2 form-group">
30
- <label class="font_normal_body">客户名称</label>
31
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
32
- condition="f_user_name like '%{}%'" placeholder="客户名称">
33
- </div>
34
- <div class="col-sm-2 form-group">
35
- <label class="font_normal_body">客户类型</label>
36
- <v-select :value.sync="model.f_user_type"
37
- :search="false"
38
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
39
- condition="f_user_type = '{}'"
40
- close-on-select></v-select>
41
- </div>
42
30
  <div class="span" style="float:right;">
43
31
  <button class="button_search button_spacing" @click="search()">查询</button>
44
32
  <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
@@ -59,6 +47,19 @@
59
47
  </div>
60
48
  </div>
61
49
  <div class="row" v-show="$parent.$parent.criteriaShow">
50
+ <div class="col-sm-2 form-group">
51
+ <label class="font_normal_body">客户名称</label>
52
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
53
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
54
+ </div>
55
+ <div class="col-sm-2 form-group">
56
+ <label class="font_normal_body">客户类型</label>
57
+ <v-select :value.sync="model.f_user_type"
58
+ :search="false"
59
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
60
+ condition="f_user_type = '{}'"
61
+ close-on-select></v-select>
62
+ </div>
62
63
  <div class="col-sm-2 form-group">
63
64
  <label class="font_normal_body">客户地址</label>
64
65
  <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
@@ -390,6 +391,7 @@
390
391
  this.orgCondtionStr = condition
391
392
  this.orgname = obj.orgnames[0]
392
393
  this.depname = obj.depnames[0]
394
+ this.operatorname = this.userresid.filter(x => obj.operatornames.includes(x.value)).map(x=>x.label).toString()
393
395
  },
394
396
  sort (field, rule) {
395
397
  // 将所有排序方式设为不排序,实现相互排斥
@@ -61,7 +61,7 @@
61
61
  <div class="col-sm-2 form-group">
62
62
  <label class="font_normal_body">用户编号</label>
63
63
  <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
64
- condition="ua.f_userinfo_code = '{}' " placeholder="用户编号">
64
+ condition="ui.f_userinfo_code = '{}' " placeholder="用户编号">
65
65
  </div>
66
66
  <div class="col-sm-2 form-group">
67
67
  <label class="font_normal_body">用户姓名</label>
@@ -18,7 +18,7 @@
18
18
  <div class="col-sm-2">
19
19
  <label class="font_normal_body">表&nbsp;钢&nbsp;号&nbsp;</label>
20
20
  <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_meternumber" placeholder='表钢号'
21
- condition="m.f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
21
+ condition="m.f_meternumber = '{}'" v-next-el='meternumber' v-el:meternumber
22
22
  >
23
23
  </div>
24
24
  <!-- <div class="col-sm-2">-->
@@ -32,13 +32,13 @@
32
32
  <div class="col-sm-2">
33
33
  <label class="font_normal_body">客户编号</label>
34
34
  <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
35
- condition="ui.f_userinfo_code like '%{}%'" v-next-el='f_userinfo_code' v-el:meternumber
35
+ condition="ui.f_userinfo_code = '{}'" v-next-el='f_userinfo_code' v-el:meternumber
36
36
  >
37
37
  </div>
38
38
  <div class="col-sm-2">
39
39
  <label class="font_normal_body">客户名称</label>
40
40
  <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'
41
- condition="ui.f_user_name like '%{}%'" v-next-el='userid' v-el:username>
41
+ condition="ui.f_user_name = '{}'" v-next-el='userid' v-el:username>
42
42
  </div>
43
43
 
44
44
  <div class="span" style="float:right;margin-top:10px">
@@ -0,0 +1,123 @@
1
+ <template lang="html">
2
+ <div id="charts">
3
+ <div id="sm" :style="{width:'100%',height:'98%'}"></div>
4
+ </div>
5
+ </template>
6
+
7
+ <script>
8
+ /* eslint-disable indent,key-spacing,no-labels */
9
+
10
+ import * as Util from '../../Util'
11
+ import co from 'co'
12
+ import echarts from 'echarts'
13
+ import {HttpResetClass } from 'vue-client'
14
+
15
+ let getData = function * (self) {
16
+ let load = new HttpResetClass()
17
+ load.load('POST','rs/sql/BusinessType',
18
+ {data: {startDate: self.startdate, endDate: self.enddate,f_orgid: self.orgid}},
19
+ {resolveMsg: null, rejectMsg: null})
20
+ .then((res) => {
21
+ self.texttile = '用户类型'
22
+ let arrparams = []
23
+ let numdata = []
24
+ for (var i = 0; i < res.data.length; i++) {
25
+ arrparams[i] = res.data[i].name
26
+ numdata[i] = res.data[i].num
27
+ }
28
+ self.set(arrparams,numdata)
29
+ })
30
+ }
31
+ export default {
32
+ props: {
33
+ startdate: {
34
+ type: String,
35
+ default: Util.toStandardDateString()
36
+ },
37
+ enddate: {
38
+ type: String,
39
+ default: Util.toStandardDateString()
40
+ },
41
+ orgid: {
42
+ type: String
43
+ }
44
+ },
45
+ data () {
46
+ title: '业务类型'
47
+ return {
48
+ texttile: '',
49
+ xc: ''
50
+ }
51
+ },
52
+ methods: {
53
+ set (arrparams,numdata) {
54
+ this.xc = echarts.init(document.getElementById('sm'))
55
+ this.xc.setOption({
56
+ title : {
57
+ text: '其他业务散列图',
58
+ subtext: '数据查询来源',
59
+ x: 'left'
60
+ },
61
+ tooltip:{
62
+ trigger:'axis'
63
+ },
64
+ legend: {
65
+ x: 'left',
66
+ y: 'bottom',
67
+ data: ['数量']
68
+ },
69
+ toolbox: {
70
+ show : true,
71
+ feature : {
72
+ dataView : {show: true, readOnly: false},
73
+ magicType : {show: true, type: ['line', 'bar']},
74
+ restore : {show: true},
75
+ saveAsImage : {show: true}
76
+ }
77
+ },
78
+ calculable : true,
79
+ xAxis : [
80
+ {
81
+ type : 'category',
82
+ data : arrparams
83
+ }
84
+ ],
85
+ yAxis : [
86
+ {
87
+ type : 'value'
88
+ }
89
+ ],
90
+ series : [
91
+ {
92
+ name:'数量',
93
+ type:'bar',
94
+ data:numdata,
95
+ markLine : {
96
+ silent: true
97
+ }
98
+ }
99
+ ]
100
+ })
101
+ },
102
+ searchdata () {
103
+ let getGen = getData(this)
104
+ co(getGen)
105
+ }
106
+ },
107
+ ready () {
108
+ this.searchdata()
109
+ },
110
+ watch: {
111
+ 'startdate' (val) {
112
+ this.searchdata()
113
+ },
114
+ 'enddate' (val) {
115
+ this.searchdata()
116
+ },
117
+ 'orgid' (val) {
118
+ this.searchdata()
119
+ }
120
+ }
121
+
122
+ }
123
+ </script>
@@ -20,7 +20,7 @@
20
20
  <div class="col-sm-2">
21
21
  <label class="font_normal_body">表&nbsp;&nbsp;号&nbsp;</label>
22
22
  <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_meternumber" placeholder='表号'
23
- condition="m.f_meternumber like '{}%'" v-next-el='meternumber' v-el:meternumber
23
+ condition="m.f_meternumber = ''" v-next-el='meternumber' v-el:meternumber
24
24
  >
25
25
  </div>
26
26
  <!-- <div class="col-sm-2">-->
@@ -34,13 +34,13 @@
34
34
  <div class="col-sm-2">
35
35
  <label class="font_normal_body">客户编号</label>
36
36
  <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
37
- condition="ui.f_userinfo_code like '%{}%'" v-next-el='f_userinfo_code' v-el:meternumber
37
+ condition="ui.f_userinfo_code = '{}'" v-next-el='f_userinfo_code' v-el:meternumber
38
38
  >
39
39
  </div>
40
40
  <div class="col-sm-2">
41
41
  <label class="font_normal_body">客户名称</label>
42
42
  <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'
43
- condition="ui.f_user_name like '%{}%'" v-next-el='userid' v-el:username>
43
+ condition="ui.f_user_name = '{}'" v-next-el='userid' v-el:username>
44
44
  </div>
45
45
  <div class="col-sm-2">
46
46
  <label class="font_normal_body">客户地址</label>
@@ -6,16 +6,18 @@ let specialComp = {
6
6
  'res-select-group': (resolve) => { require(['./ResSelectGroupNew'], resolve) },
7
7
  'fill-gas-query': (resolve) => { require(['./FillGasQuery'], resolve) },
8
8
  'charge-query': (resolve) => { require(['./ChargeQuery'], resolve) },
9
- 'report-list':(resolve) => { require(['./reportList'], resolve) },
10
- 'handplan-query': (resolve) => {require(['./HandplanQuery'], resolve)},
9
+ 'report-list': (resolve) => { require(['./reportList'], resolve) },
10
+ 'handplan-query': (resolve) => { require(['./HandplanQuery'], resolve) },
11
11
  // 调价记录查询
12
- 'price-change-query':(resolve) => {require(['./PriceChangeQuery'], resolve)},
12
+ 'price-change-query': (resolve) => { require(['./PriceChangeQuery'], resolve) },
13
13
  // 用户设备查询
14
- 'user-equipment-query':(resolve) => {require(['./UserDeviceQuery'], resolve)},
14
+ 'user-equipment-query': (resolve) => { require(['./UserDeviceQuery'], resolve) },
15
15
  // 表具设备查询
16
- 'equipment-query': (resolve) => {require(['./DeviceQuery'], resolve)},
16
+ 'equipment-query': (resolve) => { require(['./DeviceQuery'], resolve) },
17
17
  // 表具查询
18
- 'meter-query': (resolve) => {require(['./MeterQuery'], resolve)}
18
+ 'meter-query': (resolve) => { require(['./MeterQuery'], resolve) },
19
+ // 其他业务散列
20
+ 'bussiness-type': (resolve) => { require(['./BussinessType'], resolve) }
19
21
 
20
22
  }
21
23
  exports.specialComp = specialComp
package/src/main.js CHANGED
@@ -44,7 +44,7 @@ all()
44
44
  ldap()
45
45
  system(false)
46
46
 
47
- saleManage("WEINAN")
47
+ saleManage("tongchuan")
48
48
  webmeterManage()
49
49
  ManageHome()
50
50
  newmanage()