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,831 @@
1
+ <template>
2
+ <work-busy :is-busy="isSend"></work-busy>
3
+ <div class="binary" style="background-color: #e8f4ff">
4
+ <!--左侧安检计划列表******************************************************-->
5
+ <div class="binary-left flex flex-column" style="width: 16%">
6
+ <div style="height: 9%">
7
+ <div class="row auto">
8
+ <img style="width: 20px;margin: 0 5px" src="../../../../static/images/searchhover.png" @click="showUserCondition()"/>
9
+ <v-select :width="'80%'"
10
+ class="select select_list"
11
+ :search="false"
12
+ :value.sync="currentorder"
13
+ v-model="currentorder"
14
+ @change="loadCheckPlan"
15
+ :options='opt'
16
+ close-on-select value-single >
17
+ </v-select>
18
+ </div>
19
+ <div class="row auto safe-div-p"><!--<span style="margin-right: 5px" @click="refresh()" style="cursor:default">测试</span>--><span style="margin-right: 5px" @click="delCheckPlan()" style="cursor:default">删除</span> <span @click="sendCheckPlan()" style="cursor:default">下发</span></div>
20
+ </div>
21
+ <div class="leftplan-center safe_plan_list">
22
+ <div class="row safe-leftplan safe_list_li" :class="{'safe-selectplan':selectPlan.id==row.id}" v-for="row in checkplan.list.data" @click="selectPlanChange(row)">
23
+ <table style="width:100%;table-layout:fixed" >
24
+ <tr class="safe-planfont">
25
+ <td rowspan="6"><input type="checkbox" style="pointer-events:auto" v-show="row.plan_count==0 || row.f_issued=='未下发'" onClick="event.cancelBubble = true" :checked="checkplan.check.isChecked(row.f_check_item_id)" @change="checkplan.check.setCheckes(row.id)"/></td>
26
+ <td colspan="6" class="safe_p">{{row.f_plan_name}}</td>
27
+ <td colspan="2" style="text-align: center"><img width="20px" style="pointer-events:auto" onClick="event.cancelBubble = true" @click="showUpPlans(row)" src="../../../../static/images/edit.png"/></td>
28
+ </tr>
29
+ <tr class="safe-bodyfont" style="color:#4792de">
30
+ <td colspan="6">{{row.f_issued}}</td>
31
+ <td colspan="2" class="safe_p">{{row.f_checker?row.f_checker:'共享'}}</td>
32
+ </tr>
33
+ <tr class="safe-bodyfont">
34
+ <td colspan="4">{{row.f_plan_year}}-{{row.f_plan_month}}</td>
35
+ <td colspan="2">总 :</td>
36
+ <td colspan="2">{{row.plan_count}}</td>
37
+ </tr>
38
+ <tr class="safe-bodyfont">
39
+ <td colspan="2">未检 :</td>
40
+ <td colspan="2">{{row.unchecked}}</td>
41
+ <td colspan="2">已检 :</td>
42
+ <td colspan="2">{{row.checked}}</td>
43
+ </tr>
44
+ <tr class="safe-bodyfont" v-if="row.f_create_time">
45
+ <td colspan="3">创建时间 :</td>
46
+ <td colspan="5" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" :title="row.f_create_time">{{row.f_create_time}}</td>
47
+ </tr>
48
+ <tr class="safe-bodyfont" v-if="row.f_safecheck_type">
49
+ <td colspan="3">安检类型 :</td>
50
+ <td colspan="5" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" :title="row.f_safecheck_type">{{row.f_safecheck_type}}</td>
51
+ </tr>
52
+ </table>
53
+ </div>
54
+ </div>
55
+ <div style="height: 11%">
56
+ <div class="row auto leftplan-center" style="padding: 8px">
57
+ <div class="col-sm-6" style="">
58
+ <span>共{{checkplan.list.count}}条</span>
59
+ </div>
60
+ <div class="col-sm-6" style="text-align: end">
61
+ <span @click="loadMore('checkplan')"><img src="../../../../static/images/doubledown.png"/>&ensp;更多</span>
62
+ </div>
63
+ </div>
64
+ <div class="row auto" style="padding: 10px;text-align: center">
65
+ <img src="../../../../static/images/addnew.png" @click="showcCreatePlan()"/>
66
+ </div>
67
+ </div>
68
+ </div>
69
+ <!--右侧列表**************************************************************************-->
70
+ <div class="binary-right" style="width: 84%;overflow: auto">
71
+ <div style="height: 5%">
72
+ <div class="col-sm-4">
73
+ <label class="font_normal_body">公&emsp;&emsp;司</label>
74
+ <right-tree-safe :islist="false" :width="'60%'" @re-res="getRes"></right-tree-safe>
75
+ </div>
76
+ </div>
77
+ <div style="height: 95%">
78
+ <div style="height: 50%" class="leftplan-center">
79
+ <check-plan-list :selectplan="selectPlan" :userlogin="userlogin" v-ref:item></check-plan-list>
80
+ </div>
81
+ <div style="height: 50%">
82
+ <check-user-list :selectplan="selectPlan" :userlogin="userlogin" v-ref:user></check-user-list>
83
+ </div>
84
+ </div>
85
+ </div>
86
+ <modal :show.sync="showCondtion" v-ref:modal :width="'50%'" :backdrop="false">
87
+ <div slot="modal-header" class="modal-header">
88
+ <h4 class="modal-title">
89
+ 计划查询条件
90
+ </h4>
91
+ </div>
92
+ <div slot="modal-body" class="modal-body">
93
+ <div class="row">
94
+ <div class="form-group col-sm-4" >
95
+ <label class="font_normal_body">计划名称:</label>
96
+ <input type="text" class="input_search" v-model="planCondition.f_plan_name" @change="setProperty('checkplan','f_plan_name',planCondition.f_plan_name)"
97
+ style="width: 60%" placeholder="请选择" />
98
+ </div>
99
+ <div class="form-group col-sm-4" >
100
+ <label class="font_normal_body">计划年份:</label>
101
+ <v-select
102
+ class="select select_list"
103
+ :value.sync="planCondition.f_plan_year"
104
+ v-model="planCondition.f_plan_year"
105
+ @change="setProperty('checkplan','f_plan_year',planCondition.f_plan_year)"
106
+ :search="false"
107
+ :options='getConList("yearList")'
108
+ placeholder='请选择'
109
+ close-on-select
110
+ value-single
111
+ >
112
+ </v-select>
113
+ </div>
114
+ <div class="form-group col-sm-4" >
115
+ <label class="font_normal_body">计划月份:</label>
116
+ <v-select
117
+ class="select select_list"
118
+ :value.sync="planCondition.f_plan_month"
119
+ v-model="planCondition.f_plan_month"
120
+ @change="setProperty('checkplan','f_plan_month',planCondition.f_plan_month)"
121
+ :search="false"
122
+ :options='getConList("monthList")'
123
+ placeholder='请选择'
124
+ close-on-select
125
+ value-single>
126
+ </v-select>
127
+ </div>
128
+ <div class="form-group col-sm-4" >
129
+ <label class="font_normal_body">是否共享:</label>
130
+ <v-select
131
+ class="select select_list"
132
+ :value.sync="planCondition.isShare"
133
+ v-model="planCondition.isShare"
134
+ @change="setProperty('checkplan','isAndNot',planCondition.isShare)"
135
+ :options='getConList("conIsAndNot")'
136
+ :search="false"
137
+ placeholder='请选择'
138
+ close-on-select
139
+ value-single
140
+ >
141
+ </v-select>
142
+ </div>
143
+ <div class="form-group col-sm-4" >
144
+ <label class="font_normal_body">是否下发:</label>
145
+ <v-select
146
+ class="select select_list"
147
+ :value.sync="planCondition.issued"
148
+ v-model="planCondition.issued"
149
+ :options='getConList("isAndNot")'
150
+ @change="setProperty('checkplan','issude',planCondition.issued)"
151
+ placeholder='请选择'
152
+ :search="false"
153
+ close-on-select
154
+ value-single
155
+ >
156
+ </v-select>
157
+ </div>
158
+ <div class="form-group col-sm-4" >
159
+ <label class="font_normal_body">安&ensp;检&ensp;员:</label>
160
+ <v-select
161
+ class="select select_list"
162
+ :value.sync="planCondition.f_checker"
163
+ v-model="planCondition.f_checker"
164
+ @change="setProperty('checkplan','checkerid',planCondition.f_checker.id)"
165
+ :options='getConList("checker")'
166
+ placeholder='请选择'
167
+ close-on-select
168
+ value-single
169
+ >
170
+ </v-select>
171
+ </div>
172
+
173
+ <div class="form-group col-sm-4" >
174
+ <label class="font_normal_body">安检类型:</label>
175
+ <v-select
176
+ class="select select_list"
177
+ :value.sync="planCondition.f_safecheck_type"
178
+ v-model="planCondition.f_safecheck_type"
179
+ @change="setProperty('checkplan','safechecktype',planCondition.f_safecheck_type)"
180
+ :options='getConList("safechecktype")'
181
+ placeholder='请选择'
182
+ :search="false"
183
+ close-on-select
184
+ value-single
185
+ >
186
+ </v-select>
187
+ </div>
188
+ <div class="form-group col-sm-4" >
189
+ <label class="font_normal_body">创&ensp;建&ensp;人:</label>
190
+ <input type="text" class="input_search" v-model="planCondition.f_create_operator" @change="setProperty('checkplan','f_create_operator',planCondition.f_create_operator)"
191
+ style="width: 60%" placeholder="创建人" />
192
+ </div>
193
+ </div>
194
+ </div>
195
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
196
+ <button class="button_search" @click="loadCheckPlan" style="margin-right: 15px">查询</button>
197
+ <button class="button_search" @click="cancel">取消</button>
198
+ </div>
199
+ </modal>
200
+ <modal :show.sync="showCreatePlan" v-ref:modal1 :width="'50%'" :backdrop="false">
201
+ <div slot="modal-header" class="modal-header">
202
+ <h4 class="modal-title">
203
+ 新建计划
204
+ </h4>
205
+ </div>
206
+ <div slot="modal-body" class="modal-body">
207
+ <div class="row">
208
+ <div class="form-group col-sm-4" >
209
+ <label class="font_normal_body">计划名称:</label>
210
+ <input type="text" class="input_search" v-model="createPlan.f_plan_name"
211
+ style="width: 60%" placeholder="请选择" />
212
+ </div>
213
+ <div class="form-group col-sm-4" >
214
+ <label class="font_normal_body">计划年份:</label>
215
+ <v-select
216
+ class="select select_list"
217
+ :value.sync="createPlan.f_plan_year"
218
+ v-model="createPlan.f_plan_year"
219
+ :search="false"
220
+ :options='yearList'
221
+ placeholder='请选择'
222
+ close-on-select
223
+ value-single
224
+ >
225
+ </v-select>
226
+ </div>
227
+ <div class="form-group col-sm-4" >
228
+ <label class="font_normal_body">计划月份:</label>
229
+ <v-select
230
+ class="select select_list"
231
+ :value.sync="createPlan.f_plan_month"
232
+ v-model="createPlan.f_plan_month"
233
+ :search="false"
234
+ :options='monthList'
235
+ placeholder='请选择'
236
+ close-on-select
237
+ value-single>
238
+ </v-select>
239
+ </div>
240
+ <div class="form-group col-sm-4" >
241
+ <label class="font_normal_body">是否共享:</label>
242
+ <v-select
243
+ class="select select_list"
244
+ :search="false"
245
+ :value.sync="createPlan.isShare"
246
+ v-model="createPlan.isShare"
247
+ :options='isAndNot'
248
+ placeholder='请选择'
249
+ close-on-select
250
+ value-single
251
+ >
252
+ </v-select>
253
+ </div>
254
+ <div class="form-group col-sm-4" v-show="createPlan.isShare=='否'">
255
+ <label class="font_normal_body">安&ensp;检&ensp;员:</label>
256
+ <v-select
257
+ class="select select_list"
258
+ :value.sync="createPlan.checker"
259
+ v-model="createPlan.checker"
260
+ :options='checker'
261
+ placeholder='请选择'
262
+ close-on-select
263
+ value-single
264
+ >
265
+ </v-select>
266
+ </div>
267
+
268
+ <div class="form-group col-sm-4" >
269
+ <label class="font_normal_body">安检类型:</label>
270
+ <v-select
271
+ class="select select_list"
272
+ :value.sync="createPlan.f_safecheck_type"
273
+ v-model="createPlan.f_safecheck_type"
274
+ :search="false"
275
+ :options='ntoway'
276
+ placeholder='请选择'
277
+ close-on-select
278
+ value-single
279
+ >
280
+ </v-select>
281
+ </div>
282
+ </div>
283
+ </div>
284
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
285
+ <button class="button_search" style="margin-right: 15px" @click="addNewPlan()">创建计划</button>
286
+ <button class="button_search" @click="cancel">取消</button>
287
+ </div>
288
+ </modal>
289
+ <modal :show.sync="showUpPlan" v-ref:modal2 :backdrop="false">
290
+ <div slot="modal-header" class="modal-header">
291
+ <h4 class="modal-title">
292
+ 修改计划
293
+ </h4>
294
+ </div>
295
+ <div slot="modal-body" class="modal-body">
296
+ <div class="row">
297
+ <div class="form-group col-sm-4" >
298
+ <label class="font_normal_body">计划名称:</label>
299
+ <input type="text" class="input_search" v-model="upCheckPlan.f_plan_name"
300
+ style="width: 60%" />
301
+ </div>
302
+ <div class="form-group col-sm-4" >
303
+ <label class="font_normal_body">计划年份:</label>
304
+ <v-select
305
+ class="select select_list"
306
+ :value.sync="upCheckPlan.f_plan_year"
307
+ v-model="upCheckPlan.f_plan_year"
308
+ :search="false"
309
+ :value="upCheckPlan.f_plan_year"
310
+ :options='yearList'
311
+
312
+ close-on-select
313
+ value-single>
314
+
315
+
316
+ </v-select>
317
+ <!-- <datepicker
318
+ placeholder='请选择'
319
+ style="width:60%"
320
+ :disabled-days-of-week="[]"
321
+ :format="'yyyy'"
322
+ :show-rest-button="reset"
323
+ :value.sync="upCheckPlan.f_plan_year"
324
+ v-model="upCheckPlan.f_plan_year">
325
+ </datepicker>-->
326
+ </div>
327
+ <div class="form-group col-sm-4" >
328
+ <label class="font_normal_body">计划月份:</label>
329
+ <v-select
330
+ class="select select_list"
331
+ :value.sync="upCheckPlan.f_plan_month"
332
+ v-model="upCheckPlan.f_plan_month"
333
+
334
+ :options='monthList'
335
+ close-on-select
336
+ value-single>
337
+ </v-select>
338
+ </div>
339
+ <div class="form-group col-sm-4" >
340
+ <label class="font_normal_body">是否共享:</label>
341
+ <v-select
342
+ class="select select_list"
343
+ :search="false"
344
+ :value.sync="upCheckPlan.isShare"
345
+ v-model="upCheckPlan.isShare"
346
+ :options='isAndNot'
347
+ placeholder='请选择'
348
+ close-on-select
349
+ value-single
350
+ >
351
+ </v-select>
352
+ </div>
353
+ <div class="form-group col-sm-4" v-show="upCheckPlan.isShare=='否'">
354
+ <label class="font_normal_body">安&ensp;检&ensp;员:</label>
355
+ <v-select
356
+ class="select select_list"
357
+ :value.sync="upCheckPlan.checker"
358
+ v-model="upCheckPlan.checker"
359
+ :options='checker'
360
+ close-on-select
361
+ value-single
362
+ >
363
+ </v-select>
364
+ </div>
365
+
366
+ <div class="form-group col-sm-4">
367
+ <label class="font_normal_body">安检类型:</label>
368
+ <v-select
369
+ class="select select_list"
370
+ :value.sync="upCheckPlan.f_safecheck_type"
371
+ v-model="upCheckPlan.f_safecheck_type"
372
+ :options='ntoway'
373
+ close-on-select
374
+ value-single
375
+ >
376
+ </v-select>
377
+ </div>
378
+ </div>
379
+ </div>
380
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
381
+ <button class="button_search" style="margin-right: 15px" @click="upPlan()">保存修改</button>
382
+ <button class="button_search" @click="cancel">取消</button>
383
+ </div>
384
+ </modal>
385
+ </div>
386
+ </template>
387
+
388
+ <script>
389
+ import {SearchList,HttpResetClass, PagedList} from "vue-client";
390
+ import * as Util from "../../Util";
391
+ import Vue from "vue";
392
+
393
+ export default {
394
+ name: "PlanManage",
395
+ title: '计划管理',
396
+ data() {
397
+ return {
398
+ a:'1',
399
+ opt:[{label:"按时间降序",value:"按时间降序"},{label:"按时间升序",value:"按时间升序"}],
400
+ currentorder:'按时间降序',
401
+ checkplan : new SearchList(true),
402
+ selectPlan:{id:''},
403
+ upCheckPlan:{
404
+ f_plan_name:'',
405
+ f_safecheck_type:'',
406
+ f_plan_year:'',
407
+ f_plan_month:'',
408
+ f_checker_id:'',
409
+ isShare:'',
410
+ f_checker:'',
411
+ checker:{}
412
+ },
413
+ isSend:false,
414
+ createPlan:{
415
+ f_plan_name:'',
416
+ f_plan_year:'',
417
+ f_plan_month:'',
418
+ isShare:'否',
419
+ f_issued:'否',
420
+ f_checker_id:null,
421
+ checker:{},
422
+ f_checker:null,
423
+ f_safecheck_type:'',
424
+ },
425
+ planCondition:{},
426
+ showCondtion:false,
427
+ showCreatePlan:false,
428
+ showUpPlan:false,
429
+ isAndNot:[{label:'是',value:'是'},{label:'否',value:'否'}],
430
+ conIsAndNot:[{label:'是',value:'is null'},{label:'否',value:'is not null'}],
431
+ 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}],
432
+ 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}],
433
+ safechecktype:[{label:'年度普检',value:'年度普检'}],
434
+ checker:[],
435
+ checkertCon:[],
436
+ userlogin:{
437
+ id:this.$login.f.id,
438
+ name:this.$login.f.name,
439
+ orgid:this.$login.f.orgid,
440
+ orgstr:this.$login.f.orgs,
441
+ }
442
+ //需要测试直接把下面放开即可
443
+ /*userlogin:{
444
+ id:'141701',
445
+ name:'hwq',
446
+ orgid:'35526',
447
+ orgstr:'西华县天然气有限公司'
448
+ }*/
449
+ }
450
+ },
451
+ async ready(){
452
+ await this.loadpage()
453
+ },
454
+ computed: {
455
+ ntoway() {
456
+ /*/!* return AppData.getParam('安检类型')*!/*/
457
+ return this.$appdata.getParam('安检类型')
458
+ }
459
+ },
460
+ methods:{
461
+ /* ntoway() {
462
+ /!* return AppData.getParam('安检类型')*!/
463
+ return Vue.$appdata.getParam('安检类型')
464
+ },*/
465
+ async loadpage(){
466
+ //await this.checkplan.searchList("/rs/sql/预约计划下发", {},{groupitem:"",f_filialeids:"('"+this.userlogin.orgid+"')",orderitem:"f_create_time desc"})
467
+ await this.loadCheckPlan()
468
+ await this.searchChecker(this.userlogin.id)
469
+ },
470
+ getRes(obj) {
471
+ console.log("----obj"+JSON.stringify(obj.resids))
472
+ console.log(obj)
473
+ if(obj.resids.length>0 && obj.resids[0]!=this.userlogin.orgid && obj.resids[0]){
474
+ this.userlogin.orgid=obj.resids[0]
475
+ this.userlogin.orgstr=obj.res[0]
476
+ if(this.$refs.item && this.$refs.user){
477
+ this.loadpage()
478
+ this.selectPlan={id:""}
479
+ this.$refs.item.model.rows=[]
480
+ this.$refs.user.model.rows=[]
481
+ this.$refs.user.loadpage()
482
+ }
483
+ }
484
+ },
485
+ getConList(field){
486
+ return [{label:'全部',value:''}, ...this[field]]
487
+ },
488
+ selectPlanChange(plan){
489
+ this.selectPlan=plan
490
+ //this.upCheckPlan=plan
491
+ },
492
+ showUserCondition(){
493
+ this.showCondtion=true
494
+ },
495
+ showcCreatePlan(){
496
+ this.showCreatePlan=true
497
+ },
498
+ cancel(){
499
+ this.showCondtion=false
500
+ this.showCreatePlan=false
501
+ this.showUpPlan=false
502
+ },
503
+ //新建计划
504
+ async addNewPlan() {
505
+ if(!this.validationCreatePlan()){
506
+ return
507
+ }
508
+ this.isSend=true
509
+ let res=await new HttpResetClass().load("POST","/rs/sql/getCheckplan", {data: {condition:"f_plan_name='"+this.createPlan.f_plan_name+"'",sortfield:'f_create_time desc'}})
510
+ console.log("结果-"+res.data.length)
511
+ if(res.data.length>0){
512
+ Vue.showMessage("计划名称不能重复!")
513
+ this.isSend=false
514
+ return
515
+ }
516
+ if(this.createPlan.isShare=="是"){
517
+ this.createPlan.f_checker_id=null
518
+ this.createPlan.f_checker=null
519
+ }else{
520
+ this.createPlan.f_checker_id=this.createPlan.checker.id
521
+ this.createPlan.f_checker=this.createPlan.checker.name
522
+ }
523
+ console.log("this.createPlan.f_checker:"+this.createPlan.f_checker)
524
+ this.createPlan.f_plan_type='预约计划'
525
+ this.createPlan.f_subcompany=this.userlogin.orgstr
526
+ this.createPlan.f_filialeid=this.userlogin.orgid
527
+ this.createPlan.f_create_operator=this.userlogin.name
528
+ this.createPlan.f_create_time=Util.toStandardTimeString()
529
+ await new HttpResetClass().load('POST',"/rs/logic/createCheckPlan", {"data": this.createPlan},{resolveMsg : '新建计划成功!', rejectMsg : '新建计划失败!'})
530
+ //await this.loadCheckPlan('',()=>{})
531
+ this.createPlan={
532
+ f_plan_name:'',
533
+ f_plan_year:'',
534
+ f_plan_month:'',
535
+ isShare:'否',
536
+ f_issued:'否',
537
+ f_checker_id:null,
538
+ checker:{},
539
+ f_checker:null,
540
+ f_safecheck_type:'',
541
+ f_create_operator:''
542
+ }
543
+ await this.loadCheckPlan()
544
+ this.isSend=false
545
+
546
+ },
547
+ validationCreatePlan(){
548
+ if(!this.createPlan.f_plan_name){
549
+ Vue.showMessage("请输入安检计划名称!")
550
+ return false
551
+ }
552
+ if(!this.createPlan.f_plan_year){
553
+ Vue.showMessage("请选择安检年份!")
554
+ return false
555
+ }
556
+ if(!this.createPlan.f_plan_month){
557
+ Vue.showMessage("请选择安检月份!")
558
+ return false
559
+ }
560
+ if(this.createPlan.isShare=="否"){
561
+ if(JSON.stringify(this.createPlan.checker)=='{}'){
562
+ Vue.showMessage("请选择安检人员!")
563
+ return false
564
+ }
565
+ }else{
566
+ this.createPlan.f_checker=''
567
+ }
568
+ if(!this.createPlan.f_safecheck_type){
569
+ Vue.showMessage("请选择安检类型!")
570
+ return false
571
+ }
572
+ return true
573
+ },
574
+ //查询安检员selectChanged
575
+ async searchChecker(id){
576
+ let res=await new HttpResetClass().load('POST', '/rs/search', {
577
+ source: 'tool.getChildrenOfResName($安检员$)',
578
+ userid: id
579
+ }, {resolveMsg: null, rejectMsg: null})
580
+ this.checker=[]
581
+ res.data.forEach((resRow) => {
582
+ if(resRow.orgid==this.userlogin.orgid){
583
+ this.checker.push({label:resRow.name,value:resRow})
584
+ }
585
+ })
586
+ },
587
+ //设置属性值
588
+ setProperty(modulename, property, value) {
589
+ console.log(modulename+"新添--"+property+"--"+value)
590
+ if(value=='全部'){
591
+ this[modulename].search.setField(property, '')
592
+ }else{
593
+ this[modulename].search.setField(property, value)
594
+ }
595
+ },
596
+ //按条件查询所有安检计划
597
+ async loadCheckPlan() {
598
+ this.isSend=true
599
+ this.checkplan.check.checkes=[]
600
+ let fieldValue=''
601
+ switch(this.currentorder){
602
+ case "按时间降序":
603
+ fieldValue='f_create_time desc'
604
+ break
605
+ case "按时间升序":
606
+ fieldValue='f_create_time'
607
+ break
608
+ }
609
+ console.log("--------fieldValue"+fieldValue)
610
+ this.cancel()
611
+ await this.checkplan.searchList("/rs/sql/预约计划下发",
612
+ {"f_plan_name": "f_plan_name like '%{}%'",
613
+ "f_plan_year":"f_plan_year={}",
614
+ "f_plan_month":"f_plan_month={}",
615
+ "checkerid":"f_checker_id='{}'",
616
+ "isAndNot":"f_checker {}",
617
+ "safechecktype":"f_safecheck_type='{}'",
618
+ "issude":"f_issued = '{}'",
619
+ "f_create_operator": "f_create_operator like '%{}%'"
620
+ },
621
+ {orderitem:fieldValue,
622
+ f_filialeids:"('"+this.userlogin.orgid+"')",
623
+ groupitem:""
624
+ }
625
+ )
626
+
627
+ this.isSend=false
628
+ },
629
+ //加载更多数据
630
+ async loadMore(modelname) {
631
+ this.isSend=true
632
+ await this[modelname].list.loadMore()
633
+ this.isSend=false
634
+ },
635
+ showUpPlans(row){
636
+ this.upCheckPlan.id=row.id
637
+ this.upCheckPlan.f_safecheck_type=row.f_safecheck_type
638
+ this.upCheckPlan.f_plan_name=row.f_plan_name
639
+ this.upCheckPlan.f_plan_year=row.f_plan_year
640
+ this.upCheckPlan.f_plan_month=row.f_plan_month
641
+ this.upCheckPlan.f_checker_id=row.f_checker_id?row.f_checker_id:null
642
+ this.upCheckPlan.f_checker=row.f_checker?row.f_checker:null
643
+ this.upCheckPlan.isShare=row.f_checker_id?'否':'是'
644
+ this.upCheckPlan.f_issued=row.f_issued
645
+ this.upCheckPlan.checker={id:row.f_checker_id,name:row.f_checker}
646
+ this.showUpPlan=true
647
+ },
648
+ async upPlan(){
649
+ if(this.upCheckPlan.f_issued=='已下发'){
650
+ this.$showMessage("该计划已下发,无法进行修改!")
651
+ return
652
+ }
653
+ if(!this.upCheckPlan.f_plan_name){
654
+ Vue.showMessage("请输入安检计划名称!")
655
+ return false
656
+ }
657
+ if(!this.upCheckPlan.f_plan_year){
658
+ Vue.showMessage("请选择安检年份!")
659
+ return false
660
+ }
661
+ if(!this.upCheckPlan.f_plan_month){
662
+ Vue.showMessage("请选择安检月份!")
663
+ return false
664
+ }
665
+ console.log(this.upCheckPlan)
666
+
667
+ if(this.upCheckPlan.isShare=="是"){
668
+ this.upCheckPlan.f_checker_id=null
669
+ this.upCheckPlan.f_checker=null
670
+ }else{
671
+ this.upCheckPlan.f_checker_id=this.upCheckPlan.checker.id
672
+ this.upCheckPlan.f_checker=this.upCheckPlan.checker.name
673
+ }
674
+ this.isSend=true
675
+ let res=await new HttpResetClass().load("POST", "/rs/logic/updateCheckPlan", {
676
+ data:{
677
+ f_checker:this.upCheckPlan.f_checker,
678
+ f_safecheck_type:this.upCheckPlan.f_safecheck_type,
679
+ f_checker_id:this.upCheckPlan.f_checker_id,
680
+ f_plan_name:this.upCheckPlan.f_plan_name,
681
+ f_plan_year:this.upCheckPlan.f_plan_year,
682
+ f_plan_month:this.upCheckPlan.f_plan_month,
683
+ f_plan_id:this.upCheckPlan.id
684
+ }
685
+ }, {resolveMsg: null, rejectMsg: null})
686
+ if(res.data.code==200){
687
+ this.$showMessage("修改成功!")
688
+ this.cancel()
689
+ await this.loadCheckPlan()
690
+ }else{
691
+ this.$showMessage("修改失败!")
692
+ }
693
+ this.isSend=false
694
+ },
695
+ //下发安检计划
696
+ async sendCheckPlan(f){
697
+ if(this.checkplan.check.checkes.length<1){
698
+ this.$showMessage("请选择要下发的安检计划")
699
+ return
700
+ }
701
+ this.isSend=true
702
+ let res=await new HttpResetClass().load("POST", "/rs/logic/NewBespeakCheckPlan", {
703
+ data:{
704
+ f_issued:'是',
705
+ f_issue_time:Util.toStandardTimeString(),
706
+ f_send_operator:this.userlogin.name,
707
+ param:this.checkplan.check.checkes,
708
+ }
709
+ }, {resolveMsg: null, rejectMsg: null})
710
+ if(res.data.code==200){
711
+ //Vue.showMessage("下发成功!其中有"+res.data.repet+"个计划己经是下发状态")
712
+ this.$showMessage("下发成功!")
713
+ }else{
714
+ this.$showMessage("下发失败!")
715
+ }
716
+ await this.loadCheckPlan()
717
+ this.isSend=false
718
+ },
719
+ //删除安检计划
720
+ async delCheckPlan(f){
721
+ if(this.checkplan.check.checkes.length<1){
722
+ this.$showMessage("请选择要删除的安检计划")
723
+ return
724
+ }
725
+ this.isSend=true
726
+ let res=await new HttpResetClass().load("POST", "/rs/logic/deleteCheckPlan", {
727
+ data:{
728
+ f_operator:this.userlogin.orgstr,//global.login.name,
729
+ condition:"",
730
+ switchCheckAll:true,
731
+ checkAll:false,
732
+ param:this.checkplan.check.checkes,
733
+ columnName: "f_plan_id"
734
+ }
735
+ }, {resolveMsg: null, rejectMsg: null})
736
+ console.log(JSON.stringify(res))
737
+ if(res.data.code==200){
738
+ this.$showMessage("删除成功!")
739
+ }else{
740
+ this.$showMessage("删除失败!")
741
+ }
742
+ if(this.checkplan.check.checkes.indexOf(this.selectPlan.id)!= -1){
743
+ this.selectPlan={id:''}
744
+ console.log("包含了清空selectplan")
745
+ }
746
+ await this.loadCheckPlan()
747
+ this.isSend=false
748
+ },
749
+ async refresh(){
750
+ this.$refs.item.$refs.paged.$refs.criteria.search()
751
+ this.$refs.user.$refs.paged.$refs.criteria.search()
752
+ await this.loadCheckPlan()
753
+ },
754
+ async refreshPlan(){
755
+ this.$refs.item.$refs.paged.$refs.criteria.search()
756
+ await this.loadCheckPlan()
757
+ }
758
+ }
759
+ }
760
+ </script>
761
+
762
+ <style scoped>
763
+ .safe-planfont{
764
+ font-family: MicrosoftYaHei;
765
+ font-size: 15px;
766
+ font-weight: normal;
767
+ font-stretch: normal;
768
+ letter-spacing: 2px;
769
+ color: #333333;
770
+ line-height: 25px;
771
+ }
772
+ .safe-bodyfont{
773
+ font-family: MicrosoftYaHei;
774
+ font-size: 14px;
775
+ font-weight: normal;
776
+ font-stretch: normal;
777
+ letter-spacing: 0px;
778
+ color: #999999;
779
+ line-height: 30px;
780
+ }
781
+ .safe-leftplan{
782
+ height:auto;
783
+ border-bottom:1px solid #ececec;
784
+ padding: 10px 5px
785
+ }
786
+ .leftplan-center{
787
+ border-top:1px solid #ececec;
788
+ border-bottom:1px solid #ececec;
789
+ }
790
+ .safe_p{
791
+ white-space: nowrap;
792
+ overflow: hidden;
793
+ text-overflow: ellipsis;
794
+ }
795
+ .safe-div-p{
796
+ color: #4792de;
797
+ text-align: end;
798
+ padding: 8px 15px;
799
+ }
800
+ .safe_list_li:hover{
801
+ background-color: rgb(245,246,247);
802
+ }
803
+ .safe-selectplan{
804
+ pointer-events: none;
805
+ background-color: rgb(216,234,251);
806
+ }
807
+ .safe_plan_list{
808
+ height: 80%;
809
+ overflow: scroll;
810
+ }
811
+
812
+ </style>
813
+ <style>
814
+ .safe_plan_list::-webkit-scrollbar{
815
+ background-color: #F5F5F5;
816
+ }
817
+
818
+ /*定义滚动条轨道 内阴影+圆角*/
819
+ .safe_plan_list::-webkit-scrollbar-track{
820
+ -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
821
+ border-radius: 10px;
822
+ background-color: #F5F5F5;
823
+ }
824
+
825
+ /*定义滑块 内阴影+圆角*/
826
+ .safe_plan_list::-webkit-scrollbar-thumb{
827
+ border-radius: 10px;
828
+ -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
829
+ background-color: #F5F5F5;
830
+ }
831
+ </style>