safecheck-client 3.0.33-15 → 3.0.33-152

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