safecheck-client 3.0.34-4 → 3.0.34-43

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 (122) hide show
  1. package/docs/FormPrint.md +18 -18
  2. package/docs/GridTree.md +47 -47
  3. package/docs/PrintFile.md +38 -38
  4. package/docs/tree.md +40 -40
  5. package/package.json +1 -1
  6. package/src/App-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.vue +55 -0
  7. package/src/assets/123.png +0 -0
  8. package/src/assets/f8632d3c8c4c1cb68e99da754cab1a7.png +0 -0
  9. package/src/components/LoadData.vue +62 -0
  10. package/src/components/android/AddGas.vue +147 -147
  11. package/src/components/android/AndroidDefectDeal.vue +1 -0
  12. package/src/components/android/AreaPlan.vue +566 -572
  13. package/src/components/android/CheckerMonthly.vue +84 -84
  14. package/src/components/android/LcheckUnplan.vue +108 -108
  15. package/src/components/android/PaperFeedback.vue +1 -1
  16. package/src/components/android/PaperFeedbackTemp.vue +1 -1
  17. package/src/components/android/QRCode/QRCodeBinding.vue +300 -0
  18. package/src/components/android/QRCode/QRCodePage.vue +212 -0
  19. package/src/components/android/SafecheckDevices.vue +1 -1
  20. package/src/components/android/SafecheckDevicesTemp.vue +1 -1
  21. package/src/components/android/SafecheckOrderV.vue +2809 -2809
  22. package/src/components/android/SwitchValve.vue +323 -323
  23. package/src/components/android/examples/SafeListExamples.vue +96 -0
  24. package/src/components/android/examples/UserExamples.vue +126 -0
  25. package/src/components/android/userinfo/SafecheckUserInfo.vue +1 -1
  26. package/src/components/checkerphonestate/Checker.vue +32 -32
  27. package/src/components/checkerphonestate/CheckerState.vue +97 -97
  28. package/src/components/defects/AddDefectModal.vue +120 -120
  29. package/src/components/defects/AddDevice.vue +95 -95
  30. package/src/components/defects/DevicesSeting.vue +106 -106
  31. package/src/components/metterfiles/AddUserfiles.vue +246 -246
  32. package/src/components/metterfiles/MetterFiles.vue +104 -104
  33. package/src/components/notice/NoticeQuery.vue +76 -76
  34. package/src/components/paper/RepairVerifyForm.vue +76 -76
  35. package/src/components/phonestate/DailyTraffic.vue +57 -57
  36. package/src/components/phonestate/LastKnownState.vue +74 -74
  37. package/src/components/task/RepairAnnual.vue +79 -79
  38. package/src/components/task/RepairAnnualDetail.vue +49 -49
  39. package/src/components/task/RepairMonthly.vue +91 -91
  40. package/src/components/task/TaskAnnual.vue +77 -77
  41. package/src/components/task/TaskAnnualDetail.vue +47 -47
  42. package/src/components/task/TaskMonthly.vue +89 -89
  43. package/src/components/userfile/UserfileChange.vue +277 -277
  44. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2798 -0
  45. package/src/filiale/baiyin/android.js +1 -0
  46. package/src/filiale/baiyin/pc/checkUserList.vue +771 -771
  47. package/src/filiale/baiyin/pc.js +21 -21
  48. package/src/filiale/bayan/android/PaperFeedback.vue +1 -1
  49. package/src/filiale/bayan/android/SafecheckDevices.vue +1 -1
  50. package/src/filiale/bayan/android/SafecheckOrderV.vue +52 -29
  51. package/src/filiale/bayan/android/SafecheckUserInfo.vue +1 -1
  52. package/src/filiale/dexin/android/SafecheckDevices.vue +1 -1
  53. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +35 -15
  54. package/src/filiale/hanzhong/android/PaperFeedback.vue +1 -1
  55. package/src/filiale/hanzhong/android/SafecheckDevices.vue +1 -1
  56. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +1 -1
  57. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -0
  58. package/src/filiale/huaran/android.js +12 -0
  59. package/src/filiale/huaran/pc/CheckBook.vue +313 -0
  60. package/src/filiale/huaran/pc/CheckBookAll.vue +69 -0
  61. package/src/filiale/huaran/pc/CheckBookArea.vue +170 -0
  62. package/src/filiale/huaran/pc/CheckBookCompany.vue +166 -0
  63. package/src/filiale/huaran/pc/CheckBookDetails.vue +196 -0
  64. package/src/filiale/huaran/pc/CheckBookEntry.vue +61 -0
  65. package/src/filiale/huaran/pc/CheckBookList.vue +386 -0
  66. package/src/filiale/huaran/pc/CheckBookSearchArea.vue +564 -0
  67. package/src/filiale/huaran/pc/CheckBookSearchUnit.vue +229 -0
  68. package/src/filiale/huaran/pc/CheckBookSearchUser.vue +604 -0
  69. package/src/filiale/huaran/pc/CheckBookUser.vue +112 -0
  70. package/src/filiale/huaran/pc/PaperList.vue +822 -0
  71. package/src/filiale/huaran/pc/PlanManage.vue +887 -0
  72. package/src/filiale/huaran/pc/checkPlanList.vue +419 -0
  73. package/src/filiale/huaran/pc/checkUserList.vue +867 -0
  74. package/src/filiale/huaran/pc.js +27 -0
  75. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -0
  76. package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1229 -0
  77. package/src/filiale/jiaxian/android/SafecheckDevices.vue +4 -4
  78. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2811 -0
  79. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -0
  80. package/src/filiale/jiaxian/android.js +4 -0
  81. package/src/filiale/jingyang/android/PaperFeedback.vue +1 -1
  82. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +1 -1
  83. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +15 -7
  84. package/src/filiale/pingxiang/android/PaperFeedback.vue +1 -1
  85. package/src/filiale/qingjian/android/SafecheckDevices.vue +1 -1
  86. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +1 -1
  87. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -0
  88. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -0
  89. package/src/filiale/ruihua/android.js +11 -0
  90. package/src/filiale/shiquan/android/SafecheckDevices.vue +1 -1
  91. package/src/filiale/siyang/android/SafecheckUserInfo.vue +1 -1
  92. package/src/filiale/tongchuan/android/Select.vue +421 -0
  93. package/src/filiale/tongchuan/android.js +1 -0
  94. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
  95. package/src/filiale/tongchuan/utils/EventListener.js +29 -0
  96. package/src/filiale/tongchuan/utils/coerceBoolean.js +7 -0
  97. package/src/filiale/weinan/android/SafecheckDevices.vue +1 -1
  98. package/src/filiale/weinan/android/SafecheckOrderV.vue +1 -1
  99. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +57 -59
  100. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  101. package/src/filiale/weinan/pc/DefectMainNew.vue +63 -63
  102. package/src/filiale/weinan/pc/DefectPaperNew.vue +31 -0
  103. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -0
  104. package/src/filiale/weinan/pc/checkUserList.vue +34 -113
  105. package/src/filiale/weinan/pc.js +47 -46
  106. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1192 -1200
  107. package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +472 -480
  108. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +1 -1
  109. package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +2 -2
  110. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +1 -1
  111. package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +473 -481
  112. package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +9 -7
  113. package/src/filiale/yongzhou/android/PaperFeedback.vue +1 -1
  114. package/src/filiale/yongzhou/android/SafecheckDevices.vue +1 -1
  115. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +1 -1
  116. package/src/filiale/yuansheng/android/SafecheckDevices.vue +11 -1
  117. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +10 -2
  118. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1 -1
  119. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1 -1
  120. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +1 -1
  121. package/src/main-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.js +24 -0
  122. package/src/safecheck-android.js +4 -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>