manage-client 3.2.202 → 3.2.204

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