manage-client 3.2.24 → 3.2.28

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 (84) hide show
  1. package/.gradle/6.1.1/fileContent/fileContent.lock +0 -0
  2. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
  4. package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
  5. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  6. package/.gradle/7.1/fileChanges/last-build.bin +0 -0
  7. package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
  8. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  9. package/.gradle/7.1/gc.properties +0 -0
  10. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  11. package/build/dev-server.js +7 -9
  12. package/build/libs/ManageClient-3.1.0-17.jar +0 -0
  13. package/build/tmp/jar/MANIFEST.MF +2 -0
  14. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  15. package/package.json +3 -3
  16. package/src/components/SellReport/AmountGas.vue +257 -257
  17. package/src/components/SellReport/BusinessClassify.vue +268 -317
  18. package/src/components/SellReport/BusinessMoneyReport.vue +268 -268
  19. package/src/components/SellReport/BusinessReport.vue +256 -256
  20. package/src/components/SellReport/ChSellReport.vue +251 -251
  21. package/src/components/SellReport/ChargeBill.vue +244 -244
  22. package/src/components/SellReport/ChargeDayTable.vue +258 -258
  23. package/src/components/SellReport/ChargeMonthTable.vue +257 -257
  24. package/src/components/SellReport/ChargePrick.vue +43 -122
  25. package/src/components/SellReport/ChargeYearTable.vue +252 -252
  26. package/src/components/SellReport/DepartmentPrick.vue +243 -288
  27. package/src/components/SellReport/DeptHomePage.vue +299 -299
  28. package/src/components/SellReport/FinanceSellType.vue +254 -254
  29. package/src/components/SellReport/GasMeterBrand.vue +228 -228
  30. package/src/components/SellReport/GasMoneyPublicReport.vue +263 -263
  31. package/src/components/SellReport/GasMoneyReport.vue +252 -254
  32. package/src/components/SellReport/GasPriceGroup.vue +228 -228
  33. package/src/components/SellReport/GasSummary.vue +257 -257
  34. package/src/components/SellReport/Gasc.vue +257 -257
  35. package/src/components/SellReport/GetUserNum.vue +240 -240
  36. package/src/components/SellReport/HandplanBili.vue +241 -241
  37. package/src/components/SellReport/HandplanUserCount.vue +227 -227
  38. package/src/components/SellReport/ManageGasSumChange.vue +265 -265
  39. package/src/components/SellReport/ManageGasSumChangeTwo.vue +271 -271
  40. package/src/components/SellReport/ManageGasSumOtherCharge.vue +244 -244
  41. package/src/components/SellReport/MarketMonth.vue +251 -297
  42. package/src/components/SellReport/MeterPrice.vue +244 -244
  43. package/src/components/SellReport/MeterReader.vue +231 -231
  44. package/src/components/SellReport/OperatorCheckoutTwo.vue +263 -263
  45. package/src/components/SellReport/OperatorSellReport.vue +268 -268
  46. package/src/components/SellReport/OtherChargePublicReport.vue +262 -262
  47. package/src/components/SellReport/PaymentDistribute.vue +228 -228
  48. package/src/components/SellReport/PaymentMethod.vue +274 -274
  49. package/src/components/SellReport/QTXManageBusSummary.vue +236 -236
  50. package/src/components/SellReport/SellDepReport.vue +264 -266
  51. package/src/components/SellReport/UserClassify.vue +222 -271
  52. package/src/components/SellReport/UserGasFillCard.vue +441 -441
  53. package/src/components/SellReport/WeiNanYuShou.vue +246 -246
  54. package/src/components/SellReport/YuShouTable.vue +298 -298
  55. package/src/components/SellReport/chargeSchedule.vue +410 -410
  56. package/src/components/SellReport/pengan/ManageBusPeng.vue +280 -280
  57. package/src/components/SellReport/userholds.vue +257 -257
  58. package/src/components/sale/businessquery/ChangeMeterQuery.vue +8 -3
  59. package/src/components/sale/businessquery/FillCardQuery.vue +7 -3
  60. package/src/components/sale/businessquery/FillGasQuery.vue +19 -4
  61. package/src/components/sale/businessquery/InspectListUser.vue +3 -3
  62. package/src/components/sale/businessquery/OtherChargeQuery.vue +10 -5
  63. package/src/components/sale/businessquery/TransferQuery.vue +6 -2
  64. package/src/components/sale/config/exportConfig.js +898 -890
  65. package/src/components/sale/filesquery/ArchivesManage.vue +3 -0
  66. package/src/components/sale/filesquery/FireQuery.vue +473 -0
  67. package/src/components/webmeter/DrillData/UserGasAll.vue +17 -6
  68. package/src/components/webmeter/gasStatistics/GasStatistics.vue +467 -0
  69. package/src/components/webmeter/newwebmeter/ArrearageQuery.vue +307 -0
  70. package/src/components/webmeter/recharge/RechargeList.vue +343 -345
  71. package/src/components/webmeter/report/ReportList.vue +0 -14
  72. package/src/filiale/WEINAN/BankManager.vue +139 -0
  73. package/src/filiale/WEINAN/config/exportConfig.js +833 -833
  74. package/src/filiale/WEINAN/reportManage.js +13 -12
  75. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  76. package/src/filiale/macheng/ArrearsQuery.vue +823 -823
  77. package/src/filiale/macheng/RecordInfoQuery.vue +14 -20
  78. package/src/filiale/tongchuan/ChargeQuery.vue +19 -1
  79. package/src/filiale/tongchuan/FillGasQuery.vue +19 -4
  80. package/src/filiale/tongchuan/config/exportConfig.js +1 -1
  81. package/src/main.js +2 -2
  82. package/src/reportManage.js +498 -498
  83. package/src/saleManage.js +5 -0
  84. package/src/webmeterManage.js +117 -113
@@ -1,421 +1,421 @@
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
- <div class="col-sm-2">
45
- <label class="font_normal_body">客户地址</label>
46
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_address" placeholder='客户地址'
47
- condition="ua.f_address like '%{}%'" v-next-el='userid' v-el:username>
48
- </div>
49
- <div class="col-sm-2 form-group">
50
- <label class="font_normal_body">客户类型</label>
51
- <v-select :value.sync="model.f_user_type"
52
- @change="$parent.$parent.userTypeChange()"
53
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
54
- condition="uf.f_user_type = '{}'"
55
- close-on-select></v-select>
56
- </div>
57
- <div class="col-sm-2 form-group">
58
- <label class="font_normal_body">用气性质</label>
59
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
60
- :options='$parent.$parent.gasproperties' placeholder='请选择'
61
- condition="uf.f_gasproperties = '{}'"
62
- closfe-on-select></v-select>
63
- </div>
64
- <div class="col-sm-2 form-group">
65
- <label class="font_normal_body">气价类型</label>
66
- <v-select :value.sync="model.pricetype" v-model="model.pricetype"
67
- placeholder='气价类型' :options="$parent.$parent.pricetypes"
68
- close-on-select>
69
- </v-select>
70
- </div>
71
- <div class="col-sm-2 form-group">
72
- <label class="font_normal_body">气价名称</label>
73
- <v-select :value.sync="model.f_price_name"
74
- v-model="model.f_price_name"
75
- :options="$parent.$parent.getPricenames"
76
- condition="ts.f_price_name = '{}'"
77
- close-on-select></v-select>
78
- </div>
79
-
80
- <div class="span" style="float:right;margin-top:10px">
81
- <button class="button_search button_spacing" @click="search()">查询</button>
82
- <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
83
- <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
84
- :field="$parent.$parent.getfield"
85
- sqlurl="rs/logic/exportfile" sql-name="manage_getReportList" template-name='上报查询'
86
- :choose-col="true"></export-excel>
87
- <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>
88
- </div>
89
- </div>
90
- <div class="row" v-show="$parent.$parent.criteriaShow">
91
- <div class="col-sm-2 " >
92
- <label class="font_normal_body" >开始时间</label>
93
- <datepicker style="width: 60%" placeholder="大于等于"
94
- :value.sync="model.f_start_date"
95
- v-model="model.f_start_date"
96
- :format="'yyyy-MM-dd HH:mm:ss'"
97
- condition="m.f_hand_date >= '{}'"
98
- ></datepicker>
99
- </div>
100
- <div class="col-sm-2 " >
101
- <label class="font_normal_body">结束时间</label>
102
- <datepicker style="width: 60%" placeholder="小于等于"
103
- :value.sync="model.f_end_date"
104
- v-model="model.f_end_date"
105
- :format="'yyyy-MM-dd HH:mm:ss'"
106
- condition="m.f_hand_date <= '{}'"
107
- ></datepicker>
108
- </div>
109
- </div>
110
- </div>
111
- </criteria>
112
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
113
- <template partial='head'>
114
- <tr>
115
- <th><nobr>客户编号</nobr></th>
116
- <th><nobr>表号</nobr></th>
117
- <th><nobr>客户姓名</nobr></th>
118
- <th><nobr>客户电话</nobr></th>
119
- <th><nobr>客户地址</nobr></th>
120
-
121
- <th><nobr>上报日期</nobr></th>
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
-
128
- <th><nobr>上报类型</nobr></th>
129
- <th><nobr>表内累计充值金额</nobr></th>
130
- <th><nobr>噪音强度</nobr></th>
131
- <th><nobr>信噪比</nobr></th>
132
- <th><nobr>电压</nobr></th>
133
-
134
- <th><nobr>表状态</nobr></th>
135
- <th><nobr>金额状态</nobr></th>
136
- <!-- <th><nobr>每小时上报量</nobr></th>-->
137
- </tr>
138
- </template>
139
- <template partial='body' partial='list'>
140
- <tr >
141
- <td style="text-align: left;"><nobr> <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr></td>
142
- <td style="text-align: left;"><nobr>{{row.f_meternumber}}</nobr></td>
143
- <td style="text-align: left;"><nobr>{{row.f_user_name}}</nobr></td>
144
- <td style="text-align: left;"><nobr>{{row.f_user_phone}}</nobr></td>
145
- <td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
146
-
147
- <td style="text-align:center"><nobr>{{row.f_hand_date}}</nobr></td>
148
- <th style="text-align:center"><nobr>{{row.f_insert_date}}</nobr></th>
149
- <th style="text-align:center"><nobr>{{row.f_meterbalanceamt}}</nobr></th>
150
- <th style="text-align:center"><nobr>{{row.f_price}}</nobr></th>
151
- <th style="text-align:center"><nobr>{{row.f_tablebase}}</nobr></th>
152
- <th style="text-align:center"><nobr>{{row.f_valvestate}}</nobr></th>
153
-
154
-
155
- <th style="text-align:center"><nobr>{{row.f_upload_type}}</nobr></th>
156
- <th style="text-align:center"><nobr>{{row.f_meterdebitamt}}</nobr></th>
157
- <th style="text-align:center"><nobr>{{row.f_signal}}</nobr></th>
158
- <th style="text-align:center"><nobr>{{row.f_snr}}</nobr></th>
159
- <th style="text-align:center"><nobr>{{row.f_batterylevel}}</nobr></th>
160
-
161
- <th style="text-align:center"><nobr>{{row.f_table_msg}}</nobr></th>
162
- <th style="text-align:center"><nobr>{{row.f_moneystate}}</nobr></th>
163
- <!-- <th style="text-align:center"><nobr>{{row.f_nsturalgas_data}}</nobr></th>-->
164
- <!-- <th style="text-align:center"><nobr><span @click="$parent.$parent.$parent.showdetail(row.f_nsturalgas_data)"><a>查看</a></span></nobr></th>-->
165
- <!-- <th style="text-align:center">-->
166
- <!-- <button type="button" class="button_search button_spacing width-60" @click="$parent.$parent.$parent.showdetail(row.f_nsturalgas_data)">查看</button>-->
167
- <!-- </th>-->
168
- </tr>
169
- </template>
170
- <template partial='foot'></template>
171
- </data-grid>
172
- </criteria-paged>
173
- <table class="table-hover">
174
- <!-- <tr style="position: relative" class="table-bordered">-->
175
- <!-- <td-->
176
- <!-- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">-->
177
- <!-- 汇总信息-->
178
- <!-- </td>-->
179
- <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
180
- <!-- 表内剩余金额合计:&emsp;{{sumsmodel.f_meterbalanceamt}}-->
181
- <!-- </td>-->
182
- <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
183
- <!-- 抄表底数合计:&emsp;{{sumsmodel.f_tablebase}}-->
184
- <!-- </td>-->
185
- <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
186
- <!-- 表累计充值金额合计:&emsp;{{sumsmodel.f_meterdebitamt}}-->
187
- <!-- </td>-->
188
- <!-- </tr>-->
189
- </table>
190
- <modal :show.sync="detail24" >
191
- <header slot="modal-header" class="modal-header">
192
- <h4 class="modal-title">24小时上报数据明细</h4>
193
- </header>
194
- <article slot="modal-body" class="modal-body">
195
- <table v-for="detail of detaillist">
196
- <tr><td>{{detail.frozenDate}}</td><td>&nbsp;&nbsp;--&nbsp;&nbsp;</td><td>{{detail.frozenValue}}</td></tr>
197
- </table>
198
- </article>
199
- <footer slot="modal-footer" class="modal-footer">
200
- <div class="form-group">
201
- <button class="btn btn-success" @click="close()">确认</button>
202
- <button type="button" class="btn btn-default" @click='close'>取消</button>
203
- </div>
204
- </footer>
205
- </modal>
206
- </div>
207
- <div class="flex" v-if="show">
208
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
209
- </div>
210
- </div>
211
-
212
- </div>
213
- </template>
214
-
215
- <script>
216
- import {HttpResetClass, PagedList} from 'vue-client'
217
- import exportConfig from '../../components/sale/config/exportConfig'
218
- import plugins from '../../plugins/GetLoginInfoService'
219
- import defaultPrint from "../../components/sale/config/DefaultPrint";
220
-
221
- let readySomething = async function (self) {
222
- await self.$MagLoadParams.loadParam()
223
- self.initParams()
224
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
225
- }
226
- export default {
227
- title: '上报查询',
228
- data () {
229
- return {
230
- show:false,
231
- detail24: false,
232
- org:[this.$login.f.orgid],
233
- orgcondition:' and f_filialeid = ' + this.$login.f.orgid,
234
- f_filialeid: this.$login.f.f_orgid,
235
- detaillist: [],
236
- prices: [],
237
- gasproperties:[],
238
- condition:'',
239
- rowdata:{},
240
- sumsmodel: {},
241
- orgid:[this.$login.f.orgid],
242
- criteriaShow:false,
243
- orgCondtionStr: '',
244
- model: new PagedList('rs/sql/manage_getReportList', 50,{},{f_meterbalanceamt: 0,f_tablebase: 0,f_meterdebitamt: 0})
245
- }
246
- },
247
- ready () {
248
- // this.$refs.paged.$refs.criteria.search()
249
- readySomething(this).then(() => {
250
- this.$emit('ready')
251
- }).catch((error) => {
252
- this.$emit('error', error)
253
- })
254
- },
255
- methods: {
256
- initParams() {
257
- // 初始化气表品牌
258
- let brandArr = []
259
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
260
- let temp = {}
261
- temp.label = item.label
262
- temp.value = item.value.f_meter_brand
263
- brandArr.push(temp)
264
- })
265
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
266
- //初始化气表价格
267
- this.prices = this.$MagGetSaleParam.getPrices();
268
- },
269
- async updateParams() {
270
- await this.$MagLoadParams.loadParam(this.f_filialeid)
271
- this.initParams()
272
- },
273
- getorg(obj) {
274
- if(plugins.convertToIn(obj)!==null&&plugins.convertToIn(obj)!==''){
275
- this.orgcondition = " and m.f_orgid in " + plugins.convertToIn(obj)
276
- }else{
277
- this.orgcondition = " and m.f_orgid = " + this.$login.f.orgid
278
- }
279
-
280
- },
281
- userTypeChange () {
282
- this.gasproperties=[]
283
- if(this.$refs.paged.$refs.criteria.model !==null) {
284
- this.$refs.paged.$refs.criteria.model.f_gasproperties=''
285
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
286
- }
287
- else{
288
- this.gasproperties =[{label: '全部', value: ''}]
289
- }
290
- },
291
- showdetail(val) {
292
- console.log('24detail==', val)
293
- if(val){
294
- let detail = eval("("+val+")")
295
- this.detaillist = detail
296
- this.detail24 = true
297
- }else{
298
- console.log('无数据')
299
- }
300
- },
301
- close() {
302
- this.detail24 = false
303
- },
304
- hidden(){
305
- this.criteriaShow = !this.criteriaShow
306
- },
307
- cancel() {
308
- this.show = false
309
- },
310
- clearmsg () {
311
- Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
312
- this.$refs.paged.$refs.criteria.model[key] = []
313
- })
314
- },
315
- getRes (obj) {
316
- this.orgCondtionStr = condition
317
- this.orgname = obj.orgnames[0]
318
- this.depname = obj.depnames[0]
319
- },
320
- showmsg(obj){
321
- this.rowdata=obj
322
- this.show=true
323
- },
324
-
325
- search (args) {
326
- args.condition = `${args.condition}`+this.orgcondition
327
- console.log(args.condition+"args.condition")
328
- this.condition = args.condition
329
- this.model.search(args.condition, args.model)
330
- console.log(this.$refs.paged.$refs.grid.model.sums+"--this.$refs.paged.$refs.grid.model.sums")
331
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
332
- // args.condition = `${args.condition}`
333
- // if (this.orgcondition)
334
- // args.condition = `${args.condition}` + this.orgcondition
335
- // else
336
- // args.condition = `${args.condition}` + 'and m.f_orgid in ' + '(' + this.$login.f.orgid + ')'
337
- // this.model.search(args.condition, args.model)
338
- }
339
- },
340
- watch: {
341
- 'orgCondtionStr'(val) {
342
- let res = val.match(/'(.*?)'/)
343
- console.log('正则提取:',res && res[1])
344
- if (res) {
345
- this.f_filialeid = res[1]
346
- this.updateParams()
347
- }
348
- }
349
- },
350
- computed: {
351
- getPricenames() {
352
- let f_user_type = this.$refs.paged.$refs.criteria.model.f_user_type;
353
- let f_gasproperties = this.$refs.paged.$refs.criteria.model.f_gasproperties;
354
- let pricetype = this.$refs.paged.$refs.criteria.model.pricetype;
355
- console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
356
- console.log("查看f_orgid:",this.$login.f.f_orgid)
357
- if(this.$refs.paged.$refs.criteria.model !==null) {
358
- let rs = []
359
- let priceArr = []
360
- if ( pricetype.length >0) {
361
- let params = {
362
- f_price_type: pricetype[0],
363
- filter: this.org[0],
364
- prices: this.prices
365
- }
366
- console.log("打印一下params:",params)
367
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
368
- console.log("====================================》")
369
- let temp = {}
370
- temp.label = item.label
371
- temp.value = item.value.f_price_name
372
- priceArr.push(temp)
373
- console.log("打印一下temp:",temp)
374
- })
375
-
376
- rs = [{label: '全部', value: ''}, ...priceArr]
377
- }
378
- if (rs.length === 0) {
379
- console.log('rs读出来是空')
380
- this.$refs.paged.$refs.criteria.model.f_price_name = ''
381
- }
382
- return rs
383
- }
384
- },
385
- getfield () {
386
- return exportConfig.ReportListConfig
387
- },
388
- usertypes() {
389
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
390
- },
391
- pricetypes() {
392
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
393
- },
394
- getCondition () {
395
- var con = ""
396
- if (this.orgCondtionStr) {
397
- con = `${this.$refs.paged.$refs.criteria.condition} `+this.orgcondition
398
- }
399
- else {
400
- con = `${this.$refs.paged.$refs.criteria.condition} `+this.orgcondition
401
- }
402
- return {
403
- condition: con
404
- }
405
- }
406
- }
407
- }
408
- </script>
409
-
410
- <style>
411
- .mystyle{
412
- margin-left:80px;
413
- }
414
- .datapanel {
415
- color: #333;
416
- background-color: white;
417
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
418
- padding: 10px 10px 10px 10px;
419
- border-radius:15px;
420
- }
421
- </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
+ <div class="col-sm-2">
45
+ <label class="font_normal_body">客户地址</label>
46
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_address" placeholder='客户地址'
47
+ condition="ua.f_address like '%{}%'" v-next-el='userid' v-el:username>
48
+ </div>
49
+ <div class="col-sm-2 form-group">
50
+ <label class="font_normal_body">客户类型</label>
51
+ <v-select :value.sync="model.f_user_type"
52
+ @change="$parent.$parent.userTypeChange()"
53
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
54
+ condition="uf.f_user_type = '{}'"
55
+ close-on-select></v-select>
56
+ </div>
57
+ <div class="col-sm-2 form-group">
58
+ <label class="font_normal_body">用气性质</label>
59
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
60
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
61
+ condition="uf.f_gasproperties = '{}'"
62
+ closfe-on-select></v-select>
63
+ </div>
64
+ <div class="col-sm-2 form-group">
65
+ <label class="font_normal_body">气价类型</label>
66
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
67
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
68
+ close-on-select>
69
+ </v-select>
70
+ </div>
71
+ <div class="col-sm-2 form-group">
72
+ <label class="font_normal_body">气价名称</label>
73
+ <v-select :value.sync="model.f_price_name"
74
+ v-model="model.f_price_name"
75
+ :options="$parent.$parent.getPricenames"
76
+ condition="ts.f_price_name = '{}'"
77
+ close-on-select></v-select>
78
+ </div>
79
+
80
+ <div class="span" style="float:right;margin-top:10px">
81
+ <button class="button_search button_spacing" @click="search()">查询</button>
82
+ <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
83
+ <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
84
+ :field="$parent.$parent.getfield"
85
+ sqlurl="rs/logic/exportfile" sql-name="manage_getReportList" template-name='上报查询'
86
+ :choose-col="true"></export-excel>
87
+ <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>
88
+ </div>
89
+ </div>
90
+ <div class="row" v-show="$parent.$parent.criteriaShow">
91
+ <div class="col-sm-2 " >
92
+ <label class="font_normal_body" >开始时间</label>
93
+ <datepicker style="width: 60%" placeholder="大于等于"
94
+ :value.sync="model.f_start_date"
95
+ v-model="model.f_start_date"
96
+ :format="'yyyy-MM-dd HH:mm:ss'"
97
+ condition="m.f_hand_date >= '{}'"
98
+ ></datepicker>
99
+ </div>
100
+ <div class="col-sm-2 " >
101
+ <label class="font_normal_body">结束时间</label>
102
+ <datepicker style="width: 60%" placeholder="小于等于"
103
+ :value.sync="model.f_end_date"
104
+ v-model="model.f_end_date"
105
+ :format="'yyyy-MM-dd HH:mm:ss'"
106
+ condition="m.f_hand_date <= '{}'"
107
+ ></datepicker>
108
+ </div>
109
+ </div>
110
+ </div>
111
+ </criteria>
112
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
113
+ <template partial='head'>
114
+ <tr>
115
+ <th><nobr>客户编号</nobr></th>
116
+ <th><nobr>表号</nobr></th>
117
+ <th><nobr>客户姓名</nobr></th>
118
+ <th><nobr>客户电话</nobr></th>
119
+ <th><nobr>客户地址</nobr></th>
120
+
121
+ <th><nobr>上报日期</nobr></th>
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
+
128
+ <th><nobr>上报类型</nobr></th>
129
+ <th><nobr>表内累计充值金额</nobr></th>
130
+ <th><nobr>噪音强度</nobr></th>
131
+ <th><nobr>信噪比</nobr></th>
132
+ <th><nobr>电压</nobr></th>
133
+
134
+ <th><nobr>表状态</nobr></th>
135
+ <th><nobr>金额状态</nobr></th>
136
+ <!-- <th><nobr>每小时上报量</nobr></th>-->
137
+ </tr>
138
+ </template>
139
+ <template partial='body' partial='list'>
140
+ <tr >
141
+ <td style="text-align: left;"><nobr> <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr></td>
142
+ <td style="text-align: left;"><nobr>{{row.f_meternumber}}</nobr></td>
143
+ <td style="text-align: left;"><nobr>{{row.f_user_name}}</nobr></td>
144
+ <td style="text-align: left;"><nobr>{{row.f_user_phone}}</nobr></td>
145
+ <td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
146
+
147
+ <td style="text-align:center"><nobr>{{row.f_hand_date}}</nobr></td>
148
+ <th style="text-align:center"><nobr>{{row.f_insert_date}}</nobr></th>
149
+ <th style="text-align:center"><nobr>{{row.f_meterbalanceamt}}</nobr></th>
150
+ <th style="text-align:center"><nobr>{{row.f_price}}</nobr></th>
151
+ <th style="text-align:center"><nobr>{{row.f_tablebase}}</nobr></th>
152
+ <th style="text-align:center"><nobr>{{row.f_valvestate}}</nobr></th>
153
+
154
+
155
+ <th style="text-align:center"><nobr>{{row.f_upload_type}}</nobr></th>
156
+ <th style="text-align:center"><nobr>{{row.f_meterdebitamt}}</nobr></th>
157
+ <th style="text-align:center"><nobr>{{row.f_signal}}</nobr></th>
158
+ <th style="text-align:center"><nobr>{{row.f_snr}}</nobr></th>
159
+ <th style="text-align:center"><nobr>{{row.f_batterylevel}}</nobr></th>
160
+
161
+ <th style="text-align:center"><nobr>{{row.f_table_msg}}</nobr></th>
162
+ <th style="text-align:center"><nobr>{{row.f_moneystate}}</nobr></th>
163
+ <!-- <th style="text-align:center"><nobr>{{row.f_nsturalgas_data}}</nobr></th>-->
164
+ <!-- <th style="text-align:center"><nobr><span @click="$parent.$parent.$parent.showdetail(row.f_nsturalgas_data)"><a>查看</a></span></nobr></th>-->
165
+ <!-- <th style="text-align:center">-->
166
+ <!-- <button type="button" class="button_search button_spacing width-60" @click="$parent.$parent.$parent.showdetail(row.f_nsturalgas_data)">查看</button>-->
167
+ <!-- </th>-->
168
+ </tr>
169
+ </template>
170
+ <template partial='foot'></template>
171
+ </data-grid>
172
+ </criteria-paged>
173
+ <table class="table-hover">
174
+ <!-- <tr style="position: relative" class="table-bordered">-->
175
+ <!-- <td-->
176
+ <!-- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">-->
177
+ <!-- 汇总信息-->
178
+ <!-- </td>-->
179
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
180
+ <!-- 表内剩余金额合计:&emsp;{{sumsmodel.f_meterbalanceamt}}-->
181
+ <!-- </td>-->
182
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
183
+ <!-- 抄表底数合计:&emsp;{{sumsmodel.f_tablebase}}-->
184
+ <!-- </td>-->
185
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
186
+ <!-- 表累计充值金额合计:&emsp;{{sumsmodel.f_meterdebitamt}}-->
187
+ <!-- </td>-->
188
+ <!-- </tr>-->
189
+ </table>
190
+ <modal :show.sync="detail24" >
191
+ <header slot="modal-header" class="modal-header">
192
+ <h4 class="modal-title">24小时上报数据明细</h4>
193
+ </header>
194
+ <article slot="modal-body" class="modal-body">
195
+ <table v-for="detail of detaillist">
196
+ <tr><td>{{detail.frozenDate}}</td><td>&nbsp;&nbsp;--&nbsp;&nbsp;</td><td>{{detail.frozenValue}}</td></tr>
197
+ </table>
198
+ </article>
199
+ <footer slot="modal-footer" class="modal-footer">
200
+ <div class="form-group">
201
+ <button class="btn btn-success" @click="close()">确认</button>
202
+ <button type="button" class="btn btn-default" @click='close'>取消</button>
203
+ </div>
204
+ </footer>
205
+ </modal>
206
+ </div>
207
+ <div class="flex" v-if="show">
208
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
209
+ </div>
210
+ </div>
211
+
212
+ </div>
213
+ </template>
214
+
215
+ <script>
216
+ import {HttpResetClass, PagedList} from 'vue-client'
217
+ import exportConfig from '../../components/sale/config/exportConfig'
218
+ import plugins from '../../plugins/GetLoginInfoService'
219
+ import defaultPrint from "../../components/sale/config/DefaultPrint";
220
+
221
+ let readySomething = async function (self) {
222
+ await self.$MagLoadParams.loadParam()
223
+ self.initParams()
224
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
225
+ }
226
+ export default {
227
+ title: '上报查询',
228
+ data () {
229
+ return {
230
+ show:false,
231
+ detail24: false,
232
+ org:[this.$login.f.orgid],
233
+ orgcondition:' and f_filialeid = ' + this.$login.f.orgid,
234
+ f_filialeid: this.$login.f.f_orgid,
235
+ detaillist: [],
236
+ prices: [],
237
+ gasproperties:[],
238
+ condition:'',
239
+ rowdata:{},
240
+ sumsmodel: {},
241
+ orgid:[this.$login.f.orgid],
242
+ criteriaShow:false,
243
+ orgCondtionStr: '',
244
+ model: new PagedList('rs/sql/manage_getReportList', 50,{},{f_meterbalanceamt: 0,f_tablebase: 0,f_meterdebitamt: 0})
245
+ }
246
+ },
247
+ ready () {
248
+ // this.$refs.paged.$refs.criteria.search()
249
+ readySomething(this).then(() => {
250
+ this.$emit('ready')
251
+ }).catch((error) => {
252
+ this.$emit('error', error)
253
+ })
254
+ },
255
+ methods: {
256
+ initParams() {
257
+ // 初始化气表品牌
258
+ let brandArr = []
259
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
260
+ let temp = {}
261
+ temp.label = item.label
262
+ temp.value = item.value.f_meter_brand
263
+ brandArr.push(temp)
264
+ })
265
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
266
+ //初始化气表价格
267
+ this.prices = this.$MagGetSaleParam.getPrices();
268
+ },
269
+ async updateParams() {
270
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
271
+ this.initParams()
272
+ },
273
+ getorg(obj) {
274
+ if(plugins.convertToIn(obj)!==null&&plugins.convertToIn(obj)!==''){
275
+ this.orgcondition = " and m.f_orgid in " + plugins.convertToIn(obj)
276
+ }else{
277
+ this.orgcondition = " and m.f_orgid = " + this.$login.f.orgid
278
+ }
279
+
280
+ },
281
+ userTypeChange () {
282
+ this.gasproperties=[]
283
+ if(this.$refs.paged.$refs.criteria.model !==null) {
284
+ this.$refs.paged.$refs.criteria.model.f_gasproperties=''
285
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
286
+ }
287
+ else{
288
+ this.gasproperties =[{label: '全部', value: ''}]
289
+ }
290
+ },
291
+ showdetail(val) {
292
+ console.log('24detail==', val)
293
+ if(val){
294
+ let detail = eval("("+val+")")
295
+ this.detaillist = detail
296
+ this.detail24 = true
297
+ }else{
298
+ console.log('无数据')
299
+ }
300
+ },
301
+ close() {
302
+ this.detail24 = false
303
+ },
304
+ hidden(){
305
+ this.criteriaShow = !this.criteriaShow
306
+ },
307
+ cancel() {
308
+ this.show = false
309
+ },
310
+ clearmsg () {
311
+ Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
312
+ this.$refs.paged.$refs.criteria.model[key] = []
313
+ })
314
+ },
315
+ getRes (obj) {
316
+ this.orgCondtionStr = condition
317
+ this.orgname = obj.orgnames[0]
318
+ this.depname = obj.depnames[0]
319
+ },
320
+ showmsg(obj){
321
+ this.rowdata=obj
322
+ this.show=true
323
+ },
324
+
325
+ search (args) {
326
+ args.condition = `${args.condition}`+this.orgcondition
327
+ console.log(args.condition+"args.condition")
328
+ this.condition = args.condition
329
+ this.model.search(args.condition, args.model)
330
+ console.log(this.$refs.paged.$refs.grid.model.sums+"--this.$refs.paged.$refs.grid.model.sums")
331
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
332
+ // args.condition = `${args.condition}`
333
+ // if (this.orgcondition)
334
+ // args.condition = `${args.condition}` + this.orgcondition
335
+ // else
336
+ // args.condition = `${args.condition}` + 'and m.f_orgid in ' + '(' + this.$login.f.orgid + ')'
337
+ // this.model.search(args.condition, args.model)
338
+ }
339
+ },
340
+ watch: {
341
+ 'orgCondtionStr'(val) {
342
+ let res = val.match(/'(.*?)'/)
343
+ console.log('正则提取:',res && res[1])
344
+ if (res) {
345
+ this.f_filialeid = res[1]
346
+ this.updateParams()
347
+ }
348
+ }
349
+ },
350
+ computed: {
351
+ getPricenames() {
352
+ let f_user_type = this.$refs.paged.$refs.criteria.model.f_user_type;
353
+ let f_gasproperties = this.$refs.paged.$refs.criteria.model.f_gasproperties;
354
+ let pricetype = this.$refs.paged.$refs.criteria.model.pricetype;
355
+ console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
356
+ console.log("查看f_orgid:",this.$login.f.f_orgid)
357
+ if(this.$refs.paged.$refs.criteria.model !==null) {
358
+ let rs = []
359
+ let priceArr = []
360
+ if ( pricetype.length >0) {
361
+ let params = {
362
+ f_price_type: pricetype[0],
363
+ filter: this.org[0],
364
+ prices: this.prices
365
+ }
366
+ console.log("打印一下params:",params)
367
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
368
+ console.log("====================================》")
369
+ let temp = {}
370
+ temp.label = item.label
371
+ temp.value = item.value.f_price_name
372
+ priceArr.push(temp)
373
+ console.log("打印一下temp:",temp)
374
+ })
375
+
376
+ rs = [{label: '全部', value: ''}, ...priceArr]
377
+ }
378
+ if (rs.length === 0) {
379
+ console.log('rs读出来是空')
380
+ this.$refs.paged.$refs.criteria.model.f_price_name = ''
381
+ }
382
+ return rs
383
+ }
384
+ },
385
+ getfield () {
386
+ return exportConfig.ReportListConfig
387
+ },
388
+ usertypes() {
389
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
390
+ },
391
+ pricetypes() {
392
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
393
+ },
394
+ getCondition () {
395
+ var con = ""
396
+ if (this.orgCondtionStr) {
397
+ con = `${this.$refs.paged.$refs.criteria.condition} `+this.orgcondition
398
+ }
399
+ else {
400
+ con = `${this.$refs.paged.$refs.criteria.condition} `+this.orgcondition
401
+ }
402
+ return {
403
+ condition: con
404
+ }
405
+ }
406
+ }
407
+ }
408
+ </script>
409
+
410
+ <style>
411
+ .mystyle{
412
+ margin-left:80px;
413
+ }
414
+ .datapanel {
415
+ color: #333;
416
+ background-color: white;
417
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
418
+ padding: 10px 10px 10px 10px;
419
+ border-radius:15px;
420
+ }
421
+ </style>