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
@@ -0,0 +1,11 @@
1
+ // 分公司特殊组件页面注册
2
+ import Vue from "vue";
3
+
4
+ // 手机特殊目录注册到该文件中
5
+ let specialComp = {
6
+ 'safecheck-userinfo': (resolve) => { require(['./android/SafecheckUserInfo'], resolve) },
7
+ 'safecheck-order-v': (resolve) => { require(['./android/SafecheckOrderV'], resolve) },
8
+ }
9
+
10
+ exports.specialComp = specialComp
11
+
@@ -267,7 +267,7 @@
267
267
  "气量异常差值": {"index": 11, "type": "number", "readonly": true},
268
268
  "金额异常差值": {"index": 11, "type": "number", "readonly": true},
269
269
  "表箱号": {"index": 12, "type": "string", "readonly": true},
270
- "燃气表照片": {"index": 13, "type": "picture", "checkmust": false},
270
+ "燃气表照片": {"index": 13, "type": "picture", "checkmust": true},
271
271
  }
272
272
  // 注意,配置项的index必须与上面的固定配置保持'顺序'
273
273
  },
@@ -216,7 +216,7 @@
216
216
  :show-rest-button="reset"
217
217
  :value.sync="model.f_start_time"
218
218
  v-model="model.f_start_time"
219
- condition="ui.f_last_check_date >='{} 00:00:00'">
219
+ >
220
220
  </datepicker>
221
221
  </div>
222
222
  <div class="form-group col-sm-4" >
@@ -229,7 +229,7 @@
229
229
  :show-rest-button="reset"
230
230
  :value.sync="model.f_end_time"
231
231
  v-model="model.f_end_time"
232
- condition="ui.f_last_check_date <='{} 23:59:59'">
232
+ >
233
233
  </datepicker>
234
234
  </div>
235
235
  <div class="form-group col-sm-4" >
@@ -457,10 +457,10 @@
457
457
  this.checkAll=false
458
458
  let condition2 = '1=1'
459
459
  if(args.model.f_start_time){
460
- condition2+=` and f_upload_date > '${args.model.f_start_time} 00:00:00'`
460
+ condition2+=` and f_offsite_time > '${args.model.f_start_time} 00:00:00'`
461
461
  }
462
462
  if(args.model.f_end_time){
463
- condition2+=` and f_upload_date < '${args.model.f_end_time} 23:59:59'`
463
+ condition2+=` and f_offsite_time < '${args.model.f_end_time} 23:59:59'`
464
464
  }
465
465
  const state = args.model.f_last_check_state
466
466
  if(state){
@@ -0,0 +1,450 @@
1
+ <template>
2
+ <div class="auto">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
5
+ <div partial>
6
+ <form>
7
+ <div class="row app-row">
8
+ <div class="col-xs-4">
9
+ <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
10
+ <label class="font text-left">用户编号:</label>
11
+ </div>
12
+ <div class="col-xs-8" >
13
+ <input class="search_input input-font"
14
+ v-model=model.f_userinfo_code condition="f_userinfo_code = '{}'" placeholder="请输入用户编号" />
15
+ </div>
16
+ </div>
17
+ <div class="row app-row">
18
+ <div class="col-xs-4">
19
+ <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
20
+ <label class="font text-left">表 &nbsp;&nbsp; &nbsp;&nbsp; 号:</label>
21
+ </div>
22
+ <div class="col-xs-8" >
23
+ <input class="search_input input-font"
24
+ v-model=model.f_meternumber condition="f_meternumber = '{}'" style="width: 70%" placeholder="请输入表号" />
25
+ <button type="button" name="button" class="btn btn-primary" style="width: 25%" @click="$parent.$parent.scan">扫码</button>
26
+ </div>
27
+ </div>
28
+ <div class="row app-row">
29
+ <div class="col-xs-4">
30
+ <img src="../../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
31
+ <label class="font text-left">用户名称:</label>
32
+ </div>
33
+ <div class="col-xs-8" >
34
+ <input class="search_input input-font" v-model="model.f_username" placeholder="请输入用户名称(可模糊查询)">
35
+ </div>
36
+ </div>
37
+ <div class="row app-row">
38
+ <div class="col-xs-4">
39
+ <img src="../../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
40
+ <label class="font text-left">用户类型:</label>
41
+ </div>
42
+ <div class="col-xs-8" >
43
+ <v-select :value.sync="$parent.$parent.model.f_user_type" class="input-font"
44
+ :options='$parent.$parent.user_types' placeholder='请选择用户类型' :value-single="true"
45
+ v-model="$parent.$parent.model.f_user_type" close-on-select clear-button></v-select>
46
+ </div>
47
+ </div>
48
+ <div class="row app-row">
49
+ <div class="col-xs-4">
50
+ <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
51
+ <label class="font text-left">小区名称:</label>
52
+ </div>
53
+ <div class="col-xs-8" >
54
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_districtname" placeholder="请输入用户小区(可模糊查询)">
55
+ </div>
56
+ </div>
57
+ <div class="row app-row">
58
+ <div class="col-xs-4">
59
+ <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
60
+ <label class="font text-left">楼&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号:</label>
61
+ </div>
62
+ <div class="col-xs-8" >
63
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_building" placeholder="请输入用户楼号">
64
+ </div>
65
+ </div>
66
+ <div class="row app-row">
67
+ <div class="col-xs-4">
68
+ <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
69
+ <label class="font text-left">单&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;元:</label>
70
+ </div>
71
+ <div class="col-xs-8" >
72
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_unit" placeholder="请输入用户单元">
73
+ </div>
74
+ </div>
75
+ <div class="row app-row">
76
+ <div class="col-xs-4">
77
+ <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
78
+ <label class="font text-left">用户地址:</label>
79
+ </div>
80
+ <div class="col-xs-8" >
81
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_address" placeholder="请输入用户地址(可模糊查询)">
82
+ </div>
83
+ </div>
84
+ <div class="row app-row">
85
+ <div class="col-xs-4">
86
+ <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
87
+ <label class="font text-left">表&nbsp;&nbsp;封&nbsp;&nbsp;号:</label>
88
+ </div>
89
+ <div class="col-xs-8" >
90
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_metertitles" placeholder="请输入表封号" condition="uf.f_metertitles='{}'">
91
+ </div>
92
+ </div>
93
+ <div class="row app-row">
94
+ <div class="col-xs-4">
95
+ <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
96
+ <label class="font text-left">电&nbsp;&nbsp;话&nbsp;&nbsp;号:</label>
97
+ </div>
98
+ <div class="col-xs-8" >
99
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_user_phone" placeholder="请输入电话号" condition="ui.f_user_phone like '%{}%'">
100
+ </div>
101
+ </div>
102
+ <div class="row app-row">
103
+ <div class="col-xs-4">
104
+ <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
105
+ <label class="font text-left">卡&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号:</label>
106
+ </div>
107
+ <div class="col-xs-8" >
108
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_card_id" placeholder="请输入卡号" condition="uf.f_card_id like '%{}%'">
109
+ </div>
110
+ </div>
111
+ <div class="row app-row">
112
+ <div class="col-xs-4">
113
+ <img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
114
+ <label class="font text-left">抄&nbsp;&nbsp;表&nbsp;&nbsp;册:</label>
115
+ </div>
116
+ <div class="col-xs-8" >
117
+ <v-select class="input-font"
118
+ placeholder='请选择抄表册'
119
+ :value.sync="model.f_meter_book_num"
120
+ v-model="model.f_meter_book_num"
121
+ :options='$parent.$parent.cbc'
122
+ condition="uf.f_meter_book_num='{}'"
123
+ close-on-select clear-button></v-select>
124
+ </div>
125
+ </div>
126
+ <div class="row text-center" style="margin-top: 20px;">
127
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="search">查询</button>
128
+ </div>
129
+ <div style="height:30px;"></div>
130
+ </form>
131
+ </div>
132
+ </criteria>
133
+
134
+ <list :model="model" partial='list'>
135
+ <div partial>
136
+ <div @click="$parent.$parent.$parent.inspectRepair(row)" class="auto app-text" style="margin-top: 5px;">
137
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
138
+ <div class="panel-body panel-self">
139
+ <div class="row">
140
+ <p class="panel-title col-xs-4 text-left font">用户编号</p>
141
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_userinfo_code }}</p>
142
+ </div>
143
+ <div class="row">
144
+ <p class="panel-title col-xs-4 text-left font">用户名称</p>
145
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_name }}</p>
146
+ </div>
147
+ <div class="row">
148
+ <p class="panel-title col-xs-4 text-left font">表号</p>
149
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_meternumber }}</p>
150
+ </div>
151
+ <div class="row">
152
+ <p class="panel-title col-xs-4 text-left font">用户类型</p>
153
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_type }}</p>
154
+ </div>
155
+ <div class="row">
156
+ <p class="panel-title col-xs-4 text-left font">用户电话</p>
157
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_phone2 ? row.f_user_phone2 : row.f_user_phone }}</p>
158
+ </div>
159
+
160
+ <div class="row">
161
+ <p class="panel-title col-xs-4 text-left font">小区名称</p>
162
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_residential_area }}</p>
163
+ </div>
164
+ <div class="row">
165
+ <p class="panel-title col-xs-4 text-left font">用户地址</p>
166
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_address }}</p>
167
+ </div>
168
+ <div class="row">
169
+ <p class="panel-title col-xs-4 text-left font">最后安检日期</p>
170
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_date }}</p>
171
+ </div>
172
+ <div class="row">
173
+ <p class="panel-title col-xs-4 text-left font">最后安检状态</p>
174
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_state }}</p>
175
+ </div>
176
+ </div>
177
+ </div>
178
+
179
+ </div>
180
+ </div>
181
+ </list>
182
+ </criteria-paged>
183
+ <!--<back-page :need-back='true' @flag="$back()"></back-page>-->
184
+ </div>
185
+ </template>
186
+
187
+ <script>
188
+ import {HttpResetClass, PagedList} from 'vue-client'
189
+ import Vue from 'vue'
190
+ import * as Util from '../../Util'
191
+
192
+ export default {
193
+ title: '安检员B',
194
+ data () {
195
+ let model = new PagedList(`${this.$androidUtil.getProxyUrl()}/rs/sql/提取用户档案`, 20, { groupitem: '""', orderitem: '"f_residential_area,CAST(build as int),f_unit,CAST(floor1 as int),f_room"',f_check_type:'this.f_check_type[0]',
196
+ f_user_name:'this.model.f_username',myCycle: 'this.myCycle',fyCycle: 'this.fyCycle', f_user_type:'this.f_user_type',f_sign: 'this.f_sign[0]', f_residential_area:'this.model.f_districtname', f_address:'this.model.f_address',f_user_state: 'this.f_user_state[0]',f_orgids:'this.f_orgids',f_unit:'this.model.f_unit',f_building:'this.model.f_building',f_filialeid:'this.f_filialeid'})
197
+ model.f_sign = ['']
198
+ model.f_user_type = ''
199
+ model.f_user_state =['']
200
+ model.f_check_type =['']
201
+ model.myCycle = 0
202
+ model.fyCycle = 0
203
+ model.f_filialeid = Vue.user.orgid
204
+ //model.f_filialeid = 287
205
+ return {
206
+ model: model,
207
+ cbc:[],
208
+ showModal:false,
209
+ signs: [
210
+ {label:'请选择录入状态', value:''},
211
+ {label:'录入', value:'1'},
212
+ {label:'非录入', value:'0'},
213
+ ],
214
+ ischecks: [
215
+ ],
216
+ user_types: [
217
+ {label: '请选择用户类型', value: ''},
218
+ {label: '民用', value: '民用'},
219
+ {label: '非民用', value: '非民用'},
220
+ ],
221
+ f_user_states: [
222
+ {label:'请选择档案状态', value:''},
223
+ {label:'正常', value:'正常'},
224
+ {label:'点火', value:'点火'},
225
+ ],
226
+ f_check_types: [
227
+ {label:'请选择安检类型', value:''},
228
+ {label:'应检', value:'应检'},
229
+ {label:'超期', value:'超期'},
230
+ ],
231
+ }
232
+ },
233
+ ready () {
234
+ // this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/getSafeCheckCycle`,{},{resolveMsg: null, rejectMsg: null}).then((res) => {
235
+ // //tag)
236
+ // if(res.data.code == 200){
237
+ // this.model.myCycle = res.data.civil.value
238
+ // this.model.fyCycle = res.data.civilian.value
239
+ // }else{
240
+ // //this.$showMessage(res.data.msg)
241
+ // }
242
+ //
243
+ // })
244
+ // this.getCheckTime()
245
+ // this.Mreadibook()
246
+ },
247
+ computed: {
248
+ reload(){
249
+ this.$refs.paged.loadPage(this.$refs.paged.model.pageIndex)
250
+ },
251
+ selected () {
252
+ return this.$refs.paged.$refs.grid.selected
253
+ }
254
+ },
255
+ methods:{
256
+ search(args){
257
+ args.condition += ` and f_handler_state is null`
258
+ this.model.search(args.condition, args.model, args.condValue)
259
+ },
260
+ inspectRepair(row){
261
+ var _this = this
262
+ let http = new HttpResetClass()
263
+ http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/sql/AndroidDealWith`, {data: {condition: `tcp.f_userinfo_code = '${row.f_userinfo_code}'`,f_filialeids:Vue.user.orgid}},
264
+ {resolveMsg: null, rejectMsg: null}).then(resp=>{
265
+ if (resp.data.length>0){
266
+ this.$showMessage('该用户有隐患未处理,是否先处理隐患?', ['cancel', 'confirm']).then(
267
+ (response) => {
268
+ if (response === 'confirm') {
269
+ var pardate = {
270
+ _this:_this,
271
+ title:'隐患处理',
272
+ safe:true
273
+ }
274
+ _this.$dispatch('gotoson',pardate)
275
+ _this.$goto('android-defect-deal-before-safe', {row: row}, 'self', function () {
276
+ _this.inspect(row)
277
+ })
278
+ }else {
279
+ this.inspect(row)
280
+ }
281
+ }
282
+ )
283
+ }else {
284
+ this.inspect(row)
285
+ }
286
+ }).catch(()=>{
287
+ this.inspect(row)
288
+ })
289
+ },
290
+ scan(){
291
+ HostApp.__this__=this,
292
+ HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
293
+ },
294
+ getCode(){
295
+ let datapa = HostApp.getCode().data;
296
+ let indexnum = datapa.indexOf("]C1")
297
+ if(indexnum != -1){
298
+ datapa = datapa.substring(indexnum+3,datapa.length)
299
+ }
300
+ this.$refs.paged.$refs.cri.model.f_meternumber=datapa
301
+ },
302
+ getCheckTime(){
303
+ //tag
304
+ new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`,{data: {
305
+ items: 'f_circle,f_start_time',
306
+ tablename: 't_safe_circle',
307
+ condition: `f_filialeid = '${Vue.user.orgid}'`,
308
+ orderitem: 'id'
309
+ }}).then(res=>{
310
+ //tag)
311
+ let nocheck=''
312
+ let ischeck=''
313
+ if (res.data[0]){
314
+ if (res.data[0].f_circle=='1'){
315
+ nocheck=`(ua.f_last_check_date<'${res.data[0].f_start_time}' or ua.f_last_check_date is null)`
316
+ ischeck=`ua.f_last_check_date>'${res.data[0].f_start_time}'`
317
+
318
+ }else{
319
+ let addtime= (Util.toStandardTimeString().substring(0,4)-res.data[0].f_start_time.substring(0,4))%res.data[0].f_circle
320
+ //tag
321
+ let time =(Util.toStandardTimeString().substring(0,4)-addtime)+'-01-01 00:00:00'
322
+ //tag
323
+ nocheck=`(ua.f_last_check_date<'${time}' or ua.f_last_check_date is null)`
324
+ ischeck=`ua.f_last_check_date>'${time}'`
325
+ }
326
+ //tag
327
+ this.ischecks=[
328
+ {label: '全部', value: ''},
329
+ {label: '已检', value: ischeck },
330
+ {label: '未检', value: nocheck},
331
+ ]
332
+ //tag
333
+ }else{
334
+ this.$showMessage("未配置安检周期")
335
+ }
336
+
337
+ })
338
+ //tag
339
+ },
340
+ inspect (info){
341
+ if(info.f_last_check_date){
342
+ this.$showMessage("该用户最后一次安检时间为 "+info.f_last_check_date+" 是否继续对该用户进行安检",['confirm', 'cancel']).then((butt)=>{
343
+ if(butt=="confirm"){
344
+ info.id = ''
345
+ info.f_state = '未检'
346
+ info.f_no_checkplan = '无计划安检'
347
+ //tag
348
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`,{data:{f_userid:info.f_userinfo_id}}).then((response)=>{
349
+ //tag)
350
+ info['f_plan_meters'] = response.data
351
+ var pardate = {
352
+ _this:this,
353
+ tittle:'安检详情',
354
+ safe:true
355
+ }
356
+ this.$dispatch('gotoson',pardate)
357
+ this.$goto('safecheck-order-v', {item: info, role: 'inspect',parentPage:'AddPlanItem'}, 'self', this.reload)
358
+
359
+ })
360
+ }
361
+ })
362
+ }else{
363
+ info.id = ''
364
+ info.f_state = '未检'
365
+ info.f_no_checkplan = '无计划安检'
366
+ //tag
367
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`,{data:{f_userid:info.f_userinfo_id}}).then((response)=>{
368
+ //tag)
369
+ info['f_plan_meters'] = response.data
370
+ var pardate = {
371
+ _this:this,
372
+ tittle:'安检详情',
373
+ safe:true
374
+ }
375
+ this.$dispatch('gotoson',pardate)
376
+ this.$goto('safecheck-order-v', {item: info, role: 'inspect',parentPage:'AddPlanItem'}, 'self', this.reload)
377
+
378
+ })
379
+ }
380
+ },
381
+ Mreadibook(){
382
+ this.cbc=[]
383
+ let http = new HttpResetClass()
384
+ http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/logic/getMeterBooksData`,
385
+ {data: {f_orgid: "('"+Vue.user.orgid+"')"}},
386
+ {resolveMsg: null, rejectMsg: '获取失败!!!'}).then((getMeterReadingBooks)=>{
387
+ this.cbc = [{label: '全部', value: ''}]
388
+ //tag
389
+ //tag)
390
+ //tag
391
+ getMeterReadingBooks.data.meterbooks.forEach((res) => {
392
+ this.cbc.push({label: res.f_book_name, value: res.id})
393
+ /*if(res.f_book_slice_area){
394
+ if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
395
+ this.sliceArea.push(res.f_book_slice_area)
396
+ }
397
+ }*/
398
+ })
399
+ })
400
+
401
+
402
+ }
403
+ }
404
+ }
405
+ </script>
406
+ <style scoped>
407
+ .app-row {
408
+ background-color: white;
409
+ padding: 10px 10px 0 10px;
410
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
411
+ }
412
+ .search_input {
413
+ border: 0;
414
+ outline: none;
415
+ }
416
+ .font{
417
+ font: 15px PingFang-SC-Medium;
418
+ color: #666666;
419
+ }
420
+ .input-font{
421
+ font: 15px PingFang-SC-Medium;
422
+ color: #333333;
423
+ }
424
+ .btn-font{
425
+ font:600 16px PingFang-SC-Bold;
426
+ color: #499EDF;
427
+ }
428
+ .btn-color{
429
+ background-color: #FFFFFF;
430
+ border-radius: 10px ;
431
+ border: 1px solid #499EDF;
432
+ }
433
+ .app-text {
434
+ font-size: 12px;
435
+ }
436
+ .panel-self{
437
+ border-radius: 10px;
438
+ border:1px solid #499EDF;
439
+ background-color: #F8F8F8;
440
+ }
441
+ .yybtn-color{
442
+ border-radius: 4px ;
443
+ border: 1px solid #499EDF;
444
+ }
445
+ .qxbtn-color{
446
+ background-color: #FFFFFF;
447
+ border-radius: 4px ;
448
+ border: 1px solid #499EDF;
449
+ }
450
+ </style>