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,373 @@
1
+ <template>
2
+ <div>
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <div partial>
6
+ <div class="row">
7
+ <label class="form-group font_normal_body"><b>计划信息</b></label>
8
+ <div class="form-group col-sm-1" v-show="false">
9
+ <!--隐藏条件-->
10
+ <input type="text" class="input_search" v-model="model.f_plan_id"
11
+ style="width: 95%" placeholder="计划id" condition=" i.f_plan_id='{}'">
12
+ </div>
13
+ <div class="form-group col-sm-1" >
14
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
15
+ style="width: 95%" placeholder="客户编号" condition="i.f_userinfo_code='{}'">
16
+ </div>
17
+ <div class="form-group col-sm-1" >
18
+ <input type="text" class="input_search" v-model="model.f_user_name"
19
+ style="width: 95%" placeholder="客户名称" condition="i.f_user_name like '%{}%'">
20
+ </div>
21
+ <div class="form-group col-sm-1" >
22
+ <input type="text" class="input_search" v-model="model.f_address"
23
+ style="width: 95%" placeholder="客户地址" condition="i.f_address like '%{}%'">
24
+ </div>
25
+ <!--<div class="form-group col-sm-1" >
26
+ <v-select :width="'95%'"
27
+ class="select select_list"
28
+ :value.sync="$parent.$parent.f_state"
29
+ v-model="$parent.$parent.f_state"
30
+ :options='$parent.$parent.checkState'
31
+ placeholder='安检状态'
32
+ close-on-select
33
+ value-single
34
+ >
35
+ </v-select>
36
+ </div>-->
37
+ <div class="form-group col-sm-3" >
38
+ <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUserCondition()">更多条件</button>
39
+ <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
40
+ <!-- <button class="button_search" style="margin-right: 10px" @click="clear()">清除</button>-->
41
+ <!-- <export-excel-safe :data="$parent.$parent.exportParameter"-->
42
+ <!-- :field="$parent.$parent.exportExcelField"-->
43
+ <!-- style="margin-left: 0px"-->
44
+ <!-- sqlurl="rs/logic/SafeExportExcel" sql-name="planItem"-->
45
+ <!-- :template-name="$parent.$parent.selectplan.f_plan_name + '安检计划导出'" :choose-col="true">-->
46
+ <!-- </export-excel-safe>-->
47
+ <export-excel-old :data="$parent.$parent.exportParameter"
48
+ :field="$parent.$parent.exportExcelField"
49
+ progress="safeGetExportProgress"
50
+ sqlurl="rs/logic/SafeExportExcel" sql-name="planItem" :template-name="$parent.$parent.selectplan.f_plan_name + '安检计划导出'"></export-excel-old>
51
+ </div>
52
+ <div class="form-group col-sm-2 safe_p">
53
+ <label class="font_normal_body" :title="$parent.$parent.selectplan.f_plan_name">{{$parent.$parent.selectplan.f_plan_name?'当前选中 : '+$parent.$parent.selectplan.f_plan_name:''}}</label>
54
+ </div>
55
+ <div class="form-group col-sm-2" style="float: right">
56
+ <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.showplanModal()">计划调整</button>
57
+ <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.delPlanItem()" v-show="$parent.$parent.isdelete">移出计划</button>
58
+ </div>
59
+ <modal :show.sync="$parent.$parent.showCondtion" v-ref:modal :width="'50%'" :backdrop="false">
60
+ <div slot="modal-header" class="modal-header">
61
+ <h4 class="modal-title">
62
+ 计划内用户查询条件
63
+ </h4>
64
+ </div>
65
+ <div slot="modal-body" class="modal-body">
66
+ <div class="row">
67
+ <div class="form-group col-sm-4" >
68
+ <label class="font_normal_body">是否已检:</label>
69
+ <v-select
70
+ class="select select_list"
71
+ :value.sync="model.f_state"
72
+ v-model="model.f_state"
73
+ :options='$parent.$parent.checkState'
74
+ @change="$parent.$parent.checkStateChange(model.f_state)"
75
+ placeholder='请选择'
76
+ condition="i.f_state='{}'"
77
+ close-on-select
78
+ value-single
79
+ >
80
+ </v-select>
81
+ </div>
82
+ <div class="form-group col-sm-4" >
83
+ <label class="font_normal_body">安检结果:</label>
84
+ <v-select
85
+ class="select select_list"
86
+ :value.sync="model.f_check_state"
87
+ v-model="model.f_check_state"
88
+ :options='$parent.$parent.checkResults'
89
+ placeholder='请选择'
90
+ condition="i.f_last_check_state='{}'"
91
+ close-on-select
92
+ value-single
93
+ >
94
+ </v-select>
95
+ </div>
96
+ <div class="form-group col-sm-4" >
97
+ <label class="font_normal_body">安检起始:</label>
98
+ <datepicker
99
+ placeholder='请选择'
100
+ style="width:60%"
101
+ :disabled-days-of-week="[]"
102
+ :format="'yyyy-MM-dd'"
103
+ :show-rest-button="reset"
104
+ :value.sync="model.f_startfile_time"
105
+ v-model="model.f_startfile_time"
106
+ condition="i.f_last_check_date >='{} 00:00:00'">
107
+ </datepicker>
108
+ </div>
109
+ <div class="form-group col-sm-4" >
110
+ <label class="font_normal_body">安检截止:</label>
111
+ <datepicker
112
+ placeholder='请选择'
113
+ :disabled-days-of-week="[]"
114
+ style="width:60%"
115
+ :format="'yyyy-MM-dd'"
116
+ :show-rest-button="reset"
117
+ :value.sync="model.f_endfile_time"
118
+ v-model="model.f_endfile_time"
119
+ condition="i.f_last_check_date <='{} 00:00:00'">
120
+ </datepicker>
121
+ </div>
122
+ </div>
123
+ </div>
124
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
125
+ <button class="button_search" style="margin-right: 15px" @click="search()">查询</button>
126
+ <button class="button_search" @click="$parent.$parent.cancel">取消</button>
127
+ </div>
128
+ </modal>
129
+ </div>
130
+ </div>
131
+ </criteria>
132
+ <data-grid :model="model" partial='list' class="table_sy">
133
+
134
+ <template partial='head'>
135
+ <tr>
136
+ <th><nobr><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.checkAll" @change="$parent.$parent.$parent.setCheckAll()"/> 全选</nobr></th>
137
+ <th><nobr>用户编号</nobr></th>
138
+ <th><nobr>用户名称</nobr></th>
139
+ <th><nobr>用户电话</nobr></th>
140
+ <th><nobr>用户类型</nobr></th>
141
+ <th><nobr>小区名称</nobr></th>
142
+ <th><nobr>安检状态</nobr></th>
143
+ <th><nobr>地址</nobr></th>
144
+ </tr>
145
+ </template>
146
+ <template partial='body'>
147
+ <td style="text-align: center;white-space:nowrap;"><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.isChecked(row.f_check_item_id)" @change="$parent.$parent.$parent.setCheckes(row.f_check_item_id)" /></td>
148
+ <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
149
+ <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
150
+ <td style="text-align: center"><nobr>{{row.f_user_phone}}</nobr></td>
151
+ <td style="text-align: center"><nobr>{{row.f_user_type}}</nobr></td>
152
+ <td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
153
+ <td style="text-align: center"><nobr>{{row.f_state==='已检'?row.f_last_check_state:'未检'}}</nobr></td>
154
+ <td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
155
+ </template>
156
+ </data-grid>
157
+ </criteria-paged>
158
+ <modal :show.sync="showPlanModal" v-ref:modalp>
159
+ <div slot="modal-header" class="modal-header">
160
+ <h4 class="modal-title">
161
+ 计划内用户调整
162
+ </h4>
163
+ </div>
164
+ <div slot="modal-body" class="modal-body">
165
+ <plan-chooser :f.sync="userlogin.orgid" v-ref:chooser></plan-chooser>
166
+ </div>
167
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
168
+ <button class="button_search" style="margin-right: 15px" @click="dragtoOtherPlanIteem">确认</button>
169
+ <button class="button_search" @click="cancel">取消</button>
170
+ </div>
171
+ </modal>
172
+ </div>
173
+ </template>
174
+
175
+ <script>
176
+ import {HttpResetClass, PagedList} from "vue-client";
177
+ import Vue from "vue";
178
+
179
+ export default {
180
+ name: "PlanManage",
181
+ title: '计划管理',
182
+ data() {
183
+ return {
184
+ model:new PagedList('/rs/sql/planItem', 100, {}),
185
+ isdelete:this.$login.r ? this.$login.r.includes("安检计划删除"):false,
186
+ a:'1',
187
+ opt:[{label:"测试",value:"测试"}],
188
+ showCondtion:false,
189
+ checkAll:false,
190
+ checkes:[],
191
+ checkResults:[{label:'到访不遇',value:'到访不遇'},{label:'拒检',value:'拒检'},{label:'入户',value:'入户'}],
192
+ checkState:[{label:'全部',value:''},{label:'未检',value:'未检'},{label:'已检',value:'已检'}],
193
+ showPlanModal:false,
194
+ exportExcelField: {
195
+ 'f_userinfo_code':'用户编号',
196
+ 'f_user_name':'用户名称',
197
+ 'f_user_type':'用户类型',
198
+ 'f_residential_area':'小区名称',
199
+ 'f_state':'安检状态',
200
+ 'f_address':'地址',
201
+ 'f_user_phone':'用户电话',
202
+ 'f_newfile_date':'建档日期'
203
+ }
204
+ }
205
+ },
206
+ props:["selectplan","userlogin"],
207
+ ready(){
208
+
209
+ },
210
+ computed:{
211
+ exportParameter(){
212
+ // excel 导出条件拼接
213
+ return {
214
+ condition: this.$refs.paged.model.condition,
215
+ groupName: this.groupNameForSql
216
+ }
217
+ }
218
+ },
219
+ methods:{
220
+ clear(){
221
+ this.model.f_plan_id = '';
222
+ this.model.f_userinfo_code = '';
223
+ this.model.f_user_name = '';
224
+ this.model.f_address='';
225
+
226
+ },
227
+ //将某个计划下的一项拖到另一个计划
228
+ async dragtoOtherPlanIteem() {
229
+ //tag)
230
+
231
+ if (!this.$refs.modalp.$children[0].selectedRow.id) {
232
+ this.$showMessage("请选择需要调整到那个计划中!")
233
+ return
234
+ }
235
+ this.$parent.isSend=true
236
+ try{
237
+ let res=await new HttpResetClass().load("POST", "/rs/logic/UpCheckPlanItem", {
238
+ data:{
239
+ f_operator:this.userlogin.name,
240
+ f_plan_id:this.$refs.modalp.$children[0].selectedRow.id,
241
+ condition:this.model.condition,
242
+ switchCheckAll:true,
243
+ checkAll:this.checkAll,
244
+ param:this.checkes,
245
+ columnName: "i.id"
246
+ }
247
+ }, {resolveMsg: null, rejectMsg: null})
248
+ this.$parent.isSend=false
249
+ if(res.data.code==200){
250
+ this.$showMessage("更换安检计划成功!")
251
+ this.$parent.refreshPlan()
252
+ }else{
253
+ this.$showMessage("更换安检计划失败!")
254
+ }
255
+ }catch (e) {
256
+ this.$parent.isSend=false
257
+ this.$showMessage("更换安检计划失败!")
258
+ }
259
+ },
260
+ showplanModal(){
261
+ if(!this.selectplan || !this.selectplan.id){
262
+ this.$showMessage("请先打开一个计划再进行操作")
263
+ return
264
+ }
265
+ if(!this.checkAll && this.checkes.length==0){
266
+ this.$showMessage("请先在计划中勾选你要调整的用户!")
267
+ return
268
+ }
269
+ this.showPlanModal=true
270
+ },
271
+ showUserCondition(){
272
+ this.showCondtion=true
273
+ },
274
+ isChecked(v) {
275
+ // 如果全选,不在的按选中算,否则,在的按选中算
276
+ if (this.checkAll) {
277
+ return this.checkes.indexOf(v) == -1
278
+ } else {
279
+ return this.checkes.indexOf(v) != -1
280
+ }
281
+ },
282
+ setCheckAll() {
283
+ this.checkAll=this.checkAll?false:true;
284
+ // 全选改变后,清空选中数据
285
+ this.checkes = []
286
+ },
287
+ setCheckes(id) {
288
+ let index=this.checkes.indexOf(id)
289
+ if(index<0){
290
+ this.checkes.push(id)
291
+ }else{
292
+ this.checkes.splice(index,1)
293
+ }
294
+ },
295
+ cancel(){
296
+ this.showCondtion=false
297
+ this.showPlanModal=false
298
+ },
299
+ selfSearch (args) {
300
+ if(!this.selectplan.id){
301
+ this.$showMessage("请先选择一个计划!")
302
+ return
303
+ }
304
+ this.cancel()
305
+ this.checkes=[]
306
+ this.checkAll=false
307
+ args.condition+= ` and i.f_state!= '作废'`
308
+ this.model.search(args.condition, args.model, args.condValue)
309
+ },
310
+ checkStateChange(val){
311
+ if(val=='未检'){
312
+ this.checkResults=[]
313
+ this.$refs.paged.$refs.criteria.model.f_check_state=''
314
+ }else{
315
+ this.checkResults=[{label:'到访不遇',value:'到访不遇'},{label:'拒检',value:'拒检'},{label:'入户',value:'入户'}]
316
+ }
317
+ },
318
+ //修改计划项状态为作废
319
+ async delPlanItem() {
320
+ if(!this.selectplan || !this.selectplan.id){
321
+ this.$showMessage("请先打开一个计划再进行操作")
322
+ return
323
+ }
324
+ if(!this.checkAll && this.checkes.length==0){
325
+ this.$showMessage("请先在计划中勾选你要作废的用户!")
326
+ return
327
+ }
328
+ this.$showMessage("此操作无法撤回,确定要执行作废安检单操作吗?",['confirm','cancel']).then((button)=>{
329
+ if(button=='confirm'){
330
+ let resu=new HttpResetClass().load("POST", "/rs/logic/UpCheckPlanItemState", {
331
+ data: {
332
+ f_operator:this.userlogin.name,
333
+ condition:this.model.condition,
334
+ switchCheckAll:true,
335
+ checkAll:this.checkAll,
336
+ param:this.checkes,
337
+ columnName: "i.id"
338
+ }
339
+ }, {resolveMsg: null, rejectMsg: null}).then((resu)=>{
340
+
341
+ //tag)
342
+ if(resu.data.code==200){
343
+ this.$showMessage("移除安检单成功! 成功移除:"+resu.data.res.up+"条"+(resu.data.res.noup>0?"有"+resu.data.res.noup+"条已经不是 ‘未检’ 状态!":""))
344
+ //this.checkes=[]
345
+ //this.checkAll=false
346
+ this.$parent.refresh()
347
+ }else{
348
+ this.$showMessage("取消安检计划失败!")
349
+ }
350
+ })
351
+ }
352
+ })
353
+ }
354
+ },
355
+ watch:{
356
+ 'selectplan.id' (){
357
+ //tag
358
+ if(this.selectplan.id){
359
+ this.$refs.paged.$refs.criteria.model.f_plan_id=this.selectplan.id
360
+ this.$refs.paged.$refs.criteria.search()
361
+ }
362
+ }
363
+ }
364
+ }
365
+ </script>
366
+
367
+ <style scoped>
368
+ .safe_p{
369
+ white-space: nowrap;
370
+ overflow: hidden;
371
+ text-overflow: ellipsis;
372
+ }
373
+ </style>
@@ -8,7 +8,8 @@ let specialComp = {
8
8
  'new-check-paper': (resolve) => { require(['./pc/NewCheckpaper'], resolve) },
9
9
  'paper-main': (resolve) => { require(['./pc/PaperList'], resolve) },
10
10
  'check-search-user':(resolve) => {require(['./pc/CheckSearchUser'], resolve)},
11
- 'role-selector-safe':(resolve) => {require(['./pc/RoleSelector.vue'], resolve)}
11
+ 'role-selector-safe':(resolve) => {require(['./pc/RoleSelector.vue'], resolve)},
12
+ 'check-plan-list':(resolve) => {require(['./pc/checkPlanList'], resolve)}
12
13
  }
13
14
  exports.specialComp = specialComp
14
15
 
@@ -149,9 +149,21 @@
149
149
  @re-res="$parent.$parent.getRes"
150
150
  :value.sync="model.f_checker_id"
151
151
  v-model="model.f_checker_id"
152
- condition="f_checker_name = '{}'">
152
+ :value-multiple="true"
153
+ :value-close="false"
154
+ condition="f_checker_name in {}">
153
155
  </role-selector-safe>
154
156
  </div>
157
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
158
+ <label class="font_normal_body">部&emsp;&emsp;门</label>
159
+ <v-select class="select_list select"
160
+ placeholder='部门' style="width: 60%"
161
+ :value.sync="model.f_department_name" v-model="model.f_department_name"
162
+ :options='$parent.$parent.deplist'
163
+ condition="f_department_name in {}"
164
+ :multiple="true">
165
+ </v-select>
166
+ </div>
155
167
  <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
156
168
  <label class="font_normal_body">片&emsp;&emsp;区</label>
157
169
  <v-select class="select_list select"
@@ -514,10 +526,27 @@
514
526
  f_offsite_time: 'no'
515
527
  },
516
528
  sliceArea: [],
529
+ deplist:[],
517
530
  cbc:[]
518
531
  }
519
532
  },
520
533
  methods: {
534
+ /*获取部门*/
535
+ getdep(){
536
+ let http= new HttpResetClass()
537
+ http.load('POST', '/rs/sql/safe_singleTable_OrderBy',
538
+ {data:
539
+ {
540
+ items:"*",
541
+ tablename:"t_department",
542
+ orderitem:"id",
543
+ condition:`parentid = '${this.$login.f.orgid}'`}
544
+ }, {resolveMsg: null, rejectMsg: null}).then((res)=>{
545
+ res.data.forEach((result)=>{
546
+ this.deplist.push({label:result.name,value:result.name})
547
+ })
548
+ })
549
+ },
521
550
  //获取省市区列表
522
551
  getPcd(val){
523
552
  this.pcds = [{label:'全部',value:''}]
@@ -704,6 +733,7 @@
704
733
  //this.pianqu()
705
734
  this.Mreadibook(`('${this.$login.f.orgid}')`)
706
735
  co(gen)
736
+ this.getdep()
707
737
  },
708
738
  watch: {
709
739
  'model.f_no_checkplan'(val) {
@@ -297,13 +297,15 @@
297
297
  </div>
298
298
  <div class="row auto" style="margin: 5px 0">
299
299
  <label class="righttxt">设备品牌:</label>
300
- <v-select class="rightipt" :value.sync="row.f_brand"
300
+ <!-- <v-select class="rightipt" :value.sync="row.f_brand"
301
301
  v-model="row.f_brand"
302
302
  placeholder='请选择'
303
303
  :width='wid'
304
304
  readonly
305
305
  :options="deviceBrandOption[row.f_devices_type]"
306
- close-on-select value-single></v-select>
306
+ close-on-select value-single></v-select>-->
307
+ <input type="text" class="form-control rightipt"
308
+ v-model="row.f_brand"/>
307
309
  </div>
308
310
  <div class="row auto" style="margin: 5px 0">
309
311
  <label class="righttxt">设备型号:</label><input type="text" class="form-control rightipt"
@@ -354,9 +356,9 @@
354
356
  <label class="righttxt">设备数量:</label><input type="number" class="form-control rightipt"
355
357
  v-model="row.f_devices_num"/>
356
358
  </div>
357
- <!--<div class="row auto" style="margin: 5px 0">
358
- <label class="righttxt">管道类型:</label><input type="text" class="form-control rightipt" readonly v-model="row.f_pipe_type" />
359
- </div>-->
359
+ <div class="row auto" style="margin: 5px 0">
360
+ <label class="righttxt">管道类型:</label><input type="text" class="form-control rightipt" v-model="row.f_pipe_type" />
361
+ </div>
360
362
  <!--<div class="row auto" style="margin: 5px 0">
361
363
  <label class="righttxt">设备状态:</label><input type="text" class="form-control rightipt" readonly v-model="row.f_userinfodevices_state" />
362
364
  </div>-->
@@ -2386,7 +2386,69 @@ export default {
2386
2386
  // this.$dispatch('gotoson',pardate)
2387
2387
  //tag
2388
2388
  this.$goto('safecheck-userinfo', {userinfo:this.data}, 'repair')
2389
- }
2389
+ },
2390
+ //给设备信息赋值
2391
+ addfacilityinfo(){
2392
+ var _this = this
2393
+ this.$resetpost(`${_this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
2394
+ data: {
2395
+ items: "*",
2396
+ tablename: "t_devices",
2397
+ orderitem: "id",
2398
+ condition: `f_userfiles_id = '${this.item.f_plan_meters[0].f_userfiles_id}' `
2399
+ }
2400
+ }).then(res=>{
2401
+ _this.userdevicesconfig = res.data
2402
+ if (this.userdevicesconfig){
2403
+ for (let i in this.config) {
2404
+ let n = this.config[i].index
2405
+ if(i == '燃气设备'){
2406
+ this.data['device' + n].push(
2407
+ {f_device_type: i, f_items: []}
2408
+ )
2409
+ }
2410
+ n = n + 1
2411
+ }
2412
+ for (let de in this.devices) {
2413
+ this.userdevicesconfig.forEach(item=>{
2414
+ if (this.devices[de].device == "燃气设备"){
2415
+ if (item.f_devices_type == '民用壁挂炉'){
2416
+ this.data['device' + this.devices[de].n][0].f_items.push({
2417
+ f_defect_level: null,
2418
+ f_device_id: "",
2419
+ f_is_defect: "",
2420
+ f_item_name: "壁挂炉品牌",
2421
+ f_item_value: item.f_brand,
2422
+ f_path: "",
2423
+ type: "string"
2424
+ })
2425
+ }else if (item.f_devices_type == '民用热水器'){
2426
+ this.data['device' + this.devices[de].n][0].f_items.push({
2427
+ f_defect_level: null,
2428
+ f_device_id: "",
2429
+ f_is_defect: "",
2430
+ f_item_name: "热水器品牌",
2431
+ f_item_value: item.f_brand,
2432
+ f_path: "",
2433
+ type: "string"
2434
+ })
2435
+ }else if (item.f_devices_type == '民用灶具'){
2436
+ this.data['device' + this.devices[de].n][0].f_items.push({
2437
+ f_defect_level: null,
2438
+ f_device_id: "",
2439
+ f_is_defect: "",
2440
+ f_item_name: "灶具品牌",
2441
+ f_item_value: item.f_brand,
2442
+ f_path: "",
2443
+ type: "string"
2444
+ })
2445
+ }
2446
+ }
2447
+ })
2448
+ }
2449
+ }
2450
+ })
2451
+ },
2390
2452
  },
2391
2453
  watch: {
2392
2454
  'row' () {
@@ -2398,6 +2460,9 @@ export default {
2398
2460
  //送气超期功能
2399
2461
  //await this.isoverDate()
2400
2462
  this.putDevices()
2463
+ if(Vue.config.safecheck != undefined) {
2464
+ this.addfacilityinfo()
2465
+ }
2401
2466
  //如果已检,则提取安检单
2402
2467
  if (this.item.f_state != '未检') {
2403
2468
  if (this.role == 'inspect' || this.role == 'androidview') {