safecheck-client 3.0.30-62-t10 → 3.0.30-62-t12
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/examples/SafePlan/comp.js +1527 -1527
- package/examples/SafePlan-liaoyuan/comp.js +1432 -1432
- package/examples/SafePlan-shaoguan/comp.js +1190 -1190
- package/examples/SafePlan-tongchuan/comp.js +1480 -1480
- package/examples/SafePlan-wenxi/comp.js +1545 -1545
- package/examples/SafePlan-zhoukou/comp.js +1525 -1525
- package/examples/SafePlanrongcheng/comp.js +1141 -1141
- package/examples/SafePlanrongcheng-gs/comp.js +1140 -1140
- package/examples/SafePlanrongcheng-gssq/comp.js +1143 -1143
- package/examples/SafePlanrongcheng-mysq/comp.js +1144 -1144
- package/package.json +1 -1
- package/src/components/CheckerCount/ZhouKouCheckCount.vue +272 -272
- package/src/components/DefectDealMain/DefectPaperNew.vue +1052 -1052
- package/src/components/NewDefectList/DefectPaperNew.vue +1079 -1079
- package/src/components/checkplan/CheckDetail.vue +205 -205
- package/src/components/checkplan/SelectCheckPlan.vue +311 -311
- package/src/components/createcheckplan/PlanUersList.vue +137 -137
- package/src/components/defect/DefectPaper.vue +764 -764
- package/src/components/defect/DefectPaperWeiXiu.vue +508 -508
- package/src/components/inspections/InspectionList.vue +476 -476
- package/src/components/inspections/InspectionLists.vue +478 -478
- package/src/components/inspections/InspectionListss.vue +477 -477
- package/src/components/noplan/NoPlanSearchUser.vue +300 -300
- package/src/components/olddata/OldPaperList.vue +340 -340
- package/src/components/paper/PaperList.vue +790 -790
- package/src/components/paper/filialeCheckInfo.vue +111 -111
- package/src/components/pc/CheckNoDetail.vue +209 -209
- package/src/components/pc/DefectDeal.vue +997 -997
- package/src/components/pc/NewCheckpaper.vue +16 -60
- package/src/components/pc/PaperChazhiMain.vue +504 -504
- package/src/components/pc/PaperDefectMain.vue +879 -866
- package/src/components/pc/PaperEdit.vue +151 -151
- package/src/components/pc/PaperVisitMain.vue +179 -179
- package/src/components/pc/SafeVisitHistory.vue +208 -208
- package/src/components/pc/SafecheckDeviceList.vue +260 -260
- package/src/components/pc/SecurityCheckLedger.vue +133 -133
- package/src/components/pc/SelectCheckNoPlan.vue +278 -278
- package/src/components/pc/SelectCheckPlanAndNoPLan.vue +281 -281
- package/src/components/planmanage/checkPlanList.vue +369 -369
- package/src/components/planmanage/checkUserList.vue +773 -773
- package/src/components/querycheckpaper/CheckSearchUser.vue +1067 -1067
- package/src/components/querycheckpaper/CheckSearchUserNew.vue +1109 -1109
- package/src/components/querycheckpaper/ShebeiSearchUser.vue +690 -690
- package/src/components/report/CheckPlanAreaList.vue +505 -505
- package/src/components/report/CheckPlanUserList.vue +216 -216
- package/src/components/report/NoCheckplanSafecheck.vue +212 -212
- package/src/components/rongcheng/CheckSearchArea.vue +703 -703
- package/src/components/rongcheng/CheckSearchUser.vue +936 -936
- package/src/components/rongcheng/CheckSearchUserNo.vue +778 -778
- package/src/components/rongcheng/CheckUserList.vue +205 -205
- package/src/components/rongcheng/DefectPaper.vue +676 -676
- package/src/components/rongcheng/PaperListAJ.vue +434 -434
- package/src/components/rongcheng/PaperListNPAJ.vue +431 -431
- package/src/components/rongcheng/PaperListNPSQ.vue +455 -455
- package/src/components/rongcheng/PaperListSQ.vue +444 -444
- package/src/components/rongcheng/checkerplan/SelectCheckPlan.vue +271 -271
- package/src/components/rongcheng/report/CheckPlanUserList.vue +228 -228
- package/src/components/safecheckNew/PaperList.vue +785 -785
- package/src/components/shaoguan/DefectPaper.vue +217 -217
- package/src/components/shaoguan/PaperList.vue +466 -466
- package/src/components/userfile/UserInfoAudit.vue +316 -316
- package/src/filiale/ALshan/pc/CheckSearchUser.vue +927 -927
- package/src/filiale/ALshan/pc/checkUserList.vue +714 -714
- package/src/filiale/ancheng/pc/PaperList.vue +659 -659
- package/src/filiale/ankangyihua/pc/CheckPlanAreaList.vue +512 -512
- package/src/filiale/ankangyihua/pc/CheckSearchUser.vue +1039 -1039
- package/src/filiale/ankangyihua/pc/DefectPaperWeiXiu.vue +545 -545
- package/src/filiale/ankangyihua/pc/PaperDefectMain.vue +864 -864
- package/src/filiale/ankangyihua/pc/PaperList.vue +656 -656
- package/src/filiale/ankangyihua/pc/checkUserList.vue +697 -697
- package/src/filiale/baiyin/pc/CheckPlanAreaList.vue +485 -485
- package/src/filiale/baiyin/pc/CheckSearchUser.vue +1067 -1067
- package/src/filiale/baiyin/pc/DefectPaperNew.vue +1052 -1052
- package/src/filiale/baiyin/pc/PaperList.vue +790 -790
- package/src/filiale/baiyin/pc/checkUserList.vue +771 -771
- package/src/filiale/bayan/android/PhoneUpUserinfo.vue +1376 -1376
- package/src/filiale/bayan/pc/CheckDetail.vue +205 -205
- package/src/filiale/bayan/pc/CheckSearchUser.vue +1110 -1110
- package/src/filiale/bayan/pc/DefectPaperNew.vue +1239 -1239
- package/src/filiale/bayan/pc/PaperList.vue +900 -900
- package/src/filiale/bayan/pc/SelectCheckPlan.vue +396 -396
- package/src/filiale/dexin/pc/DefectPaperNew.vue +1066 -1066
- package/src/filiale/dexin/pc/PaperList.vue +805 -805
- package/src/filiale/fugou/pc/DefectPaperNew.vue +1085 -1085
- package/src/filiale/fugou/pc/PaperDefectMain.vue +928 -928
- package/src/filiale/fugou/pc/PaperList.vue +911 -911
- package/src/filiale/fugou/pc/checkPlanList.vue +371 -371
- package/src/filiale/fugou/pc/checkUserList.vue +904 -904
- package/src/filiale/fugu/pc/CheckSearchUser.vue +977 -977
- package/src/filiale/fugu/pc/SelectCheckPlan.vue +273 -273
- package/src/filiale/fugu/pc/planmanage/checkUserList.vue +688 -688
- package/src/filiale/ganquan/pc/DefectPaperNew.vue +1009 -1009
- package/src/filiale/ganquan/pc/PaperList.vue +654 -654
- package/src/filiale/ganquan/pc/PaperVisitMain.vue +166 -166
- package/src/filiale/ganquan/pc/SelectCheckPlan.vue +234 -234
- package/src/filiale/ganquan/pc/checkUserList.vue +681 -681
- package/src/filiale/gehua/pc/PaperList.vue +558 -558
- package/src/filiale/gehua/pc/checkUserList.vue +720 -720
- package/src/filiale/guangxi/pc/CheckPlanAreaList.vue +471 -471
- package/src/filiale/guangxi/pc/DefectPaperNew.vue +988 -988
- package/src/filiale/hanzhong/pc/CheckSearchUser.vue +1127 -1127
- package/src/filiale/hanzhong/pc/CheckUserList.vue +755 -755
- package/src/filiale/hanzhong/pc/PaperList.vue +702 -702
- package/src/filiale/huaran/pc/PaperList.vue +843 -843
- package/src/filiale/huaran/pc/checkPlanList.vue +419 -419
- package/src/filiale/huaran/pc/checkUserList.vue +900 -900
- package/src/filiale/huatong/pc/PaperDefectMain.vue +800 -800
- package/src/filiale/huatong/pc/PaperList.vue +789 -789
- package/src/filiale/huayin/pc/PaperList.vue +621 -621
- package/src/filiale/jiaocheng/pc/CheckSearchUser.vue +1011 -1011
- package/src/filiale/jinbin/pc/CheckPlanAreaList.vue +479 -479
- package/src/filiale/jingyang/pc/CheckSearchUser.vue +1062 -1062
- package/src/filiale/jingyang/pc/PaperList.vue +793 -793
- package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -543
- package/src/filiale/kelai/pc/CheckPlanAreaList.vue +476 -476
- package/src/filiale/kelai/pc/CheckSearchUser.vue +1011 -1011
- package/src/filiale/kelai/pc/DefectPaperNew.vue +1090 -1090
- package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasPaper.vue +897 -897
- package/src/filiale/kelai/pc/PaperList.vue +596 -596
- package/src/filiale/kelai/pc/checkUserList.vue +698 -698
- package/src/filiale/liaoyuan/pc/CheckSearchUser.vue +963 -963
- package/src/filiale/liaoyuan/pc/DefectPaperWeiXiu.vue +1011 -1011
- package/src/filiale/liaoyuan/pc/PaperList.vue +637 -637
- package/src/filiale/liaoyuan/pc/checkPlanList.vue +373 -373
- package/src/filiale/lixian/pc/CheckPlanAreaList.vue +467 -467
- package/src/filiale/lixian/pc/CheckSearchUser.vue +927 -927
- package/src/filiale/lixian/pc/PaperChazhiMain.vue +540 -540
- package/src/filiale/lixian/pc/PaperDefectMain.vue +551 -551
- package/src/filiale/lixian/pc/PaperList.vue +620 -620
- package/src/filiale/lixian/pc/checkPlanList.vue +366 -366
- package/src/filiale/lixian/pc/checkUserList.vue +761 -761
- package/src/filiale/minsheng/pc/CheckSearchUser.vue +976 -976
- package/src/filiale/minsheng/pc/checkUserList.vue +806 -806
- package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1012 -1012
- package/src/filiale/pingxiang/pc/PaperList.vue +595 -595
- package/src/filiale/qianneng/pc/DefectPaperNew.vue +1072 -1072
- package/src/filiale/qianneng/pc/NoCheckplanSafecheck.vue +220 -220
- package/src/filiale/qianneng/pc/PaperList.vue +777 -777
- package/src/filiale/qianneng/pc/checkPlanList.vue +429 -429
- package/src/filiale/qianneng/pc/checkUserList.vue +871 -871
- package/src/filiale/qingjian/pc/PaperDefectMain.vue +895 -895
- package/src/filiale/qingtongxia/pc/PaperDefectMain.vue +858 -858
- package/src/filiale/rizhao/pc/PaperList.vue +714 -714
- package/src/filiale/rongchuang/pc/PaperList.vue +812 -812
- package/src/filiale/rongchuang/pc/checkUserList.vue +621 -621
- package/src/filiale/shanxian/android/AddPlanItem.vue +447 -447
- package/src/filiale/shanxian/pc/CheckDetail.vue +205 -205
- package/src/filiale/shanxian/pc/CheckSearchUser.vue +1114 -1114
- package/src/filiale/shanxian/pc/DefectPaperNew.vue +1096 -1096
- package/src/filiale/shanxian/pc/PaperList.vue +785 -785
- package/src/filiale/shanxian/pc/SelectCheckPlan.vue +324 -324
- package/src/filiale/shanxian/pc/checkUserList.vue +700 -700
- package/src/filiale/shaoguan/pc/PaperList.vue +589 -589
- package/src/filiale/shexian/pc/DefectPaperNew.vue +1161 -1161
- package/src/filiale/shexian/pc/PaperDefectMain.vue +893 -893
- package/src/filiale/shexian/pc/PaperList.vue +822 -822
- package/src/filiale/shimen/pc/CheckPlanAreaList.vue +463 -463
- package/src/filiale/shimen/pc/CheckSearchUser.vue +927 -927
- package/src/filiale/shimen/pc/PaperDefectMain.vue +589 -589
- package/src/filiale/shimen/pc/PaperList.vue +547 -547
- package/src/filiale/shiquan/pc/checkUserList.vue +755 -755
- package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -512
- package/src/filiale/siyang/pc/CheckSearchUser.vue +1035 -1035
- package/src/filiale/siyang/pc/PaperDefectMain.vue +864 -864
- package/src/filiale/siyang/pc/PaperList.vue +834 -834
- package/src/filiale/siyang/pc/checkPlanList.vue +367 -367
- package/src/filiale/siyang/pc/checkUserList.vue +765 -765
- package/src/filiale/tianke/pc/PaperDefectMain.vue +891 -891
- package/src/filiale/tongchuan/pc/CheckDetail.vue +205 -205
- package/src/filiale/tongchuan/pc/CheckPlanAreaList.vue +502 -502
- package/src/filiale/tongchuan/pc/CheckPlanUserList.vue +246 -246
- package/src/filiale/tongchuan/pc/CheckSearchUser.vue +1045 -1045
- package/src/filiale/tongchuan/pc/DefectPaper.vue +764 -764
- package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +593 -593
- package/src/filiale/tongchuan/pc/NoCheckplanSafecheck.vue +213 -213
- package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
- package/src/filiale/tongchuan/pc/PaperList.vue +670 -670
- package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +296 -296
- package/src/filiale/tongchuan/pc/checkUserList.vue +639 -639
- package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +735 -735
- package/src/filiale/weinan/pc/CheckDetail.vue +278 -278
- package/src/filiale/weinan/pc/CheckDetailOutHelp.vue +297 -297
- package/src/filiale/weinan/pc/CheckNoDetail.vue +259 -259
- package/src/filiale/weinan/pc/CheckPlanUserList.vue +338 -338
- package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -1078
- package/src/filiale/weinan/pc/DefectPaperNew.vue +1096 -1096
- package/src/filiale/weinan/pc/PaperDefectMain.vue +576 -576
- package/src/filiale/weinan/pc/PaperList.vue +674 -674
- package/src/filiale/weinan/pc/SelectCheckNoPlan.vue +299 -299
- package/src/filiale/weinan/pc/SelectCheckPlan.vue +389 -389
- package/src/filiale/weinan/pc/SelectCheckPlanOutHelp.vue +446 -446
- package/src/filiale/weinan/pc/checkPlanList.vue +456 -456
- package/src/filiale/weinan/pc/checkUserList.vue +712 -712
- package/src/filiale/weinanct/pc/PaperList.vue +593 -593
- package/src/filiale/wensu/pc/CheckDetail.vue +205 -205
- package/src/filiale/wensu/pc/CheckSearchUser.vue +1238 -1238
- package/src/filiale/wensu/pc/DefectPaperNew.vue +1148 -1148
- package/src/filiale/wensu/pc/SelectCheckPlan.vue +342 -342
- package/src/filiale/wensu/pc/checkUserList.vue +650 -650
- package/src/filiale/wenxi/pc/CheckPlanAreaList.vue +456 -456
- package/src/filiale/wenxi/pc/CheckPlanUserList.vue +217 -217
- package/src/filiale/wenxi/pc/CheckSearchUser.vue +991 -991
- package/src/filiale/wenxi/pc/DefectPaper.vue +663 -663
- package/src/filiale/wenxi/pc/PaperDefectMain.vue +790 -790
- package/src/filiale/wenxi/pc/PaperList.vue +949 -949
- package/src/filiale/wenxi/pc/checkPlanList.vue +517 -517
- package/src/filiale/wenxi/pc/checkUserList.vue +695 -695
- package/src/filiale/wuan/pc/DefectPaperWeiXiu.vue +515 -515
- package/src/filiale/wuan/pc/PaperList.vue +562 -562
- package/src/filiale/wuhai/pc/CheckSearchUser.vue +959 -959
- package/src/filiale/wuhai/pc/PaperList.vue +785 -785
- package/src/filiale/wuhai/pc/checkUserList.vue +611 -611
- package/src/filiale/xilan/pc/PaperList.vue +795 -795
- package/src/filiale/xilan/pc/checkUserList.vue +772 -772
- package/src/filiale/xinkang/pc/CheckPlanAreaList.vue +425 -425
- package/src/filiale/xinkang/pc/CheckPlanUserList.vue +216 -216
- package/src/filiale/xinkang/pc/CheckSearchUser.vue +1026 -1026
- package/src/filiale/xinkang/pc/DefectPaperWeiXiu.vue +538 -538
- package/src/filiale/xinkang/pc/PaperDefectMain.vue +525 -525
- package/src/filiale/xinkang/pc/PaperList.vue +603 -603
- package/src/filiale/xinkang/pc/checkUserList.vue +639 -639
- package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +269 -269
- package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +642 -642
- package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1192 -1192
- package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1128 -1128
- package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +1046 -1046
- package/src/filiale/yangchunboneng/pc/PaperList.vue +773 -773
- package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1092 -1092
- package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -1105
- package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +557 -557
- package/src/filiale/yongzhou/pc/PaperDefectMain.vue +872 -872
- package/src/filiale/yongzhou/pc/PaperList.vue +798 -798
- package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -364
- package/src/filiale/yongzhou/pc/checkUserList.vue +752 -752
- package/src/filiale/yongzhou/pc/communityDetail.vue +194 -194
- package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +138 -138
- package/src/filiale/yongzhou/pc/safeDetail.vue +539 -539
- package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +455 -455
- package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +267 -267
- package/src/filiale/yuansheng/pc/PaperList.vue +621 -621
- package/src/filiale/yunchengminsheng/pc/checkUserList.vue +753 -753
- package/src/filiale/zhongsheng/pc/CheckPlanAreaList.vue +495 -495
- package/src/filiale/zhongsheng/pc/DefectPaperWeiXiu.vue +515 -515
- package/src/filiale/zhongsheng/pc/PaperList.vue +644 -644
- package/src/filiale/zhoukou/pc/CheckSearchUser.vue +923 -923
- package/src/filiale/zhoukou/pc/PaperDefectMain.vue +465 -465
@@ -1,538 +1,538 @@
|
|
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
|
-
<v-select
|
28
|
-
placeholder='隐患处理方式'
|
29
|
-
:value-single="true"
|
30
|
-
class="select select_list" style="width: 60%"
|
31
|
-
v-model='model.f_is_repair'
|
32
|
-
:value.sync="model.f_is_repair"
|
33
|
-
:options='$parent.$parent.repaireds'
|
34
|
-
condition="f_is_repair = '{}'"
|
35
|
-
close-on-select clear-button> </v-select>
|
36
|
-
</div>
|
37
|
-
<div :class="$parent.$parent.style">
|
38
|
-
<label class="font_normal_body">用户编号</label>
|
39
|
-
<input type="text" class="input_search" v-model="model.f_userinfo_code"
|
40
|
-
condition="f_userinfo_code = '{}'"
|
41
|
-
style="width: 60%" placeholder="用户编号">
|
42
|
-
</div>
|
43
|
-
<div :class="$parent.$parent.style">
|
44
|
-
<label class="font_normal_body">结果查询</label>
|
45
|
-
<v-select
|
46
|
-
placeholder='处理结果查询'
|
47
|
-
:value-single="true"
|
48
|
-
class="select select_list" style="width: 60%"
|
49
|
-
v-model='model.f_repaired'
|
50
|
-
:value.sync="model.f_repaired"
|
51
|
-
:options='$parent.$parent.repaired'
|
52
|
-
condition="f_repaired = '{}'"
|
53
|
-
close-on-select clear-button> </v-select>
|
54
|
-
</div>
|
55
|
-
<div class=" col-sm-4 form-group button-range" >
|
56
|
-
<div class="span" style="float: right;margin-top: 8px">
|
57
|
-
<div style="float: right" class="button_spacing"
|
58
|
-
:class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
|
59
|
-
@click="$parent.$parent.hiddenr()"></div>
|
60
|
-
<div style="float: right" class="button_spacing"
|
61
|
-
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
62
|
-
@click="$parent.$parent.hidden()"></div>
|
63
|
-
<button style="float: right" class="button_search button_spacing" @click="search">查询</button>
|
64
|
-
<div style="float: right">
|
65
|
-
<export-excel :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids,f_defect_content:$parent.$parent.model.f_defect_content}"
|
66
|
-
:field="$parent.$parent.getfield"
|
67
|
-
progress="safeGetExportProgress"
|
68
|
-
sqlurl="api/af-safecheck/logic/
|
69
|
-
</div>
|
70
|
-
</div>
|
71
|
-
</div>
|
72
|
-
</div>
|
73
|
-
<div class="row" v-if="$parent.$parent.criteriaShow&&!$parent.$parent.$parent.showItem">
|
74
|
-
<div :class="$parent.$parent.style">
|
75
|
-
<label class="font_normal_body">片  区</label>
|
76
|
-
<v-select class="select_list select"
|
77
|
-
placeholder='片区/管理站' style="width: 60%"
|
78
|
-
:value.sync="model.f_slice_area" v-model="model.f_slice_area"
|
79
|
-
:options='$parent.$parent.sliceArea'
|
80
|
-
filer-key="name"
|
81
|
-
close-on-select clear-button
|
82
|
-
condition="f_slice_area='{}'"
|
83
|
-
@change="$parent.$parent.getmeterbook(model.f_slice_area)"
|
84
|
-
:value-single="true">
|
85
|
-
</v-select>
|
86
|
-
</div>
|
87
|
-
<div :class="$parent.$parent.style2" style="margin: 0">
|
88
|
-
<role-selector-safe
|
89
|
-
role-name="安检员"
|
90
|
-
role-lable="安 检 员 "
|
91
|
-
@re-res="$parent.$parent.getRes"
|
92
|
-
:value.sync="model.f_checker_id"
|
93
|
-
v-model="model.f_checker_id"
|
94
|
-
condition="f_checker_name = '{}'">
|
95
|
-
</role-selector-safe>
|
96
|
-
</div>
|
97
|
-
|
98
|
-
<div :class="$parent.$parent.style">
|
99
|
-
<label class="font_normal_body">抄 表 册</label>
|
100
|
-
<v-select class="select_list select"
|
101
|
-
placeholder='抄表册' style="width: 60%"
|
102
|
-
:value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
|
103
|
-
:options='$parent.$parent.cbc'
|
104
|
-
filer-key="name"
|
105
|
-
close-on-select clear-button
|
106
|
-
condition="f_meter_book_num={}"
|
107
|
-
:value-single="true">
|
108
|
-
</v-select>
|
109
|
-
</div>
|
110
|
-
<div :class="$parent.$parent.style">
|
111
|
-
<label class="font_normal_body">起始时间</label>
|
112
|
-
<datepicker
|
113
|
-
placeholder='起始时间' style="width:60%"
|
114
|
-
:disabled-days-of-week="[]"
|
115
|
-
:format="'yyyy-MM-dd'"
|
116
|
-
:show-rest-button="reset"
|
117
|
-
:value.sync="model.f_start_time"
|
118
|
-
v-model="model.f_start_time"
|
119
|
-
condition="f_offsite_time >= '{} 00:00:00'">
|
120
|
-
</datepicker>
|
121
|
-
</div>
|
122
|
-
<div :class="$parent.$parent.style">
|
123
|
-
<label class="font_normal_body">结束时间</label>
|
124
|
-
<datepicker
|
125
|
-
placeholder='结束时间' style="width:60%"
|
126
|
-
:disabled-days-of-week="[]"
|
127
|
-
:format="'yyyy-MM-dd'"
|
128
|
-
:show-rest-button="reset"
|
129
|
-
:value.sync="model.f_end_time"
|
130
|
-
v-model="model.f_end_time"
|
131
|
-
condition="f_offsite_time <= '{} 23:59:59'">
|
132
|
-
</datepicker>
|
133
|
-
</div>
|
134
|
-
|
135
|
-
|
136
|
-
</div>
|
137
|
-
<div class="row" v-if="$parent.$parent.$parent.showItem">
|
138
|
-
<div :class="$parent.$parent.style">
|
139
|
-
<label class="font_normal_body">安检计划</label>
|
140
|
-
<input type="text" class="input_search" v-model="$parent.$parent.f_check_plan.f_plan_name"
|
141
|
-
@click="$parent.$parent.showChooser"
|
142
|
-
style="width: 60%" placeholder="安检计划" readonly="readonly">
|
143
|
-
</div>
|
144
|
-
<div :class="$parent.$parent.style">
|
145
|
-
<label class="font_normal_body">存在隐患</label>
|
146
|
-
<v-select style="width:60% "
|
147
|
-
class="select select_list"
|
148
|
-
:value.sync="model.f_has_defect"
|
149
|
-
v-model="model.f_has_defect"
|
150
|
-
:options='$parent.$parent.hasDefectOptions'
|
151
|
-
:placeholder='model.f_has_defect'
|
152
|
-
condition="f_has_defect = '{}'"
|
153
|
-
close-on-select>
|
154
|
-
</v-select>
|
155
|
-
</div>
|
156
|
-
|
157
|
-
<div class=" col-sm-4 form-group button-range">
|
158
|
-
<div class="span" style="float: right;margin-top: 8px;margin-right: 50px">
|
159
|
-
<div style="float: right" class="button_spacing"
|
160
|
-
:class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
|
161
|
-
@click="$parent.$parent.hiddenr()"></div>
|
162
|
-
<div style="float: right" class="button_spacing"
|
163
|
-
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
164
|
-
@click="$parent.$parent.hidden()"></div>
|
165
|
-
<button style="float: right" class="button_search button_spacing" @click="search">查询</button>
|
166
|
-
<div style="float: right">
|
167
|
-
<export-excel :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids}"
|
168
|
-
:field="$parent.$parent.getfield"
|
169
|
-
progress="safeGetExportProgress"
|
170
|
-
sqlurl="api/af-safecheck/logic/
|
171
|
-
</div>
|
172
|
-
</div>
|
173
|
-
</div>
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
</div>
|
178
|
-
<div class="row" v-if="$parent.$parent.criteriaShow&&$parent.$parent.$parent.showItem">
|
179
|
-
<div :class="$parent.$parent.style">
|
180
|
-
<label class="font_normal_body">隐患处理方式</label>
|
181
|
-
<v-select
|
182
|
-
placeholder='隐患处理方式'
|
183
|
-
:value-single="true"
|
184
|
-
class="select select_list" style="width: 60%"
|
185
|
-
v-model='model.f_is_repair'
|
186
|
-
:value.sync="model.f_is_repair"
|
187
|
-
:options='$parent.$parent.repaireds'
|
188
|
-
condition="f_is_repair = '{}'"
|
189
|
-
close-on-select clear-button> </v-select>
|
190
|
-
</div>
|
191
|
-
<div :class="$parent.$parent.style">
|
192
|
-
<label class="font_normal_body">用户编号</label>
|
193
|
-
<input type="text" class="input_search" v-model="model.f_userinfo_code"
|
194
|
-
condition="f_userinfo_code = '{}'"
|
195
|
-
style="width: 60%" placeholder="用户编号">
|
196
|
-
</div>
|
197
|
-
|
198
|
-
<div :class="$parent.$parent.style">
|
199
|
-
<label class="font_normal_body">结果查询</label>
|
200
|
-
<v-select
|
201
|
-
placeholder='处理结果查询'
|
202
|
-
:value-single="true"
|
203
|
-
class="select select_list" style="width: 60%"
|
204
|
-
v-model='model.f_repaired'
|
205
|
-
:value.sync="model.f_repaired"
|
206
|
-
:options='$parent.$parent.repaired'
|
207
|
-
condition="f_repaired = '{}'"
|
208
|
-
close-on-select clear-button> </v-select>
|
209
|
-
</div>
|
210
|
-
|
211
|
-
<div :class="$parent.$parent.style2" style="margin: 0">
|
212
|
-
<role-selector-safe
|
213
|
-
role-name="安检员"
|
214
|
-
role-lable="安 检 员 "
|
215
|
-
@re-res="$parent.$parent.getRes"
|
216
|
-
:value.sync="model.f_checker_id"
|
217
|
-
v-model="model.f_checker_id"
|
218
|
-
condition="f_checker_name = '{}'">
|
219
|
-
</role-selector-safe>
|
220
|
-
</div>
|
221
|
-
</div>
|
222
|
-
<div class="row" v-if="$parent.$parent.criteriaShow && $parent.$parent.$parent.showItem">
|
223
|
-
<div :class="$parent.$parent.style">
|
224
|
-
<label class="font_normal_body">片  区</label>
|
225
|
-
<v-select class="select_list select"
|
226
|
-
placeholder='片区/管理站' style="width: 60%"
|
227
|
-
:value.sync="model.f_slice_area" v-model="model.f_slice_area"
|
228
|
-
:options='$parent.$parent.sliceArea'
|
229
|
-
filer-key="name"
|
230
|
-
close-on-select clear-button
|
231
|
-
condition="f_slice_area='{}'"
|
232
|
-
@change="$parent.$parent.getmeterbook(model.f_slice_area)"
|
233
|
-
:value-single="true">
|
234
|
-
</v-select>
|
235
|
-
</div>
|
236
|
-
<div :class="$parent.$parent.style">
|
237
|
-
<label class="font_normal_body">抄 表 册</label>
|
238
|
-
<v-select class="select_list select"
|
239
|
-
placeholder='抄表册' style="width: 60%"
|
240
|
-
:value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
|
241
|
-
:options='$parent.$parent.cbc'
|
242
|
-
filer-key="name"
|
243
|
-
close-on-select clear-button
|
244
|
-
condition="f_meter_book_num={}"
|
245
|
-
:value-single="true">
|
246
|
-
</v-select>
|
247
|
-
</div>
|
248
|
-
|
249
|
-
<div :class="$parent.$parent.style">
|
250
|
-
<label class="font_normal_body">起始时间</label>
|
251
|
-
<datepicker
|
252
|
-
placeholder='起始时间' style="width:60%"
|
253
|
-
:disabled-days-of-week="[]"
|
254
|
-
:format="'yyyy-MM-dd'"
|
255
|
-
:show-rest-button="reset"
|
256
|
-
:value.sync="model.f_start_time"
|
257
|
-
v-model="model.f_start_time"
|
258
|
-
condition="f_offsite_time >= '{} 00:00:00'">
|
259
|
-
</datepicker>
|
260
|
-
</div>
|
261
|
-
<div :class="$parent.$parent.style">
|
262
|
-
<label class="font_normal_body">结束时间</label>
|
263
|
-
<datepicker
|
264
|
-
placeholder='结束时间' style="width:60%"
|
265
|
-
:disabled-days-of-week="[]"
|
266
|
-
:format="'yyyy-MM-dd'"
|
267
|
-
:show-rest-button="reset"
|
268
|
-
:value.sync="model.f_end_time"
|
269
|
-
v-model="model.f_end_time"
|
270
|
-
condition="f_offsite_time <= '{} 23:59:59'">
|
271
|
-
</datepicker>
|
272
|
-
</div>
|
273
|
-
|
274
|
-
|
275
|
-
</div>
|
276
|
-
</div>
|
277
|
-
</criteria>
|
278
|
-
<data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
|
279
|
-
<template partial='head'>
|
280
|
-
<tr>
|
281
|
-
<th><nobr>入户状态</nobr></th>
|
282
|
-
<th><nobr>用户编号</nobr></th>
|
283
|
-
<th><nobr>用户名</nobr></th>
|
284
|
-
<th><nobr>用户电话</nobr></th>
|
285
|
-
<th><nobr>用户小区</nobr></th>
|
286
|
-
<th><nobr>用户地址</nobr></th>
|
287
|
-
<th><nobr>隐患处理方式</nobr></th>
|
288
|
-
<th><nobr>安检时间</nobr></th>
|
289
|
-
<th><nobr>安检员</nobr></th>
|
290
|
-
<th><nobr>计划名</nobr></th>
|
291
|
-
<th><nobr>是否有隐患</nobr></th>
|
292
|
-
<th><nobr>隐患数</nobr></th>
|
293
|
-
<!-- <th><nobr>整改数</nobr></th>-->
|
294
|
-
|
295
|
-
</tr>
|
296
|
-
</template>
|
297
|
-
<template partial='body'>
|
298
|
-
<td style="text-align: center;white-space:nowrap;">{{row.f_entry_status}}</td>
|
299
|
-
<td style="text-align: center;white-space:nowrap;">{{row.f_userinfo_code}}</td>
|
300
|
-
<td style="text-align: center;white-space:nowrap;">{{row.f_user_name}}</td>
|
301
|
-
<td style="text-align: center;white-space:nowrap;">{{row.f_user_phone}}</td>
|
302
|
-
<td style="text-align: center;white-space:nowrap;">{{row.f_residential_area}}</td>
|
303
|
-
<td style="text-align: center;white-space:nowrap;">{{row.f_address}}</td>
|
304
|
-
<td style="text-align: center;white-space:nowrap;">{{row.f_is_repair}}</td>
|
305
|
-
<td style="text-align: center;white-space:nowrap;">{{row.f_offsite_time}}</td>
|
306
|
-
<td style="text-align: center;white-space:nowrap;">{{row.f_checker_name}}</td>
|
307
|
-
<td style="text-align: center;white-space:nowrap;">{{row.f_plan_name}}</td>
|
308
|
-
<td style="text-align: center;white-space:nowrap;">{{row.f_has_defect}}</td>
|
309
|
-
<td style="text-align: center;white-space:nowrap;">{{row.f_defect_count}}</td>
|
310
|
-
<!-- <td style="text-align: center;white-space:nowrap;">{{row.f_repair_count}}</td>-->
|
311
|
-
|
312
|
-
</template>
|
313
|
-
</data-grid>
|
314
|
-
</criteria-paged>
|
315
|
-
|
316
|
-
<modal :show.sync="showModal" v-ref:modal>
|
317
|
-
<div slot="modal-header" class="modal-header">
|
318
|
-
<h4 class="modal-title">
|
319
|
-
选择计划
|
320
|
-
</h4>
|
321
|
-
</div>
|
322
|
-
<div slot="modal-body" class="modal-body">
|
323
|
-
<plan-chooser :f.sync="this.$login.f" v-ref:chooser></plan-chooser>
|
324
|
-
</div>
|
325
|
-
<div slot="modal-footer" class="modal-footer" style="text-align: center">
|
326
|
-
<button class="button_search" @click="ok">确认</button>
|
327
|
-
<button class="button_search" @click="cancel">取消</button>
|
328
|
-
</div>
|
329
|
-
</modal>
|
330
|
-
</div>
|
331
|
-
</template>
|
332
|
-
<script>
|
333
|
-
import {PagedList} from 'vue-client'
|
334
|
-
import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
|
335
|
-
import co from 'co'
|
336
|
-
|
337
|
-
|
338
|
-
let select = function* (self) {
|
339
|
-
let http = new HttpResetClass()
|
340
|
-
let getGasman = yield http.load('POST', '/rs/search', {
|
341
|
-
source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
|
342
|
-
userid: self.$login.f.id
|
343
|
-
}, {resolveMsg: null, rejectMsg: null})
|
344
|
-
//tag
|
345
|
-
self.checkersid.push({label: '全部', value: ''})
|
346
|
-
getGasman.data.forEach((checker) => {
|
347
|
-
self.checkersid.push({label: checker.name, value: checker.name})
|
348
|
-
})
|
349
|
-
}
|
350
|
-
export default {
|
351
|
-
title: '隐患查询',
|
352
|
-
data() {
|
353
|
-
let model = new PagedList('api/af-safecheck/sql/GetCheckPaperByDefect', 20, {
|
354
|
-
f_filialeids: 'this.f_filialeids',f_defect_content: 'this.f_defect_content'
|
355
|
-
})
|
356
|
-
model.f_filialeids = '(' + this.$login.f.orgid + ')'
|
357
|
-
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"
|
358
|
-
return {
|
359
|
-
repaired:[{label: '未修', value: '未修'}, {label: '已修', value: '已修'}],
|
360
|
-
repaireds:[{label: '全部', value: ''},{label: '隐患已处理', value: '隐患已处理'}, {label: '隐患未处理', value: '隐患未处理'}],
|
361
|
-
hasDefectOptions: [{label: '全部', value: ''}, {label: '有隐患', value: '有隐患'}, {label: '无隐患', value: '无隐患'}],
|
362
|
-
f: this.$login.f,
|
363
|
-
model: model,
|
364
|
-
criteriaShow: false,
|
365
|
-
showModal: false,
|
366
|
-
f_check_plan: {f_plan_name: '', id: ''},
|
367
|
-
sumsmodel: {},
|
368
|
-
all: false,
|
369
|
-
fields: {},
|
370
|
-
modelval: [],
|
371
|
-
checkersid: [],
|
372
|
-
sliceArea: [],
|
373
|
-
cbc:[],
|
374
|
-
cbcs:[],
|
375
|
-
thead: '',
|
376
|
-
headData: ['入户状态','用户编号','用户名','用户电话','用户小区','用户地址','安检时间','安检员','计划名','是否有隐患','隐患数','隐患情况'],
|
377
|
-
bodyData: ['f_entry_status','f_userinfo_code','f_user_name','f_user_phone','f_residential_area','f_address','f_offsite_time','f_checker_name','f_plan_name','f_has_defect','f_defect_count','f_defect_content']
|
378
|
-
}
|
379
|
-
},
|
380
|
-
props:{
|
381
|
-
|
382
|
-
style: {
|
383
|
-
type: String,
|
384
|
-
default: 'col-sm-2 form-group'
|
385
|
-
},
|
386
|
-
style2: {
|
387
|
-
type: String,
|
388
|
-
default: 'col-sm-4 form-group'
|
389
|
-
}
|
390
|
-
|
391
|
-
},
|
392
|
-
|
393
|
-
methods: {
|
394
|
-
getmeterbook(val){
|
395
|
-
this.cbc=[]
|
396
|
-
this.cbc.push({
|
397
|
-
label:'全部',
|
398
|
-
value:''
|
399
|
-
})
|
400
|
-
if (val==''){
|
401
|
-
|
402
|
-
this.cbcs.forEach(res=>{
|
403
|
-
this.cbc.push({
|
404
|
-
label:res.f_book_name,
|
405
|
-
value:res.id
|
406
|
-
})
|
407
|
-
})
|
408
|
-
}else{
|
409
|
-
this.cbcs.forEach(res=>{
|
410
|
-
if (res.f_book_slice_area==val){
|
411
|
-
this.cbc.push({
|
412
|
-
label:res.f_book_name,
|
413
|
-
value:res.id
|
414
|
-
})
|
415
|
-
}
|
416
|
-
})
|
417
|
-
}
|
418
|
-
},
|
419
|
-
|
420
|
-
Mreadibook(val){
|
421
|
-
//tag
|
422
|
-
//tag
|
423
|
-
this.sliceArea=[]
|
424
|
-
if (val){
|
425
|
-
new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
|
426
|
-
items: 'name',
|
427
|
-
tablename: 't_zone',
|
428
|
-
condition: `parentid in ${val}`,
|
429
|
-
orderitem: 'id'
|
430
|
-
}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
431
|
-
this.sliceArea.push({
|
432
|
-
label:'全部',
|
433
|
-
value:''
|
434
|
-
})
|
435
|
-
res.data.forEach(ress=>{
|
436
|
-
this.sliceArea.push({
|
437
|
-
label:ress.name,
|
438
|
-
value:ress.name
|
439
|
-
})
|
440
|
-
})
|
441
|
-
|
442
|
-
})
|
443
|
-
}
|
444
|
-
},
|
445
|
-
getAllMeterBook(val){
|
446
|
-
//tag
|
447
|
-
//tag
|
448
|
-
this.cbcs=[]
|
449
|
-
if (val){
|
450
|
-
new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
|
451
|
-
items: 'f_book_name,f_book_slice_area,id',
|
452
|
-
tablename: 't_meter_book',
|
453
|
-
condition: `f_filiale_id in ${val}`,
|
454
|
-
orderitem: 'id'
|
455
|
-
}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
456
|
-
res.data.forEach(ress=>{
|
457
|
-
this.cbcs.push({
|
458
|
-
id:ress.id,
|
459
|
-
f_book_name:ress.f_book_name,
|
460
|
-
f_book_slice_area:ress.f_book_slice_area
|
461
|
-
})
|
462
|
-
})
|
463
|
-
this.cbc=[]
|
464
|
-
this.cbc.push({
|
465
|
-
label:'全部',
|
466
|
-
value:''
|
467
|
-
})
|
468
|
-
this.cbcs.forEach(res=>{
|
469
|
-
this.cbc.push({
|
470
|
-
label:res.f_book_name,
|
471
|
-
value:res.id
|
472
|
-
})
|
473
|
-
})
|
474
|
-
})
|
475
|
-
}
|
476
|
-
},
|
477
|
-
hiddenr() {
|
478
|
-
this.$parent.showItem = !this.$parent.showItem
|
479
|
-
},
|
480
|
-
hidden() {
|
481
|
-
this.criteriaShow = !this.criteriaShow
|
482
|
-
},
|
483
|
-
search(args) {
|
484
|
-
if (this.f_check_plan.f_plan_name) {
|
485
|
-
args.condition += ` and f_check_plan_id = '${this.f_check_plan.id}'`
|
486
|
-
}
|
487
|
-
this.model.search(args.condition, args.model)
|
488
|
-
},
|
489
|
-
getRes(obj) {
|
490
|
-
this.model.f_filialeids = this.$login.convertToIn(obj.resids);
|
491
|
-
this.Mreadibook(this.model.f_filialeids)
|
492
|
-
this.getAllMeterBook(this.model.f_filialeids)
|
493
|
-
},
|
494
|
-
showChooser() {
|
495
|
-
this.showModal = true
|
496
|
-
},
|
497
|
-
ok() {
|
498
|
-
this.showModal = false
|
499
|
-
if (this.$refs.modal.$children[0].selectedRow.id) {
|
500
|
-
this.f_check_plan = this.$refs.modal.$children[0].selectedRow
|
501
|
-
}
|
502
|
-
},
|
503
|
-
cancel() {
|
504
|
-
this.showModal = false
|
505
|
-
this.f_check_plan = {f_plan_name: '', id: ''}
|
506
|
-
}
|
507
|
-
},
|
508
|
-
ready() {
|
509
|
-
this.$refs.paged.$refs.criteria.model.f_has_defect = '有隐患'
|
510
|
-
let gen = select(this)
|
511
|
-
// this.Mreadibook(`('${this.$login.f.orgid}')`)
|
512
|
-
co(gen)
|
513
|
-
},
|
514
|
-
computed: {
|
515
|
-
selected() {
|
516
|
-
return this.$refs.paged.$refs.grid.selected
|
517
|
-
},
|
518
|
-
getfield(){
|
519
|
-
//tag
|
520
|
-
let data = {}
|
521
|
-
this.bodyData.forEach((value, index)=>{
|
522
|
-
data[this.bodyData[index]] = this.headData[index]
|
523
|
-
})
|
524
|
-
//合计字段打印
|
525
|
-
this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
|
526
|
-
if(this.sumsmodel){
|
527
|
-
Object.keys(this.sumsmodel).forEach((key) => {
|
528
|
-
this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
|
529
|
-
})
|
530
|
-
}else{
|
531
|
-
this.tfoot += '暂无'
|
532
|
-
}
|
533
|
-
this.tfoot += '</th></tr>'
|
534
|
-
return data
|
535
|
-
}
|
536
|
-
}
|
537
|
-
}
|
538
|
-
</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
|
+
<v-select
|
28
|
+
placeholder='隐患处理方式'
|
29
|
+
:value-single="true"
|
30
|
+
class="select select_list" style="width: 60%"
|
31
|
+
v-model='model.f_is_repair'
|
32
|
+
:value.sync="model.f_is_repair"
|
33
|
+
:options='$parent.$parent.repaireds'
|
34
|
+
condition="f_is_repair = '{}'"
|
35
|
+
close-on-select clear-button> </v-select>
|
36
|
+
</div>
|
37
|
+
<div :class="$parent.$parent.style">
|
38
|
+
<label class="font_normal_body">用户编号</label>
|
39
|
+
<input type="text" class="input_search" v-model="model.f_userinfo_code"
|
40
|
+
condition="f_userinfo_code = '{}'"
|
41
|
+
style="width: 60%" placeholder="用户编号">
|
42
|
+
</div>
|
43
|
+
<div :class="$parent.$parent.style">
|
44
|
+
<label class="font_normal_body">结果查询</label>
|
45
|
+
<v-select
|
46
|
+
placeholder='处理结果查询'
|
47
|
+
:value-single="true"
|
48
|
+
class="select select_list" style="width: 60%"
|
49
|
+
v-model='model.f_repaired'
|
50
|
+
:value.sync="model.f_repaired"
|
51
|
+
:options='$parent.$parent.repaired'
|
52
|
+
condition="f_repaired = '{}'"
|
53
|
+
close-on-select clear-button> </v-select>
|
54
|
+
</div>
|
55
|
+
<div class=" col-sm-4 form-group button-range" >
|
56
|
+
<div class="span" style="float: right;margin-top: 8px">
|
57
|
+
<div style="float: right" class="button_spacing"
|
58
|
+
:class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
|
59
|
+
@click="$parent.$parent.hiddenr()"></div>
|
60
|
+
<div style="float: right" class="button_spacing"
|
61
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
62
|
+
@click="$parent.$parent.hidden()"></div>
|
63
|
+
<button style="float: right" class="button_search button_spacing" @click="search">查询</button>
|
64
|
+
<div style="float: right">
|
65
|
+
<export-excel :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids,f_defect_content:$parent.$parent.model.f_defect_content}"
|
66
|
+
:field="$parent.$parent.getfield"
|
67
|
+
progress="safeGetExportProgress"
|
68
|
+
sqlurl="api/af-safecheck/logic/exportfile" sql-name="GetCheckPaperByDefect" template-name='安检隐患明细' :choose-col="true"></export-excel>
|
69
|
+
</div>
|
70
|
+
</div>
|
71
|
+
</div>
|
72
|
+
</div>
|
73
|
+
<div class="row" v-if="$parent.$parent.criteriaShow&&!$parent.$parent.$parent.showItem">
|
74
|
+
<div :class="$parent.$parent.style">
|
75
|
+
<label class="font_normal_body">片  区</label>
|
76
|
+
<v-select class="select_list select"
|
77
|
+
placeholder='片区/管理站' style="width: 60%"
|
78
|
+
:value.sync="model.f_slice_area" v-model="model.f_slice_area"
|
79
|
+
:options='$parent.$parent.sliceArea'
|
80
|
+
filer-key="name"
|
81
|
+
close-on-select clear-button
|
82
|
+
condition="f_slice_area='{}'"
|
83
|
+
@change="$parent.$parent.getmeterbook(model.f_slice_area)"
|
84
|
+
:value-single="true">
|
85
|
+
</v-select>
|
86
|
+
</div>
|
87
|
+
<div :class="$parent.$parent.style2" style="margin: 0">
|
88
|
+
<role-selector-safe
|
89
|
+
role-name="安检员"
|
90
|
+
role-lable="安 检 员 "
|
91
|
+
@re-res="$parent.$parent.getRes"
|
92
|
+
:value.sync="model.f_checker_id"
|
93
|
+
v-model="model.f_checker_id"
|
94
|
+
condition="f_checker_name = '{}'">
|
95
|
+
</role-selector-safe>
|
96
|
+
</div>
|
97
|
+
|
98
|
+
<div :class="$parent.$parent.style">
|
99
|
+
<label class="font_normal_body">抄 表 册</label>
|
100
|
+
<v-select class="select_list select"
|
101
|
+
placeholder='抄表册' style="width: 60%"
|
102
|
+
:value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
|
103
|
+
:options='$parent.$parent.cbc'
|
104
|
+
filer-key="name"
|
105
|
+
close-on-select clear-button
|
106
|
+
condition="f_meter_book_num={}"
|
107
|
+
:value-single="true">
|
108
|
+
</v-select>
|
109
|
+
</div>
|
110
|
+
<div :class="$parent.$parent.style">
|
111
|
+
<label class="font_normal_body">起始时间</label>
|
112
|
+
<datepicker
|
113
|
+
placeholder='起始时间' style="width:60%"
|
114
|
+
:disabled-days-of-week="[]"
|
115
|
+
:format="'yyyy-MM-dd'"
|
116
|
+
:show-rest-button="reset"
|
117
|
+
:value.sync="model.f_start_time"
|
118
|
+
v-model="model.f_start_time"
|
119
|
+
condition="f_offsite_time >= '{} 00:00:00'">
|
120
|
+
</datepicker>
|
121
|
+
</div>
|
122
|
+
<div :class="$parent.$parent.style">
|
123
|
+
<label class="font_normal_body">结束时间</label>
|
124
|
+
<datepicker
|
125
|
+
placeholder='结束时间' style="width:60%"
|
126
|
+
:disabled-days-of-week="[]"
|
127
|
+
:format="'yyyy-MM-dd'"
|
128
|
+
:show-rest-button="reset"
|
129
|
+
:value.sync="model.f_end_time"
|
130
|
+
v-model="model.f_end_time"
|
131
|
+
condition="f_offsite_time <= '{} 23:59:59'">
|
132
|
+
</datepicker>
|
133
|
+
</div>
|
134
|
+
|
135
|
+
|
136
|
+
</div>
|
137
|
+
<div class="row" v-if="$parent.$parent.$parent.showItem">
|
138
|
+
<div :class="$parent.$parent.style">
|
139
|
+
<label class="font_normal_body">安检计划</label>
|
140
|
+
<input type="text" class="input_search" v-model="$parent.$parent.f_check_plan.f_plan_name"
|
141
|
+
@click="$parent.$parent.showChooser"
|
142
|
+
style="width: 60%" placeholder="安检计划" readonly="readonly">
|
143
|
+
</div>
|
144
|
+
<div :class="$parent.$parent.style">
|
145
|
+
<label class="font_normal_body">存在隐患</label>
|
146
|
+
<v-select style="width:60% "
|
147
|
+
class="select select_list"
|
148
|
+
:value.sync="model.f_has_defect"
|
149
|
+
v-model="model.f_has_defect"
|
150
|
+
:options='$parent.$parent.hasDefectOptions'
|
151
|
+
:placeholder='model.f_has_defect'
|
152
|
+
condition="f_has_defect = '{}'"
|
153
|
+
close-on-select>
|
154
|
+
</v-select>
|
155
|
+
</div>
|
156
|
+
|
157
|
+
<div class=" col-sm-4 form-group button-range">
|
158
|
+
<div class="span" style="float: right;margin-top: 8px;margin-right: 50px">
|
159
|
+
<div style="float: right" class="button_spacing"
|
160
|
+
:class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
|
161
|
+
@click="$parent.$parent.hiddenr()"></div>
|
162
|
+
<div style="float: right" class="button_spacing"
|
163
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
164
|
+
@click="$parent.$parent.hidden()"></div>
|
165
|
+
<button style="float: right" class="button_search button_spacing" @click="search">查询</button>
|
166
|
+
<div style="float: right">
|
167
|
+
<export-excel :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids}"
|
168
|
+
:field="$parent.$parent.getfield"
|
169
|
+
progress="safeGetExportProgress"
|
170
|
+
sqlurl="api/af-safecheck/logic/exportfile" sql-name="GetCheckPaperByDefect" template-name='安检计划明细' :choose-col="true"></export-excel>
|
171
|
+
</div>
|
172
|
+
</div>
|
173
|
+
</div>
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
</div>
|
178
|
+
<div class="row" v-if="$parent.$parent.criteriaShow&&$parent.$parent.$parent.showItem">
|
179
|
+
<div :class="$parent.$parent.style">
|
180
|
+
<label class="font_normal_body">隐患处理方式</label>
|
181
|
+
<v-select
|
182
|
+
placeholder='隐患处理方式'
|
183
|
+
:value-single="true"
|
184
|
+
class="select select_list" style="width: 60%"
|
185
|
+
v-model='model.f_is_repair'
|
186
|
+
:value.sync="model.f_is_repair"
|
187
|
+
:options='$parent.$parent.repaireds'
|
188
|
+
condition="f_is_repair = '{}'"
|
189
|
+
close-on-select clear-button> </v-select>
|
190
|
+
</div>
|
191
|
+
<div :class="$parent.$parent.style">
|
192
|
+
<label class="font_normal_body">用户编号</label>
|
193
|
+
<input type="text" class="input_search" v-model="model.f_userinfo_code"
|
194
|
+
condition="f_userinfo_code = '{}'"
|
195
|
+
style="width: 60%" placeholder="用户编号">
|
196
|
+
</div>
|
197
|
+
|
198
|
+
<div :class="$parent.$parent.style">
|
199
|
+
<label class="font_normal_body">结果查询</label>
|
200
|
+
<v-select
|
201
|
+
placeholder='处理结果查询'
|
202
|
+
:value-single="true"
|
203
|
+
class="select select_list" style="width: 60%"
|
204
|
+
v-model='model.f_repaired'
|
205
|
+
:value.sync="model.f_repaired"
|
206
|
+
:options='$parent.$parent.repaired'
|
207
|
+
condition="f_repaired = '{}'"
|
208
|
+
close-on-select clear-button> </v-select>
|
209
|
+
</div>
|
210
|
+
|
211
|
+
<div :class="$parent.$parent.style2" style="margin: 0">
|
212
|
+
<role-selector-safe
|
213
|
+
role-name="安检员"
|
214
|
+
role-lable="安 检 员 "
|
215
|
+
@re-res="$parent.$parent.getRes"
|
216
|
+
:value.sync="model.f_checker_id"
|
217
|
+
v-model="model.f_checker_id"
|
218
|
+
condition="f_checker_name = '{}'">
|
219
|
+
</role-selector-safe>
|
220
|
+
</div>
|
221
|
+
</div>
|
222
|
+
<div class="row" v-if="$parent.$parent.criteriaShow && $parent.$parent.$parent.showItem">
|
223
|
+
<div :class="$parent.$parent.style">
|
224
|
+
<label class="font_normal_body">片  区</label>
|
225
|
+
<v-select class="select_list select"
|
226
|
+
placeholder='片区/管理站' style="width: 60%"
|
227
|
+
:value.sync="model.f_slice_area" v-model="model.f_slice_area"
|
228
|
+
:options='$parent.$parent.sliceArea'
|
229
|
+
filer-key="name"
|
230
|
+
close-on-select clear-button
|
231
|
+
condition="f_slice_area='{}'"
|
232
|
+
@change="$parent.$parent.getmeterbook(model.f_slice_area)"
|
233
|
+
:value-single="true">
|
234
|
+
</v-select>
|
235
|
+
</div>
|
236
|
+
<div :class="$parent.$parent.style">
|
237
|
+
<label class="font_normal_body">抄 表 册</label>
|
238
|
+
<v-select class="select_list select"
|
239
|
+
placeholder='抄表册' style="width: 60%"
|
240
|
+
:value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
|
241
|
+
:options='$parent.$parent.cbc'
|
242
|
+
filer-key="name"
|
243
|
+
close-on-select clear-button
|
244
|
+
condition="f_meter_book_num={}"
|
245
|
+
:value-single="true">
|
246
|
+
</v-select>
|
247
|
+
</div>
|
248
|
+
|
249
|
+
<div :class="$parent.$parent.style">
|
250
|
+
<label class="font_normal_body">起始时间</label>
|
251
|
+
<datepicker
|
252
|
+
placeholder='起始时间' style="width:60%"
|
253
|
+
:disabled-days-of-week="[]"
|
254
|
+
:format="'yyyy-MM-dd'"
|
255
|
+
:show-rest-button="reset"
|
256
|
+
:value.sync="model.f_start_time"
|
257
|
+
v-model="model.f_start_time"
|
258
|
+
condition="f_offsite_time >= '{} 00:00:00'">
|
259
|
+
</datepicker>
|
260
|
+
</div>
|
261
|
+
<div :class="$parent.$parent.style">
|
262
|
+
<label class="font_normal_body">结束时间</label>
|
263
|
+
<datepicker
|
264
|
+
placeholder='结束时间' style="width:60%"
|
265
|
+
:disabled-days-of-week="[]"
|
266
|
+
:format="'yyyy-MM-dd'"
|
267
|
+
:show-rest-button="reset"
|
268
|
+
:value.sync="model.f_end_time"
|
269
|
+
v-model="model.f_end_time"
|
270
|
+
condition="f_offsite_time <= '{} 23:59:59'">
|
271
|
+
</datepicker>
|
272
|
+
</div>
|
273
|
+
|
274
|
+
|
275
|
+
</div>
|
276
|
+
</div>
|
277
|
+
</criteria>
|
278
|
+
<data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
|
279
|
+
<template partial='head'>
|
280
|
+
<tr>
|
281
|
+
<th><nobr>入户状态</nobr></th>
|
282
|
+
<th><nobr>用户编号</nobr></th>
|
283
|
+
<th><nobr>用户名</nobr></th>
|
284
|
+
<th><nobr>用户电话</nobr></th>
|
285
|
+
<th><nobr>用户小区</nobr></th>
|
286
|
+
<th><nobr>用户地址</nobr></th>
|
287
|
+
<th><nobr>隐患处理方式</nobr></th>
|
288
|
+
<th><nobr>安检时间</nobr></th>
|
289
|
+
<th><nobr>安检员</nobr></th>
|
290
|
+
<th><nobr>计划名</nobr></th>
|
291
|
+
<th><nobr>是否有隐患</nobr></th>
|
292
|
+
<th><nobr>隐患数</nobr></th>
|
293
|
+
<!-- <th><nobr>整改数</nobr></th>-->
|
294
|
+
|
295
|
+
</tr>
|
296
|
+
</template>
|
297
|
+
<template partial='body'>
|
298
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_entry_status}}</td>
|
299
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_userinfo_code}}</td>
|
300
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_user_name}}</td>
|
301
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_user_phone}}</td>
|
302
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_residential_area}}</td>
|
303
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_address}}</td>
|
304
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_is_repair}}</td>
|
305
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_offsite_time}}</td>
|
306
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_checker_name}}</td>
|
307
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_plan_name}}</td>
|
308
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_has_defect}}</td>
|
309
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_defect_count}}</td>
|
310
|
+
<!-- <td style="text-align: center;white-space:nowrap;">{{row.f_repair_count}}</td>-->
|
311
|
+
|
312
|
+
</template>
|
313
|
+
</data-grid>
|
314
|
+
</criteria-paged>
|
315
|
+
|
316
|
+
<modal :show.sync="showModal" v-ref:modal>
|
317
|
+
<div slot="modal-header" class="modal-header">
|
318
|
+
<h4 class="modal-title">
|
319
|
+
选择计划
|
320
|
+
</h4>
|
321
|
+
</div>
|
322
|
+
<div slot="modal-body" class="modal-body">
|
323
|
+
<plan-chooser :f.sync="this.$login.f" v-ref:chooser></plan-chooser>
|
324
|
+
</div>
|
325
|
+
<div slot="modal-footer" class="modal-footer" style="text-align: center">
|
326
|
+
<button class="button_search" @click="ok">确认</button>
|
327
|
+
<button class="button_search" @click="cancel">取消</button>
|
328
|
+
</div>
|
329
|
+
</modal>
|
330
|
+
</div>
|
331
|
+
</template>
|
332
|
+
<script>
|
333
|
+
import {PagedList} from 'vue-client'
|
334
|
+
import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
|
335
|
+
import co from 'co'
|
336
|
+
|
337
|
+
|
338
|
+
let select = function* (self) {
|
339
|
+
let http = new HttpResetClass()
|
340
|
+
let getGasman = yield http.load('POST', '/rs/search', {
|
341
|
+
source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
|
342
|
+
userid: self.$login.f.id
|
343
|
+
}, {resolveMsg: null, rejectMsg: null})
|
344
|
+
//tag
|
345
|
+
self.checkersid.push({label: '全部', value: ''})
|
346
|
+
getGasman.data.forEach((checker) => {
|
347
|
+
self.checkersid.push({label: checker.name, value: checker.name})
|
348
|
+
})
|
349
|
+
}
|
350
|
+
export default {
|
351
|
+
title: '隐患查询',
|
352
|
+
data() {
|
353
|
+
let model = new PagedList('api/af-safecheck/sql/GetCheckPaperByDefect', 20, {
|
354
|
+
f_filialeids: 'this.f_filialeids',f_defect_content: 'this.f_defect_content'
|
355
|
+
})
|
356
|
+
model.f_filialeids = '(' + this.$login.f.orgid + ')'
|
357
|
+
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"
|
358
|
+
return {
|
359
|
+
repaired:[{label: '未修', value: '未修'}, {label: '已修', value: '已修'}],
|
360
|
+
repaireds:[{label: '全部', value: ''},{label: '隐患已处理', value: '隐患已处理'}, {label: '隐患未处理', value: '隐患未处理'}],
|
361
|
+
hasDefectOptions: [{label: '全部', value: ''}, {label: '有隐患', value: '有隐患'}, {label: '无隐患', value: '无隐患'}],
|
362
|
+
f: this.$login.f,
|
363
|
+
model: model,
|
364
|
+
criteriaShow: false,
|
365
|
+
showModal: false,
|
366
|
+
f_check_plan: {f_plan_name: '', id: ''},
|
367
|
+
sumsmodel: {},
|
368
|
+
all: false,
|
369
|
+
fields: {},
|
370
|
+
modelval: [],
|
371
|
+
checkersid: [],
|
372
|
+
sliceArea: [],
|
373
|
+
cbc:[],
|
374
|
+
cbcs:[],
|
375
|
+
thead: '',
|
376
|
+
headData: ['入户状态','用户编号','用户名','用户电话','用户小区','用户地址','安检时间','安检员','计划名','是否有隐患','隐患数','隐患情况'],
|
377
|
+
bodyData: ['f_entry_status','f_userinfo_code','f_user_name','f_user_phone','f_residential_area','f_address','f_offsite_time','f_checker_name','f_plan_name','f_has_defect','f_defect_count','f_defect_content']
|
378
|
+
}
|
379
|
+
},
|
380
|
+
props:{
|
381
|
+
|
382
|
+
style: {
|
383
|
+
type: String,
|
384
|
+
default: 'col-sm-2 form-group'
|
385
|
+
},
|
386
|
+
style2: {
|
387
|
+
type: String,
|
388
|
+
default: 'col-sm-4 form-group'
|
389
|
+
}
|
390
|
+
|
391
|
+
},
|
392
|
+
|
393
|
+
methods: {
|
394
|
+
getmeterbook(val){
|
395
|
+
this.cbc=[]
|
396
|
+
this.cbc.push({
|
397
|
+
label:'全部',
|
398
|
+
value:''
|
399
|
+
})
|
400
|
+
if (val==''){
|
401
|
+
|
402
|
+
this.cbcs.forEach(res=>{
|
403
|
+
this.cbc.push({
|
404
|
+
label:res.f_book_name,
|
405
|
+
value:res.id
|
406
|
+
})
|
407
|
+
})
|
408
|
+
}else{
|
409
|
+
this.cbcs.forEach(res=>{
|
410
|
+
if (res.f_book_slice_area==val){
|
411
|
+
this.cbc.push({
|
412
|
+
label:res.f_book_name,
|
413
|
+
value:res.id
|
414
|
+
})
|
415
|
+
}
|
416
|
+
})
|
417
|
+
}
|
418
|
+
},
|
419
|
+
|
420
|
+
Mreadibook(val){
|
421
|
+
//tag
|
422
|
+
//tag
|
423
|
+
this.sliceArea=[]
|
424
|
+
if (val){
|
425
|
+
new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
|
426
|
+
items: 'name',
|
427
|
+
tablename: 't_zone',
|
428
|
+
condition: `parentid in ${val}`,
|
429
|
+
orderitem: 'id'
|
430
|
+
}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
431
|
+
this.sliceArea.push({
|
432
|
+
label:'全部',
|
433
|
+
value:''
|
434
|
+
})
|
435
|
+
res.data.forEach(ress=>{
|
436
|
+
this.sliceArea.push({
|
437
|
+
label:ress.name,
|
438
|
+
value:ress.name
|
439
|
+
})
|
440
|
+
})
|
441
|
+
|
442
|
+
})
|
443
|
+
}
|
444
|
+
},
|
445
|
+
getAllMeterBook(val){
|
446
|
+
//tag
|
447
|
+
//tag
|
448
|
+
this.cbcs=[]
|
449
|
+
if (val){
|
450
|
+
new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
|
451
|
+
items: 'f_book_name,f_book_slice_area,id',
|
452
|
+
tablename: 't_meter_book',
|
453
|
+
condition: `f_filiale_id in ${val}`,
|
454
|
+
orderitem: 'id'
|
455
|
+
}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
456
|
+
res.data.forEach(ress=>{
|
457
|
+
this.cbcs.push({
|
458
|
+
id:ress.id,
|
459
|
+
f_book_name:ress.f_book_name,
|
460
|
+
f_book_slice_area:ress.f_book_slice_area
|
461
|
+
})
|
462
|
+
})
|
463
|
+
this.cbc=[]
|
464
|
+
this.cbc.push({
|
465
|
+
label:'全部',
|
466
|
+
value:''
|
467
|
+
})
|
468
|
+
this.cbcs.forEach(res=>{
|
469
|
+
this.cbc.push({
|
470
|
+
label:res.f_book_name,
|
471
|
+
value:res.id
|
472
|
+
})
|
473
|
+
})
|
474
|
+
})
|
475
|
+
}
|
476
|
+
},
|
477
|
+
hiddenr() {
|
478
|
+
this.$parent.showItem = !this.$parent.showItem
|
479
|
+
},
|
480
|
+
hidden() {
|
481
|
+
this.criteriaShow = !this.criteriaShow
|
482
|
+
},
|
483
|
+
search(args) {
|
484
|
+
if (this.f_check_plan.f_plan_name) {
|
485
|
+
args.condition += ` and f_check_plan_id = '${this.f_check_plan.id}'`
|
486
|
+
}
|
487
|
+
this.model.search(args.condition, args.model)
|
488
|
+
},
|
489
|
+
getRes(obj) {
|
490
|
+
this.model.f_filialeids = this.$login.convertToIn(obj.resids);
|
491
|
+
this.Mreadibook(this.model.f_filialeids)
|
492
|
+
this.getAllMeterBook(this.model.f_filialeids)
|
493
|
+
},
|
494
|
+
showChooser() {
|
495
|
+
this.showModal = true
|
496
|
+
},
|
497
|
+
ok() {
|
498
|
+
this.showModal = false
|
499
|
+
if (this.$refs.modal.$children[0].selectedRow.id) {
|
500
|
+
this.f_check_plan = this.$refs.modal.$children[0].selectedRow
|
501
|
+
}
|
502
|
+
},
|
503
|
+
cancel() {
|
504
|
+
this.showModal = false
|
505
|
+
this.f_check_plan = {f_plan_name: '', id: ''}
|
506
|
+
}
|
507
|
+
},
|
508
|
+
ready() {
|
509
|
+
this.$refs.paged.$refs.criteria.model.f_has_defect = '有隐患'
|
510
|
+
let gen = select(this)
|
511
|
+
// this.Mreadibook(`('${this.$login.f.orgid}')`)
|
512
|
+
co(gen)
|
513
|
+
},
|
514
|
+
computed: {
|
515
|
+
selected() {
|
516
|
+
return this.$refs.paged.$refs.grid.selected
|
517
|
+
},
|
518
|
+
getfield(){
|
519
|
+
//tag
|
520
|
+
let data = {}
|
521
|
+
this.bodyData.forEach((value, index)=>{
|
522
|
+
data[this.bodyData[index]] = this.headData[index]
|
523
|
+
})
|
524
|
+
//合计字段打印
|
525
|
+
this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
|
526
|
+
if(this.sumsmodel){
|
527
|
+
Object.keys(this.sumsmodel).forEach((key) => {
|
528
|
+
this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
|
529
|
+
})
|
530
|
+
}else{
|
531
|
+
this.tfoot += '暂无'
|
532
|
+
}
|
533
|
+
this.tfoot += '</th></tr>'
|
534
|
+
return data
|
535
|
+
}
|
536
|
+
}
|
537
|
+
}
|
538
|
+
</script>
|