manage-client 3.3.1 → 3.3.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.
Files changed (51) hide show
  1. package/build/dev-server.js +180 -180
  2. package/lib/package_2022-12-01-14-30-50.json +109 -0
  3. package/package.json +1 -1
  4. package/src/components/sale/businessquery/GroupChargeQuery.vue +481 -481
  5. package/src/components/sale/businessquery/NewAreaGeneralQuery.vue +633 -633
  6. package/src/components/webmeter/recharge/RechargeList.vue +346 -346
  7. package/src/filiale/gehua/GroupChargeQuery.vue +486 -486
  8. package/src/filiale/huayin/ChargeQuery.vue +1305 -1305
  9. package/src/filiale/rongcheng/AreaBuildingDetailInfo.vue +281 -281
  10. package/src/filiale/rongcheng/AreaBuildingInfoSummary.vue +301 -301
  11. package/src/filiale/rongcheng/exportConfig.js +536 -536
  12. package/src/filiale/rongcheng/sale.js +22 -22
  13. package/src/filiale/shanxian/FillCardQuery.vue +569 -569
  14. package/src/filiale/shanxian/FillGasQuery.vue +588 -588
  15. package/src/filiale/shanxian/LostContactAnalysisList.vue +632 -632
  16. package/src/filiale/shanxian/OtherChargeQuery.vue +684 -684
  17. package/src/filiale/shanxian/UserLostContactAnalysis.vue +583 -583
  18. package/src/filiale/shanxian/UserQuery.vue +959 -959
  19. package/src/filiale/shanxian/sale.js +26 -26
  20. package/src/filiale/wenxi/ChangeMeterQuery.vue +704 -704
  21. package/src/filiale/wenxi/ChangeUserQuery.vue +371 -371
  22. package/src/filiale/wenxi/ChargeQuery.vue +1260 -1260
  23. package/src/filiale/wenxi/FmyGasDeviceQuery.vue +944 -944
  24. package/src/filiale/wenxi/GasDeviceQuery.vue +1041 -1041
  25. package/src/filiale/wenxi/GasStatistics.vue +515 -515
  26. package/src/filiale/wenxi/GetNoMetereadData.vue +374 -374
  27. package/src/filiale/wenxi/HandplanQuery.vue +1370 -1370
  28. package/src/filiale/wenxi/ManageUserTypeSell.vue +173 -173
  29. package/src/filiale/wenxi/MeterQuery.vue +964 -964
  30. package/src/filiale/wenxi/NewGasStatistics.vue +522 -522
  31. package/src/filiale/wenxi/RecordInfoQuery.vue +1213 -1213
  32. package/src/filiale/wenxi/WebHandQuery.vue +475 -475
  33. package/src/filiale/wenxi/config/exportConfig.js +916 -916
  34. package/src/filiale/wenxi/sale.js +24 -24
  35. package/src/filiale/wenxi/webmeterManage.js +13 -13
  36. package/src/filiale/xinkang/EchartsBox.vue +139 -139
  37. package/src/filiale/xinkang/ManageBrandHouseCount.vue +347 -347
  38. package/src/filiale/xinkang/NewGasStatistics.vue +526 -526
  39. package/src/filiale/xinkang/exportConfig.js +1998 -1998
  40. package/src/filiale/xinkang/meterFaultChangeSummary.vue +196 -196
  41. package/src/filiale/xinkang/reportManage.js +15 -15
  42. package/src/filiale/xinkang/sale.js +13 -13
  43. package/src/filiale/xinkang/webmeterManage.js +9 -9
  44. package/src/filiale/zhongyi/GasStatistics.vue +521 -521
  45. package/src/main.js +72 -66
  46. package/.gradle/4.4/fileChanges/last-build.bin +0 -0
  47. package/.gradle/6.1/executionHistory/executionHistory.bin +0 -0
  48. package/.gradle/6.1/executionHistory/executionHistory.lock +0 -0
  49. package/.gradle/6.1/fileChanges/last-build.bin +0 -0
  50. package/.gradle/6.1/fileHashes/fileHashes.bin +0 -0
  51. package/.gradle/6.1/fileHashes/fileHashes.lock +0 -0
@@ -1,944 +1,944 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search" v-if="!show">
4
- <div class="flex">
5
- <div style="flex:1;" class="flex" >
6
- <criteria-paged :model="model" v-ref:paged @sort="sort">
7
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
- <div class="row">
10
- <div class="col-sm-2 form-group">
11
- <label class="font_normal_body">客户编号</label>
12
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
13
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
14
- </div>
15
- <div class="col-sm-2 form-group">
16
- <label class="font_normal_body">客户名称</label>
17
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
18
- condition="f_user_name like '%{}%'" placeholder="客户名称">
19
- </div>
20
- <div class="col-sm-2 form-group">
21
- <label class="font_normal_body">客户电话</label>
22
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
23
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
24
- </div>
25
- <div class="col-sm-2 form-group">
26
- <label for="startGasDate" class="font_normal_body">通气时间</label>
27
- <datepicker id="startGasDate" placeholder="开始日期" style="width:60%"
28
- v-model="model.startGasDate"
29
- :value.sync="model.startGasDate"
30
- :format="'yyyy-MM-dd 00:00:00'"
31
- :show-reset-button="true"
32
- condition="f_gas_date >= '{}'">
33
- </datepicker>
34
- </div>
35
- <div class="col-sm-2 form-group">
36
- <label for="endGasDate" class="font_normal_body">至</label>
37
- <datepicker id="endGasDate" placeholder="结束日期" style="width:60%"
38
- v-model="model.endGasDate"
39
- :value.sync="model.endGasDate"
40
- :format="'yyyy-MM-dd 23:59:59'"
41
- :show-reset-button="true"
42
- condition="f_gas_date <= '{}'">
43
- </datepicker>
44
- </div>
45
- <div class="span" style="float:right;">
46
- <button class="button_search button_spacing" @click="search()">查询</button>
47
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
48
- <button class="button_clear button_spacing" style="margin-top: 10px;background-color: #6aa6e2;" @click="$parent.$parent.downloadFiles()">导出</button>
49
-
50
- <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>
51
- </div>
52
- </div>
53
- <div class="row" v-show="$parent.$parent.criteriaShow">
54
- <div class="col-sm-2 form-group">
55
- <label class="font_normal_body">客户地址</label>
56
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
57
- condition="f_address like '%{}%'" placeholder='客户地址'>
58
- </div>
59
- <div class="col-sm-2 form-group">
60
- <label class="font_normal_body" title="气表状态">气表状态</label>
61
- <v-select :value.sync="model.f_table_state"
62
- :search="false"
63
- v-model="model.f_table_state"
64
- :options='$parent.$parent.TableStates' placeholder='请选择'
65
- condition="f_table_state in {}"
66
- ></v-select>
67
- </div>
68
- <div class="col-sm-2 form-group">
69
- <label class="font_normal_body">燃气表号</label>
70
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
71
- condition="f_meternumber like '%{}%'" placeholder='燃气表号'>
72
- </div>
73
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
74
- <div class="col-sm-2 form-group">
75
- <label for="startDate" class="font_normal_body">建档日期</label>
76
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
77
- v-model="model.startDate"
78
- :value.sync="model.startDate"
79
- :format="'yyyy-MM-dd 00:00:00'"
80
- :show-reset-button="true"
81
- condition="f_createfile_date >= '{}'">
82
- </datepicker>
83
- </div>
84
- <div class="col-sm-2 form-group">
85
- <label for="endDate" class="font_normal_body">结束日期</label>
86
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
87
- v-model="model.endDate"
88
- :value.sync="model.endDate"
89
- :format="'yyyy-MM-dd 23:59:59'"
90
- :show-reset-button="true"
91
- condition="f_createfile_date <= '{}'">
92
- </datepicker>
93
- </div>
94
- <!-- <div class="col-sm-2 form-group">-->
95
- <!-- <label class="font_normal_body">通气年限</label>-->
96
- <!-- <input type="number" style="width:60%" class="input_search" v-model="model.diffAllyear1"-->
97
- <!-- condition="diffAllyear >= {}" placeholder="最小值">-->
98
- <!-- </div>-->
99
- <!-- <div class="col-sm-2 form-group">-->
100
- <!-- <label class="font_normal_body">&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>-->
101
- <!-- <input type="number" style="width:60%" class="input_search" v-model="model.diffAllyear2"-->
102
- <!-- condition="diffAllyear <= {}" placeholder="最大值">-->
103
- <!-- </div>-->
104
- <div class="col-sm-2 form-group">
105
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
106
- <v-select :value.sync="model.f_residential_area"
107
- class="select_list select"
108
- enter-push
109
- multiple = "true"
110
- v-model="model.f_residential_area"
111
- style="width: 60%"
112
- :options='$parent.$parent.residentialArea' placeholder='选择小区'
113
- close-on-select>
114
- </v-select>
115
- </div>
116
- <div class="col-sm-2 form-group">
117
- <label class="font_normal_body">气表品牌</label>
118
- <v-select :value.sync="model.f_meter_brand"
119
- v-model="model.f_meter_brand"
120
- :options="$parent.$parent.meterbrands"
121
- condition="f_meter_brand = '{}'"
122
- close-on-select></v-select>
123
- </div>
124
- <div class="col-sm-2 form-group" >
125
- <label class="font_normal_body">客户状态</label>
126
- <v-select :value.sync="model.f_user_state"
127
- v-model="model.f_user_state"
128
- multiple
129
- :options='$parent.$parent.userstates' placeholder='请选择'
130
- condition="f_user_state in {}"
131
- ></v-select>
132
- </div>
133
- <div class="col-sm-2 form-group" >
134
- <label class="font_normal_body">设备类型</label>
135
- <v-select :value.sync="model.f_devices_type"
136
- v-model="model.f_devices_type"
137
- :options='$parent.$parent.deviceTypes' placeholder='请选择'
138
- condition="f_devices_type = '{}'"
139
- close-on-select></v-select>
140
- </div>
141
- <div class="col-sm-2 form-group">
142
- <label for="startDate" class="font_normal_body">开户日期</label>
143
- <datepicker id="startDate2" placeholder="开始日期" style="width:60%"
144
- v-model="model.startDate2"
145
- :value.sync="model.startDate2"
146
- :format="'yyyy-MM-dd 00:00:00'"
147
- :show-reset-button="true"
148
- condition="f_open_date >= '{}'">
149
- </datepicker>
150
- </div>
151
- <div class="col-sm-2 form-group">
152
- <label for="endDate" class="font_normal_body">开户日期</label>
153
- <datepicker id="endDate2" placeholder="结束日期" style="width:60%"
154
- v-model="model.endDate2"
155
- :value.sync="model.endDate2"
156
- :format="'yyyy-MM-dd 23:59:59'"
157
- :show-reset-button="true"
158
- condition="f_open_date <= '{}'">
159
- </datepicker>
160
- </div>
161
- <div class="col-sm-2 form-group" >
162
- <label class="font_normal_body">有无波纹管</label>
163
- <v-select :value.sync="model.f_has_pepe"
164
- v-model="model.f_has_pepe"
165
- :options='$parent.$parent.haspipe' placeholder='请选择'
166
- condition="f_has_pepe {}" close-on-select
167
- ></v-select>
168
- </div>
169
- <div class="col-sm-2 form-group" >
170
- <label class="font_normal_body">有无自闭阀</label>
171
- <v-select :value.sync="model.f_is_zibifa"
172
- v-model="model.f_is_zibifa"
173
- :options='$parent.$parent.iszbf' placeholder='请选择'
174
- condition="f_is_zibifa {}" close-on-select
175
- ></v-select>
176
- </div>
177
- </div>
178
- </div>
179
- </criteria>
180
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
181
- <template partial='head'>
182
- <tr>
183
- <th rowspan="2"><nobr>序号</nobr></th>
184
- <th colspan="6"><nobr>用户信息</nobr></th>
185
- <th colspan="7"><nobr>燃气表</nobr></th>
186
- <th colspan="7"><nobr>建档信息</nobr></th>
187
- <th colspan="4"><nobr>燃气报警装置</nobr></th>
188
- <th colspan="4"><nobr>设备信息</nobr></th>
189
- <th colspan="5"><nobr>燃气连接管</nobr></th>
190
- <th colspan="8"><nobr>燃气计量装置</nobr></th>
191
- <th colspan="6"><nobr>控制器设备</nobr></th>
192
- <th colspan="7"><nobr>调压设备</nobr></th>
193
- <th colspan="6"><nobr>安检信息</nobr></th>
194
- <th rowspan="2"><nobr>备注</nobr></th>
195
- </tr>
196
-
197
- <tr>
198
- <!-- 用户信息-->
199
- <th><nobr>客户编号</nobr></th>
200
- <th><nobr>客户名称</nobr></th>
201
- <th><nobr>联系电话</nobr></th>
202
- <th><nobr>小区名称</nobr></th>
203
- <th><nobr>地址</nobr></th>
204
- <th><nobr>客户状态</nobr></th>
205
- <!--燃气表-->
206
- <th><nobr>表品牌</nobr></th>
207
- <th><nobr>表号</nobr></th>
208
- <th><nobr>类型</nobr></th>
209
- <th><nobr>气表状态</nobr></th>
210
- <th><nobr>型号</nobr></th>
211
- <th><nobr>左右表</nobr></th>
212
- <th><nobr>安装位置</nobr></th>
213
- <th><nobr>表安装日期</nobr></th>
214
- <!--建档日期-->
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
-
223
- <!--燃气报警装置-->
224
- <th><nobr>报警器品牌</nobr></th>
225
- <th><nobr>数量</nobr></th>
226
- <th><nobr>生产日期</nobr></th>
227
- <th><nobr>超期提醒</nobr></th>
228
- <!--设备信息-->
229
- <th><nobr>设备名称</nobr></th>
230
- <th><nobr>数量</nobr></th>
231
- <th><nobr>生产日期</nobr></th>
232
- <th><nobr>超期提醒</nobr></th>
233
- <!--燃气连接管-->
234
- <th><nobr>有无不锈钢波纹管</nobr></th>
235
- <th><nobr>数量</nobr></th>
236
- <th><nobr>有无自闭阀</nobr></th>
237
- <th><nobr>数量</nobr></th>
238
- <!--燃气计量装置-->
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
- <!--控制器设备-->
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
-
255
- <!--调压设备-->
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
- <!--安检信息-->
264
- <th><nobr>安检日期</nobr></th>
265
- <th><nobr>安检人员</nobr></th>
266
- <th><nobr>用气总量</nobr></th>
267
- <th><nobr>剩余气量</nobr></th>
268
- <th><nobr>发现问题</nobr></th>
269
- <th><nobr>整改日期</nobr></th>
270
-
271
- </tr>
272
- </template>
273
- <template partial='body'>
274
- <!--序号-->
275
- <td style="text-align: center;" ><nobr>
276
- {{$index + 1}}
277
- </nobr></td>
278
- <!--用户信息-->
279
- <td style="text-align: center;">
280
- <nobr>{{row.f_userinfo_code}}</nobr>
281
- </td>
282
- <td style="text-align: center;">
283
- <nobr>{{row.f_user_name}}</nobr>
284
- </td>
285
- <td style="text-align: center;">
286
- <nobr>{{row.f_user_phone}}</nobr>
287
- </td>
288
- <td style="text-align: center;">
289
- <nobr>{{row.f_residential_area}}</nobr>
290
- </td>
291
- <td style="text-align: center;">
292
- <nobr>{{row.f_address}}</nobr>
293
- </td>
294
- <td style="text-align: center;">
295
- <nobr>{{row.f_user_state}}</nobr>
296
- </td>
297
-
298
- <!--燃气表-->
299
- <td style="text-align: center;">
300
- <nobr>{{row.f_meter_brand}}</nobr>
301
- </td>
302
- <td style="text-align: center;">
303
- <nobr>{{row.f_meternumber}}</nobr>
304
- </td>
305
- <td style="text-align: center;">
306
- <nobr>{{row.f_meter_type}}</nobr>
307
- </td>
308
- <td style="text-align: center;">
309
- <nobr>{{row.f_table_state}}</nobr>
310
- </td>
311
- <td style="text-align: center;">
312
- <nobr>{{row.f_meter_style}}</nobr>
313
- </td>
314
- <td style="text-align: center;">
315
- <nobr>{{row.f_aroundmeter}}</nobr>
316
- </td>
317
- <td style="text-align: center;">
318
- <nobr>{{row.f_position}}</nobr>
319
- </td>
320
- <td style="text-align: center;">
321
- <nobr>{{row.f_install_date}}</nobr>
322
- </td>
323
-
324
- <!--建档信息-->
325
- <td style="text-align: center;">
326
- <nobr>{{row.f_createfile_date}}</nobr>
327
- </td>
328
- <td style="text-align: center;">
329
- <nobr>{{row.f_contractdate}}</nobr>
330
- </td>
331
- <td style="text-align: center;">
332
- <nobr>{{row.f_gas_date}}</nobr>
333
- </td>
334
- <td style="text-align: center;">
335
- <nobr>{{row.f_install_person}}</nobr>
336
- </td>
337
- <td style="text-align: center;">
338
- <nobr>{{row.f_gas_date}}</nobr>
339
- </td>
340
- <td style="text-align: center;">
341
- <nobr>{{row.f_gas_person}}</nobr>
342
- </td>
343
- <td style="text-align: center;" :style="$parent.$parent.$parent.ventilationYear(row.diffallyear)">
344
- <nobr>{{row.ventilation_years}}</nobr>
345
- </td>
346
-
347
-
348
- <!--燃气报警装置-->
349
- <td style="text-align: center;">
350
- <nobr>{{row.f_icgd_brand}}</nobr>
351
- </td>
352
- <td style="text-align: center;">
353
- <nobr>{{row.f_icgd_num}}</nobr>
354
- </td>
355
- <td style="text-align: center;">
356
- <nobr>{{row.f_icgd_prdate}}</nobr>
357
- </td>
358
- <td style="text-align: center;">
359
- <nobr>{{$parent.$parent.$parent.formatTime(row.alarm_exp_date)}}</nobr>
360
- </td>
361
-
362
- <!--设备信息-->
363
- <td style="text-align: center;">
364
- <nobr>{{row.f_brand}}</nobr>
365
- </td>
366
- <td style="text-align: center;">
367
- <nobr>{{row.f_devices_num}}</nobr>
368
- </td>
369
- <td style="text-align: center;">
370
- <nobr>{{row.f_make_date}}</nobr>
371
- </td>
372
- <td style="text-align: center;">
373
- <nobr>{{$parent.$parent.$parent.formatTime(row.f_expire_date)}}</nobr>
374
- </td>
375
-
376
- <!--燃气管连接-->
377
- <td style="text-align: center;">
378
- <nobr>{{row.f_has_pipe}}</nobr>
379
- </td>
380
- <td style="text-align: center;">
381
- <nobr>{{row.f_pipe_num}}</nobr>
382
- </td>
383
- <td style="text-align: center;">
384
- <nobr>{{row.f_is_zibifa}}</nobr>
385
- </td>
386
- <td style="text-align: center;">
387
- <nobr>{{row.f_zibifa_num}}</nobr>
388
- </td>
389
-
390
- <!--燃气计量装置-->
391
- <td style="text-align: center;">
392
- <nobr>{{row.ranqi_brand}}</nobr>
393
- </td>
394
- <td style="text-align: center;">
395
- <nobr>{{row.ranqi_devices_no}}</nobr>
396
- </td>
397
- <td style="text-align: center;">
398
- <nobr>{{row.ranqi_equipment_type}}</nobr>
399
- </td>
400
- <td style="text-align: center;">
401
- <nobr>{{row.ranqi_devices_model}}</nobr>
402
- </td>
403
- <td style="text-align: center;">
404
- <nobr>{{row.f_gmd_lsnumber}}</nobr>
405
- </td>
406
- <td style="text-align: center;">
407
- <nobr>{{row.ranqi_make_date}}</nobr>
408
- </td>
409
- <td style="text-align: center;" :class="$parent.$parent.$parent.formatTime(row.ranqi_exp_date).indexOf('已过期')!==-1? 'back-red' : 'back-blue'">
410
- <nobr>{{$parent.$parent.$parent.formatTime(row.ranqi_exp_date)}}</nobr>
411
- </td>
412
- <td style="text-align: center;">
413
- <nobr>
414
- <span @click="$parent.$parent.$parent.dealmsg(row,row.ranqi_id,'燃气计量装置')"><a><b>变更记录</b></a></span>
415
- </nobr>
416
- </td>
417
- <!--控制器设备-->
418
- <td style="text-align: center;">
419
- <nobr>{{row.control_brand}}</nobr>
420
- </td>
421
- <td style="text-align: center;">
422
- <nobr>{{row.control_devices_no}}</nobr>
423
- </td>
424
- <td style="text-align: center;">
425
- <nobr>{{row.control_devices_model}}</nobr>
426
- </td>
427
- <td style="text-align: center;">
428
- <nobr>{{row.control_make_date}}</nobr>
429
- </td>
430
- <td style="text-align: center;" :class="$parent.$parent.$parent.formatTime(row.control_exp_date).indexOf('已过期')!==-1? 'back-red' : 'back-blue'">
431
- <nobr>{{$parent.$parent.$parent.formatTime(row.control_exp_date)}}</nobr>
432
- </td>
433
- <td style="text-align: center;">
434
- <nobr>
435
- <span @click="$parent.$parent.$parent.dealmsg(row,row.control_id,'控制器设备')"><a><b>变更记录</b></a></span>
436
- </nobr>
437
- </td>
438
- <!--调压设备-->
439
- <td style="text-align: center;">
440
- <nobr>{{row.tiaoya_brand}}</nobr>
441
- </td>
442
- <td style="text-align: center;">
443
- <nobr>{{row.tiaoya_equipment_type}}</nobr>
444
- </td>
445
- <td style="text-align: center;">
446
- <nobr>{{row.tiaoya_devices_model}}</nobr>
447
- </td>
448
- <td style="text-align: center;">
449
- <nobr>{{row.tiaoya_install_position}}</nobr>
450
- </td>
451
- <td style="text-align: center;">
452
- <nobr>{{row.tiaoya_make_date}}</nobr>
453
- </td>
454
- <td style="text-align: center;" :class="$parent.$parent.$parent.formatTime(row.tiaoya_exp_date).indexOf('已过期')!==-1? 'back-red' : 'back-blue'">
455
- <nobr>{{$parent.$parent.$parent.formatTime(row.tiaoya_exp_date)}}</nobr>
456
- </td>
457
- <td style="text-align: center;">
458
- <nobr>
459
- <span @click="$parent.$parent.$parent.dealmsg(row,row.tiaoya_id,'调压设备')"><a><b>变更记录</b></a></span>
460
- </nobr>
461
- </td>
462
-
463
- <!--安检信息-->
464
- <td style="text-align: center;">
465
- <nobr>{{row.f_upload_date}}</nobr>
466
- </td>
467
- <td style="text-align: center;">
468
- <nobr>{{row.f_checker_name}}</nobr>
469
- </td>
470
- <td style="text-align: center;">
471
- <nobr>{{row.f_total_gas}}</nobr>
472
- </td>
473
- <td style="text-align: center;">
474
- <nobr>{{row.f_balance_gas}}</nobr>
475
- </td>
476
- <td style="text-align: center;">
477
- <nobr>{{row.f_defect_content}}</nobr>
478
- </td>
479
- <td style="text-align: center;">
480
- <nobr>{{row.f_repair_date}}</nobr>
481
- </td>
482
-
483
- <!--备注-->
484
- <td style="text-align: center;">
485
- <nobr>{{row.f_comments}}</nobr>
486
- </td>
487
-
488
- </template>
489
- <template partial='foot'>
490
- </template>
491
- </data-grid>
492
- </criteria-paged>
493
-
494
- </div>
495
- </div>
496
- </div>
497
- <modal :show.sync="filechangeHistoryShow" v-ref:filechangeHistoryShow backdrop="false" class="filechangeHistoryShow">
498
- <header slot="modal-header" class="modal-header" style="text-align: center">
499
- <h4 class="modal-title">{{titles}}</h4>
500
- </header>
501
- <article slot="modal-body" class="modal-body">
502
- <data-grid class="list_area table_sy" :model="filechangeHistorys" partial='list'>
503
- <template partial='head'>
504
- <th><nobr>序号</nobr></th>
505
- <th><nobr>更改内容</nobr></th>
506
- <th><nobr>更改前</nobr></th>
507
- <th><nobr>更改后</nobr></th>
508
- <th><nobr>变更时间</nobr></th>
509
- </template>
510
- <template partial='body'>
511
- <td >{{$index+1}}</td>
512
- <td><nobr>{{row.f_field_name}}</nobr></td>
513
- <td><nobr>{{row.f_used_content}}</nobr></td>
514
- <td><nobr>{{row.f_new_content}}</nobr></td>
515
- <td><nobr>{{row.f_submit_date}}</nobr></td>
516
- </template>
517
- </data-grid>
518
- </article>
519
- <footer slot="modal-footer" class="modal-footer">
520
- <button type="button" class="btn btn-default" @click='filechangeHistoryShow = false'>关闭</button>
521
- </footer>
522
- </modal>
523
- </div>
524
- </template>
525
-
526
- <script>
527
- import {HttpResetClass, PagedList} from 'vue-client'
528
- import defaultPrint from '../../components/sale/config/DefaultPrint'
529
- import exportConfig from '../../components/sale/config/exportConfig'
530
-
531
- let readySomething = async function (self) {
532
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
533
- }
534
- let readyGen = async function (self) {
535
- await self.$MagLoadParams.loadParam()
536
- self.initParams()
537
- }
538
- export default {
539
- title: '非民用用气设备查询',
540
- data() {
541
- return {
542
- titles:'',
543
- other:[],
544
- footer:[],
545
- model: new PagedList('rs/sql/fmyGasDeviceQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_userinfo_code desc'`}),
546
- criteriaShow: false,
547
- orgCondtionStr: '',
548
- modelval: [],
549
- printshow: false,
550
- all: false,
551
- fields: {},
552
- //排序
553
- orderitem:'f_userinfo_code desc',
554
- orderFields: {
555
- f_operate_date: 'no'
556
- },
557
- //默认打印列
558
- defaultfield: [],
559
- config: {
560
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_user_state']
561
- },
562
- balance2:'',
563
- thead: '',
564
- tfoot: '',
565
- area: [],
566
- //合计数据
567
- sumsmodel: {},
568
- initres: {
569
- org:[this.$login.f.orgid],
570
- dep:[],
571
- user:[],
572
- },
573
- userdetail: {
574
- show: false,
575
- f_userinfo_code: '',
576
- f_filialeids: ''
577
- },
578
- filechangeHistorys: {rows:[]},
579
- filechangeHistoryShow: false,
580
- show:false,
581
- rowdata:{},
582
- meterInfo:{},
583
- deviceInfo:{},
584
- condition2:'',
585
-
586
- meterbrands: [],
587
- prices: [],
588
- deviceTypes: this.$appdata.getParam('设备类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备类型')] : [],
589
-
590
- //小区
591
- residentialArea: [],
592
- allorgid:[],
593
- f_filialeid: this.$login.f.f_orgid,
594
- haspipe: [{label: '有', value: ` = '有'`},{label: '无', value: `!= '有'`}],
595
- iszbf: [{label: '有', value: ` = '有'`},{label: '无', value: `!= '有'`}]
596
- }
597
- },
598
- ready() {
599
- readyGen(this)
600
- this.getaddress()
601
- readySomething(this).then(() => {
602
- this.$emit('ready')
603
- }).catch((error) => {
604
- this.$emit('error', error)
605
- })
606
- },
607
- methods: {
608
- async dealmsg(row,id,type){
609
- this.titles = type+'变更记录'
610
- if (type==='燃气连接管'){
611
- type = '燃气计量装置连接管'
612
- }
613
- this.filechangeHistorys.rows = []
614
- let data = {
615
- tablename: `t_infochange`,
616
- items: '*',
617
- condition: `1=1`,
618
- orderitem: 'f_change_id desc'
619
- }
620
- let urlParam = 'rs/sql/singleTable_OrderBy'
621
- if (id){
622
- data.condition = `1=1 and f_table_id = ${id} and f_field_name like '%${type}%'`
623
- let res = await this.$resetpost(urlParam, {data: data}, {rejectMsg: '获取变更记录出错', resolveMsg: null})
624
- if (res){
625
- this.filechangeHistorys.rows = res.data
626
- }
627
- }else{
628
- if (type === '建档信息'||type === '用户信息'){
629
- urlParam = 'rs/sql/changeuserquery'
630
- data = {
631
- condition: ` 1=1 and f_orgid in ('${this.$login.f.orgid}') and f_userinfo_code = '${row.f_userinfo_code}' and f_table_ename != 't_devices'`,
632
- orderitem: "f_operate_date desc"
633
- }
634
- let res = await this.$resetpost(urlParam, {data: data}, {rejectMsg: '获取变更记录出错', resolveMsg: null})
635
- if (res){
636
- this.filechangeHistorys.rows = res.data
637
- }
638
- }
639
- }
640
- this.filechangeHistoryShow =true
641
- },
642
- ventilationYear(diffAllyear){
643
- console.log("diffAllyear?",diffAllyear)
644
- if ( 1<= diffAllyear && diffAllyear <= 2 ){
645
- return {
646
- color: 'green !important'
647
- }
648
- }else if (3<= diffAllyear && diffAllyear <=4){
649
- return {
650
- color: 'orange !important'
651
- }
652
- }else if (5<= diffAllyear && diffAllyear <=8){
653
- return {
654
- color: 'red !important'
655
- }
656
- }else if (diffAllyear>8){
657
- return {
658
- color: 'crimson !important'
659
- }
660
- }else {
661
- return {
662
-
663
- }
664
- }
665
- },
666
- formatTime(expireTime){
667
- if (expireTime){
668
- let formats = {
669
- 'year': '%n%年',
670
- 'month': '%n%月',
671
- 'day': '%n%天',
672
- };
673
- let now = new Date().getTime()
674
- let expireTimes = new Date(expireTime).getTime()
675
- if (now < expireTimes){
676
- return expireTime
677
- }else {
678
- let seconds = Math.floor((now - expireTimes) / 1000)
679
- let minutes = Math.floor(seconds / 60)
680
- let hours = Math.floor(minutes / 60)
681
- let days = Math.floor(hours / 24)
682
- let months = Math.floor(days / 30)
683
- let years = Math.floor(months / 12)
684
-
685
- let diffType = ''
686
- let diffValue = 0
687
- if (years > 0) {
688
- diffType = 'year'
689
- diffValue = years
690
- } else {
691
- if (months > 0) {
692
- diffType = 'month'
693
- diffValue = months
694
- } else {
695
- if (days > 0) {
696
- diffType = 'day'
697
- diffValue = days
698
- }
699
- }
700
- }
701
- return '已过期'+formats[diffType].replace('%n%', diffValue);
702
- }
703
- }else {
704
- return ''
705
- }
706
- },
707
- initParams() {
708
- // 初始化气表品牌
709
- let brandArr = []
710
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
711
- let temp = {}
712
- temp.label = item.label
713
- temp.value = item.value.f_meter_brand
714
- brandArr.push(temp)
715
- })
716
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
717
- //初始化气表价格
718
- this.prices = this.$MagGetSaleParam.getPrices();
719
- },
720
- async getaddress(){
721
- console.log('开始获取小区')
722
- let HttpReset = new HttpResetClass()
723
- var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
724
- data: {
725
- condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
726
- }
727
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
728
- console.log('小区',data)
729
- let house = []
730
- for (let row of data.data){
731
- console.log('开始保存小区')
732
- house.push({label: row.f_residential_area, value: row.f_residential_area})
733
- }
734
- this.residentialArea = house
735
- },
736
- async downloadFiles() {
737
- if (this.condition2) {
738
- let data = {
739
- sqlName: 'fmyGasDeviceQuery',
740
- condition: this.condition2,
741
- fileName: '非民用用气设备查询'
742
- }
743
- let HttpReset = new HttpResetClass()
744
- let res = await HttpReset.load('POST', 'rs/deviceExport/gasDevices', {
745
- data: data
746
- }, {resolveMsg: null, rejectMsg: null})
747
- if (res){
748
- let downurl = 'rs/deviceExport/download?filename=非民用用气设备查询.xlsx';
749
- this.$resetget(downurl, {}).then(res => {
750
- var link = document.createElement('a');
751
- link.target = "_blank"
752
- link.href = downurl;
753
- link.setAttribute("download", "非民用用气设备查询.xlsx"); //指定下载后的文件名,防跳转
754
- document.body.appendChild(link);
755
- link.click();
756
- })
757
- }
758
- } else {
759
- this.$showAlert('查询条件为空,请查询后再导出', 'warning', 3000)
760
- return
761
- }
762
- },
763
- //把数据库查询数据转换为下拉数据
764
- calculate(rows){
765
- let data = []
766
- rows.forEach((row, n) => {
767
- data[n] = {label: row.f_residential_area, value: row.id}
768
- })
769
- return data
770
- },
771
- search(){
772
- this.$refs.paged.$refs.cri.search()
773
- },
774
- cancel(obj) {
775
- this.show = false
776
- },
777
- showmsg(obj){
778
-
779
- this.rowdata=obj
780
- this.show=true
781
- },
782
- selfSearch(args) {
783
- this.area = this.$refs.paged.$refs.cri.model.f_residential_area
784
- console.log("=====小区model绑定====",this.area)
785
- if(this.area.length !== 0){
786
- let str = JSON.stringify(this.area)
787
- str = str.replace(/"/g,`'`)
788
- str = str.replace(/\[/g,``)
789
- str = str.replace(/\]/g,``)
790
- console.log("=====小区model22222222222绑定====",str)
791
- //查询多个小区时条件
792
- args.condition += ` and f_residential_area in ( ${str} )`
793
- }
794
- if (!this.orgCondtionStr) {
795
- args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
796
- } else {
797
- args.condition = `${args.condition}` + this.orgCondtionStr
798
- }
799
- this.condition2 = args.condition
800
- this.model.search(args.condition, args.model)
801
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
802
- console.log('合计字段', this.sumsmodel)
803
- },
804
- clear() {
805
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
806
- this.$refs.paged.$refs.cri.model[key] = []
807
- })
808
- },
809
- hidden() {
810
- this.criteriaShow = !this.criteriaShow
811
- },
812
- getRes(obj) {
813
- this.orgCondtionStr = obj
814
- },
815
- stamp() {
816
- this.all = false
817
- //默认选择要打印的列
818
- this.modelval = defaultPrint.config
819
- this.fields = this.getfield
820
- console.log('所有打印字段', this.fields)
821
- this.printshow = true
822
- this.put()
823
- },
824
- print() {
825
- this.$refs.print.PrintAsFile()
826
- this.printshow = false
827
- },
828
- close() {
829
- this.printshow = false
830
- },
831
- // 对选择的列进行排序
832
- sortModelval() {
833
- let sortModel = []
834
- Object.keys(this.fields).forEach((key) => {
835
- if (this.modelval.includes(key)) {
836
- sortModel.push(key)
837
- }
838
- })
839
- this.modelval = sortModel
840
- console.log('选择的打印的字段', this.modelval)
841
- },
842
- dblclick(row, index) {
843
- console.log('双击之后数据', row, index)
844
- this.userdetail.show = true
845
- this.userdetail.f_userinfo_code = row.f_userinfo_code
846
- this.userdetail.f_filialeids = row.f_filialeids
847
- },
848
- sort (field, rule) {
849
- // 将所有排序方式设为不排序,实现相互排斥
850
- for (let key in this.orderFields) {
851
- if (key === field) {
852
- this.orderFields[key] = rule
853
- } else {
854
- this.orderFields[key] = 'no'
855
- }
856
- }
857
- // 如果新规则不排序,还原为默认排序
858
- if (rule === 'no') {
859
- this.model.paramSource.orderitem = `'${this.orderitem}'`
860
- } else {
861
- this.model.paramSource.orderitem = `'${field} ${rule}'`
862
- }
863
-
864
- this.search()
865
- }
866
- },
867
-
868
- watch: {
869
- 'all'(val) {
870
- if (val) {
871
- this.modelval = this.bodyData
872
- } else {
873
- this.modelval = defaultPrint.config
874
- this.put()
875
- }
876
- },
877
- 'modelval.length'() {
878
- this.put()
879
- },
880
- 'orgCondtionStr'(val) {
881
- let res = val.match(/'(.*?)'/)
882
- console.log('正则提取:',res && res[1])
883
- if (res) {
884
- this.f_filialeid = res[1]
885
- if(res.input !=null){
886
- let resorgid = res.input.substring(res.input.indexOf("'"));
887
- if(resorgid!= null && resorgid!=''){
888
- resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
889
- // resorgid = resorgid.replaceAll("'","");
890
- resorgid = resorgid.replace(/'/g,"");
891
- this.allorgid = resorgid.split(",")
892
- }
893
- }
894
- }
895
- },
896
- },
897
- computed: {
898
- authArr () {
899
- return this.$login.r ? this.$login.r : []
900
- },
901
-
902
- getCondition() {
903
- return {condition: this.condition2,orderitem:this.orderitem}
904
- },
905
- getfield() {
906
- let data = {}
907
- this.bodyData.forEach((value, index) => {
908
- data[this.bodyData[index]] = this.headData[index]
909
- })
910
- //合计字段打印
911
- this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
912
- if (this.sumsmodel) {
913
- Object.keys(this.sumsmodel).forEach((key) => {
914
- this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
915
- })
916
- } else {
917
- this.tfoot += '暂无'
918
- }
919
- this.tfoot += '</th></tr>'
920
- return data
921
- },
922
- getExportField() {
923
- return exportConfig.userConfig
924
- },
925
- addressstate() {
926
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('地址状态')]
927
- }
928
- }
929
- }
930
- </script>
931
- <style lang="less">
932
- .filechangeHistoryShow {
933
- td {
934
- text-align: center !important;
935
- }
936
- }
937
- .back-red{ /* 红色背景 */
938
- color: #df1335 !important;
939
- }
940
- .back-blue{ /* 蓝色背景 */
941
-
942
- }
943
- </style>
944
-
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search" v-if="!show">
4
+ <div class="flex">
5
+ <div style="flex:1;" class="flex" >
6
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <div class="col-sm-2 form-group">
11
+ <label class="font_normal_body">客户编号</label>
12
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
13
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
14
+ </div>
15
+ <div class="col-sm-2 form-group">
16
+ <label class="font_normal_body">客户名称</label>
17
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
18
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label class="font_normal_body">客户电话</label>
22
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
23
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
24
+ </div>
25
+ <div class="col-sm-2 form-group">
26
+ <label for="startGasDate" class="font_normal_body">通气时间</label>
27
+ <datepicker id="startGasDate" placeholder="开始日期" style="width:60%"
28
+ v-model="model.startGasDate"
29
+ :value.sync="model.startGasDate"
30
+ :format="'yyyy-MM-dd 00:00:00'"
31
+ :show-reset-button="true"
32
+ condition="f_gas_date >= '{}'">
33
+ </datepicker>
34
+ </div>
35
+ <div class="col-sm-2 form-group">
36
+ <label for="endGasDate" class="font_normal_body">至</label>
37
+ <datepicker id="endGasDate" placeholder="结束日期" style="width:60%"
38
+ v-model="model.endGasDate"
39
+ :value.sync="model.endGasDate"
40
+ :format="'yyyy-MM-dd 23:59:59'"
41
+ :show-reset-button="true"
42
+ condition="f_gas_date <= '{}'">
43
+ </datepicker>
44
+ </div>
45
+ <div class="span" style="float:right;">
46
+ <button class="button_search button_spacing" @click="search()">查询</button>
47
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
48
+ <button class="button_clear button_spacing" style="margin-top: 10px;background-color: #6aa6e2;" @click="$parent.$parent.downloadFiles()">导出</button>
49
+
50
+ <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>
51
+ </div>
52
+ </div>
53
+ <div class="row" v-show="$parent.$parent.criteriaShow">
54
+ <div class="col-sm-2 form-group">
55
+ <label class="font_normal_body">客户地址</label>
56
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
57
+ condition="f_address like '%{}%'" placeholder='客户地址'>
58
+ </div>
59
+ <div class="col-sm-2 form-group">
60
+ <label class="font_normal_body" title="气表状态">气表状态</label>
61
+ <v-select :value.sync="model.f_table_state"
62
+ :search="false"
63
+ v-model="model.f_table_state"
64
+ :options='$parent.$parent.TableStates' placeholder='请选择'
65
+ condition="f_table_state in {}"
66
+ ></v-select>
67
+ </div>
68
+ <div class="col-sm-2 form-group">
69
+ <label class="font_normal_body">燃气表号</label>
70
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
71
+ condition="f_meternumber like '%{}%'" placeholder='燃气表号'>
72
+ </div>
73
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
74
+ <div class="col-sm-2 form-group">
75
+ <label for="startDate" class="font_normal_body">建档日期</label>
76
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
77
+ v-model="model.startDate"
78
+ :value.sync="model.startDate"
79
+ :format="'yyyy-MM-dd 00:00:00'"
80
+ :show-reset-button="true"
81
+ condition="f_createfile_date >= '{}'">
82
+ </datepicker>
83
+ </div>
84
+ <div class="col-sm-2 form-group">
85
+ <label for="endDate" class="font_normal_body">结束日期</label>
86
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
87
+ v-model="model.endDate"
88
+ :value.sync="model.endDate"
89
+ :format="'yyyy-MM-dd 23:59:59'"
90
+ :show-reset-button="true"
91
+ condition="f_createfile_date <= '{}'">
92
+ </datepicker>
93
+ </div>
94
+ <!-- <div class="col-sm-2 form-group">-->
95
+ <!-- <label class="font_normal_body">通气年限</label>-->
96
+ <!-- <input type="number" style="width:60%" class="input_search" v-model="model.diffAllyear1"-->
97
+ <!-- condition="diffAllyear >= {}" placeholder="最小值">-->
98
+ <!-- </div>-->
99
+ <!-- <div class="col-sm-2 form-group">-->
100
+ <!-- <label class="font_normal_body">&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>-->
101
+ <!-- <input type="number" style="width:60%" class="input_search" v-model="model.diffAllyear2"-->
102
+ <!-- condition="diffAllyear <= {}" placeholder="最大值">-->
103
+ <!-- </div>-->
104
+ <div class="col-sm-2 form-group">
105
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
106
+ <v-select :value.sync="model.f_residential_area"
107
+ class="select_list select"
108
+ enter-push
109
+ multiple = "true"
110
+ v-model="model.f_residential_area"
111
+ style="width: 60%"
112
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
113
+ close-on-select>
114
+ </v-select>
115
+ </div>
116
+ <div class="col-sm-2 form-group">
117
+ <label class="font_normal_body">气表品牌</label>
118
+ <v-select :value.sync="model.f_meter_brand"
119
+ v-model="model.f_meter_brand"
120
+ :options="$parent.$parent.meterbrands"
121
+ condition="f_meter_brand = '{}'"
122
+ close-on-select></v-select>
123
+ </div>
124
+ <div class="col-sm-2 form-group" >
125
+ <label class="font_normal_body">客户状态</label>
126
+ <v-select :value.sync="model.f_user_state"
127
+ v-model="model.f_user_state"
128
+ multiple
129
+ :options='$parent.$parent.userstates' placeholder='请选择'
130
+ condition="f_user_state in {}"
131
+ ></v-select>
132
+ </div>
133
+ <div class="col-sm-2 form-group" >
134
+ <label class="font_normal_body">设备类型</label>
135
+ <v-select :value.sync="model.f_devices_type"
136
+ v-model="model.f_devices_type"
137
+ :options='$parent.$parent.deviceTypes' placeholder='请选择'
138
+ condition="f_devices_type = '{}'"
139
+ close-on-select></v-select>
140
+ </div>
141
+ <div class="col-sm-2 form-group">
142
+ <label for="startDate" class="font_normal_body">开户日期</label>
143
+ <datepicker id="startDate2" placeholder="开始日期" style="width:60%"
144
+ v-model="model.startDate2"
145
+ :value.sync="model.startDate2"
146
+ :format="'yyyy-MM-dd 00:00:00'"
147
+ :show-reset-button="true"
148
+ condition="f_open_date >= '{}'">
149
+ </datepicker>
150
+ </div>
151
+ <div class="col-sm-2 form-group">
152
+ <label for="endDate" class="font_normal_body">开户日期</label>
153
+ <datepicker id="endDate2" placeholder="结束日期" style="width:60%"
154
+ v-model="model.endDate2"
155
+ :value.sync="model.endDate2"
156
+ :format="'yyyy-MM-dd 23:59:59'"
157
+ :show-reset-button="true"
158
+ condition="f_open_date <= '{}'">
159
+ </datepicker>
160
+ </div>
161
+ <div class="col-sm-2 form-group" >
162
+ <label class="font_normal_body">有无波纹管</label>
163
+ <v-select :value.sync="model.f_has_pepe"
164
+ v-model="model.f_has_pepe"
165
+ :options='$parent.$parent.haspipe' placeholder='请选择'
166
+ condition="f_has_pepe {}" close-on-select
167
+ ></v-select>
168
+ </div>
169
+ <div class="col-sm-2 form-group" >
170
+ <label class="font_normal_body">有无自闭阀</label>
171
+ <v-select :value.sync="model.f_is_zibifa"
172
+ v-model="model.f_is_zibifa"
173
+ :options='$parent.$parent.iszbf' placeholder='请选择'
174
+ condition="f_is_zibifa {}" close-on-select
175
+ ></v-select>
176
+ </div>
177
+ </div>
178
+ </div>
179
+ </criteria>
180
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
181
+ <template partial='head'>
182
+ <tr>
183
+ <th rowspan="2"><nobr>序号</nobr></th>
184
+ <th colspan="6"><nobr>用户信息</nobr></th>
185
+ <th colspan="7"><nobr>燃气表</nobr></th>
186
+ <th colspan="7"><nobr>建档信息</nobr></th>
187
+ <th colspan="4"><nobr>燃气报警装置</nobr></th>
188
+ <th colspan="4"><nobr>设备信息</nobr></th>
189
+ <th colspan="5"><nobr>燃气连接管</nobr></th>
190
+ <th colspan="8"><nobr>燃气计量装置</nobr></th>
191
+ <th colspan="6"><nobr>控制器设备</nobr></th>
192
+ <th colspan="7"><nobr>调压设备</nobr></th>
193
+ <th colspan="6"><nobr>安检信息</nobr></th>
194
+ <th rowspan="2"><nobr>备注</nobr></th>
195
+ </tr>
196
+
197
+ <tr>
198
+ <!-- 用户信息-->
199
+ <th><nobr>客户编号</nobr></th>
200
+ <th><nobr>客户名称</nobr></th>
201
+ <th><nobr>联系电话</nobr></th>
202
+ <th><nobr>小区名称</nobr></th>
203
+ <th><nobr>地址</nobr></th>
204
+ <th><nobr>客户状态</nobr></th>
205
+ <!--燃气表-->
206
+ <th><nobr>表品牌</nobr></th>
207
+ <th><nobr>表号</nobr></th>
208
+ <th><nobr>类型</nobr></th>
209
+ <th><nobr>气表状态</nobr></th>
210
+ <th><nobr>型号</nobr></th>
211
+ <th><nobr>左右表</nobr></th>
212
+ <th><nobr>安装位置</nobr></th>
213
+ <th><nobr>表安装日期</nobr></th>
214
+ <!--建档日期-->
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
+
223
+ <!--燃气报警装置-->
224
+ <th><nobr>报警器品牌</nobr></th>
225
+ <th><nobr>数量</nobr></th>
226
+ <th><nobr>生产日期</nobr></th>
227
+ <th><nobr>超期提醒</nobr></th>
228
+ <!--设备信息-->
229
+ <th><nobr>设备名称</nobr></th>
230
+ <th><nobr>数量</nobr></th>
231
+ <th><nobr>生产日期</nobr></th>
232
+ <th><nobr>超期提醒</nobr></th>
233
+ <!--燃气连接管-->
234
+ <th><nobr>有无不锈钢波纹管</nobr></th>
235
+ <th><nobr>数量</nobr></th>
236
+ <th><nobr>有无自闭阀</nobr></th>
237
+ <th><nobr>数量</nobr></th>
238
+ <!--燃气计量装置-->
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
+ <!--控制器设备-->
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
+
255
+ <!--调压设备-->
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
+ <!--安检信息-->
264
+ <th><nobr>安检日期</nobr></th>
265
+ <th><nobr>安检人员</nobr></th>
266
+ <th><nobr>用气总量</nobr></th>
267
+ <th><nobr>剩余气量</nobr></th>
268
+ <th><nobr>发现问题</nobr></th>
269
+ <th><nobr>整改日期</nobr></th>
270
+
271
+ </tr>
272
+ </template>
273
+ <template partial='body'>
274
+ <!--序号-->
275
+ <td style="text-align: center;" ><nobr>
276
+ {{$index + 1}}
277
+ </nobr></td>
278
+ <!--用户信息-->
279
+ <td style="text-align: center;">
280
+ <nobr>{{row.f_userinfo_code}}</nobr>
281
+ </td>
282
+ <td style="text-align: center;">
283
+ <nobr>{{row.f_user_name}}</nobr>
284
+ </td>
285
+ <td style="text-align: center;">
286
+ <nobr>{{row.f_user_phone}}</nobr>
287
+ </td>
288
+ <td style="text-align: center;">
289
+ <nobr>{{row.f_residential_area}}</nobr>
290
+ </td>
291
+ <td style="text-align: center;">
292
+ <nobr>{{row.f_address}}</nobr>
293
+ </td>
294
+ <td style="text-align: center;">
295
+ <nobr>{{row.f_user_state}}</nobr>
296
+ </td>
297
+
298
+ <!--燃气表-->
299
+ <td style="text-align: center;">
300
+ <nobr>{{row.f_meter_brand}}</nobr>
301
+ </td>
302
+ <td style="text-align: center;">
303
+ <nobr>{{row.f_meternumber}}</nobr>
304
+ </td>
305
+ <td style="text-align: center;">
306
+ <nobr>{{row.f_meter_type}}</nobr>
307
+ </td>
308
+ <td style="text-align: center;">
309
+ <nobr>{{row.f_table_state}}</nobr>
310
+ </td>
311
+ <td style="text-align: center;">
312
+ <nobr>{{row.f_meter_style}}</nobr>
313
+ </td>
314
+ <td style="text-align: center;">
315
+ <nobr>{{row.f_aroundmeter}}</nobr>
316
+ </td>
317
+ <td style="text-align: center;">
318
+ <nobr>{{row.f_position}}</nobr>
319
+ </td>
320
+ <td style="text-align: center;">
321
+ <nobr>{{row.f_install_date}}</nobr>
322
+ </td>
323
+
324
+ <!--建档信息-->
325
+ <td style="text-align: center;">
326
+ <nobr>{{row.f_createfile_date}}</nobr>
327
+ </td>
328
+ <td style="text-align: center;">
329
+ <nobr>{{row.f_contractdate}}</nobr>
330
+ </td>
331
+ <td style="text-align: center;">
332
+ <nobr>{{row.f_gas_date}}</nobr>
333
+ </td>
334
+ <td style="text-align: center;">
335
+ <nobr>{{row.f_install_person}}</nobr>
336
+ </td>
337
+ <td style="text-align: center;">
338
+ <nobr>{{row.f_gas_date}}</nobr>
339
+ </td>
340
+ <td style="text-align: center;">
341
+ <nobr>{{row.f_gas_person}}</nobr>
342
+ </td>
343
+ <td style="text-align: center;" :style="$parent.$parent.$parent.ventilationYear(row.diffallyear)">
344
+ <nobr>{{row.ventilation_years}}</nobr>
345
+ </td>
346
+
347
+
348
+ <!--燃气报警装置-->
349
+ <td style="text-align: center;">
350
+ <nobr>{{row.f_icgd_brand}}</nobr>
351
+ </td>
352
+ <td style="text-align: center;">
353
+ <nobr>{{row.f_icgd_num}}</nobr>
354
+ </td>
355
+ <td style="text-align: center;">
356
+ <nobr>{{row.f_icgd_prdate}}</nobr>
357
+ </td>
358
+ <td style="text-align: center;">
359
+ <nobr>{{$parent.$parent.$parent.formatTime(row.alarm_exp_date)}}</nobr>
360
+ </td>
361
+
362
+ <!--设备信息-->
363
+ <td style="text-align: center;">
364
+ <nobr>{{row.f_brand}}</nobr>
365
+ </td>
366
+ <td style="text-align: center;">
367
+ <nobr>{{row.f_devices_num}}</nobr>
368
+ </td>
369
+ <td style="text-align: center;">
370
+ <nobr>{{row.f_make_date}}</nobr>
371
+ </td>
372
+ <td style="text-align: center;">
373
+ <nobr>{{$parent.$parent.$parent.formatTime(row.f_expire_date)}}</nobr>
374
+ </td>
375
+
376
+ <!--燃气管连接-->
377
+ <td style="text-align: center;">
378
+ <nobr>{{row.f_has_pipe}}</nobr>
379
+ </td>
380
+ <td style="text-align: center;">
381
+ <nobr>{{row.f_pipe_num}}</nobr>
382
+ </td>
383
+ <td style="text-align: center;">
384
+ <nobr>{{row.f_is_zibifa}}</nobr>
385
+ </td>
386
+ <td style="text-align: center;">
387
+ <nobr>{{row.f_zibifa_num}}</nobr>
388
+ </td>
389
+
390
+ <!--燃气计量装置-->
391
+ <td style="text-align: center;">
392
+ <nobr>{{row.ranqi_brand}}</nobr>
393
+ </td>
394
+ <td style="text-align: center;">
395
+ <nobr>{{row.ranqi_devices_no}}</nobr>
396
+ </td>
397
+ <td style="text-align: center;">
398
+ <nobr>{{row.ranqi_equipment_type}}</nobr>
399
+ </td>
400
+ <td style="text-align: center;">
401
+ <nobr>{{row.ranqi_devices_model}}</nobr>
402
+ </td>
403
+ <td style="text-align: center;">
404
+ <nobr>{{row.f_gmd_lsnumber}}</nobr>
405
+ </td>
406
+ <td style="text-align: center;">
407
+ <nobr>{{row.ranqi_make_date}}</nobr>
408
+ </td>
409
+ <td style="text-align: center;" :class="$parent.$parent.$parent.formatTime(row.ranqi_exp_date).indexOf('已过期')!==-1? 'back-red' : 'back-blue'">
410
+ <nobr>{{$parent.$parent.$parent.formatTime(row.ranqi_exp_date)}}</nobr>
411
+ </td>
412
+ <td style="text-align: center;">
413
+ <nobr>
414
+ <span @click="$parent.$parent.$parent.dealmsg(row,row.ranqi_id,'燃气计量装置')"><a><b>变更记录</b></a></span>
415
+ </nobr>
416
+ </td>
417
+ <!--控制器设备-->
418
+ <td style="text-align: center;">
419
+ <nobr>{{row.control_brand}}</nobr>
420
+ </td>
421
+ <td style="text-align: center;">
422
+ <nobr>{{row.control_devices_no}}</nobr>
423
+ </td>
424
+ <td style="text-align: center;">
425
+ <nobr>{{row.control_devices_model}}</nobr>
426
+ </td>
427
+ <td style="text-align: center;">
428
+ <nobr>{{row.control_make_date}}</nobr>
429
+ </td>
430
+ <td style="text-align: center;" :class="$parent.$parent.$parent.formatTime(row.control_exp_date).indexOf('已过期')!==-1? 'back-red' : 'back-blue'">
431
+ <nobr>{{$parent.$parent.$parent.formatTime(row.control_exp_date)}}</nobr>
432
+ </td>
433
+ <td style="text-align: center;">
434
+ <nobr>
435
+ <span @click="$parent.$parent.$parent.dealmsg(row,row.control_id,'控制器设备')"><a><b>变更记录</b></a></span>
436
+ </nobr>
437
+ </td>
438
+ <!--调压设备-->
439
+ <td style="text-align: center;">
440
+ <nobr>{{row.tiaoya_brand}}</nobr>
441
+ </td>
442
+ <td style="text-align: center;">
443
+ <nobr>{{row.tiaoya_equipment_type}}</nobr>
444
+ </td>
445
+ <td style="text-align: center;">
446
+ <nobr>{{row.tiaoya_devices_model}}</nobr>
447
+ </td>
448
+ <td style="text-align: center;">
449
+ <nobr>{{row.tiaoya_install_position}}</nobr>
450
+ </td>
451
+ <td style="text-align: center;">
452
+ <nobr>{{row.tiaoya_make_date}}</nobr>
453
+ </td>
454
+ <td style="text-align: center;" :class="$parent.$parent.$parent.formatTime(row.tiaoya_exp_date).indexOf('已过期')!==-1? 'back-red' : 'back-blue'">
455
+ <nobr>{{$parent.$parent.$parent.formatTime(row.tiaoya_exp_date)}}</nobr>
456
+ </td>
457
+ <td style="text-align: center;">
458
+ <nobr>
459
+ <span @click="$parent.$parent.$parent.dealmsg(row,row.tiaoya_id,'调压设备')"><a><b>变更记录</b></a></span>
460
+ </nobr>
461
+ </td>
462
+
463
+ <!--安检信息-->
464
+ <td style="text-align: center;">
465
+ <nobr>{{row.f_upload_date}}</nobr>
466
+ </td>
467
+ <td style="text-align: center;">
468
+ <nobr>{{row.f_checker_name}}</nobr>
469
+ </td>
470
+ <td style="text-align: center;">
471
+ <nobr>{{row.f_total_gas}}</nobr>
472
+ </td>
473
+ <td style="text-align: center;">
474
+ <nobr>{{row.f_balance_gas}}</nobr>
475
+ </td>
476
+ <td style="text-align: center;">
477
+ <nobr>{{row.f_defect_content}}</nobr>
478
+ </td>
479
+ <td style="text-align: center;">
480
+ <nobr>{{row.f_repair_date}}</nobr>
481
+ </td>
482
+
483
+ <!--备注-->
484
+ <td style="text-align: center;">
485
+ <nobr>{{row.f_comments}}</nobr>
486
+ </td>
487
+
488
+ </template>
489
+ <template partial='foot'>
490
+ </template>
491
+ </data-grid>
492
+ </criteria-paged>
493
+
494
+ </div>
495
+ </div>
496
+ </div>
497
+ <modal :show.sync="filechangeHistoryShow" v-ref:filechangeHistoryShow backdrop="false" class="filechangeHistoryShow">
498
+ <header slot="modal-header" class="modal-header" style="text-align: center">
499
+ <h4 class="modal-title">{{titles}}</h4>
500
+ </header>
501
+ <article slot="modal-body" class="modal-body">
502
+ <data-grid class="list_area table_sy" :model="filechangeHistorys" partial='list'>
503
+ <template partial='head'>
504
+ <th><nobr>序号</nobr></th>
505
+ <th><nobr>更改内容</nobr></th>
506
+ <th><nobr>更改前</nobr></th>
507
+ <th><nobr>更改后</nobr></th>
508
+ <th><nobr>变更时间</nobr></th>
509
+ </template>
510
+ <template partial='body'>
511
+ <td >{{$index+1}}</td>
512
+ <td><nobr>{{row.f_field_name}}</nobr></td>
513
+ <td><nobr>{{row.f_used_content}}</nobr></td>
514
+ <td><nobr>{{row.f_new_content}}</nobr></td>
515
+ <td><nobr>{{row.f_submit_date}}</nobr></td>
516
+ </template>
517
+ </data-grid>
518
+ </article>
519
+ <footer slot="modal-footer" class="modal-footer">
520
+ <button type="button" class="btn btn-default" @click='filechangeHistoryShow = false'>关闭</button>
521
+ </footer>
522
+ </modal>
523
+ </div>
524
+ </template>
525
+
526
+ <script>
527
+ import {HttpResetClass, PagedList} from 'vue-client'
528
+ import defaultPrint from '../../components/sale/config/DefaultPrint'
529
+ import exportConfig from '../../components/sale/config/exportConfig'
530
+
531
+ let readySomething = async function (self) {
532
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
533
+ }
534
+ let readyGen = async function (self) {
535
+ await self.$MagLoadParams.loadParam()
536
+ self.initParams()
537
+ }
538
+ export default {
539
+ title: '非民用用气设备查询',
540
+ data() {
541
+ return {
542
+ titles:'',
543
+ other:[],
544
+ footer:[],
545
+ model: new PagedList('rs/sql/fmyGasDeviceQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_userinfo_code desc'`}),
546
+ criteriaShow: false,
547
+ orgCondtionStr: '',
548
+ modelval: [],
549
+ printshow: false,
550
+ all: false,
551
+ fields: {},
552
+ //排序
553
+ orderitem:'f_userinfo_code desc',
554
+ orderFields: {
555
+ f_operate_date: 'no'
556
+ },
557
+ //默认打印列
558
+ defaultfield: [],
559
+ config: {
560
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_user_state']
561
+ },
562
+ balance2:'',
563
+ thead: '',
564
+ tfoot: '',
565
+ area: [],
566
+ //合计数据
567
+ sumsmodel: {},
568
+ initres: {
569
+ org:[this.$login.f.orgid],
570
+ dep:[],
571
+ user:[],
572
+ },
573
+ userdetail: {
574
+ show: false,
575
+ f_userinfo_code: '',
576
+ f_filialeids: ''
577
+ },
578
+ filechangeHistorys: {rows:[]},
579
+ filechangeHistoryShow: false,
580
+ show:false,
581
+ rowdata:{},
582
+ meterInfo:{},
583
+ deviceInfo:{},
584
+ condition2:'',
585
+
586
+ meterbrands: [],
587
+ prices: [],
588
+ deviceTypes: this.$appdata.getParam('设备类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备类型')] : [],
589
+
590
+ //小区
591
+ residentialArea: [],
592
+ allorgid:[],
593
+ f_filialeid: this.$login.f.f_orgid,
594
+ haspipe: [{label: '有', value: ` = '有'`},{label: '无', value: `!= '有'`}],
595
+ iszbf: [{label: '有', value: ` = '有'`},{label: '无', value: `!= '有'`}]
596
+ }
597
+ },
598
+ ready() {
599
+ readyGen(this)
600
+ this.getaddress()
601
+ readySomething(this).then(() => {
602
+ this.$emit('ready')
603
+ }).catch((error) => {
604
+ this.$emit('error', error)
605
+ })
606
+ },
607
+ methods: {
608
+ async dealmsg(row,id,type){
609
+ this.titles = type+'变更记录'
610
+ if (type==='燃气连接管'){
611
+ type = '燃气计量装置连接管'
612
+ }
613
+ this.filechangeHistorys.rows = []
614
+ let data = {
615
+ tablename: `t_infochange`,
616
+ items: '*',
617
+ condition: `1=1`,
618
+ orderitem: 'f_change_id desc'
619
+ }
620
+ let urlParam = 'rs/sql/singleTable_OrderBy'
621
+ if (id){
622
+ data.condition = `1=1 and f_table_id = ${id} and f_field_name like '%${type}%'`
623
+ let res = await this.$resetpost(urlParam, {data: data}, {rejectMsg: '获取变更记录出错', resolveMsg: null})
624
+ if (res){
625
+ this.filechangeHistorys.rows = res.data
626
+ }
627
+ }else{
628
+ if (type === '建档信息'||type === '用户信息'){
629
+ urlParam = 'rs/sql/changeuserquery'
630
+ data = {
631
+ condition: ` 1=1 and f_orgid in ('${this.$login.f.orgid}') and f_userinfo_code = '${row.f_userinfo_code}' and f_table_ename != 't_devices'`,
632
+ orderitem: "f_operate_date desc"
633
+ }
634
+ let res = await this.$resetpost(urlParam, {data: data}, {rejectMsg: '获取变更记录出错', resolveMsg: null})
635
+ if (res){
636
+ this.filechangeHistorys.rows = res.data
637
+ }
638
+ }
639
+ }
640
+ this.filechangeHistoryShow =true
641
+ },
642
+ ventilationYear(diffAllyear){
643
+ console.log("diffAllyear?",diffAllyear)
644
+ if ( 1<= diffAllyear && diffAllyear <= 2 ){
645
+ return {
646
+ color: 'green !important'
647
+ }
648
+ }else if (3<= diffAllyear && diffAllyear <=4){
649
+ return {
650
+ color: 'orange !important'
651
+ }
652
+ }else if (5<= diffAllyear && diffAllyear <=8){
653
+ return {
654
+ color: 'red !important'
655
+ }
656
+ }else if (diffAllyear>8){
657
+ return {
658
+ color: 'crimson !important'
659
+ }
660
+ }else {
661
+ return {
662
+
663
+ }
664
+ }
665
+ },
666
+ formatTime(expireTime){
667
+ if (expireTime){
668
+ let formats = {
669
+ 'year': '%n%年',
670
+ 'month': '%n%月',
671
+ 'day': '%n%天',
672
+ };
673
+ let now = new Date().getTime()
674
+ let expireTimes = new Date(expireTime).getTime()
675
+ if (now < expireTimes){
676
+ return expireTime
677
+ }else {
678
+ let seconds = Math.floor((now - expireTimes) / 1000)
679
+ let minutes = Math.floor(seconds / 60)
680
+ let hours = Math.floor(minutes / 60)
681
+ let days = Math.floor(hours / 24)
682
+ let months = Math.floor(days / 30)
683
+ let years = Math.floor(months / 12)
684
+
685
+ let diffType = ''
686
+ let diffValue = 0
687
+ if (years > 0) {
688
+ diffType = 'year'
689
+ diffValue = years
690
+ } else {
691
+ if (months > 0) {
692
+ diffType = 'month'
693
+ diffValue = months
694
+ } else {
695
+ if (days > 0) {
696
+ diffType = 'day'
697
+ diffValue = days
698
+ }
699
+ }
700
+ }
701
+ return '已过期'+formats[diffType].replace('%n%', diffValue);
702
+ }
703
+ }else {
704
+ return ''
705
+ }
706
+ },
707
+ initParams() {
708
+ // 初始化气表品牌
709
+ let brandArr = []
710
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
711
+ let temp = {}
712
+ temp.label = item.label
713
+ temp.value = item.value.f_meter_brand
714
+ brandArr.push(temp)
715
+ })
716
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
717
+ //初始化气表价格
718
+ this.prices = this.$MagGetSaleParam.getPrices();
719
+ },
720
+ async getaddress(){
721
+ console.log('开始获取小区')
722
+ let HttpReset = new HttpResetClass()
723
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
724
+ data: {
725
+ condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
726
+ }
727
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
728
+ console.log('小区',data)
729
+ let house = []
730
+ for (let row of data.data){
731
+ console.log('开始保存小区')
732
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
733
+ }
734
+ this.residentialArea = house
735
+ },
736
+ async downloadFiles() {
737
+ if (this.condition2) {
738
+ let data = {
739
+ sqlName: 'fmyGasDeviceQuery',
740
+ condition: this.condition2,
741
+ fileName: '非民用用气设备查询'
742
+ }
743
+ let HttpReset = new HttpResetClass()
744
+ let res = await HttpReset.load('POST', 'rs/deviceExport/gasDevices', {
745
+ data: data
746
+ }, {resolveMsg: null, rejectMsg: null})
747
+ if (res){
748
+ let downurl = 'rs/deviceExport/download?filename=非民用用气设备查询.xlsx';
749
+ this.$resetget(downurl, {}).then(res => {
750
+ var link = document.createElement('a');
751
+ link.target = "_blank"
752
+ link.href = downurl;
753
+ link.setAttribute("download", "非民用用气设备查询.xlsx"); //指定下载后的文件名,防跳转
754
+ document.body.appendChild(link);
755
+ link.click();
756
+ })
757
+ }
758
+ } else {
759
+ this.$showAlert('查询条件为空,请查询后再导出', 'warning', 3000)
760
+ return
761
+ }
762
+ },
763
+ //把数据库查询数据转换为下拉数据
764
+ calculate(rows){
765
+ let data = []
766
+ rows.forEach((row, n) => {
767
+ data[n] = {label: row.f_residential_area, value: row.id}
768
+ })
769
+ return data
770
+ },
771
+ search(){
772
+ this.$refs.paged.$refs.cri.search()
773
+ },
774
+ cancel(obj) {
775
+ this.show = false
776
+ },
777
+ showmsg(obj){
778
+
779
+ this.rowdata=obj
780
+ this.show=true
781
+ },
782
+ selfSearch(args) {
783
+ this.area = this.$refs.paged.$refs.cri.model.f_residential_area
784
+ console.log("=====小区model绑定====",this.area)
785
+ if(this.area.length !== 0){
786
+ let str = JSON.stringify(this.area)
787
+ str = str.replace(/"/g,`'`)
788
+ str = str.replace(/\[/g,``)
789
+ str = str.replace(/\]/g,``)
790
+ console.log("=====小区model22222222222绑定====",str)
791
+ //查询多个小区时条件
792
+ args.condition += ` and f_residential_area in ( ${str} )`
793
+ }
794
+ if (!this.orgCondtionStr) {
795
+ args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
796
+ } else {
797
+ args.condition = `${args.condition}` + this.orgCondtionStr
798
+ }
799
+ this.condition2 = args.condition
800
+ this.model.search(args.condition, args.model)
801
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
802
+ console.log('合计字段', this.sumsmodel)
803
+ },
804
+ clear() {
805
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
806
+ this.$refs.paged.$refs.cri.model[key] = []
807
+ })
808
+ },
809
+ hidden() {
810
+ this.criteriaShow = !this.criteriaShow
811
+ },
812
+ getRes(obj) {
813
+ this.orgCondtionStr = obj
814
+ },
815
+ stamp() {
816
+ this.all = false
817
+ //默认选择要打印的列
818
+ this.modelval = defaultPrint.config
819
+ this.fields = this.getfield
820
+ console.log('所有打印字段', this.fields)
821
+ this.printshow = true
822
+ this.put()
823
+ },
824
+ print() {
825
+ this.$refs.print.PrintAsFile()
826
+ this.printshow = false
827
+ },
828
+ close() {
829
+ this.printshow = false
830
+ },
831
+ // 对选择的列进行排序
832
+ sortModelval() {
833
+ let sortModel = []
834
+ Object.keys(this.fields).forEach((key) => {
835
+ if (this.modelval.includes(key)) {
836
+ sortModel.push(key)
837
+ }
838
+ })
839
+ this.modelval = sortModel
840
+ console.log('选择的打印的字段', this.modelval)
841
+ },
842
+ dblclick(row, index) {
843
+ console.log('双击之后数据', row, index)
844
+ this.userdetail.show = true
845
+ this.userdetail.f_userinfo_code = row.f_userinfo_code
846
+ this.userdetail.f_filialeids = row.f_filialeids
847
+ },
848
+ sort (field, rule) {
849
+ // 将所有排序方式设为不排序,实现相互排斥
850
+ for (let key in this.orderFields) {
851
+ if (key === field) {
852
+ this.orderFields[key] = rule
853
+ } else {
854
+ this.orderFields[key] = 'no'
855
+ }
856
+ }
857
+ // 如果新规则不排序,还原为默认排序
858
+ if (rule === 'no') {
859
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
860
+ } else {
861
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
862
+ }
863
+
864
+ this.search()
865
+ }
866
+ },
867
+
868
+ watch: {
869
+ 'all'(val) {
870
+ if (val) {
871
+ this.modelval = this.bodyData
872
+ } else {
873
+ this.modelval = defaultPrint.config
874
+ this.put()
875
+ }
876
+ },
877
+ 'modelval.length'() {
878
+ this.put()
879
+ },
880
+ 'orgCondtionStr'(val) {
881
+ let res = val.match(/'(.*?)'/)
882
+ console.log('正则提取:',res && res[1])
883
+ if (res) {
884
+ this.f_filialeid = res[1]
885
+ if(res.input !=null){
886
+ let resorgid = res.input.substring(res.input.indexOf("'"));
887
+ if(resorgid!= null && resorgid!=''){
888
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
889
+ // resorgid = resorgid.replaceAll("'","");
890
+ resorgid = resorgid.replace(/'/g,"");
891
+ this.allorgid = resorgid.split(",")
892
+ }
893
+ }
894
+ }
895
+ },
896
+ },
897
+ computed: {
898
+ authArr () {
899
+ return this.$login.r ? this.$login.r : []
900
+ },
901
+
902
+ getCondition() {
903
+ return {condition: this.condition2,orderitem:this.orderitem}
904
+ },
905
+ getfield() {
906
+ let data = {}
907
+ this.bodyData.forEach((value, index) => {
908
+ data[this.bodyData[index]] = this.headData[index]
909
+ })
910
+ //合计字段打印
911
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
912
+ if (this.sumsmodel) {
913
+ Object.keys(this.sumsmodel).forEach((key) => {
914
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
915
+ })
916
+ } else {
917
+ this.tfoot += '暂无'
918
+ }
919
+ this.tfoot += '</th></tr>'
920
+ return data
921
+ },
922
+ getExportField() {
923
+ return exportConfig.userConfig
924
+ },
925
+ addressstate() {
926
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('地址状态')]
927
+ }
928
+ }
929
+ }
930
+ </script>
931
+ <style lang="less">
932
+ .filechangeHistoryShow {
933
+ td {
934
+ text-align: center !important;
935
+ }
936
+ }
937
+ .back-red{ /* 红色背景 */
938
+ color: #df1335 !important;
939
+ }
940
+ .back-blue{ /* 蓝色背景 */
941
+
942
+ }
943
+ </style>
944
+