safecheck-client 3.0.34-3 → 3.0.34-4
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/FormPrint.md +18 -18
- package/docs/GetParams.md +11 -11
- package/docs/GridTree.md +47 -47
- 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/PrintFile.md +38 -38
- 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/tree.md +40 -40
- package/docs//345/274/200/345/217/221/346/226/207/346/241/243/Snippets.md +28 -28
- package/docs//345/274/200/345/217/221/346/226/207/346/241/243/vue-strap/345/217/230/346/233/264/350/256/260/345/275/225.md +7 -7
- package/docs//345/274/200/345/217/221/346/226/207/346/241/243/vue/345/217/230/346/233/264/350/256/260/345/275/225.md +13 -13
- package/docs//345/274/200/345/217/221/346/226/207/346/241/243//345/274/200/345/217/221/347/216/257/345/242/203/350/256/276/347/275/256.md +77 -77
- package/docs//347/225/214/351/235/242/345/210/266/344/275/234/350/247/204/350/214/203.md +54 -54
- package/examples/AddressList/App.vue +13 -13
- package/examples/AddressList/index.html +11 -11
- package/examples/DispatchList/App.vue +10 -10
- package/examples/DispatchList/BaseTree.vue +13 -13
- package/examples/DispatchList/Init.vue +22 -22
- package/examples/DispatchList/Test.vue +20 -20
- package/examples/DispatchList/index.html +11 -11
- package/examples/DispatchList/main.js +18 -18
- package/home.html +16 -16
- package/package.json +1 -1
- package/publish.bat +7 -7
- package/release.bat +5 -5
- package/src/Widget.vue +13 -13
- package/src/android-bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
- package/src/android-bootstrap/less/.csscomb.json +304 -304
- package/src/android-bootstrap/less/.csslintrc +19 -19
- package/src/android-bootstrap/less/alerts.less +73 -73
- package/src/android-bootstrap/less/badges.less +66 -66
- package/src/android-bootstrap/less/bootstrap.less +56 -56
- package/src/android-bootstrap/less/breadcrumbs.less +26 -26
- package/src/android-bootstrap/less/button-groups.less +247 -247
- package/src/android-bootstrap/less/buttons.less +173 -173
- package/src/android-bootstrap/less/carousel.less +269 -269
- package/src/android-bootstrap/less/close.less +34 -34
- package/src/android-bootstrap/less/code.less +69 -69
- package/src/android-bootstrap/less/component-animations.less +33 -33
- package/src/android-bootstrap/less/grid.less +84 -84
- package/src/android-bootstrap/less/input-groups.less +167 -167
- package/src/android-bootstrap/less/jumbotron.less +52 -52
- package/src/android-bootstrap/less/labels.less +64 -64
- package/src/android-bootstrap/less/list-group.less +141 -141
- package/src/android-bootstrap/less/media.less +66 -66
- package/src/android-bootstrap/less/mixins/alerts.less +14 -14
- package/src/android-bootstrap/less/mixins/background-variant.less +9 -9
- package/src/android-bootstrap/less/mixins/border-radius.less +18 -18
- package/src/android-bootstrap/less/mixins/buttons.less +69 -69
- package/src/android-bootstrap/less/mixins/center-block.less +7 -7
- package/src/android-bootstrap/less/mixins/clearfix.less +22 -22
- package/src/android-bootstrap/less/mixins/forms.less +90 -90
- package/src/android-bootstrap/less/mixins/gradients.less +59 -59
- package/src/android-bootstrap/less/mixins/grid-framework.less +92 -92
- package/src/android-bootstrap/less/mixins/grid.less +122 -122
- package/src/android-bootstrap/less/mixins/hide-text.less +21 -21
- package/src/android-bootstrap/less/mixins/image.less +33 -33
- package/src/android-bootstrap/less/mixins/labels.less +12 -12
- package/src/android-bootstrap/less/mixins/list-group.less +30 -30
- package/src/android-bootstrap/less/mixins/nav-divider.less +10 -10
- package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -9
- package/src/android-bootstrap/less/mixins/opacity.less +8 -8
- package/src/android-bootstrap/less/mixins/pagination.less +24 -24
- package/src/android-bootstrap/less/mixins/panels.less +24 -24
- package/src/android-bootstrap/less/mixins/progress-bar.less +10 -10
- package/src/android-bootstrap/less/mixins/reset-filter.less +8 -8
- package/src/android-bootstrap/less/mixins/reset-text.less +18 -18
- package/src/android-bootstrap/less/mixins/resize.less +6 -6
- package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -15
- package/src/android-bootstrap/less/mixins/size.less +10 -10
- package/src/android-bootstrap/less/mixins/tab-focus.less +9 -9
- package/src/android-bootstrap/less/mixins/table-row.less +44 -44
- package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -9
- package/src/android-bootstrap/less/mixins/text-overflow.less +8 -8
- package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -227
- package/src/android-bootstrap/less/mixins.less +40 -40
- package/src/android-bootstrap/less/modals.less +151 -151
- package/src/android-bootstrap/less/navbar.less +660 -660
- package/src/android-bootstrap/less/navs.less +290 -290
- package/src/android-bootstrap/less/normalize.less +424 -424
- package/src/android-bootstrap/less/pager.less +76 -76
- package/src/android-bootstrap/less/pagination.less +89 -89
- package/src/android-bootstrap/less/panels.less +274 -274
- package/src/android-bootstrap/less/popovers.less +131 -131
- package/src/android-bootstrap/less/print.less +101 -101
- package/src/android-bootstrap/less/progress-bars.less +87 -87
- package/src/android-bootstrap/less/responsive-embed.less +35 -35
- package/src/android-bootstrap/less/responsive-utilities.less +194 -194
- package/src/android-bootstrap/less/scaffolding.less +161 -161
- package/src/android-bootstrap/less/tables.less +262 -262
- package/src/android-bootstrap/less/theme.less +291 -291
- package/src/android-bootstrap/less/thumbnails.less +36 -36
- package/src/android-bootstrap/less/tooltip.less +102 -102
- package/src/android-bootstrap/less/type.less +303 -303
- package/src/android-bootstrap/less/utilities.less +55 -55
- package/src/android-bootstrap/less/variables.less +896 -896
- package/src/android-bootstrap/less/wells.less +29 -29
- package/src/androidTest.js +20 -20
- package/src/bootstrap/less/.csscomb.json +304 -304
- package/src/bootstrap/less/.csslintrc +19 -19
- package/src/bootstrap/less/alerts.less +73 -73
- package/src/bootstrap/less/badges.less +66 -66
- package/src/bootstrap/less/breadcrumbs.less +26 -26
- package/src/bootstrap/less/button-groups.less +247 -247
- package/src/bootstrap/less/buttons.less +172 -172
- package/src/bootstrap/less/carousel.less +269 -269
- package/src/bootstrap/less/close.less +34 -34
- package/src/bootstrap/less/code.less +69 -69
- package/src/bootstrap/less/component-animations.less +33 -33
- package/src/bootstrap/less/dropdowns.less +216 -216
- package/src/bootstrap/less/forms.less +626 -626
- package/src/bootstrap/less/grid.less +84 -84
- package/src/bootstrap/less/input-groups.less +167 -167
- package/src/bootstrap/less/jumbotron.less +52 -52
- package/src/bootstrap/less/labels.less +64 -64
- package/src/bootstrap/less/list-group.less +141 -141
- package/src/bootstrap/less/media.less +66 -66
- package/src/bootstrap/less/mixins/alerts.less +14 -14
- package/src/bootstrap/less/mixins/background-variant.less +9 -9
- package/src/bootstrap/less/mixins/border-radius.less +18 -18
- package/src/bootstrap/less/mixins/buttons.less +69 -69
- package/src/bootstrap/less/mixins/center-block.less +7 -7
- package/src/bootstrap/less/mixins/clearfix.less +22 -22
- package/src/bootstrap/less/mixins/forms.less +90 -90
- package/src/bootstrap/less/mixins/gradients.less +59 -59
- package/src/bootstrap/less/mixins/grid-framework.less +92 -92
- package/src/bootstrap/less/mixins/grid.less +122 -122
- package/src/bootstrap/less/mixins/hide-text.less +21 -21
- package/src/bootstrap/less/mixins/image.less +33 -33
- package/src/bootstrap/less/mixins/labels.less +12 -12
- package/src/bootstrap/less/mixins/list-group.less +30 -30
- package/src/bootstrap/less/mixins/nav-divider.less +10 -10
- package/src/bootstrap/less/mixins/nav-vertical-align.less +9 -9
- package/src/bootstrap/less/mixins/opacity.less +8 -8
- package/src/bootstrap/less/mixins/pagination.less +24 -24
- package/src/bootstrap/less/mixins/panels.less +24 -24
- package/src/bootstrap/less/mixins/progress-bar.less +10 -10
- package/src/bootstrap/less/mixins/reset-filter.less +8 -8
- package/src/bootstrap/less/mixins/reset-text.less +18 -18
- package/src/bootstrap/less/mixins/resize.less +6 -6
- package/src/bootstrap/less/mixins/responsive-visibility.less +15 -15
- package/src/bootstrap/less/mixins/size.less +10 -10
- package/src/bootstrap/less/mixins/tab-focus.less +9 -9
- package/src/bootstrap/less/mixins/table-row.less +44 -44
- package/src/bootstrap/less/mixins/text-emphasis.less +9 -9
- package/src/bootstrap/less/mixins/text-overflow.less +8 -8
- package/src/bootstrap/less/mixins/vendor-prefixes.less +227 -227
- package/src/bootstrap/less/mixins.less +40 -40
- package/src/bootstrap/less/modals.less +151 -151
- package/src/bootstrap/less/navbar.less +660 -660
- package/src/bootstrap/less/normalize.less +424 -424
- package/src/bootstrap/less/pager.less +76 -76
- package/src/bootstrap/less/pagination.less +89 -89
- package/src/bootstrap/less/panels.less +275 -275
- package/src/bootstrap/less/popovers.less +131 -131
- package/src/bootstrap/less/print.less +101 -101
- package/src/bootstrap/less/progress-bars.less +87 -87
- package/src/bootstrap/less/responsive-embed.less +35 -35
- package/src/bootstrap/less/responsive-utilities.less +194 -194
- package/src/bootstrap/less/scaffolding.less +161 -161
- package/src/bootstrap/less/theme.less +291 -291
- package/src/bootstrap/less/thumbnails.less +36 -36
- package/src/bootstrap/less/tooltip.less +102 -102
- package/src/bootstrap/less/type.less +303 -303
- package/src/bootstrap/less/utilities.less +55 -55
- package/src/bootstrap/less/wells.less +29 -29
- package/src/components/FileUpload.vue +696 -696
- package/src/components/Hello.vue +39 -39
- package/src/components/LeftTree.vue +27 -27
- package/src/components/android/AddGas.vue +147 -147
- package/src/components/android/AddressList.vue +61 -61
- package/src/components/android/AreaPlan.vue +572 -572
- 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/CheckerMonthly.vue +84 -84
- 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/LcheckUnplan.vue +108 -108
- package/src/components/android/MasterMain.vue +77 -77
- package/src/components/android/Menu.vue +132 -132
- package/src/components/android/NavBottom.vue +157 -157
- package/src/components/android/PaperAlarm.vue +85 -85
- package/src/components/android/PaperDeviceNoncivil.vue +214 -214
- package/src/components/android/PlumberAnnual.vue +83 -83
- package/src/components/android/PlumberAnnualDetail.vue +65 -65
- package/src/components/android/PlumberMonthly.vue +84 -84
- package/src/components/android/PostMap.vue +83 -83
- package/src/components/android/QueryCheckHistory.vue +122 -122
- package/src/components/android/QueryCheckHistoryItem.vue +62 -62
- package/src/components/android/RepairMain.vue +60 -60
- package/src/components/android/Repairman.vue +12 -12
- package/src/components/android/SafePlanItem.vue +509 -509
- package/src/components/android/SafecheckOrderV.vue +2809 -2809
- package/src/components/android/StationMaster.vue +12 -12
- package/src/components/android/SwitchValve.vue +323 -323
- package/src/components/checkerphonestate/Checker.vue +32 -32
- package/src/components/checkerphonestate/CheckerState.vue +97 -97
- package/src/components/defects/AddDefectModal.vue +120 -120
- package/src/components/defects/AddDevice.vue +95 -95
- package/src/components/defects/DefectModal.vue +101 -101
- package/src/components/defects/DevicesAndItem.vue +39 -39
- package/src/components/defects/DevicesSeting.vue +106 -106
- package/src/components/issueplan/IssuePlanMain.vue +23 -23
- package/src/components/metterfiles/AddUserfiles.vue +246 -246
- package/src/components/metterfiles/MetterFiles.vue +104 -104
- package/src/components/notice/NoticeForm.vue +100 -100
- package/src/components/notice/NoticeIssue.vue +20 -20
- package/src/components/notice/NoticeQuery.vue +76 -76
- package/src/components/paper/PicViewer.vue +18 -18
- package/src/components/paper/RepairVerifyForm.vue +76 -76
- package/src/components/phonestate/DailyTraffic.vue +57 -57
- package/src/components/phonestate/LastKnownState.vue +74 -74
- package/src/components/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/safecheckNew/android/SafecheckOrderV.vue +2731 -2731
- package/src/components/task/RepairAnnual.vue +79 -79
- package/src/components/task/RepairAnnualDetail.vue +49 -49
- package/src/components/task/RepairMonthly.vue +91 -91
- package/src/components/task/TaskAnnual.vue +77 -77
- package/src/components/task/TaskAnnualDetail.vue +47 -47
- package/src/components/task/TaskMonthly.vue +89 -89
- package/src/components/userfile/MeterFile.vue +145 -145
- package/src/components/userfile/MeterModify.vue +46 -46
- package/src/components/userfile/UserfileChange.vue +277 -277
- package/src/components/userfileaudit/MeterAuditFile.vue +129 -129
- package/src/filiale/baiyin/pc/checkUserList.vue +771 -771
- package/src/filiale/baiyin/pc.js +21 -21
- package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
- package/src/filiale/siyang/pc/NewCheckpaper.vue +1938 -1938
- package/src/filiale/siyang/pc/checkUserList.vue +786 -786
- package/src/filiale/siyang/pc.js +16 -16
- package/src/filiale/weinan/android/SafecheckDevices.vue +1295 -1295
- package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
- package/src/filiale/weinan/pc/DefectMainNew.vue +63 -63
- package/src/filiale/weinan/pc.js +46 -46
- package/src/filiale/wuan/android/SafecheckOrderV.vue +2240 -2240
- package/src/filiale/wuan/android/SafecheckUserInfo.vue +592 -592
- package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1200 -1195
- package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +480 -477
- package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +481 -478
- package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +269 -269
- package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1128 -1128
- package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +972 -972
- package/src/filiale/yangchunboneng/pc/PaperList.vue +773 -773
- package/src/filiale/yuansheng/android/SwitchValve.vue +322 -322
- package/src/filiale/yuansheng/android.js +17 -17
- package/src/main.js +33 -33
- 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,269 +1,269 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="auto select-overspread">
|
3
|
-
<criteria-paged :model="model" v-ref:paged>
|
4
|
-
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
|
5
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
6
|
-
<div class="row">
|
7
|
-
<div class="form-group col-sm-3" >
|
8
|
-
<label class="font_normal_body">客户编号</label>
|
9
|
-
<input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code" placeholder='客户编号'
|
10
|
-
condition="tui.f_userinfo_code = '{}'" @keyup.enter="search()">
|
11
|
-
</div>
|
12
|
-
<div class="form-group col-sm-3">
|
13
|
-
<label class="font_normal_body">客户名称</label>
|
14
|
-
<input type="text" class="input_search" v-model="model.f_user_name"
|
15
|
-
style="width: 60%" placeholder="客户名称" condition="tui.f_user_name like '%{}%'">
|
16
|
-
</div>
|
17
|
-
<div class="form-group col-sm-3" >
|
18
|
-
<label class="font_normal_body">地址</label>
|
19
|
-
<input type="text" class="input_search" v-model="model.f_address"
|
20
|
-
style="width: 60%" placeholder="地址" condition="tua.f_address like '%{}%'">
|
21
|
-
</div>
|
22
|
-
<div class="form-group col-sm-3" >
|
23
|
-
<label class="font_normal_body">小区名称</label>
|
24
|
-
<input type="text" class="input_search" v-model="model.f_residential_area"
|
25
|
-
style="width: 60%" placeholder="小区名称" condition="tua.f_residential_area like '%{}%'">
|
26
|
-
</div>
|
27
|
-
</div>
|
28
|
-
<div class="row">
|
29
|
-
<div class="form-group col-sm-3" >
|
30
|
-
<label class="font_normal_body">客户类型</label>
|
31
|
-
<v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
|
32
|
-
:value-single="true" style="width: 60%"
|
33
|
-
class="select_list select"
|
34
|
-
:options='$parent.$parent.userTypes' placeholder='客户类型'
|
35
|
-
close-on-select
|
36
|
-
condition="tuf.f_user_type ='{}'"></v-select>
|
37
|
-
</div>
|
38
|
-
<div class="form-group col-sm-3">
|
39
|
-
<label class="font_normal_body">通气开始</label>
|
40
|
-
<datepicker
|
41
|
-
:value.sync="model.f_gas_start"
|
42
|
-
placeholder='开始时间' style="width: 60%"
|
43
|
-
:disabled-days-of-week="[]"
|
44
|
-
:format="'yyyy-MM-dd'"
|
45
|
-
:show-rest-button="reset"
|
46
|
-
v-model="model.f_gas_start"
|
47
|
-
condition="tui.f_uservent_date > ='{} 00:00:00'">
|
48
|
-
</datepicker>
|
49
|
-
</div>
|
50
|
-
<div class="form-group col-sm-3">
|
51
|
-
<label class="font_normal_body">通气结束</label>
|
52
|
-
<datepicker
|
53
|
-
:value.sync="model.f_gas_end"
|
54
|
-
placeholder='结束时间' style="width: 60%"
|
55
|
-
:disabled-days-of-week="[]"
|
56
|
-
:format="'yyyy-MM-dd'"
|
57
|
-
:show-rest-button="reset"
|
58
|
-
v-model="model.f_gas_end"
|
59
|
-
condition="tui.f_uservent_date <= '{} 23:59:59'">
|
60
|
-
</datepicker>
|
61
|
-
</div>
|
62
|
-
</div>
|
63
|
-
<div class="row">
|
64
|
-
<div class="form-group col-sm-2 button-range" >
|
65
|
-
<export-excel-safe :data="$parent.$parent.searchData"
|
66
|
-
:field="$parent.$parent.excelHeaders"
|
67
|
-
:choose-col="true"
|
68
|
-
sqlurl="rs/logic/SafeExportExcel" sql-name="getUserByCheckBook" template-name='安检册明细'></export-excel-safe>
|
69
|
-
<button class="button_search" style="margin-right: 10px" @click="search()" v-el:cba>查询</button>
|
70
|
-
<button class="button_spacing button_search-1" @click='$parent.$parent.removes()' v-if="$parent.$parent.bookList.length>0" >移出安检册</button>
|
71
|
-
</div>
|
72
|
-
</div>
|
73
|
-
</div>
|
74
|
-
</criteria>
|
75
|
-
<data-grid :model="model" class="table_sy" partial='list' v-ref:grid >
|
76
|
-
<template partial='head' >
|
77
|
-
<tr>
|
78
|
-
<th>
|
79
|
-
<nobr><input type="checkbox" v-model="$parent.$parent.$parent.checkAll"></input>全选</nobr>
|
80
|
-
</th>
|
81
|
-
<th><nobr>序号</nobr></th>
|
82
|
-
<th><nobr>用户编号</nobr></th>
|
83
|
-
<th><nobr>用户姓名</nobr></th>
|
84
|
-
<th><nobr>用户电话</nobr></th>
|
85
|
-
<th><nobr>用户地址</nobr></th>
|
86
|
-
<th><nobr>通气日期</nobr></th>
|
87
|
-
<th><nobr>操作</nobr></th>
|
88
|
-
</tr>
|
89
|
-
</template>
|
90
|
-
<template partial='body' >
|
91
|
-
<tr >
|
92
|
-
<td style="text-align: center">
|
93
|
-
<nobr><input type="checkbox" :checked="$parent.$parent.$parent.checkModel(row)"
|
94
|
-
@change="$parent.$parent.$parent.checkChange(row, $event)"></input>
|
95
|
-
</nobr>
|
96
|
-
</td>
|
97
|
-
<td style="text-align:center;">{{$index+1}}</td>
|
98
|
-
<td style="text-align:center">{{row.f_userinfo_code}}</td>
|
99
|
-
<td style="text-align:center">{{row.f_user_name}}</td>
|
100
|
-
<td style="text-align:center">{{row.f_user_phone}}</td>
|
101
|
-
<td style="text-align:center">{{row.f_address}}</td>
|
102
|
-
<td style="text-align:center">{{row.f_uservent_date}}</td>
|
103
|
-
<td style="text-align: center">
|
104
|
-
<button class="button_spacing button_search-1" @click='$parent.$parent.$parent.remove(row)'>移出安检册</button>
|
105
|
-
</td>
|
106
|
-
</tr>
|
107
|
-
</template>
|
108
|
-
<template partial='foot'></template>
|
109
|
-
</data-grid>
|
110
|
-
</criteria-paged>
|
111
|
-
</div>
|
112
|
-
</template>
|
113
|
-
|
114
|
-
<script>
|
115
|
-
import {PagedList} from 'vue-client'
|
116
|
-
import bus from "../../../bus";
|
117
|
-
|
118
|
-
export default {
|
119
|
-
title: '安检记录列表',
|
120
|
-
props: ['row'],
|
121
|
-
data () {
|
122
|
-
return {
|
123
|
-
checkAll:false,
|
124
|
-
rowdata: this.row,
|
125
|
-
bookList: [],
|
126
|
-
searchData: {
|
127
|
-
condition: "1=1"
|
128
|
-
},
|
129
|
-
excelHeaders: {
|
130
|
-
'f_userinfo_code': '客户编号',
|
131
|
-
'f_user_name': '客户姓名',
|
132
|
-
'f_user_phone':'客户电话',
|
133
|
-
'f_address': '客户地址',
|
134
|
-
'f_uservent_date': '通气日期'
|
135
|
-
},
|
136
|
-
userTypes: [{label: '全部', value: ''},{label: '民用', value: '民用'}, {label: '非民用', value: '非民用'}],
|
137
|
-
model: new PagedList('rs/sql/getUserByCheckBook', 50)
|
138
|
-
}
|
139
|
-
},
|
140
|
-
ready(){
|
141
|
-
if(this.row){
|
142
|
-
let condition=''
|
143
|
-
if(this.row.id){
|
144
|
-
|
145
|
-
condition = `tua.f_check_book_id ='${this.row.id}'`
|
146
|
-
}else{
|
147
|
-
condition = `1=1`
|
148
|
-
}
|
149
|
-
|
150
|
-
// if(this.row.f_check_book_type1=='小区'){
|
151
|
-
// this.model.url = 'rs/sql/getUserByCheckBook'
|
152
|
-
// condition = `ta.f_check_book_id =${this.row.f_check_book_id} and ta.id=${this.row.id}`
|
153
|
-
// }else{
|
154
|
-
// this.model.url = 'rs/sql/getUserByCheckBookCompany'
|
155
|
-
// condition = `tc.f_check_book_id =${this.row.f_check_book_id} and tc.id=${this.row.id}`
|
156
|
-
// }
|
157
|
-
this.model.search(condition)
|
158
|
-
this.searchData.condition = condition
|
159
|
-
//只显示用户页面
|
160
|
-
this.row.f_check_book_type='用户'
|
161
|
-
}
|
162
|
-
},
|
163
|
-
watch: {
|
164
|
-
'checkAll'(val){
|
165
|
-
if(!val){
|
166
|
-
this.bookList=[]
|
167
|
-
}
|
168
|
-
//如果是全选,则查询这个安检册下的用户
|
169
|
-
|
170
|
-
if(val){
|
171
|
-
//遍历this.model.rows
|
172
|
-
this.model.rows.forEach(res=>{
|
173
|
-
this.bookList.push(res.f_userinfo_id)
|
174
|
-
})
|
175
|
-
}
|
176
|
-
},
|
177
|
-
'row' (val) {
|
178
|
-
if (val) {
|
179
|
-
this.rowdata = val
|
180
|
-
let condition=''
|
181
|
-
condition = `tua.f_check_book_id ='${val.id}'`
|
182
|
-
// if(this.row.f_check_book_type1=='小区'){
|
183
|
-
// condition = `ta.f_check_book_id =${val.f_check_book_id} and ta.id=${val.id}`
|
184
|
-
// }else{
|
185
|
-
// condition = `tc.f_check_book_id =${val.f_check_book_id} and tc.id=${val.id}`
|
186
|
-
// }
|
187
|
-
this.model.search(condition)
|
188
|
-
}
|
189
|
-
}
|
190
|
-
},
|
191
|
-
methods: {
|
192
|
-
setCheckAll() {
|
193
|
-
this.checkAll=this.checkAll?false:true;
|
194
|
-
// 全选改变后,清空选中数据
|
195
|
-
this.bookList = []
|
196
|
-
},
|
197
|
-
checkModel (row) {
|
198
|
-
if (this.bookList.findIndex(res => res === row.f_userinfo_id) !== -1) {
|
199
|
-
return true
|
200
|
-
} else {
|
201
|
-
return false
|
202
|
-
}
|
203
|
-
},
|
204
|
-
checkChange (row, e) {
|
205
|
-
if (e.target.checked) {
|
206
|
-
this.bookList.push(row.f_userinfo_id)
|
207
|
-
} else {
|
208
|
-
this.bookList.splice(this.bookList.findIndex(res => res === row.f_userinfo_id), 1)
|
209
|
-
}
|
210
|
-
},
|
211
|
-
removes(){
|
212
|
-
|
213
|
-
if(this.bookList.length===0){
|
214
|
-
this.$showMessage('请选择用户')
|
215
|
-
return
|
216
|
-
}
|
217
|
-
this.$showMessage("确认将用户移出此安检册?",['confirm']).then(res=>{
|
218
|
-
if(res==='confirm'){
|
219
|
-
//for遍历this.bookList,将每个用户移出安检册
|
220
|
-
var c="("
|
221
|
-
for(var i=0;i<this.bookList.length;i++){
|
222
|
-
c+=`'${this.bookList[i]}'`+","
|
223
|
-
}
|
224
|
-
//去掉最后一个逗号
|
225
|
-
c=c.substring(0,c.length-1)
|
226
|
-
c+=")"
|
227
|
-
let data = {
|
228
|
-
condition: c,
|
229
|
-
f_book_id: this.row.id
|
230
|
-
}
|
231
|
-
this.$http.post('rs/logic/removesCheckBookUser', {data: data}).then(res=>{
|
232
|
-
this.$showMessage('移出成功')
|
233
|
-
this.$refs.paged.$refs.criteria.search()
|
234
|
-
})
|
235
|
-
}
|
236
|
-
})
|
237
|
-
},
|
238
|
-
remove(row){
|
239
|
-
|
240
|
-
this.$showMessage("确认移出此安检册?",['confirm']).then(res=>{
|
241
|
-
if(res==='confirm'){
|
242
|
-
let data = {
|
243
|
-
f_userinfo_id: row.f_userinfo_id,
|
244
|
-
f_book_id: this.row.id
|
245
|
-
}
|
246
|
-
this.$http.post('rs/logic/removeUserByCheckBook', {data: data}).then(res=>{
|
247
|
-
this.$showMessage('移出成功')
|
248
|
-
this.$refs.paged.$refs.criteria.search()
|
249
|
-
})
|
250
|
-
}
|
251
|
-
})
|
252
|
-
},
|
253
|
-
selfSearch (args) {
|
254
|
-
if (this.rowdata.id) {
|
255
|
-
args.condition +=` and tua.f_check_book_id ='${this.rowdata.id}'`
|
256
|
-
// if(this.rowdata.f_check_book_type1=='小区'){
|
257
|
-
// args.condition += `and ta.f_check_book_id =${this.rowdata.f_check_book_id} and ta.id=${this.rowdata.id}`
|
258
|
-
// }else{
|
259
|
-
// args.condition += `and tc.f_check_book_id =${this.rowdata.f_check_book_id} and tc.id=${this.rowdata.id}`
|
260
|
-
// }
|
261
|
-
this.model.search(args.condition)
|
262
|
-
this.searchData.condition = args.condition
|
263
|
-
} else {
|
264
|
-
this.$showMessage('请选择片区')
|
265
|
-
}
|
266
|
-
}
|
267
|
-
}
|
268
|
-
}
|
269
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<div class="auto select-overspread">
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
6
|
+
<div class="row">
|
7
|
+
<div class="form-group col-sm-3" >
|
8
|
+
<label class="font_normal_body">客户编号</label>
|
9
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code" placeholder='客户编号'
|
10
|
+
condition="tui.f_userinfo_code = '{}'" @keyup.enter="search()">
|
11
|
+
</div>
|
12
|
+
<div class="form-group col-sm-3">
|
13
|
+
<label class="font_normal_body">客户名称</label>
|
14
|
+
<input type="text" class="input_search" v-model="model.f_user_name"
|
15
|
+
style="width: 60%" placeholder="客户名称" condition="tui.f_user_name like '%{}%'">
|
16
|
+
</div>
|
17
|
+
<div class="form-group col-sm-3" >
|
18
|
+
<label class="font_normal_body">地址</label>
|
19
|
+
<input type="text" class="input_search" v-model="model.f_address"
|
20
|
+
style="width: 60%" placeholder="地址" condition="tua.f_address like '%{}%'">
|
21
|
+
</div>
|
22
|
+
<div class="form-group col-sm-3" >
|
23
|
+
<label class="font_normal_body">小区名称</label>
|
24
|
+
<input type="text" class="input_search" v-model="model.f_residential_area"
|
25
|
+
style="width: 60%" placeholder="小区名称" condition="tua.f_residential_area like '%{}%'">
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
<div class="row">
|
29
|
+
<div class="form-group col-sm-3" >
|
30
|
+
<label class="font_normal_body">客户类型</label>
|
31
|
+
<v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
|
32
|
+
:value-single="true" style="width: 60%"
|
33
|
+
class="select_list select"
|
34
|
+
:options='$parent.$parent.userTypes' placeholder='客户类型'
|
35
|
+
close-on-select
|
36
|
+
condition="tuf.f_user_type ='{}'"></v-select>
|
37
|
+
</div>
|
38
|
+
<div class="form-group col-sm-3">
|
39
|
+
<label class="font_normal_body">通气开始</label>
|
40
|
+
<datepicker
|
41
|
+
:value.sync="model.f_gas_start"
|
42
|
+
placeholder='开始时间' style="width: 60%"
|
43
|
+
:disabled-days-of-week="[]"
|
44
|
+
:format="'yyyy-MM-dd'"
|
45
|
+
:show-rest-button="reset"
|
46
|
+
v-model="model.f_gas_start"
|
47
|
+
condition="tui.f_uservent_date > ='{} 00:00:00'">
|
48
|
+
</datepicker>
|
49
|
+
</div>
|
50
|
+
<div class="form-group col-sm-3">
|
51
|
+
<label class="font_normal_body">通气结束</label>
|
52
|
+
<datepicker
|
53
|
+
:value.sync="model.f_gas_end"
|
54
|
+
placeholder='结束时间' style="width: 60%"
|
55
|
+
:disabled-days-of-week="[]"
|
56
|
+
:format="'yyyy-MM-dd'"
|
57
|
+
:show-rest-button="reset"
|
58
|
+
v-model="model.f_gas_end"
|
59
|
+
condition="tui.f_uservent_date <= '{} 23:59:59'">
|
60
|
+
</datepicker>
|
61
|
+
</div>
|
62
|
+
</div>
|
63
|
+
<div class="row">
|
64
|
+
<div class="form-group col-sm-2 button-range" >
|
65
|
+
<export-excel-safe :data="$parent.$parent.searchData"
|
66
|
+
:field="$parent.$parent.excelHeaders"
|
67
|
+
:choose-col="true"
|
68
|
+
sqlurl="rs/logic/SafeExportExcel" sql-name="getUserByCheckBook" template-name='安检册明细'></export-excel-safe>
|
69
|
+
<button class="button_search" style="margin-right: 10px" @click="search()" v-el:cba>查询</button>
|
70
|
+
<button class="button_spacing button_search-1" @click='$parent.$parent.removes()' v-if="$parent.$parent.bookList.length>0" >移出安检册</button>
|
71
|
+
</div>
|
72
|
+
</div>
|
73
|
+
</div>
|
74
|
+
</criteria>
|
75
|
+
<data-grid :model="model" class="table_sy" partial='list' v-ref:grid >
|
76
|
+
<template partial='head' >
|
77
|
+
<tr>
|
78
|
+
<th>
|
79
|
+
<nobr><input type="checkbox" v-model="$parent.$parent.$parent.checkAll"></input>全选</nobr>
|
80
|
+
</th>
|
81
|
+
<th><nobr>序号</nobr></th>
|
82
|
+
<th><nobr>用户编号</nobr></th>
|
83
|
+
<th><nobr>用户姓名</nobr></th>
|
84
|
+
<th><nobr>用户电话</nobr></th>
|
85
|
+
<th><nobr>用户地址</nobr></th>
|
86
|
+
<th><nobr>通气日期</nobr></th>
|
87
|
+
<th><nobr>操作</nobr></th>
|
88
|
+
</tr>
|
89
|
+
</template>
|
90
|
+
<template partial='body' >
|
91
|
+
<tr >
|
92
|
+
<td style="text-align: center">
|
93
|
+
<nobr><input type="checkbox" :checked="$parent.$parent.$parent.checkModel(row)"
|
94
|
+
@change="$parent.$parent.$parent.checkChange(row, $event)"></input>
|
95
|
+
</nobr>
|
96
|
+
</td>
|
97
|
+
<td style="text-align:center;">{{$index+1}}</td>
|
98
|
+
<td style="text-align:center">{{row.f_userinfo_code}}</td>
|
99
|
+
<td style="text-align:center">{{row.f_user_name}}</td>
|
100
|
+
<td style="text-align:center">{{row.f_user_phone}}</td>
|
101
|
+
<td style="text-align:center">{{row.f_address}}</td>
|
102
|
+
<td style="text-align:center">{{row.f_uservent_date}}</td>
|
103
|
+
<td style="text-align: center">
|
104
|
+
<button class="button_spacing button_search-1" @click='$parent.$parent.$parent.remove(row)'>移出安检册</button>
|
105
|
+
</td>
|
106
|
+
</tr>
|
107
|
+
</template>
|
108
|
+
<template partial='foot'></template>
|
109
|
+
</data-grid>
|
110
|
+
</criteria-paged>
|
111
|
+
</div>
|
112
|
+
</template>
|
113
|
+
|
114
|
+
<script>
|
115
|
+
import {PagedList} from 'vue-client'
|
116
|
+
import bus from "../../../bus";
|
117
|
+
|
118
|
+
export default {
|
119
|
+
title: '安检记录列表',
|
120
|
+
props: ['row'],
|
121
|
+
data () {
|
122
|
+
return {
|
123
|
+
checkAll:false,
|
124
|
+
rowdata: this.row,
|
125
|
+
bookList: [],
|
126
|
+
searchData: {
|
127
|
+
condition: "1=1"
|
128
|
+
},
|
129
|
+
excelHeaders: {
|
130
|
+
'f_userinfo_code': '客户编号',
|
131
|
+
'f_user_name': '客户姓名',
|
132
|
+
'f_user_phone':'客户电话',
|
133
|
+
'f_address': '客户地址',
|
134
|
+
'f_uservent_date': '通气日期'
|
135
|
+
},
|
136
|
+
userTypes: [{label: '全部', value: ''},{label: '民用', value: '民用'}, {label: '非民用', value: '非民用'}],
|
137
|
+
model: new PagedList('rs/sql/getUserByCheckBook', 50)
|
138
|
+
}
|
139
|
+
},
|
140
|
+
ready(){
|
141
|
+
if(this.row){
|
142
|
+
let condition=''
|
143
|
+
if(this.row.id){
|
144
|
+
|
145
|
+
condition = `tua.f_check_book_id ='${this.row.id}'`
|
146
|
+
}else{
|
147
|
+
condition = `1=1`
|
148
|
+
}
|
149
|
+
|
150
|
+
// if(this.row.f_check_book_type1=='小区'){
|
151
|
+
// this.model.url = 'rs/sql/getUserByCheckBook'
|
152
|
+
// condition = `ta.f_check_book_id =${this.row.f_check_book_id} and ta.id=${this.row.id}`
|
153
|
+
// }else{
|
154
|
+
// this.model.url = 'rs/sql/getUserByCheckBookCompany'
|
155
|
+
// condition = `tc.f_check_book_id =${this.row.f_check_book_id} and tc.id=${this.row.id}`
|
156
|
+
// }
|
157
|
+
this.model.search(condition)
|
158
|
+
this.searchData.condition = condition
|
159
|
+
//只显示用户页面
|
160
|
+
this.row.f_check_book_type='用户'
|
161
|
+
}
|
162
|
+
},
|
163
|
+
watch: {
|
164
|
+
'checkAll'(val){
|
165
|
+
if(!val){
|
166
|
+
this.bookList=[]
|
167
|
+
}
|
168
|
+
//如果是全选,则查询这个安检册下的用户
|
169
|
+
|
170
|
+
if(val){
|
171
|
+
//遍历this.model.rows
|
172
|
+
this.model.rows.forEach(res=>{
|
173
|
+
this.bookList.push(res.f_userinfo_id)
|
174
|
+
})
|
175
|
+
}
|
176
|
+
},
|
177
|
+
'row' (val) {
|
178
|
+
if (val) {
|
179
|
+
this.rowdata = val
|
180
|
+
let condition=''
|
181
|
+
condition = `tua.f_check_book_id ='${val.id}'`
|
182
|
+
// if(this.row.f_check_book_type1=='小区'){
|
183
|
+
// condition = `ta.f_check_book_id =${val.f_check_book_id} and ta.id=${val.id}`
|
184
|
+
// }else{
|
185
|
+
// condition = `tc.f_check_book_id =${val.f_check_book_id} and tc.id=${val.id}`
|
186
|
+
// }
|
187
|
+
this.model.search(condition)
|
188
|
+
}
|
189
|
+
}
|
190
|
+
},
|
191
|
+
methods: {
|
192
|
+
setCheckAll() {
|
193
|
+
this.checkAll=this.checkAll?false:true;
|
194
|
+
// 全选改变后,清空选中数据
|
195
|
+
this.bookList = []
|
196
|
+
},
|
197
|
+
checkModel (row) {
|
198
|
+
if (this.bookList.findIndex(res => res === row.f_userinfo_id) !== -1) {
|
199
|
+
return true
|
200
|
+
} else {
|
201
|
+
return false
|
202
|
+
}
|
203
|
+
},
|
204
|
+
checkChange (row, e) {
|
205
|
+
if (e.target.checked) {
|
206
|
+
this.bookList.push(row.f_userinfo_id)
|
207
|
+
} else {
|
208
|
+
this.bookList.splice(this.bookList.findIndex(res => res === row.f_userinfo_id), 1)
|
209
|
+
}
|
210
|
+
},
|
211
|
+
removes(){
|
212
|
+
|
213
|
+
if(this.bookList.length===0){
|
214
|
+
this.$showMessage('请选择用户')
|
215
|
+
return
|
216
|
+
}
|
217
|
+
this.$showMessage("确认将用户移出此安检册?",['confirm']).then(res=>{
|
218
|
+
if(res==='confirm'){
|
219
|
+
//for遍历this.bookList,将每个用户移出安检册
|
220
|
+
var c="("
|
221
|
+
for(var i=0;i<this.bookList.length;i++){
|
222
|
+
c+=`'${this.bookList[i]}'`+","
|
223
|
+
}
|
224
|
+
//去掉最后一个逗号
|
225
|
+
c=c.substring(0,c.length-1)
|
226
|
+
c+=")"
|
227
|
+
let data = {
|
228
|
+
condition: c,
|
229
|
+
f_book_id: this.row.id
|
230
|
+
}
|
231
|
+
this.$http.post('rs/logic/removesCheckBookUser', {data: data}).then(res=>{
|
232
|
+
this.$showMessage('移出成功')
|
233
|
+
this.$refs.paged.$refs.criteria.search()
|
234
|
+
})
|
235
|
+
}
|
236
|
+
})
|
237
|
+
},
|
238
|
+
remove(row){
|
239
|
+
|
240
|
+
this.$showMessage("确认移出此安检册?",['confirm']).then(res=>{
|
241
|
+
if(res==='confirm'){
|
242
|
+
let data = {
|
243
|
+
f_userinfo_id: row.f_userinfo_id,
|
244
|
+
f_book_id: this.row.id
|
245
|
+
}
|
246
|
+
this.$http.post('rs/logic/removeUserByCheckBook', {data: data}).then(res=>{
|
247
|
+
this.$showMessage('移出成功')
|
248
|
+
this.$refs.paged.$refs.criteria.search()
|
249
|
+
})
|
250
|
+
}
|
251
|
+
})
|
252
|
+
},
|
253
|
+
selfSearch (args) {
|
254
|
+
if (this.rowdata.id) {
|
255
|
+
args.condition +=` and tua.f_check_book_id ='${this.rowdata.id}'`
|
256
|
+
// if(this.rowdata.f_check_book_type1=='小区'){
|
257
|
+
// args.condition += `and ta.f_check_book_id =${this.rowdata.f_check_book_id} and ta.id=${this.rowdata.id}`
|
258
|
+
// }else{
|
259
|
+
// args.condition += `and tc.f_check_book_id =${this.rowdata.f_check_book_id} and tc.id=${this.rowdata.id}`
|
260
|
+
// }
|
261
|
+
this.model.search(args.condition)
|
262
|
+
this.searchData.condition = args.condition
|
263
|
+
} else {
|
264
|
+
this.$showMessage('请选择片区')
|
265
|
+
}
|
266
|
+
}
|
267
|
+
}
|
268
|
+
}
|
269
|
+
</script>
|