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,483 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main">
4
+ <div class="flex" v-if="!showinfo">
5
+
6
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <res-select-group :initres="$parent.$parent.initres" :show-component="$parent.$parent.showComponent" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
11
+
12
+
13
+ <div class="span" style="float:right;">
14
+ <button class="button_search button_spacing" @click="search()">查询</button>
15
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
16
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
17
+
18
+ <export-excel :data="$parent.$parent.getCondition"
19
+ :field="$parent.$parent.getfield"
20
+ :footer="$parent.$parent.footer"
21
+ :header="$parent.$parent.other"
22
+ sqlurl="rs/logic/exportfile" sql-name="user-insured" template-name='用户参保情况统计导出'
23
+ :choose-col="true"></export-excel>
24
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
25
+ :defaultfield="$parent.$parent.defaultfield"
26
+ titletable="用户参保情况统计"
27
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
28
+ <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>
29
+ </div>
30
+ </div>
31
+ <div class="row" v-show="$parent.$parent.criteriaShow">
32
+ <div class="col-sm-2 form-group"style="padding-right: 30px;">
33
+ <label for="startDate" class="font_normal_body" title="参保开始时间">参保日期</label>
34
+ <datepicker id="startDate" placeholder="参保日期" style="width: 60%"
35
+ v-model="model.startDate"
36
+ :value.sync="model.startDate"
37
+ :format="'yyyy-MM-dd HH:mm:ss'"
38
+ :show-reset-button="true"
39
+ condition="f_toubao_startdate >= '{}'">
40
+ </datepicker>
41
+ </div>
42
+ <div class="col-sm-2 form-group">
43
+ <label for="endDate" class="font_normal_body" title="参保结束时间">至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
44
+ <datepicker id="endDate" placeholder="" style="width:60%"
45
+ v-model="model.endDate"
46
+ :value.sync="model.endDate"
47
+ :format="'yyyy-MM-dd HH:mm:ss'"
48
+ :show-reset-button="true"
49
+ condition="f_toubao_startdate <= '{}'">
50
+ </datepicker>
51
+ </div>
52
+ <div class="col-sm-2 form-group">
53
+ <label class="font_normal_body">参保额度</label>
54
+ <v-select :value.sync="model.f_toubao_money" multiple
55
+ v-model="model.f_toubao_money"
56
+ :options='$parent.$parent.toubaoedu' placeholder='请选择'
57
+ condition="f_toubao_money in {}"
58
+ ></v-select>
59
+ </div>
60
+ <div class="col-sm-2 form-group">
61
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;参保状态</label>
62
+ <v-select :value.sync="model.cbzhuangtai" multiple
63
+ v-model="model.cbzhuangtai"
64
+ :options='$parent.$parent.cbzt' placeholder='请选择'
65
+ condition="cbzhuangtai in {}"
66
+ ></v-select>
67
+ </div>
68
+ <div class="col-sm-2 form-group">
69
+ <label class="font_normal_body">用户类型</label>
70
+ <v-select :value.sync="model.f_user_type"
71
+ v-model="model.f_user_type"
72
+ @change="$parent.$parent.userTypeChange()"
73
+ :options='$parent.$parent.userTypes' placeholder='请选择'
74
+ condition="f_user_type = '{}'"
75
+ close-on-select></v-select>
76
+ </div>
77
+ <div class="col-sm-2 form-group">
78
+ <label for="f_user_usetype" class="font_normal_body ">用气类型</label>
79
+ <v-select :value.sync="model.f_user_usetype" :search="false"
80
+ @change="$parent.$parent.userUseTypeChange()"
81
+ v-model="model.f_user_usetype"
82
+ :options='$parent.$parent.userusetypes'
83
+ condition="f_user_usetype = '{}'"
84
+ placeholder='用气类型'
85
+ value-single="true"
86
+ close-on-select>
87
+ </v-select>
88
+ </div>
89
+ <div class="col-sm-2 form-group">
90
+ <label for="f_use_institution" class="font_normal_body">用气机构</label>
91
+ <v-select :value.sync="model.f_use_institution" :search="false"
92
+ @change="$parent.$parent.userUseInstitutionChange()"
93
+ v-model="model.f_use_institution"
94
+ :options='$parent.$parent.useinstitutions'
95
+ condition="f_use_institution = '{}'"
96
+ placeholder='用气机构'
97
+ value-single="true"
98
+ close-on-select>
99
+ </v-select>
100
+ </div>
101
+ <div class="col-sm-2 form-group">
102
+ <label for="f_user_usenature" class="font_normal_body ">使用性质</label>
103
+ <v-select :value.sync="model.f_user_usenature" :search="false"
104
+ v-model="model.f_user_usenature"
105
+ :options='$parent.$parent.userusenatures'
106
+ condition="f_user_usenature = '{}'"
107
+ placeholder='使用性质'
108
+ value-single="true"
109
+ close-on-select>
110
+ </v-select>
111
+ </div>
112
+ </div>
113
+ </div>
114
+ </criteria>
115
+
116
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
117
+ <template partial='head'>
118
+ <tr>
119
+ <th>
120
+ <nobr>序号</nobr>
121
+ </th>
122
+ <th>
123
+ <nobr>用户编号</nobr>
124
+ </th>
125
+ <th>
126
+ <nobr>用户名称</nobr>
127
+ </th>
128
+ <th>
129
+ <nobr>参保时间</nobr>
130
+ </th>
131
+ <th>
132
+ <nobr>参保额度</nobr>
133
+ </th>
134
+ <th>
135
+ <nobr>办理时间</nobr>
136
+ </th>
137
+ <th>
138
+ <nobr>有效期限</nobr>
139
+ </th>
140
+ <th>
141
+ <nobr>办理人</nobr>
142
+ </th>
143
+ </tr>
144
+ </template>
145
+ <template partial='body'>
146
+ <td>
147
+ <nobr>{{$index+1}}</nobr>
148
+ </td>
149
+ <td style="text-align: center;">
150
+ <nobr>{{row.f_userinfo_code}}</nobr>
151
+ </td>
152
+ <td style="text-align: center;">
153
+ <nobr>{{row.f_user_name}}</nobr>
154
+ </td>
155
+ <td style="text-align: center;">
156
+ <nobr>{{row.f_toubao_startdate}}</nobr>
157
+ </td>
158
+ <td style="text-align: center;">
159
+ <nobr>{{row.f_toubao_money}}</nobr>
160
+ </td>
161
+ <td style="text-align: center;">
162
+ <nobr>{{row.f_oprete_date}}</nobr>
163
+ </td>
164
+ <td style="text-align: center;">
165
+ <nobr>{{row.qixian}}</nobr>
166
+ </td>
167
+ <td style="text-align: center;">
168
+ <nobr>{{row.f_operator}}</nobr>
169
+ </td>
170
+ </template>
171
+ <template partial='foot'></template>
172
+ </data-grid>
173
+ </criteria-paged>
174
+ <table class="table-hover">
175
+ <tr style="position: relative" class="table-bordered">
176
+ <td
177
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
178
+ 汇总信息
179
+ </td>
180
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
181
+ 投保金额合计:&emsp;{{sumsmodel.f_toubao_money.toFixed(0)}}
182
+ </td>
183
+ </tr>
184
+ </table>
185
+ </div>
186
+ <div class="flex" v-if="showinfo">
187
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
188
+ </div>
189
+ </div>
190
+ </div>
191
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
192
+ <article slot="modal-body">
193
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="减免优惠" :isremark="false" style="width:auto" ></upload>
194
+ </article>
195
+ <footer slot="modal-footer" class="modal-footer">
196
+ </footer>
197
+ </modal>
198
+ </template>
199
+
200
+ <script>
201
+ import {HttpResetClass, PagedList} from 'vue-client'
202
+ import defaultPrint from './../config/DefaultPrint'
203
+ import exportConfig from './../config/exportConfig'
204
+
205
+ let readySomething = async function (self) {
206
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
207
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
208
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
209
+ await self.$MagLoadParams.loadParam()
210
+ self.initParams()
211
+
212
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
213
+ }
214
+ export default {
215
+ title: '用户参保查询',
216
+ props:['data'],
217
+ data() {
218
+ return {
219
+ data: {},
220
+ other: [],
221
+ footer: [],
222
+ initres: {
223
+ org:[this.$login.f.orgid],
224
+ dep:[],
225
+ user:[],
226
+ },
227
+ showComponent: ['company','department','operator'],
228
+ orderFields: {
229
+ f_address: 'no'
230
+ },
231
+ orderDefault: "'f_open_date desc'",
232
+ model: new PagedList('rs/sql/user-insured', 20,{startDate:'this.startDate', f_orgid: 'this.model.f_orgid'},
233
+ {f_toubao_money: 0}),
234
+ f_orgid: this.$login.f.orgid,
235
+ criteriaShow: false,
236
+ modelval: [],
237
+ printshow: false,
238
+ all: false,
239
+ fields: {},
240
+ config: {
241
+ defaultPrint: ['f_userinfo_code', 'f_user_name','f_operator']
242
+ },
243
+ //默认打印列
244
+ defaultfield: [],
245
+ thead: '',
246
+ tfoot: '',
247
+ //orgCondtionStr: '(' + this.$login.f.orgid + ')',
248
+ orgCondtionStr: ` and f_orgid = '${this.$login.f.orgid}'`,
249
+ meterbrands: [],
250
+ showupload:false,
251
+ selected:{},
252
+ showinfo:false,
253
+ rowdata:{},
254
+ userusetypes: [],
255
+ useinstitutions: [],
256
+ userusenatures: [],
257
+ //合计数据
258
+ sumsmodel: {}
259
+ }
260
+ },
261
+ ready() {
262
+ readySomething(this).then(() => {
263
+ this.$emit('ready')
264
+ }).catch((error) => {
265
+ this.$emit('error', error)
266
+ })
267
+ },
268
+ methods: {
269
+ userUseInstitutionChange () {
270
+ this.userusenatures = []
271
+ this.$refs.paged.$refs.cri.model.f_user_usenature = ''
272
+ if (this.$refs.paged.$refs.cri.model.f_use_institution) {
273
+ let str = this.$refs.paged.$refs.cri.model.f_use_institution + '使用性质'
274
+ this.userusenatures = this.$appdata.getParam(str)
275
+ }
276
+ },
277
+ userUseTypeChange () {
278
+ this.useinstitutions = []
279
+ this.$refs.paged.$refs.cri.model.f_use_institution = ''
280
+ if (this.$refs.paged.$refs.cri.model.f_user_usetype) {
281
+ let str = this.$refs.paged.$refs.cri.model.f_user_usetype + '机构'
282
+ this.useinstitutions = this.$appdata.getParam(str)
283
+ }
284
+ },
285
+ userTypeChange () {
286
+ this.userusetypes = []
287
+ if(this.$refs.paged.$refs.cri.model !==null) {
288
+ this.$refs.paged.$refs.cri.model.f_use_institution = ''
289
+ let str = this.$refs.paged.$refs.cri.model.f_user_type[0] + '用气类型'
290
+ this.userusetypes = this.$appdata.getParam(str)
291
+ }
292
+ },
293
+ view(row){
294
+ this.showupload = true
295
+ this.selected= row
296
+ },
297
+ getotherfooter() {
298
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
299
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
300
+ this.other = [];
301
+ this.footer = [];
302
+ let exportdata = this.getCondition;
303
+ let otherInData = [];
304
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
305
+ let footerData = [], exportfield = this.getfield;
306
+ footerData.push("合计");
307
+ let self = this;
308
+ for (var field in self.sumsmodel) {
309
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
310
+ }
311
+ this.footer.push(footerData);
312
+ this.other.push(otherInData);
313
+ },
314
+ cancel() {
315
+ this.showinfo = false
316
+ },
317
+ search() {
318
+ this.$refs.paged.$refs.cri.search()
319
+ },
320
+ getRes(obj) {
321
+ console.log(obj,"========")
322
+ this.orgCondtionStr = obj
323
+ },
324
+
325
+ selfSearch(args) {
326
+ if (this.data) {
327
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
328
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
329
+ }
330
+ console.log('999999999999999999'+JSON.stringify(this.model))
331
+ this.model.startDate=this.$refs.paged.$refs.cri.model.startDate
332
+ args.condition = `${args.condition} ` + this.orgCondtionStr
333
+ console.log("start"+args.condition)
334
+ this.model.search(args.condition, args.model)
335
+ },
336
+ showmsg(obj){
337
+ this.rowdata=obj
338
+ this.showinfo=true
339
+ },
340
+ initParams() {
341
+ // 初始化气表品牌
342
+ let brandArr = []
343
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
344
+ let temp = {}
345
+ temp.label = item.label
346
+ temp.value = item.value.f_meter_brand
347
+ brandArr.push(temp)
348
+ })
349
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
350
+ },
351
+
352
+ clear() {
353
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
354
+ this.$refs.paged.$refs.cri.model[key] = []
355
+ })
356
+ },
357
+ show() {
358
+ this.criteriaShow = true
359
+ },
360
+ hidden() {
361
+ this.criteriaShow = !this.criteriaShow
362
+ },
363
+ dealmsg(val) {
364
+ console.log('---------------dealmsg')
365
+ this.rowdata=val
366
+ this.show=true
367
+ val.model = this.model.model
368
+ this.$dispatch('deal-msg', val)
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
+ put() {
380
+ // 对Modelval进行排序
381
+ this.sortModelval()
382
+ this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
383
+ for (let key of this.modelval) {
384
+ this.thead += '<th>' + this.fields[key] + '</th>'
385
+ }
386
+ this.thead += '</tr>'
387
+ },
388
+ print() {
389
+ this.$refs.print.PrintAsFile()
390
+ this.printshow = false
391
+ },
392
+ close() {
393
+ this.printshow = false
394
+ this.all = false
395
+ },
396
+ // 对选择的列进行排序
397
+ sortModelval() {
398
+ let sortModel = []
399
+ Object.keys(this.fields).forEach((key) => {
400
+ if (this.modelval.includes(key)) {
401
+ sortModel.push(key)
402
+ }
403
+ })
404
+ this.modelval = sortModel
405
+ console.log('选择的打印的字段', this.modelval)
406
+ },
407
+ async updateParams() {
408
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
409
+ this.initParams()
410
+ },
411
+ sort (field, rule) {
412
+ // 将所有排序方式设为不排序,实现相互排斥
413
+ for (let key in this.orderFields) {
414
+ if (key === field) {
415
+ this.orderFields[key] = rule
416
+ } else {
417
+ this.orderFields[key] = 'no'
418
+ }
419
+ }
420
+ // 如果新规则不排序,还原为默认排序
421
+ if (rule === 'no') {
422
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
423
+ } else {
424
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
425
+ }
426
+
427
+ this.search()
428
+ }
429
+ },
430
+ watch: {
431
+ 'all'(val) {
432
+ if (val) {
433
+ this.modelval = this.bodyData
434
+ } else {
435
+ this.modelval = defaultPrint.config
436
+ this.put()
437
+ }
438
+ },
439
+ 'modelval.length'() {
440
+ this.put()
441
+ },
442
+ sumsmodel: {
443
+ handler: function (val) {
444
+ this.getotherfooter();
445
+ },
446
+ deep: true
447
+ }
448
+ },
449
+ computed: {
450
+ authArr () {
451
+ return this.$login.r ? this.$login.r : []
452
+ },
453
+ getCondition () {
454
+ var con = ""
455
+ if (this.orgCondtionStr) {
456
+ con = this.$refs.paged.$refs.cri.condition+this.orgCondtionStr
457
+ }
458
+ else {
459
+ con = this.$refs.paged.$refs.cri.condition
460
+ }
461
+ return {
462
+ condition: con,
463
+ startDate: this.$refs.paged.$refs.cri.model.startDate
464
+ }
465
+ },
466
+ getfield() {
467
+ return exportConfig.UserInsured
468
+ },
469
+ gaspropertyTypes() {
470
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
471
+ },
472
+ toubaoedu() {
473
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('投保额度')]
474
+ },
475
+ userTypes() {
476
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
477
+ },
478
+ cbzt() {
479
+ return [{label: ' 全部 ', value: ''},{label: '参保过期', value: '参保过期'},{label: '保期内', value: '保期内'}]
480
+ }
481
+ }
482
+ }
483
+ </script>