safecheck-client 3.0.34-6 → 3.0.34-61
Sign up to get free protection for your applications and to get access to all the features.
- package/docs/FormPrint.md +18 -18
- package/docs/GridTree.md +47 -47
- package/docs/PrintFile.md +38 -38
- package/docs/tree.md +40 -40
- package/package.json +1 -1
- package/src/App-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.vue +55 -0
- package/src/assets/123.png +0 -0
- package/src/assets/f8632d3c8c4c1cb68e99da754cab1a7.png +0 -0
- package/src/components/LoadData.vue +62 -0
- package/src/components/NewDefectList/DefectListNew.vue +617 -616
- package/src/components/android/AddGas.vue +147 -147
- package/src/components/android/AndroidDefectDeal.vue +1 -0
- package/src/components/android/AreaPlan.vue +566 -566
- package/src/components/android/AreaSelect.vue +208 -0
- package/src/components/android/BuildingSelect.vue +217 -0
- package/src/components/android/CheckPlanSelect.vue +248 -0
- package/src/components/android/CheckerMonthly.vue +84 -84
- package/src/components/android/LcheckUnplan.vue +108 -108
- package/src/components/android/PaperFeedback.vue +33 -0
- package/src/components/android/QRCode/QRCodeBinding.vue +300 -0
- package/src/components/android/QRCode/QRCodePage.vue +212 -0
- package/src/components/android/SafecheckDevices.vue +2 -2
- package/src/components/android/SafecheckOrderV.vue +8 -12
- package/src/components/android/SwitchValve.vue +323 -323
- package/src/components/android/examples/SafeListExamples.vue +96 -0
- package/src/components/android/examples/UserExamples.vue +130 -0
- package/src/components/checkerphonestate/Checker.vue +32 -32
- package/src/components/checkerphonestate/CheckerState.vue +97 -97
- package/src/components/defects/AddDefectModal.vue +120 -120
- package/src/components/defects/AddDevice.vue +95 -95
- package/src/components/defects/DevicesSeting.vue +106 -106
- package/src/components/metterfiles/AddUserfiles.vue +246 -246
- package/src/components/metterfiles/MetterFiles.vue +104 -104
- package/src/components/notice/NoticeQuery.vue +76 -76
- package/src/components/paper/RepairVerifyForm.vue +76 -76
- package/src/components/phonestate/DailyTraffic.vue +57 -57
- package/src/components/phonestate/LastKnownState.vue +74 -74
- package/src/components/rongcheng/AddPlanItem.vue +4 -0
- package/src/components/rongcheng/AspiratedUserInfo.vue +1 -1
- package/src/components/rongcheng/CheckSearchUser.vue +40 -14
- package/src/components/rongcheng/PaperStatem.vue +6 -1
- package/src/components/rongcheng/PhoneDevicesInfo.vue +16 -1
- package/src/components/rongcheng/PhoneUpUserinfo.vue +0 -92
- package/src/components/rongcheng/SafecheckOrderV.vue +12 -3
- package/src/components/rongcheng/SafecheckOrderVCli.vue +9 -0
- package/src/components/task/RepairAnnual.vue +79 -79
- package/src/components/task/RepairAnnualDetail.vue +49 -49
- package/src/components/task/RepairMonthly.vue +91 -91
- package/src/components/task/TaskAnnual.vue +77 -77
- package/src/components/task/TaskAnnualDetail.vue +47 -47
- package/src/components/task/TaskMonthly.vue +89 -89
- package/src/components/userfile/UserfileChange.vue +277 -277
- package/src/filiale/baiyin/android/AndroidDefectDeal.vue +4 -4
- package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -0
- package/src/filiale/baiyin/android.js +1 -0
- package/src/filiale/baiyin/pc/CheckSearchUser.vue +2 -2
- package/src/filiale/baiyin/pc/DefectListNew.vue +3 -3
- package/src/filiale/baiyin/pc/PaperList.vue +7 -7
- package/src/filiale/baiyin/pc/checkUserList.vue +771 -771
- package/src/filiale/baiyin/pc.js +21 -21
- package/src/filiale/bayan/android/SafecheckOrderV.vue +52 -29
- package/src/filiale/bayan/pc/PaperList.vue +1 -0
- package/src/filiale/fugou/pc/CheckBookSearchUser.vue +35 -15
- 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/jiaxian/android/AddPlanItem.vue +447 -0
- package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1229 -0
- package/src/filiale/jiaxian/android/SafecheckDevices.vue +6 -6
- package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -0
- package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -0
- package/src/filiale/jiaxian/android.js +4 -0
- package/src/filiale/kelai/pc/CheckPlanAreaList.vue +15 -7
- 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/shanxian/pc/checkUserList.vue +700 -700
- package/src/filiale/siyang/pc/CheckBookSearchArea.vue +645 -0
- package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -0
- package/src/filiale/siyang/pc/CheckSearchUser.vue +982 -0
- package/src/filiale/siyang/pc/HiddenSituation.vue +167 -0
- package/src/filiale/siyang/pc/checkPlanList.vue +367 -0
- package/src/filiale/siyang/pc/checkUserList.vue +22 -18
- package/src/filiale/siyang/pc.js +5 -0
- package/src/filiale/tongchuan/android/Select.vue +421 -0
- package/src/filiale/tongchuan/android.js +1 -0
- package/src/filiale/tongchuan/pc/CheckPlanCountChartArea.vue +3 -1
- package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +6 -2
- package/src/filiale/tongchuan/pc/HiddenSituation.vue +3 -1
- package/src/filiale/tongchuan/pc/NewCheckpaper.vue +13 -22
- package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
- package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +5 -2
- package/src/filiale/tongchuan/utils/EventListener.js +29 -0
- package/src/filiale/tongchuan/utils/coerceBoolean.js +7 -0
- package/src/filiale/weinan/android/SafecheckDevices.vue +1 -1
- package/src/filiale/weinan/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +735 -722
- package/src/filiale/weinan/pc/CheckDetail.vue +278 -278
- package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
- package/src/filiale/weinan/pc/DefectMainNew.vue +63 -63
- package/src/filiale/weinan/pc/DefectPaperNew.vue +31 -0
- package/src/filiale/weinan/pc/DeviceChange.vue +1088 -0
- package/src/filiale/weinan/pc/checkUserList.vue +712 -776
- package/src/filiale/weinan/pc.js +47 -46
- package/src/filiale/wuan/android/SafecheckOrderV.vue +1 -0
- package/src/filiale/wuan/android/SafecheckUserInfo.vue +4 -0
- package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1192 -1192
- package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +472 -472
- package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +473 -473
- package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +13 -11
- package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +6 -6
- package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +10 -10
- package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +10 -10
- package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +6 -6
- package/src/filiale/yangchunboneng/pc/PaperList.vue +6 -6
- package/src/filiale/yuansheng/android/SafecheckDevices.vue +11 -1
- package/src/filiale/yuansheng/pc/NewCheckpaper.vue +10 -2
- package/src/main-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.js +24 -0
- package/src/safecheck-android.js +7 -0
- package/src/safecheck-page.js +10 -0
@@ -0,0 +1,208 @@
|
|
1
|
+
<style scoped>
|
2
|
+
.bg {
|
3
|
+
background-color: blue;
|
4
|
+
height: 1px;
|
5
|
+
border: 0;
|
6
|
+
}
|
7
|
+
.app-row {
|
8
|
+
background-color: white;
|
9
|
+
padding: 10px 10px 0 10px;
|
10
|
+
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
11
|
+
}
|
12
|
+
.search_input {
|
13
|
+
border: 0;
|
14
|
+
outline: none;
|
15
|
+
}
|
16
|
+
.font{
|
17
|
+
font: 15px PingFang-SC-Medium;
|
18
|
+
color: #666666;
|
19
|
+
}
|
20
|
+
.input-font{
|
21
|
+
font: 15px PingFang-SC-Medium;
|
22
|
+
color: #333333;
|
23
|
+
}
|
24
|
+
.btn-font{
|
25
|
+
font:600 16px PingFang-SC-Bold;
|
26
|
+
color: #499EDF;
|
27
|
+
}
|
28
|
+
.btn-color{
|
29
|
+
background-color: #FFFFFF;
|
30
|
+
border-radius: 10px ;
|
31
|
+
border: 1px solid #499EDF;
|
32
|
+
}
|
33
|
+
.app-text {
|
34
|
+
font-size: 12px;
|
35
|
+
}
|
36
|
+
.panel-self{
|
37
|
+
border-radius: 10px;
|
38
|
+
border:1px solid #499EDF;
|
39
|
+
background-color: #F8F8F8;
|
40
|
+
}
|
41
|
+
.yybtn-color{
|
42
|
+
background-color:#499edf;
|
43
|
+
border-radius: 4px ;
|
44
|
+
border: 1px solid #499EDF;
|
45
|
+
color: #FFFFFF;
|
46
|
+
font: 14px PingFang-SC-Bold;
|
47
|
+
}
|
48
|
+
table {
|
49
|
+
text-align: center;
|
50
|
+
white-space: nowrap;
|
51
|
+
font-size: 12px;
|
52
|
+
width: 50%;
|
53
|
+
border-collapse: collapse;
|
54
|
+
margin: 20px 0;
|
55
|
+
margin: auto;
|
56
|
+
}
|
57
|
+
th, td {
|
58
|
+
padding: 12px;
|
59
|
+
border-bottom: 1px solid #ddd;
|
60
|
+
}
|
61
|
+
th {
|
62
|
+
background-color: #f2f2f2;
|
63
|
+
}
|
64
|
+
tr:hover {background-color: #f5f5f5;}
|
65
|
+
.qxbtn-color{
|
66
|
+
background-color: #FFFFFF;
|
67
|
+
border-radius: 4px ;
|
68
|
+
color: #499edf;
|
69
|
+
font: 14px PingFang-SC-Bold;
|
70
|
+
border: 1px solid #499EDF;
|
71
|
+
}
|
72
|
+
|
73
|
+
.button_shrink_top {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_top.png")}
|
74
|
+
.button_shrink_bottom {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_bottom.png")}
|
75
|
+
.button_shrink_left {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_left.png")}
|
76
|
+
.button_shrink_right {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_right.png")}
|
77
|
+
</style>
|
78
|
+
<style>
|
79
|
+
.clear-select-with .dropdown-menu{
|
80
|
+
left: 0px !important;
|
81
|
+
width: 200% !important;
|
82
|
+
}
|
83
|
+
</style>
|
84
|
+
<template>
|
85
|
+
<div style="height: auto;width: 100%">
|
86
|
+
<criteria-paged :model="model" v-ref:paged :pager="false">
|
87
|
+
<criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
|
88
|
+
<div partial>
|
89
|
+
<form>
|
90
|
+
<div class="row app-row">
|
91
|
+
<div class="col-xs-4">
|
92
|
+
<img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
|
93
|
+
<label for="f_userinfo_code" class="font text-left">小区名称:</label>
|
94
|
+
</div>
|
95
|
+
<div class="col-xs-8" >
|
96
|
+
<input id="f_userinfo_code" class="search_input input-font"
|
97
|
+
v-model=model.f_residential_area condition="f_residential_area like '%{}%'" />
|
98
|
+
</div>
|
99
|
+
</div>
|
100
|
+
<div class="row app-row">
|
101
|
+
<div class="col-xs-4">
|
102
|
+
<img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
|
103
|
+
<label for="f_userinfo_code" class="font text-left">小区地址:</label>
|
104
|
+
</div>
|
105
|
+
<div class="col-xs-8" >
|
106
|
+
<input id="f_userinfo_code" class="search_input input-font"
|
107
|
+
v-model=model.f_area_address condition="f_area_address like '%{}%'" />
|
108
|
+
</div>
|
109
|
+
</div>
|
110
|
+
<div class="row text-center" style="margin-top: 20px;">
|
111
|
+
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;" @click="search">查询</button>
|
112
|
+
<img @click="$parent.$parent.getNewOrder" src="../../assets/shuaxindaiban1.png" style="float: right;margin-right: 3%;width: 40px;padding: 5px; float:right">
|
113
|
+
</div>
|
114
|
+
<div class="col-sm-12">
|
115
|
+
</div>
|
116
|
+
<div style="height:30px;"></div>
|
117
|
+
</form>
|
118
|
+
</div>
|
119
|
+
</criteria>
|
120
|
+
<list :model="model" partial='list'>
|
121
|
+
<div partial>
|
122
|
+
<div class="auto app-text" style="margin-top: 5px;">
|
123
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
124
|
+
<div class="panel-body panel-self" @click="">
|
125
|
+
<div class="col-xs-12">
|
126
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>小区名称:</b></p>
|
127
|
+
<p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{ row.f_residential_area }}</p>
|
128
|
+
</div>
|
129
|
+
<div class="col-xs-12">
|
130
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>小区地址:</b></p>
|
131
|
+
<p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_area_address }}</p>
|
132
|
+
</div>
|
133
|
+
<div class="col-xs-12">
|
134
|
+
<table>
|
135
|
+
<tr>
|
136
|
+
<td style="color: #00A3F0">{{row.jihuazongshu}}</td>
|
137
|
+
<td style="color: #3CC51F">{{row.yijian}}</td>
|
138
|
+
<td style="color: coral">{{row.weijian}}</td>
|
139
|
+
<td style="color: red">{{row.daofangbuyu}}</td>
|
140
|
+
</tr>
|
141
|
+
<tr>
|
142
|
+
<th>计划总户数</th>
|
143
|
+
<th>已检户数</th>
|
144
|
+
<th>未检户数</th>
|
145
|
+
<th>到访不遇户数</th>
|
146
|
+
</tr>
|
147
|
+
</table>
|
148
|
+
</div>
|
149
|
+
</div>
|
150
|
+
</div>
|
151
|
+
</div>
|
152
|
+
</div>
|
153
|
+
</list>
|
154
|
+
</criteria-paged>
|
155
|
+
</div>
|
156
|
+
</template>
|
157
|
+
<script>
|
158
|
+
import LocalPagedList from '../../plugins/LocalPagedList'
|
159
|
+
export default {
|
160
|
+
title: '安检待办',
|
161
|
+
props: ['row'],
|
162
|
+
data() {
|
163
|
+
return {
|
164
|
+
model:new LocalPagedList('androidGetuserinfo',20,{condition:'this.condition'}),
|
165
|
+
}
|
166
|
+
},
|
167
|
+
ready(){
|
168
|
+
this.getAllPlanName()
|
169
|
+
},
|
170
|
+
methods: {
|
171
|
+
gotoAreaSelect(row){
|
172
|
+
let _this = this
|
173
|
+
let pardate = {
|
174
|
+
_this:_this,
|
175
|
+
title:'待办工作',
|
176
|
+
safe:true
|
177
|
+
}
|
178
|
+
_this.$dispatch('gotoson',pardate)
|
179
|
+
_this.$goto('area-select', {row: row}, 'self')
|
180
|
+
|
181
|
+
},
|
182
|
+
search(args){
|
183
|
+
let condition = '1=1'
|
184
|
+
this.model.rows = []
|
185
|
+
let criteria = {
|
186
|
+
items: `tcpi.f_residential_area,COUNT(tcpi.id) as jihuazongshu,sum( CASE WHEN tcpi.f_state = '未检' THEN 1 ELSE 0 END ) as weijian,sum( CASE WHEN tcpi.f_state = '已检' THEN 1 ELSE 0 END ) as yijian,sum( CASE WHEN tcpi.f_last_check_state = '到访不遇' THEN 1 ELSE 0 END ) as daofangbuyu`,
|
187
|
+
tablename: 't_check_plan_item tcpi ',
|
188
|
+
condition: args.condition || condition,
|
189
|
+
groupitem: 'tcpi.f_residential_area'
|
190
|
+
}
|
191
|
+
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
192
|
+
this.model.rows = result.data.rows
|
193
|
+
},
|
194
|
+
getAllAreaName(){
|
195
|
+
let criteria = {
|
196
|
+
items: 'f_residential_area',
|
197
|
+
tablename: 't_check_plan_item',
|
198
|
+
condition: `f_residential_area IS NOT NULL AND f_residential_area != '' AND f_state <> '已检'`,
|
199
|
+
groupitem: 'f_residential_area'
|
200
|
+
}
|
201
|
+
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
202
|
+
if(result.code == 200){
|
203
|
+
result.data.rows.forEach(item => this.residentialAreaOptions.push({label:item.f_residential_area,value:item.f_residential_area}))
|
204
|
+
}
|
205
|
+
},
|
206
|
+
}
|
207
|
+
}
|
208
|
+
</script>
|
@@ -0,0 +1,217 @@
|
|
1
|
+
<style scoped>
|
2
|
+
.bg {
|
3
|
+
background-color: blue;
|
4
|
+
height: 1px;
|
5
|
+
border: 0;
|
6
|
+
}
|
7
|
+
.app-row {
|
8
|
+
background-color: white;
|
9
|
+
padding: 10px 10px 0 10px;
|
10
|
+
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
11
|
+
}
|
12
|
+
.search_input {
|
13
|
+
border: 0;
|
14
|
+
outline: none;
|
15
|
+
}
|
16
|
+
.font{
|
17
|
+
font: 15px PingFang-SC-Medium;
|
18
|
+
color: #666666;
|
19
|
+
}
|
20
|
+
.input-font{
|
21
|
+
font: 15px PingFang-SC-Medium;
|
22
|
+
color: #333333;
|
23
|
+
}
|
24
|
+
.btn-font{
|
25
|
+
font:600 16px PingFang-SC-Bold;
|
26
|
+
color: #499EDF;
|
27
|
+
}
|
28
|
+
.btn-color{
|
29
|
+
background-color: #FFFFFF;
|
30
|
+
border-radius: 10px ;
|
31
|
+
border: 1px solid #499EDF;
|
32
|
+
}
|
33
|
+
.app-text {
|
34
|
+
font-size: 12px;
|
35
|
+
}
|
36
|
+
.panel-self{
|
37
|
+
border-radius: 10px;
|
38
|
+
border:1px solid #499EDF;
|
39
|
+
background-color: #F8F8F8;
|
40
|
+
}
|
41
|
+
.yybtn-color{
|
42
|
+
background-color:#499edf;
|
43
|
+
border-radius: 4px ;
|
44
|
+
border: 1px solid #499EDF;
|
45
|
+
color: #FFFFFF;
|
46
|
+
font: 14px PingFang-SC-Bold;
|
47
|
+
}
|
48
|
+
table {
|
49
|
+
text-align: center;
|
50
|
+
white-space: nowrap;
|
51
|
+
font-size: 12px;
|
52
|
+
width: 50%;
|
53
|
+
border-collapse: collapse;
|
54
|
+
margin: 20px 0;
|
55
|
+
margin: auto;
|
56
|
+
}
|
57
|
+
th, td {
|
58
|
+
padding: 12px;
|
59
|
+
border-bottom: 1px solid #ddd;
|
60
|
+
}
|
61
|
+
th {
|
62
|
+
background-color: #f2f2f2;
|
63
|
+
}
|
64
|
+
tr:hover {background-color: #f5f5f5;}
|
65
|
+
.qxbtn-color{
|
66
|
+
background-color: #FFFFFF;
|
67
|
+
border-radius: 4px ;
|
68
|
+
color: #499edf;
|
69
|
+
font: 14px PingFang-SC-Bold;
|
70
|
+
border: 1px solid #499EDF;
|
71
|
+
}
|
72
|
+
|
73
|
+
.button_shrink_top {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_top.png")}
|
74
|
+
.button_shrink_bottom {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_bottom.png")}
|
75
|
+
.button_shrink_left {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_left.png")}
|
76
|
+
.button_shrink_right {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_right.png")}
|
77
|
+
</style>
|
78
|
+
<style>
|
79
|
+
.clear-select-with .dropdown-menu{
|
80
|
+
left: 0px !important;
|
81
|
+
width: 200% !important;
|
82
|
+
}
|
83
|
+
</style>
|
84
|
+
<template>
|
85
|
+
<div style="height: auto;width: 100%">
|
86
|
+
<criteria-paged :model="model" v-ref:paged :pager="false">
|
87
|
+
<criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
|
88
|
+
<div partial>
|
89
|
+
<form>
|
90
|
+
<div class="row app-row">
|
91
|
+
<div class="col-xs-4">
|
92
|
+
<img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
|
93
|
+
<label for="f_userinfo_code" class="font text-left">楼栋:</label>
|
94
|
+
</div>
|
95
|
+
<div class="col-xs-8" >
|
96
|
+
<input id="f_userinfo_code" class="search_input input-font"
|
97
|
+
v-model=model.f_residential_area condition="f_building like '%{}%'" />
|
98
|
+
<v-select
|
99
|
+
id="f_building"
|
100
|
+
:value.sync="model.f_building"
|
101
|
+
class="input-font"
|
102
|
+
:options='$parent.$parent.buildOptions'
|
103
|
+
placeholder='计划名称'
|
104
|
+
:width="'60%'"
|
105
|
+
v-model="model.f_building"
|
106
|
+
condition="f_building = '{}'"
|
107
|
+
close-on-select clear-button>
|
108
|
+
</v-select>
|
109
|
+
</div>
|
110
|
+
</div>
|
111
|
+
<div class="row text-center" style="margin-top: 20px;">
|
112
|
+
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;" @click="search">查询</button>
|
113
|
+
<img @click="$parent.$parent.getNewOrder" src="../../assets/shuaxindaiban1.png" style="float: right;margin-right: 3%;width: 40px;padding: 5px; float:right">
|
114
|
+
</div>
|
115
|
+
<div class="col-sm-12">
|
116
|
+
</div>
|
117
|
+
<div style="height:30px;"></div>
|
118
|
+
</form>
|
119
|
+
</div>
|
120
|
+
</criteria>
|
121
|
+
<list :model="model" partial='list'>
|
122
|
+
<div partial>
|
123
|
+
<div class="auto app-text" style="margin-top: 5px;">
|
124
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
125
|
+
<div class="panel-body panel-self" @click="">
|
126
|
+
<div class="col-xs-12">
|
127
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>小区名称:</b></p>
|
128
|
+
<p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{ row.f_residential_area }}</p>
|
129
|
+
</div>
|
130
|
+
<div class="col-xs-12">
|
131
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>小区地址:</b></p>
|
132
|
+
<p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_area_address }}</p>
|
133
|
+
</div>
|
134
|
+
<div class="col-xs-12">
|
135
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>楼栋:</b></p>
|
136
|
+
<p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_building }}</p>
|
137
|
+
</div>
|
138
|
+
<div class="col-xs-12">
|
139
|
+
<table>
|
140
|
+
<tr>
|
141
|
+
<td style="color: #00A3F0">{{row.jihuazongshu}}</td>
|
142
|
+
<td style="color: #3CC51F">{{row.yijian}}</td>
|
143
|
+
<td style="color: coral">{{row.weijian}}</td>
|
144
|
+
<td style="color: red">{{row.daofangbuyu}}</td>
|
145
|
+
</tr>
|
146
|
+
<tr>
|
147
|
+
<th>计划总户数</th>
|
148
|
+
<th>已检户数</th>
|
149
|
+
<th>未检户数</th>
|
150
|
+
<th>到访不遇户数</th>
|
151
|
+
</tr>
|
152
|
+
</table>
|
153
|
+
</div>
|
154
|
+
</div>
|
155
|
+
</div>
|
156
|
+
</div>
|
157
|
+
</div>
|
158
|
+
</list>
|
159
|
+
</criteria-paged>
|
160
|
+
</div>
|
161
|
+
</template>
|
162
|
+
<script>
|
163
|
+
import LocalPagedList from '../../plugins/LocalPagedList'
|
164
|
+
export default {
|
165
|
+
title: '安检待办',
|
166
|
+
props: ['row'],
|
167
|
+
data() {
|
168
|
+
return {
|
169
|
+
buildOptions:[],
|
170
|
+
model:new LocalPagedList('androidGetuserinfo',20,{condition:'this.condition'}),
|
171
|
+
}
|
172
|
+
},
|
173
|
+
ready(){
|
174
|
+
this.getAllPlanName()
|
175
|
+
},
|
176
|
+
methods: {
|
177
|
+
gotobuildingSelect(row){
|
178
|
+
let _this = this
|
179
|
+
let pardate = {
|
180
|
+
_this:_this,
|
181
|
+
title:'待办工作',
|
182
|
+
safe:true
|
183
|
+
}
|
184
|
+
_this.$dispatch('gotoson',pardate)
|
185
|
+
_this.$goto('area-select', {row: row}, 'self')
|
186
|
+
|
187
|
+
},
|
188
|
+
search(args){
|
189
|
+
let condition = '1=1'
|
190
|
+
this.model.rows = []
|
191
|
+
let criteria = {
|
192
|
+
items: `tcpi.f_residential_area,COUNT(tcpi.id) as jihuazongshu,sum( CASE WHEN tcpi.f_state = '未检' THEN 1 ELSE 0 END ) as weijian,sum( CASE WHEN tcpi.f_state = '已检' THEN 1 ELSE 0 END ) as yijian,sum( CASE WHEN tcpi.f_last_check_state = '到访不遇' THEN 1 ELSE 0 END ) as daofangbuyu`,
|
193
|
+
tablename: 't_check_plan_item tcpi ',
|
194
|
+
condition: args.condition || condition,
|
195
|
+
groupitem: 'tcpi.f_residential_area'
|
196
|
+
}
|
197
|
+
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
198
|
+
this.model.rows = result.data.rows
|
199
|
+
},
|
200
|
+
getBuildOptions(){
|
201
|
+
let criteria = {
|
202
|
+
items: 'f_building',
|
203
|
+
tablename: 't_check_plan_item',
|
204
|
+
condition: `f_building IS NOT NULL AND f_building != '' AND f_state <> '已检' AND f_residential_area = '${f_residential_area}'`,
|
205
|
+
groupitem: 'f_building order by f_building+0'
|
206
|
+
}
|
207
|
+
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
208
|
+
if(result.code == 200){
|
209
|
+
result.data.rows.forEach(item => this.buildOptions.push({label:item.f_building,value:item.f_building}))
|
210
|
+
}
|
211
|
+
this.buildOptions.sort((a,b)=>{
|
212
|
+
return Number(a.label)- Number(b.label)
|
213
|
+
})
|
214
|
+
},
|
215
|
+
}
|
216
|
+
}
|
217
|
+
</script>
|
@@ -0,0 +1,248 @@
|
|
1
|
+
<style scoped>
|
2
|
+
.bg {
|
3
|
+
background-color: blue;
|
4
|
+
height: 1px;
|
5
|
+
border: 0;
|
6
|
+
}
|
7
|
+
.app-row {
|
8
|
+
background-color: white;
|
9
|
+
padding: 10px 10px 0 10px;
|
10
|
+
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
11
|
+
}
|
12
|
+
.search_input {
|
13
|
+
border: 0;
|
14
|
+
outline: none;
|
15
|
+
}
|
16
|
+
.font{
|
17
|
+
font: 15px PingFang-SC-Medium;
|
18
|
+
color: #666666;
|
19
|
+
}
|
20
|
+
.input-font{
|
21
|
+
font: 15px PingFang-SC-Medium;
|
22
|
+
color: #333333;
|
23
|
+
}
|
24
|
+
.btn-font{
|
25
|
+
font:600 16px PingFang-SC-Bold;
|
26
|
+
color: #499EDF;
|
27
|
+
}
|
28
|
+
.btn-color{
|
29
|
+
background-color: #FFFFFF;
|
30
|
+
border-radius: 10px ;
|
31
|
+
border: 1px solid #499EDF;
|
32
|
+
}
|
33
|
+
.app-text {
|
34
|
+
font-size: 12px;
|
35
|
+
}
|
36
|
+
.panel-self{
|
37
|
+
border-radius: 10px;
|
38
|
+
border:1px solid #499EDF;
|
39
|
+
background-color: #F8F8F8;
|
40
|
+
}
|
41
|
+
.yybtn-color{
|
42
|
+
background-color:#499edf;
|
43
|
+
border-radius: 4px ;
|
44
|
+
border: 1px solid #499EDF;
|
45
|
+
color: #FFFFFF;
|
46
|
+
font: 14px PingFang-SC-Bold;
|
47
|
+
}
|
48
|
+
table {
|
49
|
+
text-align: center;
|
50
|
+
white-space: nowrap;
|
51
|
+
font-size: 12px;
|
52
|
+
width: 50%;
|
53
|
+
border-collapse: collapse;
|
54
|
+
margin: 20px 0;
|
55
|
+
margin: auto;
|
56
|
+
}
|
57
|
+
th, td {
|
58
|
+
padding: 12px;
|
59
|
+
border-bottom: 1px solid #ddd;
|
60
|
+
}
|
61
|
+
th {
|
62
|
+
background-color: #f2f2f2;
|
63
|
+
}
|
64
|
+
tr:hover {background-color: #f5f5f5;}
|
65
|
+
.qxbtn-color{
|
66
|
+
background-color: #FFFFFF;
|
67
|
+
border-radius: 4px ;
|
68
|
+
color: #499edf;
|
69
|
+
font: 14px PingFang-SC-Bold;
|
70
|
+
border: 1px solid #499EDF;
|
71
|
+
}
|
72
|
+
|
73
|
+
.button_shrink_top {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_top.png")}
|
74
|
+
.button_shrink_bottom {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_bottom.png")}
|
75
|
+
.button_shrink_left {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_left.png")}
|
76
|
+
.button_shrink_right {width: 35px; height: 35px; background-size:100%;background-image: url("../../../static/newStyle/stretch_right.png")}
|
77
|
+
</style>
|
78
|
+
<style>
|
79
|
+
.clear-select-with .dropdown-menu{
|
80
|
+
left: 0px !important;
|
81
|
+
width: 200% !important;
|
82
|
+
}
|
83
|
+
</style>
|
84
|
+
<template>
|
85
|
+
<div style="height: auto;width: 100%">
|
86
|
+
<criteria-paged :model="model" v-ref:paged :pager="false">
|
87
|
+
<criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
|
88
|
+
<div partial>
|
89
|
+
<form>
|
90
|
+
<div class="row app-row">
|
91
|
+
<div class="col-xs-4">
|
92
|
+
<img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
93
|
+
<label for="f_plan_name" class="font text-left">计划名称:</label>
|
94
|
+
</div>
|
95
|
+
<v-select
|
96
|
+
id="f_plan_name"
|
97
|
+
:value.sync="model.f_plan_name"
|
98
|
+
class="input-font"
|
99
|
+
:options='$parent.$parent.planNameOptions'
|
100
|
+
placeholder='计划名称'
|
101
|
+
:width="'60%'"
|
102
|
+
v-model="model.f_plan_name"
|
103
|
+
condition="f_plan_name = '{}'"
|
104
|
+
close-on-select clear-button>
|
105
|
+
</v-select>
|
106
|
+
</div>
|
107
|
+
<div class="row app-row">
|
108
|
+
<div class="col-xs-4">
|
109
|
+
<img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
110
|
+
<label for="f_plan_name" class="font text-left">计划类型:</label>
|
111
|
+
</div>
|
112
|
+
<v-select
|
113
|
+
id="f_plan_name"
|
114
|
+
:value.sync="model.f_safecheck_type"
|
115
|
+
class="input-font"
|
116
|
+
:options='$parent.$parent.safecheckTypes'
|
117
|
+
placeholder='计划类型'
|
118
|
+
:width="'60%'"
|
119
|
+
v-model="model.f_safecheck_type"
|
120
|
+
condition="f_safecheck_type = '{}'"
|
121
|
+
close-on-select clear-button>
|
122
|
+
</v-select>
|
123
|
+
</div>
|
124
|
+
<div class="row app-row">
|
125
|
+
<div class="col-xs-4">
|
126
|
+
<img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
127
|
+
<label for="f_plan_name" class="font text-left">计划时间:</label>
|
128
|
+
</div>
|
129
|
+
<datepicker id="f_start_date" style="width: 30%;"
|
130
|
+
:value.sync="model.f_start_date"
|
131
|
+
:disabled-days-of-Week="[]"
|
132
|
+
v-model="model.f_start_date"
|
133
|
+
class="input-font"
|
134
|
+
:format="'yyyy-MM-dd 00:00:00'" condition="f_issue_time >= '{}'"
|
135
|
+
>
|
136
|
+
</datepicker>-
|
137
|
+
<datepicker id="f_end_date" style="width: 30%;"
|
138
|
+
:value.sync="model.f_end_date"
|
139
|
+
:disabled-days-of-Week="[]"
|
140
|
+
v-model="model.f_end_date"
|
141
|
+
class="input-font"
|
142
|
+
:format="'yyyy-MM-dd 23:59:00'" condition="f_issue_time <= '{}'"
|
143
|
+
>
|
144
|
+
</datepicker>
|
145
|
+
</div>
|
146
|
+
<div class="row text-center" style="margin-top: 20px;">
|
147
|
+
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;" @click="search">查询</button>
|
148
|
+
<img @click="$parent.$parent.getNewOrder" src="../../assets/shuaxindaiban1.png" style="float: right;margin-right: 3%;width: 40px;padding: 5px; float:right">
|
149
|
+
</div>
|
150
|
+
<div class="col-sm-12">
|
151
|
+
</div>
|
152
|
+
<div style="height:30px;"></div>
|
153
|
+
</form>
|
154
|
+
</div>
|
155
|
+
</criteria>
|
156
|
+
<list :model="model" partial='list'>
|
157
|
+
<div partial>
|
158
|
+
<div class="auto app-text" style="margin-top: 5px;">
|
159
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
160
|
+
<div class="panel-body panel-self" @click="$parent.$parent.$parent.gotoAreaSelect(row)">
|
161
|
+
<div class="col-xs-12">
|
162
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>计划名称:</b></p>
|
163
|
+
<p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{ row.f_plan_name }}</p>
|
164
|
+
</div>
|
165
|
+
<div class="col-xs-12">
|
166
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>计划发型:</b></p>
|
167
|
+
<p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_safecheck_type }}</p>
|
168
|
+
</div>
|
169
|
+
<div class="col-xs-12">
|
170
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>计划时间:</b></p>
|
171
|
+
<p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_issue_time }}</p>
|
172
|
+
</div>
|
173
|
+
<div class="col-xs-12">
|
174
|
+
<table>
|
175
|
+
<tr>
|
176
|
+
<td style="color: #00A3F0">{{row.jihuazongshu}}</td>
|
177
|
+
<td style="color: #3CC51F">{{row.yijian}}</td>
|
178
|
+
<td style="color: coral">{{row.weijian}}</td>
|
179
|
+
<td style="color: red">{{row.daofangbuyu}}</td>
|
180
|
+
</tr>
|
181
|
+
<tr>
|
182
|
+
<th>计划总户数</th>
|
183
|
+
<th>已检户数</th>
|
184
|
+
<th>未检户数</th>
|
185
|
+
<th>到访不遇户数</th>
|
186
|
+
</tr>
|
187
|
+
</table>
|
188
|
+
</div>
|
189
|
+
</div>
|
190
|
+
</div>
|
191
|
+
</div>
|
192
|
+
</div>
|
193
|
+
</list>
|
194
|
+
</criteria-paged>
|
195
|
+
</div>
|
196
|
+
</template>
|
197
|
+
<script>
|
198
|
+
import LocalPagedList from '../../plugins/LocalPagedList'
|
199
|
+
export default {
|
200
|
+
title: '安检待办',
|
201
|
+
props: ['planName'],
|
202
|
+
data() {
|
203
|
+
return {
|
204
|
+
planNameOptions:[{label: '请选择', value: ''},],
|
205
|
+
safecheckTypes:[{label: '请选择', value: ''},{label: '年度安检', value: '年度安检'},{label: '抽检', value: '抽检'}],
|
206
|
+
model:new LocalPagedList('androidGetuserinfo',20,{condition:'this.condition'}),
|
207
|
+
}
|
208
|
+
},
|
209
|
+
ready(){
|
210
|
+
this.getAllPlanName()
|
211
|
+
},
|
212
|
+
methods: {
|
213
|
+
gotoAreaSelect(row){
|
214
|
+
var pardate = {
|
215
|
+
_this:this,
|
216
|
+
title:'待办工作',
|
217
|
+
safe:false
|
218
|
+
}
|
219
|
+
this.$dispatch('gotoson',pardate)
|
220
|
+
this.$goto('area-select', {row: row}, 'self')
|
221
|
+
},
|
222
|
+
search(args){
|
223
|
+
let condition = '1=1'
|
224
|
+
this.model.rows = []
|
225
|
+
let criteria = {
|
226
|
+
items: `tcp.f_plan_name,tcp.f_issue_time,tcp.f_safecheck_type,COUNT(tcp.id) as jihuazongshu,sum( CASE WHEN tcpi.f_state = '未检' THEN 1 ELSE 0 END ) as weijian,sum( CASE WHEN tcpi.f_state = '已检' THEN 1 ELSE 0 END ) as yijian,sum( CASE WHEN tcpi.f_last_check_state = '到访不遇' THEN 1 ELSE 0 END ) as daofangbuyu`,
|
227
|
+
tablename: 't_check_plan tcp LEFT JOIN t_check_plan_item tcpi ON tcp.id = tcpi.f_plan_id',
|
228
|
+
condition: args.condition || condition,
|
229
|
+
groupitem: 'tcp.f_plan_name,tcp.f_issue_time,tcp.f_safecheck_type'
|
230
|
+
}
|
231
|
+
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
232
|
+
this.model.rows = result.data.rows
|
233
|
+
},
|
234
|
+
getAllPlanName(){
|
235
|
+
let criteria = {
|
236
|
+
items: 'f_plan_name',
|
237
|
+
tablename: 't_check_plan',
|
238
|
+
condition: `f_plan_name IS NOT NULL AND f_plan_name != ''`,
|
239
|
+
groupitem: 'f_plan_name'
|
240
|
+
}
|
241
|
+
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
242
|
+
if(result.code == 200){
|
243
|
+
result.data.rows.forEach(item => this.planNameOptions.push({label:item.f_plan_name,value:item.f_plan_name}))
|
244
|
+
}
|
245
|
+
},
|
246
|
+
}
|
247
|
+
}
|
248
|
+
</script>
|