manage-client 4.0.21 → 4.0.23

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 (39) hide show
  1. package/.gradle/8.5/checksums/checksums.lock +0 -0
  2. package/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/.gradle/8.5/dependencies-accessors/gc.properties +0 -0
  4. package/.gradle/8.5/executionHistory/executionHistory.bin +0 -0
  5. package/.gradle/8.5/executionHistory/executionHistory.lock +0 -0
  6. package/.gradle/8.5/fileChanges/last-build.bin +0 -0
  7. package/.gradle/8.5/fileHashes/fileHashes.bin +0 -0
  8. package/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
  9. package/.gradle/8.5/gc.properties +0 -0
  10. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  11. package/.gradle/buildOutputCleanup/cache.properties +2 -0
  12. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  13. package/.gradle/file-system.probe +0 -0
  14. package/.gradle/vcs-1/gc.properties +0 -0
  15. package/package.json +1 -1
  16. package/src/filiale/fugou/WebHandplanQuery.vue +1016 -0
  17. package/src/filiale/fugou/sale.js +4 -0
  18. package/src/filiale/tongchuan/ChangeMeterQuery.vue +702 -0
  19. package/src/filiale/tongchuan/ChangeUserQuery.vue +395 -0
  20. package/src/filiale/tongchuan/ChargeQuery.vue +7 -4
  21. package/src/filiale/tongchuan/DeviceQuery.vue +4 -2
  22. package/src/filiale/tongchuan/DisableQuery.vue +523 -0
  23. package/src/filiale/tongchuan/FillCardQuery.vue +573 -0
  24. package/src/filiale/tongchuan/FillGasQuery.vue +2 -2
  25. package/src/filiale/tongchuan/FmyGasDeviceQuery.vue +870 -0
  26. package/src/filiale/tongchuan/GasDeviceQuery.vue +982 -0
  27. package/src/filiale/tongchuan/HandplanQuery.vue +2 -1
  28. package/src/filiale/tongchuan/PriceChangeQuery.vue +6 -3
  29. package/src/filiale/tongchuan/ReverseQuery.vue +450 -0
  30. package/src/filiale/tongchuan/UserDeviceQuery.vue +4 -2
  31. package/src/filiale/tongchuan/UserQuery.vue +2 -1
  32. package/src/filiale/tongchuan/gasPriceQuery.vue +381 -0
  33. package/src/filiale/tongchuan/sale.js +36 -1
  34. package/src/filiale/tongchuan/sellingChargePrice.vue +714 -0
  35. package/src/filiale/yangchun/UserQuery.vue +26 -0
  36. package/src/filiale/yangchun/config/exportConfig.js +2 -1
  37. package/src/filiale/jinbin/exportConfig.js +0 -1110
  38. package/src/filiale/jinbin/sale/businessquery/ChargeQuery.vue +0 -1372
  39. package/src/filiale/jinbin/sale.js +0 -7
@@ -0,0 +1,982 @@
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
+ <export-excel :data="$parent.$parent.getCondition"
49
+ :field="$parent.$parent.getExportField"
50
+ sqlurl="rs/easyExcel/gasDeviceExport" sql-name="myGasDeviceQuery" template-name='民用用气设备查询'
51
+ :choose-col="true"></export-excel>
52
+ <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>
53
+ </div>
54
+ </div>
55
+ <div class="row" v-show="$parent.$parent.criteriaShow">
56
+
57
+ <div class="col-sm-2 form-group">
58
+ <label class="font_normal_body">身份证号</label>
59
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"
60
+ condition="f_idnumber like '%{}%'" placeholder="身份证号">
61
+ </div>
62
+ <div class="col-sm-2 form-group">
63
+ <label class="font_normal_body">客户地址</label>
64
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
65
+ condition="f_address like '%{}%'" placeholder='客户地址'>
66
+ </div>
67
+ <div class="col-sm-2 form-group">
68
+ <label class="font_normal_body">燃气表号</label>
69
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
70
+ condition="f_meternumber = '{}'" placeholder='燃气表号'>
71
+ </div>
72
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
73
+ <div class="col-sm-2 form-group">
74
+ <label for="startDate" class="font_normal_body">建档日期</label>
75
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
76
+ v-model="model.startDate"
77
+ :value.sync="model.startDate"
78
+ :format="'yyyy-MM-dd 00:00:00'"
79
+ :show-reset-button="true"
80
+ condition="f_createfile_date >= '{}'">
81
+ </datepicker>
82
+ </div>
83
+ <div class="col-sm-2 form-group">
84
+ <label for="endDate" class="font_normal_body">结束日期</label>
85
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
86
+ v-model="model.endDate"
87
+ :value.sync="model.endDate"
88
+ :format="'yyyy-MM-dd 23:59:59'"
89
+ :show-reset-button="true"
90
+ condition="f_createfile_date <= '{}'">
91
+ </datepicker>
92
+ </div>
93
+ <div class="col-sm-2 form-group">
94
+ <label class="font_normal_body">通气年限</label>
95
+ <input type="number" style="width:60%" class="input_search" v-model="model.diffAllyear1"
96
+ condition="diffAllyear >= {}" placeholder="最小值">
97
+ </div>
98
+ <div class="col-sm-2 form-group">
99
+ <label class="font_normal_body">&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
100
+ <input type="number" style="width:60%" class="input_search" v-model="model.diffAllyear2"
101
+ condition="diffAllyear <= {}" placeholder="最大值">
102
+ </div>
103
+ <div class="col-sm-2 form-group">
104
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
105
+ <v-select :value.sync="model.f_residential_area"
106
+ class="select_list select"
107
+ enter-push
108
+ multiple = "true"
109
+ v-model="model.f_residential_area"
110
+ style="width: 60%"
111
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
112
+ close-on-select>
113
+ </v-select>
114
+ </div>
115
+ <div class="col-sm-2 form-group" >
116
+ <label class="font_normal_body">设备类型</label>
117
+ <v-select :value.sync="model.f_devices_type"
118
+ :multiple="true"
119
+ v-model="model.f_devices_type"
120
+ :options='$parent.$parent.deviceTypes' placeholder='请选择'
121
+ condition="f_devices_type = '{}'"
122
+ close-on-select></v-select>
123
+ </div>
124
+ <div class="col-sm-2 form-group" >
125
+ <label class="font_normal_body">设备品牌</label>
126
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_brand"
127
+ condition="f_brand like '%{}%'" placeholder='设备品牌'>
128
+ </div>
129
+ </div>
130
+ </div>
131
+ </criteria>
132
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
133
+ <template partial='head'>
134
+ <tr>
135
+ <th rowspan="2"><nobr>序号</nobr></th>
136
+ <th colspan="5"><nobr>用户信息</nobr></th>
137
+ <th colspan="8"><nobr>燃气表</nobr></th>
138
+ <th colspan="7"><nobr>建档信息</nobr></th>
139
+ <th colspan="7"><nobr>燃气报警装置</nobr></th>
140
+ <th colspan="4"><nobr>燃气灶具</nobr></th>
141
+ <th colspan="5"><nobr>燃气灶具连接管</nobr></th>
142
+ <th colspan="5"><nobr>燃气热水器</nobr></th>
143
+ <th colspan="5"><nobr>燃气热水器连接管</nobr></th>
144
+ <th colspan="5"><nobr>燃气壁挂炉</nobr></th>
145
+ <th colspan="5"><nobr>燃气壁挂炉连接管</nobr></th>
146
+ <th colspan="5"><nobr>燃气保险信息</nobr></th>
147
+ <th colspan="2"><nobr>初次充值信息</nobr></th>
148
+ <th colspan="2"><nobr>每年充值</nobr></th>
149
+ <th colspan="7"><nobr>安检信息</nobr></th>
150
+ <th rowspan="2"><nobr>备注</nobr></th>
151
+ </tr>
152
+
153
+ <tr>
154
+ <!--用户信息-->
155
+ <th><nobr>小区名称</nobr></th>
156
+ <th><nobr>户主姓名</nobr></th>
157
+ <th><nobr>身份证号</nobr></th>
158
+ <th><nobr>客户地址</nobr></th>
159
+ <th><nobr>联系电话</nobr></th>
160
+ <!--燃气表-->
161
+ <th><nobr>品牌</nobr></th>
162
+ <th><nobr>表号</nobr></th>
163
+ <th><nobr>类型</nobr></th>
164
+ <th><nobr>型号</nobr></th>
165
+ <th><nobr>表向</nobr></th>
166
+ <th><nobr>生产年月</nobr></th>
167
+ <th><nobr>超期提醒</nobr></th>
168
+ <th><nobr>变更记录</nobr></th>
169
+ <!--建档信息-->
170
+ <th><nobr>建档日期</nobr></th>
171
+ <th><nobr>供用气合同编号</nobr></th>
172
+ <th><nobr>通气日期</nobr></th>
173
+ <th><nobr>通气人员</nobr></th>
174
+ <th><nobr>通气年限</nobr></th>
175
+ <th><nobr>防盗卡号</nobr></th>
176
+ <th><nobr>变更记录</nobr></th>
177
+ <!--燃气报警装置-->
178
+ <th><nobr>独立式可燃气体探测器品牌</nobr></th>
179
+ <th><nobr>接头型号</nobr></th>
180
+ <th><nobr>生产日期</nobr></th>
181
+ <th><nobr>燃气切断电磁阀品牌</nobr></th>
182
+ <th><nobr>生产日期</nobr></th>
183
+ <th><nobr>超期提醒</nobr></th>
184
+ <th><nobr>变更记录</nobr></th>
185
+ <th><nobr>品牌</nobr></th>
186
+ <th><nobr>生产日期</nobr></th>
187
+ <th><nobr>超期提醒</nobr></th>
188
+ <th><nobr>变更记录</nobr></th>
189
+ <th><nobr>材质</nobr></th>
190
+ <th><nobr>长度(米)</nobr></th>
191
+ <th><nobr>生产日期</nobr></th>
192
+ <th><nobr>超期提醒</nobr></th>
193
+ <th><nobr>变更记录</nobr></th>
194
+ <th><nobr>品牌</nobr></th>
195
+ <th><nobr>备案日期</nobr></th>
196
+ <th><nobr>生产日期</nobr></th>
197
+ <th><nobr>超期提醒</nobr></th>
198
+ <th><nobr>变更记录</nobr></th>
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
+ <th><nobr>备案日期</nobr></th>
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
+ <th><nobr>充值时间</nobr></th>
223
+ <th><nobr>金额(元)</nobr></th>
224
+ <th><nobr>安检日期</nobr></th>
225
+ <th><nobr>安检人员</nobr></th>
226
+ <th><nobr>用气总量</nobr></th>
227
+ <th><nobr>总充值额</nobr></th>
228
+ <th><nobr>剩余气量</nobr></th>
229
+ <th><nobr>发现问题</nobr></th>
230
+ <th><nobr>整改日期</nobr></th>
231
+ </tr>
232
+ </template>
233
+ <template partial='body'>
234
+ <!--序号-->
235
+ <td style="text-align: center;" ><nobr>
236
+ {{$index + 1}}
237
+ </nobr></td>
238
+ <!--用户信息-->
239
+ <td style="text-align: center;">
240
+ <nobr>{{row.f_residential_area}}</nobr>
241
+ </td>
242
+ <td style="text-align: center;">
243
+ <nobr>{{row.f_user_name}}</nobr>
244
+ </td>
245
+ <td style="text-align: center;">
246
+ <nobr>{{row.f_idnumber}}</nobr>
247
+ </td>
248
+ <td style="text-align: center;">
249
+ <nobr>{{row.f_address}}</nobr>
250
+ </td>
251
+ <td style="text-align: center;">
252
+ <nobr>{{row.f_user_phone}}</nobr>
253
+ </td>
254
+
255
+ <!--燃气表-->
256
+ <td style="text-align: center;">
257
+ <nobr>{{row.f_meter_brand}}</nobr>
258
+ </td>
259
+ <td style="text-align: center;">
260
+ <nobr>{{row.f_meternumber}}</nobr>
261
+ </td>
262
+ <td style="text-align: center;">
263
+ <nobr>{{row.f_meter_type}}</nobr>
264
+ </td>
265
+ <td style="text-align: center;">
266
+ <nobr>{{row.f_meter_style}}</nobr>
267
+ </td>
268
+ <td style="text-align: center;">
269
+ <nobr>{{row.f_aroundmeter}}</nobr>
270
+ </td>
271
+ <td style="text-align: center;">
272
+ <nobr>{{row.f_factory_date}}</nobr>
273
+ </td>
274
+ <td style="text-align: center;" :class="$parent.$parent.$parent.formatTime(row.f_scrap_date).indexOf('已过期')!==-1? 'back-red' : 'back-blue'">
275
+ <nobr>{{$parent.$parent.$parent.formatTime(row.f_scrap_date)}}</nobr>
276
+ </td>
277
+ <td style="text-align: center;">
278
+ <nobr>
279
+ <span @click="$parent.$parent.$parent.dealmsg(row,'','燃气表')"><a><b>变更记录</b></a></span>
280
+ </nobr>
281
+ </td>
282
+
283
+ <!--建档信息-->
284
+ <td style="text-align: center;">
285
+ <nobr>{{row.f_createfile_date}}</nobr>
286
+ </td>
287
+ <td style="text-align: center;">
288
+ <nobr>{{row.f_contract_id}}</nobr>
289
+ </td>
290
+ <td style="text-align: center;">
291
+ <nobr>{{row.f_gas_date}}</nobr>
292
+ </td>
293
+ <td style="text-align: center;">
294
+ <nobr>{{row.f_gas_person}}</nobr>
295
+ </td>
296
+ <td style="text-align: center;" :style="$parent.$parent.$parent.ventilationYear(row.diffallyear)">
297
+ <nobr>{{row.ventilation_years}}</nobr>
298
+ </td>
299
+ <td style="text-align: center;">
300
+ <nobr>{{row.f_defendcard }}|{{ row.f_defendcard_two}}</nobr>
301
+ </td>
302
+ <td style="text-align: center;">
303
+ <nobr>
304
+ <span @click="$parent.$parent.$parent.dealmsg(row,'','建档信息')"><a><b>变更记录</b></a></span>
305
+ </nobr>
306
+ </td>
307
+
308
+ <!--燃气报警装置-->
309
+ <td style="text-align: center;">
310
+ <nobr>{{row.f_icgd_brand}}</nobr>
311
+ </td>
312
+ <td style="text-align: center;">
313
+ <nobr>{{row.f_conn_model}}</nobr>
314
+ </td>
315
+ <td style="text-align: center;">
316
+ <nobr>{{row.f_icgd_prdate}}</nobr>
317
+ </td>
318
+ <td style="text-align: center;">
319
+ <nobr>{{row.f_gssv_brand}}</nobr>
320
+ </td>
321
+ <td style="text-align: center;">
322
+ <nobr>{{row.f_gssv_prdate}}</nobr>
323
+ </td>
324
+ <td style="text-align: center;" :class="$parent.$parent.$parent.formatTime(row.alarm_exp_date).indexOf('已过期')!==-1? 'back-red' : 'back-blue'">
325
+ <nobr>{{$parent.$parent.$parent.formatTime(row.alarm_exp_date)}}</nobr>
326
+ </td>
327
+ <td style="text-align: center;">
328
+ <nobr>
329
+ <span @click="$parent.$parent.$parent.dealmsg(row,row.alarm_id,'燃气报警装置')"><a><b>变更记录</b></a></span>
330
+ </nobr>
331
+ </td>
332
+
333
+ <!--燃气灶具-->
334
+ <td style="text-align: center;">
335
+ <nobr>{{row.zaoju_brand}}</nobr>
336
+ </td>
337
+ <td style="text-align: center;">
338
+ <nobr>{{row.zaoju_make_date}}</nobr>
339
+ </td>
340
+ <td style="text-align: center;" :class="$parent.$parent.$parent.formatTime(row.zaoju_exp_date).indexOf('已过期')!==-1? 'back-red' : 'back-blue'">
341
+ <nobr>{{$parent.$parent.$parent.formatTime(row.zaoju_exp_date)}}</nobr>
342
+ </td>
343
+ <td style="text-align: center;">
344
+ <nobr>
345
+ <span @click="$parent.$parent.$parent.dealmsg(row,row.zaoju_id,'燃气灶具')"><a><b>变更记录</b></a></span>
346
+ </nobr>
347
+ </td>
348
+
349
+
350
+ <!--燃气灶具连接管-->
351
+ <td style="text-align: center;">
352
+ <nobr>{{row.zaoju_pipe_material}}</nobr>
353
+ </td>
354
+ <td style="text-align: center;">
355
+ <nobr>{{row.zaoju_pipe_length}}</nobr>
356
+ </td>
357
+ <td style="text-align: center;">
358
+ <nobr>{{row.zaoju_pipe_prdate}}</nobr>
359
+ </td>
360
+ <td style="text-align: center;" :class="$parent.$parent.$parent.formatTime(row.zaoju_pipe_expdate).indexOf('已过期')!==-1? 'back-red' : 'back-blue'">
361
+ <nobr>{{$parent.$parent.$parent.formatTime(row.zaoju_pipe_expdate)}}</nobr>
362
+ </td>
363
+ <td style="text-align: center;">
364
+ <nobr>
365
+ <span @click="$parent.$parent.$parent.dealmsg(row,row.zaoju_id,'燃气灶具连接管')"><a><b>变更记录</b></a></span>
366
+ </nobr>
367
+ </td>
368
+
369
+ <!--燃气热水器-->
370
+ <td style="text-align: center;">
371
+ <nobr>{{row.reshui_brand}}</nobr>
372
+ </td>
373
+ <td style="text-align: center;">
374
+ <nobr>{{row.reshui_filing_date}}</nobr>
375
+ </td>
376
+ <td style="text-align: center;">
377
+ <nobr>{{row.reshui_make_date}}</nobr>
378
+ </td>
379
+ <td style="text-align: center;" :class="$parent.$parent.$parent.formatTime(row.reshui_exp_date).indexOf('已过期')!==-1? 'back-red' : 'back-blue'">
380
+ <nobr>{{$parent.$parent.$parent.formatTime(row.reshui_exp_date)}}</nobr>
381
+ </td>
382
+ <td style="text-align: center;">
383
+ <nobr>
384
+ <span @click="$parent.$parent.$parent.dealmsg(row,row.reshui_id,'燃气热水器')"><a><b>变更记录</b></a></span>
385
+ </nobr>
386
+ </td>
387
+
388
+
389
+ <!--燃气热水器连接管-->
390
+ <td style="text-align: center;">
391
+ <nobr>{{row.reshui_pipe_material}}</nobr>
392
+ </td>
393
+ <td style="text-align: center;">
394
+ <nobr>{{row.reshui_pipe_length}}</nobr>
395
+ </td>
396
+ <td style="text-align: center;">
397
+ <nobr>{{row.reshui_pipe_prdate}}</nobr>
398
+ </td>
399
+ <td style="text-align: center;" :class="$parent.$parent.$parent.formatTime(row.reshui_pipe_expdate).indexOf('已过期')!==-1? 'back-red' : 'back-blue'">
400
+ <nobr>{{$parent.$parent.$parent.formatTime(row.reshui_pipe_expdate)}}</nobr>
401
+ </td>
402
+ <td style="text-align: center;">
403
+ <nobr>
404
+ <span @click="$parent.$parent.$parent.dealmsg(row,row.reshui_id,'燃气热水器连接管')"><a><b>变更记录</b></a></span>
405
+ </nobr>
406
+ </td>
407
+
408
+ <!--燃气壁挂炉-->
409
+ <td style="text-align: center;">
410
+ <nobr>{{row.bigua_brand}}</nobr>
411
+ </td>
412
+ <td style="text-align: center;">
413
+ <nobr>{{row.bigua_filing_date}}</nobr>
414
+ </td>
415
+ <td style="text-align: center;">
416
+ <nobr>{{row.bigua_make_date}}</nobr>
417
+ </td>
418
+ <td style="text-align: center;" :class="$parent.$parent.$parent.formatTime(row.bigua_exp_date).indexOf('已过期')!==-1? 'back-red' : 'back-blue'">
419
+ <nobr>{{$parent.$parent.$parent.formatTime(row.bigua_exp_date)}}</nobr>
420
+ </td>
421
+ <td style="text-align: center;">
422
+ <nobr>
423
+ <span @click="$parent.$parent.$parent.dealmsg(row,row.bigua_id,'燃气壁挂炉')"><a><b>变更记录</b></a></span>
424
+ </nobr>
425
+ </td>
426
+ <!--燃气壁挂炉连接管-->
427
+ <td style="text-align: center;">
428
+ <nobr>{{row.bigua_pipe_material}}</nobr>
429
+ </td>
430
+ <td style="text-align: center;">
431
+ <nobr>{{row.bigua_pipe_length}}</nobr>
432
+ </td>
433
+ <td style="text-align: center;">
434
+ <nobr>{{row.bigua_pipe_prdate}}</nobr>
435
+ </td>
436
+ <td style="text-align: center;" :class="$parent.$parent.$parent.formatTime(row.bigua_pipe_expdate).indexOf('已过期')!==-1? 'back-red' : 'back-blue'">
437
+ <nobr>{{$parent.$parent.$parent.formatTime(row.bigua_pipe_expdate)}}</nobr>
438
+ </td>
439
+ <td style="text-align: center;">
440
+ <nobr>
441
+ <span @click="$parent.$parent.$parent.dealmsg(row,row.bigua_id,'燃气壁挂炉连接管')"><a><b>变更记录</b></a></span>
442
+ </nobr>
443
+ </td>
444
+
445
+ <!--燃气保险信息-->
446
+ <td style="text-align: center;">
447
+ <nobr>{{row.f_fee_type}}</nobr>
448
+ </td>
449
+ <td style="text-align: center;">
450
+ <nobr>{{row.f_money}}</nobr>
451
+ </td>
452
+ <td style="text-align: center;">
453
+ <nobr>{{row.fee_operate_date}}</nobr>
454
+ </td>
455
+ <td style="text-align: center;" :class="$parent.$parent.$parent.formatTime(row.f_expiration_date).indexOf('已过期')!==-1? 'back-red' : 'back-blue'">
456
+ <nobr>{{$parent.$parent.$parent.formatTime(row.f_expiration_date)}}</nobr>
457
+ </td>
458
+ <td style="text-align: center;">
459
+ <nobr>
460
+ <span @click="$parent.$parent.$parent.dealmsg(row,'','燃气保险信息')"><a><b>续保记录</b></a></span>
461
+ </nobr>
462
+ </td>
463
+
464
+ <!--初次充值信息-->
465
+ <td style="text-align: center;">
466
+ <nobr>{{row.f_min_operate_date}}</nobr>
467
+ </td>
468
+ <td style="text-align: center;">
469
+ <nobr>{{row.f_preamount}}</nobr>
470
+ </td>
471
+
472
+ <!--每年充值-->
473
+ <td style="text-align: center;">
474
+ <nobr>{{row.yeartimes}}</nobr>
475
+ </td>
476
+ <td style="text-align: center;">
477
+ <nobr>{{row.f_preamount_all}}</nobr>
478
+ </td>
479
+
480
+ <!--安检信息-->
481
+ <td style="text-align: center;">
482
+ <nobr>{{row.f_upload_date}}</nobr>
483
+ </td>
484
+ <td style="text-align: center;">
485
+ <nobr>{{row.f_checker_name}}</nobr>
486
+ </td>
487
+ <td style="text-align: center;">
488
+ <nobr>{{row.f_total_gas}}</nobr>
489
+ </td>
490
+ <td style="text-align: center;">
491
+ <nobr>{{row.f_total_fee}}</nobr>
492
+ </td>
493
+ <td style="text-align: center;">
494
+ <nobr>{{row.f_balance_gas}}</nobr>
495
+ </td>
496
+ <td style="text-align: center;">
497
+ <nobr>{{row.f_defect_content}}</nobr>
498
+ </td>
499
+ <td style="text-align: center;">
500
+ <nobr>{{row.f_repair_date}}</nobr>
501
+ </td>
502
+
503
+ <!--备注-->
504
+ <td style="text-align: center;">
505
+ <nobr>{{row.f_comments}}</nobr>
506
+ </td>
507
+
508
+ </template>
509
+ <template partial='foot'>
510
+ </template>
511
+ </data-grid>
512
+ </criteria-paged>
513
+
514
+ </div>
515
+ </div>
516
+ </div>
517
+ <modal :show.sync="filechangeHistoryShow" v-ref:filechangeHistoryShow backdrop="false" class="filechangeHistoryShow">
518
+ <header slot="modal-header" class="modal-header" style="text-align: center">
519
+ <h4 class="modal-title">{{titles}}</h4>
520
+ </header>
521
+ <article slot="modal-body" class="modal-body">
522
+ <data-grid class="list_area table_sy" :model="filechangeHistorys" partial='list' v-if="titles.indexOf('燃气保险信息') === -1">
523
+ <template partial='head'>
524
+ <th><nobr>序号</nobr></th>
525
+ <th><nobr>更改内容</nobr></th>
526
+ <th><nobr>更改前</nobr></th>
527
+ <th><nobr>更改后</nobr></th>
528
+ <th><nobr>变更时间</nobr></th>
529
+ </template>
530
+ <template partial='body'>
531
+ <td >{{$index+1}}</td>
532
+ <td><nobr>{{row.f_field_name}}</nobr></td>
533
+ <td><nobr>{{row.f_used_content}}</nobr></td>
534
+ <td><nobr>{{row.f_new_content}}</nobr></td>
535
+ <td><nobr>{{row.f_submit_date}}</nobr></td>
536
+ </template>
537
+ </data-grid>
538
+ <data-grid class="list_area table_sy" :model="filechangeHistorys" partial='list' v-if="titles.indexOf('燃气保险信息') !== -1">
539
+ <template partial='head'>
540
+ <th><nobr>序号</nobr></th>
541
+ <th><nobr>用户编号</nobr></th>
542
+ <th><nobr>用户姓名</nobr></th>
543
+ <th><nobr>保险金额</nobr></th>
544
+ <th><nobr>保险类型</nobr></th>
545
+ <th><nobr>保险日期</nobr></th>
546
+ <th><nobr>到期时间</nobr></th>
547
+ <th><nobr>操作时间</nobr></th>
548
+ <th><nobr>操作人</nobr></th>
549
+ </template>
550
+ <template partial='body'>
551
+ <td >{{$index+1}}</td>
552
+ <td><nobr>{{row.f_userinfo_code}}</nobr></td>
553
+ <td><nobr>{{row.f_user_name}}</nobr></td>
554
+ <td><nobr>{{row.f_money}}</nobr></td>
555
+ <td><nobr>{{row.f_insurance_type}}</nobr></td>
556
+ <td><nobr>{{row.f_ins_start_date}}</nobr></td>
557
+ <td><nobr>{{row.f_expiration_date}}</nobr></td>
558
+ <td><nobr>{{row.f_operate_date}}</nobr></td>
559
+ <td><nobr>{{row.f_operator}}</nobr></td>
560
+ </template>
561
+ </data-grid>
562
+ </article>
563
+ <footer slot="modal-footer" class="modal-footer">
564
+ <button type="button" class="btn btn-default" @click='filechangeHistoryShow = false'>关闭</button>
565
+ </footer>
566
+ </modal>
567
+
568
+ </div>
569
+ </template>
570
+
571
+ <script>
572
+ import {HttpResetClass, PagedList} from 'vue-client'
573
+ import defaultPrint from '../../components/sale/config/DefaultPrint'
574
+ import exportConfig from '../../components/sale/config/exportConfig'
575
+
576
+ let readySomething = async function (self) {
577
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
578
+
579
+ }
580
+
581
+ export default {
582
+ title: '民用用气设备查询',
583
+ data() {
584
+ return {
585
+ titles:'',
586
+ other:[],
587
+ footer:[],
588
+ deviceTypes: this.$appdata.getParam('设备类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备类型')] : [],
589
+ model: new PagedList('api/af-revenue/sql/myGasDeviceQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_userinfo_code desc'`}),
590
+ criteriaShow: false,
591
+ orgCondtionStr: '',
592
+ modelval: [],
593
+ printshow: false,
594
+ all: false,
595
+ fields: {},
596
+ //排序
597
+ orderitem:'f_userinfo_code desc',
598
+ orderFields: {
599
+ f_operate_date: 'no'
600
+ },
601
+ //默认打印列
602
+ defaultfield: [],
603
+ config: {
604
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_user_state']
605
+ },
606
+ balance2:'',
607
+ thead: '',
608
+ tfoot: '',
609
+ area: [],
610
+ //合计数据
611
+ sumsmodel: {},
612
+ initres: {
613
+ org:[this.$login.f.orgid],
614
+ dep:[],
615
+ user:[],
616
+ },
617
+ userdetail: {
618
+ show: false,
619
+ f_userinfo_code: '',
620
+ f_filialeids: ''
621
+ },
622
+
623
+ show:false,
624
+ rowdata:{},
625
+ meterInfo:{},
626
+ deviceInfo:{},
627
+ condition2:'',
628
+ filechangeHistorys: {rows: []},
629
+ filechangeHistoryShow: false,
630
+ //小区
631
+ residentialArea: [],
632
+ allorgid:[],
633
+ f_filialeid: this.$login.f.f_orgid,
634
+ }
635
+ },
636
+ ready() {
637
+ this.getaddress()
638
+ readySomething(this).then(() => {
639
+ this.$emit('ready')
640
+ }).catch((error) => {
641
+ this.$emit('error', error)
642
+ })
643
+ },
644
+ methods: {
645
+ async dealmsg(row,id,type){
646
+ this.titles = type+'变更记录'
647
+ this.filechangeHistorys.rows = []
648
+ let data = {
649
+ tablename: `t_infochange`,
650
+ items: '*',
651
+ condition: `1=1`,
652
+ orderitem: 'f_change_id desc'
653
+ }
654
+ let urlParam = 'api/af-revenue/sql/singleTable_OrderBy'
655
+ if (id){
656
+ data.condition = `1=1 and f_table_id = ${id} and f_field_name like '%${type}%'`
657
+ let res = await this.$resetpost(urlParam, {data: data}, {rejectMsg: '获取变更记录出错', resolveMsg: null})
658
+ if (res){
659
+ this.filechangeHistorys.rows = res.data
660
+ }
661
+ }else{
662
+ if (type === '燃气表'){
663
+ data.condition = `1=1 and f_field_name in ('气表品牌','气表型号','出厂日期','表号','左右表','气表分类') and f_userinfo_id = '${row.f_userinfo_id}'`
664
+ let res = await this.$resetpost(urlParam, {data: data}, {rejectMsg: '获取变更记录出错', resolveMsg: null})
665
+ if (res){
666
+ this.filechangeHistorys.rows = res.data
667
+ }
668
+ }else if (type === '建档信息'){
669
+ urlParam = 'api/af-revenue/sql/changeuserquery'
670
+ data = {
671
+ 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'`,
672
+ orderitem: "f_operate_date desc"
673
+ }
674
+ let res = await this.$resetpost(urlParam, {data: data}, {rejectMsg: '获取变更记录出错', resolveMsg: null})
675
+ if (res){
676
+ this.filechangeHistorys.rows = res.data
677
+ }
678
+ }else if (type==='燃气保险信息'){
679
+ data = {
680
+ condition: ` 1=1 and f_orgid in ('${this.$login.f.orgid}') and f_userinfo_code = '${row.f_userinfo_code}'`,
681
+ orderitem: "f_operate_date desc"
682
+ }
683
+ let res = await this.$resetpost('api/af-revenue/sql/insuranceguanl', {data: data}, {rejectMsg: '获取变更记录出错', resolveMsg: null})
684
+ if (res){
685
+ this.filechangeHistorys.rows = res.data
686
+ }
687
+ }
688
+ }
689
+ this.filechangeHistoryShow =true
690
+ },
691
+ ventilationYear(diffAllyear){
692
+ if ( 1<= diffAllyear && diffAllyear <= 2 ){
693
+ return {
694
+ color: 'green !important'
695
+ }
696
+ }else if (3<= diffAllyear && diffAllyear <=4){
697
+ return {
698
+ color: 'orange !important'
699
+ }
700
+ }else if (5<= diffAllyear && diffAllyear <=8){
701
+ return {
702
+ color: 'red !important'
703
+ }
704
+ }else if (diffAllyear>8){
705
+ return {
706
+ color: 'crimson !important'
707
+ }
708
+ }else {
709
+ return {
710
+
711
+ }
712
+ }
713
+ },
714
+ formatTime(expireTime){
715
+ if (expireTime){
716
+ let formats = {
717
+ 'year': '%n%年',
718
+ 'month': '%n%月',
719
+ 'day': '%n%天',
720
+ };
721
+ let now = new Date().getTime()
722
+ let expireTimes = new Date(expireTime).getTime()
723
+ if (now < expireTimes){
724
+ return expireTime
725
+ }else {
726
+ let seconds = Math.floor((now - expireTimes) / 1000)
727
+ let minutes = Math.floor(seconds / 60)
728
+ let hours = Math.floor(minutes / 60)
729
+ let days = Math.floor(hours / 24)
730
+ let months = Math.floor(days / 30)
731
+ let years = Math.floor(months / 12)
732
+
733
+ let diffType = ''
734
+ let diffValue = 0
735
+ if (years > 0) {
736
+ diffType = 'year'
737
+ diffValue = years
738
+ } else {
739
+ if (months > 0) {
740
+ diffType = 'month'
741
+ diffValue = months
742
+ } else {
743
+ if (days > 0) {
744
+ diffType = 'day'
745
+ diffValue = days
746
+ }
747
+ }
748
+ }
749
+ return '已过期'+formats[diffType].replace('%n%', diffValue);
750
+ }
751
+ }else {
752
+ return ''
753
+ }
754
+ },
755
+ async getaddress(){
756
+ console.log('开始获取小区')
757
+ let HttpReset = new HttpResetClass()
758
+ var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
759
+ data: {
760
+ condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
761
+ }
762
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
763
+ console.log('小区',data)
764
+ let house = []
765
+ for (let row of data.data){
766
+ console.log('开始保存小区')
767
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
768
+ }
769
+ this.residentialArea = house
770
+ },
771
+ async downloadFiles() {
772
+ if (this.condition2) {
773
+ let data = {
774
+ sqlName: 'myGasDeviceQuery',
775
+ condition: this.condition2,
776
+ fileName: '民用用气设备查询'
777
+ }
778
+ let HttpReset = new HttpResetClass()
779
+ let res = await HttpReset.load('POST', 'rs/deviceExport/gasDevices', {
780
+ data: data
781
+ }, {resolveMsg: null, rejectMsg: null})
782
+ if (res){
783
+ let downurl = 'rs/deviceExport/download?filename=民用用气设备查询.xlsx';
784
+ this.$resetget(downurl, {}).then(res => {
785
+ var link = document.createElement('a');
786
+ link.target = "_blank"
787
+ link.href = downurl;
788
+ link.setAttribute("download", "民用用气设备查询.xlsx"); //指定下载后的文件名,防跳转
789
+ document.body.appendChild(link);
790
+ link.click();
791
+ })
792
+ }
793
+ } else {
794
+ this.$showAlert('查询条件为空,请查询后再导出', 'warning', 3000)
795
+ return
796
+ }
797
+ },
798
+ //把数据库查询数据转换为下拉数据
799
+ calculate(rows){
800
+ let data = []
801
+ rows.forEach((row, n) => {
802
+ data[n] = {label: row.f_residential_area, value: row.id}
803
+ })
804
+ return data
805
+ },
806
+ search(){
807
+ this.$refs.paged.$refs.cri.search()
808
+ },
809
+ cancel(obj) {
810
+ this.show = false
811
+ },
812
+
813
+ selfSearch(args) {
814
+ this.area = this.$refs.paged.$refs.cri.model.f_residential_area
815
+ console.log("=====小区model绑定====",this.area)
816
+ if(this.area.length !== 0){
817
+ let str = JSON.stringify(this.area)
818
+ str = str.replace(/"/g,`'`)
819
+ str = str.replace(/\[/g,``)
820
+ str = str.replace(/\]/g,``)
821
+ console.log("=====小区model22222222222绑定====",str)
822
+ //查询多个小区时条件
823
+ args.condition += ` and f_residential_area in ( ${str} )`
824
+ }
825
+ if (!this.orgCondtionStr) {
826
+ args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
827
+ } else {
828
+ args.condition = `${args.condition}` + this.orgCondtionStr
829
+ }
830
+ this.condition2 = args.condition
831
+ this.model.search(args.condition, args.model)
832
+ },
833
+ clear() {
834
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
835
+ this.$refs.paged.$refs.cri.model[key] = []
836
+ })
837
+ },
838
+ hidden() {
839
+ this.criteriaShow = !this.criteriaShow
840
+ },
841
+ getRes(obj) {
842
+ this.orgCondtionStr = obj
843
+ },
844
+ stamp() {
845
+ this.all = false
846
+ //默认选择要打印的列
847
+ this.modelval = defaultPrint.config
848
+ this.fields = this.getfield
849
+ console.log('所有打印字段', this.fields)
850
+ this.printshow = true
851
+ this.put()
852
+ },
853
+ print() {
854
+ this.$refs.print.PrintAsFile()
855
+ this.printshow = false
856
+ },
857
+ close() {
858
+ this.printshow = false
859
+ },
860
+ // 对选择的列进行排序
861
+ sortModelval() {
862
+ let sortModel = []
863
+ Object.keys(this.fields).forEach((key) => {
864
+ if (this.modelval.includes(key)) {
865
+ sortModel.push(key)
866
+ }
867
+ })
868
+ this.modelval = sortModel
869
+ console.log('选择的打印的字段', this.modelval)
870
+ },
871
+ dblclick(row, index) {
872
+ console.log('双击之后数据', row, index)
873
+ this.userdetail.show = true
874
+ this.userdetail.f_userinfo_code = row.f_userinfo_code
875
+ this.userdetail.f_filialeids = row.f_filialeids
876
+ },
877
+ sort (field, rule) {
878
+ // 将所有排序方式设为不排序,实现相互排斥
879
+ for (let key in this.orderFields) {
880
+ if (key === field) {
881
+ this.orderFields[key] = rule
882
+ } else {
883
+ this.orderFields[key] = 'no'
884
+ }
885
+ }
886
+ // 如果新规则不排序,还原为默认排序
887
+ if (rule === 'no') {
888
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
889
+ } else {
890
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
891
+ }
892
+
893
+ this.search()
894
+ }
895
+ },
896
+
897
+ watch: {
898
+ 'all'(val) {
899
+ if (val) {
900
+ this.modelval = this.bodyData
901
+ } else {
902
+ this.modelval = defaultPrint.config
903
+ this.put()
904
+ }
905
+ },
906
+ 'modelval.length'() {
907
+ this.put()
908
+ },
909
+ 'orgCondtionStr'(val) {
910
+ let res = val.match(/'(.*?)'/)
911
+ console.log('正则提取:',res && res[1])
912
+ if (res) {
913
+ this.f_filialeid = res[1]
914
+ if(res.input !=null){
915
+ let resorgid = res.input.substring(res.input.indexOf("'"));
916
+ if(resorgid!= null && resorgid!=''){
917
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
918
+ // resorgid = resorgid.replaceAll("'","");
919
+ resorgid = resorgid.replace(/'/g,"");
920
+ this.allorgid = resorgid.split(",")
921
+ }
922
+ }
923
+ }
924
+ },
925
+ },
926
+ computed: {
927
+ authArr () {
928
+ return this.$login.r ? this.$login.r : []
929
+ },
930
+
931
+ getCondition() {
932
+ return {condition: this.condition2,orderitem: 'f_userfiles_id desc'}
933
+ },
934
+ getfield() {
935
+ let data = {}
936
+ this.bodyData.forEach((value, index) => {
937
+ data[this.bodyData[index]] = this.headData[index]
938
+ })
939
+ //合计字段打印
940
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
941
+ if (this.sumsmodel) {
942
+ Object.keys(this.sumsmodel).forEach((key) => {
943
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
944
+ })
945
+ } else {
946
+ this.tfoot += '暂无'
947
+ }
948
+ this.tfoot += '</th></tr>'
949
+ return data
950
+ },
951
+ getExportField() {
952
+ return exportConfig.gasDeviceConfig
953
+ },
954
+ addressstate() {
955
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('地址状态')]
956
+ }
957
+ }
958
+ }
959
+ </script>
960
+ <style lang="less">
961
+ .filechangeHistoryShow {
962
+ td {
963
+ text-align: center !important;
964
+ }
965
+ }
966
+ .back-red{ /* 红色背景 */
967
+ color: red !important;
968
+ }
969
+ .back-green{ /* 红色背景 */
970
+ color: green !important;
971
+ }
972
+ .back-orange{ /* 红色背景 */
973
+ color: orange !important;
974
+ }
975
+ .back-crimson{
976
+ color: crimson !important;
977
+ }
978
+ .back-blue{ /* 蓝色背景 */
979
+
980
+ }
981
+ </style>
982
+