safecheck-client 4.0.2-6 → 4.0.2-62
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 +1 -1
- package/src/components/NewDefectList/DefectPaperNew.vue +1184 -1184
- package/src/components/android/AndroidNotifiedDeal.vue +417 -0
- package/src/components/android/PhoneUpUserinfo.vue +1249 -1249
- package/src/components/android/SafeRightTree.vue +218 -218
- package/src/components/android/SafecheckDevices.vue +1340 -1340
- package/src/components/android/week/CheckResultSimple.vue +251 -0
- package/src/components/android/week/FirstWeekCheck.vue +275 -0
- package/src/components/android/week/StepHeaderBar.vue +457 -0
- package/src/components/android/week/WeekCheck.vue +209 -0
- package/src/components/android/week/WeekCheckPaper.vue +219 -0
- package/src/components/android/week/WeekCheckPlan.vue +145 -0
- package/src/components/checkplan/SelectCheckPlan.vue +39 -0
- package/src/components/paper/safetyledger.vue +198 -0
- package/src/components/pc/CheckBook.vue +303 -303
- package/src/components/pc/CheckBookArea.vue +146 -146
- package/src/components/pc/CheckBookCompany.vue +144 -144
- package/src/components/pc/CheckBookDetails.vue +161 -161
- package/src/components/pc/CheckBookEntry.vue +60 -60
- package/src/components/pc/CheckBookSearchArea.vue +560 -560
- package/src/components/pc/CheckBookSearchUnit.vue +229 -229
- package/src/components/pc/CheckBookSearchUser.vue +659 -659
- package/src/components/pc/CheckBookSearchUserList.vue +674 -674
- package/src/components/pc/DefectDeal.vue +6 -2
- package/src/components/planmanage/checkUserList.vue +1 -1
- package/src/components/querycheckpaper/CheckSearchUser.vue +2 -1
- package/src/components/report/CheckPlanAreaList.vue +53 -7
- package/src/filiale/jinhong/android/AddPlanItem.vue +481 -0
- package/src/filiale/jinhong/android/AndroidDefectDeal.vue +722 -0
- package/src/filiale/jinhong/android/AndroidNotifiedDeal.vue +521 -0
- package/src/filiale/jinhong/android/CurrentCreate.vue +1355 -1313
- package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +28 -3
- package/src/filiale/jinhong/android/SafecheckOrderV.vue +2300 -0
- package/src/filiale/jinhong/android.js +15 -11
- package/src/filiale/jinhong/pc/CheckBookList.vue +28 -18
- package/src/filiale/jinhong/pc/CheckSearchUser.vue +42 -2
- package/src/filiale/jinhong/pc/NewCheckpaper.vue +1958 -0
- package/src/filiale/jinhong/pc/PaperList.vue +5 -1
- package/src/filiale/jinhong/pc/checkPlanList.vue +73 -24
- package/src/filiale/jinhong/pc/checkUserList.vue +806 -770
- package/src/filiale/jinhong/pc.js +1 -0
- package/src/filiale/meihekou/android/CheckPlanList.vue +198 -198
- package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -190
- package/src/filiale/meihekou/android/CurrentCreate.vue +16 -0
- package/src/filiale/meihekou/android/PaperFeedback.vue +1545 -1542
- package/src/filiale/meihekou/android/SafecheckDevices.vue +1343 -1340
- package/src/filiale/meihekou/android/SafecheckOrderV.vue +27 -28
- package/src/filiale/meihekou/android.js +22 -22
- package/src/filiale/meihekou/pc/CheckDetail.vue +217 -0
- package/src/filiale/meihekou/pc/CheckPlan.vue +52 -0
- package/src/filiale/meihekou/pc/CheckPlanAreaList.vue +505 -0
- package/src/filiale/meihekou/pc/NewCheckpaper.vue +2 -1
- package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2051 -2050
- package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1 -0
- package/src/filiale/meihekou/pc/SelectCheckPlan.vue +262 -0
- package/src/filiale/meihekou/pc.js +18 -15
- package/src/filiale/qingjian/pc/SecurityCheckCoordinates.vue +2 -2
- package/src/filiale/taiyuan/android/AddPlanItem.vue +1 -0
- package/src/filiale/taiyuan/android/SafecheckDevices.vue +1343 -0
- package/src/filiale/taiyuan/android/SafecheckOrderV.vue +17 -17
- package/src/filiale/taiyuan/android.js +1 -0
- package/src/filiale/xinkang/android/SafecheckDevices.vue +2 -2
- package/src/filiale/xinkang/android/SafecheckOrderV.vue +9 -2
- package/src/filiale/xinkang/pc/NewCheckpaper.vue +17 -46
- package/src/filiale/xinliansihui/pc/PaperList.vue +814 -0
- package/src/filiale/xinliansihui/pc/PaperVisitMain.vue +206 -0
- package/src/filiale/xinliansihui/pc.js +13 -0
- package/src/safecheck-android.js +12 -0
- package/src/safecheck.js +3 -0
|
@@ -0,0 +1,521 @@
|
|
|
1
|
+
<style scoped>
|
|
2
|
+
.bg {
|
|
3
|
+
background-color: blue;
|
|
4
|
+
height: 1px;
|
|
5
|
+
border: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.app-row {
|
|
9
|
+
background-color: white;
|
|
10
|
+
padding: 10px 10px 0 10px;
|
|
11
|
+
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.search_input {
|
|
15
|
+
border: 0;
|
|
16
|
+
outline: none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.font {
|
|
20
|
+
font: 15px PingFang-SC-Medium;
|
|
21
|
+
color: #666666;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.input-font {
|
|
25
|
+
font: 15px PingFang-SC-Medium;
|
|
26
|
+
color: #333333;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.btn-font {
|
|
30
|
+
font: 600 16px PingFang-SC-Bold;
|
|
31
|
+
color: #499EDF;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.btn-color {
|
|
35
|
+
background-color: #FFFFFF;
|
|
36
|
+
border-radius: 10px;
|
|
37
|
+
border: 1px solid #499EDF;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.app-text {
|
|
41
|
+
font-size: 12px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.panel-self {
|
|
45
|
+
border-radius: 10px;
|
|
46
|
+
border: 1px solid #499EDF;
|
|
47
|
+
background-color: #F8F8F8;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.yybtn-color {
|
|
51
|
+
background-color: #499edf;
|
|
52
|
+
border-radius: 4px;
|
|
53
|
+
border: 1px solid #499EDF;
|
|
54
|
+
color: #FFFFFF;
|
|
55
|
+
font: 14px PingFang-SC-Bold;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.qxbtn-color {
|
|
59
|
+
background-color: #FFFFFF;
|
|
60
|
+
border-radius: 4px;
|
|
61
|
+
color: #499edf;
|
|
62
|
+
font: 14px PingFang-SC-Bold;
|
|
63
|
+
border: 1px solid #499EDF;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.button_shrink_top {
|
|
67
|
+
width: 35px;
|
|
68
|
+
height: 35px;
|
|
69
|
+
background-size: 100%;
|
|
70
|
+
background-image: url("../../../../static/newStyle/stretch_top.png")
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.button_shrink_bottom {
|
|
74
|
+
width: 35px;
|
|
75
|
+
height: 35px;
|
|
76
|
+
background-size: 100%;
|
|
77
|
+
background-image: url("../../../../static/newStyle/stretch_bottom.png")
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.button_shrink_left {
|
|
81
|
+
width: 35px;
|
|
82
|
+
height: 35px;
|
|
83
|
+
background-size: 100%;
|
|
84
|
+
background-image: url("../../../../static/newStyle/stretch_left.png")
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.button_shrink_right {
|
|
88
|
+
width: 35px;
|
|
89
|
+
height: 35px;
|
|
90
|
+
background-size: 100%;
|
|
91
|
+
background-image: url("../../../../static/newStyle/stretch_right.png")
|
|
92
|
+
}
|
|
93
|
+
</style>
|
|
94
|
+
<template>
|
|
95
|
+
<div style="height: auto;width: 100%">
|
|
96
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
97
|
+
<criteria partial='criteria' @condition-changed='search' v-ref:cri>
|
|
98
|
+
<div partial>
|
|
99
|
+
<form>
|
|
100
|
+
<div class="row app-row">
|
|
101
|
+
<div class="col-xs-4">
|
|
102
|
+
<img src="../../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
103
|
+
<label class="font text-left">用户姓名:</label>
|
|
104
|
+
</div>
|
|
105
|
+
<div class="col-xs-8">
|
|
106
|
+
<input class="search_input input-font" v-model=model.f_user_name
|
|
107
|
+
condition="tcp.f_user_name like '%{}%'"/>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
<div class="row app-row">
|
|
111
|
+
<div class="col-xs-4">
|
|
112
|
+
<img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
113
|
+
<label for="f_userinfo_code" class="font text-left">用户编号:</label>
|
|
114
|
+
</div>
|
|
115
|
+
<div class="col-xs-8">
|
|
116
|
+
<input id="f_userinfo_code" class="search_input input-font"
|
|
117
|
+
v-model=model.f_userinfo_code condition="tcp.f_userinfo_code like '%{}%'"/>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
<div class="row app-row">
|
|
121
|
+
<div class="col-xs-4">
|
|
122
|
+
<img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
123
|
+
<label for="f_userinfo_code" class="font text-left">安检人员:</label>
|
|
124
|
+
</div>
|
|
125
|
+
<div class="col-xs-8">
|
|
126
|
+
<input id="f_userinfo_code" class="search_input input-font"
|
|
127
|
+
v-model=model.f_checker_name condition="tcp.f_checker_name like '%{}%'"/>
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
<div class="row app-row">
|
|
131
|
+
<div class="col-xs-4">
|
|
132
|
+
<img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
133
|
+
<label class="font text-left">用户地址:</label>
|
|
134
|
+
</div>
|
|
135
|
+
<div class="col-xs-8">
|
|
136
|
+
<input class="search_input input-font"
|
|
137
|
+
v-model=model.f_address condition="tcp.f_address like '%{}%'"/>
|
|
138
|
+
</div>
|
|
139
|
+
</div>
|
|
140
|
+
<div class="row app-row">
|
|
141
|
+
<div class="col-xs-4">
|
|
142
|
+
<img src="../../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
143
|
+
<label for="f_state" class="font text-left">起始时间:</label>
|
|
144
|
+
</div>
|
|
145
|
+
<datepicker id="f_start_date"
|
|
146
|
+
placeholder='起始时间'
|
|
147
|
+
:value.sync="model.f_start_date"
|
|
148
|
+
:disabled-days-of-Week="[]"
|
|
149
|
+
v-model="model.f_start_date"
|
|
150
|
+
class="input-font col-xs-8"
|
|
151
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
|
152
|
+
:show-reset-button="reset" readonly="readonly">
|
|
153
|
+
</datepicker>
|
|
154
|
+
</div>
|
|
155
|
+
<div class="row app-row">
|
|
156
|
+
<div class="col-xs-4">
|
|
157
|
+
<img src="../../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
158
|
+
<label for="f_state" class="font text-left">结束时间:</label>
|
|
159
|
+
</div>
|
|
160
|
+
<datepicker id="f_end_date"
|
|
161
|
+
placeholder='结束时间'
|
|
162
|
+
:value.sync="model.f_end_date"
|
|
163
|
+
:disabled-days-of-Week="[]"
|
|
164
|
+
v-model="model.f_end_date"
|
|
165
|
+
class="input-font col-xs-8"
|
|
166
|
+
:format="'yyyy-MM-dd 23:59:00'"
|
|
167
|
+
:show-reset-button="reset" readonly="readonly">
|
|
168
|
+
</datepicker>
|
|
169
|
+
</div>
|
|
170
|
+
<div class="row app-row">
|
|
171
|
+
<div class="col-xs-4">
|
|
172
|
+
<img src="../../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
173
|
+
<label for="f_user_type" class="font text-left">用户类型:</label>
|
|
174
|
+
</div>
|
|
175
|
+
<v-select id="f_user_type" :value.sync="model.f_user_type" class="input-font"
|
|
176
|
+
:width="'60%'"
|
|
177
|
+
:options='$parent.$parent.user_types' placeholder='请选择用户类型'
|
|
178
|
+
v-model="model.f_user_type" condition="f_user_type = '{}'" close-on-select
|
|
179
|
+
clear-button></v-select>
|
|
180
|
+
</div>
|
|
181
|
+
<div class="row app-row">
|
|
182
|
+
<div class="col-xs-4">
|
|
183
|
+
<img src="../../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
184
|
+
<label for="f_user_type" class="font text-left">隐患名称:</label>
|
|
185
|
+
</div>
|
|
186
|
+
<v-select id="f_user_type" :value.sync="model.f_item_name" class="input-font"
|
|
187
|
+
:width="'60%'"
|
|
188
|
+
:align="'right'"
|
|
189
|
+
:options='$parent.$parent.DefectConfigs' placeholder='请选择隐患名称'
|
|
190
|
+
v-model="model.f_item_name" condition="f_item_name = '{}'" close-on-select
|
|
191
|
+
clear-button></v-select>
|
|
192
|
+
</div>
|
|
193
|
+
<div class="row app-row" v-if="$parent.$parent.criteriaShow">
|
|
194
|
+
<div class="col-xs-4">
|
|
195
|
+
<img src="../../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
196
|
+
<label for="f_user_type" class="font text-left">处理状态:</label>
|
|
197
|
+
</div>
|
|
198
|
+
<v-select id="f_user_type"
|
|
199
|
+
:value.sync="model.f_repaired_state" class="input-font"
|
|
200
|
+
:width="'60%'"
|
|
201
|
+
:align="'right'"
|
|
202
|
+
:options='$parent.$parent.repairedState' placeholder='请选择处理状态'
|
|
203
|
+
v-model="model.f_repaired_state"
|
|
204
|
+
condition="f_repaired_state = '{}'" close-on-select
|
|
205
|
+
clear-button></v-select>
|
|
206
|
+
</div>
|
|
207
|
+
<div class="row text-center" style="margin-top: 20px;">
|
|
208
|
+
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;"
|
|
209
|
+
@click="$parent.$parent.selfSearch">查询
|
|
210
|
+
</button>
|
|
211
|
+
<div style="float: right;margin-right: 3% " class="button_spacing"
|
|
212
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
213
|
+
@click="$parent.$parent.hidden()"></div>
|
|
214
|
+
</div>
|
|
215
|
+
<div style="height:30px;"></div>
|
|
216
|
+
</form>
|
|
217
|
+
</div>
|
|
218
|
+
</criteria>
|
|
219
|
+
<list :model="model" partial='list'>
|
|
220
|
+
<div partial>
|
|
221
|
+
<div class="auto app-text" style="margin-top: 5px;">
|
|
222
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
|
223
|
+
<div class="panel-body panel-self">
|
|
224
|
+
<div class="col-xs-12">
|
|
225
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户编号:</b></p>
|
|
226
|
+
<p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{ row.f_userinfo_code }}</p>
|
|
227
|
+
</div>
|
|
228
|
+
<div class="col-xs-12">
|
|
229
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户名称:</b></p>
|
|
230
|
+
<p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_user_name }}</p>
|
|
231
|
+
</div>
|
|
232
|
+
<div class="col-xs-12">
|
|
233
|
+
<p class="panel-title text-left font" style="width: 23%;float: left"><b>用户电话:</b></p>
|
|
234
|
+
<p class="panel-title text-left input-font" style="width: 77%">{{ row.f_user_phone }}</p>
|
|
235
|
+
</div>
|
|
236
|
+
<div class="col-xs-12">
|
|
237
|
+
<p class="panel-title text-left font" style="width: 23%;float: left"><b>安检时间:</b></p>
|
|
238
|
+
<p class="panel-title text-left input-font" style="width: 77%">{{ row.f_create_time }}</p>
|
|
239
|
+
</div>
|
|
240
|
+
<div class="col-xs-12">
|
|
241
|
+
<p class="panel-title text-left font" style="width: 21%;float: left"><b>用户地址:</b></p>
|
|
242
|
+
<p class="panel-title text-left input-font" style="width: 79%">{{ row.f_address }}</p>
|
|
243
|
+
</div>
|
|
244
|
+
<div class="col-xs-12">
|
|
245
|
+
<p class="panel-title text-left font" style="width: 21%;float: left"><b>所属安检:</b></p>
|
|
246
|
+
<p class="panel-title text-left input-font" style="width: 79%">{{ row.f_checker_name }}</p>
|
|
247
|
+
</div>
|
|
248
|
+
<div class="col-xs-6">
|
|
249
|
+
<p class="panel-title col-xs-5 text-left font"><b>检 查 项:</b></p>
|
|
250
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_device_type }}</p>
|
|
251
|
+
</div>
|
|
252
|
+
<div class="col-xs-6">
|
|
253
|
+
<p class="panel-title col-xs-5 text-left font"><b>隐 患 项:</b></p>
|
|
254
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_item_name }}</p>
|
|
255
|
+
</div>
|
|
256
|
+
<div class="col-xs-12">
|
|
257
|
+
<p class="panel-title col-xs-5 text-left font"><b>备注:</b></p>
|
|
258
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_comments }}</p>
|
|
259
|
+
</div>
|
|
260
|
+
<div class="col-xs-12">
|
|
261
|
+
<p class="panel-title col-xs-5 text-left font"><b>隐患原因:</b></p>
|
|
262
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_item_value }}</p>
|
|
263
|
+
</div>
|
|
264
|
+
|
|
265
|
+
<div class="col-xs-12">
|
|
266
|
+
<button type="button" name="button" class="btn btn-primary"
|
|
267
|
+
style="background-color:#499edf;float: right"
|
|
268
|
+
@click="$parent.$parent.$parent.openshowModal1(row)">上传隐患通知单
|
|
269
|
+
</button>
|
|
270
|
+
</div>
|
|
271
|
+
</div>
|
|
272
|
+
</div>
|
|
273
|
+
</div>
|
|
274
|
+
</div>
|
|
275
|
+
</list>
|
|
276
|
+
</criteria-paged>
|
|
277
|
+
</div>
|
|
278
|
+
<modal :show.sync="showModal1">
|
|
279
|
+
<div slot="modal-header" class="modal-header">
|
|
280
|
+
<h4 class="modal-title">
|
|
281
|
+
隐患通知单
|
|
282
|
+
</h4>
|
|
283
|
+
</div>
|
|
284
|
+
<div slot="modal-body" class="modal-body">
|
|
285
|
+
<div class="form-group col-sm-12">
|
|
286
|
+
<div class="auto">
|
|
287
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
|
288
|
+
<div class="panel-body panel-self"
|
|
289
|
+
style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
|
|
290
|
+
<img-self :src="deal.f_notified_path" alt="隐患通知单" :width="140" :height="170" capture="camera"
|
|
291
|
+
type="file"></img-self>
|
|
292
|
+
<div class="row text-right div-photo" style="height: 50px;margin-top: -30px">
|
|
293
|
+
<img src="../../../assets/remove.png" @click="delfile('f_notified_path', deal.f_notified_path)"></img>
|
|
294
|
+
<button type="button" name="button" class="btn btn-primary btn-photo"
|
|
295
|
+
@click="takePic('f_notified_path','整改照片')">拍照
|
|
296
|
+
</button>
|
|
297
|
+
</div>
|
|
298
|
+
</div>
|
|
299
|
+
</div>
|
|
300
|
+
</div>
|
|
301
|
+
</div>
|
|
302
|
+
</div>
|
|
303
|
+
<div slot="modal-footer" class="modal-footer">
|
|
304
|
+
<button type="button" class="btn btn-default" @click="commitDealDefect">确认</button>
|
|
305
|
+
<button type="button" class="btn btn-default" @click="closeshowModal1">取消</button>
|
|
306
|
+
</div>
|
|
307
|
+
</modal>
|
|
308
|
+
</template>
|
|
309
|
+
|
|
310
|
+
<script>
|
|
311
|
+
import Vue from 'vue'
|
|
312
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
313
|
+
import * as Util from '../../../components/Util'
|
|
314
|
+
|
|
315
|
+
export default {
|
|
316
|
+
components: {
|
|
317
|
+
},
|
|
318
|
+
title: '无计划安检查询',
|
|
319
|
+
data() {
|
|
320
|
+
return {
|
|
321
|
+
row:{},
|
|
322
|
+
showModal: false,
|
|
323
|
+
showModal1: false,
|
|
324
|
+
showimg: '',
|
|
325
|
+
DefectConfigs:[],
|
|
326
|
+
deal: {
|
|
327
|
+
result:{
|
|
328
|
+
f_userinfo_code: '',
|
|
329
|
+
},
|
|
330
|
+
paperid: '',
|
|
331
|
+
deviceid: '',
|
|
332
|
+
f_notified_path: '',
|
|
333
|
+
f_dealer: Vue.user.name,
|
|
334
|
+
f_dealer_id: Vue.user.id
|
|
335
|
+
},
|
|
336
|
+
user_types: [
|
|
337
|
+
{label: '请选择用户类型', value: ''},
|
|
338
|
+
{label: '民用', value: '民用'},
|
|
339
|
+
{label: '非民用', value: '非民用'},
|
|
340
|
+
],
|
|
341
|
+
repairedState: [
|
|
342
|
+
{label: '全部', value: ''},
|
|
343
|
+
{label: '处理中', value: '处理中'}
|
|
344
|
+
],
|
|
345
|
+
f_filialeids: '',
|
|
346
|
+
model: new PagedList(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/AndroidDealWith`, 20, {
|
|
347
|
+
condition: 'this.condition',
|
|
348
|
+
f_filialeids: `'${Vue.user.orgid}'`,
|
|
349
|
+
f_checker_id: `'${Vue.user.id}'`
|
|
350
|
+
}),
|
|
351
|
+
criteriaShow: false,
|
|
352
|
+
deletebacklistisselect: false,
|
|
353
|
+
selectdata:{},
|
|
354
|
+
showmaterial:false
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
ready() {
|
|
358
|
+
this.selfSearch()
|
|
359
|
+
this.getDefectOption()
|
|
360
|
+
},
|
|
361
|
+
methods: {
|
|
362
|
+
cameraCallBack(prop, fileName) {
|
|
363
|
+
HostApp.__this__.$set( 'deal.'+prop+'', fileName)
|
|
364
|
+
HostApp.__callback__ = null
|
|
365
|
+
HostApp.__this__ = null
|
|
366
|
+
},
|
|
367
|
+
takePic(prop, title) {
|
|
368
|
+
HostApp.__callback__ = this.cameraCallBack
|
|
369
|
+
HostApp.__this__ = this
|
|
370
|
+
let fileName
|
|
371
|
+
if (!this.deal[prop] || this.deal[prop].includes("nopic.png")) {
|
|
372
|
+
fileName = Util.guid() + '-' + prop + '.jpg'
|
|
373
|
+
} else {
|
|
374
|
+
fileName = Util.getFileName(this.deal[prop])
|
|
375
|
+
}
|
|
376
|
+
//tag
|
|
377
|
+
//tag
|
|
378
|
+
HostApp._open_a_page({
|
|
379
|
+
type: 'boomerang',
|
|
380
|
+
page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
|
|
381
|
+
param: {
|
|
382
|
+
file: fileName,
|
|
383
|
+
requestCode: 111,
|
|
384
|
+
callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
|
|
385
|
+
watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
|
|
386
|
+
}
|
|
387
|
+
})
|
|
388
|
+
},
|
|
389
|
+
async getDefectOption() {
|
|
390
|
+
let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_GroupBy`, {
|
|
391
|
+
data: {
|
|
392
|
+
items: "di.f_item_name",
|
|
393
|
+
tablename: "t_paper_devices pd left join t_devices_items di on pd.id = di.f_device_id",
|
|
394
|
+
groupitem: "di.f_item_name",
|
|
395
|
+
condition: `di.f_is_defect = 'true' and di.f_is_repaired is null`
|
|
396
|
+
}
|
|
397
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
398
|
+
const DefectConfigs = [{label: '全部', value: ''}]
|
|
399
|
+
res.data.forEach((item) => {
|
|
400
|
+
DefectConfigs.push({label: item.f_item_name, value: item.f_item_name})
|
|
401
|
+
})
|
|
402
|
+
this.DefectConfigs = DefectConfigs
|
|
403
|
+
},
|
|
404
|
+
openshowModal1(val) {
|
|
405
|
+
this.deal.paperid = val.paper_id
|
|
406
|
+
this.deal.deviceid=val.device_id
|
|
407
|
+
this.deal.result.f_userinfo_code = val.f_userinfo_code
|
|
408
|
+
this.showModal1 = true
|
|
409
|
+
},
|
|
410
|
+
selfSearch() {
|
|
411
|
+
|
|
412
|
+
let condition = "1=1 "
|
|
413
|
+
if (this.$refs.paged.$refs.cri.model.f_user_name) {
|
|
414
|
+
if (this.$refs.paged.$refs.cri.model.f_user_name.toString().trim()) {
|
|
415
|
+
condition += " and tcp.f_user_name like '" + this.$refs.paged.$refs.cri.model.f_user_name + "%'"
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
if (this.$refs.paged.$refs.cri.model.f_userinfo_code) {
|
|
419
|
+
if (this.$refs.paged.$refs.cri.model.f_userinfo_code.toString().trim()) {
|
|
420
|
+
condition += " and tcp.f_userinfo_code = '" + this.$refs.paged.$refs.cri.model.f_userinfo_code + "'"
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
if (this.$refs.paged.$refs.cri.model.f_checker_name) {
|
|
424
|
+
if (this.$refs.paged.$refs.cri.model.f_checker_name.toString().trim()) {
|
|
425
|
+
condition += " and tcp.f_checker_name = '" + this.$refs.paged.$refs.cri.model.f_checker_name + "'"
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
if (this.$refs.paged.$refs.cri.model.f_address) {
|
|
429
|
+
if (this.$refs.paged.$refs.cri.model.f_address.toString().trim()) {
|
|
430
|
+
condition += " and tcp.f_address like '%" + this.$refs.paged.$refs.cri.model.f_address + "%'"
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
if (this.$refs.paged.$refs.cri.model.f_start_date) {
|
|
434
|
+
if (this.$refs.paged.$refs.cri.model.f_start_date.toString().trim()) {
|
|
435
|
+
condition += " and tdl.f_create_time > '" + this.$refs.paged.$refs.cri.model.f_start_date + "'"
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
if (this.$refs.paged.$refs.cri.model.f_end_date) {
|
|
439
|
+
if (this.$refs.paged.$refs.cri.model.f_end_date.toString().trim()) {
|
|
440
|
+
condition += " and tdl.f_create_time < '" + this.$refs.paged.$refs.cri.model.f_end_date + "'"
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
if (this.$refs.paged.$refs.cri.model.f_user_type) {
|
|
444
|
+
if (this.$refs.paged.$refs.cri.model.f_user_type.toString().trim()) {
|
|
445
|
+
condition += " and f_user_type = '" + this.$refs.paged.$refs.cri.model.f_user_type + "'"
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
if (this.$refs.paged.$refs.cri.model.f_item_name) {
|
|
449
|
+
if (this.$refs.paged.$refs.cri.model.f_item_name.toString().trim()) {
|
|
450
|
+
condition += " and f_item_name = '" + this.$refs.paged.$refs.cri.model.f_item_name + "'"
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
if (this.$refs.paged.$refs.cri.model.f_repaired_state) {
|
|
454
|
+
if (this.$refs.paged.$refs.cri.model.f_repaired_state.toString().trim()) {
|
|
455
|
+
condition += " and f_repaired_state= '" + this.$refs.paged.$refs.cri.model.f_repaired_state + "'"
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
condition +=" and tdi.f_repaired_state is null "
|
|
459
|
+
this.model.search(condition)
|
|
460
|
+
},
|
|
461
|
+
delAudioFile(prop, fileName) {
|
|
462
|
+
if (!fileName)
|
|
463
|
+
return
|
|
464
|
+
else {
|
|
465
|
+
HostApp.delfile(fileName)
|
|
466
|
+
this.deal[prop] = null
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
commitDealDefect() {
|
|
470
|
+
if ( !this.deal.f_notified_path) {
|
|
471
|
+
this.$showMessage('隐患通知单照片必须上传')
|
|
472
|
+
return
|
|
473
|
+
}
|
|
474
|
+
HostApp.__this__ = this
|
|
475
|
+
HostApp.logicWithHint({
|
|
476
|
+
'logic': 'safe_notifiedPath', 'callback': 'javascript: HostApp.__this__.commitCallBack()',
|
|
477
|
+
'data': this.deal, 'backresult': 1
|
|
478
|
+
})
|
|
479
|
+
},
|
|
480
|
+
commitCallBack(jo) {
|
|
481
|
+
if (jo.state == 'ok') {
|
|
482
|
+
let ress = JSON.parse(jo.result)
|
|
483
|
+
if (ress.code == 200) {
|
|
484
|
+
this.$showMessage(ress.msg)
|
|
485
|
+
this.closeshowModal1()
|
|
486
|
+
this.selfSearch()
|
|
487
|
+
} else {
|
|
488
|
+
this.$showMessage(ress.msg)
|
|
489
|
+
}
|
|
490
|
+
} else {
|
|
491
|
+
this.$showMessage('本地服务调用失败')
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
delfile(prop, fileName) {
|
|
495
|
+
if (fileName == Vue.nopic)
|
|
496
|
+
return
|
|
497
|
+
else {
|
|
498
|
+
HostApp.delfile(fileName)
|
|
499
|
+
this.deal[prop] = Vue.nopic
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
closeshowModal1() {
|
|
503
|
+
this.deal = {
|
|
504
|
+
result:{
|
|
505
|
+
f_userinfo_code: '',
|
|
506
|
+
},
|
|
507
|
+
paperid: '',
|
|
508
|
+
deviceid: '',
|
|
509
|
+
f_notified_path: '',
|
|
510
|
+
f_dealer: Vue.user.name,
|
|
511
|
+
f_dealer_id: Vue.user.id
|
|
512
|
+
}
|
|
513
|
+
this.showModal1 = false
|
|
514
|
+
this.selfSearch()
|
|
515
|
+
},
|
|
516
|
+
hidden() {
|
|
517
|
+
this.criteriaShow = !this.criteriaShow
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
</script>
|