manage-client 3.2.12 → 3.2.16

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 (87) hide show
  1. package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
  2. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  3. package/.gradle/5.4.1/gc.properties +0 -0
  4. package/build/dev-server.js +24 -8
  5. package/package.json +1 -1
  6. package/src/.idea/misc.xml +9 -0
  7. package/src/.idea/modules.xml +8 -0
  8. package/src/.idea/src.iml +9 -0
  9. package/src/.idea/vcs.xml +6 -0
  10. package/src/.idea/workspace.xml +93 -0
  11. package/src/components/BasisEcharts/BarChart.vue +247 -247
  12. package/src/components/SellReport/BonSummary.vue +178 -178
  13. package/src/components/SellReport/CivilGasReport.vue +194 -0
  14. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  15. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  16. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  17. package/src/components/SellReport/NonResidentGas.vue +203 -203
  18. package/src/components/SellReport/OutletTable.vue +258 -258
  19. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  20. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  21. package/src/components/SellReport/SellingTable.vue +220 -220
  22. package/src/components/SellReport/UnCivilGasReport.vue +194 -0
  23. package/src/components/SellReport/UserSellingGas.vue +177 -177
  24. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  25. package/src/components/daping/GMap.vue +636 -636
  26. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  27. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  28. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  29. package/src/components/sale/businessquery/BusinesQuery.vue +2 -3
  30. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  31. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  32. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  33. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  34. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  35. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  36. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  37. package/src/components/sale/config/exportConfig.js +1 -1
  38. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  39. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  40. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  41. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  42. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  43. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  44. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +4 -5
  45. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  46. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  47. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  48. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  49. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  50. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  51. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  52. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  53. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  54. package/src/filiale/WEINAN/ReportDataQuery.vue +249 -249
  55. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  56. package/src/filiale/WEINAN/UserGasAll.vue +577 -579
  57. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  58. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  59. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  60. package/src/filiale/WEINAN/reportManage.js +12 -12
  61. package/src/filiale/WEINAN/sale.js +36 -36
  62. package/src/filiale/alashan/reportManage.js +10 -10
  63. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  64. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  65. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  66. package/src/filiale/meihekou/CardHandplanQuery.vue +612 -541
  67. package/src/filiale/meihekou/RecordInfoQuery.vue +1158 -1158
  68. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  69. package/src/filiale/meihekou/config/exportConfig.js +804 -804
  70. package/src/filiale/meihekou/sale.js +26 -26
  71. package/src/filiale/pingxiang/sale.js +9 -9
  72. package/src/filiale/qingtongxia/sale.js +13 -13
  73. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  74. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  75. package/src/filiale/rongchuang/reportManage.js +11 -11
  76. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  77. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  78. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  79. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  80. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  81. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  82. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  83. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  84. package/src/filiale/tongchuan/config/exportConfig.js +857 -857
  85. package/src/main.js +5 -5
  86. package/src/reportManage.js +8 -0
  87. package/static/wuhai.json +1610 -1610
@@ -1,387 +1,387 @@
1
- <template>
2
- <div id='app' class="basic-main" style="height: 98%;" v-show="(!echarts)&&(!isActiveTotalForm)">
3
- <criteria-paged :model="model" :pager='true' v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <div class="col-sm-2">
8
- <label class="font_normal_body">表&nbsp;钢&nbsp;号&nbsp;</label>
9
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_meternumber" placeholder='表钢号'
10
- condition="p.f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
11
- >
12
- </div>
13
- <div class="col-sm-2 ">
14
- <label class="font_normal_body">组织机构</label>
15
- <res-select :initresid="$parent.$parent.orgid"
16
- style="width:60%"
17
- @res-select="$parent.$parent.getRes"
18
- restype='organization'>
19
- </res-select>
20
- </div>
21
- <div class="col-sm-2">
22
- <label class="font_normal_body">客户编号</label>
23
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
24
- condition="u.f_userinfo_code like '%{}%'" v-next-el='f_userinfo_code' v-el:meternumber
25
- >
26
- </div>
27
- <div class="col-sm-2">
28
- <label class="font_normal_body">客户名称</label>
29
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'
30
- condition="u.f_user_name like '%{}%'" v-next-el='userid' v-el:username>
31
- </div>
32
- <div class="span" style="float:right;">
33
-
34
- <button class="button_search button_spacing" @click="search()">查询</button>
35
- <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
36
- <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
37
- :field="$parent.$parent.getfield"
38
- sqlurl="rs/logic/exportfile" sql-name="selectSignAnalysisList" template-name='标记分析'
39
- :choose-col="true"></export-excel>
40
- <button class="button_search button_spacing" @click="$parent.$parent.showEcharts()">显示图表</button>
41
- <button class="button_export button_spacing" style="width: max-content" @click="$parent.$parent.showEform()">显示汇总</button>
42
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
43
- </div>
44
- </div>
45
- <div class="row" v-show="$parent.$parent.criteriaShow">
46
- <div class="col-sm-2">
47
- <label class="font_normal_body">客户地址</label>
48
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_address" placeholder='地址'
49
- condition="a.f_address like '%{}%'" v-el:xq v-next-el='address' v-el:area
50
- >
51
- </div>
52
- <div class="col-sm-2">
53
- <label class="font_normal_body">客户类型</label>
54
- <v-select style="width:60%" id="f_user_type"
55
- v-model="model.f_user_type"
56
- placeholder='客户类型'
57
- :value.sync="model.f_user_type"
58
- :options='$parent.$parent.usertypes'
59
- condition="f_user_type = '{}'"
60
- close-on-select>
61
- </v-select>
62
- </div>
63
- <div class="col-sm-2">
64
- <label class="font_normal_body">用气性质</label>
65
- <v-select style="width:60%" id="f_gasproperties"
66
- v-model="model.f_gasproperties"
67
- placeholder='用气性质'
68
- :value.sync="model.f_gasproperties"
69
- :options='$parent.$parent.Gasproperties'
70
- condition="f_gasproperties = '{}'"
71
- close-on-select>
72
- </v-select>
73
- </div>
74
- <div class="col-sm-2">
75
- <label class="font_normal_body">安装时间</label>
76
- <datepicker style="width:60%" id="startDate" placeholder="开始时间"
77
- v-model="model.start_f_parameter_date"
78
- :value.sync="model.start_f_parameter_date"
79
- :disabled-days-of-Week="[]"
80
- condition="f.f_install_date >='{}'"
81
- :format="'yyyy-MM-dd HH:mm:ss'"
82
- :show-reset-button="reset">
83
- </datepicker>
84
- </div>
85
- <div class="col-sm-2">
86
- <label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
87
- <datepicker style="width:60%" id="endDate" placeholder="结束日期"
88
- v-model="model.end_f_parameter_date"
89
- :value.sync="model.end_f_parameter_date"
90
- :disabled-days-of-Week="[]"
91
- :format="'yyyy-MM-dd HH:mm:ss'"
92
- condition="f.f_install_date <='{}'"
93
- :show-reset-button="reset">
94
- </datepicker>
95
- </div>
96
- </div>
97
-
98
- </div>
99
- </criteria>
100
- <data-grid id="usergasall" :model="model" partial='list' class="list_area table_sy" v-ref:grid>
101
- <template partial='head'>
102
- <tr>
103
- <th style="text-align:center">
104
- <nobr>序号</nobr>
105
- </th>
106
- <th style="text-align:center">
107
- <nobr>组织机构</nobr>
108
- </th>
109
- <th style="text-align:center">
110
- <nobr>表钢号</nobr>
111
- </th>
112
- <th style="text-align:center">
113
- <nobr>客户编号</nobr>
114
- </th>
115
- <th style="text-align:center">
116
- <nobr>客户名称</nobr>
117
- </th>
118
- <th style="text-align:center">
119
- <nobr>客户类型</nobr>
120
- </th>
121
- <th style="text-align:center">
122
- <nobr>用气性质</nobr>
123
- </th>
124
- <th style="text-align:center">
125
- <nobr>地址</nobr>
126
- </th>
127
- <th style="text-align:center">
128
- <nobr>安装时间</nobr>
129
- </th>
130
- <th style="text-align:center">
131
- <nobr>待处理数量</nobr>
132
- </th>
133
- <th style="text-align:center">
134
- <nobr>已处理数量</nobr>
135
- </th>
136
- <th style="text-align:center">
137
- <nobr>最早上报时间</nobr>
138
- </th>
139
- <th style="text-align:center">
140
- <nobr>最晚上报时间</nobr>
141
- </th>
142
- </tr>
143
-
144
-
145
- </template>
146
- <template partial='body'>
147
- <td style="text-align:center"><nobr>{{$index+1}}</nobr></td>
148
- <td style="text-align:center"><nobr>{{row.f_orgname}}</nobr></td>
149
- <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
150
- <td style="text-align:center"><nobr>{{row.f_userinfo_code}}</nobr></td>
151
- <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
152
- <td style="text-align:center"><nobr>{{row.f_user_type}}</nobr></td>
153
- <td style="text-align:center"><nobr>{{row.f_gasproperties}}</nobr></td>
154
- <td><nobr>{{row.f_address}}</nobr></td>
155
- <td style="text-align:center"><nobr>{{row.f_install_date}}</nobr></td>
156
- <td style="text-align:center"><nobr>{{row.type1}}</nobr></td>
157
- <td style="text-align:center"><nobr>{{row.type2}}</nobr></td>
158
- <td style="text-align:center"><nobr>{{row.mindate}}</nobr></td>
159
- <td style="text-align:center"><nobr>{{row.maxdate}}</nobr></td>
160
- </template>
161
- </data-grid>
162
- </criteria-paged>
163
- </div>
164
- <!-- <div style="height: 40px;width: 100%;" v-show="echarts">-->
165
- <!--&lt;!&ndash; <div style="display: inline-block;">&ndash;&gt;-->
166
- <!--&lt;!&ndash; <button class="button_search button_spacing" @click="notShowEcharts()">隐藏图表</button>&ndash;&gt;-->
167
- <!--&lt;!&ndash; </div>&ndash;&gt;-->
168
- <!-- &lt;!&ndash; 图显示模板&ndash;&gt;-->
169
-
170
- <!-- </div>-->
171
- <div style="width: 100%;height: 100%;" v-show="echarts">
172
- <sign-analysis-echarts :condition="condition" :startdate="startDate" :groupname="groupname[0]"
173
- :enddate="endDate" :echarts="echarts"></sign-analysis-echarts>
174
- </div>
175
- <!-- <div style="height: 40px;width: 100%;" v-show="isActiveTotalForm">-->
176
- <!-- &lt;!&ndash; <div style="display: inline-block;">&ndash;&gt;-->
177
- <!-- &lt;!&ndash; <button class="button_search button_spacing" @click="notShowEform()">隐藏汇总</button>&ndash;&gt;-->
178
- <!-- &lt;!&ndash; </div>&ndash;&gt;-->
179
- <!-- &lt;!&ndash; 汇总显示模板&ndash;&gt;-->
180
- <!-- <div class="mystyle row" style="display: inline-block;">-->
181
- <!-- <label class="font_normal_body">汇总统计项</label>-->
182
- <!-- <v-select style="width:60%" id="signtype" v-model="signtype"-->
183
- <!-- placeholder='分组项'-->
184
- <!-- value-single="true"-->
185
- <!-- :value.sync="signtype"-->
186
- <!-- :options='getSignType'-->
187
- <!-- close-on-select></v-select>-->
188
- <!-- </div>-->
189
- <!--</div>-->
190
- <div style="width: 100%;height: 100%;" v-show="isActiveTotalForm">
191
- <sign-analysis-eform :signtype="signtype[0]" :condition="condition"></sign-analysis-eform>
192
- </div>
193
- </template>
194
-
195
- <script>
196
- import {PagedList} from 'vue-client'
197
- import signAnalysisEcharts from './signAnalysisEcharts'
198
- import * as Util from '../../../Util'
199
- import getLodop from '../../../plugins/LodopFuncs'
200
- import plugins from '../../../plugins/GetLoginInfoService'
201
- export default {
202
- title: '标记分析',
203
- props: ['data'],
204
- components: {signAnalysisEcharts},
205
- data() {
206
- return {
207
- model: new PagedList('rs/sql/selectSignAnalysisList', 20),
208
- groupname: ['year'],
209
- getgroupname: [
210
- {label: '年份', value: 'year'},
211
- {label: '月份', value: 'month'},
212
- {label: '周', value: 'week'},
213
- {label: '天', value: 'day'}
214
- ],
215
- orgid:[this.$login.f.orgid],
216
- criteriaShow:false,
217
- orgCondtionStr: '(' + this.$login.f.orgid + ')',
218
- reportStr: null,
219
- show: false,
220
- outlets: [],
221
- operator: [],
222
- filename: '',
223
- echarts: false,
224
- searchshow: false,
225
- startDate: '',
226
- endDate: '',
227
- isActiveTotalForm: false,
228
- condition: '1=1',
229
-
230
- signtype:['type1'],
231
- getfield:{"f_orgname":"组织机构","f_meternumber":"表钢号",
232
- "f_userinfo_code":"客户编号",
233
- "f_user_name":"客户名称","f_user_type":"客户类型",
234
- "f_gasproperties":"用气性质",
235
- "f_address":"地址","f_install_date":"安装时间",
236
- "type1":"待处理数量",
237
- "type2":"已处理数量",
238
- "mindate":"最早上报时间",
239
- "maxdate":"最晚上报时间"
240
- },
241
- getSignType:[
242
- {label: '频繁磁干扰', value: 'type1'},
243
- {label: '间断性失联', value: 'type2'},
244
- {label: '间断性指令失败', value: 'type3'},
245
- {label: '锂电低电故障', value: 'type4'},
246
- {label: '频繁报拆表', value: 'type5'},
247
- {label: '未装电池', value: 'type6'},
248
- {label: '拆电池了', value: 'type7'},
249
- {label: '电池低压', value: 'type8'},
250
- {label: '锂电低电', value: 'type9'},
251
- {label: '连续失联', value: 'type10'},
252
- {label: '频繁报过流保护关阀', value: 'type11'},
253
- {label: '负值故障', value: 'type12'},
254
- {label: '其他', value: 'type13'}
255
- ],
256
- obj: {
257
- userid: this.$login.f.id,
258
- source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
259
- res: this.$login.f.f_fengongsi,
260
- resids: this.$login.f.f_orgids
261
- }
262
- }
263
- },
264
- ready() {
265
- this.$refs.paged.$refs.cri.model.start_f_parameter_date = Util.toStandardDateString() + ' 00:00:00'
266
- this.$refs.paged.$refs.cri.model.end_f_parameter_date = Util.toStandardDateString() + ' 23:59:59'
267
- this.$refs.paged.$refs.cri.search()
268
- },
269
- methods: {
270
- hidden() {
271
- this.criteriaShow = !this.criteriaShow
272
- },
273
- // 查询开关
274
- seachchange() {
275
- this.searchshow = !this.searchshow
276
- },
277
- // SaveAsFile(str) {
278
- // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
279
- // if (res === 'confirm') {
280
- // let style = '<style>' +
281
- // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
282
- // let strHtml = style + document.getElementById(str).innerHTML;
283
- // console.log(strHtml);
284
- // let LODOP = getLodop();
285
- // LODOP.PRINT_INIT('');
286
- // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
287
- // LODOP.SAVE_TO_FILE('标记分析.xls')
288
- // }
289
- // })
290
- // },
291
- clearmsg() {
292
- this.$refs.paged.$refs.cri.model = {}
293
- },
294
-
295
- search(args) {
296
- this.startDate = this.$refs.paged.$refs.cri.model.start_f_parameter_date
297
- this.endDate = this.$refs.paged.$refs.cri.model.end_f_parameter_date
298
- if (this.orgCondtionStr)
299
- this.condition = this.$refs.paged.$refs.cri.condition + `and u.f_orgid in ${this.orgCondtionStr}`
300
- else
301
- this.condition = this.$refs.paged.$refs.cri.condition
302
- console.log("~~~~~~~~~~~~~~~~~~")
303
- console.log(this.condition)
304
- args.condition = this.condition
305
- this.model.search(args.condition, args.model)
306
- },
307
- // 显示柱状图
308
- showEcharts() {
309
- this.echarts = true
310
- this.isActiveTotalForm=false
311
- },
312
- // 不显示柱状图
313
- notShowEcharts() {
314
- this.echarts = false
315
- this.isActiveTotalForm=false
316
- },
317
- // 显示汇总
318
- showEform() {
319
- this.echarts = false
320
- this.isActiveTotalForm=true
321
- },
322
- // 不显示汇总
323
- notShowEform() {
324
- this.echarts = false
325
- this.isActiveTotalForm=false
326
- },
327
- close() {
328
- this.show = false
329
- },
330
- getRes(obj) {
331
- this.orgCondtionStr = plugins.convertToIn(obj)
332
- }
333
- },
334
- watch: {
335
- 'data'(val) {
336
- if (val.f_files_path) {
337
- this.getFileContent(val.f_files_path)
338
- } else {
339
- this.reportStr = null
340
- }
341
- }
342
- },
343
- computed: {
344
- getCondition() {
345
- var con=""
346
- if (this.orgCondtionStr) {
347
- con= `${this.$refs.paged.$refs.cri.condition} and u.f_orgid in ${this.orgCondtionStr}`
348
- }
349
- else{
350
- con= `${this.$refs.paged.$refs.cri.condition} `
351
- }
352
- return {
353
- condition: con ,
354
- startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
355
- endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
356
- }
357
-
358
- },
359
- usertypes() {
360
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
361
- },
362
- valveStatus() {
363
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
364
- },
365
- Gasproperties() {
366
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
367
- },
368
- Getuserstyle() {
369
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气类型')]
370
- }
371
- }
372
- }
373
- </script>
374
- <style>
375
- .mystyle {
376
- float: right;
377
- padding-right: 10%;
378
- }
379
-
380
- .datapanel {
381
- color: #333;
382
- background-color: white;
383
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
384
- padding: 10px 10px 10px 10px;
385
- border-radius: 15px;
386
- }
387
- </style>
1
+ <template>
2
+ <div id='app' class="basic-main" style="height: 98%;" v-show="(!echarts)&&(!isActiveTotalForm)">
3
+ <criteria-paged :model="model" :pager='true' v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div class="col-sm-2">
8
+ <label class="font_normal_body">表&nbsp;钢&nbsp;号&nbsp;</label>
9
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_meternumber" placeholder='表钢号'
10
+ condition="p.f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
11
+ >
12
+ </div>
13
+ <div class="col-sm-2 ">
14
+ <label class="font_normal_body">组织机构</label>
15
+ <res-select :initresid="$parent.$parent.orgid"
16
+ style="width:60%"
17
+ @res-select="$parent.$parent.getRes"
18
+ restype='organization'>
19
+ </res-select>
20
+ </div>
21
+ <div class="col-sm-2">
22
+ <label class="font_normal_body">客户编号</label>
23
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
24
+ condition="u.f_userinfo_code like '%{}%'" v-next-el='f_userinfo_code' v-el:meternumber
25
+ >
26
+ </div>
27
+ <div class="col-sm-2">
28
+ <label class="font_normal_body">客户名称</label>
29
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'
30
+ condition="u.f_user_name like '%{}%'" v-next-el='userid' v-el:username>
31
+ </div>
32
+ <div class="span" style="float:right;">
33
+
34
+ <button class="button_search button_spacing" @click="search()">查询</button>
35
+ <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
36
+ <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
37
+ :field="$parent.$parent.getfield"
38
+ sqlurl="rs/logic/exportfile" sql-name="selectSignAnalysisList" template-name='标记分析'
39
+ :choose-col="true"></export-excel>
40
+ <button class="button_search button_spacing" @click="$parent.$parent.showEcharts()">显示图表</button>
41
+ <button class="button_export button_spacing" style="width: max-content" @click="$parent.$parent.showEform()">显示汇总</button>
42
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
43
+ </div>
44
+ </div>
45
+ <div class="row" v-show="$parent.$parent.criteriaShow">
46
+ <div class="col-sm-2">
47
+ <label class="font_normal_body">客户地址</label>
48
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_address" placeholder='地址'
49
+ condition="a.f_address like '%{}%'" v-el:xq v-next-el='address' v-el:area
50
+ >
51
+ </div>
52
+ <div class="col-sm-2">
53
+ <label class="font_normal_body">客户类型</label>
54
+ <v-select style="width:60%" id="f_user_type"
55
+ v-model="model.f_user_type"
56
+ placeholder='客户类型'
57
+ :value.sync="model.f_user_type"
58
+ :options='$parent.$parent.usertypes'
59
+ condition="f_user_type = '{}'"
60
+ close-on-select>
61
+ </v-select>
62
+ </div>
63
+ <div class="col-sm-2">
64
+ <label class="font_normal_body">用气性质</label>
65
+ <v-select style="width:60%" id="f_gasproperties"
66
+ v-model="model.f_gasproperties"
67
+ placeholder='用气性质'
68
+ :value.sync="model.f_gasproperties"
69
+ :options='$parent.$parent.Gasproperties'
70
+ condition="f_gasproperties = '{}'"
71
+ close-on-select>
72
+ </v-select>
73
+ </div>
74
+ <div class="col-sm-2">
75
+ <label class="font_normal_body">安装时间</label>
76
+ <datepicker style="width:60%" id="startDate" placeholder="开始时间"
77
+ v-model="model.start_f_parameter_date"
78
+ :value.sync="model.start_f_parameter_date"
79
+ :disabled-days-of-Week="[]"
80
+ condition="f.f_install_date >='{}'"
81
+ :format="'yyyy-MM-dd HH:mm:ss'"
82
+ :show-reset-button="reset">
83
+ </datepicker>
84
+ </div>
85
+ <div class="col-sm-2">
86
+ <label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
87
+ <datepicker style="width:60%" id="endDate" placeholder="结束日期"
88
+ v-model="model.end_f_parameter_date"
89
+ :value.sync="model.end_f_parameter_date"
90
+ :disabled-days-of-Week="[]"
91
+ :format="'yyyy-MM-dd HH:mm:ss'"
92
+ condition="f.f_install_date <='{}'"
93
+ :show-reset-button="reset">
94
+ </datepicker>
95
+ </div>
96
+ </div>
97
+
98
+ </div>
99
+ </criteria>
100
+ <data-grid id="usergasall" :model="model" partial='list' class="list_area table_sy" v-ref:grid>
101
+ <template partial='head'>
102
+ <tr>
103
+ <th style="text-align:center">
104
+ <nobr>序号</nobr>
105
+ </th>
106
+ <th style="text-align:center">
107
+ <nobr>组织机构</nobr>
108
+ </th>
109
+ <th style="text-align:center">
110
+ <nobr>表钢号</nobr>
111
+ </th>
112
+ <th style="text-align:center">
113
+ <nobr>客户编号</nobr>
114
+ </th>
115
+ <th style="text-align:center">
116
+ <nobr>客户名称</nobr>
117
+ </th>
118
+ <th style="text-align:center">
119
+ <nobr>客户类型</nobr>
120
+ </th>
121
+ <th style="text-align:center">
122
+ <nobr>用气性质</nobr>
123
+ </th>
124
+ <th style="text-align:center">
125
+ <nobr>地址</nobr>
126
+ </th>
127
+ <th style="text-align:center">
128
+ <nobr>安装时间</nobr>
129
+ </th>
130
+ <th style="text-align:center">
131
+ <nobr>待处理数量</nobr>
132
+ </th>
133
+ <th style="text-align:center">
134
+ <nobr>已处理数量</nobr>
135
+ </th>
136
+ <th style="text-align:center">
137
+ <nobr>最早上报时间</nobr>
138
+ </th>
139
+ <th style="text-align:center">
140
+ <nobr>最晚上报时间</nobr>
141
+ </th>
142
+ </tr>
143
+
144
+
145
+ </template>
146
+ <template partial='body'>
147
+ <td style="text-align:center"><nobr>{{$index+1}}</nobr></td>
148
+ <td style="text-align:center"><nobr>{{row.f_orgname}}</nobr></td>
149
+ <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
150
+ <td style="text-align:center"><nobr>{{row.f_userinfo_code}}</nobr></td>
151
+ <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
152
+ <td style="text-align:center"><nobr>{{row.f_user_type}}</nobr></td>
153
+ <td style="text-align:center"><nobr>{{row.f_gasproperties}}</nobr></td>
154
+ <td><nobr>{{row.f_address}}</nobr></td>
155
+ <td style="text-align:center"><nobr>{{row.f_install_date}}</nobr></td>
156
+ <td style="text-align:center"><nobr>{{row.type1}}</nobr></td>
157
+ <td style="text-align:center"><nobr>{{row.type2}}</nobr></td>
158
+ <td style="text-align:center"><nobr>{{row.mindate}}</nobr></td>
159
+ <td style="text-align:center"><nobr>{{row.maxdate}}</nobr></td>
160
+ </template>
161
+ </data-grid>
162
+ </criteria-paged>
163
+ </div>
164
+ <!-- <div style="height: 40px;width: 100%;" v-show="echarts">-->
165
+ <!--&lt;!&ndash; <div style="display: inline-block;">&ndash;&gt;-->
166
+ <!--&lt;!&ndash; <button class="button_search button_spacing" @click="notShowEcharts()">隐藏图表</button>&ndash;&gt;-->
167
+ <!--&lt;!&ndash; </div>&ndash;&gt;-->
168
+ <!-- &lt;!&ndash; 图显示模板&ndash;&gt;-->
169
+
170
+ <!-- </div>-->
171
+ <div style="width: 100%;height: 100%;" v-show="echarts">
172
+ <sign-analysis-echarts :condition="condition" :startdate="startDate" :groupname="groupname[0]"
173
+ :enddate="endDate" :echarts="echarts"></sign-analysis-echarts>
174
+ </div>
175
+ <!-- <div style="height: 40px;width: 100%;" v-show="isActiveTotalForm">-->
176
+ <!-- &lt;!&ndash; <div style="display: inline-block;">&ndash;&gt;-->
177
+ <!-- &lt;!&ndash; <button class="button_search button_spacing" @click="notShowEform()">隐藏汇总</button>&ndash;&gt;-->
178
+ <!-- &lt;!&ndash; </div>&ndash;&gt;-->
179
+ <!-- &lt;!&ndash; 汇总显示模板&ndash;&gt;-->
180
+ <!-- <div class="mystyle row" style="display: inline-block;">-->
181
+ <!-- <label class="font_normal_body">汇总统计项</label>-->
182
+ <!-- <v-select style="width:60%" id="signtype" v-model="signtype"-->
183
+ <!-- placeholder='分组项'-->
184
+ <!-- value-single="true"-->
185
+ <!-- :value.sync="signtype"-->
186
+ <!-- :options='getSignType'-->
187
+ <!-- close-on-select></v-select>-->
188
+ <!-- </div>-->
189
+ <!--</div>-->
190
+ <div style="width: 100%;height: 100%;" v-show="isActiveTotalForm">
191
+ <sign-analysis-eform :signtype="signtype[0]" :condition="condition"></sign-analysis-eform>
192
+ </div>
193
+ </template>
194
+
195
+ <script>
196
+ import {PagedList} from 'vue-client'
197
+ import signAnalysisEcharts from './signAnalysisEcharts'
198
+ import * as Util from '../../../Util'
199
+ import getLodop from '../../../plugins/LodopFuncs'
200
+ import plugins from '../../../plugins/GetLoginInfoService'
201
+ export default {
202
+ title: '标记分析',
203
+ props: ['data'],
204
+ components: {signAnalysisEcharts},
205
+ data() {
206
+ return {
207
+ model: new PagedList('rs/sql/selectSignAnalysisList', 20),
208
+ groupname: ['year'],
209
+ getgroupname: [
210
+ {label: '年份', value: 'year'},
211
+ {label: '月份', value: 'month'},
212
+ {label: '周', value: 'week'},
213
+ {label: '天', value: 'day'}
214
+ ],
215
+ orgid:[this.$login.f.orgid],
216
+ criteriaShow:false,
217
+ orgCondtionStr: '(' + this.$login.f.orgid + ')',
218
+ reportStr: null,
219
+ show: false,
220
+ outlets: [],
221
+ operator: [],
222
+ filename: '',
223
+ echarts: false,
224
+ searchshow: false,
225
+ startDate: '',
226
+ endDate: '',
227
+ isActiveTotalForm: false,
228
+ condition: '1=1',
229
+
230
+ signtype:['type1'],
231
+ getfield:{"f_orgname":"组织机构","f_meternumber":"表钢号",
232
+ "f_userinfo_code":"客户编号",
233
+ "f_user_name":"客户名称","f_user_type":"客户类型",
234
+ "f_gasproperties":"用气性质",
235
+ "f_address":"地址","f_install_date":"安装时间",
236
+ "type1":"待处理数量",
237
+ "type2":"已处理数量",
238
+ "mindate":"最早上报时间",
239
+ "maxdate":"最晚上报时间"
240
+ },
241
+ getSignType:[
242
+ {label: '频繁磁干扰', value: 'type1'},
243
+ {label: '间断性失联', value: 'type2'},
244
+ {label: '间断性指令失败', value: 'type3'},
245
+ {label: '锂电低电故障', value: 'type4'},
246
+ {label: '频繁报拆表', value: 'type5'},
247
+ {label: '未装电池', value: 'type6'},
248
+ {label: '拆电池了', value: 'type7'},
249
+ {label: '电池低压', value: 'type8'},
250
+ {label: '锂电低电', value: 'type9'},
251
+ {label: '连续失联', value: 'type10'},
252
+ {label: '频繁报过流保护关阀', value: 'type11'},
253
+ {label: '负值故障', value: 'type12'},
254
+ {label: '其他', value: 'type13'}
255
+ ],
256
+ obj: {
257
+ userid: this.$login.f.id,
258
+ source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
259
+ res: this.$login.f.f_fengongsi,
260
+ resids: this.$login.f.f_orgids
261
+ }
262
+ }
263
+ },
264
+ ready() {
265
+ this.$refs.paged.$refs.cri.model.start_f_parameter_date = Util.toStandardDateString() + ' 00:00:00'
266
+ this.$refs.paged.$refs.cri.model.end_f_parameter_date = Util.toStandardDateString() + ' 23:59:59'
267
+ this.$refs.paged.$refs.cri.search()
268
+ },
269
+ methods: {
270
+ hidden() {
271
+ this.criteriaShow = !this.criteriaShow
272
+ },
273
+ // 查询开关
274
+ seachchange() {
275
+ this.searchshow = !this.searchshow
276
+ },
277
+ // SaveAsFile(str) {
278
+ // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
279
+ // if (res === 'confirm') {
280
+ // let style = '<style>' +
281
+ // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
282
+ // let strHtml = style + document.getElementById(str).innerHTML;
283
+ // console.log(strHtml);
284
+ // let LODOP = getLodop();
285
+ // LODOP.PRINT_INIT('');
286
+ // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
287
+ // LODOP.SAVE_TO_FILE('标记分析.xls')
288
+ // }
289
+ // })
290
+ // },
291
+ clearmsg() {
292
+ this.$refs.paged.$refs.cri.model = {}
293
+ },
294
+
295
+ search(args) {
296
+ this.startDate = this.$refs.paged.$refs.cri.model.start_f_parameter_date
297
+ this.endDate = this.$refs.paged.$refs.cri.model.end_f_parameter_date
298
+ if (this.orgCondtionStr)
299
+ this.condition = this.$refs.paged.$refs.cri.condition + `and u.f_orgid in ${this.orgCondtionStr}`
300
+ else
301
+ this.condition = this.$refs.paged.$refs.cri.condition
302
+ console.log("~~~~~~~~~~~~~~~~~~")
303
+ console.log(this.condition)
304
+ args.condition = this.condition
305
+ this.model.search(args.condition, args.model)
306
+ },
307
+ // 显示柱状图
308
+ showEcharts() {
309
+ this.echarts = true
310
+ this.isActiveTotalForm=false
311
+ },
312
+ // 不显示柱状图
313
+ notShowEcharts() {
314
+ this.echarts = false
315
+ this.isActiveTotalForm=false
316
+ },
317
+ // 显示汇总
318
+ showEform() {
319
+ this.echarts = false
320
+ this.isActiveTotalForm=true
321
+ },
322
+ // 不显示汇总
323
+ notShowEform() {
324
+ this.echarts = false
325
+ this.isActiveTotalForm=false
326
+ },
327
+ close() {
328
+ this.show = false
329
+ },
330
+ getRes(obj) {
331
+ this.orgCondtionStr = plugins.convertToIn(obj)
332
+ }
333
+ },
334
+ watch: {
335
+ 'data'(val) {
336
+ if (val.f_files_path) {
337
+ this.getFileContent(val.f_files_path)
338
+ } else {
339
+ this.reportStr = null
340
+ }
341
+ }
342
+ },
343
+ computed: {
344
+ getCondition() {
345
+ var con=""
346
+ if (this.orgCondtionStr) {
347
+ con= `${this.$refs.paged.$refs.cri.condition} and u.f_orgid in ${this.orgCondtionStr}`
348
+ }
349
+ else{
350
+ con= `${this.$refs.paged.$refs.cri.condition} `
351
+ }
352
+ return {
353
+ condition: con ,
354
+ startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
355
+ endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
356
+ }
357
+
358
+ },
359
+ usertypes() {
360
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
361
+ },
362
+ valveStatus() {
363
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
364
+ },
365
+ Gasproperties() {
366
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
367
+ },
368
+ Getuserstyle() {
369
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气类型')]
370
+ }
371
+ }
372
+ }
373
+ </script>
374
+ <style>
375
+ .mystyle {
376
+ float: right;
377
+ padding-right: 10%;
378
+ }
379
+
380
+ .datapanel {
381
+ color: #333;
382
+ background-color: white;
383
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
384
+ padding: 10px 10px 10px 10px;
385
+ border-radius: 15px;
386
+ }
387
+ </style>