manage-client 3.2.72 → 3.2.75

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 (55) hide show
  1. package/.babelrc +5 -5
  2. package/.classpath +6 -6
  3. package/.editorconfig +9 -9
  4. package/.gradle/4.4/fileHashes/fileHashes.bin +0 -0
  5. package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
  6. package/.project +18 -18
  7. package/README.md +38 -38
  8. package/build/dev-server.js +176 -176
  9. package/config/dev.env.js +6 -6
  10. package/config/prod.env.js +3 -3
  11. package/config/test.env.js +6 -6
  12. package/package.json +1 -1
  13. package/release.bat +5 -5
  14. package/src/components/MeterManage/ChangeMeterQuery.vue +82 -82
  15. package/src/components/MeterManage/HandQuery.vue +72 -72
  16. package/src/components/MeterManage/ReversalQuery.vue +77 -77
  17. package/src/components/SellReport/GaspriceHas.vue +141 -141
  18. package/src/components/SellReport/ManageBusSummary.vue +224 -219
  19. package/src/components/WebReport/AbnormalInfoEcharts.vue +120 -120
  20. package/src/components/WebReport/Communication.vue +131 -131
  21. package/src/components/WebReport/CompanyUser.vue +79 -79
  22. package/src/components/WebReport/GaspriceHas.vue +141 -141
  23. package/src/components/WebReport/ReportWorklist.vue +220 -220
  24. package/src/components/WebReport/SellType.vue +89 -89
  25. package/src/components/WebReport/Telemanlist.vue +221 -221
  26. package/src/components/WebReport/UserGasEcharts.vue +107 -107
  27. package/src/components/WebReport/ValueEcharts.vue +99 -99
  28. package/src/components/sale/businessquery/HandplanQuery.vue +91 -61
  29. package/src/components/sale/config/DefaultPrint.js +6 -6
  30. package/src/components/sale/config/exportConfig.js +1 -1
  31. package/src/components/sale/filesquery/detail/oper/ChangeMessage.vue +46 -46
  32. package/src/components/sale/filesquery/detail/oper/HandOper.vue +46 -46
  33. package/src/components/sale/filesquery/detail/oper/HandleMessage.vue +46 -46
  34. package/src/components/webmeter/gasAnalysis/GasAnalysisEcharts.vue +144 -144
  35. package/src/components/webmeter/gasAnalysis/GasAnalysisSummary.vue +162 -162
  36. package/src/components/webmeter/instruction/NewQueryInstruct.vue +6 -0
  37. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEform.vue +149 -149
  38. package/src/filiale/liaoyuan/sale.js +0 -2
  39. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  40. package/src/filiale/tongchuan/UserQuery.vue +26 -0
  41. package/src/main.js +66 -66
  42. package/src/plugins/LodopFuncs.js +124 -124
  43. package/src/stores/GetParames.js +15 -15
  44. package/src/stores/Util.js +132 -132
  45. package/test/unit/.eslintrc +5 -5
  46. package/test/unit/TestUtil.js +35 -35
  47. package/test/unit/context.html +20 -20
  48. package/test/unit/index.js +13 -13
  49. package/test/unit/init.js +11 -11
  50. package/test/unit/karma.conf.js +45 -45
  51. package/test/unit/specs/components/CallReport/Repair.spec.js +25 -25
  52. package/test/unit/specs/components/ManageBusiness/EquipmentQuery.spec.js +21 -21
  53. package/test/unit/specs/components/ManageBusiness/TableWithQuery.spec.js +21 -21
  54. package/test/unit/specs/components/ManageBusiness/UserQuery.spec.js +21 -21
  55. package/src/filiale/liaoyuan/GasInspection.vue +0 -572
@@ -1,162 +1,162 @@
1
- <template lang="html">
2
- <div class="span" >
3
- <p class="bg-info text-center " style="padding: 8px;">用户用气汇总</p>
4
- <div class="mystyle2 " >
5
- <label class="control-label">汇总项</label>
6
- <input type="checkbox" id="year" value="year" v-model="nameForSql"/>
7
- <label for="year">年份</label>
8
- <input type="checkbox" id="month" value="month" v-model="nameForSql"/>
9
- <label for="month">月份</label>
10
- <input type="checkbox" id="week" value="week" v-model="nameForSql"/>
11
- <label for="week">周</label>
12
- <input type="checkbox" id="day" value="day" v-model="nameForSql"/>
13
- <label for="day">日</label>
14
- <input type="checkbox" id="f_userType" value="f_user_type" v-model="nameForSql"/>
15
- <label for="f_userType">用户类型</label>
16
- <input type="checkbox" id="f_gasproperties" value="f_gasproperties" v-model="nameForSql"/>
17
- <label for="f_gasproperties">用气性质</label>
18
- <input type="checkbox" id="f_orgstr" value="f_orgstr" v-model="nameForSql"/>
19
- <label for="f_orgstr">营业网点</label>
20
- <input type="checkbox" id="f_filialeids" value="f_filialeids" v-model="nameForSql"/>
21
- <label for="f_filialeids">分公司</label>
22
- <button class="btn btn-success" @click="searchData">查询</button>
23
- <span style="float: right">
24
- <report-excel class="btn btn-success" id="table"></report-excel>
25
- <report-print class="btn btn-success" id="table" top='3cm' left='0' width='100%' height='100%'></report-print></span>
26
- </div>
27
- <div id="table">
28
- <table class="table table-bordered">
29
- <thead class="text-left">
30
- <tr style="text-align:center">
31
- <p style="padding: 8px;text-align:center">用户用气汇总</p>
32
- </tr>
33
- <tr>
34
- <th v-if="nameForSql.includes('year')" style="text-align:center">年份</th>
35
- <th v-if="nameForSql.includes('month')" style="text-align:center">月份</th>
36
- <th v-if="nameForSql.includes('week')" style="text-align:center">周</th>
37
- <th v-if="nameForSql.includes('day')" style="text-align:center">日</th>
38
- <th v-if="nameForSql.includes('f_user_type')" style="text-align:center">用户类型</th>
39
- <th v-if="nameForSql.includes('f_gasproperties')" style="text-align:center">用气性质</th>
40
- <th v-if="nameForSql.includes('f_orgstr')" style="text-align:center">营业网点</th>
41
- <th v-if="nameForSql.includes('f_filialeids')" style="text-align:center">分公司</th>
42
- <th style="text-align:center"><nobr>总用气气量(m³)</nobr></th>
43
- <th style="text-align:center"><nobr>总用气金额(元)</nobr></th>
44
- <th style="text-align:center"><nobr>一阶总气量(m³)</nobr></th>
45
- <th style="text-align:center"><nobr>一阶总金额(元)</nobr></th>
46
- <th style="text-align:center"><nobr>二阶总气量(m³)</nobr></th>
47
- <th style="text-align:center"><nobr>二阶总金额(元)</nobr></th>
48
- <th style="text-align:center"><nobr>三阶总气量(m³)</nobr></th>
49
- <th style="text-align:center"><nobr>三阶总金额(元)</nobr></th>
50
- </tr></thead>
51
- <tbody>
52
- <tr v-for="item in model2">
53
- <td style="text-align:center" v-if="nameForSql.includes('year')">{{item.year}}</td>
54
- <td style="text-align:center" v-if="nameForSql.includes('month')">{{item.month}}</td>
55
- <td style="text-align:center" v-if="nameForSql.includes('week')">{{item.week}}</td>
56
- <td style="text-align:center" v-if="nameForSql.includes('day')">{{item.day}}</td>
57
- <td style="text-align:center" v-if="nameForSql.includes('f_user_type')">{{item.f_user_type}}</td>
58
- <td style="text-align:center" v-if="nameForSql.includes('f_gasproperties')">{{item.f_gasproperties}}</td>
59
- <td style="text-align:center" v-if="nameForSql.includes('f_orgstr')">{{item.f_orgstr}}</td>
60
- <td style="text-align:center" v-if="nameForSql.includes('f_filialeids')">{{item.f_filialeids}}</td>
61
- <td style="text-align:center">{{item.f_oughtamount}}</td>
62
- <td style="text-align:center">{{item.f_oughtfee}}</td>
63
- <td style="text-align:center">{{item.f_gas1}}</td>
64
- <td style="text-align:center">{{item.f_money1}}</td>
65
- <td style="text-align:center">{{item.f_gas2}}</td>
66
- <td style="text-align:center">{{item.f_money2}}</td>
67
- <td style="text-align:center">{{item.f_gas3}}</td>
68
- <td style="text-align:center">{{item.f_money3}}</td>
69
- </tr>
70
- </tbody>
71
- </table>
72
- </div>
73
- </div>
74
- </template>
75
-
76
- <script>
77
- import { HttpResetClass } from 'vue-client'
78
- export default {
79
- props:{
80
- startdate: {
81
- type: String,
82
- default: ''
83
- },
84
- enddate: {
85
- type: String,
86
- default: ''
87
- }
88
- },
89
- data(){
90
- return{
91
- model2:null,
92
- conditionForSql: '1=1',
93
- nameForSql:[],
94
- groupNameForSql :'',
95
-
96
- }
97
- },
98
- ready (){
99
- },
100
- methods :{
101
- async searchData(){
102
- if(this.groupNameForSql) {
103
- let load = new HttpResetClass()
104
- let res = await load.load('POST', 'rs/sql/gasAnalysisSummary',
105
- {data: {condition: this.conditionForSql, groupname: this.groupNameForSql}},
106
- {resolveMsg: null, rejectMsg: null})
107
- console.log('res返回', res)
108
- this.model2 = res.data
109
- console.log('res返回123', this.model2)
110
- }else{
111
- window.alert("请选择汇总项")
112
- }
113
- },
114
- //拼接groupName1
115
- getGroupName1(){
116
- console.log("this.nameForSql.length:"+this.nameForSql.length)
117
- let str= ''
118
- let i=0
119
- for(;i<this.nameForSql.length-1;i++){
120
- str +=this.nameForSql[i]+','
121
- }
122
- str +=this.nameForSql[i]
123
- this.groupNameForSql =str.trim()
124
- console.log("拼接的groupname为:"+this.groupNameForSql)
125
- console.log("拼接的groupname[][]为:"+this.nameForSql)
126
- },
127
-
128
-
129
- },
130
- watch:{
131
-
132
- 'nameForSql'(){
133
- // this.nameForSql =this.groupNameByDate;
134
- this.getGroupName1()
135
-
136
-
137
- },
138
- '$parent.condition'(val){
139
- console.log("监听groupNameByDate,新"+val+"旧:")
140
- this.conditionForSql = val
141
- }
142
- }
143
- }
144
- </script>
145
-
146
- <style scoped>
147
- .mystyle2{
148
- width: 100%;
149
- height: 35px;
150
- /*background: #00A3F0;*/
151
- padding-left: 15px;
152
- float: left;
153
- }
154
- .datapanel {
155
- color: #333;
156
- background-color: white;
157
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
158
- padding: 10px 30px 10px 30px;
159
- border-radius:15px;
160
- }
161
-
162
- </style>
1
+ <template lang="html">
2
+ <div class="span" >
3
+ <p class="bg-info text-center " style="padding: 8px;">用户用气汇总</p>
4
+ <div class="mystyle2 " >
5
+ <label class="control-label">汇总项</label>
6
+ <input type="checkbox" id="year" value="year" v-model="nameForSql"/>
7
+ <label for="year">年份</label>
8
+ <input type="checkbox" id="month" value="month" v-model="nameForSql"/>
9
+ <label for="month">月份</label>
10
+ <input type="checkbox" id="week" value="week" v-model="nameForSql"/>
11
+ <label for="week">周</label>
12
+ <input type="checkbox" id="day" value="day" v-model="nameForSql"/>
13
+ <label for="day">日</label>
14
+ <input type="checkbox" id="f_userType" value="f_user_type" v-model="nameForSql"/>
15
+ <label for="f_userType">用户类型</label>
16
+ <input type="checkbox" id="f_gasproperties" value="f_gasproperties" v-model="nameForSql"/>
17
+ <label for="f_gasproperties">用气性质</label>
18
+ <input type="checkbox" id="f_orgstr" value="f_orgstr" v-model="nameForSql"/>
19
+ <label for="f_orgstr">营业网点</label>
20
+ <input type="checkbox" id="f_filialeids" value="f_filialeids" v-model="nameForSql"/>
21
+ <label for="f_filialeids">分公司</label>
22
+ <button class="btn btn-success" @click="searchData">查询</button>
23
+ <span style="float: right">
24
+ <report-excel class="btn btn-success" id="table"></report-excel>
25
+ <report-print class="btn btn-success" id="table" top='3cm' left='0' width='100%' height='100%'></report-print></span>
26
+ </div>
27
+ <div id="table">
28
+ <table class="table table-bordered">
29
+ <thead class="text-left">
30
+ <tr style="text-align:center">
31
+ <p style="padding: 8px;text-align:center">用户用气汇总</p>
32
+ </tr>
33
+ <tr>
34
+ <th v-if="nameForSql.includes('year')" style="text-align:center">年份</th>
35
+ <th v-if="nameForSql.includes('month')" style="text-align:center">月份</th>
36
+ <th v-if="nameForSql.includes('week')" style="text-align:center">周</th>
37
+ <th v-if="nameForSql.includes('day')" style="text-align:center">日</th>
38
+ <th v-if="nameForSql.includes('f_user_type')" style="text-align:center">用户类型</th>
39
+ <th v-if="nameForSql.includes('f_gasproperties')" style="text-align:center">用气性质</th>
40
+ <th v-if="nameForSql.includes('f_orgstr')" style="text-align:center">营业网点</th>
41
+ <th v-if="nameForSql.includes('f_filialeids')" style="text-align:center">分公司</th>
42
+ <th style="text-align:center"><nobr>总用气气量(m³)</nobr></th>
43
+ <th style="text-align:center"><nobr>总用气金额(元)</nobr></th>
44
+ <th style="text-align:center"><nobr>一阶总气量(m³)</nobr></th>
45
+ <th style="text-align:center"><nobr>一阶总金额(元)</nobr></th>
46
+ <th style="text-align:center"><nobr>二阶总气量(m³)</nobr></th>
47
+ <th style="text-align:center"><nobr>二阶总金额(元)</nobr></th>
48
+ <th style="text-align:center"><nobr>三阶总气量(m³)</nobr></th>
49
+ <th style="text-align:center"><nobr>三阶总金额(元)</nobr></th>
50
+ </tr></thead>
51
+ <tbody>
52
+ <tr v-for="item in model2">
53
+ <td style="text-align:center" v-if="nameForSql.includes('year')">{{item.year}}</td>
54
+ <td style="text-align:center" v-if="nameForSql.includes('month')">{{item.month}}</td>
55
+ <td style="text-align:center" v-if="nameForSql.includes('week')">{{item.week}}</td>
56
+ <td style="text-align:center" v-if="nameForSql.includes('day')">{{item.day}}</td>
57
+ <td style="text-align:center" v-if="nameForSql.includes('f_user_type')">{{item.f_user_type}}</td>
58
+ <td style="text-align:center" v-if="nameForSql.includes('f_gasproperties')">{{item.f_gasproperties}}</td>
59
+ <td style="text-align:center" v-if="nameForSql.includes('f_orgstr')">{{item.f_orgstr}}</td>
60
+ <td style="text-align:center" v-if="nameForSql.includes('f_filialeids')">{{item.f_filialeids}}</td>
61
+ <td style="text-align:center">{{item.f_oughtamount}}</td>
62
+ <td style="text-align:center">{{item.f_oughtfee}}</td>
63
+ <td style="text-align:center">{{item.f_gas1}}</td>
64
+ <td style="text-align:center">{{item.f_money1}}</td>
65
+ <td style="text-align:center">{{item.f_gas2}}</td>
66
+ <td style="text-align:center">{{item.f_money2}}</td>
67
+ <td style="text-align:center">{{item.f_gas3}}</td>
68
+ <td style="text-align:center">{{item.f_money3}}</td>
69
+ </tr>
70
+ </tbody>
71
+ </table>
72
+ </div>
73
+ </div>
74
+ </template>
75
+
76
+ <script>
77
+ import { HttpResetClass } from 'vue-client'
78
+ export default {
79
+ props:{
80
+ startdate: {
81
+ type: String,
82
+ default: ''
83
+ },
84
+ enddate: {
85
+ type: String,
86
+ default: ''
87
+ }
88
+ },
89
+ data(){
90
+ return{
91
+ model2:null,
92
+ conditionForSql: '1=1',
93
+ nameForSql:[],
94
+ groupNameForSql :'',
95
+
96
+ }
97
+ },
98
+ ready (){
99
+ },
100
+ methods :{
101
+ async searchData(){
102
+ if(this.groupNameForSql) {
103
+ let load = new HttpResetClass()
104
+ let res = await load.load('POST', 'rs/sql/gasAnalysisSummary',
105
+ {data: {condition: this.conditionForSql, groupname: this.groupNameForSql}},
106
+ {resolveMsg: null, rejectMsg: null})
107
+ console.log('res返回', res)
108
+ this.model2 = res.data
109
+ console.log('res返回123', this.model2)
110
+ }else{
111
+ window.alert("请选择汇总项")
112
+ }
113
+ },
114
+ //拼接groupName1
115
+ getGroupName1(){
116
+ console.log("this.nameForSql.length:"+this.nameForSql.length)
117
+ let str= ''
118
+ let i=0
119
+ for(;i<this.nameForSql.length-1;i++){
120
+ str +=this.nameForSql[i]+','
121
+ }
122
+ str +=this.nameForSql[i]
123
+ this.groupNameForSql =str.trim()
124
+ console.log("拼接的groupname为:"+this.groupNameForSql)
125
+ console.log("拼接的groupname[][]为:"+this.nameForSql)
126
+ },
127
+
128
+
129
+ },
130
+ watch:{
131
+
132
+ 'nameForSql'(){
133
+ // this.nameForSql =this.groupNameByDate;
134
+ this.getGroupName1()
135
+
136
+
137
+ },
138
+ '$parent.condition'(val){
139
+ console.log("监听groupNameByDate,新"+val+"旧:")
140
+ this.conditionForSql = val
141
+ }
142
+ }
143
+ }
144
+ </script>
145
+
146
+ <style scoped>
147
+ .mystyle2{
148
+ width: 100%;
149
+ height: 35px;
150
+ /*background: #00A3F0;*/
151
+ padding-left: 15px;
152
+ float: left;
153
+ }
154
+ .datapanel {
155
+ color: #333;
156
+ background-color: white;
157
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
158
+ padding: 10px 30px 10px 30px;
159
+ border-radius:15px;
160
+ }
161
+
162
+ </style>
@@ -180,6 +180,9 @@
180
180
  <th style="text-align:center"><nobr>指令生成时间</nobr></th>
181
181
  <th style="text-align:center"><nobr>指令发送时间</nobr></th>
182
182
  <th style="text-align:center"><nobr>上表时间</nobr></th>
183
+ <th style="text-align:center">
184
+ <nobr>充值金额</nobr>
185
+ </th>
183
186
  <th style="text-align:center">
184
187
  <nobr>操作内容</nobr>
185
188
  </th>
@@ -239,6 +242,9 @@
239
242
  </td>
240
243
  <td style="text-align:center"><nobr>{{row.f_send_date}}</nobr></td>
241
244
  <td style="text-align:center"><nobr>{{row.f_callback_date}}</nobr></td>
245
+ <th style="text-align:center">
246
+ <nobr>{{row.f_collection}}</nobr>
247
+ </th>
242
248
  <td style="text-align:center">
243
249
  <nobr>{{row.note}}</nobr>
244
250
  </td>
@@ -1,149 +1,149 @@
1
- <template lang="html">
2
- <div class="span " id="table1">
3
- <p class="bg-info text-center " style="padding: 8px;">失联分析汇总</p>
4
- <div class="mystyle2 " >
5
- <label class="control-label">汇总项</label>
6
- <input type="checkbox" id="u.f_user_type" value="u.f_user_type" v-model="nameForSql"/>
7
- <label for="u.f_user_type">用户类型</label>
8
- <input type="checkbox" id="u.f_gasproperties" value="u.f_gasproperties" v-model="nameForSql"/>
9
- <label for="u.f_gasproperties">用气性质</label>
10
- <input type="checkbox" id="u.f_orgstr" value="u.f_orgstr" v-model="nameForSql"/>
11
- <label for="u.f_orgstr">分公司</label>
12
- <button class="btn btn-success" @click="searchData">查询</button>
13
- <span style="float: right">
14
- <report-excel class="btn btn-success" id="table1"></report-excel>
15
- <report-print class="btn btn-success" id="table1" top='3cm' left='0' width='100%' height='100%'></report-print></span>
16
- </div>
17
- <table class="table table-bordered padding-top: 10px;">
18
- <thead class="text-left">
19
- <tr>
20
- <th v-if="nameForSql.includes('u.f_user_type')" style="text-align:center">用户类型</th>
21
- <th v-if="nameForSql.includes('u.f_gasproperties')" style="text-align:center">用气性质</th>
22
- <th v-if="nameForSql.includes('u.f_orgstr')" style="text-align:center">分公司</th>
23
- <th style="text-align:center"><nobr></nobr></th>
24
- <th style="text-align:center"><nobr>5天到7天</nobr></th>
25
- <th style="text-align:center"><nobr>7天到15天</nobr></th>
26
- <th style="text-align:center"><nobr>15天到30天</nobr></th>
27
- <th style="text-align:center"><nobr>30天到60天</nobr></th>
28
- <th style="text-align:center"><nobr>60天以上</nobr></th>
29
- </tr></thead>
30
- <tbody>
31
- <tr v-for="item in model2">
32
-
33
- <td style="text-align:center" v-if="nameForSql.includes('u.f_user_type')">{{item.f_user_type}}</td>
34
- <td style="text-align:center" v-if="nameForSql.includes('u.f_gasproperties')">{{item.f_gasproperties}}</td>
35
- <td style="text-align:center" v-if="nameForSql.includes('u.f_orgstr')">{{item.f_orgstr}}</td>
36
- <td style="text-align:center">{{item._five}}</td>
37
- <td style="text-align:center">{{item.five_seven}}</td>
38
- <td style="text-align:center">{{item.seven_fifteen}}</td>
39
- <td style="text-align:center">{{item.fifteen_thirty}}</td>
40
- <td style="text-align:center">{{item.thirty_sixty}}</td>
41
- <td style="text-align:center">{{item.sixty_}}</td>
42
- </tr>
43
- </tbody>
44
- </table>
45
- </div>
46
- </template>
47
-
48
- <script>
49
- import {PagedList} from 'vue-client'
50
- import * as Util from '../../../../Util'
51
- import { all, HttpResetClass } from 'vue-client'
52
-
53
- export default {
54
- props:{
55
- condition:'1=1',
56
- startdate: {
57
- type: String,
58
- default: Util.toStandardDateString()
59
- },
60
- enddate: {
61
- type: String,
62
- default: Util.toStandardDateString()
63
- }
64
- // condition: {
65
- // type: String,
66
- // default: '1=1'
67
- // },
68
- // groupNameByDate: {
69
- // type: [],
70
- // default:['year']
71
- // }
72
- },
73
- data(){
74
- return{
75
- enddate:'',
76
- startdate:'',
77
- model2:null,
78
- conditionForSql: '1=1',
79
- nameForSql:[],
80
- groupNameForSql :'',
81
-
82
- }
83
- },
84
- ready (){
85
- },
86
- methods :{
87
- async searchData(){
88
- if(this.groupNameForSql) {
89
- let load = new HttpResetClass()
90
- let res = await load.load('POST', 'rs/sql/webmeter_getNewExceSum',
91
- {data: {condition: this.condition, groupname: this.groupNameForSql,startDate:this.startdate,endDate:this.enddate}},
92
- {resolveMsg: null, rejectMsg: null})
93
- console.log('res返回', res)
94
- this.model2 = res.data
95
- console.log('res返回123', this.model2)
96
- }else{
97
- window.alert("请选择汇总项")
98
- }
99
- },
100
- //拼接groupName1
101
- getGroupName1(){
102
- console.log("this.nameForSql.length:"+this.nameForSql.length)
103
- let str= ''
104
- let i=0
105
- for(;i<this.nameForSql.length-1;i++){
106
- str +=this.nameForSql[i]+','
107
- }
108
- str +=this.nameForSql[i]
109
- this.groupNameForSql =str.trim()
110
- },
111
-
112
-
113
- },
114
- watch:{
115
- 'nameForSql'(){
116
- // this.nameForSql =this.groupNameByDate;
117
- this.getGroupName1()
118
- },
119
- 'startdate'(val){
120
- this.startdate=val
121
- },
122
- 'enddate'(val){
123
- this.enddate=val
124
- },
125
- 'condition'(val){
126
- console.log("监听groupNameByDate,新"+val+"旧:")
127
- this.conditionForSql = val
128
- }
129
- }
130
- }
131
- </script>
132
-
133
- <style scoped>
134
- .mystyle2{
135
- width: 100%;
136
- height: 35px;
137
- /*background: #00A3F0;*/
138
- padding-left: 15px;
139
- float: left;
140
- }
141
- .datapanel {
142
- color: #333;
143
- background-color: white;
144
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
145
- padding: 10px 30px 10px 30px;
146
- border-radius:15px;
147
- }
148
-
149
- </style>
1
+ <template lang="html">
2
+ <div class="span " id="table1">
3
+ <p class="bg-info text-center " style="padding: 8px;">失联分析汇总</p>
4
+ <div class="mystyle2 " >
5
+ <label class="control-label">汇总项</label>
6
+ <input type="checkbox" id="u.f_user_type" value="u.f_user_type" v-model="nameForSql"/>
7
+ <label for="u.f_user_type">用户类型</label>
8
+ <input type="checkbox" id="u.f_gasproperties" value="u.f_gasproperties" v-model="nameForSql"/>
9
+ <label for="u.f_gasproperties">用气性质</label>
10
+ <input type="checkbox" id="u.f_orgstr" value="u.f_orgstr" v-model="nameForSql"/>
11
+ <label for="u.f_orgstr">分公司</label>
12
+ <button class="btn btn-success" @click="searchData">查询</button>
13
+ <span style="float: right">
14
+ <report-excel class="btn btn-success" id="table1"></report-excel>
15
+ <report-print class="btn btn-success" id="table1" top='3cm' left='0' width='100%' height='100%'></report-print></span>
16
+ </div>
17
+ <table class="table table-bordered padding-top: 10px;">
18
+ <thead class="text-left">
19
+ <tr>
20
+ <th v-if="nameForSql.includes('u.f_user_type')" style="text-align:center">用户类型</th>
21
+ <th v-if="nameForSql.includes('u.f_gasproperties')" style="text-align:center">用气性质</th>
22
+ <th v-if="nameForSql.includes('u.f_orgstr')" style="text-align:center">分公司</th>
23
+ <th style="text-align:center"><nobr></nobr></th>
24
+ <th style="text-align:center"><nobr>5天到7天</nobr></th>
25
+ <th style="text-align:center"><nobr>7天到15天</nobr></th>
26
+ <th style="text-align:center"><nobr>15天到30天</nobr></th>
27
+ <th style="text-align:center"><nobr>30天到60天</nobr></th>
28
+ <th style="text-align:center"><nobr>60天以上</nobr></th>
29
+ </tr></thead>
30
+ <tbody>
31
+ <tr v-for="item in model2">
32
+
33
+ <td style="text-align:center" v-if="nameForSql.includes('u.f_user_type')">{{item.f_user_type}}</td>
34
+ <td style="text-align:center" v-if="nameForSql.includes('u.f_gasproperties')">{{item.f_gasproperties}}</td>
35
+ <td style="text-align:center" v-if="nameForSql.includes('u.f_orgstr')">{{item.f_orgstr}}</td>
36
+ <td style="text-align:center">{{item._five}}</td>
37
+ <td style="text-align:center">{{item.five_seven}}</td>
38
+ <td style="text-align:center">{{item.seven_fifteen}}</td>
39
+ <td style="text-align:center">{{item.fifteen_thirty}}</td>
40
+ <td style="text-align:center">{{item.thirty_sixty}}</td>
41
+ <td style="text-align:center">{{item.sixty_}}</td>
42
+ </tr>
43
+ </tbody>
44
+ </table>
45
+ </div>
46
+ </template>
47
+
48
+ <script>
49
+ import {PagedList} from 'vue-client'
50
+ import * as Util from '../../../../Util'
51
+ import { all, HttpResetClass } from 'vue-client'
52
+
53
+ export default {
54
+ props:{
55
+ condition:'1=1',
56
+ startdate: {
57
+ type: String,
58
+ default: Util.toStandardDateString()
59
+ },
60
+ enddate: {
61
+ type: String,
62
+ default: Util.toStandardDateString()
63
+ }
64
+ // condition: {
65
+ // type: String,
66
+ // default: '1=1'
67
+ // },
68
+ // groupNameByDate: {
69
+ // type: [],
70
+ // default:['year']
71
+ // }
72
+ },
73
+ data(){
74
+ return{
75
+ enddate:'',
76
+ startdate:'',
77
+ model2:null,
78
+ conditionForSql: '1=1',
79
+ nameForSql:[],
80
+ groupNameForSql :'',
81
+
82
+ }
83
+ },
84
+ ready (){
85
+ },
86
+ methods :{
87
+ async searchData(){
88
+ if(this.groupNameForSql) {
89
+ let load = new HttpResetClass()
90
+ let res = await load.load('POST', 'rs/sql/webmeter_getNewExceSum',
91
+ {data: {condition: this.condition, groupname: this.groupNameForSql,startDate:this.startdate,endDate:this.enddate}},
92
+ {resolveMsg: null, rejectMsg: null})
93
+ console.log('res返回', res)
94
+ this.model2 = res.data
95
+ console.log('res返回123', this.model2)
96
+ }else{
97
+ window.alert("请选择汇总项")
98
+ }
99
+ },
100
+ //拼接groupName1
101
+ getGroupName1(){
102
+ console.log("this.nameForSql.length:"+this.nameForSql.length)
103
+ let str= ''
104
+ let i=0
105
+ for(;i<this.nameForSql.length-1;i++){
106
+ str +=this.nameForSql[i]+','
107
+ }
108
+ str +=this.nameForSql[i]
109
+ this.groupNameForSql =str.trim()
110
+ },
111
+
112
+
113
+ },
114
+ watch:{
115
+ 'nameForSql'(){
116
+ // this.nameForSql =this.groupNameByDate;
117
+ this.getGroupName1()
118
+ },
119
+ 'startdate'(val){
120
+ this.startdate=val
121
+ },
122
+ 'enddate'(val){
123
+ this.enddate=val
124
+ },
125
+ 'condition'(val){
126
+ console.log("监听groupNameByDate,新"+val+"旧:")
127
+ this.conditionForSql = val
128
+ }
129
+ }
130
+ }
131
+ </script>
132
+
133
+ <style scoped>
134
+ .mystyle2{
135
+ width: 100%;
136
+ height: 35px;
137
+ /*background: #00A3F0;*/
138
+ padding-left: 15px;
139
+ float: left;
140
+ }
141
+ .datapanel {
142
+ color: #333;
143
+ background-color: white;
144
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
145
+ padding: 10px 30px 10px 30px;
146
+ border-radius:15px;
147
+ }
148
+
149
+ </style>