safecheck-client 3.0.34-34 → 3.0.34-37
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.
- package/package.json +1 -1
- package/src/components/android/QRCode/QRCodePage.vue +11 -2
- package/src/components/android/examples/SafeListExamples.vue +1 -0
- package/src/components/android/examples/UserExamples.vue +8 -7
- package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -0
- package/src/filiale/huaran/android.js +12 -0
- package/src/filiale/huaran/pc/CheckBook.vue +313 -0
- package/src/filiale/huaran/pc/CheckBookAll.vue +69 -0
- package/src/filiale/huaran/pc/CheckBookArea.vue +170 -0
- package/src/filiale/huaran/pc/CheckBookCompany.vue +166 -0
- package/src/filiale/huaran/pc/CheckBookDetails.vue +196 -0
- package/src/filiale/huaran/pc/CheckBookEntry.vue +61 -0
- package/src/filiale/huaran/pc/CheckBookList.vue +386 -0
- package/src/filiale/huaran/pc/CheckBookSearchArea.vue +564 -0
- package/src/filiale/huaran/pc/CheckBookSearchUnit.vue +229 -0
- package/src/filiale/huaran/pc/CheckBookSearchUser.vue +604 -0
- package/src/filiale/huaran/pc/CheckBookUser.vue +112 -0
- package/src/filiale/huaran/pc/PaperList.vue +822 -0
- package/src/filiale/huaran/pc/PlanManage.vue +887 -0
- package/src/filiale/huaran/pc/checkPlanList.vue +419 -0
- package/src/filiale/huaran/pc/checkUserList.vue +867 -0
- package/src/filiale/huaran/pc.js +27 -0
- package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -0
- package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -0
- package/src/filiale/ruihua/android.js +11 -0
- package/src/filiale/yuansheng/android/SafecheckDevices.vue +1258 -1258
- package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
- package/src/main.js +1 -1
@@ -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>
|