manage-client 4.0.96 → 4.1.2

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.
@@ -0,0 +1,618 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main">
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">公&emsp;&emsp;司&emsp;</label>
11
+ <right-tree @re-res="$parent.$parent.getorg"
12
+ :initresid='$parent.$parent.org'></right-tree>
13
+ </div>
14
+
15
+ <div class="col-sm-2 form-group ">
16
+ <label for="startDate" class="font_normal_body">抄表开始&emsp;</label>
17
+ <datepicker id="startDate" placeholder="开始日期"
18
+ v-model="model.startDate"
19
+ style="width:60%"
20
+ :value.sync="model.startDate"
21
+ :disabled-days-of-Week="[]"
22
+ :format="'yyyy-MM-dd HH:mm:ss'"
23
+ :show-reset-button="reset">
24
+ </datepicker>
25
+ </div>
26
+ <div class="col-sm-2 form-group ">
27
+ <label for="startDate" class="font_normal_body">抄表结束&emsp;</label>
28
+ <datepicker id="endDate" placeholder="结束日期"
29
+ v-model="model.endDate"
30
+ style="width:60%"
31
+ :value.sync="model.endDate"
32
+ :disabled-days-of-Week="[]"
33
+ :format="'yyyy-MM-dd HH:mm:ss'"
34
+ :show-reset-button="reset">
35
+ </datepicker>
36
+ </div>
37
+
38
+ <div class="col-sm-2 form-group ">
39
+ <label for="f_gasproperties"class="font_normal_body">用气性质&emsp;</label>
40
+ <v-select id="f_gasproperties"
41
+ style="width:60%"
42
+ v-model="model.f_gasproperties"
43
+ placeholder='用气性质'
44
+ :value.sync="model.f_gasproperties"
45
+ :options='$parent.$parent.gasproperties'
46
+ condition="f_gasproperties = '{}'"
47
+ close-on-select >
48
+ </v-select>
49
+ </div>
50
+
51
+ <!--新增通气状态查询条件-->
52
+ <div class="col-sm-2 form-group">
53
+ <label for="f_gas_date" class="font_normal_body">通气状态&emsp;</label>
54
+ <v-select id="f_gas_date"
55
+ style="width:60%"
56
+ v-model="model.f_gas_date"
57
+ placeholder='通气状态'
58
+ :value.sync="model.f_gas_date"
59
+ :options='$parent.$parent.f_gas_date'
60
+ condition="ventilation_status = '{}'"
61
+ close-on-select>
62
+ </v-select>
63
+ </div>
64
+
65
+
66
+ <div class="span" style="float:right;">
67
+ <button class="btn button_search" @click="search()">查询</button>
68
+ <button class="btn button_clear" @click="$parent.$parent.clear()">清空</button>
69
+ <export-excel :data="$parent.$parent.getCondition"
70
+ :field="$parent.$parent.getfield"
71
+ :footer="$parent.$parent.footer"
72
+ :header="$parent.$parent.other"
73
+ sqlurl="api/af-revenue/logic/openapi/exportfile"
74
+ :sql-name="$parent.$parent.sqlName"
75
+ template-name='用气稽查导出' :choose-col="true"></export-excel>
76
+ <print-data
77
+ :sum-field="$parent.$parent.getfield"
78
+ :model="$parent.model"
79
+ :field="$parent.$parent.getfield"
80
+ :defaultfield="$parent.$parent.defaultfield"
81
+ print-name="稽查查询打印"
82
+ :sumsmodel="$parent.$parent.sumsmodel" ></print-data>
83
+ <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>
84
+
85
+ </div>
86
+ </div>
87
+ <div class="row" v-show="$parent.$parent.criteriaShow">
88
+ <div class="col-sm-2 form-group">
89
+ <label class="font_normal_body">客户状态&emsp; </label>
90
+ <v-select :value.sync="model.f_user_state"
91
+ v-model="model.f_user_state"
92
+ :options='$parent.$parent.userstates' placeholder='请选择'
93
+ condition="f_user_state = '{}'"
94
+ close-on-select></v-select>
95
+ </div>
96
+ <div class="col-sm-2 form-group">
97
+ <label class="font_normal_body">气表状态&emsp;</label>
98
+ <v-select :value.sync="model.f_table_state"
99
+ v-model="model.f_table_state"
100
+ :options='$parent.$parent.tablestate' placeholder='请选择'
101
+ condition="f_table_state = '{}'"
102
+ close-on-select></v-select>
103
+ </div>
104
+ <div class="col-sm-2 form-group">
105
+ <label class="font_normal_body">表&emsp;&emsp;号&emsp;</label>
106
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
107
+ condition="f_meternumber = '{}'" placeholder='表号'>
108
+ </div>
109
+ <div class="col-sm-2 form-group ">
110
+ <label class="font_normal_body">用户类型&emsp;</label>
111
+ <v-select :value.sync="model.f_user_type"
112
+ @change="$parent.$parent.userTypeChange()"
113
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
114
+ condition="f_user_type = '{}'"
115
+ close-on-select></v-select>
116
+ </div>
117
+
118
+ <div class="col-sm-2 form-group">
119
+ <label class="font_normal_body">客户名称&emsp;</label>
120
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
121
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
122
+ </div>
123
+ <div class="col-sm-2 form-group">
124
+ <label class="font_normal_body">客户编号&emsp;</label>
125
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
126
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
127
+ </div>
128
+ <div class="col-sm-2 form-group">
129
+ <label class="font_normal_body" title="旧客户编号">档案编号&emsp;</label>
130
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
131
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
132
+ </div>
133
+ <div class="col-sm-2 form-group">
134
+ <label class="font_normal_body">表箱号&emsp;&emsp;</label>
135
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_metertitles"
136
+ condition="f_metertitles = '{}'" placeholder="表箱号">
137
+ </div>
138
+ <div class="col-sm-2 form-group">
139
+ <label class="font_normal_body">客户地址&emsp;</label>
140
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
141
+ condition="f_address like '%{}%'" placeholder='客户地址'>
142
+ </div>
143
+ <div class="col-sm-2 form-group">
144
+ <label class="font_normal_body">客户电话&emsp;</label>
145
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
146
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
147
+ </div>
148
+ <div class="col-sm-2 form-group">
149
+ <label class="font_normal_body">气表品牌&emsp;</label>
150
+ <v-select :value.sync="model.f_meter_brand"
151
+ v-model="model.f_meter_brand"
152
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
153
+ condition="f_meter_brand = '{}'"
154
+ close-on-select></v-select>
155
+ </div>
156
+ <div class="col-sm-2 form-group">
157
+ <label class="font_normal_body">表册片区&emsp;</label>
158
+ <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
159
+ :options='$parent.$parent.bookSlice' placeholder='片区/表册'
160
+ style="width:60%"
161
+ close-on-select
162
+ condition="f_book_slice_area = '{}'"></v-select>
163
+ </div>
164
+ <div class="col-sm-2 ">
165
+ <label for="f_meter_classify"class="font_normal_body">表类型&emsp;&emsp;</label>
166
+ <v-select id="f_meter_classify"
167
+ v-model="model.meter_classify"
168
+ placeholder='表类型'
169
+ style="width:70%"
170
+ :value.sync="model.meter_classify"
171
+ :options='$parent.$parent.f_meter_classify'
172
+ condition="f_meter_classify like '%{}'"
173
+ :value-single="true"
174
+ close-on-select >
175
+ </v-select>
176
+ </div>
177
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
178
+ <label class="font_normal_body">欠费月数&emsp;</label>
179
+ <div class="row">
180
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_month_nummin"
181
+ placeholder="">
182
+ <label class="font_normal_body"> ≤ x ≤ </label>
183
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_month_nummax"
184
+ placeholder="">
185
+ </div>
186
+ </div>
187
+
188
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
189
+ <label class="font_normal_body">欠费条数&emsp;</label>
190
+ <div class="row">
191
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_nummin"
192
+ placeholder="">
193
+ <label class="font_normal_body"> ≤ x ≤ </label>
194
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_nummax"
195
+ placeholder="">
196
+ </div>
197
+ </div>
198
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
199
+ <label class="font_normal_body">总欠费气量</label>
200
+ <div class="row">
201
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.f_totalowe_gasmin"
202
+ placeholder="">
203
+ <label class="font_normal_body"> ≤ x ≤ </label>
204
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.f_totalowe_gasmax"
205
+ placeholder="">
206
+ </div>
207
+ </div>
208
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
209
+ <label class="font_normal_body">总欠费金额</label>
210
+ <div class="row">
211
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.f_totalowe_feemin"
212
+ placeholder="">
213
+ <label class="font_normal_body"> ≤ x ≤ </label>
214
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.f_totalowe_feemax"
215
+ placeholder="">
216
+ </div>
217
+ </div>
218
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
219
+ <label class="font_normal_body">欠费月平均气量</label>
220
+ <div class="row">
221
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_avg_gasmin"
222
+ placeholder="">
223
+ <label class="font_normal_body"> ≤ x ≤ </label>
224
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_avg_gasmax"
225
+ placeholder="">
226
+ </div>
227
+ </div>
228
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
229
+ <label class="font_normal_body">用气量&emsp;&emsp;</label>
230
+ <div class="row">
231
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.f_oughtamount_min"
232
+ placeholder="">
233
+ <label class="font_normal_body"> ≤ x ≤ </label>
234
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.f_oughtamount_max"
235
+ placeholder="">
236
+ </div>
237
+ </div>
238
+ </div>
239
+
240
+ </div>
241
+ </criteria>
242
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
243
+ <template partial='head'>
244
+ <tr>
245
+ <th><nobr>序号</nobr></th>
246
+ <th><nobr>客户编号</nobr></th>
247
+ <th><nobr>客户电话</nobr></th>
248
+ <th><nobr>档案编号</nobr></th>
249
+ <th><nobr>表号</nobr></th>
250
+ <th><nobr>客户名称</nobr></th>
251
+ <th><nobr>地址</nobr></th>
252
+ <th><nobr>表箱号</nobr></th>
253
+ <th><nobr>用户类型</nobr></th>
254
+ <th><nobr>用气性质</nobr></th>
255
+ <th><nobr>通气状态</nobr></th>
256
+ <th><nobr>表具状态</nobr></th>
257
+ <th><nobr>气表品牌</nobr></th>
258
+ <th><nobr>表册片区</nobr></th>
259
+ <th><nobr>当前表底数</nobr></th>
260
+ <th><nobr>最后抄表日期</nobr></th>
261
+ <th><nobr>用气量</nobr></th>
262
+ <th><nobr>用气金额</nobr></th>
263
+ <th><nobr>欠费月数</nobr></th>
264
+ <th><nobr>欠费条数</nobr></th>
265
+ <th><nobr>欠费月平均气量</nobr></th>
266
+ <th><nobr>欠费气量</nobr></th>
267
+ <th><nobr>欠费金额</nobr></th>
268
+ </tr>
269
+ </template>
270
+ <template partial='body'>
271
+ <td style="text-align: center;"><nobr>{{$index+1}}</nobr></td>
272
+ <td style="text-align: center;"><nobr>
273
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
274
+ </nobr> </td>
275
+ <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
276
+ <td style="text-align: center;"><nobr>{{row.f_olduserinfo_code}}</nobr></td>
277
+ <td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
278
+ <th style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></th>
279
+ <th style="text-align: center;"><nobr>{{row.f_address}}</nobr></th>
280
+ <th style="text-align: center;"><nobr>{{row.f_metertitles}}</nobr></th>
281
+ <th style="text-align: center;"><nobr>{{row.f_user_type}}</nobr></th>
282
+ <th style="text-align: center;"><nobr>{{row.f_gasproperties}}</nobr></th>
283
+ <th style="text-align: center;"><nobr>{{row.ventilation_status}}</nobr></th>
284
+ <th style="text-align: center;"><nobr>{{row.f_table_state}}</nobr></th>
285
+ <th style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></th>
286
+ <th style="text-align: center;"><nobr>{{row.f_book_slice_area}}</nobr></th>
287
+ <th style="text-align: center;"><nobr>{{row.f_meter_base}}</nobr></th>
288
+ <th style="text-align: center;"><nobr>{{row.end_time}}</nobr></th>
289
+ <th style="text-align: center;"><nobr>{{row.f_oughtamount}}</nobr></th>
290
+ <th style="text-align: center;"><nobr>{{row.f_oughtfee}}</nobr></th>
291
+ <th style="text-align: center;"><nobr>{{row.qianfei_month_num}}</nobr></th>
292
+ <th style="text-align: center;"><nobr>{{row.qianfei_num}}</nobr></th>
293
+ <th style="text-align: center;"><nobr>{{row.qianfei_avg_gas}}</nobr></th>
294
+ <th style="text-align: center;"><nobr>{{row.f_totalowe_gas}}</nobr></th>
295
+ <th style="text-align: center;"><nobr>{{row.f_totalowe_fee}}</nobr></th>
296
+ </template>
297
+ </data-grid>
298
+ </criteria-paged>
299
+ <table class="table-hover">
300
+ <tr style="position: relative" class="table-bordered">
301
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
302
+ <td style="display: inline-block;width: auto;border-right: 1px solid #f2f6fa;padding: 0px 10px 0px 10px;font-weight: bold">总用气量:&emsp;&emsp;{{sumsmodel.f_oughtamount}}</td>
303
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">总用气金额:&emsp;&emsp;{{sumsmodel.f_oughtfee}}</td>
304
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">总欠费条数:&emsp;&emsp;{{sumsmodel.qianfei_num}}</td>
305
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">总欠费气量:&emsp;{{sumsmodel.f_totalowe_gas}}</td>
306
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">总欠费金额:&emsp;{{sumsmodel.f_totalowe_fee}}</td>
307
+ </tr>
308
+ </table>
309
+ </div>
310
+ <div class="flex" v-if="show">
311
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
312
+ </div>
313
+ </div></div>
314
+ </template>
315
+ <script>
316
+ /**
317
+ *用户档案查询列表以及添加操作组件
318
+ */
319
+ import { PagedList } from 'vue-client'
320
+ import Vue from 'vue'
321
+ import plugin from 'system-clients/src/plugins/GetLoginInfoService'
322
+ import exportConfig from "../config/exportConfig";
323
+
324
+ let readySomething = async function (self) {
325
+ await self.$MagLoadParams.loadParam()
326
+ self.initParams()
327
+ self.initSlice(self.$login.f.orgid)
328
+ let year = new Date().getFullYear()
329
+ self.$refs.paged.$refs.cri.model.startDate = year+'-01-01 00:00:00'
330
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
331
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
332
+ }
333
+ export default {
334
+ title: '用气稽查',
335
+ data () {
336
+ return {
337
+ other:[],
338
+ footer:[],
339
+ org:[this.$login.f.orgid],
340
+ criteriaShow: false,
341
+ filialeNameStr: null,
342
+ filialeCodeStr: `and f_orgid = '${this.$login.f.orgid}'`,
343
+ userid: this.$login.f.id,
344
+ source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
345
+ model: new PagedList('api/af-revenue/sql/getGasInspection', 50,{mycondition:'this.model.model.mycondition'},{
346
+ f_oughtamount:0,
347
+ f_oughtfee:0,
348
+ qianfei_num:0,
349
+ f_totalowe_gas:0,
350
+ f_totalowe_fee:0
351
+ }),
352
+ rows: null,
353
+ //orgid:'',
354
+ sumsmodel: {},
355
+ sqlName:'getGasInspection',
356
+ config: {
357
+ defaultPrint: ['f_userinfo_code','f_user_id']
358
+ },
359
+ show:false,
360
+ rowdata:{},
361
+ initres: {
362
+ org:[this.$login.f.orgid],
363
+ dep:[],
364
+ user:[],
365
+ },
366
+ // qianfei_month_nummin:null,
367
+ // qianfei_month_nummax:null,
368
+ // qianfei_nummin:null,
369
+ // qianfei_nummax:null,
370
+ // qianfei_avg_gasmin:null,
371
+ // qianfei_avg_gasmax:null,
372
+ // f_totalowe_feemin:null,
373
+ // f_totalowe_feemax:null,
374
+ // f_totalowe_gasmin:null,
375
+ // f_totalowe_gasmax:null,
376
+ mycondition:null,
377
+ defaultfield: [],
378
+ meterbrands: [],
379
+ // 表册片区
380
+ bookSlice:[]
381
+ }
382
+ },
383
+ watch:{
384
+ sumsmodel:{
385
+ handler: function(val) {
386
+ this.getotherfooter();
387
+ },
388
+ deep: true
389
+ }
390
+ },
391
+ ready () {
392
+ readySomething(this).then(() => {
393
+ this.$emit('ready')
394
+ }).catch((error) => {
395
+ this.$emit('error', error)
396
+ })
397
+ },
398
+ methods: {
399
+ // 初始化抄表册片区
400
+ async initSlice (val) {
401
+ if (val) {
402
+ let getAllArea = await this.$resetpost('/rs/search', {
403
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
404
+ userid: this.$login.f.id
405
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
406
+ let arr = getAllArea.data.filter((res) => {
407
+ return res.parentid == val
408
+ })
409
+ this.bookSlice = [{label: '全部',value: ''}]
410
+ arr.forEach((res) => {
411
+ this.bookSlice.push({label: res.name, value: res.name})
412
+ })
413
+ }
414
+ },
415
+ initParams () {
416
+ // 初始化气表品牌
417
+ let brandArr = []
418
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
419
+ let temp = {}
420
+ temp.label = item.label
421
+ temp.value = item.value.f_meter_brand
422
+ brandArr.push(temp)
423
+ })
424
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
425
+ },
426
+ getotherfooter(){
427
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
428
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
429
+ this.other=[];
430
+ this.footer=[];
431
+ // let exportdata = this.$refs.paged.$refs.cri.model.model.mycondition;
432
+ let otherInData=[];
433
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
434
+ let footerData=[],exportfield=this.getfield;
435
+ footerData.push("合计");
436
+ let self = this;
437
+ for(var field in self.sumsmodel){
438
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
439
+ }
440
+ this.footer.push(footerData);
441
+ this.other.push(otherInData);
442
+ },
443
+ cancel() {
444
+ this.show = false
445
+ },
446
+ showmsg(obj){
447
+ this.rowdata=obj
448
+ this.show=true
449
+ },
450
+ async getorg (obj) {
451
+ console.log('组织变化',obj)
452
+ if(obj && obj.resids && obj.resids[0]){
453
+ this.initSlice(obj.resids[0])
454
+ }
455
+
456
+ if(obj.resids.length>0){
457
+ this.filialeCodeStr =" and f_orgid in " + plugin.convertToIn(obj.resids)
458
+ }
459
+ else{
460
+ this.filialeCodeStr= " and f_orgid = " + this.$login.f.orgid
461
+ }
462
+ },
463
+ userTypeChange () {
464
+ this.gasproperties=[]
465
+ if(this.$refs.paged.model.model !==null) {
466
+ this.$refs.paged.model.model.f_gasproperties=''
467
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.model.model.f_user_type[0])
468
+ // this.gasproperties.push({label: '全部', value: ''})
469
+ console.log(this.gasproperties )
470
+ }
471
+ else{
472
+ this.gasproperties =[{label: '全部', value: ''}]
473
+ }
474
+ },
475
+ search () {
476
+ this.$refs.paged.$refs.cri.search()
477
+ },
478
+ selfSearch (args) {
479
+ let a = " and 1=1 "
480
+ let m=this.$refs.paged.$refs.cri.model.model;
481
+ if(m.qianfei_month_nummin!=null && m.qianfei_month_nummin!=''){
482
+ a += " and qianfei_month_num >= "+this.$refs.paged.$refs.cri.model.model.qianfei_month_nummin
483
+ }
484
+ if(m.qianfei_month_nummax!=null&&m.qianfei_month_nummax!=''){
485
+ a+=' and qianfei_month_num <= '+this.$refs.paged.$refs.cri.model.model.qianfei_month_nummax
486
+ }
487
+ if(m.qianfei_nummin!=null&&m.qianfei_nummin!=''){
488
+ a += " and qianfei_num >= "+this.$refs.paged.$refs.cri.model.model.qianfei_nummin
489
+ }
490
+ if(m.qianfei_nummax!=null&&m.qianfei_nummax!=''){
491
+ a +=" and qianfei_num <= "+this.$refs.paged.$refs.cri.model.model.qianfei_nummax
492
+ }
493
+ if(m.qianfei_avg_gasmin!=null&&m.qianfei_avg_gasmin!=''){
494
+ a +=" and qianfei_avg_gas >= "+this.$refs.paged.$refs.cri.model.model.qianfei_avg_gasmin
495
+ }
496
+ if(m.qianfei_avg_gasmax!=null&&m.qianfei_avg_gasmax!=''){
497
+ a += " and qianfei_avg_gas <= "+this.$refs.paged.$refs.cri.model.model.qianfei_avg_gasmax
498
+ }
499
+ if(m.f_totalowe_feemin!=null&&m.f_totalowe_feemin!=''){
500
+ a += " and f_totalowe_fee >= "+this.$refs.paged.$refs.cri.model.model.f_totalowe_feemin
501
+ }
502
+ if(m.f_totalowe_feemax!=null&&m.f_totalowe_feemax!=''){
503
+ a += " and f_totalowe_fee <= "+this.$refs.paged.$refs.cri.model.model.f_totalowe_feemax
504
+ }
505
+ if(m.f_totalowe_gasmin!=null&&m.f_totalowe_gasmin!=''){
506
+ a += " and f_totalowe_gas >= "+this.$refs.paged.$refs.cri.model.model.f_totalowe_gasmin
507
+ }
508
+ if(m.f_totalowe_gasmax!=null&&m.f_totalowe_gasmax!=''){
509
+ a += " and f_totalowe_gas <= "+this.$refs.paged.$refs.cri.model.model.f_totalowe_gasmax
510
+ }
511
+ if (m.f_oughtamount_min) {
512
+ a += " and f_oughtamount >= "+this.$refs.paged.$refs.cri.model.model.f_oughtamount_min
513
+ }
514
+ if (m.f_oughtamount_max) {
515
+ a += " and f_oughtamount <= "+this.$refs.paged.$refs.cri.model.model.f_oughtamount_max
516
+ }
517
+ if (m.f_book_slice_area) {
518
+ a += ` and f_book_slice_area = '${this.$refs.paged.$refs.cri.model.model.f_book_slice_area}'`
519
+ }
520
+ if(this.$refs.paged.$refs.cri.model.startDate){
521
+ this.model.params.startDate = `'${this.$refs.paged.$refs.cri.model.startDate}' `
522
+ }else{
523
+ this.model.params.startDate = this.$login.toStandardDateString() + ' 00:00:00'
524
+ }
525
+
526
+ if(this.$refs.paged.$refs.cri.model.endDate){
527
+ this.model.params.endDate = `'${this.$refs.paged.$refs.cri.model.endDate}' `
528
+ }else{
529
+ this.model.params.endDate = this.$login.toStandardDateString() + ' 23:59:59'
530
+ }
531
+ this.mycondition = a
532
+ args.condition = args.condition+ ` ${this.filialeCodeStr}`
533
+ args.condition = args.condition+ ` ${a}`
534
+ console.log("拼接的condition", args.condition, this.model)
535
+ this.model.search(args.condition, args.model)
536
+ },
537
+ hidden(){
538
+ this.criteriaShow = !this.criteriaShow
539
+ },
540
+ clear(){
541
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
542
+ if (key != 'startDate' && key != 'endDate')
543
+ if (key == 'model')
544
+ this.$refs.paged.$refs.cri.model[key] = {}
545
+ else
546
+ this.$refs.paged.$refs.cri.model[key] = []
547
+ })
548
+ this.$refs.paged.$refs.cri.model.contain_newfile='是'
549
+ let year = new Date().getFullYear()
550
+ this.$refs.paged.$refs.cri.model.startDate = year+'-01-01'
551
+ this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString()
552
+ }
553
+
554
+ },
555
+ computed: {
556
+ userstates (){
557
+ return this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : []
558
+ },
559
+ tablestate() {
560
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')]
561
+ },
562
+ getfield() {
563
+ return exportConfig.gasInspectionConfig
564
+ },
565
+ usertypes() {
566
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
567
+ },
568
+ gasproperties() {
569
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用气性质')]
570
+ },
571
+ f_gas_date() {
572
+ return [{label: ' 已通气 ', value: '已通气'}, {label: ' 未通气 ', value: '未通气'} ]
573
+ },
574
+ f_meter_classify(){
575
+ return [{label: '全部', value: ''}, {label: '卡表', value: '卡表'},{label: '机表', value: '机表'},{label: '网表', value: '物联网表'} ]
576
+ // return [{label: '卡表', value: '卡表'}]
577
+ },
578
+ getCondition () {
579
+ let result = {
580
+ condition: '',
581
+ startDate: '',
582
+ endDate: '',
583
+ mycondition:''
584
+ }
585
+ result.condition = this.$refs.paged.$refs.cri.condition + this.filialeCodeStr
586
+ result.condition = result.condition + this.mycondition
587
+ let temp2 = this.$refs.paged.$refs.cri
588
+ if (temp2.model.startDate && temp2.model.endDate) {
589
+ result.startDate = ` '${temp2.model.startDate}'`
590
+ result.endDate = ` '${temp2.model.endDate}'`
591
+ } if (!temp2.model.startDate && !temp2.model.endDate) {
592
+ result.startDate = this.$login.toStandardDateString() + ' 00:00:00'
593
+ result.endDate = this.$login.toStandardDateString() + ' 23:59:59'
594
+ }
595
+ if (temp2.model.startDate&&!temp2.model.endDate) {
596
+ result.startDate = ` '${temp2.model.startDate}'`
597
+ result.endDate = this.$login.toStandardDateString() + ' 23:59:59'
598
+ } if (temp2.model.endDate&&!temp2.model.startDate) {
599
+ result.startDate = this.$login.toStandardDateString() + ' 00:00:00'
600
+ result.endDate = ` '${temp2.model.endDate}'`
601
+ }
602
+ if (temp2.model.contain_newfile==='否'){
603
+ result.condition = result.condition+" and f_open_date not between " + result.startDate + " and " + result.endDate
604
+ }
605
+ return result
606
+ }
607
+ }
608
+ }
609
+ </script>
610
+ <style media="screen">
611
+ .divtext {
612
+ min-width: 50px;
613
+ max-width: 200px;
614
+ border: 1px solid green;
615
+ display: inline-block;
616
+ }
617
+ </style>
618
+