manage-client 3.2.260 → 3.2.262
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dev-server.js +180 -180
- package/node_modules.zip +0 -0
- package/package.json +1 -1
- package/src/filiale/rongcheng/UserQuery.vue +828 -828
- package/src/filiale/shanggao/UserQuery.vue +932 -932
- package/src/filiale/shanxian/InspectListUserNew.vue +467 -467
- package/src/filiale/shanxian/SiteManager.vue +120 -143
- package/src/filiale/wenxi/FmyGasDeviceQuery.vue +753 -0
- package/src/filiale/wenxi/RecordInfoQuery.vue +24 -125
- package/src/filiale/wenxi/sale.js +4 -0
- package/src/main.js +66 -68
- package/static/newStyle/new_stretch_bottom.png +0 -0
- package/static/newStyle/new_stretch_top.png +0 -0
- package/.gradle/4.4/fileHashes/fileHashes.bin +0 -0
- package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
- package/lib/package_2022-12-01-14-30-50.json +0 -109
|
@@ -0,0 +1,753 @@
|
|
|
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
|
+
<v-select :value.sync="model.f_meter_brand" multiple
|
|
57
|
+
v-model="model.f_meter_brand"
|
|
58
|
+
:options='$parent.$parent.meterbrands' placeholder='请选择'
|
|
59
|
+
condition="f_meter_brand in {}"
|
|
60
|
+
close-on-select></v-select>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="col-sm-2 form-group" >
|
|
63
|
+
<label class="font_normal_body">设备类型</label>
|
|
64
|
+
<v-select :value.sync="model.f_devices_type"
|
|
65
|
+
v-model="model.f_devices_type"
|
|
66
|
+
:options='$parent.$parent.deviceTypes' placeholder='请选择'
|
|
67
|
+
condition="f_devices_type = '{}'"
|
|
68
|
+
close-on-select></v-select>
|
|
69
|
+
</div>
|
|
70
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
71
|
+
<!-- <label class="font_normal_body">身份证号</label>-->
|
|
72
|
+
<!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"-->
|
|
73
|
+
<!-- condition="f_idnumber like '%{}%'" placeholder="身份证号">-->
|
|
74
|
+
<!-- </div>-->
|
|
75
|
+
<div class="col-sm-2 form-group">
|
|
76
|
+
<label class="font_normal_body">项目地址</label>
|
|
77
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_address"
|
|
78
|
+
condition="f_address like '%{}%'" placeholder='项目地址'>
|
|
79
|
+
</div>
|
|
80
|
+
<res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
|
|
81
|
+
<div class="col-sm-2 form-group">
|
|
82
|
+
<label for="startDate" class="font_normal_body">建档日期</label>
|
|
83
|
+
<datepicker id="startDate" placeholder="开始日期" style="width:60%"
|
|
84
|
+
v-model="model.startDate"
|
|
85
|
+
:value.sync="model.startDate"
|
|
86
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
|
87
|
+
:show-reset-button="true"
|
|
88
|
+
condition="f_createfile_date >= '{}'">
|
|
89
|
+
</datepicker>
|
|
90
|
+
</div>
|
|
91
|
+
<div class="col-sm-2 form-group">
|
|
92
|
+
<label for="endDate" class="font_normal_body">结束日期</label>
|
|
93
|
+
<datepicker id="endDate" placeholder="结束日期" style="width:60%"
|
|
94
|
+
v-model="model.endDate"
|
|
95
|
+
:value.sync="model.endDate"
|
|
96
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
|
97
|
+
:show-reset-button="true"
|
|
98
|
+
condition="f_createfile_date <= '{}'">
|
|
99
|
+
</datepicker>
|
|
100
|
+
</div>
|
|
101
|
+
<div class="col-sm-2 form-group">
|
|
102
|
+
<label class="font_normal_body">通气年限</label>
|
|
103
|
+
<input type="number" style="width:60%" class="input_search" v-model="model.diffAllyear1"
|
|
104
|
+
condition="diffAllyear >= {}" placeholder="最小值">
|
|
105
|
+
</div>
|
|
106
|
+
<div class="col-sm-2 form-group">
|
|
107
|
+
<label class="font_normal_body"> 至 </label>
|
|
108
|
+
<input type="number" style="width:60%" class="input_search" v-model="model.diffAllyear2"
|
|
109
|
+
condition="diffAllyear <= {}" placeholder="最大值">
|
|
110
|
+
</div>
|
|
111
|
+
<div class="col-sm-2 form-group">
|
|
112
|
+
<label class="font_normal_body"> 小区 </label>
|
|
113
|
+
<v-select :value.sync="model.f_residential_area"
|
|
114
|
+
class="select_list select"
|
|
115
|
+
enter-push
|
|
116
|
+
multiple = "true"
|
|
117
|
+
v-model="model.f_residential_area"
|
|
118
|
+
style="width: 60%"
|
|
119
|
+
:options='$parent.$parent.residentialArea' placeholder='选择小区'
|
|
120
|
+
close-on-select>
|
|
121
|
+
|
|
122
|
+
</v-select>
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
</criteria>
|
|
127
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
128
|
+
<template partial='head'>
|
|
129
|
+
<tr>
|
|
130
|
+
<th rowspan="2"><nobr>序号</nobr></th>
|
|
131
|
+
<th colspan="6"><nobr>用户信息</nobr></th>
|
|
132
|
+
<th colspan="7"><nobr>燃气表</nobr></th>
|
|
133
|
+
<th colspan="7"><nobr>建档信息</nobr></th>
|
|
134
|
+
<th colspan="4"><nobr>燃气报警装置</nobr></th>
|
|
135
|
+
<th colspan="4"><nobr>设备信息</nobr></th>
|
|
136
|
+
<th colspan="5"><nobr>燃气连接管</nobr></th>
|
|
137
|
+
</tr>
|
|
138
|
+
|
|
139
|
+
<tr>
|
|
140
|
+
<th><nobr>客户编号</nobr></th>
|
|
141
|
+
<th><nobr>客户名称</nobr></th>
|
|
142
|
+
<th><nobr>联系电话</nobr></th>
|
|
143
|
+
<th><nobr>小区名称</nobr></th>
|
|
144
|
+
<th><nobr>地址</nobr></th>
|
|
145
|
+
<th><nobr>客户状态</nobr></th>
|
|
146
|
+
|
|
147
|
+
<th><nobr>表品牌</nobr></th>
|
|
148
|
+
<th><nobr>表号</nobr></th>
|
|
149
|
+
<th><nobr>类型</nobr></th>
|
|
150
|
+
<th><nobr>型号</nobr></th>
|
|
151
|
+
<th><nobr>左右表</nobr></th>
|
|
152
|
+
<th><nobr>安装位置</nobr></th>
|
|
153
|
+
<th><nobr>表安装位置</nobr></th>
|
|
154
|
+
|
|
155
|
+
<th><nobr>建档日期</nobr></th>
|
|
156
|
+
<th><nobr>合同日期</nobr></th>
|
|
157
|
+
<th><nobr>开户日期</nobr></th>
|
|
158
|
+
<!--开户操作人-->
|
|
159
|
+
<th><nobr>开户操作人</nobr></th>
|
|
160
|
+
<th><nobr>通气日期</nobr></th>
|
|
161
|
+
<th><nobr>通气人</nobr></th>
|
|
162
|
+
<th><nobr>通气年限</nobr></th>
|
|
163
|
+
|
|
164
|
+
<th><nobr>报警器品牌</nobr></th>
|
|
165
|
+
<th><nobr>数量</nobr></th>
|
|
166
|
+
<th><nobr>生产日期</nobr></th>
|
|
167
|
+
<th><nobr>超期提醒</nobr></th>
|
|
168
|
+
|
|
169
|
+
<th><nobr>设备名称</nobr></th>
|
|
170
|
+
<th><nobr>数量</nobr></th>
|
|
171
|
+
<th><nobr>生产日期</nobr></th>
|
|
172
|
+
<th><nobr>超期提醒</nobr></th>
|
|
173
|
+
|
|
174
|
+
<th><nobr>有无不锈钢波纹管</nobr></th>
|
|
175
|
+
<th><nobr>数量</nobr></th>
|
|
176
|
+
<th><nobr>有无自闭阀</nobr></th>
|
|
177
|
+
<th><nobr>数量</nobr></th>
|
|
178
|
+
|
|
179
|
+
</tr>
|
|
180
|
+
</template>
|
|
181
|
+
<template partial='body'>
|
|
182
|
+
<!--序号-->
|
|
183
|
+
<td style="text-align: center;" ><nobr>
|
|
184
|
+
{{$index + 1}}
|
|
185
|
+
</nobr></td>
|
|
186
|
+
<!--用户信息-->
|
|
187
|
+
<td style="text-align: center;">
|
|
188
|
+
<nobr>{{row.f_userinfo_code}}</nobr>
|
|
189
|
+
</td>
|
|
190
|
+
<td style="text-align: center;">
|
|
191
|
+
<nobr>{{row.f_user_name}}</nobr>
|
|
192
|
+
</td>
|
|
193
|
+
<td style="text-align: center;">
|
|
194
|
+
<nobr>{{row.f_user_phone}}</nobr>
|
|
195
|
+
</td>
|
|
196
|
+
<td style="text-align: center;">
|
|
197
|
+
<nobr>{{row.f_residential_area}}</nobr>
|
|
198
|
+
</td>
|
|
199
|
+
<td style="text-align: center;">
|
|
200
|
+
<nobr>{{row.f_address}}</nobr>
|
|
201
|
+
</td>
|
|
202
|
+
<td style="text-align: center;">
|
|
203
|
+
<nobr>{{row.f_user_state}}</nobr>
|
|
204
|
+
</td>
|
|
205
|
+
|
|
206
|
+
<!--燃气表-->
|
|
207
|
+
<td style="text-align: center;">
|
|
208
|
+
<nobr>{{row.f_meter_brand}}</nobr>
|
|
209
|
+
</td>
|
|
210
|
+
<td style="text-align: center;">
|
|
211
|
+
<nobr>{{row.f_meternumber}}</nobr>
|
|
212
|
+
</td>
|
|
213
|
+
<td style="text-align: center;">
|
|
214
|
+
<nobr>{{row.f_meter_type}}</nobr>
|
|
215
|
+
</td>
|
|
216
|
+
<td style="text-align: center;">
|
|
217
|
+
<nobr>{{row.f_meter_style}}</nobr>
|
|
218
|
+
</td>
|
|
219
|
+
<td style="text-align: center;">
|
|
220
|
+
<nobr>{{row.f_aroundmeter}}</nobr>
|
|
221
|
+
</td>
|
|
222
|
+
<td style="text-align: center;">
|
|
223
|
+
<nobr>{{row.f_position}}</nobr>
|
|
224
|
+
</td>
|
|
225
|
+
<td style="text-align: center;">
|
|
226
|
+
<nobr>{{row.f_install_date}}</nobr>
|
|
227
|
+
</td>
|
|
228
|
+
|
|
229
|
+
<!--建档信息-->
|
|
230
|
+
<td style="text-align: center;">
|
|
231
|
+
<nobr>{{row.f_createfile_date}}</nobr>
|
|
232
|
+
</td>
|
|
233
|
+
<td style="text-align: center;">
|
|
234
|
+
<nobr>{{row.f_contractdate}}</nobr>
|
|
235
|
+
</td>
|
|
236
|
+
<td style="text-align: center;">
|
|
237
|
+
<nobr>{{row.f_gas_date}}</nobr>
|
|
238
|
+
</td>
|
|
239
|
+
<td style="text-align: center;">
|
|
240
|
+
<nobr>{{row.f_operator}}</nobr>
|
|
241
|
+
</td>
|
|
242
|
+
<td style="text-align: center;">
|
|
243
|
+
<nobr>{{row.f_createfile_date}}</nobr>
|
|
244
|
+
</td>
|
|
245
|
+
<td style="text-align: center;">
|
|
246
|
+
<nobr>{{row.f_install_person}}</nobr>
|
|
247
|
+
</td>
|
|
248
|
+
<td style="text-align: center;">
|
|
249
|
+
<nobr>{{row.f_gas_date}}</nobr>
|
|
250
|
+
</td>
|
|
251
|
+
<td style="text-align: center;">
|
|
252
|
+
<nobr>{{row.f_gas_person}}</nobr>
|
|
253
|
+
</td>
|
|
254
|
+
<td style="text-align: center;" :style="$parent.$parent.$parent.ventilationYear(row.diffallyear)">
|
|
255
|
+
<nobr>{{row.ventilation_years}}</nobr>
|
|
256
|
+
</td>
|
|
257
|
+
|
|
258
|
+
<!--燃气报警装置-->
|
|
259
|
+
<td style="text-align: center;">
|
|
260
|
+
<nobr>{{row.f_icgd_brand}}</nobr>
|
|
261
|
+
</td>
|
|
262
|
+
<td style="text-align: center;">
|
|
263
|
+
<nobr>{{row.f_icgd_num}}</nobr>
|
|
264
|
+
</td>
|
|
265
|
+
<td style="text-align: center;">
|
|
266
|
+
<nobr>{{row.f_icgd_prdate}}</nobr>
|
|
267
|
+
</td>
|
|
268
|
+
<td style="text-align: center;">
|
|
269
|
+
<nobr>{{$parent.$parent.$parent.formatTime(row.alarm_exp_date)}}</nobr>
|
|
270
|
+
</td>
|
|
271
|
+
|
|
272
|
+
<!--设备信息-->
|
|
273
|
+
<td style="text-align: center;">
|
|
274
|
+
<nobr>{{row.f_brand}}</nobr>
|
|
275
|
+
</td>
|
|
276
|
+
<td style="text-align: center;">
|
|
277
|
+
<nobr>{{row.f_devices_num}}</nobr>
|
|
278
|
+
</td>
|
|
279
|
+
<td style="text-align: center;">
|
|
280
|
+
<nobr>{{row.f_make_date}}</nobr>
|
|
281
|
+
</td>
|
|
282
|
+
<td style="text-align: center;">
|
|
283
|
+
<nobr>{{$parent.$parent.$parent.formatTime(row.f_expire_date)}}</nobr>
|
|
284
|
+
</td>
|
|
285
|
+
|
|
286
|
+
<!--燃气管连接-->
|
|
287
|
+
<td style="text-align: center;">
|
|
288
|
+
<nobr>{{row.f_pipe_type}}</nobr>
|
|
289
|
+
</td>
|
|
290
|
+
<td style="text-align: center;">
|
|
291
|
+
<nobr>{{row.f_pipe_num}}</nobr>
|
|
292
|
+
</td>
|
|
293
|
+
<td style="text-align: center;">
|
|
294
|
+
<nobr>{{row.f_is_zibifa}}</nobr>
|
|
295
|
+
</td>
|
|
296
|
+
<td style="text-align: center;">
|
|
297
|
+
<nobr>{{row.f_zibifa_num}}</nobr>
|
|
298
|
+
</td>
|
|
299
|
+
</template>
|
|
300
|
+
<template partial='foot'>
|
|
301
|
+
</template>
|
|
302
|
+
</data-grid>
|
|
303
|
+
</criteria-paged>
|
|
304
|
+
|
|
305
|
+
</div>
|
|
306
|
+
</div>
|
|
307
|
+
</div>
|
|
308
|
+
<modal :show.sync="filechangeHistoryShow" v-ref:filechangeHistoryShow backdrop="false" class="filechangeHistoryShow">
|
|
309
|
+
<header slot="modal-header" class="modal-header" style="text-align: center">
|
|
310
|
+
<h4 class="modal-title">{{titles}}</h4>
|
|
311
|
+
</header>
|
|
312
|
+
<article slot="modal-body" class="modal-body">
|
|
313
|
+
<data-grid class="list_area table_sy" :model="filechangeHistorys" partial='list'>
|
|
314
|
+
<template partial='head'>
|
|
315
|
+
<th><nobr>序号</nobr></th>
|
|
316
|
+
<th><nobr>更改内容</nobr></th>
|
|
317
|
+
<th><nobr>更改前</nobr></th>
|
|
318
|
+
<th><nobr>更改后</nobr></th>
|
|
319
|
+
<th><nobr>变更时间</nobr></th>
|
|
320
|
+
</template>
|
|
321
|
+
<template partial='body'>
|
|
322
|
+
<td >{{$index+1}}</td>
|
|
323
|
+
<td><nobr>{{row.f_field_name}}</nobr></td>
|
|
324
|
+
<td><nobr>{{row.f_used_content}}</nobr></td>
|
|
325
|
+
<td><nobr>{{row.f_new_content}}</nobr></td>
|
|
326
|
+
<td><nobr>{{row.f_submit_date}}</nobr></td>
|
|
327
|
+
</template>
|
|
328
|
+
</data-grid>
|
|
329
|
+
</article>
|
|
330
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
331
|
+
<button type="button" class="btn btn-default" @click='filechangeHistoryShow = false'>关闭</button>
|
|
332
|
+
</footer>
|
|
333
|
+
</modal>
|
|
334
|
+
</div>
|
|
335
|
+
</template>
|
|
336
|
+
|
|
337
|
+
<script>
|
|
338
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
339
|
+
import defaultPrint from '../../components/sale/config/DefaultPrint'
|
|
340
|
+
import exportConfig from '../../components/sale/config/exportConfig'
|
|
341
|
+
|
|
342
|
+
let readySomething = async function (self) {
|
|
343
|
+
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
344
|
+
}
|
|
345
|
+
let readyGen = async function (self) {
|
|
346
|
+
await self.$MagLoadParams.loadParam()
|
|
347
|
+
self.initParams()
|
|
348
|
+
}
|
|
349
|
+
export default {
|
|
350
|
+
title: '非民用用气设备查询',
|
|
351
|
+
data() {
|
|
352
|
+
return {
|
|
353
|
+
titles:'',
|
|
354
|
+
other:[],
|
|
355
|
+
footer:[],
|
|
356
|
+
model: new PagedList('rs/sql/fmyGasDeviceQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_userinfo_code desc'`}),
|
|
357
|
+
criteriaShow: false,
|
|
358
|
+
orgCondtionStr: '',
|
|
359
|
+
modelval: [],
|
|
360
|
+
printshow: false,
|
|
361
|
+
all: false,
|
|
362
|
+
fields: {},
|
|
363
|
+
//排序
|
|
364
|
+
orderitem:'f_userinfo_code desc',
|
|
365
|
+
orderFields: {
|
|
366
|
+
f_operate_date: 'no'
|
|
367
|
+
},
|
|
368
|
+
//默认打印列
|
|
369
|
+
defaultfield: [],
|
|
370
|
+
config: {
|
|
371
|
+
defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_user_state']
|
|
372
|
+
},
|
|
373
|
+
balance2:'',
|
|
374
|
+
thead: '',
|
|
375
|
+
tfoot: '',
|
|
376
|
+
area: [],
|
|
377
|
+
//合计数据
|
|
378
|
+
sumsmodel: {},
|
|
379
|
+
initres: {
|
|
380
|
+
org:[this.$login.f.orgid],
|
|
381
|
+
dep:[],
|
|
382
|
+
user:[],
|
|
383
|
+
},
|
|
384
|
+
userdetail: {
|
|
385
|
+
show: false,
|
|
386
|
+
f_userinfo_code: '',
|
|
387
|
+
f_filialeids: ''
|
|
388
|
+
},
|
|
389
|
+
filechangeHistorys: {rows:[]},
|
|
390
|
+
filechangeHistoryShow: false,
|
|
391
|
+
show:false,
|
|
392
|
+
rowdata:{},
|
|
393
|
+
meterInfo:{},
|
|
394
|
+
deviceInfo:{},
|
|
395
|
+
condition2:'',
|
|
396
|
+
|
|
397
|
+
meterbrands: [],
|
|
398
|
+
prices: [],
|
|
399
|
+
deviceTypes: this.$appdata.getParam('设备类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备类型')] : [],
|
|
400
|
+
|
|
401
|
+
//小区
|
|
402
|
+
residentialArea: [],
|
|
403
|
+
allorgid:[],
|
|
404
|
+
f_filialeid: this.$login.f.f_orgid,
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
ready() {
|
|
408
|
+
readyGen(this)
|
|
409
|
+
this.getaddress()
|
|
410
|
+
readySomething(this).then(() => {
|
|
411
|
+
this.$emit('ready')
|
|
412
|
+
}).catch((error) => {
|
|
413
|
+
this.$emit('error', error)
|
|
414
|
+
})
|
|
415
|
+
},
|
|
416
|
+
methods: {
|
|
417
|
+
async dealmsg(row,id,type){
|
|
418
|
+
this.titles = type+'变更记录'
|
|
419
|
+
if (type==='燃气连接管'){
|
|
420
|
+
type = '燃气计量装置连接管'
|
|
421
|
+
}
|
|
422
|
+
this.filechangeHistorys.rows = []
|
|
423
|
+
let data = {
|
|
424
|
+
tablename: `t_infochange`,
|
|
425
|
+
items: '*',
|
|
426
|
+
condition: `1=1`,
|
|
427
|
+
orderitem: 'f_change_id desc'
|
|
428
|
+
}
|
|
429
|
+
let urlParam = 'rs/sql/singleTable_OrderBy'
|
|
430
|
+
if (id){
|
|
431
|
+
data.condition = `1=1 and f_table_id = ${id} and f_field_name like '%${type}%'`
|
|
432
|
+
let res = await this.$resetpost(urlParam, {data: data}, {rejectMsg: '获取变更记录出错', resolveMsg: null})
|
|
433
|
+
if (res){
|
|
434
|
+
this.filechangeHistorys.rows = res.data
|
|
435
|
+
}
|
|
436
|
+
}else{
|
|
437
|
+
if (type === '建档信息'||type === '用户信息'){
|
|
438
|
+
urlParam = 'rs/sql/changeuserquery'
|
|
439
|
+
data = {
|
|
440
|
+
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'`,
|
|
441
|
+
orderitem: "f_operate_date desc"
|
|
442
|
+
}
|
|
443
|
+
let res = await this.$resetpost(urlParam, {data: data}, {rejectMsg: '获取变更记录出错', resolveMsg: null})
|
|
444
|
+
if (res){
|
|
445
|
+
this.filechangeHistorys.rows = res.data
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
this.filechangeHistoryShow =true
|
|
450
|
+
},
|
|
451
|
+
ventilationYear(diffAllyear){
|
|
452
|
+
console.log("diffAllyear?",diffAllyear)
|
|
453
|
+
if ( 1<= diffAllyear && diffAllyear <= 2 ){
|
|
454
|
+
return {
|
|
455
|
+
color: 'green !important'
|
|
456
|
+
}
|
|
457
|
+
}else if (3<= diffAllyear && diffAllyear <=4){
|
|
458
|
+
return {
|
|
459
|
+
color: 'orange !important'
|
|
460
|
+
}
|
|
461
|
+
}else if (5<= diffAllyear && diffAllyear <=8){
|
|
462
|
+
return {
|
|
463
|
+
color: 'red !important'
|
|
464
|
+
}
|
|
465
|
+
}else if (diffAllyear>8){
|
|
466
|
+
return {
|
|
467
|
+
color: 'crimson !important'
|
|
468
|
+
}
|
|
469
|
+
}else {
|
|
470
|
+
return {
|
|
471
|
+
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
formatTime(expireTime){
|
|
476
|
+
if (expireTime){
|
|
477
|
+
let formats = {
|
|
478
|
+
'year': '%n%年',
|
|
479
|
+
'month': '%n%月',
|
|
480
|
+
'day': '%n%天',
|
|
481
|
+
};
|
|
482
|
+
let now = new Date().getTime()
|
|
483
|
+
let expireTimes = new Date(expireTime).getTime()
|
|
484
|
+
if (now < expireTimes){
|
|
485
|
+
return expireTime
|
|
486
|
+
}else {
|
|
487
|
+
let seconds = Math.floor((now - expireTimes) / 1000)
|
|
488
|
+
let minutes = Math.floor(seconds / 60)
|
|
489
|
+
let hours = Math.floor(minutes / 60)
|
|
490
|
+
let days = Math.floor(hours / 24)
|
|
491
|
+
let months = Math.floor(days / 30)
|
|
492
|
+
let years = Math.floor(months / 12)
|
|
493
|
+
|
|
494
|
+
let diffType = ''
|
|
495
|
+
let diffValue = 0
|
|
496
|
+
if (years > 0) {
|
|
497
|
+
diffType = 'year'
|
|
498
|
+
diffValue = years
|
|
499
|
+
} else {
|
|
500
|
+
if (months > 0) {
|
|
501
|
+
diffType = 'month'
|
|
502
|
+
diffValue = months
|
|
503
|
+
} else {
|
|
504
|
+
if (days > 0) {
|
|
505
|
+
diffType = 'day'
|
|
506
|
+
diffValue = days
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
return '已过期'+formats[diffType].replace('%n%', diffValue);
|
|
511
|
+
}
|
|
512
|
+
}else {
|
|
513
|
+
return ''
|
|
514
|
+
}
|
|
515
|
+
},
|
|
516
|
+
initParams() {
|
|
517
|
+
// 初始化气表品牌
|
|
518
|
+
let brandArr = []
|
|
519
|
+
this.$MagGetSaleParam.getGasbrand().forEach((item) => {
|
|
520
|
+
let temp = {}
|
|
521
|
+
temp.label = item.label
|
|
522
|
+
temp.value = item.value.f_meter_brand
|
|
523
|
+
brandArr.push(temp)
|
|
524
|
+
})
|
|
525
|
+
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
526
|
+
//初始化气表价格
|
|
527
|
+
this.prices = this.$MagGetSaleParam.getPrices();
|
|
528
|
+
},
|
|
529
|
+
async getaddress(){
|
|
530
|
+
console.log('开始获取小区')
|
|
531
|
+
let HttpReset = new HttpResetClass()
|
|
532
|
+
var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
|
|
533
|
+
data: {
|
|
534
|
+
condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
|
|
535
|
+
}
|
|
536
|
+
}, {resolveMsg: null, rejectMsg: '获取小区失败!'})
|
|
537
|
+
console.log('小区',data)
|
|
538
|
+
let house = []
|
|
539
|
+
for (let row of data.data){
|
|
540
|
+
console.log('开始保存小区')
|
|
541
|
+
house.push({label: row.f_residential_area, value: row.f_residential_area})
|
|
542
|
+
}
|
|
543
|
+
this.residentialArea = house
|
|
544
|
+
},
|
|
545
|
+
async downloadFiles() {
|
|
546
|
+
if (this.condition2) {
|
|
547
|
+
let data = {
|
|
548
|
+
sqlName: 'fmyGasDeviceQuery',
|
|
549
|
+
condition: this.condition2,
|
|
550
|
+
fileName: '非民用用气设备查询'
|
|
551
|
+
}
|
|
552
|
+
let HttpReset = new HttpResetClass()
|
|
553
|
+
let res = await HttpReset.load('POST', 'rs/deviceExport/gasDevices', {
|
|
554
|
+
data: data
|
|
555
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
556
|
+
if (res){
|
|
557
|
+
let downurl = 'rs/deviceExport/download?filename=非民用用气设备查询.xlsx';
|
|
558
|
+
this.$resetget(downurl, {}).then(res => {
|
|
559
|
+
var link = document.createElement('a');
|
|
560
|
+
link.target = "_blank"
|
|
561
|
+
link.href = downurl;
|
|
562
|
+
link.setAttribute("download", "非民用用气设备查询.xlsx"); //指定下载后的文件名,防跳转
|
|
563
|
+
document.body.appendChild(link);
|
|
564
|
+
link.click();
|
|
565
|
+
})
|
|
566
|
+
}
|
|
567
|
+
} else {
|
|
568
|
+
this.$showAlert('查询条件为空,请查询后再导出', 'warning', 3000)
|
|
569
|
+
return
|
|
570
|
+
}
|
|
571
|
+
},
|
|
572
|
+
//把数据库查询数据转换为下拉数据
|
|
573
|
+
calculate(rows){
|
|
574
|
+
let data = []
|
|
575
|
+
rows.forEach((row, n) => {
|
|
576
|
+
data[n] = {label: row.f_residential_area, value: row.id}
|
|
577
|
+
})
|
|
578
|
+
return data
|
|
579
|
+
},
|
|
580
|
+
search(){
|
|
581
|
+
this.$refs.paged.$refs.cri.search()
|
|
582
|
+
},
|
|
583
|
+
cancel(obj) {
|
|
584
|
+
this.show = false
|
|
585
|
+
},
|
|
586
|
+
showmsg(obj){
|
|
587
|
+
|
|
588
|
+
this.rowdata=obj
|
|
589
|
+
this.show=true
|
|
590
|
+
},
|
|
591
|
+
selfSearch(args) {
|
|
592
|
+
this.area = this.$refs.paged.$refs.cri.model.f_residential_area
|
|
593
|
+
console.log("=====小区model绑定====",this.area)
|
|
594
|
+
if(this.area.length !== 0){
|
|
595
|
+
let str = JSON.stringify(this.area)
|
|
596
|
+
str = str.replace(/"/g,`'`)
|
|
597
|
+
str = str.replace(/\[/g,``)
|
|
598
|
+
str = str.replace(/\]/g,``)
|
|
599
|
+
console.log("=====小区model22222222222绑定====",str)
|
|
600
|
+
//查询多个小区时条件
|
|
601
|
+
args.condition += ` and f_residential_area in ( ${str} )`
|
|
602
|
+
}
|
|
603
|
+
if (!this.orgCondtionStr) {
|
|
604
|
+
args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
|
|
605
|
+
} else {
|
|
606
|
+
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
607
|
+
}
|
|
608
|
+
this.condition2 = args.condition
|
|
609
|
+
this.model.search(args.condition, args.model)
|
|
610
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
611
|
+
console.log('合计字段', this.sumsmodel)
|
|
612
|
+
},
|
|
613
|
+
clear() {
|
|
614
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
615
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
616
|
+
})
|
|
617
|
+
},
|
|
618
|
+
hidden() {
|
|
619
|
+
this.criteriaShow = !this.criteriaShow
|
|
620
|
+
},
|
|
621
|
+
getRes(obj) {
|
|
622
|
+
this.orgCondtionStr = obj
|
|
623
|
+
},
|
|
624
|
+
stamp() {
|
|
625
|
+
this.all = false
|
|
626
|
+
//默认选择要打印的列
|
|
627
|
+
this.modelval = defaultPrint.config
|
|
628
|
+
this.fields = this.getfield
|
|
629
|
+
console.log('所有打印字段', this.fields)
|
|
630
|
+
this.printshow = true
|
|
631
|
+
this.put()
|
|
632
|
+
},
|
|
633
|
+
print() {
|
|
634
|
+
this.$refs.print.PrintAsFile()
|
|
635
|
+
this.printshow = false
|
|
636
|
+
},
|
|
637
|
+
close() {
|
|
638
|
+
this.printshow = false
|
|
639
|
+
},
|
|
640
|
+
// 对选择的列进行排序
|
|
641
|
+
sortModelval() {
|
|
642
|
+
let sortModel = []
|
|
643
|
+
Object.keys(this.fields).forEach((key) => {
|
|
644
|
+
if (this.modelval.includes(key)) {
|
|
645
|
+
sortModel.push(key)
|
|
646
|
+
}
|
|
647
|
+
})
|
|
648
|
+
this.modelval = sortModel
|
|
649
|
+
console.log('选择的打印的字段', this.modelval)
|
|
650
|
+
},
|
|
651
|
+
dblclick(row, index) {
|
|
652
|
+
console.log('双击之后数据', row, index)
|
|
653
|
+
this.userdetail.show = true
|
|
654
|
+
this.userdetail.f_userinfo_code = row.f_userinfo_code
|
|
655
|
+
this.userdetail.f_filialeids = row.f_filialeids
|
|
656
|
+
},
|
|
657
|
+
sort (field, rule) {
|
|
658
|
+
// 将所有排序方式设为不排序,实现相互排斥
|
|
659
|
+
for (let key in this.orderFields) {
|
|
660
|
+
if (key === field) {
|
|
661
|
+
this.orderFields[key] = rule
|
|
662
|
+
} else {
|
|
663
|
+
this.orderFields[key] = 'no'
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
// 如果新规则不排序,还原为默认排序
|
|
667
|
+
if (rule === 'no') {
|
|
668
|
+
this.model.paramSource.orderitem = `'${this.orderitem}'`
|
|
669
|
+
} else {
|
|
670
|
+
this.model.paramSource.orderitem = `'${field} ${rule}'`
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
this.search()
|
|
674
|
+
}
|
|
675
|
+
},
|
|
676
|
+
|
|
677
|
+
watch: {
|
|
678
|
+
'all'(val) {
|
|
679
|
+
if (val) {
|
|
680
|
+
this.modelval = this.bodyData
|
|
681
|
+
} else {
|
|
682
|
+
this.modelval = defaultPrint.config
|
|
683
|
+
this.put()
|
|
684
|
+
}
|
|
685
|
+
},
|
|
686
|
+
'modelval.length'() {
|
|
687
|
+
this.put()
|
|
688
|
+
},
|
|
689
|
+
'orgCondtionStr'(val) {
|
|
690
|
+
let res = val.match(/'(.*?)'/)
|
|
691
|
+
console.log('正则提取:',res && res[1])
|
|
692
|
+
if (res) {
|
|
693
|
+
this.f_filialeid = res[1]
|
|
694
|
+
if(res.input !=null){
|
|
695
|
+
let resorgid = res.input.substring(res.input.indexOf("'"));
|
|
696
|
+
if(resorgid!= null && resorgid!=''){
|
|
697
|
+
resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
|
|
698
|
+
// resorgid = resorgid.replaceAll("'","");
|
|
699
|
+
resorgid = resorgid.replace(/'/g,"");
|
|
700
|
+
this.allorgid = resorgid.split(",")
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
},
|
|
705
|
+
},
|
|
706
|
+
computed: {
|
|
707
|
+
authArr () {
|
|
708
|
+
return this.$login.r ? this.$login.r : []
|
|
709
|
+
},
|
|
710
|
+
|
|
711
|
+
getCondition() {
|
|
712
|
+
return {condition: this.condition2,orderitem:this.orderitem}
|
|
713
|
+
},
|
|
714
|
+
getfield() {
|
|
715
|
+
let data = {}
|
|
716
|
+
this.bodyData.forEach((value, index) => {
|
|
717
|
+
data[this.bodyData[index]] = this.headData[index]
|
|
718
|
+
})
|
|
719
|
+
//合计字段打印
|
|
720
|
+
this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
|
|
721
|
+
if (this.sumsmodel) {
|
|
722
|
+
Object.keys(this.sumsmodel).forEach((key) => {
|
|
723
|
+
this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
|
|
724
|
+
})
|
|
725
|
+
} else {
|
|
726
|
+
this.tfoot += '暂无'
|
|
727
|
+
}
|
|
728
|
+
this.tfoot += '</th></tr>'
|
|
729
|
+
return data
|
|
730
|
+
},
|
|
731
|
+
getExportField() {
|
|
732
|
+
return exportConfig.userConfig
|
|
733
|
+
},
|
|
734
|
+
addressstate() {
|
|
735
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('地址状态')]
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
</script>
|
|
740
|
+
<style lang="less">
|
|
741
|
+
.filechangeHistoryShow {
|
|
742
|
+
td {
|
|
743
|
+
text-align: center !important;
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
.back-red{ /* 红色背景 */
|
|
747
|
+
color: #df1335 !important;
|
|
748
|
+
}
|
|
749
|
+
.back-blue{ /* 蓝色背景 */
|
|
750
|
+
|
|
751
|
+
}
|
|
752
|
+
</style>
|
|
753
|
+
|