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