safecheck-client 3.0.32 → 3.0.33-2

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 (88) hide show
  1. package/package.json +133 -133
  2. package/src/App.vue +31 -31
  3. package/src/assets//345/215/225/345/205/203/345/217/267.png +0 -0
  4. package/src/assets//345/234/260/345/235/200.png +0 -0
  5. package/src/assets//345/247/223/345/220/215.png +0 -0
  6. package/src/assets//345/260/217/345/214/272.png +0 -0
  7. package/src/assets//345/260/217/345/214/272/350/223/235/350/211/262.png +0 -0
  8. package/src/assets//345/272/225/346/225/260.png +0 -0
  9. package/src/assets//346/210/267/347/274/226/345/217/267.png +0 -0
  10. package/src/assets//346/245/274/345/217/267.png +0 -0
  11. package/src/assets//346/245/274/345/261/202.png +0 -0
  12. package/src/assets//350/241/250/347/261/273/345/236/213.png +0 -0
  13. package/src/assets//351/227/250/347/211/214/345/217/267.png +0 -0
  14. package/src/components/android/AndroidDefectDeal.vue +5 -5
  15. package/src/components/android/PhoneUpUserinfo.vue +6 -0
  16. package/src/components/android/SafecheckOrderV.vue +4 -1
  17. package/src/components/map/checkScreen.vue +1 -1
  18. package/src/components/planmanage/checkPlanList.vue +3 -3
  19. package/src/components/rongcheng/AspiratedDevices.vue +34 -1
  20. package/src/components/rongcheng/DefectPaper.vue +4 -1
  21. package/src/components/rongcheng/SafecheckDevices.vue +34 -1
  22. package/src/components/rongcheng/SafecheckOrderV.vue +1 -0
  23. package/src/components/rongcheng/SafecheckUserInfo.vue +17 -0
  24. package/src/filiale/Util.js +7 -0
  25. package/src/filiale/ankangyihua/android/AndroidDefectDeal.vue +1 -1
  26. package/src/filiale/ankangyihua/android/CurrentCreate.vue +1 -1
  27. package/src/filiale/bayan/pc/NewCheckpaper.vue +1 -1
  28. package/src/filiale/dexin/android/CasualSave.vue +1050 -0
  29. package/src/filiale/dexin/android/SafecheckDevices.vue +4 -4
  30. package/src/filiale/dexin/android/SafecheckOrderV.vue +2407 -2355
  31. package/src/filiale/dexin/android/WebMeterOpen.vue +377 -0
  32. package/src/filiale/dexin/android/WebMeterOpenEdit.vue +225 -0
  33. package/src/filiale/dexin/android.js +4 -1
  34. package/src/filiale/fugou/pc/AddToCheckBook.vue +160 -0
  35. package/src/filiale/fugou/pc/CheckBook.vue +301 -0
  36. package/src/filiale/fugou/pc/CheckBookAll.vue +67 -0
  37. package/src/filiale/fugou/pc/CheckBookArea.vue +146 -0
  38. package/src/filiale/fugou/pc/CheckBookCompany.vue +144 -0
  39. package/src/filiale/fugou/pc/CheckBookDetails.vue +161 -0
  40. package/src/filiale/fugou/pc/CheckBookEntry.vue +66 -0
  41. package/src/filiale/fugou/pc/CheckBookList.vue +366 -0
  42. package/src/filiale/fugou/pc/CheckBookSearchArea.vue +560 -0
  43. package/src/filiale/fugou/pc/CheckBookSearchUnit.vue +229 -0
  44. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +651 -0
  45. package/src/filiale/fugou/pc/CheckBookSearchUserList.vue +674 -0
  46. package/src/filiale/fugou/pc/CheckBookUser.vue +101 -0
  47. package/src/filiale/fugou/pc/DefectPaperNew.vue +1 -1
  48. package/src/filiale/fugou/pc/PaperDefectMain.vue +22 -1
  49. package/src/filiale/fugou/pc/PlanManage.vue +1007 -0
  50. package/src/filiale/fugou/pc/checkPlanList.vue +371 -0
  51. package/src/filiale/fugou/pc/checkUserList.vue +20 -120
  52. package/src/filiale/fugou/pc.js +60 -5
  53. package/src/filiale/jingyang/android/AddPlanItem.vue +246 -246
  54. package/src/filiale/jingyang/android/CurrentCreate.vue +18 -18
  55. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2281 -2281
  56. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +1 -0
  57. package/src/filiale/jingyang/android.js +4 -0
  58. package/src/filiale/kelai/android/SafecheckDevices.vue +1 -1
  59. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1 -1
  60. package/src/filiale/qingjian/android/SafecheckOrderV.vue +1 -0
  61. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +4 -0
  62. package/src/filiale/rongchuang/android/SafecheckDevices.vue +1680 -0
  63. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +975 -488
  64. package/src/filiale/rongchuang/pc/NewCheckpaper.vue +111 -48
  65. package/src/filiale/shanxian/android/SafecheckOrderV.vue +1 -1
  66. package/src/filiale/shexian/pc/PaperList.vue +822 -0
  67. package/src/filiale/shexian/pc.js +1 -0
  68. package/src/filiale/tongchuan/pc/CheckPlanCountChartArea.vue +1 -1
  69. package/src/filiale/wensu/android/CurrentCreate.vue +1 -1
  70. package/src/filiale/wensu/pc/CheckSearchUser.vue +58 -53
  71. package/src/filiale/wensu/pc/DefectPaperNew.vue +15 -9
  72. package/src/filiale/wensu/pc/PlanManage.vue +831 -0
  73. package/src/filiale/wensu/pc/PrintMaterialBill.vue +28 -11
  74. package/src/filiale/wensu/pc/RoleSelector.vue +2 -2
  75. package/src/filiale/wensu/pc/SelectCheckPlan.vue +208 -168
  76. package/src/filiale/wensu/pc/checkUserList.vue +5 -1
  77. package/src/filiale/wensu/pc.js +20 -19
  78. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +6 -2
  79. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +3 -3
  80. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +1 -1
  81. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +3 -3
  82. package/src/filiale/yongzhou/pc/safeStatistics.vue +1 -0
  83. package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +1 -0
  84. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +3 -0
  85. package/src/filiale/zhongyi/pc/DefectListNew.vue +6 -6
  86. package/src/main.js +33 -33
  87. package/static/stretch_bottom.png +0 -0
  88. package/static/stretch_top.png +0 -0
@@ -0,0 +1,674 @@
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
+ <div class="row">
7
+ <div class="form-group col-sm-2" >
8
+ <label class="font_normal_body">用户信息</label>
9
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
10
+ style="width: 60%" placeholder="客户编号" condition="ui.f_userinfo_code='{}'">
11
+ </div>
12
+ <div class="form-group col-sm-2" >
13
+ <label class="font_normal_body" title="参数名称:安检用户状态">用户状态:</label>
14
+ <v-select
15
+ class="select select_list"
16
+ :value.sync="model.f_user_state"
17
+ v-model="model.f_user_state"
18
+ :options='$parent.$parent.userStates'
19
+ placeholder='请选择'
20
+ condition="ui.f_user_state='{}'"
21
+ :search="false"
22
+ close-on-select
23
+ value-single
24
+ >
25
+ </v-select>
26
+ </div>
27
+ <div class="form-group col-sm-2" >
28
+ <label class="font_normal_body"title="参数名称:用气性质">用气性质:</label>
29
+ <v-select
30
+ class="select select_list"
31
+ :value.sync="model.f_gasproperties"
32
+ v-model="model.f_gasproperties"
33
+ :options='$parent.$parent.gasproperties'
34
+ placeholder='请选择'
35
+ condition="uf.f_gasproperties in {}"
36
+ :search="false"
37
+ :multiple="true"
38
+ close-on-select
39
+ >
40
+ </v-select>
41
+ </div>
42
+ <div class="form-group col-sm-2" >
43
+ <label class="font_normal_body">气表品牌:</label>
44
+ <v-select
45
+ class="select select_list"
46
+ :value.sync="model.metergasbrand"
47
+ v-model="model.metergasbrand"
48
+ :options='$parent.$parent.meter_gasbrand'
49
+ placeholder='气表品牌'
50
+ condition="uf.f_gasbrand_id in {}"
51
+ :search="false"
52
+ :multiple="true"
53
+ close-on-select
54
+ >
55
+ </v-select>
56
+ </div>
57
+ <div class="form-group col-sm-4" >
58
+ <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUserCondition()">更多条件</button>
59
+ <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
60
+ <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.createAndSend()">下发</button>
61
+ </div>
62
+ <modal :show.sync="$parent.$parent.showCondtion" v-ref:modal :width="'50%'" :backdrop="false">
63
+ <div slot="modal-header" class="modal-header">
64
+ <h4 class="modal-title">
65
+ 用户查询条件
66
+ </h4>
67
+ </div>
68
+ <div slot="modal-body" class="modal-body">
69
+ <div class="row">
70
+ <div class="form-group col-sm-4" >
71
+ <label class="font_normal_body">楼&ensp;栋&ensp;号:</label>
72
+ <input type="text" class="input_search" v-model="model.f_building"
73
+ style="width: 60%" placeholder="请选择" condition="ua.f_building='{}'">
74
+ </div>
75
+ <div class="form-group col-sm-4" >
76
+ <label class="font_normal_body">单&ensp;元&ensp;号:</label>
77
+ <input type="text" class="input_search" v-model="model.f_unit"
78
+ style="width: 60%" placeholder="请选择" condition="ua.f_unit='{}'">
79
+ </div>
80
+ <div class="form-group col-sm-4" >
81
+ <label class="font_normal_body">派发情况:</label>
82
+ <v-select
83
+ class="select select_list"
84
+ :value.sync="model.yearCheck"
85
+ v-model="model.yearCheck"
86
+ :options='$parent.$parent.yearCheckList'
87
+ placeholder='请选择'
88
+ condition="{}"
89
+ :search="false"
90
+ close-on-select
91
+ value-single
92
+ >
93
+ </v-select>
94
+ </div>
95
+ <div class="form-group col-sm-4" >
96
+ <label class="font_normal_body">安检状态:</label>
97
+ <v-select
98
+ class="select select_list"
99
+ :value.sync="model.f_last_check_state"
100
+ v-model="model.f_last_check_state"
101
+ :options='$parent.$parent.entry_status'
102
+ placeholder='请选择'
103
+ :search="false"
104
+ close-on-select
105
+ value-single
106
+ >
107
+ </v-select>
108
+ </div>
109
+ <div class="form-group col-sm-4" >
110
+ <label class="font_normal_body">安检起始:</label>
111
+ <datepicker
112
+ placeholder='请选择'
113
+ style="width:60%;text-align: center"
114
+ :disabled-days-of-week="[]"
115
+ :format="'yyyy-MM-dd'"
116
+ :show-rest-button="reset"
117
+ :value.sync="model.f_check_start"
118
+ v-model="model.f_check_start">
119
+ </datepicker>
120
+ </div>
121
+ <div class="form-group col-sm-4" >
122
+ <label class="font_normal_body">安检截止:</label>
123
+ <datepicker
124
+ placeholder='请选择'
125
+ :disabled-days-of-week="[]"
126
+ style="width:60%;text-align: center"
127
+ :format="'yyyy-MM-dd'"
128
+ :show-rest-button="reset"
129
+ :value.sync="model.f_check_end"
130
+ v-model="model.f_check_end">
131
+ </datepicker>
132
+ </div>
133
+
134
+ </div>
135
+ </div>
136
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
137
+ <button class="button_search" style="margin-right: 15px" @click="search()">查询</button>
138
+ <button class="button_search" @click="$parent.$parent.cancel">取消</button>
139
+ </div>
140
+ </modal>
141
+ <modal :show.sync="$parent.$parent.excelUserCondtion" width="500px" v-ref:modal1 >
142
+ <div slot="modal-header" class="modal-header">
143
+ <h4 class="modal-title">
144
+ 导入用户编号
145
+ </h4>
146
+ </div>
147
+ <div slot="modal-body" class="modal-body">
148
+ <div class="row">
149
+ <file-upload class="my-file-uploader " name="UploadFile" class="btn btn-success" style="border-radius: 2px;"
150
+ action="rs/file/uploadFile" tagname="档案信息导入" v-ref:file :headers="headers" multiple></file-upload>
151
+ <img src="../../../assets/Excelformat.png" style="width: 100%"/>
152
+ </div>
153
+ </div>
154
+ <footer slot="modal-footer" class="modal-footer">
155
+ </footer>
156
+ </modal>
157
+ </div>
158
+ </div>
159
+ </criteria>
160
+ <data-grid :model="model" partial='list' class="table_sy">
161
+
162
+ <template partial='head'>
163
+ <tr>
164
+ <th><nobr><input type="checkbox" @dblclick.stop="" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.checkAll" @change="$parent.$parent.$parent.setCheckAll()"/> 全选</nobr></th>
165
+ <th><nobr>用户编号</nobr></th>
166
+ <th><nobr>用户名称</nobr></th>
167
+ <th><nobr>用户类型</nobr></th>
168
+ <th><nobr>小区名称</nobr></th>
169
+ <!-- <th><nobr>片区</nobr></th>-->
170
+ <th><nobr>抄表册</nobr></th>
171
+ <th title="当前所在的安检计划名称"><nobr>所属计划</nobr></th>
172
+ <th title="最后一次安检日期"><nobr>安检日期</nobr></th>
173
+ <th><nobr>详细地址</nobr></th>
174
+ </tr>
175
+ </template>
176
+ <template partial='body'>
177
+ <td style="text-align: center;white-space:nowrap;"><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.isChecked(row.id)" @change="$parent.$parent.$parent.setCheckes(row.id)" /></td>
178
+ <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
179
+ <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
180
+ <td style="text-align: center"><nobr>{{row.f_user_type}}</nobr></td>
181
+ <td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
182
+ <!-- <td style="text-align: center"><nobr>{{row.f_slice_area}}</nobr></td>-->
183
+ <td style="text-align: center"><nobr>{{row.f_book_name}}</nobr></td>
184
+ <td style="text-align: center"><nobr>{{row.f_plan_name}}</nobr></td>
185
+ <td style="text-align: center"><nobr>{{row.f_last_check_date}}</nobr></td>
186
+ <td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
187
+ </template>
188
+ </data-grid>
189
+ </criteria-paged>
190
+ <modal :show.sync="showCreatePlan" v-ref:modal1 :width="'50%'" :backdrop="false">
191
+ <div slot="modal-header" class="modal-header">
192
+ <h4 class="modal-title">
193
+ 新建计划
194
+ </h4>
195
+ </div>
196
+ <div slot="modal-body" class="modal-body">
197
+ <div class="row">
198
+ <div class="form-group col-sm-4" >
199
+ <label class="font_normal_body">计划名称:</label>
200
+ <input type="text" class="input_search" v-model="createPlan.f_plan_name"
201
+ style="width: 60%" placeholder="请选择" />
202
+ </div>
203
+ <div class="form-group col-sm-4" >
204
+ <label class="font_normal_body">计划年份:</label>
205
+ <v-select
206
+ class="select select_list"
207
+ :value.sync="createPlan.f_plan_year"
208
+ v-model="createPlan.f_plan_year"
209
+ :search="false"
210
+ :options='yearList'
211
+ close-on-select
212
+ value-single
213
+ >
214
+ </v-select>
215
+ </div>
216
+ <div class="form-group col-sm-4" >
217
+ <label class="font_normal_body">计划月份:</label>
218
+ <v-select
219
+ class="select select_list"
220
+ :value.sync="createPlan.f_plan_month"
221
+ v-model="createPlan.f_plan_month"
222
+ :search="false"
223
+ :options='monthList'
224
+ close-on-select
225
+ value-single>
226
+ </v-select>
227
+ </div>
228
+ <div class="form-group col-sm-4" >
229
+ <label class="font_normal_body">计划开始:</label>
230
+ <datepicker
231
+ placeholder='请选择'
232
+ style="width:60%"
233
+ :disabled-days-of-week="[]"
234
+ :format="'yyyy-MM-dd'"
235
+ :show-rest-button="reset"
236
+ :value.sync="createPlan.f_start_time"
237
+ v-model="createPlan.f_start_time">
238
+ </datepicker>
239
+ </div>
240
+ <div class="form-group col-sm-4" >
241
+ <label class="font_normal_body">计划结束:</label>
242
+ <datepicker
243
+ placeholder='请选择'
244
+ style="width:60%"
245
+ :disabled-days-of-week="[]"
246
+ :format="'yyyy-MM-dd'"
247
+ :show-rest-button="reset"
248
+ :value.sync="createPlan.f_end_time"
249
+ v-model="createPlan.f_end_time">
250
+ </datepicker>
251
+ </div>
252
+ </div>
253
+ </div>
254
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
255
+ <button class="button_search" style="margin-right: 15px" @click="addNewPlan()">创建计划</button>
256
+ <button class="button_search" @click="cancelCreatePlan">取消</button>
257
+ </div>
258
+ </modal>
259
+ </div>
260
+ </template>
261
+
262
+ <script>
263
+ import {HttpResetClass, PagedList} from "vue-client";
264
+ import * as Util from "../../../components/Util";
265
+ import Vue from "vue";
266
+
267
+ export default {
268
+ title: '计划管理',
269
+ data() {
270
+ return {
271
+ createPlan:{
272
+ f_safecheck_type:"年度普检",
273
+ checker:"",
274
+ isShare:"否",
275
+ f_usertype:"",
276
+ f_issued:'是',
277
+ f_end_time:Util.toStandardDateString().replace(new Date().getFullYear().toString(),(new Date().getFullYear()+1).toString()),
278
+ f_start_time:Util.toStandardDateString(),
279
+ f_plan_month:(new Date().getMonth()+1).toString(),
280
+ f_plan_year:new Date().getFullYear().toString(),
281
+ f_plan_name:""
282
+ },
283
+ yearList:[{label:"2020",value:"2020"},{label:"2021",value:"2021"},{label:"2022",value:"2022"},{label:"2023",value:"2023"},{label:"2024",value:"2024"},{label:"2025",value:"2025"},{label:"2026",value:"2026"},{label:"2027",value:"2027"},{label:"2028",value:"2028"},{label:"2029",value:"2029"},{label:"2030",value:"2030"}],
284
+ monthList:[{label:"1",value:"1"},{label:"2",value:"2"},{label:"3",value:"3"},{label:"4",value:"4"},{label:"5",value:"5"},{label:"6",value:"6"},{label:"7",value:"7"},{label:"8",value:"8"},{label:"9",value:"9"},{label:"10",value:"10"},{label:"11",value:"11"},{label:"12",value:"12"}],
285
+ showCreatePlan:false,
286
+ model:new PagedList('/rs/sql/FetchUserFileByOrgNoRuHuSXQ', 20, {
287
+ "orderitem": "'f_residential_area,f_building,f_unit,f_floor,f_room'",
288
+ "f_usertype": "''",
289
+ "month": "''",
290
+ "SafeCheckSX": {"f_check_start": '', "f_check_end": ''},
291
+ "SafeCheckCQ": "''",
292
+ "startday":"''",
293
+ "endday":"''"}),
294
+ a:'1',
295
+ opt:[{label:"测试",value:"测试"}],
296
+ showCondtion:false,
297
+ userTypes:[],//用户类型
298
+ entry_status:[],
299
+ userStates:[],//用户状态
300
+ gasproperties:[],//用气性质
301
+ meter_gasbrand:[],//气表品牌
302
+ hasHousehold:[{label:"全部",value:""},{label:"已入户",value:"已入户"},{label:"未入户",value:"未入户"}],
303
+ yearCheckList:[{label:"全部",value:""},{label:"已在计划中",value:"ua.f_plan_id is not null"},{label:"未在计划中",value:"ua.f_plan_id is null"}],
304
+ checkStateList:[{label:"全部",value:""},{label:"两年内已检",value:"DATEDIFF(day,isnull(ui.f_last_check_date,'2010-01-01'),GETDATE())<=730"},{label:"两年内未检",value:"DATEDIFF(day,isnull(ui.f_last_check_date,'2010-01-01'),GETDATE())>730"},{label:"从未安检",value:"从未安检"}],
305
+ hasResidentialArea:[{label:"全部",value:""},{label:"有名称",value:"有名称"},{label:"无名称",value:"无名称"}],
306
+ sliceArea:[],
307
+ meterbooks:[],
308
+ checkBooks:[{label:'sss',value:'1-用户'},{label:'ssssss',value:'1-小区'}],
309
+ cbc:[],
310
+ areaList:[],
311
+ checkAll:false,
312
+ checkes:[],
313
+ areaen:[],//片区
314
+ excelUserCondtion:false,
315
+ uploadCodeCondition:''
316
+ }
317
+ },
318
+ props:["userlogin","bookrow","needprops","row","bookrowsdata","addcondata"],
319
+ ready(){
320
+ console.log("this.bookrow",this.bookrow)
321
+ console.log("this.row",this.row)
322
+ console.log("this.needprops",this.needprops)
323
+ this.createPlan.checker = this.needprops.checker.filter(item=>item.label == this.row.f_checker_name)[0].value
324
+ this.createPlan.f_checker_id=this.createPlan.checker.id
325
+ this.createPlan.f_checker=this.createPlan.checker.name
326
+ this.createPlan.f_usertype = this.row.f_user_type
327
+ this.createPlan.f_plan_name = `${this.row.f_check_book_name}${this.createPlan.f_plan_year}年${this.createPlan.f_plan_month}月`
328
+ this.$refs.paged.$refs.criteria.model.f_user_state='正常'
329
+ this.meter_gasbrand=this.needprops.meter_gasbrand,
330
+ this.checkBooks=this.needprops.checkBooks,
331
+ this.entry_status=this.needprops.entry_status,
332
+ this.userTypes=this.needprops.userTypes,
333
+ this.userStates=this.needprops.userStates,
334
+ this.gasproperties=this.needprops.gasproperties,
335
+ this.areaList=this.needprops.areaList,
336
+ this.sliceArea=this.needprops.sliceArea,
337
+ this.cbc=this.needprops.cbc,
338
+ this.meterbooks=this.needprops.meterbooks
339
+ },
340
+ methods: {
341
+ async addNewPlan(){
342
+ this.createPlan.f_plan_type='预约计划'
343
+ this.createPlan.f_subcompany=this.userlogin.orgstr
344
+ this.createPlan.f_filialeid=this.userlogin.orgid
345
+ this.createPlan.f_create_operator=this.userlogin.name
346
+ this.createPlan.f_create_time=Util.toStandardTimeString()
347
+ this.createPlan.f_check_book_id = this.row.id
348
+ console.log(this.createPlan)
349
+ const addPlan = {
350
+ f_operator:this.userlogin.name,
351
+ f_filialeid:this.userlogin.orgid,
352
+ f_subscribe_date:'',
353
+ condition:this.model.condition,
354
+ switchCheckAll:true,
355
+ checkAll:this.checkAll,
356
+ param:this.checkes,
357
+ columnName: "ua.id"
358
+ }
359
+ new HttpResetClass().load("POST",'/rs/logic/createAndAddPlan',{createPlan:this.createPlan,addPlan}).then(res=>{
360
+ if(res.data.code==200){
361
+ this.$showMessage("计划下发成功!"+(res.data.result.length>0?"有"+res.data.result.length+"条用户地址已经存在于其他计划中":""))
362
+ this.cancelCreatePlan()
363
+ }else{
364
+ this.$showMessage("计划下发失败!")
365
+ }
366
+ })
367
+ },
368
+ cancelCreatePlan(){
369
+ this.showCreatePlan = false
370
+ },
371
+ createAndSend(){
372
+ if(this.model.rows.length==0){
373
+ Vue.showMessage("未检测到列表中有用户!")
374
+ return
375
+ }
376
+ if(!this.checkAll && this.checkes.length==0){
377
+ Vue.showMessage("请先勾选你要添入到上方计划中的用户!")
378
+ return
379
+ }
380
+ this.showCreatePlan = true
381
+ },
382
+ cancel(){
383
+ this.showCondtion=false
384
+ this.excelUserCondtion=false
385
+ },
386
+ //清空用户编号
387
+ clearUserInfoId(){
388
+ this.uploadCodeCondition=''
389
+ Vue.showMessage("已清空用户编号")
390
+ },
391
+ showUploadCodeCondition(){
392
+ this.excelUserCondtion=true
393
+ },
394
+ selfSearch (args) {
395
+ console.log(this.bookrow,"6666")
396
+ //tag)
397
+ // 判断时间和状态匹配条件
398
+ if (!Util.isEmpty(args.model.f_last_check_state) && (!Util.isEmpty(args.model.f_check_start) || !Util.isEmpty(args.model.f_check_end) )){
399
+ if (args.model.f_last_check_state == '未检'){
400
+ var lscon = args.model.f_check_start ? ` or ua.f_last_check_date <= '${args.model.f_check_start} 00:00:00'` :''
401
+ lscon += lscon ? (args.model.f_check_end ? ` or ua.f_last_check_date >= '${args.model.f_check_end} 23:59:59'` :''): (args.model.f_check_end ? `ua.f_last_check_date >= '${args.model.f_check_end} 23:59:59'` :'')
402
+ args.condition +=`and (ua.f_last_check_state is null or ua.f_last_check_state ='' ${lscon} ) `
403
+ }else {
404
+ var lscon = args.model.f_check_start ? ` and ua.f_last_check_date >= '${args.model.f_check_start} 00:00:00'` :''
405
+ lscon += lscon ? (args.model.f_check_end ? ` and ua.f_last_check_date <= '${args.model.f_check_end} 23:59:59'` :'') : (args.model.f_check_end ? ` ua.f_last_check_date <= '${args.model.f_check_end} 23:59:59'` :'')
406
+ args.condition += `and ua.f_last_check_state = '${args.model.f_last_check_state}' ${lscon}`
407
+ }
408
+
409
+ }else if (Util.isEmpty(args.model.f_last_check_state) && (!Util.isEmpty(args.model.f_check_start) || !Util.isEmpty(args.model.f_check_end) )) {
410
+ var lscon = args.model.f_check_start ? ` and ua.f_last_check_date >= '${args.model.f_check_start} 00:00:00'` :''
411
+ lscon += lscon ? (args.model.f_check_end ? ` and ua.f_last_check_date <= '${args.model.f_check_end} 23:59:59'` :'') : (args.model.f_check_end ? ` ua.f_last_check_date <= '${args.model.f_check_end} 23:59:59'` :'')
412
+ args.condition += lscon
413
+ }else if (!Util.isEmpty(args.model.f_last_check_state) && Util.isEmpty(args.model.f_check_start) && Util.isEmpty(args.model.f_check_end)){
414
+ this.$showMessage("选择安检状态时,需要选择安检时间区间!")
415
+ return
416
+ }else{
417
+ console.log('这块无条件')
418
+ }
419
+ let condition1=`(ua.f_last_check_date is null or ua.f_last_check_date ='')`
420
+ let arge = args.condition.replace('从未安检',condition1)
421
+ args.condition = arge
422
+ // 上一个界面条件拼接进来
423
+ if(this.addcondata){
424
+ args.condition += this.addcondata
425
+ }
426
+ var checkallcond = ''
427
+ // 判断小区或者单位是否是多选 全选
428
+ if(this.bookrowsdata.checkAll){
429
+ if(this.row.f_user_type === '民用'){
430
+ checkallcond = ` and area.f_check_book_id = ${this.row.id} `
431
+ }else{
432
+ checkallcond = ` and tc.f_check_book_id = ${this.row.id} `
433
+ }
434
+
435
+ if(this.bookrowsdata.bookrows.length > 0){
436
+ this.bookrowsdata.bookrows.forEach((item) => {
437
+ if(this.row.f_user_type === '民用'){
438
+ checkallcond += ` and area.id != ${item}`
439
+ }else{
440
+ checkallcond += ` and tc.id != ${item}`
441
+ }
442
+ })
443
+ }
444
+ }else{
445
+ var nums = '('
446
+ this.bookrowsdata.bookrows.forEach((item) => {
447
+ if(this.bookrowsdata.bookrows[this.bookrowsdata.bookrows.length -1] == item){
448
+ nums += item +')'
449
+ }else{
450
+ nums += item +','
451
+ }
452
+ })
453
+ if(this.row.f_user_type === '民用'){
454
+ checkallcond += ` and area.id in ${nums}`
455
+ }else{
456
+ checkallcond += ` and tc.id in ${nums}`
457
+ }
458
+ }
459
+ args.condition += checkallcond
460
+ args.condition += ` and ui.f_filialeid='${this.userlogin.orgid}'`
461
+ if (args.model.f_residential_area == "无名称"){
462
+ args.condition +=" and (ua.f_residential_area is null or ua.f_residential_area ='')"
463
+ }else if (args.model.f_residential_area == "有名称"){
464
+ args.condition +=" and (ua.f_residential_area is not null and ua.f_residential_area !='')"
465
+ }
466
+ if(this.uploadCodeCondition){
467
+ args.condition +=` and ${this.uploadCodeCondition}`
468
+ }
469
+ this.cancel()
470
+ this.checkes=[]
471
+ this.checkAll=false
472
+ this.model.search(args.condition, args.model, args.condValue)
473
+ },
474
+ showUserCondition(){
475
+ this.showCondtion=true
476
+ },
477
+ setConList(){
478
+ this.entry_status=this.$appdata.getParam('安检状态') ? [{
479
+ label: '全部',
480
+ value: ''
481
+ }, ...this.$appdata.getParam('安检状态')] : [{label: '全部', value: ''}]
482
+
483
+ this.userTypes=this.$appdata.getParam('用户类型') ? [{
484
+ label: '全部',
485
+ value: ''
486
+ }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
487
+ this.userStates=this.$appdata.getParam('安检用户状态') ? [{
488
+ label: '全部',
489
+ value: ''
490
+ }, ...this.$appdata.getParam('安检用户状态')] : [{label: '全部', value: ''}]
491
+ this.gasproperties=this.$appdata.getParam('用气性质') ? [{
492
+ label: '全部',
493
+ value: ''
494
+ }, ...this.$appdata.getParam('用气性质')] : [{label: '全部', value: ''}]
495
+ // this.meter_classifys=this.$appdata.getParam('气表类型') ? [{
496
+ // label: '全部',
497
+ // value: ''
498
+ // }, ...this.$appdata.getParam('气表类型')] : [{label: '全部', value: ''}]
499
+ },
500
+ select_search(text, type){
501
+ //tag
502
+ let pcdText=text?` and f_residential_area like '%${text}%'`:''
503
+ if (type == 'pqId'){
504
+ if(text.length==0){
505
+ pcdText=text?` and 1=1`:''
506
+ }else {
507
+ pcdText =text?`and f_check_book_id in (${text})`:''
508
+ }
509
+
510
+ }
511
+ new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${this.userlogin.orgid}' ${pcdText} `}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
512
+ //tag)
513
+ this.areaList=[]
514
+ this.areaList.push({label:"全部",value:""})
515
+ res.data.forEach((result)=>{
516
+ this.areaList.push({label:result.f_residential_area,value:result.f_residential_area})
517
+ //console.log('this.areaList=', JSON.stringify(this.areaList))
518
+ })
519
+ //tag)
520
+ })
521
+
522
+
523
+ },
524
+ //获取抄表册
525
+ async Mreadibook(){
526
+ this.cbc=[]
527
+ this.sliceArea=[]
528
+ let http = new HttpResetClass()
529
+ let getMeterReadingBooks = await http.load('POST','rs/logic/getMeterBooksData',
530
+ {data: {f_orgid: "('"+this.userlogin.orgid+"')"}},
531
+ {resolveMsg: null, rejectMsg: '获取失败!!!'})
532
+ this.cbc = [{label: '全部', value: ''}]
533
+ //tag
534
+ //tag)
535
+ //tag
536
+ this.meterbooks=[]
537
+ this.meterbooks=getMeterReadingBooks.data.meterbooks
538
+ this.meterbooks.forEach((res) => {
539
+ this.cbc.push({label: res.f_book_name, value: res.id})
540
+ /*if(res.f_book_slice_area){
541
+ if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
542
+ this.sliceArea.push(res.f_book_slice_area)
543
+ }
544
+ }*/
545
+ })
546
+
547
+ },
548
+ //片区获取
549
+ async getSliceArea() {
550
+ let http = new HttpResetClass()
551
+ let getAllArea = await http.load('POST', '/rs/search', {
552
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
553
+ userid: this.userlogin.id
554
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
555
+ this.sliceArea = [{label: '全部', value: ''}]
556
+ //tag
557
+ //tag
558
+ //tag
559
+ getAllArea.data.forEach((res) => {
560
+ if(res.parentid==this.userlogin.orgid){
561
+ this.sliceArea.push({label:res.name,value:res.name})
562
+ }
563
+ })
564
+ //tag
565
+ },
566
+ //片区改变-对应抄表册下拉重新赋值
567
+ slice_areaChange(value) {
568
+ //tag
569
+ if(!value){
570
+ this.cbc=[]
571
+ this.meterbooks.forEach((res) => {
572
+ this.cbc.push({label: res.f_book_name, value: res.id})
573
+ })
574
+ }else{
575
+ this.cbc=[]
576
+ this.meterbooks.forEach((res) => {
577
+ if(res.f_book_slice_area==value){
578
+ this.cbc.push({label: res.f_book_name, value: res.id})
579
+ }
580
+ })
581
+ }
582
+ },
583
+ isChecked(v) {
584
+ // 如果全选,不在的按选中算,否则,在的按选中算
585
+ if (this.checkAll) {
586
+ return this.checkes.indexOf(v) == -1
587
+ } else {
588
+ return this.checkes.indexOf(v) != -1
589
+ }
590
+ },
591
+ setCheckAll() {
592
+ this.checkAll=this.checkAll?false:true;
593
+ // 全选改变后,清空选中数据
594
+ this.checkes = []
595
+ },
596
+ setCheckes(id) {
597
+ let index=this.checkes.indexOf(id)
598
+ if(index<0){
599
+ this.checkes.push(id)
600
+ }else{
601
+ this.checkes.splice(index,1)
602
+ }
603
+ },
604
+ },
605
+ watch: {
606
+ 'areaen'(val) {
607
+ //console.log('val=', JSON.stringify(val))
608
+ this.select_search(val, 'pqId')
609
+ }
610
+ },
611
+ events: {
612
+ onFileUpload: function (file, res) {
613
+ //tag)
614
+ //tag)
615
+ let data = {
616
+ filepath: res.f_downloadpath
617
+ }
618
+ new HttpResetClass().load('POST','/rs/logic/safe_GetUserInfoFromExcel', {data: data}, {
619
+ resolveMsg: '导入成功!已生成条件,若要去除导入条件请点击旁边 ‘清空用户编号’ 按钮。',
620
+ rejectMsg: '导入失败'
621
+ }).then((res) => {
622
+ this.uploadCodeCondition=res.data.condition
623
+ this.excelUserCondtion = false
624
+ })
625
+ },
626
+
627
+ }
628
+ }
629
+ </script>
630
+
631
+ <style scoped>
632
+ .safe-planfont{
633
+ font-family: MicrosoftYaHei;
634
+ font-size: 15px;
635
+ font-weight: normal;
636
+ font-stretch: normal;
637
+ letter-spacing: 2px;
638
+ color: #333333;
639
+ line-height: 25px;
640
+ }
641
+ .safe-bodyfont{
642
+ font-family: MicrosoftYaHei;
643
+ font-size: 14px;
644
+ font-weight: normal;
645
+ font-stretch: normal;
646
+ letter-spacing: 0px;
647
+ color: #999999;
648
+ line-height: 30px;
649
+ }
650
+ .safe-leftplan{
651
+ height:auto;
652
+ border-bottom:1px solid #ececec;
653
+ padding: 10px 5px
654
+ }
655
+ .leftplan-center{
656
+ border-top:1px solid #ececec;
657
+ border-bottom:1px solid #ececec;
658
+ }
659
+ .safe_p{
660
+ white-space: nowrap;
661
+ overflow: hidden;
662
+ text-overflow: ellipsis;
663
+ }
664
+ .safe-div-p{
665
+ color: #4792de;
666
+ text-align: end;
667
+ padding: 8px 15px;
668
+ }
669
+ </style>
670
+ <style lang="less">
671
+ .upuserinfo_sel ul{
672
+ width: 150% !important;
673
+ }
674
+ </style>