manage-client 3.2.6 → 3.2.10

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