safecheck-client 3.0.35-5 → 3.0.35-6
Sign up to get free protection for your applications and to get access to all the features.
- package/.babelrc +5 -5
- package/.editorconfig +9 -9
- package/android.html +18 -18
- package/config/dev.env.js +6 -6
- package/config/index.js +38 -38
- package/config/prod.env.js +3 -3
- package/config/test.env.js +6 -6
- package/docs/AppBase.md +22 -22
- package/docs/Busy.md +14 -14
- package/docs/CriteriaPaged.md +47 -47
- package/docs/DataGrid.md +54 -54
- package/docs/DataModel.md +22 -22
- package/docs/Dynamic.md +42 -42
- package/docs/GetParams.md +11 -11
- package/docs/HttpBusy.md +13 -13
- package/docs/HttpStore.md +29 -29
- package/docs/MessageBox.md +28 -28
- package/docs/PagedList.md +29 -29
- package/docs/Pager.md +21 -21
- package/docs/Project.md +23 -23
- package/docs/Route.md +105 -105
- package/docs/SafetyCheck/AdjustPlan.md +13 -13
- package/docs/SafetyCheck/CheckerPlan.md +12 -12
- package/docs/Task.md +46 -46
- package/docs/TreeList.md +28 -28
- package/docs/TreeMixin.md +18 -18
- package/docs/all.md +10 -10
- package/docs/list.md +42 -42
- package/docs/partial.md +75 -75
- package/docs/selector.md +82 -82
- package/docs//345/274/200/345/217/221/346/226/207/346/241/243/Snippets.md +28 -28
- package/docs//345/274/200/345/217/221/346/226/207/346/241/243/vue-strap/345/217/230/346/233/264/350/256/260/345/275/225.md +7 -7
- package/docs//345/274/200/345/217/221/346/226/207/346/241/243/vue/345/217/230/346/233/264/350/256/260/345/275/225.md +13 -13
- package/docs//345/274/200/345/217/221/346/226/207/346/241/243//345/274/200/345/217/221/347/216/257/345/242/203/350/256/276/347/275/256.md +77 -77
- package/docs//347/225/214/351/235/242/345/210/266/344/275/234/350/247/204/350/214/203.md +54 -54
- package/examples/AddressList/App.vue +13 -13
- package/examples/AddressList/index.html +11 -11
- package/examples/DispatchList/App.vue +10 -10
- package/examples/DispatchList/BaseTree.vue +13 -13
- package/examples/DispatchList/Init.vue +22 -22
- package/examples/DispatchList/Test.vue +20 -20
- package/examples/DispatchList/index.html +11 -11
- package/examples/DispatchList/main.js +18 -18
- package/home.html +16 -16
- package/package.json +1 -1
- package/publish.bat +7 -7
- package/release.bat +5 -5
- package/src/Widget.vue +13 -13
- package/src/android-bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
- package/src/android-bootstrap/less/.csscomb.json +304 -304
- package/src/android-bootstrap/less/.csslintrc +19 -19
- package/src/android-bootstrap/less/alerts.less +73 -73
- package/src/android-bootstrap/less/badges.less +66 -66
- package/src/android-bootstrap/less/bootstrap.less +56 -56
- package/src/android-bootstrap/less/breadcrumbs.less +26 -26
- package/src/android-bootstrap/less/button-groups.less +247 -247
- package/src/android-bootstrap/less/buttons.less +173 -173
- package/src/android-bootstrap/less/carousel.less +269 -269
- package/src/android-bootstrap/less/close.less +34 -34
- package/src/android-bootstrap/less/code.less +69 -69
- package/src/android-bootstrap/less/component-animations.less +33 -33
- package/src/android-bootstrap/less/grid.less +84 -84
- package/src/android-bootstrap/less/input-groups.less +167 -167
- package/src/android-bootstrap/less/jumbotron.less +52 -52
- package/src/android-bootstrap/less/labels.less +64 -64
- package/src/android-bootstrap/less/list-group.less +141 -141
- package/src/android-bootstrap/less/media.less +66 -66
- package/src/android-bootstrap/less/mixins/alerts.less +14 -14
- package/src/android-bootstrap/less/mixins/background-variant.less +9 -9
- package/src/android-bootstrap/less/mixins/border-radius.less +18 -18
- package/src/android-bootstrap/less/mixins/buttons.less +69 -69
- package/src/android-bootstrap/less/mixins/center-block.less +7 -7
- package/src/android-bootstrap/less/mixins/clearfix.less +22 -22
- package/src/android-bootstrap/less/mixins/forms.less +90 -90
- package/src/android-bootstrap/less/mixins/gradients.less +59 -59
- package/src/android-bootstrap/less/mixins/grid-framework.less +92 -92
- package/src/android-bootstrap/less/mixins/grid.less +122 -122
- package/src/android-bootstrap/less/mixins/hide-text.less +21 -21
- package/src/android-bootstrap/less/mixins/image.less +33 -33
- package/src/android-bootstrap/less/mixins/labels.less +12 -12
- package/src/android-bootstrap/less/mixins/list-group.less +30 -30
- package/src/android-bootstrap/less/mixins/nav-divider.less +10 -10
- package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -9
- package/src/android-bootstrap/less/mixins/opacity.less +8 -8
- package/src/android-bootstrap/less/mixins/pagination.less +24 -24
- package/src/android-bootstrap/less/mixins/panels.less +24 -24
- package/src/android-bootstrap/less/mixins/progress-bar.less +10 -10
- package/src/android-bootstrap/less/mixins/reset-filter.less +8 -8
- package/src/android-bootstrap/less/mixins/reset-text.less +18 -18
- package/src/android-bootstrap/less/mixins/resize.less +6 -6
- package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -15
- package/src/android-bootstrap/less/mixins/size.less +10 -10
- package/src/android-bootstrap/less/mixins/tab-focus.less +9 -9
- package/src/android-bootstrap/less/mixins/table-row.less +44 -44
- package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -9
- package/src/android-bootstrap/less/mixins/text-overflow.less +8 -8
- package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -227
- package/src/android-bootstrap/less/mixins.less +40 -40
- package/src/android-bootstrap/less/modals.less +151 -151
- package/src/android-bootstrap/less/navbar.less +660 -660
- package/src/android-bootstrap/less/navs.less +290 -290
- package/src/android-bootstrap/less/normalize.less +424 -424
- package/src/android-bootstrap/less/pager.less +76 -76
- package/src/android-bootstrap/less/pagination.less +89 -89
- package/src/android-bootstrap/less/panels.less +274 -274
- package/src/android-bootstrap/less/popovers.less +131 -131
- package/src/android-bootstrap/less/print.less +101 -101
- package/src/android-bootstrap/less/progress-bars.less +87 -87
- package/src/android-bootstrap/less/responsive-embed.less +35 -35
- package/src/android-bootstrap/less/responsive-utilities.less +194 -194
- package/src/android-bootstrap/less/scaffolding.less +161 -161
- package/src/android-bootstrap/less/tables.less +262 -262
- package/src/android-bootstrap/less/theme.less +291 -291
- package/src/android-bootstrap/less/thumbnails.less +36 -36
- package/src/android-bootstrap/less/tooltip.less +102 -102
- package/src/android-bootstrap/less/type.less +303 -303
- package/src/android-bootstrap/less/utilities.less +55 -55
- package/src/android-bootstrap/less/variables.less +896 -896
- package/src/android-bootstrap/less/wells.less +29 -29
- package/src/androidTest.js +20 -20
- package/src/bootstrap/less/.csscomb.json +304 -304
- package/src/bootstrap/less/.csslintrc +19 -19
- package/src/bootstrap/less/alerts.less +73 -73
- package/src/bootstrap/less/badges.less +66 -66
- package/src/bootstrap/less/breadcrumbs.less +26 -26
- package/src/bootstrap/less/button-groups.less +247 -247
- package/src/bootstrap/less/buttons.less +172 -172
- package/src/bootstrap/less/carousel.less +269 -269
- package/src/bootstrap/less/close.less +34 -34
- package/src/bootstrap/less/code.less +69 -69
- package/src/bootstrap/less/component-animations.less +33 -33
- package/src/bootstrap/less/dropdowns.less +216 -216
- package/src/bootstrap/less/forms.less +626 -626
- package/src/bootstrap/less/grid.less +84 -84
- package/src/bootstrap/less/input-groups.less +167 -167
- package/src/bootstrap/less/jumbotron.less +52 -52
- package/src/bootstrap/less/labels.less +64 -64
- package/src/bootstrap/less/list-group.less +141 -141
- package/src/bootstrap/less/media.less +66 -66
- package/src/bootstrap/less/mixins/alerts.less +14 -14
- package/src/bootstrap/less/mixins/background-variant.less +9 -9
- package/src/bootstrap/less/mixins/border-radius.less +18 -18
- package/src/bootstrap/less/mixins/buttons.less +69 -69
- package/src/bootstrap/less/mixins/center-block.less +7 -7
- package/src/bootstrap/less/mixins/clearfix.less +22 -22
- package/src/bootstrap/less/mixins/forms.less +90 -90
- package/src/bootstrap/less/mixins/gradients.less +59 -59
- package/src/bootstrap/less/mixins/grid-framework.less +92 -92
- package/src/bootstrap/less/mixins/grid.less +122 -122
- package/src/bootstrap/less/mixins/hide-text.less +21 -21
- package/src/bootstrap/less/mixins/image.less +33 -33
- package/src/bootstrap/less/mixins/labels.less +12 -12
- package/src/bootstrap/less/mixins/list-group.less +30 -30
- package/src/bootstrap/less/mixins/nav-divider.less +10 -10
- package/src/bootstrap/less/mixins/nav-vertical-align.less +9 -9
- package/src/bootstrap/less/mixins/opacity.less +8 -8
- package/src/bootstrap/less/mixins/pagination.less +24 -24
- package/src/bootstrap/less/mixins/panels.less +24 -24
- package/src/bootstrap/less/mixins/progress-bar.less +10 -10
- package/src/bootstrap/less/mixins/reset-filter.less +8 -8
- package/src/bootstrap/less/mixins/reset-text.less +18 -18
- package/src/bootstrap/less/mixins/resize.less +6 -6
- package/src/bootstrap/less/mixins/responsive-visibility.less +15 -15
- package/src/bootstrap/less/mixins/size.less +10 -10
- package/src/bootstrap/less/mixins/tab-focus.less +9 -9
- package/src/bootstrap/less/mixins/table-row.less +44 -44
- package/src/bootstrap/less/mixins/text-emphasis.less +9 -9
- package/src/bootstrap/less/mixins/text-overflow.less +8 -8
- package/src/bootstrap/less/mixins/vendor-prefixes.less +227 -227
- package/src/bootstrap/less/mixins.less +40 -40
- package/src/bootstrap/less/modals.less +151 -151
- package/src/bootstrap/less/navbar.less +660 -660
- package/src/bootstrap/less/normalize.less +424 -424
- package/src/bootstrap/less/pager.less +76 -76
- package/src/bootstrap/less/pagination.less +89 -89
- package/src/bootstrap/less/panels.less +275 -275
- package/src/bootstrap/less/popovers.less +131 -131
- package/src/bootstrap/less/print.less +101 -101
- package/src/bootstrap/less/progress-bars.less +87 -87
- package/src/bootstrap/less/responsive-embed.less +35 -35
- package/src/bootstrap/less/responsive-utilities.less +194 -194
- package/src/bootstrap/less/scaffolding.less +161 -161
- package/src/bootstrap/less/theme.less +291 -291
- package/src/bootstrap/less/thumbnails.less +36 -36
- package/src/bootstrap/less/tooltip.less +102 -102
- package/src/bootstrap/less/type.less +303 -303
- package/src/bootstrap/less/utilities.less +55 -55
- package/src/bootstrap/less/wells.less +29 -29
- package/src/components/FileUpload.vue +696 -696
- package/src/components/Hello.vue +39 -39
- package/src/components/LeftTree.vue +27 -27
- package/src/components/NewDefectList/DefectListNew.vue +617 -617
- package/src/components/android/AddPlanItemYy.vue +451 -451
- package/src/components/android/AddressList.vue +61 -61
- package/src/components/android/AttendanceTally.vue +116 -116
- package/src/components/android/Blank.vue +10 -10
- package/src/components/android/CheckUnplanPage.vue +56 -56
- package/src/components/android/Checker.vue +12 -12
- package/src/components/android/CheckerAnnual.vue +81 -81
- package/src/components/android/CheckerAvarta.vue +82 -82
- package/src/components/android/EquipmentInspection.vue +348 -348
- package/src/components/android/FootprintMap.vue +120 -120
- package/src/components/android/HiddentroubleInvestigation.vue +192 -192
- package/src/components/android/MasterMain.vue +77 -77
- package/src/components/android/Menu.vue +132 -132
- package/src/components/android/NavBottom.vue +157 -157
- package/src/components/android/PaperAlarm.vue +85 -85
- package/src/components/android/PaperDeviceNoncivil.vue +214 -214
- package/src/components/android/PlumberAnnual.vue +83 -83
- package/src/components/android/PlumberAnnualDetail.vue +65 -65
- package/src/components/android/PlumberMonthly.vue +84 -84
- package/src/components/android/PostMap.vue +83 -83
- package/src/components/android/QueryCheckHistory.vue +122 -122
- package/src/components/android/QueryCheckHistoryItem.vue +62 -62
- package/src/components/android/RepairMain.vue +60 -60
- package/src/components/android/Repairman.vue +12 -12
- package/src/components/android/SafecheckOrderV.vue +2805 -2805
- package/src/components/android/StationMaster.vue +12 -12
- package/src/components/android/examples/SafeListExamples.vue +296 -296
- package/src/components/defects/DefectModal.vue +101 -101
- package/src/components/defects/DevicesAndItem.vue +39 -39
- package/src/components/issueplan/IssuePlanMain.vue +23 -23
- package/src/components/notice/NoticeForm.vue +100 -100
- package/src/components/notice/NoticeIssue.vue +20 -20
- package/src/components/paper/PicViewer.vue +18 -18
- package/src/components/phonestate/MonthlyTraffic.vue +66 -66
- package/src/components/phonestate/MonthlyTrafficRouter.vue +15 -15
- package/src/components/phonestate/PostMap.vue +82 -82
- package/src/components/querycheckpaper/PaperItem.vue +59 -59
- package/src/components/rongcheng/AspiratedAreaPlan.vue +574 -574
- package/src/components/rongcheng/PhoneUpUserinfo.vue +1236 -1236
- package/src/components/userfile/MeterFile.vue +145 -145
- package/src/components/userfile/MeterModify.vue +46 -46
- package/src/components/userfileaudit/MeterAuditFile.vue +129 -129
- package/src/filiale/bayan/android/AddPlanItem.vue +430 -430
- package/src/filiale/bayan/android/CheckPlanDown.vue +249 -249
- package/src/filiale/bayan/android/PhoneUpUserinfo.vue +1380 -1377
- package/src/filiale/bayan/android/SafecheckOrderV.vue +2922 -2866
- package/src/filiale/bayan/pc/PlanManage.vue +962 -962
- package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
- package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
- package/src/filiale/shanxian/android/AddPlanItem.vue +447 -447
- package/src/filiale/shanxian/android/SafecheckOrderV.vue +2979 -2979
- package/src/filiale/shanxian/pc/checkUserList.vue +700 -700
- package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
- package/src/filiale/siyang/pc/CheckSearchUser.vue +1035 -1035
- package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
- package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +735 -735
- package/src/filiale/weinan/pc/CheckDetail.vue +278 -278
- package/src/filiale/weinan/pc/checkUserList.vue +712 -712
- package/src/filiale/xilan/android/AddPlanItem.vue +461 -461
- package/src/filiale/xilan/android/CurrentCreate.vue +1067 -1067
- package/src/filiale/xilan/android.js +11 -11
- package/src/main.js +33 -33
- package/src/plugins/LoadData.js +10 -10
- package/src/plugins/LoadParams.js +24 -24
- package/src/safecheck-android.js +307 -307
- package/src/stores/wxconfig.js +10 -10
- package/src/utils/getNowDate.js +33 -33
- package/test/e2e/custom-assertions/elementCount.js +26 -26
- package/test/e2e/nightwatch.conf.js +40 -40
- package/test/e2e/runner.js +30 -30
- package/test/e2e/specs/test.js +13 -13
- package/test/unit/.eslintrc +5 -5
- package/test/unit/TestUtil.js +62 -62
- package/test/unit/context.html +20 -20
- package/test/unit/index.js +13 -13
@@ -1,1067 +1,1067 @@
|
|
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
|
-
.qxbtn-color{
|
49
|
-
background-color: #FFFFFF;
|
50
|
-
border-radius: 4px ;
|
51
|
-
color: #499edf;
|
52
|
-
font: 14px PingFang-SC-Bold;
|
53
|
-
border: 1px solid #499EDF;
|
54
|
-
}
|
55
|
-
|
56
|
-
.button_shrink_top {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_top.png")}
|
57
|
-
.button_shrink_bottom {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_bottom.png")}
|
58
|
-
.button_shrink_left {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_left.png")}
|
59
|
-
.button_shrink_right {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_right.png")}
|
60
|
-
</style>
|
61
|
-
<style>
|
62
|
-
.clear-select-with .dropdown-menu{
|
63
|
-
left: 0px !important;
|
64
|
-
width: 200% !important;
|
65
|
-
}
|
66
|
-
</style>
|
67
|
-
<template>
|
68
|
-
<div style="height: auto;width: 100%">
|
69
|
-
<criteria-paged :model="model" v-ref:paged>
|
70
|
-
<criteria partial='criteria' @condition-changed='search' v-ref:cri>
|
71
|
-
<div partial>
|
72
|
-
<form>
|
73
|
-
<div class="row app-row">
|
74
|
-
<!--小区名称-->
|
75
|
-
<v-select :value.sync="model.f_residential_area"
|
76
|
-
class="input-font clear-select-with"
|
77
|
-
:options='$parent.$parent.residentialAreaOptions'
|
78
|
-
placeholder='小区名称'
|
79
|
-
:width="'32.5%'"
|
80
|
-
v-model="model.f_residential_area"
|
81
|
-
condition="ti.f_residential_area = '{}'"
|
82
|
-
@change="$parent.$parent.getbuilds"
|
83
|
-
close-on-select clear-button>
|
84
|
-
</v-select>
|
85
|
-
<!--楼栋-->
|
86
|
-
<v-select :value.sync="model.f_building"
|
87
|
-
class="input-font"
|
88
|
-
:options='$parent.$parent.buildOptions'
|
89
|
-
placeholder='楼栋'
|
90
|
-
:width="'32.5%'"
|
91
|
-
v-model="model.f_building"
|
92
|
-
condition="ti.f_building = '{}'"
|
93
|
-
@change="$parent.$parent.getUnits"
|
94
|
-
close-on-select clear-button>
|
95
|
-
</v-select>
|
96
|
-
<!--单元-->
|
97
|
-
<v-select :value.sync="model.f_unit"
|
98
|
-
class="input-font"
|
99
|
-
:options='$parent.$parent.unitOptions'
|
100
|
-
placeholder='单元'
|
101
|
-
:width="'32.5%'"
|
102
|
-
v-model="model.f_unit"
|
103
|
-
condition="ti.f_unit = '{}'"
|
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/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
|
110
|
-
<label for="f_userinfo_code" style="padding: 0" class="font text-left">旧用户编号:</label>
|
111
|
-
</div>
|
112
|
-
<div class="col-xs-8" >
|
113
|
-
<input id="f_userinfo_code" class="search_input input-font"
|
114
|
-
v-model=model.f_olduserinfo_code condition="f_olduserinfo_code = '{}'" />
|
115
|
-
</div>
|
116
|
-
</div>
|
117
|
-
<div class="row app-row">
|
118
|
-
<div class="col-xs-4">
|
119
|
-
<img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
|
120
|
-
<label for="f_userinfo_code" class="font text-left">用户编号:</label>
|
121
|
-
</div>
|
122
|
-
<div class="col-xs-8" >
|
123
|
-
<input id="f_userinfo_code" class="search_input input-font"
|
124
|
-
v-model=model.f_userinfo_code condition="f_userinfo_code like '%{}%'" />
|
125
|
-
</div>
|
126
|
-
</div>
|
127
|
-
<div class="row app-row">
|
128
|
-
<div class="col-xs-4">
|
129
|
-
<img src="../../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
|
130
|
-
<label class="font text-left">用户姓名:</label>
|
131
|
-
</div>
|
132
|
-
<div class="col-xs-8" >
|
133
|
-
<input class="search_input input-font" v-model=model.f_user_name condition="f_user_name like '%{}%'" />
|
134
|
-
</div>
|
135
|
-
</div>
|
136
|
-
|
137
|
-
<div class="row app-row">
|
138
|
-
<div class="col-xs-4">
|
139
|
-
<img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
140
|
-
<label class="font text-left">用户卡号:</label>
|
141
|
-
</div>
|
142
|
-
<div class="col-xs-8" >
|
143
|
-
<input class="search_input input-font" v-model=model.f_card_id condition="f_card_id = '{}'" />
|
144
|
-
</div>
|
145
|
-
</div>
|
146
|
-
|
147
|
-
<div class="row app-row" v-if="$parent.$parent.criteriaShow && !$parent.$parent.planName">
|
148
|
-
<div class="col-xs-4">
|
149
|
-
<img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
150
|
-
<label for="f_plan_name" class="font text-left">计划名称:</label>
|
151
|
-
</div>
|
152
|
-
<v-select
|
153
|
-
id="f_plan_name"
|
154
|
-
:value.sync="model.f_plan_name"
|
155
|
-
class="input-font"
|
156
|
-
:options='$parent.$parent.planNameOptions'
|
157
|
-
placeholder='计划名称'
|
158
|
-
:width="'60%'"
|
159
|
-
v-model="model.f_plan_name"
|
160
|
-
condition="f_plan_name like '%{}%'"
|
161
|
-
close-on-select clear-button>
|
162
|
-
</v-select>
|
163
|
-
</div>
|
164
|
-
|
165
|
-
<div class="row app-row" v-if="$parent.$parent.criteriaShow">
|
166
|
-
<div class="col-xs-4">
|
167
|
-
<img src="../../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">
|
168
|
-
<label for="f_state" class="font text-left">是否已检:</label>
|
169
|
-
</div>
|
170
|
-
<v-select id="f_state"
|
171
|
-
:value.sync="model.f_state"
|
172
|
-
class="input-font"
|
173
|
-
:options='$parent.$parent.check_states'
|
174
|
-
placeholder='是否已检'
|
175
|
-
:width="'60%'"
|
176
|
-
v-model="model.f_state"
|
177
|
-
condition="f_state='{}'"
|
178
|
-
close-on-select clear-button>
|
179
|
-
</v-select>
|
180
|
-
</div>
|
181
|
-
<div class="row app-row" v-if="$parent.$parent.criteriaShow">
|
182
|
-
<div class="col-xs-4">
|
183
|
-
<img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
|
184
|
-
<label class="font text-left">表  号:</label>
|
185
|
-
</div>
|
186
|
-
<div class="col-xs-5" >
|
187
|
-
<input class="search_input input-font"
|
188
|
-
v-model=model.f_meter_no condition="f_meter_no like '%{}%'" />
|
189
|
-
</div>
|
190
|
-
<div class="col-xs-3">
|
191
|
-
<button type="button" class="btn btn-lg btn-font btn-color" @click="$parent.$parent.scan()">扫码</button>
|
192
|
-
</div>
|
193
|
-
</div>
|
194
|
-
<div class="row app-row" v-if="$parent.$parent.criteriaShow">
|
195
|
-
<div class="col-xs-4">
|
196
|
-
<img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
|
197
|
-
<label class="font text-left">客户电话:</label>
|
198
|
-
</div>
|
199
|
-
<div class="col-xs-8" >
|
200
|
-
<input class="search_input input-font"
|
201
|
-
v-model=model.f_user_phone condition="f_user_phone like '%{}%'" />
|
202
|
-
</div>
|
203
|
-
</div>
|
204
|
-
|
205
|
-
<div class="row app-row" v-if="$parent.$parent.criteriaShow">
|
206
|
-
<div class="col-xs-4">
|
207
|
-
<img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
|
208
|
-
<label class="font text-left">用户地址:</label>
|
209
|
-
</div>
|
210
|
-
<div class="col-xs-8" >
|
211
|
-
<input class="search_input input-font"
|
212
|
-
v-model=model.f_keyword condition="f_address like '%{}%'" />
|
213
|
-
</div>
|
214
|
-
</div>
|
215
|
-
<div class="row app-row" v-if="$parent.$parent.criteriaShow">
|
216
|
-
<div class="col-xs-4">
|
217
|
-
<img src="../../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
|
218
|
-
<label for="f_user_type" class="font text-left">用户类型:</label>
|
219
|
-
</div>
|
220
|
-
<v-select id="f_user_type" :value.sync="model.f_user_type" class="input-font"
|
221
|
-
:width="'60%'"
|
222
|
-
:options='$parent.$parent.user_types' placeholder='请选择用户类型'
|
223
|
-
v-model="model.f_user_type" condition="f_user_type='{}'" close-on-select clear-button></v-select>
|
224
|
-
</div>
|
225
|
-
<div class="row app-row" v-if="$parent.$parent.criteriaShow">
|
226
|
-
<div class="col-xs-6">
|
227
|
-
<img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
|
228
|
-
<label class="font text-left">到访不遇:</label>
|
229
|
-
</div>
|
230
|
-
<div class="col-xs-8" >
|
231
|
-
<input class="search_input input-font" type="number"
|
232
|
-
v-model=model.f_check_version condition="f_check_version <= '{}'" />
|
233
|
-
</div>
|
234
|
-
</div>
|
235
|
-
<div class="row app-row" v-if="$parent.$parent.criteriaShow">
|
236
|
-
<div class="col-xs-6" style="text-align: center">
|
237
|
-
<span class="font text-left">待办{{$parent.$parent.upcomingCount}}条</span>
|
238
|
-
</div>
|
239
|
-
<div class="col-xs-6" style="text-align: center">
|
240
|
-
<span class="font text-left">已办{{$parent.$parent.doneCount}}条</span>
|
241
|
-
</div>
|
242
|
-
<div class="col-xs-6" style="text-align: center">
|
243
|
-
<span class="font text-left">临时保存{{$parent.$parent.tempSaveCount}}条</span>
|
244
|
-
</div>
|
245
|
-
<div class="col-xs-6" style="text-align: center">
|
246
|
-
<span class="font text-left">总共{{$parent.$parent.allPlanCount}}条</span>
|
247
|
-
</div>
|
248
|
-
</div>
|
249
|
-
|
250
|
-
<div class="row text-center" style="margin-top: 20px;">
|
251
|
-
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;" @click="$parent.$parent.selfSearch">查询</button>
|
252
|
-
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%; margin-left: 10px" @click="$parent.$parent.queryplanmany">转发</button>
|
253
|
-
<div style="float: right;margin-right: 3% " class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
|
254
|
-
<img v-if="!$parent.$parent.planName" style="float: right;margin-right: 3% " @click="$parent.$parent.getNewOrder" src="../../../assets/shuaxindaiban1.png" style="width: 40px;padding: 5px; float:right">
|
255
|
-
</div>
|
256
|
-
<div class="col-sm-12">
|
257
|
-
|
258
|
-
</div>
|
259
|
-
<!--<div class="row app-btn">-->
|
260
|
-
<!--<button class="btn btn-primary col-xs-6" type="button" @click="search"><span class="glyphicon glyphicon-search" style="margin-right: 20px;">查询</span></button>-->
|
261
|
-
<!--</div>-->
|
262
|
-
<div style="height:30px;"></div>
|
263
|
-
</form>
|
264
|
-
</div>
|
265
|
-
</criteria>
|
266
|
-
<list :model="model" partial='list'>
|
267
|
-
<div partial>
|
268
|
-
<div class="auto app-text" style="margin-top: 5px;">
|
269
|
-
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
270
|
-
<div class="panel-body panel-self">
|
271
|
-
|
272
|
-
<div class="col-xs-12">
|
273
|
-
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户编号:</b></p>
|
274
|
-
<p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{ row.f_userinfo_code }}</p>
|
275
|
-
<p class="panel-title col-xs-2 text-left input-font" style="width: 5%;float:right">
|
276
|
-
<input type="checkbox" @click="$parent.$parent.$parent.setPlanParam(row.id, $event)"/>
|
277
|
-
</p>
|
278
|
-
</div>
|
279
|
-
<div class="col-xs-12">
|
280
|
-
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>旧用户编号:</b></p>
|
281
|
-
<p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_olduserinfo_code }}</p>
|
282
|
-
</div>
|
283
|
-
<div class="col-xs-12">
|
284
|
-
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户名称:</b></p>
|
285
|
-
<p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_user_name }}</p>
|
286
|
-
</div>
|
287
|
-
<div class="col-xs-6">
|
288
|
-
<p class="panel-title col-xs-5 text-left font"><b>用户类型:</b></p>
|
289
|
-
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_user_type }}
|
290
|
-
</p>
|
291
|
-
</div>
|
292
|
-
<div class="col-xs-6">
|
293
|
-
<p class="panel-title col-xs-5 text-left font"><b>计划名称:</b></p>
|
294
|
-
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_plan_name }}</p>
|
295
|
-
</div>
|
296
|
-
<!-- <div class="col-xs-6">-->
|
297
|
-
<!-- <p class="panel-title col-xs-5 text-left font"><b>小区名称:</b></p>-->
|
298
|
-
<!-- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_residential_area }}</p>-->
|
299
|
-
<!-- </div>-->
|
300
|
-
<div class="col-xs-12">
|
301
|
-
<p class="panel-title text-left font" style="width: 23%;float: left"><b>用户电话:</b></p>
|
302
|
-
<p class="panel-title text-left input-font" style="width: 77%">{{ row.f_user_phone }}
|
303
|
-
<img src="../../../assets/phone.png" style="width: 6%"
|
304
|
-
v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_user_phone)'/>
|
305
|
-
</p>
|
306
|
-
</div>
|
307
|
-
<div class="col-xs-12">
|
308
|
-
<p class="panel-title text-left font" style="width: 23%;float: left"><b>备用电话:</b></p>
|
309
|
-
<p class="panel-title text-left input-font" style="width: 77%">{{ row.f_rent_phone}}
|
310
|
-
<img v-if="row.f_rent_phone" src="../../../assets/phone.png" style="width: 6%"
|
311
|
-
v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_rent_phone)'/>
|
312
|
-
</p>
|
313
|
-
</div>
|
314
|
-
<div class="col-xs-12">
|
315
|
-
<p class="panel-title text-left font" style="width: 23%;float: left"><b>租户电话:</b></p>
|
316
|
-
<p class="panel-title text-left input-font" style="width: 77%">{{ row.f_zuhu_phone }}
|
317
|
-
<img v-if="row.f_zuhu_phone" src="../../../assets/phone.png" style="width: 6%"
|
318
|
-
v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_zuhu_phone)'/>
|
319
|
-
</p>
|
320
|
-
</div>
|
321
|
-
|
322
|
-
<div class="col-xs-12">
|
323
|
-
<p class="panel-title text-left font" style="width: 21%;float: left"><b>用户地址:</b></p>
|
324
|
-
<p class="panel-title text-left input-font" style="width: 79%">{{ row.f_address }}</p>
|
325
|
-
</div>
|
326
|
-
|
327
|
-
<!-- <div class="row">-->
|
328
|
-
<!-- <p class="panel-title col-xs-4 text-left font">计划年份</p>-->
|
329
|
-
<!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_year }}</p>-->
|
330
|
-
<!-- </div>-->
|
331
|
-
<!-- <div class="row">-->
|
332
|
-
<!-- <p class="panel-title col-xs-4 text-left font">计划月份</p>-->
|
333
|
-
<!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_month }}</p>-->
|
334
|
-
<!-- </div>-->
|
335
|
-
<!-- <div class="row">-->
|
336
|
-
<!-- <p class="panel-title col-xs-4 text-left font">预约时间</p>-->
|
337
|
-
<!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_prearranged_date }}</p>-->
|
338
|
-
<!-- </div>-->
|
339
|
-
<!--<div class="row">-->
|
340
|
-
<!--<p class="panel-title col-xs-4 text-left font">上次安检状态</p>-->
|
341
|
-
<!--<p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_state }}</p>-->
|
342
|
-
<!--</div>-->
|
343
|
-
<div class="col-xs-6">
|
344
|
-
<p class="panel-title col-xs-5 text-left font"><b>安检状态:</b></p>
|
345
|
-
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_state == '已检'?'临时保存':row.f_state }}</p>
|
346
|
-
</div>
|
347
|
-
<div class="col-xs-6">
|
348
|
-
<p class="panel-title col-xs-5 text-left font"><b>上传状态:</b></p>
|
349
|
-
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_upload_state }}</p>
|
350
|
-
</div>
|
351
|
-
<div class="col-xs-12" v-if="row.f_prearranged_date !=null">
|
352
|
-
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>预约时间:</b></p>
|
353
|
-
<p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_prearranged_date }}</p>
|
354
|
-
</div>
|
355
|
-
<div class="col-xs-6">
|
356
|
-
<p class="panel-title col-xs-5 text-left font"><b>安检类型:</b></p>
|
357
|
-
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_safecheck_type }}</p>
|
358
|
-
</div>
|
359
|
-
<div class="col-xs-12">
|
360
|
-
<p class="panel-title col-xs-5 text-left font"><b>到访不遇次数:</b></p>
|
361
|
-
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_check_version }}</p>
|
362
|
-
</div>
|
363
|
-
<!--<div class="col-xs-12">-->
|
364
|
-
<!--<p class="panel-title col-xs-5 text-left font"><b>送气期限:</b></p>-->
|
365
|
-
<!--<p class="panel-title col-xs-7 text-left input-font">{{timeSet(row.f_issue_time)}}</p>-->
|
366
|
-
<!--</div>-->
|
367
|
-
<div class="col-xs-12">
|
368
|
-
<button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right" @click="$parent.$parent.$parent.inspect(row)">处理</button>
|
369
|
-
<button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right;margin-right:10px;" @click="$parent.$parent.$parent.queryplan(row.id)">转发</button>
|
370
|
-
<!--<button type="button" class="btn btn-default" @click="$parent.$parent.$parent.ceshi">确认2</button>-->
|
371
|
-
</div>
|
372
|
-
<!-- <div class="row text-right" v-show="row.f_upload_state != '已传'" >-->
|
373
|
-
<!-- <button type="button" class="btn yybtn-color" v-on:click.stop.prevent='$parent.$parent.$parent.reserve($index)'>预约</button> -->
|
374
|
-
<!-- <button type="button" class="btn qxbtn-color" v-if ='row.f_prearranged_date'-->
|
375
|
-
<!-- v-on:click.stop.prevent='$parent.$parent.$parent.cancelReserve($index, row.id)'>取消预约</button>-->
|
376
|
-
<!-- </div>-->
|
377
|
-
</div>
|
378
|
-
</div>
|
379
|
-
</div>
|
380
|
-
</div>
|
381
|
-
</list>
|
382
|
-
</criteria-paged>
|
383
|
-
<modal :show.sync="showModal">
|
384
|
-
<div slot="modal-header" class="modal-header">
|
385
|
-
<h4 class="modal-title">
|
386
|
-
选择预约时间
|
387
|
-
</h4>
|
388
|
-
</div>
|
389
|
-
<div slot="modal-body" class="modal-body">
|
390
|
-
<input type="datetime-local" v-model="f_preset_dt">
|
391
|
-
</div>
|
392
|
-
<div slot="modal-footer" class="modal-footer">
|
393
|
-
<button type="button" class="btn btn-default" @click="genuineReserve">确认</button>
|
394
|
-
</div>
|
395
|
-
</modal>
|
396
|
-
<!--<back-page :need-back='true' @flag="$back()"></back-page>-->
|
397
|
-
<modal :show.sync="showModal2" v-ref:modal>
|
398
|
-
<div slot="modal-header" class="modal-header">
|
399
|
-
<h4 class="modal-title">
|
400
|
-
选择计划
|
401
|
-
</h4>
|
402
|
-
</div>
|
403
|
-
<div slot="modal-body" class="modal-body">
|
404
|
-
<div class="col-xs-12">
|
405
|
-
|
406
|
-
<div class="col-xs-4">
|
407
|
-
<v-select :value.sync="check" v-model='check'
|
408
|
-
:value-single="true"
|
409
|
-
class="select_list select"
|
410
|
-
:options='checkers' placeholder='安检员'
|
411
|
-
close-on-select width="100%"></v-select>
|
412
|
-
</div>
|
413
|
-
|
414
|
-
<div class="col-xs-1">
|
415
|
-
<!--<label style="font-size:20px;line-height: 35px">人员 </label>-->
|
416
|
-
</div>
|
417
|
-
<div class="col-xs-4" style="padding-left: 2px">
|
418
|
-
<input class="select-style" placeholder="计划名称" type="text" v-model="plan" style="border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 35px"/>
|
419
|
-
</div>
|
420
|
-
<div class="col-xs-1" >
|
421
|
-
<!--<label style="font-size: 20px;line-height: 35px">计划</label>-->
|
422
|
-
</div>
|
423
|
-
<!--<input placeholder="安检员" type="text" v-model="check" style="height:30px;width: 100px"/>-->
|
424
|
-
<div class="col-xs-2" style="float: right">
|
425
|
-
<button type="button" class="btn btn-primary" @click="plansearch" style="background-color:#499edf;float: right;margin-right:10px;border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 1px;padding-left: 12px">查询</button>
|
426
|
-
</div>
|
427
|
-
</div>
|
428
|
-
<table class="table table_sy">
|
429
|
-
<thead>
|
430
|
-
<tr>
|
431
|
-
<th style="width: 30px"></th>
|
432
|
-
<th style="font-family: 'Adobe 黑体 Std R'">计划名称</th>
|
433
|
-
</tr>
|
434
|
-
</thead>
|
435
|
-
<tbody>
|
436
|
-
<tr v-for="row in planoption">
|
437
|
-
<td @click="select(row, $index)" >{{row.selected==true ? '☆' : ' '}}</td>
|
438
|
-
<td @click="select(row, $index)" style="text-align: center">{{row.label}}</td>
|
439
|
-
|
440
|
-
|
441
|
-
</tr>
|
442
|
-
</tbody>
|
443
|
-
</table>
|
444
|
-
</div>
|
445
|
-
<div slot="modal-footer" class="modal-footer">
|
446
|
-
<button class="btn btn-default" @click="isok()">确认</button>
|
447
|
-
<button class="btn btn-default" @click="iscancel()">取消</button>
|
448
|
-
</div>
|
449
|
-
</modal>
|
450
|
-
<modal :show.sync="showModal3" v-ref:modal>
|
451
|
-
<div slot="modal-header" class="modal-header">
|
452
|
-
<h4 class="modal-title">
|
453
|
-
选择计划
|
454
|
-
</h4>
|
455
|
-
</div>
|
456
|
-
<div slot="modal-body" class="modal-body">
|
457
|
-
<div class="col-xs-12">
|
458
|
-
|
459
|
-
<div class="col-xs-4">
|
460
|
-
<v-select :value.sync="check" v-model='check'
|
461
|
-
:value-single="true"
|
462
|
-
class="select_list select"
|
463
|
-
:options='checkers' placeholder='安检员'
|
464
|
-
close-on-select width="100%"></v-select>
|
465
|
-
</div>
|
466
|
-
|
467
|
-
<div class="col-xs-1">
|
468
|
-
<!--<label style="font-size:20px;line-height: 35px">人员 </label>-->
|
469
|
-
</div>
|
470
|
-
<div class="col-xs-4" style="padding-left: 2px">
|
471
|
-
<input class="select-style" placeholder="计划名称" type="text" v-model="plan" style="border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 35px"/>
|
472
|
-
</div>
|
473
|
-
<div class="col-xs-1" >
|
474
|
-
<!--<label style="font-size: 20px;line-height: 35px">计划</label>-->
|
475
|
-
</div>
|
476
|
-
<!--<input placeholder="安检员" type="text" v-model="check" style="height:30px;width: 100px"/>-->
|
477
|
-
<div class="col-xs-2" style="float: right">
|
478
|
-
<button type="button" class="btn btn-primary" @click="plansearch" style="background-color:#499edf;float: right;margin-right:10px;border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 1px;padding-left: 12px">查询</button>
|
479
|
-
</div>
|
480
|
-
</div>
|
481
|
-
<table class="table table_sy">
|
482
|
-
<thead>
|
483
|
-
<tr>
|
484
|
-
<th style="width: 30px"></th>
|
485
|
-
<th style="font-family: 'Adobe 黑体 Std R'">计划名称</th>
|
486
|
-
</tr>
|
487
|
-
</thead>
|
488
|
-
<tbody>
|
489
|
-
<tr v-for="row in planoption">
|
490
|
-
<td @click="select(row, $index)" >{{row.selected==true ? '☆' : ' '}}</td>
|
491
|
-
<td @click="select(row, $index)" style="text-align: center">{{row.label}}</td>
|
492
|
-
|
493
|
-
|
494
|
-
</tr>
|
495
|
-
</tbody>
|
496
|
-
</table>
|
497
|
-
</div>
|
498
|
-
<div slot="modal-footer" class="modal-footer">
|
499
|
-
<button class="btn btn-default" @click="manyisok()">确认</button>
|
500
|
-
<button class="btn btn-default" @click="iscancel()">取消</button>
|
501
|
-
</div>
|
502
|
-
</modal>
|
503
|
-
</div>
|
504
|
-
|
505
|
-
</template>
|
506
|
-
|
507
|
-
<script>
|
508
|
-
import LocalPagedList from '../../../plugins/LocalPagedList'
|
509
|
-
import Vue from 'vue'
|
510
|
-
import { PagedList,HttpResetClass } from 'vue-client'
|
511
|
-
import * as Util from '../../Util'
|
512
|
-
import co from 'co'
|
513
|
-
let select = function * (self) {
|
514
|
-
let http = new HttpResetClass()
|
515
|
-
http.load('POST', `${self.$androidUtil.getProxyUrl()}/rs/search`, {
|
516
|
-
source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
|
517
|
-
userid: Vue.user.id
|
518
|
-
}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
519
|
-
//tag
|
520
|
-
self.checkers.push({label:'全部',value:''})
|
521
|
-
res.data.forEach((checker)=>{
|
522
|
-
self.checkers.push({label:checker.name,value:checker.id})
|
523
|
-
})
|
524
|
-
})
|
525
|
-
}
|
526
|
-
export default {
|
527
|
-
title: '无计划安检查询',
|
528
|
-
props: ['planName'],
|
529
|
-
data() {
|
530
|
-
return {
|
531
|
-
f_filialeids:'('+Vue.user.orgid+')',
|
532
|
-
//f_filialeids:'(305)',
|
533
|
-
planparam:[],
|
534
|
-
check:'',
|
535
|
-
plan:'',
|
536
|
-
planid:'',
|
537
|
-
model:Vue.android? new LocalPagedList('androidGetuserinfo',20,{condition:'this.condition'}): new PagedList( 'AndroidRest/rs/sql/androidGetuserinfo',20,{condition:'this.condition'}),
|
538
|
-
showModal: false,
|
539
|
-
showModal2:false,
|
540
|
-
showModal3:false,
|
541
|
-
needid:'',
|
542
|
-
criteriaShow: false,
|
543
|
-
planoption:[],
|
544
|
-
condition:'',
|
545
|
-
checkers:[],
|
546
|
-
param: null,
|
547
|
-
f_preset_dt : Util.to3339TimeString(),
|
548
|
-
flow_direction:[
|
549
|
-
{label: '请选择挂表方式', value: ''},
|
550
|
-
{label: '左表', value: '左表'},
|
551
|
-
{label: '右表', value: '右表'}
|
552
|
-
],
|
553
|
-
check_states: [
|
554
|
-
{label: '请选择安检状态', value: ''},
|
555
|
-
{label: '未检', value: '未检'},
|
556
|
-
{label: '临时保存', value: '已检'},
|
557
|
-
],
|
558
|
-
last_check_states: [
|
559
|
-
{label: '请选择上次安检状态', value: ''},
|
560
|
-
{label: '入户', value: '入户'},
|
561
|
-
{label: '拒检', value: '拒检'},
|
562
|
-
{label: '到访不遇', value: '到访不遇'},
|
563
|
-
{label: '未使用天然气', value: '未使用天然气'}
|
564
|
-
],
|
565
|
-
upload_states: [
|
566
|
-
{label: '请选择上传状态', value: ''},
|
567
|
-
{label: '未传', value: '未传'},
|
568
|
-
{label: '已传', value: '已传'}
|
569
|
-
],
|
570
|
-
user_types: [
|
571
|
-
{label: '请选择用户类型', value: ''},
|
572
|
-
{label: '民用', value: '民用'},
|
573
|
-
{label: '非民用', value: '非民用'},
|
574
|
-
],
|
575
|
-
verify_state: [
|
576
|
-
{label: '请选择审核状态', value: ''},
|
577
|
-
{label: '未审核', value: '未审核'},
|
578
|
-
{label: '打回', value: '打回'}
|
579
|
-
],
|
580
|
-
residentialAreaOptions: [],
|
581
|
-
buildOptions: [],
|
582
|
-
unitOptions: [],
|
583
|
-
planNameOptions: [],
|
584
|
-
upcomingCount: 0,
|
585
|
-
doneCount: 0,
|
586
|
-
tempSaveCount: 0,
|
587
|
-
allPlanCount: 0
|
588
|
-
}
|
589
|
-
},
|
590
|
-
ready(){
|
591
|
-
this.getAllArea()
|
592
|
-
this.getAllPlanName()
|
593
|
-
this.selfSearch()
|
594
|
-
let gen = select(this)
|
595
|
-
co(gen)
|
596
|
-
},
|
597
|
-
mounted(){
|
598
|
-
//tag
|
599
|
-
if (window.history && window.history.pushState) {
|
600
|
-
history.pushState(null, null, document.URL);
|
601
|
-
window.addEventListener('popstate', this.fun, false);//false阻止默认事件
|
602
|
-
}
|
603
|
-
},
|
604
|
-
destroyed(){
|
605
|
-
//tag
|
606
|
-
window.removeEventListener('popstate', this.fun, false);//false阻止默认事件
|
607
|
-
},
|
608
|
-
methods: {
|
609
|
-
scan(){
|
610
|
-
HostApp.__this__=this,
|
611
|
-
HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
|
612
|
-
},
|
613
|
-
getCode(){
|
614
|
-
const datapa = HostApp.getCode().data;
|
615
|
-
//tag
|
616
|
-
this.$refs.paged.$refs.cri.model.f_meter_no = datapa
|
617
|
-
|
618
|
-
},
|
619
|
-
fun () {
|
620
|
-
//tag
|
621
|
-
//tag
|
622
|
-
},
|
623
|
-
iscancel(){
|
624
|
-
this.showModal2=false
|
625
|
-
this.showModal3=false
|
626
|
-
this.planoption=[]
|
627
|
-
},
|
628
|
-
timeSet(val){
|
629
|
-
return val
|
630
|
-
},
|
631
|
-
async isok(){
|
632
|
-
if(this.planoption.length==0){
|
633
|
-
this.$showMessage("请选择计划")
|
634
|
-
return false
|
635
|
-
}
|
636
|
-
for (let i = 0; i <this.planoption.length ; i++) {
|
637
|
-
if (this.planoption[i]["selected"]==true){
|
638
|
-
this.planid=this.planoption[i].value
|
639
|
-
break
|
640
|
-
}
|
641
|
-
}
|
642
|
-
if(this.planid==''){
|
643
|
-
this.$showMessage("请选择计划")
|
644
|
-
return false
|
645
|
-
}
|
646
|
-
await this.okput()
|
647
|
-
},
|
648
|
-
async manyisok(){
|
649
|
-
if(this.planoption.length==0){
|
650
|
-
this.$showMessage("请选择计划")
|
651
|
-
return false
|
652
|
-
}
|
653
|
-
for (let i = 0; i <this.planoption.length ; i++) {
|
654
|
-
if (this.planoption[i]["selected"]==true){
|
655
|
-
this.planid=this.planoption[i].value
|
656
|
-
break
|
657
|
-
}
|
658
|
-
}
|
659
|
-
if(this.planid==''){
|
660
|
-
this.$showMessage("请选择计划")
|
661
|
-
return false
|
662
|
-
}
|
663
|
-
await this.manyokput()
|
664
|
-
},
|
665
|
-
changenull(){
|
666
|
-
this.showModal2=false
|
667
|
-
this.showModal3=false
|
668
|
-
this.planoption=[]
|
669
|
-
this.plan=''
|
670
|
-
this.check=''
|
671
|
-
},
|
672
|
-
async okput(){
|
673
|
-
let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/UpCheckPlanItem`, {data:{
|
674
|
-
condition:`i.id='`+this.needid+`'`,
|
675
|
-
f_plan_id:this.planid,
|
676
|
-
switchCheckAll:false,
|
677
|
-
checkAll:false,
|
678
|
-
f_operator:Vue.user.name
|
679
|
-
}
|
680
|
-
})
|
681
|
-
this.$showMessage("上传成功,请等待审核")
|
682
|
-
await this.changenull()
|
683
|
-
await this.getNewOrder()
|
684
|
-
},
|
685
|
-
async manyokput(){
|
686
|
-
let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/UpCheckPlanItem`, {data:{
|
687
|
-
columnName:"i.id",
|
688
|
-
condition:"1=1",
|
689
|
-
f_plan_id:this.planid,
|
690
|
-
switchCheckAll:true,
|
691
|
-
param:this.planparam,
|
692
|
-
checkAll:false,
|
693
|
-
f_operator:Vue.user.name
|
694
|
-
}
|
695
|
-
})
|
696
|
-
await this.changenull()
|
697
|
-
await this.getNewOrder()
|
698
|
-
},
|
699
|
-
async plansearch(){
|
700
|
-
this.planoption=[]
|
701
|
-
let condition= ` f_plan_year=${new Date().getFullYear()}`
|
702
|
-
if(this.check){
|
703
|
-
condition += ` and f_checker_id= '${this.check}'`
|
704
|
-
}
|
705
|
-
if(this.plan){
|
706
|
-
condition += ` and f_plan_name like '%${this.plan}%'`
|
707
|
-
}
|
708
|
-
let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/预约计划下发`, {data:{
|
709
|
-
condition:condition,
|
710
|
-
f_filialeids:this.f_filialeids,
|
711
|
-
groupitem:'',
|
712
|
-
orderitem:'id'
|
713
|
-
}})
|
714
|
-
let resoult=res.data
|
715
|
-
for (let i = 0; i < resoult.length; i++) {
|
716
|
-
this.planoption.push({label: resoult[i].f_plan_name,selected:false, value: resoult[i].id})
|
717
|
-
}
|
718
|
-
},
|
719
|
-
|
720
|
-
select(row, idx) {
|
721
|
-
this.$set('planoption[' + idx + '].selected', true)
|
722
|
-
for (let i = 0; i <this.planoption.length ; i++) {
|
723
|
-
if (i!=idx){
|
724
|
-
this.planoption[i]["selected"]=false
|
725
|
-
}
|
726
|
-
}
|
727
|
-
},
|
728
|
-
planclose(){
|
729
|
-
this.showModal2=false
|
730
|
-
this.showModal3=false
|
731
|
-
},
|
732
|
-
queryplan(val){
|
733
|
-
this.needid=val
|
734
|
-
this.showModal2 = true
|
735
|
-
},
|
736
|
-
queryplanmany(){
|
737
|
-
|
738
|
-
this.showModal3 = true
|
739
|
-
},
|
740
|
-
reload(){
|
741
|
-
// this.getAllArea()
|
742
|
-
// this.getAllPlanName()
|
743
|
-
this.selfSearch()
|
744
|
-
},
|
745
|
-
cancelReserve (idx, id) {
|
746
|
-
if(Vue.android){
|
747
|
-
let res = this.$androidUtil.bzLogic('BookingCheck', {dt: '', id: id})
|
748
|
-
this.$set('model.rows[' + idx + '].f_prearranged_date', null)
|
749
|
-
if (res.code == 200) {
|
750
|
-
this.$showMessage("取消预约成功")
|
751
|
-
}
|
752
|
-
}else {
|
753
|
-
this.$androidUtil.bzLogic('PCbookingCheck', {dt: '', id: id}).then((repanse) => {
|
754
|
-
this.$set('model.rows[' + idx + '].f_prearranged_date', null)
|
755
|
-
if (repanse.data.code == 200) {
|
756
|
-
alert("取消预约成功!")
|
757
|
-
}
|
758
|
-
})
|
759
|
-
}},
|
760
|
-
genuineReserve () {
|
761
|
-
if(Vue.android){
|
762
|
-
if (!this.f_preset_dt) {
|
763
|
-
this.$showMessage('请选择一个日期')
|
764
|
-
return
|
765
|
-
}
|
766
|
-
let pdt = this.f_preset_dt.replace('T', ' ')
|
767
|
-
let respanse = this.$androidUtil.bzLogic('BookingCheck', {id: this.model.rows[this.param].id, dt: pdt})
|
768
|
-
this.$set('model.rows[' + this.param + '].f_prearranged_date', pdt)
|
769
|
-
if(respanse.code == 200) {
|
770
|
-
this.$showMessage("预约成功!")
|
771
|
-
}
|
772
|
-
this.showModal = false
|
773
|
-
}else {
|
774
|
-
if (!this.f_preset_dt) {
|
775
|
-
alert('请选择一个日期')
|
776
|
-
return
|
777
|
-
}
|
778
|
-
let pdt = this.f_preset_dt.replace('T', ' ')
|
779
|
-
this.$androidUtil.bzLogic('PCbookingCheck', {id: this.model.rows[this.param].id, dt: pdt}).then((res) => {
|
780
|
-
this.$set('model.rows[' + this.param + '].f_prearranged_date', pdt)
|
781
|
-
if(res.data.code == 200) {
|
782
|
-
alert("预约成功!")
|
783
|
-
}
|
784
|
-
this.showModal = false
|
785
|
-
})
|
786
|
-
}
|
787
|
-
},
|
788
|
-
inspect(row) {
|
789
|
-
var _this = this
|
790
|
-
let http = new HttpResetClass()
|
791
|
-
http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: {
|
792
|
-
items: 'id',
|
793
|
-
tablename: 't_check_plan_item',
|
794
|
-
condition: `id = '${row.id}'`,
|
795
|
-
orderitem: ' id '
|
796
|
-
}}, {resolveMsg: null, rejectMsg: null}).then((getcheckplan) => {
|
797
|
-
console.log('getcheckplan=', JSON.stringify(getcheckplan))
|
798
|
-
this.getcheckplandata = getcheckplan.data[0]
|
799
|
-
if(this.getcheckplandata){
|
800
|
-
if (row.f_upload_state == '未传' || (row.f_upload_state == '已传' && row.f_state == '未检' && row.f_no_checkplan != '无计划安检' ) ) {
|
801
|
-
_this.$resetpost(`${_this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`, {data: {f_userid: row.f_userinfoid}},{resolveMsg: null,rejectMsg: null}).then((response) => {
|
802
|
-
row['f_plan_meters'] = response.data
|
803
|
-
var pardate = {
|
804
|
-
_this:_this,
|
805
|
-
title:'安全检查',
|
806
|
-
safe:true
|
807
|
-
}
|
808
|
-
_this.$dispatch('gotoson',pardate)
|
809
|
-
//tag
|
810
|
-
_this.$goto('safecheck-order-v', {f_plan_id: row.f_plan_id, item: row, role: 'inspect',parentPage:'CurrentCreate'}, 'self', _this.reload)
|
811
|
-
}).catch ((msg)=>{
|
812
|
-
this.$showMessage("网络异常,请检查网络后再试!")
|
813
|
-
})
|
814
|
-
}else{
|
815
|
-
this.$showMessage("该安检单已被上传!")
|
816
|
-
}
|
817
|
-
}else {
|
818
|
-
this.$showMessage("该用户安检单已被移除,请联系管理员确认!")
|
819
|
-
}
|
820
|
-
})
|
821
|
-
},
|
822
|
-
makeAPhoneCall(phoneNumber) {
|
823
|
-
this.$androidUtil.makeAPhoneCall(phoneNumber)
|
824
|
-
},
|
825
|
-
reserve (idx) {
|
826
|
-
this.param = idx
|
827
|
-
this.showModal = true
|
828
|
-
},
|
829
|
-
search(args) {
|
830
|
-
this.model.rows = []
|
831
|
-
this.model.search(args.condition, args.model)
|
832
|
-
},
|
833
|
-
selfSearch () {
|
834
|
-
this.getPlanCount()
|
835
|
-
let condition = ""
|
836
|
-
if (Array.isArray(this.$refs.paged.$refs.cri.model.f_residential_area) && this.$refs.paged.$refs.cri.model.f_residential_area.length >0){
|
837
|
-
condition += " and ti.f_residential_area = '"+this.$refs.paged.$refs.cri.model.f_residential_area[0]+"'"
|
838
|
-
}else if(this.$refs.paged.$refs.cri.model.f_residential_area instanceof String && this.$refs.paged.$refs.cri.model.f_residential_area){
|
839
|
-
condition += " and ti.f_residential_area = '"+this.$refs.paged.$refs.cri.model.f_residential_area+"'"
|
840
|
-
}
|
841
|
-
if(this.$refs.paged.$refs.cri.model.f_building)
|
842
|
-
condition += ` and ti.f_building = '${this.$refs.paged.$refs.cri.model.f_building}'`
|
843
|
-
if(this.$refs.paged.$refs.cri.model.f_unit)
|
844
|
-
condition += ` and ti.f_unit = '${this.$refs.paged.$refs.cri.model.f_unit}'`
|
845
|
-
if (this.planName){
|
846
|
-
condition += " and f_plan_name like '%"+this.planName +"%'"
|
847
|
-
}else {
|
848
|
-
if(this.$refs.paged.$refs.cri.model.f_plan_name)
|
849
|
-
condition += " and f_plan_name like '%"+this.$refs.paged.$refs.cri.model.f_plan_name +"%'"
|
850
|
-
}
|
851
|
-
// if(this.$refs.paged.$refs.cri.model.f_plan_year)
|
852
|
-
// condition += " and f_plan_year = '"+this.$refs.paged.$refs.cri.model.f_plan_year +"'"
|
853
|
-
// if(this.$refs.paged.$refs.cri.model.f_plan_month)
|
854
|
-
// condition += " and f_plan_month = '"+this.$refs.paged.$refs.cri.model.f_plan_month +"'"
|
855
|
-
if(this.$refs.paged.$refs.cri.model.f_userinfo_code)
|
856
|
-
condition += " and ti.f_userinfo_code like '%"+this.$refs.paged.$refs.cri.model.f_userinfo_code+"%'"
|
857
|
-
if(this.$refs.paged.$refs.cri.model.f_keyword)
|
858
|
-
condition += " and ti.f_address like '%"+this.$refs.paged.$refs.cri.model.f_keyword+"%'"
|
859
|
-
if(this.$refs.paged.$refs.cri.model.f_user_name)
|
860
|
-
condition += " and ti.f_user_name like '%"+this.$refs.paged.$refs.cri.model.f_user_name+"%'"
|
861
|
-
if(this.$refs.paged.$refs.cri.model.f_state[0])
|
862
|
-
condition += " and ti.f_state='"+this.$refs.paged.$refs.cri.model.f_state[0]+"'"
|
863
|
-
// if(this.$refs.paged.$refs.cri.model.f_last_state[0])
|
864
|
-
// condition += " and ti.f_last_check_state='"+this.$refs.paged.$refs.cri.model.f_last_state[0]+"'"
|
865
|
-
if(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
866
|
-
condition += " and ti.f_user_type='"+this.$refs.paged.$refs.cri.model.f_user_type[0]+"'"
|
867
|
-
if(this.$refs.paged.$refs.cri.model.f_meter_no)
|
868
|
-
condition += " and tm.f_meter_no like '%"+this.$refs.paged.$refs.cri.model.f_meter_no+"%'"
|
869
|
-
// if(this.$refs.paged.$refs.cri.model.f_flow_direction[0])
|
870
|
-
// condition += " and tm.f_flow_direction = '"+this.$refs.paged.$refs.cri.model.f_flow_direction[0]+"'"
|
871
|
-
if(this.$refs.paged.$refs.cri.model.f_user_phone){
|
872
|
-
condition += `and ti.f_user_phone like '%${this.$refs.paged.$refs.cri.model.f_user_phone}%'`
|
873
|
-
}
|
874
|
-
if(this.$refs.paged.$refs.cri.model.f_olduserinfo_code){
|
875
|
-
condition += `and ti.f_olduserinfo_code = '${this.$refs.paged.$refs.cri.model.f_olduserinfo_code}'`
|
876
|
-
}
|
877
|
-
if(this.$refs.paged.$refs.cri.model.f_enter_number)
|
878
|
-
condition += " and ti.f_enter_number like '%"+this.$refs.paged.$refs.cri.model.f_enter_number+"%'"
|
879
|
-
if(this.$refs.paged.$refs.cri.model.f_check_version)
|
880
|
-
condition += " and ti.f_check_version <= "+this.$refs.paged.$refs.cri.model.f_check_version
|
881
|
-
//tag
|
882
|
-
this.model.search("((f_complete = '' or f_complete = null or f_complete = '未完成') or (f_state = '未检')) and ti.f_no_checkplan = '有计划安检'" + condition)
|
883
|
-
},
|
884
|
-
getNewOrder(){
|
885
|
-
HostApp.__this__ = this
|
886
|
-
HostApp.logicWithHint({
|
887
|
-
// logic别名,key必须为logic
|
888
|
-
'logic': 'SafeCheckServiceTimeOut',
|
889
|
-
// 回调执行方法名,key必须为callback
|
890
|
-
'callback': 'javascript:HostApp.__this__.getNewOrderCallBack()',
|
891
|
-
// logic执行需要的业务参数
|
892
|
-
'data': {params: ''},
|
893
|
-
// 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
|
894
|
-
// 执行回调方法传入key为backresult
|
895
|
-
// 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
|
896
|
-
'backresult': 1
|
897
|
-
})
|
898
|
-
HostApp.logicWithHint({
|
899
|
-
// logic别名,key必须为logic
|
900
|
-
'logic': 'FreshPlanItem',
|
901
|
-
// 回调执行方法名,key必须为callback
|
902
|
-
'callback': 'javascript:HostApp.__this__.getNewOrderCallBack()',
|
903
|
-
// logic执行需要的业务参数
|
904
|
-
'data': {params: ''},
|
905
|
-
// 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
|
906
|
-
// 执行回调方法传入key为backresult
|
907
|
-
// 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
|
908
|
-
'backresult': 1
|
909
|
-
})
|
910
|
-
},
|
911
|
-
getNewOrderCallBack() {
|
912
|
-
this.selfSearch()
|
913
|
-
this.getAllArea()
|
914
|
-
this.getAllPlanName()
|
915
|
-
},
|
916
|
-
hidden() {
|
917
|
-
this.criteriaShow = !this.criteriaShow
|
918
|
-
},
|
919
|
-
getAllArea(){
|
920
|
-
this.residentialAreaOptions = []
|
921
|
-
this.buildOptions = []
|
922
|
-
this.unitOptions = []
|
923
|
-
this.$refs.paged.$refs.cri.model.f_residential_area = ''
|
924
|
-
this.$refs.paged.$refs.cri.model.f_building = ''
|
925
|
-
this.$refs.paged.$refs.cri.model.f_unit = ''
|
926
|
-
let criteria = {
|
927
|
-
items: 'f_residential_area',
|
928
|
-
tablename: 't_check_plan_item',
|
929
|
-
condition: `f_residential_area IS NOT NULL AND f_residential_area != '' AND f_state <> '已检'`,
|
930
|
-
groupitem: 'f_residential_area'
|
931
|
-
}
|
932
|
-
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
933
|
-
//tag)
|
934
|
-
if(result.code == 200){
|
935
|
-
result.data.rows.forEach(item => this.residentialAreaOptions.push({label:item.f_residential_area,value:item.f_residential_area}))
|
936
|
-
}
|
937
|
-
//tag)
|
938
|
-
},
|
939
|
-
getbuilds(f_residential_area){
|
940
|
-
//tag)
|
941
|
-
this.buildOptions = []
|
942
|
-
this.unitOptions = []
|
943
|
-
this.$refs.paged.$refs.cri.model.f_building = ''
|
944
|
-
this.$refs.paged.$refs.cri.model.f_unit = ''
|
945
|
-
if(!f_residential_area){
|
946
|
-
return
|
947
|
-
}
|
948
|
-
let criteria = {
|
949
|
-
items: 'f_building',
|
950
|
-
tablename: 't_check_plan_item',
|
951
|
-
condition: `f_building IS NOT NULL AND f_building != '' AND f_state <> '已检' AND f_residential_area = '${f_residential_area}'`,
|
952
|
-
groupitem: 'f_building order by f_building+0'
|
953
|
-
}
|
954
|
-
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
955
|
-
if(result.code == 200){
|
956
|
-
result.data.rows.forEach(item => this.buildOptions.push({label:item.f_building,value:item.f_building}))
|
957
|
-
}
|
958
|
-
this.buildOptions.sort((a,b)=>{
|
959
|
-
return Number(a.label)- Number(b.label)
|
960
|
-
})
|
961
|
-
//tag)
|
962
|
-
},
|
963
|
-
getUnits(f_building){
|
964
|
-
f_building = f_building[0]
|
965
|
-
//tag)
|
966
|
-
this.unitOptions = []
|
967
|
-
this.$refs.paged.$refs.cri.model.f_unit = ''
|
968
|
-
if(!f_building){
|
969
|
-
return
|
970
|
-
}
|
971
|
-
let criteria = {
|
972
|
-
items: 'f_unit',
|
973
|
-
tablename: 't_check_plan_item',
|
974
|
-
condition: `f_unit IS NOT NULL AND f_unit != '' AND f_state <> '已检' AND f_residential_area = '${this.$refs.paged.$refs.cri.model.f_residential_area}' AND f_building = '${f_building}'`,
|
975
|
-
groupitem: 'f_unit'
|
976
|
-
}
|
977
|
-
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
978
|
-
if(result.code == 200){
|
979
|
-
result.data.rows.forEach(item => this.unitOptions.push({label:item.f_unit,value:item.f_unit}))
|
980
|
-
}
|
981
|
-
this.unitOptions.sort((a,b)=>{
|
982
|
-
return Number(a.label)- Number(b.label)
|
983
|
-
})
|
984
|
-
},
|
985
|
-
getPlanCount(){
|
986
|
-
this.upcomingCount = 0
|
987
|
-
this.tempSaveCount = 0
|
988
|
-
this.doneCount = 0
|
989
|
-
this.allPlanCount = 0
|
990
|
-
let criteria = {
|
991
|
-
items: 'count(id) count',
|
992
|
-
tablename: 't_check_plan_item',
|
993
|
-
condition: `f_state = '未检'`,
|
994
|
-
groupitem: 'f_state'
|
995
|
-
}
|
996
|
-
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
997
|
-
if(result.code && result.code == 200){
|
998
|
-
if(result.data.rows[0] && !isNaN(result.data.rows[0].count)) {
|
999
|
-
this.upcomingCount = result.data.rows[0].count
|
1000
|
-
}
|
1001
|
-
}
|
1002
|
-
criteria = {
|
1003
|
-
items: 'count(id) count',
|
1004
|
-
tablename: 't_check_plan_item',
|
1005
|
-
condition: `(f_complete = '' or f_complete is null or f_complete = '未完成') AND f_state = '已检'`,
|
1006
|
-
groupitem: 'f_state'
|
1007
|
-
}
|
1008
|
-
result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
1009
|
-
if(result.code && result.code == 200){
|
1010
|
-
if(result.data.rows[0] && !isNaN(result.data.rows[0].count)){
|
1011
|
-
this.tempSaveCount = result.data.rows[0].count
|
1012
|
-
}
|
1013
|
-
}
|
1014
|
-
criteria = {
|
1015
|
-
items: 'count(id) count',
|
1016
|
-
tablename: 't_check_plan_item',
|
1017
|
-
condition: `f_complete = '已完成' AND f_state = '已检'`,
|
1018
|
-
groupitem: 'f_state'
|
1019
|
-
}
|
1020
|
-
result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
1021
|
-
if(result.code && result.code == 200){
|
1022
|
-
if(result.data.rows[0] && !isNaN(result.data.rows[0].count)){
|
1023
|
-
this.doneCount = result.data.rows[0].count
|
1024
|
-
}
|
1025
|
-
}
|
1026
|
-
this.allPlanCount = this.upcomingCount + this.tempSaveCount + this.doneCount
|
1027
|
-
|
1028
|
-
//tag
|
1029
|
-
//tag
|
1030
|
-
//tag
|
1031
|
-
//tag
|
1032
|
-
},
|
1033
|
-
getAllPlanName(){
|
1034
|
-
this.planNameOptions = []
|
1035
|
-
this.$refs.paged.$refs.cri.model.f_plan_name = ''
|
1036
|
-
let criteria = {
|
1037
|
-
items: 'f_plan_name',
|
1038
|
-
tablename: 't_check_plan',
|
1039
|
-
condition: `f_plan_name IS NOT NULL AND f_plan_name != ''`,
|
1040
|
-
groupitem: 'f_plan_name'
|
1041
|
-
}
|
1042
|
-
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
1043
|
-
//tag)
|
1044
|
-
if(result.code == 200){
|
1045
|
-
result.data.rows.forEach(item => this.planNameOptions.push({label:item.f_plan_name,value:item.f_plan_name}))
|
1046
|
-
}
|
1047
|
-
//tag)
|
1048
|
-
},
|
1049
|
-
setPlanParam(detailsType, event) {
|
1050
|
-
if (event.srcElement.checked) {
|
1051
|
-
this.planparam.push(detailsType)
|
1052
|
-
//tag
|
1053
|
-
} else {
|
1054
|
-
if(this.planparam.length>0){
|
1055
|
-
let planid= this.planparam.findIndex((value) => {
|
1056
|
-
return value === detailsType
|
1057
|
-
})
|
1058
|
-
this.planparam.splice(planid, 1)
|
1059
|
-
//tag
|
1060
|
-
|
1061
|
-
}
|
1062
|
-
|
1063
|
-
}
|
1064
|
-
}
|
1065
|
-
}
|
1066
|
-
}
|
1067
|
-
</script>
|
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
|
+
.qxbtn-color{
|
49
|
+
background-color: #FFFFFF;
|
50
|
+
border-radius: 4px ;
|
51
|
+
color: #499edf;
|
52
|
+
font: 14px PingFang-SC-Bold;
|
53
|
+
border: 1px solid #499EDF;
|
54
|
+
}
|
55
|
+
|
56
|
+
.button_shrink_top {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_top.png")}
|
57
|
+
.button_shrink_bottom {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_bottom.png")}
|
58
|
+
.button_shrink_left {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_left.png")}
|
59
|
+
.button_shrink_right {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_right.png")}
|
60
|
+
</style>
|
61
|
+
<style>
|
62
|
+
.clear-select-with .dropdown-menu{
|
63
|
+
left: 0px !important;
|
64
|
+
width: 200% !important;
|
65
|
+
}
|
66
|
+
</style>
|
67
|
+
<template>
|
68
|
+
<div style="height: auto;width: 100%">
|
69
|
+
<criteria-paged :model="model" v-ref:paged>
|
70
|
+
<criteria partial='criteria' @condition-changed='search' v-ref:cri>
|
71
|
+
<div partial>
|
72
|
+
<form>
|
73
|
+
<div class="row app-row">
|
74
|
+
<!--小区名称-->
|
75
|
+
<v-select :value.sync="model.f_residential_area"
|
76
|
+
class="input-font clear-select-with"
|
77
|
+
:options='$parent.$parent.residentialAreaOptions'
|
78
|
+
placeholder='小区名称'
|
79
|
+
:width="'32.5%'"
|
80
|
+
v-model="model.f_residential_area"
|
81
|
+
condition="ti.f_residential_area = '{}'"
|
82
|
+
@change="$parent.$parent.getbuilds"
|
83
|
+
close-on-select clear-button>
|
84
|
+
</v-select>
|
85
|
+
<!--楼栋-->
|
86
|
+
<v-select :value.sync="model.f_building"
|
87
|
+
class="input-font"
|
88
|
+
:options='$parent.$parent.buildOptions'
|
89
|
+
placeholder='楼栋'
|
90
|
+
:width="'32.5%'"
|
91
|
+
v-model="model.f_building"
|
92
|
+
condition="ti.f_building = '{}'"
|
93
|
+
@change="$parent.$parent.getUnits"
|
94
|
+
close-on-select clear-button>
|
95
|
+
</v-select>
|
96
|
+
<!--单元-->
|
97
|
+
<v-select :value.sync="model.f_unit"
|
98
|
+
class="input-font"
|
99
|
+
:options='$parent.$parent.unitOptions'
|
100
|
+
placeholder='单元'
|
101
|
+
:width="'32.5%'"
|
102
|
+
v-model="model.f_unit"
|
103
|
+
condition="ti.f_unit = '{}'"
|
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/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
|
110
|
+
<label for="f_userinfo_code" style="padding: 0" class="font text-left">旧用户编号:</label>
|
111
|
+
</div>
|
112
|
+
<div class="col-xs-8" >
|
113
|
+
<input id="f_userinfo_code" class="search_input input-font"
|
114
|
+
v-model=model.f_olduserinfo_code condition="f_olduserinfo_code = '{}'" />
|
115
|
+
</div>
|
116
|
+
</div>
|
117
|
+
<div class="row app-row">
|
118
|
+
<div class="col-xs-4">
|
119
|
+
<img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
|
120
|
+
<label for="f_userinfo_code" class="font text-left">用户编号:</label>
|
121
|
+
</div>
|
122
|
+
<div class="col-xs-8" >
|
123
|
+
<input id="f_userinfo_code" class="search_input input-font"
|
124
|
+
v-model=model.f_userinfo_code condition="f_userinfo_code like '%{}%'" />
|
125
|
+
</div>
|
126
|
+
</div>
|
127
|
+
<div class="row app-row">
|
128
|
+
<div class="col-xs-4">
|
129
|
+
<img src="../../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
|
130
|
+
<label class="font text-left">用户姓名:</label>
|
131
|
+
</div>
|
132
|
+
<div class="col-xs-8" >
|
133
|
+
<input class="search_input input-font" v-model=model.f_user_name condition="f_user_name like '%{}%'" />
|
134
|
+
</div>
|
135
|
+
</div>
|
136
|
+
|
137
|
+
<div class="row app-row">
|
138
|
+
<div class="col-xs-4">
|
139
|
+
<img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
140
|
+
<label class="font text-left">用户卡号:</label>
|
141
|
+
</div>
|
142
|
+
<div class="col-xs-8" >
|
143
|
+
<input class="search_input input-font" v-model=model.f_card_id condition="f_card_id = '{}'" />
|
144
|
+
</div>
|
145
|
+
</div>
|
146
|
+
|
147
|
+
<div class="row app-row" v-if="$parent.$parent.criteriaShow && !$parent.$parent.planName">
|
148
|
+
<div class="col-xs-4">
|
149
|
+
<img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
150
|
+
<label for="f_plan_name" class="font text-left">计划名称:</label>
|
151
|
+
</div>
|
152
|
+
<v-select
|
153
|
+
id="f_plan_name"
|
154
|
+
:value.sync="model.f_plan_name"
|
155
|
+
class="input-font"
|
156
|
+
:options='$parent.$parent.planNameOptions'
|
157
|
+
placeholder='计划名称'
|
158
|
+
:width="'60%'"
|
159
|
+
v-model="model.f_plan_name"
|
160
|
+
condition="f_plan_name like '%{}%'"
|
161
|
+
close-on-select clear-button>
|
162
|
+
</v-select>
|
163
|
+
</div>
|
164
|
+
|
165
|
+
<div class="row app-row" v-if="$parent.$parent.criteriaShow">
|
166
|
+
<div class="col-xs-4">
|
167
|
+
<img src="../../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">
|
168
|
+
<label for="f_state" class="font text-left">是否已检:</label>
|
169
|
+
</div>
|
170
|
+
<v-select id="f_state"
|
171
|
+
:value.sync="model.f_state"
|
172
|
+
class="input-font"
|
173
|
+
:options='$parent.$parent.check_states'
|
174
|
+
placeholder='是否已检'
|
175
|
+
:width="'60%'"
|
176
|
+
v-model="model.f_state"
|
177
|
+
condition="f_state='{}'"
|
178
|
+
close-on-select clear-button>
|
179
|
+
</v-select>
|
180
|
+
</div>
|
181
|
+
<div class="row app-row" v-if="$parent.$parent.criteriaShow">
|
182
|
+
<div class="col-xs-4">
|
183
|
+
<img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
|
184
|
+
<label class="font text-left">表  号:</label>
|
185
|
+
</div>
|
186
|
+
<div class="col-xs-5" >
|
187
|
+
<input class="search_input input-font"
|
188
|
+
v-model=model.f_meter_no condition="f_meter_no like '%{}%'" />
|
189
|
+
</div>
|
190
|
+
<div class="col-xs-3">
|
191
|
+
<button type="button" class="btn btn-lg btn-font btn-color" @click="$parent.$parent.scan()">扫码</button>
|
192
|
+
</div>
|
193
|
+
</div>
|
194
|
+
<div class="row app-row" v-if="$parent.$parent.criteriaShow">
|
195
|
+
<div class="col-xs-4">
|
196
|
+
<img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
|
197
|
+
<label class="font text-left">客户电话:</label>
|
198
|
+
</div>
|
199
|
+
<div class="col-xs-8" >
|
200
|
+
<input class="search_input input-font"
|
201
|
+
v-model=model.f_user_phone condition="f_user_phone like '%{}%'" />
|
202
|
+
</div>
|
203
|
+
</div>
|
204
|
+
|
205
|
+
<div class="row app-row" v-if="$parent.$parent.criteriaShow">
|
206
|
+
<div class="col-xs-4">
|
207
|
+
<img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
|
208
|
+
<label class="font text-left">用户地址:</label>
|
209
|
+
</div>
|
210
|
+
<div class="col-xs-8" >
|
211
|
+
<input class="search_input input-font"
|
212
|
+
v-model=model.f_keyword condition="f_address like '%{}%'" />
|
213
|
+
</div>
|
214
|
+
</div>
|
215
|
+
<div class="row app-row" v-if="$parent.$parent.criteriaShow">
|
216
|
+
<div class="col-xs-4">
|
217
|
+
<img src="../../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
|
218
|
+
<label for="f_user_type" class="font text-left">用户类型:</label>
|
219
|
+
</div>
|
220
|
+
<v-select id="f_user_type" :value.sync="model.f_user_type" class="input-font"
|
221
|
+
:width="'60%'"
|
222
|
+
:options='$parent.$parent.user_types' placeholder='请选择用户类型'
|
223
|
+
v-model="model.f_user_type" condition="f_user_type='{}'" close-on-select clear-button></v-select>
|
224
|
+
</div>
|
225
|
+
<div class="row app-row" v-if="$parent.$parent.criteriaShow">
|
226
|
+
<div class="col-xs-6">
|
227
|
+
<img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
|
228
|
+
<label class="font text-left">到访不遇:</label>
|
229
|
+
</div>
|
230
|
+
<div class="col-xs-8" >
|
231
|
+
<input class="search_input input-font" type="number"
|
232
|
+
v-model=model.f_check_version condition="f_check_version <= '{}'" />
|
233
|
+
</div>
|
234
|
+
</div>
|
235
|
+
<div class="row app-row" v-if="$parent.$parent.criteriaShow">
|
236
|
+
<div class="col-xs-6" style="text-align: center">
|
237
|
+
<span class="font text-left">待办{{$parent.$parent.upcomingCount}}条</span>
|
238
|
+
</div>
|
239
|
+
<div class="col-xs-6" style="text-align: center">
|
240
|
+
<span class="font text-left">已办{{$parent.$parent.doneCount}}条</span>
|
241
|
+
</div>
|
242
|
+
<div class="col-xs-6" style="text-align: center">
|
243
|
+
<span class="font text-left">临时保存{{$parent.$parent.tempSaveCount}}条</span>
|
244
|
+
</div>
|
245
|
+
<div class="col-xs-6" style="text-align: center">
|
246
|
+
<span class="font text-left">总共{{$parent.$parent.allPlanCount}}条</span>
|
247
|
+
</div>
|
248
|
+
</div>
|
249
|
+
|
250
|
+
<div class="row text-center" style="margin-top: 20px;">
|
251
|
+
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;" @click="$parent.$parent.selfSearch">查询</button>
|
252
|
+
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%; margin-left: 10px" @click="$parent.$parent.queryplanmany">转发</button>
|
253
|
+
<div style="float: right;margin-right: 3% " class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
|
254
|
+
<img v-if="!$parent.$parent.planName" style="float: right;margin-right: 3% " @click="$parent.$parent.getNewOrder" src="../../../assets/shuaxindaiban1.png" style="width: 40px;padding: 5px; float:right">
|
255
|
+
</div>
|
256
|
+
<div class="col-sm-12">
|
257
|
+
|
258
|
+
</div>
|
259
|
+
<!--<div class="row app-btn">-->
|
260
|
+
<!--<button class="btn btn-primary col-xs-6" type="button" @click="search"><span class="glyphicon glyphicon-search" style="margin-right: 20px;">查询</span></button>-->
|
261
|
+
<!--</div>-->
|
262
|
+
<div style="height:30px;"></div>
|
263
|
+
</form>
|
264
|
+
</div>
|
265
|
+
</criteria>
|
266
|
+
<list :model="model" partial='list'>
|
267
|
+
<div partial>
|
268
|
+
<div class="auto app-text" style="margin-top: 5px;">
|
269
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
270
|
+
<div class="panel-body panel-self">
|
271
|
+
|
272
|
+
<div class="col-xs-12">
|
273
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户编号:</b></p>
|
274
|
+
<p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{ row.f_userinfo_code }}</p>
|
275
|
+
<p class="panel-title col-xs-2 text-left input-font" style="width: 5%;float:right">
|
276
|
+
<input type="checkbox" @click="$parent.$parent.$parent.setPlanParam(row.id, $event)"/>
|
277
|
+
</p>
|
278
|
+
</div>
|
279
|
+
<div class="col-xs-12">
|
280
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>旧用户编号:</b></p>
|
281
|
+
<p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_olduserinfo_code }}</p>
|
282
|
+
</div>
|
283
|
+
<div class="col-xs-12">
|
284
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户名称:</b></p>
|
285
|
+
<p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_user_name }}</p>
|
286
|
+
</div>
|
287
|
+
<div class="col-xs-6">
|
288
|
+
<p class="panel-title col-xs-5 text-left font"><b>用户类型:</b></p>
|
289
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_user_type }}
|
290
|
+
</p>
|
291
|
+
</div>
|
292
|
+
<div class="col-xs-6">
|
293
|
+
<p class="panel-title col-xs-5 text-left font"><b>计划名称:</b></p>
|
294
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_plan_name }}</p>
|
295
|
+
</div>
|
296
|
+
<!-- <div class="col-xs-6">-->
|
297
|
+
<!-- <p class="panel-title col-xs-5 text-left font"><b>小区名称:</b></p>-->
|
298
|
+
<!-- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_residential_area }}</p>-->
|
299
|
+
<!-- </div>-->
|
300
|
+
<div class="col-xs-12">
|
301
|
+
<p class="panel-title text-left font" style="width: 23%;float: left"><b>用户电话:</b></p>
|
302
|
+
<p class="panel-title text-left input-font" style="width: 77%">{{ row.f_user_phone }}
|
303
|
+
<img src="../../../assets/phone.png" style="width: 6%"
|
304
|
+
v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_user_phone)'/>
|
305
|
+
</p>
|
306
|
+
</div>
|
307
|
+
<div class="col-xs-12">
|
308
|
+
<p class="panel-title text-left font" style="width: 23%;float: left"><b>备用电话:</b></p>
|
309
|
+
<p class="panel-title text-left input-font" style="width: 77%">{{ row.f_rent_phone}}
|
310
|
+
<img v-if="row.f_rent_phone" src="../../../assets/phone.png" style="width: 6%"
|
311
|
+
v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_rent_phone)'/>
|
312
|
+
</p>
|
313
|
+
</div>
|
314
|
+
<div class="col-xs-12">
|
315
|
+
<p class="panel-title text-left font" style="width: 23%;float: left"><b>租户电话:</b></p>
|
316
|
+
<p class="panel-title text-left input-font" style="width: 77%">{{ row.f_zuhu_phone }}
|
317
|
+
<img v-if="row.f_zuhu_phone" src="../../../assets/phone.png" style="width: 6%"
|
318
|
+
v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_zuhu_phone)'/>
|
319
|
+
</p>
|
320
|
+
</div>
|
321
|
+
|
322
|
+
<div class="col-xs-12">
|
323
|
+
<p class="panel-title text-left font" style="width: 21%;float: left"><b>用户地址:</b></p>
|
324
|
+
<p class="panel-title text-left input-font" style="width: 79%">{{ row.f_address }}</p>
|
325
|
+
</div>
|
326
|
+
|
327
|
+
<!-- <div class="row">-->
|
328
|
+
<!-- <p class="panel-title col-xs-4 text-left font">计划年份</p>-->
|
329
|
+
<!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_year }}</p>-->
|
330
|
+
<!-- </div>-->
|
331
|
+
<!-- <div class="row">-->
|
332
|
+
<!-- <p class="panel-title col-xs-4 text-left font">计划月份</p>-->
|
333
|
+
<!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_month }}</p>-->
|
334
|
+
<!-- </div>-->
|
335
|
+
<!-- <div class="row">-->
|
336
|
+
<!-- <p class="panel-title col-xs-4 text-left font">预约时间</p>-->
|
337
|
+
<!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_prearranged_date }}</p>-->
|
338
|
+
<!-- </div>-->
|
339
|
+
<!--<div class="row">-->
|
340
|
+
<!--<p class="panel-title col-xs-4 text-left font">上次安检状态</p>-->
|
341
|
+
<!--<p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_state }}</p>-->
|
342
|
+
<!--</div>-->
|
343
|
+
<div class="col-xs-6">
|
344
|
+
<p class="panel-title col-xs-5 text-left font"><b>安检状态:</b></p>
|
345
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_state == '已检'?'临时保存':row.f_state }}</p>
|
346
|
+
</div>
|
347
|
+
<div class="col-xs-6">
|
348
|
+
<p class="panel-title col-xs-5 text-left font"><b>上传状态:</b></p>
|
349
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_upload_state }}</p>
|
350
|
+
</div>
|
351
|
+
<div class="col-xs-12" v-if="row.f_prearranged_date !=null">
|
352
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>预约时间:</b></p>
|
353
|
+
<p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_prearranged_date }}</p>
|
354
|
+
</div>
|
355
|
+
<div class="col-xs-6">
|
356
|
+
<p class="panel-title col-xs-5 text-left font"><b>安检类型:</b></p>
|
357
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_safecheck_type }}</p>
|
358
|
+
</div>
|
359
|
+
<div class="col-xs-12">
|
360
|
+
<p class="panel-title col-xs-5 text-left font"><b>到访不遇次数:</b></p>
|
361
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_check_version }}</p>
|
362
|
+
</div>
|
363
|
+
<!--<div class="col-xs-12">-->
|
364
|
+
<!--<p class="panel-title col-xs-5 text-left font"><b>送气期限:</b></p>-->
|
365
|
+
<!--<p class="panel-title col-xs-7 text-left input-font">{{timeSet(row.f_issue_time)}}</p>-->
|
366
|
+
<!--</div>-->
|
367
|
+
<div class="col-xs-12">
|
368
|
+
<button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right" @click="$parent.$parent.$parent.inspect(row)">处理</button>
|
369
|
+
<button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right;margin-right:10px;" @click="$parent.$parent.$parent.queryplan(row.id)">转发</button>
|
370
|
+
<!--<button type="button" class="btn btn-default" @click="$parent.$parent.$parent.ceshi">确认2</button>-->
|
371
|
+
</div>
|
372
|
+
<!-- <div class="row text-right" v-show="row.f_upload_state != '已传'" >-->
|
373
|
+
<!-- <button type="button" class="btn yybtn-color" v-on:click.stop.prevent='$parent.$parent.$parent.reserve($index)'>预约</button> -->
|
374
|
+
<!-- <button type="button" class="btn qxbtn-color" v-if ='row.f_prearranged_date'-->
|
375
|
+
<!-- v-on:click.stop.prevent='$parent.$parent.$parent.cancelReserve($index, row.id)'>取消预约</button>-->
|
376
|
+
<!-- </div>-->
|
377
|
+
</div>
|
378
|
+
</div>
|
379
|
+
</div>
|
380
|
+
</div>
|
381
|
+
</list>
|
382
|
+
</criteria-paged>
|
383
|
+
<modal :show.sync="showModal">
|
384
|
+
<div slot="modal-header" class="modal-header">
|
385
|
+
<h4 class="modal-title">
|
386
|
+
选择预约时间
|
387
|
+
</h4>
|
388
|
+
</div>
|
389
|
+
<div slot="modal-body" class="modal-body">
|
390
|
+
<input type="datetime-local" v-model="f_preset_dt">
|
391
|
+
</div>
|
392
|
+
<div slot="modal-footer" class="modal-footer">
|
393
|
+
<button type="button" class="btn btn-default" @click="genuineReserve">确认</button>
|
394
|
+
</div>
|
395
|
+
</modal>
|
396
|
+
<!--<back-page :need-back='true' @flag="$back()"></back-page>-->
|
397
|
+
<modal :show.sync="showModal2" v-ref:modal>
|
398
|
+
<div slot="modal-header" class="modal-header">
|
399
|
+
<h4 class="modal-title">
|
400
|
+
选择计划
|
401
|
+
</h4>
|
402
|
+
</div>
|
403
|
+
<div slot="modal-body" class="modal-body">
|
404
|
+
<div class="col-xs-12">
|
405
|
+
|
406
|
+
<div class="col-xs-4">
|
407
|
+
<v-select :value.sync="check" v-model='check'
|
408
|
+
:value-single="true"
|
409
|
+
class="select_list select"
|
410
|
+
:options='checkers' placeholder='安检员'
|
411
|
+
close-on-select width="100%"></v-select>
|
412
|
+
</div>
|
413
|
+
|
414
|
+
<div class="col-xs-1">
|
415
|
+
<!--<label style="font-size:20px;line-height: 35px">人员 </label>-->
|
416
|
+
</div>
|
417
|
+
<div class="col-xs-4" style="padding-left: 2px">
|
418
|
+
<input class="select-style" placeholder="计划名称" type="text" v-model="plan" style="border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 35px"/>
|
419
|
+
</div>
|
420
|
+
<div class="col-xs-1" >
|
421
|
+
<!--<label style="font-size: 20px;line-height: 35px">计划</label>-->
|
422
|
+
</div>
|
423
|
+
<!--<input placeholder="安检员" type="text" v-model="check" style="height:30px;width: 100px"/>-->
|
424
|
+
<div class="col-xs-2" style="float: right">
|
425
|
+
<button type="button" class="btn btn-primary" @click="plansearch" style="background-color:#499edf;float: right;margin-right:10px;border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 1px;padding-left: 12px">查询</button>
|
426
|
+
</div>
|
427
|
+
</div>
|
428
|
+
<table class="table table_sy">
|
429
|
+
<thead>
|
430
|
+
<tr>
|
431
|
+
<th style="width: 30px"></th>
|
432
|
+
<th style="font-family: 'Adobe 黑体 Std R'">计划名称</th>
|
433
|
+
</tr>
|
434
|
+
</thead>
|
435
|
+
<tbody>
|
436
|
+
<tr v-for="row in planoption">
|
437
|
+
<td @click="select(row, $index)" >{{row.selected==true ? '☆' : ' '}}</td>
|
438
|
+
<td @click="select(row, $index)" style="text-align: center">{{row.label}}</td>
|
439
|
+
|
440
|
+
|
441
|
+
</tr>
|
442
|
+
</tbody>
|
443
|
+
</table>
|
444
|
+
</div>
|
445
|
+
<div slot="modal-footer" class="modal-footer">
|
446
|
+
<button class="btn btn-default" @click="isok()">确认</button>
|
447
|
+
<button class="btn btn-default" @click="iscancel()">取消</button>
|
448
|
+
</div>
|
449
|
+
</modal>
|
450
|
+
<modal :show.sync="showModal3" v-ref:modal>
|
451
|
+
<div slot="modal-header" class="modal-header">
|
452
|
+
<h4 class="modal-title">
|
453
|
+
选择计划
|
454
|
+
</h4>
|
455
|
+
</div>
|
456
|
+
<div slot="modal-body" class="modal-body">
|
457
|
+
<div class="col-xs-12">
|
458
|
+
|
459
|
+
<div class="col-xs-4">
|
460
|
+
<v-select :value.sync="check" v-model='check'
|
461
|
+
:value-single="true"
|
462
|
+
class="select_list select"
|
463
|
+
:options='checkers' placeholder='安检员'
|
464
|
+
close-on-select width="100%"></v-select>
|
465
|
+
</div>
|
466
|
+
|
467
|
+
<div class="col-xs-1">
|
468
|
+
<!--<label style="font-size:20px;line-height: 35px">人员 </label>-->
|
469
|
+
</div>
|
470
|
+
<div class="col-xs-4" style="padding-left: 2px">
|
471
|
+
<input class="select-style" placeholder="计划名称" type="text" v-model="plan" style="border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 35px"/>
|
472
|
+
</div>
|
473
|
+
<div class="col-xs-1" >
|
474
|
+
<!--<label style="font-size: 20px;line-height: 35px">计划</label>-->
|
475
|
+
</div>
|
476
|
+
<!--<input placeholder="安检员" type="text" v-model="check" style="height:30px;width: 100px"/>-->
|
477
|
+
<div class="col-xs-2" style="float: right">
|
478
|
+
<button type="button" class="btn btn-primary" @click="plansearch" style="background-color:#499edf;float: right;margin-right:10px;border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 1px;padding-left: 12px">查询</button>
|
479
|
+
</div>
|
480
|
+
</div>
|
481
|
+
<table class="table table_sy">
|
482
|
+
<thead>
|
483
|
+
<tr>
|
484
|
+
<th style="width: 30px"></th>
|
485
|
+
<th style="font-family: 'Adobe 黑体 Std R'">计划名称</th>
|
486
|
+
</tr>
|
487
|
+
</thead>
|
488
|
+
<tbody>
|
489
|
+
<tr v-for="row in planoption">
|
490
|
+
<td @click="select(row, $index)" >{{row.selected==true ? '☆' : ' '}}</td>
|
491
|
+
<td @click="select(row, $index)" style="text-align: center">{{row.label}}</td>
|
492
|
+
|
493
|
+
|
494
|
+
</tr>
|
495
|
+
</tbody>
|
496
|
+
</table>
|
497
|
+
</div>
|
498
|
+
<div slot="modal-footer" class="modal-footer">
|
499
|
+
<button class="btn btn-default" @click="manyisok()">确认</button>
|
500
|
+
<button class="btn btn-default" @click="iscancel()">取消</button>
|
501
|
+
</div>
|
502
|
+
</modal>
|
503
|
+
</div>
|
504
|
+
|
505
|
+
</template>
|
506
|
+
|
507
|
+
<script>
|
508
|
+
import LocalPagedList from '../../../plugins/LocalPagedList'
|
509
|
+
import Vue from 'vue'
|
510
|
+
import { PagedList,HttpResetClass } from 'vue-client'
|
511
|
+
import * as Util from '../../Util'
|
512
|
+
import co from 'co'
|
513
|
+
let select = function * (self) {
|
514
|
+
let http = new HttpResetClass()
|
515
|
+
http.load('POST', `${self.$androidUtil.getProxyUrl()}/rs/search`, {
|
516
|
+
source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
|
517
|
+
userid: Vue.user.id
|
518
|
+
}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
519
|
+
//tag
|
520
|
+
self.checkers.push({label:'全部',value:''})
|
521
|
+
res.data.forEach((checker)=>{
|
522
|
+
self.checkers.push({label:checker.name,value:checker.id})
|
523
|
+
})
|
524
|
+
})
|
525
|
+
}
|
526
|
+
export default {
|
527
|
+
title: '无计划安检查询',
|
528
|
+
props: ['planName'],
|
529
|
+
data() {
|
530
|
+
return {
|
531
|
+
f_filialeids:'('+Vue.user.orgid+')',
|
532
|
+
//f_filialeids:'(305)',
|
533
|
+
planparam:[],
|
534
|
+
check:'',
|
535
|
+
plan:'',
|
536
|
+
planid:'',
|
537
|
+
model:Vue.android? new LocalPagedList('androidGetuserinfo',20,{condition:'this.condition'}): new PagedList( 'AndroidRest/rs/sql/androidGetuserinfo',20,{condition:'this.condition'}),
|
538
|
+
showModal: false,
|
539
|
+
showModal2:false,
|
540
|
+
showModal3:false,
|
541
|
+
needid:'',
|
542
|
+
criteriaShow: false,
|
543
|
+
planoption:[],
|
544
|
+
condition:'',
|
545
|
+
checkers:[],
|
546
|
+
param: null,
|
547
|
+
f_preset_dt : Util.to3339TimeString(),
|
548
|
+
flow_direction:[
|
549
|
+
{label: '请选择挂表方式', value: ''},
|
550
|
+
{label: '左表', value: '左表'},
|
551
|
+
{label: '右表', value: '右表'}
|
552
|
+
],
|
553
|
+
check_states: [
|
554
|
+
{label: '请选择安检状态', value: ''},
|
555
|
+
{label: '未检', value: '未检'},
|
556
|
+
{label: '临时保存', value: '已检'},
|
557
|
+
],
|
558
|
+
last_check_states: [
|
559
|
+
{label: '请选择上次安检状态', value: ''},
|
560
|
+
{label: '入户', value: '入户'},
|
561
|
+
{label: '拒检', value: '拒检'},
|
562
|
+
{label: '到访不遇', value: '到访不遇'},
|
563
|
+
{label: '未使用天然气', value: '未使用天然气'}
|
564
|
+
],
|
565
|
+
upload_states: [
|
566
|
+
{label: '请选择上传状态', value: ''},
|
567
|
+
{label: '未传', value: '未传'},
|
568
|
+
{label: '已传', value: '已传'}
|
569
|
+
],
|
570
|
+
user_types: [
|
571
|
+
{label: '请选择用户类型', value: ''},
|
572
|
+
{label: '民用', value: '民用'},
|
573
|
+
{label: '非民用', value: '非民用'},
|
574
|
+
],
|
575
|
+
verify_state: [
|
576
|
+
{label: '请选择审核状态', value: ''},
|
577
|
+
{label: '未审核', value: '未审核'},
|
578
|
+
{label: '打回', value: '打回'}
|
579
|
+
],
|
580
|
+
residentialAreaOptions: [],
|
581
|
+
buildOptions: [],
|
582
|
+
unitOptions: [],
|
583
|
+
planNameOptions: [],
|
584
|
+
upcomingCount: 0,
|
585
|
+
doneCount: 0,
|
586
|
+
tempSaveCount: 0,
|
587
|
+
allPlanCount: 0
|
588
|
+
}
|
589
|
+
},
|
590
|
+
ready(){
|
591
|
+
this.getAllArea()
|
592
|
+
this.getAllPlanName()
|
593
|
+
this.selfSearch()
|
594
|
+
let gen = select(this)
|
595
|
+
co(gen)
|
596
|
+
},
|
597
|
+
mounted(){
|
598
|
+
//tag
|
599
|
+
if (window.history && window.history.pushState) {
|
600
|
+
history.pushState(null, null, document.URL);
|
601
|
+
window.addEventListener('popstate', this.fun, false);//false阻止默认事件
|
602
|
+
}
|
603
|
+
},
|
604
|
+
destroyed(){
|
605
|
+
//tag
|
606
|
+
window.removeEventListener('popstate', this.fun, false);//false阻止默认事件
|
607
|
+
},
|
608
|
+
methods: {
|
609
|
+
scan(){
|
610
|
+
HostApp.__this__=this,
|
611
|
+
HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
|
612
|
+
},
|
613
|
+
getCode(){
|
614
|
+
const datapa = HostApp.getCode().data;
|
615
|
+
//tag
|
616
|
+
this.$refs.paged.$refs.cri.model.f_meter_no = datapa
|
617
|
+
|
618
|
+
},
|
619
|
+
fun () {
|
620
|
+
//tag
|
621
|
+
//tag
|
622
|
+
},
|
623
|
+
iscancel(){
|
624
|
+
this.showModal2=false
|
625
|
+
this.showModal3=false
|
626
|
+
this.planoption=[]
|
627
|
+
},
|
628
|
+
timeSet(val){
|
629
|
+
return val
|
630
|
+
},
|
631
|
+
async isok(){
|
632
|
+
if(this.planoption.length==0){
|
633
|
+
this.$showMessage("请选择计划")
|
634
|
+
return false
|
635
|
+
}
|
636
|
+
for (let i = 0; i <this.planoption.length ; i++) {
|
637
|
+
if (this.planoption[i]["selected"]==true){
|
638
|
+
this.planid=this.planoption[i].value
|
639
|
+
break
|
640
|
+
}
|
641
|
+
}
|
642
|
+
if(this.planid==''){
|
643
|
+
this.$showMessage("请选择计划")
|
644
|
+
return false
|
645
|
+
}
|
646
|
+
await this.okput()
|
647
|
+
},
|
648
|
+
async manyisok(){
|
649
|
+
if(this.planoption.length==0){
|
650
|
+
this.$showMessage("请选择计划")
|
651
|
+
return false
|
652
|
+
}
|
653
|
+
for (let i = 0; i <this.planoption.length ; i++) {
|
654
|
+
if (this.planoption[i]["selected"]==true){
|
655
|
+
this.planid=this.planoption[i].value
|
656
|
+
break
|
657
|
+
}
|
658
|
+
}
|
659
|
+
if(this.planid==''){
|
660
|
+
this.$showMessage("请选择计划")
|
661
|
+
return false
|
662
|
+
}
|
663
|
+
await this.manyokput()
|
664
|
+
},
|
665
|
+
changenull(){
|
666
|
+
this.showModal2=false
|
667
|
+
this.showModal3=false
|
668
|
+
this.planoption=[]
|
669
|
+
this.plan=''
|
670
|
+
this.check=''
|
671
|
+
},
|
672
|
+
async okput(){
|
673
|
+
let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/UpCheckPlanItem`, {data:{
|
674
|
+
condition:`i.id='`+this.needid+`'`,
|
675
|
+
f_plan_id:this.planid,
|
676
|
+
switchCheckAll:false,
|
677
|
+
checkAll:false,
|
678
|
+
f_operator:Vue.user.name
|
679
|
+
}
|
680
|
+
})
|
681
|
+
this.$showMessage("上传成功,请等待审核")
|
682
|
+
await this.changenull()
|
683
|
+
await this.getNewOrder()
|
684
|
+
},
|
685
|
+
async manyokput(){
|
686
|
+
let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/UpCheckPlanItem`, {data:{
|
687
|
+
columnName:"i.id",
|
688
|
+
condition:"1=1",
|
689
|
+
f_plan_id:this.planid,
|
690
|
+
switchCheckAll:true,
|
691
|
+
param:this.planparam,
|
692
|
+
checkAll:false,
|
693
|
+
f_operator:Vue.user.name
|
694
|
+
}
|
695
|
+
})
|
696
|
+
await this.changenull()
|
697
|
+
await this.getNewOrder()
|
698
|
+
},
|
699
|
+
async plansearch(){
|
700
|
+
this.planoption=[]
|
701
|
+
let condition= ` f_plan_year=${new Date().getFullYear()}`
|
702
|
+
if(this.check){
|
703
|
+
condition += ` and f_checker_id= '${this.check}'`
|
704
|
+
}
|
705
|
+
if(this.plan){
|
706
|
+
condition += ` and f_plan_name like '%${this.plan}%'`
|
707
|
+
}
|
708
|
+
let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/预约计划下发`, {data:{
|
709
|
+
condition:condition,
|
710
|
+
f_filialeids:this.f_filialeids,
|
711
|
+
groupitem:'',
|
712
|
+
orderitem:'id'
|
713
|
+
}})
|
714
|
+
let resoult=res.data
|
715
|
+
for (let i = 0; i < resoult.length; i++) {
|
716
|
+
this.planoption.push({label: resoult[i].f_plan_name,selected:false, value: resoult[i].id})
|
717
|
+
}
|
718
|
+
},
|
719
|
+
|
720
|
+
select(row, idx) {
|
721
|
+
this.$set('planoption[' + idx + '].selected', true)
|
722
|
+
for (let i = 0; i <this.planoption.length ; i++) {
|
723
|
+
if (i!=idx){
|
724
|
+
this.planoption[i]["selected"]=false
|
725
|
+
}
|
726
|
+
}
|
727
|
+
},
|
728
|
+
planclose(){
|
729
|
+
this.showModal2=false
|
730
|
+
this.showModal3=false
|
731
|
+
},
|
732
|
+
queryplan(val){
|
733
|
+
this.needid=val
|
734
|
+
this.showModal2 = true
|
735
|
+
},
|
736
|
+
queryplanmany(){
|
737
|
+
|
738
|
+
this.showModal3 = true
|
739
|
+
},
|
740
|
+
reload(){
|
741
|
+
// this.getAllArea()
|
742
|
+
// this.getAllPlanName()
|
743
|
+
this.selfSearch()
|
744
|
+
},
|
745
|
+
cancelReserve (idx, id) {
|
746
|
+
if(Vue.android){
|
747
|
+
let res = this.$androidUtil.bzLogic('BookingCheck', {dt: '', id: id})
|
748
|
+
this.$set('model.rows[' + idx + '].f_prearranged_date', null)
|
749
|
+
if (res.code == 200) {
|
750
|
+
this.$showMessage("取消预约成功")
|
751
|
+
}
|
752
|
+
}else {
|
753
|
+
this.$androidUtil.bzLogic('PCbookingCheck', {dt: '', id: id}).then((repanse) => {
|
754
|
+
this.$set('model.rows[' + idx + '].f_prearranged_date', null)
|
755
|
+
if (repanse.data.code == 200) {
|
756
|
+
alert("取消预约成功!")
|
757
|
+
}
|
758
|
+
})
|
759
|
+
}},
|
760
|
+
genuineReserve () {
|
761
|
+
if(Vue.android){
|
762
|
+
if (!this.f_preset_dt) {
|
763
|
+
this.$showMessage('请选择一个日期')
|
764
|
+
return
|
765
|
+
}
|
766
|
+
let pdt = this.f_preset_dt.replace('T', ' ')
|
767
|
+
let respanse = this.$androidUtil.bzLogic('BookingCheck', {id: this.model.rows[this.param].id, dt: pdt})
|
768
|
+
this.$set('model.rows[' + this.param + '].f_prearranged_date', pdt)
|
769
|
+
if(respanse.code == 200) {
|
770
|
+
this.$showMessage("预约成功!")
|
771
|
+
}
|
772
|
+
this.showModal = false
|
773
|
+
}else {
|
774
|
+
if (!this.f_preset_dt) {
|
775
|
+
alert('请选择一个日期')
|
776
|
+
return
|
777
|
+
}
|
778
|
+
let pdt = this.f_preset_dt.replace('T', ' ')
|
779
|
+
this.$androidUtil.bzLogic('PCbookingCheck', {id: this.model.rows[this.param].id, dt: pdt}).then((res) => {
|
780
|
+
this.$set('model.rows[' + this.param + '].f_prearranged_date', pdt)
|
781
|
+
if(res.data.code == 200) {
|
782
|
+
alert("预约成功!")
|
783
|
+
}
|
784
|
+
this.showModal = false
|
785
|
+
})
|
786
|
+
}
|
787
|
+
},
|
788
|
+
inspect(row) {
|
789
|
+
var _this = this
|
790
|
+
let http = new HttpResetClass()
|
791
|
+
http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: {
|
792
|
+
items: 'id',
|
793
|
+
tablename: 't_check_plan_item',
|
794
|
+
condition: `id = '${row.id}'`,
|
795
|
+
orderitem: ' id '
|
796
|
+
}}, {resolveMsg: null, rejectMsg: null}).then((getcheckplan) => {
|
797
|
+
console.log('getcheckplan=', JSON.stringify(getcheckplan))
|
798
|
+
this.getcheckplandata = getcheckplan.data[0]
|
799
|
+
if(this.getcheckplandata){
|
800
|
+
if (row.f_upload_state == '未传' || (row.f_upload_state == '已传' && row.f_state == '未检' && row.f_no_checkplan != '无计划安检' ) ) {
|
801
|
+
_this.$resetpost(`${_this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`, {data: {f_userid: row.f_userinfoid}},{resolveMsg: null,rejectMsg: null}).then((response) => {
|
802
|
+
row['f_plan_meters'] = response.data
|
803
|
+
var pardate = {
|
804
|
+
_this:_this,
|
805
|
+
title:'安全检查',
|
806
|
+
safe:true
|
807
|
+
}
|
808
|
+
_this.$dispatch('gotoson',pardate)
|
809
|
+
//tag
|
810
|
+
_this.$goto('safecheck-order-v', {f_plan_id: row.f_plan_id, item: row, role: 'inspect',parentPage:'CurrentCreate'}, 'self', _this.reload)
|
811
|
+
}).catch ((msg)=>{
|
812
|
+
this.$showMessage("网络异常,请检查网络后再试!")
|
813
|
+
})
|
814
|
+
}else{
|
815
|
+
this.$showMessage("该安检单已被上传!")
|
816
|
+
}
|
817
|
+
}else {
|
818
|
+
this.$showMessage("该用户安检单已被移除,请联系管理员确认!")
|
819
|
+
}
|
820
|
+
})
|
821
|
+
},
|
822
|
+
makeAPhoneCall(phoneNumber) {
|
823
|
+
this.$androidUtil.makeAPhoneCall(phoneNumber)
|
824
|
+
},
|
825
|
+
reserve (idx) {
|
826
|
+
this.param = idx
|
827
|
+
this.showModal = true
|
828
|
+
},
|
829
|
+
search(args) {
|
830
|
+
this.model.rows = []
|
831
|
+
this.model.search(args.condition, args.model)
|
832
|
+
},
|
833
|
+
selfSearch () {
|
834
|
+
this.getPlanCount()
|
835
|
+
let condition = ""
|
836
|
+
if (Array.isArray(this.$refs.paged.$refs.cri.model.f_residential_area) && this.$refs.paged.$refs.cri.model.f_residential_area.length >0){
|
837
|
+
condition += " and ti.f_residential_area = '"+this.$refs.paged.$refs.cri.model.f_residential_area[0]+"'"
|
838
|
+
}else if(this.$refs.paged.$refs.cri.model.f_residential_area instanceof String && this.$refs.paged.$refs.cri.model.f_residential_area){
|
839
|
+
condition += " and ti.f_residential_area = '"+this.$refs.paged.$refs.cri.model.f_residential_area+"'"
|
840
|
+
}
|
841
|
+
if(this.$refs.paged.$refs.cri.model.f_building)
|
842
|
+
condition += ` and ti.f_building = '${this.$refs.paged.$refs.cri.model.f_building}'`
|
843
|
+
if(this.$refs.paged.$refs.cri.model.f_unit)
|
844
|
+
condition += ` and ti.f_unit = '${this.$refs.paged.$refs.cri.model.f_unit}'`
|
845
|
+
if (this.planName){
|
846
|
+
condition += " and f_plan_name like '%"+this.planName +"%'"
|
847
|
+
}else {
|
848
|
+
if(this.$refs.paged.$refs.cri.model.f_plan_name)
|
849
|
+
condition += " and f_plan_name like '%"+this.$refs.paged.$refs.cri.model.f_plan_name +"%'"
|
850
|
+
}
|
851
|
+
// if(this.$refs.paged.$refs.cri.model.f_plan_year)
|
852
|
+
// condition += " and f_plan_year = '"+this.$refs.paged.$refs.cri.model.f_plan_year +"'"
|
853
|
+
// if(this.$refs.paged.$refs.cri.model.f_plan_month)
|
854
|
+
// condition += " and f_plan_month = '"+this.$refs.paged.$refs.cri.model.f_plan_month +"'"
|
855
|
+
if(this.$refs.paged.$refs.cri.model.f_userinfo_code)
|
856
|
+
condition += " and ti.f_userinfo_code like '%"+this.$refs.paged.$refs.cri.model.f_userinfo_code+"%'"
|
857
|
+
if(this.$refs.paged.$refs.cri.model.f_keyword)
|
858
|
+
condition += " and ti.f_address like '%"+this.$refs.paged.$refs.cri.model.f_keyword+"%'"
|
859
|
+
if(this.$refs.paged.$refs.cri.model.f_user_name)
|
860
|
+
condition += " and ti.f_user_name like '%"+this.$refs.paged.$refs.cri.model.f_user_name+"%'"
|
861
|
+
if(this.$refs.paged.$refs.cri.model.f_state[0])
|
862
|
+
condition += " and ti.f_state='"+this.$refs.paged.$refs.cri.model.f_state[0]+"'"
|
863
|
+
// if(this.$refs.paged.$refs.cri.model.f_last_state[0])
|
864
|
+
// condition += " and ti.f_last_check_state='"+this.$refs.paged.$refs.cri.model.f_last_state[0]+"'"
|
865
|
+
if(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
866
|
+
condition += " and ti.f_user_type='"+this.$refs.paged.$refs.cri.model.f_user_type[0]+"'"
|
867
|
+
if(this.$refs.paged.$refs.cri.model.f_meter_no)
|
868
|
+
condition += " and tm.f_meter_no like '%"+this.$refs.paged.$refs.cri.model.f_meter_no+"%'"
|
869
|
+
// if(this.$refs.paged.$refs.cri.model.f_flow_direction[0])
|
870
|
+
// condition += " and tm.f_flow_direction = '"+this.$refs.paged.$refs.cri.model.f_flow_direction[0]+"'"
|
871
|
+
if(this.$refs.paged.$refs.cri.model.f_user_phone){
|
872
|
+
condition += `and ti.f_user_phone like '%${this.$refs.paged.$refs.cri.model.f_user_phone}%'`
|
873
|
+
}
|
874
|
+
if(this.$refs.paged.$refs.cri.model.f_olduserinfo_code){
|
875
|
+
condition += `and ti.f_olduserinfo_code = '${this.$refs.paged.$refs.cri.model.f_olduserinfo_code}'`
|
876
|
+
}
|
877
|
+
if(this.$refs.paged.$refs.cri.model.f_enter_number)
|
878
|
+
condition += " and ti.f_enter_number like '%"+this.$refs.paged.$refs.cri.model.f_enter_number+"%'"
|
879
|
+
if(this.$refs.paged.$refs.cri.model.f_check_version)
|
880
|
+
condition += " and ti.f_check_version <= "+this.$refs.paged.$refs.cri.model.f_check_version
|
881
|
+
//tag
|
882
|
+
this.model.search("((f_complete = '' or f_complete = null or f_complete = '未完成') or (f_state = '未检')) and ti.f_no_checkplan = '有计划安检'" + condition)
|
883
|
+
},
|
884
|
+
getNewOrder(){
|
885
|
+
HostApp.__this__ = this
|
886
|
+
HostApp.logicWithHint({
|
887
|
+
// logic别名,key必须为logic
|
888
|
+
'logic': 'SafeCheckServiceTimeOut',
|
889
|
+
// 回调执行方法名,key必须为callback
|
890
|
+
'callback': 'javascript:HostApp.__this__.getNewOrderCallBack()',
|
891
|
+
// logic执行需要的业务参数
|
892
|
+
'data': {params: ''},
|
893
|
+
// 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
|
894
|
+
// 执行回调方法传入key为backresult
|
895
|
+
// 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
|
896
|
+
'backresult': 1
|
897
|
+
})
|
898
|
+
HostApp.logicWithHint({
|
899
|
+
// logic别名,key必须为logic
|
900
|
+
'logic': 'FreshPlanItem',
|
901
|
+
// 回调执行方法名,key必须为callback
|
902
|
+
'callback': 'javascript:HostApp.__this__.getNewOrderCallBack()',
|
903
|
+
// logic执行需要的业务参数
|
904
|
+
'data': {params: ''},
|
905
|
+
// 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
|
906
|
+
// 执行回调方法传入key为backresult
|
907
|
+
// 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
|
908
|
+
'backresult': 1
|
909
|
+
})
|
910
|
+
},
|
911
|
+
getNewOrderCallBack() {
|
912
|
+
this.selfSearch()
|
913
|
+
this.getAllArea()
|
914
|
+
this.getAllPlanName()
|
915
|
+
},
|
916
|
+
hidden() {
|
917
|
+
this.criteriaShow = !this.criteriaShow
|
918
|
+
},
|
919
|
+
getAllArea(){
|
920
|
+
this.residentialAreaOptions = []
|
921
|
+
this.buildOptions = []
|
922
|
+
this.unitOptions = []
|
923
|
+
this.$refs.paged.$refs.cri.model.f_residential_area = ''
|
924
|
+
this.$refs.paged.$refs.cri.model.f_building = ''
|
925
|
+
this.$refs.paged.$refs.cri.model.f_unit = ''
|
926
|
+
let criteria = {
|
927
|
+
items: 'f_residential_area',
|
928
|
+
tablename: 't_check_plan_item',
|
929
|
+
condition: `f_residential_area IS NOT NULL AND f_residential_area != '' AND f_state <> '已检'`,
|
930
|
+
groupitem: 'f_residential_area'
|
931
|
+
}
|
932
|
+
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
933
|
+
//tag)
|
934
|
+
if(result.code == 200){
|
935
|
+
result.data.rows.forEach(item => this.residentialAreaOptions.push({label:item.f_residential_area,value:item.f_residential_area}))
|
936
|
+
}
|
937
|
+
//tag)
|
938
|
+
},
|
939
|
+
getbuilds(f_residential_area){
|
940
|
+
//tag)
|
941
|
+
this.buildOptions = []
|
942
|
+
this.unitOptions = []
|
943
|
+
this.$refs.paged.$refs.cri.model.f_building = ''
|
944
|
+
this.$refs.paged.$refs.cri.model.f_unit = ''
|
945
|
+
if(!f_residential_area){
|
946
|
+
return
|
947
|
+
}
|
948
|
+
let criteria = {
|
949
|
+
items: 'f_building',
|
950
|
+
tablename: 't_check_plan_item',
|
951
|
+
condition: `f_building IS NOT NULL AND f_building != '' AND f_state <> '已检' AND f_residential_area = '${f_residential_area}'`,
|
952
|
+
groupitem: 'f_building order by f_building+0'
|
953
|
+
}
|
954
|
+
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
955
|
+
if(result.code == 200){
|
956
|
+
result.data.rows.forEach(item => this.buildOptions.push({label:item.f_building,value:item.f_building}))
|
957
|
+
}
|
958
|
+
this.buildOptions.sort((a,b)=>{
|
959
|
+
return Number(a.label)- Number(b.label)
|
960
|
+
})
|
961
|
+
//tag)
|
962
|
+
},
|
963
|
+
getUnits(f_building){
|
964
|
+
f_building = f_building[0]
|
965
|
+
//tag)
|
966
|
+
this.unitOptions = []
|
967
|
+
this.$refs.paged.$refs.cri.model.f_unit = ''
|
968
|
+
if(!f_building){
|
969
|
+
return
|
970
|
+
}
|
971
|
+
let criteria = {
|
972
|
+
items: 'f_unit',
|
973
|
+
tablename: 't_check_plan_item',
|
974
|
+
condition: `f_unit IS NOT NULL AND f_unit != '' AND f_state <> '已检' AND f_residential_area = '${this.$refs.paged.$refs.cri.model.f_residential_area}' AND f_building = '${f_building}'`,
|
975
|
+
groupitem: 'f_unit'
|
976
|
+
}
|
977
|
+
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
978
|
+
if(result.code == 200){
|
979
|
+
result.data.rows.forEach(item => this.unitOptions.push({label:item.f_unit,value:item.f_unit}))
|
980
|
+
}
|
981
|
+
this.unitOptions.sort((a,b)=>{
|
982
|
+
return Number(a.label)- Number(b.label)
|
983
|
+
})
|
984
|
+
},
|
985
|
+
getPlanCount(){
|
986
|
+
this.upcomingCount = 0
|
987
|
+
this.tempSaveCount = 0
|
988
|
+
this.doneCount = 0
|
989
|
+
this.allPlanCount = 0
|
990
|
+
let criteria = {
|
991
|
+
items: 'count(id) count',
|
992
|
+
tablename: 't_check_plan_item',
|
993
|
+
condition: `f_state = '未检'`,
|
994
|
+
groupitem: 'f_state'
|
995
|
+
}
|
996
|
+
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
997
|
+
if(result.code && result.code == 200){
|
998
|
+
if(result.data.rows[0] && !isNaN(result.data.rows[0].count)) {
|
999
|
+
this.upcomingCount = result.data.rows[0].count
|
1000
|
+
}
|
1001
|
+
}
|
1002
|
+
criteria = {
|
1003
|
+
items: 'count(id) count',
|
1004
|
+
tablename: 't_check_plan_item',
|
1005
|
+
condition: `(f_complete = '' or f_complete is null or f_complete = '未完成') AND f_state = '已检'`,
|
1006
|
+
groupitem: 'f_state'
|
1007
|
+
}
|
1008
|
+
result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
1009
|
+
if(result.code && result.code == 200){
|
1010
|
+
if(result.data.rows[0] && !isNaN(result.data.rows[0].count)){
|
1011
|
+
this.tempSaveCount = result.data.rows[0].count
|
1012
|
+
}
|
1013
|
+
}
|
1014
|
+
criteria = {
|
1015
|
+
items: 'count(id) count',
|
1016
|
+
tablename: 't_check_plan_item',
|
1017
|
+
condition: `f_complete = '已完成' AND f_state = '已检'`,
|
1018
|
+
groupitem: 'f_state'
|
1019
|
+
}
|
1020
|
+
result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
1021
|
+
if(result.code && result.code == 200){
|
1022
|
+
if(result.data.rows[0] && !isNaN(result.data.rows[0].count)){
|
1023
|
+
this.doneCount = result.data.rows[0].count
|
1024
|
+
}
|
1025
|
+
}
|
1026
|
+
this.allPlanCount = this.upcomingCount + this.tempSaveCount + this.doneCount
|
1027
|
+
|
1028
|
+
//tag
|
1029
|
+
//tag
|
1030
|
+
//tag
|
1031
|
+
//tag
|
1032
|
+
},
|
1033
|
+
getAllPlanName(){
|
1034
|
+
this.planNameOptions = []
|
1035
|
+
this.$refs.paged.$refs.cri.model.f_plan_name = ''
|
1036
|
+
let criteria = {
|
1037
|
+
items: 'f_plan_name',
|
1038
|
+
tablename: 't_check_plan',
|
1039
|
+
condition: `f_plan_name IS NOT NULL AND f_plan_name != ''`,
|
1040
|
+
groupitem: 'f_plan_name'
|
1041
|
+
}
|
1042
|
+
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
1043
|
+
//tag)
|
1044
|
+
if(result.code == 200){
|
1045
|
+
result.data.rows.forEach(item => this.planNameOptions.push({label:item.f_plan_name,value:item.f_plan_name}))
|
1046
|
+
}
|
1047
|
+
//tag)
|
1048
|
+
},
|
1049
|
+
setPlanParam(detailsType, event) {
|
1050
|
+
if (event.srcElement.checked) {
|
1051
|
+
this.planparam.push(detailsType)
|
1052
|
+
//tag
|
1053
|
+
} else {
|
1054
|
+
if(this.planparam.length>0){
|
1055
|
+
let planid= this.planparam.findIndex((value) => {
|
1056
|
+
return value === detailsType
|
1057
|
+
})
|
1058
|
+
this.planparam.splice(planid, 1)
|
1059
|
+
//tag
|
1060
|
+
|
1061
|
+
}
|
1062
|
+
|
1063
|
+
}
|
1064
|
+
}
|
1065
|
+
}
|
1066
|
+
}
|
1067
|
+
</script>
|