manage-client 3.3.1 → 3.3.3

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 (34) hide show
  1. package/package.json +1 -1
  2. package/src/components/sale/businessquery/GroupChargeQuery.vue +1 -1
  3. package/src/filiale/gehua/GroupChargeQuery.vue +1 -1
  4. package/src/filiale/macheng/config/exportConfig.js +1 -1
  5. package/src/filiale/shanxian/CancellationQuery.vue +426 -0
  6. package/src/filiale/shanxian/ChangeUserQuery.vue +395 -0
  7. package/src/filiale/shanxian/DeviceQuery.vue +586 -0
  8. package/src/filiale/shanxian/DisableQuery.vue +528 -0
  9. package/src/filiale/shanxian/EnableQuery.vue +461 -0
  10. package/src/filiale/shanxian/FMYGasQuery.vue +731 -0
  11. package/src/filiale/shanxian/FmyGasDeviceQuery.vue +68 -33
  12. package/src/filiale/shanxian/InspectListUserNew.vue +18 -16
  13. package/src/filiale/shanxian/LostContactAnalysisList.vue +19 -18
  14. package/src/filiale/shanxian/MeterQuery.vue +968 -0
  15. package/src/filiale/shanxian/MonthGasQuery.vue +481 -0
  16. package/src/filiale/shanxian/NewQueryInstruct.vue +457 -0
  17. package/src/filiale/shanxian/ReverseQuery.vue +454 -0
  18. package/src/filiale/shanxian/TransferQuery.vue +469 -0
  19. package/src/filiale/shanxian/UserGasAll.vue +15 -14
  20. package/src/filiale/shanxian/UserLostContactAnalysis.vue +18 -17
  21. package/src/filiale/shanxian/UserQuery.vue +27 -26
  22. package/src/filiale/shanxian/config/exportConfig.js +100 -100
  23. package/src/filiale/shanxian/newwebmeter/TotalExceptionByMeter.vue +608 -0
  24. package/src/filiale/shanxian/sale.js +20 -0
  25. package/src/filiale/shanxian/webmeterManage.js +4 -0
  26. package/src/filiale/wenxi/GasStatistics.vue +6 -6
  27. package/src/filiale/wenxi/HandplanQuery.vue +10 -10
  28. package/src/filiale/wenxi/MeterQuery.vue +41 -68
  29. package/.gradle/4.4/fileChanges/last-build.bin +0 -0
  30. package/.gradle/6.1/executionHistory/executionHistory.bin +0 -0
  31. package/.gradle/6.1/executionHistory/executionHistory.lock +0 -0
  32. package/.gradle/6.1/fileChanges/last-build.bin +0 -0
  33. package/.gradle/6.1/fileHashes/fileHashes.bin +0 -0
  34. package/.gradle/6.1/fileHashes/fileHashes.lock +0 -0
@@ -0,0 +1,528 @@
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
+
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">{{$parent.$parent.$parent.usertitle}}编号</label>
12
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
13
+ condition="f_userinfo_code = '{}' " placeholder={{$parent.$parent.usertitle}}编号>
14
+ </div>
15
+ <div class="col-sm-2 form-group">
16
+ <label class="font_normal_body">{{$parent.$parent.$parent.usertitle}}名称</label>
17
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
18
+ condition=" f_user_name like '%{}%'" placeholder={{$parent.$parent.usertitle}}名称>
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label class="font_normal_body">{{$parent.$parent.$parent.usertitle}}地址</label>
22
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
23
+ condition="f_address like '%{}%'" placeholder={{$parent.$parent.usertitle}}地址>
24
+ </div>
25
+ <div class="col-sm-2 form-group">
26
+ <label class="font_normal_body" title="旧客户编号">档案编号</label>
27
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
28
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
29
+ </div>
30
+
31
+ <div class="span" style="float:right;">
32
+ <button class="button_search button_spacing" @click="search()">查询</button>
33
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
34
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
35
+
36
+ <export-excel :data="$parent.$parent.getCondition"
37
+ :field="$parent.$parent.getfield"
38
+ :header="$parent.$parent.other"
39
+ sqlurl="rs/logic/exportfile" sql-name="disableQuery" template-name='停用查询导出'
40
+ :choose-col="true"></export-excel>
41
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
42
+ :defaultfield="$parent.$parent.defaultfield"
43
+ titletable="停用记录"
44
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
45
+ <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>
46
+ </div>
47
+ </div>
48
+
49
+ <div class="row" v-show="$parent.$parent.criteriaShow">
50
+ <div class="col-sm-2 form-group">
51
+ <label for="startDate" class="font_normal_body" title="停用时间">开始日期</label>
52
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
53
+ v-model="model.startDate"
54
+ :value.sync="model.startDate"
55
+ :format="'yyyy-MM-dd HH:mm:ss'"
56
+ :show-reset-button="true"
57
+ condition="f_operate_date >= '{}'">
58
+ </datepicker>
59
+ </div>
60
+ <div class="col-sm-2 form-group">
61
+ <label for="endDate" class="font_normal_body" title="停用时间">结束日期</label>
62
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
63
+ v-model="model.endDate"
64
+ :value.sync="model.endDate"
65
+ :format="'yyyy-MM-dd HH:mm:ss'"
66
+ :show-reset-button="true"
67
+ condition="f_operate_date <= '{}'">
68
+ </datepicker>
69
+ </div>
70
+
71
+ <div class="col-sm-2 form-group">
72
+ <label class="font_normal_body">{{$parent.$parent.usertitle}}电话</label>
73
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
74
+ condition=" f_user_phone like '%{}%'" placeholder={{$parent.$parent.usertitle}}电话>
75
+ </div>
76
+
77
+ <!--<div class="col-sm-2 form-group">-->
78
+ <!--<label class="font_normal_body">操作类型</label>-->
79
+ <!--<v-select :value.sync="model.f_operat_type"-->
80
+ <!--v-model="model.f_operat_type" multiple-->
81
+ <!--:options='$parent.$parent.operattype' placeholder='请选择'-->
82
+ <!--condition="f_operat_type = '{}'"-->
83
+ <!--close-on-select></v-select>-->
84
+ <!--</div>-->
85
+ <div class="col-sm-2 form-group">
86
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
87
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
88
+ condition="f_meternumber = '{}'" placeholder='表号'>
89
+ </div>
90
+ <div class="col-sm-2 form-group">
91
+ <label class="font_normal_body">卡&emsp;&emsp;号</label>
92
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
93
+ condition="f_card_id = '{}'" placeholder='卡号'>
94
+ </div>
95
+ <div class="col-sm-2 form-group">
96
+ <label class="font_normal_body">停用原因</label>
97
+ <v-select :value.sync="model.f_disable_reason"
98
+ v-model="model.f_disable_reason" multiple
99
+ :options='$parent.$parent.disablereason' placeholder='请选择'
100
+ condition="f_disable_reason in {}"
101
+ close-on-select></v-select>
102
+ </div>
103
+ <div class="col-sm-2 form-group">
104
+ <label class="font_normal_body">其他原因</label>
105
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_othereason"
106
+ condition="f_othereason like '%{}%'" placeholder='其他原因'>
107
+ </div>
108
+ <div class="col-sm-2 form-group">
109
+ <label class="font_normal_body">小&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区</label>
110
+ <v-select class="select_list select"
111
+ v-model="model.f_residential_area"
112
+ :value.sync="model.f_residential_area"
113
+ :options='$parent.$parent.residentialarea'
114
+ style="width: 60%"
115
+ placeholder='选择小区'
116
+ condition="f_residential_area = '{}'"
117
+ close-on-select>
118
+
119
+ </v-select>
120
+ </div>
121
+ <div class="col-sm-2 form-group">
122
+ <label class="font_normal_body">具体地址</label>
123
+ <div class="btn-group select_list select" style="width: 60%;">
124
+ <input type="text" style="width: 27%;" placeholder="楼号" class="input_search" v-model="model.f_building" condition="f_building = '{}'"/>&nbsp;-&nbsp;
125
+ <input type="text" style="width: 20%;" placeholder="单元" class="input_search" v-model="model.f_unit" condition="f_unit = '{}'"/>&nbsp;-&nbsp;
126
+ <input type="text" style="width: 36%;" placeholder="室号" class="input_search" v-model="model.f_room" condition="f_room = '{}'" />
127
+ </div>
128
+ </div>
129
+ <div class="col-sm-2 form-group">
130
+ <label class="font_normal_body">气表品牌</label>
131
+ <v-select :value.sync="model.f_meter_brand"
132
+ v-model="model.f_meter_brand"
133
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
134
+ condition="f_meter_brand = '{}'"
135
+ close-on-select></v-select>
136
+ </div>
137
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" :cascade =true v-ref:sel></res-select-group>
138
+ </div>
139
+ </div>
140
+ </criteria>
141
+
142
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
143
+ <template partial='head'>
144
+ <tr>
145
+ <th>
146
+ <!-- <nobr>客户编号</nobr>-->
147
+ <data-order field="f_userinfo_code" :name=`${$parent.$parent.$parent.usertitle}编号`
148
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
149
+ </th>
150
+ <th>
151
+ <nobr>{{$parent.$parent.$parent.usertitle}}名称</nobr>
152
+ </th>
153
+ <th>
154
+ <nobr>档案编号</nobr>
155
+ </th>
156
+ <th>
157
+ <nobr>{{$parent.$parent.$parent.usertitle}}类型</nobr>
158
+ </th>
159
+ <th>
160
+ <nobr>联系电话</nobr>
161
+ </th>
162
+ <th>
163
+ <nobr>{{$parent.$parent.$parent.usertitle}}电话</nobr>
164
+ </th>
165
+ <th>
166
+ <nobr>用气点名称</nobr>
167
+ </th>
168
+ <th>
169
+ <!-- <nobr>客户地址</nobr>-->
170
+ <data-order field="f_address" :name.sync=`${$parent.$parent.$parent.usertitle}地址`
171
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
172
+ </th>
173
+ <th>
174
+ <nobr>表号</nobr>
175
+ </th>
176
+ <th>
177
+ <nobr>气表品牌</nobr>
178
+ </th>
179
+ <th>
180
+ <nobr>停用原因</nobr>
181
+ </th>
182
+ <th>
183
+ <nobr>其他原因</nobr>
184
+ </th>
185
+ <th>
186
+ <nobr>状态</nobr>
187
+ </th>
188
+ <th>
189
+ <!-- <nobr>停用日期</nobr>-->
190
+ <data-order field="f_operate_date" name="停用日期"
191
+ :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
192
+ </th>
193
+ <th>
194
+ <nobr>操作类型</nobr>
195
+ </th>
196
+ <th>
197
+ <nobr>人员</nobr>
198
+ </th>
199
+ <th>
200
+ <nobr>部门</nobr>
201
+ </th>
202
+ <th>
203
+ <nobr>公司</nobr>
204
+ </th>
205
+ <th><nobr>附件</nobr></th>
206
+ </tr>
207
+ </template>
208
+ <template partial='body'>
209
+ <td style="text-align: center;">
210
+ <nobr>
211
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
212
+ </td>
213
+ <td style="text-align: center;">
214
+ <nobr>{{row.f_user_name}}</nobr>
215
+ </td>
216
+ <td style="text-align: center;">
217
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
218
+ </td>
219
+ <td style="text-align: center;">
220
+ <nobr>{{row.f_user_type}}</nobr>
221
+ </td>
222
+ <td style="text-align: center;">
223
+ <nobr>{{row.f_user_phone}}</nobr>
224
+ </td>
225
+ <td style="text-align: center;">
226
+ <nobr>{{row.cy_lxr}}</nobr>
227
+ </td>
228
+ <td style="text-align: center;">
229
+ <nobr>{{row.f_userfiles_address}}</nobr>
230
+ </td>
231
+ <td style="text-align: center;">
232
+ <nobr>{{row.f_address}}</nobr>
233
+ </td>
234
+ <td style="text-align: center;">
235
+ <nobr>{{row.f_meternumber}}</nobr>
236
+ </td>
237
+ <td style="text-align: center;">
238
+ <nobr>{{row.f_meter_brand}}</nobr>
239
+ </td>
240
+ <td style="text-align: center;">
241
+ <nobr>{{row.f_disable_reason}}</nobr>
242
+ </td>
243
+ <td style="text-align: center;">
244
+ <nobr>{{row.f_othereason}}</nobr>
245
+ </td>
246
+ <td style="text-align: center;">
247
+ <nobr>{{row.f_state}}</nobr>
248
+ </td>
249
+ <td style="text-align: center;">
250
+ <nobr>{{row.f_operate_date}}</nobr>
251
+ </td>
252
+ <td style="text-align: center;">
253
+ <nobr>{{row.f_operat_type}}</nobr>
254
+ </td>
255
+ <td style="text-align: center;">
256
+ <nobr>{{row.f_operator}}</nobr>
257
+ </td>
258
+ <td style="text-align: center;">
259
+ <nobr>{{row.f_depname}}</nobr>
260
+ </td>
261
+ <td style="text-align: center;">
262
+ <nobr>{{row.f_orgname}}</nobr>
263
+ </td>
264
+ <td style="text-align: center;"><nobr>
265
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
266
+ </nobr></td>
267
+ </template>
268
+ <template partial='foot'></template>
269
+ </data-grid>
270
+ </criteria-paged>
271
+
272
+ <!-- <table class="table-hover">-->
273
+ <!-- <tr style="position: relative" class="table-bordered">-->
274
+ <!-- <td-->
275
+ <!-- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">-->
276
+ <!-- 汇总信息-->
277
+ <!-- </td>-->
278
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">合计:&emsp;{{sumsmodel.f_pregas}}</td>-->
279
+ <!-- </tr>-->
280
+ <!-- </table>-->
281
+ </div>
282
+ <div class="flex" v-if="show">
283
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
284
+ </div>
285
+ </div>
286
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
287
+ <article slot="modal-body">
288
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="停用" :isremark="false" style="width:auto" ></upload>
289
+ </article>
290
+ <footer slot="modal-footer" class="modal-footer">
291
+ </footer>
292
+ </modal>
293
+ </div>
294
+ </template>
295
+
296
+ <script>
297
+ import {PagedList} from 'vue-client'
298
+ import defaultPrint from './config/DefaultPrint'
299
+ import exportConfig from './config/exportConfig'
300
+
301
+ let readySomething = async function (self) {
302
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
303
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
304
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
305
+ // await self.$refs.paged.$refs.cri.search()
306
+ //self.$refs.paged.$refs.cri.model.f_sendsuccess = ['有效']
307
+ await self.$MagLoadParams.loadParam()
308
+ self.initParams()
309
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
310
+ }
311
+ export default {
312
+ props:['data','residentialarea'],
313
+ title: '停用查询',
314
+ data() {
315
+ return {
316
+ data: {},
317
+ other: [],
318
+ footer: [],
319
+ model: new PagedList('rs/sql/disableQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`}),
320
+ criteriaShow: false,
321
+ headData: ["客户编号", "客户名称", "操作人", "操作日期", "停用状态", "停用原因", "其他停用原因", "同步状态"],
322
+ bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_comments", "f_othereason", "f_sendsuccess"],
323
+ orgCondtionStr: '',
324
+ show:false,
325
+ rowdata:{},
326
+ modelval: [],
327
+ printshow: false,
328
+ all: false,
329
+ usertitle: this.$appdata.getSingleValue('用户名称前缀') ? this.$appdata.getSingleValue('用户名称前缀') : '客户',
330
+ fields: {},
331
+ config: {
332
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_othereason', 'f_state', 'f_operate_date', 'f_operat_type', 'f_operator']
333
+ },
334
+ //排序
335
+ orderitem:'f_operate_date desc',
336
+ orderFields: {
337
+ f_operate_date: 'no'
338
+ },
339
+ thead: '',
340
+ showupload:false,
341
+ selected:{},
342
+ //默认打印列
343
+ defaultfield: [],
344
+ tfoot: '',
345
+ initres: {
346
+ org:[this.$login.f.orgid],
347
+ dep:[],
348
+ user:[],
349
+ },
350
+ //合计数据
351
+ sumsmodel: {},
352
+ operattype:[{label: '全部', value: ''},{label: '停用', value: '停用'},{label: '拆表', value: '拆表'}],
353
+ meterbrands: []
354
+ }
355
+ },
356
+ ready() {
357
+ readySomething(this).then(() => {
358
+ this.$emit('ready')
359
+ }).catch((error) => {
360
+ this.$emit('error', error)
361
+ })
362
+ },
363
+ methods: {
364
+ view(row){
365
+ this.showupload = true
366
+ this.selected= row
367
+ },
368
+ getotherfooter() {
369
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
370
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
371
+ this.other = [];
372
+ this.footer = [];
373
+ let exportdata = this.getCondition;
374
+ let otherInData = [];
375
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
376
+ let footerData = [], exportfield = this.getfield;
377
+ footerData.push("合计");
378
+ let self = this;
379
+ for (var field in self.sumsmodel) {
380
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
381
+ }
382
+ this.footer.push(footerData);
383
+ this.other.push(otherInData);
384
+ },
385
+ search(){
386
+ this.$refs.paged.$refs.cri.search()
387
+ },
388
+ selfSearch(args) {
389
+ if (this.data) {
390
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
391
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
392
+ }
393
+ args.condition = `${args.condition}` + this.orgCondtionStr
394
+ args.condition = args.condition.replace(/f_zones/, "f_slice_area")
395
+ this.model.search(args.condition, args.model)
396
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
397
+ },
398
+ clear() {
399
+ //清空部门和人员
400
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
401
+ //部门和人员变为全选
402
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
403
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
404
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
405
+ this.$refs.paged.$refs.cri.model[key] = []
406
+ })
407
+ },
408
+ show() {
409
+ this.criteriaShow = true
410
+ },
411
+ hidden() {
412
+ this.criteriaShow = !this.criteriaShow
413
+ },
414
+ getRes(obj) {
415
+ this.orgCondtionStr = obj
416
+ },
417
+ stamp() {
418
+ this.all = false
419
+ //默认选择要打印的列
420
+ this.modelval = defaultPrint.config
421
+ this.fields = this.getfield
422
+ console.log('所有打印字段', this.fields)
423
+ this.printshow = true
424
+ this.put()
425
+ },
426
+ put() {
427
+ // 对Modelval进行排序
428
+ this.sortModelval()
429
+ this.thead = `<tr><th colspan=${this.modelval.length}>停用查询报表</th></tr><tr>`
430
+ for (let key of this.modelval) {
431
+ this.thead += '<th>' + this.fields[key] + '</th>'
432
+ }
433
+ this.thead += '</tr>'
434
+ },
435
+ cancel() {
436
+ this.show = false
437
+ },
438
+ dealmsg(val) {
439
+ console.log('---------------dealmsg')
440
+ this.rowdata=val
441
+ this.show=true
442
+ val.model = this.model.model
443
+ this.$dispatch('deal-msg', val)
444
+ },
445
+ print() {
446
+ this.$refs.print.PrintAsFile()
447
+ this.printshow = false
448
+ },
449
+ close() {
450
+ this.printshow = false
451
+ this.all = false
452
+ },
453
+ // 对选择的列进行排序
454
+ sortModelval() {
455
+ let sortModel = []
456
+ Object.keys(this.fields).forEach((key) => {
457
+ if (this.modelval.includes(key)) {
458
+ sortModel.push(key)
459
+ }
460
+ })
461
+ this.modelval = sortModel
462
+ console.log('选择的打印的字段', this.modelval)
463
+ },
464
+ sort (field, rule) {
465
+ // 将所有排序方式设为不排序,实现相互排斥
466
+ for (let key in this.orderFields) {
467
+ if (key === field) {
468
+ this.orderFields[key] = rule
469
+ } else {
470
+ this.orderFields[key] = 'no'
471
+ }
472
+ }
473
+ // 如果新规则不排序,还原为默认排序
474
+ if (rule === 'no') {
475
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
476
+ } else {
477
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
478
+ }
479
+
480
+ this.search()
481
+ },
482
+ initParams() {
483
+ // 初始化气表品牌
484
+ let brandArr = []
485
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
486
+ let temp = {}
487
+ temp.label = item.label
488
+ temp.value = item.value.f_meter_brand
489
+ brandArr.push(temp)
490
+ })
491
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
492
+ }
493
+ },
494
+ watch: {
495
+ 'all'(val) {
496
+ if (val) {
497
+ this.modelval = this.bodyData
498
+ } else {
499
+ this.modelval = defaultPrint.config
500
+ this.put()
501
+ }
502
+ },
503
+ sumsmodel: {
504
+ handler: function (val) {
505
+ this.getotherfooter();
506
+ },
507
+ deep: true
508
+ },
509
+ 'modelval.length'() {
510
+ this.put()
511
+ },
512
+ },
513
+ computed: {
514
+ getCondition() {
515
+ return {
516
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
517
+ orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"
518
+ }
519
+ },
520
+ getfield() {
521
+ return exportConfig.disableConfig
522
+ },
523
+ disablereason () {
524
+ return this.$appdata.getParam('停用原因')
525
+ }
526
+ }
527
+ }
528
+ </script>