safecheck-client 3.0.39-8 → 3.0.39-81

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 (110) hide show
  1. package/package.json +5 -5
  2. package/src/App.vue +31 -26
  3. package/src/assets//345/256/232/344/275/215.png +0 -0
  4. package/src/components/Util/ImgSelfSafePlus.vue +2 -2
  5. package/src/components/android/AndroidDefectDeal.vue +2 -2
  6. package/src/components/android/NewCheckpaperAndroid.vue +2 -2
  7. package/src/components/android/PhoneUpUserinfo.vue +11 -0
  8. package/src/components/android/rejectInspecCheck.vue +322 -0
  9. package/src/components/pc/AddPlanItemYyChange.vue +5 -1
  10. package/src/components/pc/NewCheckpaper.vue +108 -14
  11. package/src/components/pc/NewCheckpaperTemp.vue +1308 -1295
  12. package/src/components/pc/PaperDefectMain.vue +1 -1
  13. package/src/components/pc/RoleSelector.vue +172 -172
  14. package/src/components/pc/SafeCheckOrder/SafeCheckOrderList.vue +34 -0
  15. package/src/components/rongcheng/AddPlanItem.vue +344 -344
  16. package/src/components/rongcheng/CheckCurrentCreate.vue +1081 -1081
  17. package/src/components/rongcheng/PaperDefectMain.vue +828 -828
  18. package/src/components/rongcheng/PaperStatem.vue +6 -6
  19. package/src/components/rongcheng/PhoneUpUserinfo.vue +1 -0
  20. package/src/filiale/BFshiye/android/AndroidDefectDeal.vue +652 -0
  21. package/src/filiale/BFshiye/android/PhoneUpUserinfo.vue +3 -1
  22. package/src/filiale/BFshiye/android/SafecheckUserInfo.vue +2 -2
  23. package/src/filiale/BFshiye/pc/DefectListNew.vue +637 -0
  24. package/src/filiale/BFshiye/pc/NewCheckpaper.vue +18 -56
  25. package/src/filiale/BFshiye/pc/checkUserList.vue +772 -772
  26. package/src/filiale/BFshiye/pc.js +17 -16
  27. package/src/filiale/baiyin/android/SafecheckUserInfo.vue +775 -0
  28. package/src/filiale/baiyin/android.js +12 -11
  29. package/src/filiale/bayan/pc/NewCheckpaper.vue +2 -2
  30. package/src/filiale/bayan/pc/SelectAreaReport.vue +1 -0
  31. package/src/filiale/bayan/pc/SummaryOfSecurityInspectionProgress.vue +7 -7
  32. package/src/filiale/dexin/android/SafecheckDevicesTemp.vue +1419 -1360
  33. package/src/filiale/dexin/android/SafecheckOrderV.vue +1 -1
  34. package/src/filiale/dexin/android/SafecheckOrderVTemp.vue +4 -1
  35. package/src/filiale/dexin/pc/PaperList.vue +840 -840
  36. package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +2 -2
  37. package/src/filiale/hanzhong/pc/CheckNumberStatistics.vue +1 -1
  38. package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +6 -1
  39. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +1 -1
  40. package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +1 -1
  41. package/src/filiale/huatong/android/SafecheckOrderV.vue +2 -2
  42. package/src/filiale/jiaocheng/android/AddPlanItem.vue +20 -0
  43. package/src/filiale/jiaocheng/android/CurrentCreate.vue +1083 -0
  44. package/src/filiale/jiaocheng/android.js +1 -0
  45. package/src/filiale/jiaocheng/pc/CheckSearchUser.vue +18 -1
  46. package/src/filiale/jiaocheng/pc/NewCheckpaper.vue +64 -4
  47. package/src/filiale/jiaocheng/pc/PaperList.vue +803 -0
  48. package/src/filiale/jiaocheng/pc.js +1 -0
  49. package/src/filiale/jinhuang/android/AddPlanItem.vue +430 -0
  50. package/src/filiale/jinhuang/android/PhoneUpUserinfo.vue +183 -145
  51. package/src/filiale/jinhuang/android.js +2 -1
  52. package/src/filiale/kelai/android/PaperFeedback.vue +1553 -1550
  53. package/src/filiale/kelai/android/PhoneUpUserinfo.vue +1 -1
  54. package/src/filiale/kelai/android/SafecheckOrderV.vue +1 -1
  55. package/src/filiale/kelai/android/SafecheckUserInfo.vue +1 -1
  56. package/src/filiale/kelai/pc/PaperList.vue +13 -0
  57. package/src/filiale/kelai/pc/UserInfoAudit.vue +126 -90
  58. package/src/filiale/liaoyuan/pc/DefectPaperWeiXiu.vue +4 -6
  59. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +7 -7
  60. package/src/filiale/liaoyuan/pc/checkPlanList.vue +2 -3
  61. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +1357 -1270
  62. package/src/filiale/qingjian/android/SafecheckDevices.vue +1 -1
  63. package/src/filiale/qingjian/android/SafecheckOrderV.vue +3 -0
  64. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +823 -800
  65. package/src/filiale/qingjian/pc/NewCheckpaper.vue +1919 -1919
  66. package/src/filiale/rongchuang/android/AddPlanItemVisitingWithoutMeeting.vue +454 -0
  67. package/src/filiale/rongchuang/android/AddPlanItemYy.vue +498 -0
  68. package/src/filiale/rongchuang/android/PhoneUpUserinfo.vue +1262 -0
  69. package/src/filiale/rongchuang/android/SafecheckDevices.vue +1 -1
  70. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +3 -2
  71. package/src/filiale/rongchuang/android.js +3 -0
  72. package/src/filiale/rongchuang/pc/NewCheckpaper.vue +13 -1
  73. package/src/filiale/rongchuang/pc/checkPlanList.vue +398 -0
  74. package/src/filiale/rongchuang/pc.js +18 -17
  75. package/src/filiale/shanxian/pc/NewCheckpaper.vue +4 -4
  76. package/src/filiale/siyang/android/PhoneInsurancePurchaseDetail.vue +532 -498
  77. package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +888 -889
  78. package/src/filiale/tongchuan/android/SafecheckDevices.vue +909 -885
  79. package/src/filiale/tongchuan/pc/AMapTrailShowZk.vue +226 -0
  80. package/src/filiale/tongchuan/pc/CheckPlanCountChartAreaByWangGeYuan.vue +137 -0
  81. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +47 -1
  82. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +46 -0
  83. package/src/filiale/tongchuan/pc/NoCheckplanSafecheck.vue +34 -0
  84. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +34 -0
  85. package/src/filiale/tongchuan/pc/PaperList.vue +44 -10
  86. package/src/filiale/tongchuan/pc/PersonTrack.vue +269 -0
  87. package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +42 -2
  88. package/src/filiale/tongchuan/pc.js +3 -0
  89. package/src/filiale/wensu/android/SafecheckOrderV.vue +2444 -2444
  90. package/src/filiale/wensu/android/SafecheckUserInfo.vue +712 -712
  91. package/src/filiale/wensu/pc/CheckSearchUser.vue +1251 -1251
  92. package/src/filiale/wenxi/pc/PaperList.vue +9 -3
  93. package/src/filiale/wuan/android/SafecheckOrderV.vue +2242 -2242
  94. package/src/filiale/wuan/android/SafecheckUserInfo.vue +659 -659
  95. package/src/filiale/yangchunboneng/android/AndiroidSecurityAudit.vue +2 -1
  96. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1191 -1191
  97. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +913 -913
  98. package/src/filiale/yangchunboneng/android.js +21 -21
  99. package/src/filiale/yangchunboneng/pc/CheckBookList.vue +353 -353
  100. package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +3 -3
  101. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1197 -1197
  102. package/src/filiale/yangchunboneng/pc/HiddenSituation.vue +171 -171
  103. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +1112 -1112
  104. package/src/filiale/yangchunboneng/pc/PaperList.vue +757 -757
  105. package/src/filiale/yangchunboneng/pc/SelectCheckPlan.vue +331 -331
  106. package/src/filiale/yangchunboneng/pc.js +29 -29
  107. package/src/main.js +33 -33
  108. package/src/rongcheng.js +319 -319
  109. package/src/safecheck-android.js +316 -315
  110. package/yarn-error.log +0 -140
@@ -5,6 +5,7 @@ import Vue from "vue";
5
5
  let specialComp = {
6
6
  'safe-defect-list-new': (resolve) => { require(['./pc/DefectListNew'], resolve) },
7
7
  'check-search-user': (resolve) => { require(['./pc/CheckSearchUser'], resolve) },
8
+ 'paper-main': (resolve) => { require(['./pc/PaperList.vue'], resolve) },
8
9
  'new-check-paper': (resolve) => { require(['./pc/NewCheckpaper'], resolve) },
9
10
  }
10
11
  exports.specialComp = specialComp
@@ -0,0 +1,430 @@
1
+ <template>
2
+ <div class="auto">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='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">最后安检状态:</label>
106
+ </div>
107
+ <div class="col-xs-8" >
108
+ <v-select :value.sync="model.f_last_check_state" class="input-font"
109
+ :options='$parent.$parent.last_check_state' placeholder='最后安检状态' :value-single="true"
110
+ v-model="model.f_last_check_state" close-on-select clear-button condition="ui.f_last_check_state = '{}'"></v-select>
111
+ </div>
112
+ </div>
113
+ <div class="row text-center" style="margin-top: 20px;">
114
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="search">查询</button>
115
+ </div>
116
+ <div style="height:30px;"></div>
117
+ </form>
118
+ </div>
119
+ </criteria>
120
+
121
+ <list :model="model" partial='list'>
122
+ <div partial>
123
+ <div @click="$parent.$parent.$parent.inspect(row)" class="auto app-text" style="margin-top: 5px;">
124
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
125
+ <div class="panel-body panel-self">
126
+ <div class="row">
127
+ <p class="panel-title col-xs-4 text-left font">用户编号</p>
128
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_userinfo_code }}</p>
129
+ </div>
130
+ <div class="row">
131
+ <p class="panel-title col-xs-4 text-left font">用户名称</p>
132
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_name }}</p>
133
+ </div>
134
+ <div class="row">
135
+ <p class="panel-title col-xs-4 text-left font">表号</p>
136
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_meternumber }}</p>
137
+ </div>
138
+ <div class="row">
139
+ <p class="panel-title col-xs-4 text-left font">用户类型</p>
140
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_type }}</p>
141
+ </div>
142
+ <div class="row">
143
+ <p class="panel-title col-xs-4 text-left font">用户电话</p>
144
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_phone2 ? row.f_user_phone2 : row.f_user_phone }}</p>
145
+ </div>
146
+
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_residential_area }}</p>
150
+ </div>
151
+ <div class="row">
152
+ <p class="panel-title col-xs-4 text-left font">表&nbsp;&nbsp;箱&nbsp;&nbsp;号</p>
153
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_box_number }}</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_address }}</p>
158
+ </div>
159
+ <div class="row">
160
+ <p class="panel-title col-xs-4 text-left font">最后安检日期</p>
161
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_date }}</p>
162
+ </div>
163
+ <div class="row">
164
+ <p class="panel-title col-xs-4 text-left font">最后安检状态</p>
165
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_state }}</p>
166
+ </div>
167
+ </div>
168
+ </div>
169
+
170
+ </div>
171
+ </div>
172
+ </list>
173
+ </criteria-paged>
174
+ <!--<back-page :need-back='true' @flag="$back()"></back-page>-->
175
+ </div>
176
+ </template>
177
+
178
+ <script>
179
+ import {HttpResetClass, PagedList} from 'vue-client'
180
+ import Vue from 'vue'
181
+ import * as Util from '../../Util'
182
+
183
+ export default {
184
+ title: '安检员B',
185
+ data () {
186
+ 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]',
187
+ 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'})
188
+ model.f_sign = ['']
189
+ model.f_user_type = ''
190
+ model.f_user_state =['']
191
+ model.f_check_type =['']
192
+ model.myCycle = 0
193
+ model.fyCycle = 0
194
+ model.f_filialeid = Vue.user.orgid
195
+ //model.f_filialeid = 287
196
+ return {
197
+ model: model,
198
+ cbc:[],
199
+ showModal:false,
200
+ signs: [
201
+ {label:'请选择录入状态', value:''},
202
+ {label:'录入', value:'1'},
203
+ {label:'非录入', value:'0'},
204
+ ],
205
+ ischecks: [
206
+ ],
207
+ safecheckType:this.$appdata.getSingleValue('安检单类型') || '入户安检',
208
+ user_types: [
209
+ {label: '请选择用户类型', value: ''},
210
+ {label: '民用', value: '民用'},
211
+ {label: '非民用', value: '非民用'},
212
+ ],
213
+ f_user_states: [
214
+ {label:'请选择档案状态', value:''},
215
+ {label:'正常', value:'正常'},
216
+ {label:'点火', value:'点火'},
217
+ ],
218
+ f_check_types: [
219
+ {label:'请选择安检类型', value:''},
220
+ {label:'应检', value:'应检'},
221
+ {label:'超期', value:'超期'},
222
+ ],
223
+ last_check_state:[
224
+ {label: '请选择安检状态', value: ''},
225
+ {label: '入户', value: '入户'},
226
+ {label: '到访不遇', value: '到访不遇'},
227
+ {label: '拒检', value: '拒检'}
228
+ ]
229
+ }
230
+ },
231
+ ready () {
232
+ // this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/getSafeCheckCycle`,{},{resolveMsg: null, rejectMsg: null}).then((res) => {
233
+ // //tag)
234
+ // if(res.data.code == 200){
235
+ // this.model.myCycle = res.data.civil.value
236
+ // this.model.fyCycle = res.data.civilian.value
237
+ // }else{
238
+ // //this.$showMessage(res.data.msg)
239
+ // }
240
+ //
241
+ // })
242
+ // this.getCheckTime()
243
+ // this.Mreadibook()
244
+ },
245
+ computed: {
246
+ reload(){
247
+ this.$refs.paged.loadPage(this.$refs.paged.model.pageIndex)
248
+ },
249
+ selected () {
250
+ return this.$refs.paged.$refs.grid.selected
251
+ }
252
+ },
253
+ methods:{
254
+ scan(){
255
+ HostApp.__this__=this,
256
+ HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
257
+ },
258
+ getCode(){
259
+ let datapa = HostApp.getCode().data;
260
+ let indexnum = datapa.indexOf("]C1")
261
+ if(indexnum != -1){
262
+ datapa = datapa.substring(indexnum+3,datapa.length)
263
+ }
264
+ if (datapa.startsWith('WL')){
265
+ datapa = datapa.substring(2)
266
+ }
267
+ this.$refs.paged.$refs.cri.model.f_meternumber=datapa
268
+ },
269
+ getCheckTime(){
270
+ //tag
271
+ new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`,{data: {
272
+ items: 'f_circle,f_start_time',
273
+ tablename: 't_safe_circle',
274
+ condition: `f_filialeid = '${Vue.user.orgid}'`,
275
+ orderitem: 'id'
276
+ }}).then(res=>{
277
+ //tag)
278
+ let nocheck=''
279
+ let ischeck=''
280
+ if (res.data[0]){
281
+ if (res.data[0].f_circle=='1'){
282
+ nocheck=`(ua.f_last_check_date<'${res.data[0].f_start_time}' or ua.f_last_check_date is null)`
283
+ ischeck=`ua.f_last_check_date>'${res.data[0].f_start_time}'`
284
+
285
+ }else{
286
+ let addtime= (Util.toStandardTimeString().substring(0,4)-res.data[0].f_start_time.substring(0,4))%res.data[0].f_circle
287
+ //tag
288
+ let time =(Util.toStandardTimeString().substring(0,4)-addtime)+'-01-01 00:00:00'
289
+ //tag
290
+ nocheck=`(ua.f_last_check_date<'${time}' or ua.f_last_check_date is null)`
291
+ ischeck=`ua.f_last_check_date>'${time}'`
292
+ }
293
+ //tag
294
+ this.ischecks=[
295
+ {label: '全部', value: ''},
296
+ {label: '已检', value: ischeck },
297
+ {label: '未检', value: nocheck},
298
+ ]
299
+ //tag
300
+ }else{
301
+ this.$showMessage("未配置安检周期")
302
+ }
303
+
304
+ })
305
+ //tag
306
+ },
307
+ safe(info){
308
+ if(info.f_last_check_date){
309
+ this.$showMessage("该用户最后一次安检时间为 "+info.f_last_check_date+" 是否继续对该用户进行安检",['confirm', 'cancel']).then((butt)=>{
310
+ if(butt=="confirm"){
311
+ info.id = ''
312
+ info.f_state = '未检'
313
+ info.f_no_checkplan = '无计划安检'
314
+ //tag
315
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`,{data:{f_userid:info.f_userinfo_id}}).then((response)=>{
316
+ //tag)
317
+ info['f_plan_meters'] = response.data
318
+ var pardate = {
319
+ _this:this,
320
+ tittle:'安检详情',
321
+ safe:true
322
+ }
323
+ this.$dispatch('gotoson',pardate)
324
+ this.$goto('safecheck-order-v', {item: info, role: 'inspect',parentPage:'AddPlanItem'}, 'self', this.reload)
325
+
326
+ })
327
+ }
328
+ })
329
+ }else{
330
+ info.id = ''
331
+ info.f_state = '未检'
332
+ info.f_no_checkplan = '无计划安检'
333
+ //tag
334
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`,{data:{f_userid:info.f_userinfo_id}}).then((response)=>{
335
+ //tag)
336
+ info['f_plan_meters'] = response.data
337
+ var pardate = {
338
+ _this:this,
339
+ tittle:'安检详情',
340
+ safe:true
341
+ }
342
+ this.$dispatch('gotoson',pardate)
343
+ this.$goto('safecheck-order-v', {item: info, role: 'inspect',parentPage:'AddPlanItem'}, 'self', this.reload)
344
+ })
345
+ }
346
+ },
347
+ inspect (info){
348
+ if (this.safecheckType != '入户安检'){
349
+ this.$showMessage(`当前安检单类型为${this.safecheckType},是否需要调整为入户安检单`,['confirm', 'cancel']).then(resp=>{
350
+ if(resp=="confirm"){
351
+ this.safe(info)
352
+ }else {
353
+ info.f_safecheck_type = '表具安检'
354
+ this.safe(info)
355
+ }
356
+ })
357
+ }else {
358
+ this.safe(info)
359
+ }
360
+ },
361
+ Mreadibook(){
362
+ this.cbc=[]
363
+ let http = new HttpResetClass()
364
+ http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/logic/getMeterBooksData`,
365
+ {data: {f_orgid: "('"+Vue.user.orgid+"')"}},
366
+ {resolveMsg: null, rejectMsg: '获取失败!!!'}).then((getMeterReadingBooks)=>{
367
+ this.cbc = [{label: '全部', value: ''}]
368
+ //tag
369
+ //tag)
370
+ //tag
371
+ getMeterReadingBooks.data.meterbooks.forEach((res) => {
372
+ this.cbc.push({label: res.f_book_name, value: res.id})
373
+ /*if(res.f_book_slice_area){
374
+ if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
375
+ this.sliceArea.push(res.f_book_slice_area)
376
+ }
377
+ }*/
378
+ })
379
+ })
380
+
381
+
382
+ }
383
+ }
384
+ }
385
+ </script>
386
+ <style scoped>
387
+ .app-row {
388
+ background-color: white;
389
+ padding: 10px 10px 0 10px;
390
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
391
+ }
392
+ .search_input {
393
+ border: 0;
394
+ outline: none;
395
+ }
396
+ .font{
397
+ font: 15px PingFang-SC-Medium;
398
+ color: #666666;
399
+ }
400
+ .input-font{
401
+ font: 15px PingFang-SC-Medium;
402
+ color: #333333;
403
+ }
404
+ .btn-font{
405
+ font:600 16px PingFang-SC-Bold;
406
+ color: #499EDF;
407
+ }
408
+ .btn-color{
409
+ background-color: #FFFFFF;
410
+ border-radius: 10px ;
411
+ border: 1px solid #499EDF;
412
+ }
413
+ .app-text {
414
+ font-size: 12px;
415
+ }
416
+ .panel-self{
417
+ border-radius: 10px;
418
+ border:1px solid #499EDF;
419
+ background-color: #F8F8F8;
420
+ }
421
+ .yybtn-color{
422
+ border-radius: 4px ;
423
+ border: 1px solid #499EDF;
424
+ }
425
+ .qxbtn-color{
426
+ background-color: #FFFFFF;
427
+ border-radius: 4px ;
428
+ border: 1px solid #499EDF;
429
+ }
430
+ </style>