sale-client 3.5.239 → 3.5.241
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -0,0 +1,903 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex-row">
|
|
3
|
+
<div @keyup.enter="search" class="basic-main">
|
|
4
|
+
<criteria-paged :model="model" v-ref:paged @sort="sort">
|
|
5
|
+
<criteria partial='criteria' v-ref:criteria @condition-changed="$parent.selfSearch">
|
|
6
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
7
|
+
<modal :show.sync="$parent.$parent.upshow" width="500px" title="文件导入" v-ref:modal large backdrop="false">
|
|
8
|
+
<article slot="modal-body" class="modal-body">
|
|
9
|
+
<file-upload class="my-file-uploader " name="UploadFile" class="btn btn-success"
|
|
10
|
+
style="border-radius: 2px;"
|
|
11
|
+
action="rs/file/uploadFile" tagname="导入抄表数据" v-ref:file :headers="headers"
|
|
12
|
+
multiple></file-upload>
|
|
13
|
+
</article>
|
|
14
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
15
|
+
</footer>
|
|
16
|
+
</modal>
|
|
17
|
+
<div class="row">
|
|
18
|
+
<div class="col-sm-2 form-group">
|
|
19
|
+
<label class="font_normal_body">开始日期</label>
|
|
20
|
+
<datepicker style="width:60%" id="startDate" placeholder="开始日期"
|
|
21
|
+
v-model="model.startDate"
|
|
22
|
+
:value.sync="model.startDate"
|
|
23
|
+
:format="'yyyy-MM-dd'"
|
|
24
|
+
:show-reset-button="true">
|
|
25
|
+
</datepicker>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="col-sm-2 form-group">
|
|
28
|
+
<label class="font_normal_body">结束日期</label>
|
|
29
|
+
<!--<label for="endDate" class="control-label">结束日期</label>-->
|
|
30
|
+
<datepicker style="width:60%" id="endDate" placeholder="结束日期"
|
|
31
|
+
v-model="model.endDate"
|
|
32
|
+
:value.sync="model.endDate"
|
|
33
|
+
:format="'yyyy-MM-dd'"
|
|
34
|
+
:show-reset-button="true">
|
|
35
|
+
</datepicker>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="col-sm-2 form-group">
|
|
38
|
+
<label class="font_normal_body">用户编号</label>
|
|
39
|
+
<input style="width:60%" type="text" class="form-control col-sm-6" v-model="model.f_userinfo_code"
|
|
40
|
+
condition="f_userinfo_code='{}'" placeholder='用户编号'
|
|
41
|
+
>
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
<div class="col-sm-2 form-group">
|
|
45
|
+
<label class="font_normal_body" style="color:red">抄表日期</label>
|
|
46
|
+
<!--<label for="endDate" class="control-label">结束日期</label>-->
|
|
47
|
+
<datepicker style="width:60%" id="handDate" placeholder="抄表录入日期"
|
|
48
|
+
v-model="$parent.$parent.handDate"
|
|
49
|
+
:value.sync="$parent.$parent.handDate"
|
|
50
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
51
|
+
:show-reset-button="true">
|
|
52
|
+
</datepicker>
|
|
53
|
+
</div>
|
|
54
|
+
<!--<div class="form-group">-->
|
|
55
|
+
<!--<input style="width:60%" type="text" class="form-control" v-model="model.f_user_id"-->
|
|
56
|
+
<!--condition="f_user_id='{}'" placeholder='表编号'-->
|
|
57
|
+
<!--:size="model.f_user_id ? model.f_user_id.length : 3">-->
|
|
58
|
+
<!--</div>-->
|
|
59
|
+
|
|
60
|
+
<div class="span" style="float:right;">
|
|
61
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
62
|
+
<button class="button_search" style="width: 90px" @click="$parent.$parent.downloadFiles()">模板下载</button>
|
|
63
|
+
<button class="button_search button_spacing" @click="$parent.$parent.clickupshow()">抄表导入</button>
|
|
64
|
+
<!--<button class="button_clear button_spacing" @click="$parent.$parent.searchPrint()">抄表模板导出</button>-->
|
|
65
|
+
<!--<button class="btn btn-success width-100" @click="$parent.$parent.batchAudit()">批量审核</button>
|
|
66
|
+
-->
|
|
67
|
+
<export-excel
|
|
68
|
+
:data="{startDate: $parent.$parent.startDate, endDate: $parent.$parent.endDate, condition: $parent.$parent.model.condition,orderitem: $parent.$parent.orderitem?$parent.$parent.orderitem :'f_userinfo_code'}"
|
|
69
|
+
:field="$parent.$parent.getfield"
|
|
70
|
+
sqlurl="rs/logic/saleExport" progress="saleGetExportProgress" sql-name="getCardPlan"
|
|
71
|
+
template-name='卡表抄表导出'
|
|
72
|
+
:choose-col="true">
|
|
73
|
+
</export-excel>
|
|
74
|
+
<div
|
|
75
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
76
|
+
@click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
80
|
+
<div class="col-sm-2 form-group">
|
|
81
|
+
<label class="font_normal_body"> 小区域</label>
|
|
82
|
+
<v-select :value.sync="model.f_small_area" v-model="model.f_small_area"
|
|
83
|
+
:options='$parent.$parent.smallareas' placeholder='小区域'
|
|
84
|
+
close-on-select :search='true'
|
|
85
|
+
condition="f_small_area = '{}'"></v-select>
|
|
86
|
+
</div>
|
|
87
|
+
<div class="col-sm-2 form-group">
|
|
88
|
+
<label class="font_normal_body">用户姓名</label>
|
|
89
|
+
<input style="width:60%" type="text" class="form-control" v-model="model.f_user_name" placeholder='用户姓名'
|
|
90
|
+
condition="f_user_name like '%{}%'">
|
|
91
|
+
</div>
|
|
92
|
+
<div class="col-sm-2 form-group">
|
|
93
|
+
<label class="font_normal_body">用户地址</label>
|
|
94
|
+
<input style="width:60%" type="text" class="form-control" v-model="model.f_address"
|
|
95
|
+
condition="f_address like '%{}%'" placeholder='用户地址'
|
|
96
|
+
>
|
|
97
|
+
</div>
|
|
98
|
+
<div class="col-sm-2 form-group">
|
|
99
|
+
<label class="font_normal_body">小  区</label>
|
|
100
|
+
<input style="width:60%" type="text" class="form-control" v-model="model.f_residential_area"
|
|
101
|
+
condition="f_residential_area like '%{}%'" placeholder='小区'
|
|
102
|
+
>
|
|
103
|
+
</div>
|
|
104
|
+
<div class="col-sm-2 form-group">
|
|
105
|
+
<label class="font_normal_body">楼  栋</label>
|
|
106
|
+
<input style="width:60%" type="text" class="form-control" v-model="model.f_building"
|
|
107
|
+
condition="f_building like '%{}%'" placeholder='楼栋'
|
|
108
|
+
>
|
|
109
|
+
</div>
|
|
110
|
+
<div class="col-sm-2 form-group">
|
|
111
|
+
<label class="font_normal_body">单  元</label>
|
|
112
|
+
<input style="width:60%" type="text" class="form-control" v-model="model.f_unit"
|
|
113
|
+
condition="f_unit like '%{}%'" placeholder='单元'
|
|
114
|
+
>
|
|
115
|
+
</div>
|
|
116
|
+
<div class="col-sm-2 form-group">
|
|
117
|
+
<label class="font_normal_body">楼  层</label>
|
|
118
|
+
<input style="width:60%" type="text" class="form-control" v-model="model.f_floor"
|
|
119
|
+
condition="f_floor like '%{}%'" placeholder='楼层'
|
|
120
|
+
>
|
|
121
|
+
</div>
|
|
122
|
+
<div class="col-sm-2 form-group">
|
|
123
|
+
<label class="font_normal_body"> 门牌号</label>
|
|
124
|
+
<input style="width:60%" type="text" class="form-control" v-model="model.f_room"
|
|
125
|
+
condition="f_room like '%{}%'" placeholder='门牌号'
|
|
126
|
+
>
|
|
127
|
+
</div>
|
|
128
|
+
<div class="col-sm-2 form-group">
|
|
129
|
+
<label class="font_normal_body">表  号</label>
|
|
130
|
+
<input style="width:60%" type="text" class="form-control" v-model="model.f_meternumber"
|
|
131
|
+
condition="f_meternumber like '%{}%'" placeholder='表号'
|
|
132
|
+
>
|
|
133
|
+
</div>
|
|
134
|
+
<!--</div>-->
|
|
135
|
+
<!--<div class="row">-->
|
|
136
|
+
<div class="col-sm-2 form-group">
|
|
137
|
+
<label class="font_normal_body"> 抄表员</label>
|
|
138
|
+
<v-select :value.sync="model.f_inputtor" v-model='model.f_inputtor'
|
|
139
|
+
:options='$parent.$parent.inputtore' placeholder='抄表员'
|
|
140
|
+
close-on-select multiple="true"
|
|
141
|
+
></v-select>
|
|
142
|
+
</div>
|
|
143
|
+
<div class="col-sm-2 form-group">
|
|
144
|
+
<label class="font_normal_body">用户类型</label>
|
|
145
|
+
<v-select :value.sync="model.f_user_type" v-model="model.f_user_type"
|
|
146
|
+
:options='$parent.$parent.usertypes' placeholder='用户类型'
|
|
147
|
+
close-on-select :search='true'
|
|
148
|
+
condition="f_user_type = '{}'"></v-select>
|
|
149
|
+
</div>
|
|
150
|
+
<div class="col-sm-2 form-group">
|
|
151
|
+
<label class="font_normal_body">用气性质</label>
|
|
152
|
+
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
153
|
+
:options='$parent.$parent.gasproperties' placeholder='用气性质'
|
|
154
|
+
close-on-select :search='true'
|
|
155
|
+
condition="f_gasproperties = '{}'"></v-select>
|
|
156
|
+
</div>
|
|
157
|
+
<div class="col-sm-2 form-group">
|
|
158
|
+
<label class="font_normal_body">用户等级</label>
|
|
159
|
+
<v-select :value.sync="model.f_user_level" v-model="model.f_user_level"
|
|
160
|
+
:options='$parent.$parent.userlevels' placeholder='用户等级'
|
|
161
|
+
style="width:60%"
|
|
162
|
+
close-on-select
|
|
163
|
+
condition="f_user_level = '{}'"></v-select>
|
|
164
|
+
</div>
|
|
165
|
+
<!-- <div class="col-sm-2 form-group">
|
|
166
|
+
<label class="col-sm-4 font_normal_body">气价名称</label>
|
|
167
|
+
<v-select :value.sync="model.f_price_name"
|
|
168
|
+
v-model="model.f_price_name"
|
|
169
|
+
:options='$parent.$parent.pricenames' placeholder='气价名称'
|
|
170
|
+
condition="f_price_name= '{}'" class="col-sm-8"
|
|
171
|
+
close-on-select></v-select>
|
|
172
|
+
</div>-->
|
|
173
|
+
<div class="col-sm-2 form-group">
|
|
174
|
+
<label class="font_normal_body">抄表状态</label>
|
|
175
|
+
<v-select :value.sync="model.f_meter_state" v-model="model.f_meter_state"
|
|
176
|
+
:options='$parent.$parent.meterstates' placeholder='抄表状态'
|
|
177
|
+
close-on-select f_gasbrand_id
|
|
178
|
+
condition="f_meter_state {}"></v-select>
|
|
179
|
+
</div>
|
|
180
|
+
<div class="col-sm-2 form-group">
|
|
181
|
+
<label class="font_normal_body">气表品牌</label>
|
|
182
|
+
<v-select :value.sync="model.gasbrand" v-model="model.gasbrand"
|
|
183
|
+
:options='$parent.$parent.meterbrands' placeholder='气表品牌' close-on-select
|
|
184
|
+
v-model='$parent.$parent.gasbrand'
|
|
185
|
+
condition="f_meter_brand = '{}'"
|
|
186
|
+
></v-select>
|
|
187
|
+
</div>
|
|
188
|
+
<res-select-group :show-component="['company','department','operator']" :initres="$parent.$parent.initres"
|
|
189
|
+
@re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
|
|
190
|
+
<hl-downdata class="col-sm-1 form-group" :info="model"></hl-downdata>
|
|
191
|
+
</div>
|
|
192
|
+
|
|
193
|
+
</div>
|
|
194
|
+
</criteria>
|
|
195
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid id="CardHand">
|
|
196
|
+
<template partial='head'>
|
|
197
|
+
<tr>
|
|
198
|
+
<th>
|
|
199
|
+
<nobr>序号</nobr>
|
|
200
|
+
</th>
|
|
201
|
+
<!-- <th>户编号</th>-->
|
|
202
|
+
<!-- <th>基本信息</th>-->
|
|
203
|
+
<th>
|
|
204
|
+
<nobr>
|
|
205
|
+
<data-order field="f_userinfo_code" name="户编号"
|
|
206
|
+
:order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
|
|
207
|
+
</nobr>
|
|
208
|
+
</th>
|
|
209
|
+
<th>
|
|
210
|
+
<nobr>
|
|
211
|
+
<data-order field="f_address" name="基本信息"
|
|
212
|
+
:order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
|
|
213
|
+
</nobr>
|
|
214
|
+
</th>
|
|
215
|
+
<th>
|
|
216
|
+
<nobr>用户等级</nobr>
|
|
217
|
+
</th>
|
|
218
|
+
<th>
|
|
219
|
+
<nobr>小区</nobr>
|
|
220
|
+
</th>
|
|
221
|
+
<th>
|
|
222
|
+
<nobr>表号</nobr>
|
|
223
|
+
</th>
|
|
224
|
+
<th>
|
|
225
|
+
<nobr>抄表员</nobr>
|
|
226
|
+
</th>
|
|
227
|
+
<th>
|
|
228
|
+
<nobr>总购金额</nobr>
|
|
229
|
+
</th>
|
|
230
|
+
<th>
|
|
231
|
+
<nobr>累购气量</nobr>
|
|
232
|
+
</th>
|
|
233
|
+
<th>
|
|
234
|
+
<nobr>
|
|
235
|
+
<data-order field="f_hand_date" name="下发日期"
|
|
236
|
+
:order.sync="$parent.$parent.$parent.orderFields.f_hand_date"></data-order>
|
|
237
|
+
</nobr>
|
|
238
|
+
</th>
|
|
239
|
+
<th>
|
|
240
|
+
<nobr>
|
|
241
|
+
<data-order field="f_last_input_date" name="上次抄表录入日期"
|
|
242
|
+
:order.sync="$parent.$parent.$parent.orderFields.f_last_input_date"></data-order>
|
|
243
|
+
</nobr>
|
|
244
|
+
</th>
|
|
245
|
+
<th>
|
|
246
|
+
<nobr>
|
|
247
|
+
<data-order field="f_input_date" name="抄表录入日期"
|
|
248
|
+
:order.sync="$parent.$parent.$parent.orderFields.f_input_date"></data-order>
|
|
249
|
+
</nobr>
|
|
250
|
+
</th>
|
|
251
|
+
<th>
|
|
252
|
+
<nobr>上期底数</nobr>
|
|
253
|
+
</th>
|
|
254
|
+
<th>
|
|
255
|
+
<nobr>本期底数</nobr>
|
|
256
|
+
</th>
|
|
257
|
+
<th>
|
|
258
|
+
<nobr>表状态</nobr>
|
|
259
|
+
</th>
|
|
260
|
+
<th>
|
|
261
|
+
<nobr>实际用量</nobr>
|
|
262
|
+
</th>
|
|
263
|
+
<th>
|
|
264
|
+
<nobr>剩余气量</nobr>
|
|
265
|
+
</th>
|
|
266
|
+
<th>
|
|
267
|
+
<nobr>瞬时流量</nobr>
|
|
268
|
+
</th>
|
|
269
|
+
<th>
|
|
270
|
+
<nobr>压力</nobr>
|
|
271
|
+
</th>
|
|
272
|
+
<th>
|
|
273
|
+
<nobr>温度</nobr>
|
|
274
|
+
</th>
|
|
275
|
+
<th>
|
|
276
|
+
<nobr>流量计电量</nobr>
|
|
277
|
+
</th>
|
|
278
|
+
<th>
|
|
279
|
+
<nobr>控制器电量</nobr>
|
|
280
|
+
</th>
|
|
281
|
+
<th>
|
|
282
|
+
<nobr>阀门开关</nobr>
|
|
283
|
+
</th>
|
|
284
|
+
<th>
|
|
285
|
+
<nobr>状态</nobr>
|
|
286
|
+
</th>
|
|
287
|
+
<th>
|
|
288
|
+
<nobr>操作</nobr>
|
|
289
|
+
</th>
|
|
290
|
+
<th>
|
|
291
|
+
<nobr>备注</nobr>
|
|
292
|
+
</th>
|
|
293
|
+
</tr>
|
|
294
|
+
</template>
|
|
295
|
+
<template partial='body'>
|
|
296
|
+
<td style="text-align: center;">{{ $index + 1 }}</td>
|
|
297
|
+
<td style="text-align: center;">{{ row.f_userinfo_code }}</td>
|
|
298
|
+
<td style="text-align: center;">
|
|
299
|
+
{{ row.f_user_name }} {{ row.f_gasproperties }} {{
|
|
300
|
+
row.f_user_phone
|
|
301
|
+
}} {{ row.f_address }}
|
|
302
|
+
</td>
|
|
303
|
+
<td>{{ row.f_user_level }}</td>
|
|
304
|
+
<td style="text-align: center;">{{ row.f_residential_area }}</td>
|
|
305
|
+
<td style="text-align: center;">{{ row.f_meternumber }}</td>
|
|
306
|
+
<td style="text-align: center;">{{ row.f_inputtor }}</td>
|
|
307
|
+
<td style="text-align: center;">{{ row.total_fee }}</td>
|
|
308
|
+
<td style="text-align: center;">{{ row.total_gas }}</td>
|
|
309
|
+
<td>{{row.f_hand_date}}</td>
|
|
310
|
+
<td>{{row.f_last_input_date}}</td>
|
|
311
|
+
<td style="text-align: center;">
|
|
312
|
+
<div class="form-group" style="margin-bottom:0px;display: contents;" :class="{
|
|
313
|
+
'has-success has-feedback': !row.error,
|
|
314
|
+
'has-error has-feedback': row.error}"
|
|
315
|
+
v-if="row.f_meter_state === '未抄表'">
|
|
316
|
+
<datepicker id="f_hand_date" placeholder="抄表录入日期"
|
|
317
|
+
v-model="row.f_input_date"
|
|
318
|
+
:value.sync="row.f_input_date"
|
|
319
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
320
|
+
:show-reset-button="true">
|
|
321
|
+
</datepicker>
|
|
322
|
+
</div>
|
|
323
|
+
<div v-else>
|
|
324
|
+
{{ row.f_input_date }}
|
|
325
|
+
</div>
|
|
326
|
+
</td>
|
|
327
|
+
<td style="text-align: center;">{{ row.f_last_tablebase }}</td>
|
|
328
|
+
<td style="text-align: center;">
|
|
329
|
+
<div class="form-group" style="margin-bottom:0px;" :class="{
|
|
330
|
+
'has-success has-feedback': row.f_tablebase ? ((row.f_last_tablebase-0) <= (row.f_tablebase -0)) : false,
|
|
331
|
+
'has-error has-feedback': row.f_tablebase ? ((row.f_last_tablebase-0) > (row.f_tablebase -0) ) : false}"
|
|
332
|
+
v-if="row.f_meter_state === '未抄表' ">
|
|
333
|
+
<input type="text" class="form-control" v-model="row.f_tablebase"
|
|
334
|
+
@blur="$parent.$parent.$parent.enter(row)"
|
|
335
|
+
v-next-el="{id: $index+1}" :id="$index" style="width: 100px;padding: 6px;"
|
|
336
|
+
:disabled="row.state === '开始'"
|
|
337
|
+
@focus="$parent.$parent.$parent.clearError(row)">
|
|
338
|
+
</div>
|
|
339
|
+
<div v-else>
|
|
340
|
+
<span v-if="row.f_tablebase">{{ row.f_tablebase }}</span>
|
|
341
|
+
</div>
|
|
342
|
+
<span v-if="row.error" style="color: red;">{{ row.error }}</span>
|
|
343
|
+
</td>
|
|
344
|
+
<td>
|
|
345
|
+
<div class="form-group" style="margin-bottom:0px;display: contents;" :class="{
|
|
346
|
+
'has-success has-feedback': !row.error,
|
|
347
|
+
'has-error has-feedback': row.error}"
|
|
348
|
+
v-if="row.f_meter_state === '未抄表' && row.states !== 0">
|
|
349
|
+
<v-select :value.sync="row.f_result_state" v-model="row.f_result_state"
|
|
350
|
+
:options='$parent.$parent.$parent.resultstate' placeholder='表状态'
|
|
351
|
+
width="100%"
|
|
352
|
+
:value-single="true"
|
|
353
|
+
close-on-select
|
|
354
|
+
condition="f_adjustable_name = '{}'"></v-select>
|
|
355
|
+
<!-- <span id="inputError2Status" class="sr-only">(error)</span> -->
|
|
356
|
+
</div>
|
|
357
|
+
<div v-else>
|
|
358
|
+
{{ row.f_result_state }}
|
|
359
|
+
</div>
|
|
360
|
+
</td>
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
<td style="text-align: center;">{{ row.f_actualtablebase }}</td>
|
|
364
|
+
<td style="text-align: center;">{{ row.total_gas - (row.f_tablebase - row.f_initial_base) }}</td>
|
|
365
|
+
<td style="text-align: center;">
|
|
366
|
+
<nobr>{{row.f_instantaneous_flow}}</nobr>
|
|
367
|
+
</td>
|
|
368
|
+
<td style="text-align: center;">
|
|
369
|
+
<nobr>{{row.f_pressure}}</nobr>
|
|
370
|
+
</td>
|
|
371
|
+
<td style="text-align: center;">
|
|
372
|
+
<nobr>{{row.f_temperature}}</nobr>
|
|
373
|
+
</td>
|
|
374
|
+
<td style="text-align: center;">
|
|
375
|
+
<nobr>{{row.f_flowmeter_capacity}}</nobr>
|
|
376
|
+
</td>
|
|
377
|
+
<td style="text-align: center;">
|
|
378
|
+
<nobr>{{row.f_controller_power}}</nobr>
|
|
379
|
+
</td>
|
|
380
|
+
<td style="text-align: center;">
|
|
381
|
+
<nobr>{{row.f_valve_switch}}</nobr>
|
|
382
|
+
</td>
|
|
383
|
+
<td style="text-align: center;">{{ row.f_meter_state }}</td>
|
|
384
|
+
<td style="text-align: center;">
|
|
385
|
+
|
|
386
|
+
<!-- <button type="button" name="button" class="btn btn-link"-->
|
|
387
|
+
<!-- @click.stop="$parent.$parent.$parent.modify(row)"-->
|
|
388
|
+
<!-- v-if="row.f_meter_state === '已抄表' && !$parent.$parent.$parent.jurisdiction.includes('审核权限')">修正</button>-->
|
|
389
|
+
|
|
390
|
+
<!-- <button type="button" name="button" class="btn btn-link"
|
|
391
|
+
@click.stop="$parent.$parent.$parent.pass(row)"
|
|
392
|
+
v-if="$parent.$parent.$parent.jurisdiction.includes('审核权限') && row.f_meter_state === '待审核'">通过</button>
|
|
393
|
+
|
|
394
|
+
<button type="button" name="button" class="btn btn-link"
|
|
395
|
+
@click.stop="$parent.$parent.$parent.nopass(row)"
|
|
396
|
+
v-if="row.f_meter_state === '待审核' && $parent.$parent.$parent.jurisdiction.includes('审核权限')">不通过</button>-->
|
|
397
|
+
<button type="button" name="button" class="button_search button_spacing width-60" title="权限名称:(卡表抄表冲正)"
|
|
398
|
+
@click.stop="$parent.$parent.$parent.cardhandCenter(row)"
|
|
399
|
+
v-if="row.f_meter_state === '已抄表'">冲正
|
|
400
|
+
</button>
|
|
401
|
+
</td>
|
|
402
|
+
<td><span title="{{row.f_card_reason}}"
|
|
403
|
+
v-if="row.f_card_reason">{{ row.f_card_reason.substring(0, 5) }} ...</span>
|
|
404
|
+
</td>
|
|
405
|
+
</template>
|
|
406
|
+
</data-grid>
|
|
407
|
+
</criteria-paged>
|
|
408
|
+
<table class="table-hover">
|
|
409
|
+
<tr style="position: relative" class="table-bordered">
|
|
410
|
+
<td
|
|
411
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
412
|
+
汇总信息
|
|
413
|
+
</td>
|
|
414
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
|
|
415
|
+
抄表用量: {{ sumsmodel.f_actualtablebase }}
|
|
416
|
+
</td>
|
|
417
|
+
</tr>
|
|
418
|
+
</table>
|
|
419
|
+
<modal :show.sync="cardCental" v-ref:modal backdrop="false">
|
|
420
|
+
<header slot="modal-header" class="modal-header">
|
|
421
|
+
<h4 class="modal-title">卡表抄表冲正</h4>
|
|
422
|
+
</header>
|
|
423
|
+
<article slot="modal-body" class="modal-body">
|
|
424
|
+
<div class="form-group">
|
|
425
|
+
<label class="label-control">撤销原因</label>
|
|
426
|
+
<textarea class="form-control" v-model="cardreason" rows="3" placeholder="请填写撤销原因"></textarea>
|
|
427
|
+
</div>
|
|
428
|
+
</article>
|
|
429
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
430
|
+
<button v-show="cardCental" type="button" class="btn btn-default" @click='close'>取消</button>
|
|
431
|
+
<button v-show="cardCental" type="button" class="btn btn-success" @click='cancel(this.cardCentalData)'>确认
|
|
432
|
+
</button>
|
|
433
|
+
</footer>
|
|
434
|
+
</modal>
|
|
435
|
+
</div>
|
|
436
|
+
</div>
|
|
437
|
+
</template>
|
|
438
|
+
<script>
|
|
439
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
440
|
+
import Vue from 'vue'
|
|
441
|
+
import AppData from './../../stores/AppData'
|
|
442
|
+
import * as Util from './../../Util'
|
|
443
|
+
import co from 'co'
|
|
444
|
+
|
|
445
|
+
let loadParamGem = async function (self) {
|
|
446
|
+
await self.$LoadParams.loadParam(self.f_filialeid)
|
|
447
|
+
|
|
448
|
+
self.loadMeterBooks()
|
|
449
|
+
await self.search()
|
|
450
|
+
}
|
|
451
|
+
let modifyGen = function* (self, row, url) {
|
|
452
|
+
console.log('抄表修正,。。。', row, url)
|
|
453
|
+
self.cardCental = false
|
|
454
|
+
self.cardCentalData = ''
|
|
455
|
+
row.f_user_id = row.f_user_id + ''
|
|
456
|
+
// 删除待审核的抄表记录
|
|
457
|
+
let state = yield self.$resetpost(url, {data: row}, {warnMsg: null, rejectMsg: null, resolveMsg: null})
|
|
458
|
+
if (state.data === '异常') {
|
|
459
|
+
Vue.showAlert('该笔抄表有差额记录,请先冲正!!!', 'warning', 4000)
|
|
460
|
+
return
|
|
461
|
+
} else if (state.data === '正常') {
|
|
462
|
+
Vue.showAlert('冲正成功,稍等片刻,正在重新查询!', 'success', 4000)
|
|
463
|
+
}
|
|
464
|
+
self.cardreason = ''
|
|
465
|
+
// 重新查询界面
|
|
466
|
+
self.search()
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
export default {
|
|
470
|
+
title: '卡表抄表',
|
|
471
|
+
data () {
|
|
472
|
+
return {
|
|
473
|
+
timer: null,
|
|
474
|
+
// 请求对象(批量导入,查询进度使用)
|
|
475
|
+
HttpReset: new HttpResetClass(),
|
|
476
|
+
resultstate: this.$appdata.getParam('卡表抄表表状态'),
|
|
477
|
+
criteriaShow: false,
|
|
478
|
+
orderitem: 'f_userinfo_code',
|
|
479
|
+
model: new PagedList('rs/sql/getCardPlan', 50, {orderitem: this.orderitem ? '"' + this.orderitem + ' "' : `'f_userinfo_code'`}, {f_actualtablebase: 0}),
|
|
480
|
+
// model: new PagedList('rs/sql/cardHands', 50),
|
|
481
|
+
startDate: Util.toStartAndEndDateString()[0],
|
|
482
|
+
endDate: Util.toStartAndEndDateString()[1],
|
|
483
|
+
handDate: null,
|
|
484
|
+
batch_audit: false,
|
|
485
|
+
cardCental: false,
|
|
486
|
+
// 合计数据
|
|
487
|
+
sumsmodel: {},
|
|
488
|
+
orderFields: {
|
|
489
|
+
f_userinfo_id: 'no'
|
|
490
|
+
},
|
|
491
|
+
f_filialeid: this.$login.f.orgid,
|
|
492
|
+
cardreason: '',
|
|
493
|
+
cardCentalData: '',
|
|
494
|
+
getfield: {
|
|
495
|
+
'id': '抄表单编号',
|
|
496
|
+
'f_userinfo_code': '客户编号',
|
|
497
|
+
'f_user_name': '基本信息',
|
|
498
|
+
'f_meternumber': '表号',
|
|
499
|
+
'f_inputtor': '抄表员',
|
|
500
|
+
'total_fee': '总购金额',
|
|
501
|
+
'total_gas': '累购气量',
|
|
502
|
+
'f_hand_date': '下发日期',
|
|
503
|
+
'f_last_input_date': '上次抄表录入日期',
|
|
504
|
+
'f_input_date': '抄表录入日期',
|
|
505
|
+
'f_last_tablebase': '上期底数',
|
|
506
|
+
'f_tablebase': '本期底数',
|
|
507
|
+
'f_actualtablebase': '实际用量',
|
|
508
|
+
'f_meter_state': '状态'
|
|
509
|
+
},
|
|
510
|
+
meterbrands: [{label: '全部', value: ''}],
|
|
511
|
+
upshow: false,
|
|
512
|
+
initres: {
|
|
513
|
+
org: [this.$login.f.orgid],
|
|
514
|
+
dep: [],
|
|
515
|
+
user: []
|
|
516
|
+
},
|
|
517
|
+
orgCondtionStr: ''
|
|
518
|
+
}
|
|
519
|
+
},
|
|
520
|
+
beforeDestroy () {
|
|
521
|
+
// 销毁定时器
|
|
522
|
+
if (this.timer) clearInterval(this.timer)
|
|
523
|
+
},
|
|
524
|
+
ready () {
|
|
525
|
+
this.$refs.paged.$refs.criteria.model.startDate = Util.toStartAndEndDateString()[0]
|
|
526
|
+
this.$refs.paged.$refs.criteria.model.endDate = Util.toStartAndEndDateString()[1]
|
|
527
|
+
loadParamGem(this)
|
|
528
|
+
},
|
|
529
|
+
methods: {
|
|
530
|
+
downloadFiles () {
|
|
531
|
+
let downurl = 'rs/downloadfile/file?filename=卡表批量抄表导入模板'
|
|
532
|
+
this.$resetget(downurl, {}).then(res => {
|
|
533
|
+
var link = document.createElement('a')
|
|
534
|
+
link.target = '_blank'
|
|
535
|
+
link.href = downurl
|
|
536
|
+
link.setAttribute('download', '卡表批量抄表导入模板.xlsx')
|
|
537
|
+
document.body.appendChild(link)
|
|
538
|
+
link.click()
|
|
539
|
+
})
|
|
540
|
+
},
|
|
541
|
+
hidden () {
|
|
542
|
+
this.criteriaShow = !this.criteriaShow
|
|
543
|
+
},
|
|
544
|
+
loadMeterBooks () {
|
|
545
|
+
let meterbrand = this.$GetSaleParam.getGasbrand()
|
|
546
|
+
for (let row of meterbrand) {
|
|
547
|
+
console.log(row)
|
|
548
|
+
this.meterbrands.push({label: row.label, value: row.label})
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
search () {
|
|
552
|
+
this.$refs.paged.$refs.criteria.search()
|
|
553
|
+
},
|
|
554
|
+
clickupshow () {
|
|
555
|
+
console.log('in upload', this.upshow, !this.upshow)
|
|
556
|
+
this.upshow = !this.upshow
|
|
557
|
+
},
|
|
558
|
+
searchPrint () {
|
|
559
|
+
console.log('mode', this.model)
|
|
560
|
+
let cons = this.model.params
|
|
561
|
+
console.log('查询条件', cons)
|
|
562
|
+
let data = {
|
|
563
|
+
'body': {
|
|
564
|
+
'data': {
|
|
565
|
+
'condition': ''
|
|
566
|
+
},
|
|
567
|
+
'field': [],
|
|
568
|
+
'templateName': '',
|
|
569
|
+
'sqlName': ''
|
|
570
|
+
},
|
|
571
|
+
'condition': cons,
|
|
572
|
+
'sqlname': 'cardHands'
|
|
573
|
+
}
|
|
574
|
+
this.$resetpost('rs/logic/allExportExcel', {data: data}, {resolveMsg: null, rejectMsg: '上传失败'}).then((res) => {
|
|
575
|
+
if (res.data === 'no user') {
|
|
576
|
+
this.$showAlert(`无匹配用户,无法导出对应excel`, 'warning', 2000)
|
|
577
|
+
} else {
|
|
578
|
+
var link = document.createElement('a')
|
|
579
|
+
res.data.forEach((item) => {
|
|
580
|
+
console.log('导出路径', item.filename)
|
|
581
|
+
let path = item.filename
|
|
582
|
+
// 本地
|
|
583
|
+
// let pathName = "http://" + location.host + "/excel" + path.split('excel')[1]
|
|
584
|
+
// 服务器
|
|
585
|
+
let pathName = 'http://' + location.host + '/webapps' + path.split('webapps')[1]
|
|
586
|
+
link.href = pathName
|
|
587
|
+
console.log('=============================', path.split('excel/')[1])
|
|
588
|
+
link.download = path.split('excel/')[1]
|
|
589
|
+
link.dispatchEvent(new MouseEvent('click'))
|
|
590
|
+
})
|
|
591
|
+
}
|
|
592
|
+
})
|
|
593
|
+
},
|
|
594
|
+
changeType () {
|
|
595
|
+
if (this.$refs.paged.$refs.criteria.model.f_meter_classify && this.$refs.paged.$refs.criteria.model.f_meter_classify.length > 0) {
|
|
596
|
+
this.$dispatch('type', this.$refs.paged.$refs.criteria.model.f_meter_classify[0])
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
getRes (obj) {
|
|
600
|
+
this.orgCondtionStr = obj
|
|
601
|
+
},
|
|
602
|
+
selfSearch (args) {
|
|
603
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
604
|
+
|
|
605
|
+
this.startDate = this.$refs.paged.$refs.criteria.model.startDate
|
|
606
|
+
this.endDate = this.$refs.paged.$refs.criteria.model.endDate
|
|
607
|
+
console.log('卡表抄表查询参数,。,。', args, this.model)
|
|
608
|
+
this.model.params.startDate = this.$refs.paged.$refs.criteria.model.startDate
|
|
609
|
+
this.model.params.endDate = this.$refs.paged.$refs.criteria.model.endDate
|
|
610
|
+
|
|
611
|
+
// 抄表员查询条件
|
|
612
|
+
this.inputtouPerson = this.$refs.paged.$refs.criteria.model.f_inputtor
|
|
613
|
+
if (this.inputtouPerson.length !== 0) {
|
|
614
|
+
let str = JSON.stringify(this.inputtouPerson)
|
|
615
|
+
str = str.replace(/"/g, `'`)
|
|
616
|
+
str = str.replace(/\[/g, ``)
|
|
617
|
+
str = str.replace(/\]/g, ``)
|
|
618
|
+
console.log('=====抄表员model22222222222绑定====', str)
|
|
619
|
+
// 查询多个抄表员时条件
|
|
620
|
+
args.condition += ` and f_inputtor in ( ${str} )`
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
if (!this.orgCondtionStr) {
|
|
624
|
+
args.condition = `${args.condition}` + ' and f_orgid = ' + this.$login.f.orgid
|
|
625
|
+
} else {
|
|
626
|
+
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
627
|
+
}
|
|
628
|
+
if (args.model.f_meter_state.length > 0) {
|
|
629
|
+
console.log('选择待审核状态了', args.model)
|
|
630
|
+
this.batch_audit = args.model.f_meter_state[0] !== '已抄表' && args.model.f_meter_state[0] !== '未抄表'
|
|
631
|
+
}
|
|
632
|
+
this.model.search(args.condition, this.model)
|
|
633
|
+
},
|
|
634
|
+
reflash () {
|
|
635
|
+
this.$refs.paged.$refs.criteria.search()
|
|
636
|
+
},
|
|
637
|
+
enter (row) {
|
|
638
|
+
if (!row.f_tablebase || ((row.f_tablebase - 0) - (row.f_last_tablebase - 0)).toFixed(2) < 0) {
|
|
639
|
+
return
|
|
640
|
+
}
|
|
641
|
+
if (row.f_tablebase - parseInt(row.f_tablebase) !== 0) {
|
|
642
|
+
Vue.set(row, 'error', '底数只能输入整数')
|
|
643
|
+
return
|
|
644
|
+
}
|
|
645
|
+
// || ((row.f_tablebase - 0) - (row.f_last_tablebase - 0)).toFixed(2) < 0
|
|
646
|
+
if (row.f_tablebase) {
|
|
647
|
+
// 如果本期底数大于上期底数生成超用收费
|
|
648
|
+
// if ((row.f_tablebase - 0) > (row.f_meter_base - 0)) {
|
|
649
|
+
// row.charge_type = '超用收费'
|
|
650
|
+
// row.f_real_amount = (row.f_tablebase - 0) - (row.f_last_tablebase - 0)
|
|
651
|
+
// } else if ((row.f_tablebase - 0) < (row.f_meter_base - 0)) {
|
|
652
|
+
// // 如果本地底数小于上期底数生成补差收费
|
|
653
|
+
// row.charge_type = '补差收费'
|
|
654
|
+
// row.f_real_amount = (row.f_tablebase - 0) - (row.f_last_tablebase - 0)
|
|
655
|
+
// } else if ((row.f_tablebase - 0) == (row.f_last_tablebase - 0)) {
|
|
656
|
+
// row.charge_type = '正常收费'
|
|
657
|
+
// row.f_real_amount = 0
|
|
658
|
+
// }
|
|
659
|
+
row.f_operator = this.$login.f.name
|
|
660
|
+
row.f_filiale = this.$login.f.f_fengongsi
|
|
661
|
+
row.f_outlets = this.$login.f.f_parentname
|
|
662
|
+
row.f_meter_state = '已抄表'
|
|
663
|
+
if (this.handDate) {
|
|
664
|
+
row.f_input_date = this.handDate
|
|
665
|
+
}
|
|
666
|
+
row.f_input_date = row.f_input_date ? row.f_input_date : Util.toStandardTimeString()
|
|
667
|
+
row.f_last_input_date = row.f_last_input_date ? row.f_last_input_date : row.f_input_date
|
|
668
|
+
row.f_operate_date = Util.toStandardTimeString()
|
|
669
|
+
row.f_filialeids = this.$login.f.orgid
|
|
670
|
+
row.f_orgid = this.$login.f.orgid
|
|
671
|
+
row.f_orgname = this.$login.f.orgs
|
|
672
|
+
row.f_depid = this.$login.f.depids
|
|
673
|
+
row.f_depname = this.$login.f.deps
|
|
674
|
+
row.f_operatorid = this.$login.f.id
|
|
675
|
+
row.f_user_id = row.f_user_id + ''
|
|
676
|
+
row.f_total_gas = row.total_gas
|
|
677
|
+
row.f_total_fee = row.total_fee
|
|
678
|
+
// 余气量=累购-(本期指数-表初始指数)
|
|
679
|
+
row.f_shengyu_gas = (row.f_total_gas - (row.f_tablebase - row.f_initial_base)).toFixed(2)
|
|
680
|
+
console.log('录入完毕。。', row)
|
|
681
|
+
this.$resetpost('rs/logic/cardCommonEnter', row, {resolveMsg: null, rejectMsg: '录入数据出错!!!'}).then((res) => {
|
|
682
|
+
console.log('返回数据', res)
|
|
683
|
+
row.id = res.data.id
|
|
684
|
+
console.log('录入完数据的row值,,', row)
|
|
685
|
+
}).catch((error) => {
|
|
686
|
+
row.state = '失败'
|
|
687
|
+
Vue.set(row, 'error', JSON.stringify(error))
|
|
688
|
+
})
|
|
689
|
+
} else {
|
|
690
|
+
|
|
691
|
+
}
|
|
692
|
+
},
|
|
693
|
+
batchAudit () {
|
|
694
|
+
// 批量审核
|
|
695
|
+
console.log('录入完毕。。', this.model.condition)
|
|
696
|
+
this.$resetpost('rs/logic/batchCardHandAudit', {
|
|
697
|
+
data: {
|
|
698
|
+
condition: this.model.condition,
|
|
699
|
+
startDate: this.$refs.paged.$refs.criteria.model.startDate,
|
|
700
|
+
endDate: this.$refs.paged.$refs.criteria.model.endDate
|
|
701
|
+
}
|
|
702
|
+
}, {resolveMsg: null, rejectMsg: '批量审核出错!!!'}, 0).then((res) => {
|
|
703
|
+
if (res.data.f_state === '异常') {
|
|
704
|
+
this.$showAlert(`本次审核有${res.data.handRepeatLength}户重复抄表,请处理后再进行审核操作!重复用户编号:${res.data.userRepeat}`, 'warning', 10000)
|
|
705
|
+
} else {
|
|
706
|
+
console.log('审核通过', res.data)
|
|
707
|
+
this.$showAlert(`批量审核成功!!! 审核抄表数: ${res.data.total}, 成功条数: ${res.data.success}`, 'success', 4000)
|
|
708
|
+
this.search()
|
|
709
|
+
}
|
|
710
|
+
})
|
|
711
|
+
},
|
|
712
|
+
modify (row) {
|
|
713
|
+
// 录入错误进行修正
|
|
714
|
+
co(modifyGen(this, row, 'rs/logic/cardhandnopass'))
|
|
715
|
+
},
|
|
716
|
+
pass (row) {
|
|
717
|
+
co(modifyGen(this, row, 'rs/logic/cardhandpass'))
|
|
718
|
+
},
|
|
719
|
+
nopass (row) {
|
|
720
|
+
co(modifyGen(this, row, 'rs/logic/cardhandnopass'))
|
|
721
|
+
},
|
|
722
|
+
cardhandCenter (row) {
|
|
723
|
+
// let load = new HttpResetClass()
|
|
724
|
+
// load.load('POST', 'rs/logic/Correct', {data: row}, {warnMsg: null, resolveMsg: null})
|
|
725
|
+
// 抄表加入权限
|
|
726
|
+
if (!this.$login.r.find(value => value == '卡表抄表冲正')) {
|
|
727
|
+
this.$showMessage('当前登录用户没有冲正权限, 请联系管理员!')
|
|
728
|
+
return
|
|
729
|
+
}
|
|
730
|
+
this.cardCental = true
|
|
731
|
+
this.cardCentalData = row
|
|
732
|
+
},
|
|
733
|
+
cancel (row) {
|
|
734
|
+
row.operatorInfo = {
|
|
735
|
+
f_filiale: this.$login.f.f_fengongsi,
|
|
736
|
+
f_outlets: this.$login.f.f_parentname,
|
|
737
|
+
f_operator: this.$login.f.name,
|
|
738
|
+
cardreason: this.cardreason
|
|
739
|
+
}
|
|
740
|
+
row.f_last_hand_date = row.f_last_input_date
|
|
741
|
+
co(modifyGen(this, row, 'rs/logic/cardhandCancel'))
|
|
742
|
+
},
|
|
743
|
+
close () {
|
|
744
|
+
this.cardCental = false
|
|
745
|
+
this.cardCentalData = ''
|
|
746
|
+
this.cardreason = ''
|
|
747
|
+
},
|
|
748
|
+
clearError (row) {
|
|
749
|
+
if (row.f_tablebase === 0) {
|
|
750
|
+
row.f_tablebase = ''
|
|
751
|
+
}
|
|
752
|
+
Vue.set(row, 'error', null)
|
|
753
|
+
},
|
|
754
|
+
// 删除这条计划
|
|
755
|
+
delectHand (row) {
|
|
756
|
+
this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
|
757
|
+
if (res === 'confirm') {
|
|
758
|
+
this.$resetpost('rs/logic/deleteCardPlan', {data: row}).then(() => {
|
|
759
|
+
let condition = this.model.condition
|
|
760
|
+
this.selfSearch({condition: condition})
|
|
761
|
+
})
|
|
762
|
+
}
|
|
763
|
+
})
|
|
764
|
+
},
|
|
765
|
+
sort (field, rule) {
|
|
766
|
+
// 将所有排序方式设为不排序,实现相互排斥
|
|
767
|
+
for (let key in this.orderFields) {
|
|
768
|
+
if (key === field) {
|
|
769
|
+
this.orderFields[key] = rule
|
|
770
|
+
} else {
|
|
771
|
+
this.orderFields[key] = 'no'
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
// 如果新规则不排序,还原为默认排序
|
|
775
|
+
if (rule === 'no') {
|
|
776
|
+
this.model.paramSource.orderitem = `'${this.orderitem}'`
|
|
777
|
+
} else {
|
|
778
|
+
this.model.paramSource.orderitem = `'${field} ${rule}'`
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
this.search()
|
|
782
|
+
}
|
|
783
|
+
},
|
|
784
|
+
computed: {
|
|
785
|
+
inputtore () {
|
|
786
|
+
// 获取抄表员
|
|
787
|
+
console.log('获取抄表员', this.$login.f)
|
|
788
|
+
let rs = []
|
|
789
|
+
if (this.$login.f.f_gasman.length > 0) {
|
|
790
|
+
for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
|
|
791
|
+
let temp = {
|
|
792
|
+
label: this.$login.f.f_gasman[i].name,
|
|
793
|
+
value: this.$login.f.f_gasman[i].name
|
|
794
|
+
}
|
|
795
|
+
rs.push(temp)
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
this.inputtores2 = rs
|
|
799
|
+
return [...rs]
|
|
800
|
+
},
|
|
801
|
+
meterstates () {
|
|
802
|
+
return [{label: '全部', value: ''}, {label: '未抄表', value: "= '未抄表'"}, {
|
|
803
|
+
label: '已抄表',
|
|
804
|
+
value: "= '已抄表'"
|
|
805
|
+
}, {label: '冲正', value: "='冲正'"}]
|
|
806
|
+
},
|
|
807
|
+
specialuser () {
|
|
808
|
+
return [{label: '全部', value: ''}, {label: '正常用户', value: "= '正常用户'"}, {label: '采暖户', value: "= '采暖户'"}]
|
|
809
|
+
},
|
|
810
|
+
usertypes () {
|
|
811
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
812
|
+
},
|
|
813
|
+
userlevels () {
|
|
814
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户等级')]
|
|
815
|
+
},
|
|
816
|
+
smallareas () {
|
|
817
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('小区域')]
|
|
818
|
+
},
|
|
819
|
+
ventilationstate () {
|
|
820
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('通气手续')]
|
|
821
|
+
},
|
|
822
|
+
gasproperties () {
|
|
823
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
|
|
824
|
+
},
|
|
825
|
+
pricenames () {
|
|
826
|
+
let arr = []
|
|
827
|
+
AppData.getOnlyPrice().forEach((item) => {
|
|
828
|
+
let temp = {}
|
|
829
|
+
temp.label = item.label
|
|
830
|
+
temp.value = item.value.f_price_name
|
|
831
|
+
arr.push(temp)
|
|
832
|
+
})
|
|
833
|
+
return [{label: '全部', value: ''}, ...arr]
|
|
834
|
+
},
|
|
835
|
+
whetherpaies () {
|
|
836
|
+
return [
|
|
837
|
+
{label: '全部', value: ''},
|
|
838
|
+
{label: '已缴费', value: '是'},
|
|
839
|
+
{label: '未缴费', value: '否'}
|
|
840
|
+
]
|
|
841
|
+
},
|
|
842
|
+
// 界面细节权限
|
|
843
|
+
jurisdiction () {
|
|
844
|
+
return this.$login.r ? this.$login.r : []
|
|
845
|
+
},
|
|
846
|
+
brand () {
|
|
847
|
+
return [{
|
|
848
|
+
label: '全部',
|
|
849
|
+
value: {f_meter_brand: '', gasmodel: [{label: '全部', value: {f_meter_style: ''}}]}
|
|
850
|
+
}, ...AppData.getGasbrand()]
|
|
851
|
+
}
|
|
852
|
+
},
|
|
853
|
+
events: {
|
|
854
|
+
onFileUpload: function (file, res) {
|
|
855
|
+
console.log('进入了抄表上传')
|
|
856
|
+
let uuid = this.$login.guid()
|
|
857
|
+
let data1 = {
|
|
858
|
+
filepath: res.f_downloadpath,
|
|
859
|
+
f_operator: this.$login.f.name,
|
|
860
|
+
f_operatorid: this.$login.f.id,
|
|
861
|
+
f_orgid: this.$login.f.orgid,
|
|
862
|
+
f_orgname: this.$login.f.orgs,
|
|
863
|
+
f_depid: this.$login.f.depids,
|
|
864
|
+
f_depname: this.$login.f.deps,
|
|
865
|
+
uuid: uuid
|
|
866
|
+
}
|
|
867
|
+
console.log('传入数据', data1)
|
|
868
|
+
try {
|
|
869
|
+
this.$resetpost('rs/handPlanAudit/cardBatchCommonEnter', data1, {resolveMsg: null, rejectMsg: null}, 1000)
|
|
870
|
+
} catch (e) {
|
|
871
|
+
}
|
|
872
|
+
this.$showMessage(`正在批量处理中, 请耐心等待...`, [])
|
|
873
|
+
// 启动定时器定时查询处理结果
|
|
874
|
+
this.timer = setInterval(async () => {
|
|
875
|
+
let res = await this.HttpReset.load('POST', 'rs/logic/getBatchOperaPro', {data: {uuid: uuid}}, {
|
|
876
|
+
resolveMsg: null,
|
|
877
|
+
rejectMsg: null
|
|
878
|
+
})
|
|
879
|
+
console.log('查询进度返回: ', res)
|
|
880
|
+
if (res.data.msg || res.data.error) {
|
|
881
|
+
clearInterval(this.timer)
|
|
882
|
+
this.$closeMessage()
|
|
883
|
+
if (res.data.error) {
|
|
884
|
+
this.$showAlert(`${res.data.error}`, 'danger')
|
|
885
|
+
return
|
|
886
|
+
}
|
|
887
|
+
await this.$showMessage(`处理总条数: ${res.data.n}, 成功${res.data.success}条, 失败${res.data.fail}条`)
|
|
888
|
+
this.upshow = false
|
|
889
|
+
this.search()
|
|
890
|
+
}
|
|
891
|
+
}, 5000)
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
</script>
|
|
896
|
+
<style lang="less">
|
|
897
|
+
#CardHand {
|
|
898
|
+
thead {
|
|
899
|
+
position: relative;
|
|
900
|
+
z-index: 2;
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
</style>
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<validator name='v'>
|
|
4
|
+
<form class="form-horizontal">
|
|
5
|
+
<div class="row">
|
|
6
|
+
<div class="col-sm-8 form-group" :class="[$v.cause.required || $v.cause.dctest? 'has-error' : 'has-success']">
|
|
7
|
+
<label for="f_reason" class="font_normal_body">封堵原因</label>
|
|
8
|
+
<input class="input_search"
|
|
9
|
+
style="width:80%"
|
|
10
|
+
v-model="model.cause"
|
|
11
|
+
v-validate:cause='{required: true }'
|
|
12
|
+
placeholder="封堵原因"/>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="row" style="margin-top:1px;">
|
|
16
|
+
<div class="col-sm-8 form-group">
|
|
17
|
+
<label for="f_reason" class="font_normal_body">备  注</label>
|
|
18
|
+
<input class="input_search" style="width:80%" v-model="model.f_othereason" placeholder="备注"/>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</form>
|
|
22
|
+
<div style="text-align:right;">
|
|
23
|
+
<button class="button_search button_spacing" @click="confirm()" :disabled='!$v.valid'>确认</button>
|
|
24
|
+
<button class="button_clear" @click="clean()">取消</button>
|
|
25
|
+
</div>
|
|
26
|
+
</validator>
|
|
27
|
+
</div>
|
|
28
|
+
<upload :blodid="blodid" v-if="false" isremark="true" fusetype="表具停用"></upload>
|
|
29
|
+
</template>
|
|
30
|
+
<script>
|
|
31
|
+
import Vue from 'vue'
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
*综合业务
|
|
35
|
+
表具停用组件
|
|
36
|
+
*/
|
|
37
|
+
export default {
|
|
38
|
+
title: '用户封堵',
|
|
39
|
+
props: ['row'],
|
|
40
|
+
data () {
|
|
41
|
+
return {
|
|
42
|
+
blodid: '',
|
|
43
|
+
showupload: true,
|
|
44
|
+
model: {},
|
|
45
|
+
reason: this.$appdata.getParam('封堵原因')
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
ready () {
|
|
49
|
+
this.blodid = this.row.f_userinfo_id
|
|
50
|
+
},
|
|
51
|
+
methods: {
|
|
52
|
+
async confirm () {
|
|
53
|
+
let params = {
|
|
54
|
+
f_userfiles: {
|
|
55
|
+
f_userfiles_id: this.row.f_userfiles_id,
|
|
56
|
+
f_table_state: '封堵',
|
|
57
|
+
version: this.row.version
|
|
58
|
+
},
|
|
59
|
+
f_userinfo: {
|
|
60
|
+
f_userinfo_id: this.row.f_userinfo_id,
|
|
61
|
+
f_user_state: '封堵',
|
|
62
|
+
version: this.row.version
|
|
63
|
+
},
|
|
64
|
+
f_plugging: {
|
|
65
|
+
f_userfiles_id: this.row.f_userfiles_id,
|
|
66
|
+
f_user_id: this.row.f_user_id,
|
|
67
|
+
f_userinfo_id: this.row.f_userinfo_id,
|
|
68
|
+
f_user_name: this.row.f_user_name,
|
|
69
|
+
f_comments: this.model.cause,
|
|
70
|
+
f_othereason: this.model.f_othereason,
|
|
71
|
+
f_operat_type: '封堵',
|
|
72
|
+
f_describe: `${this.$login.f.name}对客户${this.row.f_user_name}进行封堵操作`,
|
|
73
|
+
f_state: '有效',
|
|
74
|
+
f_operator: this.$login.f.name,
|
|
75
|
+
f_operatorid: this.$login.f.id,
|
|
76
|
+
f_orgid: this.$login.f.orgid,
|
|
77
|
+
f_orgname: this.$login.f.orgs,
|
|
78
|
+
f_depid: this.$login.f.depids,
|
|
79
|
+
f_depname: this.$login.f.deps,
|
|
80
|
+
f_zoneid: this.$login.f.zoneid,
|
|
81
|
+
f_zones: this.$login.f.zones,
|
|
82
|
+
f_operate_date: this.$login.toStandardTimeString()
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
this.$resetpost('rs/logic/sale_userPlugging', {data: params}, {
|
|
86
|
+
resolveMsg: '用户封堵成功!!',
|
|
87
|
+
rejectMsg: '用户封堵失败!!'
|
|
88
|
+
})
|
|
89
|
+
this.$dispatch('success')
|
|
90
|
+
},
|
|
91
|
+
clean () {
|
|
92
|
+
this.$dispatch('refresh')
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
</script>
|
|
97
|
+
|
|
98
|
+
<style>
|
|
99
|
+
</style>
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<validator name='v'>
|
|
4
|
+
<form novalidate class="form-horizontal">
|
|
5
|
+
<div class="row">
|
|
6
|
+
<div class="col-sm-6 form-group">
|
|
7
|
+
<label class="font_normal_body">封堵时间</label>
|
|
8
|
+
<input type="text" class="input_search" v-model="plugging.f_operate_date" style="width:60%" disabled
|
|
9
|
+
placeholder="上次停用时间"/>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="col-sm-6 form-group">
|
|
12
|
+
<label class="font_normal_body">操作人</label>
|
|
13
|
+
<input type="text" class="input_search" v-model="plugging.f_operator" style="width:60%" disabled
|
|
14
|
+
placeholder="操作人"/>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="col-sm-12 form-group">
|
|
17
|
+
<label class="font_normal_body">封堵原因</label>
|
|
18
|
+
<input type="text" class="input_search" v-model="plugging.f_comments" style="width:60%" disabled
|
|
19
|
+
placeholder="停用原因"/>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="col-sm-12 form-group">
|
|
22
|
+
<label class="font_normal_body">其他原因</label>
|
|
23
|
+
<input type="text" class="input_search" v-model="plugging.f_othereason" style="width:60%" disabled
|
|
24
|
+
placeholder="停用原因"/>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="row">
|
|
28
|
+
<div class="col-sm-8 form-group" :class="[$v.f_comments.required || $v.f_comments.dctest? 'has-error' : 'has-success']">
|
|
29
|
+
<label for="f_reason" class="font_normal_body">解除封堵原因</label>
|
|
30
|
+
<input class="input_search"
|
|
31
|
+
style="width:80%"
|
|
32
|
+
v-model="model.f_comments"
|
|
33
|
+
v-validate:f_comments='{required: true }'
|
|
34
|
+
placeholder="解除封堵原因"/>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="row" style="margin-top:1px;">
|
|
38
|
+
<div class="col-sm-8 form-group">
|
|
39
|
+
<label for="f_reason" class="font_normal_body">备  注</label>
|
|
40
|
+
<input class="input_search" style="width:80%" v-model="model.f_othereason" placeholder="备注"/>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</form>
|
|
44
|
+
<div style="text-align:right;">
|
|
45
|
+
<button class="button_search button_spacing" @click="confirm()" :disabled='!$v.valid'>确认</button>
|
|
46
|
+
<button class="button_clear" @click="clean()">取消</button>
|
|
47
|
+
</div>
|
|
48
|
+
</validator>
|
|
49
|
+
</div>
|
|
50
|
+
</template>
|
|
51
|
+
<script>
|
|
52
|
+
/**
|
|
53
|
+
*综合业务
|
|
54
|
+
*表具启用组件
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
let meterEnable = async function (self, model, row) {
|
|
58
|
+
let params = {
|
|
59
|
+
f_userfiles: {
|
|
60
|
+
f_userfiles_id: row.f_userfiles_id,
|
|
61
|
+
f_table_state: '正常',
|
|
62
|
+
version: row.version
|
|
63
|
+
},
|
|
64
|
+
f_userinfo: {
|
|
65
|
+
f_userinfo_id: row.f_userinfo_id,
|
|
66
|
+
f_user_state: '正常',
|
|
67
|
+
version: row.version
|
|
68
|
+
},
|
|
69
|
+
f_secure_plugging: {
|
|
70
|
+
f_userfiles_id: row.f_userfiles_id,
|
|
71
|
+
f_user_id: row.f_user_id,
|
|
72
|
+
record_userinfo: row.f_userinfo_id,
|
|
73
|
+
f_userinfo_id: row.f_userinfo_id,
|
|
74
|
+
f_user_name: row.f_user_name,
|
|
75
|
+
f_state: '有效',
|
|
76
|
+
f_comments: model.f_comments,
|
|
77
|
+
f_othereason: model.f_othereason,
|
|
78
|
+
f_operat_type: '解除封堵',
|
|
79
|
+
f_describe: `${self.$login.f.name}对客户${row.f_user_name}进行用户进行解除封堵`,
|
|
80
|
+
f_operator: self.$login.f.name,
|
|
81
|
+
f_operatorid: self.$login.f.id,
|
|
82
|
+
f_orgid: self.$login.f.orgid,
|
|
83
|
+
f_orgname: self.$login.f.orgs,
|
|
84
|
+
f_depid: self.$login.f.depids,
|
|
85
|
+
f_depname: self.$login.f.deps,
|
|
86
|
+
f_zoneid: self.$login.f.zoneid,
|
|
87
|
+
f_zones: self.$login.f.zones,
|
|
88
|
+
f_operate_date: self.$login.toStandardTimeString()
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
console.log('解除封堵。。。。。。。。。。')
|
|
92
|
+
await self.$resetpost('rs/logic/sale_userSecurePlugging', {data: params}, {resolveMsg: '解除封堵成功', rejectMsg: '解除封堵失败'})
|
|
93
|
+
self.$dispatch('success')
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export default {
|
|
97
|
+
title: '解除用户封堵',
|
|
98
|
+
props: ['row'],
|
|
99
|
+
data () {
|
|
100
|
+
return {
|
|
101
|
+
model: {},
|
|
102
|
+
reason: this.$appdata.getParam('解除封堵原因'),
|
|
103
|
+
plugging: {},
|
|
104
|
+
kaifa: false
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
ready () {
|
|
108
|
+
this.deactivatedReason()
|
|
109
|
+
},
|
|
110
|
+
methods: {
|
|
111
|
+
changeisuse (val) {
|
|
112
|
+
if (val) {
|
|
113
|
+
this.kaifa = true
|
|
114
|
+
} else {
|
|
115
|
+
this.kaifa = false
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
// 查询封堵原因原因
|
|
119
|
+
async deactivatedReason () {
|
|
120
|
+
let data = {
|
|
121
|
+
tablename: 't_disable',
|
|
122
|
+
condition: `id = (select max(id) from t_disable where f_userfiles_id = '${this.row.f_userfiles_id}')`
|
|
123
|
+
}
|
|
124
|
+
let res = await this.$resetpost('rs/sql/saleSingleTable', {data: data}, {
|
|
125
|
+
resolveMsg: null,
|
|
126
|
+
rejectMsg: '获取上次停用原因失败'
|
|
127
|
+
})
|
|
128
|
+
this.plugging = res.data[0]
|
|
129
|
+
},
|
|
130
|
+
confirm () {
|
|
131
|
+
meterEnable(this, this.model, this.row)
|
|
132
|
+
},
|
|
133
|
+
clean () {
|
|
134
|
+
this.$dispatch('refresh')
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
</script>
|
|
139
|
+
|
|
140
|
+
<style>
|
|
141
|
+
</style>
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
import Vue from 'vue'
|
|
3
3
|
|
|
4
4
|
export default function () {
|
|
5
|
+
// 卡表抄表
|
|
6
|
+
Vue.component('cards-hand', (resolve) => { require(['./cardsHand'], resolve) })
|
|
5
7
|
// 表具停用
|
|
6
8
|
Vue.component('disable-manage', (resolve) => { require(['./DisableManage'], resolve) })
|
|
7
9
|
Vue.component('iot-meter-center', (resolve) => { require(['./IOTMeterCenter'], resolve) })
|
|
@@ -19,4 +21,8 @@ export default function () {
|
|
|
19
21
|
Vue.component('meter-charge-record-query', (resolve) => { require(['./ChargeRecordQuery'], resolve) })
|
|
20
22
|
// 用户基本信息test
|
|
21
23
|
Vue.component('file-user-essential-info-new', (resolve) => { require(['./FilesManageNew/UserEssentialInfoTest'], resolve) })
|
|
24
|
+
// 封堵
|
|
25
|
+
Vue.component('user-plugging', (resolve) => { require(['./plugging/UserPlugging'], resolve) })
|
|
26
|
+
// 解除封堵
|
|
27
|
+
Vue.component('secure-plugging', (resolve) => { require(['./plugging/UserSecurePlugging'], resolve) })
|
|
22
28
|
}
|