safecheck-client 3.0.30-41 → 3.0.30-43

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.
@@ -0,0 +1,477 @@
1
+ <template>
2
+ <div class="auto">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri>
5
+ <div partial>
6
+ <form>
7
+ <div class="row app-row">
8
+ <div class="col-xs-4">
9
+ <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
10
+ <label class="font text-left">用户编号:</label>
11
+ </div>
12
+ <div class="col-xs-8" >
13
+ <input class="search_input input-font"
14
+ v-model=model.f_userinfo_code condition="f_userinfo_code = '{}'" placeholder="请输入用户编号" />
15
+ </div>
16
+ </div>
17
+ <div class="row app-row">
18
+ <div class="col-xs-4">
19
+ <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
20
+ <label class="font text-left">表 &nbsp;&nbsp; &nbsp;&nbsp; 号:</label>
21
+ </div>
22
+ <div class="col-xs-8" >
23
+ <input class="search_input input-font"
24
+ v-model=model.f_meternumber condition="f_meternumber = '{}'" style="width: 70%" placeholder="请输入表号" />
25
+ <button type="button" name="button" class="btn btn-primary" style="width: 25%" @click="$parent.$parent.scan">扫码</button>
26
+ </div>
27
+ </div>
28
+ <div class="row app-row">
29
+ <div class="col-xs-4">
30
+ <img src="../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
31
+ <label class="font text-left">用户名称:</label>
32
+ </div>
33
+ <div class="col-xs-8" >
34
+ <input class="search_input input-font" v-model="model.f_username" placeholder="请输入用户名称(可模糊查询)">
35
+ </div>
36
+ </div>
37
+ <div class="row app-row">
38
+ <div class="col-xs-4">
39
+ <img src="../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
40
+ <label class="font text-left">用户类型:</label>
41
+ </div>
42
+ <div class="col-xs-8" >
43
+ <v-select :value.sync="$parent.$parent.model.f_user_type" class="input-font"
44
+ :options='$parent.$parent.user_types' placeholder='请选择用户类型' :value-single="true"
45
+ v-model="$parent.$parent.model.f_user_type" close-on-select clear-button></v-select>
46
+ </div>
47
+ </div>
48
+ <div class="row app-row">
49
+ <div class="col-xs-4">
50
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
51
+ <label class="font text-left">片区筛选:</label>
52
+ </div>
53
+ <div class="col-xs-8" >
54
+ <v-select :value.sync="model.f_community_name" class="input-font"
55
+ :options='$parent.$parent.community' placeholder='请选择用户片区' :value-single="true"
56
+ condition="tcm.f_community_name like '%{}%'"
57
+ v-model="model.f_community_name" close-on-select clear-button></v-select>
58
+ </div>
59
+ </div>
60
+ <div class="row app-row">
61
+ <div class="col-xs-4">
62
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
63
+ <label class="font text-left">小区名称:</label>
64
+ </div>
65
+ <div class="col-xs-8" >
66
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_districtname" placeholder="请输入用户小区(可模糊查询)">
67
+ </div>
68
+ </div>
69
+ <div class="row app-row">
70
+ <div class="col-xs-4">
71
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
72
+ <label class="font text-left">楼&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号:</label>
73
+ </div>
74
+ <div class="col-xs-8" >
75
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_building" placeholder="请输入用户楼号">
76
+ </div>
77
+ </div>
78
+ <div class="row app-row">
79
+ <div class="col-xs-4">
80
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
81
+ <label class="font text-left">单&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;元:</label>
82
+ </div>
83
+ <div class="col-xs-8" >
84
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_unit" placeholder="请输入用户单元">
85
+ </div>
86
+ </div>
87
+ <div class="row app-row">
88
+ <div class="col-xs-4">
89
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
90
+ <label class="font text-left">用户地址:</label>
91
+ </div>
92
+ <div class="col-xs-8" >
93
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_address" placeholder="请输入用户地址(可模糊查询)">
94
+ </div>
95
+ </div>
96
+ <div class="row app-row">
97
+ <div class="col-xs-4">
98
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
99
+ <label class="font text-left">表&nbsp;&nbsp;封&nbsp;&nbsp;号:</label>
100
+ </div>
101
+ <div class="col-xs-8" >
102
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_metertitles" placeholder="请输入表封号" condition="uf.f_metertitles='{}'">
103
+ </div>
104
+ </div>
105
+ <div class="row app-row">
106
+ <div class="col-xs-4">
107
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
108
+ <label class="font text-left">电&nbsp;&nbsp;话&nbsp;&nbsp;号:</label>
109
+ </div>
110
+ <div class="col-xs-8" >
111
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_user_phone" placeholder="请输入电话号" condition="ui.f_user_phone like '%{}%'">
112
+ </div>
113
+ </div>
114
+ <div class="row app-row">
115
+ <div class="col-xs-4">
116
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
117
+ <label class="font text-left">卡&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号:</label>
118
+ </div>
119
+ <div class="col-xs-8" >
120
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_card_id" placeholder="请输入卡号" condition="uf.f_card_id like '%{}%'">
121
+ </div>
122
+ </div>
123
+ <div class="row app-row">
124
+ <div class="col-xs-4">
125
+ <img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
126
+ <label class="font text-left">抄&nbsp;&nbsp;表&nbsp;&nbsp;册:</label>
127
+ </div>
128
+ <div class="col-xs-8" >
129
+ <v-select class="input-font"
130
+ placeholder='请选择抄表册'
131
+ :value.sync="model.f_meter_book_num"
132
+ v-model="model.f_meter_book_num"
133
+ :options='$parent.$parent.cbc'
134
+ condition="uf.f_meter_book_num='{}'"
135
+ close-on-select clear-button></v-select>
136
+ </div>
137
+ </div>
138
+ <!-- <div class="row app-row">
139
+ <div class="col-xs-4">
140
+ <img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
141
+ <label class="font text-left">安检情况</label>
142
+ </div>
143
+ <div class="col-xs-8" >
144
+ <v-select class="input-font"
145
+ placeholder='请选择安检情况'
146
+ :value.sync="model.f_ischeck"
147
+ v-model="model.f_ischeck"
148
+ :options='$parent.$parent.ischecks'
149
+ condition="{}"
150
+ close-on-select clear-button></v-select>
151
+ </div>
152
+ </div>
153
+ <div class="row app-row">
154
+ <div class="col-xs-4">
155
+ <img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
156
+ <label class="font text-left">档案状态:</label>
157
+ </div>
158
+ <div class="col-xs-8" >
159
+ <v-select class="input-font"
160
+ placeholder='请选择档案状态'
161
+ :value.sync="$parent.$parent.model.f_user_state"
162
+ :options='$parent.$parent.f_user_states'
163
+ close-on-select clear-button></v-select>
164
+ </div>
165
+ </div>-->
166
+
167
+
168
+
169
+ <div class="row text-center" style="margin-top: 20px;">
170
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="search">查询</button>
171
+ </div>
172
+ <div style="height:30px;"></div>
173
+ </form>
174
+ </div>
175
+ </criteria>
176
+
177
+ <list :model="model" partial='list'>
178
+ <div partial>
179
+ <div @click="$parent.$parent.$parent.inspect(row)" class="auto app-text" style="margin-top: 5px;">
180
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
181
+ <div class="panel-body panel-self">
182
+ <div class="row">
183
+ <p class="panel-title col-xs-4 text-left font">用户编号</p>
184
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_userinfo_code }}</p>
185
+ </div>
186
+ <div class="row">
187
+ <p class="panel-title col-xs-4 text-left font">用户名称</p>
188
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_name }}</p>
189
+ </div>
190
+ <div class="row">
191
+ <p class="panel-title col-xs-4 text-left font">表号</p>
192
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_meternumber }}</p>
193
+ </div>
194
+ <div class="row">
195
+ <p class="panel-title col-xs-4 text-left font">用户类型</p>
196
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_type }}</p>
197
+ </div>
198
+ <div class="row">
199
+ <p class="panel-title col-xs-4 text-left font">用户电话</p>
200
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_phone2 ? row.f_user_phone2 : row.f_user_phone }}</p>
201
+ </div>
202
+
203
+ <div class="row">
204
+ <p class="panel-title col-xs-4 text-left font">小区名称</p>
205
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_residential_area }}</p>
206
+ </div>
207
+ <div class="row">
208
+ <p class="panel-title col-xs-4 text-left font">用户地址</p>
209
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_address }}</p>
210
+ </div>
211
+ <div class="row">
212
+ <p class="panel-title col-xs-4 text-left font">最后安检日期</p>
213
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_date }}</p>
214
+ </div>
215
+ <div class="row">
216
+ <p class="panel-title col-xs-4 text-left font">最后安检状态</p>
217
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_state }}</p>
218
+ </div>
219
+ </div>
220
+ </div>
221
+
222
+ </div>
223
+ </div>
224
+ </list>
225
+ </criteria-paged>
226
+ <!--<back-page :need-back='true' @flag="$back()"></back-page>-->
227
+ </div>
228
+ </template>
229
+
230
+ <script>
231
+ import {HttpResetClass, PagedList} from 'vue-client'
232
+ import Vue from 'vue'
233
+ import * as Util from '../Util'
234
+
235
+ export default {
236
+ title: '安检员B',
237
+ data () {
238
+ let model = new PagedList(`${this.$androidUtil.getProxyUrl()}/rs/sql/提取用户档案`, 20, { groupitem: '""', orderitem: '"f_residential_area,CAST(build as int),f_unit,CAST(floor1 as int),f_room"',f_check_type:'this.f_check_type[0]',
239
+ f_user_name:'this.model.f_username',myCycle: 'this.myCycle',fyCycle: 'this.fyCycle', f_user_type:'this.f_user_type',f_sign: 'this.f_sign[0]', f_residential_area:'this.model.f_districtname', f_address:'this.model.f_address',f_user_state: 'this.f_user_state[0]',f_orgids:'this.f_orgids',f_unit:'this.model.f_unit',f_building:'this.model.f_building',f_filialeid:'this.f_filialeid'})
240
+ model.f_sign = ['']
241
+ model.f_user_type = ''
242
+ model.f_user_state =['']
243
+ model.f_check_type =['']
244
+ model.myCycle = 0
245
+ model.fyCycle = 0
246
+ model.f_community_name = ''
247
+ model.f_filialeid = Vue.user.orgid
248
+ //model.f_filialeid = 287
249
+ return {
250
+ model: model,
251
+ cbc:[],
252
+ showModal:false,
253
+ signs: [
254
+ {label:'请选择录入状态', value:''},
255
+ {label:'录入', value:'1'},
256
+ {label:'非录入', value:'0'},
257
+ ],
258
+ ischecks: [
259
+ ],
260
+ user_types: [
261
+ {label: '请选择用户类型', value: ''},
262
+ {label: '民用', value: '民用'},
263
+ {label: '非民用', value: '非民用'},
264
+ ],
265
+ f_user_states: [
266
+ {label:'请选择档案状态', value:''},
267
+ {label:'正常', value:'正常'},
268
+ {label:'点火', value:'点火'},
269
+ ],
270
+ f_check_types: [
271
+ {label:'请选择安检类型', value:''},
272
+ {label:'应检', value:'应检'},
273
+ {label:'超期', value:'超期'},
274
+ ],
275
+ community:[]
276
+ }
277
+ },
278
+ ready () {
279
+ // this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/getSafeCheckCycle`,{},{resolveMsg: null, rejectMsg: null}).then((res) => {
280
+ // //tag)
281
+ // if(res.data.code == 200){
282
+ // this.model.myCycle = res.data.civil.value
283
+ // this.model.fyCycle = res.data.civilian.value
284
+ // }else{
285
+ // //this.$showMessage(res.data.msg)
286
+ // }
287
+ //
288
+ // })
289
+ // this.getCheckTime()
290
+ // this.Mreadibook()
291
+ this.getCommunity()
292
+ },
293
+ computed: {
294
+ reload(){
295
+ this.$refs.paged.loadPage(this.$refs.paged.model.pageIndex)
296
+ },
297
+ selected () {
298
+ return this.$refs.paged.$refs.grid.selected
299
+ return this.$refs.paged.$refs.grid.selected
300
+ }
301
+ },
302
+ methods:{
303
+ async getCommunity(){
304
+ let http = new HttpResetClass()
305
+ await http.load('POST','rs/sql/tel_singleTable_OrderBy', {data: {
306
+ items: '*',
307
+ tablename: 't_community',
308
+ condition: '1=1',
309
+ orderitem: 'id'
310
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
311
+ for (let i = 0; i < res.data.length; i++) {
312
+ this.community.push({
313
+ label:res.data[i].f_community_name,
314
+ value:res.data[i].f_community_name
315
+ })
316
+ }
317
+ console.log(this.community)
318
+ })
319
+ },
320
+ scan(){
321
+ HostApp.__this__=this,
322
+ HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
323
+ },
324
+ getCode(){
325
+ var datapa = HostApp.getCode().data;
326
+ //tag
327
+ this.$refs.paged.$refs.cri.model.f_meternumber=datapa
328
+ },
329
+ getCheckTime(){
330
+ //tag
331
+ new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`,{data: {
332
+ items: 'f_circle,f_start_time',
333
+ tablename: 't_safe_circle',
334
+ condition: `f_filialeid = '${Vue.user.orgid}'`,
335
+ orderitem: 'id'
336
+ }}).then(res=>{
337
+ //tag)
338
+ let nocheck=''
339
+ let ischeck=''
340
+ if (res.data[0]){
341
+ if (res.data[0].f_circle=='1'){
342
+ nocheck=`(ua.f_last_check_date<'${res.data[0].f_start_time}' or ua.f_last_check_date is null)`
343
+ ischeck=`ua.f_last_check_date>'${res.data[0].f_start_time}'`
344
+
345
+ }else{
346
+ let addtime= (Util.toStandardTimeString().substring(0,4)-res.data[0].f_start_time.substring(0,4))%res.data[0].f_circle
347
+ //tag
348
+ let time =(Util.toStandardTimeString().substring(0,4)-addtime)+'-01-01 00:00:00'
349
+ //tag
350
+ nocheck=`(ua.f_last_check_date<'${time}' or ua.f_last_check_date is null)`
351
+ ischeck=`ua.f_last_check_date>'${time}'`
352
+ }
353
+ //tag
354
+ this.ischecks=[
355
+ {label: '全部', value: ''},
356
+ {label: '已检', value: ischeck },
357
+ {label: '未检', value: nocheck},
358
+ ]
359
+ //tag
360
+ }else{
361
+ this.$showMessage("未配置安检周期")
362
+ }
363
+
364
+ })
365
+ //tag
366
+ },
367
+ inspect (info){
368
+ if(info.f_last_check_date){
369
+ this.$showMessage("该用户最后一次安检时间为 "+info.f_last_check_date+" 是否继续对该用户进行安检",['confirm', 'cancel']).then((butt)=>{
370
+ if(butt=="confirm"){
371
+ info.id = ''
372
+ info.f_state = '未检'
373
+ info.f_no_checkplan = '无计划安检'
374
+ //tag
375
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`,{data:{f_userid:info.f_userinfo_id}}).then((response)=>{
376
+ //tag)
377
+ info['f_plan_meters'] = response.data
378
+ var pardate = {
379
+ _this:this,
380
+ tittle:'安检详情',
381
+ safe:true
382
+ }
383
+ this.$dispatch('gotoson',pardate)
384
+ this.$goto('safecheck-order-v', {item: info, role: 'inspect',parentPage:'AddPlanItem'}, 'self', this.reload)
385
+
386
+ })
387
+ }
388
+ })
389
+ }else{
390
+ info.id = ''
391
+ info.f_state = '未检'
392
+ info.f_no_checkplan = '无计划安检'
393
+ //tag
394
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`,{data:{f_userid:info.f_userinfo_id}}).then((response)=>{
395
+ //tag)
396
+ info['f_plan_meters'] = response.data
397
+ var pardate = {
398
+ _this:this,
399
+ tittle:'安检详情',
400
+ safe:true
401
+ }
402
+ this.$dispatch('gotoson',pardate)
403
+ this.$goto('safecheck-order-v', {item: info, role: 'inspect',parentPage:'AddPlanItem'}, 'self', this.reload)
404
+
405
+ })
406
+ }
407
+ },
408
+ Mreadibook(){
409
+ this.cbc=[]
410
+ let http = new HttpResetClass()
411
+ http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/logic/getMeterBooksData`,
412
+ {data: {f_orgid: "('"+Vue.user.orgid+"')"}},
413
+ {resolveMsg: null, rejectMsg: '获取失败!!!'}).then((getMeterReadingBooks)=>{
414
+ this.cbc = [{label: '全部', value: ''}]
415
+ //tag
416
+ //tag)
417
+ //tag
418
+ getMeterReadingBooks.data.meterbooks.forEach((res) => {
419
+ this.cbc.push({label: res.f_book_name, value: res.id})
420
+ /*if(res.f_book_slice_area){
421
+ if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
422
+ this.sliceArea.push(res.f_book_slice_area)
423
+ }
424
+ }*/
425
+ })
426
+ })
427
+
428
+
429
+ }
430
+ }
431
+ }
432
+ </script>
433
+ <style scoped>
434
+ .app-row {
435
+ background-color: white;
436
+ padding: 10px 10px 0 10px;
437
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
438
+ }
439
+ .search_input {
440
+ border: 0;
441
+ outline: none;
442
+ }
443
+ .font{
444
+ font: 15px PingFang-SC-Medium;
445
+ color: #666666;
446
+ }
447
+ .input-font{
448
+ font: 15px PingFang-SC-Medium;
449
+ color: #333333;
450
+ }
451
+ .btn-font{
452
+ font:600 16px PingFang-SC-Bold;
453
+ color: #499EDF;
454
+ }
455
+ .btn-color{
456
+ background-color: #FFFFFF;
457
+ border-radius: 10px ;
458
+ border: 1px solid #499EDF;
459
+ }
460
+ .app-text {
461
+ font-size: 12px;
462
+ }
463
+ .panel-self{
464
+ border-radius: 10px;
465
+ border:1px solid #499EDF;
466
+ background-color: #F8F8F8;
467
+ }
468
+ .yybtn-color{
469
+ border-radius: 4px ;
470
+ border: 1px solid #499EDF;
471
+ }
472
+ .qxbtn-color{
473
+ background-color: #FFFFFF;
474
+ border-radius: 4px ;
475
+ border: 1px solid #499EDF;
476
+ }
477
+ </style>
@@ -0,0 +1,10 @@
1
+ // 分公司特殊组件页面注册
2
+ import Vue from "vue";
3
+
4
+ // 手机特殊目录注册到该文件中
5
+ let specialComp = {
6
+ 'add-plan-item': (resolve) => { require(['./android/AddPlanItem'], resolve) }
7
+ }
8
+
9
+ exports.specialComp = specialComp
10
+
@@ -42,6 +42,16 @@
42
42
  <input type="text" class="input_search" v-model="checkBook.f_check_book_name"
43
43
  style="width: 60%" v-validate:f_check_book_name='{ required: true }'>
44
44
  </div>
45
+ <div class="form-group col-sm-6" style="margin-top: 20px">
46
+ <label class="font_normal_body">上次执行日期</label>
47
+ <datepicker
48
+ :value.sync="checkBook.f_last_run_date"
49
+ style="width: 60%"
50
+ :format="'yyyy-MM-dd'"
51
+ v-model="checkBook.f_last_run_date"
52
+ >
53
+ </datepicker>
54
+ </div>
45
55
  <div class="form-group col-sm-6" style="margin-top: 20px">
46
56
  <label class="font_normal_body">执行日期</label>
47
57
  <datepicker
@@ -170,6 +180,15 @@ export default {
170
180
  http.load('POST', 'rs/logic/safeEntity', {data: {tableName: 't_check_book', entityData: this.checkBook}},
171
181
  {resolveMsg: '保存片区信息成功', rejectMsg: '保存片区信息失败'}).then(res => {
172
182
  if (res.data.code === 200) {
183
+ let dataplan ={
184
+ id:res.data.id,
185
+ f_check_book_name: this.checkBook.f_check_book_name,
186
+ f_checker_name:this.checkBook.f_checker_name,
187
+ f_checker_id:this.checkBook.f_checker_id,
188
+ f_create_person: this.$login.f.name,
189
+ f_orgid: this.$login.f.orgid
190
+ }
191
+ http.load('POST', 'rs/logic/CreatorBookplan', {data:dataplan},{resolveMsg: null, rejectMsg: null})
173
192
  this.$showMessage('保存片区信息成功',['confirm']).then(res=>{
174
193
  if (res==='confirm'){
175
194
  bus.$emit('fresh-main')