safecheck-client 3.0.30-62-t11 → 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 +1957 -1957
- package/src/components/pc/PaperChazhiMain.vue +504 -504
- package/src/components/pc/PaperDefectMain.vue +1 -1
- 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/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/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,589 +1,589 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="flex-row" v-show="isshowd">
|
3
|
-
<div class="basic-main">
|
4
|
-
<criteria-paged :model="model" v-ref:paged @sort="sort">
|
5
|
-
<criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
|
6
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
7
|
-
<div class="row">
|
8
|
-
<div class="form-group col-sm-2" >
|
9
|
-
<label class="font_normal_body">客户编号</label>
|
10
|
-
<input type="text" class="input_search" v-model="model.f_userinfo_code"
|
11
|
-
style="width: 60%" placeholder="客户编号" condition="f_userinfo_code='{}'">
|
12
|
-
</div>
|
13
|
-
<div class="form-group col-sm-2" >
|
14
|
-
<label class="font_normal_body">客户名称</label>
|
15
|
-
<input type="text" class="input_search" v-model="model.f_user_name"
|
16
|
-
style="width: 60%" placeholder="客户名称" condition="f_user_name like '%{}%'">
|
17
|
-
</div>
|
18
|
-
<div class="form-group col-sm-2" >
|
19
|
-
<label class="font_normal_body">客户电话</label>
|
20
|
-
<input type="text" class="input_search" v-model="model.f_user_phone"
|
21
|
-
style="width: 60%" placeholder="客户电话" condition="f_user_phone like '%{}%'">
|
22
|
-
</div>
|
23
|
-
<div class="form-group col-sm-2" >
|
24
|
-
<label class="font_normal_body">小  区</label>
|
25
|
-
<input type="text" class="input_search" v-model="model.f_residential_area"
|
26
|
-
style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
|
27
|
-
</div>
|
28
|
-
<div class="form-group col-sm-2" >
|
29
|
-
<label class="font_normal_body">详细地址</label>
|
30
|
-
<input type="text" class="input_search" v-model="model.f_address"
|
31
|
-
style="width: 60%" placeholder="详细地址" condition="f_address like '%{}%'">
|
32
|
-
</div>
|
33
|
-
<div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
|
34
|
-
|
35
|
-
<export-excel :data="$parent.$parent.searchData"
|
36
|
-
:field="$parent.$parent.excelHeaders"
|
37
|
-
progress="safeGetExportProgress"
|
38
|
-
sqlurl="api/af-safecheck/logic/
|
39
|
-
<!-- <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="!$parent.$parent.audioshow">录音</button>-->
|
40
|
-
<button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="$parent.$parent.audioshow">隐藏</button>
|
41
|
-
|
42
|
-
<button class="button_spacing button_search" @click="search()">查询</button>
|
43
|
-
<div style="float: right" class="button_spacing"
|
44
|
-
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
45
|
-
@click="$parent.$parent.hidden()"></div>
|
46
|
-
</div>
|
47
|
-
|
48
|
-
</div>
|
49
|
-
<div class="row">
|
50
|
-
<div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
|
51
|
-
<role-selector-safe
|
52
|
-
role-name="安检员"
|
53
|
-
role-lable="安 检 员 "
|
54
|
-
@re-res="$parent.$parent.getRes"
|
55
|
-
:value.sync="model.f_checker_id"
|
56
|
-
v-model="model.f_checker_id"
|
57
|
-
condition="f_checker_name = '{}'">
|
58
|
-
</role-selector-safe>
|
59
|
-
</div>
|
60
|
-
<div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
|
61
|
-
<label class="font_normal_body">检 查 项</label>
|
62
|
-
<v-select :value.sync="model.f_device_type" v-model='model.f_device_type'
|
63
|
-
:value-single="true" style="width: 60%"
|
64
|
-
class="select_list select"
|
65
|
-
:options='$parent.$parent.device_types' placeholder='检查项'
|
66
|
-
close-on-select
|
67
|
-
@change="$parent.$parent.changeDefect"
|
68
|
-
condition="f_item_name like '%{}%'"></v-select>
|
69
|
-
<!--<input type="text" class="input_search" v-model="model.f_device_type"-->
|
70
|
-
<!--style="width: 60%" placeholder="检 查 项" condition="f_device_type like '%{}%'">-->
|
71
|
-
</div>
|
72
|
-
<div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
|
73
|
-
<label class="font_normal_body">隐患名称</label>
|
74
|
-
<v-select :value.sync="model.f_item_name" v-model='model.f_item_name'
|
75
|
-
:value-single="true" style="width: 60%"
|
76
|
-
class="select_list select"
|
77
|
-
:options='$parent.$parent.DefectConfigs' placeholder='隐患名称'
|
78
|
-
close-on-select
|
79
|
-
condition="f_item_name like '%{}%'"></v-select>
|
80
|
-
</div>
|
81
|
-
<div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
|
82
|
-
<label class="font_normal_body">隐患情况</label>
|
83
|
-
<input type="text" class="input_search" v-model="model.f_defect_content"
|
84
|
-
style="width: 60%" placeholder="隐患情况" condition="ditls.f_item_value like '%{}%'">
|
85
|
-
</div>
|
86
|
-
</div>
|
87
|
-
<div class="row" v-show="$parent.$parent.criteriaShow">
|
88
|
-
<div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
|
89
|
-
<label class="font_normal_body">开始时间</label>
|
90
|
-
<datepicker
|
91
|
-
class="select_list select"
|
92
|
-
:value.sync="model.f_check_start"
|
93
|
-
placeholder='开始时间' style="width: 60%"
|
94
|
-
:disabled-days-of-week="[]"
|
95
|
-
:format="'yyyy-MM-dd'"
|
96
|
-
:show-rest-button="reset"
|
97
|
-
v-model="model.f_check_start"
|
98
|
-
condition="f_offsite_time > ='{} 00:00:00'">
|
99
|
-
</datepicker>
|
100
|
-
</div>
|
101
|
-
<div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
|
102
|
-
<label class="font_normal_body">结束时间</label>
|
103
|
-
<datepicker
|
104
|
-
:value.sync="model.f_check_end"
|
105
|
-
placeholder='结束时间' style="width: 60%"
|
106
|
-
:disabled-days-of-week="[]"
|
107
|
-
:format="'yyyy-MM-dd'"
|
108
|
-
:show-rest-button="reset"
|
109
|
-
v-model="model.f_check_end"
|
110
|
-
condition="f_offsite_time <= '{} 23:59:59'">
|
111
|
-
</datepicker>
|
112
|
-
</div>
|
113
|
-
</div>
|
114
|
-
<modal :show.sync="$parent.$parent.showModal" v-ref:modal>
|
115
|
-
<div slot="modal-header" class="modal-header">
|
116
|
-
<h4 class="modal-title">
|
117
|
-
选择计划
|
118
|
-
</h4>
|
119
|
-
</div>
|
120
|
-
<div slot="modal-body" class="modal-body">
|
121
|
-
<plan-chooser :f.sync="$parent.$parent.fun" v-ref:chooser></plan-chooser>
|
122
|
-
</div>
|
123
|
-
<div slot="modal-footer" class="modal-footer" style="text-align: center">
|
124
|
-
<button class="button_search" @click="$parent.$parent.ok">确认</button>
|
125
|
-
<button class="button_search" @click="$parent.$parent.cancel">取消</button>
|
126
|
-
</div>
|
127
|
-
</modal>
|
128
|
-
</div>
|
129
|
-
</criteria>
|
130
|
-
<data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
|
131
|
-
<template partial='head'>
|
132
|
-
<tr>
|
133
|
-
<th>
|
134
|
-
<nobr>检查项</nobr>
|
135
|
-
</th>
|
136
|
-
<th>
|
137
|
-
<nobr>隐患名称</nobr>
|
138
|
-
</th>
|
139
|
-
<th >
|
140
|
-
<nobr>隐患情况</nobr>
|
141
|
-
</th>
|
142
|
-
<th>
|
143
|
-
<nobr>客户编号</nobr>
|
144
|
-
</th>
|
145
|
-
<th>
|
146
|
-
<nobr>客户名称</nobr>
|
147
|
-
</th>
|
148
|
-
<th>
|
149
|
-
<nobr>客户电话</nobr>
|
150
|
-
</th>
|
151
|
-
<th>
|
152
|
-
<nobr>客户小区</nobr>
|
153
|
-
</th>
|
154
|
-
<th>
|
155
|
-
<data-order field="f_address" name="客户地址"></data-order>
|
156
|
-
</th>
|
157
|
-
|
158
|
-
<th>
|
159
|
-
<data-order field="f_offsite_time" name="安检时间"></data-order>
|
160
|
-
</th>
|
161
|
-
<th>
|
162
|
-
<nobr>安检员</nobr>
|
163
|
-
</th>
|
164
|
-
<th>
|
165
|
-
<nobr>操作</nobr>
|
166
|
-
</th>
|
167
|
-
</tr>
|
168
|
-
</template>
|
169
|
-
<template partial='body'>
|
170
|
-
<td style="text-align: center" >{{row.f_device_type}}</td>
|
171
|
-
<td style="text-align: center">{{row.f_item_name}}</td>
|
172
|
-
<td style="text-align: center;" >
|
173
|
-
<button-link type="button" class="btn btn-link"@click="$parent.$parent.$parent.situation(row)">
|
174
|
-
{{row.f_item_value}}
|
175
|
-
</button-link>
|
176
|
-
</td>
|
177
|
-
<td style="text-align: center">{{row.f_userinfo_code}}</td>
|
178
|
-
<td style="text-align: center">{{row.f_user_name}}</td>
|
179
|
-
<td style="text-align: center">{{row.f_user_phone}}</td>
|
180
|
-
<td style="text-align: center">{{row.f_residential_area}}</td>
|
181
|
-
<td style="text-align: center">{{row.f_address}}</td>
|
182
|
-
<td style="text-align: center">{{row.f_offsite_time}}</td>
|
183
|
-
<td style="text-align: center">{{row.f_checker_name}}</td>
|
184
|
-
<td style="text-align: center">
|
185
|
-
<button-link type="button" class="btn btn-link" @click="$parent.$parent.$parent.details(row)">
|
186
|
-
查看详情
|
187
|
-
</button-link>
|
188
|
-
</td>
|
189
|
-
</template>
|
190
|
-
</data-grid>
|
191
|
-
</criteria-paged>
|
192
|
-
<check-msg v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></check-msg>
|
193
|
-
</div>
|
194
|
-
</div>
|
195
|
-
<!--隐患情况详情查看 -->
|
196
|
-
<modal :show.sync="trouble">
|
197
|
-
<div slot="modal-header" class="modal-header">
|
198
|
-
<h4 class="modal-title">
|
199
|
-
隐患情况详情
|
200
|
-
</h4>
|
201
|
-
</div>
|
202
|
-
<div slot="modal-body" class="modal-body" v-if="yhpath.f_path">
|
203
|
-
<img :src="`/rs/image/file/${yhpath.f_path}`" alt="无照片!!!" width="300" height="320">
|
204
|
-
</div>
|
205
|
-
<div slot="modal-footer" class="modal-footer">
|
206
|
-
<button type="button" class="btn btn-default" @click="trouble = false;yhpath=null">确认</button>
|
207
|
-
</div>
|
208
|
-
</modal>
|
209
|
-
</template>
|
210
|
-
|
211
|
-
<script>
|
212
|
-
import {PagedList} from 'vue-client'
|
213
|
-
import Vue from 'vue'
|
214
|
-
import co from 'co'
|
215
|
-
import AppData from '../../../stores/AppData'
|
216
|
-
import * as Util from '../../Util'
|
217
|
-
import getNowDate from "../../../utils/getNowDate";
|
218
|
-
import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
|
219
|
-
import BenzAMRRecorder from 'benz-amr-recorder'
|
220
|
-
|
221
|
-
//获取json配置文件
|
222
|
-
let asyncReady = async function (self) {
|
223
|
-
// 获取配置信息
|
224
|
-
try {
|
225
|
-
let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
|
226
|
-
Vue.config = res.data
|
227
|
-
self.getDefectInfoConfig(res.data)
|
228
|
-
} catch (error) {
|
229
|
-
// 忽略704,文件找不到异常R
|
230
|
-
if (error.status !== 704) {
|
231
|
-
throw error
|
232
|
-
}
|
233
|
-
}
|
234
|
-
}
|
235
|
-
|
236
|
-
let select = function* (self) {
|
237
|
-
let http = new HttpResetClass()
|
238
|
-
let getGasman = yield http.load('POST', '/rs/search', {
|
239
|
-
source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
|
240
|
-
userid: self.$login.f.id
|
241
|
-
}, {resolveMsg: null, rejectMsg: null})
|
242
|
-
////tag
|
243
|
-
self.checkersid.push({label: '全部', value: ''})
|
244
|
-
getGasman.data.forEach((checker) => {
|
245
|
-
self.checkersid.push({label: checker.name, value: checker.id})
|
246
|
-
})
|
247
|
-
}
|
248
|
-
|
249
|
-
export default {
|
250
|
-
title: '隐患明细查看',
|
251
|
-
data() {
|
252
|
-
let model = new PagedList('api/af-safecheck/sql/safe_singleTable_OrderBy', 20, {
|
253
|
-
items: "'tcp.*,tpd.f_device_type,ditls.f_item_name,ditls.f_item_value,ditls.f_path,ass.f_user_type,ass.version'",
|
254
|
-
tablename: "'t_check_paper tcp LEFT JOIN t_paper_devices tpd ON tcp.id= tpd.f_paper_id LEFT JOIN t_userfiles ass on tcp.f_userinfoid=ass.f_userinfo_id LEFT JOIN (SELECT dits.f_is_defect,dits.f_device_id,dits.f_item_name,ditl.f_item_value ,dits.f_path FROM t_devices_items dits LEFT JOIN t_devices_items_lists ditl ON dits.id = ditl.f_item_id ) ditls ON tpd.id= ditls.f_device_id'",
|
255
|
-
orderitem: "'f_offsite_time'"
|
256
|
-
})
|
257
|
-
model.f_plan_id = ''
|
258
|
-
model.f_approved = ''
|
259
|
-
model.f_entry = ''
|
260
|
-
model.f_no_checkplan = ''
|
261
|
-
model.f_filialeid = `('${this.$login.f.orgid}')`
|
262
|
-
//model.f_check_type='民用'
|
263
|
-
// let searchData={
|
264
|
-
// f_plan_id: this.model.f_checker_id==undefined?"":this.model.f_checker_id,
|
265
|
-
// f_approved: this.model.f_approved,
|
266
|
-
// f_entry_status: this.model.f_entry,
|
267
|
-
// f_no_checkplan:this.model.f_no_checkplan[0],
|
268
|
-
// f_filialeid: this.model.f_filialeid,
|
269
|
-
// //orderitem: this.model.f_offsite_time,
|
270
|
-
// //condition:this.model.condition
|
271
|
-
// }
|
272
|
-
// model.f_subcompany = this.$login.f.f_fengongsi
|
273
|
-
|
274
|
-
return {
|
275
|
-
isshowd:true,
|
276
|
-
audioshow:false,
|
277
|
-
trouble:false,
|
278
|
-
searchData: {
|
279
|
-
condition: "ditls.f_is_defect = 'true' ",
|
280
|
-
items: "tcp.f_defect_content,tcp.f_userinfo_code,tcp.f_user_name,tcp.f_user_phone,tcp.f_residential_area,tcp.f_address,tcp.f_checker_name,tcp.f_offsite_time,tcp.f_filialeid,tpd.f_device_type,ditls.f_item_name,ditls.f_item_value",
|
281
|
-
tablename: "t_check_paper tcp LEFT JOIN t_paper_devices tpd ON tcp.id= tpd.f_paper_id LEFT JOIN ( SELECT dits.f_is_defect,dits.f_device_id, dits.f_item_name, ditl.f_item_value FROM t_devices_items dits LEFT JOIN t_devices_items_lists ditl ON dits.id = ditl.f_item_id ) ditls ON tpd.id= ditls.f_device_id",
|
282
|
-
orderitem: "f_offsite_time"
|
283
|
-
},
|
284
|
-
model: model,
|
285
|
-
//searchData:searchData,
|
286
|
-
excelHeaders: {
|
287
|
-
'f_device_type': '检查项',
|
288
|
-
'f_item_name': '隐患名称',
|
289
|
-
'f_item_value': '隐患情况',
|
290
|
-
'f_userinfo_code': '客户编号',
|
291
|
-
'f_user_name': '客户姓名',
|
292
|
-
'f_user_phone': '客户类型',
|
293
|
-
'f_residential_area': '小区',
|
294
|
-
'f_address': '客户地址',
|
295
|
-
'f_offsite_time': '安检时间',
|
296
|
-
'f_checker_name': '安检员'
|
297
|
-
},
|
298
|
-
fun: this.$login.f,
|
299
|
-
checkersid: [],
|
300
|
-
safetype: [
|
301
|
-
{label: '全部', value: ''}, ...this.$appdata.getParam('安检类型')],
|
302
|
-
criteriaShow: false,
|
303
|
-
showModal: false,
|
304
|
-
f_approval_states: this.$appdata.getParam('安检单审核状态'),
|
305
|
-
f_entry_status: [{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')],
|
306
|
-
f_checkplans: this.$appdata.getParam('有无计划'),
|
307
|
-
showcheckmsg: false,
|
308
|
-
checkInfo: {},
|
309
|
-
orderDefault: "'f_offsite_time'",
|
310
|
-
orderFields: {
|
311
|
-
f_offsite_time: 'no'
|
312
|
-
},
|
313
|
-
DefectConfig:'' ,
|
314
|
-
DefectConfigs:[{label:'全部',value:''}],
|
315
|
-
device_types:[{label:'全部',value:''}],
|
316
|
-
sliceArea: [],
|
317
|
-
cbc:[],
|
318
|
-
yhpath:null
|
319
|
-
}
|
320
|
-
},
|
321
|
-
methods: {
|
322
|
-
//隐患情况详情查看
|
323
|
-
situation(row){
|
324
|
-
//tag
|
325
|
-
if (row.f_item_name === '气量异常差值'){
|
326
|
-
this.$showMessage('气量异常差值无照片!!!')
|
327
|
-
}else {
|
328
|
-
this.yhpath=row
|
329
|
-
//tag;
|
330
|
-
//tag
|
331
|
-
this.trouble=true
|
332
|
-
}
|
333
|
-
},
|
334
|
-
details(row) {
|
335
|
-
// Vue.$login = {jwt: row.f_checker_id}
|
336
|
-
asyncReady(this).then(() => {
|
337
|
-
////tag)
|
338
|
-
row.f_upload_state = '已传'
|
339
|
-
this.isshowd=false
|
340
|
-
this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self',this.isshowdtrue)
|
341
|
-
}).catch(
|
342
|
-
(respanse) => {
|
343
|
-
alert('获取配置文件失败')
|
344
|
-
})
|
345
|
-
},
|
346
|
-
isshowdtrue() {
|
347
|
-
this.isshowd = true
|
348
|
-
},
|
349
|
-
showaudio(){
|
350
|
-
//tag
|
351
|
-
this.audioshow=!this.audioshow
|
352
|
-
//tag
|
353
|
-
},
|
354
|
-
changeDefect(val){
|
355
|
-
try {
|
356
|
-
if(val){
|
357
|
-
for (var Key1 in this.DefectConfig){
|
358
|
-
if(Key1 == val){
|
359
|
-
this.DefectConfigs = [{label:'全部',value:''}]
|
360
|
-
for(var Key2 in this.DefectConfig[Key1].items){
|
361
|
-
this.DefectConfigs.push({label:Key2,value:Key2})
|
362
|
-
}
|
363
|
-
return
|
364
|
-
}
|
365
|
-
}
|
366
|
-
}else if(val == ''){
|
367
|
-
this.DefectConfigs = [{label:'全部',value:''}]
|
368
|
-
for (var Key1 in this.DefectConfig){
|
369
|
-
for(var Key2 in this.DefectConfig[Key1].items){
|
370
|
-
this.DefectConfigs.push({label:Key2,value:Key2})
|
371
|
-
}
|
372
|
-
}
|
373
|
-
}
|
374
|
-
}catch (e) {
|
375
|
-
//tag
|
376
|
-
}
|
377
|
-
},
|
378
|
-
getDefectInfoConfig(val){
|
379
|
-
try {
|
380
|
-
if (val.safecheck.DevicesSetConfig != undefined) {
|
381
|
-
this.DefectConfig = val.safecheck.DevicesConfig
|
382
|
-
// 获取到配置项,进行遍历,获取每个隐患项
|
383
|
-
for (var Key1 in this.DefectConfig){
|
384
|
-
this.device_types.push({label:Key1,value:Key1})
|
385
|
-
for(var Key2 in this.DefectConfig[Key1].items){
|
386
|
-
this.DefectConfigs.push({label:Key2,value:Key2})
|
387
|
-
}
|
388
|
-
}
|
389
|
-
// 非民用或其他配置项加入,在进行遍历
|
390
|
-
}
|
391
|
-
}catch (e) {
|
392
|
-
//tag
|
393
|
-
}
|
394
|
-
},
|
395
|
-
getmeterbook(val){
|
396
|
-
this.cbc=[]
|
397
|
-
this.cbc.push({
|
398
|
-
label:'全部',
|
399
|
-
value:''
|
400
|
-
})
|
401
|
-
if (val==''){
|
402
|
-
|
403
|
-
this.cbcs.forEach(res=>{
|
404
|
-
this.cbc.push({
|
405
|
-
label:res.f_book_name,
|
406
|
-
value:res.id
|
407
|
-
})
|
408
|
-
})
|
409
|
-
}else{
|
410
|
-
this.cbcs.forEach(res=>{
|
411
|
-
if (res.f_book_slice_area==val){
|
412
|
-
this.cbc.push({
|
413
|
-
label:res.f_book_name,
|
414
|
-
value:res.id
|
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
|
-
getRes(obj) {
|
478
|
-
this.model.f_filialeid = this.$login.convertToIn(obj.resids);
|
479
|
-
this.searchData.f_filialeid = this.$login.convertToIn(obj.resids);
|
480
|
-
this.Mreadibook(this.model.f_filialeid)
|
481
|
-
this.getAllMeterBook(this.model.f_filialeid)
|
482
|
-
//this.$refs.paged.$refs.criteria.search()
|
483
|
-
},
|
484
|
-
readConfig() {
|
485
|
-
let gen = asyncReady(this)
|
486
|
-
return co(gen)
|
487
|
-
},
|
488
|
-
showChooser() {
|
489
|
-
this.showModal = true
|
490
|
-
},
|
491
|
-
hidden() {
|
492
|
-
this.criteriaShow = !this.criteriaShow
|
493
|
-
},
|
494
|
-
refresh() {
|
495
|
-
this.$refs.paged.$refs.criteria.search()
|
496
|
-
},
|
497
|
-
ok() {
|
498
|
-
this.showModal = false
|
499
|
-
if (this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id) {
|
500
|
-
this.model.f_plan_id = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id
|
501
|
-
this.model.f_check_plan=this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
|
502
|
-
}
|
503
|
-
},
|
504
|
-
cancel() {
|
505
|
-
this.showModal = false
|
506
|
-
this.model.f_check_plan = {f_plan_name: '', id: ''}
|
507
|
-
this.model.f_plan_id=''
|
508
|
-
},
|
509
|
-
print(row) {
|
510
|
-
this.showcheckmsg = true
|
511
|
-
this.checkInfo = row
|
512
|
-
},
|
513
|
-
sort(field, rule) {
|
514
|
-
// 将所有排序方式设为不排序,实现相互排斥
|
515
|
-
for (let key in this.orderFields) {
|
516
|
-
if (key === field) {
|
517
|
-
this.orderFields[key] = rule
|
518
|
-
} else {
|
519
|
-
this.orderFields[key] = 'no'
|
520
|
-
}
|
521
|
-
}
|
522
|
-
// 如果新规则不排序,还原为默认排序
|
523
|
-
if (rule === 'no') {
|
524
|
-
this.model.paramSource.orderitem = `'${this.orderDefault}'`
|
525
|
-
} else {
|
526
|
-
this.model.paramSource.orderitem = `'${field} ${rule}'`
|
527
|
-
}
|
528
|
-
this.search()
|
529
|
-
},
|
530
|
-
search() {
|
531
|
-
this.$refs.paged.$refs.criteria.search()
|
532
|
-
},
|
533
|
-
selfSearch(args) {
|
534
|
-
////tag
|
535
|
-
args.condition+=" and ditls.f_is_defect = 'true' "
|
536
|
-
this.model.search(args.condition, args.model, args.condValue)
|
537
|
-
}
|
538
|
-
},
|
539
|
-
ready() {
|
540
|
-
////tag
|
541
|
-
this.readConfig()
|
542
|
-
this.function = this.f
|
543
|
-
////tag
|
544
|
-
|
545
|
-
let gen = select(this)
|
546
|
-
//this.pianqu()
|
547
|
-
this.Mreadibook(`('${this.$login.f.orgid}')`)
|
548
|
-
co(gen)
|
549
|
-
},
|
550
|
-
watch: {
|
551
|
-
'model.f_no_checkplan'(val) {
|
552
|
-
if (this.model.f_no_checkplan){
|
553
|
-
this.searchData.f_no_checkplan = val
|
554
|
-
}
|
555
|
-
if (this.model.f_no_checkplan == '有计划安检') {
|
556
|
-
|
557
|
-
this.showChooser()
|
558
|
-
}
|
559
|
-
},
|
560
|
-
'model.condition'(val) {
|
561
|
-
if (val) {
|
562
|
-
this.searchData.condition = val
|
563
|
-
}
|
564
|
-
|
565
|
-
},
|
566
|
-
'model.f_entry'(val) {
|
567
|
-
if (val) {
|
568
|
-
this.searchData.f_entry_status = val
|
569
|
-
}
|
570
|
-
},
|
571
|
-
'model.f_plan_id'(val) {
|
572
|
-
if (val) {
|
573
|
-
this.searchData.f_plan_id = val
|
574
|
-
}
|
575
|
-
},
|
576
|
-
'model.f_slice_area'(val) {
|
577
|
-
if (val) {
|
578
|
-
|
579
|
-
}
|
580
|
-
},
|
581
|
-
'model.f_approved'(val) {
|
582
|
-
if (val) {
|
583
|
-
this.searchData.f_approved = val
|
584
|
-
}
|
585
|
-
},
|
586
|
-
}
|
587
|
-
|
588
|
-
}
|
589
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<div class="flex-row" v-show="isshowd">
|
3
|
+
<div class="basic-main">
|
4
|
+
<criteria-paged :model="model" v-ref:paged @sort="sort">
|
5
|
+
<criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
|
6
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
7
|
+
<div class="row">
|
8
|
+
<div class="form-group col-sm-2" >
|
9
|
+
<label class="font_normal_body">客户编号</label>
|
10
|
+
<input type="text" class="input_search" v-model="model.f_userinfo_code"
|
11
|
+
style="width: 60%" placeholder="客户编号" condition="f_userinfo_code='{}'">
|
12
|
+
</div>
|
13
|
+
<div class="form-group col-sm-2" >
|
14
|
+
<label class="font_normal_body">客户名称</label>
|
15
|
+
<input type="text" class="input_search" v-model="model.f_user_name"
|
16
|
+
style="width: 60%" placeholder="客户名称" condition="f_user_name like '%{}%'">
|
17
|
+
</div>
|
18
|
+
<div class="form-group col-sm-2" >
|
19
|
+
<label class="font_normal_body">客户电话</label>
|
20
|
+
<input type="text" class="input_search" v-model="model.f_user_phone"
|
21
|
+
style="width: 60%" placeholder="客户电话" condition="f_user_phone like '%{}%'">
|
22
|
+
</div>
|
23
|
+
<div class="form-group col-sm-2" >
|
24
|
+
<label class="font_normal_body">小  区</label>
|
25
|
+
<input type="text" class="input_search" v-model="model.f_residential_area"
|
26
|
+
style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
|
27
|
+
</div>
|
28
|
+
<div class="form-group col-sm-2" >
|
29
|
+
<label class="font_normal_body">详细地址</label>
|
30
|
+
<input type="text" class="input_search" v-model="model.f_address"
|
31
|
+
style="width: 60%" placeholder="详细地址" condition="f_address like '%{}%'">
|
32
|
+
</div>
|
33
|
+
<div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
|
34
|
+
|
35
|
+
<export-excel :data="$parent.$parent.searchData"
|
36
|
+
:field="$parent.$parent.excelHeaders"
|
37
|
+
progress="safeGetExportProgress"
|
38
|
+
sqlurl="api/af-safecheck/logic/exportfile" sql-name="safe_singleTable_OrderBy" template-name='安检隐患明细'></export-excel>
|
39
|
+
<!-- <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="!$parent.$parent.audioshow">录音</button>-->
|
40
|
+
<button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="$parent.$parent.audioshow">隐藏</button>
|
41
|
+
|
42
|
+
<button class="button_spacing button_search" @click="search()">查询</button>
|
43
|
+
<div style="float: right" class="button_spacing"
|
44
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
45
|
+
@click="$parent.$parent.hidden()"></div>
|
46
|
+
</div>
|
47
|
+
|
48
|
+
</div>
|
49
|
+
<div class="row">
|
50
|
+
<div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
|
51
|
+
<role-selector-safe
|
52
|
+
role-name="安检员"
|
53
|
+
role-lable="安 检 员 "
|
54
|
+
@re-res="$parent.$parent.getRes"
|
55
|
+
:value.sync="model.f_checker_id"
|
56
|
+
v-model="model.f_checker_id"
|
57
|
+
condition="f_checker_name = '{}'">
|
58
|
+
</role-selector-safe>
|
59
|
+
</div>
|
60
|
+
<div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
|
61
|
+
<label class="font_normal_body">检 查 项</label>
|
62
|
+
<v-select :value.sync="model.f_device_type" v-model='model.f_device_type'
|
63
|
+
:value-single="true" style="width: 60%"
|
64
|
+
class="select_list select"
|
65
|
+
:options='$parent.$parent.device_types' placeholder='检查项'
|
66
|
+
close-on-select
|
67
|
+
@change="$parent.$parent.changeDefect"
|
68
|
+
condition="f_item_name like '%{}%'"></v-select>
|
69
|
+
<!--<input type="text" class="input_search" v-model="model.f_device_type"-->
|
70
|
+
<!--style="width: 60%" placeholder="检 查 项" condition="f_device_type like '%{}%'">-->
|
71
|
+
</div>
|
72
|
+
<div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
|
73
|
+
<label class="font_normal_body">隐患名称</label>
|
74
|
+
<v-select :value.sync="model.f_item_name" v-model='model.f_item_name'
|
75
|
+
:value-single="true" style="width: 60%"
|
76
|
+
class="select_list select"
|
77
|
+
:options='$parent.$parent.DefectConfigs' placeholder='隐患名称'
|
78
|
+
close-on-select
|
79
|
+
condition="f_item_name like '%{}%'"></v-select>
|
80
|
+
</div>
|
81
|
+
<div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
|
82
|
+
<label class="font_normal_body">隐患情况</label>
|
83
|
+
<input type="text" class="input_search" v-model="model.f_defect_content"
|
84
|
+
style="width: 60%" placeholder="隐患情况" condition="ditls.f_item_value like '%{}%'">
|
85
|
+
</div>
|
86
|
+
</div>
|
87
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
88
|
+
<div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
|
89
|
+
<label class="font_normal_body">开始时间</label>
|
90
|
+
<datepicker
|
91
|
+
class="select_list select"
|
92
|
+
:value.sync="model.f_check_start"
|
93
|
+
placeholder='开始时间' style="width: 60%"
|
94
|
+
:disabled-days-of-week="[]"
|
95
|
+
:format="'yyyy-MM-dd'"
|
96
|
+
:show-rest-button="reset"
|
97
|
+
v-model="model.f_check_start"
|
98
|
+
condition="f_offsite_time > ='{} 00:00:00'">
|
99
|
+
</datepicker>
|
100
|
+
</div>
|
101
|
+
<div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
|
102
|
+
<label class="font_normal_body">结束时间</label>
|
103
|
+
<datepicker
|
104
|
+
:value.sync="model.f_check_end"
|
105
|
+
placeholder='结束时间' style="width: 60%"
|
106
|
+
:disabled-days-of-week="[]"
|
107
|
+
:format="'yyyy-MM-dd'"
|
108
|
+
:show-rest-button="reset"
|
109
|
+
v-model="model.f_check_end"
|
110
|
+
condition="f_offsite_time <= '{} 23:59:59'">
|
111
|
+
</datepicker>
|
112
|
+
</div>
|
113
|
+
</div>
|
114
|
+
<modal :show.sync="$parent.$parent.showModal" v-ref:modal>
|
115
|
+
<div slot="modal-header" class="modal-header">
|
116
|
+
<h4 class="modal-title">
|
117
|
+
选择计划
|
118
|
+
</h4>
|
119
|
+
</div>
|
120
|
+
<div slot="modal-body" class="modal-body">
|
121
|
+
<plan-chooser :f.sync="$parent.$parent.fun" v-ref:chooser></plan-chooser>
|
122
|
+
</div>
|
123
|
+
<div slot="modal-footer" class="modal-footer" style="text-align: center">
|
124
|
+
<button class="button_search" @click="$parent.$parent.ok">确认</button>
|
125
|
+
<button class="button_search" @click="$parent.$parent.cancel">取消</button>
|
126
|
+
</div>
|
127
|
+
</modal>
|
128
|
+
</div>
|
129
|
+
</criteria>
|
130
|
+
<data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
|
131
|
+
<template partial='head'>
|
132
|
+
<tr>
|
133
|
+
<th>
|
134
|
+
<nobr>检查项</nobr>
|
135
|
+
</th>
|
136
|
+
<th>
|
137
|
+
<nobr>隐患名称</nobr>
|
138
|
+
</th>
|
139
|
+
<th >
|
140
|
+
<nobr>隐患情况</nobr>
|
141
|
+
</th>
|
142
|
+
<th>
|
143
|
+
<nobr>客户编号</nobr>
|
144
|
+
</th>
|
145
|
+
<th>
|
146
|
+
<nobr>客户名称</nobr>
|
147
|
+
</th>
|
148
|
+
<th>
|
149
|
+
<nobr>客户电话</nobr>
|
150
|
+
</th>
|
151
|
+
<th>
|
152
|
+
<nobr>客户小区</nobr>
|
153
|
+
</th>
|
154
|
+
<th>
|
155
|
+
<data-order field="f_address" name="客户地址"></data-order>
|
156
|
+
</th>
|
157
|
+
|
158
|
+
<th>
|
159
|
+
<data-order field="f_offsite_time" name="安检时间"></data-order>
|
160
|
+
</th>
|
161
|
+
<th>
|
162
|
+
<nobr>安检员</nobr>
|
163
|
+
</th>
|
164
|
+
<th>
|
165
|
+
<nobr>操作</nobr>
|
166
|
+
</th>
|
167
|
+
</tr>
|
168
|
+
</template>
|
169
|
+
<template partial='body'>
|
170
|
+
<td style="text-align: center" >{{row.f_device_type}}</td>
|
171
|
+
<td style="text-align: center">{{row.f_item_name}}</td>
|
172
|
+
<td style="text-align: center;" >
|
173
|
+
<button-link type="button" class="btn btn-link"@click="$parent.$parent.$parent.situation(row)">
|
174
|
+
{{row.f_item_value}}
|
175
|
+
</button-link>
|
176
|
+
</td>
|
177
|
+
<td style="text-align: center">{{row.f_userinfo_code}}</td>
|
178
|
+
<td style="text-align: center">{{row.f_user_name}}</td>
|
179
|
+
<td style="text-align: center">{{row.f_user_phone}}</td>
|
180
|
+
<td style="text-align: center">{{row.f_residential_area}}</td>
|
181
|
+
<td style="text-align: center">{{row.f_address}}</td>
|
182
|
+
<td style="text-align: center">{{row.f_offsite_time}}</td>
|
183
|
+
<td style="text-align: center">{{row.f_checker_name}}</td>
|
184
|
+
<td style="text-align: center">
|
185
|
+
<button-link type="button" class="btn btn-link" @click="$parent.$parent.$parent.details(row)">
|
186
|
+
查看详情
|
187
|
+
</button-link>
|
188
|
+
</td>
|
189
|
+
</template>
|
190
|
+
</data-grid>
|
191
|
+
</criteria-paged>
|
192
|
+
<check-msg v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></check-msg>
|
193
|
+
</div>
|
194
|
+
</div>
|
195
|
+
<!--隐患情况详情查看 -->
|
196
|
+
<modal :show.sync="trouble">
|
197
|
+
<div slot="modal-header" class="modal-header">
|
198
|
+
<h4 class="modal-title">
|
199
|
+
隐患情况详情
|
200
|
+
</h4>
|
201
|
+
</div>
|
202
|
+
<div slot="modal-body" class="modal-body" v-if="yhpath.f_path">
|
203
|
+
<img :src="`/rs/image/file/${yhpath.f_path}`" alt="无照片!!!" width="300" height="320">
|
204
|
+
</div>
|
205
|
+
<div slot="modal-footer" class="modal-footer">
|
206
|
+
<button type="button" class="btn btn-default" @click="trouble = false;yhpath=null">确认</button>
|
207
|
+
</div>
|
208
|
+
</modal>
|
209
|
+
</template>
|
210
|
+
|
211
|
+
<script>
|
212
|
+
import {PagedList} from 'vue-client'
|
213
|
+
import Vue from 'vue'
|
214
|
+
import co from 'co'
|
215
|
+
import AppData from '../../../stores/AppData'
|
216
|
+
import * as Util from '../../Util'
|
217
|
+
import getNowDate from "../../../utils/getNowDate";
|
218
|
+
import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
|
219
|
+
import BenzAMRRecorder from 'benz-amr-recorder'
|
220
|
+
|
221
|
+
//获取json配置文件
|
222
|
+
let asyncReady = async function (self) {
|
223
|
+
// 获取配置信息
|
224
|
+
try {
|
225
|
+
let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
|
226
|
+
Vue.config = res.data
|
227
|
+
self.getDefectInfoConfig(res.data)
|
228
|
+
} catch (error) {
|
229
|
+
// 忽略704,文件找不到异常R
|
230
|
+
if (error.status !== 704) {
|
231
|
+
throw error
|
232
|
+
}
|
233
|
+
}
|
234
|
+
}
|
235
|
+
|
236
|
+
let select = function* (self) {
|
237
|
+
let http = new HttpResetClass()
|
238
|
+
let getGasman = yield http.load('POST', '/rs/search', {
|
239
|
+
source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
|
240
|
+
userid: self.$login.f.id
|
241
|
+
}, {resolveMsg: null, rejectMsg: null})
|
242
|
+
////tag
|
243
|
+
self.checkersid.push({label: '全部', value: ''})
|
244
|
+
getGasman.data.forEach((checker) => {
|
245
|
+
self.checkersid.push({label: checker.name, value: checker.id})
|
246
|
+
})
|
247
|
+
}
|
248
|
+
|
249
|
+
export default {
|
250
|
+
title: '隐患明细查看',
|
251
|
+
data() {
|
252
|
+
let model = new PagedList('api/af-safecheck/sql/safe_singleTable_OrderBy', 20, {
|
253
|
+
items: "'tcp.*,tpd.f_device_type,ditls.f_item_name,ditls.f_item_value,ditls.f_path,ass.f_user_type,ass.version'",
|
254
|
+
tablename: "'t_check_paper tcp LEFT JOIN t_paper_devices tpd ON tcp.id= tpd.f_paper_id LEFT JOIN t_userfiles ass on tcp.f_userinfoid=ass.f_userinfo_id LEFT JOIN (SELECT dits.f_is_defect,dits.f_device_id,dits.f_item_name,ditl.f_item_value ,dits.f_path FROM t_devices_items dits LEFT JOIN t_devices_items_lists ditl ON dits.id = ditl.f_item_id ) ditls ON tpd.id= ditls.f_device_id'",
|
255
|
+
orderitem: "'f_offsite_time'"
|
256
|
+
})
|
257
|
+
model.f_plan_id = ''
|
258
|
+
model.f_approved = ''
|
259
|
+
model.f_entry = ''
|
260
|
+
model.f_no_checkplan = ''
|
261
|
+
model.f_filialeid = `('${this.$login.f.orgid}')`
|
262
|
+
//model.f_check_type='民用'
|
263
|
+
// let searchData={
|
264
|
+
// f_plan_id: this.model.f_checker_id==undefined?"":this.model.f_checker_id,
|
265
|
+
// f_approved: this.model.f_approved,
|
266
|
+
// f_entry_status: this.model.f_entry,
|
267
|
+
// f_no_checkplan:this.model.f_no_checkplan[0],
|
268
|
+
// f_filialeid: this.model.f_filialeid,
|
269
|
+
// //orderitem: this.model.f_offsite_time,
|
270
|
+
// //condition:this.model.condition
|
271
|
+
// }
|
272
|
+
// model.f_subcompany = this.$login.f.f_fengongsi
|
273
|
+
|
274
|
+
return {
|
275
|
+
isshowd:true,
|
276
|
+
audioshow:false,
|
277
|
+
trouble:false,
|
278
|
+
searchData: {
|
279
|
+
condition: "ditls.f_is_defect = 'true' ",
|
280
|
+
items: "tcp.f_defect_content,tcp.f_userinfo_code,tcp.f_user_name,tcp.f_user_phone,tcp.f_residential_area,tcp.f_address,tcp.f_checker_name,tcp.f_offsite_time,tcp.f_filialeid,tpd.f_device_type,ditls.f_item_name,ditls.f_item_value",
|
281
|
+
tablename: "t_check_paper tcp LEFT JOIN t_paper_devices tpd ON tcp.id= tpd.f_paper_id LEFT JOIN ( SELECT dits.f_is_defect,dits.f_device_id, dits.f_item_name, ditl.f_item_value FROM t_devices_items dits LEFT JOIN t_devices_items_lists ditl ON dits.id = ditl.f_item_id ) ditls ON tpd.id= ditls.f_device_id",
|
282
|
+
orderitem: "f_offsite_time"
|
283
|
+
},
|
284
|
+
model: model,
|
285
|
+
//searchData:searchData,
|
286
|
+
excelHeaders: {
|
287
|
+
'f_device_type': '检查项',
|
288
|
+
'f_item_name': '隐患名称',
|
289
|
+
'f_item_value': '隐患情况',
|
290
|
+
'f_userinfo_code': '客户编号',
|
291
|
+
'f_user_name': '客户姓名',
|
292
|
+
'f_user_phone': '客户类型',
|
293
|
+
'f_residential_area': '小区',
|
294
|
+
'f_address': '客户地址',
|
295
|
+
'f_offsite_time': '安检时间',
|
296
|
+
'f_checker_name': '安检员'
|
297
|
+
},
|
298
|
+
fun: this.$login.f,
|
299
|
+
checkersid: [],
|
300
|
+
safetype: [
|
301
|
+
{label: '全部', value: ''}, ...this.$appdata.getParam('安检类型')],
|
302
|
+
criteriaShow: false,
|
303
|
+
showModal: false,
|
304
|
+
f_approval_states: this.$appdata.getParam('安检单审核状态'),
|
305
|
+
f_entry_status: [{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')],
|
306
|
+
f_checkplans: this.$appdata.getParam('有无计划'),
|
307
|
+
showcheckmsg: false,
|
308
|
+
checkInfo: {},
|
309
|
+
orderDefault: "'f_offsite_time'",
|
310
|
+
orderFields: {
|
311
|
+
f_offsite_time: 'no'
|
312
|
+
},
|
313
|
+
DefectConfig:'' ,
|
314
|
+
DefectConfigs:[{label:'全部',value:''}],
|
315
|
+
device_types:[{label:'全部',value:''}],
|
316
|
+
sliceArea: [],
|
317
|
+
cbc:[],
|
318
|
+
yhpath:null
|
319
|
+
}
|
320
|
+
},
|
321
|
+
methods: {
|
322
|
+
//隐患情况详情查看
|
323
|
+
situation(row){
|
324
|
+
//tag
|
325
|
+
if (row.f_item_name === '气量异常差值'){
|
326
|
+
this.$showMessage('气量异常差值无照片!!!')
|
327
|
+
}else {
|
328
|
+
this.yhpath=row
|
329
|
+
//tag;
|
330
|
+
//tag
|
331
|
+
this.trouble=true
|
332
|
+
}
|
333
|
+
},
|
334
|
+
details(row) {
|
335
|
+
// Vue.$login = {jwt: row.f_checker_id}
|
336
|
+
asyncReady(this).then(() => {
|
337
|
+
////tag)
|
338
|
+
row.f_upload_state = '已传'
|
339
|
+
this.isshowd=false
|
340
|
+
this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self',this.isshowdtrue)
|
341
|
+
}).catch(
|
342
|
+
(respanse) => {
|
343
|
+
alert('获取配置文件失败')
|
344
|
+
})
|
345
|
+
},
|
346
|
+
isshowdtrue() {
|
347
|
+
this.isshowd = true
|
348
|
+
},
|
349
|
+
showaudio(){
|
350
|
+
//tag
|
351
|
+
this.audioshow=!this.audioshow
|
352
|
+
//tag
|
353
|
+
},
|
354
|
+
changeDefect(val){
|
355
|
+
try {
|
356
|
+
if(val){
|
357
|
+
for (var Key1 in this.DefectConfig){
|
358
|
+
if(Key1 == val){
|
359
|
+
this.DefectConfigs = [{label:'全部',value:''}]
|
360
|
+
for(var Key2 in this.DefectConfig[Key1].items){
|
361
|
+
this.DefectConfigs.push({label:Key2,value:Key2})
|
362
|
+
}
|
363
|
+
return
|
364
|
+
}
|
365
|
+
}
|
366
|
+
}else if(val == ''){
|
367
|
+
this.DefectConfigs = [{label:'全部',value:''}]
|
368
|
+
for (var Key1 in this.DefectConfig){
|
369
|
+
for(var Key2 in this.DefectConfig[Key1].items){
|
370
|
+
this.DefectConfigs.push({label:Key2,value:Key2})
|
371
|
+
}
|
372
|
+
}
|
373
|
+
}
|
374
|
+
}catch (e) {
|
375
|
+
//tag
|
376
|
+
}
|
377
|
+
},
|
378
|
+
getDefectInfoConfig(val){
|
379
|
+
try {
|
380
|
+
if (val.safecheck.DevicesSetConfig != undefined) {
|
381
|
+
this.DefectConfig = val.safecheck.DevicesConfig
|
382
|
+
// 获取到配置项,进行遍历,获取每个隐患项
|
383
|
+
for (var Key1 in this.DefectConfig){
|
384
|
+
this.device_types.push({label:Key1,value:Key1})
|
385
|
+
for(var Key2 in this.DefectConfig[Key1].items){
|
386
|
+
this.DefectConfigs.push({label:Key2,value:Key2})
|
387
|
+
}
|
388
|
+
}
|
389
|
+
// 非民用或其他配置项加入,在进行遍历
|
390
|
+
}
|
391
|
+
}catch (e) {
|
392
|
+
//tag
|
393
|
+
}
|
394
|
+
},
|
395
|
+
getmeterbook(val){
|
396
|
+
this.cbc=[]
|
397
|
+
this.cbc.push({
|
398
|
+
label:'全部',
|
399
|
+
value:''
|
400
|
+
})
|
401
|
+
if (val==''){
|
402
|
+
|
403
|
+
this.cbcs.forEach(res=>{
|
404
|
+
this.cbc.push({
|
405
|
+
label:res.f_book_name,
|
406
|
+
value:res.id
|
407
|
+
})
|
408
|
+
})
|
409
|
+
}else{
|
410
|
+
this.cbcs.forEach(res=>{
|
411
|
+
if (res.f_book_slice_area==val){
|
412
|
+
this.cbc.push({
|
413
|
+
label:res.f_book_name,
|
414
|
+
value:res.id
|
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
|
+
getRes(obj) {
|
478
|
+
this.model.f_filialeid = this.$login.convertToIn(obj.resids);
|
479
|
+
this.searchData.f_filialeid = this.$login.convertToIn(obj.resids);
|
480
|
+
this.Mreadibook(this.model.f_filialeid)
|
481
|
+
this.getAllMeterBook(this.model.f_filialeid)
|
482
|
+
//this.$refs.paged.$refs.criteria.search()
|
483
|
+
},
|
484
|
+
readConfig() {
|
485
|
+
let gen = asyncReady(this)
|
486
|
+
return co(gen)
|
487
|
+
},
|
488
|
+
showChooser() {
|
489
|
+
this.showModal = true
|
490
|
+
},
|
491
|
+
hidden() {
|
492
|
+
this.criteriaShow = !this.criteriaShow
|
493
|
+
},
|
494
|
+
refresh() {
|
495
|
+
this.$refs.paged.$refs.criteria.search()
|
496
|
+
},
|
497
|
+
ok() {
|
498
|
+
this.showModal = false
|
499
|
+
if (this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id) {
|
500
|
+
this.model.f_plan_id = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id
|
501
|
+
this.model.f_check_plan=this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
|
502
|
+
}
|
503
|
+
},
|
504
|
+
cancel() {
|
505
|
+
this.showModal = false
|
506
|
+
this.model.f_check_plan = {f_plan_name: '', id: ''}
|
507
|
+
this.model.f_plan_id=''
|
508
|
+
},
|
509
|
+
print(row) {
|
510
|
+
this.showcheckmsg = true
|
511
|
+
this.checkInfo = row
|
512
|
+
},
|
513
|
+
sort(field, rule) {
|
514
|
+
// 将所有排序方式设为不排序,实现相互排斥
|
515
|
+
for (let key in this.orderFields) {
|
516
|
+
if (key === field) {
|
517
|
+
this.orderFields[key] = rule
|
518
|
+
} else {
|
519
|
+
this.orderFields[key] = 'no'
|
520
|
+
}
|
521
|
+
}
|
522
|
+
// 如果新规则不排序,还原为默认排序
|
523
|
+
if (rule === 'no') {
|
524
|
+
this.model.paramSource.orderitem = `'${this.orderDefault}'`
|
525
|
+
} else {
|
526
|
+
this.model.paramSource.orderitem = `'${field} ${rule}'`
|
527
|
+
}
|
528
|
+
this.search()
|
529
|
+
},
|
530
|
+
search() {
|
531
|
+
this.$refs.paged.$refs.criteria.search()
|
532
|
+
},
|
533
|
+
selfSearch(args) {
|
534
|
+
////tag
|
535
|
+
args.condition+=" and ditls.f_is_defect = 'true' "
|
536
|
+
this.model.search(args.condition, args.model, args.condValue)
|
537
|
+
}
|
538
|
+
},
|
539
|
+
ready() {
|
540
|
+
////tag
|
541
|
+
this.readConfig()
|
542
|
+
this.function = this.f
|
543
|
+
////tag
|
544
|
+
|
545
|
+
let gen = select(this)
|
546
|
+
//this.pianqu()
|
547
|
+
this.Mreadibook(`('${this.$login.f.orgid}')`)
|
548
|
+
co(gen)
|
549
|
+
},
|
550
|
+
watch: {
|
551
|
+
'model.f_no_checkplan'(val) {
|
552
|
+
if (this.model.f_no_checkplan){
|
553
|
+
this.searchData.f_no_checkplan = val
|
554
|
+
}
|
555
|
+
if (this.model.f_no_checkplan == '有计划安检') {
|
556
|
+
|
557
|
+
this.showChooser()
|
558
|
+
}
|
559
|
+
},
|
560
|
+
'model.condition'(val) {
|
561
|
+
if (val) {
|
562
|
+
this.searchData.condition = val
|
563
|
+
}
|
564
|
+
|
565
|
+
},
|
566
|
+
'model.f_entry'(val) {
|
567
|
+
if (val) {
|
568
|
+
this.searchData.f_entry_status = val
|
569
|
+
}
|
570
|
+
},
|
571
|
+
'model.f_plan_id'(val) {
|
572
|
+
if (val) {
|
573
|
+
this.searchData.f_plan_id = val
|
574
|
+
}
|
575
|
+
},
|
576
|
+
'model.f_slice_area'(val) {
|
577
|
+
if (val) {
|
578
|
+
|
579
|
+
}
|
580
|
+
},
|
581
|
+
'model.f_approved'(val) {
|
582
|
+
if (val) {
|
583
|
+
this.searchData.f_approved = val
|
584
|
+
}
|
585
|
+
},
|
586
|
+
}
|
587
|
+
|
588
|
+
}
|
589
|
+
</script>
|