manage-client 3.2.70-aode → 3.2.71-aode

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 (65) hide show
  1. package/build/dev-server.js +193 -193
  2. package/build/webpack.base.conf.js +79 -79
  3. package/client.iml +14 -14
  4. package/package.json +1 -1
  5. package/src/Util.js +383 -383
  6. package/src/components/MeterManage/MeterList.vue +336 -336
  7. package/src/components/WebReport/UserGasAll.vue +214 -214
  8. package/src/components/sale/businessquery/ChangeMeterQuery.vue +667 -667
  9. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  10. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  11. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  12. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  13. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  14. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  15. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  16. package/src/components/sale/businessquery/InspectListGas.vue +456 -456
  17. package/src/components/sale/businessquery/NewAccountQuery.vue +506 -506
  18. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  19. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  20. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  21. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  22. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  23. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  24. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  25. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  26. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  27. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  28. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  29. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  30. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  31. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  32. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  33. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  34. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  35. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  36. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  37. package/src/components/sale/report/aode/YearByUserType.vue +342 -342
  38. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  39. package/src/components/sale/report/aode/iot/ReportQuery.vue +387 -387
  40. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  41. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  42. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  43. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  44. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  45. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  46. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  47. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
  48. package/src/components/webmeter/DrillData/NewUserGasAll.vue +568 -568
  49. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
  50. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  51. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  52. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  53. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  54. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  55. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  56. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  57. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  58. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  59. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
  60. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  61. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  62. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  63. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  64. package/src/components/webmeter/report/ReportList.vue +211 -211
  65. package/src/main.js +56 -56
@@ -1,387 +1,387 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex" v-if="!show">
5
- <criteria-paged :model="model" v-ref:paged>
6
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
- <div class="row">
9
- <div class="col-sm-2 form-group">
10
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp;</label>
11
- <right-tree @re-res="$parent.$parent.getorg"
12
- :initresid='$parent.$parent.org'></right-tree>
13
- </div>
14
- <div class="col-sm-2 form-group">
15
- <label class="font_normal_body">客户编号</label>
16
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
17
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
18
- </div>
19
- <div class="col-sm-2 form-group">
20
- <label class="font_normal_body">客户名称</label>
21
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
22
- condition="f_user_name like '%{}%'" placeholder="客户名称">
23
- </div>
24
- <div class="col-sm-2 form-group">
25
- <label for="startDate" class="font_normal_body">开始日期</label>
26
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
27
- v-model="model.startDate"
28
- :value.sync="model.startDate"
29
- :format="'yyyy-MM-dd HH:mm:ss'"
30
- :show-reset-button="true"
31
- condition="f_hand_date >= '{}'">
32
- </datepicker>
33
- </div>
34
- <div class="col-sm-2 form-group">
35
- <label for="endDate" class="font_normal_body">结束日期</label>
36
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
37
- v-model="model.endDate"
38
- :value.sync="model.endDate"
39
- :format="'yyyy-MM-dd HH:mm:ss'"
40
- :show-reset-button="true"
41
- condition="f_hand_date <= '{}'">
42
- </datepicker>
43
- </div>
44
- <div class="col-sm-2 form-group">
45
- <label class="font_normal_body">表号</label>
46
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
47
- condition="f_meternumber = '{}' " placeholder="表号">
48
- </div>
49
- <div class="col-sm-2">
50
- <label class="font_normal_body">气表品牌</label>
51
- <v-select :value.sync="model.f_meter_brand"
52
- v-model="model.f_meter_brand"
53
- :options='$parent.$parent.meterbrands' placeholder='请选择'
54
- condition="f_meter_brand = '{}'"
55
- close-on-select></v-select>
56
- </div>
57
- <div class="span" style="float:right;">
58
- <button class="button_search button_spacing" @click="search()">查询</button>
59
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
60
-
61
- <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
62
- :field="$parent.$parent.getfield"
63
- :defaultselect="$parent.$parent.selectfields"
64
- sqlurl="rs/logic/exportfile" sql-name="getReportQuery" template-name='上报数据'
65
- :choose-col="true"></export-excel>
66
- </div>
67
- </div>
68
-
69
- </div>
70
- </criteria>
71
-
72
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
73
- <template partial='head'>
74
- <tr>
75
- <th>
76
- <nobr>客户编号</nobr>
77
- </th>
78
- <th>
79
- <nobr>客户名称</nobr>
80
- </th>
81
- <th>
82
- <nobr>本次抄表底数</nobr>
83
- </th>
84
- <th>
85
- <nobr>气表品牌</nobr>
86
- </th>
87
- <th>
88
- <nobr>压力</nobr>
89
- </th>
90
- <th>
91
- <nobr>温度</nobr>
92
- </th>
93
- <th>
94
- <nobr>上次抄表底数</nobr>
95
- </th>
96
- <th>
97
- <nobr>表计剩余金额</nobr>
98
- </th>
99
- <th>
100
- <nobr>表内剩余金额</nobr>
101
- </th>
102
- <th>
103
- <nobr>表号</nobr>
104
- </th>
105
- <th>
106
- <nobr>抄表日期</nobr>
107
- </th>
108
- <th>
109
- <nobr>上次抄表日期</nobr>
110
- </th>
111
-
112
- <th>
113
- <nobr>组织名称</nobr>
114
- </th>
115
- <th>
116
- <nobr>部门名称</nobr>
117
- </th>
118
-
119
- </tr>
120
- </template>
121
- <template partial='body'>
122
- <td style="text-align: center;">
123
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
124
- </td>
125
- <td style="text-align: center;">
126
- <nobr>{{row.f_user_name}}</nobr>
127
- </td>
128
- <td style="text-align: center;">
129
- <nobr>{{row.f_tablebase}}</nobr>
130
- </td>
131
- <td style="text-align: center;">
132
- <nobr>{{row.f_meter_brand}}</nobr>
133
- </td>
134
- <td style="text-align: center;">
135
- <nobr>{{row.flowmeterpressure}}</nobr>
136
- </td>
137
- <td style="text-align: center;">
138
- <nobr>{{row.flowmetertemperature}}</nobr>
139
- </td>
140
- <td style="text-align: center;">
141
- <nobr>{{row.f_last_tablebase}}</nobr>
142
- </td>
143
- <td style="text-align: center;">
144
- <nobr>{{row.f_jval}}</nobr>
145
- </td>
146
- <td style="text-align: center;">
147
- <nobr>{{row.f_meterBalanceAmt}}</nobr>
148
- </td>
149
- <td style="text-align: center;">
150
- <nobr>{{row.f_meternumber}}</nobr>
151
- </td>
152
- <td style="text-align: center;">
153
- <nobr>{{row.f_hand_date}}</nobr>
154
- </td>
155
- <td style="text-align: center;">
156
- <nobr>{{row.f_last_hand_date}}</nobr>
157
- </td>
158
- <td style="text-align: center;">
159
- <nobr>{{row.f_orgname}}</nobr>
160
- </td>
161
- <td style="text-align: center;">
162
- <nobr>{{row.f_depname}}</nobr>
163
- </td>
164
-
165
- </template>
166
- <template partial='foot'></template>
167
- </data-grid>
168
-
169
- </criteria-paged>
170
-
171
-
172
- </div>
173
- <div v-if="show">
174
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
175
- </div>
176
- </div>
177
- </div>
178
- </template>
179
-
180
- <script>
181
- import {PagedList} from 'vue-client'
182
- import exportConfig from '../../../config/exportConfig'
183
- import defaultPrint from "../../../config/DefaultPrint";
184
- import plugin from "system-clients/src/plugins/GetLoginInfoService";
185
-
186
- let readySomething = async function (self) {
187
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
188
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
189
- // self.$refs.paged.$refs.cri.search()
190
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
191
- await self.$MagLoadParams.loadParam()
192
- self.initParams()
193
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
194
- }
195
- export default {
196
- title: '上报数据',
197
- data() {
198
- return {
199
- org:[this.$login.f.orgid],
200
- filialeCodeStr: `and f_orgid = ${this.$login.f.orgid}`,
201
- config: {
202
- defaultPrint: ['f_userinfo_code', 'f_address', 'f_pregas', 'f_preamount']
203
- },
204
- //f_price_name:[],
205
- gasproperties:[],
206
- showinfo: false,
207
- data: {},
208
- show:false,
209
- rowdata:{},
210
- initres: {
211
- org:[this.$login.f.orgid],
212
- dep:[],
213
- user:[],
214
- },
215
- model: new PagedList('rs/sql/getReportQuery', 20, {}, ),
216
- criteriaShow: false,
217
- orgCondtionStr: '',
218
- // 下拉框
219
- meterbrands: [],
220
- pricenames: [],
221
- prices: [],
222
- //合计数据
223
- defaultfield: [],
224
- sumsmodel: {},
225
- f_filialeid: this.$login.f.f_orgid,
226
- selectfields:[]
227
- }
228
- },
229
- props:['selectorg'],
230
- ready() {
231
- if(this.selectorg != null && this.selectorg != null != ''){
232
- this.initres.org=[]
233
- this.initres.org.push(this.selectorg);
234
- }
235
- readySomething(this).then(() => {
236
- this.$emit('ready')
237
- }).catch((error) => {
238
- this.$emit('error', error)
239
- })
240
- for(var item in exportConfig.reportConfig){
241
- this.selectfields.push(item)
242
- }
243
- },
244
- methods: {
245
- initParams() {
246
- // 初始化气表品牌
247
- let brandArr = []
248
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
249
- let temp = {}
250
- temp.label = item.label
251
- temp.value = item.value.f_meter_brand
252
- brandArr.push(temp)
253
- })
254
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
255
- },
256
- getorg (obj) {
257
- if(obj.resids.length>0){
258
- this.selectorgid = obj.resids
259
- this.filialeCodeStr =" and f_orgid in " + plugin.convertToIn(obj.resids)
260
- }
261
- else{
262
- this.filialeCodeStr= " and f_orgid = " + this.$login.f.orgid
263
- }
264
- },
265
- search(){
266
- this.$refs.paged.$refs.cri.search()
267
- },
268
- cancel() {
269
- this.show = false
270
- },
271
- showmsg(obj){
272
- this.rowdata=obj
273
- this.show=true
274
- },
275
- userTypeChange () {
276
- this.gasproperties=[]
277
- if(this.$refs.paged.$refs.cri.model !==null) {
278
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
279
-
280
- console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
281
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
282
- // this.gasproperties.push({label: '全部', value: ''})
283
- }
284
- else{
285
- this.gasproperties =[{label: '全部', value: ''}]
286
- }
287
- },
288
-
289
- selfSearch(args) {
290
- args.condition = args.condition+ ` ${this.filialeCodeStr}`
291
- this.model.search(args.condition, args.model)
292
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
293
-
294
- // let f_orgstr = this.orgCondtionStr
295
- // args.condition = `${args.condition} ` + f_orgstr + 'and f_orgid in ('+ this.f_orgid +')'
296
- // this.model.search(args.condition, args.model)
297
- // this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
298
- },
299
- clear() {
300
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
301
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
302
- this.$refs.paged.$refs.cri.model[key] = []
303
- })
304
-
305
- },
306
- dealmsg(val) {
307
- val.model = this.model.model
308
- this.$dispatch('deal-msg', val)
309
- },
310
- show() {
311
- this.criteriaShow = true
312
- },
313
- hidden() {
314
- this.criteriaShow = !this.criteriaShow
315
- },
316
- getRes(condition,obj) {
317
- this.orgCondtionStr = condition
318
- this.f_orgid = obj.resids
319
- },
320
- stamp() {
321
- this.all = false
322
- //默认选择要打印的列
323
- this.modelval = defaultPrint.config
324
- this.fields = this.getfield
325
- console.log('所有打印字段', this.fields)
326
- this.printshow = true
327
- this.put()
328
- },
329
- put() {
330
- // 对Modelval进行排序
331
- this.sortModelval()
332
- this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
333
- for (let key of this.modelval) {
334
- this.thead += '<th>' + this.fields[key] + '</th>'
335
- }
336
- this.thead += '</tr>'
337
- },
338
- print() {
339
- this.$refs.print.PrintAsFile()
340
- this.printshow = false
341
- },
342
- close() {
343
- this.printshow = false
344
- this.all = false
345
- },
346
- // 对选择的列进行排序
347
- sortModelval() {
348
- let sortModel = []
349
- Object.keys(this.fields).forEach((key) => {
350
- if (this.modelval.includes(key)) {
351
- sortModel.push(key)
352
- }
353
- })
354
- this.modelval = sortModel
355
- console.log('选择的打印的字段', this.modelval)
356
- },
357
- async updateParams() {
358
- await this.$MagLoadParams.loadParam(this.f_filialeid)
359
- this.initParams()
360
- },
361
- },
362
- watch: {
363
- 'model'(val) {
364
- console.log(val, "12222222222222222222")
365
- },
366
- 'orgCondtionStr'(val) {
367
- let res = val.match(/'(.*?)'/)
368
- console.log('正则提取:',res && res[1])
369
- if (res) {
370
- this.selectorg = res[1]
371
- this.f_filialeid = res[1]
372
- this.updateParams()
373
- }
374
- }
375
- },
376
- computed: {
377
-
378
- getCondition() {
379
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
380
- },
381
- getfield() {
382
- return exportConfig.reportConfig
383
- },
384
-
385
- }
386
- }
387
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-2 form-group">
10
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp;</label>
11
+ <right-tree @re-res="$parent.$parent.getorg"
12
+ :initresid='$parent.$parent.org'></right-tree>
13
+ </div>
14
+ <div class="col-sm-2 form-group">
15
+ <label class="font_normal_body">客户编号</label>
16
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
17
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label class="font_normal_body">客户名称</label>
21
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
22
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
23
+ </div>
24
+ <div class="col-sm-2 form-group">
25
+ <label for="startDate" class="font_normal_body">开始日期</label>
26
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
27
+ v-model="model.startDate"
28
+ :value.sync="model.startDate"
29
+ :format="'yyyy-MM-dd HH:mm:ss'"
30
+ :show-reset-button="true"
31
+ condition="f_hand_date >= '{}'">
32
+ </datepicker>
33
+ </div>
34
+ <div class="col-sm-2 form-group">
35
+ <label for="endDate" class="font_normal_body">结束日期</label>
36
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
37
+ v-model="model.endDate"
38
+ :value.sync="model.endDate"
39
+ :format="'yyyy-MM-dd HH:mm:ss'"
40
+ :show-reset-button="true"
41
+ condition="f_hand_date <= '{}'">
42
+ </datepicker>
43
+ </div>
44
+ <div class="col-sm-2 form-group">
45
+ <label class="font_normal_body">表号</label>
46
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
47
+ condition="f_meternumber = '{}' " placeholder="表号">
48
+ </div>
49
+ <div class="col-sm-2">
50
+ <label class="font_normal_body">气表品牌</label>
51
+ <v-select :value.sync="model.f_meter_brand"
52
+ v-model="model.f_meter_brand"
53
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
54
+ condition="f_meter_brand = '{}'"
55
+ close-on-select></v-select>
56
+ </div>
57
+ <div class="span" style="float:right;">
58
+ <button class="button_search button_spacing" @click="search()">查询</button>
59
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
60
+
61
+ <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
62
+ :field="$parent.$parent.getfield"
63
+ :defaultselect="$parent.$parent.selectfields"
64
+ sqlurl="rs/logic/exportfile" sql-name="getReportQuery" template-name='上报数据'
65
+ :choose-col="true"></export-excel>
66
+ </div>
67
+ </div>
68
+
69
+ </div>
70
+ </criteria>
71
+
72
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
73
+ <template partial='head'>
74
+ <tr>
75
+ <th>
76
+ <nobr>客户编号</nobr>
77
+ </th>
78
+ <th>
79
+ <nobr>客户名称</nobr>
80
+ </th>
81
+ <th>
82
+ <nobr>本次抄表底数</nobr>
83
+ </th>
84
+ <th>
85
+ <nobr>气表品牌</nobr>
86
+ </th>
87
+ <th>
88
+ <nobr>压力</nobr>
89
+ </th>
90
+ <th>
91
+ <nobr>温度</nobr>
92
+ </th>
93
+ <th>
94
+ <nobr>上次抄表底数</nobr>
95
+ </th>
96
+ <th>
97
+ <nobr>表计剩余金额</nobr>
98
+ </th>
99
+ <th>
100
+ <nobr>表内剩余金额</nobr>
101
+ </th>
102
+ <th>
103
+ <nobr>表号</nobr>
104
+ </th>
105
+ <th>
106
+ <nobr>抄表日期</nobr>
107
+ </th>
108
+ <th>
109
+ <nobr>上次抄表日期</nobr>
110
+ </th>
111
+
112
+ <th>
113
+ <nobr>组织名称</nobr>
114
+ </th>
115
+ <th>
116
+ <nobr>部门名称</nobr>
117
+ </th>
118
+
119
+ </tr>
120
+ </template>
121
+ <template partial='body'>
122
+ <td style="text-align: center;">
123
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
124
+ </td>
125
+ <td style="text-align: center;">
126
+ <nobr>{{row.f_user_name}}</nobr>
127
+ </td>
128
+ <td style="text-align: center;">
129
+ <nobr>{{row.f_tablebase}}</nobr>
130
+ </td>
131
+ <td style="text-align: center;">
132
+ <nobr>{{row.f_meter_brand}}</nobr>
133
+ </td>
134
+ <td style="text-align: center;">
135
+ <nobr>{{row.flowmeterpressure}}</nobr>
136
+ </td>
137
+ <td style="text-align: center;">
138
+ <nobr>{{row.flowmetertemperature}}</nobr>
139
+ </td>
140
+ <td style="text-align: center;">
141
+ <nobr>{{row.f_last_tablebase}}</nobr>
142
+ </td>
143
+ <td style="text-align: center;">
144
+ <nobr>{{row.f_jval}}</nobr>
145
+ </td>
146
+ <td style="text-align: center;">
147
+ <nobr>{{row.f_meterBalanceAmt}}</nobr>
148
+ </td>
149
+ <td style="text-align: center;">
150
+ <nobr>{{row.f_meternumber}}</nobr>
151
+ </td>
152
+ <td style="text-align: center;">
153
+ <nobr>{{row.f_hand_date}}</nobr>
154
+ </td>
155
+ <td style="text-align: center;">
156
+ <nobr>{{row.f_last_hand_date}}</nobr>
157
+ </td>
158
+ <td style="text-align: center;">
159
+ <nobr>{{row.f_orgname}}</nobr>
160
+ </td>
161
+ <td style="text-align: center;">
162
+ <nobr>{{row.f_depname}}</nobr>
163
+ </td>
164
+
165
+ </template>
166
+ <template partial='foot'></template>
167
+ </data-grid>
168
+
169
+ </criteria-paged>
170
+
171
+
172
+ </div>
173
+ <div v-if="show">
174
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
175
+ </div>
176
+ </div>
177
+ </div>
178
+ </template>
179
+
180
+ <script>
181
+ import {PagedList} from 'vue-client'
182
+ import exportConfig from '../../../config/exportConfig'
183
+ import defaultPrint from "../../../config/DefaultPrint";
184
+ import plugin from "system-clients/src/plugins/GetLoginInfoService";
185
+
186
+ let readySomething = async function (self) {
187
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
188
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
189
+ // self.$refs.paged.$refs.cri.search()
190
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
191
+ await self.$MagLoadParams.loadParam()
192
+ self.initParams()
193
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
194
+ }
195
+ export default {
196
+ title: '上报数据',
197
+ data() {
198
+ return {
199
+ org:[this.$login.f.orgid],
200
+ filialeCodeStr: `and f_orgid = ${this.$login.f.orgid}`,
201
+ config: {
202
+ defaultPrint: ['f_userinfo_code', 'f_address', 'f_pregas', 'f_preamount']
203
+ },
204
+ //f_price_name:[],
205
+ gasproperties:[],
206
+ showinfo: false,
207
+ data: {},
208
+ show:false,
209
+ rowdata:{},
210
+ initres: {
211
+ org:[this.$login.f.orgid],
212
+ dep:[],
213
+ user:[],
214
+ },
215
+ model: new PagedList('rs/sql/getReportQuery', 20, {}, ),
216
+ criteriaShow: false,
217
+ orgCondtionStr: '',
218
+ // 下拉框
219
+ meterbrands: [],
220
+ pricenames: [],
221
+ prices: [],
222
+ //合计数据
223
+ defaultfield: [],
224
+ sumsmodel: {},
225
+ f_filialeid: this.$login.f.f_orgid,
226
+ selectfields:[]
227
+ }
228
+ },
229
+ props:['selectorg'],
230
+ ready() {
231
+ if(this.selectorg != null && this.selectorg != null != ''){
232
+ this.initres.org=[]
233
+ this.initres.org.push(this.selectorg);
234
+ }
235
+ readySomething(this).then(() => {
236
+ this.$emit('ready')
237
+ }).catch((error) => {
238
+ this.$emit('error', error)
239
+ })
240
+ for(var item in exportConfig.reportConfig){
241
+ this.selectfields.push(item)
242
+ }
243
+ },
244
+ methods: {
245
+ initParams() {
246
+ // 初始化气表品牌
247
+ let brandArr = []
248
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
249
+ let temp = {}
250
+ temp.label = item.label
251
+ temp.value = item.value.f_meter_brand
252
+ brandArr.push(temp)
253
+ })
254
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
255
+ },
256
+ getorg (obj) {
257
+ if(obj.resids.length>0){
258
+ this.selectorgid = obj.resids
259
+ this.filialeCodeStr =" and f_orgid in " + plugin.convertToIn(obj.resids)
260
+ }
261
+ else{
262
+ this.filialeCodeStr= " and f_orgid = " + this.$login.f.orgid
263
+ }
264
+ },
265
+ search(){
266
+ this.$refs.paged.$refs.cri.search()
267
+ },
268
+ cancel() {
269
+ this.show = false
270
+ },
271
+ showmsg(obj){
272
+ this.rowdata=obj
273
+ this.show=true
274
+ },
275
+ userTypeChange () {
276
+ this.gasproperties=[]
277
+ if(this.$refs.paged.$refs.cri.model !==null) {
278
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
279
+
280
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
281
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
282
+ // this.gasproperties.push({label: '全部', value: ''})
283
+ }
284
+ else{
285
+ this.gasproperties =[{label: '全部', value: ''}]
286
+ }
287
+ },
288
+
289
+ selfSearch(args) {
290
+ args.condition = args.condition+ ` ${this.filialeCodeStr}`
291
+ this.model.search(args.condition, args.model)
292
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
293
+
294
+ // let f_orgstr = this.orgCondtionStr
295
+ // args.condition = `${args.condition} ` + f_orgstr + 'and f_orgid in ('+ this.f_orgid +')'
296
+ // this.model.search(args.condition, args.model)
297
+ // this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
298
+ },
299
+ clear() {
300
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
301
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
302
+ this.$refs.paged.$refs.cri.model[key] = []
303
+ })
304
+
305
+ },
306
+ dealmsg(val) {
307
+ val.model = this.model.model
308
+ this.$dispatch('deal-msg', val)
309
+ },
310
+ show() {
311
+ this.criteriaShow = true
312
+ },
313
+ hidden() {
314
+ this.criteriaShow = !this.criteriaShow
315
+ },
316
+ getRes(condition,obj) {
317
+ this.orgCondtionStr = condition
318
+ this.f_orgid = obj.resids
319
+ },
320
+ stamp() {
321
+ this.all = false
322
+ //默认选择要打印的列
323
+ this.modelval = defaultPrint.config
324
+ this.fields = this.getfield
325
+ console.log('所有打印字段', this.fields)
326
+ this.printshow = true
327
+ this.put()
328
+ },
329
+ put() {
330
+ // 对Modelval进行排序
331
+ this.sortModelval()
332
+ this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
333
+ for (let key of this.modelval) {
334
+ this.thead += '<th>' + this.fields[key] + '</th>'
335
+ }
336
+ this.thead += '</tr>'
337
+ },
338
+ print() {
339
+ this.$refs.print.PrintAsFile()
340
+ this.printshow = false
341
+ },
342
+ close() {
343
+ this.printshow = false
344
+ this.all = false
345
+ },
346
+ // 对选择的列进行排序
347
+ sortModelval() {
348
+ let sortModel = []
349
+ Object.keys(this.fields).forEach((key) => {
350
+ if (this.modelval.includes(key)) {
351
+ sortModel.push(key)
352
+ }
353
+ })
354
+ this.modelval = sortModel
355
+ console.log('选择的打印的字段', this.modelval)
356
+ },
357
+ async updateParams() {
358
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
359
+ this.initParams()
360
+ },
361
+ },
362
+ watch: {
363
+ 'model'(val) {
364
+ console.log(val, "12222222222222222222")
365
+ },
366
+ 'orgCondtionStr'(val) {
367
+ let res = val.match(/'(.*?)'/)
368
+ console.log('正则提取:',res && res[1])
369
+ if (res) {
370
+ this.selectorg = res[1]
371
+ this.f_filialeid = res[1]
372
+ this.updateParams()
373
+ }
374
+ }
375
+ },
376
+ computed: {
377
+
378
+ getCondition() {
379
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
380
+ },
381
+ getfield() {
382
+ return exportConfig.reportConfig
383
+ },
384
+
385
+ }
386
+ }
387
+ </script>