safecheck-client 3.0.39-14 → 3.0.39-16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.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/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/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/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/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/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/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/pc/SafeCheckOrder/SafeCheckOrderList.vue +248 -248
- 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/userfile/MeterFile.vue +145 -145
- package/src/components/userfile/MeterModify.vue +46 -46
- package/src/components/userfileaudit/MeterAuditFile.vue +129 -129
- package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +713 -713
- package/src/filiale/hanzhong/pc/CheckNumberStatistics.vue +499 -499
- package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +578 -573
- package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +508 -508
- package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +595 -595
- package/src/filiale/hanzhong/pc/HomeEcharts.vue +153 -153
- package/src/filiale/kelai/android/PaperFeedback.vue +1553 -1553
- package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +104 -38
- package/src/filiale/qingjian/android/SafecheckUserInfo.vue +42 -19
- package/src/filiale/tongchuan/pc/AMapTrailShowZk.vue +226 -226
- package/src/filiale/tongchuan/pc/CheckSearchUser.vue +1091 -1091
- package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +664 -664
- package/src/filiale/tongchuan/pc/NoCheckplanSafecheck.vue +247 -247
- package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1094 -1094
- package/src/filiale/tongchuan/pc/PaperList.vue +718 -718
- package/src/filiale/tongchuan/pc/PersonTrack.vue +269 -269
- package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +336 -336
- package/src/filiale/tongchuan/pc.js +37 -37
- package/src/filiale/wuan/android/SafecheckOrderV.vue +2242 -2242
- package/src/filiale/wuan/android/SafecheckUserInfo.vue +659 -659
- package/src/plugins/LoadData.js +10 -10
- package/src/plugins/LoadParams.js +24 -24
- 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,664 +1,664 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="flex">
|
|
3
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
-
<criteria partial='criteria' @condition-changed='$parent.search' v-ref:criteria>
|
|
5
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
-
<div class="row" v-if="!$parent.$parent.$parent.showItem">
|
|
7
|
-
<div :class="$parent.$parent.style">
|
|
8
|
-
<label class="font_normal_body">安检计划</label>
|
|
9
|
-
<input type="text" class="input_search" v-model="$parent.$parent.f_check_plan.f_plan_name"
|
|
10
|
-
@click="$parent.$parent.showChooser"
|
|
11
|
-
style="width: 60%" placeholder="安检计划" readonly="readonly">
|
|
12
|
-
</div>
|
|
13
|
-
<div :class="$parent.$parent.style">
|
|
14
|
-
<label class="font_normal_body">存在隐患</label>
|
|
15
|
-
<v-select style="width:60% "
|
|
16
|
-
class="select select_list"
|
|
17
|
-
:value.sync="model.f_has_defect"
|
|
18
|
-
v-model="model.f_has_defect"
|
|
19
|
-
:options='$parent.$parent.hasDefectOptions'
|
|
20
|
-
:placeholder='model.f_has_defect'
|
|
21
|
-
condition="f_has_defect = '{}'"
|
|
22
|
-
close-on-select>
|
|
23
|
-
</v-select>
|
|
24
|
-
</div>
|
|
25
|
-
<div :class="$parent.$parent.style">
|
|
26
|
-
<label class="font_normal_body">用户编号</label>
|
|
27
|
-
<input type="text" class="input_search" v-model="model.f_userinfo_code"
|
|
28
|
-
condition="f_userinfo_code = '{}'"
|
|
29
|
-
style="width: 60%" placeholder="用户编号">
|
|
30
|
-
</div>
|
|
31
|
-
<div :class="$parent.$parent.style">
|
|
32
|
-
<label class="font_normal_body">结果查询</label>
|
|
33
|
-
<v-select
|
|
34
|
-
placeholder='处理结果查询'
|
|
35
|
-
:value-single="true"
|
|
36
|
-
class="select select_list" style="width: 60%"
|
|
37
|
-
v-model='model.f_repaired'
|
|
38
|
-
:value.sync="model.f_repaired"
|
|
39
|
-
:options='$parent.$parent.repaired'
|
|
40
|
-
condition="f_repaired = '{}'"
|
|
41
|
-
close-on-select clear-button> </v-select>
|
|
42
|
-
</div>
|
|
43
|
-
<div class=" col-sm-4 form-group button-range" >
|
|
44
|
-
<div class="span" style="float: right;margin-top: 8px">
|
|
45
|
-
<div style="float: right" class="button_spacing"
|
|
46
|
-
:class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
|
|
47
|
-
@click="$parent.$parent.hiddenr()"></div>
|
|
48
|
-
<div style="float: right" class="button_spacing"
|
|
49
|
-
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
50
|
-
@click="$parent.$parent.hidden()"></div>
|
|
51
|
-
<button style="float: right" class="button_search button_spacing" @click="search">查询</button>
|
|
52
|
-
<div style="float: right">
|
|
53
|
-
<export-excel-safe :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids,f_defect_content:$parent.$parent.model.f_defect_content}"
|
|
54
|
-
:field="$parent.$parent.getfield"
|
|
55
|
-
progress="safeGetExportProgress"
|
|
56
|
-
sqlurl="rs/logic/SafeExportExcel" sql-name="GetCheckPaperByDefect" template-name='安检隐患明细' :choose-col="true"></export-excel-safe>
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
59
|
-
</div>
|
|
60
|
-
</div>
|
|
61
|
-
<div class="row" v-if="$parent.$parent.criteriaShow&&!$parent.$parent.$parent.showItem">
|
|
62
|
-
<div :class="$parent.$parent.style">
|
|
63
|
-
<label class="font_normal_body">区域</label>
|
|
64
|
-
<v-select class="select_list select"
|
|
65
|
-
placeholder='片区/管理站' style="width: 60%"
|
|
66
|
-
:value.sync="model.f_slice_area" v-model="model.f_slice_area"
|
|
67
|
-
:options='$parent.$parent.sliceArea'
|
|
68
|
-
filer-key="name"
|
|
69
|
-
close-on-select clear-button
|
|
70
|
-
condition="f_slice_area='{}'"
|
|
71
|
-
@change="$parent.$parent.getmeterbook(model.f_slice_area)"
|
|
72
|
-
:value-single="true">
|
|
73
|
-
</v-select>
|
|
74
|
-
</div>
|
|
75
|
-
<div :class="$parent.$parent.style2" style="margin: 0">
|
|
76
|
-
<role-selector-safe
|
|
77
|
-
:value-multiple="true"
|
|
78
|
-
:value-close="false"
|
|
79
|
-
role-name="安检员"
|
|
80
|
-
role-lable="安 检 员 "
|
|
81
|
-
@re-res="$parent.$parent.getRes"
|
|
82
|
-
:value.sync="model.f_checker_id"
|
|
83
|
-
v-model="model.f_checker_id"
|
|
84
|
-
condition="f_checker_name in {}">
|
|
85
|
-
</role-selector-safe>
|
|
86
|
-
</div>
|
|
87
|
-
|
|
88
|
-
<div :class="$parent.$parent.style">
|
|
89
|
-
<label class="font_normal_body">抄 表 册</label>
|
|
90
|
-
<v-select class="select_list select"
|
|
91
|
-
placeholder='抄表册' style="width: 60%"
|
|
92
|
-
:value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
|
|
93
|
-
:options='$parent.$parent.cbc'
|
|
94
|
-
filer-key="name"
|
|
95
|
-
close-on-select clear-button
|
|
96
|
-
condition="f_meter_book_num={}"
|
|
97
|
-
:value-single="true">
|
|
98
|
-
</v-select>
|
|
99
|
-
</div>
|
|
100
|
-
<div :class="$parent.$parent.style">
|
|
101
|
-
<label class="font_normal_body">起始时间</label>
|
|
102
|
-
<datepicker
|
|
103
|
-
placeholder='起始时间' style="width:60%"
|
|
104
|
-
:disabled-days-of-week="[]"
|
|
105
|
-
:format="'yyyy-MM-dd'"
|
|
106
|
-
:show-rest-button="reset"
|
|
107
|
-
:value.sync="model.f_start_time"
|
|
108
|
-
v-model="model.f_start_time"
|
|
109
|
-
condition="f_offsite_time >= '{} 00:00:00'">
|
|
110
|
-
</datepicker>
|
|
111
|
-
</div>
|
|
112
|
-
<div :class="$parent.$parent.style">
|
|
113
|
-
<label class="font_normal_body">结束时间</label>
|
|
114
|
-
<datepicker
|
|
115
|
-
placeholder='结束时间' style="width:60%"
|
|
116
|
-
:disabled-days-of-week="[]"
|
|
117
|
-
:format="'yyyy-MM-dd'"
|
|
118
|
-
:show-rest-button="reset"
|
|
119
|
-
:value.sync="model.f_end_time"
|
|
120
|
-
v-model="model.f_end_time"
|
|
121
|
-
condition="f_offsite_time <= '{} 23:59:59'">
|
|
122
|
-
</datepicker>
|
|
123
|
-
</div>
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
</div>
|
|
127
|
-
<div class="row" v-if="$parent.$parent.criteriaShow&&!$parent.$parent.$parent.showItem">
|
|
128
|
-
<div :class="$parent.$parent.style">
|
|
129
|
-
<label class="font_normal_body">区  县</label>
|
|
130
|
-
<input type="text" class="input_search" v-model="model.f_pcd"
|
|
131
|
-
condition="f_pcd like '%{}%'"
|
|
132
|
-
style="width: 60%" placeholder="区/县" >
|
|
133
|
-
</div>
|
|
134
|
-
|
|
135
|
-
<div :class="$parent.$parent.style">
|
|
136
|
-
<label class="font_normal_body">用气性质</label>
|
|
137
|
-
<v-select class="select_list select"
|
|
138
|
-
placeholder='用气性质' style="width: 60%"
|
|
139
|
-
:value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
140
|
-
:options='$parent.$parent.gasproperties'
|
|
141
|
-
@change="$parent.$parent.changeGasproperties"
|
|
142
|
-
filer-key="name"
|
|
143
|
-
close-on-select clear-button
|
|
144
|
-
condition="f_gasproperties = '{}'"
|
|
145
|
-
:value-single="true">
|
|
146
|
-
</v-select>
|
|
147
|
-
</div>
|
|
148
|
-
<div :class="$parent.$parent.style">
|
|
149
|
-
<label class="font_normal_body">二级性质</label>
|
|
150
|
-
<v-select class="select_list select"
|
|
151
|
-
placeholder='二级性质' style="width: 60%"
|
|
152
|
-
:value.sync="model.f_gasproperties_second" v-model="model.f_gasproperties_second"
|
|
153
|
-
:options='$parent.$parent.gasproperties2'
|
|
154
|
-
filer-key="name"
|
|
155
|
-
close-on-select clear-button
|
|
156
|
-
condition="f_gasproperties_second= '{}'"
|
|
157
|
-
:value-single="true">
|
|
158
|
-
</v-select>
|
|
159
|
-
</div>
|
|
160
|
-
<div :class="$parent.$parent.style">
|
|
161
|
-
<label class="font_normal_body">网 格 员</label>
|
|
162
|
-
<v-select class="select_list select"
|
|
163
|
-
placeholder='请选择' style="width: 60%"
|
|
164
|
-
:value.sync="model.f_book_checker" v-model="model.f_book_checker"
|
|
165
|
-
:options='$parent.$parent.users'
|
|
166
|
-
filer-key="name"
|
|
167
|
-
close-on-select clear-button
|
|
168
|
-
condition="f_book_checker like '%{}%' and f_checker_name = '{}'"
|
|
169
|
-
:value-single="true">
|
|
170
|
-
</v-select>
|
|
171
|
-
</div>
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
</div>
|
|
175
|
-
|
|
176
|
-
<div class="row" v-if="$parent.$parent.$parent.showItem">
|
|
177
|
-
<div :class="$parent.$parent.style">
|
|
178
|
-
<label class="font_normal_body">安检计划</label>
|
|
179
|
-
<input type="text" class="input_search" v-model="$parent.$parent.f_check_plan.f_plan_name"
|
|
180
|
-
@click="$parent.$parent.showChooser"
|
|
181
|
-
style="width: 60%" placeholder="安检计划" readonly="readonly">
|
|
182
|
-
</div>
|
|
183
|
-
<div :class="$parent.$parent.style">
|
|
184
|
-
<label class="font_normal_body">存在隐患</label>
|
|
185
|
-
<v-select style="width:60% "
|
|
186
|
-
class="select select_list"
|
|
187
|
-
:value.sync="model.f_has_defect"
|
|
188
|
-
v-model="model.f_has_defect"
|
|
189
|
-
:options='$parent.$parent.hasDefectOptions'
|
|
190
|
-
:placeholder='model.f_has_defect'
|
|
191
|
-
condition="f_has_defect = '{}'"
|
|
192
|
-
close-on-select>
|
|
193
|
-
</v-select>
|
|
194
|
-
</div>
|
|
195
|
-
|
|
196
|
-
<div class=" col-sm-4 form-group button-range">
|
|
197
|
-
<div class="span" style="float: right;margin-top: 8px;margin-right: 50px">
|
|
198
|
-
<div style="float: right" class="button_spacing"
|
|
199
|
-
:class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
|
|
200
|
-
@click="$parent.$parent.hiddenr()"></div>
|
|
201
|
-
<div style="float: right" class="button_spacing"
|
|
202
|
-
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
203
|
-
@click="$parent.$parent.hidden()"></div>
|
|
204
|
-
<button style="float: right" class="button_search button_spacing" @click="search">查询</button>
|
|
205
|
-
<div style="float: right">
|
|
206
|
-
<export-excel-safe :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids,f_defect_content:$parent.$parent.model.f_defect_content}"
|
|
207
|
-
:field="$parent.$parent.getfield"
|
|
208
|
-
progress="safeGetExportProgress"
|
|
209
|
-
sqlurl="rs/logic/SafeExportExcel" sql-name="GetCheckPaperByDefect" template-name='安检隐患明细' :choose-col="true"></export-excel-safe>
|
|
210
|
-
</div>
|
|
211
|
-
</div>
|
|
212
|
-
</div>
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
</div>
|
|
217
|
-
<div class="row" v-if="$parent.$parent.criteriaShow&&$parent.$parent.$parent.showItem">
|
|
218
|
-
<div :class="$parent.$parent.style">
|
|
219
|
-
<label class="font_normal_body">用户编号</label>
|
|
220
|
-
<input type="text" class="input_search" v-model="model.f_userinfo_code"
|
|
221
|
-
condition="f_userinfo_code = '{}'"
|
|
222
|
-
style="width: 60%" placeholder="用户编号">
|
|
223
|
-
</div>
|
|
224
|
-
<div :class="$parent.$parent.style">
|
|
225
|
-
<label class="font_normal_body">结果查询</label>
|
|
226
|
-
<v-select
|
|
227
|
-
placeholder='处理结果查询'
|
|
228
|
-
:value-single="true"
|
|
229
|
-
class="select select_list" style="width: 60%"
|
|
230
|
-
v-model='model.f_repaired'
|
|
231
|
-
:value.sync="model.f_repaired"
|
|
232
|
-
:options='$parent.$parent.repaired'
|
|
233
|
-
condition="f_repaired = '{}'"
|
|
234
|
-
close-on-select clear-button> </v-select>
|
|
235
|
-
</div>
|
|
236
|
-
|
|
237
|
-
<div :class="$parent.$parent.style2" style="margin: 0">
|
|
238
|
-
<role-selector-safe
|
|
239
|
-
:value-multiple="true"
|
|
240
|
-
:value-close="false"
|
|
241
|
-
role-name="安检员"
|
|
242
|
-
role-lable="安 检 员 "
|
|
243
|
-
@re-res="$parent.$parent.getRes"
|
|
244
|
-
:value.sync="model.f_checker_id"
|
|
245
|
-
v-model="model.f_checker_id"
|
|
246
|
-
condition="f_checker_name in {}">
|
|
247
|
-
</role-selector-safe>
|
|
248
|
-
</div>
|
|
249
|
-
</div>
|
|
250
|
-
<div class="row" v-if="$parent.$parent.criteriaShow && $parent.$parent.$parent.showItem">
|
|
251
|
-
<div :class="$parent.$parent.style">
|
|
252
|
-
<label class="font_normal_body">片  区</label>
|
|
253
|
-
<v-select class="select_list select"
|
|
254
|
-
placeholder='片区/管理站' style="width: 60%"
|
|
255
|
-
:value.sync="model.f_slice_area" v-model="model.f_slice_area"
|
|
256
|
-
:options='$parent.$parent.sliceArea'
|
|
257
|
-
filer-key="name"
|
|
258
|
-
close-on-select clear-button
|
|
259
|
-
condition="f_slice_area='{}'"
|
|
260
|
-
@change="$parent.$parent.getmeterbook(model.f_slice_area)"
|
|
261
|
-
:value-single="true">
|
|
262
|
-
</v-select>
|
|
263
|
-
</div>
|
|
264
|
-
<div class="font_normal_body">
|
|
265
|
-
<label class="font_normal_body">区  域</label>
|
|
266
|
-
<v-select class="select_list select"
|
|
267
|
-
placeholder='请选择' style="width: 60%"
|
|
268
|
-
:value.sync="model.f_pcd" v-model="model.f_pcd"
|
|
269
|
-
:options='$parent.$parent.pcds'
|
|
270
|
-
filer-key="name"
|
|
271
|
-
close-on-select clear-button
|
|
272
|
-
condition="f_pcd_id ='{}'"
|
|
273
|
-
:value-single="true">
|
|
274
|
-
</v-select>
|
|
275
|
-
</div>
|
|
276
|
-
<div :class="$parent.$parent.style">
|
|
277
|
-
<label class="font_normal_body">抄 表 册</label>
|
|
278
|
-
<v-select class="select_list select"
|
|
279
|
-
placeholder='抄表册' style="width: 60%"
|
|
280
|
-
:value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
|
|
281
|
-
:options='$parent.$parent.cbc'
|
|
282
|
-
filer-key="name"
|
|
283
|
-
close-on-select clear-button
|
|
284
|
-
condition="f_meter_book_num={}"
|
|
285
|
-
:value-single="true">
|
|
286
|
-
</v-select>
|
|
287
|
-
</div>
|
|
288
|
-
<div :class="$parent.$parent.style">
|
|
289
|
-
<label class="font_normal_body">起始时间</label>
|
|
290
|
-
<datepicker
|
|
291
|
-
placeholder='起始时间' style="width:60%"
|
|
292
|
-
:disabled-days-of-week="[]"
|
|
293
|
-
:format="'yyyy-MM-dd'"
|
|
294
|
-
:show-rest-button="reset"
|
|
295
|
-
:value.sync="model.f_start_time"
|
|
296
|
-
v-model="model.f_start_time"
|
|
297
|
-
condition="f_offsite_time >= '{} 00:00:00'">
|
|
298
|
-
</datepicker>
|
|
299
|
-
</div>
|
|
300
|
-
<div :class="$parent.$parent.style">
|
|
301
|
-
<label class="font_normal_body">结束时间</label>
|
|
302
|
-
<datepicker
|
|
303
|
-
placeholder='结束时间' style="width:60%"
|
|
304
|
-
:disabled-days-of-week="[]"
|
|
305
|
-
:format="'yyyy-MM-dd'"
|
|
306
|
-
:show-rest-button="reset"
|
|
307
|
-
:value.sync="model.f_end_time"
|
|
308
|
-
v-model="model.f_end_time"
|
|
309
|
-
condition="f_offsite_time <= '{} 23:59:59'">
|
|
310
|
-
</datepicker>
|
|
311
|
-
</div>
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
</div>
|
|
315
|
-
|
|
316
|
-
<div class="row" v-if="$parent.$parent.criteriaShow && $parent.$parent.$parent.showItem">
|
|
317
|
-
<div :class="$parent.$parent.style">
|
|
318
|
-
<label class="font_normal_body">区  县</label>
|
|
319
|
-
<input type="text" class="input_search" v-model="model.f_pcd"
|
|
320
|
-
condition="f_pcd like '%{}%'"
|
|
321
|
-
style="width: 60%" placeholder="区/县" >
|
|
322
|
-
</div>
|
|
323
|
-
|
|
324
|
-
<div :class="$parent.$parent.style">
|
|
325
|
-
<label class="font_normal_body">用气性质</label>
|
|
326
|
-
<v-select class="select_list select"
|
|
327
|
-
placeholder='用气性质' style="width: 60%"
|
|
328
|
-
:value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
329
|
-
:options='$parent.$parent.gasproperties'
|
|
330
|
-
@change="$parent.$parent.changeGasproperties"
|
|
331
|
-
filer-key="name"
|
|
332
|
-
close-on-select clear-button
|
|
333
|
-
condition="f_gasproperties = '{}'"
|
|
334
|
-
:value-single="true">
|
|
335
|
-
</v-select>
|
|
336
|
-
</div>
|
|
337
|
-
<div :class="$parent.$parent.style">
|
|
338
|
-
<label class="font_normal_body">二级性质</label>
|
|
339
|
-
<v-select class="select_list select"
|
|
340
|
-
placeholder='二级性质' style="width: 60%"
|
|
341
|
-
:value.sync="model.f_gasproperties_second" v-model="model.f_gasproperties_second"
|
|
342
|
-
:options='$parent.$parent.gasproperties2'
|
|
343
|
-
filer-key="name"
|
|
344
|
-
close-on-select clear-button
|
|
345
|
-
condition="f_gasproperties_second= '{}'"
|
|
346
|
-
:value-single="true">
|
|
347
|
-
</v-select>
|
|
348
|
-
</div>
|
|
349
|
-
<div :class="$parent.$parent.style">
|
|
350
|
-
<label class="font_normal_body">网 格 员</label>
|
|
351
|
-
<v-select class="select_list select"
|
|
352
|
-
placeholder='请选择' style="width: 60%"
|
|
353
|
-
:value.sync="model.f_book_checker" v-model="model.f_book_checker"
|
|
354
|
-
:options='$parent.$parent.users'
|
|
355
|
-
filer-key="name"
|
|
356
|
-
close-on-select clear-button
|
|
357
|
-
condition="f_book_checker like '%{}%' and f_checker_name = '{}'"
|
|
358
|
-
:value-single="true">
|
|
359
|
-
</v-select>
|
|
360
|
-
</div>
|
|
361
|
-
|
|
362
|
-
</div>
|
|
363
|
-
</div>
|
|
364
|
-
</criteria>
|
|
365
|
-
<data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
|
|
366
|
-
<template partial='head'>
|
|
367
|
-
<tr>
|
|
368
|
-
<th><nobr>入户状态</nobr></th>
|
|
369
|
-
<th><nobr>用户编号</nobr></th>
|
|
370
|
-
<th><nobr>用户名</nobr></th>
|
|
371
|
-
<th><nobr>用户电话</nobr></th>
|
|
372
|
-
<th><nobr>用户小区</nobr></th>
|
|
373
|
-
<th><nobr>区域</nobr></th>
|
|
374
|
-
<th><nobr>用户地址</nobr></th>
|
|
375
|
-
<th><nobr>安检时间</nobr></th>
|
|
376
|
-
<th><nobr>安检员</nobr></th>
|
|
377
|
-
<th><nobr>计划名</nobr></th>
|
|
378
|
-
<th><nobr>是否有隐患</nobr></th>
|
|
379
|
-
<th><nobr>隐患数</nobr></th>
|
|
380
|
-
<!-- <th><nobr>整改数</nobr></th>-->
|
|
381
|
-
|
|
382
|
-
</tr>
|
|
383
|
-
</template>
|
|
384
|
-
<template partial='body'>
|
|
385
|
-
<td style="text-align: center;white-space:nowrap;">{{row.f_entry_status}}</td>
|
|
386
|
-
<td style="text-align: center;white-space:nowrap;">{{row.f_userinfo_code}}</td>
|
|
387
|
-
<td style="text-align: center;white-space:nowrap;">{{row.f_user_name}}</td>
|
|
388
|
-
<td style="text-align: center;white-space:nowrap;">{{row.f_user_phone}}</td>
|
|
389
|
-
<td style="text-align: center;white-space:nowrap;">{{row.f_residential_area}}</td>
|
|
390
|
-
<td style="text-align: center;white-space:nowrap;">{{row.f_slice_area}}</td>
|
|
391
|
-
<td style="text-align: center;white-space:nowrap;">{{row.f_address}}</td>
|
|
392
|
-
<td style="text-align: center;white-space:nowrap;">{{row.f_offsite_time}}</td>
|
|
393
|
-
<td style="text-align: center;white-space:nowrap;">{{row.f_checker_name}}</td>
|
|
394
|
-
<td style="text-align: center;white-space:nowrap;">{{row.f_plan_name}}</td>
|
|
395
|
-
<td style="text-align: center;white-space:nowrap;">{{row.f_has_defect}}</td>
|
|
396
|
-
<td style="text-align: center;white-space:nowrap;">{{row.f_defect_count}}</td>
|
|
397
|
-
<!-- <td style="text-align: center;white-space:nowrap;">{{row.f_repair_count}}</td>-->
|
|
398
|
-
|
|
399
|
-
</template>
|
|
400
|
-
</data-grid>
|
|
401
|
-
</criteria-paged>
|
|
402
|
-
|
|
403
|
-
<modal :show.sync="showModal" v-ref:modal>
|
|
404
|
-
<div slot="modal-header" class="modal-header">
|
|
405
|
-
<h4 class="modal-title">
|
|
406
|
-
选择计划
|
|
407
|
-
</h4>
|
|
408
|
-
</div>
|
|
409
|
-
<div slot="modal-body" class="modal-body">
|
|
410
|
-
<plan-chooser :f.sync="this.$login.f" v-ref:chooser></plan-chooser>
|
|
411
|
-
</div>
|
|
412
|
-
<div slot="modal-footer" class="modal-footer" style="text-align: center">
|
|
413
|
-
<button class="button_search" @click="ok">确认</button>
|
|
414
|
-
<button class="button_search" @click="cancel">取消</button>
|
|
415
|
-
</div>
|
|
416
|
-
</modal>
|
|
417
|
-
</div>
|
|
418
|
-
</template>
|
|
419
|
-
<script>
|
|
420
|
-
import {PagedList} from 'vue-client'
|
|
421
|
-
import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
|
|
422
|
-
import co from 'co'
|
|
423
|
-
|
|
424
|
-
let select = function* (self) {
|
|
425
|
-
let http = new HttpResetClass()
|
|
426
|
-
let getGasman = yield http.load('POST', '/rs/search', {
|
|
427
|
-
source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
|
|
428
|
-
userid: self.$login.f.id
|
|
429
|
-
}, {resolveMsg: null, rejectMsg: null})
|
|
430
|
-
//tag
|
|
431
|
-
self.checkersid.push({label: '全部', value: ''})
|
|
432
|
-
getGasman.data.forEach((checker) => {
|
|
433
|
-
self.checkersid.push({label: checker.name, value: checker.name})
|
|
434
|
-
})
|
|
435
|
-
}
|
|
436
|
-
export default {
|
|
437
|
-
title: '隐患查询',
|
|
438
|
-
data() {
|
|
439
|
-
let model = new PagedList('rs/sql/GetCheckPaperByDefect', 20, {
|
|
440
|
-
f_filialeids: 'this.f_filialeids',f_defect_content: 'this.f_defect_content'
|
|
441
|
-
})
|
|
442
|
-
model.f_filialeids = '(' + this.$login.f.orgid + ')'
|
|
443
|
-
model.f_defect_content="CASE WHEN CHARINDEX( '\"result\":\"正常\"', f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( f_defect_content, len( f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
|
|
444
|
-
return {
|
|
445
|
-
repaired:[{label: '未修', value: '未修'}, {label: '已修', value: '已修'}],
|
|
446
|
-
hasDefectOptions: [{label: '全部', value: ''}, {label: '有隐患', value: '有隐患'}, {label: '无隐患', value: '无隐患'}],
|
|
447
|
-
f: this.$login.f,
|
|
448
|
-
model: model,
|
|
449
|
-
criteriaShow: false,
|
|
450
|
-
showModal: false,
|
|
451
|
-
f_check_plan: {f_plan_name: '', id: ''},
|
|
452
|
-
sumsmodel: {},
|
|
453
|
-
all: false,
|
|
454
|
-
fields: {},
|
|
455
|
-
gasproperties:[{label:'全部',value:''},...this.$appdata.getParam("民用"),...this.$appdata.getParam("非民用")],
|
|
456
|
-
gasproperties2:[],
|
|
457
|
-
modelval: [],
|
|
458
|
-
users:[{label: '全部', value: ''}],
|
|
459
|
-
checkersid: [],
|
|
460
|
-
sliceArea: [],
|
|
461
|
-
pcds:[],
|
|
462
|
-
cbc:[],
|
|
463
|
-
cbcs:[],
|
|
464
|
-
thead: '',
|
|
465
|
-
headData: ['入户状态','用户编号','用户名','用户电话','用户小区','区域','用户地址','安检时间','安检员','计划名','是否有隐患','隐患数','隐患情况'],
|
|
466
|
-
bodyData: ['f_entry_status','f_userinfo_code','f_user_name','f_user_phone','f_residential_area','f_slice_area','f_address','f_offsite_time','f_checker_name','f_plan_name','f_has_defect','f_defect_count','f_defect_content']
|
|
467
|
-
}
|
|
468
|
-
},
|
|
469
|
-
props:{
|
|
470
|
-
style: {
|
|
471
|
-
type: String,
|
|
472
|
-
default: 'col-sm-2 form-group'
|
|
473
|
-
},
|
|
474
|
-
style2: {
|
|
475
|
-
type: String,
|
|
476
|
-
default: 'col-sm-4 form-group'
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
},
|
|
480
|
-
|
|
481
|
-
methods: {
|
|
482
|
-
//获取省市区列表
|
|
483
|
-
getPcd(val) {
|
|
484
|
-
this.pcds = [{label: '全部', value: ''}]
|
|
485
|
-
new HttpResetClass().load("POST", `/rs/sql/safe_singleTable_OrderBy`,
|
|
486
|
-
{data: {items: "*", tablename: "t_pcd", orderitem: "id", condition: `f_orgid in ${val}`}},
|
|
487
|
-
{resolveMsg: null, rejectMsg: null}).then((pcdlist) => {
|
|
488
|
-
pcdlist.data.forEach((result) => {
|
|
489
|
-
this.pcds.push({label: result.f_pcd, value: result.id})
|
|
490
|
-
})
|
|
491
|
-
})
|
|
492
|
-
},
|
|
493
|
-
changeGasproperties(value){
|
|
494
|
-
console.log("changeGasproperties",value)
|
|
495
|
-
this.gasproperties2 = [{label:'全部',value:''},...this.$appdata.getParam(value)]
|
|
496
|
-
this.$refs.paged.$refs.criteria.model.f_gasproperties_second = ''
|
|
497
|
-
},
|
|
498
|
-
getmeterbook(val){
|
|
499
|
-
this.cbc=[]
|
|
500
|
-
this.cbc.push({
|
|
501
|
-
label:'全部',
|
|
502
|
-
value:''
|
|
503
|
-
})
|
|
504
|
-
if (val==''){
|
|
505
|
-
|
|
506
|
-
this.cbcs.forEach(res=>{
|
|
507
|
-
this.cbc.push({
|
|
508
|
-
label:res.f_book_name,
|
|
509
|
-
value:res.id
|
|
510
|
-
})
|
|
511
|
-
})
|
|
512
|
-
}else{
|
|
513
|
-
this.cbcs.forEach(res=>{
|
|
514
|
-
if (res.f_book_slice_area==val){
|
|
515
|
-
this.cbc.push({
|
|
516
|
-
label:res.f_book_name,
|
|
517
|
-
value:res.id
|
|
518
|
-
})
|
|
519
|
-
}
|
|
520
|
-
})
|
|
521
|
-
}
|
|
522
|
-
},
|
|
523
|
-
|
|
524
|
-
Mreadibook(val){
|
|
525
|
-
//tag
|
|
526
|
-
//tag
|
|
527
|
-
this.sliceArea=[]
|
|
528
|
-
if (val){
|
|
529
|
-
new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
|
|
530
|
-
items: 'name',
|
|
531
|
-
tablename: 't_zone',
|
|
532
|
-
condition: `parentid in ${val}`,
|
|
533
|
-
orderitem: 'id'
|
|
534
|
-
}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
535
|
-
this.sliceArea.push({
|
|
536
|
-
label:'全部',
|
|
537
|
-
value:''
|
|
538
|
-
})
|
|
539
|
-
res.data.forEach(ress=>{
|
|
540
|
-
this.sliceArea.push({
|
|
541
|
-
label:ress.name,
|
|
542
|
-
value:ress.name
|
|
543
|
-
})
|
|
544
|
-
})
|
|
545
|
-
|
|
546
|
-
})
|
|
547
|
-
}
|
|
548
|
-
},
|
|
549
|
-
getAllMeterBook(val){
|
|
550
|
-
//tag
|
|
551
|
-
//tag
|
|
552
|
-
this.cbcs=[]
|
|
553
|
-
if (val){
|
|
554
|
-
new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
|
|
555
|
-
items: 'f_book_name,f_book_slice_area,id',
|
|
556
|
-
tablename: 't_meter_book',
|
|
557
|
-
condition: `f_filiale_id in ${val}`,
|
|
558
|
-
orderitem: 'id'
|
|
559
|
-
}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
560
|
-
res.data.forEach(ress=>{
|
|
561
|
-
this.cbcs.push({
|
|
562
|
-
id:ress.id,
|
|
563
|
-
f_book_name:ress.f_book_name,
|
|
564
|
-
f_book_slice_area:ress.f_book_slice_area
|
|
565
|
-
})
|
|
566
|
-
})
|
|
567
|
-
this.cbc=[]
|
|
568
|
-
this.cbc.push({
|
|
569
|
-
label:'全部',
|
|
570
|
-
value:''
|
|
571
|
-
})
|
|
572
|
-
this.cbcs.forEach(res=>{
|
|
573
|
-
this.cbc.push({
|
|
574
|
-
label:res.f_book_name,
|
|
575
|
-
value:res.id
|
|
576
|
-
})
|
|
577
|
-
})
|
|
578
|
-
})
|
|
579
|
-
}
|
|
580
|
-
},
|
|
581
|
-
initBookChecker(){
|
|
582
|
-
new HttpResetClass().load('POST', '/rs/search', {
|
|
583
|
-
data: {
|
|
584
|
-
source: `root.getResourceById($${this.$login.f.orgid}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($网格员$) != -1)`,
|
|
585
|
-
userid: this.$login.f.id
|
|
586
|
-
}
|
|
587
|
-
}, {resolveMsg: null, rejectMsg: null}).then(res=>{
|
|
588
|
-
let data = res.data
|
|
589
|
-
const addedNames = new Set()
|
|
590
|
-
this.users = []
|
|
591
|
-
data.forEach(user => {
|
|
592
|
-
if (user.state === '在职') {
|
|
593
|
-
if (!addedNames.has(user.name)) {
|
|
594
|
-
this.users.push({ label: user.name, value: user.name })
|
|
595
|
-
addedNames.add(user.name)
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
});
|
|
599
|
-
})
|
|
600
|
-
},
|
|
601
|
-
hiddenr() {
|
|
602
|
-
this.$parent.showItem = !this.$parent.showItem
|
|
603
|
-
},
|
|
604
|
-
hidden() {
|
|
605
|
-
this.criteriaShow = !this.criteriaShow
|
|
606
|
-
},
|
|
607
|
-
search(args) {
|
|
608
|
-
if (this.f_check_plan.f_plan_name) {
|
|
609
|
-
args.condition += ` and f_check_plan_id = '${this.f_check_plan.id}'`
|
|
610
|
-
}
|
|
611
|
-
this.model.search(args.condition, args.model)
|
|
612
|
-
},
|
|
613
|
-
getRes(obj) {
|
|
614
|
-
this.model.f_filialeids = this.$login.convertToIn(obj.resids);
|
|
615
|
-
this.Mreadibook(this.model.f_filialeids)
|
|
616
|
-
this.getAllMeterBook(this.model.f_filialeids)
|
|
617
|
-
this.getPcd(this.model.f_filialeids)
|
|
618
|
-
},
|
|
619
|
-
showChooser() {
|
|
620
|
-
this.showModal = true
|
|
621
|
-
},
|
|
622
|
-
ok() {
|
|
623
|
-
this.showModal = false
|
|
624
|
-
if (this.$refs.modal.$children[0].selectedRow.id) {
|
|
625
|
-
this.f_check_plan = this.$refs.modal.$children[0].selectedRow
|
|
626
|
-
}
|
|
627
|
-
},
|
|
628
|
-
cancel() {
|
|
629
|
-
this.showModal = false
|
|
630
|
-
this.f_check_plan = {f_plan_name: '', id: ''}
|
|
631
|
-
}
|
|
632
|
-
},
|
|
633
|
-
ready() {
|
|
634
|
-
this.$refs.paged.$refs.criteria.model.f_has_defect = '有隐患'
|
|
635
|
-
this.initBookChecker()
|
|
636
|
-
let gen = select(this)
|
|
637
|
-
// this.Mreadibook(`('${this.$login.f.orgid}')`)
|
|
638
|
-
co(gen)
|
|
639
|
-
},
|
|
640
|
-
computed: {
|
|
641
|
-
selected() {
|
|
642
|
-
return this.$refs.paged.$refs.grid.selected
|
|
643
|
-
},
|
|
644
|
-
getfield(){
|
|
645
|
-
//tag
|
|
646
|
-
let data = {}
|
|
647
|
-
this.bodyData.forEach((value, index)=>{
|
|
648
|
-
data[this.bodyData[index]] = this.headData[index]
|
|
649
|
-
})
|
|
650
|
-
//合计字段打印
|
|
651
|
-
this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
|
|
652
|
-
if(this.sumsmodel){
|
|
653
|
-
Object.keys(this.sumsmodel).forEach((key) => {
|
|
654
|
-
this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
|
|
655
|
-
})
|
|
656
|
-
}else{
|
|
657
|
-
this.tfoot += '暂无'
|
|
658
|
-
}
|
|
659
|
-
this.tfoot += '</th></tr>'
|
|
660
|
-
return data
|
|
661
|
-
}
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.search' v-ref:criteria>
|
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
+
<div class="row" v-if="!$parent.$parent.$parent.showItem">
|
|
7
|
+
<div :class="$parent.$parent.style">
|
|
8
|
+
<label class="font_normal_body">安检计划</label>
|
|
9
|
+
<input type="text" class="input_search" v-model="$parent.$parent.f_check_plan.f_plan_name"
|
|
10
|
+
@click="$parent.$parent.showChooser"
|
|
11
|
+
style="width: 60%" placeholder="安检计划" readonly="readonly">
|
|
12
|
+
</div>
|
|
13
|
+
<div :class="$parent.$parent.style">
|
|
14
|
+
<label class="font_normal_body">存在隐患</label>
|
|
15
|
+
<v-select style="width:60% "
|
|
16
|
+
class="select select_list"
|
|
17
|
+
:value.sync="model.f_has_defect"
|
|
18
|
+
v-model="model.f_has_defect"
|
|
19
|
+
:options='$parent.$parent.hasDefectOptions'
|
|
20
|
+
:placeholder='model.f_has_defect'
|
|
21
|
+
condition="f_has_defect = '{}'"
|
|
22
|
+
close-on-select>
|
|
23
|
+
</v-select>
|
|
24
|
+
</div>
|
|
25
|
+
<div :class="$parent.$parent.style">
|
|
26
|
+
<label class="font_normal_body">用户编号</label>
|
|
27
|
+
<input type="text" class="input_search" v-model="model.f_userinfo_code"
|
|
28
|
+
condition="f_userinfo_code = '{}'"
|
|
29
|
+
style="width: 60%" placeholder="用户编号">
|
|
30
|
+
</div>
|
|
31
|
+
<div :class="$parent.$parent.style">
|
|
32
|
+
<label class="font_normal_body">结果查询</label>
|
|
33
|
+
<v-select
|
|
34
|
+
placeholder='处理结果查询'
|
|
35
|
+
:value-single="true"
|
|
36
|
+
class="select select_list" style="width: 60%"
|
|
37
|
+
v-model='model.f_repaired'
|
|
38
|
+
:value.sync="model.f_repaired"
|
|
39
|
+
:options='$parent.$parent.repaired'
|
|
40
|
+
condition="f_repaired = '{}'"
|
|
41
|
+
close-on-select clear-button> </v-select>
|
|
42
|
+
</div>
|
|
43
|
+
<div class=" col-sm-4 form-group button-range" >
|
|
44
|
+
<div class="span" style="float: right;margin-top: 8px">
|
|
45
|
+
<div style="float: right" class="button_spacing"
|
|
46
|
+
:class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
|
|
47
|
+
@click="$parent.$parent.hiddenr()"></div>
|
|
48
|
+
<div style="float: right" class="button_spacing"
|
|
49
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
50
|
+
@click="$parent.$parent.hidden()"></div>
|
|
51
|
+
<button style="float: right" class="button_search button_spacing" @click="search">查询</button>
|
|
52
|
+
<div style="float: right">
|
|
53
|
+
<export-excel-safe :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids,f_defect_content:$parent.$parent.model.f_defect_content}"
|
|
54
|
+
:field="$parent.$parent.getfield"
|
|
55
|
+
progress="safeGetExportProgress"
|
|
56
|
+
sqlurl="rs/logic/SafeExportExcel" sql-name="GetCheckPaperByDefect" template-name='安检隐患明细' :choose-col="true"></export-excel-safe>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="row" v-if="$parent.$parent.criteriaShow&&!$parent.$parent.$parent.showItem">
|
|
62
|
+
<div :class="$parent.$parent.style">
|
|
63
|
+
<label class="font_normal_body">区域</label>
|
|
64
|
+
<v-select class="select_list select"
|
|
65
|
+
placeholder='片区/管理站' style="width: 60%"
|
|
66
|
+
:value.sync="model.f_slice_area" v-model="model.f_slice_area"
|
|
67
|
+
:options='$parent.$parent.sliceArea'
|
|
68
|
+
filer-key="name"
|
|
69
|
+
close-on-select clear-button
|
|
70
|
+
condition="f_slice_area='{}'"
|
|
71
|
+
@change="$parent.$parent.getmeterbook(model.f_slice_area)"
|
|
72
|
+
:value-single="true">
|
|
73
|
+
</v-select>
|
|
74
|
+
</div>
|
|
75
|
+
<div :class="$parent.$parent.style2" style="margin: 0">
|
|
76
|
+
<role-selector-safe
|
|
77
|
+
:value-multiple="true"
|
|
78
|
+
:value-close="false"
|
|
79
|
+
role-name="安检员"
|
|
80
|
+
role-lable="安 检 员 "
|
|
81
|
+
@re-res="$parent.$parent.getRes"
|
|
82
|
+
:value.sync="model.f_checker_id"
|
|
83
|
+
v-model="model.f_checker_id"
|
|
84
|
+
condition="f_checker_name in {}">
|
|
85
|
+
</role-selector-safe>
|
|
86
|
+
</div>
|
|
87
|
+
|
|
88
|
+
<div :class="$parent.$parent.style">
|
|
89
|
+
<label class="font_normal_body">抄 表 册</label>
|
|
90
|
+
<v-select class="select_list select"
|
|
91
|
+
placeholder='抄表册' style="width: 60%"
|
|
92
|
+
:value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
|
|
93
|
+
:options='$parent.$parent.cbc'
|
|
94
|
+
filer-key="name"
|
|
95
|
+
close-on-select clear-button
|
|
96
|
+
condition="f_meter_book_num={}"
|
|
97
|
+
:value-single="true">
|
|
98
|
+
</v-select>
|
|
99
|
+
</div>
|
|
100
|
+
<div :class="$parent.$parent.style">
|
|
101
|
+
<label class="font_normal_body">起始时间</label>
|
|
102
|
+
<datepicker
|
|
103
|
+
placeholder='起始时间' style="width:60%"
|
|
104
|
+
:disabled-days-of-week="[]"
|
|
105
|
+
:format="'yyyy-MM-dd'"
|
|
106
|
+
:show-rest-button="reset"
|
|
107
|
+
:value.sync="model.f_start_time"
|
|
108
|
+
v-model="model.f_start_time"
|
|
109
|
+
condition="f_offsite_time >= '{} 00:00:00'">
|
|
110
|
+
</datepicker>
|
|
111
|
+
</div>
|
|
112
|
+
<div :class="$parent.$parent.style">
|
|
113
|
+
<label class="font_normal_body">结束时间</label>
|
|
114
|
+
<datepicker
|
|
115
|
+
placeholder='结束时间' style="width:60%"
|
|
116
|
+
:disabled-days-of-week="[]"
|
|
117
|
+
:format="'yyyy-MM-dd'"
|
|
118
|
+
:show-rest-button="reset"
|
|
119
|
+
:value.sync="model.f_end_time"
|
|
120
|
+
v-model="model.f_end_time"
|
|
121
|
+
condition="f_offsite_time <= '{} 23:59:59'">
|
|
122
|
+
</datepicker>
|
|
123
|
+
</div>
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
</div>
|
|
127
|
+
<div class="row" v-if="$parent.$parent.criteriaShow&&!$parent.$parent.$parent.showItem">
|
|
128
|
+
<div :class="$parent.$parent.style">
|
|
129
|
+
<label class="font_normal_body">区  县</label>
|
|
130
|
+
<input type="text" class="input_search" v-model="model.f_pcd"
|
|
131
|
+
condition="f_pcd like '%{}%'"
|
|
132
|
+
style="width: 60%" placeholder="区/县" >
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
<div :class="$parent.$parent.style">
|
|
136
|
+
<label class="font_normal_body">用气性质</label>
|
|
137
|
+
<v-select class="select_list select"
|
|
138
|
+
placeholder='用气性质' style="width: 60%"
|
|
139
|
+
:value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
140
|
+
:options='$parent.$parent.gasproperties'
|
|
141
|
+
@change="$parent.$parent.changeGasproperties"
|
|
142
|
+
filer-key="name"
|
|
143
|
+
close-on-select clear-button
|
|
144
|
+
condition="f_gasproperties = '{}'"
|
|
145
|
+
:value-single="true">
|
|
146
|
+
</v-select>
|
|
147
|
+
</div>
|
|
148
|
+
<div :class="$parent.$parent.style">
|
|
149
|
+
<label class="font_normal_body">二级性质</label>
|
|
150
|
+
<v-select class="select_list select"
|
|
151
|
+
placeholder='二级性质' style="width: 60%"
|
|
152
|
+
:value.sync="model.f_gasproperties_second" v-model="model.f_gasproperties_second"
|
|
153
|
+
:options='$parent.$parent.gasproperties2'
|
|
154
|
+
filer-key="name"
|
|
155
|
+
close-on-select clear-button
|
|
156
|
+
condition="f_gasproperties_second= '{}'"
|
|
157
|
+
:value-single="true">
|
|
158
|
+
</v-select>
|
|
159
|
+
</div>
|
|
160
|
+
<div :class="$parent.$parent.style">
|
|
161
|
+
<label class="font_normal_body">网 格 员</label>
|
|
162
|
+
<v-select class="select_list select"
|
|
163
|
+
placeholder='请选择' style="width: 60%"
|
|
164
|
+
:value.sync="model.f_book_checker" v-model="model.f_book_checker"
|
|
165
|
+
:options='$parent.$parent.users'
|
|
166
|
+
filer-key="name"
|
|
167
|
+
close-on-select clear-button
|
|
168
|
+
condition="f_book_checker like '%{}%' and f_checker_name = '{}'"
|
|
169
|
+
:value-single="true">
|
|
170
|
+
</v-select>
|
|
171
|
+
</div>
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
</div>
|
|
175
|
+
|
|
176
|
+
<div class="row" v-if="$parent.$parent.$parent.showItem">
|
|
177
|
+
<div :class="$parent.$parent.style">
|
|
178
|
+
<label class="font_normal_body">安检计划</label>
|
|
179
|
+
<input type="text" class="input_search" v-model="$parent.$parent.f_check_plan.f_plan_name"
|
|
180
|
+
@click="$parent.$parent.showChooser"
|
|
181
|
+
style="width: 60%" placeholder="安检计划" readonly="readonly">
|
|
182
|
+
</div>
|
|
183
|
+
<div :class="$parent.$parent.style">
|
|
184
|
+
<label class="font_normal_body">存在隐患</label>
|
|
185
|
+
<v-select style="width:60% "
|
|
186
|
+
class="select select_list"
|
|
187
|
+
:value.sync="model.f_has_defect"
|
|
188
|
+
v-model="model.f_has_defect"
|
|
189
|
+
:options='$parent.$parent.hasDefectOptions'
|
|
190
|
+
:placeholder='model.f_has_defect'
|
|
191
|
+
condition="f_has_defect = '{}'"
|
|
192
|
+
close-on-select>
|
|
193
|
+
</v-select>
|
|
194
|
+
</div>
|
|
195
|
+
|
|
196
|
+
<div class=" col-sm-4 form-group button-range">
|
|
197
|
+
<div class="span" style="float: right;margin-top: 8px;margin-right: 50px">
|
|
198
|
+
<div style="float: right" class="button_spacing"
|
|
199
|
+
:class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
|
|
200
|
+
@click="$parent.$parent.hiddenr()"></div>
|
|
201
|
+
<div style="float: right" class="button_spacing"
|
|
202
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
203
|
+
@click="$parent.$parent.hidden()"></div>
|
|
204
|
+
<button style="float: right" class="button_search button_spacing" @click="search">查询</button>
|
|
205
|
+
<div style="float: right">
|
|
206
|
+
<export-excel-safe :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids,f_defect_content:$parent.$parent.model.f_defect_content}"
|
|
207
|
+
:field="$parent.$parent.getfield"
|
|
208
|
+
progress="safeGetExportProgress"
|
|
209
|
+
sqlurl="rs/logic/SafeExportExcel" sql-name="GetCheckPaperByDefect" template-name='安检隐患明细' :choose-col="true"></export-excel-safe>
|
|
210
|
+
</div>
|
|
211
|
+
</div>
|
|
212
|
+
</div>
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
</div>
|
|
217
|
+
<div class="row" v-if="$parent.$parent.criteriaShow&&$parent.$parent.$parent.showItem">
|
|
218
|
+
<div :class="$parent.$parent.style">
|
|
219
|
+
<label class="font_normal_body">用户编号</label>
|
|
220
|
+
<input type="text" class="input_search" v-model="model.f_userinfo_code"
|
|
221
|
+
condition="f_userinfo_code = '{}'"
|
|
222
|
+
style="width: 60%" placeholder="用户编号">
|
|
223
|
+
</div>
|
|
224
|
+
<div :class="$parent.$parent.style">
|
|
225
|
+
<label class="font_normal_body">结果查询</label>
|
|
226
|
+
<v-select
|
|
227
|
+
placeholder='处理结果查询'
|
|
228
|
+
:value-single="true"
|
|
229
|
+
class="select select_list" style="width: 60%"
|
|
230
|
+
v-model='model.f_repaired'
|
|
231
|
+
:value.sync="model.f_repaired"
|
|
232
|
+
:options='$parent.$parent.repaired'
|
|
233
|
+
condition="f_repaired = '{}'"
|
|
234
|
+
close-on-select clear-button> </v-select>
|
|
235
|
+
</div>
|
|
236
|
+
|
|
237
|
+
<div :class="$parent.$parent.style2" style="margin: 0">
|
|
238
|
+
<role-selector-safe
|
|
239
|
+
:value-multiple="true"
|
|
240
|
+
:value-close="false"
|
|
241
|
+
role-name="安检员"
|
|
242
|
+
role-lable="安 检 员 "
|
|
243
|
+
@re-res="$parent.$parent.getRes"
|
|
244
|
+
:value.sync="model.f_checker_id"
|
|
245
|
+
v-model="model.f_checker_id"
|
|
246
|
+
condition="f_checker_name in {}">
|
|
247
|
+
</role-selector-safe>
|
|
248
|
+
</div>
|
|
249
|
+
</div>
|
|
250
|
+
<div class="row" v-if="$parent.$parent.criteriaShow && $parent.$parent.$parent.showItem">
|
|
251
|
+
<div :class="$parent.$parent.style">
|
|
252
|
+
<label class="font_normal_body">片  区</label>
|
|
253
|
+
<v-select class="select_list select"
|
|
254
|
+
placeholder='片区/管理站' style="width: 60%"
|
|
255
|
+
:value.sync="model.f_slice_area" v-model="model.f_slice_area"
|
|
256
|
+
:options='$parent.$parent.sliceArea'
|
|
257
|
+
filer-key="name"
|
|
258
|
+
close-on-select clear-button
|
|
259
|
+
condition="f_slice_area='{}'"
|
|
260
|
+
@change="$parent.$parent.getmeterbook(model.f_slice_area)"
|
|
261
|
+
:value-single="true">
|
|
262
|
+
</v-select>
|
|
263
|
+
</div>
|
|
264
|
+
<div class="font_normal_body">
|
|
265
|
+
<label class="font_normal_body">区  域</label>
|
|
266
|
+
<v-select class="select_list select"
|
|
267
|
+
placeholder='请选择' style="width: 60%"
|
|
268
|
+
:value.sync="model.f_pcd" v-model="model.f_pcd"
|
|
269
|
+
:options='$parent.$parent.pcds'
|
|
270
|
+
filer-key="name"
|
|
271
|
+
close-on-select clear-button
|
|
272
|
+
condition="f_pcd_id ='{}'"
|
|
273
|
+
:value-single="true">
|
|
274
|
+
</v-select>
|
|
275
|
+
</div>
|
|
276
|
+
<div :class="$parent.$parent.style">
|
|
277
|
+
<label class="font_normal_body">抄 表 册</label>
|
|
278
|
+
<v-select class="select_list select"
|
|
279
|
+
placeholder='抄表册' style="width: 60%"
|
|
280
|
+
:value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
|
|
281
|
+
:options='$parent.$parent.cbc'
|
|
282
|
+
filer-key="name"
|
|
283
|
+
close-on-select clear-button
|
|
284
|
+
condition="f_meter_book_num={}"
|
|
285
|
+
:value-single="true">
|
|
286
|
+
</v-select>
|
|
287
|
+
</div>
|
|
288
|
+
<div :class="$parent.$parent.style">
|
|
289
|
+
<label class="font_normal_body">起始时间</label>
|
|
290
|
+
<datepicker
|
|
291
|
+
placeholder='起始时间' style="width:60%"
|
|
292
|
+
:disabled-days-of-week="[]"
|
|
293
|
+
:format="'yyyy-MM-dd'"
|
|
294
|
+
:show-rest-button="reset"
|
|
295
|
+
:value.sync="model.f_start_time"
|
|
296
|
+
v-model="model.f_start_time"
|
|
297
|
+
condition="f_offsite_time >= '{} 00:00:00'">
|
|
298
|
+
</datepicker>
|
|
299
|
+
</div>
|
|
300
|
+
<div :class="$parent.$parent.style">
|
|
301
|
+
<label class="font_normal_body">结束时间</label>
|
|
302
|
+
<datepicker
|
|
303
|
+
placeholder='结束时间' style="width:60%"
|
|
304
|
+
:disabled-days-of-week="[]"
|
|
305
|
+
:format="'yyyy-MM-dd'"
|
|
306
|
+
:show-rest-button="reset"
|
|
307
|
+
:value.sync="model.f_end_time"
|
|
308
|
+
v-model="model.f_end_time"
|
|
309
|
+
condition="f_offsite_time <= '{} 23:59:59'">
|
|
310
|
+
</datepicker>
|
|
311
|
+
</div>
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
</div>
|
|
315
|
+
|
|
316
|
+
<div class="row" v-if="$parent.$parent.criteriaShow && $parent.$parent.$parent.showItem">
|
|
317
|
+
<div :class="$parent.$parent.style">
|
|
318
|
+
<label class="font_normal_body">区  县</label>
|
|
319
|
+
<input type="text" class="input_search" v-model="model.f_pcd"
|
|
320
|
+
condition="f_pcd like '%{}%'"
|
|
321
|
+
style="width: 60%" placeholder="区/县" >
|
|
322
|
+
</div>
|
|
323
|
+
|
|
324
|
+
<div :class="$parent.$parent.style">
|
|
325
|
+
<label class="font_normal_body">用气性质</label>
|
|
326
|
+
<v-select class="select_list select"
|
|
327
|
+
placeholder='用气性质' style="width: 60%"
|
|
328
|
+
:value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
329
|
+
:options='$parent.$parent.gasproperties'
|
|
330
|
+
@change="$parent.$parent.changeGasproperties"
|
|
331
|
+
filer-key="name"
|
|
332
|
+
close-on-select clear-button
|
|
333
|
+
condition="f_gasproperties = '{}'"
|
|
334
|
+
:value-single="true">
|
|
335
|
+
</v-select>
|
|
336
|
+
</div>
|
|
337
|
+
<div :class="$parent.$parent.style">
|
|
338
|
+
<label class="font_normal_body">二级性质</label>
|
|
339
|
+
<v-select class="select_list select"
|
|
340
|
+
placeholder='二级性质' style="width: 60%"
|
|
341
|
+
:value.sync="model.f_gasproperties_second" v-model="model.f_gasproperties_second"
|
|
342
|
+
:options='$parent.$parent.gasproperties2'
|
|
343
|
+
filer-key="name"
|
|
344
|
+
close-on-select clear-button
|
|
345
|
+
condition="f_gasproperties_second= '{}'"
|
|
346
|
+
:value-single="true">
|
|
347
|
+
</v-select>
|
|
348
|
+
</div>
|
|
349
|
+
<div :class="$parent.$parent.style">
|
|
350
|
+
<label class="font_normal_body">网 格 员</label>
|
|
351
|
+
<v-select class="select_list select"
|
|
352
|
+
placeholder='请选择' style="width: 60%"
|
|
353
|
+
:value.sync="model.f_book_checker" v-model="model.f_book_checker"
|
|
354
|
+
:options='$parent.$parent.users'
|
|
355
|
+
filer-key="name"
|
|
356
|
+
close-on-select clear-button
|
|
357
|
+
condition="f_book_checker like '%{}%' and f_checker_name = '{}'"
|
|
358
|
+
:value-single="true">
|
|
359
|
+
</v-select>
|
|
360
|
+
</div>
|
|
361
|
+
|
|
362
|
+
</div>
|
|
363
|
+
</div>
|
|
364
|
+
</criteria>
|
|
365
|
+
<data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
|
|
366
|
+
<template partial='head'>
|
|
367
|
+
<tr>
|
|
368
|
+
<th><nobr>入户状态</nobr></th>
|
|
369
|
+
<th><nobr>用户编号</nobr></th>
|
|
370
|
+
<th><nobr>用户名</nobr></th>
|
|
371
|
+
<th><nobr>用户电话</nobr></th>
|
|
372
|
+
<th><nobr>用户小区</nobr></th>
|
|
373
|
+
<th><nobr>区域</nobr></th>
|
|
374
|
+
<th><nobr>用户地址</nobr></th>
|
|
375
|
+
<th><nobr>安检时间</nobr></th>
|
|
376
|
+
<th><nobr>安检员</nobr></th>
|
|
377
|
+
<th><nobr>计划名</nobr></th>
|
|
378
|
+
<th><nobr>是否有隐患</nobr></th>
|
|
379
|
+
<th><nobr>隐患数</nobr></th>
|
|
380
|
+
<!-- <th><nobr>整改数</nobr></th>-->
|
|
381
|
+
|
|
382
|
+
</tr>
|
|
383
|
+
</template>
|
|
384
|
+
<template partial='body'>
|
|
385
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_entry_status}}</td>
|
|
386
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_userinfo_code}}</td>
|
|
387
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_user_name}}</td>
|
|
388
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_user_phone}}</td>
|
|
389
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_residential_area}}</td>
|
|
390
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_slice_area}}</td>
|
|
391
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_address}}</td>
|
|
392
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_offsite_time}}</td>
|
|
393
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_checker_name}}</td>
|
|
394
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_plan_name}}</td>
|
|
395
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_has_defect}}</td>
|
|
396
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_defect_count}}</td>
|
|
397
|
+
<!-- <td style="text-align: center;white-space:nowrap;">{{row.f_repair_count}}</td>-->
|
|
398
|
+
|
|
399
|
+
</template>
|
|
400
|
+
</data-grid>
|
|
401
|
+
</criteria-paged>
|
|
402
|
+
|
|
403
|
+
<modal :show.sync="showModal" v-ref:modal>
|
|
404
|
+
<div slot="modal-header" class="modal-header">
|
|
405
|
+
<h4 class="modal-title">
|
|
406
|
+
选择计划
|
|
407
|
+
</h4>
|
|
408
|
+
</div>
|
|
409
|
+
<div slot="modal-body" class="modal-body">
|
|
410
|
+
<plan-chooser :f.sync="this.$login.f" v-ref:chooser></plan-chooser>
|
|
411
|
+
</div>
|
|
412
|
+
<div slot="modal-footer" class="modal-footer" style="text-align: center">
|
|
413
|
+
<button class="button_search" @click="ok">确认</button>
|
|
414
|
+
<button class="button_search" @click="cancel">取消</button>
|
|
415
|
+
</div>
|
|
416
|
+
</modal>
|
|
417
|
+
</div>
|
|
418
|
+
</template>
|
|
419
|
+
<script>
|
|
420
|
+
import {PagedList} from 'vue-client'
|
|
421
|
+
import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
|
|
422
|
+
import co from 'co'
|
|
423
|
+
|
|
424
|
+
let select = function* (self) {
|
|
425
|
+
let http = new HttpResetClass()
|
|
426
|
+
let getGasman = yield http.load('POST', '/rs/search', {
|
|
427
|
+
source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
|
|
428
|
+
userid: self.$login.f.id
|
|
429
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
430
|
+
//tag
|
|
431
|
+
self.checkersid.push({label: '全部', value: ''})
|
|
432
|
+
getGasman.data.forEach((checker) => {
|
|
433
|
+
self.checkersid.push({label: checker.name, value: checker.name})
|
|
434
|
+
})
|
|
435
|
+
}
|
|
436
|
+
export default {
|
|
437
|
+
title: '隐患查询',
|
|
438
|
+
data() {
|
|
439
|
+
let model = new PagedList('rs/sql/GetCheckPaperByDefect', 20, {
|
|
440
|
+
f_filialeids: 'this.f_filialeids',f_defect_content: 'this.f_defect_content'
|
|
441
|
+
})
|
|
442
|
+
model.f_filialeids = '(' + this.$login.f.orgid + ')'
|
|
443
|
+
model.f_defect_content="CASE WHEN CHARINDEX( '\"result\":\"正常\"', f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( f_defect_content, len( f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
|
|
444
|
+
return {
|
|
445
|
+
repaired:[{label: '未修', value: '未修'}, {label: '已修', value: '已修'}],
|
|
446
|
+
hasDefectOptions: [{label: '全部', value: ''}, {label: '有隐患', value: '有隐患'}, {label: '无隐患', value: '无隐患'}],
|
|
447
|
+
f: this.$login.f,
|
|
448
|
+
model: model,
|
|
449
|
+
criteriaShow: false,
|
|
450
|
+
showModal: false,
|
|
451
|
+
f_check_plan: {f_plan_name: '', id: ''},
|
|
452
|
+
sumsmodel: {},
|
|
453
|
+
all: false,
|
|
454
|
+
fields: {},
|
|
455
|
+
gasproperties:[{label:'全部',value:''},...this.$appdata.getParam("民用"),...this.$appdata.getParam("非民用")],
|
|
456
|
+
gasproperties2:[],
|
|
457
|
+
modelval: [],
|
|
458
|
+
users:[{label: '全部', value: ''}],
|
|
459
|
+
checkersid: [],
|
|
460
|
+
sliceArea: [],
|
|
461
|
+
pcds:[],
|
|
462
|
+
cbc:[],
|
|
463
|
+
cbcs:[],
|
|
464
|
+
thead: '',
|
|
465
|
+
headData: ['入户状态','用户编号','用户名','用户电话','用户小区','区域','用户地址','安检时间','安检员','计划名','是否有隐患','隐患数','隐患情况'],
|
|
466
|
+
bodyData: ['f_entry_status','f_userinfo_code','f_user_name','f_user_phone','f_residential_area','f_slice_area','f_address','f_offsite_time','f_checker_name','f_plan_name','f_has_defect','f_defect_count','f_defect_content']
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
props:{
|
|
470
|
+
style: {
|
|
471
|
+
type: String,
|
|
472
|
+
default: 'col-sm-2 form-group'
|
|
473
|
+
},
|
|
474
|
+
style2: {
|
|
475
|
+
type: String,
|
|
476
|
+
default: 'col-sm-4 form-group'
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
},
|
|
480
|
+
|
|
481
|
+
methods: {
|
|
482
|
+
//获取省市区列表
|
|
483
|
+
getPcd(val) {
|
|
484
|
+
this.pcds = [{label: '全部', value: ''}]
|
|
485
|
+
new HttpResetClass().load("POST", `/rs/sql/safe_singleTable_OrderBy`,
|
|
486
|
+
{data: {items: "*", tablename: "t_pcd", orderitem: "id", condition: `f_orgid in ${val}`}},
|
|
487
|
+
{resolveMsg: null, rejectMsg: null}).then((pcdlist) => {
|
|
488
|
+
pcdlist.data.forEach((result) => {
|
|
489
|
+
this.pcds.push({label: result.f_pcd, value: result.id})
|
|
490
|
+
})
|
|
491
|
+
})
|
|
492
|
+
},
|
|
493
|
+
changeGasproperties(value){
|
|
494
|
+
console.log("changeGasproperties",value)
|
|
495
|
+
this.gasproperties2 = [{label:'全部',value:''},...this.$appdata.getParam(value)]
|
|
496
|
+
this.$refs.paged.$refs.criteria.model.f_gasproperties_second = ''
|
|
497
|
+
},
|
|
498
|
+
getmeterbook(val){
|
|
499
|
+
this.cbc=[]
|
|
500
|
+
this.cbc.push({
|
|
501
|
+
label:'全部',
|
|
502
|
+
value:''
|
|
503
|
+
})
|
|
504
|
+
if (val==''){
|
|
505
|
+
|
|
506
|
+
this.cbcs.forEach(res=>{
|
|
507
|
+
this.cbc.push({
|
|
508
|
+
label:res.f_book_name,
|
|
509
|
+
value:res.id
|
|
510
|
+
})
|
|
511
|
+
})
|
|
512
|
+
}else{
|
|
513
|
+
this.cbcs.forEach(res=>{
|
|
514
|
+
if (res.f_book_slice_area==val){
|
|
515
|
+
this.cbc.push({
|
|
516
|
+
label:res.f_book_name,
|
|
517
|
+
value:res.id
|
|
518
|
+
})
|
|
519
|
+
}
|
|
520
|
+
})
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
|
|
524
|
+
Mreadibook(val){
|
|
525
|
+
//tag
|
|
526
|
+
//tag
|
|
527
|
+
this.sliceArea=[]
|
|
528
|
+
if (val){
|
|
529
|
+
new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
|
|
530
|
+
items: 'name',
|
|
531
|
+
tablename: 't_zone',
|
|
532
|
+
condition: `parentid in ${val}`,
|
|
533
|
+
orderitem: 'id'
|
|
534
|
+
}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
535
|
+
this.sliceArea.push({
|
|
536
|
+
label:'全部',
|
|
537
|
+
value:''
|
|
538
|
+
})
|
|
539
|
+
res.data.forEach(ress=>{
|
|
540
|
+
this.sliceArea.push({
|
|
541
|
+
label:ress.name,
|
|
542
|
+
value:ress.name
|
|
543
|
+
})
|
|
544
|
+
})
|
|
545
|
+
|
|
546
|
+
})
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
getAllMeterBook(val){
|
|
550
|
+
//tag
|
|
551
|
+
//tag
|
|
552
|
+
this.cbcs=[]
|
|
553
|
+
if (val){
|
|
554
|
+
new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
|
|
555
|
+
items: 'f_book_name,f_book_slice_area,id',
|
|
556
|
+
tablename: 't_meter_book',
|
|
557
|
+
condition: `f_filiale_id in ${val}`,
|
|
558
|
+
orderitem: 'id'
|
|
559
|
+
}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
560
|
+
res.data.forEach(ress=>{
|
|
561
|
+
this.cbcs.push({
|
|
562
|
+
id:ress.id,
|
|
563
|
+
f_book_name:ress.f_book_name,
|
|
564
|
+
f_book_slice_area:ress.f_book_slice_area
|
|
565
|
+
})
|
|
566
|
+
})
|
|
567
|
+
this.cbc=[]
|
|
568
|
+
this.cbc.push({
|
|
569
|
+
label:'全部',
|
|
570
|
+
value:''
|
|
571
|
+
})
|
|
572
|
+
this.cbcs.forEach(res=>{
|
|
573
|
+
this.cbc.push({
|
|
574
|
+
label:res.f_book_name,
|
|
575
|
+
value:res.id
|
|
576
|
+
})
|
|
577
|
+
})
|
|
578
|
+
})
|
|
579
|
+
}
|
|
580
|
+
},
|
|
581
|
+
initBookChecker(){
|
|
582
|
+
new HttpResetClass().load('POST', '/rs/search', {
|
|
583
|
+
data: {
|
|
584
|
+
source: `root.getResourceById($${this.$login.f.orgid}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($网格员$) != -1)`,
|
|
585
|
+
userid: this.$login.f.id
|
|
586
|
+
}
|
|
587
|
+
}, {resolveMsg: null, rejectMsg: null}).then(res=>{
|
|
588
|
+
let data = res.data
|
|
589
|
+
const addedNames = new Set()
|
|
590
|
+
this.users = []
|
|
591
|
+
data.forEach(user => {
|
|
592
|
+
if (user.state === '在职') {
|
|
593
|
+
if (!addedNames.has(user.name)) {
|
|
594
|
+
this.users.push({ label: user.name, value: user.name })
|
|
595
|
+
addedNames.add(user.name)
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
});
|
|
599
|
+
})
|
|
600
|
+
},
|
|
601
|
+
hiddenr() {
|
|
602
|
+
this.$parent.showItem = !this.$parent.showItem
|
|
603
|
+
},
|
|
604
|
+
hidden() {
|
|
605
|
+
this.criteriaShow = !this.criteriaShow
|
|
606
|
+
},
|
|
607
|
+
search(args) {
|
|
608
|
+
if (this.f_check_plan.f_plan_name) {
|
|
609
|
+
args.condition += ` and f_check_plan_id = '${this.f_check_plan.id}'`
|
|
610
|
+
}
|
|
611
|
+
this.model.search(args.condition, args.model)
|
|
612
|
+
},
|
|
613
|
+
getRes(obj) {
|
|
614
|
+
this.model.f_filialeids = this.$login.convertToIn(obj.resids);
|
|
615
|
+
this.Mreadibook(this.model.f_filialeids)
|
|
616
|
+
this.getAllMeterBook(this.model.f_filialeids)
|
|
617
|
+
this.getPcd(this.model.f_filialeids)
|
|
618
|
+
},
|
|
619
|
+
showChooser() {
|
|
620
|
+
this.showModal = true
|
|
621
|
+
},
|
|
622
|
+
ok() {
|
|
623
|
+
this.showModal = false
|
|
624
|
+
if (this.$refs.modal.$children[0].selectedRow.id) {
|
|
625
|
+
this.f_check_plan = this.$refs.modal.$children[0].selectedRow
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
cancel() {
|
|
629
|
+
this.showModal = false
|
|
630
|
+
this.f_check_plan = {f_plan_name: '', id: ''}
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
ready() {
|
|
634
|
+
this.$refs.paged.$refs.criteria.model.f_has_defect = '有隐患'
|
|
635
|
+
this.initBookChecker()
|
|
636
|
+
let gen = select(this)
|
|
637
|
+
// this.Mreadibook(`('${this.$login.f.orgid}')`)
|
|
638
|
+
co(gen)
|
|
639
|
+
},
|
|
640
|
+
computed: {
|
|
641
|
+
selected() {
|
|
642
|
+
return this.$refs.paged.$refs.grid.selected
|
|
643
|
+
},
|
|
644
|
+
getfield(){
|
|
645
|
+
//tag
|
|
646
|
+
let data = {}
|
|
647
|
+
this.bodyData.forEach((value, index)=>{
|
|
648
|
+
data[this.bodyData[index]] = this.headData[index]
|
|
649
|
+
})
|
|
650
|
+
//合计字段打印
|
|
651
|
+
this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
|
|
652
|
+
if(this.sumsmodel){
|
|
653
|
+
Object.keys(this.sumsmodel).forEach((key) => {
|
|
654
|
+
this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
|
|
655
|
+
})
|
|
656
|
+
}else{
|
|
657
|
+
this.tfoot += '暂无'
|
|
658
|
+
}
|
|
659
|
+
this.tfoot += '</th></tr>'
|
|
660
|
+
return data
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
</script>
|