manage-client 4.0.37 → 4.0.38

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.
Files changed (32) hide show
  1. package/package.json +1 -1
  2. package/src/components/SellReport/SellingTable.vue +44 -18
  3. package/src/components/sale/businessquery/chargeRecordMaintenanceQuery.vue +1 -3
  4. package/src/filiale/fugou/UserGasEcharts.vue +220 -0
  5. package/src/filiale/fugou/UserLostContactAnalysis.vue +721 -0
  6. package/src/filiale/fugou/WebHandplanQuery.vue +3 -3
  7. package/src/filiale/fugou/sale.js +2 -0
  8. package/src/filiale/jinbin/exportConfig.js +1110 -0
  9. package/src/filiale/jinbin/sale/businessquery/ChargeQuery.vue +1372 -0
  10. package/src/filiale/jinbin/sale.js +7 -0
  11. package/src/filiale/qianneng/QnJgqGscbmxTL.vue +684 -0
  12. package/src/filiale/qianneng/QnJgqMycbmxTL.vue +699 -0
  13. package/src/filiale/qianneng/QnJgqReport.vue +7 -1
  14. package/src/filiale/qianneng/exportConfig.js +10 -0
  15. package/src/filiale/qianneng/reportManage.js +5 -0
  16. package/src/filiale/yangchun/RecordInfoQuery.vue +20 -0
  17. package/src/filiale/yangchun/UserQuery.vue +5 -5
  18. package/src/filiale/yangchun/config/exportConfig.js +1 -1
  19. package/.gradle/8.5/checksums/checksums.lock +0 -0
  20. package/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
  21. package/.gradle/8.5/dependencies-accessors/gc.properties +0 -0
  22. package/.gradle/8.5/executionHistory/executionHistory.bin +0 -0
  23. package/.gradle/8.5/executionHistory/executionHistory.lock +0 -0
  24. package/.gradle/8.5/fileChanges/last-build.bin +0 -0
  25. package/.gradle/8.5/fileHashes/fileHashes.bin +0 -0
  26. package/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
  27. package/.gradle/8.5/gc.properties +0 -0
  28. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  29. package/.gradle/buildOutputCleanup/cache.properties +0 -2
  30. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  31. package/.gradle/file-system.probe +0 -0
  32. package/.gradle/vcs-1/gc.properties +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "4.0.37",
3
+ "version": "4.0.38",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -26,7 +26,27 @@
26
26
  :show-reset-button="reset">
27
27
  </datepicker>
28
28
  </div>
29
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:res_select></res-select-group>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp;</label>
31
+ <right-tree @re-res="$parent.$parent.getRes"></right-tree>
32
+ </div>
33
+ <div class="col-sm-2 form-group">
34
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp; </label>
35
+ <res-select restype='department'
36
+ @res-select="$parent.$parent.getdep"
37
+ :parentresid ="$parent.$parent.depresid"
38
+ :initresid='$parent.$parent.depid'>
39
+ </res-select>
40
+
41
+ </div>
42
+ <div class="col-sm-2 form-group">
43
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp; </label>
44
+ <res-select restype='user'
45
+ @res-select="$parent.$parent.getuser"
46
+ :parentresid="$parent.$parent.userresid"
47
+ :initresid='$parent.$parent.operatorid'>
48
+ </res-select>
49
+ </div>
30
50
  </div>
31
51
  <div class="span" style = "float:right;">
32
52
  <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
@@ -143,7 +163,7 @@
143
163
  }
144
164
  },
145
165
  ready () {
146
- this.$refs.paged.$refs.criteria.$refs.res_select.sliceareashow = false
166
+ // this.$refs.paged.$refs.criteria.$refs.res_select.sliceareashow = false
147
167
  this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
148
168
  this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
149
169
  // this.$refs.paged.$refs.criteria.search()
@@ -155,10 +175,16 @@
155
175
  },
156
176
  selfSearch (args) {
157
177
  this.printTime = this.$login.toStandardTimeString()
158
- console.log('xxxxxxxxxxx',this.orgCondtionStr)
178
+ console.log('xxxxxxxxxxx', this.orgCondtionStr)
159
179
  let orgstr = '1=1 '
160
- if(this.orgCondtionStr){
161
- orgstr+=this.orgCondtionStr
180
+ if (this.f_orgid[0]) {
181
+ orgstr += ` and f_orgid in ('${this.f_orgid}')`
182
+ }
183
+ if (this.f_depid[0]) {
184
+ orgstr += ` and f_depid in ('${this.f_depid}')`
185
+ }
186
+ if (this.f_operatorid[0]) {
187
+ orgstr += ` and f_operatorid in ('${this.f_operatorid}')`
162
188
  }
163
189
  this.$refs.paged.$refs.criteria.model.f_orgid = orgstr
164
190
  this.$refs.paged.search(args)
@@ -185,19 +211,19 @@
185
211
  this.show = true
186
212
  this.filename = this.data.f_report_name + this.$login.toStandardDateString()
187
213
  },
188
- async getRes (condition, obj) {
189
- this.orgCondtionStr = condition
190
- if(obj.orgnames.length>0){
191
- this.orgname = obj.orgnames[0];
192
- }
193
- if(obj.operatornames.length>0){
194
- let users = await this.$resetpost('api/af-revenue/sql/manageSingleTable',
195
- {data: {tablename: 't_user', condition: ` id = '${obj.operatornames[0]}'`}},
196
- {resolveMsg: null, rejectMsg: null});
197
- if(users.data){
198
- this.operatorname = users.data[0].name;
199
- }
200
- }
214
+ getRes (obj) {
215
+ this.orgname = obj.res[0]
216
+ this.depresid = obj.resids
217
+ this.f_orgid = obj.resids
218
+ },
219
+ getdep (obj, val) {
220
+ this.depname = val[0]
221
+ this.userresid = obj
222
+ this.f_depid = obj
223
+ },
224
+ getuser (obj, val) {
225
+ this.operatorname = val[0]
226
+ this.f_operatorid = obj
201
227
  }
202
228
  },
203
229
  watch: {
@@ -22,7 +22,7 @@
22
22
  v-model="model.endDate"
23
23
  :value.sync="model.endDate"
24
24
  :format="'yyyy-MM-dd'"
25
- condition="modifitime <= '{} 23:59: 59'"
25
+ condition="modifitime <= '{} 23:59:59'"
26
26
  :show-reset-button="true">
27
27
  </datepicker>
28
28
  </div>
@@ -260,8 +260,6 @@ export default {
260
260
  } else {
261
261
  args.condition = `${args.condition}` + this.orgConditionStr
262
262
  }
263
- this.$refs.paged.$refs.cri.model.startDate = this.startDate
264
- this.$refs.paged.$refs.cri.model.endDate = this.endDate
265
263
  this.condition = args.condition
266
264
  console.log("查看条件", this.condition)
267
265
  await this.model.search(args.condition, args.model)
@@ -0,0 +1,220 @@
1
+ <template lang="html">
2
+ <div class="basic-main" style="height: 100%;">
3
+ <div class="row" style="height: 15%;width: 100%;" v-show="echarts">
4
+ <div class="col-sm-2" style="display: inline-block;">
5
+ <button @click="$parent.notShowEcharts()" class="button_clear button_spacing">隐藏图表</button>
6
+ </div>
7
+ <!--图显示模板-->
8
+ <div class="row col-sm-3 mystyle" style="display: inline-block;">
9
+ <label class="font_normal_body">图表统计项</label>
10
+ <v-select :options='$parent.getgroupname' :value.sync="groupname"
11
+ close-on-select
12
+ id="groupname"
13
+ placeholder='分组项'
14
+ v-model="groupname"
15
+ value-single="true"></v-select>
16
+ </div>
17
+ </div>
18
+ <div style="height: 80%;width: 98%;">
19
+ <div id="info"></div>
20
+ </div>
21
+ </div>
22
+ </template>
23
+
24
+ <script>
25
+ import * as Util from '../../Util'
26
+ import co from 'co'
27
+ import { HttpResetClass } from 'vue-client'
28
+
29
+ let getData = function * (self, condition) {
30
+ let load = new HttpResetClass()
31
+ load.load('POST', 'api/af-revenue/sql/webmeter_getUserGasGroup',
32
+ {data: {condition: condition, groupname: self.groupname[0], startDate: self.startdate,
33
+ endDate: self.enddate}},
34
+ {resolveMsg: null, rejectMsg: null})
35
+ .then((res) => {
36
+ let arrparams = []
37
+ let gasdata1 = []
38
+ let gasdata2 = []
39
+ for (var i = 0; i < res.data.length; i++) {
40
+ arrparams[i] = res.data[i].f_type
41
+ gasdata1[i] = res.data[i].f_oughtamount1
42
+ gasdata2[i] = res.data[i].f_oughtamount2
43
+ }
44
+ self.set(arrparams, gasdata1, gasdata2)
45
+ })
46
+ }
47
+ export default {
48
+ props: {
49
+ echarts:{
50
+ type:Boolean,
51
+ default:false
52
+ },
53
+ startdate: {
54
+ type: String,
55
+ default: Util.toStandardDateString()
56
+ },
57
+ enddate: {
58
+ type: String,
59
+ default: Util.toStandardDateString()
60
+ },
61
+ condition: {
62
+ type: String,
63
+ default: '1=1'
64
+ },
65
+ groupname: {
66
+ type: String,
67
+ default: 'year'
68
+ }
69
+ },
70
+ data () {
71
+ title: '业务类型'
72
+ return {
73
+ xc: ''
74
+ }
75
+ },
76
+ ready(){
77
+ console.log(this.echarts)
78
+ },
79
+ methods: {
80
+ set (arrparams, gasdata1, gasdata2) {
81
+ console.log('--------->>>>>>>>>>>>',arrparams,gasdata1,gasdata2)
82
+ console.log("ec:"+this.echarts)
83
+ let name = ''
84
+ if (this.groupname === 'year')
85
+ {
86
+ name = '年'
87
+ } else if (this.groupname === 'month'){
88
+ name = '月'
89
+ } else if (this.groupname === 'week'){
90
+ name = '周'
91
+ } else {
92
+ name = '日'
93
+ }
94
+ const statInfo = document.getElementById('info') // 获取图表元素
95
+ statInfo.style.width = window.innerWidth - 200 + "px"; //初始化echarts图表宽度
96
+ statInfo.style.height = window.innerHeight - 200 + "px"; //初始化echarts图表宽度
97
+ this.xc = this.$echarts.init(statInfo)
98
+ // 设置宽度自适应
99
+ window.addEventListener('resize', () => {
100
+ statInfo.style.width = window.innerWidth - 200 + "px";
101
+ statInfo.style.height = window.innerHeight - 200 + "px";
102
+ this.xc.resize();
103
+ })
104
+ // this.xc.resize({height: '100%',width: '100%'})
105
+ this.xc.setOption({
106
+ title: {
107
+ text: '用气' + name + '分析图',
108
+ left: 'center',
109
+ y: '10',
110
+ textStyle: {
111
+ color: '#000',
112
+ fontSize: 20
113
+ }
114
+ },
115
+ color: ['#61a0a8', '#2f4554'],
116
+ tooltip: {
117
+ trigger: 'axis',
118
+ extraCssText: 'width: auto;height: auto;'
119
+ },
120
+ grid:{
121
+ top:'20%',
122
+ },
123
+ legend: {
124
+ y: '50',
125
+ data: ['用气量(民用)(m³)', '用气量(非民用)(m³)']
126
+ },
127
+ toolbox: {
128
+ y: '50',
129
+ show: true,
130
+ right:'2%',
131
+ feature: {
132
+ mark: {show: true},
133
+ dataView: {show: true, readOnly: false},
134
+ magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
135
+ restore: {show: true},
136
+ saveAsImage: {show: true}
137
+ }
138
+ },
139
+ calculable: true,
140
+ xAxis: [
141
+ { name: '日期',
142
+ nameTextStyle: {
143
+ fontSize: 15
144
+ },
145
+ type: 'category',
146
+ data: arrparams
147
+ }
148
+ ],
149
+ yAxis : [
150
+ {
151
+ type : 'value',
152
+ name: '用气量(m³)',
153
+ nameTextStyle: {
154
+ fontSize: 15
155
+ },
156
+ axisLabel: {
157
+ show: true,
158
+ textStyle: {
159
+ fontSize: 15,
160
+ 'color': '#7d8000'
161
+ }
162
+ }
163
+ }
164
+ ],
165
+ series : [
166
+ {
167
+ name: '用气量(民用)(m³)',
168
+ type: 'bar',
169
+ smooth: true,
170
+ itemStyle: {normal: {areaStyle: {type: 'default'}}},
171
+ data: gasdata1,
172
+ markPoint: {
173
+ data: [
174
+ {type: 'max', name: '最大值'},
175
+ {type: 'min', name: '最小值'}
176
+ ]
177
+ },
178
+ markLine: {
179
+ data: [
180
+ {type: 'average', name: '平均值'}
181
+ ]
182
+ }
183
+ },
184
+ {
185
+ name: '用气量(非民用)(m³)',
186
+ type: 'bar',
187
+ smooth: true,
188
+ itemStyle: {normal: {areaStyle: {type: 'default'}}},
189
+ data: gasdata2,
190
+ markPoint: {
191
+ data: [
192
+ {type: 'max', name: '最大值'},
193
+ {type: 'min', name: '最小值'}
194
+ ]
195
+ },
196
+ markLine: {
197
+ data: [
198
+ {type: 'average', name: '平均值'}
199
+ ]
200
+ }
201
+ }
202
+ ]
203
+ })
204
+ },
205
+ searchdata (condition) {
206
+ console.log("ec:"+this.echarts)
207
+ let getGen = getData(this, condition)
208
+ co(getGen)
209
+ }
210
+ },
211
+ watch: {
212
+ 'echarts' (val) {
213
+ this.searchdata(this.condition)
214
+ },
215
+ 'groupname' (val) {
216
+ this.searchdata(this.condition)
217
+ }
218
+ }
219
+ }
220
+ </script>