manage-client 3.2.69 → 3.2.70

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/.gradle/{5.5 → 4.4}/fileChanges/last-build.bin +0 -0
  2. package/.gradle/4.4/fileContent/fileContent.lock +0 -0
  3. package/.gradle/4.4/fileHashes/fileHashes.bin +0 -0
  4. package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
  5. package/.gradle/4.4/taskHistory/taskHistory.bin +0 -0
  6. package/.gradle/4.4/taskHistory/taskHistory.lock +0 -0
  7. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  8. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  9. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  10. package/CHANGELOG.md +1 -0
  11. package/build/dev-server.js +176 -174
  12. package/build/libs/ManageClient-3.1.0-17.jar +0 -0
  13. package/build/tmp/jar/MANIFEST.MF +2 -0
  14. package/package.json +1 -1
  15. package/src/App.vue +28 -28
  16. package/src/components/MeterManage/MeterList.vue +2 -2
  17. package/src/components/SellReport/GYReportWH.vue +181 -0
  18. package/src/components/SellReport/ReportItems.vue +250 -241
  19. package/src/components/SellReport/ReportItemsSpecial.vue +246 -0
  20. package/src/components/SellReport/ReportPoolSpecial.vue +60 -0
  21. package/src/components/SellReport/SYReportWH.vue +181 -0
  22. package/src/components/SellReport/tongchuan/ReportGasType.vue +230 -0
  23. package/src/components/sale/filesquery/DeviceQuery.vue +1 -1
  24. package/src/components/sale/filesquery/RecordInfoQuery.vue +1 -1
  25. package/src/components/sale/report/aode/DayReportList.vue +371 -371
  26. package/src/components/webmeter/DrillData/UserGasAll.vue +607 -607
  27. package/src/filiale/shaoguan/HandplanQuery.vue +22 -24
  28. package/src/filiale/shaoguan/RecordInfoQuery.vue +1108 -1108
  29. package/src/filiale/zhongsheng/UserGasAll.vue +625 -0
  30. package/src/reportManage.js +532 -506
  31. package/.gradle/5.5/fileHashes/fileHashes.lock +0 -0
  32. package/.gradle/5.5/gc.properties +0 -0
@@ -1,241 +1,250 @@
1
- <template>
2
- <div class="flex">
3
- <partial-view v-ref:pv>
4
- <div class="span" v-show="!filtrate">
5
- <p class="bg-info text-center" style="padding: 8px;background: #5ac0d9;color: white;border-radius:10px 10px 0 0" title="选中报表后双击查看报表的配置信息" @dblclick="filtrate=!filtrate">报表类型</p>
6
- <div style="height: 94%;overflow: auto;width: 104%">
7
- <div style="padding:3px" :style="{background: index===row ? '#dfedfb' : 'white'}" :class="styles=='2'?'col-sm-6 auto':'col-sm-12 auto'" v-for="(index,type) in types"
8
- @click="$dispatch('select-type',index, type),changecolor(index,type)"
9
- :id="'div-'+index">
10
- <div class="row auto"><img :src="type.f_image_path" alt="图片加载失败" class="img-rounded" style="width: 60px;"></div>
11
- <div style="height:40px" class="row auto">{{index+1}}、{{type.f_report_name}}</div>
12
- </div>
13
- </div>
14
-
15
- </div>
16
- <div class="span" v-show="filtrate">
17
- <p class="bg-info text-center" style="padding: 8px;" @dblclick="filtrate=!filtrate">相关配置</p>
18
- <div style="height: 94%;overflow: auto;width: 104%">
19
- <table style="border-style: none;width: 95%;">
20
- <tr style="display:block;margin:15px 0;">
21
- <td style="text-align: left">
22
- <label class="font_normal_body">报表名称:</label>
23
- <v-select multiple
24
- :value.sync="modelinfo.f_report_name"
25
- class="select_list select"
26
- v-model="modelinfo.f_report_name"
27
- :options='reportNames' placeholder='请选择'
28
- close-on-select></v-select>
29
- </td>
30
- </tr>
31
- <tr style="display:block;margin:15px 0;">
32
- <td style="text-align: left">
33
- <label class="font_normal_body">报表类型:</label>
34
- <v-select
35
- :value.sync="modelinfo.f_report_type"
36
- :search="false"
37
- class="select_list select"
38
- v-model="modelinfo.f_report_type"
39
- :options='reportTypes' placeholder='请选择'
40
- close-on-select></v-select>
41
- </td>
42
- </tr>
43
- <tr style="display:block;margin:15px 0;">
44
- <td style="text-align: left">
45
- <label class="font_normal_body">报表状态:</label>
46
- <v-select
47
- :value.sync="modelinfo.f_rank"
48
- :search="false"
49
- class="select_list select"
50
- v-model="modelinfo.f_rank"
51
- :options='reportState' placeholder='请选择'
52
- close-on-select></v-select>
53
- </td>
54
- </tr>
55
- <tr style="display:block;margin:15px 0;">
56
- <td style="text-align: right;width: 50%;"><button class="button_clear button_spacing" @click="filtrate=!filtrate">返回</button></td>
57
- <td style="text-align: right;width: 25%;"><button class="button_clear button_spacing" @click="clear()">清空</button></td>
58
- <td style="text-align: left;width: 25%;"><button class="button_search button_spacing" @click="chaxun()">查询</button></td>
59
- </tr>
60
- <tr style="display:block;margin:15px 0;" v-for="(key,value) in infos">
61
- <td style="text-align: left;">
62
- <label class="font_normal_body" style="text-align: right;">{{key}}:</label>
63
- <input type="text" style="width: 70%;" class="input_search" v-model="value" v-bind:title="[key =='报表状态'?'1表示显示其他表示不显示':'']"/>
64
- </td>
65
- </tr>
66
- <tr style="display:block;margin:15px 0;">
67
- <td style="text-align: right;width: 50%;"><button class="button_clear button_spacing" @click="saveOrUpdate(1)">修改</button></td>
68
- <td style="text-align: right;width: 25%;"><button class="button_clear button_spacing" @click="clear(true)">清空</button></td>
69
- <td style="text-align: left;width: 25%;"><button class="button_search button_spacing" @click="saveOrUpdate(2)">保存</button></td>
70
- </tr>
71
- </table>
72
- </div>
73
-
74
- </div>
75
- </partial-view>
76
- </div>
77
- </template>
78
-
79
- <script>
80
- import {HttpResetClass} from "vue-client";
81
-
82
- export default {
83
- title: '报表选项',
84
- props: {
85
- inindex:{}
86
- },
87
- data () {
88
- return {
89
- types: [],
90
- row:null,
91
- infos: {
92
- '报表名称': '',
93
- '连接页面': '',
94
- '报表类型': '',
95
- '图片路径': '',
96
- '添 加 人': '',
97
- '报表状态': ''
98
- },
99
- styles:this.$appdata.getSingleValue('报表样式')?this.$appdata.getSingleValue('报表样式'):'2',
100
- saveinfo:{},
101
- filtrate:false,
102
- modelinfo: {
103
- f_report_name: '',
104
- f_report_type: '',
105
- f_rank: '1'
106
- },
107
- config:{
108
- f_report_name: '报表名称',
109
- f_report_path: '连接页面',
110
- f_report_type: '报表类型',
111
- f_image_path: '图片路径',
112
- f_operator: '添 加 人',
113
- f_rank: '报表状态'
114
- },
115
- conditionStr:'1=1',
116
- reportNames: [],
117
- reportTypes: [],
118
- reportState : [{label: '全部', value: ''},{label: '显示', value: '1'},{label: '未显示', value: 'null'},],
119
- tablename: 't_report_type'
120
- }
121
- },
122
- ready (){
123
- // 获取所有报表类型
124
- this.getReportInfo(null,'1=1 and f_rank=1')
125
- this.getReportName()
126
- this.getReportType()
127
- },
128
- methods: {
129
- getReportInfo(tname,cond){
130
- this.$refs.pv.load('rs/sql/manageSingleTable', {
131
- data: {
132
- tablename: tname ? tname:this.tablename,
133
- condition: cond ? cond:this.conditionStr
134
- }
135
- }).then((res) => {
136
- this.types = res.data
137
- }).catch((error) => {
138
-
139
- })
140
- },
141
- chaxun(){
142
- this.getReportInfo()
143
- this.filtrate = !this.filtrate
144
- },
145
- changecolor(index,type){
146
- this.row=index
147
- },
148
- async getReportName(){
149
- let HttpReset = new HttpResetClass()
150
- var data = await HttpReset.load('POST', 'rs/sql/singleTable_Final', {
151
- data: {
152
- condition: this.conditionStr,
153
- tablename: this.tablename,
154
- groupitem: 'f_report_name',
155
- orderitem: 'f_report_name',
156
- items: 'f_report_name'
157
- }
158
- }, {resolveMsg: null, rejectMsg: '获取报表名称失败!'})
159
- let nameArr = [{label: '全部', value: ''}]
160
- for (let row of data.data){
161
- nameArr.push({label: row.f_report_name, value: row.f_report_name})
162
- }
163
- this.reportNames = nameArr
164
- },
165
- clear(val){
166
- if(val){
167
- for (let key in this.infos) {
168
- this.infos[key] =''
169
- }
170
- }else{
171
- for (let key in this.modelinfo) {
172
- this.modelinfo[key] =[]
173
- }
174
- }
175
- },
176
- async getReportType(){
177
- let HttpReset = new HttpResetClass()
178
- var data = await HttpReset.load('POST', 'rs/sql/singleTable_Final', {
179
- data: {
180
- condition: this.conditionStr,
181
- tablename: this.tablename,
182
- groupitem: 'f_report_type',
183
- orderitem: 'f_report_type',
184
- items: 'f_report_type'
185
- }
186
- }, {resolveMsg: null, rejectMsg: '获取报表类型失败!'})
187
- let typeArr = [{label: '全部', value: ''}]
188
- for (let row of data.data){
189
- typeArr.push({label: row.f_report_type, value: row.f_report_type})
190
- }
191
- this.reportTypes = typeArr
192
- },
193
- saveOrUpdate(val){
194
- // let sv={}
195
- for(let [key, value] of Object.entries(this.config)){
196
- let vl=this.infos[value]
197
- this.saveinfo[key]=vl
198
- }
199
- this.saveinfo['type']=val
200
-
201
- this.$resetpost('rs/logic/saveReport', this.saveinfo, {resolveMsg: '恭喜!提交成功!', rejectMsg: '提交错误!'}).then((res) => {
202
- this.$showAlert('保存成功', 'success', 3000)
203
- this.getReportInfo(null,'1=1 and f_rank=1')
204
- this.filtrate=!this.filtrate
205
- })
206
- console.log('this.saveinfo+++++',this.saveinfo)
207
- }
208
- },
209
- watch :{
210
- 'modelinfo': {
211
- deep: true,
212
- handler(val) {
213
- let c='1=1 '
214
- for (let [key, value] of Object.entries(val)) {
215
- if (value && value!='') {
216
- if(key=='f_rank' && value=='null'){
217
- c+='and '+ key + " is " + value +' or '+ key +" = ''"
218
- }else{
219
- c+='and '+ key + " in ('" + value.toString().replace(new RegExp(',','g'),"','") + "') "
220
- }
221
-
222
- }
223
- }
224
- this.conditionStr = c
225
- }
226
- },
227
- 'inindex' (val){
228
- this.infos={}
229
- this.saveinfo=this.types[val]
230
- let flag={}
231
- for(let [key, value] of Object.entries(this.saveinfo)){
232
- let name=this.config[key]
233
- if (name!=null){
234
- flag[name]=value
235
- }
236
- }
237
- this.infos=flag
238
- }
239
- }
240
- }
241
- </script>
1
+ <template>
2
+ <div class="flex">
3
+ <partial-view v-ref:pv>
4
+ <div class="span" v-show="!filtrate">
5
+ <p class="bg-info text-center" style="padding: 8px;background: #5ac0d9;color: white;border-radius:10px 10px 0 0" title="选中报表后双击查看报表的配置信息" @dblclick="Update()">报表类型</p>
6
+ <div style="height: 94%;overflow: auto;width: 104%">
7
+ <div style="padding:3px" :style="{background: index===row ? '#dfedfb' : 'white'}" :class="styles=='2'?'col-sm-6 auto':'col-sm-12 auto'" v-for="(index,type) in types"
8
+ @click="$dispatch('select-type',index, type),changecolor(index,type)"
9
+ :id="'div-'+index">
10
+ <div class="row auto"><img :src="type.f_image_path" alt="图片加载失败" class="img-rounded" style="width: 60px;"></div>
11
+ <div style="height:40px" class="row auto">{{index+1}}、{{type.f_report_name}}</div>
12
+ </div>
13
+ </div>
14
+
15
+ </div>
16
+ <div class="span" v-show="filtrate">
17
+ <p class="bg-info text-center" style="padding: 8px;" @dblclick="filtrate=!filtrate">相关配置</p>
18
+ <div style="height: 94%;overflow: auto;width: 104%">
19
+ <table style="border-style: none;width: 95%;">
20
+ <tr style="display:block;margin:15px 0;">
21
+ <td style="text-align: left">
22
+ <label class="font_normal_body">报表名称:</label>
23
+ <v-select multiple
24
+ :value.sync="modelinfo.f_report_name"
25
+ class="select_list select"
26
+ v-model="modelinfo.f_report_name"
27
+ :options='reportNames' placeholder='请选择'
28
+ close-on-select></v-select>
29
+ </td>
30
+ </tr>
31
+ <tr style="display:block;margin:15px 0;">
32
+ <td style="text-align: left">
33
+ <label class="font_normal_body">报表类型:</label>
34
+ <v-select
35
+ :value.sync="modelinfo.f_report_type"
36
+ :search="false"
37
+ class="select_list select"
38
+ v-model="modelinfo.f_report_type"
39
+ :options='reportTypes' placeholder='请选择'
40
+ close-on-select></v-select>
41
+ </td>
42
+ </tr>
43
+ <tr style="display:block;margin:15px 0;">
44
+ <td style="text-align: left">
45
+ <label class="font_normal_body">报表状态:</label>
46
+ <v-select
47
+ :value.sync="modelinfo.f_rank"
48
+ :search="false"
49
+ class="select_list select"
50
+ v-model="modelinfo.f_rank"
51
+ :options='reportState' placeholder='请选择'
52
+ close-on-select></v-select>
53
+ </td>
54
+ </tr>
55
+ <tr style="display:block;margin:15px 0;">
56
+ <td style="text-align: right;width: 50%;"><button class="button_clear button_spacing" @click="filtrate=!filtrate">返回</button></td>
57
+ <td style="text-align: right;width: 25%;"><button class="button_clear button_spacing" @click="clear()">清空</button></td>
58
+ <td style="text-align: left;width: 25%;"><button class="button_search button_spacing" @click="chaxun()">查询</button></td>
59
+ </tr>
60
+ <tr style="display:block;margin:15px 0;" v-for="(key,value) in infos">
61
+ <td style="text-align: left;">
62
+ <label class="font_normal_body" style="text-align: right;">{{key}}:</label>
63
+ <input type="text" style="width: 70%;" class="input_search" v-model="value" v-bind:title="[key =='报表状态'?'1表示显示其他表示不显示':'']"/>
64
+ </td>
65
+ </tr>
66
+ <tr style="display:block;margin:15px 0;">
67
+ <td style="text-align: right;width: 50%;"><button class="button_clear button_spacing" @click="saveOrUpdate(1)">修改</button></td>
68
+ <td style="text-align: right;width: 25%;"><button class="button_clear button_spacing" @click="clear(true)">清空</button></td>
69
+ <td style="text-align: left;width: 25%;"><button class="button_search button_spacing" @click="saveOrUpdate(2)">保存</button></td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+
74
+ </div>
75
+ </partial-view>
76
+ </div>
77
+ </template>
78
+
79
+ <script>
80
+ import {HttpResetClass} from "vue-client";
81
+
82
+ export default {
83
+ title: '报表选项',
84
+ props: {
85
+ inindex:{}
86
+ },
87
+ data () {
88
+ return {
89
+ types: [],
90
+ row:null,
91
+ infos: {
92
+ '报表名称': '',
93
+ '连接页面': '',
94
+ '报表类型': '',
95
+ '图片路径': '',
96
+ '添 加 人': '',
97
+ '报表状态': ''
98
+ },
99
+ styles:this.$appdata.getSingleValue('报表样式')?this.$appdata.getSingleValue('报表样式'):'2',
100
+ saveinfo:{},
101
+ filtrate:false,
102
+ modelinfo: {
103
+ f_report_name: '',
104
+ f_report_type: '',
105
+ f_rank: '1'
106
+ },
107
+ config:{
108
+ f_report_name: '报表名称',
109
+ f_report_path: '连接页面',
110
+ f_report_type: '报表类型',
111
+ f_image_path: '图片路径',
112
+ f_operator: '添 加 人',
113
+ f_rank: '报表状态'
114
+ },
115
+ conditionStr:'1=1',
116
+ reportNames: [],
117
+ reportTypes: [],
118
+ reportState : [{label: '全部', value: ''},{label: '显示', value: '1'},{label: '未显示', value: 'null'},],
119
+ tablename: 't_report_type'
120
+ }
121
+ },
122
+ ready (){
123
+ // 获取所有报表类型
124
+ this.getReportInfo(null,'1=1 and f_rank=1')
125
+ this.getReportName()
126
+ this.getReportType()
127
+ },
128
+ methods: {
129
+ getReportInfo(tname,cond){
130
+ this.$refs.pv.load('rs/sql/manageSingleTable', {
131
+ data: {
132
+ tablename: tname ? tname:this.tablename,
133
+ condition: cond ? cond:this.conditionStr
134
+ }
135
+ }).then((res) => {
136
+ console.log('sssss:',res.data)
137
+ this.types = res.data
138
+ }).catch((error) => {
139
+
140
+ })
141
+ },
142
+ chaxun(){
143
+ this.getReportInfo()
144
+ this.filtrate = !this.filtrate
145
+ },
146
+ changecolor(index,type){
147
+ this.row=index
148
+ },
149
+ async getReportName(){
150
+ let HttpReset = new HttpResetClass()
151
+ var data = await HttpReset.load('POST', 'rs/sql/singleTable_Final', {
152
+ data: {
153
+ condition: this.conditionStr,
154
+ tablename: this.tablename,
155
+ groupitem: 'f_report_name',
156
+ orderitem: 'f_report_name',
157
+ items: 'f_report_name'
158
+ }
159
+ }, {resolveMsg: null, rejectMsg: '获取报表名称失败!'})
160
+ let nameArr = [{label: '全部', value: ''}]
161
+ for (let row of data.data){
162
+ nameArr.push({label: row.f_report_name, value: row.f_report_name})
163
+ }
164
+ this.reportNames = nameArr
165
+ },
166
+ clear(val){
167
+ if(val){
168
+ for (let key in this.infos) {
169
+ this.infos[key] =''
170
+ }
171
+ }else{
172
+ for (let key in this.modelinfo) {
173
+ this.modelinfo[key] =[]
174
+ }
175
+ }
176
+ },
177
+ async getReportType(){
178
+ let HttpReset = new HttpResetClass()
179
+ var data = await HttpReset.load('POST', 'rs/sql/singleTable_Final', {
180
+ data: {
181
+ condition: this.conditionStr,
182
+ tablename: this.tablename,
183
+ groupitem: 'f_report_type',
184
+ orderitem: 'f_report_type',
185
+ items: 'f_report_type'
186
+ }
187
+ }, {resolveMsg: null, rejectMsg: '获取报表类型失败!'})
188
+ let typeArr = [{label: '全部', value: ''}]
189
+ for (let row of data.data){
190
+ typeArr.push({label: row.f_report_type, value: row.f_report_type})
191
+ }
192
+ this.reportTypes = typeArr
193
+ },
194
+ Update(){
195
+ if (this.$login.r.includes('报表配置权限')) {
196
+ this.filtrate=!this.filtrate
197
+ } else {
198
+ this.$showMessage('您没有【报表配置权限】,若要进行报表配置,请联系管理员获取权限!')
199
+ }
200
+
201
+ },
202
+ saveOrUpdate(val){
203
+ // let sv={}
204
+ for(let [key, value] of Object.entries(this.config)){
205
+ let vl=this.infos[value]
206
+ this.saveinfo[key]=vl
207
+ }
208
+ this.saveinfo['type']=val
209
+
210
+ this.$resetpost('rs/logic/saveReport', this.saveinfo, {resolveMsg: '恭喜!提交成功!', rejectMsg: '提交错误!'}).then((res) => {
211
+ this.$showAlert('保存成功', 'success', 3000)
212
+ this.getReportInfo(null,'1=1 and f_rank=1')
213
+ this.filtrate=!this.filtrate
214
+ })
215
+ console.log('this.saveinfo+++++',this.saveinfo)
216
+ }
217
+ },
218
+ watch :{
219
+ 'modelinfo': {
220
+ deep: true,
221
+ handler(val) {
222
+ let c='1=1 '
223
+ for (let [key, value] of Object.entries(val)) {
224
+ if (value && value!='') {
225
+ if(key=='f_rank' && value=='null'){
226
+ c+='and '+ key + " is " + value +' or '+ key +" = ''"
227
+ }else{
228
+ c+='and '+ key + " in ('" + value.toString().replace(new RegExp(',','g'),"','") + "') "
229
+ }
230
+
231
+ }
232
+ }
233
+ this.conditionStr = c
234
+ }
235
+ },
236
+ 'inindex' (val){
237
+ this.infos={}
238
+ this.saveinfo=this.types[val]
239
+ let flag={}
240
+ for(let [key, value] of Object.entries(this.saveinfo)){
241
+ let name=this.config[key]
242
+ if (name!=null){
243
+ flag[name]=value
244
+ }
245
+ }
246
+ this.infos=flag
247
+ }
248
+ }
249
+ }
250
+ </script>