safecheck-client 4.0.0-98 → 4.0.1-1
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 +2 -2
- package/src/App.vue +31 -31
- package/src/components/CheckerCount/CheckCountAreaManage.vue +1 -1
- package/src/components/NewDefectList/DefectPaperNew.vue +1184 -1079
- package/src/components/Util/SafecheckUpload.vue +281 -281
- package/src/components/android/PhoneUpUserinfo.vue +1249 -1249
- package/src/components/android/SafeRightTree.vue +217 -0
- package/src/components/android/SafecheckDevices.vue +1340 -1340
- package/src/components/android/SwitchValve.vue +2 -2
- package/src/components/map/PersonTrack.vue +3 -1
- package/src/components/map/checkScreen.vue +47 -13
- package/src/components/paper/PaperList.vue +797 -796
- package/src/components/paper/RegionalList.vue +220 -0
- package/src/components/pc/AddToCheckBook.vue +1 -1
- package/src/components/pc/CheckBook.vue +303 -303
- package/src/components/pc/CheckBookArea.vue +146 -146
- package/src/components/pc/CheckBookCompany.vue +144 -144
- package/src/components/pc/CheckBookDetails.vue +161 -161
- package/src/components/pc/CheckBookEntry.vue +60 -60
- package/src/components/pc/CheckBookSearchArea.vue +560 -560
- package/src/components/pc/CheckBookSearchUnit.vue +229 -229
- package/src/components/pc/CheckBookSearchUser.vue +659 -659
- package/src/components/pc/CheckBookSearchUserList.vue +674 -674
- package/src/components/pc/CheckBookUser.vue +333 -333
- package/src/components/pc/DefectDeal.vue +1 -1
- package/src/components/pc/PaperDefectMain.vue +880 -880
- package/src/components/report/CheckPlanAreaManage.vue +1 -1
- package/src/components/report/HiddenSituationNoSubtotal.vue +165 -0
- package/src/components/report/communityTypeDetailM.vue +113 -0
- package/src/filiale/jinhong/android/CurrentCreate.vue +1240 -1240
- package/src/filiale/jinhong/android/PhoneInsuranceRecordList.vue +3 -3
- package/src/filiale/jinhong/pc/CheckPlanAreaList.vue +9 -2
- package/src/filiale/jinhong/pc/PlanManage.vue +5 -5
- package/src/filiale/jinhong/pc/checkPlanList.vue +418 -0
- package/src/filiale/jinhong/pc/checkUserList.vue +19 -21
- package/src/filiale/jinhong/pc.js +1 -0
- package/src/filiale/meihekou/android/CheckPlanList.vue +198 -198
- package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -190
- package/src/filiale/meihekou/android/CurrentCreate.vue +33 -91
- package/src/filiale/meihekou/android/PaperFeedback.vue +1542 -1538
- package/src/filiale/meihekou/android/SafecheckDevices.vue +1340 -0
- package/src/filiale/meihekou/android/SafecheckOrderV.vue +2421 -2413
- package/src/filiale/meihekou/android.js +22 -21
- package/src/filiale/meihekou/pc/NewCheckpaper.vue +2027 -1959
- package/src/filiale/qingjian/pc/NewCheckpaper.vue +4 -4
- package/src/filiale/qingjian/pc/checkUserList.vue +835 -0
- package/src/filiale/qingjian/pc.js +1 -1
- package/src/filiale/weinan/pc/CheckPlanAreaManage.vue +1 -1
- package/src/filiale/xinkang/pc/CheckPlanAreaManage.vue +1 -1
- package/src/main.js +33 -33
- package/src/safecheck-android.js +1 -0
- package/src/safecheck.js +9 -1
@@ -0,0 +1,220 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="flex-row">
|
3
|
+
<div class="basic-main">
|
4
|
+
<criteria-paged :model="model" v-ref:paged >
|
5
|
+
<criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
|
6
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
7
|
+
<div class="row">
|
8
|
+
<div class="form-group col-sm-2">
|
9
|
+
<label class="control-label">公  司</label>
|
10
|
+
<right-tree @re-res="$parent.$parent.getRes" :initresid="$login.f.orgid">
|
11
|
+
</right-tree>
|
12
|
+
</div>
|
13
|
+
<div class="form-group col-sm-2" >
|
14
|
+
<label class="font_normal_body">区域</label>
|
15
|
+
<v-select :value.sync="model.f_name" v-model='model.f_name'
|
16
|
+
:value-single="true" style="width: 60%"
|
17
|
+
class="select_list select"
|
18
|
+
:options='$parent.$parent.areaList' placeholder='区域'
|
19
|
+
close-on-select
|
20
|
+
condition="f_name = '{}'"></v-select>
|
21
|
+
</div>
|
22
|
+
<div class="form-group col-sm-2" >
|
23
|
+
<label class="font_normal_body">调压箱</label>
|
24
|
+
<v-select :value.sync="model.f_adjustable_id" v-model='model.f_adjustable_id'
|
25
|
+
|
26
|
+
:value-single="true" style="width: 60%"
|
27
|
+
class="select_list select"
|
28
|
+
:options='$parent.$parent.boxOptions' placeholder='调压箱'
|
29
|
+
close-on-select
|
30
|
+
condition="f_adjustable_id = '{}'"></v-select>
|
31
|
+
</div>
|
32
|
+
<div class="form-group col-sm-2" >
|
33
|
+
<label class="font_normal_body">安检时间</label>
|
34
|
+
<datepicker
|
35
|
+
:default="true"
|
36
|
+
:value.sync="model.start"
|
37
|
+
placeholder='开始时间' style="width: 60%"
|
38
|
+
:disabled-days-of-week="[]"
|
39
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
40
|
+
:show-rest-button="reset"
|
41
|
+
v-model="model.start"
|
42
|
+
>
|
43
|
+
</datepicker>
|
44
|
+
</div>
|
45
|
+
<div class="form-group col-sm-2" >
|
46
|
+
<label class="font_normal_body">安检时间</label>
|
47
|
+
<datepicker
|
48
|
+
:default="true"
|
49
|
+
:value.sync="model.end"
|
50
|
+
placeholder='结束时间' style="width: 60%"
|
51
|
+
:disabled-days-of-week="[]"
|
52
|
+
:format="'yyyy-MM-dd 23:59:00'"
|
53
|
+
:show-rest-button="reset"
|
54
|
+
v-model="model.end">
|
55
|
+
</datepicker>
|
56
|
+
</div>
|
57
|
+
<button class="button_spacing button_search" @click="$parent.$parent.search()">查询</button>
|
58
|
+
<div style="float: right" class="button_spacing"
|
59
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
60
|
+
@click="$parent.$parent.hidden()"></div>
|
61
|
+
<div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
|
62
|
+
</div>
|
63
|
+
</div>
|
64
|
+
</div>
|
65
|
+
</criteria>
|
66
|
+
<data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
|
67
|
+
<template partial='head'>
|
68
|
+
<tr>
|
69
|
+
<th>
|
70
|
+
<nobr>公司</nobr>
|
71
|
+
</th>
|
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
|
+
<th>
|
100
|
+
<nobr>未处理数</nobr>
|
101
|
+
</th>
|
102
|
+
<th>
|
103
|
+
<nobr>安检完成率</nobr>
|
104
|
+
</th>
|
105
|
+
</tr>
|
106
|
+
</template>
|
107
|
+
<template partial='body'>
|
108
|
+
<td style="text-align: center">{{row.f_orgname}}</td>
|
109
|
+
<td style="text-align: center">{{row.f_name}}</td>
|
110
|
+
<td style="text-align: center">{{row.f_adjustable_name}}</td>
|
111
|
+
<td style="text-align: center">{{row.usertotal}}</td>
|
112
|
+
<td style="text-align: center">{{row.ruhutotal}}</td>
|
113
|
+
<td style="text-align: center">{{row.usertotal-row.ruhutotal}}</td>
|
114
|
+
<td style="text-align: center">{{row.buyutotal}}</td>
|
115
|
+
<td style="text-align: center">{{row.jujiantotal}}</td>
|
116
|
+
<td style="text-align: center">{{row.f_defect_count}}</td>
|
117
|
+
<td style="text-align: center">{{row.f_repair_count}}</td>
|
118
|
+
<td style="text-align: center">{{row.weichuli}}</td>
|
119
|
+
<td style="text-align: center">{{row.ruhulv}}</td>
|
120
|
+
</template>
|
121
|
+
</data-grid>
|
122
|
+
</criteria-paged>
|
123
|
+
</div>
|
124
|
+
</div>
|
125
|
+
</template>
|
126
|
+
|
127
|
+
<script>
|
128
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
129
|
+
import * as Util from "util";
|
130
|
+
export default {
|
131
|
+
title: '安检区域汇总',
|
132
|
+
data() {
|
133
|
+
let model = new PagedList('rs/sql/regionalCheckList', 20,{
|
134
|
+
start: 'this.start',
|
135
|
+
end: 'this.end',
|
136
|
+
})
|
137
|
+
model.start = ''
|
138
|
+
model.end = ''
|
139
|
+
return {
|
140
|
+
model: model,
|
141
|
+
f_filialeids: '',
|
142
|
+
areaList: [],
|
143
|
+
boxOptions: [],
|
144
|
+
}
|
145
|
+
},
|
146
|
+
methods: {
|
147
|
+
//获取区域信息
|
148
|
+
async getAreaList() {
|
149
|
+
let resp = await new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_OrderBy`, {
|
150
|
+
data: {
|
151
|
+
items:'*',
|
152
|
+
tablename: 't_region',
|
153
|
+
condition: `f_orgid = '${this.$login.f.orgid}'`,
|
154
|
+
orderitem:'id'
|
155
|
+
}
|
156
|
+
}, {resolveMsg: null, rejectMsg: null})
|
157
|
+
//tag)
|
158
|
+
const areas = [{label: '全部', value: ''}]
|
159
|
+
for (const item of resp.data) {
|
160
|
+
areas.push({
|
161
|
+
label: item.f_name,
|
162
|
+
value: item.f_name
|
163
|
+
})
|
164
|
+
}
|
165
|
+
this.areaList = areas
|
166
|
+
},
|
167
|
+
getAdjustableList() {
|
168
|
+
new HttpResetClass().load('post', `/rs/sql/adjustableboxQuery`,
|
169
|
+
{data: {condition: '1 = 1'}},
|
170
|
+
{
|
171
|
+
resolveMsg: null,
|
172
|
+
rejectMsg: null
|
173
|
+
}).then((res) => {
|
174
|
+
const boxOptions =[{label: '全部', value: ''}]
|
175
|
+
for (const data of res.data) {
|
176
|
+
const one = {
|
177
|
+
label: data.f_adjustable_name,
|
178
|
+
value: data.id
|
179
|
+
}
|
180
|
+
boxOptions.push(one)
|
181
|
+
}
|
182
|
+
this.boxOptions = boxOptions
|
183
|
+
}).catch((msg) => {
|
184
|
+
})
|
185
|
+
},
|
186
|
+
getRes(obj) {
|
187
|
+
this.f_filialeids = this.$login.convertToIn(obj.resids);
|
188
|
+
},
|
189
|
+
hidden() {
|
190
|
+
this.criteriaShow = !this.criteriaShow
|
191
|
+
},
|
192
|
+
refresh() {
|
193
|
+
this.$refs.paged.$refs.criteria.search()
|
194
|
+
},
|
195
|
+
search() {
|
196
|
+
this.$refs.paged.$refs.criteria.search()
|
197
|
+
},
|
198
|
+
selfSearch(args) {
|
199
|
+
if(args.model.start!=''){
|
200
|
+
this.model.start = args.model.start
|
201
|
+
}
|
202
|
+
if(args.model.end!=''){
|
203
|
+
this.model.end = args.model.end
|
204
|
+
}
|
205
|
+
if(this.f_filialeids!=''){
|
206
|
+
args.condition += ` and f_orgid in ${this.f_filialeids}`
|
207
|
+
|
208
|
+
}
|
209
|
+
this.model.search(args.condition, args.model)
|
210
|
+
}
|
211
|
+
},
|
212
|
+
ready() {
|
213
|
+
this.getAdjustableList()
|
214
|
+
this.getAreaList()
|
215
|
+
this.search()
|
216
|
+
},
|
217
|
+
watch: { }
|
218
|
+
|
219
|
+
}
|
220
|
+
</script>
|
@@ -73,7 +73,7 @@
|
|
73
73
|
new HttpResetClass().load('POST','api/af-safecheck/sql/safe_singleTable_OrderBy?pageNo=1&pageSize=9999999',{data: {
|
74
74
|
items: 'id,f_check_book_name,f_check_book_type,f_user_type',
|
75
75
|
tablename: 't_check_book',
|
76
|
-
condition: `1=1`,
|
76
|
+
condition: `1=1 and f_orgid = ${this.$login.f.orgid}`,
|
77
77
|
orderitem: 'id'
|
78
78
|
}}, {resolveMsg: null, rejectMsg: null}).then(res=>{
|
79
79
|
console.log("checkbook", res.data)
|