safecheck-client 3.0.30-3 → 3.0.30-33
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/examples/SafePlan-liaoyuan/App.vue +3 -1
- package/package.json +4 -3
- package/src/components/android/AddPlanItem.vue +5 -2
- package/src/components/android/CurrentCreate.vue +3 -1
- package/src/components/paper/PlanChooser.vue +2 -2
- package/src/components/pc/Edit.vue +50 -0
- package/src/components/pc/NewCheckpaper.vue +9 -5
- package/src/components/pc/PaperEdit.vue +148 -0
- package/src/components/pc/SelectCheckPlanAndNoPLan.vue +3 -0
- package/src/components/querycheckpaper/CheckSearchUser.vue +10 -1
- package/src/filiale/bayan/android/PhoneUpUserinfo.vue +1377 -1377
- package/src/filiale/hanzhong/android/PaperFeedback.vue +1477 -0
- package/src/filiale/hanzhong/android/SafecheckDevices.vue +1313 -0
- package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -0
- package/src/filiale/hanzhong/android.js +5 -1
- package/src/filiale/jingyang/android/PhoneUpUserinfo.vue +34 -34
- package/src/filiale/jingyang/pc/PaperList.vue +1 -2
- package/src/filiale/kelai/android/AddPlanItem.vue +488 -0
- package/src/filiale/kelai/android.js +1 -0
- package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1 -1
- package/src/filiale/qianneng/android/PaperFeedback.vue +40 -0
- package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +9 -3
- package/src/filiale/tongchuan/android/SafecheckDevices.vue +1 -0
- package/src/filiale/tongchuan/pc/PaperDefectMain.vue +2 -0
- package/src/filiale/wenxi/pc/DefectPaper.vue +1 -1
- package/src/filiale/yangchunboneng/android/CurrentCreate.vue +600 -598
- package/src/filiale/yangchunboneng/android/PaperFeedback.vue +20 -0
- package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1 -1
- package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +2 -2
- package/src/filiale/yangchunboneng/pc/PaperList.vue +2 -2
- package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +230 -0
- package/src/filiale/yongzhou/pc/communityDetail.vue +183 -171
- package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +8 -6
- package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +8 -6
- package/src/filiale/yongzhou/pc/safeDetail.vue +232 -220
- package/src/filiale/yongzhou/pc/safeStatistics.vue +124 -114
- package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +416 -396
- package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +248 -231
- package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +110 -100
- package/src/filiale/yongzhou/pc/safeTable.vue +136 -128
- package/src/filiale/yongzhou/pc.js +24 -23
- package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +151 -53
- package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +14 -0
- package/src/main.js +33 -33
- package/src/safecheck.js +6 -0
@@ -132,6 +132,7 @@
|
|
132
132
|
</div>
|
133
133
|
<div class="row">
|
134
134
|
<label for="readsafe" class="text-left font">蓝牙状态:{{blueState}}</label>
|
135
|
+
<button type="button" @click="initBlueState()">重新连接</button>
|
135
136
|
</div>
|
136
137
|
<div class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__">
|
137
138
|
<div class="form-group col-md-12 col-sm-12 col-xs-12">
|
@@ -608,6 +609,25 @@
|
|
608
609
|
Radio
|
609
610
|
},
|
610
611
|
methods: {
|
612
|
+
initBlueState(){
|
613
|
+
let state = HostApp.getBluetoothState()
|
614
|
+
if (state && state.state == 3){
|
615
|
+
this.blueState = '连接完成'
|
616
|
+
}else {
|
617
|
+
if (state && state.state == -1){
|
618
|
+
this.$showMessage('蓝牙连接未打开,打开后重新尝试')
|
619
|
+
return
|
620
|
+
}
|
621
|
+
this.blueState = '连接失败,请重试'
|
622
|
+
this.$androidUtil.print(JSON.stringify([{ type: 4, value: 2, unit: 'line' }]))
|
623
|
+
let state2 = HostApp.getBluetoothState()
|
624
|
+
if (state2 && state2.state == 3){
|
625
|
+
this.blueState = '连接完成'
|
626
|
+
}else {
|
627
|
+
this.blueState = '连接失败,请重试'
|
628
|
+
}
|
629
|
+
}
|
630
|
+
},
|
611
631
|
timeSet(val) {
|
612
632
|
//////tag
|
613
633
|
if (!val) {
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo"
|
11
11
|
id="f_userinfo"
|
12
12
|
placeholder="编号 名称 电话 地址"
|
13
|
-
condition="(f_userinfo_code like '%{}%' or f_user_name like '%{}%' or f_user_phone like '%{}%' or f_address like '%{}%')">
|
13
|
+
condition="(f_userinfo_code like '%{}%' or f_user_name like '%{}%' or f_user_phone like '%{}%' or f_address like '%{}%' or f_zuhu_phone like '%${}%' or f_rent_phone like '%${}%')">
|
14
14
|
</div>
|
15
15
|
<div :class="$parent.$parent.style">
|
16
16
|
<label class="font_normal_body">安检计划</label>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<label class="font_normal_body">模糊查询</label>
|
10
10
|
<input type="text" class="input_search" v-model="model.f_userinfo"
|
11
11
|
style="width: 60%" placeholder="编号 名称 电话 地址"
|
12
|
-
condition="(f_userinfo_code like '%{}%' or f_user_name like '%{}%' or f_user_phone like '%{}%' or f_address like '%{}%')">
|
12
|
+
condition="(f_userinfo_code like '%{}%' or f_user_name like '%{}%' or f_user_phone like '%{}%' or f_address like '%{}%' or f_zuhu_phone like '%${}%' or f_rent_phone like '%${}%')">
|
13
13
|
</div>
|
14
14
|
<div class="form-group col-sm-2" >
|
15
15
|
<label class="font_normal_body">客户编号</label>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<div class="form-group col-sm-2" >
|
25
25
|
<label class="font_normal_body">客户电话</label>
|
26
26
|
<input type="text" class="input_search" v-model="model.f_user_phone"
|
27
|
-
style="width: 60%" placeholder="客户电话" condition="f_user_phone like '%{}%'">
|
27
|
+
style="width: 60%" placeholder="客户电话" condition=" ( f_user_phone like '%{}%' or f_zuhu_phone like '%${}%' or f_rent_phone like '%${}%' )">
|
28
28
|
</div>
|
29
29
|
<div class="form-group col-sm-4" style="display: flex; gap: 15px">
|
30
30
|
<export-excel-safe :data="$parent.$parent.searchData"
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<label class="font_normal_body">模糊查询</label>
|
10
10
|
<input type="text" class="input_search" v-model="model.f_userinfo"
|
11
11
|
style="width: 60%" placeholder="编号 名称 电话 表号 地址"
|
12
|
-
condition="(f_userinfo_code like '%{}%' or f_user_name like '%{}%' or f_user_phone like '%{}%' or f_meternumber like '%{}%' or f_address like '%{}%')">
|
12
|
+
condition="(f_userinfo_code like '%{}%' or f_user_name like '%{}%' or f_user_phone like '%{}%' or f_meternumber like '%{}%' or f_address like '%{}%' or f_zuhu_phone like '%${}%' or f_rent_phone like '%${}%')">
|
13
13
|
</div>
|
14
14
|
<div class="form-group col-sm-2" >
|
15
15
|
<label class="font_normal_body">客户编号</label>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<div class="form-group col-sm-2" >
|
25
25
|
<label class="font_normal_body">客户电话</label>
|
26
26
|
<input type="text" class="input_search" v-model="model.f_user_phone"
|
27
|
-
style="width: 60%" placeholder="客户电话" condition="f_user_phone like '%{}%'">
|
27
|
+
style="width: 60%" placeholder="客户电话" condition=" ( f_user_phone like '%{}%' or f_zuhu_phone like '%${}%' or f_rent_phone like '%${}%' )">
|
28
28
|
</div>
|
29
29
|
<div class="form-group col-sm-2" >
|
30
30
|
<label class="font_normal_body">客户表号</label>
|
@@ -0,0 +1,230 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="flex">
|
3
|
+
<section>
|
4
|
+
<div class="basic-main row" style="height: 100%">
|
5
|
+
<criteria-paged :model="model" v-ref:paged>
|
6
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
7
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
8
|
+
<div class="row">
|
9
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 30%;">
|
10
|
+
<role-selector-safe
|
11
|
+
role-name="安检员"
|
12
|
+
role-lable="安 检 员 "
|
13
|
+
@re-res="$parent.$parent.getRes"
|
14
|
+
:value.sync="model.f_checker_id"
|
15
|
+
v-model="model.f_checker_id"
|
16
|
+
condition="f_checker_name = '{}'">
|
17
|
+
</role-selector-safe>
|
18
|
+
</div>
|
19
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%;">
|
20
|
+
<label for="startDate" class="font_normal_body">起始时间</label>
|
21
|
+
<datepicker
|
22
|
+
class="select_list select"
|
23
|
+
:value.sync="model.startDate"
|
24
|
+
id="startDate"
|
25
|
+
placeholder='开始时间' style="width: 60%"
|
26
|
+
:disabled-days-of-week="[]"
|
27
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
28
|
+
:show-rest-button="reset"
|
29
|
+
v-model="model.startDate"
|
30
|
+
condition="f_upload_date > ='{} '">
|
31
|
+
</datepicker>
|
32
|
+
</div>
|
33
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%;">
|
34
|
+
<label for="endDate" class="font_normal_body">结束时间</label>
|
35
|
+
<datepicker
|
36
|
+
class="select_list select"
|
37
|
+
:value.sync="model.endDate"
|
38
|
+
id="endDate"
|
39
|
+
placeholder='结束日期' style="width: 60%"
|
40
|
+
:disabled-days-of-week="[]"
|
41
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
42
|
+
:show-rest-button="reset"
|
43
|
+
v-model="model.endDate"
|
44
|
+
condition="f_upload_date <='{} '">
|
45
|
+
</datepicker>
|
46
|
+
</div>
|
47
|
+
<div class="form-group col-sm-3 form-input-group" style="width: 20%;">
|
48
|
+
<label class="font_normal_body">用户类型</label>
|
49
|
+
<v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
|
50
|
+
:value-single="true" style="width: 60%"
|
51
|
+
class="select_list select"
|
52
|
+
:options='$parent.$parent.user_types' placeholder='用户类型'
|
53
|
+
close-on-select
|
54
|
+
condition="f_check_type = '{}'"></v-select>
|
55
|
+
</div>
|
56
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%;float: right;">
|
57
|
+
<!-- <report-print class="button_export button_spacing" style="width:28%" id='tongchuan'></report-print>-->
|
58
|
+
<export-excel-safe :data="$parent.$parent.searchData"
|
59
|
+
:field="$parent.$parent.excelHeaders"
|
60
|
+
sqlurl="rs/logic/SafeExportExcel"
|
61
|
+
sql-name="SafecheckSummary"
|
62
|
+
:template-name="$parent.$parent.excelTitle">
|
63
|
+
</export-excel-safe>
|
64
|
+
<button type="button" name="button" class="button_search" style="margin-left: 9px" @click="search">查询</button>
|
65
|
+
</div>
|
66
|
+
</div>
|
67
|
+
</div>
|
68
|
+
</criteria>
|
69
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" id="tongchuan" v-ref:grid >
|
70
|
+
<template partial='head'>
|
71
|
+
<tr>
|
72
|
+
<!-- <th>-->
|
73
|
+
<!-- <nobr>序号</nobr>-->
|
74
|
+
<!-- </th>-->
|
75
|
+
<!-- <th>-->
|
76
|
+
<!-- <nobr>安检月份</nobr>-->
|
77
|
+
<!-- </th>-->
|
78
|
+
<th>
|
79
|
+
<nobr>安检员</nobr>
|
80
|
+
</th>
|
81
|
+
<th>
|
82
|
+
<nobr>已检</nobr>
|
83
|
+
</th>
|
84
|
+
<th>
|
85
|
+
<nobr>入户</nobr>
|
86
|
+
</th>
|
87
|
+
<th>
|
88
|
+
<nobr>到访不遇</nobr>
|
89
|
+
</th>
|
90
|
+
<th>
|
91
|
+
<nobr>拒检</nobr>
|
92
|
+
</th>
|
93
|
+
<!-- <th>-->
|
94
|
+
<!-- <nobr>隐患数</nobr>-->
|
95
|
+
<!-- </th>-->
|
96
|
+
<th>
|
97
|
+
<nobr>入户率</nobr>
|
98
|
+
</th>
|
99
|
+
</tr>
|
100
|
+
</template>
|
101
|
+
<template partial='body'>
|
102
|
+
<tr>
|
103
|
+
<!-- <td style="text-align:center">{{$index + 1}}</td>-->
|
104
|
+
<!-- <td style="text-align:center">-->
|
105
|
+
<!-- <nobr>{{ row.yuefeng }}</nobr>-->
|
106
|
+
<!-- </td>-->
|
107
|
+
<td style="text-align:center">
|
108
|
+
<nobr>{{ row.f_checker_name }}</nobr>
|
109
|
+
</td>
|
110
|
+
<td style="text-align:center">
|
111
|
+
<nobr>{{ row.yijian }}</nobr>
|
112
|
+
</td>
|
113
|
+
<td style="text-align:center">
|
114
|
+
<nobr>{{ row.ruhu }}</nobr>
|
115
|
+
</td>
|
116
|
+
<td style="text-align:center">
|
117
|
+
<nobr>{{ row.daofang }}</nobr>
|
118
|
+
</td>
|
119
|
+
<td style="text-align:center">
|
120
|
+
<nobr>{{ row.jujian }}</nobr>
|
121
|
+
</td>
|
122
|
+
<!-- <td style="text-align:center">-->
|
123
|
+
<!-- <nobr>{{ row.yinhuan }}</nobr>-->
|
124
|
+
<!-- </td>-->
|
125
|
+
<td style="text-align:center">
|
126
|
+
<nobr>{{ row.ruhu_bv }}</nobr>
|
127
|
+
</td>
|
128
|
+
</tr>
|
129
|
+
</template>
|
130
|
+
<template partial="foot">
|
131
|
+
<td style="text-align: center"><span><b>合计:</b></span></td>
|
132
|
+
<!-- <td style="text-align: center"><span><b> </b></span></td>-->
|
133
|
+
<!-- <td style="text-align: center"><span><b> </b></span></td>-->
|
134
|
+
<td style="text-align: center">{{model.sums.yijian}}</td>
|
135
|
+
<td style="text-align: center">{{model.sums.ruhu}}</td>
|
136
|
+
<td style="text-align: center">{{model.sums.daofang}}</td>
|
137
|
+
<td style="text-align: center">{{model.sums.jujian}}</td>
|
138
|
+
<!-- <td style="text-align: center">{{model.sums.yinhuan}}</td>-->
|
139
|
+
<td style="text-align: center">{{ (model.sums.ruhu && model.sums.yijian) ? (model.sums.ruhu / model.sums.yijian * 100.0).toFixed(2) : 0.00}}%</td>
|
140
|
+
</template>
|
141
|
+
</data-grid>
|
142
|
+
</criteria-paged>
|
143
|
+
</div>
|
144
|
+
</section>
|
145
|
+
</div>
|
146
|
+
</template>
|
147
|
+
<script>
|
148
|
+
import {PagedList, HttpResetClass} from 'vue-client'
|
149
|
+
import * as Util from '../../Util'
|
150
|
+
|
151
|
+
export default {
|
152
|
+
title: '无计划安检汇总',
|
153
|
+
data () {
|
154
|
+
let model = new PagedList('rs/sql/SafecheckSummary', 20, {
|
155
|
+
f_filiale_id: 'this.f_filiale_id'
|
156
|
+
},{yijian:'',ruhu:'',daofang:'',jujian:'',yinhuan:''})
|
157
|
+
model.f_filiale_id = `('${this.$login.f.orgid}')`
|
158
|
+
return {
|
159
|
+
user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
|
160
|
+
f_filiale_id: `('${this.$login.f.orgid}')`, // 分公司id
|
161
|
+
model: model,
|
162
|
+
source: 'tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))', //获取公司参数
|
163
|
+
userid: this.$login.f.id,
|
164
|
+
orgname: '',
|
165
|
+
// checker:{},
|
166
|
+
searchData: {
|
167
|
+
condition: '',
|
168
|
+
f_filiale_id: ''
|
169
|
+
},
|
170
|
+
excelHeaders: {
|
171
|
+
'yuefeng': '安检月份',
|
172
|
+
'f_checker_name': '安检员',
|
173
|
+
'yijian': '已检',
|
174
|
+
'ruhu': '入户',
|
175
|
+
'daofang': '到访不遇',
|
176
|
+
'jujian': '拒检',
|
177
|
+
'ruhu_bv': '入户率'
|
178
|
+
}
|
179
|
+
}
|
180
|
+
},
|
181
|
+
methods: {
|
182
|
+
getRes (obj) {
|
183
|
+
this.f_filiale_id = this.$login.convertToIn(obj.resids)
|
184
|
+
this.orgname = obj.res[0]
|
185
|
+
this.$set('orgname', obj.res[0])
|
186
|
+
console.log(
|
187
|
+
`%c 无计划安检汇总公司名 %c 呼叫模块 %c`,
|
188
|
+
'background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff',
|
189
|
+
'background:#41b883 ; padding: 1px; border-radius: 0 3px 3px 0; color: #fff',
|
190
|
+
'background:transparent',
|
191
|
+
this.orgname
|
192
|
+
)
|
193
|
+
},
|
194
|
+
selfSearch (args) {
|
195
|
+
if (!this.f_filiale_id) {
|
196
|
+
return this.$showMessage("请选择公司进行查询!!!")
|
197
|
+
}
|
198
|
+
this.model.f_filiale_id = this.f_filiale_id // 只有选择了下面的条件才会变化
|
199
|
+
this.searchData.f_filiale_id = this.f_filiale_id //导出
|
200
|
+
this.searchData.condition=args.condition //导出
|
201
|
+
this.model.search(args.condition, args.model)
|
202
|
+
}
|
203
|
+
},
|
204
|
+
computed: {
|
205
|
+
excelTitle() {
|
206
|
+
return `${this.orgname }无计划安检汇总`
|
207
|
+
},
|
208
|
+
},
|
209
|
+
watch: {
|
210
|
+
},
|
211
|
+
ready () {
|
212
|
+
this.orgname = this.$login.f.orgs
|
213
|
+
//tag)
|
214
|
+
//tag
|
215
|
+
this.$refs.paged.$refs.cri.model.startDate=Util.toStartDateString() +' 00:00:00'
|
216
|
+
this.$refs.paged.$refs.cri.model.endDate=Util.toEndDateString() +' 23:59:59'
|
217
|
+
|
218
|
+
}
|
219
|
+
|
220
|
+
}
|
221
|
+
</script>
|
222
|
+
|
223
|
+
<style lang="less" >
|
224
|
+
.tableinfo {
|
225
|
+
text-align: center;
|
226
|
+
background-color: #00A3F0;
|
227
|
+
color: #0c2e4d;
|
228
|
+
font-size: 26px;
|
229
|
+
}
|
230
|
+
</style>
|