safecheck-client 4.0.0-8 → 4.0.0-80

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