manage-client 3.2.20 → 3.2.24

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 (71) hide show
  1. package/build/dev-server.js +8 -8
  2. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  3. package/package.json +1 -1
  4. package/src/components/BasisEcharts/BarChart.vue +247 -247
  5. package/src/components/SellReport/BonSummary.vue +178 -178
  6. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  7. package/src/components/SellReport/GasMoneyPublicReport.vue +263 -0
  8. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  9. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  10. package/src/components/SellReport/NonResidentGas.vue +203 -203
  11. package/src/components/SellReport/OtherChargePublicReport.vue +262 -0
  12. package/src/components/SellReport/OutletTable.vue +258 -258
  13. package/src/components/SellReport/QibiaoShouqi.vue +58 -98
  14. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  15. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  16. package/src/components/SellReport/SellingTable.vue +220 -220
  17. package/src/components/SellReport/UserSellingGas.vue +228 -177
  18. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  19. package/src/components/daping/GMap.vue +636 -636
  20. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  21. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  22. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  23. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  24. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  25. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  26. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  27. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  28. package/src/components/sale/businessquery/usergas.vue +1 -3
  29. package/src/components/sale/config/exportConfig.js +4 -1
  30. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  31. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  32. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  33. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  34. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  35. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  36. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  37. package/src/components/webmeter/newwebmeter/PriceInstructDetail.vue +374 -0
  38. package/src/components/webmeter/newwebmeter/PriceInstructList.vue +332 -0
  39. package/src/components/webmeter/newwebmeter/PriceInstructManage.vue +44 -0
  40. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  41. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  42. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  43. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  44. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  45. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  46. package/src/components/webmeter/recharge/RechargeList.vue +345 -0
  47. package/src/components/webmeter/report/ReportList.vue +434 -436
  48. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  49. package/src/filiale/WEINAN/ReportDataQuery.vue +50 -1
  50. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  51. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  52. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  53. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  54. package/src/filiale/WEINAN/reportManage.js +12 -12
  55. package/src/filiale/WEINAN/sale.js +36 -36
  56. package/src/filiale/alashan/reportManage.js +10 -10
  57. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  58. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  59. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  60. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  61. package/src/filiale/meihekou/YingShouMingXi.vue +538 -538
  62. package/src/filiale/meihekou/config/exportConfig.js +831 -831
  63. package/src/filiale/meihekou/sale.js +29 -29
  64. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  65. package/src/filiale/rongchuang/reportManage.js +11 -11
  66. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -240
  67. package/src/filiale/tongchuan/reportManage.js +5 -5
  68. package/src/main.js +1 -1
  69. package/src/reportManage.js +8 -0
  70. package/src/webmeterManage.js +8 -0
  71. package/static/wuhai.json +1610 -1610
@@ -1,436 +1,434 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main">
4
- <div class="flex" v-if="!show">
5
- <criteria-paged :model="model" v-ref:paged>
6
- <criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
- <div class="row" >
9
- <div class="col-sm-2">
10
- <label class="font_normal_body">组织机构</label>
11
- <res-select :initresid="$parent.$parent.org"
12
- style="width:60%"
13
- @res-select="$parent.$parent.getorg"
14
- :is-mul=false
15
- restype='organization'>
16
- </res-select>
17
-
18
- </div>
19
- <div class="col-sm-2">
20
- <label class="font_normal_body">表&nbsp;钢&nbsp;号&nbsp;</label>
21
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_meternumber" placeholder='表钢号'
22
- condition="m.f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
23
- >
24
- </div>
25
- <!-- <div class="col-sm-2">-->
26
- <!-- <label class="font_normal_body">组织机构</label>-->
27
- <!-- <res-select :initresid="$parent.$parent.orgid"-->
28
- <!-- style="width:60%"-->
29
- <!-- @res-select="$parent.$parent.getRes"-->
30
- <!-- restype='organization'>-->
31
- <!-- </res-select>-->
32
- <!-- </div>-->
33
- <div class="col-sm-2">
34
- <label class="font_normal_body">客户编号</label>
35
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
36
- condition="ui.f_userinfo_code like '%{}%'" v-next-el='f_userinfo_code' v-el:meternumber
37
- >
38
- </div>
39
- <div class="col-sm-2">
40
- <label class="font_normal_body">客户名称</label>
41
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'
42
- condition="ui.f_user_name like '%{}%'" v-next-el='userid' v-el:username>
43
- </div>
44
-
45
- <div class="span" style="float:right;margin-top:10px">
46
- <button class="button_search button_spacing" @click="search()">查询</button>
47
- <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
48
- <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
49
- :field="$parent.$parent.getfield"
50
- sqlurl="rs/logic/exportfile" sql-name="manage_getReportList" template-name='上报查询'
51
- :choose-col="true"></export-excel>
52
- <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>
53
- </div>
54
- </div>
55
- <div class="row" v-show="$parent.$parent.criteriaShow">
56
- <div class="col-sm-2">
57
- <label class="font_normal_body">客户地址</label>
58
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_address" placeholder='客户地址'
59
- condition="ua.f_address like '%{}%'" v-next-el='userid' v-el:username>
60
- </div>
61
- <div class="col-sm-2 form-group">
62
- <label class="font_normal_body">客户类型</label>
63
- <v-select :value.sync="model.f_user_type"
64
- @change="$parent.$parent.userTypeChange()"
65
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
66
- condition="uf.f_user_type = '{}'"
67
- close-on-select></v-select>
68
- </div>
69
- <div class="col-sm-2 form-group">
70
- <label class="font_normal_body">用气性质</label>
71
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
72
- :options='$parent.$parent.gasproperties' placeholder='请选择'
73
- condition="uf.f_gasproperties = '{}'"
74
- closfe-on-select></v-select>
75
- </div>
76
- <div class="col-sm-2 form-group">
77
- <label class="font_normal_body">气价类型</label>
78
- <v-select :value.sync="model.pricetype" v-model="model.pricetype"
79
- placeholder='气价类型' :options="$parent.$parent.pricetypes"
80
- close-on-select>
81
- </v-select>
82
- </div>
83
- <div class="col-sm-2 form-group">
84
- <label class="font_normal_body">气价名称</label>
85
- <v-select :value.sync="model.f_price_name"
86
- v-model="model.f_price_name"
87
- :options="$parent.$parent.getPricenames"
88
- condition="ts.f_price_name = '{}'"
89
- close-on-select></v-select>
90
- </div>
91
- <div class="col-sm-2 form-group">
92
- <label class="font_normal_body">气表品牌</label>
93
- <v-select :value.sync="model.f_meter_brand"
94
- v-model="model.f_meter_brand"
95
- :options="$parent.$parent.meterbrands"
96
- condition="br.f_meter_brand = '{}'"
97
- close-on-select></v-select>
98
- </div>
99
- <div class="col-sm-2 form-group" >
100
- <label class="font_normal_body" >开始时间</label>
101
- <datepicker style="width: 60%" placeholder="大于等于"
102
- :value.sync="model.f_start_date"
103
- v-model="model.f_start_date"
104
- :format="'yyyy-MM-dd HH:mm:ss'"
105
- condition="m.f_hand_date >= '{}'"
106
- ></datepicker>
107
- </div>
108
- <div class="col-sm-2 form-group" >
109
- <label class="font_normal_body">结束时间</label>
110
- <datepicker style="width: 60%" placeholder="小于等于"
111
- :value.sync="model.f_end_date"
112
- v-model="model.f_end_date"
113
- :format="'yyyy-MM-dd HH:mm:ss'"
114
- condition="m.f_hand_date <= '{}'"
115
- ></datepicker>
116
- </div>
117
- </div>
118
- </div>
119
- </criteria>
120
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
121
- <template partial='head'>
122
- <tr>
123
- <th><nobr>客户编号</nobr></th>
124
- <th><nobr>表号</nobr></th>
125
- <th><nobr>客户姓名</nobr></th>
126
- <th><nobr>客户电话</nobr></th>
127
- <th><nobr>客户地址</nobr></th>
128
-
129
- <th><nobr>上报日期</nobr></th>
130
- <th><nobr>系统接收时间</nobr></th>
131
- <th><nobr>表内剩余金额</nobr></th>
132
- <th><nobr>表内单价</nobr></th>
133
- <th><nobr>本次抄表底数</nobr></th>
134
- <th><nobr>阀门状态</nobr></th>
135
-
136
- <th><nobr>上报类型</nobr></th>
137
- <th><nobr>表内累计充值金额</nobr></th>
138
- <th><nobr>噪音强度</nobr></th>
139
- <th><nobr>信噪比</nobr></th>
140
- <th><nobr>电压</nobr></th>
141
-
142
- <th><nobr>表状态</nobr></th>
143
- <th><nobr>金额状态</nobr></th>
144
- <th><nobr>每小时上报量</nobr></th>
145
- </tr>
146
- </template>
147
- <template partial='body' partial='list'>
148
- <tr >
149
- <td style="text-align: left;"><nobr> <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr></td>
150
- <td style="text-align: left;"><nobr>{{row.f_meternumber}}</nobr></td>
151
- <td style="text-align: left;"><nobr>{{row.f_user_name}}</nobr></td>
152
- <td style="text-align: left;"><nobr>{{row.f_user_phone}}</nobr></td>
153
- <td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
154
-
155
- <td style="text-align:center"><nobr>{{row.f_hand_date}}</nobr></td>
156
- <th style="text-align:center"><nobr>{{row.f_insert_date}}</nobr></th>
157
- <th style="text-align:center"><nobr>{{row.f_meterbalanceamt}}</nobr></th>
158
- <th style="text-align:center"><nobr>{{row.f_price}}</nobr></th>
159
- <th style="text-align:center"><nobr>{{row.f_tablebase}}</nobr></th>
160
- <th style="text-align:center"><nobr>{{row.f_valvestate}}</nobr></th>
161
-
162
-
163
- <th style="text-align:center"><nobr>{{row.f_upload_type}}</nobr></th>
164
- <th style="text-align:center"><nobr>{{row.f_meterdebitamt}}</nobr></th>
165
- <th style="text-align:center"><nobr>{{row.f_signal}}</nobr></th>
166
- <th style="text-align:center"><nobr>{{row.f_snr}}</nobr></th>
167
- <th style="text-align:center"><nobr>{{row.f_batterylevel}}</nobr></th>
168
-
169
- <th style="text-align:center"><nobr>{{row.f_table_msg}}</nobr></th>
170
- <th style="text-align:center"><nobr>{{row.f_moneystate}}</nobr></th>
171
- <!-- <th style="text-align:center"><nobr>{{row.f_nsturalgas_data}}</nobr></th>-->
172
- <!-- <th style="text-align:center"><nobr><span @click="$parent.$parent.$parent.showdetail(row.f_nsturalgas_data)"><a>查看</a></span></nobr></th>-->
173
- <th style="text-align:center">
174
- <button type="button" class="button_search button_spacing width-60" @click="$parent.$parent.$parent.showdetail(row.f_nsturalgas_data)">查看</button>
175
- </th>
176
- </tr>
177
- </template>
178
- <template partial='foot'></template>
179
- </data-grid>
180
- </criteria-paged>
181
- <table class="table-hover">
182
- <!-- <tr style="position: relative" class="table-bordered">-->
183
- <!-- <td-->
184
- <!-- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">-->
185
- <!-- 汇总信息-->
186
- <!-- </td>-->
187
- <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
188
- <!-- 表内剩余金额合计:&emsp;{{sumsmodel.f_meterbalanceamt}}-->
189
- <!-- </td>-->
190
- <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
191
- <!-- 抄表底数合计:&emsp;{{sumsmodel.f_tablebase}}-->
192
- <!-- </td>-->
193
- <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
194
- <!-- 表累计充值金额合计:&emsp;{{sumsmodel.f_meterdebitamt}}-->
195
- <!-- </td>-->
196
- <!-- </tr>-->
197
- </table>
198
- <modal :show.sync="detail24" >
199
- <header slot="modal-header" class="modal-header">
200
- <h4 class="modal-title">24小时上报数据明细</h4>
201
- </header>
202
- <article slot="modal-body" class="modal-body">
203
- <table v-for="detail of detaillist">
204
- <tr><td>{{detail.frozenDate}}</td><td>&nbsp;&nbsp;--&nbsp;&nbsp;</td><td>{{detail.frozenValue}}</td></tr>
205
- </table>
206
- </article>
207
- <footer slot="modal-footer" class="modal-footer">
208
- <div class="form-group">
209
- <button class="btn btn-success" @click="close()">确认</button>
210
- <button type="button" class="btn btn-default" @click='close'>取消</button>
211
- </div>
212
- </footer>
213
- </modal>
214
- </div>
215
- <div class="flex" v-if="show">
216
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
217
- </div>
218
- </div>
219
-
220
- </div>
221
- </template>
222
-
223
- <script>
224
- import {HttpResetClass, PagedList} from 'vue-client'
225
- import exportConfig from '../../sale/config/exportConfig'
226
- import plugins from '../../../plugins/GetLoginInfoService'
227
- import defaultPrint from "../../sale/config/DefaultPrint";
228
- import * as Util from '../../../Util'
229
-
230
- let readySomething = async function (self) {
231
- await self.$MagLoadParams.loadParam()
232
- // self.initParams()
233
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
234
- }
235
- export default {
236
- title: '上报查询',
237
- data () {
238
- return {
239
- show:false,
240
- detail24: false,
241
- org:[this.$login.f.orgid],
242
- orgcondition: '', //' and f_filialeid = ' + this.$login.f.orgid,
243
- //f_filialeid: this.$login.f.f_orgid,
244
- detaillist: [],
245
- prices: [],
246
- gasproperties:[],
247
- condition:'',
248
- rowdata:{},
249
- sumsmodel: {},
250
- orgid:[this.$login.f.orgid],
251
- criteriaShow:false,
252
- orgCondtionStr: '',
253
- model: new PagedList('rs/sql/manage_getReportList', 50,{},{f_meterbalanceamt: 0,f_tablebase: 0,f_meterdebitamt: 0})
254
- }
255
- },
256
- ready () {
257
- // this.$refs.paged.$refs.criteria.search()
258
- readySomething(this).then(() => {
259
- this.$emit('ready')
260
- }).catch((error) => {
261
- this.$emit('error', error)
262
- })
263
- this.$refs.paged.$refs.criteria.model.f_start_date = Util.addDate(new Date(),-1).substring(0,10) + ' 00:00:00'
264
- this.$refs.paged.$refs.criteria.model.f_end_date = Util.addDate(new Date(),-1).substring(0,10) + ' 23:59:59'
265
- this.$refs.paged.$refs.criteria.search()
266
- },
267
- methods: {
268
- // initParams() {
269
- // // 初始化气表品牌
270
- // let brandArr = []
271
- // this.$MagGetSaleParam.getGasbrand().forEach((item) => {
272
- // let temp = {}
273
- // temp.label = item.label
274
- // temp.value = item.value.f_meter_brand
275
- // brandArr.push(temp)
276
- // })
277
- // this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
278
- // //初始化气表价格
279
- // this.prices = this.$MagGetSaleParam.getPrices();
280
- // },
281
- // async updateParams() {
282
- // await this.$MagLoadParams.loadParam(this.f_filialeid)
283
- // this.initParams()
284
- // },
285
- getorg(obj) {
286
- if(plugins.convertToIn(obj)!==null&&plugins.convertToIn(obj)!==''){
287
- this.orgcondition = " and m.f_orgid in " + plugins.convertToIn(obj)
288
- }else{
289
- this.orgcondition = " and m.f_orgid = " + this.$login.f.orgid
290
- }
291
-
292
- },
293
- userTypeChange () {
294
- this.gasproperties=[]
295
- if(this.$refs.paged.$refs.criteria.model !==null) {
296
- this.$refs.paged.$refs.criteria.model.f_gasproperties=''
297
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
298
- }
299
- else{
300
- this.gasproperties =[{label: '全部', value: ''}]
301
- }
302
- },
303
- showdetail(val) {
304
- console.log('24detail==', val)
305
- if(val){
306
- let detail = eval("("+val+")")
307
- this.detaillist = detail
308
- this.detail24 = true
309
- }else{
310
- console.log('无数据')
311
- }
312
- },
313
- close() {
314
- this.detail24 = false
315
- },
316
- hidden(){
317
- this.criteriaShow = !this.criteriaShow
318
- },
319
- cancel() {
320
- this.show = false
321
- },
322
- clearmsg () {
323
- Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
324
- this.$refs.paged.$refs.criteria.model[key] = []
325
- })
326
- },
327
- getRes (obj) {
328
- this.orgCondtionStr = condition
329
- this.orgname = obj.orgnames[0]
330
- this.depname = obj.depnames[0]
331
- },
332
- showmsg(obj){
333
- this.rowdata=obj
334
- this.show=true
335
- },
336
-
337
- search (args) {
338
- args.condition = `${args.condition}`+this.orgcondition
339
- console.log(args.condition+"args.condition")
340
- this.condition = args.condition
341
- this.model.search(args.condition, args.model)
342
- console.log(this.$refs.paged.$refs.grid.model.sums+"--this.$refs.paged.$refs.grid.model.sums")
343
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
344
- // args.condition = `${args.condition}`
345
- // if (this.orgcondition)
346
- // args.condition = `${args.condition}` + this.orgcondition
347
- // else
348
- // args.condition = `${args.condition}` + 'and m.f_orgid in ' + '(' + this.$login.f.orgid + ')'
349
- // this.model.search(args.condition, args.model)
350
- }
351
- },
352
- watch: {
353
- 'orgCondtionStr'(val) {
354
- let res = val.match(/'(.*?)'/)
355
- console.log('正则提取:',res && res[1])
356
- if (res) {
357
- this.f_filialeid = res[1]
358
- // this.updateParams()
359
- }
360
- }
361
- },
362
- computed: {
363
- getPricenames() {
364
- let f_user_type = this.$refs.paged.$refs.criteria.model.f_user_type;
365
- let f_gasproperties = this.$refs.paged.$refs.criteria.model.f_gasproperties;
366
- let pricetype = this.$refs.paged.$refs.criteria.model.pricetype;
367
- console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
368
- console.log("查看f_orgid:",this.$login.f.f_orgid)
369
- if(this.$refs.paged.$refs.criteria.model !==null) {
370
- let rs = []
371
- let priceArr = []
372
- if ( pricetype.length >0) {
373
- let params = {
374
- f_price_type: pricetype[0],
375
- filter: this.org[0],
376
- prices: this.prices
377
- }
378
- console.log("打印一下params:",params)
379
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
380
- console.log("====================================》")
381
- let temp = {}
382
- temp.label = item.label
383
- temp.value = item.value.f_price_name
384
- priceArr.push(temp)
385
- console.log("打印一下temp:",temp)
386
- })
387
-
388
- rs = [{label: '全部', value: ''}, ...priceArr]
389
- }
390
- if (rs.length === 0) {
391
- console.log('rs读出来是空')
392
- this.$refs.paged.$refs.criteria.model.f_price_name = ''
393
- }
394
- return rs
395
- }
396
- },
397
- getfield () {
398
- return exportConfig.ReportListConfig
399
- },
400
- usertypes() {
401
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
402
- },
403
- pricetypes() {
404
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
405
- },
406
- meterbrands() {
407
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表品牌')]
408
- },
409
- getCondition () {
410
- var con = ""
411
- if (this.orgCondtionStr) {
412
- con = `${this.$refs.paged.$refs.criteria.condition} and m.f_orgid in (${this.orgCondtionStr})`
413
- }
414
- else {
415
- con = `${this.$refs.paged.$refs.criteria.condition}and m.f_orgid in ('${this.$login.f.orgid}' )`
416
- }
417
- return {
418
- condition: con
419
- }
420
- }
421
- }
422
- }
423
- </script>
424
-
425
- <style>
426
- .mystyle{
427
- margin-left:80px;
428
- }
429
- .datapanel {
430
- color: #333;
431
- background-color: white;
432
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
433
- padding: 10px 10px 10px 10px;
434
- border-radius:15px;
435
- }
436
- </style>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main">
4
+ <div class="flex" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row" >
9
+ <div class="col-sm-2">
10
+ <label class="font_normal_body">组织机构</label>
11
+ <res-select :initresid="$parent.$parent.org"
12
+ style="width:60%"
13
+ @res-select="$parent.$parent.getorg"
14
+ :is-mul=false
15
+ restype='organization'>
16
+ </res-select>
17
+
18
+ </div>
19
+ <div class="col-sm-2">
20
+ <label class="font_normal_body">表&nbsp;钢&nbsp;号&nbsp;</label>
21
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_meternumber" placeholder='表钢号'
22
+ condition="m.f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
23
+ >
24
+ </div>
25
+ <!-- <div class="col-sm-2">-->
26
+ <!-- <label class="font_normal_body">组织机构</label>-->
27
+ <!-- <res-select :initresid="$parent.$parent.orgid"-->
28
+ <!-- style="width:60%"-->
29
+ <!-- @res-select="$parent.$parent.getRes"-->
30
+ <!-- restype='organization'>-->
31
+ <!-- </res-select>-->
32
+ <!-- </div>-->
33
+ <div class="col-sm-2">
34
+ <label class="font_normal_body">客户编号</label>
35
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
36
+ condition="ui.f_userinfo_code like '%{}%'" v-next-el='f_userinfo_code' v-el:meternumber
37
+ >
38
+ </div>
39
+ <div class="col-sm-2">
40
+ <label class="font_normal_body">客户名称</label>
41
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'
42
+ condition="ui.f_user_name like '%{}%'" v-next-el='userid' v-el:username>
43
+ </div>
44
+
45
+ <div class="span" style="float:right;margin-top:10px">
46
+ <button class="button_search button_spacing" @click="search()">查询</button>
47
+ <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
48
+ <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
49
+ :field="$parent.$parent.getfield"
50
+ sqlurl="rs/logic/exportfile" sql-name="manage_getReportList" template-name='上报查询'
51
+ :choose-col="true"></export-excel>
52
+ <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>
53
+ </div>
54
+ </div>
55
+ <div class="row" v-show="$parent.$parent.criteriaShow">
56
+ <div class="col-sm-2">
57
+ <label class="font_normal_body">客户地址</label>
58
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_address" placeholder='客户地址'
59
+ condition="ua.f_address like '%{}%'" v-next-el='userid' v-el:username>
60
+ </div>
61
+ <div class="col-sm-2 form-group">
62
+ <label class="font_normal_body">客户类型</label>
63
+ <v-select :value.sync="model.f_user_type"
64
+ @change="$parent.$parent.userTypeChange()"
65
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
66
+ condition="uf.f_user_type = '{}'"
67
+ close-on-select></v-select>
68
+ </div>
69
+ <div class="col-sm-2 form-group">
70
+ <label class="font_normal_body">用气性质</label>
71
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
72
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
73
+ condition="uf.f_gasproperties = '{}'"
74
+ closfe-on-select></v-select>
75
+ </div>
76
+ <div class="col-sm-2 form-group">
77
+ <label class="font_normal_body">气价类型</label>
78
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
79
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
80
+ close-on-select>
81
+ </v-select>
82
+ </div>
83
+ <div class="col-sm-2 form-group">
84
+ <label class="font_normal_body">气价名称</label>
85
+ <v-select :value.sync="model.f_price_name"
86
+ v-model="model.f_price_name"
87
+ :options="$parent.$parent.getPricenames"
88
+ condition="ts.f_price_name = '{}'"
89
+ close-on-select></v-select>
90
+ </div>
91
+ <div class="col-sm-2 form-group">
92
+ <label class="font_normal_body">气表品牌</label>
93
+ <v-select :value.sync="model.f_meter_brand"
94
+ v-model="model.f_meter_brand"
95
+ :options="$parent.$parent.meterbrands"
96
+ condition="br.f_meter_brand = '{}'"
97
+ close-on-select></v-select>
98
+ </div>
99
+ <div class="col-sm-2 form-group" >
100
+ <label class="font_normal_body" >开始时间</label>
101
+ <datepicker style="width: 60%" placeholder="大于等于"
102
+ :value.sync="model.f_start_date"
103
+ v-model="model.f_start_date"
104
+ :format="'yyyy-MM-dd HH:mm:ss'"
105
+ condition="m.f_hand_date >= '{}'"
106
+ ></datepicker>
107
+ </div>
108
+ <div class="col-sm-2 form-group" >
109
+ <label class="font_normal_body">结束时间</label>
110
+ <datepicker style="width: 60%" placeholder="小于等于"
111
+ :value.sync="model.f_end_date"
112
+ v-model="model.f_end_date"
113
+ :format="'yyyy-MM-dd HH:mm:ss'"
114
+ condition="m.f_hand_date <= '{}'"
115
+ ></datepicker>
116
+ </div>
117
+ </div>
118
+ </div>
119
+ </criteria>
120
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
121
+ <template partial='head'>
122
+ <tr>
123
+ <th><nobr>客户编号</nobr></th>
124
+ <th><nobr>表号</nobr></th>
125
+ <th><nobr>客户姓名</nobr></th>
126
+ <th><nobr>客户电话</nobr></th>
127
+ <th><nobr>客户地址</nobr></th>
128
+
129
+ <th><nobr>上报日期</nobr></th>
130
+ <th><nobr>系统接收时间</nobr></th>
131
+ <th><nobr>表内剩余金额</nobr></th>
132
+ <th><nobr>表内单价</nobr></th>
133
+ <th><nobr>本次抄表底数</nobr></th>
134
+ <th><nobr>阀门状态</nobr></th>
135
+
136
+ <th><nobr>上报类型</nobr></th>
137
+ <th><nobr>表内累计充值金额</nobr></th>
138
+ <th><nobr>噪音强度</nobr></th>
139
+ <th><nobr>信噪比</nobr></th>
140
+ <th><nobr>电压</nobr></th>
141
+
142
+ <th><nobr>表状态</nobr></th>
143
+ <th><nobr>金额状态</nobr></th>
144
+ <th><nobr>每小时上报量</nobr></th>
145
+ </tr>
146
+ </template>
147
+ <template partial='body' partial='list'>
148
+ <tr >
149
+ <td style="text-align: left;"><nobr> <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr></td>
150
+ <td style="text-align: left;"><nobr>{{row.f_meternumber}}</nobr></td>
151
+ <td style="text-align: left;"><nobr>{{row.f_user_name}}</nobr></td>
152
+ <td style="text-align: left;"><nobr>{{row.f_user_phone}}</nobr></td>
153
+ <td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
154
+
155
+ <td style="text-align:center"><nobr>{{row.f_hand_date}}</nobr></td>
156
+ <th style="text-align:center"><nobr>{{row.f_insert_date}}</nobr></th>
157
+ <th style="text-align:center"><nobr>{{row.f_meterbalanceamt}}</nobr></th>
158
+ <th style="text-align:center"><nobr>{{row.f_price}}</nobr></th>
159
+ <th style="text-align:center"><nobr>{{row.f_tablebase}}</nobr></th>
160
+ <th style="text-align:center"><nobr>{{row.f_valvestate}}</nobr></th>
161
+
162
+
163
+ <th style="text-align:center"><nobr>{{row.f_upload_type}}</nobr></th>
164
+ <th style="text-align:center"><nobr>{{row.f_meterdebitamt}}</nobr></th>
165
+ <th style="text-align:center"><nobr>{{row.f_signal}}</nobr></th>
166
+ <th style="text-align:center"><nobr>{{row.f_snr}}</nobr></th>
167
+ <th style="text-align:center"><nobr>{{row.f_batterylevel}}</nobr></th>
168
+
169
+ <th style="text-align:center"><nobr>{{row.f_table_msg}}</nobr></th>
170
+ <th style="text-align:center"><nobr>{{row.f_moneystate}}</nobr></th>
171
+ <!-- <th style="text-align:center"><nobr>{{row.f_nsturalgas_data}}</nobr></th>-->
172
+ <!-- <th style="text-align:center"><nobr><span @click="$parent.$parent.$parent.showdetail(row.f_nsturalgas_data)"><a>查看</a></span></nobr></th>-->
173
+ <th style="text-align:center">
174
+ <button type="button" class="button_search button_spacing width-60" @click="$parent.$parent.$parent.showdetail(row.f_nsturalgas_data)">查看</button>
175
+ </th>
176
+ </tr>
177
+ </template>
178
+ <template partial='foot'></template>
179
+ </data-grid>
180
+ </criteria-paged>
181
+ <table class="table-hover">
182
+ <!-- <tr style="position: relative" class="table-bordered">-->
183
+ <!-- <td-->
184
+ <!-- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">-->
185
+ <!-- 汇总信息-->
186
+ <!-- </td>-->
187
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
188
+ <!-- 表内剩余金额合计:&emsp;{{sumsmodel.f_meterbalanceamt}}-->
189
+ <!-- </td>-->
190
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
191
+ <!-- 抄表底数合计:&emsp;{{sumsmodel.f_tablebase}}-->
192
+ <!-- </td>-->
193
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
194
+ <!-- 表累计充值金额合计:&emsp;{{sumsmodel.f_meterdebitamt}}-->
195
+ <!-- </td>-->
196
+ <!-- </tr>-->
197
+ </table>
198
+ <modal :show.sync="detail24" >
199
+ <header slot="modal-header" class="modal-header">
200
+ <h4 class="modal-title">24小时上报数据明细</h4>
201
+ </header>
202
+ <article slot="modal-body" class="modal-body">
203
+ <table v-for="detail of detaillist">
204
+ <tr><td>{{detail.frozenDate}}</td><td>&nbsp;&nbsp;--&nbsp;&nbsp;</td><td>{{detail.frozenValue}}</td></tr>
205
+ </table>
206
+ </article>
207
+ <footer slot="modal-footer" class="modal-footer">
208
+ <div class="form-group">
209
+ <button class="btn btn-success" @click="close()">确认</button>
210
+ <button type="button" class="btn btn-default" @click='close'>取消</button>
211
+ </div>
212
+ </footer>
213
+ </modal>
214
+ </div>
215
+ <div class="flex" v-if="show">
216
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
217
+ </div>
218
+ </div>
219
+
220
+ </div>
221
+ </template>
222
+
223
+ <script>
224
+ import {HttpResetClass, PagedList} from 'vue-client'
225
+ import exportConfig from '../../sale/config/exportConfig'
226
+ import plugins from '../../../plugins/GetLoginInfoService'
227
+ import defaultPrint from "../../sale/config/DefaultPrint";
228
+ import * as Util from '../../../Util'
229
+
230
+ let readySomething = async function (self) {
231
+ await self.$MagLoadParams.loadParam()
232
+ self.initParams()
233
+ // self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
234
+ }
235
+ export default {
236
+ title: '上报查询',
237
+ data () {
238
+ return {
239
+ show:false,
240
+ detail24: false,
241
+ org:[this.$login.f.orgid],
242
+ orgcondition: ' and m.f_orgid = ' + this.$login.f.orgid,
243
+ //f_filialeid: this.$login.f.f_orgid,
244
+ detaillist: [],
245
+ meterbrands: [],
246
+ prices: [],
247
+ gasproperties:[],
248
+ condition:'',
249
+ rowdata:{},
250
+ sumsmodel: {},
251
+ orgid:[this.$login.f.orgid],
252
+ criteriaShow:false,
253
+ orgCondtionStr: '',
254
+ model: new PagedList('rs/sql/manage_getReportList', 50,{},{f_meterbalanceamt: 0,f_tablebase: 0,f_meterdebitamt: 0})
255
+ }
256
+ },
257
+ ready () {
258
+ // this.$refs.paged.$refs.criteria.search()
259
+ readySomething(this).then(() => {
260
+ this.$emit('ready')
261
+ }).catch((error) => {
262
+ this.$emit('error', error)
263
+ })
264
+ this.$refs.paged.$refs.criteria.model.f_start_date = Util.addDate(new Date(),-1).substring(0,10) + ' 00:00:00'
265
+ this.$refs.paged.$refs.criteria.model.f_end_date = Util.addDate(new Date(),-1).substring(0,10) + ' 23:59:59'
266
+ this.$refs.paged.$refs.criteria.search()
267
+ },
268
+ methods: {
269
+ initParams() {
270
+ // 初始化气表品牌
271
+ let brandArr = []
272
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
273
+ let temp = {}
274
+ temp.label = item.label
275
+ temp.value = item.value.f_meter_brand
276
+ brandArr.push(temp)
277
+ })
278
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
279
+ //初始化气表价格
280
+ this.prices = this.$MagGetSaleParam.getPrices();
281
+ },
282
+ async updateParams() {
283
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
284
+ this.initParams()
285
+ },
286
+ getorg(obj) {
287
+ if(plugins.convertToIn(obj)!==null&&plugins.convertToIn(obj)!==''){
288
+ this.orgcondition = " and m.f_orgid in " + plugins.convertToIn(obj)
289
+ }else{
290
+ this.orgcondition = " and m.f_orgid = " + this.$login.f.orgid
291
+ }
292
+
293
+ },
294
+ userTypeChange () {
295
+ this.gasproperties=[]
296
+ if(this.$refs.paged.$refs.criteria.model !==null) {
297
+ this.$refs.paged.$refs.criteria.model.f_gasproperties=''
298
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
299
+ }
300
+ else{
301
+ this.gasproperties =[{label: '全部', value: ''}]
302
+ }
303
+ },
304
+ showdetail(val) {
305
+ console.log('24detail==', val)
306
+ if(val){
307
+ let detail = eval("("+val+")")
308
+ this.detaillist = detail
309
+ this.detail24 = true
310
+ }else{
311
+ console.log('无数据')
312
+ }
313
+ },
314
+ close() {
315
+ this.detail24 = false
316
+ },
317
+ hidden(){
318
+ this.criteriaShow = !this.criteriaShow
319
+ },
320
+ cancel() {
321
+ this.show = false
322
+ },
323
+ clearmsg () {
324
+ Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
325
+ this.$refs.paged.$refs.criteria.model[key] = []
326
+ })
327
+ },
328
+ getRes (obj) {
329
+ this.orgCondtionStr = condition
330
+ this.orgname = obj.orgnames[0]
331
+ this.depname = obj.depnames[0]
332
+ },
333
+ showmsg(obj){
334
+ this.rowdata=obj
335
+ this.show=true
336
+ },
337
+
338
+ search (args) {
339
+ args.condition = `${args.condition}`+this.orgcondition
340
+ console.log(args.condition+"args.condition")
341
+ this.condition = args.condition
342
+ this.model.search(args.condition, args.model)
343
+ console.log(this.$refs.paged.$refs.grid.model.sums+"--this.$refs.paged.$refs.grid.model.sums")
344
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
345
+ // args.condition = `${args.condition}`
346
+ // if (this.orgcondition)
347
+ // args.condition = `${args.condition}` + this.orgcondition
348
+ // else
349
+ // args.condition = `${args.condition}` + 'and m.f_orgid in ' + '(' + this.$login.f.orgid + ')'
350
+ // this.model.search(args.condition, args.model)
351
+ }
352
+ },
353
+ watch: {
354
+ 'orgCondtionStr'(val) {
355
+ let res = val.match(/'(.*?)'/)
356
+ console.log('正则提取:',res && res[1])
357
+ if (res) {
358
+ this.f_filialeid = res[1]
359
+ // this.updateParams()
360
+ }
361
+ }
362
+ },
363
+ computed: {
364
+ getPricenames() {
365
+ let f_user_type = this.$refs.paged.$refs.criteria.model.f_user_type;
366
+ let f_gasproperties = this.$refs.paged.$refs.criteria.model.f_gasproperties;
367
+ let pricetype = this.$refs.paged.$refs.criteria.model.pricetype;
368
+ console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
369
+ console.log("查看f_orgid:",this.$login.f.f_orgid)
370
+ if(this.$refs.paged.$refs.criteria.model !==null) {
371
+ let rs = []
372
+ let priceArr = []
373
+ if ( pricetype.length >0) {
374
+ let params = {
375
+ f_price_type: pricetype[0],
376
+ filter: this.org[0],
377
+ prices: this.prices
378
+ }
379
+ console.log("打印一下params:",params)
380
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
381
+ console.log("====================================》")
382
+ let temp = {}
383
+ temp.label = item.label
384
+ temp.value = item.value.f_price_name
385
+ priceArr.push(temp)
386
+ console.log("打印一下temp:",temp)
387
+ })
388
+
389
+ rs = [{label: '全部', value: ''}, ...priceArr]
390
+ }
391
+ if (rs.length === 0) {
392
+ console.log('rs读出来是空')
393
+ this.$refs.paged.$refs.criteria.model.f_price_name = ''
394
+ }
395
+ return rs
396
+ }
397
+ },
398
+ getfield () {
399
+ return exportConfig.ReportListConfig
400
+ },
401
+ usertypes() {
402
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
403
+ },
404
+ pricetypes() {
405
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
406
+ },
407
+ getCondition () {
408
+ var con = ""
409
+ if (this.orgCondtionStr) {
410
+ con = `${this.$refs.paged.$refs.criteria.condition} `+this.orgcondition
411
+ }
412
+ else {
413
+ con = `${this.$refs.paged.$refs.criteria.condition} `+this.orgcondition
414
+ }
415
+ return {
416
+ condition: con
417
+ }
418
+ }
419
+ }
420
+ }
421
+ </script>
422
+
423
+ <style>
424
+ .mystyle{
425
+ margin-left:80px;
426
+ }
427
+ .datapanel {
428
+ color: #333;
429
+ background-color: white;
430
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
431
+ padding: 10px 10px 10px 10px;
432
+ border-radius:15px;
433
+ }
434
+ </style>