manage-client 3.3.135 → 3.3.136

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.3.135",
3
+ "version": "3.3.136",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -674,7 +674,7 @@ export default{
674
674
  },
675
675
  ReportListConfig: {
676
676
  'f_userinfo_code': '客户编号', 'f_meternumber': '表号', 'f_user_name': '客户姓名', 'f_user_phone': '客户电话', 'f_address': '客户地址',
677
- 'f_hand_date': '上报日期', 'f_jval': '表内剩余金额', 'f_tablebase': '本次抄表底数', 'f_valvestate': '阀门状态',
677
+ 'f_hand_date': '上报日期', 'f_jval': '表内剩余金额', 'f_tablebase': '本次抄表底数', 'f_valvestate': '阀门状态', 'flowmetertemperature': '温度', 'flowmeterpressure': '压力',
678
678
  'f_upload_type': '上报类型', 'f_insert_date': '系统接收时间', 'f_meterDebitAmt': '表内累计充值金额',
679
679
  'f_signal': '噪音强度', 'f_snr': '信噪比', 'f_batterylevel': '电压', 'f_lowlithiumbattery': '电压状态', 'f_networkshutvalve': '阀门强制状态',
680
680
  'f_wmprepaytype': '计量类型', 'f_moneystate': '金额状态', 'f_magneticInterference': '磁干扰异常', 'f_compensateState': '补偿状态'
@@ -442,7 +442,7 @@
442
442
  this.operators = []
443
443
  this.$MagGetSaleParam.inputtors.forEach((res) => {
444
444
  if(res.rolestr != null && res.rolestr!='' ){
445
- if(res.rolestr.indexOf("营业员")>-1 && res.f_orgid == orgid) {
445
+ if( res.f_orgid == orgid) {
446
446
  let temp = {
447
447
  label :res.name,
448
448
  value:res.name,
@@ -132,6 +132,9 @@
132
132
  <th><nobr>本次抄表底数</nobr></th>
133
133
  <th><nobr>阀门状态</nobr></th>
134
134
 
135
+ <th><nobr>温度</nobr></th>
136
+ <th><nobr>压力</nobr></th>
137
+
135
138
  <th><nobr>上报类型</nobr></th>
136
139
  <th><nobr>表内累计充值金额</nobr></th>
137
140
  <th><nobr>信号强度</nobr></th>
@@ -157,6 +160,8 @@
157
160
  <th style="text-align:center"><nobr>{{row.f_price}}</nobr></th>
158
161
  <th style="text-align:center"><nobr>{{row.f_tablebase}}</nobr></th>
159
162
  <th style="text-align:center"><nobr>{{row.f_valvestate}}</nobr></th>
163
+ <th style="text-align:center"><nobr>{{row.flowmetertemperature}}</nobr></th>
164
+ <th style="text-align:center"><nobr>{{row.flowmeterpressure}}</nobr></th>
160
165
 
161
166
 
162
167
  <th style="text-align:center"><nobr>{{row.f_upload_type}}</nobr></th>
@@ -351,6 +351,12 @@
351
351
  <th>
352
352
  <nobr>抄表员</nobr>
353
353
  </th>
354
+ <th>
355
+ <nobr>用气性质</nobr>
356
+ </th>
357
+ <th>
358
+ <nobr>气表品牌</nobr>
359
+ </th>
354
360
  <th>
355
361
  <!-- <nobr>录入日期</nobr>-->
356
362
  <data-order field="f_input_date" name="录入日期"
@@ -522,6 +528,12 @@
522
528
  <td style="text-align: center;">
523
529
  <nobr>{{row.f_inputtor}}</nobr>
524
530
  </td>
531
+ <td style="text-align: center;">
532
+ <nobr>{{row.f_gasproperties}}</nobr>
533
+ </td>
534
+ <td style="text-align: center;">
535
+ <nobr>{{row.f_meter_brand}}</nobr>
536
+ </td>
525
537
  <td style="text-align: center;">
526
538
  <nobr>{{row.f_input_date}}</nobr>
527
539
  </td>
@@ -792,6 +792,8 @@ export default {
792
792
  'f_curbalance': '本期余额',
793
793
  'f_input_person': '录入人员',
794
794
  'f_inputtor': '抄表员',
795
+ 'f_gasproperties': '用气性质',
796
+ 'f_meter_brand': '气表品牌',
795
797
  'f_input_date': '录入日期',
796
798
  'f_whether_pay': '是否缴费',
797
799
  'f_operator': '下发人员',
@@ -0,0 +1,596 @@
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
+ <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
+ <div class="col-sm-2 form-group">
68
+ <label class="font_normal_body">客户状态&emsp; </label>
69
+ <v-select :value.sync="model.f_user_state"
70
+ v-model="model.f_user_state"
71
+ :options='$parent.$parent.userstates' placeholder='请选择'
72
+ condition="f_user_state = '{}'"
73
+ close-on-select></v-select>
74
+ </div>
75
+ <div class="col-sm-2 form-group">
76
+ <label class="font_normal_body">气表状态&emsp;</label>
77
+ <v-select :value.sync="model.f_table_state"
78
+ v-model="model.f_table_state"
79
+ :options='$parent.$parent.tablestate' placeholder='请选择'
80
+ condition="f_table_state = '{}'"
81
+ close-on-select></v-select>
82
+ </div>
83
+ <div class="col-sm-2 form-group">
84
+ <label class="font_normal_body">表&emsp;&emsp;号&emsp;</label>
85
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
86
+ condition="f_meternumber = '{}'" placeholder='表号'>
87
+ </div>
88
+ <div class="col-sm-2 form-group ">
89
+ <label class="font_normal_body">用户类型&emsp;</label>
90
+ <v-select :value.sync="model.f_user_type"
91
+ @change="$parent.$parent.userTypeChange()"
92
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
93
+ condition="f_user_type = '{}'"
94
+ close-on-select></v-select>
95
+ </div>
96
+
97
+ <div class="col-sm-2 form-group">
98
+ <label class="font_normal_body">客户名称&emsp;</label>
99
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
100
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
101
+ </div>
102
+ <div class="col-sm-2 form-group">
103
+ <label class="font_normal_body">客户编号&emsp;</label>
104
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
105
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
106
+ </div>
107
+ <div class="col-sm-2 form-group">
108
+ <label class="font_normal_body" title="旧客户编号">档案编号&emsp;</label>
109
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
110
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
111
+ </div>
112
+ <div class="col-sm-2 form-group">
113
+ <label class="font_normal_body">表箱号&emsp;&emsp;</label>
114
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_metertitles"
115
+ condition="f_metertitles = '{}'" placeholder="表箱号">
116
+ </div>
117
+ <div class="col-sm-2 form-group">
118
+ <label class="font_normal_body">客户地址&emsp;</label>
119
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
120
+ condition="f_address like '%{}%'" placeholder='客户地址'>
121
+ </div>
122
+ <div class="col-sm-2 form-group">
123
+ <label class="font_normal_body">客户电话&emsp;</label>
124
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
125
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
126
+ </div>
127
+ <div class="col-sm-2 form-group">
128
+ <label class="font_normal_body">气表品牌&emsp;</label>
129
+ <v-select :value.sync="model.f_meter_brand"
130
+ v-model="model.f_meter_brand"
131
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
132
+ condition="f_meter_brand = '{}'"
133
+ close-on-select></v-select>
134
+ </div>
135
+ <div class="col-sm-2 form-group">
136
+ <label class="font_normal_body">表册片区&emsp;</label>
137
+ <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
138
+ :options='$parent.$parent.bookSlice' placeholder='片区/表册'
139
+ style="width:60%"
140
+ close-on-select
141
+ condition="f_book_slice_area = '{}'"></v-select>
142
+ </div>
143
+ <div class="col-sm-2 ">
144
+ <label for="f_meter_classify"class="font_normal_body">表类型&emsp;&emsp;</label>
145
+ <v-select id="f_meter_classify"
146
+ v-model="model.meter_classify"
147
+ placeholder='表类型'
148
+ style="width:70%"
149
+ :value.sync="model.meter_classify"
150
+ :options='$parent.$parent.f_meter_classify'
151
+ condition="f_meter_classify like '%{}'"
152
+ :value-single="true"
153
+ close-on-select >
154
+ </v-select>
155
+ </div>
156
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
157
+ <label class="font_normal_body">欠费月数&emsp;</label>
158
+ <div class="row">
159
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_month_nummin"
160
+ placeholder="">
161
+ <label class="font_normal_body"> ≤ x ≤ </label>
162
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_month_nummax"
163
+ placeholder="">
164
+ </div>
165
+ </div>
166
+
167
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
168
+ <label class="font_normal_body">欠费条数&emsp;</label>
169
+ <div class="row">
170
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_nummin"
171
+ placeholder="">
172
+ <label class="font_normal_body"> ≤ x ≤ </label>
173
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_nummax"
174
+ placeholder="">
175
+ </div>
176
+ </div>
177
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
178
+ <label class="font_normal_body">总欠费气量</label>
179
+ <div class="row">
180
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.f_totalowe_gasmin"
181
+ placeholder="">
182
+ <label class="font_normal_body"> ≤ x ≤ </label>
183
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.f_totalowe_gasmax"
184
+ placeholder="">
185
+ </div>
186
+ </div>
187
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
188
+ <label class="font_normal_body">总欠费金额</label>
189
+ <div class="row">
190
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.f_totalowe_feemin"
191
+ placeholder="">
192
+ <label class="font_normal_body"> ≤ x ≤ </label>
193
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.f_totalowe_feemax"
194
+ placeholder="">
195
+ </div>
196
+ </div>
197
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
198
+ <label class="font_normal_body">欠费月平均气量</label>
199
+ <div class="row">
200
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_avg_gasmin"
201
+ placeholder="">
202
+ <label class="font_normal_body"> ≤ x ≤ </label>
203
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_avg_gasmax"
204
+ placeholder="">
205
+ </div>
206
+ </div>
207
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
208
+ <label class="font_normal_body">用气量&emsp;&emsp;</label>
209
+ <div class="row">
210
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.f_oughtamount_min"
211
+ placeholder="">
212
+ <label class="font_normal_body"> ≤ x ≤ </label>
213
+ <input type="text" style="width:30%" class="input_search" v-model="model.model.f_oughtamount_max"
214
+ placeholder="">
215
+ </div>
216
+ </div>
217
+ </div>
218
+
219
+ </div>
220
+ </criteria>
221
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
222
+ <template partial='head'>
223
+ <tr>
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
+ <th><nobr>用户类型</nobr></th>
233
+ <th><nobr>用气性质</nobr></th>
234
+ <th><nobr>表具状态</nobr></th>
235
+ <th><nobr>气表品牌</nobr></th>
236
+ <th><nobr>表册片区</nobr></th>
237
+ <th><nobr>当前表底数</nobr></th>
238
+ <th><nobr>最后抄表日期</nobr></th>
239
+ <th><nobr>温度</nobr></th>
240
+ <th><nobr>压力</nobr></th>
241
+ <th><nobr>用气量</nobr></th>
242
+ <th><nobr>用气金额</nobr></th>
243
+ <th><nobr>欠费月数</nobr></th>
244
+ <th><nobr>欠费条数</nobr></th>
245
+ <th><nobr>欠费月平均气量</nobr></th>
246
+ <th><nobr>欠费气量</nobr></th>
247
+ <th><nobr>欠费金额</nobr></th>
248
+ </tr>
249
+ </template>
250
+ <template partial='body'>
251
+ <td style="text-align: center;"><nobr>{{$index+1}}</nobr></td>
252
+ <td style="text-align: center;"><nobr>
253
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
254
+ </nobr> </td>
255
+ <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
256
+ <td style="text-align: center;"><nobr>{{row.f_olduserinfo_code}}</nobr></td>
257
+ <td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
258
+ <th style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></th>
259
+ <th style="text-align: center;"><nobr>{{row.f_address}}</nobr></th>
260
+ <th style="text-align: center;"><nobr>{{row.f_metertitles}}</nobr></th>
261
+ <th style="text-align: center;"><nobr>{{row.f_user_type}}</nobr></th>
262
+ <th style="text-align: center;"><nobr>{{row.f_gasproperties}}</nobr></th>
263
+ <th style="text-align: center;"><nobr>{{row.f_table_state}}</nobr></th>
264
+ <th style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></th>
265
+ <th style="text-align: center;"><nobr>{{row.f_book_slice_area}}</nobr></th>
266
+ <th style="text-align: center;"><nobr>{{row.f_meter_base}}</nobr></th>
267
+ <th style="text-align: center;"><nobr>{{row.end_time}}</nobr></th>
268
+ <th style="text-align:center"><nobr>{{row.flowmetertemperature}}</nobr></th>
269
+ <th style="text-align:center"><nobr>{{row.flowmeterpressure}}</nobr></th>
270
+ <th style="text-align: center;"><nobr>{{row.f_oughtamount}}</nobr></th>
271
+ <th style="text-align: center;"><nobr>{{row.f_oughtfee}}</nobr></th>
272
+ <th style="text-align: center;"><nobr>{{row.qianfei_month_num}}</nobr></th>
273
+ <th style="text-align: center;"><nobr>{{row.qianfei_num}}</nobr></th>
274
+ <th style="text-align: center;"><nobr>{{row.qianfei_avg_gas}}</nobr></th>
275
+ <th style="text-align: center;"><nobr>{{row.f_totalowe_gas}}</nobr></th>
276
+ <th style="text-align: center;"><nobr>{{row.f_totalowe_fee}}</nobr></th>
277
+ </template>
278
+ </data-grid>
279
+ </criteria-paged>
280
+ <table class="table-hover">
281
+ <tr style="position: relative" class="table-bordered">
282
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
283
+ <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>
284
+ <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>
285
+ <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>
286
+ <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>
287
+ <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>
288
+ </tr>
289
+ </table>
290
+ </div>
291
+ <div class="flex" v-if="show">
292
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
293
+ </div>
294
+ </div></div>
295
+ </template>
296
+ <script>
297
+ /**
298
+ *用户档案查询列表以及添加操作组件
299
+ */
300
+ import { PagedList } from 'vue-client'
301
+ import Vue from 'vue'
302
+ import plugin from 'system-clients/src/plugins/GetLoginInfoService'
303
+ import exportConfig from "./config/exportConfig";
304
+
305
+ let readySomething = async function (self) {
306
+ await self.$MagLoadParams.loadParam()
307
+ self.initParams()
308
+ self.initSlice(self.$login.f.orgid)
309
+ let year = new Date().getFullYear()
310
+ self.$refs.paged.$refs.cri.model.startDate = year+'-01-01 00:00:00'
311
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
312
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
313
+ }
314
+ export default {
315
+ title: '用气稽查',
316
+ data () {
317
+ return {
318
+ other:[],
319
+ footer:[],
320
+ org:[this.$login.f.orgid],
321
+ criteriaShow: false,
322
+ filialeNameStr: null,
323
+ filialeCodeStr: `and f_orgid = ${this.$login.f.orgid}`,
324
+ userid: this.$login.f.id,
325
+ source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
326
+ model: new PagedList('rs/sql/getGasInspection', 50,{mycondition:'this.model.model.mycondition'},{
327
+ f_oughtamount:0,
328
+ f_oughtfee:0,
329
+ qianfei_num:0,
330
+ f_totalowe_gas:0,
331
+ f_totalowe_fee:0
332
+ }),
333
+ rows: null,
334
+ //orgid:'',
335
+ sumsmodel: {},
336
+ sqlName:'getGasInspection',
337
+ config: {
338
+ defaultPrint: ['f_userinfo_code','f_user_id']
339
+ },
340
+ show:false,
341
+ rowdata:{},
342
+ initres: {
343
+ org:[this.$login.f.orgid],
344
+ dep:[],
345
+ user:[],
346
+ },
347
+ // qianfei_month_nummin:null,
348
+ // qianfei_month_nummax:null,
349
+ // qianfei_nummin:null,
350
+ // qianfei_nummax:null,
351
+ // qianfei_avg_gasmin:null,
352
+ // qianfei_avg_gasmax:null,
353
+ // f_totalowe_feemin:null,
354
+ // f_totalowe_feemax:null,
355
+ // f_totalowe_gasmin:null,
356
+ // f_totalowe_gasmax:null,
357
+ mycondition:null,
358
+ defaultfield: [],
359
+ meterbrands: [],
360
+ // 表册片区
361
+ bookSlice:[]
362
+ }
363
+ },
364
+ watch:{
365
+ sumsmodel:{
366
+ handler: function(val) {
367
+ this.getotherfooter();
368
+ },
369
+ deep: true
370
+ }
371
+ },
372
+ ready () {
373
+ readySomething(this).then(() => {
374
+ this.$emit('ready')
375
+ }).catch((error) => {
376
+ this.$emit('error', error)
377
+ })
378
+ },
379
+ methods: {
380
+ // 初始化抄表册片区
381
+ async initSlice (val) {
382
+ if (val) {
383
+ let getAllArea = await this.$resetpost('/rs/search', {
384
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
385
+ userid: this.$login.f.id
386
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
387
+ let arr = getAllArea.data.filter((res) => {
388
+ return res.parentid == val
389
+ })
390
+ this.bookSlice = [{label: '全部',value: ''}]
391
+ arr.forEach((res) => {
392
+ this.bookSlice.push({label: res.name, value: res.name})
393
+ })
394
+ }
395
+ },
396
+ initParams () {
397
+ // 初始化气表品牌
398
+ let brandArr = []
399
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
400
+ let temp = {}
401
+ temp.label = item.label
402
+ temp.value = item.value.f_meter_brand
403
+ brandArr.push(temp)
404
+ })
405
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
406
+ },
407
+ getotherfooter(){
408
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
409
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
410
+ this.other=[];
411
+ this.footer=[];
412
+ // let exportdata = this.$refs.paged.$refs.cri.model.model.mycondition;
413
+ let otherInData=[];
414
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
415
+ let footerData=[],exportfield=this.getfield;
416
+ footerData.push("合计");
417
+ let self = this;
418
+ for(var field in self.sumsmodel){
419
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
420
+ }
421
+ this.footer.push(footerData);
422
+ this.other.push(otherInData);
423
+ },
424
+ cancel() {
425
+ this.show = false
426
+ },
427
+ showmsg(obj){
428
+ this.rowdata=obj
429
+ this.show=true
430
+ },
431
+ async getorg (obj) {
432
+ console.log('组织变化',obj)
433
+ if(obj && obj.resids && obj.resids[0]){
434
+ this.initSlice(obj.resids[0])
435
+ }
436
+
437
+ if(obj.resids.length>0){
438
+ this.filialeCodeStr =" and f_orgid in " + plugin.convertToIn(obj.resids)
439
+ }
440
+ else{
441
+ this.filialeCodeStr= " and f_orgid = " + this.$login.f.orgid
442
+ }
443
+ },
444
+ userTypeChange () {
445
+ this.gasproperties=[]
446
+ if(this.$refs.paged.model.model !==null) {
447
+ this.$refs.paged.model.model.f_gasproperties=''
448
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.model.model.f_user_type[0])
449
+ // this.gasproperties.push({label: '全部', value: ''})
450
+ console.log(this.gasproperties )
451
+ }
452
+ else{
453
+ this.gasproperties =[{label: '全部', value: ''}]
454
+ }
455
+ },
456
+ search () {
457
+ this.$refs.paged.$refs.cri.search()
458
+ },
459
+ selfSearch (args) {
460
+ let a = " and 1=1 "
461
+ let m=this.$refs.paged.$refs.cri.model.model;
462
+ if(m.qianfei_month_nummin!=null && m.qianfei_month_nummin!=''){
463
+ a += " and qianfei_month_num >= "+this.$refs.paged.$refs.cri.model.model.qianfei_month_nummin
464
+ }
465
+ if(m.qianfei_month_nummax!=null&&m.qianfei_month_nummax!=''){
466
+ a+=' and qianfei_month_num <= '+this.$refs.paged.$refs.cri.model.model.qianfei_month_nummax
467
+ }
468
+ if(m.qianfei_nummin!=null&&m.qianfei_nummin!=''){
469
+ a += " and qianfei_num >= "+this.$refs.paged.$refs.cri.model.model.qianfei_nummin
470
+ }
471
+ if(m.qianfei_nummax!=null&&m.qianfei_nummax!=''){
472
+ a +=" and qianfei_num <= "+this.$refs.paged.$refs.cri.model.model.qianfei_nummax
473
+ }
474
+ if(m.qianfei_avg_gasmin!=null&&m.qianfei_avg_gasmin!=''){
475
+ a +=" and qianfei_avg_gas >= "+this.$refs.paged.$refs.cri.model.model.qianfei_avg_gasmin
476
+ }
477
+ if(m.qianfei_avg_gasmax!=null&&m.qianfei_avg_gasmax!=''){
478
+ a += " and qianfei_avg_gas <= "+this.$refs.paged.$refs.cri.model.model.qianfei_avg_gasmax
479
+ }
480
+ if(m.f_totalowe_feemin!=null&&m.f_totalowe_feemin!=''){
481
+ a += " and f_totalowe_fee >= "+this.$refs.paged.$refs.cri.model.model.f_totalowe_feemin
482
+ }
483
+ if(m.f_totalowe_feemax!=null&&m.f_totalowe_feemax!=''){
484
+ a += " and f_totalowe_fee <= "+this.$refs.paged.$refs.cri.model.model.f_totalowe_feemax
485
+ }
486
+ if(m.f_totalowe_gasmin!=null&&m.f_totalowe_gasmin!=''){
487
+ a += " and f_totalowe_gas >= "+this.$refs.paged.$refs.cri.model.model.f_totalowe_gasmin
488
+ }
489
+ if(m.f_totalowe_gasmax!=null&&m.f_totalowe_gasmax!=''){
490
+ a += " and f_totalowe_gas <= "+this.$refs.paged.$refs.cri.model.model.f_totalowe_gasmax
491
+ }
492
+ if (m.f_oughtamount_min) {
493
+ a += " and f_oughtamount >= "+this.$refs.paged.$refs.cri.model.model.f_oughtamount_min
494
+ }
495
+ if (m.f_oughtamount_max) {
496
+ a += " and f_oughtamount <= "+this.$refs.paged.$refs.cri.model.model.f_oughtamount_max
497
+ }
498
+ if (m.f_book_slice_area) {
499
+ a += ` and f_book_slice_area = '${this.$refs.paged.$refs.cri.model.model.f_book_slice_area}'`
500
+ }
501
+ if(this.$refs.paged.$refs.cri.model.startDate){
502
+ this.model.params.startDate = `'${this.$refs.paged.$refs.cri.model.startDate}' `
503
+ }else{
504
+ this.model.params.startDate = this.$login.toStandardDateString() + ' 00:00:00'
505
+ }
506
+
507
+ if(this.$refs.paged.$refs.cri.model.endDate){
508
+ this.model.params.endDate = `'${this.$refs.paged.$refs.cri.model.endDate}' `
509
+ }else{
510
+ this.model.params.endDate = this.$login.toStandardDateString() + ' 23:59:59'
511
+ }
512
+ this.mycondition = a
513
+ args.condition = args.condition+ ` ${this.filialeCodeStr}`
514
+ args.condition = args.condition+ ` ${a}`
515
+ console.log("拼接的condition", args.condition, this.model)
516
+ this.model.search(args.condition, args.model)
517
+ },
518
+ hidden(){
519
+ this.criteriaShow = !this.criteriaShow
520
+ },
521
+ clear(){
522
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
523
+ if (key != 'startDate' && key != 'endDate')
524
+ if (key == 'model')
525
+ this.$refs.paged.$refs.cri.model[key] = {}
526
+ else
527
+ this.$refs.paged.$refs.cri.model[key] = []
528
+ })
529
+ this.$refs.paged.$refs.cri.model.contain_newfile='是'
530
+ let year = new Date().getFullYear()
531
+ this.$refs.paged.$refs.cri.model.startDate = year+'-01-01'
532
+ this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString()
533
+ }
534
+
535
+ },
536
+ computed: {
537
+ userstates (){
538
+ return this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : []
539
+ },
540
+ tablestate() {
541
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')]
542
+ },
543
+ getfield() {
544
+ return exportConfig.gasInspectionConfig
545
+ },
546
+ usertypes() {
547
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
548
+ },
549
+ gasproperties() {
550
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用气性质')]
551
+ },
552
+ f_meter_classify(){
553
+ return [{label: '全部', value: ''}, {label: '卡表', value: '卡表'},{label: '机表', value: '机表'},{label: '网表', value: '物联网表'} ]
554
+ // return [{label: '卡表', value: '卡表'}]
555
+ },
556
+ getCondition () {
557
+ let result = {
558
+ condition: '',
559
+ startDate: '',
560
+ endDate: '',
561
+ mycondition:''
562
+ }
563
+ result.condition = this.$refs.paged.$refs.cri.condition + this.filialeCodeStr
564
+ result.condition = result.condition + this.mycondition
565
+ let temp2 = this.$refs.paged.$refs.cri
566
+ if (temp2.model.startDate && temp2.model.endDate) {
567
+ result.startDate = ` '${temp2.model.startDate}'`
568
+ result.endDate = ` '${temp2.model.endDate}'`
569
+ } if (!temp2.model.startDate && !temp2.model.endDate) {
570
+ result.startDate = this.$login.toStandardDateString() + ' 00:00:00'
571
+ result.endDate = this.$login.toStandardDateString() + ' 23:59:59'
572
+ }
573
+ if (temp2.model.startDate&&!temp2.model.endDate) {
574
+ result.startDate = ` '${temp2.model.startDate}'`
575
+ result.endDate = this.$login.toStandardDateString() + ' 23:59:59'
576
+ } if (temp2.model.endDate&&!temp2.model.startDate) {
577
+ result.startDate = this.$login.toStandardDateString() + ' 00:00:00'
578
+ result.endDate = ` '${temp2.model.endDate}'`
579
+ }
580
+ if (temp2.model.contain_newfile==='否'){
581
+ result.condition = result.condition+" and f_open_date not between " + result.startDate + " and " + result.endDate
582
+ }
583
+ return result
584
+ }
585
+ }
586
+ }
587
+ </script>
588
+ <style media="screen">
589
+ .divtext {
590
+ min-width: 50px;
591
+ max-width: 200px;
592
+ border: 1px solid green;
593
+ display: inline-block;
594
+ }
595
+ </style>
596
+
@@ -737,7 +737,7 @@ export default{
737
737
  },
738
738
  gasInspectionConfig: {'f_userinfo_code': '客户编号','f_user_phone': '客户电话', 'f_olduserinfo_code': '档案编号', 'f_meternumber': '表号', 'f_user_name': '客户名称',
739
739
  'f_address': '地址', 'f_metertitles': '表箱号', 'f_user_type': '用户类型', 'f_gasproperties': '用气性质', 'f_table_state': '表具状态',
740
- 'f_meter_brand': '气表品牌', 'f_book_slice_area': '表册片区', 'end_time': '最后抄表日期', 'f_meter_base': '表底数',
740
+ 'f_meter_brand': '气表品牌', 'f_book_slice_area': '表册片区', 'end_time': '最后抄表日期', 'f_meter_base': '表底数', 'flowmetertemperature': '温度', 'flowmeterpressure': '压力',
741
741
  'f_oughtamount': '用气量', 'f_oughtfee': '用气金额', 'qianfei_month_num': '欠费月数', 'qianfei_num': '欠费条数',
742
742
  'qianfei_avg_gas': '欠费月平均气量', 'f_totalowe_gas': '欠费气量', 'f_totalowe_fee': '欠费金额'},
743
743
  surplusConfig: {
@@ -9,4 +9,8 @@ export default function () {
9
9
  Vue.component('record-info-query', (resolve) => {
10
10
  require(['./RecordInfoQuery'], resolve)
11
11
  })
12
+ // 用气稽查查询
13
+ Vue.component('gas-inspection', (resolve) => {
14
+ require(['./GasInspection'], resolve)
15
+ })
12
16
  }