manage-client 3.2.31 → 3.2.35

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,380 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <criteria-paged :model="model" v-ref:paged>
5
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row">
8
+ <div class="col-sm-2 form-group">
9
+
10
+ <label for="startDate" class="font_normal_body" title="归属日期">开始日期</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd HH:mm:ss'"
15
+ :show-reset-button="true"
16
+ >
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label for="endDate" class="font_normal_body" title="归属日期">结束日期</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :format="'yyyy-MM-dd HH:mm:ss'"
25
+ :show-reset-button="true"
26
+ >
27
+ </datepicker>
28
+ </div>
29
+ <div class="span" style="float:right;">
30
+ <button class="button_search button_spacing" @click="search()">查询</button>
31
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
32
+
33
+ <export-excel :data="$parent.$parent.getCondition"
34
+ :field="$parent.$parent.getfield"
35
+ :footer="$parent.$parent.footer"
36
+ :header="$parent.$parent.other"
37
+ sqlurl="rs/logic/exportfile"
38
+ sql-name="areaChargeQuery"
39
+ template-name='小区汇总'
40
+ :choose-col="true"></export-excel>
41
+
42
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
43
+ :defaultfield="$parent.$parent.defaultfield"
44
+ titletable="小区汇总"
45
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
46
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
47
+ 'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
48
+
49
+ </div>
50
+ </div>
51
+ <div class="row" v-show="$parent.$parent.criteriaShow">
52
+ <res-select-group :initres="$parent.$parent.initres"
53
+ :showComponent="['company','department','operator']"
54
+ @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
55
+ <div class="col-sm-2 form-group">
56
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
57
+ <v-select :value.sync="model.f_residential_area"
58
+ class="select_list select"
59
+ enter-push
60
+ multiple
61
+ condition="f_residential_area in {}"
62
+ v-model="model.f_residential_area"
63
+ style="width: 60%"
64
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
65
+ close-on-select>
66
+
67
+ </v-select>
68
+ </div>
69
+ <div class="col-sm-2 form-group">
70
+ <label class="font_normal_body">客户类型</label>
71
+ <v-select :value.sync="model.f_user_type"
72
+ @change="$parent.$parent.userTypeChange()"
73
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
74
+ condition="f_user_type = '{}'"
75
+ close-on-select></v-select>
76
+ </div>
77
+ <div class="col-sm-2 form-group">
78
+ <label class="font_normal_body">用气性质</label>
79
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
80
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
81
+ condition="f_gasproperties = '{}'"
82
+ close-on-select></v-select>
83
+ </div>
84
+ <div class="col-sm-2 form-group">
85
+ <label class="font_normal_body">气表类型</label>
86
+ <v-select :value.sync="model.f_meter_type" multiple
87
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
88
+ condition="f_meter_type in {}"
89
+ close-on-select></v-select>
90
+ </div>
91
+
92
+ </div>
93
+ </div>
94
+ </criteria>
95
+
96
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
97
+ <template partial='head'>
98
+ <tr>
99
+ <th>
100
+ <nobr>序号</nobr>
101
+ </th>
102
+ <th>
103
+ <nobr>小区</nobr>
104
+ </th>
105
+ <th>
106
+ <nobr>单价</nobr>
107
+ </th>
108
+ <th>
109
+ <nobr>购气方量</nobr>
110
+ </th>
111
+ <th>
112
+ <nobr>购气金额</nobr>
113
+ </th>
114
+ <th>
115
+ <nobr>备&nbsp;&nbsp;&nbsp;&nbsp;注</nobr>
116
+ </th>
117
+ </tr>
118
+ </template>
119
+ <template partial='body'>
120
+ <td style="text-align:center">
121
+ <nobr>{{$index+1}}</nobr>
122
+ </td>
123
+ <td style="text-align: center;">
124
+ <nobr>{{row.f_residential_area}}</nobr>
125
+ </td>
126
+ <td style="text-align: center;">
127
+ <nobr>{{row.f_price}}</nobr>
128
+ </td>
129
+ <td style="text-align: center;">
130
+ <nobr>{{row.f_gas}}</nobr>
131
+ </td>
132
+ <td style="text-align: center;">
133
+ <nobr>{{row.f_money}}</nobr>
134
+ </td>
135
+ <td style="text-align: center;">
136
+ <nobr></nobr>
137
+ </td>
138
+ </template>
139
+ <template partial='foot'></template>
140
+ </data-grid>
141
+ </criteria-paged>
142
+ <table class="table-hover">
143
+ <tr style="position: relative" class="table-bordered">
144
+ <td
145
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
146
+ 汇总信息
147
+ </td>
148
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
149
+ 购气方量合计:&emsp;{{sumsmodel.f_gas}}
150
+ </td>
151
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
152
+ 购气金额合计:&emsp;{{sumsmodel.f_money}}
153
+ </td>
154
+ </tr>
155
+ </table>
156
+ </div>
157
+ </div>
158
+ </template>
159
+
160
+ <script>
161
+ import {HttpResetClass, PagedList} from 'vue-client'
162
+ import exportConfig from '../config/exportConfig'
163
+
164
+ let readySomething = async function (self) {
165
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
166
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
167
+ // self.$refs.paged.$refs.cri.search()
168
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
169
+ await self.$MagLoadParams.loadParam()
170
+ self.initParams()
171
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
172
+ }
173
+ export default {
174
+ title: '小区收费查询',
175
+ data() {
176
+ return {
177
+ config: {
178
+ defaultPrint: []
179
+ },
180
+ other:[],
181
+ footer:[],
182
+ //f_price_name:[],
183
+ gasproperties:[],
184
+ data: {},
185
+ rowdata:{},
186
+ initres: {
187
+ org:[this.$login.f.orgid],
188
+ dep:[],
189
+ user:[]
190
+ },
191
+ model: new PagedList('rs/sql/areaChargeQuery', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
192
+ f_gas: 0,
193
+ f_money: 0
194
+ }),
195
+ criteriaShow: false,
196
+ orgCondtionStr: '',
197
+ // 下拉框
198
+ meterbrands: [],
199
+ pricenames: [],
200
+ prices: [],
201
+ area: [],
202
+ //合计数据
203
+ defaultfield: [],
204
+ //小区
205
+ residentialArea: [],
206
+ sumsmodel: {},
207
+ f_filialeid: this.$login.f.f_orgid,
208
+ allorgid:[],
209
+ tempfalg :false,
210
+ lastorgstr:''
211
+ }
212
+ },
213
+ ready() {
214
+ this.getaddress()
215
+ readySomething(this).then(() => {
216
+ this.$emit('ready')
217
+ }).catch((error) => {
218
+ this.$emit('error', error)
219
+ })
220
+ },
221
+ methods: {
222
+
223
+ getotherfooter(){
224
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
225
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
226
+ this.other=[];
227
+ this.footer=[];
228
+ let exportdata = this.getCondition;
229
+ let otherInData=[];
230
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
231
+ let footerData=[],exportfield=this.getfield;
232
+ footerData.push("合计");
233
+ let self =this;
234
+ for(var field in self.sumsmodel){
235
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
236
+ }
237
+ this.footer.push(footerData);
238
+ this.other.push(otherInData);
239
+ },
240
+ async getaddress(){
241
+ console.log('开始获取小区')
242
+ let HttpReset = new HttpResetClass()
243
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
244
+ data: {
245
+ condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
246
+ }
247
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
248
+ console.log('小区',data)
249
+ let house = [{label: '全部', value: ''}]
250
+ for (let row of data.data){
251
+ console.log('开始保存小区')
252
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
253
+ }
254
+ this.residentialArea = house
255
+ },
256
+ //把数据库查询数据转换为下拉数据
257
+ calculate(rows){
258
+ let data = []
259
+ rows.forEach((row, n) => {
260
+ data[n] = {label: row.f_residential_area, value: row.id}
261
+ })
262
+ return data
263
+ },
264
+
265
+ search(){
266
+ this.$refs.paged.$refs.cri.search()
267
+ },
268
+ cancel() {
269
+ this.show = false
270
+ },
271
+ showmsg(obj){
272
+ this.rowdata=obj
273
+ this.show=true
274
+ },
275
+ userTypeChange () {
276
+ this.gasproperties=[]
277
+ if(this.$refs.paged.$refs.cri.model !==null) {
278
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
279
+
280
+ console.log("查看客户类型是什么",this.$refs.paged.$refs.cri.model.f_user_type[0])
281
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
282
+ // this.gasproperties.push({label: '全部', value: ''})
283
+ }
284
+ else{
285
+ this.gasproperties =[{label: '全部', value: ''}]
286
+ }
287
+ },
288
+ initParams() {
289
+ // 初始化气表品牌
290
+ let brandArr = []
291
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
292
+ let temp = {}
293
+ temp.label = item.label
294
+ temp.value = item.value.f_meter_brand
295
+ brandArr.push(temp)
296
+ })
297
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
298
+ //初始化气表价格
299
+ this.prices = this.$MagGetSaleParam.getPrices();
300
+ },
301
+ selfSearch(args) {
302
+ console.log('开始时间',this.$refs.paged.$refs.cri.model.startDate)
303
+ if (this.$refs.paged.$refs.cri.model.startDate === '' || this.$refs.paged.$refs.cri.model.endDate === ''){
304
+ this.$showAlert('请先选择开始时间、结束时间,再进行查询操作!', 'warning', 3000)
305
+ } else {
306
+ //小区查询条件
307
+ let f_orgstr = this.orgCondtionStr
308
+ args.condition = `${args.condition} ` + f_orgstr
309
+ this.model.search(args.condition, args.model)
310
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
311
+ }
312
+ },
313
+ clear() {
314
+ //清空部门和人员
315
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
316
+ //部门和人员变为全选
317
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
318
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
319
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
320
+ this.$refs.paged.$refs.cri.model[key] = []
321
+ })
322
+
323
+ },
324
+ show() {
325
+ this.criteriaShow = true
326
+ },
327
+ hidden() {
328
+ this.criteriaShow = !this.criteriaShow
329
+ },
330
+ async getRes(condition,obj) {
331
+ this.orgCondtionStr = condition
332
+ this.orgname = obj.orgnames[0]
333
+ this.depname = obj.depnames[0]
334
+
335
+ },
336
+ async updateParams() {
337
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
338
+ this.inputtores = [];
339
+ this.inputtores.push({label: "全部", value: ""})
340
+ if(this.allorgid!=null){
341
+ this.allorgid.forEach((res)=>{
342
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
343
+ })
344
+ }
345
+ this.initParams()
346
+ },
347
+ },
348
+ events:{
349
+
350
+ },
351
+ watch: {
352
+ 'model'(val) {
353
+ },
354
+ sumsmodel:{
355
+ handler: function(val) {
356
+ this.getotherfooter();
357
+ },
358
+ deep: true
359
+ }
360
+ },
361
+ computed: {
362
+ getCondition() {
363
+ return {
364
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
365
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
366
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr
367
+ }
368
+ },
369
+ getfield() {
370
+ return exportConfig.areaChargeQueryConfig
371
+ },
372
+ usertypes() {
373
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
374
+ },
375
+ metertypes() {
376
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
377
+ }
378
+ }
379
+ }
380
+ </script>
@@ -148,9 +148,10 @@
148
148
  <label class="font_normal_body">气价名称</label>
149
149
  <v-select :value.sync="model.f_price_name"
150
150
  v-model="model.f_price_name"
151
+ multiple
151
152
  :options="$parent.$parent.getPricenames"
152
- condition="f_price_name = '{}'"
153
- close-on-select></v-select>
153
+ condition="f_price_name in {}"
154
+ ></v-select>
154
155
  </div>
155
156
  <div class="col-sm-2 form-group">
156
157
  <label class="font_normal_body">&nbsp;&nbsp;&nbsp;表编号</label>
@@ -1180,7 +1181,11 @@
1180
1181
  temp.value = item.value.f_price_name
1181
1182
  priceArr.push(temp)
1182
1183
  })
1183
- rs = [{label: '全部', value: ''}, ...priceArr]
1184
+ if(priceArr.length == 0 ){
1185
+ rs= [{label: '全部', value: ''}]
1186
+ }else{
1187
+ rs = [ ...priceArr]
1188
+ }
1184
1189
  }
1185
1190
  if (rs.length === 0) {
1186
1191
  console.log('rs读出来是空')
@@ -9,6 +9,9 @@
9
9
  <tabs header="小区综合查询" v-if="permission('小区综合查询')">
10
10
  <area-general-query v-if="show.includes('小区综合查询')" @deal-msg="dealMsg"></area-general-query>
11
11
  </tabs>
12
+ <tabs header="小区收费查询" v-if="permission('小区收费查询')">
13
+ <area-charge-query v-if="show.includes('小区收费查询')" @deal-msg="dealMsg"></area-charge-query>
14
+ </tabs>
12
15
  <tabs header="小区汇总(机表)" v-if="permission('小区汇总(机表)')">
13
16
  <residential-query v-if="show.includes('小区汇总(机表)')" @deal-msg="dealMsg"></residential-query>
14
17
  </tabs>
@@ -23,8 +23,9 @@
23
23
  close-on-select >
24
24
  </v-select>
25
25
  </div>
26
- <div v-if="$parent.$parent.meter_classify == '卡表'" class="col-sm-2 flex-row" style="white-space: nowrap">
27
- <label class="font_normal_body">未购天数</label>
26
+ <div class="col-sm-2 flex-row" style="white-space: nowrap">
27
+ <label class="font_normal_body" v-if="['卡表','物联网表'].includes($parent.$parent.meter_classify)" >未购天数</label>
28
+ <label class="font_normal_body" v-else>未抄天数</label>
28
29
  <div class="row">
29
30
  <input type="text" style="width:30%" class="input_search" v-model="model.diffdaymin"
30
31
  condition="diffday >= {} " placeholder="">
@@ -33,17 +34,6 @@
33
34
  condition="diffday <= {} " placeholder="">
34
35
  </div>
35
36
 
36
- </div>
37
- <div v-if="$parent.$parent.meter_classify == '机表'" class="col-sm-2 flex-row" style="white-space: nowrap">
38
- <label class="font_normal_body">未抄天数</label>
39
- <div class="row">
40
- <input type="text" style="width:30%" class="input_search" v-model="model.handdiffdaymin"
41
- condition="diffday >= {} " placeholder="">
42
- <label class="font_normal_body"> ≤ x ≤ </label>
43
- <input type="text" style="width:30%" class="input_search" v-model="model.handdiffdaymax"
44
- condition="diffday <= {} " placeholder="">
45
- </div>
46
-
47
37
  </div>
48
38
  <div class="col-sm-2 ">
49
39
  <label class="font_normal_body">截止时间</label>
@@ -76,12 +66,11 @@
76
66
  <div class="col-sm-2 ">
77
67
  <label for="f_meter_classify"class="font_normal_body">气表类型</label>
78
68
  <v-select id="f_meter_classify"
79
- v-model="model.f_meter_classify"
69
+ v-model="$parent.$parent.meter_classify"
80
70
  placeholder='气表类型'
81
71
  style="width:70%"
82
- :value.sync="model.f_meter_classify"
72
+ :value.sync="$parent.$parent.meter_classify"
83
73
  :options='$parent.$parent.f_meter_classify'
84
- condition="f_meter_classify = '{}'"
85
74
  :value-single="true"
86
75
  close-on-select >
87
76
  </v-select>
@@ -99,8 +88,9 @@
99
88
  close-on-select >
100
89
  </v-select>
101
90
  </div>
102
- <div v-if="$parent.$parent.meter_classify == '卡表'" class="col-sm-2 flex-row" style="white-space: nowrap" >
103
- <label class="font_normal_body">总购次数</label>
91
+ <div class="col-sm-2 flex-row" style="white-space: nowrap" >
92
+ <label class="font_normal_body" v-if="['卡表','物联网表'].includes($parent.$parent.meter_classify)">总购次数</label>
93
+ <label class="font_normal_body" v-else>抄表次数</label>
104
94
  <div class="row">
105
95
  <input type="text" style="width:30%" class="input_search" v-model="model.cishumin"
106
96
  condition="cishu >= {} " placeholder="">
@@ -109,21 +99,10 @@
109
99
  condition="cishu <= {} " placeholder="">
110
100
  </div>
111
101
  </div>
112
- <div v-if="$parent.$parent.meter_classify == '机表'" class="col-sm-2 flex-row" style="white-space: nowrap" >
113
- <label class="font_normal_body">抄表次数</label>
114
-
115
- <div class="row">
116
- <input type="text" style="width:30%" class="input_search" v-model="model.handmin"
117
- condition="cishu >= {} " placeholder="">
118
- <label class="font_normal_body"> ≤ x ≤ </label>
119
- <input type="text" style="width:30%" class="input_search" v-model="model.handmax"
120
- condition="cishu <= {} " placeholder="">
121
- </div>
122
-
123
- </div>
124
- <div v-if="$parent.$parent.meter_classify == '卡表'" class="col-sm-2 flex-row" style="white-space: nowrap" >
125
- <label class="font_normal_body">总购气量</label>
126
-
102
+ <div class="col-sm-2 flex-row" style="white-space: nowrap" >
103
+ <label class="font_normal_body" v-if="$parent.$parent.meter_classify === '卡表'">总购气量</label>
104
+ <label class="font_normal_body" v-if="$parent.$parent.meter_classify === '机表'">总用气量</label>
105
+ <label class="font_normal_body" v-if="$parent.$parent.meter_classify === '物联网表'">总购金额</label>
127
106
  <div class="row">
128
107
  <input type="text" style="width:30%" class="input_search" v-model="model.pregasmin"
129
108
  condition="pregas >= {} " placeholder="">
@@ -131,18 +110,6 @@
131
110
  <input type="text" style="width:30%" class="input_search" v-model="model.pregasmax"
132
111
  condition="pregas <= {} " placeholder="">
133
112
  </div>
134
-
135
-
136
- </div>
137
- <div v-if="$parent.$parent.meter_classify == '机表'" class="col-sm-2 flex-row" style="white-space: nowrap" >
138
- <label class="font_normal_body">总用气量</label>
139
- <div class="row">
140
- <input type="text" style="width:30%" class="input_search" v-model="model.pregasusemin"
141
- condition="pregas >= {} " placeholder="">
142
- <label class="font_normal_body"> ≤ x ≤ </label>
143
- <input type="text" style="width:30%" class="input_search" v-model="model.pregasusemax"
144
- condition="pregas <= {} " placeholder="">
145
- </div>
146
113
  </div>
147
114
 
148
115
  <div class="col-sm-2">
@@ -200,14 +167,15 @@
200
167
  <th><nobr>气表品牌</nobr></th>
201
168
  <th><nobr>气价名称</nobr></th>
202
169
  <th><nobr>最后购气日期</nobr></th>
203
- <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>总购气次数</nobr></th>
204
- <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>总抄表次数</nobr></th>
170
+ <th v-show="['卡表','物联网表'].includes($parent.$parent.$parent.meter_classify)"><nobr>总购气次数</nobr></th>
171
+ <th v-show="$parent.$parent.$parent.meter_classify === '机表'"><nobr>总抄表次数</nobr></th>
205
172
 
206
- <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>总购气量</nobr></th>
207
- <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>总用气量</nobr></th>
173
+ <th v-show="$parent.$parent.$parent.meter_classify === '卡表'"><nobr>总购气量</nobr></th>
174
+ <th v-show="$parent.$parent.$parent.meter_classify === '物联网表'"><nobr>总购金额</nobr></th>
175
+ <th v-show="$parent.$parent.$parent.meter_classify === '机表'"><nobr>总用气量</nobr></th>
208
176
 
209
- <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>累计未购气天数</nobr></th>
210
- <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>累计未抄表天数</nobr></th>
177
+ <th v-show="['卡表','物联网表'].includes($parent.$parent.$parent.meter_classify)"><nobr>累计未购气天数</nobr></th>
178
+ <th v-show="$parent.$parent.$parent.meter_classify === '机表'"><nobr>累计未抄表天数</nobr></th>
211
179
  <th><nobr>组织机构</nobr></th>
212
180
  </tr>
213
181
  </template>
@@ -229,8 +197,6 @@
229
197
 
230
198
  <th style="text-align: center;"><nobr>{{row.cishu}}</nobr></th>
231
199
  <th style="text-align: center;"><nobr>{{row.pregas}}</nobr></th>
232
- <!-- <th style="text-align: center;"><nobr>{{row.sellcishu}}</nobr></th>-->
233
- <!-- <th style="text-align: center;"><nobr>{{row.sellpregas}}</nobr></th>-->
234
200
  <th style="text-align: center;"><nobr>{{row.diffday}}</nobr></th>
235
201
  <th style="text-align: center;"><nobr>{{row.f_orgname}}</nobr></th>
236
202
  </template>
@@ -239,10 +205,9 @@
239
205
  <table class="table-hover">
240
206
  <tr style="position: relative" class="table-bordered">
241
207
  <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
242
- <td v-if="meter_classify == '卡表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">总购气量合计:&emsp;&emsp;{{sumsmodel.pregas}}</td>
243
- <!-- <td v-if="meter_classify == '卡表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">阶段购气量合计:&emsp;&emsp;{{sumsmodel.sellpregas}}</td>-->
244
- <td v-if="meter_classify == '机表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">总抄表气量合计:&emsp;&emsp;{{sumsmodel.pregas}}</td>
245
- <!-- <td v-if="meter_classify == '机表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">阶段抄表气量合计:&emsp;{{sumsmodel.sellpregas}}</td>-->
208
+ <td v-if="meter_classify === '卡表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">总购气量合计:&emsp;&emsp;{{sumsmodel.pregas}}</td>
209
+ <td v-if="meter_classify === '机表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">总抄表气量合计:&emsp;&emsp;{{sumsmodel.pregas}}</td>
210
+ <td v-if="meter_classify === '物联网表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">总购金额合计:&emsp;&emsp;{{sumsmodel.pregas}}</td>
246
211
  </tr>
247
212
  </table>
248
213
  </div>
@@ -298,22 +263,34 @@
298
263
  },
299
264
  watch:{
300
265
  meter_classify(val){
301
- if(val == '卡表') {
302
- this.url = 'rs/sql/inspectList'
266
+ if (val === '卡表') {
267
+ this.model.url = this.url = 'rs/sql/inspectList'
303
268
  this.sqlName = 'inspectList'
304
269
  this.getfield = {"f_userinfo_code":"客户编号","f_meternumber":"表号","f_user_name":"客户名称","f_user_phone":"客户电话","f_address":"地址","f_user_type":"用户类型",
305
270
  "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
306
271
  "delivery_date":"最后购气日期","cishu":"总购气次数","pregas":"总购气量",
307
272
  "diffday":"累计未购气天数"}
308
- }else{
309
- this.url = 'rs/sql/handinspectList'
273
+ }else if (val === '机表') {
274
+ this.model.url = this.url = 'rs/sql/handinspectList'
310
275
  this.sqlName = 'handinspectList'
311
276
  this.getfield = {"f_userinfo_code":"客户编号","f_meternumber":"表号","f_user_name":"客户名称","f_user_phone":"客户电话","f_address":"地址","f_user_type":"用户类型",
312
277
  "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
313
278
  "delivery_date":"最后抄表日期","cishu":"总抄表次数","pregas":"抄表气量",
314
279
  "diffday":"累计未抄表天数"}
280
+ } else if (val === '物联网表') {
281
+ this.model.url = this.url = 'rs/sql/getWebMeterList'
282
+ this.sqlName = 'getWebMeterList'
283
+ this.getfield = {"f_userinfo_code":"客户编号","f_meternumber":"表号","f_user_name":"客户名称","f_user_phone":"客户电话","f_address":"地址","f_user_type":"用户类型",
284
+ "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
285
+ "delivery_date":"最后购气日期","cishu":"总购气次数","f_collection":"总购金额",
286
+ "diffday":"累计未购气天数"}
315
287
  }
316
288
  this.clear()
289
+ this.model.rows = []
290
+ for(let key in this.model.sums){
291
+ this.model.sums[key] = 0
292
+ }
293
+
317
294
  },
318
295
  sumsmodel:{
319
296
  handler: function(val) {
@@ -378,9 +355,11 @@
378
355
  this.$refs.paged.$refs.cri.search()
379
356
  },
380
357
  selfSearch (args) {
381
- this.model.url = this.meter_classify === '卡表' ? 'rs/sql/inspectList': 'rs/sql/handinspectList'
358
+ if (!this.meter_classify) {
359
+ this.$showMessage('请选择气表类型。。。')
360
+ return
361
+ }
382
362
  args.condition = args.condition+ ` ${this.filialeCodeStr}`
383
- // console.log("拼接的condition", args.condition, this.model)
384
363
  this.model.search(args.condition, args.model)
385
364
  },
386
365
  hidden(){
@@ -405,7 +384,7 @@
405
384
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')]
406
385
  },
407
386
  f_meter_classify(){
408
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
387
+ return [{label: '机表', value: '机表'},{label: '卡表', value: '卡表'},{label: '物联网表', value: '物联网表'}]
409
388
  // return [{label: '卡表', value: '卡表'}]
410
389
  },
411
390
 
@@ -134,6 +134,9 @@ export default{
134
134
  'overdue': '滞纳金', 'f_garbage_fee': '附加费', 'f_last_tablebase': '上期抄表底数', 'f_tablebase': '本期抄表底数', 'f_balance': '上期余额',
135
135
  'f_oughtfee_all': '合计欠费金额', 'f_cost_type': '缴费方式', 'f_meter_type': '气表类型'
136
136
  },
137
+ areaChargeQueryConfig: {
138
+ 'f_residential_area': '小区','f_price': '单价','f_gas': '购气方量','f_money': '购气金额'
139
+ },
137
140
  arrearsGYConfig: {
138
141
  'f_userinfo_code': '客户编号', 'f_user_name': '客户名称', 'f_meternumber': '表号', 'f_residential_area': '小区名称', 'f_address': '客户地址',
139
142
  'f_user_phone': '客户电话', 'f_rent_phone': '备用电话', 'f_inputtor': '抄表员', 'f_book_name': '抄表册', 'f_user_type': '客户类型',