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