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,505 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex">
5
+ <div style="flex:1;" class="flex" v-if="!show">
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
+ <div class="col-sm-2 form-group" >
11
+ <label class="font_normal_body">客户编号</label>
12
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
13
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
14
+ </div>
15
+
16
+ <div class="col-sm-2 form-group">
17
+ <label class="font_normal_body" title="旧客户编号">档案编号</label>
18
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
19
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
20
+ </div>
21
+
22
+ <div class="col-sm-2 form-group" >
23
+ <label for="startDate" class="font_normal_body">开始日期</label>
24
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
25
+ v-model="model.startDate"
26
+ :value.sync="model.startDate"
27
+ :format="'yyyy-MM-dd'"
28
+ :show-reset-button="true"
29
+ condition="f_operate_date >= '{} 00:00:00'">
30
+ </datepicker>
31
+ </div>
32
+ <div class="col-sm-2 form-group" >
33
+ <label for="endDate" class="font_normal_body">结束日期</label>
34
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
35
+ v-model="model.endDate"
36
+ :value.sync="model.endDate"
37
+ :format="'yyyy-MM-dd'"
38
+ :show-reset-button="true"
39
+ condition="f_operate_date <= '{} 23:59:59'">
40
+ </datepicker>
41
+ </div>
42
+ <div class="span" style = "float:right;">
43
+ <button class="button_search button_spacing" @click="search()">查询</button>
44
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
45
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
46
+
47
+ <export-excel :data="$parent.$parent.getCondition"
48
+ :field="$parent.$parent.getExportField"
49
+ :header="$parent.$parent.other"
50
+ :footer="$parent.$parent.footer"
51
+ v-if="$parent.$parent.authArr.includes('用户设备查询导出')"
52
+ sqlurl="rs/logic/exportfile"
53
+ sql-name="userDeviceQuery"
54
+ template-name='用户设备查询导出' :choose-col="true"></export-excel>
55
+ <print-data :sum-field="$parent.$parent.getExportField" :model="$parent.model" :field="$parent.$parent.getExportField"
56
+ :defaultfield="$parent.$parent.defaultfield"
57
+ titletable="用户设备查询"
58
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
59
+ <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>
60
+ </div>
61
+ </div>
62
+ <div class="row" v-show="$parent.$parent.criteriaShow">
63
+ <div class="col-sm-2 form-group" >
64
+ <label class="font_normal_body">客户名称</label>
65
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
66
+ condition="f_user_name = '{}'" placeholder="客户名称">
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_state"
71
+ v-model="model.f_user_state"
72
+ :options='$parent.$parent.userstates' placeholder='请选择'
73
+ condition="f_user_state = '{}'"
74
+ close-on-select></v-select>
75
+ </div>
76
+ <div class="col-sm-2 form-group" >
77
+ <label class="font_normal_body">客户地址</label>
78
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
79
+ condition="f_address like '%{}%'" placeholder='客户地址'>
80
+ </div>
81
+ <div class="col-sm-2 form-group" >
82
+ <label class="font_normal_body">设备编号</label>
83
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
84
+ condition="f_userinfodevices_no like '%{}%'" placeholder='设备编号'>
85
+ </div>
86
+
87
+ <div class="col-sm-2 form-group" >
88
+ <label class="font_normal_body">设备类型</label>
89
+ <v-select :value.sync="model.f_devices_type"
90
+ v-model="model.f_devices_type"
91
+ :options='$parent.$parent.deviceTypes' placeholder='请选择'
92
+ condition="f_userinfodevices_type = '{}'"
93
+ close-on-select></v-select>
94
+ </div>
95
+ <!-- <div class="col-sm-2 form-group" >-->
96
+ <!-- <label class="font_normal_body">设备品牌</label>-->
97
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_brand"-->
98
+ <!-- condition="f_brand like '%{}%'" placeholder='设备品牌'>-->
99
+ <!-- </div>-->
100
+ <!-- <div class="col-sm-2 form-group" >-->
101
+ <!-- <label class="font_normal_body">设备型号</label>-->
102
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_devices_model"-->
103
+ <!-- condition="f_devices_model like '%{}%'" placeholder='设备型号'>-->
104
+ <!-- </div>-->
105
+
106
+ <div class="col-sm-2 form-group" >
107
+ <label class="font_normal_body">缴费到期开始时间</label>
108
+ <datepicker placeholder="开始时间" style="width:40%"
109
+ v-model="model.expirestartDate"
110
+ :value.sync="model.expirestartDate"
111
+ :format="'yyyy-MM-dd'"
112
+ :show-reset-button="true"
113
+ condition="f_expire_date >= '{} 00:00:00'">
114
+ </datepicker>
115
+ </div>
116
+ <div class="col-sm-2 form-group" >
117
+ <label class="font_normal_body">缴费到期结束时间</label>
118
+ <datepicker placeholder="结束日期" style="width:40%;"
119
+ v-model="model.expireendDate"
120
+ :value.sync="model.expireendDate"
121
+ :format="'yyyy-MM-dd'"
122
+ :show-reset-button="true"
123
+ condition="f_expire_date <= '{} 23:59:59'">
124
+ </datepicker>
125
+ </div>
126
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
127
+ <div class="col-sm-2 form-group">
128
+ <label class="font_normal_body">用户类型</label>
129
+ <v-select :value.sync="model.f_user_type"
130
+ v-model="model.f_user_type"
131
+ @change="$parent.$parent.userTypeChange()"
132
+ :options='$parent.$parent.userTypes' placeholder='请选择'
133
+ condition="f_user_type = '{}'"
134
+ close-on-select></v-select>
135
+ </div>
136
+ <div class="col-sm-2 form-group">
137
+ <label for="f_user_usetype" class="font_normal_body ">用气类型</label>
138
+ <v-select :value.sync="model.f_user_usetype" :search="false"
139
+ @change="$parent.$parent.userUseTypeChange()"
140
+ v-model="model.f_user_usetype"
141
+ :options='$parent.$parent.userusetypes'
142
+ condition="f_user_usetype = '{}'"
143
+ placeholder='用气类型'
144
+ value-single="true"
145
+ close-on-select>
146
+ </v-select>
147
+ </div>
148
+ <div class="col-sm-2 form-group">
149
+ <label for="f_use_institution" class="font_normal_body">用气机构</label>
150
+ <v-select :value.sync="model.f_use_institution" :search="false"
151
+ @change="$parent.$parent.userUseInstitutionChange()"
152
+ v-model="model.f_use_institution"
153
+ :options='$parent.$parent.useinstitutions'
154
+ condition="f_use_institution = '{}'"
155
+ placeholder='用气机构'
156
+ value-single="true"
157
+ close-on-select>
158
+ </v-select>
159
+ </div>
160
+ <div class="col-sm-2 form-group">
161
+ <label for="f_user_usenature" class="font_normal_body ">使用性质</label>
162
+ <v-select :value.sync="model.f_user_usenature" :search="false"
163
+ v-model="model.f_user_usenature"
164
+ :options='$parent.$parent.userusenatures'
165
+ condition="f_user_usenature = '{}'"
166
+ placeholder='使用性质'
167
+ value-single="true"
168
+ close-on-select>
169
+ </v-select>
170
+ </div>
171
+ </div>
172
+ </div>
173
+ </criteria>
174
+
175
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
176
+ <template partial='head'>
177
+ <tr>
178
+ <th>
179
+ <!--<nobr>客户编号</nobr>-->
180
+ <data-order field="f_userinfo_code" name="客户编号" :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
181
+ </th>
182
+ <th><nobr>客户名称</nobr></th>
183
+ <th><nobr>档案编号</nobr></th>
184
+ <th><nobr>用户性质</nobr></th>
185
+ <th><nobr>设备类型</nobr></th>
186
+ <th><nobr>设备编号</nobr></th>
187
+ <th><nobr>设备型号</nobr></th>
188
+ <th><nobr>设备数量</nobr></th>
189
+ <th><nobr>设备别名</nobr></th>
190
+ <th>
191
+ <!--<nobr>缴费到期时间</nobr>-->
192
+ <data-order field="f_expire_date" name="缴费到期时间" :order.sync="$parent.$parent.$parent.orderFields.f_expire_date"></data-order>
193
+ </th>
194
+ <th><nobr>累计维护缴费金额</nobr></th>
195
+ </tr>
196
+ </template>
197
+ <template partial='body'>
198
+ <td style="text-align: center;"><nobr>
199
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
200
+ </nobr> </td>
201
+ <td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
202
+ <td style="text-align: center;"><nobr>{{row.f_olduserinfo_code}}</nobr></td>
203
+ <td style="text-align: center;"><nobr>{{row.f_user_nature}}</nobr></td>
204
+ <td style="text-align: center;"><nobr>{{row.f_userinfodevices_type}}</nobr></td>
205
+ <td style="text-align: center;"><nobr>{{row.f_userinfodevices_no}}</nobr></td>
206
+ <td style="text-align: center;"><nobr>{{row.f_userinfodevices_model}}</nobr></td>
207
+ <td style="text-align: center;"><nobr>{{row.f_userinfodevices_num}}</nobr></td>
208
+ <td style="text-align: center;"><nobr>{{row.f_userinfodevices_name}}</nobr></td>
209
+ <td style="text-align: center;"><nobr>{{row.f_expire_date}}</nobr></td>
210
+ <td style="text-align: center;"><nobr>{{row.f_mtc_fee}}</nobr></td>
211
+ </template>
212
+ <template partial='foot'>
213
+
214
+ </template>
215
+ </data-grid>
216
+ </criteria-paged>
217
+
218
+ <table class="table-hover">
219
+ <tr style="position: relative" class="table-bordered">
220
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
221
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
222
+ 累计维护缴费金额合计:&emsp;{{sumsmodel.f_mtc_fee}}
223
+ </td>
224
+ </tr>
225
+ </table>
226
+
227
+ <modal :show.sync="printshow" v-ref:modal backdrop="false">
228
+ <header slot="modal-header" class="modal-header text-center">
229
+ <h4 class="modal-title">打印列选择</h4>
230
+ <input type="checkbox" class="" id="f_generations" v-model="all">
231
+ <label for="f_generations" class="font-size">全选</label>
232
+ </header>
233
+ <article slot="modal-body">
234
+ <div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">
235
+ <div class="col-sm-3" v-for="f in fields">
236
+ <input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">
237
+ <label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>
238
+ </div>
239
+ </div>
240
+ </article>
241
+ <footer slot="modal-footer" class="modal-footer">
242
+ <center>
243
+ <button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>
244
+ <button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>
245
+ <print-table :model='model' v-show="false" v-ref:print
246
+ :top='40' :left='60' :right='40' :bottom='60'
247
+ :thead="thead" :tfoot='tfoot' :attach="yangsen"
248
+ :fields="modelval" :printpage="true">
249
+ </print-table>
250
+ </center>
251
+ </footer>
252
+ </modal>
253
+ </div>
254
+ <div class="flex" v-if="show">
255
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
256
+ </div>
257
+ </div></div></div>
258
+ </template>
259
+
260
+ <script>
261
+ import { PagedList } from 'vue-client'
262
+ import defaultPrint from './../config/DefaultPrint'
263
+ import exportConfig from './../config/exportConfig'
264
+
265
+ let readySomething = async function (self) {
266
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
267
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
268
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
269
+ // await self.$refs.paged.$refs.cri.search()
270
+ }
271
+ export default {
272
+ title: '用户设备查询',
273
+ data() {
274
+ return {
275
+ other:[],
276
+ footer:[],
277
+ model: new PagedList('rs/sql/userDeviceQuery', 20,{orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`},{
278
+ f_mtc_fee:0
279
+ }),
280
+ criteriaShow: false,
281
+ orgCondtionStr:'',
282
+ defaultfield: [],
283
+ config: {
284
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone']
285
+ },
286
+ modelval: [],
287
+ expireendDate:'',
288
+ expirestartDate:'',
289
+ printshow: false,
290
+ all: false,
291
+ fields: {},
292
+ //排序
293
+ orderitem:'f_operate_date desc',
294
+ orderFields: {
295
+ f_operate_date: 'no'
296
+ },
297
+ thead: '',
298
+ tfoot: '',
299
+ show:false,
300
+ rowdata:{},
301
+ // 下拉框参数
302
+ userstates:this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
303
+ deviceTypes: this.$appdata.getParam('设备类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备类型')] : [],
304
+ // brand: this.$appdata.getParam('设备品牌') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备品牌')] : [],
305
+ initres: {
306
+ org:[this.$login.f.orgid],
307
+ dep:[],
308
+ user:[],
309
+ },
310
+ userusetypes: [],
311
+ useinstitutions: [],
312
+ userusenatures: [],
313
+ // 合计数据
314
+ sumsmodel: {}
315
+ }
316
+ },
317
+ ready(){
318
+ readySomething(this).then(() => {
319
+ this.$emit('ready')
320
+ }).catch((error) => {
321
+ this.$emit('error', error)
322
+ })
323
+ },
324
+ methods: {
325
+ userUseInstitutionChange () {
326
+ this.userusenatures = []
327
+ this.$refs.paged.$refs.cri.model.f_user_usenature = ''
328
+ if (this.$refs.paged.$refs.cri.model.f_use_institution) {
329
+ let str = this.$refs.paged.$refs.cri.model.f_use_institution + '使用性质'
330
+ this.userusenatures = this.$appdata.getParam(str)
331
+ }
332
+ },
333
+ userUseTypeChange () {
334
+ this.useinstitutions = []
335
+ this.$refs.paged.$refs.cri.model.f_use_institution = ''
336
+ if (this.$refs.paged.$refs.cri.model.f_user_usetype) {
337
+ let str = this.$refs.paged.$refs.cri.model.f_user_usetype + '机构'
338
+ this.useinstitutions = this.$appdata.getParam(str)
339
+ }
340
+ },
341
+ userTypeChange () {
342
+ this.userusetypes = []
343
+ if(this.$refs.paged.$refs.cri.model !==null) {
344
+ this.$refs.paged.$refs.cri.model.f_use_institution = ''
345
+ let str = this.$refs.paged.$refs.cri.model.f_user_type[0] + '用气类型'
346
+ this.userusetypes = this.$appdata.getParam(str)
347
+ }
348
+ },
349
+ getotherfooter () {
350
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
351
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
352
+ this.other = [];
353
+ this.footer = [];
354
+ // let exportdata = this.getCondition;
355
+ let otherInData = [];
356
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
357
+ let footerData = [], exportfield = this.getExportField;
358
+ footerData.push("合计");
359
+ let self = this;
360
+ for (var field in self.sumsmodel) {
361
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
362
+ }
363
+ this.footer.push(footerData);
364
+ this.other.push(otherInData);
365
+ },
366
+ search(){
367
+ this.$refs.paged.$refs.cri.search()
368
+ },
369
+ cancel() {
370
+ this.show = false
371
+ },
372
+ showmsg(obj){
373
+ this.rowdata=obj
374
+ this.show=true
375
+ },
376
+ selfSearch (args) {
377
+ if (!this.orgCondtionStr) {
378
+ args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
379
+ } else {
380
+ args.condition = `${args.condition}` + this.orgCondtionStr
381
+ }
382
+
383
+ this.model.search(args.condition, args.model)
384
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
385
+ console.log('合计字段',this.sumsmodel)
386
+ },
387
+ clear(){
388
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
389
+ this.$refs.paged.$refs.cri.model[key] = []
390
+ })
391
+ },
392
+ hidden(){
393
+ this.criteriaShow = !this.criteriaShow
394
+ },
395
+ getRes(obj) {
396
+ this.orgCondtionStr = obj
397
+ },
398
+ stamp () {
399
+ this.all = false
400
+ //默认选择要打印的列
401
+ this.modelval = defaultPrint.config
402
+ this.fields = this.getfield
403
+ console.log('所有打印字段',this.fields)
404
+ this.printshow = true
405
+ this.put()
406
+ },
407
+ put () {
408
+ // 对Modelval进行排序
409
+ this.sortModelval()
410
+ this.thead = `<tr><th colspan=${this.modelval.length}>设备查询统计报表</th></tr><tr>`
411
+ for (let key of this.modelval) {
412
+ this.thead += '<th>' + this.fields[key] + '</th>'
413
+ }
414
+ this.thead += '</tr>'
415
+ },
416
+ print () {
417
+ this.$refs.print.PrintAsFile()
418
+ this.printshow = false
419
+ },
420
+ close () {
421
+ this.printshow = false
422
+ this.all = false
423
+ },
424
+ // 对选择的列进行排序
425
+ sortModelval () {
426
+ let sortModel = []
427
+ Object.keys(this.fields).forEach((key) => {
428
+ if (this.modelval.includes(key)) {
429
+ sortModel.push(key)
430
+ }
431
+ })
432
+ this.modelval = sortModel
433
+ console.log('选择的打印的字段', this.modelval)
434
+ },
435
+ sort (field, rule) {
436
+ // 将所有排序方式设为不排序,实现相互排斥
437
+ for (let key in this.orderFields) {
438
+ if (key === field) {
439
+ this.orderFields[key] = rule
440
+ } else {
441
+ this.orderFields[key] = 'no'
442
+ }
443
+ }
444
+ // 如果新规则不排序,还原为默认排序
445
+ if (rule === 'no') {
446
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
447
+ } else {
448
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
449
+ }
450
+
451
+ this.search()
452
+ }
453
+ },
454
+ watch:{
455
+ 'all' (val) {
456
+ if (val) {
457
+ this.modelval = this.bodyData
458
+ } else {
459
+ this.modelval = defaultPrint.config
460
+ this.put()
461
+ }
462
+ },
463
+ sumsmodel:{
464
+ handler: function(val) {
465
+ this.getotherfooter();
466
+ },
467
+ deep: true
468
+ },
469
+ 'modelval.length' () {
470
+ this.put()
471
+ },
472
+ },
473
+ computed:{
474
+ userTypes() {
475
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
476
+ },
477
+ authArr () {
478
+ return this.$login.r ? this.$login.r : []
479
+ },
480
+ getCondition(){
481
+ return {condition: `${this.$refs.paged.$refs.cri.condition}`+this.orgCondtionStr,orderitem:this.orderitem}
482
+ },
483
+ getfield(){
484
+ let data = {}
485
+ this.bodyData.forEach((value, index)=>{
486
+ data[this.bodyData[index]] = this.headData[index]
487
+ })
488
+ //合计字段打印
489
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
490
+ if(this.sumsmodel){
491
+ Object.keys(this.sumsmodel).forEach((key) => {
492
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
493
+ })
494
+ }else{
495
+ this.tfoot += '暂无'
496
+ }
497
+ this.tfoot += '</th></tr>'
498
+ return data
499
+ },
500
+ getExportField() {
501
+ return exportConfig.userDeviceConfig
502
+ }
503
+ }
504
+ }
505
+ </script>
@@ -75,6 +75,7 @@
75
75
  <label class="font_normal_body">用户类型</label>
76
76
  <v-select :value.sync="model.f_user_type"
77
77
  v-model="model.f_user_type"
78
+ @change="$parent.$parent.userTypeChange()"
78
79
  :options='$parent.$parent.userTypes' placeholder='请选择'
79
80
  condition="f_user_type = '{}'"
80
81
  close-on-select></v-select>
@@ -164,6 +165,41 @@
164
165
  close-on-select clear-button>
165
166
  </v-select>
166
167
  </div>
168
+ <div class="col-sm-2 form-group">
169
+ <label for="f_user_usetype" class="font_normal_body ">用气类型</label>
170
+ <v-select :value.sync="model.f_user_usetype" :search="false"
171
+ @change="$parent.$parent.userUseTypeChange()"
172
+ v-model="model.f_user_usetype"
173
+ :options='$parent.$parent.userusetypes'
174
+ condition="f_user_usetype = '{}'"
175
+ placeholder='用气类型'
176
+ value-single="true"
177
+ close-on-select>
178
+ </v-select>
179
+ </div>
180
+ <div class="col-sm-2 form-group">
181
+ <label for="f_use_institution" class="font_normal_body">用气机构</label>
182
+ <v-select :value.sync="model.f_use_institution" :search="false"
183
+ @change="$parent.$parent.userUseInstitutionChange()"
184
+ v-model="model.f_use_institution"
185
+ :options='$parent.$parent.useinstitutions'
186
+ condition="f_use_institution = '{}'"
187
+ placeholder='用气机构'
188
+ value-single="true"
189
+ close-on-select>
190
+ </v-select>
191
+ </div>
192
+ <div class="col-sm-2 form-group">
193
+ <label for="f_user_usenature" class="font_normal_body ">使用性质</label>
194
+ <v-select :value.sync="model.f_user_usenature" :search="false"
195
+ v-model="model.f_user_usenature"
196
+ :options='$parent.$parent.userusenatures'
197
+ condition="f_user_usenature = '{}'"
198
+ placeholder='使用性质'
199
+ value-single="true"
200
+ close-on-select>
201
+ </v-select>
202
+ </div>
167
203
  </div>
168
204
  </div>
169
205
  </criteria>
@@ -422,6 +458,9 @@
422
458
 
423
459
  //合计数据
424
460
  sumsmodel: {},
461
+ userusetypes: [],
462
+ useinstitutions: [],
463
+ userusenatures: [],
425
464
  changemeter_fee:[
426
465
  {label: '全部', value: ''},
427
466
  {label: '销售', value: '> 0'},
@@ -443,6 +482,30 @@
443
482
  readySomething(this)
444
483
  },
445
484
  methods: {
485
+ userUseInstitutionChange () {
486
+ this.userusenatures = []
487
+ this.$refs.paged.$refs.cri.model.f_user_usenature = ''
488
+ if (this.$refs.paged.$refs.cri.model.f_use_institution) {
489
+ let str = this.$refs.paged.$refs.cri.model.f_use_institution + '使用性质'
490
+ this.userusenatures = this.$appdata.getParam(str)
491
+ }
492
+ },
493
+ userUseTypeChange () {
494
+ this.useinstitutions = []
495
+ this.$refs.paged.$refs.cri.model.f_use_institution = ''
496
+ if (this.$refs.paged.$refs.cri.model.f_user_usetype) {
497
+ let str = this.$refs.paged.$refs.cri.model.f_user_usetype + '机构'
498
+ this.useinstitutions = this.$appdata.getParam(str)
499
+ }
500
+ },
501
+ userTypeChange () {
502
+ this.userusetypes = []
503
+ if(this.$refs.paged.$refs.cri.model !==null) {
504
+ this.$refs.paged.$refs.cri.model.f_use_institution = ''
505
+ let str = this.$refs.paged.$refs.cri.model.f_user_type[0] + '用气类型'
506
+ this.userusetypes = this.$appdata.getParam(str)
507
+ }
508
+ },
446
509
  view(row){
447
510
  this.showupload = true
448
511
  this.selected= row
@@ -21,8 +21,6 @@ export default function () {
21
21
  Vue.component('change-meter-query', (resolve) => { require(['./manage/ChangeMeterQuery'], resolve) })
22
22
  // 上报数据查询
23
23
  Vue.component('report-data-query', (resolve) => { require(['./ReportDataQuery'], resolve) })
24
- // 上报统计分析--抄表分析
25
- Vue.component('user-gas-list', (resolve) => { require(['./UserGasList'], resolve) })
26
24
  // 用气分析明细查询
27
25
  Vue.component('new-webmeter-user-gasAll', (resolve) => { require(['./UserGasAll'], resolve) })
28
26
  // 用气分析图表分析
@@ -53,4 +51,27 @@ export default function () {
53
51
  Vue.component('archives-manage', (resolve) => { require(['./ArchivesManage'], resolve) })
54
52
  // 设备查询
55
53
  Vue.component('equipment-query', (resolve) => { require(['./DeviceQuery'], resolve) })
54
+ // 补卡查询
55
+ Vue.component('fill-card-query', (resolve) => { require(['./businessquery/FillCardQuery'], resolve) })
56
+ // 机表抄表查询
57
+ Vue.component('handplan-query', (resolve) => { require(['./businessquery/HandplanQuery'], resolve) })
58
+ // 迁表查询
59
+ Vue.component('movemeter-query', (resolve) => { require(['./businessquery/MoveMeterQuery'], resolve) })
60
+ // 调价补差查询
61
+ Vue.component('priceadjust-query', (resolve) => { require(['./businessquery/priceadjustQuery'], resolve) })
62
+ // 冲正查询
63
+ Vue.component('reverse-query', (resolve) => { require(['./businessquery/ReverseQuery'], resolve) })
64
+ // 过户查询
65
+ Vue.component('transfer-query', (resolve) => { require(['./businessquery/TransferQuery'], resolve) })
66
+ Vue.component('user-insured', (resolve) => { require(['./businessquery/UserInsured.vue'], resolve) })
67
+ // 民用用气设备查询
68
+ Vue.component('my-gas-device-query', (resolve) => { require(['./filesquery/GasDeviceQuery'], resolve) })
69
+ // 非民用用气设备查询
70
+ Vue.component('fmy-gas-device-query', (resolve) => { require(['./filesquery/FmyGasDeviceQuery'], resolve) })
71
+ // 调价记录查询
72
+ Vue.component('price-change-query', (resolve) => { require(['./filesquery/PriceChangeQuery'], resolve) })
73
+ // 用户设备查询
74
+ Vue.component('user-equipment-query', (resolve) => { require(['./filesquery/UserDeviceQuery'], resolve) })
75
+ // 档案变更查询
76
+ Vue.component('changeuser-query', (resolve) => { require(['./filesquery/ChangeUserQuery'], resolve) })
56
77
  }