safecheck-client 4.0.2-7 → 4.0.2-71

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 (78) hide show
  1. package/build/reports/problems/problems-report.html +663 -0
  2. package/package.json +132 -132
  3. package/src/components/NewDefectList/DefectPaperNew.vue +1184 -1184
  4. package/src/components/android/AndroidNotifiedDeal.vue +417 -0
  5. package/src/components/android/PhoneUpUserinfo.vue +1249 -1249
  6. package/src/components/android/SafeRightTree.vue +218 -218
  7. package/src/components/android/SafecheckDevices.vue +1340 -1340
  8. package/src/components/android/week/CheckResultSimple.vue +258 -0
  9. package/src/components/android/week/FirstWeekCheck.vue +301 -0
  10. package/src/components/android/week/StepHeaderBar.vue +485 -0
  11. package/src/components/android/week/WeekCheck.vue +267 -0
  12. package/src/components/android/week/WeekCheckPaper.vue +274 -0
  13. package/src/components/android/week/WeekCheckPlan.vue +145 -0
  14. package/src/components/android/week/WeekCheckUserInfo.vue +99 -0
  15. package/src/components/checkplan/CheckDetail.vue +1 -1
  16. package/src/components/checkplan/SelectCheckPlan.vue +39 -0
  17. package/src/components/paper/safetyledger.vue +198 -0
  18. package/src/components/pc/CheckBook.vue +303 -303
  19. package/src/components/pc/CheckBookArea.vue +146 -146
  20. package/src/components/pc/CheckBookCompany.vue +144 -144
  21. package/src/components/pc/CheckBookDetails.vue +161 -161
  22. package/src/components/pc/CheckBookEntry.vue +60 -60
  23. package/src/components/pc/CheckBookSearchArea.vue +560 -560
  24. package/src/components/pc/CheckBookSearchUnit.vue +229 -229
  25. package/src/components/pc/CheckBookSearchUser.vue +659 -659
  26. package/src/components/pc/CheckBookSearchUserList.vue +674 -674
  27. package/src/components/pc/DefectDeal.vue +22 -7
  28. package/src/components/pc/PaperDefectMain.vue +22 -0
  29. package/src/components/planmanage/checkUserList.vue +1 -1
  30. package/src/components/querycheckpaper/CheckSearchUser.vue +2 -1
  31. package/src/components/report/CheckPlanAreaList.vue +53 -7
  32. package/src/components/report/CheckPlanUserList.vue +12 -2
  33. package/src/filiale/jinhong/android/AddPlanItem.vue +481 -0
  34. package/src/filiale/jinhong/android/AndroidDefectDeal.vue +748 -0
  35. package/src/filiale/jinhong/android/AndroidNotifiedDeal.vue +569 -0
  36. package/src/filiale/jinhong/android/CurrentCreate.vue +63 -21
  37. package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +28 -3
  38. package/src/filiale/jinhong/android/SafecheckOrderV.vue +2300 -0
  39. package/src/filiale/jinhong/android.js +5 -1
  40. package/src/filiale/jinhong/pc/CheckBookList.vue +28 -18
  41. package/src/filiale/jinhong/pc/CheckSearchUser.vue +45 -2
  42. package/src/filiale/jinhong/pc/NewCheckpaper.vue +1958 -0
  43. package/src/filiale/jinhong/pc/PaperList.vue +8 -1
  44. package/src/filiale/jinhong/pc/PlanManage.vue +9 -3
  45. package/src/filiale/jinhong/pc/checkPlanList.vue +73 -24
  46. package/src/filiale/jinhong/pc/checkUserList.vue +36 -0
  47. package/src/filiale/jinhong/pc.js +1 -0
  48. package/src/filiale/meihekou/android/CheckPlanList.vue +198 -198
  49. package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -190
  50. package/src/filiale/meihekou/android/CurrentCreate.vue +16 -0
  51. package/src/filiale/meihekou/android/PaperFeedback.vue +1545 -1542
  52. package/src/filiale/meihekou/android/SafecheckDevices.vue +1343 -1340
  53. package/src/filiale/meihekou/android/SafecheckOrderV.vue +70 -54
  54. package/src/filiale/meihekou/android.js +22 -22
  55. package/src/filiale/meihekou/pc/CheckDetail.vue +217 -0
  56. package/src/filiale/meihekou/pc/CheckPlan.vue +52 -0
  57. package/src/filiale/meihekou/pc/CheckPlanAreaList.vue +505 -0
  58. package/src/filiale/meihekou/pc/NewCheckpaper.vue +249 -280
  59. package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2051 -2050
  60. package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1 -0
  61. package/src/filiale/meihekou/pc/PaperList.vue +9 -23
  62. package/src/filiale/meihekou/pc/SelectCheckPlan.vue +262 -0
  63. package/src/filiale/meihekou/pc/checkUserList.vue +790 -0
  64. package/src/filiale/meihekou/pc.js +19 -15
  65. package/src/filiale/qingjian/pc/SecurityCheckCoordinates.vue +2 -2
  66. package/src/filiale/taiyuan/android/AddPlanItem.vue +1 -0
  67. package/src/filiale/taiyuan/android/SafecheckDevices.vue +1343 -0
  68. package/src/filiale/taiyuan/android/SafecheckOrderV.vue +17 -17
  69. package/src/filiale/taiyuan/android.js +1 -0
  70. package/src/filiale/taiyuan/pc/NewCheckpaper.vue +22 -0
  71. package/src/filiale/xinkang/android/SafecheckDevices.vue +2 -2
  72. package/src/filiale/xinkang/android/SafecheckOrderV.vue +9 -2
  73. package/src/filiale/xinkang/pc/NewCheckpaper.vue +17 -46
  74. package/src/filiale/xinliansihui/pc/PaperList.vue +814 -0
  75. package/src/filiale/xinliansihui/pc/PaperVisitMain.vue +206 -0
  76. package/src/filiale/xinliansihui/pc.js +13 -0
  77. package/src/safecheck-android.js +12 -0
  78. package/src/safecheck.js +3 -0
@@ -240,36 +240,36 @@ export default {
240
240
  repairTypeOptions:this.$appdata.getParam('报修类型'),
241
241
  f_security_check_type_id: '',
242
242
  config: [
243
- {
244
- "itemname": "燃气表",
245
- "checkmust": true,
246
- "index": 1,
247
- "items": [
248
- {"itemname": "基表编号", "index": 1, "type": "string", "readonly": true},
249
- {"itemname": "气表型号", "index": 2, "type": "string", "readonly": true},
250
- {"itemname": "气表品牌", "index": 3, "type": "string", "readonly": true},
251
- {"itemname": "表向", "index": 4, "type": "string", "readonly": true},
252
- {"itemname": "初始表底", "index": 5, "type": "number", "readonly": true},
253
- {"itemname": "上期表读数", "index": 6, "type": "number", "readonly": true},
243
+ {
244
+ "itemname": "燃气表",
245
+ "checkmust": true,
246
+ "index": 1,
247
+ "items": [
248
+ {"itemname": "基表编号", "index": 1, "type": "string", "readonly": true},
249
+ {"itemname": "气表型号", "index": 2, "type": "string", "readonly": true},
250
+ {"itemname": "气表品牌", "index": 3, "type": "string", "readonly": true},
251
+ {"itemname": "表向", "index": 4, "type": "string", "readonly": true},
252
+ {"itemname": "初始表底", "index": 5, "type": "number", "readonly": true},
253
+ {"itemname": "上期表读数", "index": 6, "type": "number", "readonly": true},
254
254
 
255
- {"itemname": "累购气量", "index": 7, "type": "number", "readonly": true,unique: true,collectionType:"按气量"},
256
- {"itemname": "已用气量", "index": 8, "type": "number", "checkmust": false,unique: true,collectionType:"按气量"},
257
- {"itemname": "剩余气量", "index": 9, "type": "number", "checkmust": false,unique: true,collectionType:"按气量"},
258
- {"itemname": "气量异常差值", "index": 10, "type": "number", "readonly": true,unique: true,collectionType:"按气量"},
255
+ {"itemname": "累购气量", "index": 7, "type": "number", "readonly": true,unique: true,collectionType:"按气量"},
256
+ {"itemname": "已用气量", "index": 8, "type": "number", "checkmust": false,unique: true,collectionType:"按气量"},
257
+ {"itemname": "剩余气量", "index": 9, "type": "number", "checkmust": false,unique: true,collectionType:"按气量"},
258
+ {"itemname": "气量异常差值", "index": 10, "type": "number", "readonly": true,unique: true,collectionType:"按气量"},
259
259
 
260
260
 
261
- {"itemname": "累购金额", "index": 7, "type": "number", "readonly": true,unique: true,collectionType:"按金额"},
262
- {"itemname": "已用金额", "index": 8, "type": "number", "checkmust": false,unique: true,collectionType:"按金额"},
263
- {"itemname": "剩余金额", "index": 9, "type": "number", "checkmust": false,unique: true,collectionType:"按金额"},
264
- {"itemname": "金额异常差值", "index": 10, "type": "number", "readonly": true,unique: true,collectionType:"按金额"},
261
+ {"itemname": "累购金额", "index": 7, "type": "number", "readonly": true,unique: true,collectionType:"按金额"},
262
+ {"itemname": "已用金额", "index": 8, "type": "number", "checkmust": false,unique: true,collectionType:"按金额"},
263
+ {"itemname": "剩余金额", "index": 9, "type": "number", "checkmust": false,unique: true,collectionType:"按金额"},
264
+ {"itemname": "金额异常差值", "index": 10, "type": "number", "readonly": true,unique: true,collectionType:"按金额"},
265
265
 
266
- {"itemname": "系统余额", "index": 10, "type": "number", "readonly": true},
266
+ {"itemname": "系统余额", "index": 10, "type": "number", "readonly": true},
267
267
 
268
- {"itemname": "表封号", "index": 11, "type": "string", "readonly": true},
269
- {"itemname": "燃气表照片", "index": 12, "type": "picture", "checkmust": false}
270
- ]
271
- }
272
- ],
268
+ {"itemname": "表封号", "index": 11, "type": "string", "readonly": true},
269
+ {"itemname": "燃气表照片", "index": 12, "type": "picture", "checkmust": false}
270
+ ]
271
+ }
272
+ ],
273
273
  // 维修项
274
274
  isneedDate:'',
275
275
  days: this.$appdata.getParam('截止天数'),
@@ -862,6 +862,23 @@ export default {
862
862
  f_is_defect = configItems.options[k].isdefect
863
863
  f_item_value = items.f_item_value[i]
864
864
  f_defect_level = configItems.level
865
+ let items_list = {
866
+ f_is_defect: f_is_defect,
867
+ f_item_value: f_item_value,
868
+ f_defect_level: f_defect_level,
869
+ f_is_eliminate: null,
870
+ f_create_time: Util.toStandardTimeString()
871
+ }
872
+ if (!items.f_item_lists) {
873
+ items.f_item_lists = []
874
+ if (JSON.stringify(items_list) !== '{}') {
875
+ items.f_item_lists.push(items_list)
876
+ }
877
+ } else {
878
+ if (JSON.stringify(items_list) !== '{}') {
879
+ items.f_item_lists.push(items_list)
880
+ }
881
+ }
865
882
  if (f_is_defect) {
866
883
  if (checkResults.result !== '有隐患') {
867
884
  checkResults.result = '有隐患'
@@ -876,16 +893,12 @@ export default {
876
893
  this.checkResult[f_device_type + '-' + f_item_name] = []
877
894
  }
878
895
  this.checkResult[f_device_type + '-' + f_item_name].push(f_item_value)
879
-
880
896
  }
881
-
882
897
  let f_selected = f_item_value
883
- if (!items.f_selected) {
898
+ if (!items.f_selected || !(items.f_selected instanceof Array)){
884
899
  items.f_selected = []
885
- items.f_selected.push(f_item_value)
886
- } else {
887
- items.f_selected.push(f_item_value)
888
900
  }
901
+ items.f_selected.push(f_item_value)
889
902
  }
890
903
  }
891
904
  }
@@ -994,6 +1007,8 @@ export default {
994
1007
  if (this.repairDefect.result != '正常') {
995
1008
  return this.$showMessage('有隐患的处理方式为转维修,请点击转维修')
996
1009
  }
1010
+ //先临时保存
1011
+ this.save('temp')
997
1012
  this.save()
998
1013
  },
999
1014
  //将数据组装提出
@@ -1013,7 +1028,7 @@ export default {
1013
1028
  save(type) {
1014
1029
  if (type == 'temp' || type == 'finish') {
1015
1030
  this.assemblyCodata()
1016
- }
1031
+ }
1017
1032
  //禁用事件
1018
1033
  this.saveNoclick()
1019
1034
  if (type == 'temp') {
@@ -1328,7 +1343,7 @@ export default {
1328
1343
  }
1329
1344
  if (jo.state == 'ok') {
1330
1345
  let res = JSON.parse(jo.result)
1331
- if (res.code == 200) {
1346
+ if (res.code == 200 || res.code == 310 || res.code == 311) {
1332
1347
  this.$set('data.f_paper_id', res.id)
1333
1348
  this.isStrat = false
1334
1349
  if (url != "") {
@@ -1392,7 +1407,7 @@ export default {
1392
1407
  param = res.data[0]
1393
1408
  param.f_new_tablebase = _this.data.f_new_tablebase
1394
1409
  param.tabname="在线抄表",
1395
- param.f_result_state="安检回量"
1410
+ param.f_result_state="安检回量"
1396
1411
  var pardate = {
1397
1412
  _this:this,
1398
1413
  tittle:'抄表单信息',
@@ -1576,18 +1591,13 @@ export default {
1576
1591
  this.refuseinspection = Vue.config.safecheck.ApproveConfig.refuseinspection
1577
1592
  }
1578
1593
  }
1579
-
1580
- if (this.item.f_security_check_type_id && this.item.f_security_check_type_id != null) {
1581
- try {
1594
+ try {
1595
+ if (this.item.f_security_check_type_id && this.item.f_security_check_type_id != null) {
1582
1596
  await this.getSecurityCheckType(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/getSecurityCheckTypeHistoryById`, {id: this.item.f_security_check_type_id})
1583
1597
  this.f_security_check_type_id = this.serverConfig.data.id
1584
- } catch (e) {
1585
- return this.$showMessage('获取配置文件失败,请返回后重新进入!多次失败请联系管理员')
1586
- }
1587
- this.config = this.extend(JSON.parse(this.serverConfig.data.f_json), this.config)
1588
- this.initConfig()
1589
- } else {
1590
- try {
1598
+ this.config = this.extend(JSON.parse(this.serverConfig.data.f_json), this.config)
1599
+ this.initConfig()
1600
+ } else {
1591
1601
  await this.getSecurityCheckType(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/getSecurityCheckTypeByType`, {
1592
1602
  f_safecheck_type: this.item.f_safecheck_type || '年度普检',
1593
1603
  f_user_type: this.item.f_user_type
@@ -1595,9 +1605,12 @@ export default {
1595
1605
  this.f_security_check_type_id = this.serverConfig.data[0].id
1596
1606
  this.config = this.extend(JSON.parse(this.serverConfig.data[0].f_json), this.config)
1597
1607
  this.initConfig()
1598
- } catch (e) {
1599
- return this.$showMessage('获取配置文件失败,请返回后重新进入!多次失败请联系管理员')
1600
1608
  }
1609
+ }catch (e) {
1610
+ this.config = this.extend(JSON.parse(Vue.newConfig.data[0].f_json), this.config)
1611
+ this.initConfig()
1612
+ console.log(('离线'))
1613
+ console.log(e)
1601
1614
  }
1602
1615
  }
1603
1616
  },
@@ -2175,7 +2188,7 @@ export default {
2175
2188
  if (typeof item.f_items[i] == 'function') {
2176
2189
  continue
2177
2190
  }
2178
- let items = this.config.find(obj => obj.itemname === item.f_device_type).items;
2191
+ let items = this.config.find(obj => obj.itemname === item.f_device_type).items;
2179
2192
  for (let de in items) {
2180
2193
  if (typeof items[de] == 'function') {
2181
2194
  continue
@@ -2186,9 +2199,12 @@ export default {
2186
2199
  }
2187
2200
  }
2188
2201
  }
2189
- if (item.f_items[i].f_item_value instanceof Array) {
2202
+ if (item.f_items[i].f_selected) {
2190
2203
  item.f_items[i].f_item_value = JSON.parse(item.f_items[i].f_selected)
2191
2204
  }
2205
+ if (item.f_items[i].f_item_lists.length > 0){
2206
+ item.f_items[i].f_item_value = item.f_items[i].f_item_lists[0].f_item_value
2207
+ }
2192
2208
  }
2193
2209
  for (let de in that.devices) {
2194
2210
  if (typeof that.devices[de] == 'function') {
@@ -2214,15 +2230,15 @@ export default {
2214
2230
  this.init()
2215
2231
  }
2216
2232
  if(this.parentPage && this.parentPage=='CurrentCreate'){
2217
- let isRecodr = this.$appdata.getSingleValue('无限制录音'); //单值参数,为true则是开启全程录音
2218
- if (isRecodr) {
2219
- if (isRecodr == 'true') {
2233
+ let isRecodr = this.$appdata.getSingleValue('无限制录音'); //单值参数,为true则是开启全程录音
2234
+ if (isRecodr) {
2235
+ if (isRecodr == 'true') {
2220
2236
  this.$showMessage("为了保证服务质量,您的电话将会被全程录音!")
2221
- // 初始化录音
2222
- let resse = this.record()
2237
+ // 初始化录音
2238
+ let resse = this.record()
2239
+ }
2223
2240
  }
2224
2241
  }
2225
- }
2226
2242
  this.$goto('safecheck-userinfo', {userinfo:this.data}, 'repair')
2227
2243
  } else {
2228
2244
  let that = this
@@ -1,22 +1,22 @@
1
- // 分公司特殊组件页面注册
2
- import Vue from "vue";
3
-
4
- //手机特殊目录注册到该文件中
5
- let specialComp = {
6
- 'safecheck-order-v': (resolve) => { require(['./android/SafecheckOrderV'], resolve) },
7
- 'safecheck-devices': (resolve) => { require(['./android/SafecheckDevices'], resolve) },
8
- 'paper-feedback' : (resolve) => { require(['./android/PaperFeedback'], resolve) },
9
- 'safecheck-userinfo': (resolve) => { require(['./android/SafecheckUserInfo'], resolve) },
10
- 'PhoneUpUserinfo': (resolve) => { require(['./android/PhoneUpUserinfo.vue'], resolve) },
11
- 'area-plan': (resolve) => { require(['./android/AreaPlan.vue'], resolve) },
12
- 'check-plan-list': (resolve) => { require(['./android/CheckPlanList.vue'], resolve) },
13
- 'phone-insurance-purchase-detail': (resolve) => { require(['./android/PhoneInsurancePurchaseDetail'], resolve) },
14
- 'check-plan-list-area': (resolve) => { require(['./android/CheckPlanListArea.vue'], resolve) },
15
- 'current-create': (resolve) => { require(['./android/CurrentCreate.vue'], resolve) },
16
-
17
- }
18
- exports.specialComp = specialComp
19
-
20
-
21
-
22
-
1
+ // 分公司特殊组件页面注册
2
+ import Vue from "vue";
3
+
4
+ //手机特殊目录注册到该文件中
5
+ let specialComp = {
6
+ 'safecheck-order-v': (resolve) => { require(['./android/SafecheckOrderV'], resolve) },
7
+ 'safecheck-devices': (resolve) => { require(['./android/SafecheckDevices'], resolve) },
8
+ 'paper-feedback' : (resolve) => { require(['./android/PaperFeedback'], resolve) },
9
+ 'safecheck-userinfo': (resolve) => { require(['./android/SafecheckUserInfo'], resolve) },
10
+ 'PhoneUpUserinfo': (resolve) => { require(['./android/PhoneUpUserinfo.vue'], resolve) },
11
+ 'area-plan': (resolve) => { require(['./android/AreaPlan.vue'], resolve) },
12
+ 'check-plan-list': (resolve) => { require(['./android/CheckPlanList.vue'], resolve) },
13
+ 'phone-insurance-purchase-detail': (resolve) => { require(['./android/PhoneInsurancePurchaseDetail'], resolve) },
14
+ 'check-plan-list-area': (resolve) => { require(['./android/CheckPlanListArea.vue'], resolve) },
15
+ 'current-create': (resolve) => { require(['./android/CurrentCreate.vue'], resolve) },
16
+
17
+ }
18
+ exports.specialComp = specialComp
19
+
20
+
21
+
22
+
@@ -0,0 +1,217 @@
1
+ <template>
2
+ <div>
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <div partial>
6
+ <ul class="nav nav-tabs">
7
+ <li role="presentation" class="active"><a style=" color: #5ac0d9 !important;">安检计划项明细</a></li>
8
+ </ul>
9
+ <div class="row">
10
+ <div class="form-group col-sm-4" >
11
+ <label class="font_normal_body">安检状态</label>
12
+ <v-select style="width:60% "
13
+ class="select select_list"
14
+ :value.sync="$parent.$parent.f_state"
15
+ v-model="$parent.$parent.f_state"
16
+ :options='$parent.$parent.checkState'
17
+ placeholder='安检状态'
18
+ close-on-select
19
+ value-single
20
+ >
21
+ </v-select>
22
+ </div>
23
+ <div class="form-group col-sm-4" >
24
+ <label class="font_normal_body">有无计划</label>
25
+ <v-select style="width:60% "
26
+ class="select select_list"
27
+ :value.sync="$parent.$parent.f_no_checkplan"
28
+ v-model="$parent.$parent.f_no_checkplan"
29
+ :options='$parent.$parent.no_checkplans'
30
+ placeholder='有无计划'
31
+ close-on-select
32
+ value-single
33
+ >
34
+ </v-select>
35
+ </div>
36
+ <div class="form-group col-sm-4" >
37
+ <label class="font_normal_body">入户状态</label>
38
+ <v-select style="width:60% "
39
+ class="select select_list"
40
+ :value.sync="$parent.$parent.f_last_check_state"
41
+ v-model="$parent.$parent.f_last_check_state"
42
+ :options='$parent.$parent.entry_status'
43
+ placeholder='入户状态'
44
+ close-on-select
45
+ value-single
46
+ >
47
+ </v-select>
48
+ </div>
49
+ <div class="form-group col-sm-4" >
50
+ <label class="font_normal_body">小区</label>
51
+ <input type="text" class="input_search"
52
+ v-model="$parent.$parent.f_residential_area"
53
+ style="width: 60%" placeholder="小区"
54
+ condition="f_residential_area like '%{}%'">
55
+ </div>
56
+ <div class="form-group col-sm-4" >
57
+ <label class="font_normal_body">楼号</label>
58
+ <input type="text" class="input_search"
59
+ v-model="$parent.$parent.f_building"
60
+ style="width: 60%" placeholder="楼号"
61
+ condition="f_building like '%{}%'">
62
+ </div>
63
+ <div class="form-group col-sm-4 button-range" >
64
+ <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
65
+ <export-excel :data="$parent.$parent.exportParameter"
66
+ :field="$parent.$parent.excelHeaders"
67
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="planItemNew"
68
+ template-name='安检计划明细' :choose-col="true">
69
+ </export-excel>
70
+ <!--<export-excel-->
71
+ <!--:data="{condition: $parent.$parent.condition}"-->
72
+ <!--:field="$parent.$parent.getfield"-->
73
+ <!--sqlurl="api/af-safecheck/logic/saleExport" sql-name="getGasUser" :template-name="$parent.$parent.pricename+'气价使用人'"-->
74
+ <!--:choose-col="true"></export-excel>-->
75
+
76
+ </div>
77
+ </div>
78
+ </div>
79
+ </criteria>
80
+ <data-grid :model="model" partial='list' class="table_sy">
81
+
82
+ <template partial='head'>
83
+ <tr>
84
+ <th><nobr>计划名称</nobr></th>
85
+ <th><nobr>用户编号</nobr></th>
86
+ <th><nobr>用户名称</nobr></th>
87
+ <th><nobr>小区名称</nobr></th>
88
+ <th><nobr>地址</nobr></th>
89
+ <th><nobr>安检状态</nobr></th>
90
+ <th><nobr>是否安检</nobr></th>
91
+ </tr>
92
+ </template>
93
+ <template partial='body'>
94
+ <td style="text-align: center"><nobr>{{row.f_plan_name}}</nobr></td>
95
+ <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
96
+ <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
97
+ <td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
98
+ <td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
99
+ <td style="text-align: center"><nobr>{{row.f_last_check_state}}</nobr></td>
100
+ <td style="text-align: center"><nobr>{{row.f_state}}</nobr></td>
101
+ </template>
102
+ </data-grid>
103
+ </criteria-paged>
104
+ </div>
105
+ </template>
106
+
107
+ <script>
108
+ import { PagedList } from 'vue-client'
109
+
110
+ export default {
111
+ title: '安检计划项列表',
112
+ data () {
113
+ return {
114
+ model: new PagedList('api/af-safecheck/sql/planItemNew', 20),
115
+ checkState:[{label:'全部',value:''},{label:'已检',value:'已检'},{label:'未检',value:'未检'}],
116
+ entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
117
+ no_checkplans: this.$appdata.getParam('有无计划')?[{label: '全部', value: ''}, ...this.$appdata.getParam('有无计划')]:[{label: '全部', value: ''}],
118
+ noChecks:[{label:'未检',value:'未检'},{label:'到访不遇',value:'到访不遇'},{label:'拒检',value:'拒检'}],
119
+ excelHeaders: {
120
+ //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
121
+
122
+ 'f_userinfo_code': '用户编号',
123
+ 'f_user_name': '用户名称',
124
+ 'f_user_phone': '用户电话',
125
+ //'count_item':'安检次数',
126
+ 'f_user_type': '用户类型',
127
+ 'f_residential_area': '小区名称',
128
+ 'f_address':'地址',
129
+ 'f_last_check_date':'安检日期',
130
+ 'f_last_check_state': '安检状态',
131
+ 'f_state':'是否已检',
132
+ 'f_last_check_result':'安检结果'
133
+ },
134
+ area:[{label:'全部',value:''}],
135
+ f_state:'',
136
+ f_no_checkplan:'',
137
+ f_last_check_state:'',
138
+ f_noruhu:'',
139
+ f_residential_area:'',
140
+ f_building:'',
141
+ }
142
+ },
143
+ props: [ 'check','checkstatus','checkstart','checkend' ],
144
+ watch: {
145
+ 'check' (val) {
146
+ debugger
147
+ let condition
148
+ condition = `f_checker='${this.check.f_checker}'`
149
+ if(this.checkstart){
150
+ condition+= `and f_last_check_date>='${this.checkstart}'`
151
+ }
152
+ if (this.checkend){
153
+ condition += `and f_last_check_date<='${this.f_endcheckend_time}'`
154
+ }
155
+ this.f_noruhu=[]
156
+ this.f_state=''
157
+ this.model.search(condition, {})
158
+
159
+ }
160
+ },
161
+
162
+ ready () {
163
+ if (this.check) {
164
+ let condition
165
+ condition = `f_checker='${this.check.f_checker}'`
166
+ if(this.checkstart){
167
+ condition += `and f_last_check_date>='${this.checkstart}'`
168
+ }
169
+ if (this.checkend){
170
+ condition += ` and f_last_check_date<='${this.f_end_tcheckendime}'`
171
+ }
172
+ this.model.search(condition, {})
173
+ }
174
+ },
175
+ methods:{
176
+ selfSearch(args){
177
+ if (this.check) {
178
+ args.condition = `f_checker='${this.check.f_checker}'`
179
+ if(this.checkstart){
180
+ args.condition+= `and f_last_check_date>='${this.checkstart}'`
181
+ }
182
+ if (this.checkend){
183
+ args.condition += `and f_last_check_date<='${this.checkend}'`
184
+ }
185
+ if (this.f_residential_area){
186
+ args.condition += ` and i.f_residential_area like'%${this.f_residential_area}%'`
187
+ }
188
+ if (this.f_building){
189
+ args.condition += ` and i.f_building='${this.f_building}'`
190
+ }
191
+ if (this.f_state){
192
+ args.condition += ` and i.f_state='${this.f_state}'`
193
+ }
194
+ if (this.f_last_check_state){
195
+ args.condition += ` and i.f_last_check_state='${this.f_last_check_state}'`
196
+ }
197
+ if (this.f_no_checkplan){
198
+ if (this.f_no_checkplan == '有计划安检'){
199
+ args.condition += ` and i.f_plan_name != '无计划' `
200
+ }else {
201
+ args.condition += ` and i.f_plan_name = '无计划' `
202
+ }
203
+ }
204
+ this.model.search(args.condition, args.model)
205
+ }
206
+ }
207
+ },
208
+ computed: {
209
+ // 导出到Excel的条件构造
210
+ exportParameter() {
211
+ return {
212
+ condition: this.$refs.paged.model.condition
213
+ }
214
+ }
215
+ },
216
+ }
217
+ </script>
@@ -0,0 +1,52 @@
1
+ <template>
2
+ <div id="unit" class="flex-row" :class="{'binary':showItem}">
3
+ <div :class="{'basic-main':!showItem,'binary-left':showItem}" >
4
+ <select-check-plan-new @select-changed="selected" :style="style" :style2="style2" v-ref:check></select-check-plan-new>
5
+ </div>
6
+ <div class="binary-right" v-show="showItem">
7
+ <div class="flex">
8
+ <check-detail v-if='$refs.check && $refs.check.selected' :check='$refs.check.selected' :checkstart="$refs.check.f_start_time" :checkend="$refs.check.f_end_time"
9
+ v-ref:detail></check-detail>
10
+ </div>
11
+ </div>
12
+ </div>
13
+ </template>
14
+ <script>
15
+ import SelectCheckPlanNew from '../pc/SelectCheckPlan.vue'
16
+ import CheckDetail from '../pc/CheckDetail.vue'
17
+ export default {
18
+ title: '安检员考核',
19
+ props: ['f'],
20
+ components: {SelectCheckPlanNew, CheckDetail},
21
+ data() {
22
+ return {
23
+ showItem: false,
24
+ checkstatus: null,
25
+ style:'col-sm-2 form-group',
26
+ style2:'col-sm-4 form-group'
27
+ }
28
+ },
29
+ methods: {
30
+ selected(row) {
31
+ this.showItem = true
32
+ },
33
+ checkstatusChange(val){
34
+ this.checkstatus = val
35
+ }
36
+ }
37
+ }
38
+ </script>
39
+ <style>
40
+ .form-input-group label {
41
+ text-align: right;
42
+ width: auto;
43
+ }
44
+
45
+ .datapanel {
46
+ color: #333;
47
+ background-color: white;
48
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
49
+ padding: 5px 7px 5px 7px;
50
+ border-radius: 10px;
51
+ }
52
+ </style>