manage-client 3.3.57 → 3.3.59

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 (44) hide show
  1. package/build/dev-server.js +21 -34
  2. package/package.json +1 -1
  3. package/src/components/webmeter/instruction/NewQueryInstruct.vue +61 -7
  4. package/src/components/webmeter/reportdata/ReportDataQuery.vue +0 -6
  5. package/src/filiale/WEINAN/CancellationQuery.vue +74 -0
  6. package/src/filiale/WEINAN/ChargeQuery.vue +58 -1
  7. package/src/filiale/WEINAN/DeviceQuery.vue +63 -0
  8. package/src/filiale/WEINAN/DisableQuery.vue +74 -0
  9. package/src/filiale/WEINAN/EnableQuery.vue +74 -0
  10. package/src/filiale/WEINAN/FillGasQuery.vue +74 -0
  11. package/src/filiale/WEINAN/InspectListUser.vue +35 -0
  12. package/src/filiale/WEINAN/MergeFileQuery.vue +77 -1
  13. package/src/filiale/WEINAN/MeterQuery.vue +58 -0
  14. package/src/filiale/WEINAN/NewAccountQuery.vue +58 -0
  15. package/src/filiale/WEINAN/OtherChargeQuery.vue +58 -0
  16. package/src/filiale/WEINAN/RecordInfoQuery.vue +58 -0
  17. package/src/filiale/WEINAN/UserGasAll.vue +63 -0
  18. package/src/filiale/WEINAN/UserGasList.vue +59 -0
  19. package/src/filiale/WEINAN/UserLostContactAnalysis.vue +63 -0
  20. package/src/filiale/WEINAN/UserQuery.vue +63 -0
  21. package/src/filiale/WEINAN/businessquery/FillCardQuery.vue +643 -0
  22. package/src/filiale/WEINAN/businessquery/HandplanQuery.vue +1428 -0
  23. package/src/filiale/WEINAN/businessquery/MoveMeterQuery.vue +477 -0
  24. package/src/filiale/WEINAN/businessquery/ReverseQuery.vue +512 -0
  25. package/src/filiale/WEINAN/businessquery/TransferQuery.vue +553 -0
  26. package/src/filiale/WEINAN/businessquery/UserInsured.vue +483 -0
  27. package/src/filiale/WEINAN/businessquery/priceadjustQuery.vue +535 -0
  28. package/src/filiale/WEINAN/config/exportConfig.js +41 -38
  29. package/src/filiale/WEINAN/filesquery/ChangeUserQuery.vue +468 -0
  30. package/src/filiale/WEINAN/filesquery/FmyGasDeviceQuery.vue +911 -0
  31. package/src/filiale/WEINAN/filesquery/GasDeviceQuery.vue +1021 -0
  32. package/src/filiale/WEINAN/filesquery/PriceChangeQuery.vue +468 -0
  33. package/src/filiale/WEINAN/filesquery/UserDeviceQuery.vue +505 -0
  34. package/src/filiale/WEINAN/manage/ChangeMeterQuery.vue +63 -0
  35. package/src/filiale/WEINAN/sale.js +23 -2
  36. package/src/filiale/WEINAN/webmeter/LostContactAnalysisList.vue +692 -0
  37. package/src/filiale/WEINAN/webmeter/NewQueryInstruct.vue +564 -0
  38. package/src/filiale/WEINAN/webmeter/ReportList.vue +483 -0
  39. package/src/filiale/WEINAN/webmeter/TotalExceptionByMeter.vue +665 -0
  40. package/src/filiale/WEINAN/webmeter/UserInstructEchartsList.vue +242 -0
  41. package/src/filiale/WEINAN/webmeter/UserInstructList.vue +390 -0
  42. package/src/filiale/WEINAN/webmeterManage.js +13 -0
  43. package/src/filiale/lixianV3/BusinessManage.vue +3 -0
  44. package/src/filiale/shanxian/UserLostContactAnalysis.vue +35 -3
@@ -0,0 +1,468 @@
1
+ <template>
2
+ <div id="unit" class="flex-row" class="foot_tabset" @keyup.enter="search">
3
+ <div class="basic-main">
4
+ <div class="flex" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
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">开始日期</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd HH:mm:ss'"
15
+ :show-reset-button="true"
16
+ condition="f_operate_date >= '{}'">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label class="font_normal_body">结束日期</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :format="'yyyy-MM-dd HH:mm:ss'"
25
+ :show-reset-button="true"
26
+ condition="f_operate_date <= '{}'">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group ">
30
+ <label class="font_normal_body">客户编号</label>
31
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
33
+ </div>
34
+ <div class="col-sm-2 form-group">
35
+ <label class="font_normal_body" title="旧客户编号">档案编号</label>
36
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
37
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
38
+ </div>
39
+
40
+
41
+ <div class="span" style="float:right;">
42
+ <button class="button_search button_spacing" @click="search()">查询</button>
43
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
+
46
+ <export-excel :data="$parent.$parent.getCondition"
47
+ :field="$parent.$parent.getfield"
48
+ :header="$parent.$parent.other"
49
+ v-if="$parent.$parent.authArr.includes('调价记录查询导出')"
50
+ sqlurl="rs/logic/exportfile" sql-name="pricechangequery" template-name='调价记录查询导出'
51
+ :choose-col="true"></export-excel>
52
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
53
+ :defaultfield="$parent.$parent.defaultfield"
54
+ titletable="调价记录查询"
55
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
56
+ <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>
57
+ </div>
58
+ </div>
59
+
60
+ <div class="row" v-show="$parent.$parent.criteriaShow">
61
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
62
+ <div class="col-sm-2 form-group">
63
+ <label class="font_normal_body">客户名称</label>
64
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
65
+ condition="f_user_name = '{}'" placeholder="客户名称">
66
+ </div>
67
+ <div class="col-sm-2 form-group">
68
+ <label class="font_normal_body">客户电话</label>
69
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
70
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
71
+ </div>
72
+
73
+ <div class="col-sm-2 form-group">
74
+ <label class="font_normal_body">&nbsp;旧&nbsp;气&nbsp;价</label>
75
+ <v-select :value.sync="model.f_used_content"
76
+ v-model="model.f_used_content"
77
+ :options='$parent.$parent.price' placeholder='请选择'
78
+ condition="f_used_content = '{}'"
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;价</label>
83
+ <v-select :value.sync="model.f_new_content"
84
+ v-model="model.f_new_content"
85
+ :options='$parent.$parent.price ' placeholder='请选择'
86
+ condition="f_new_content = '{}'"
87
+ close-on-select></v-select>
88
+ </div>
89
+ <div class="col-sm-2 form-group">
90
+ <label class="font_normal_body">用户类型</label>
91
+ <v-select :value.sync="model.f_user_type"
92
+ v-model="model.f_user_type"
93
+ @change="$parent.$parent.userTypeChange()"
94
+ :options='$parent.$parent.userTypes' placeholder='请选择'
95
+ condition="f_user_type = '{}'"
96
+ close-on-select></v-select>
97
+ </div>
98
+ <div class="col-sm-2 form-group">
99
+ <label for="f_user_usetype" class="font_normal_body ">用气类型</label>
100
+ <v-select :value.sync="model.f_user_usetype" :search="false"
101
+ @change="$parent.$parent.userUseTypeChange()"
102
+ v-model="model.f_user_usetype"
103
+ :options='$parent.$parent.userusetypes'
104
+ condition="f_user_usetype = '{}'"
105
+ placeholder='用气类型'
106
+ value-single="true"
107
+ close-on-select>
108
+ </v-select>
109
+ </div>
110
+ <div class="col-sm-2 form-group">
111
+ <label for="f_use_institution" class="font_normal_body">用气机构</label>
112
+ <v-select :value.sync="model.f_use_institution" :search="false"
113
+ @change="$parent.$parent.userUseInstitutionChange()"
114
+ v-model="model.f_use_institution"
115
+ :options='$parent.$parent.useinstitutions'
116
+ condition="f_use_institution = '{}'"
117
+ placeholder='用气机构'
118
+ value-single="true"
119
+ close-on-select>
120
+ </v-select>
121
+ </div>
122
+ <div class="col-sm-2 form-group">
123
+ <label for="f_user_usenature" class="font_normal_body ">使用性质</label>
124
+ <v-select :value.sync="model.f_user_usenature" :search="false"
125
+ v-model="model.f_user_usenature"
126
+ :options='$parent.$parent.userusenatures'
127
+ condition="f_user_usenature = '{}'"
128
+ placeholder='使用性质'
129
+ value-single="true"
130
+ close-on-select>
131
+ </v-select>
132
+ </div>
133
+ </div>
134
+ </div>
135
+ </criteria>
136
+
137
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
138
+ <template partial='head'>
139
+ <tr>
140
+ <th>
141
+ <!--<nobr>客户编号</nobr>-->
142
+ <data-order field="f_userinfo_code" name="客户编号" :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
143
+ </th>
144
+ <th>
145
+ <nobr>客户名称</nobr>
146
+ </th>
147
+ <th>
148
+ <nobr>档案编号</nobr>
149
+ </th>
150
+ <th>
151
+ <nobr>客户电话</nobr>
152
+ </th>
153
+ <th>
154
+ <nobr>更改前气价</nobr>
155
+ </th>
156
+ <th>
157
+ <nobr>更改后气价</nobr>
158
+ </th>
159
+ <th>
160
+ <nobr>操作人</nobr>
161
+ </th>
162
+ <th>
163
+ <!--<nobr>操作日期</nobr>-->
164
+ <data-order field="f_operate_date" name="操作日期" :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
165
+ </th>
166
+ <th>
167
+ <nobr>部门</nobr>
168
+ </th>
169
+ <th>
170
+ <nobr>公司</nobr>
171
+ </th>
172
+ </tr>
173
+ </template>
174
+ <template partial='body'>
175
+ <td style="text-align: center;"><nobr>
176
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
177
+ </nobr> </td>
178
+ <td style="text-align: center;">
179
+ <nobr>{{row.f_user_name}}</nobr>
180
+ </td>
181
+ <td style="text-align: center;">
182
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
183
+ </td>
184
+ <td style="text-align: center;">
185
+ <nobr>{{row.f_user_phone}}</nobr>
186
+ </td>
187
+ <td style="text-align: center;">
188
+ <nobr>{{row.f_used_content}}</nobr>
189
+ </td>
190
+ <td style="text-align: center;">
191
+ <nobr>{{row.f_new_content}}</nobr>
192
+ </td>
193
+ <td style="text-align: center;">
194
+ <nobr>{{row.f_operator}}</nobr>
195
+ </td>
196
+ <td style="text-align: center;">
197
+ <nobr>{{row.f_operate_date}}</nobr>
198
+ </td>
199
+ <td style="text-align: center;">
200
+ <nobr>{{row.f_depname}}</nobr>
201
+ </td>
202
+ <td style="text-align: center;">
203
+ <nobr>{{row.f_orgname}}</nobr>
204
+ </td>
205
+ </template>
206
+ <template partial='foot'></template>
207
+ </data-grid>
208
+ </criteria-paged>
209
+ </div>
210
+ <div class="flex" v-if="show">
211
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
212
+ </div>
213
+ </div>
214
+ </div>
215
+ </template>
216
+
217
+ <script>
218
+ import {PagedList} from 'vue-client'
219
+ import defaultPrint from './../config/DefaultPrint'
220
+ import exportConfig from './../config/exportConfig'
221
+
222
+ let readySomething = async function (self) {
223
+
224
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
225
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
226
+ // self.$refs.paged.$refs.cri.search()
227
+ await self.$MagLoadParams.loadParam()
228
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
229
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
230
+ self.getPricenames()
231
+ }
232
+ export default {
233
+ title: '调价记录查询',
234
+ data() {
235
+ return {
236
+ data: {},
237
+ other:[],
238
+ footer:[],
239
+ meterbrands: [],
240
+ pricenames: [],
241
+ model: new PagedList('rs/sql/pricechangequery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`}),
242
+ criteriaShow: false,
243
+ orgCondtionStr: '',
244
+ modelval: [],
245
+ printshow: false,
246
+ all: false,
247
+ fields: {},
248
+ //排序
249
+ orderitem:'f_operate_date desc',
250
+ orderFields: {
251
+ f_operate_date: 'no'
252
+ },
253
+ initres: {
254
+ org:[this.$login.f.orgid],
255
+ dep:[],
256
+ user:[],
257
+ },
258
+ defaultfield: [],
259
+ config: {
260
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone']
261
+ },
262
+ show:false,
263
+ rowdata:{},
264
+ thead: '',
265
+ tfoot: '',
266
+ price: [],
267
+ userusetypes: [],
268
+ useinstitutions: [],
269
+ userusenatures: [],
270
+ // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
271
+
272
+
273
+ //合计数据
274
+ sumsmodel: {}
275
+ }
276
+ },
277
+ ready() {
278
+ readySomething(this)
279
+ },
280
+ methods: {
281
+ userUseInstitutionChange () {
282
+ this.userusenatures = []
283
+ this.$refs.paged.$refs.cri.model.f_user_usenature = ''
284
+ if (this.$refs.paged.$refs.cri.model.f_use_institution) {
285
+ let str = this.$refs.paged.$refs.cri.model.f_use_institution + '使用性质'
286
+ this.userusenatures = this.$appdata.getParam(str)
287
+ }
288
+ },
289
+ userUseTypeChange () {
290
+ this.useinstitutions = []
291
+ this.$refs.paged.$refs.cri.model.f_use_institution = ''
292
+ if (this.$refs.paged.$refs.cri.model.f_user_usetype) {
293
+ let str = this.$refs.paged.$refs.cri.model.f_user_usetype + '机构'
294
+ this.useinstitutions = this.$appdata.getParam(str)
295
+ }
296
+ },
297
+ userTypeChange () {
298
+ this.userusetypes = []
299
+ if(this.$refs.paged.$refs.cri.model !==null) {
300
+ this.$refs.paged.$refs.cri.model.f_use_institution = ''
301
+ let str = this.$refs.paged.$refs.cri.model.f_user_type[0] + '用气类型'
302
+ this.userusetypes = this.$appdata.getParam(str)
303
+ }
304
+ },
305
+ getPricenames() {
306
+ this.price = []
307
+ let priceArr = []
308
+ //debugger
309
+ this.$MagGetSaleParam.prices.forEach((item) => {
310
+ let temp = {}
311
+ temp.label = item.f_price_name
312
+ temp.value = item.f_price_name
313
+ priceArr.push(temp)
314
+ })
315
+ this.price = [{label: '全部', value: ''}, ...priceArr]
316
+ },
317
+ getotherfooter () {
318
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
319
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
320
+ this.other = [];
321
+ this.footer = [];
322
+ let exportdata = this.getCondition;
323
+ let otherInData = [];
324
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
325
+ // let footerData = [], exportfield = this.getfield;
326
+ // footerData.push("合计");
327
+ // let self = this;
328
+ // for (var field in self.sumsmodel) {
329
+ // footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
330
+ // }
331
+ // this.footer.push(footerData);
332
+ this.other.push(otherInData);
333
+ },
334
+ search(){
335
+ this.$refs.paged.$refs.cri.search()
336
+ },
337
+ cancel() {
338
+ this.show = false
339
+ },
340
+ showmsg(obj){
341
+ this.rowdata=obj
342
+ this.show=true
343
+ },
344
+
345
+ selfSearch(args) {
346
+ args.condition = `${args.condition}` + this.orgCondtionStr
347
+ this.model.search(args.condition, args.model)
348
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
349
+ },
350
+ clear() {
351
+ //清空部门和人员
352
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
353
+ //部门和人员变为全选
354
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
355
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
356
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
357
+ this.$refs.paged.$refs.cri.model[key] = []
358
+ })
359
+ },
360
+ show() {
361
+ this.criteriaShow = true
362
+ },
363
+ hidden() {
364
+ this.criteriaShow = !this.criteriaShow
365
+ },
366
+ getRes(obj) {
367
+ console.log(obj,"========")
368
+ this.orgCondtionStr = obj
369
+ },
370
+ stamp() {
371
+ this.all = false
372
+ //默认选择要打印的列
373
+ this.modelval = defaultPrint.config
374
+ this.fields = this.getfield
375
+ console.log('所有打印字段', this.fields)
376
+ this.printshow = true
377
+ this.put()
378
+ },
379
+ dealmsg(val) {
380
+ console.log('---------------dealmsg')
381
+ val.model = this.model.model
382
+ this.$dispatch('deal-msg', val)
383
+ },
384
+ put() {
385
+ // 对Modelval进行排序
386
+ this.sortModelval()
387
+ this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
388
+ for (let key of this.modelval) {
389
+ this.thead += '<th>' + this.fields[key] + '</th>'
390
+ }
391
+ this.thead += '</tr>'
392
+ },
393
+ print() {
394
+ this.$refs.print.PrintAsFile()
395
+ this.printshow = false
396
+ },
397
+ close() {
398
+ this.printshow = false
399
+ this.all = false
400
+ },
401
+ // 对选择的列进行排序
402
+ sortModelval() {
403
+ let sortModel = []
404
+ Object.keys(this.fields).forEach((key) => {
405
+ if (this.modelval.includes(key)) {
406
+ sortModel.push(key)
407
+ }
408
+ })
409
+ this.modelval = sortModel
410
+ console.log('选择的打印的字段', this.modelval)
411
+ },
412
+ sort (field, rule) {
413
+ // 将所有排序方式设为不排序,实现相互排斥
414
+ for (let key in this.orderFields) {
415
+ if (key === field) {
416
+ this.orderFields[key] = rule
417
+ } else {
418
+ this.orderFields[key] = 'no'
419
+ }
420
+ }
421
+ // 如果新规则不排序,还原为默认排序
422
+ if (rule === 'no') {
423
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
424
+ } else {
425
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
426
+ }
427
+
428
+ this.search()
429
+ }
430
+ },
431
+ watch: {
432
+ 'all'(val) {
433
+ if (val) {
434
+ this.modelval = this.bodyData
435
+ } else {
436
+ this.modelval = defaultPrint.config
437
+ this.put()
438
+ }
439
+ },
440
+ 'modelval.length'() {
441
+ this.put()
442
+ },
443
+ sumsmodel:{
444
+ handler: function(val) {
445
+ this.getotherfooter();
446
+ },
447
+ deep: true
448
+ },
449
+ },
450
+ computed: {
451
+ authArr () {
452
+ return this.$login.r ? this.$login.r : []
453
+ },
454
+ getCondition() {
455
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,orderitem:this.orderitem}
456
+ },
457
+ getfield() {
458
+ return exportConfig.changUserConfig
459
+ },
460
+ userTypes() {
461
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
462
+ },
463
+ field_name() {
464
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('更改内容')]
465
+ }
466
+ }
467
+ }
468
+ </script>