safecheck-client 3.0.34-9 → 3.0.34-90

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. package/package.json +1 -1
  2. package/src/App-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.vue +55 -0
  3. package/src/assets/123.png +0 -0
  4. package/src/assets/f8632d3c8c4c1cb68e99da754cab1a7.png +0 -0
  5. package/src/components/LoadData.vue +62 -0
  6. package/src/components/NewDefectList/DefectListNew.vue +1 -0
  7. package/src/components/android/AddPlanItemYy.vue +451 -0
  8. package/src/components/android/AndroidDefectDeal.vue +634 -634
  9. package/src/components/android/AndroidDefectDealBeforeSafe.vue +502 -0
  10. package/src/components/android/AreaSelect.vue +198 -0
  11. package/src/components/android/BuildingSelect.vue +192 -0
  12. package/src/components/android/CheckPlanSelect.vue +229 -0
  13. package/src/components/android/CurrentCreateYy.vue +1051 -0
  14. package/src/components/android/PaperFeedback.vue +33 -0
  15. package/src/components/android/QRCode/QRCodeBinding.vue +300 -0
  16. package/src/components/android/QRCode/QRCodePage.vue +212 -0
  17. package/src/components/android/SafecheckDevices.vue +2 -2
  18. package/src/components/android/SafecheckOrderV.vue +8 -12
  19. package/src/components/android/UserinfoSelect.vue +714 -0
  20. package/src/components/android/examples/410.png +0 -0
  21. package/src/components/android/examples/SafeListExamples.vue +279 -0
  22. package/src/components/android/examples/UserExamples.vue +137 -0
  23. package/src/components/android/examples/ViewDetailsExamples.vue +1235 -0
  24. package/src/components/android/examples/touxiang.png +0 -0
  25. package/src/components/pc/SafeVisitInfo.vue +261 -0
  26. package/src/components/rongcheng/AddPlanItem.vue +8 -0
  27. package/src/components/rongcheng/AspiratedUserInfo.vue +1 -1
  28. package/src/components/rongcheng/CheckSearchUser.vue +46 -16
  29. package/src/components/rongcheng/PaperStatem.vue +6 -1
  30. package/src/components/rongcheng/PhoneDevicesInfo.vue +16 -1
  31. package/src/components/rongcheng/PhoneUpUserinfo.vue +0 -92
  32. package/src/components/rongcheng/SafecheckOrderV.vue +12 -3
  33. package/src/components/rongcheng/SafecheckOrderVCli.vue +9 -0
  34. package/src/filiale/baiyin/android/AndroidDefectDeal.vue +4 -4
  35. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -0
  36. package/src/filiale/baiyin/android.js +1 -0
  37. package/src/filiale/baiyin/pc/CheckSearchUser.vue +2 -2
  38. package/src/filiale/baiyin/pc/DefectListNew.vue +3 -3
  39. package/src/filiale/baiyin/pc/PaperList.vue +7 -7
  40. package/src/filiale/bayan/android/AddPlanItem.vue +8 -0
  41. package/src/filiale/bayan/android/PaperFeedback.vue +63 -49
  42. package/src/filiale/bayan/android/PhoneUpUserinfo.vue +40 -40
  43. package/src/filiale/bayan/android/SafecheckOrderV.vue +58 -58
  44. package/src/filiale/bayan/android/SafecheckUserInfo.vue +5 -0
  45. package/src/filiale/bayan/pc/PaperList.vue +1 -0
  46. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +35 -15
  47. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -0
  48. package/src/filiale/huaran/android.js +12 -0
  49. package/src/filiale/huaran/pc/CheckBook.vue +313 -0
  50. package/src/filiale/huaran/pc/CheckBookAll.vue +69 -0
  51. package/src/filiale/huaran/pc/CheckBookArea.vue +170 -0
  52. package/src/filiale/huaran/pc/CheckBookCompany.vue +166 -0
  53. package/src/filiale/huaran/pc/CheckBookDetails.vue +196 -0
  54. package/src/filiale/huaran/pc/CheckBookEntry.vue +61 -0
  55. package/src/filiale/huaran/pc/CheckBookList.vue +386 -0
  56. package/src/filiale/huaran/pc/CheckBookSearchArea.vue +564 -0
  57. package/src/filiale/huaran/pc/CheckBookSearchUnit.vue +229 -0
  58. package/src/filiale/huaran/pc/CheckBookSearchUser.vue +604 -0
  59. package/src/filiale/huaran/pc/CheckBookUser.vue +112 -0
  60. package/src/filiale/huaran/pc/PaperList.vue +822 -0
  61. package/src/filiale/huaran/pc/PlanManage.vue +887 -0
  62. package/src/filiale/huaran/pc/checkPlanList.vue +419 -0
  63. package/src/filiale/huaran/pc/checkUserList.vue +867 -0
  64. package/src/filiale/huaran/pc.js +27 -0
  65. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -0
  66. package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1229 -0
  67. package/src/filiale/jiaxian/android/SafecheckDevices.vue +6 -6
  68. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -0
  69. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -0
  70. package/src/filiale/jiaxian/android.js +4 -0
  71. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
  72. package/src/filiale/jingyang/android/CurrentCreate.vue +1080 -1080
  73. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
  74. package/src/filiale/jingyang/android.js +15 -15
  75. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +15 -7
  76. package/src/filiale/qianneng/android/SafecheckOrderV.vue +1 -1
  77. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -0
  78. package/src/filiale/qingtongxia/android/CurrentCreate.vue +1053 -0
  79. package/src/filiale/qingtongxia/android/PhoneUpUserinfo.vue +1230 -0
  80. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -0
  81. package/src/filiale/qingtongxia/android.js +14 -10
  82. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -0
  83. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -0
  84. package/src/filiale/ruihua/android.js +11 -0
  85. package/src/filiale/shanxian/android/SafecheckOrderV.vue +1 -1
  86. package/src/filiale/shanxian/pc/checkUserList.vue +4 -4
  87. package/src/filiale/siyang/android/AddPlanItem.vue +450 -0
  88. package/src/filiale/siyang/android/AppCheckPlan.vue +246 -0
  89. package/src/filiale/siyang/android/CurrentCreate.vue +1051 -0
  90. package/src/filiale/siyang/android.js +15 -11
  91. package/src/filiale/siyang/pc/CheckBookList.vue +396 -0
  92. package/src/filiale/siyang/pc/CheckBookSearchArea.vue +667 -0
  93. package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -0
  94. package/src/filiale/siyang/pc/CheckSearchUser.vue +1035 -0
  95. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -0
  96. package/src/filiale/siyang/pc/checkPlanList.vue +367 -0
  97. package/src/filiale/siyang/pc/checkUserList.vue +22 -18
  98. package/src/filiale/siyang/pc.js +22 -16
  99. package/src/filiale/tongchuan/android/Select.vue +421 -0
  100. package/src/filiale/tongchuan/android.js +1 -0
  101. package/src/filiale/tongchuan/pc/CheckPlanCountChartArea.vue +3 -1
  102. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +6 -2
  103. package/src/filiale/tongchuan/pc/HiddenSituation.vue +3 -1
  104. package/src/filiale/tongchuan/pc/NewCheckpaper.vue +13 -22
  105. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1 -1
  106. package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +5 -2
  107. package/src/filiale/tongchuan/utils/EventListener.js +29 -0
  108. package/src/filiale/tongchuan/utils/coerceBoolean.js +7 -0
  109. package/src/filiale/weinan/android/SafecheckDevices.vue +1 -1
  110. package/src/filiale/weinan/android/SafecheckOrderV.vue +6 -2
  111. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +75 -62
  112. package/src/filiale/weinan/pc/CheckDetail.vue +11 -11
  113. package/src/filiale/weinan/pc/DefectPaperNew.vue +31 -0
  114. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -0
  115. package/src/filiale/weinan/pc/checkUserList.vue +49 -113
  116. package/src/filiale/weinan/pc.js +1 -0
  117. package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2240
  118. package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -592
  119. package/src/filiale/xilan/pc/checkUserList.vue +772 -0
  120. package/src/filiale/xilan/pc.js +12 -0
  121. package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +10 -6
  122. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +21 -1
  123. package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +23 -11
  124. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +6 -6
  125. package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +96 -30
  126. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +10 -10
  127. package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +10 -10
  128. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +84 -10
  129. package/src/filiale/yangchunboneng/pc/PaperList.vue +6 -6
  130. package/src/filiale/yuansheng/android/SafecheckDevices.vue +11 -1
  131. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +10 -2
  132. package/src/main-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.js +24 -0
  133. package/src/main.js +34 -33
  134. package/src/safecheck-android.js +11 -0
  135. package/src/safecheck-page.js +12 -0
  136. package/src/safecheck.js +3 -0
@@ -120,51 +120,6 @@
120
120
  <input type="text" class="input_search" v-model="model.f_unit"
121
121
  style="width: 60%" placeholder="请选择" condition="ua.f_unit='{}'">
122
122
  </div>
123
- <!-- <div class="form-group col-sm-4" >-->
124
- <!-- <label class="font_normal_body">开户起始:</label>-->
125
- <!-- <datepicker-->
126
- <!-- placeholder='请选择'-->
127
- <!-- style="width:60%"-->
128
- <!-- :disabled-days-of-week="[]"-->
129
- <!-- :format="'yyyy-MM-dd'"-->
130
- <!-- :show-rest-button="reset"-->
131
- <!-- :value.sync="model.f_startfile_time"-->
132
- <!-- v-model="model.f_startfile_time"-->
133
- <!-- condition="ui.f_createfile_date >= '{} 00:00:00'">-->
134
- <!-- </datepicker>-->
135
- <!-- </div>-->
136
- <!-- <div class="form-group col-sm-4" >-->
137
- <!-- <label class="font_normal_body">开户截止:</label>-->
138
- <!-- <datepicker-->
139
- <!-- placeholder='请选择'-->
140
- <!-- :disabled-days-of-week="[]"-->
141
- <!-- style="width:60%"-->
142
- <!-- :format="'yyyy-MM-dd'"-->
143
- <!-- :show-rest-button="reset"-->
144
- <!-- :value.sync="model.f_endfile_time"-->
145
- <!-- v-model="model.f_endfile_time"-->
146
- <!-- condition="ui.f_createfile_date <= '{} 00:00:00'">-->
147
- <!-- </datepicker>-->
148
- <!-- </div>-->
149
- <!-- <div class="form-group col-sm-4" >-->
150
- <!-- <label class="font_normal_body">表&ensp;箱&ensp;号:</label>-->
151
- <!-- <input type="text" class="input_search" v-model="model.f_metertitles"-->
152
- <!-- style="width: 60%" placeholder="请选择" condition="uf.f_metertitles='{}'">-->
153
- <!-- </div>-->
154
- <!-- <div class="form-group col-sm-4" >-->
155
- <!-- <label class="font_normal_body">抄&ensp;表&ensp;册:</label>-->
156
- <!-- <v-select-->
157
- <!-- class="select select_list"-->
158
- <!-- :value.sync="model.f_meter_book_num"-->
159
- <!-- v-model="model.f_meter_book_num"-->
160
- <!-- :options='$parent.$parent.cbc'-->
161
- <!-- placeholder='请选择'-->
162
- <!-- condition="uf.f_meter_book_num='{}'"-->
163
- <!-- close-on-select-->
164
- <!-- value-single-->
165
- <!-- >-->
166
- <!-- </v-select>-->
167
- <!-- </div>-->
168
123
  <div class="form-group col-sm-4" >
169
124
  <label class="font_normal_body">派发情况:</label>
170
125
  <v-select
@@ -194,21 +149,6 @@
194
149
  >
195
150
  </v-select>
196
151
  </div>
197
- <!-- <div class="form-group col-sm-4" >-->
198
- <!-- <label class="font_normal_body">安检情况:</label>-->
199
- <!-- <v-select-->
200
- <!-- class="select select_list"-->
201
- <!-- :value.sync="model.checkState"-->
202
- <!-- v-model="model.checkState"-->
203
- <!-- :options='$parent.$parent.checkStateList'-->
204
- <!-- placeholder='请选择'-->
205
- <!-- condition="{}"-->
206
- <!-- :search="false"-->
207
- <!-- close-on-select-->
208
- <!-- value-single-->
209
- <!-- >-->
210
- <!-- </v-select>-->
211
- <!-- </div>-->
212
152
  <div class="form-group col-sm-4" >
213
153
  <label class="font_normal_body">安检片区:</label>
214
154
  <v-select
@@ -223,31 +163,16 @@
223
163
  >
224
164
  </v-select>
225
165
  </div>
226
- <!--<div class="form-group col-sm-4" >
227
- <label class="font_normal_body">入户情况:</label>
228
- <v-select
229
- class="select select_list"
230
- :value.sync="model.f_hasHousehold"
231
- v-model="model.f_hasHousehold"
232
- :options='$parent.$parent.hasHousehold'
233
- placeholder='请选择'
234
- close-on-select
235
- :search="false"
236
- value-single
237
- >
238
- </v-select>
239
- </div>-->
240
166
  <div class="form-group col-sm-4" >
241
167
  <label class="font_normal_body">安检起始:</label>
242
168
  <datepicker
243
169
  placeholder='请选择'
244
170
  style="width:60%;text-align: center"
245
171
  :disabled-days-of-week="[]"
246
- :format="'yyyy-MM-dd'"
172
+ :format="'yyyy-MM-dd 00:00:00'"
247
173
  :show-rest-button="reset"
248
174
  :value.sync="model.f_check_start"
249
- v-model="model.f_check_start"
250
- condition="ui.f_last_check_date >='{} 00:00:00'">
175
+ v-model="model.f_check_start">
251
176
  </datepicker>
252
177
  </div>
253
178
  <div class="form-group col-sm-4" >
@@ -256,11 +181,22 @@
256
181
  placeholder='请选择'
257
182
  :disabled-days-of-week="[]"
258
183
  style="width:60%;text-align: center"
259
- :format="'yyyy-MM-dd'"
184
+ :format="'yyyy-MM-dd 23:59:59'"
260
185
  :show-rest-button="reset"
261
186
  :value.sync="model.f_check_end"
262
- v-model="model.f_check_end"
263
- condition="ui.f_last_check_date <='{} 00:00:00'">
187
+ v-model="model.f_check_end">
188
+ </datepicker>
189
+ </div>
190
+ <div class="form-group col-sm-4" >
191
+ <label class="font_normal_body">入户截止:</label>
192
+ <datepicker
193
+ placeholder='请选择'
194
+ :disabled-days-of-week="[]"
195
+ style="width:60%;text-align: center"
196
+ :format="'yyyy-MM-dd 23:59:59'"
197
+ :show-rest-button="reset"
198
+ :value.sync="model.f_ruhu_end"
199
+ v-model="model.f_ruhu_end">
264
200
  </datepicker>
265
201
  </div>
266
202
 
@@ -339,18 +275,20 @@
339
275
  import Vue from "vue";
340
276
 
341
277
  export default {
342
- name: "PlanManage",
278
+ name: "checkUserList",
343
279
  title: '计划管理',
344
280
  data() {
281
+ let model = new PagedList('/rs/sql/FetchUserFileByOrgNoRuHuSXQ', 20, {
282
+ "orderitem": "'f_residential_area,f_building,f_unit,f_floor,f_room'",
283
+ "f_usertype": "''",
284
+ "month": "''",
285
+ "SafeCheckSX": 'this.SafeCheckSX',
286
+ "SafeCheckCQ": "''",
287
+ "startday":"''",
288
+ "endday":"''"})
289
+ model.SafeCheckSX = '1 = 1'
345
290
  return {
346
- model:new PagedList('/rs/sql/FetchUserFileByOrgNoRuHuSXQ', 100, {
347
- "orderitem": "'f_residential_area,f_building,f_unit,f_floor,f_room'",
348
- "f_usertype": "''",
349
- "month": "''",
350
- "SafeCheckSX": {"f_check_start": '', "f_check_end": ''},
351
- "SafeCheckCQ": "''",
352
- "startday":"''",
353
- "endday":"''"}),
291
+ model: model,
354
292
  a:'1',
355
293
  opt:[{label:"测试",value:"测试"}],
356
294
  showCondtion:false,
@@ -361,7 +299,6 @@
361
299
  meter_gasbrand:[],//气表品牌
362
300
  hasHousehold:[{label:"全部",value:""},{label:"已入户",value:"已入户"},{label:"未入户",value:"未入户"}],
363
301
  yearCheckList:[{label:"全部",value:""},{label:"已在计划中",value:"ua.f_plan_id is not null"},{label:"未在计划中",value:"ua.f_plan_id is null"}],
364
- checkStateList:[{label:"全部",value:""},{label:"两年内已检",value:"DATEDIFF(day,isnull(ui.f_last_check_date,'2010-01-01'),GETDATE())<=730"},{label:"两年内未检",value:"DATEDIFF(day,isnull(ui.f_last_check_date,'2010-01-01'),GETDATE())>730"},{label:"从未安检",value:"从未安检"}],
365
302
  hasResidentialArea:[{label:"全部",value:""},{label:"有名称",value:"有名称"},{label:"无名称",value:"无名称"}],
366
303
  sliceArea:[],
367
304
  meterbooks:[],
@@ -462,38 +399,36 @@
462
399
  this.excelUserCondtion=true
463
400
  },
464
401
  selfSearch (args) {
465
- //tag)
466
- let condition1="(ui.f_last_check_date is null or ui.f_last_check_date ='')"
467
- let arge = args.condition.replace('从未安检',condition1)
468
- args.condition = arge
469
- args.condition += ` and ui.f_filialeid='${this.userlogin.orgid}'`
470
- if (!Util.isEmpty(args.model.f_last_check_state)){
471
- if (args.model.f_last_check_state == '未检'){
472
- args.condition +=" and (ui.f_last_check_state is null or ui.f_last_check_state ='')"
473
- }else {
474
- args.condition += `and ui.f_last_check_state = '${args.model.f_last_check_state}'`
402
+ if( args.model.f_last_check_state == '入户' && args.model.f_ruhu_end) {
403
+ args.condition += `and DATEADD(YEAR, 2, CAST(ruhuend.f_offsite_time AS datetime)) < '${args.model.f_ruhu_end}'`
404
+ }
405
+ if(args.model.f_last_check_state && Util.isEmpty(args.model.f_ruhu_end) && (Util.isEmpty(args.model.f_check_start) || Util.isEmpty(args.model.f_check_end))) {
406
+ this.$showMessage("选择安检状态时,需要选择安检时间区间!")
407
+ return
408
+ }
409
+ if(args.model.f_last_check_state && Util.isEmpty(args.model.f_ruhu_end)) {
410
+ this.model.SafeCheckSX = ` f_offsite_time > '${args.model.f_check_start}' and f_offsite_time < '${args.model.f_check_end}'`
411
+ if (args.model.f_last_check_state == '未检') {
412
+ args.condition += ' and tcp.ruhu is null '
413
+ } else if (args.model.f_last_check_state == '入户') {
414
+ args.condition += ` and tcp.ruhu > 0`
415
+ } else if (args.model.f_last_check_state == '拒检') {
416
+ args.condition += ` and tcp.jujian > 0 and tcp.ruhu = 0 and tcp.daofang = 0 `
417
+ } else if (args.model.f_last_check_state == '到访不遇') {
418
+ args.condition += ` and tcp.daofang > 0 and tcp.ruhu = 0 and tcp.jujian = 0 `
475
419
  }
420
+ }else{
421
+ //无条件
422
+ this.model.SafeCheckSX = ` 1 != 1 `
476
423
  }
477
- //(ua.f_residential_area is not null or ua.f_residential_area !='')
478
- // (ua.f_residential_area is null or ua.f_residential_area ='')
424
+ args.condition += ` and ui.f_filialeid='${this.userlogin.orgid}'`
479
425
  if (args.model.f_residential_area == "无名称"){
480
426
  args.condition +=" and (ua.f_residential_area is null or ua.f_residential_area ='')"
481
427
  }else if (args.model.f_residential_area == "有名称"){
482
428
  args.condition +=" and (ua.f_residential_area is not null and ua.f_residential_area !='')"
483
429
  }
484
430
  console.log('查询条件',args)
485
- /*if(args.model.f_hasHousehold=='已入户'){
486
- args.condition +=` and Extract(year from TO_DATE(ua.f_last_check_date,'yyyy-mm-dd hh24:mi:ss'))=2021 and ua.F_LAST_CHECK_STATE='入户'`
487
- }else if(args.model.f_hasHousehold=='未入户'){
488
- args.condition +=` and (Extract(year from nvl(TO_DATE(ua.f_last_check_date,'yyyy-mm-dd hh24:mi:ss'),'1990-01-01 00:00:00'))!=2021 or nvl(ua.F_LAST_CHECK_STATE,'未入户')!='入户')`
489
- }*/
490
431
  if(args.model.checkBook){
491
- /* let arr=args.model.checkBook.split('-')
492
- if(arr[1] == '用户'){
493
- args.condition +=` and ua.f_check_book_id=${arr[0]}`
494
- }else{
495
- args.condition +=` and area.f_check_book_id=${arr[0]} and ua.f_check_book_id is null`
496
- }*/
497
432
  let uas = []
498
433
  let areas = []
499
434
  for (let item of args.model.checkBook) {
@@ -680,6 +615,7 @@
680
615
  f_filialeid:this.userlogin.orgid,
681
616
  f_subscribe_date:'',
682
617
  condition:this.model.condition,
618
+ SafeCheckSX: this.model.SafeCheckSX,
683
619
  switchCheckAll:true,
684
620
  checkAll:this.checkAll,
685
621
  param:this.checkes,
@@ -3,6 +3,7 @@ import Vue from "vue";
3
3
 
4
4
  let specialComp = {
5
5
  'select-check-plan': (resolve) => { require(['./pc/SelectCheckPlan'], resolve) },
6
+ 'device-change': (resolve) => { require(['./pc/DeviceChange'], resolve) },
6
7
  'check-noplan': (resolve) => {require(['./pc/CheckNoPlan'], resolve)},
7
8
  'select-check-noplan': (resolve) => { require(['./pc/SelectCheckNoPlan'], resolve) },
8
9
  'print-material-bill-noplan': (resolve) => { require(['./pc/PrintMaterialBillNoplan'], resolve)},