safecheck-client 3.0.30-61-t1 → 3.0.30-61-t3
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/package.json +2 -2
- package/src/components/CheckerCount/CheckCountUserList.vue +2 -2
- package/src/components/CheckerCount/ZhouKouCheckCount.vue +3 -3
- package/src/components/DefectDealMain/DefectListNew.vue +1 -1
- package/src/components/DefectDealMain/DefectPaperNew.vue +4 -4
- package/src/components/ExportExcel.vue +342 -340
- package/src/components/NewDefectList/DefectListNew.vue +1 -1
- package/src/components/NewDefectList/DefectPaperNew.vue +3 -3
- package/src/components/android/ClockIn.vue +1 -1
- package/src/components/android/DoorService.vue +1 -1
- package/src/components/callincheck/CallInPlan.vue +148 -148
- package/src/components/checkplan/CheckDetail.vue +4 -4
- package/src/components/checkplan/SelectCheckPlan.vue +2 -2
- package/src/components/createcheckplan/CreatePlan.vue +4 -4
- package/src/components/createcheckplan/CreatePlanWuan.vue +5 -5
- package/src/components/createcheckplan/DelPlanRepeat.vue +4 -4
- package/src/components/createcheckplan/PlanList.vue +2 -2
- package/src/components/createcheckplan/PlanUersList.vue +2 -2
- package/src/components/defect/DefectPaper.vue +4 -4
- package/src/components/defect/DefectPaperWeiXiu.vue +4 -4
- package/src/components/defects/AddDefectModal.vue +120 -120
- package/src/components/defects/AddDevice.vue +95 -95
- package/src/components/defects/CheckPaperSearch.vue +349 -349
- package/src/components/defects/DefectSeting.vue +1 -1
- package/src/components/defects/DevicesSeting.vue +106 -106
- package/src/components/equipment/CheckRate.vue +4 -4
- package/src/components/equipment/CheckerRate.vue +4 -4
- package/src/components/equipment/MonthCheckRate.vue +4 -4
- package/src/components/filialCircle/AddCircleFiliale.vue +114 -114
- package/src/components/inspections/InspectionList.vue +2 -2
- package/src/components/inspections/InspectionLists.vue +2 -2
- package/src/components/inspections/InspectionListss.vue +2 -2
- package/src/components/issueplan/IssuePlanAction.vue +1 -1
- package/src/components/levelplan/AdjustPlan.vue +1 -1
- package/src/components/levelplan/CheckerLeft.vue +1 -1
- package/src/components/levelplan/CheckerPlanAdjust.vue +2 -2
- package/src/components/levelplan/CheckerRight.vue +1 -1
- package/src/components/map/AMapTrailShowZk.vue +185 -185
- package/src/components/map/FootPrintList.vue +1 -1
- package/src/components/map/PersonTrack.vue +1 -1
- package/src/components/metterfiles/AddUserfiles.vue +246 -246
- package/src/components/metterfiles/MetterFiles.vue +1 -1
- package/src/components/metterfiles/MetterfilesChange.vue +162 -162
- package/src/components/metterfiles/UserFiles.vue +1 -1
- package/src/components/metterfiles/Userfileschange.vue +2 -2
- package/src/components/noplan/NoPlanSearchUser.vue +4 -4
- package/src/components/olddata/OldPaperList.vue +2 -2
- package/src/components/paper/PaperList.vue +2 -2
- package/src/components/paper/RepairVerifyForm.vue +76 -76
- package/src/components/paper/VerifyForm.vue +107 -107
- package/src/components/paper/filialeCheckInfo.vue +2 -2
- package/src/components/pc/AddToCheckBook.vue +2 -2
- package/src/components/pc/CheckBook.vue +1 -1
- package/src/components/pc/CheckBookDetails.vue +194 -194
- package/src/components/pc/CheckBookList.vue +3 -3
- package/src/components/pc/CheckBookSearchArea.vue +4 -4
- package/src/components/pc/CheckBookSearchUser.vue +4 -4
- package/src/components/pc/CheckBookSearchUserList.vue +1 -1
- package/src/components/pc/CheckNoDetail.vue +2 -2
- package/src/components/pc/DefectDeal.vue +2 -2
- package/src/components/pc/Edit.vue +126 -126
- package/src/components/pc/NewCheckpaper.vue +34 -31
- package/src/components/pc/PaperChazhiMain.vue +2 -2
- package/src/components/pc/PaperDefectMain.vue +2 -2
- package/src/components/pc/PaperEdit.vue +2 -2
- package/src/components/pc/PaperVisitMain.vue +2 -2
- package/src/components/pc/SafeVisitHistory.vue +2 -2
- package/src/components/pc/SafecheckDeviceList.vue +2 -2
- package/src/components/pc/SelectCheckNoPlan.vue +3 -3
- package/src/components/pc/SelectCheckPlanAndNoPLan.vue +2 -2
- package/src/components/planmanage/checkPlanList.vue +2 -2
- package/src/components/planmanage/checkUserList.vue +3 -3
- package/src/components/querycheckpaper/CheckSearchUser.vue +5 -5
- package/src/components/querycheckpaper/CheckSearchUserNew.vue +5 -5
- package/src/components/querycheckpaper/ShebeiSearchUser.vue +4 -4
- package/src/components/report/CheckPlanAreaList.vue +2 -2
- package/src/components/report/CheckPlanUserList.vue +2 -2
- package/src/components/report/NoCheckplanSafecheck.vue +2 -2
- package/src/components/rongcheng/CheckSearchArea.vue +2 -2
- package/src/components/rongcheng/CheckSearchUser.vue +2 -2
- package/src/components/rongcheng/CheckSearchUserNo.vue +2 -2
- package/src/components/rongcheng/CheckUserList.vue +2 -2
- package/src/components/rongcheng/DefectPaper.vue +4 -4
- package/src/components/rongcheng/PaperListAJ.vue +2 -2
- package/src/components/rongcheng/PaperListNPAJ.vue +2 -2
- package/src/components/rongcheng/PaperListNPSQ.vue +2 -2
- package/src/components/rongcheng/PaperListSQ.vue +2 -2
- package/src/components/rongcheng/checkerplan/SelectCheckPlan.vue +2 -2
- package/src/components/rongcheng/report/CheckPlanUserList.vue +4 -4
- package/src/components/shaoguan/CheckPlanUserList.vue +2 -2
- package/src/components/shaoguan/DefectPaper.vue +2 -2
- package/src/components/shaoguan/PaperList.vue +3 -3
- package/src/components/userfile/UserFile.vue +1 -1
- package/src/components/userfile/UserInfoAudit.vue +2 -2
- package/src/components/userfile/UserfileChange.vue +1 -1
- package/src/components/userfileaudit/UserfileChangeaudit.vue +1 -1
- package/src/filiale/ALshan/pc/CheckSearchUser.vue +4 -4
- package/src/filiale/ALshan/pc/checkUserList.vue +3 -3
- package/src/filiale/ancheng/pc/PaperList.vue +3 -3
- package/src/filiale/ankangyihua/pc/CheckPlanAreaList.vue +2 -2
- package/src/filiale/ankangyihua/pc/CheckSearchUser.vue +5 -5
- package/src/filiale/ankangyihua/pc/DefectPaperWeiXiu.vue +4 -4
- package/src/filiale/ankangyihua/pc/NewCheckpaper.vue +1 -1
- package/src/filiale/ankangyihua/pc/PaperDefectMain.vue +2 -2
- package/src/filiale/ankangyihua/pc/PaperList.vue +3 -3
- package/src/filiale/ankangyihua/pc/checkUserList.vue +3 -3
- package/src/filiale/bayan/pc/PaperList.vue +3 -3
- package/src/filiale/fugou/pc/PaperList.vue +2 -2
- package/src/filiale/fugu/pc/CheckSearchUser.vue +5 -5
- package/src/filiale/fugu/pc/SelectCheckPlan.vue +2 -2
- package/src/filiale/fugu/pc/planmanage/checkUserList.vue +3 -3
- package/src/filiale/ganquan/pc/DefectPaperNew.vue +2 -2
- package/src/filiale/ganquan/pc/PaperList.vue +3 -3
- package/src/filiale/ganquan/pc/PaperVisitMain.vue +2 -2
- package/src/filiale/ganquan/pc/SelectCheckPlan.vue +2 -2
- package/src/filiale/ganquan/pc/checkUserList.vue +3 -3
- package/src/filiale/gehua/pc/PaperList.vue +2 -2
- package/src/filiale/gehua/pc/checkUserList.vue +3 -3
- package/src/filiale/guangxi/pc/CheckPlanAreaList.vue +2 -2
- package/src/filiale/guangxi/pc/DefectListNew.vue +1 -1
- package/src/filiale/guangxi/pc/DefectPaperNew.vue +3 -3
- package/src/filiale/hanzhong/pc/CheckSearchUser.vue +5 -5
- package/src/filiale/hanzhong/pc/CheckUserList.vue +3 -3
- package/src/filiale/hanzhong/pc/PaperList.vue +3 -3
- package/src/filiale/huatong/pc/PaperDefectMain.vue +2 -2
- package/src/filiale/huatong/pc/PaperList.vue +3 -3
- package/src/filiale/huayin/pc/PaperList.vue +3 -3
- package/src/filiale/jiaocheng/pc/CheckSearchUser.vue +5 -5
- package/src/filiale/jiaocheng/pc/DefectListNew.vue +1 -1
- package/src/filiale/jinbin/pc/CheckPlanAreaList.vue +2 -2
- package/src/filiale/jingyang/pc/CheckSearchUser.vue +5 -5
- package/src/filiale/jingyang/pc/PaperList.vue +3 -3
- package/src/filiale/kelai/pc/CheckPlanAreaList.vue +2 -2
- package/src/filiale/kelai/pc/CheckSearchUser.vue +5 -5
- package/src/filiale/kelai/pc/DefectListNew.vue +1 -1
- package/src/filiale/kelai/pc/DefectPaperNew.vue +3 -3
- package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +1 -1
- package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasPaper.vue +3 -3
- package/src/filiale/kelai/pc/PaperList.vue +3 -3
- package/src/filiale/kelai/pc/checkUserList.vue +3 -3
- package/src/filiale/liaoyuan/pc/CheckSearchUser.vue +2 -2
- package/src/filiale/liaoyuan/pc/DefectPaperWeiXiu.vue +2 -2
- package/src/filiale/liaoyuan/pc/PaperList.vue +1 -1
- package/src/filiale/lixian/pc/CheckPlanAreaList.vue +2 -2
- package/src/filiale/lixian/pc/CheckSearchUser.vue +4 -4
- package/src/filiale/lixian/pc/PaperChazhiMain.vue +2 -2
- package/src/filiale/lixian/pc/PaperDefectMain.vue +2 -2
- package/src/filiale/lixian/pc/PaperList.vue +3 -3
- package/src/filiale/lixian/pc/checkPlanList.vue +2 -2
- package/src/filiale/lixian/pc/checkUserList.vue +3 -3
- package/src/filiale/minsheng/pc/CheckSearchUser.vue +5 -5
- package/src/filiale/minsheng/pc/DefectListNew.vue +1 -1
- package/src/filiale/minsheng/pc/checkUserList.vue +3 -3
- package/src/filiale/pingxiang/pc/DefectListNew.vue +1 -1
- package/src/filiale/pingxiang/pc/DefectPaperNew.vue +3 -3
- package/src/filiale/pingxiang/pc/PaperList.vue +3 -3
- package/src/filiale/qianneng/pc/DefectListNew.vue +1 -1
- package/src/filiale/qianneng/pc/DefectPaperNew.vue +3 -3
- package/src/filiale/qianneng/pc/NoCheckplanSafecheck.vue +2 -2
- package/src/filiale/qianneng/pc/PaperList.vue +3 -3
- package/src/filiale/qianneng/pc/checkPlanList.vue +4 -4
- package/src/filiale/qianneng/pc/checkUserList.vue +5 -5
- package/src/filiale/qingjian/pc/PaperDefectMain.vue +2 -2
- package/src/filiale/qingtongxia/pc/DefectListNew.vue +1 -1
- package/src/filiale/qingtongxia/pc/PaperDefectMain.vue +2 -2
- package/src/filiale/rizhao/pc/PaperList.vue +3 -3
- package/src/filiale/rongchuang/pc/checkUserList.vue +3 -3
- package/src/filiale/shanxian/pc/CheckDetail.vue +4 -4
- package/src/filiale/shanxian/pc/CheckSearchUser.vue +5 -5
- package/src/filiale/shanxian/pc/DefectPaperNew.vue +4 -4
- package/src/filiale/shanxian/pc/SelectCheckPlan.vue +2 -2
- package/src/filiale/shanxian/pc/checkUserList.vue +3 -3
- package/src/filiale/shaoguan/pc/PaperList.vue +2 -2
- package/src/filiale/shexian/pc/DefectListNew.vue +1 -1
- package/src/filiale/shexian/pc/DefectPaperNew.vue +3 -3
- package/src/filiale/shexian/pc/PaperDefectMain.vue +2 -2
- package/src/filiale/shimen/pc/CheckPlanAreaList.vue +2 -2
- package/src/filiale/shimen/pc/CheckSearchUser.vue +4 -4
- package/src/filiale/shimen/pc/PaperDefectMain.vue +2 -2
- package/src/filiale/shimen/pc/PaperList.vue +2 -2
- package/src/filiale/shiquan/pc/checkUserList.vue +3 -3
- package/src/filiale/tianke/pc/DefectListNew.vue +1 -1
- package/src/filiale/tianke/pc/PaperDefectMain.vue +2 -2
- package/src/filiale/tongchuan/pc/CheckBookDetails.vue +1 -1
- package/src/filiale/tongchuan/pc/CheckBookList.vue +3 -3
- package/src/filiale/tongchuan/pc/CheckDetail.vue +4 -4
- package/src/filiale/tongchuan/pc/CheckPlanAreaList.vue +2 -2
- package/src/filiale/tongchuan/pc/CheckPlanUserList.vue +2 -2
- package/src/filiale/tongchuan/pc/CheckSearchUser.vue +4 -4
- package/src/filiale/tongchuan/pc/DefectPaper.vue +2 -2
- package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +4 -4
- package/src/filiale/tongchuan/pc/NoCheckplanSafecheck.vue +2 -2
- package/src/filiale/tongchuan/pc/PaperDefectMain.vue +2 -2
- package/src/filiale/tongchuan/pc/PaperList.vue +2 -2
- package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +2 -2
- package/src/filiale/tongchuan/pc/checkUserList.vue +3 -3
- package/src/filiale/weinan/pc/CheckBook.vue +1 -1
- package/src/filiale/weinan/pc/CheckBookDetails.vue +194 -194
- package/src/filiale/weinan/pc/CheckBookList.vue +3 -3
- package/src/filiale/weinan/pc/CheckBookSearchUser.vue +4 -4
- package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +1 -1
- package/src/filiale/weinan/pc/CheckDetail.vue +4 -4
- package/src/filiale/weinan/pc/CheckDetailOutHelp.vue +4 -4
- package/src/filiale/weinan/pc/CheckNoDetail.vue +4 -4
- package/src/filiale/weinan/pc/CheckPlanUserList.vue +2 -2
- package/src/filiale/weinan/pc/DefectPaperNew.vue +2 -2
- package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
- package/src/filiale/weinan/pc/PaperDefectMain.vue +3 -3
- package/src/filiale/weinan/pc/PaperList.vue +3 -3
- package/src/filiale/weinan/pc/PersonTrack.vue +1 -1
- package/src/filiale/weinan/pc/SelectCheckNoPlan.vue +3 -3
- package/src/filiale/weinan/pc/SelectCheckPlan.vue +3 -3
- package/src/filiale/weinan/pc/SelectCheckPlanOutHelp.vue +3 -3
- package/src/filiale/weinan/pc/checkPlanList.vue +2 -2
- package/src/filiale/weinan/pc/checkUserList.vue +3 -3
- package/src/filiale/weinanct/pc/PaperList.vue +3 -3
- package/src/filiale/wensu/pc/CheckDetail.vue +4 -4
- package/src/filiale/wensu/pc/CheckSearchUser.vue +6 -6
- package/src/filiale/wensu/pc/DefectListNew.vue +1 -1
- package/src/filiale/wensu/pc/DefectPaperNew.vue +3 -3
- package/src/filiale/wensu/pc/SelectCheckPlan.vue +2 -2
- package/src/filiale/wensu/pc/checkUserList.vue +3 -3
- package/src/filiale/wenxi/pc/CheckPlanAreaList.vue +2 -2
- package/src/filiale/wenxi/pc/CheckPlanUserList.vue +2 -2
- package/src/filiale/wenxi/pc/CheckSearchUser.vue +5 -5
- package/src/filiale/wenxi/pc/DefectPaper.vue +4 -4
- package/src/filiale/wenxi/pc/PaperDefectMain.vue +2 -2
- package/src/filiale/wenxi/pc/PaperList.vue +4 -4
- package/src/filiale/wenxi/pc/checkPlanList.vue +4 -4
- package/src/filiale/wenxi/pc/checkUserList.vue +3 -3
- package/src/filiale/wuan/pc/DefectPaperWeiXiu.vue +4 -4
- package/src/filiale/wuan/pc/PaperList.vue +2 -2
- package/src/filiale/wuhai/pc/CheckSearchUser.vue +4 -4
- package/src/filiale/wuhai/pc/checkUserList.vue +3 -3
- package/src/filiale/xinkang/pc/CheckPlanAreaList.vue +2 -2
- package/src/filiale/xinkang/pc/CheckPlanUserList.vue +2 -2
- package/src/filiale/xinkang/pc/CheckSearchUser.vue +4 -4
- package/src/filiale/xinkang/pc/DefectPaperWeiXiu.vue +4 -4
- package/src/filiale/xinkang/pc/PaperDefectMain.vue +2 -2
- package/src/filiale/xinkang/pc/PaperList.vue +3 -3
- package/src/filiale/xinkang/pc/checkUserList.vue +3 -3
- package/src/filiale/yangchunboneng/pc/AddToCheckBook.vue +3 -3
- package/src/filiale/yangchunboneng/pc/CheckBook.vue +1 -1
- package/src/filiale/yangchunboneng/pc/CheckBookDetails.vue +213 -213
- package/src/filiale/yangchunboneng/pc/CheckBookList.vue +3 -3
- package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +4 -4
- package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +2 -2
- package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +2 -2
- package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +5 -5
- package/src/filiale/yangchunboneng/pc/DefectListNew.vue +1 -1
- package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +3 -3
- package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +2 -2
- package/src/filiale/yangchunboneng/pc/PaperList.vue +3 -3
- package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +2 -2
- package/src/filiale/yongzhou/pc/PaperList.vue +2 -2
- package/src/filiale/yongzhou/pc/checkUserList.vue +3 -3
- package/src/filiale/yongzhou/pc/communityDetail.vue +2 -2
- package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +2 -2
- package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +2 -2
- package/src/filiale/yongzhou/pc/safeDetail.vue +2 -2
- package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +2 -2
- package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +2 -2
- package/src/filiale/yuansheng/pc/DefectListNew.vue +1 -1
- package/src/filiale/yuansheng/pc/PaperList.vue +3 -3
- package/src/filiale/yunchengminsheng/pc/checkUserList.vue +3 -3
- package/src/filiale/zhongsheng/pc/CheckPlanAreaList.vue +2 -2
- package/src/filiale/zhongsheng/pc/DefectPaperWeiXiu.vue +4 -4
- package/src/filiale/zhongsheng/pc/PaperList.vue +3 -3
- package/src/filiale/zhongyi/pc/DefectListNew.vue +1 -1
- package/src/filiale/zhoukou/pc/CheckSearchUser.vue +4 -4
- package/src/filiale/zhoukou/pc/PaperDefectMain.vue +2 -2
- package/src/plugins/LoadCheckParams.js +59 -59
@@ -1,107 +1,107 @@
|
|
1
|
-
<template>
|
2
|
-
<div>
|
3
|
-
<validator name='v'>
|
4
|
-
<a href="#" class="btn btn-primary" @click="this.$back('items')"><<</a>
|
5
|
-
<form novalidate class="form-horizontal">
|
6
|
-
<div class="form-group">
|
7
|
-
<label class="col-sm-2 control-lable">审核人:</label>
|
8
|
-
<div class="col-sm-8">
|
9
|
-
<input readonly='readonly' class="form-control" type="text" v-model="item.f_approved_by" v-validate:f_approved_by='{ required: true }' />
|
10
|
-
</div>
|
11
|
-
</div>
|
12
|
-
<div class="form-group">
|
13
|
-
<label class="col-sm-2 control-lable">审核结果:</label>
|
14
|
-
<div class="col-sm-8">
|
15
|
-
<input readonly='readonly' class="form-control" type="text" v-model="item.f_approved" v-validate:f_approved='{ required: true }' />
|
16
|
-
</div>
|
17
|
-
</div>
|
18
|
-
<div class="form-group">
|
19
|
-
<label class="col-sm-2 control-lable">审核时间:</label>
|
20
|
-
<div class="col-sm-8">
|
21
|
-
<input readonly='readonly' class="form-control" type="text" v-model="item.f_approved_time"/>
|
22
|
-
</div>
|
23
|
-
</div>
|
24
|
-
<div class="form-group">
|
25
|
-
<label class="col-sm-2 control-lable">审核备注:</label>
|
26
|
-
<div class="col-sm-8">
|
27
|
-
<textarea class="form-control" type="text" v-model="item.f_approved_note"></textarea>
|
28
|
-
</div>
|
29
|
-
</div>
|
30
|
-
<div class="form-group col-sm-12">
|
31
|
-
<button :disabled="(item.f_approved != '未审核' && item.f_approved != '重检')" type="button" class="btn btn-primary col-sm-3" @click="approve">
|
32
|
-
<span class="glyphicon glyphicon-ok"></span> 通过
|
33
|
-
</button>
|
34
|
-
<button :disabled="(item.f_approved != '未审核' && item.f_approved != '重检')" type="button" class="btn btn-primary col-sm-3" @click="disapprove">
|
35
|
-
<span class="glyphicon glyphicon-remove"></span> 打回
|
36
|
-
</button>
|
37
|
-
</div>
|
38
|
-
</form>
|
39
|
-
</validator>
|
40
|
-
</div>
|
41
|
-
|
42
|
-
</template>
|
43
|
-
|
44
|
-
<script>
|
45
|
-
import * as Util from '../Util'
|
46
|
-
import co from 'co'
|
47
|
-
import Vue from 'vue'
|
48
|
-
|
49
|
-
let syncApprove = function * (self) {
|
50
|
-
yield self.$resetpost('
|
51
|
-
(res)=>{
|
52
|
-
if(res.data.code == 200){
|
53
|
-
alert("安检单审核通过!")
|
54
|
-
self.$back('items')
|
55
|
-
}
|
56
|
-
}
|
57
|
-
)
|
58
|
-
}
|
59
|
-
|
60
|
-
let syncDisapprove = function * (self) {
|
61
|
-
yield self.$resetpost('
|
62
|
-
if (res.data.code == 200) {
|
63
|
-
alert("安检单已打回!")
|
64
|
-
self.$back('items')
|
65
|
-
}
|
66
|
-
})
|
67
|
-
}
|
68
|
-
|
69
|
-
let noPlanDisapprove = function * (self) {
|
70
|
-
yield self.$resetpost('
|
71
|
-
if (res.data.code == 200) {
|
72
|
-
alert("安检单已打回!")
|
73
|
-
self.$back('items')
|
74
|
-
}
|
75
|
-
})
|
76
|
-
}
|
77
|
-
export default {
|
78
|
-
title: '安检单审核',
|
79
|
-
props: ['item', 'name'],
|
80
|
-
ready () {
|
81
|
-
if(this.item.f_approved == '未审核') {
|
82
|
-
this.item.f_approved_time = Util.toStandardTimeString()
|
83
|
-
this.item.f_approved_by = this.$login.f.name
|
84
|
-
}
|
85
|
-
},
|
86
|
-
methods: {
|
87
|
-
approve () {
|
88
|
-
this.item.f_approved = '已审核'
|
89
|
-
let gen = syncApprove(this)
|
90
|
-
return co(gen)
|
91
|
-
},
|
92
|
-
disapprove () {
|
93
|
-
if(this.item.f_no_checkplan == '无计划安检'){
|
94
|
-
this.item.f_approved = '打回'
|
95
|
-
let gen = noPlanDisapprove(this)
|
96
|
-
return co(gen)
|
97
|
-
}
|
98
|
-
else {
|
99
|
-
this.item.f_approved = '打回'
|
100
|
-
let gen = syncDisapprove(this)
|
101
|
-
return co(gen)
|
102
|
-
}
|
103
|
-
},
|
104
|
-
}
|
105
|
-
}
|
106
|
-
|
107
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<div>
|
3
|
+
<validator name='v'>
|
4
|
+
<a href="#" class="btn btn-primary" @click="this.$back('items')"><<</a>
|
5
|
+
<form novalidate class="form-horizontal">
|
6
|
+
<div class="form-group">
|
7
|
+
<label class="col-sm-2 control-lable">审核人:</label>
|
8
|
+
<div class="col-sm-8">
|
9
|
+
<input readonly='readonly' class="form-control" type="text" v-model="item.f_approved_by" v-validate:f_approved_by='{ required: true }' />
|
10
|
+
</div>
|
11
|
+
</div>
|
12
|
+
<div class="form-group">
|
13
|
+
<label class="col-sm-2 control-lable">审核结果:</label>
|
14
|
+
<div class="col-sm-8">
|
15
|
+
<input readonly='readonly' class="form-control" type="text" v-model="item.f_approved" v-validate:f_approved='{ required: true }' />
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
<div class="form-group">
|
19
|
+
<label class="col-sm-2 control-lable">审核时间:</label>
|
20
|
+
<div class="col-sm-8">
|
21
|
+
<input readonly='readonly' class="form-control" type="text" v-model="item.f_approved_time"/>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
<div class="form-group">
|
25
|
+
<label class="col-sm-2 control-lable">审核备注:</label>
|
26
|
+
<div class="col-sm-8">
|
27
|
+
<textarea class="form-control" type="text" v-model="item.f_approved_note"></textarea>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
<div class="form-group col-sm-12">
|
31
|
+
<button :disabled="(item.f_approved != '未审核' && item.f_approved != '重检')" type="button" class="btn btn-primary col-sm-3" @click="approve">
|
32
|
+
<span class="glyphicon glyphicon-ok"></span> 通过
|
33
|
+
</button>
|
34
|
+
<button :disabled="(item.f_approved != '未审核' && item.f_approved != '重检')" type="button" class="btn btn-primary col-sm-3" @click="disapprove">
|
35
|
+
<span class="glyphicon glyphicon-remove"></span> 打回
|
36
|
+
</button>
|
37
|
+
</div>
|
38
|
+
</form>
|
39
|
+
</validator>
|
40
|
+
</div>
|
41
|
+
|
42
|
+
</template>
|
43
|
+
|
44
|
+
<script>
|
45
|
+
import * as Util from '../Util'
|
46
|
+
import co from 'co'
|
47
|
+
import Vue from 'vue'
|
48
|
+
|
49
|
+
let syncApprove = function * (self) {
|
50
|
+
yield self.$resetpost('api/af-safecheck/logic/ApprovePaper', {data:{item: self.item}}, {resolveMsg: '操作成功!', rejectMsg: '操作失败!'}).then(
|
51
|
+
(res)=>{
|
52
|
+
if(res.data.code == 200){
|
53
|
+
alert("安检单审核通过!")
|
54
|
+
self.$back('items')
|
55
|
+
}
|
56
|
+
}
|
57
|
+
)
|
58
|
+
}
|
59
|
+
|
60
|
+
let syncDisapprove = function * (self) {
|
61
|
+
yield self.$resetpost('api/af-safecheck/logic/DisapprovePaper', {data:{item: self.item}}, {resolveMsg: '操作成功!', rejectMsg: '操作失败!'}).then((res)=> {
|
62
|
+
if (res.data.code == 200) {
|
63
|
+
alert("安检单已打回!")
|
64
|
+
self.$back('items')
|
65
|
+
}
|
66
|
+
})
|
67
|
+
}
|
68
|
+
|
69
|
+
let noPlanDisapprove = function * (self) {
|
70
|
+
yield self.$resetpost('api/af-safecheck/logic/NoPlanDisapprove', {data: self.item}, {resolveMsg: '操作成功!', rejectMsg: '操作失败!'}).then((res)=> {
|
71
|
+
if (res.data.code == 200) {
|
72
|
+
alert("安检单已打回!")
|
73
|
+
self.$back('items')
|
74
|
+
}
|
75
|
+
})
|
76
|
+
}
|
77
|
+
export default {
|
78
|
+
title: '安检单审核',
|
79
|
+
props: ['item', 'name'],
|
80
|
+
ready () {
|
81
|
+
if(this.item.f_approved == '未审核') {
|
82
|
+
this.item.f_approved_time = Util.toStandardTimeString()
|
83
|
+
this.item.f_approved_by = this.$login.f.name
|
84
|
+
}
|
85
|
+
},
|
86
|
+
methods: {
|
87
|
+
approve () {
|
88
|
+
this.item.f_approved = '已审核'
|
89
|
+
let gen = syncApprove(this)
|
90
|
+
return co(gen)
|
91
|
+
},
|
92
|
+
disapprove () {
|
93
|
+
if(this.item.f_no_checkplan == '无计划安检'){
|
94
|
+
this.item.f_approved = '打回'
|
95
|
+
let gen = noPlanDisapprove(this)
|
96
|
+
return co(gen)
|
97
|
+
}
|
98
|
+
else {
|
99
|
+
this.item.f_approved = '打回'
|
100
|
+
let gen = syncDisapprove(this)
|
101
|
+
return co(gen)
|
102
|
+
}
|
103
|
+
},
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
</script>
|
@@ -6,10 +6,10 @@
|
|
6
6
|
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
7
7
|
<div class="row">
|
8
8
|
<div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
|
9
|
-
<export-excel
|
9
|
+
<export-excel :data="$parent.$parent.searchData"
|
10
10
|
:field="$parent.$parent.excelHeaders"
|
11
11
|
progress="safeGetExportProgress"
|
12
|
-
sqlurl="
|
12
|
+
sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="FilialeCheckCount" template-name='当前周期各公司安检汇总情况'></export-excel-safe>
|
13
13
|
|
14
14
|
<button class="button_spacing button_search" @click="search()">查询</button>
|
15
15
|
</div>
|
@@ -105,7 +105,7 @@
|
|
105
105
|
return;
|
106
106
|
}
|
107
107
|
if(this.$parent.$refs.tabs.active ===0){
|
108
|
-
new HttpResetClass().load('POST', '
|
108
|
+
new HttpResetClass().load('POST', 'api/af-safecheck/logic/updateCheckBook', {data: {f_check_book_id: this.model.f_check_book_num,
|
109
109
|
f_check_book_type:'小区',condition:userCondition}},
|
110
110
|
{resolveMsg: null, rejectMsg: '添加失败'}).then(res=>{
|
111
111
|
if(res && res.data){
|
@@ -121,7 +121,7 @@
|
|
121
121
|
}
|
122
122
|
})
|
123
123
|
}else{
|
124
|
-
new HttpResetClass().load('POST', '
|
124
|
+
new HttpResetClass().load('POST', 'api/af-safecheck/logic/updateCheckBook', {data: {f_check_book_id: this.model.f_check_book_num,
|
125
125
|
f_check_book_type:'单位',condition:userCondition}},
|
126
126
|
{resolveMsg: null, rejectMsg: '添加失败'}).then(res=>{
|
127
127
|
if(res && res.data){
|
@@ -152,7 +152,7 @@ export default {
|
|
152
152
|
this.needProps.cbc=[]
|
153
153
|
this.needProps.sliceArea=[]
|
154
154
|
let http = new HttpResetClass()
|
155
|
-
let getMeterReadingBooks = await http.load('POST','
|
155
|
+
let getMeterReadingBooks = await http.load('POST','api/af-safecheck/logic/getMeterBooksData',
|
156
156
|
{data: {f_orgid: "('"+this.$login.f.orgid+"')"}},
|
157
157
|
{resolveMsg: null, rejectMsg: '获取失败!!!'})
|
158
158
|
this.needProps.cbc = [{label: '全部', value: ''}]
|
@@ -1,194 +1,194 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="auto select-overspread">
|
3
|
-
<validator name='v'>
|
4
|
-
<form class="form-horizontal" novalidate>
|
5
|
-
<ul class="nav nav-tabs" style="margin-bottom: 10px">
|
6
|
-
<li class="active"><a href="#">片区信息</a></li>
|
7
|
-
</ul>
|
8
|
-
<div class="row" style="margin-top: 10px">
|
9
|
-
<div class="col-sm-12 form-group" style="margin: 0">
|
10
|
-
<role-selector-safe
|
11
|
-
@alluser="getUsers"
|
12
|
-
@re-res="getRes"
|
13
|
-
role-name="安检员"
|
14
|
-
role-lable="安 检 员 "
|
15
|
-
:value.sync="checkBook.f_checker_name"
|
16
|
-
v-model="checkBook.f_checker_name">
|
17
|
-
</role-selector-safe>
|
18
|
-
</div>
|
19
|
-
<!-- <div class="form-group col-sm-6" style="margin-top: 20px" :class="[$v.f_check_book_type.required ? 'has-error' : '']">-->
|
20
|
-
<!-- <label class="font_normal_body">表册类型</label>-->
|
21
|
-
<!-- <input type="text" v-show="false" v-model="checkBook.f_check_book_type"-->
|
22
|
-
<!-- :value.sync="checkBook.f_check_book_type"-->
|
23
|
-
<!-- v-validate:f_check_book_type='{required: true }'>-->
|
24
|
-
<!-- <v-select :value.sync="checkBook.f_check_book_type" v-model='checkBook.f_check_book_type'-->
|
25
|
-
<!-- :value-single="true" style="width: 60%"-->
|
26
|
-
<!-- class="select_list select"-->
|
27
|
-
<!-- :options='bookTypes' placeholder=''-->
|
28
|
-
<!-- close-on-select></v-select>-->
|
29
|
-
<!-- </div>-->
|
30
|
-
<div class="form-group col-sm-6" style="margin-top: 20px" :class="[$v.f_user_type.required ? 'has-error' : '']">
|
31
|
-
<label class="font_normal_body">用户类型</label>
|
32
|
-
<input type="text" v-show="false" v-model="checkBook.f_user_type"
|
33
|
-
v-validate:f_user_type='{required: true }'>
|
34
|
-
<v-select :value.sync="checkBook.f_user_type" v-model='checkBook.f_user_type'
|
35
|
-
:value-single="true" style="width: 60%"
|
36
|
-
class="select_list select"
|
37
|
-
:options='userTypes' placeholder=''
|
38
|
-
close-on-select></v-select>
|
39
|
-
</div>
|
40
|
-
<div class="form-group col-sm-6" style="margin-top: 20px" :class="[$v.f_check_book_name.required ? 'has-error' : '']">
|
41
|
-
<label class="font_normal_body">片区名称</label>
|
42
|
-
<input type="text" class="input_search" v-model="checkBook.f_check_book_name"
|
43
|
-
style="width: 60%" v-validate:f_check_book_name='{ required: true }'>
|
44
|
-
</div>
|
45
|
-
<div class="form-group col-sm-6" style="margin-top: 20px">
|
46
|
-
<label class="font_normal_body">执行日期</label>
|
47
|
-
<datepicker
|
48
|
-
:value.sync="checkBook.f_run_date"
|
49
|
-
style="width: 60%"
|
50
|
-
:format="'yyyy-MM-dd'"
|
51
|
-
v-model="checkBook.f_run_date"
|
52
|
-
>
|
53
|
-
</datepicker>
|
54
|
-
</div>
|
55
|
-
<div class="form-group col-sm-6" style="margin-top: 20px">
|
56
|
-
<label class="font_normal_body">执行周期</label>
|
57
|
-
<input type="number" class="input_search" v-model="checkBook.f_around_time"
|
58
|
-
style="width: 60%" >
|
59
|
-
</div>
|
60
|
-
<div class="form-group col-sm-6" style="margin-top: 20px">
|
61
|
-
<label class="font_normal_body">周期单位</label>
|
62
|
-
<v-select :value.sync="checkBook.f_around_unit" v-model='checkBook.f_around_unit'
|
63
|
-
:value-single="true" style="width: 60%"
|
64
|
-
class="select_list select"
|
65
|
-
:options='aroundUnit' placeholder=''
|
66
|
-
close-on-select></v-select>
|
67
|
-
</div>
|
68
|
-
|
69
|
-
|
70
|
-
<!-- <div class="form-group col-sm-6" style="margin-top: 20px">-->
|
71
|
-
<!-- <label class="font_normal_body">自动下发</label>-->
|
72
|
-
<!-- <v-select :value.sync="checkBook.f_is_auto" v-model='checkBook.f_is_auto'-->
|
73
|
-
<!-- :value-single="true" style="width: 60%"-->
|
74
|
-
<!-- class="select_list select"-->
|
75
|
-
<!-- :options='autos' placeholder=''-->
|
76
|
-
<!-- close-on-select></v-select>-->
|
77
|
-
<!-- </div>-->
|
78
|
-
</div>
|
79
|
-
</form>
|
80
|
-
<div style="text-align:right;height:auto;margin-top:6px;margin-right: 10%">
|
81
|
-
<button @click="confirm()" class="button_search">确认</button>
|
82
|
-
<!-- <button @click="deleteBook()" class="button_delete">删除</button>-->
|
83
|
-
<button @click="close()" class="button_clear">取消</button>
|
84
|
-
</div>
|
85
|
-
</validator>
|
86
|
-
</div>
|
87
|
-
</template>
|
88
|
-
<script>
|
89
|
-
import * as Util from "../../components/Util";
|
90
|
-
import bus from "../../bus";
|
91
|
-
import {HttpResetClass} from 'vue-client'
|
92
|
-
|
93
|
-
export default {
|
94
|
-
data () {
|
95
|
-
return {
|
96
|
-
aroundUnit: [{label: '年', value: '年'}, {label: '月', value: '月'}, {label: '日', value: '日'}],
|
97
|
-
bookTypes:[{label: '用户', value: '用户'}, {label: '小区', value: '小区'}],
|
98
|
-
userTypes:[{label: '民用', value: '民用'}, {label: '非民用', value: '非民用'}],
|
99
|
-
autos:[{label: '是', value: '是'}, {label: '否', value: '否'}],
|
100
|
-
allUsers:[],
|
101
|
-
checkBook: {
|
102
|
-
f_check_book_name: '',
|
103
|
-
f_run_date: '',
|
104
|
-
f_around_time: '',
|
105
|
-
f_around_unit: '',
|
106
|
-
f_create_date: '',
|
107
|
-
f_create_person: '',
|
108
|
-
f_user_type:'',
|
109
|
-
f_orgid: '',
|
110
|
-
f_is_auto:'否',
|
111
|
-
f_check_book_type:"小区",
|
112
|
-
f_checker_name: '',
|
113
|
-
f_checker_id:'',
|
114
|
-
}
|
115
|
-
}
|
116
|
-
},
|
117
|
-
props: ['row','showtype'],
|
118
|
-
watch: {
|
119
|
-
'checkBook.f_checker_name' (val) {
|
120
|
-
const user = this.allUsers.filter(item=>item.name==val);
|
121
|
-
if(user.length>0){
|
122
|
-
this.checkBook.f_checker_id = user[0]["id"]
|
123
|
-
}
|
124
|
-
console.log("777",this.checkBook)
|
125
|
-
},
|
126
|
-
row (row) {
|
127
|
-
this.changeCheckBook(row)
|
128
|
-
}
|
129
|
-
},
|
130
|
-
ready () {
|
131
|
-
// console.log(this.$login.f.orgid)
|
132
|
-
this.changeCheckBook(this.row)
|
133
|
-
this.checkBook.f_user_type = this.showtype
|
134
|
-
console.log('row', JSON.stringify(this.row))
|
135
|
-
},
|
136
|
-
methods: {
|
137
|
-
changeCheckBook (row) {
|
138
|
-
console.log('row改变了', row)
|
139
|
-
if (row && row.id) {
|
140
|
-
console.log('进入修改赋值')
|
141
|
-
this.checkBook = row
|
142
|
-
}
|
143
|
-
},
|
144
|
-
deleteBook () {
|
145
|
-
console.log('delete', this.row)
|
146
|
-
},
|
147
|
-
close () {
|
148
|
-
console.log('关闭')
|
149
|
-
this.$parent.showItem = false
|
150
|
-
},
|
151
|
-
confirm () {
|
152
|
-
if(!this.checkBook.f_check_book_name){
|
153
|
-
this.$showMessage('请填写片区名称')
|
154
|
-
return
|
155
|
-
}
|
156
|
-
// if(!this.checkBook.f_check_book_type){
|
157
|
-
// this.$showMessage('请选择表册类型')
|
158
|
-
// return
|
159
|
-
// }
|
160
|
-
if(!this.checkBook.f_user_type){
|
161
|
-
this.$showMessage('请选择用户类型')
|
162
|
-
return
|
163
|
-
|
164
|
-
}
|
165
|
-
this.checkBook.f_orgid = this.$login.f.orgid
|
166
|
-
this.checkBook.f_create_person = this.$login.f.name
|
167
|
-
this.checkBook.f_create_date = Util.toStandardDateString()
|
168
|
-
console.log('checkbook', this.checkBook)
|
169
|
-
let http = new HttpResetClass()
|
170
|
-
http.load('POST', '
|
171
|
-
{resolveMsg: '保存片区信息成功', rejectMsg: '保存片区信息失败'}).then(res => {
|
172
|
-
if (res.data.code === 200) {
|
173
|
-
this.$showMessage('保存片区信息成功',['confirm']).then(res=>{
|
174
|
-
if (res==='confirm'){
|
175
|
-
bus.$emit('fresh-main')
|
176
|
-
}
|
177
|
-
})
|
178
|
-
}else{
|
179
|
-
this.$showMessage('保存片区信息失败')
|
180
|
-
}
|
181
|
-
})
|
182
|
-
},
|
183
|
-
getRes (obj) {
|
184
|
-
if (obj.resids) {
|
185
|
-
this.checkBook.f_orgid = obj.resids[0]
|
186
|
-
console.log('id', this.checkBook.f_orgid)
|
187
|
-
}
|
188
|
-
},
|
189
|
-
getUsers(obj){
|
190
|
-
this.allUsers = obj
|
191
|
-
}
|
192
|
-
}
|
193
|
-
}
|
194
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<div class="auto select-overspread">
|
3
|
+
<validator name='v'>
|
4
|
+
<form class="form-horizontal" novalidate>
|
5
|
+
<ul class="nav nav-tabs" style="margin-bottom: 10px">
|
6
|
+
<li class="active"><a href="#">片区信息</a></li>
|
7
|
+
</ul>
|
8
|
+
<div class="row" style="margin-top: 10px">
|
9
|
+
<div class="col-sm-12 form-group" style="margin: 0">
|
10
|
+
<role-selector-safe
|
11
|
+
@alluser="getUsers"
|
12
|
+
@re-res="getRes"
|
13
|
+
role-name="安检员"
|
14
|
+
role-lable="安 检 员 "
|
15
|
+
:value.sync="checkBook.f_checker_name"
|
16
|
+
v-model="checkBook.f_checker_name">
|
17
|
+
</role-selector-safe>
|
18
|
+
</div>
|
19
|
+
<!-- <div class="form-group col-sm-6" style="margin-top: 20px" :class="[$v.f_check_book_type.required ? 'has-error' : '']">-->
|
20
|
+
<!-- <label class="font_normal_body">表册类型</label>-->
|
21
|
+
<!-- <input type="text" v-show="false" v-model="checkBook.f_check_book_type"-->
|
22
|
+
<!-- :value.sync="checkBook.f_check_book_type"-->
|
23
|
+
<!-- v-validate:f_check_book_type='{required: true }'>-->
|
24
|
+
<!-- <v-select :value.sync="checkBook.f_check_book_type" v-model='checkBook.f_check_book_type'-->
|
25
|
+
<!-- :value-single="true" style="width: 60%"-->
|
26
|
+
<!-- class="select_list select"-->
|
27
|
+
<!-- :options='bookTypes' placeholder=''-->
|
28
|
+
<!-- close-on-select></v-select>-->
|
29
|
+
<!-- </div>-->
|
30
|
+
<div class="form-group col-sm-6" style="margin-top: 20px" :class="[$v.f_user_type.required ? 'has-error' : '']">
|
31
|
+
<label class="font_normal_body">用户类型</label>
|
32
|
+
<input type="text" v-show="false" v-model="checkBook.f_user_type"
|
33
|
+
v-validate:f_user_type='{required: true }'>
|
34
|
+
<v-select :value.sync="checkBook.f_user_type" v-model='checkBook.f_user_type'
|
35
|
+
:value-single="true" style="width: 60%"
|
36
|
+
class="select_list select"
|
37
|
+
:options='userTypes' placeholder=''
|
38
|
+
close-on-select></v-select>
|
39
|
+
</div>
|
40
|
+
<div class="form-group col-sm-6" style="margin-top: 20px" :class="[$v.f_check_book_name.required ? 'has-error' : '']">
|
41
|
+
<label class="font_normal_body">片区名称</label>
|
42
|
+
<input type="text" class="input_search" v-model="checkBook.f_check_book_name"
|
43
|
+
style="width: 60%" v-validate:f_check_book_name='{ required: true }'>
|
44
|
+
</div>
|
45
|
+
<div class="form-group col-sm-6" style="margin-top: 20px">
|
46
|
+
<label class="font_normal_body">执行日期</label>
|
47
|
+
<datepicker
|
48
|
+
:value.sync="checkBook.f_run_date"
|
49
|
+
style="width: 60%"
|
50
|
+
:format="'yyyy-MM-dd'"
|
51
|
+
v-model="checkBook.f_run_date"
|
52
|
+
>
|
53
|
+
</datepicker>
|
54
|
+
</div>
|
55
|
+
<div class="form-group col-sm-6" style="margin-top: 20px">
|
56
|
+
<label class="font_normal_body">执行周期</label>
|
57
|
+
<input type="number" class="input_search" v-model="checkBook.f_around_time"
|
58
|
+
style="width: 60%" >
|
59
|
+
</div>
|
60
|
+
<div class="form-group col-sm-6" style="margin-top: 20px">
|
61
|
+
<label class="font_normal_body">周期单位</label>
|
62
|
+
<v-select :value.sync="checkBook.f_around_unit" v-model='checkBook.f_around_unit'
|
63
|
+
:value-single="true" style="width: 60%"
|
64
|
+
class="select_list select"
|
65
|
+
:options='aroundUnit' placeholder=''
|
66
|
+
close-on-select></v-select>
|
67
|
+
</div>
|
68
|
+
|
69
|
+
|
70
|
+
<!-- <div class="form-group col-sm-6" style="margin-top: 20px">-->
|
71
|
+
<!-- <label class="font_normal_body">自动下发</label>-->
|
72
|
+
<!-- <v-select :value.sync="checkBook.f_is_auto" v-model='checkBook.f_is_auto'-->
|
73
|
+
<!-- :value-single="true" style="width: 60%"-->
|
74
|
+
<!-- class="select_list select"-->
|
75
|
+
<!-- :options='autos' placeholder=''-->
|
76
|
+
<!-- close-on-select></v-select>-->
|
77
|
+
<!-- </div>-->
|
78
|
+
</div>
|
79
|
+
</form>
|
80
|
+
<div style="text-align:right;height:auto;margin-top:6px;margin-right: 10%">
|
81
|
+
<button @click="confirm()" class="button_search">确认</button>
|
82
|
+
<!-- <button @click="deleteBook()" class="button_delete">删除</button>-->
|
83
|
+
<button @click="close()" class="button_clear">取消</button>
|
84
|
+
</div>
|
85
|
+
</validator>
|
86
|
+
</div>
|
87
|
+
</template>
|
88
|
+
<script>
|
89
|
+
import * as Util from "../../components/Util";
|
90
|
+
import bus from "../../bus";
|
91
|
+
import {HttpResetClass} from 'vue-client'
|
92
|
+
|
93
|
+
export default {
|
94
|
+
data () {
|
95
|
+
return {
|
96
|
+
aroundUnit: [{label: '年', value: '年'}, {label: '月', value: '月'}, {label: '日', value: '日'}],
|
97
|
+
bookTypes:[{label: '用户', value: '用户'}, {label: '小区', value: '小区'}],
|
98
|
+
userTypes:[{label: '民用', value: '民用'}, {label: '非民用', value: '非民用'}],
|
99
|
+
autos:[{label: '是', value: '是'}, {label: '否', value: '否'}],
|
100
|
+
allUsers:[],
|
101
|
+
checkBook: {
|
102
|
+
f_check_book_name: '',
|
103
|
+
f_run_date: '',
|
104
|
+
f_around_time: '',
|
105
|
+
f_around_unit: '',
|
106
|
+
f_create_date: '',
|
107
|
+
f_create_person: '',
|
108
|
+
f_user_type:'',
|
109
|
+
f_orgid: '',
|
110
|
+
f_is_auto:'否',
|
111
|
+
f_check_book_type:"小区",
|
112
|
+
f_checker_name: '',
|
113
|
+
f_checker_id:'',
|
114
|
+
}
|
115
|
+
}
|
116
|
+
},
|
117
|
+
props: ['row','showtype'],
|
118
|
+
watch: {
|
119
|
+
'checkBook.f_checker_name' (val) {
|
120
|
+
const user = this.allUsers.filter(item=>item.name==val);
|
121
|
+
if(user.length>0){
|
122
|
+
this.checkBook.f_checker_id = user[0]["id"]
|
123
|
+
}
|
124
|
+
console.log("777",this.checkBook)
|
125
|
+
},
|
126
|
+
row (row) {
|
127
|
+
this.changeCheckBook(row)
|
128
|
+
}
|
129
|
+
},
|
130
|
+
ready () {
|
131
|
+
// console.log(this.$login.f.orgid)
|
132
|
+
this.changeCheckBook(this.row)
|
133
|
+
this.checkBook.f_user_type = this.showtype
|
134
|
+
console.log('row', JSON.stringify(this.row))
|
135
|
+
},
|
136
|
+
methods: {
|
137
|
+
changeCheckBook (row) {
|
138
|
+
console.log('row改变了', row)
|
139
|
+
if (row && row.id) {
|
140
|
+
console.log('进入修改赋值')
|
141
|
+
this.checkBook = row
|
142
|
+
}
|
143
|
+
},
|
144
|
+
deleteBook () {
|
145
|
+
console.log('delete', this.row)
|
146
|
+
},
|
147
|
+
close () {
|
148
|
+
console.log('关闭')
|
149
|
+
this.$parent.showItem = false
|
150
|
+
},
|
151
|
+
confirm () {
|
152
|
+
if(!this.checkBook.f_check_book_name){
|
153
|
+
this.$showMessage('请填写片区名称')
|
154
|
+
return
|
155
|
+
}
|
156
|
+
// if(!this.checkBook.f_check_book_type){
|
157
|
+
// this.$showMessage('请选择表册类型')
|
158
|
+
// return
|
159
|
+
// }
|
160
|
+
if(!this.checkBook.f_user_type){
|
161
|
+
this.$showMessage('请选择用户类型')
|
162
|
+
return
|
163
|
+
|
164
|
+
}
|
165
|
+
this.checkBook.f_orgid = this.$login.f.orgid
|
166
|
+
this.checkBook.f_create_person = this.$login.f.name
|
167
|
+
this.checkBook.f_create_date = Util.toStandardDateString()
|
168
|
+
console.log('checkbook', this.checkBook)
|
169
|
+
let http = new HttpResetClass()
|
170
|
+
http.load('POST', 'api/af-safecheck/logic/safeEntity', {data: {tableName: 't_check_book', entityData: this.checkBook}},
|
171
|
+
{resolveMsg: '保存片区信息成功', rejectMsg: '保存片区信息失败'}).then(res => {
|
172
|
+
if (res.data.code === 200) {
|
173
|
+
this.$showMessage('保存片区信息成功',['confirm']).then(res=>{
|
174
|
+
if (res==='confirm'){
|
175
|
+
bus.$emit('fresh-main')
|
176
|
+
}
|
177
|
+
})
|
178
|
+
}else{
|
179
|
+
this.$showMessage('保存片区信息失败')
|
180
|
+
}
|
181
|
+
})
|
182
|
+
},
|
183
|
+
getRes (obj) {
|
184
|
+
if (obj.resids) {
|
185
|
+
this.checkBook.f_orgid = obj.resids[0]
|
186
|
+
console.log('id', this.checkBook.f_orgid)
|
187
|
+
}
|
188
|
+
},
|
189
|
+
getUsers(obj){
|
190
|
+
this.allUsers = obj
|
191
|
+
}
|
192
|
+
}
|
193
|
+
}
|
194
|
+
</script>
|