safecheck-client 3.0.34-7 → 3.0.34-71

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. package/package.json +1 -1
  2. package/src/App-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.vue +55 -0
  3. package/src/assets/123.png +0 -0
  4. package/src/assets/f8632d3c8c4c1cb68e99da754cab1a7.png +0 -0
  5. package/src/components/LoadData.vue +62 -0
  6. package/src/components/NewDefectList/DefectListNew.vue +1 -0
  7. package/src/components/android/AndroidDefectDeal.vue +1 -0
  8. package/src/components/android/AndroidDefectDealBeforeSafe.vue +502 -0
  9. package/src/components/android/AreaSelect.vue +198 -0
  10. package/src/components/android/BuildingSelect.vue +192 -0
  11. package/src/components/android/CheckPlanSelect.vue +229 -0
  12. package/src/components/android/PaperFeedback.vue +1514 -1481
  13. package/src/components/android/PaperFeedbackTemp.vue +1470 -1470
  14. package/src/components/android/QRCode/QRCodeBinding.vue +300 -0
  15. package/src/components/android/QRCode/QRCodePage.vue +212 -0
  16. package/src/components/android/SafePlanItem.vue +509 -509
  17. package/src/components/android/SafecheckDevices.vue +1298 -1298
  18. package/src/components/android/SafecheckDevicesTemp.vue +1333 -1333
  19. package/src/components/android/SafecheckOrderV.vue +8 -12
  20. package/src/components/android/UserinfoSelect.vue +714 -0
  21. package/src/components/android/examples/SafeListExamples.vue +96 -0
  22. package/src/components/android/examples/UserExamples.vue +130 -0
  23. package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
  24. package/src/components/rongcheng/AddPlanItem.vue +4 -0
  25. package/src/components/rongcheng/AspiratedUserInfo.vue +1 -1
  26. package/src/components/rongcheng/CheckSearchUser.vue +40 -14
  27. package/src/components/rongcheng/PaperStatem.vue +6 -1
  28. package/src/components/rongcheng/PhoneDevicesInfo.vue +16 -1
  29. package/src/components/rongcheng/PhoneUpUserinfo.vue +0 -92
  30. package/src/components/rongcheng/SafecheckOrderV.vue +12 -3
  31. package/src/components/rongcheng/SafecheckOrderVCli.vue +9 -0
  32. package/src/components/safecheckNew/android/SafecheckOrderV.vue +2731 -2731
  33. package/src/filiale/baiyin/android/AndroidDefectDeal.vue +4 -4
  34. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -0
  35. package/src/filiale/baiyin/android.js +1 -0
  36. package/src/filiale/baiyin/pc/CheckSearchUser.vue +2 -2
  37. package/src/filiale/baiyin/pc/DefectListNew.vue +3 -3
  38. package/src/filiale/baiyin/pc/PaperList.vue +7 -7
  39. package/src/filiale/bayan/android/PaperFeedback.vue +1651 -1651
  40. package/src/filiale/bayan/android/SafecheckDevices.vue +1303 -1303
  41. package/src/filiale/bayan/android/SafecheckOrderV.vue +52 -29
  42. package/src/filiale/bayan/android/SafecheckUserInfo.vue +863 -863
  43. package/src/filiale/bayan/pc/PaperList.vue +1 -0
  44. package/src/filiale/dexin/android/SafecheckDevices.vue +1305 -1305
  45. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +35 -15
  46. package/src/filiale/hanzhong/android/PaperFeedback.vue +1477 -1477
  47. package/src/filiale/hanzhong/android/SafecheckDevices.vue +1313 -1313
  48. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
  49. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -0
  50. package/src/filiale/huaran/android.js +12 -0
  51. package/src/filiale/huaran/pc/CheckBook.vue +313 -0
  52. package/src/filiale/huaran/pc/CheckBookAll.vue +69 -0
  53. package/src/filiale/huaran/pc/CheckBookArea.vue +170 -0
  54. package/src/filiale/huaran/pc/CheckBookCompany.vue +166 -0
  55. package/src/filiale/huaran/pc/CheckBookDetails.vue +196 -0
  56. package/src/filiale/huaran/pc/CheckBookEntry.vue +61 -0
  57. package/src/filiale/huaran/pc/CheckBookList.vue +386 -0
  58. package/src/filiale/huaran/pc/CheckBookSearchArea.vue +564 -0
  59. package/src/filiale/huaran/pc/CheckBookSearchUnit.vue +229 -0
  60. package/src/filiale/huaran/pc/CheckBookSearchUser.vue +604 -0
  61. package/src/filiale/huaran/pc/CheckBookUser.vue +112 -0
  62. package/src/filiale/huaran/pc/PaperList.vue +822 -0
  63. package/src/filiale/huaran/pc/PlanManage.vue +887 -0
  64. package/src/filiale/huaran/pc/checkPlanList.vue +419 -0
  65. package/src/filiale/huaran/pc/checkUserList.vue +867 -0
  66. package/src/filiale/huaran/pc.js +27 -0
  67. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -0
  68. package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1229 -0
  69. package/src/filiale/jiaxian/android/SafecheckDevices.vue +1298 -1298
  70. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -0
  71. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -0
  72. package/src/filiale/jiaxian/android.js +4 -0
  73. package/src/filiale/jingyang/android/PaperFeedback.vue +1493 -1493
  74. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
  75. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +15 -7
  76. package/src/filiale/pingxiang/android/PaperFeedback.vue +1399 -1399
  77. package/src/filiale/qingjian/android/SafecheckDevices.vue +1269 -1269
  78. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
  79. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -0
  80. package/src/filiale/qingtongxia/android/CurrentCreate.vue +1053 -0
  81. package/src/filiale/qingtongxia/android/PhoneUpUserinfo.vue +1230 -0
  82. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -0
  83. package/src/filiale/qingtongxia/android.js +4 -0
  84. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
  85. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -0
  86. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -0
  87. package/src/filiale/ruihua/android.js +11 -0
  88. package/src/filiale/shanxian/pc/checkUserList.vue +4 -4
  89. package/src/filiale/shiquan/android/SafecheckDevices.vue +1269 -1269
  90. package/src/filiale/siyang/android/AddPlanItem.vue +446 -0
  91. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
  92. package/src/filiale/siyang/android.js +1 -0
  93. package/src/filiale/siyang/pc/CheckBookSearchArea.vue +645 -0
  94. package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -0
  95. package/src/filiale/siyang/pc/CheckSearchUser.vue +982 -0
  96. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -0
  97. package/src/filiale/siyang/pc/NewCheckpaper.vue +1938 -1938
  98. package/src/filiale/siyang/pc/checkPlanList.vue +367 -0
  99. package/src/filiale/siyang/pc/checkUserList.vue +790 -786
  100. package/src/filiale/siyang/pc.js +21 -16
  101. package/src/filiale/tongchuan/android/Select.vue +421 -0
  102. package/src/filiale/tongchuan/android.js +1 -0
  103. package/src/filiale/tongchuan/pc/CheckPlanCountChartArea.vue +3 -1
  104. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +6 -2
  105. package/src/filiale/tongchuan/pc/HiddenSituation.vue +3 -1
  106. package/src/filiale/tongchuan/pc/NewCheckpaper.vue +13 -22
  107. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1 -1
  108. package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +5 -2
  109. package/src/filiale/tongchuan/utils/EventListener.js +29 -0
  110. package/src/filiale/tongchuan/utils/coerceBoolean.js +7 -0
  111. package/src/filiale/weinan/android/SafecheckDevices.vue +1295 -1295
  112. package/src/filiale/weinan/android/SafecheckOrderV.vue +1 -1
  113. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +75 -62
  114. package/src/filiale/weinan/pc/CheckDetail.vue +11 -11
  115. package/src/filiale/weinan/pc/DefectPaperNew.vue +31 -0
  116. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -0
  117. package/src/filiale/weinan/pc/checkUserList.vue +49 -113
  118. package/src/filiale/weinan/pc.js +1 -0
  119. package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2240
  120. package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -592
  121. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +1731 -1731
  122. package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +1332 -1332
  123. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  124. package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +13 -11
  125. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +269 -269
  126. package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +96 -30
  127. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +10 -10
  128. package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1128 -1128
  129. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +972 -972
  130. package/src/filiale/yangchunboneng/pc/PaperList.vue +773 -773
  131. package/src/filiale/yongzhou/android/PaperFeedback.vue +1519 -1519
  132. package/src/filiale/yongzhou/android/SafecheckDevices.vue +1294 -1294
  133. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
  134. package/src/filiale/yuansheng/android/SafecheckDevices.vue +11 -1
  135. package/src/filiale/yuansheng/android/SwitchValve.vue +322 -322
  136. package/src/filiale/yuansheng/android.js +17 -17
  137. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +10 -2
  138. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1508 -1508
  139. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1270 -1270
  140. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +784 -784
  141. package/src/main-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.js +24 -0
  142. package/src/safecheck-android.js +9 -0
  143. package/src/safecheck-page.js +10 -0
@@ -0,0 +1,419 @@
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()">
39
+ 更多条件
40
+ </button>
41
+ <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
42
+ <!-- <button class="button_search" style="margin-right: 10px" @click="clear()">清除</button>-->
43
+ <export-excel-safe :data="$parent.$parent.exportParameter"
44
+ :field="$parent.$parent.exportExcelField"
45
+ style="margin-left: 0px"
46
+ sqlurl="rs/logic/SafeExportExcel" sql-name="planItem"
47
+ :template-name="$parent.$parent.selectplan.f_plan_name + '安检任务导出'"
48
+ :choose-col="true">
49
+ </export-excel-safe>
50
+ </div>
51
+ <div class="form-group col-sm-2 safe_p">
52
+ <label class="font_normal_body"
53
+ :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()">
57
+ 任务调整
58
+ </button>
59
+ <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.delPlanItem()"
60
+ v-show="$parent.$parent.isdelete">移出任务
61
+ </button>
62
+ </div>
63
+ <modal :show.sync="$parent.$parent.showCondtion" v-ref:modal :width="'50%'" :backdrop="false">
64
+ <div slot="modal-header" class="modal-header">
65
+ <h4 class="modal-title">
66
+ 任务内用户查询条件
67
+ </h4>
68
+ </div>
69
+ <div slot="modal-body" class="modal-body">
70
+ <div class="row">
71
+ <div class="form-group col-sm-4">
72
+ <label class="font_normal_body">是否已检:</label>
73
+ <v-select
74
+ class="select select_list"
75
+ :value.sync="model.f_state"
76
+ v-model="model.f_state"
77
+ :options='$parent.$parent.checkState'
78
+ @change="$parent.$parent.checkStateChange(model.f_state)"
79
+ placeholder='请选择'
80
+ condition="i.f_state='{}'"
81
+ close-on-select
82
+ value-single
83
+ >
84
+ </v-select>
85
+ </div>
86
+ <div class="form-group col-sm-4">
87
+ <label class="font_normal_body">安检结果:</label>
88
+ <v-select
89
+ class="select select_list"
90
+ :value.sync="model.f_check_state"
91
+ v-model="model.f_check_state"
92
+ :options='$parent.$parent.checkResults'
93
+ placeholder='请选择'
94
+ condition="i.f_last_check_state='{}'"
95
+ close-on-select
96
+ value-single
97
+ >
98
+ </v-select>
99
+ </div>
100
+ <div class="form-group col-sm-4">
101
+ <label class="font_normal_body">安检起始:</label>
102
+ <datepicker
103
+ placeholder='请选择'
104
+ style="width:60%"
105
+ :disabled-days-of-week="[]"
106
+ :format="'yyyy-MM-dd'"
107
+ :show-rest-button="reset"
108
+ :value.sync="model.f_startfile_time"
109
+ v-model="model.f_startfile_time"
110
+ condition="i.f_last_check_date >='{} 00:00:00'">
111
+ </datepicker>
112
+ </div>
113
+ <div class="form-group col-sm-4">
114
+ <label class="font_normal_body">安检截止:</label>
115
+ <datepicker
116
+ placeholder='请选择'
117
+ :disabled-days-of-week="[]"
118
+ style="width:60%"
119
+ :format="'yyyy-MM-dd'"
120
+ :show-rest-button="reset"
121
+ :value.sync="model.f_endfile_time"
122
+ v-model="model.f_endfile_time"
123
+ condition="i.f_last_check_date <='{} 00:00:00'">
124
+ </datepicker>
125
+ </div>
126
+ </div>
127
+ </div>
128
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
129
+ <button class="button_search" style="margin-right: 15px" @click="search()">查询</button>
130
+ <button class="button_search" @click="$parent.$parent.cancel">取消</button>
131
+ </div>
132
+ </modal>
133
+ </div>
134
+ </div>
135
+ </criteria>
136
+ <data-grid :model="model" partial='list' class="table_sy">
137
+
138
+ <template partial='head'>
139
+ <tr>
140
+ <th>
141
+ <nobr><input type="checkbox" onClick="event.cancelBubble = true"
142
+ :checked="$parent.$parent.$parent.checkAll" @change="$parent.$parent.$parent.setCheckAll()"/>
143
+ 全选
144
+ </nobr>
145
+ </th>
146
+ <th>
147
+ <nobr>用户编号</nobr>
148
+ </th>
149
+ <th>
150
+ <nobr>用户名称</nobr>
151
+ </th>
152
+ <th>
153
+ <nobr>用户电话</nobr>
154
+ </th>
155
+ <th>
156
+ <nobr>用户类型</nobr>
157
+ </th>
158
+ <th>
159
+ <nobr>小区名称</nobr>
160
+ </th>
161
+ <th>
162
+ <nobr>安检状态</nobr>
163
+ </th>
164
+ <th>
165
+ <nobr>地址</nobr>
166
+ </th>
167
+ </tr>
168
+ </template>
169
+ <template partial='body'>
170
+ <td style="text-align: center;white-space:nowrap;"><input type="checkbox" onClick="event.cancelBubble = true"
171
+ :checked="$parent.$parent.$parent.isChecked(row.f_check_item_id)"
172
+ @change="$parent.$parent.$parent.setCheckes(row.f_check_item_id)"/>
173
+ </td>
174
+ <td style="text-align: center">
175
+ <nobr>{{ row.f_userinfo_code }}</nobr>
176
+ </td>
177
+ <td style="text-align: center">
178
+ <nobr>{{ row.f_user_name }}</nobr>
179
+ </td>
180
+ <td style="text-align: center">
181
+ <nobr>{{ row.f_user_phone }}</nobr>
182
+ </td>
183
+ <td style="text-align: center">
184
+ <nobr>{{ row.f_user_type }}</nobr>
185
+ </td>
186
+ <td style="text-align: center">
187
+ <nobr>{{ row.f_residential_area }}</nobr>
188
+ </td>
189
+ <td style="text-align: center">
190
+ <nobr>{{ row.f_state === '已检' ? row.f_last_check_state : '未检' }}</nobr>
191
+ </td>
192
+ <td style="text-align: center">
193
+ <nobr>{{ row.f_address }}</nobr>
194
+ </td>
195
+ </template>
196
+ </data-grid>
197
+ </criteria-paged>
198
+ <modal :show.sync="showPlanModal" v-ref:modalp>
199
+ <div slot="modal-header" class="modal-header">
200
+ <h4 class="modal-title">
201
+ 任务内用户调整
202
+ </h4>
203
+ </div>
204
+ <div slot="modal-body" class="modal-body">
205
+ <plan-chooser :f.sync="userlogin.orgid" v-ref:chooser></plan-chooser>
206
+ </div>
207
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
208
+ <button class="button_search" style="margin-right: 15px" @click="dragtoOtherPlanIteem">确认</button>
209
+ <button class="button_search" @click="cancel">取消</button>
210
+ </div>
211
+ </modal>
212
+ </div>
213
+ </template>
214
+
215
+ <script>
216
+ import {HttpResetClass, PagedList} from "vue-client";
217
+ import Vue from "vue";
218
+
219
+ export default {
220
+ name: "PlanManage",
221
+ title: '任务管理',
222
+ data() {
223
+ return {
224
+ model: new PagedList('/rs/sql/planItem', 100, {}),
225
+ isdelete: this.$login.r ? this.$login.r.includes("安检任务删除") : false,
226
+ a: '1',
227
+ opt: [{label: "测试", value: "测试"}],
228
+ showCondtion: false,
229
+ checkAll: false,
230
+ checkes: [],
231
+ checkResults: [{label: '到访不遇', value: '到访不遇'}, {label: '拒检', value: '拒检'}, {
232
+ label: '入户',
233
+ value: '入户'
234
+ }],
235
+ checkState: [{label: '全部', value: ''}, {label: '未检', value: '未检'}, {label: '已检', value: '已检'}],
236
+ showPlanModal: false,
237
+ exportExcelField: {
238
+ 'f_userinfo_code': '用户编号',
239
+ 'f_user_name': '用户名称',
240
+ 'f_user_type': '用户类型',
241
+ 'f_residential_area': '小区名称',
242
+ 'f_state': '安检状态',
243
+ 'f_address': '地址',
244
+ 'f_user_phone': '用户电话',
245
+ 'f_newfile_date': '建档日期'
246
+ }
247
+ }
248
+ },
249
+ props: ["selectplan", "userlogin"],
250
+ ready() {
251
+
252
+ },
253
+ computed: {
254
+ exportParameter() {
255
+ // excel 导出条件拼接
256
+ return {
257
+ condition: this.$refs.paged.model.condition,
258
+ groupName: this.groupNameForSql
259
+ }
260
+ }
261
+ },
262
+ methods: {
263
+ clear() {
264
+ this.model.f_plan_id = '';
265
+ this.model.f_userinfo_code = '';
266
+ this.model.f_user_name = '';
267
+ this.model.f_address = '';
268
+
269
+ },
270
+ //将某个任务下的一项拖到另一个任务
271
+ async dragtoOtherPlanIteem() {
272
+ //tag)
273
+
274
+ if (!this.$refs.modalp.$children[0].selectedRow.id) {
275
+ this.$showMessage("请选择需要调整到那个任务中!")
276
+ return
277
+ }
278
+ this.$parent.isSend = true
279
+ try {
280
+ let res = await new HttpResetClass().load("POST", "/rs/logic/UpCheckPlanItem", {
281
+ data: {
282
+ f_operator: this.userlogin.name,
283
+ f_plan_id: this.$refs.modalp.$children[0].selectedRow.id,
284
+ condition: this.model.condition,
285
+ switchCheckAll: true,
286
+ checkAll: this.checkAll,
287
+ param: this.checkes,
288
+ columnName: "i.id"
289
+ }
290
+ }, {resolveMsg: null, rejectMsg: null})
291
+ this.$parent.isSend = false
292
+ if (res.data.code == 200) {
293
+ this.$showMessage("更换安检任务成功!")
294
+ this.$parent.refreshPlan()
295
+ } else {
296
+ this.$showMessage("更换安检任务失败!")
297
+ }
298
+ } catch (e) {
299
+ this.$parent.isSend = false
300
+ this.$showMessage("更换安检任务失败!")
301
+ }
302
+ },
303
+ showplanModal() {
304
+ if (!this.selectplan || !this.selectplan.id) {
305
+ this.$showMessage("请先打开一个任务再进行操作")
306
+ return
307
+ }
308
+ if (!this.checkAll && this.checkes.length == 0) {
309
+ this.$showMessage("请先在任务中勾选你要调整的用户!")
310
+ return
311
+ }
312
+ this.showPlanModal = true
313
+ },
314
+ showUserCondition() {
315
+ this.showCondtion = true
316
+ },
317
+ isChecked(v) {
318
+ // 如果全选,不在的按选中算,否则,在的按选中算
319
+ if (this.checkAll) {
320
+ return this.checkes.indexOf(v) == -1
321
+ } else {
322
+ return this.checkes.indexOf(v) != -1
323
+ }
324
+ },
325
+ setCheckAll() {
326
+ this.checkAll = this.checkAll ? false : true;
327
+ // 全选改变后,清空选中数据
328
+ this.checkes = []
329
+ },
330
+ setCheckes(id) {
331
+ let index = this.checkes.indexOf(id)
332
+ if (index < 0) {
333
+ this.checkes.push(id)
334
+ } else {
335
+ this.checkes.splice(index, 1)
336
+ }
337
+ },
338
+ cancel() {
339
+ this.showCondtion = false
340
+ this.showPlanModal = false
341
+ },
342
+ selfSearch(args) {
343
+ if (!this.selectplan.id) {
344
+ this.$showMessage("请先选择一个任务!")
345
+ return
346
+ }
347
+ this.cancel()
348
+ this.checkes = []
349
+ this.checkAll = false
350
+ args.condition += ` and i.f_state!= '作废'`
351
+ this.model.search(args.condition, args.model, args.condValue)
352
+ },
353
+ checkStateChange(val) {
354
+ if (val == '未检') {
355
+ this.checkResults = []
356
+ this.$refs.paged.$refs.criteria.model.f_check_state = ''
357
+ } else {
358
+ this.checkResults = [{label: '到访不遇', value: '到访不遇'}, {label: '拒检', value: '拒检'}, {
359
+ label: '入户',
360
+ value: '入户'
361
+ }]
362
+ }
363
+ },
364
+ //修改任务项状态为作废
365
+ async delPlanItem() {
366
+ if (!this.selectplan || !this.selectplan.id) {
367
+ this.$showMessage("请先打开一个任务再进行操作")
368
+ return
369
+ }
370
+ if (!this.checkAll && this.checkes.length == 0) {
371
+ this.$showMessage("请先在任务中勾选你要作废的用户!")
372
+ return
373
+ }
374
+ this.$showMessage("此操作无法撤回,确定要执行作废安检单操作吗?", ['confirm', 'cancel']).then((button) => {
375
+ if (button == 'confirm') {
376
+ let resu = new HttpResetClass().load("POST", "/rs/logic/UpCheckPlanItemState", {
377
+ data: {
378
+ f_operator: this.userlogin.name,
379
+ condition: this.model.condition,
380
+ switchCheckAll: true,
381
+ checkAll: this.checkAll,
382
+ param: this.checkes,
383
+ columnName: "i.id"
384
+ }
385
+ }, {resolveMsg: null, rejectMsg: null}).then((resu) => {
386
+
387
+ //tag)
388
+ if (resu.data.code == 200) {
389
+ this.$showMessage("移除安检单成功! 成功移除:" + resu.data.res.up + "条" + (resu.data.res.noup > 0 ? "有" + resu.data.res.noup + "条已经不是 ‘未检’ 状态!" : ""))
390
+ //this.checkes=[]
391
+ //this.checkAll=false
392
+ this.$parent.refresh()
393
+ } else {
394
+ this.$showMessage("取消安检任务失败!")
395
+ }
396
+ })
397
+ }
398
+ })
399
+ }
400
+ },
401
+ watch: {
402
+ 'selectplan.id'() {
403
+ //tag
404
+ if (this.selectplan.id) {
405
+ this.$refs.paged.$refs.criteria.model.f_plan_id = this.selectplan.id
406
+ this.$refs.paged.$refs.criteria.search()
407
+ }
408
+ }
409
+ }
410
+ }
411
+ </script>
412
+
413
+ <style scoped>
414
+ .safe_p {
415
+ white-space: nowrap;
416
+ overflow: hidden;
417
+ text-overflow: ellipsis;
418
+ }
419
+ </style>