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