safecheck-client 3.0.30-9 → 3.0.30-90

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 (102) hide show
  1. package/examples/SafePlan-liaoyuan/App.vue +3 -1
  2. package/package.json +4 -3
  3. package/src/App.vue +2 -2
  4. package/src/components/DefectDealMain/DefectListNew.vue +5 -5
  5. package/src/components/Util.js +15 -0
  6. package/src/components/android/AddPlanItem.vue +5 -2
  7. package/src/components/android/AreaPlan.vue +2 -2
  8. package/src/components/android/CurrentCreate.vue +3 -2
  9. package/src/components/android/CurrentCreate_new.vue +563 -559
  10. package/src/components/android/PaperFeedback.vue +4 -2
  11. package/src/components/android/SafecheckOrderV.vue +2 -2
  12. package/src/components/android/UploadPage.vue +13 -123
  13. package/src/components/paper/PaperList.vue +9 -2
  14. package/src/components/paper/PlanChooser.vue +8 -6
  15. package/src/components/pc/Edit.vue +126 -0
  16. package/src/components/pc/LodopFuncs.js +159 -0
  17. package/src/components/pc/NewCheckpaper.vue +9 -5
  18. package/src/components/pc/PaperEdit.vue +151 -0
  19. package/src/components/pc/PrintData.vue +243 -0
  20. package/src/components/pc/PrintTable.vue +241 -0
  21. package/src/components/pc/SelectCheckPlanAndNoPLan.vue +3 -0
  22. package/src/components/report/NoCheckplanSafecheck.vue +0 -2
  23. package/src/components/rongcheng/CheckCurrentCreate.vue +8 -0
  24. package/src/components/rongcheng/PaperStatem.vue +42 -1
  25. package/src/components/rongcheng/PhoneUpUserinfo.vue +149 -199
  26. package/src/components/rongcheng/SafecheckOrderV.vue +8 -0
  27. package/src/components/rongcheng/SafecheckUserInfo.vue +419 -0
  28. package/src/components/rongcheng/report/CheckPlanAreaList.vue +21 -3
  29. package/src/filiale/ankangyihua/pc/checkUserList.vue +1 -0
  30. package/src/filiale/bayan/android/CurrentCreate.vue +1 -1
  31. package/src/filiale/bayan/android/Edit.vue +132 -0
  32. package/src/filiale/bayan/android/SafecheckOrderV.vue +2 -2
  33. package/src/filiale/bayan/android/SafecheckUserInfo.vue +6 -1
  34. package/src/filiale/bayan/android.js +2 -1
  35. package/src/filiale/fugou/android/AddPlanItem.vue +413 -0
  36. package/src/filiale/fugou/android.js +10 -0
  37. package/src/filiale/fugou/pc/DefectMainNew.vue +63 -0
  38. package/src/filiale/fugou/pc/DefectPaperNew.vue +1081 -0
  39. package/src/filiale/fugou/pc/PaperDefectMain.vue +890 -0
  40. package/src/filiale/fugou/pc/PaperList.vue +46 -0
  41. package/src/filiale/fugou/pc/checkUserList.vue +824 -0
  42. package/src/filiale/fugou/pc.js +5 -1
  43. package/src/filiale/hanzhong/android/SafecheckDevices.vue +24 -24
  44. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2 -2
  45. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +1 -1
  46. package/src/filiale/hanzhong/pc/NewCheckpaper.vue +1923 -0
  47. package/src/filiale/hanzhong/pc.js +4 -1
  48. package/src/filiale/huatong/android/CurrentCreate.vue +564 -564
  49. package/src/filiale/huatong/android/SafecheckOrderV.vue +8 -0
  50. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -0
  51. package/src/filiale/jingyang/android/CurrentCreate.vue +1080 -0
  52. package/src/filiale/jingyang/android/PhoneUpUserinfo.vue +34 -34
  53. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -0
  54. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +780 -0
  55. package/src/filiale/kelai/android/AddPlanItem.vue +488 -0
  56. package/src/filiale/kelai/android.js +1 -0
  57. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -0
  58. package/src/filiale/liaoyuan/android.js +1 -0
  59. package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1 -1
  60. package/src/filiale/qianneng/android/PaperFeedback.vue +40 -0
  61. package/src/filiale/qianneng/pc/PaperList.vue +6 -0
  62. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +6 -0
  63. package/src/filiale/tianke/pc/checkScreen.vue +4 -4
  64. package/src/filiale/tianke/pc/cq.jpg +0 -0
  65. package/src/filiale/tianke/pc/qy.jpg +0 -0
  66. package/src/filiale/tongchuan/android/SafecheckDevices.vue +1 -0
  67. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +371 -401
  68. package/src/filiale/wensu/android/AndroidDefectDeal.vue +321 -366
  69. package/src/filiale/wensu/android/AndroidDefectDealItems.vue +480 -0
  70. package/src/filiale/wensu/android.js +1 -0
  71. package/src/filiale/wensu/pc/CheckSearchUser.vue +64 -0
  72. package/src/filiale/wensu/pc/DefectPaperNew.vue +16 -10
  73. package/src/filiale/wensu/pc/NewCheckpaper.vue +1936 -0
  74. package/src/filiale/wensu/pc/RoleSelector.vue +4 -1
  75. package/src/filiale/wensu/pc/checkUserList.vue +50 -0
  76. package/src/filiale/wensu/pc.js +2 -1
  77. package/src/filiale/wenxi/pc/DefectPaper.vue +1 -1
  78. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2069 -2041
  79. package/src/filiale/wuhai/pc/NewCheckpaper.vue +26 -24
  80. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +20 -0
  81. package/src/filiale/yangchunboneng/pc/CheckBookDetails.vue +19 -0
  82. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1092 -0
  83. package/src/filiale/yongzhou/pc/LodopFuncs.js +159 -0
  84. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +252 -0
  85. package/src/filiale/yongzhou/pc/PaperList.vue +798 -0
  86. package/src/filiale/yongzhou/pc/PrintData.vue +243 -0
  87. package/src/filiale/yongzhou/pc/PrintTable.vue +241 -0
  88. package/src/filiale/yongzhou/pc/communityDetail.vue +35 -12
  89. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +28 -14
  90. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +28 -14
  91. package/src/filiale/yongzhou/pc/safeDetail.vue +43 -15
  92. package/src/filiale/yongzhou/pc/safeStatistics.vue +16 -6
  93. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +81 -27
  94. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +56 -26
  95. package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +16 -6
  96. package/src/filiale/yongzhou/pc/safeTable.vue +10 -2
  97. package/src/filiale/yongzhou/pc.js +17 -12
  98. package/src/filiale/zhongsheng/android/CurrentCreate.vue +540 -536
  99. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +151 -53
  100. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +14 -0
  101. package/src/main.js +1 -1
  102. package/src/safecheck.js +12 -0
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
 
3
3
  <div class="no-close row android-repair-order" style="background-color: #f9f9f9">
4
+ <work-busy :is-busy="isSend"></work-busy>
4
5
  <div class="col-sm-12 col-xs-12" >
5
6
  <ul class="nav nav-tabs" style="background:#ffffff;overflow-y: hidden">
6
7
  <li v-for="row in tabs" @click="tabSelect(row,$index)" :class="{active1: row.complete === componentName}"
@@ -106,6 +107,7 @@ export default {
106
107
  // props: ['f_plan_id', 'role'],
107
108
  data() {
108
109
  return {
110
+ isSend:false,
109
111
  //测试数据
110
112
  // f_plan_id:'',
111
113
  // role:'inspect',
@@ -851,6 +853,7 @@ export default {
851
853
  return codata
852
854
  },
853
855
  uploadCheckPaper(){
856
+ this.isSend = true
854
857
  this.saveNoclick()
855
858
  //tag
856
859
  //tag
@@ -863,6 +866,7 @@ export default {
863
866
  // if(this.isUpload){
864
867
  // this.isUpload = false
865
868
  // }
869
+ this.isSend = false
866
870
  this.$showMessage(errString)
867
871
  }
868
872
  return
@@ -1035,6 +1039,7 @@ export default {
1035
1039
  if (Vue.android){
1036
1040
  this.$showMessage(errString)
1037
1041
  }
1042
+ this.isSend = false
1038
1043
  return
1039
1044
  } else {
1040
1045
  this.data.f_complete = '已完成'
@@ -1329,6 +1334,7 @@ export default {
1329
1334
  })
1330
1335
  },
1331
1336
  saveCallBack(jo){
1337
+ this.isSend = false
1332
1338
  //tag)
1333
1339
  if(jo.state == 'ok'){
1334
1340
  let res = JSON.parse(jo.result)
@@ -1336,6 +1342,7 @@ export default {
1336
1342
  if(res.code == 200){
1337
1343
  //tag
1338
1344
  if(!this.onlySave){
1345
+ this.isSend = true
1339
1346
  let codata = this.getAllDefect()
1340
1347
  //获取微信推送内容
1341
1348
  // let WxResult = this.getWeixin(codata)
@@ -1425,6 +1432,7 @@ export default {
1425
1432
  }
1426
1433
  },
1427
1434
  uploadCallBack(jo){
1435
+ this.isSend = false
1428
1436
  //获取微信推送路径
1429
1437
  let url = ""
1430
1438
  if(Vue.config.safecheck != undefined) {
@@ -0,0 +1,458 @@
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">旧用户编号:</label>
21
+ </div>
22
+ <div class="col-xs-8" >
23
+ <input class="search_input input-font"
24
+ v-model=model.f_olduserinfo_code condition="f_olduserinfo_code = '{}'" placeholder="请输入用户编号" />
25
+ </div>
26
+ </div>
27
+ <div class="row app-row">
28
+ <div class="col-xs-4">
29
+ <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
30
+ <label class="font text-left">表 &nbsp;&nbsp; &nbsp;&nbsp; 号:</label>
31
+ </div>
32
+ <div class="col-xs-8" >
33
+ <input class="search_input input-font"
34
+ v-model=model.f_meternumber condition="f_meternumber = '{}'" style="width: 70%" placeholder="请输入表号" />
35
+ <button type="button" name="button" class="btn btn-primary" style="width: 25%" @click="$parent.$parent.scan">扫码</button>
36
+ </div>
37
+ </div>
38
+ <div class="row app-row">
39
+ <div class="col-xs-4">
40
+ <img src="../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
41
+ <label class="font text-left">用户名称:</label>
42
+ </div>
43
+ <div class="col-xs-8" >
44
+ <input class="search_input input-font" v-model="model.f_username" placeholder="请输入用户名称(可模糊查询)">
45
+ </div>
46
+ </div>
47
+ <div class="row app-row">
48
+ <div class="col-xs-4">
49
+ <img src="../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
50
+ <label class="font text-left">用户类型:</label>
51
+ </div>
52
+ <div class="col-xs-8" >
53
+ <v-select :value.sync="$parent.$parent.model.f_user_type" class="input-font"
54
+ :options='$parent.$parent.user_types' placeholder='请选择用户类型' :value-single="true"
55
+ v-model="$parent.$parent.model.f_user_type" close-on-select clear-button></v-select>
56
+ </div>
57
+ </div>
58
+ <div class="row app-row">
59
+ <div class="col-xs-4">
60
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
61
+ <label class="font text-left">小区名称:</label>
62
+ </div>
63
+ <div class="col-xs-8" >
64
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_districtname" placeholder="请输入用户小区(可模糊查询)">
65
+ </div>
66
+ </div>
67
+ <div class="row app-row">
68
+ <div class="col-xs-4">
69
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
70
+ <label class="font text-left">楼&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号:</label>
71
+ </div>
72
+ <div class="col-xs-8" >
73
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_building" placeholder="请输入用户楼号">
74
+ </div>
75
+ </div>
76
+ <div class="row app-row">
77
+ <div class="col-xs-4">
78
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
79
+ <label class="font text-left">单&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;元:</label>
80
+ </div>
81
+ <div class="col-xs-8" >
82
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_unit" placeholder="请输入用户单元">
83
+ </div>
84
+ </div>
85
+ <div class="row app-row">
86
+ <div class="col-xs-4">
87
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
88
+ <label class="font text-left">用户地址:</label>
89
+ </div>
90
+ <div class="col-xs-8" >
91
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_address" placeholder="请输入用户地址(可模糊查询)">
92
+ </div>
93
+ </div>
94
+ <div class="row app-row">
95
+ <div class="col-xs-4">
96
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
97
+ <label class="font text-left">表&nbsp;&nbsp;封&nbsp;&nbsp;号:</label>
98
+ </div>
99
+ <div class="col-xs-8" >
100
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_metertitles" placeholder="请输入表封号" condition="uf.f_metertitles='{}'">
101
+ </div>
102
+ </div>
103
+ <div class="row app-row">
104
+ <div class="col-xs-4">
105
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
106
+ <label class="font text-left">电&nbsp;&nbsp;话&nbsp;&nbsp;号:</label>
107
+ </div>
108
+ <div class="col-xs-8" >
109
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_user_phone" placeholder="请输入电话号" condition="ui.f_user_phone like '%{}%'">
110
+ </div>
111
+ </div>
112
+ <div class="row app-row">
113
+ <div class="col-xs-4">
114
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
115
+ <label class="font text-left">卡&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号:</label>
116
+ </div>
117
+ <div class="col-xs-8" >
118
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_card_id" placeholder="请输入卡号" condition="uf.f_card_id like '%{}%'">
119
+ </div>
120
+ </div>
121
+ <div class="row app-row">
122
+ <div class="col-xs-4">
123
+ <img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
124
+ <label class="font text-left">抄&nbsp;&nbsp;表&nbsp;&nbsp;册:</label>
125
+ </div>
126
+ <div class="col-xs-8" >
127
+ <v-select class="input-font"
128
+ placeholder='请选择抄表册'
129
+ :value.sync="model.f_meter_book_num"
130
+ v-model="model.f_meter_book_num"
131
+ :options='$parent.$parent.cbc'
132
+ condition="uf.f_meter_book_num='{}'"
133
+ close-on-select clear-button></v-select>
134
+ </div>
135
+ </div>
136
+ <!-- <div class="row app-row">
137
+ <div class="col-xs-4">
138
+ <img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
139
+ <label class="font text-left">安检情况</label>
140
+ </div>
141
+ <div class="col-xs-8" >
142
+ <v-select class="input-font"
143
+ placeholder='请选择安检情况'
144
+ :value.sync="model.f_ischeck"
145
+ v-model="model.f_ischeck"
146
+ :options='$parent.$parent.ischecks'
147
+ condition="{}"
148
+ close-on-select clear-button></v-select>
149
+ </div>
150
+ </div>
151
+ <div class="row app-row">
152
+ <div class="col-xs-4">
153
+ <img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
154
+ <label class="font text-left">档案状态:</label>
155
+ </div>
156
+ <div class="col-xs-8" >
157
+ <v-select class="input-font"
158
+ placeholder='请选择档案状态'
159
+ :value.sync="$parent.$parent.model.f_user_state"
160
+ :options='$parent.$parent.f_user_states'
161
+ close-on-select clear-button></v-select>
162
+ </div>
163
+ </div>-->
164
+
165
+
166
+
167
+ <div class="row text-center" style="margin-top: 20px;">
168
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="search">查询</button>
169
+ </div>
170
+ <div style="height:30px;"></div>
171
+ </form>
172
+ </div>
173
+ </criteria>
174
+
175
+ <list :model="model" partial='list'>
176
+ <div partial>
177
+ <div @click="$parent.$parent.$parent.inspect(row)" class="auto app-text" style="margin-top: 5px;">
178
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
179
+ <div class="panel-body panel-self">
180
+ <div class="row">
181
+ <p class="panel-title col-xs-4 text-left font">用户编号</p>
182
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_userinfo_code }}</p>
183
+ </div>
184
+ <div class="row">
185
+ <p class="panel-title col-xs-4 text-left font">旧用户编号</p>
186
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_olduserinfo_code}}</p>
187
+ </div>
188
+ <div class="row">
189
+ <p class="panel-title col-xs-4 text-left font">用户名称</p>
190
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_name }}</p>
191
+ </div>
192
+ <div class="row">
193
+ <p class="panel-title col-xs-4 text-left font">表号</p>
194
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_meternumber }}</p>
195
+ </div>
196
+ <div class="row">
197
+ <p class="panel-title col-xs-4 text-left font">用户类型</p>
198
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_type }}</p>
199
+ </div>
200
+ <div class="row">
201
+ <p class="panel-title col-xs-4 text-left font">用户电话</p>
202
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_phone2 ? row.f_user_phone2 : row.f_user_phone }}</p>
203
+ </div>
204
+
205
+ <div class="row">
206
+ <p class="panel-title col-xs-4 text-left font">小区名称</p>
207
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_residential_area }}</p>
208
+ </div>
209
+ <div class="row">
210
+ <p class="panel-title col-xs-4 text-left font">用户地址</p>
211
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_address }}</p>
212
+ </div>
213
+ <div class="row">
214
+ <p class="panel-title col-xs-4 text-left font">最后安检日期</p>
215
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_date }}</p>
216
+ </div>
217
+ <div class="row">
218
+ <p class="panel-title col-xs-4 text-left font">最后安检状态</p>
219
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_state }}</p>
220
+ </div>
221
+ </div>
222
+ </div>
223
+
224
+ </div>
225
+ </div>
226
+ </list>
227
+ </criteria-paged>
228
+ <!--<back-page :need-back='true' @flag="$back()"></back-page>-->
229
+ </div>
230
+ </template>
231
+
232
+ <script>
233
+ import {HttpResetClass, PagedList} from 'vue-client'
234
+ import Vue from 'vue'
235
+ import * as Util from '../../Util'
236
+
237
+ export default {
238
+ title: '安检员B',
239
+ data () {
240
+ 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]',
241
+ 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'})
242
+ model.f_sign = ['']
243
+ model.f_user_type = ''
244
+ model.f_user_state =['']
245
+ model.f_check_type =['']
246
+ model.myCycle = 0
247
+ model.fyCycle = 0
248
+ model.f_filialeid = Vue.user.orgid
249
+ //model.f_filialeid = 287
250
+ return {
251
+ model: model,
252
+ cbc:[],
253
+ showModal:false,
254
+ signs: [
255
+ {label:'请选择录入状态', value:''},
256
+ {label:'录入', value:'1'},
257
+ {label:'非录入', value:'0'},
258
+ ],
259
+ ischecks: [
260
+ ],
261
+ user_types: [
262
+ {label: '请选择用户类型', value: ''},
263
+ {label: '民用', value: '民用'},
264
+ {label: '非民用', value: '非民用'},
265
+ ],
266
+ f_user_states: [
267
+ {label:'请选择档案状态', value:''},
268
+ {label:'正常', value:'正常'},
269
+ {label:'点火', value:'点火'},
270
+ ],
271
+ f_check_types: [
272
+ {label:'请选择安检类型', value:''},
273
+ {label:'应检', value:'应检'},
274
+ {label:'超期', value:'超期'},
275
+ ],
276
+ }
277
+ },
278
+ ready () {
279
+ // this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/getSafeCheckCycle`,{},{resolveMsg: null, rejectMsg: null}).then((res) => {
280
+ // //tag)
281
+ // if(res.data.code == 200){
282
+ // this.model.myCycle = res.data.civil.value
283
+ // this.model.fyCycle = res.data.civilian.value
284
+ // }else{
285
+ // //this.$showMessage(res.data.msg)
286
+ // }
287
+ //
288
+ // })
289
+ // this.getCheckTime()
290
+ // this.Mreadibook()
291
+ },
292
+ computed: {
293
+ reload(){
294
+ this.$refs.paged.loadPage(this.$refs.paged.model.pageIndex)
295
+ },
296
+ selected () {
297
+ return this.$refs.paged.$refs.grid.selected
298
+ }
299
+ },
300
+ methods:{
301
+ scan(){
302
+ HostApp.__this__=this,
303
+ HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
304
+ },
305
+ getCode(){
306
+ var datapa = HostApp.getCode().data;
307
+ //tag
308
+ this.$refs.paged.$refs.cri.model.f_meternumber=datapa
309
+ },
310
+ getCheckTime(){
311
+ //tag
312
+ new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`,{data: {
313
+ items: 'f_circle,f_start_time',
314
+ tablename: 't_safe_circle',
315
+ condition: `f_filialeid = '${Vue.user.orgid}'`,
316
+ orderitem: 'id'
317
+ }}).then(res=>{
318
+ //tag)
319
+ let nocheck=''
320
+ let ischeck=''
321
+ if (res.data[0]){
322
+ if (res.data[0].f_circle=='1'){
323
+ nocheck=`(ua.f_last_check_date<'${res.data[0].f_start_time}' or ua.f_last_check_date is null)`
324
+ ischeck=`ua.f_last_check_date>'${res.data[0].f_start_time}'`
325
+
326
+ }else{
327
+ let addtime= (Util.toStandardTimeString().substring(0,4)-res.data[0].f_start_time.substring(0,4))%res.data[0].f_circle
328
+ //tag
329
+ let time =(Util.toStandardTimeString().substring(0,4)-addtime)+'-01-01 00:00:00'
330
+ //tag
331
+ nocheck=`(ua.f_last_check_date<'${time}' or ua.f_last_check_date is null)`
332
+ ischeck=`ua.f_last_check_date>'${time}'`
333
+ }
334
+ //tag
335
+ this.ischecks=[
336
+ {label: '全部', value: ''},
337
+ {label: '已检', value: ischeck },
338
+ {label: '未检', value: nocheck},
339
+ ]
340
+ //tag
341
+ }else{
342
+ this.$showMessage("未配置安检周期")
343
+ }
344
+
345
+ })
346
+ //tag
347
+ },
348
+ inspect (info){
349
+ if(info.f_last_check_date){
350
+ this.$showMessage("该用户最后一次安检时间为 "+info.f_last_check_date+" 是否继续对该用户进行安检",['confirm', 'cancel']).then((butt)=>{
351
+ if(butt=="confirm"){
352
+ info.id = ''
353
+ info.f_state = '未检'
354
+ info.f_no_checkplan = '无计划安检'
355
+ //tag
356
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`,{data:{f_userid:info.f_userinfo_id}}).then((response)=>{
357
+ //tag)
358
+ info['f_plan_meters'] = response.data
359
+ var pardate = {
360
+ _this:this,
361
+ tittle:'安检详情',
362
+ safe:true
363
+ }
364
+ this.$dispatch('gotoson',pardate)
365
+ this.$goto('safecheck-order-v', {item: info, role: 'inspect',parentPage:'AddPlanItem'}, 'self', this.reload)
366
+
367
+ })
368
+ }
369
+ })
370
+ }else{
371
+ info.id = ''
372
+ info.f_state = '未检'
373
+ info.f_no_checkplan = '无计划安检'
374
+ //tag
375
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`,{data:{f_userid:info.f_userinfo_id}}).then((response)=>{
376
+ //tag)
377
+ info['f_plan_meters'] = response.data
378
+ var pardate = {
379
+ _this:this,
380
+ tittle:'安检详情',
381
+ safe:true
382
+ }
383
+ this.$dispatch('gotoson',pardate)
384
+ this.$goto('safecheck-order-v', {item: info, role: 'inspect',parentPage:'AddPlanItem'}, 'self', this.reload)
385
+
386
+ })
387
+ }
388
+ },
389
+ Mreadibook(){
390
+ this.cbc=[]
391
+ let http = new HttpResetClass()
392
+ http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/logic/getMeterBooksData`,
393
+ {data: {f_orgid: "('"+Vue.user.orgid+"')"}},
394
+ {resolveMsg: null, rejectMsg: '获取失败!!!'}).then((getMeterReadingBooks)=>{
395
+ this.cbc = [{label: '全部', value: ''}]
396
+ //tag
397
+ //tag)
398
+ //tag
399
+ getMeterReadingBooks.data.meterbooks.forEach((res) => {
400
+ this.cbc.push({label: res.f_book_name, value: res.id})
401
+ /*if(res.f_book_slice_area){
402
+ if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
403
+ this.sliceArea.push(res.f_book_slice_area)
404
+ }
405
+ }*/
406
+ })
407
+ })
408
+
409
+
410
+ }
411
+ }
412
+ }
413
+ </script>
414
+ <style scoped>
415
+ .app-row {
416
+ background-color: white;
417
+ padding: 10px 10px 0 10px;
418
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
419
+ }
420
+ .search_input {
421
+ border: 0;
422
+ outline: none;
423
+ }
424
+ .font{
425
+ font: 15px PingFang-SC-Medium;
426
+ color: #666666;
427
+ }
428
+ .input-font{
429
+ font: 15px PingFang-SC-Medium;
430
+ color: #333333;
431
+ }
432
+ .btn-font{
433
+ font:600 16px PingFang-SC-Bold;
434
+ color: #499EDF;
435
+ }
436
+ .btn-color{
437
+ background-color: #FFFFFF;
438
+ border-radius: 10px ;
439
+ border: 1px solid #499EDF;
440
+ }
441
+ .app-text {
442
+ font-size: 12px;
443
+ }
444
+ .panel-self{
445
+ border-radius: 10px;
446
+ border:1px solid #499EDF;
447
+ background-color: #F8F8F8;
448
+ }
449
+ .yybtn-color{
450
+ border-radius: 4px ;
451
+ border: 1px solid #499EDF;
452
+ }
453
+ .qxbtn-color{
454
+ background-color: #FFFFFF;
455
+ border-radius: 4px ;
456
+ border: 1px solid #499EDF;
457
+ }
458
+ </style>