safecheck-client 4.0.1-8 → 4.0.1-80
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/.trae/.ignore +0 -0
- package/.vscode/settings.json +3 -0
- package/package.json +5 -5
- package/src/assets//350/255/246/345/221/212 (3).png +0 -0
- package/src/assets//350/255/246/345/221/212 (4).png +0 -0
- package/src/assets//350/255/246/345/221/212 (5).png +0 -0
- package/src/components/NewDefectList/DefectListNew.vue +22 -3
- package/src/components/Util/RightTreeSafeDep.vue +12 -0
- package/src/components/android/AndroidDefectDeal.vue +356 -323
- package/src/components/android/AndroidDefectDetails.vue +3 -3
- package/src/components/android/AppInstallationMaterial.vue +865 -0
- package/src/components/android/DailyworkloadQuery.vue +2 -1
- package/src/components/android/NewCheckpaperAndroid.vue +22 -48
- package/src/components/android/SafecheckOrderV.vue +6 -0
- package/src/components/android/SwitchValve.vue +1 -1
- package/src/components/checkplan/CheckDetail.vue +1 -1
- package/src/components/map/SecurityCheckCoordinates.vue +361 -0
- package/src/components/paper/PaperList.vue +5 -0
- package/src/components/pc/DefectDeal.vue +2 -1
- package/src/components/pc/DefectMaterialLook.vue +98 -0
- package/src/components/pc/PaperDefectMain.vue +26 -1
- package/src/components/pc/RoleSelectorDep.vue +9 -2
- package/src/components/planmanage/PlanManage.vue +1 -0
- package/src/components/querycheckpaper/CheckPaperList.vue +6 -4
- package/src/components/querycheckpaper/CheckPaperSearchUser.vue +30 -4
- package/src/components/querycheckpaper/CheckSearchUser.vue +6 -1
- package/src/filiale/jinhong/android/CurrentCreate.vue +66 -22
- package/src/filiale/jinhong/pc/CheckBookList.vue +12 -7
- package/src/filiale/jinhong/pc/DefectPaperNew.vue +10 -10
- package/src/filiale/jinhong/pc/PaperList.vue +56 -47
- package/src/filiale/jinhong/pc/PlanManage.vue +2 -0
- package/src/filiale/jinhong/pc/checkPlanList.vue +2 -0
- package/src/filiale/jinhong/pc/checkUserList.vue +766 -742
- package/src/filiale/libo/android/PaperFeedback.vue +1579 -0
- package/src/filiale/libo/android/PhoneUpUserinfo.vue +1249 -0
- package/src/filiale/libo/android/SafecheckOrderV.vue +2302 -0
- package/src/filiale/libo/android.js +14 -0
- package/src/filiale/libo/pc/NewCheckpaper.vue +1987 -0
- package/src/filiale/libo/pc.js +12 -0
- package/src/filiale/meihekou/android/CurrentCreate.vue +1 -1
- package/src/filiale/meihekou/android/MeterReading.vue +9 -5
- package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +3 -2
- package/src/filiale/meihekou/android/SafecheckDevices.vue +5 -5
- package/src/filiale/meihekou/android/SafecheckOrderV.vue +2446 -2427
- package/src/filiale/meihekou/pc/NewCheckpaper.vue +2 -2
- package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2050 -0
- package/src/filiale/meihekou/pc/PaperList.vue +1205 -0
- package/src/filiale/meihekou/pc.js +2 -0
- package/src/filiale/minsheng/android/SwitchValve.vue +1 -1
- package/src/filiale/qianneng/android/SwitchValve.vue +1 -1
- package/src/filiale/qingjian/pc/checkUserList.vue +35 -0
- package/src/filiale/taiyuan/android/AddPlanItem.vue +456 -0
- package/src/filiale/taiyuan/android/AreaPlan.vue +565 -0
- package/src/filiale/taiyuan/android/CurrentCreate.vue +1016 -0
- package/src/filiale/taiyuan/android/PhoneUpUserinfo.vue +1253 -0
- package/src/filiale/taiyuan/android/SafecheckOrderV.vue +2347 -0
- package/src/filiale/taiyuan/android/SafecheckUserInfo.vue +784 -0
- package/src/filiale/taiyuan/android.js +15 -0
- package/src/filiale/taiyuan/pc/DefectDeal.vue +1034 -0
- package/src/filiale/taiyuan/pc/NewCheckpaper.vue +1976 -0
- package/src/filiale/taiyuan/pc/PaperList.vue +795 -0
- package/src/filiale/taiyuan/pc/PlanManage.vue +891 -0
- package/src/filiale/taiyuan/pc/checkUserList.vue +798 -0
- package/src/filiale/taiyuan/pc.js +16 -0
- package/src/filiale/tianke/android/CurrentCreate.vue +3 -3
- package/src/filiale/tongchuan/android/SwitchValve.vue +1 -1
- package/src/filiale/xinkang/android/AddPlanItem.vue +244 -196
- package/src/filiale/xinkang/android/AndroidDefectDeal.vue +1 -0
- package/src/filiale/xinkang/android/SafecheckDevices.vue +52 -22
- package/src/filiale/xinkang/android/SafecheckOrderV.vue +24 -80
- package/src/filiale/xinkang/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/xinkang/pc/CheckSearchUser.vue +12 -12
- package/src/filiale/xinkang/pc/NewCheckpaper.vue +57 -72
- package/src/filiale/xinkang/pc/PaperList.vue +25 -10
- package/src/filiale/yuansheng/android/SwitchValve.vue +1 -1
- package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1030 -1030
- package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +4 -4
- package/src/filiale/yunchengminsheng/pc/PaperList.vue +811 -0
- package/src/filiale/yunchengminsheng/pc.js +1 -0
- package/src/main.js +33 -33
- package/src/safecheck-android.js +4 -0
- package/src/safecheck.js +6 -0
@@ -4,7 +4,9 @@ import Vue from "vue";
|
|
4
4
|
//手机特殊目录注册到该文件中
|
5
5
|
let specialComp = {
|
6
6
|
'new-check-paper': (resolve) => { require(['./pc/NewCheckpaper'], resolve) },
|
7
|
+
'new-check-paper-new': (resolve) => { require(['./pc/NewCheckpaperNew'], resolve) },
|
7
8
|
'new-check-paper-temp': (resolve) => { require(['./pc/NewCheckpaperTemp'], resolve) },
|
9
|
+
'paper-main': (resolve) => { require(['./pc/PaperList'], resolve) },
|
8
10
|
}
|
9
11
|
exports.specialComp = specialComp
|
10
12
|
|
@@ -469,7 +469,7 @@
|
|
469
469
|
meternumberf: this.thisOneData.f_meternumber, //表号
|
470
470
|
contentData: {isOpen: msg=='开阀' ? 1 : 0}, // oper 为true 时为开阀 false 为关阀
|
471
471
|
}
|
472
|
-
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-
|
472
|
+
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/iot_saveInstruct`, {data: data}).then((row) => {
|
473
473
|
this.$showMessage(`${msg}指令发送成功,请等候2分钟进行查询`)
|
474
474
|
//tag
|
475
475
|
this.thisOneData = '';
|
@@ -342,7 +342,7 @@ export default {
|
|
342
342
|
meternumberf: this.thisOneData.f_meternumber, //表号
|
343
343
|
contentData: {isOpen: msg=='开阀' ? 1 : 0}, // oper 为true 时为开阀 false 为关阀
|
344
344
|
}
|
345
|
-
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-
|
345
|
+
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/iot_saveInstruct`, {data: data}).then((row) => {
|
346
346
|
this.$showMessage(`${msg}指令发送成功,请等候2分钟进行查询`)
|
347
347
|
//tag
|
348
348
|
this.thisOneData = '';
|
@@ -339,6 +339,20 @@
|
|
339
339
|
>
|
340
340
|
</v-select>
|
341
341
|
</div>
|
342
|
+
<div class="form-group col-sm-4" >
|
343
|
+
<label class="font_normal_body">区域:</label>
|
344
|
+
<v-select
|
345
|
+
class="select select_list"
|
346
|
+
:value.sync="model.f_region_id"
|
347
|
+
v-model="model.f_region_id"
|
348
|
+
:options='$parent.$parent.region'
|
349
|
+
placeholder='请选择'
|
350
|
+
condition="ta.f_region_id in {}"
|
351
|
+
:search="false"
|
352
|
+
:multiple="true"
|
353
|
+
>
|
354
|
+
</v-select>
|
355
|
+
</div>
|
342
356
|
<!--<div class="form-group col-sm-4" >
|
343
357
|
<label class="font_normal_body">入户情况:</label>
|
344
358
|
<v-select
|
@@ -458,6 +472,7 @@
|
|
458
472
|
yearCheckList:[{label:"全部",value:""},{label:"已在计划中",value:"ua.f_plan_id is not null"},{label:"未在计划中",value:"ua.f_plan_id is null"}],
|
459
473
|
entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
|
460
474
|
tablebox:[],
|
475
|
+
region:[],
|
461
476
|
sliceArea:[],
|
462
477
|
meterbooks:[],
|
463
478
|
hasCheckBooks:'否',
|
@@ -481,8 +496,28 @@
|
|
481
496
|
this.setConList()
|
482
497
|
this.loadpage()
|
483
498
|
this.getTablebox()
|
499
|
+
this.getRegion()
|
484
500
|
},
|
485
501
|
methods: {
|
502
|
+
getRegion(){
|
503
|
+
this.region=[]
|
504
|
+
new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_OrderBy`, {
|
505
|
+
data: {
|
506
|
+
items: '*',
|
507
|
+
tablename: 't_region',
|
508
|
+
condition: `f_orgid = '${this.userlogin.orgid}'`,
|
509
|
+
orderitem: 'id desc'
|
510
|
+
}
|
511
|
+
}, {resolveMsg: null, rejectMsg: null}).then(res => {
|
512
|
+
this.region.push({label: '全部', value: ''})
|
513
|
+
res.data.forEach(ress => {
|
514
|
+
this.region.push({
|
515
|
+
label: ress.f_name,
|
516
|
+
value: Number(ress.id)
|
517
|
+
})
|
518
|
+
})
|
519
|
+
})
|
520
|
+
},
|
486
521
|
//获取调压箱信息
|
487
522
|
getTablebox(){
|
488
523
|
this.tablebox=[]
|
@@ -0,0 +1,456 @@
|
|
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">表 号:</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
|
+
<input class="search_input input-font" v-model="model.f_rent_name" condition="f_rent_name = '{}'" placeholder="请输入租户姓名(可模糊查询)">
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
<div class="row app-row">
|
47
|
+
<div class="col-xs-4">
|
48
|
+
<img src="../../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
|
49
|
+
<label class="font text-left">用户类型:</label>
|
50
|
+
</div>
|
51
|
+
<div class="col-xs-8" >
|
52
|
+
<v-select :value.sync="$parent.$parent.model.f_user_type" class="input-font"
|
53
|
+
:options='$parent.$parent.user_types' placeholder='请选择用户类型' :value-single="true"
|
54
|
+
v-model="$parent.$parent.model.f_user_type" close-on-select clear-button></v-select>
|
55
|
+
</div>
|
56
|
+
</div>
|
57
|
+
<div class="row app-row">
|
58
|
+
<div class="col-xs-4">
|
59
|
+
<img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
|
60
|
+
<label class="font text-left">小区名称:</label>
|
61
|
+
</div>
|
62
|
+
<div class="col-xs-8" >
|
63
|
+
<input style="width: 100%" class="search_input input-font" v-model="model.f_districtname" placeholder="请输入用户小区(可模糊查询)">
|
64
|
+
</div>
|
65
|
+
</div>
|
66
|
+
<div class="row app-row">
|
67
|
+
<div class="col-xs-4">
|
68
|
+
<img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
|
69
|
+
<label class="font text-left">楼 号:</label>
|
70
|
+
</div>
|
71
|
+
<div class="col-xs-8" >
|
72
|
+
<input style="width: 100%" class="search_input input-font" v-model="model.f_building" placeholder="请输入用户楼号">
|
73
|
+
</div>
|
74
|
+
</div>
|
75
|
+
<div class="row app-row">
|
76
|
+
<div class="col-xs-4">
|
77
|
+
<img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
|
78
|
+
<label class="font text-left">单 元:</label>
|
79
|
+
</div>
|
80
|
+
<div class="col-xs-8" >
|
81
|
+
<input style="width: 100%" class="search_input input-font" v-model="model.f_unit" placeholder="请输入用户单元">
|
82
|
+
</div>
|
83
|
+
</div>
|
84
|
+
<div class="row app-row">
|
85
|
+
<div class="col-xs-4">
|
86
|
+
<img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
|
87
|
+
<label class="font text-left">用户地址:</label>
|
88
|
+
</div>
|
89
|
+
<div class="col-xs-8" >
|
90
|
+
<input style="width: 100%" class="search_input input-font" v-model="model.f_address" placeholder="请输入用户地址(可模糊查询)">
|
91
|
+
</div>
|
92
|
+
</div>
|
93
|
+
<div class="row app-row">
|
94
|
+
<div class="col-xs-4">
|
95
|
+
<img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
|
96
|
+
<label class="font text-left">表 封 号:</label>
|
97
|
+
</div>
|
98
|
+
<div class="col-xs-8" >
|
99
|
+
<input style="width: 100%" class="search_input input-font" v-model="model.f_metertitles" placeholder="请输入表封号" condition="uf.f_metertitles='{}'">
|
100
|
+
</div>
|
101
|
+
</div>
|
102
|
+
<div class="row app-row">
|
103
|
+
<div class="col-xs-4">
|
104
|
+
<img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
|
105
|
+
<label class="font text-left">电 话 号:</label>
|
106
|
+
</div>
|
107
|
+
<div class="col-xs-8" >
|
108
|
+
<input style="width: 100%" class="search_input input-font" v-model="model.f_user_phone" placeholder="请输入电话号" condition="ui.f_user_phone like '%{}%'">
|
109
|
+
</div>
|
110
|
+
</div>
|
111
|
+
<div class="row app-row">
|
112
|
+
<div class="col-xs-4">
|
113
|
+
<img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
|
114
|
+
<label class="font text-left">卡 号:</label>
|
115
|
+
</div>
|
116
|
+
<div class="col-xs-8" >
|
117
|
+
<input style="width: 100%" class="search_input input-font" v-model="model.f_card_id" placeholder="请输入卡号" condition="uf.f_card_id like '%{}%'">
|
118
|
+
</div>
|
119
|
+
</div>
|
120
|
+
<div class="row app-row">
|
121
|
+
<div class="col-xs-4">
|
122
|
+
<img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
123
|
+
<label class="font text-left">抄 表 册:</label>
|
124
|
+
</div>
|
125
|
+
<div class="col-xs-8" >
|
126
|
+
<v-select class="input-font"
|
127
|
+
placeholder='请选择抄表册'
|
128
|
+
:value.sync="model.f_meter_book_num"
|
129
|
+
v-model="model.f_meter_book_num"
|
130
|
+
:options='$parent.$parent.cbc'
|
131
|
+
condition="uf.f_meter_book_num='{}'"
|
132
|
+
close-on-select clear-button></v-select>
|
133
|
+
</div>
|
134
|
+
</div>
|
135
|
+
<!-- <div class="row app-row">
|
136
|
+
<div class="col-xs-4">
|
137
|
+
<img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
138
|
+
<label class="font text-left">安检情况</label>
|
139
|
+
</div>
|
140
|
+
<div class="col-xs-8" >
|
141
|
+
<v-select class="input-font"
|
142
|
+
placeholder='请选择安检情况'
|
143
|
+
:value.sync="model.f_ischeck"
|
144
|
+
v-model="model.f_ischeck"
|
145
|
+
:options='$parent.$parent.ischecks'
|
146
|
+
condition="{}"
|
147
|
+
close-on-select clear-button></v-select>
|
148
|
+
</div>
|
149
|
+
</div>
|
150
|
+
<div class="row app-row">
|
151
|
+
<div class="col-xs-4">
|
152
|
+
<img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
153
|
+
<label class="font text-left">档案状态:</label>
|
154
|
+
</div>
|
155
|
+
<div class="col-xs-8" >
|
156
|
+
<v-select class="input-font"
|
157
|
+
placeholder='请选择档案状态'
|
158
|
+
:value.sync="$parent.$parent.model.f_user_state"
|
159
|
+
:options='$parent.$parent.f_user_states'
|
160
|
+
close-on-select clear-button></v-select>
|
161
|
+
</div>
|
162
|
+
</div>-->
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
<div class="row text-center" style="margin-top: 20px;">
|
167
|
+
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="search">查询</button>
|
168
|
+
</div>
|
169
|
+
<div style="height:30px;"></div>
|
170
|
+
</form>
|
171
|
+
</div>
|
172
|
+
</criteria>
|
173
|
+
|
174
|
+
<list :model="model" partial='list'>
|
175
|
+
<div partial>
|
176
|
+
<div @click="$parent.$parent.$parent.inspect(row)" class="auto app-text" style="margin-top: 5px;">
|
177
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
178
|
+
<div class="panel-body panel-self">
|
179
|
+
<div class="row">
|
180
|
+
<p class="panel-title col-xs-4 text-left font">用户编号</p>
|
181
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_userinfo_code }}</p>
|
182
|
+
</div>
|
183
|
+
<div class="row">
|
184
|
+
<p class="panel-title col-xs-4 text-left font">用户名称</p>
|
185
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_name }}</p>
|
186
|
+
</div>
|
187
|
+
<div class="row">
|
188
|
+
<p class="panel-title col-xs-4 text-left font">表号</p>
|
189
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_meternumber }}</p>
|
190
|
+
</div>
|
191
|
+
<div class="row">
|
192
|
+
<p class="panel-title col-xs-4 text-left font">用户类型</p>
|
193
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_type }}</p>
|
194
|
+
</div>
|
195
|
+
<div class="row">
|
196
|
+
<p class="panel-title col-xs-4 text-left font">用户电话</p>
|
197
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_phone2 ? row.f_user_phone2 : row.f_user_phone }}</p>
|
198
|
+
</div>
|
199
|
+
|
200
|
+
<div class="row">
|
201
|
+
<p class="panel-title col-xs-4 text-left font">小区名称</p>
|
202
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_residential_area }}</p>
|
203
|
+
</div>
|
204
|
+
<div class="row">
|
205
|
+
<p class="panel-title col-xs-4 text-left font">用户地址</p>
|
206
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_address }}</p>
|
207
|
+
</div>
|
208
|
+
<div class="row">
|
209
|
+
<p class="panel-title col-xs-4 text-left font">最后安检日期</p>
|
210
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_date }}</p>
|
211
|
+
</div>
|
212
|
+
<div class="row">
|
213
|
+
<p class="panel-title col-xs-4 text-left font">最后安检状态</p>
|
214
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_state }}</p>
|
215
|
+
</div>
|
216
|
+
</div>
|
217
|
+
</div>
|
218
|
+
|
219
|
+
</div>
|
220
|
+
</div>
|
221
|
+
</list>
|
222
|
+
</criteria-paged>
|
223
|
+
<!--<back-page :need-back='true' @flag="$back()"></back-page>-->
|
224
|
+
</div>
|
225
|
+
</template>
|
226
|
+
|
227
|
+
<script>
|
228
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
229
|
+
import Vue from 'vue'
|
230
|
+
import * as Util from '../../Util'
|
231
|
+
|
232
|
+
export default {
|
233
|
+
title: '安检员B',
|
234
|
+
data () {
|
235
|
+
let model = new PagedList(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/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]',
|
236
|
+
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'})
|
237
|
+
model.f_sign = ['']
|
238
|
+
model.f_user_type = ''
|
239
|
+
model.f_user_state =['']
|
240
|
+
model.f_check_type =['']
|
241
|
+
model.myCycle = 0
|
242
|
+
model.fyCycle = 0
|
243
|
+
model.f_filialeid = Vue.user.orgid
|
244
|
+
//model.f_filialeid = 287
|
245
|
+
return {
|
246
|
+
model: model,
|
247
|
+
cbc:[],
|
248
|
+
showModal:false,
|
249
|
+
signs: [
|
250
|
+
{label:'请选择录入状态', value:''},
|
251
|
+
{label:'录入', value:'1'},
|
252
|
+
{label:'非录入', value:'0'},
|
253
|
+
],
|
254
|
+
ischecks: [
|
255
|
+
],
|
256
|
+
user_types: [
|
257
|
+
{label: '请选择用户类型', value: ''},
|
258
|
+
{label: '民用', value: '民用'},
|
259
|
+
{label: '非民用', value: '非民用'},
|
260
|
+
],
|
261
|
+
f_user_states: [
|
262
|
+
{label:'请选择档案状态', value:''},
|
263
|
+
{label:'正常', value:'正常'},
|
264
|
+
{label:'点火', value:'点火'},
|
265
|
+
],
|
266
|
+
f_check_types: [
|
267
|
+
{label:'请选择安检类型', value:''},
|
268
|
+
{label:'应检', value:'应检'},
|
269
|
+
{label:'超期', value:'超期'},
|
270
|
+
],
|
271
|
+
}
|
272
|
+
},
|
273
|
+
ready () {
|
274
|
+
// this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/getSafeCheckCycle`,{},{resolveMsg: null, rejectMsg: null}).then((res) => {
|
275
|
+
// //tag)
|
276
|
+
// if(res.data.code == 200){
|
277
|
+
// this.model.myCycle = res.data.civil.value
|
278
|
+
// this.model.fyCycle = res.data.civilian.value
|
279
|
+
// }else{
|
280
|
+
// //this.$showMessage(res.data.msg)
|
281
|
+
// }
|
282
|
+
//
|
283
|
+
// })
|
284
|
+
// this.getCheckTime()
|
285
|
+
// this.Mreadibook()
|
286
|
+
},
|
287
|
+
computed: {
|
288
|
+
reload(){
|
289
|
+
this.$refs.paged.loadPage(this.$refs.paged.model.pageIndex)
|
290
|
+
},
|
291
|
+
selected () {
|
292
|
+
return this.$refs.paged.$refs.grid.selected
|
293
|
+
}
|
294
|
+
},
|
295
|
+
methods:{
|
296
|
+
scan(){
|
297
|
+
HostApp.__this__=this,
|
298
|
+
HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
|
299
|
+
},
|
300
|
+
getCode(){
|
301
|
+
let datapa = HostApp.getCode().data;
|
302
|
+
let indexnum = datapa.indexOf("]C1")
|
303
|
+
if(indexnum != -1){
|
304
|
+
datapa = datapa.substring(indexnum+3,datapa.length)
|
305
|
+
}
|
306
|
+
this.$refs.paged.$refs.cri.model.f_meternumber=datapa
|
307
|
+
},
|
308
|
+
getCheckTime(){
|
309
|
+
//tag
|
310
|
+
new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`,{data: {
|
311
|
+
items: 'f_circle,f_start_time',
|
312
|
+
tablename: 't_safe_circle',
|
313
|
+
condition: `f_filialeid = '${Vue.user.orgid}'`,
|
314
|
+
orderitem: 'id'
|
315
|
+
}}).then(res=>{
|
316
|
+
//tag)
|
317
|
+
let nocheck=''
|
318
|
+
let ischeck=''
|
319
|
+
if (res.data[0]){
|
320
|
+
if (res.data[0].f_circle=='1'){
|
321
|
+
nocheck=`(ua.f_last_check_date<'${res.data[0].f_start_time}' or ua.f_last_check_date is null)`
|
322
|
+
ischeck=`ua.f_last_check_date>'${res.data[0].f_start_time}'`
|
323
|
+
|
324
|
+
}else{
|
325
|
+
let addtime= (Util.toStandardTimeString().substring(0,4)-res.data[0].f_start_time.substring(0,4))%res.data[0].f_circle
|
326
|
+
//tag
|
327
|
+
let time =(Util.toStandardTimeString().substring(0,4)-addtime)+'-01-01 00:00:00'
|
328
|
+
//tag
|
329
|
+
nocheck=`(ua.f_last_check_date<'${time}' or ua.f_last_check_date is null)`
|
330
|
+
ischeck=`ua.f_last_check_date>'${time}'`
|
331
|
+
}
|
332
|
+
//tag
|
333
|
+
this.ischecks=[
|
334
|
+
{label: '全部', value: ''},
|
335
|
+
{label: '已检', value: ischeck },
|
336
|
+
{label: '未检', value: nocheck},
|
337
|
+
]
|
338
|
+
//tag
|
339
|
+
}else{
|
340
|
+
this.$showMessage("未配置安检周期")
|
341
|
+
}
|
342
|
+
|
343
|
+
})
|
344
|
+
//tag
|
345
|
+
},
|
346
|
+
inspect (info){
|
347
|
+
if(info.f_last_check_date){
|
348
|
+
this.$showMessage("该用户最后一次安检时间为 "+info.f_last_check_date+" 是否继续对该用户进行安检",['confirm', 'cancel']).then((butt)=>{
|
349
|
+
if(butt=="confirm"){
|
350
|
+
info.id = ''
|
351
|
+
info.f_state = '未检'
|
352
|
+
info.f_no_checkplan = '无计划安检'
|
353
|
+
//tag
|
354
|
+
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/查询计划项表信息`,{data:{f_userid:info.f_userinfo_id}}).then((response)=>{
|
355
|
+
//tag)
|
356
|
+
info['f_plan_meters'] = response.data
|
357
|
+
var pardate = {
|
358
|
+
_this:this,
|
359
|
+
tittle:'安检详情',
|
360
|
+
safe:true
|
361
|
+
}
|
362
|
+
this.$dispatch('gotoson',pardate)
|
363
|
+
this.$goto('safecheck-order-v', {item: info, role: 'inspect',parentPage:'AddPlanItem'}, 'self', this.reload)
|
364
|
+
|
365
|
+
})
|
366
|
+
}
|
367
|
+
})
|
368
|
+
}else{
|
369
|
+
info.id = ''
|
370
|
+
info.f_state = '未检'
|
371
|
+
info.f_no_checkplan = '无计划安检'
|
372
|
+
//tag
|
373
|
+
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/查询计划项表信息`,{data:{f_userid:info.f_userinfo_id}}).then((response)=>{
|
374
|
+
//tag)
|
375
|
+
info['f_plan_meters'] = response.data
|
376
|
+
var pardate = {
|
377
|
+
_this:this,
|
378
|
+
tittle:'安检详情',
|
379
|
+
safe:true
|
380
|
+
}
|
381
|
+
this.$dispatch('gotoson',pardate)
|
382
|
+
this.$goto('safecheck-order-v', {item: info, role: 'inspect',parentPage:'AddPlanItem'}, 'self', this.reload)
|
383
|
+
|
384
|
+
})
|
385
|
+
}
|
386
|
+
},
|
387
|
+
Mreadibook(){
|
388
|
+
this.cbc=[]
|
389
|
+
let http = new HttpResetClass()
|
390
|
+
http.load('POST',`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/getMeterBooksData`,
|
391
|
+
{data: {f_orgid: "('"+Vue.user.orgid+"')"}},
|
392
|
+
{resolveMsg: null, rejectMsg: '获取失败!!!'}).then((getMeterReadingBooks)=>{
|
393
|
+
this.cbc = [{label: '全部', value: ''}]
|
394
|
+
//tag
|
395
|
+
//tag)
|
396
|
+
//tag
|
397
|
+
getMeterReadingBooks.data.meterbooks.forEach((res) => {
|
398
|
+
this.cbc.push({label: res.f_book_name, value: res.id})
|
399
|
+
/*if(res.f_book_slice_area){
|
400
|
+
if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
|
401
|
+
this.sliceArea.push(res.f_book_slice_area)
|
402
|
+
}
|
403
|
+
}*/
|
404
|
+
})
|
405
|
+
})
|
406
|
+
|
407
|
+
|
408
|
+
}
|
409
|
+
}
|
410
|
+
}
|
411
|
+
</script>
|
412
|
+
<style scoped>
|
413
|
+
.app-row {
|
414
|
+
background-color: white;
|
415
|
+
padding: 10px 10px 0 10px;
|
416
|
+
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
417
|
+
}
|
418
|
+
.search_input {
|
419
|
+
border: 0;
|
420
|
+
outline: none;
|
421
|
+
}
|
422
|
+
.font{
|
423
|
+
font: 15px PingFang-SC-Medium;
|
424
|
+
color: #666666;
|
425
|
+
}
|
426
|
+
.input-font{
|
427
|
+
font: 15px PingFang-SC-Medium;
|
428
|
+
color: #333333;
|
429
|
+
}
|
430
|
+
.btn-font{
|
431
|
+
font:600 16px PingFang-SC-Bold;
|
432
|
+
color: #499EDF;
|
433
|
+
}
|
434
|
+
.btn-color{
|
435
|
+
background-color: #FFFFFF;
|
436
|
+
border-radius: 10px ;
|
437
|
+
border: 1px solid #499EDF;
|
438
|
+
}
|
439
|
+
.app-text {
|
440
|
+
font-size: 12px;
|
441
|
+
}
|
442
|
+
.panel-self{
|
443
|
+
border-radius: 10px;
|
444
|
+
border:1px solid #499EDF;
|
445
|
+
background-color: #F8F8F8;
|
446
|
+
}
|
447
|
+
.yybtn-color{
|
448
|
+
border-radius: 4px ;
|
449
|
+
border: 1px solid #499EDF;
|
450
|
+
}
|
451
|
+
.qxbtn-color{
|
452
|
+
background-color: #FFFFFF;
|
453
|
+
border-radius: 4px ;
|
454
|
+
border: 1px solid #499EDF;
|
455
|
+
}
|
456
|
+
</style>
|