safecheck-client 4.0.2-6 → 4.0.2-60

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.
Files changed (67) hide show
  1. package/package.json +1 -1
  2. package/src/components/NewDefectList/DefectPaperNew.vue +1184 -1184
  3. package/src/components/android/AndroidNotifiedDeal.vue +417 -0
  4. package/src/components/android/PhoneUpUserinfo.vue +1249 -1249
  5. package/src/components/android/SafeRightTree.vue +218 -218
  6. package/src/components/android/SafecheckDevices.vue +1340 -1340
  7. package/src/components/android/week/CheckResultSimple.vue +251 -0
  8. package/src/components/android/week/FirstWeekCheck.vue +275 -0
  9. package/src/components/android/week/StepHeaderBar.vue +457 -0
  10. package/src/components/android/week/WeekCheck.vue +209 -0
  11. package/src/components/android/week/WeekCheckPaper.vue +219 -0
  12. package/src/components/android/week/WeekCheckPlan.vue +145 -0
  13. package/src/components/checkplan/SelectCheckPlan.vue +39 -0
  14. package/src/components/paper/safetyledger.vue +198 -0
  15. package/src/components/pc/CheckBook.vue +303 -303
  16. package/src/components/pc/CheckBookArea.vue +146 -146
  17. package/src/components/pc/CheckBookCompany.vue +144 -144
  18. package/src/components/pc/CheckBookDetails.vue +161 -161
  19. package/src/components/pc/CheckBookEntry.vue +60 -60
  20. package/src/components/pc/CheckBookSearchArea.vue +560 -560
  21. package/src/components/pc/CheckBookSearchUnit.vue +229 -229
  22. package/src/components/pc/CheckBookSearchUser.vue +659 -659
  23. package/src/components/pc/CheckBookSearchUserList.vue +674 -674
  24. package/src/components/pc/DefectDeal.vue +6 -2
  25. package/src/components/planmanage/checkUserList.vue +1 -1
  26. package/src/components/querycheckpaper/CheckSearchUser.vue +2 -1
  27. package/src/components/report/CheckPlanAreaList.vue +53 -7
  28. package/src/filiale/jinhong/android/AndroidDefectDeal.vue +722 -0
  29. package/src/filiale/jinhong/android/AndroidNotifiedDeal.vue +521 -0
  30. package/src/filiale/jinhong/android/CurrentCreate.vue +35 -13
  31. package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +28 -3
  32. package/src/filiale/jinhong/android/SafecheckOrderV.vue +2300 -0
  33. package/src/filiale/jinhong/android.js +4 -1
  34. package/src/filiale/jinhong/pc/CheckBookList.vue +28 -18
  35. package/src/filiale/jinhong/pc/CheckSearchUser.vue +42 -2
  36. package/src/filiale/jinhong/pc/NewCheckpaper.vue +1958 -0
  37. package/src/filiale/jinhong/pc/PaperList.vue +5 -1
  38. package/src/filiale/jinhong/pc/checkPlanList.vue +73 -24
  39. package/src/filiale/jinhong/pc.js +1 -0
  40. package/src/filiale/meihekou/android/CheckPlanList.vue +198 -198
  41. package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -190
  42. package/src/filiale/meihekou/android/CurrentCreate.vue +16 -0
  43. package/src/filiale/meihekou/android/PaperFeedback.vue +1545 -1542
  44. package/src/filiale/meihekou/android/SafecheckDevices.vue +1343 -1340
  45. package/src/filiale/meihekou/android/SafecheckOrderV.vue +27 -28
  46. package/src/filiale/meihekou/android.js +22 -22
  47. package/src/filiale/meihekou/pc/CheckDetail.vue +217 -0
  48. package/src/filiale/meihekou/pc/CheckPlan.vue +52 -0
  49. package/src/filiale/meihekou/pc/CheckPlanAreaList.vue +505 -0
  50. package/src/filiale/meihekou/pc/NewCheckpaper.vue +2 -1
  51. package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2051 -2050
  52. package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1 -0
  53. package/src/filiale/meihekou/pc/SelectCheckPlan.vue +262 -0
  54. package/src/filiale/meihekou/pc.js +18 -15
  55. package/src/filiale/qingjian/pc/SecurityCheckCoordinates.vue +2 -2
  56. package/src/filiale/taiyuan/android/AddPlanItem.vue +457 -456
  57. package/src/filiale/taiyuan/android/SafecheckDevices.vue +1343 -0
  58. package/src/filiale/taiyuan/android/SafecheckOrderV.vue +2347 -2347
  59. package/src/filiale/taiyuan/android.js +1 -0
  60. package/src/filiale/xinkang/android/SafecheckDevices.vue +2 -2
  61. package/src/filiale/xinkang/android/SafecheckOrderV.vue +9 -2
  62. package/src/filiale/xinkang/pc/NewCheckpaper.vue +17 -46
  63. package/src/filiale/xinliansihui/pc/PaperList.vue +814 -0
  64. package/src/filiale/xinliansihui/pc/PaperVisitMain.vue +206 -0
  65. package/src/filiale/xinliansihui/pc.js +13 -0
  66. package/src/safecheck-android.js +12 -0
  67. 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>检&ensp;查&ensp;项:</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>隐&ensp;患&ensp;项:</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>
@@ -204,7 +204,7 @@
204
204
  <v-select id="f_plan_name" :value.sync="model.f_plan_name" class="input-font"
205
205
  :options='$parent.$parent.planNameOptions' placeholder='计划名称' :width="'60%'" v-model="model.f_plan_name"
206
206
  @change="$parent.$parent.planNameChange"
207
- condition="f_plan_name like '%{}%'" close-on-select clear-button>
207
+ condition="f_plan_name = '{}'" close-on-select clear-button>
208
208
  </v-select>
209
209
  </div>
210
210
 
@@ -442,7 +442,7 @@
442
442
  <div class="col-xs-12">
443
443
  <button type="button" name="button" class="btn btn-primary"
444
444
  style="background-color:#499edf;float: right"
445
- @click="$parent.$parent.$parent.inspect(row)">处理</button>
445
+ @click="$parent.$parent.$parent.inspect(row,$index)">处理</button>
446
446
  <button type="button" name="button" class="btn btn-primary"
447
447
  style="background-color:#499edf;float: right;margin-right:10px;"
448
448
  @click="$parent.$parent.$parent.queryplan(row.id)">转发</button>
@@ -613,6 +613,7 @@ export default {
613
613
  planid: '',
614
614
  model: Vue.android ? new LocalPagedList('androidGetuserinfo', 20, { condition: 'this.condition' }) : new PagedList('AndroidRest/api/af-safecheck/sql/androidGetuserinfo', 20, { condition: 'this.condition' }),
615
615
  showModal: false,
616
+ index:0,
616
617
  showModal2: false,
617
618
  showModal3: false,
618
619
  needid: '',
@@ -667,7 +668,9 @@ export default {
667
668
  notVisited: 0,
668
669
  checked: 0,
669
670
  notChecked: 0,
670
- enterRate: 0
671
+ enterRate: 0,
672
+ ruhunum:0
673
+
671
674
  }
672
675
  },
673
676
  ready() {
@@ -866,7 +869,7 @@ export default {
866
869
  condition += ` and f_checker_id= '${this.check}'`
867
870
  }
868
871
  if (this.plan) {
869
- condition += ` and f_plan_name like '%${this.plan}%'`
872
+ condition += ` and f_plan_name = '${this.plan}'`
870
873
  }
871
874
  let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/预约计划下发`, {
872
875
  data: {
@@ -951,7 +954,8 @@ export default {
951
954
  })
952
955
  }
953
956
  },
954
- inspect(row) {
957
+ inspect(row,index) {
958
+ this.index = index
955
959
  var _this = this
956
960
  try {
957
961
  let http = new HttpResetClass()
@@ -975,7 +979,7 @@ export default {
975
979
  }
976
980
  _this.$dispatch('gotoson', pardate)
977
981
  //tag
978
- _this.$goto('safecheck-order-v', { f_plan_id: row.f_plan_id, item: row, role: 'inspect', parentPage: 'CurrentCreate' }, 'self', _this.reload)
982
+ _this.$goto('safecheck-order-v', { f_plan_id: row.f_plan_id, item: row, role: 'inspect', parentPage: 'CurrentCreate' }, 'self', _this.goNext)
979
983
  }).catch((msg) => {
980
984
  this.noLineInspect(row)
981
985
  })
@@ -992,6 +996,23 @@ export default {
992
996
  this.noLineInspect(row)
993
997
  }
994
998
  },
999
+ goNext(){
1000
+ if (this.index+1 == this.model.rows.length){
1001
+ this.reload()
1002
+ return
1003
+ }
1004
+ console.log(this.index)
1005
+ this.$showMessage(`开始安检之前,请核对用户信息`, ['cancel', 'confirm']).then(
1006
+ (response) => {
1007
+ if (response === 'confirm') {
1008
+ this.inspect(this.model.rows[this.index+1],this.index+1)
1009
+ }else {
1010
+ this.reload()
1011
+ this.index = 0
1012
+ }
1013
+ }
1014
+ )
1015
+ },
995
1016
  noLineInspect(row){
996
1017
  let _this = this
997
1018
  let criteria = {
@@ -1009,7 +1030,7 @@ export default {
1009
1030
  safe:true
1010
1031
  }
1011
1032
  _this.$dispatch('gotoson',pardate)
1012
- _this.$goto('safecheck-order-v', {f_plan_id: row.f_plan_id, item: row, role: 'inspect',parentPage:'CurrentCreate'}, 'self', _this.reload)
1033
+ _this.$goto('safecheck-order-v', {f_plan_id: row.f_plan_id, item: row, role: 'inspect',parentPage:'CurrentCreate'}, 'self', _this.goNext)
1013
1034
  }
1014
1035
  },
1015
1036
  makeAPhoneCall(phoneNumber) {
@@ -1036,10 +1057,10 @@ export default {
1036
1057
  if (this.$refs.paged.$refs.cri.model.f_unit)
1037
1058
  condition += ` and ti.f_unit = '${this.$refs.paged.$refs.cri.model.f_unit}'`
1038
1059
  if (this.planName) {
1039
- condition += " and f_plan_name like '%" + this.planName + "%'"
1060
+ condition += " and f_plan_name = '" + this.planName + "'"
1040
1061
  } else {
1041
1062
  if (this.$refs.paged.$refs.cri.model.f_plan_name.length > 0)
1042
- condition += " and f_plan_name like '%" + this.$refs.paged.$refs.cri.model.f_plan_name + "%'"
1063
+ condition += " and f_plan_name = '" + this.$refs.paged.$refs.cri.model.f_plan_name + "'"
1043
1064
  }
1044
1065
  // if(this.$refs.paged.$refs.cri.model.f_plan_year)
1045
1066
  // condition += " and f_plan_year = '"+this.$refs.paged.$refs.cri.model.f_plan_year +"'"
@@ -1068,7 +1089,7 @@ export default {
1068
1089
  condition += " and ti.f_enter_number like '%" + this.$refs.paged.$refs.cri.model.f_enter_number + "%'"
1069
1090
  if (this.$refs.paged.$refs.cri.model.f_check_book.length > 0){
1070
1091
  if (this.$refs.paged.$refs.cri.model.f_plan_name.length > 0 || this.planName){
1071
- condition += " and ti.f_check_book_id like '%" + this.$refs.paged.$refs.cri.model.f_check_book + "%'"
1092
+ condition += " and ti.f_check_book_id = '" + this.$refs.paged.$refs.cri.model.f_check_book + "'"
1072
1093
  }else {
1073
1094
  this.$showMessage("使用安检册筛选项必须选择计划名称")
1074
1095
  return
@@ -1076,7 +1097,7 @@ export default {
1076
1097
  }
1077
1098
  if (this.$refs.paged.$refs.cri.model.f_check_version)
1078
1099
  condition += " and ti.f_check_version = " + this.$refs.paged.$refs.cri.model.f_check_version
1079
- this.model.search("((f_complete = '' or f_complete = null or f_complete = '未完成') or (f_state = '未检') or (f_last_check_state = '到访不遇' )) and ti.f_no_checkplan = '有计划安检'" + condition)
1100
+ this.model.search("((ti.f_complete = '' or ti.f_complete = null or ti.f_complete = '未完成') or (ti.f_state = '未检') or (ti.f_last_check_state = '到访不遇' )) and ti.f_no_checkplan = '有计划安检'" + condition)
1080
1101
 
1081
1102
  },
1082
1103
  getNewOrder() {
@@ -1210,8 +1231,8 @@ export default {
1210
1231
  }
1211
1232
  }
1212
1233
  let tjData = {
1213
- items: " COUNT(*) AS total_items, SUM(CASE WHEN tcpi.f_last_check_state= '到访不遇' THEN 1 ELSE 0 END) AS no_answer_count, SUM(CASE WHEN tcpi.f_state='已检' THEN 1 ELSE 0 END) AS yj_count, SUM(CASE WHEN tcpi.f_state='未检' THEN 1 ELSE 0 END) AS wj_count, ROUND(SUM(CASE WHEN tcp.f_entry_status='入户' THEN 1 ELSE 0 END)*100.0/COUNT(*),2) AS entry_rate_percent ",
1214
- tablename: " t_check_plan tcpl LEFT JOIN t_check_plan_item tcpi ON tcpl.id=tcpi.f_plan_id LEFT JOIN t_check_paper tcp ON tcp.f_check_item_id= tcpi.id ",
1234
+ items: " COUNT(*) AS total_items,SUM ( CASE WHEN tcpi.f_state= '已检' and tcpi.f_last_check_state= '到访不遇' THEN 1 ELSE 0 END ) AS no_answer_count,SUM ( CASE WHEN tcpi.f_state= '已检' and tcpi.f_last_check_state= '入户' THEN 1 ELSE 0 END ) AS ruhunum,SUM ( CASE WHEN tcpi.f_state= '已检' AND f_last_check_state != '到访不遇' THEN 1 ELSE 0 END ) AS yj_count,SUM ( CASE WHEN tcpi.f_state= '未检' THEN 1 ELSE 0 END ) AS wj_count,ROUND( SUM ( CASE WHEN tcpi.f_state= '已检' and tcpi.f_last_check_state= '入户' THEN 1 ELSE 0 END ) * 100.0 / COUNT ( * ), 2 ) AS entry_rate_percent ",
1235
+ tablename: " t_check_plan_item tcpi LEFT JOIN t_check_plan tcpl ON tcpi.f_plan_id = tcpl.id ",
1215
1236
  condition: condition,
1216
1237
  orderitem: '1'
1217
1238
  }
@@ -1226,6 +1247,7 @@ export default {
1226
1247
  this.checked = stat.yj_count || 0;
1227
1248
  this.notChecked = stat.wj_count || 0;
1228
1249
  this.enterRate = stat.entry_rate_percent || 0;
1250
+ this.ruhunum = stat.ruhunum || 0;
1229
1251
  }
1230
1252
 
1231
1253
  let criteria = {