safecheck-client 3.0.34-49 → 3.0.34-50
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 +3 -3
- 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/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/CheckPlanSelect.vue +704 -0
- 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/QRCode/QRCodeBinding.vue +294 -290
- 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/StationMaster.vue +12 -12
- 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/AddPlanItem.vue +4 -0
- package/src/components/rongcheng/AspiratedUserInfo.vue +1 -1
- package/src/components/rongcheng/CheckSearchUser.vue +40 -14
- package/src/components/rongcheng/PhoneDevicesInfo.vue +16 -1
- package/src/components/rongcheng/SafecheckOrderV.vue +12 -3
- package/src/components/rongcheng/SafecheckOrderVCli.vue +9 -0
- 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/siyang/pc/CheckBookSearchArea.vue +645 -0
- package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -0
- package/src/filiale/siyang/pc/CheckSearchUser.vue +982 -0
- package/src/filiale/siyang/pc/HiddenSituation.vue +167 -0
- package/src/filiale/siyang/pc/checkPlanList.vue +367 -0
- package/src/filiale/siyang/pc/checkUserList.vue +22 -18
- package/src/filiale/siyang/pc.js +21 -16
- package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
- package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +720 -735
- package/src/filiale/weinan/pc/checkUserList.vue +697 -712
- 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 +301 -300
- 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
@@ -0,0 +1,704 @@
|
|
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
|
+
<div class="col-xs-4">
|
75
|
+
<img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
76
|
+
<label for="f_plan_name" class="font text-left">计划名称:</label>
|
77
|
+
</div>
|
78
|
+
<v-select
|
79
|
+
id="f_plan_name"
|
80
|
+
:value.sync="model.f_plan_name"
|
81
|
+
class="input-font"
|
82
|
+
:options='$parent.$parent.planNameOptions'
|
83
|
+
placeholder='计划名称'
|
84
|
+
:width="'60%'"
|
85
|
+
v-model="model.f_plan_name"
|
86
|
+
condition="f_plan_name = '{}'"
|
87
|
+
close-on-select clear-button>
|
88
|
+
</v-select>
|
89
|
+
</div>
|
90
|
+
<div class="row app-row">
|
91
|
+
<div class="col-xs-4">
|
92
|
+
<img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
93
|
+
<label for="f_plan_name" class="font text-left">计划类型:</label>
|
94
|
+
</div>
|
95
|
+
<v-select
|
96
|
+
id="f_plan_name"
|
97
|
+
:value.sync="model.f_safecheck_type"
|
98
|
+
class="input-font"
|
99
|
+
:options='$parent.$parent.safecheckTypes'
|
100
|
+
placeholder='计划类型'
|
101
|
+
:width="'60%'"
|
102
|
+
v-model="model.f_safecheck_type"
|
103
|
+
condition="f_safecheck_type = '{}'"
|
104
|
+
close-on-select clear-button>
|
105
|
+
</v-select>
|
106
|
+
</div>
|
107
|
+
<div class="row app-row">
|
108
|
+
<div class="col-xs-4">
|
109
|
+
<img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
110
|
+
<label for="f_plan_name" class="font text-left">计划时间:</label>
|
111
|
+
</div>
|
112
|
+
<datepicker id="f_start_date" style="width: 30%;"
|
113
|
+
:value.sync="model.f_start_date"
|
114
|
+
:disabled-days-of-Week="[]"
|
115
|
+
v-model="model.f_start_date"
|
116
|
+
class="input-font"
|
117
|
+
:format="'yyyy-MM-dd 00:00:00'" condition="f_issue_time >= '{}'"
|
118
|
+
readonly="readonly">
|
119
|
+
</datepicker>-
|
120
|
+
<datepicker id="f_end_date" style="width: 30%;"
|
121
|
+
:value.sync="model.f_end_date"
|
122
|
+
:disabled-days-of-Week="[]"
|
123
|
+
v-model="model.f_end_date"
|
124
|
+
class="input-font"
|
125
|
+
:format="'yyyy-MM-dd 23:59:00'" condition="f_issue_time <= '{}'"
|
126
|
+
readonly="readonly">
|
127
|
+
</datepicker>
|
128
|
+
</div>
|
129
|
+
<div class="row text-center" style="margin-top: 20px;">
|
130
|
+
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;" @click="$parent.$parent.selfSearch">查询</button>
|
131
|
+
<img @click="$parent.$parent.getNewOrder" src="../../assets/shuaxindaiban1.png" style="float: right;margin-right: 3%;width: 40px;padding: 5px; float:right">
|
132
|
+
</div>
|
133
|
+
<div class="col-sm-12">
|
134
|
+
</div>
|
135
|
+
<div style="height:30px;"></div>
|
136
|
+
</form>
|
137
|
+
</div>
|
138
|
+
</criteria>
|
139
|
+
<list :model="model" partial='list'>
|
140
|
+
<div partial>
|
141
|
+
<div class="auto app-text" style="margin-top: 5px;">
|
142
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
143
|
+
<div class="panel-body panel-self">
|
144
|
+
<div class="col-xs-12">
|
145
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户编号:</b></p>
|
146
|
+
<p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{ row.f_userinfo_code }}</p>
|
147
|
+
</div>
|
148
|
+
<div class="col-xs-12">
|
149
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户名称:</b></p>
|
150
|
+
<p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_user_name }}</p>
|
151
|
+
</div>
|
152
|
+
<div class="col-xs-6">
|
153
|
+
<p class="panel-title col-xs-5 text-left font"><b>用户类型:</b></p>
|
154
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_user_type }}
|
155
|
+
</p>
|
156
|
+
</div>
|
157
|
+
</div>
|
158
|
+
</div>
|
159
|
+
</div>
|
160
|
+
</div>
|
161
|
+
</list>
|
162
|
+
</criteria-paged>
|
163
|
+
</div>
|
164
|
+
</template>
|
165
|
+
<script>
|
166
|
+
import LocalPagedList from '../../plugins/LocalPagedList'
|
167
|
+
import Vue from 'vue'
|
168
|
+
import { PagedList,HttpResetClass } from 'vue-client'
|
169
|
+
import * as Util from '../Util'
|
170
|
+
import co from 'co'
|
171
|
+
let select = function * (self) {
|
172
|
+
let http = new HttpResetClass()
|
173
|
+
http.load('POST', `${self.$androidUtil.getProxyUrl()}/rs/search`, {
|
174
|
+
source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
|
175
|
+
userid: Vue.user.id
|
176
|
+
}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
177
|
+
//tag
|
178
|
+
self.checkers.push({label:'全部',value:''})
|
179
|
+
res.data.forEach((checker)=>{
|
180
|
+
self.checkers.push({label:checker.name,value:checker.id})
|
181
|
+
})
|
182
|
+
})
|
183
|
+
}
|
184
|
+
export default {
|
185
|
+
title: '无计划安检查询',
|
186
|
+
props: ['planName'],
|
187
|
+
data() {
|
188
|
+
return {
|
189
|
+
safecheckTypes:[{label: '请选择', value: ''},{label: '年度安检', value: '年度安检'},{label: '抽检', value: '抽检'}],
|
190
|
+
f_filialeids:'('+Vue.user.orgid+')',
|
191
|
+
//f_filialeids:'(305)',
|
192
|
+
planparam:[],
|
193
|
+
check:'',
|
194
|
+
plan:'',
|
195
|
+
planid:'',
|
196
|
+
model:Vue.android? new LocalPagedList('androidGetuserinfo',20,{condition:'this.condition'}): new PagedList( 'AndroidRest/rs/sql/androidGetuserinfo',20,{condition:'this.condition'}),
|
197
|
+
showModal: false,
|
198
|
+
showModal2:false,
|
199
|
+
showModal3:false,
|
200
|
+
needid:'',
|
201
|
+
criteriaShow: false,
|
202
|
+
planoption:[],
|
203
|
+
condition:'',
|
204
|
+
checkers:[],
|
205
|
+
param: null,
|
206
|
+
f_preset_dt : Util.to3339TimeString(),
|
207
|
+
flow_direction:[
|
208
|
+
{label: '请选择挂表方式', value: ''},
|
209
|
+
{label: '左表', value: '左表'},
|
210
|
+
{label: '右表', value: '右表'}
|
211
|
+
],
|
212
|
+
check_states: [
|
213
|
+
{label: '请选择安检状态', value: ''},
|
214
|
+
{label: '未检', value: '未检'},
|
215
|
+
{label: '临时保存', value: '已检'},
|
216
|
+
],
|
217
|
+
last_check_states: [
|
218
|
+
{label: '请选择上次安检状态', value: ''},
|
219
|
+
{label: '入户', value: '入户'},
|
220
|
+
{label: '拒检', value: '拒检'},
|
221
|
+
{label: '到访不遇', value: '到访不遇'},
|
222
|
+
{label: '未使用天然气', value: '未使用天然气'}
|
223
|
+
],
|
224
|
+
upload_states: [
|
225
|
+
{label: '请选择上传状态', value: ''},
|
226
|
+
{label: '未传', value: '未传'},
|
227
|
+
{label: '已传', value: '已传'}
|
228
|
+
],
|
229
|
+
user_types: [
|
230
|
+
{label: '请选择用户类型', value: ''},
|
231
|
+
{label: '民用', value: '民用'},
|
232
|
+
{label: '非民用', value: '非民用'},
|
233
|
+
],
|
234
|
+
verify_state: [
|
235
|
+
{label: '请选择审核状态', value: ''},
|
236
|
+
{label: '未审核', value: '未审核'},
|
237
|
+
{label: '打回', value: '打回'}
|
238
|
+
],
|
239
|
+
residentialAreaOptions: [],
|
240
|
+
buildOptions: [],
|
241
|
+
unitOptions: [],
|
242
|
+
planNameOptions: [],
|
243
|
+
upcomingCount: 0,
|
244
|
+
doneCount: 0,
|
245
|
+
tempSaveCount: 0,
|
246
|
+
allPlanCount: 0
|
247
|
+
}
|
248
|
+
},
|
249
|
+
ready(){
|
250
|
+
this.getAllArea()
|
251
|
+
this.getAllPlanName()
|
252
|
+
this.selfSearch()
|
253
|
+
let gen = select(this)
|
254
|
+
co(gen)
|
255
|
+
},
|
256
|
+
mounted(){
|
257
|
+
//tag
|
258
|
+
if (window.history && window.history.pushState) {
|
259
|
+
history.pushState(null, null, document.URL);
|
260
|
+
window.addEventListener('popstate', this.fun, false);//false阻止默认事件
|
261
|
+
}
|
262
|
+
},
|
263
|
+
destroyed(){
|
264
|
+
//tag
|
265
|
+
window.removeEventListener('popstate', this.fun, false);//false阻止默认事件
|
266
|
+
},
|
267
|
+
methods: {
|
268
|
+
scan(){
|
269
|
+
HostApp.__this__=this,
|
270
|
+
HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
|
271
|
+
},
|
272
|
+
getCode(){
|
273
|
+
const datapa = HostApp.getCode().data;
|
274
|
+
//tag
|
275
|
+
this.$refs.paged.$refs.cri.model.f_meter_no = datapa
|
276
|
+
|
277
|
+
},
|
278
|
+
fun () {
|
279
|
+
//tag
|
280
|
+
//tag
|
281
|
+
},
|
282
|
+
iscancel(){
|
283
|
+
this.showModal2=false
|
284
|
+
this.showModal3=false
|
285
|
+
this.planoption=[]
|
286
|
+
},
|
287
|
+
timeSet(val){
|
288
|
+
return val
|
289
|
+
},
|
290
|
+
async isok(){
|
291
|
+
if(this.planoption.length==0){
|
292
|
+
this.$showMessage("请选择计划")
|
293
|
+
return false
|
294
|
+
}
|
295
|
+
for (let i = 0; i <this.planoption.length ; i++) {
|
296
|
+
if (this.planoption[i]["selected"]==true){
|
297
|
+
this.planid=this.planoption[i].value
|
298
|
+
break
|
299
|
+
}
|
300
|
+
}
|
301
|
+
if(this.planid==''){
|
302
|
+
this.$showMessage("请选择计划")
|
303
|
+
return false
|
304
|
+
}
|
305
|
+
await this.okput()
|
306
|
+
},
|
307
|
+
async manyisok(){
|
308
|
+
if(this.planoption.length==0){
|
309
|
+
this.$showMessage("请选择计划")
|
310
|
+
return false
|
311
|
+
}
|
312
|
+
for (let i = 0; i <this.planoption.length ; i++) {
|
313
|
+
if (this.planoption[i]["selected"]==true){
|
314
|
+
this.planid=this.planoption[i].value
|
315
|
+
break
|
316
|
+
}
|
317
|
+
}
|
318
|
+
if(this.planid==''){
|
319
|
+
this.$showMessage("请选择计划")
|
320
|
+
return false
|
321
|
+
}
|
322
|
+
await this.manyokput()
|
323
|
+
},
|
324
|
+
changenull(){
|
325
|
+
this.showModal2=false
|
326
|
+
this.showModal3=false
|
327
|
+
this.planoption=[]
|
328
|
+
this.plan=''
|
329
|
+
this.check=''
|
330
|
+
},
|
331
|
+
async okput(){
|
332
|
+
let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/UpCheckPlanItem`, {data:{
|
333
|
+
condition:`i.id='`+this.needid+`'`,
|
334
|
+
f_plan_id:this.planid,
|
335
|
+
switchCheckAll:false,
|
336
|
+
checkAll:false,
|
337
|
+
f_operator:Vue.user.name
|
338
|
+
}
|
339
|
+
})
|
340
|
+
this.$showMessage("上传成功,请等待审核")
|
341
|
+
await this.changenull()
|
342
|
+
await this.getNewOrder()
|
343
|
+
},
|
344
|
+
async manyokput(){
|
345
|
+
let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/UpCheckPlanItem`, {data:{
|
346
|
+
columnName:"i.id",
|
347
|
+
condition:"1=1",
|
348
|
+
f_plan_id:this.planid,
|
349
|
+
switchCheckAll:true,
|
350
|
+
param:this.planparam,
|
351
|
+
checkAll:false,
|
352
|
+
f_operator:Vue.user.name
|
353
|
+
}
|
354
|
+
})
|
355
|
+
await this.changenull()
|
356
|
+
await this.getNewOrder()
|
357
|
+
},
|
358
|
+
async plansearch(){
|
359
|
+
this.planoption=[]
|
360
|
+
let condition= ` f_plan_year=${new Date().getFullYear()}`
|
361
|
+
if(this.check){
|
362
|
+
condition += ` and f_checker_id= '${this.check}'`
|
363
|
+
}
|
364
|
+
if(this.plan){
|
365
|
+
condition += ` and f_plan_name like '%${this.plan}%'`
|
366
|
+
}
|
367
|
+
let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/预约计划下发`, {data:{
|
368
|
+
condition:condition,
|
369
|
+
f_filialeids:this.f_filialeids,
|
370
|
+
groupitem:'',
|
371
|
+
orderitem:'id'
|
372
|
+
}})
|
373
|
+
let resoult=res.data
|
374
|
+
for (let i = 0; i < resoult.length; i++) {
|
375
|
+
this.planoption.push({label: resoult[i].f_plan_name,selected:false, value: resoult[i].id})
|
376
|
+
}
|
377
|
+
},
|
378
|
+
|
379
|
+
select(row, idx) {
|
380
|
+
this.$set('planoption[' + idx + '].selected', true)
|
381
|
+
for (let i = 0; i <this.planoption.length ; i++) {
|
382
|
+
if (i!=idx){
|
383
|
+
this.planoption[i]["selected"]=false
|
384
|
+
}
|
385
|
+
}
|
386
|
+
},
|
387
|
+
planclose(){
|
388
|
+
this.showModal2=false
|
389
|
+
this.showModal3=false
|
390
|
+
},
|
391
|
+
queryplan(val){
|
392
|
+
this.needid=val
|
393
|
+
this.showModal2 = true
|
394
|
+
},
|
395
|
+
queryplanmany(){
|
396
|
+
|
397
|
+
this.showModal3 = true
|
398
|
+
},
|
399
|
+
reload(){
|
400
|
+
// this.getAllArea()
|
401
|
+
// this.getAllPlanName()
|
402
|
+
this.selfSearch()
|
403
|
+
},
|
404
|
+
cancelReserve (idx, id) {
|
405
|
+
if(Vue.android){
|
406
|
+
let res = this.$androidUtil.bzLogic('BookingCheck', {dt: '', id: id})
|
407
|
+
this.$set('model.rows[' + idx + '].f_prearranged_date', null)
|
408
|
+
if (res.code == 200) {
|
409
|
+
this.$showMessage("取消预约成功")
|
410
|
+
}
|
411
|
+
}else {
|
412
|
+
this.$androidUtil.bzLogic('PCbookingCheck', {dt: '', id: id}).then((repanse) => {
|
413
|
+
this.$set('model.rows[' + idx + '].f_prearranged_date', null)
|
414
|
+
if (repanse.data.code == 200) {
|
415
|
+
alert("取消预约成功!")
|
416
|
+
}
|
417
|
+
})
|
418
|
+
}},
|
419
|
+
genuineReserve () {
|
420
|
+
if(Vue.android){
|
421
|
+
if (!this.f_preset_dt) {
|
422
|
+
this.$showMessage('请选择一个日期')
|
423
|
+
return
|
424
|
+
}
|
425
|
+
let pdt = this.f_preset_dt.replace('T', ' ')
|
426
|
+
let respanse = this.$androidUtil.bzLogic('BookingCheck', {id: this.model.rows[this.param].id, dt: pdt})
|
427
|
+
this.$set('model.rows[' + this.param + '].f_prearranged_date', pdt)
|
428
|
+
if(respanse.code == 200) {
|
429
|
+
this.$showMessage("预约成功!")
|
430
|
+
}
|
431
|
+
this.showModal = false
|
432
|
+
}else {
|
433
|
+
if (!this.f_preset_dt) {
|
434
|
+
alert('请选择一个日期')
|
435
|
+
return
|
436
|
+
}
|
437
|
+
let pdt = this.f_preset_dt.replace('T', ' ')
|
438
|
+
this.$androidUtil.bzLogic('PCbookingCheck', {id: this.model.rows[this.param].id, dt: pdt}).then((res) => {
|
439
|
+
this.$set('model.rows[' + this.param + '].f_prearranged_date', pdt)
|
440
|
+
if(res.data.code == 200) {
|
441
|
+
alert("预约成功!")
|
442
|
+
}
|
443
|
+
this.showModal = false
|
444
|
+
})
|
445
|
+
}
|
446
|
+
},
|
447
|
+
inspect(row) {
|
448
|
+
var _this = this
|
449
|
+
let http = new HttpResetClass()
|
450
|
+
http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: {
|
451
|
+
items: 'id',
|
452
|
+
tablename: 't_check_plan_item',
|
453
|
+
condition: `id = '${row.id}'`,
|
454
|
+
orderitem: ' id '
|
455
|
+
}}, {resolveMsg: null, rejectMsg: null}).then((getcheckplan) => {
|
456
|
+
console.log('getcheckplan=', JSON.stringify(getcheckplan))
|
457
|
+
this.getcheckplandata = getcheckplan.data[0]
|
458
|
+
if(this.getcheckplandata){
|
459
|
+
if (row.f_upload_state == '未传' || (row.f_upload_state == '已传' && row.f_state == '未检' && row.f_no_checkplan != '无计划安检' ) ) {
|
460
|
+
_this.$resetpost(`${_this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`, {data: {f_userid: row.f_userinfoid}},{resolveMsg: null,rejectMsg: null}).then((response) => {
|
461
|
+
row['f_plan_meters'] = response.data
|
462
|
+
var pardate = {
|
463
|
+
_this:_this,
|
464
|
+
title:'安全检查',
|
465
|
+
safe:true
|
466
|
+
}
|
467
|
+
_this.$dispatch('gotoson',pardate)
|
468
|
+
//tag
|
469
|
+
_this.$goto('safecheck-order-v', {f_plan_id: row.f_plan_id, item: row, role: 'inspect',parentPage:'CurrentCreate'}, 'self', _this.reload)
|
470
|
+
}).catch ((msg)=>{
|
471
|
+
this.$showMessage("网络异常,请检查网络后再试!")
|
472
|
+
})
|
473
|
+
}else{
|
474
|
+
this.$showMessage("该安检单已被上传!")
|
475
|
+
}
|
476
|
+
}else {
|
477
|
+
this.$showMessage("该用户安检单已被移除,请联系管理员确认!")
|
478
|
+
}
|
479
|
+
})
|
480
|
+
},
|
481
|
+
reserve (idx) {
|
482
|
+
this.param = idx
|
483
|
+
this.showModal = true
|
484
|
+
},
|
485
|
+
search(args) {
|
486
|
+
this.model.rows = []
|
487
|
+
this.model.search(args.condition, args.model)
|
488
|
+
},
|
489
|
+
selfSearch () {
|
490
|
+
this.getPlanCount()
|
491
|
+
let condition = ""
|
492
|
+
if (Array.isArray(this.$refs.paged.$refs.cri.model.f_residential_area) && this.$refs.paged.$refs.cri.model.f_residential_area.length >0){
|
493
|
+
condition += " and ti.f_residential_area = '"+this.$refs.paged.$refs.cri.model.f_residential_area[0]+"'"
|
494
|
+
}else if(this.$refs.paged.$refs.cri.model.f_residential_area instanceof String && this.$refs.paged.$refs.cri.model.f_residential_area){
|
495
|
+
condition += " and ti.f_residential_area = '"+this.$refs.paged.$refs.cri.model.f_residential_area+"'"
|
496
|
+
}
|
497
|
+
if(this.$refs.paged.$refs.cri.model.f_building)
|
498
|
+
condition += ` and ti.f_building = '${this.$refs.paged.$refs.cri.model.f_building}'`
|
499
|
+
if(this.$refs.paged.$refs.cri.model.f_unit)
|
500
|
+
condition += ` and ti.f_unit = '${this.$refs.paged.$refs.cri.model.f_unit}'`
|
501
|
+
if (this.planName){
|
502
|
+
condition += " and f_plan_name like '%"+this.planName +"%'"
|
503
|
+
}else {
|
504
|
+
if(this.$refs.paged.$refs.cri.model.f_plan_name)
|
505
|
+
condition += " and f_plan_name like '%"+this.$refs.paged.$refs.cri.model.f_plan_name +"%'"
|
506
|
+
}
|
507
|
+
// if(this.$refs.paged.$refs.cri.model.f_plan_year)
|
508
|
+
// condition += " and f_plan_year = '"+this.$refs.paged.$refs.cri.model.f_plan_year +"'"
|
509
|
+
// if(this.$refs.paged.$refs.cri.model.f_plan_month)
|
510
|
+
// condition += " and f_plan_month = '"+this.$refs.paged.$refs.cri.model.f_plan_month +"'"
|
511
|
+
if(this.$refs.paged.$refs.cri.model.f_userinfo_code)
|
512
|
+
condition += " and ti.f_userinfo_code like '%"+this.$refs.paged.$refs.cri.model.f_userinfo_code+"%'"
|
513
|
+
if(this.$refs.paged.$refs.cri.model.f_keyword)
|
514
|
+
condition += " and ti.f_address like '%"+this.$refs.paged.$refs.cri.model.f_keyword+"%'"
|
515
|
+
if(this.$refs.paged.$refs.cri.model.f_user_name)
|
516
|
+
condition += " and ti.f_user_name like '%"+this.$refs.paged.$refs.cri.model.f_user_name+"%'"
|
517
|
+
if(this.$refs.paged.$refs.cri.model.f_state[0])
|
518
|
+
condition += " and ti.f_state='"+this.$refs.paged.$refs.cri.model.f_state[0]+"'"
|
519
|
+
// if(this.$refs.paged.$refs.cri.model.f_last_state[0])
|
520
|
+
// condition += " and ti.f_last_check_state='"+this.$refs.paged.$refs.cri.model.f_last_state[0]+"'"
|
521
|
+
if(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
522
|
+
condition += " and ti.f_user_type='"+this.$refs.paged.$refs.cri.model.f_user_type[0]+"'"
|
523
|
+
if(this.$refs.paged.$refs.cri.model.f_meter_no)
|
524
|
+
condition += " and tm.f_meter_no like '%"+this.$refs.paged.$refs.cri.model.f_meter_no+"%'"
|
525
|
+
// if(this.$refs.paged.$refs.cri.model.f_flow_direction[0])
|
526
|
+
// condition += " and tm.f_flow_direction = '"+this.$refs.paged.$refs.cri.model.f_flow_direction[0]+"'"
|
527
|
+
if(this.$refs.paged.$refs.cri.model.f_user_phone){
|
528
|
+
condition += `and ti.f_user_phone like '%${this.$refs.paged.$refs.cri.model.f_user_phone}%'`
|
529
|
+
}
|
530
|
+
if(this.$refs.paged.$refs.cri.model.f_enter_number)
|
531
|
+
condition += " and ti.f_enter_number like '%"+this.$refs.paged.$refs.cri.model.f_enter_number+"%'"
|
532
|
+
if(this.$refs.paged.$refs.cri.model.f_check_version)
|
533
|
+
condition += " and ti.f_check_version <= "+this.$refs.paged.$refs.cri.model.f_check_version
|
534
|
+
//tag
|
535
|
+
this.model.search("((f_complete = '' or f_complete = null or f_complete = '未完成') or (f_state = '未检')) and ti.f_no_checkplan = '有计划安检'" + condition)
|
536
|
+
},
|
537
|
+
getNewOrder(){
|
538
|
+
HostApp.__this__ = this
|
539
|
+
HostApp.logicWithHint({
|
540
|
+
// logic别名,key必须为logic
|
541
|
+
'logic': 'SafeCheckServiceTimeOut',
|
542
|
+
// 回调执行方法名,key必须为callback
|
543
|
+
'callback': 'javascript:HostApp.__this__.getNewOrderCallBack()',
|
544
|
+
// logic执行需要的业务参数
|
545
|
+
'data': {params: ''},
|
546
|
+
// 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
|
547
|
+
// 执行回调方法传入key为backresult
|
548
|
+
// 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
|
549
|
+
'backresult': 1
|
550
|
+
})
|
551
|
+
HostApp.logicWithHint({
|
552
|
+
// logic别名,key必须为logic
|
553
|
+
'logic': 'FreshPlanItem',
|
554
|
+
// 回调执行方法名,key必须为callback
|
555
|
+
'callback': 'javascript:HostApp.__this__.getNewOrderCallBack()',
|
556
|
+
// logic执行需要的业务参数
|
557
|
+
'data': {params: ''},
|
558
|
+
// 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
|
559
|
+
// 执行回调方法传入key为backresult
|
560
|
+
// 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
|
561
|
+
'backresult': 1
|
562
|
+
})
|
563
|
+
},
|
564
|
+
getNewOrderCallBack() {
|
565
|
+
this.selfSearch()
|
566
|
+
this.getAllArea()
|
567
|
+
this.getAllPlanName()
|
568
|
+
},
|
569
|
+
hidden() {
|
570
|
+
this.criteriaShow = !this.criteriaShow
|
571
|
+
},
|
572
|
+
getAllArea(){
|
573
|
+
this.residentialAreaOptions = []
|
574
|
+
this.buildOptions = []
|
575
|
+
this.unitOptions = []
|
576
|
+
this.$refs.paged.$refs.cri.model.f_residential_area = ''
|
577
|
+
this.$refs.paged.$refs.cri.model.f_building = ''
|
578
|
+
this.$refs.paged.$refs.cri.model.f_unit = ''
|
579
|
+
let criteria = {
|
580
|
+
items: 'f_residential_area',
|
581
|
+
tablename: 't_check_plan_item',
|
582
|
+
condition: `f_residential_area IS NOT NULL AND f_residential_area != '' AND f_state <> '已检'`,
|
583
|
+
groupitem: 'f_residential_area'
|
584
|
+
}
|
585
|
+
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
586
|
+
//tag)
|
587
|
+
if(result.code == 200){
|
588
|
+
result.data.rows.forEach(item => this.residentialAreaOptions.push({label:item.f_residential_area,value:item.f_residential_area}))
|
589
|
+
}
|
590
|
+
//tag)
|
591
|
+
},
|
592
|
+
getbuilds(f_residential_area){
|
593
|
+
//tag)
|
594
|
+
this.buildOptions = []
|
595
|
+
this.unitOptions = []
|
596
|
+
this.$refs.paged.$refs.cri.model.f_building = ''
|
597
|
+
this.$refs.paged.$refs.cri.model.f_unit = ''
|
598
|
+
if(!f_residential_area){
|
599
|
+
return
|
600
|
+
}
|
601
|
+
let criteria = {
|
602
|
+
items: 'f_building',
|
603
|
+
tablename: 't_check_plan_item',
|
604
|
+
condition: `f_building IS NOT NULL AND f_building != '' AND f_state <> '已检' AND f_residential_area = '${f_residential_area}'`,
|
605
|
+
groupitem: 'f_building order by f_building+0'
|
606
|
+
}
|
607
|
+
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
608
|
+
if(result.code == 200){
|
609
|
+
result.data.rows.forEach(item => this.buildOptions.push({label:item.f_building,value:item.f_building}))
|
610
|
+
}
|
611
|
+
this.buildOptions.sort((a,b)=>{
|
612
|
+
return Number(a.label)- Number(b.label)
|
613
|
+
})
|
614
|
+
//tag)
|
615
|
+
},
|
616
|
+
getUnits(f_building){
|
617
|
+
f_building = f_building[0]
|
618
|
+
//tag)
|
619
|
+
this.unitOptions = []
|
620
|
+
this.$refs.paged.$refs.cri.model.f_unit = ''
|
621
|
+
if(!f_building){
|
622
|
+
return
|
623
|
+
}
|
624
|
+
let criteria = {
|
625
|
+
items: 'f_unit',
|
626
|
+
tablename: 't_check_plan_item',
|
627
|
+
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}'`,
|
628
|
+
groupitem: 'f_unit'
|
629
|
+
}
|
630
|
+
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
631
|
+
if(result.code == 200){
|
632
|
+
result.data.rows.forEach(item => this.unitOptions.push({label:item.f_unit,value:item.f_unit}))
|
633
|
+
}
|
634
|
+
this.unitOptions.sort((a,b)=>{
|
635
|
+
return Number(a.label)- Number(b.label)
|
636
|
+
})
|
637
|
+
},
|
638
|
+
getPlanCount(){
|
639
|
+
this.upcomingCount = 0
|
640
|
+
this.tempSaveCount = 0
|
641
|
+
this.doneCount = 0
|
642
|
+
this.allPlanCount = 0
|
643
|
+
let criteria = {
|
644
|
+
items: 'count(id) count',
|
645
|
+
tablename: 't_check_plan_item',
|
646
|
+
condition: `f_state = '未检'`,
|
647
|
+
groupitem: 'f_state'
|
648
|
+
}
|
649
|
+
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
650
|
+
if(result.code && result.code == 200){
|
651
|
+
if(result.data.rows[0] && !isNaN(result.data.rows[0].count)) {
|
652
|
+
this.upcomingCount = result.data.rows[0].count
|
653
|
+
}
|
654
|
+
}
|
655
|
+
criteria = {
|
656
|
+
items: 'count(id) count',
|
657
|
+
tablename: 't_check_plan_item',
|
658
|
+
condition: `(f_complete = '' or f_complete is null or f_complete = '未完成') AND f_state = '已检'`,
|
659
|
+
groupitem: 'f_state'
|
660
|
+
}
|
661
|
+
result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
662
|
+
if(result.code && result.code == 200){
|
663
|
+
if(result.data.rows[0] && !isNaN(result.data.rows[0].count)){
|
664
|
+
this.tempSaveCount = result.data.rows[0].count
|
665
|
+
}
|
666
|
+
}
|
667
|
+
criteria = {
|
668
|
+
items: 'count(id) count',
|
669
|
+
tablename: 't_check_plan_item',
|
670
|
+
condition: `f_complete = '已完成' AND f_state = '已检'`,
|
671
|
+
groupitem: 'f_state'
|
672
|
+
}
|
673
|
+
result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
674
|
+
if(result.code && result.code == 200){
|
675
|
+
if(result.data.rows[0] && !isNaN(result.data.rows[0].count)){
|
676
|
+
this.doneCount = result.data.rows[0].count
|
677
|
+
}
|
678
|
+
}
|
679
|
+
this.allPlanCount = this.upcomingCount + this.tempSaveCount + this.doneCount
|
680
|
+
|
681
|
+
//tag
|
682
|
+
//tag
|
683
|
+
//tag
|
684
|
+
//tag
|
685
|
+
},
|
686
|
+
getAllPlanName(){
|
687
|
+
this.planNameOptions = []
|
688
|
+
this.$refs.paged.$refs.cri.model.f_plan_name = ''
|
689
|
+
let criteria = {
|
690
|
+
items: 'f_plan_name',
|
691
|
+
tablename: 't_check_plan',
|
692
|
+
condition: `f_plan_name IS NOT NULL AND f_plan_name != ''`,
|
693
|
+
groupitem: 'f_plan_name'
|
694
|
+
}
|
695
|
+
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
696
|
+
//tag)
|
697
|
+
if(result.code == 200){
|
698
|
+
result.data.rows.forEach(item => this.planNameOptions.push({label:item.f_plan_name,value:item.f_plan_name}))
|
699
|
+
}
|
700
|
+
//tag)
|
701
|
+
},
|
702
|
+
}
|
703
|
+
}
|
704
|
+
</script>
|