safecheck-client 3.0.34-9 → 3.0.34-91
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/App-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.vue +55 -0
- package/src/assets/123.png +0 -0
- package/src/assets/f8632d3c8c4c1cb68e99da754cab1a7.png +0 -0
- package/src/components/LoadData.vue +62 -0
- package/src/components/NewDefectList/DefectListNew.vue +1 -0
- package/src/components/android/AddPlanItemYy.vue +451 -0
- package/src/components/android/AndroidDefectDeal.vue +634 -634
- package/src/components/android/AndroidDefectDealBeforeSafe.vue +502 -0
- package/src/components/android/AreaSelect.vue +198 -0
- package/src/components/android/BuildingSelect.vue +192 -0
- package/src/components/android/CheckPlanSelect.vue +229 -0
- package/src/components/android/CurrentCreateYy.vue +1051 -0
- package/src/components/android/PaperFeedback.vue +33 -0
- package/src/components/android/QRCode/QRCodeBinding.vue +300 -0
- package/src/components/android/QRCode/QRCodePage.vue +212 -0
- package/src/components/android/SafecheckDevices.vue +2 -2
- package/src/components/android/SafecheckOrderV.vue +8 -12
- package/src/components/android/UserinfoSelect.vue +714 -0
- package/src/components/android/examples/410.png +0 -0
- package/src/components/android/examples/SafeListExamples.vue +283 -0
- package/src/components/android/examples/UserExamples.vue +137 -0
- package/src/components/android/examples/ViewDetailsExamples.vue +1235 -0
- package/src/components/android/examples/touxiang.png +0 -0
- package/src/components/pc/SafeVisitInfo.vue +261 -0
- package/src/components/rongcheng/AddPlanItem.vue +8 -0
- package/src/components/rongcheng/AspiratedUserInfo.vue +1 -1
- package/src/components/rongcheng/CheckSearchUser.vue +46 -16
- package/src/components/rongcheng/PaperStatem.vue +6 -1
- package/src/components/rongcheng/PhoneDevicesInfo.vue +16 -1
- package/src/components/rongcheng/PhoneUpUserinfo.vue +0 -92
- package/src/components/rongcheng/SafecheckOrderV.vue +12 -3
- package/src/components/rongcheng/SafecheckOrderVCli.vue +9 -0
- package/src/filiale/baiyin/android/AndroidDefectDeal.vue +4 -4
- package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -0
- package/src/filiale/baiyin/android.js +1 -0
- package/src/filiale/baiyin/pc/CheckSearchUser.vue +2 -2
- package/src/filiale/baiyin/pc/DefectListNew.vue +3 -3
- package/src/filiale/baiyin/pc/PaperList.vue +7 -7
- package/src/filiale/bayan/android/AddPlanItem.vue +8 -0
- package/src/filiale/bayan/android/PaperFeedback.vue +63 -49
- package/src/filiale/bayan/android/PhoneUpUserinfo.vue +40 -40
- package/src/filiale/bayan/android/SafecheckOrderV.vue +58 -58
- package/src/filiale/bayan/android/SafecheckUserInfo.vue +5 -0
- package/src/filiale/bayan/pc/PaperList.vue +1 -0
- package/src/filiale/fugou/pc/CheckBookSearchUser.vue +35 -15
- package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -0
- package/src/filiale/huaran/android.js +12 -0
- package/src/filiale/huaran/pc/CheckBook.vue +313 -0
- package/src/filiale/huaran/pc/CheckBookAll.vue +69 -0
- package/src/filiale/huaran/pc/CheckBookArea.vue +170 -0
- package/src/filiale/huaran/pc/CheckBookCompany.vue +166 -0
- package/src/filiale/huaran/pc/CheckBookDetails.vue +196 -0
- package/src/filiale/huaran/pc/CheckBookEntry.vue +61 -0
- package/src/filiale/huaran/pc/CheckBookList.vue +386 -0
- package/src/filiale/huaran/pc/CheckBookSearchArea.vue +564 -0
- package/src/filiale/huaran/pc/CheckBookSearchUnit.vue +229 -0
- package/src/filiale/huaran/pc/CheckBookSearchUser.vue +604 -0
- package/src/filiale/huaran/pc/CheckBookUser.vue +112 -0
- package/src/filiale/huaran/pc/PaperList.vue +822 -0
- package/src/filiale/huaran/pc/PlanManage.vue +887 -0
- package/src/filiale/huaran/pc/checkPlanList.vue +419 -0
- package/src/filiale/huaran/pc/checkUserList.vue +867 -0
- package/src/filiale/huaran/pc.js +27 -0
- package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -0
- package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1229 -0
- package/src/filiale/jiaxian/android/SafecheckDevices.vue +6 -6
- package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -0
- package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -0
- package/src/filiale/jiaxian/android.js +4 -0
- package/src/filiale/kelai/pc/CheckPlanAreaList.vue +15 -7
- package/src/filiale/qianneng/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -0
- package/src/filiale/qingtongxia/android/CurrentCreate.vue +1053 -0
- package/src/filiale/qingtongxia/android/PhoneUpUserinfo.vue +1230 -0
- package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -0
- package/src/filiale/qingtongxia/android.js +4 -0
- package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -0
- package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -0
- package/src/filiale/ruihua/android.js +11 -0
- package/src/filiale/shanxian/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/shanxian/pc/checkUserList.vue +4 -4
- package/src/filiale/siyang/android/AddPlanItem.vue +450 -0
- package/src/filiale/siyang/android/AppCheckPlan.vue +246 -0
- package/src/filiale/siyang/android/CurrentCreate.vue +1051 -0
- package/src/filiale/siyang/android.js +4 -0
- package/src/filiale/siyang/pc/CheckBookList.vue +396 -0
- package/src/filiale/siyang/pc/CheckBookSearchArea.vue +667 -0
- package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -0
- package/src/filiale/siyang/pc/CheckSearchUser.vue +1035 -0
- package/src/filiale/siyang/pc/HiddenSituation.vue +167 -0
- package/src/filiale/siyang/pc/checkPlanList.vue +367 -0
- package/src/filiale/siyang/pc/checkUserList.vue +22 -18
- package/src/filiale/siyang/pc.js +6 -0
- package/src/filiale/tongchuan/android/Select.vue +421 -0
- package/src/filiale/tongchuan/android.js +1 -0
- package/src/filiale/tongchuan/pc/CheckPlanCountChartArea.vue +3 -1
- package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +6 -2
- package/src/filiale/tongchuan/pc/HiddenSituation.vue +3 -1
- package/src/filiale/tongchuan/pc/NewCheckpaper.vue +13 -22
- package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1 -1
- package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +5 -2
- package/src/filiale/tongchuan/utils/EventListener.js +29 -0
- package/src/filiale/tongchuan/utils/coerceBoolean.js +7 -0
- package/src/filiale/weinan/android/SafecheckDevices.vue +1 -1
- package/src/filiale/weinan/android/SafecheckOrderV.vue +6 -2
- package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +75 -62
- package/src/filiale/weinan/pc/CheckDetail.vue +11 -11
- package/src/filiale/weinan/pc/DefectPaperNew.vue +31 -0
- package/src/filiale/weinan/pc/DeviceChange.vue +1088 -0
- package/src/filiale/weinan/pc/checkUserList.vue +49 -113
- package/src/filiale/weinan/pc.js +1 -0
- package/src/filiale/wuan/android/SafecheckOrderV.vue +1 -0
- package/src/filiale/wuan/android/SafecheckUserInfo.vue +4 -0
- package/src/filiale/xilan/android/AddPlanItem.vue +457 -0
- package/src/filiale/xilan/android/CurrentCreate.vue +1060 -0
- package/src/filiale/xilan/android.js +11 -0
- package/src/filiale/xilan/pc/checkUserList.vue +772 -0
- package/src/filiale/xilan/pc.js +12 -0
- package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +10 -6
- package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +21 -1
- package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +23 -11
- package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +6 -6
- package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +96 -30
- package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +10 -10
- package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +10 -10
- package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +84 -10
- package/src/filiale/yangchunboneng/pc/PaperList.vue +6 -6
- package/src/filiale/yuansheng/android/SafecheckDevices.vue +11 -1
- package/src/filiale/yuansheng/pc/NewCheckpaper.vue +10 -2
- package/src/main-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.js +24 -0
- package/src/safecheck-android.js +307 -296
- package/src/safecheck-page.js +12 -0
- package/src/safecheck.js +3 -0
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "safecheck-client",
|
3
3
|
"//": "主分支版本别乱升,测试包的版本直接发包(建议使用1.XX.XX-XXX格式作为测试包,不要频繁升级第三位版本号),别提交版本号。切了分支切记把主分支版本升了,保证主分支始终是最高版本!!!!!",
|
4
|
-
"version": "3.0.34-
|
4
|
+
"version": "3.0.34-91",
|
5
5
|
"description": "安检模块 前端组件",
|
6
6
|
"author": "丁新 <417755458@qq.com>",
|
7
7
|
"license": "ISC",
|
@@ -0,0 +1,55 @@
|
|
1
|
+
<template>
|
2
|
+
<app-base class="bg">
|
3
|
+
<div class='flex'>
|
4
|
+
<article>
|
5
|
+
<route :comp="{name: 'load-data', props: {componentName: 'user-examples'}}"></route>
|
6
|
+
</article>
|
7
|
+
</div>
|
8
|
+
</app-base>
|
9
|
+
</template>
|
10
|
+
|
11
|
+
<script>
|
12
|
+
export default {
|
13
|
+
data () {
|
14
|
+
return {
|
15
|
+
lastTime: null, // 最后一次点击的时间
|
16
|
+
currentTime: null, // 当前点击的时间
|
17
|
+
// 获取一次不在获取控制
|
18
|
+
getConfig: false,
|
19
|
+
config: {
|
20
|
+
timeOut: 0, // 单位: 分钟
|
21
|
+
exitPrompt: '因您长时间未操作, 请重新登陆!'
|
22
|
+
},
|
23
|
+
}
|
24
|
+
},
|
25
|
+
created () {
|
26
|
+
this.lastTime = new Date().getTime()
|
27
|
+
},
|
28
|
+
methods: {
|
29
|
+
async isTimeOut () {
|
30
|
+
// 获取config配置
|
31
|
+
if (!this.getConfig && this.$login.f && this.$login.f.dir) {
|
32
|
+
await this.$getConfig(this, 'App')
|
33
|
+
this.getConfig = true
|
34
|
+
}
|
35
|
+
// 无配置,不开启
|
36
|
+
if (this.config.timeOut <= 0) return
|
37
|
+
// 记录这次点击的时间
|
38
|
+
this.currentTime = new Date().getTime()
|
39
|
+
// 判断上次最后一次点击的时间和这次点击的时间间隔是否大于超时时间
|
40
|
+
if (this.currentTime - this.lastTime > (this.config.timeOut * 60 * 1000)) {
|
41
|
+
// 如果是登录状态
|
42
|
+
if (this.$login.f.id) {
|
43
|
+
await this.$showMessage(this.config.exitPrompt)
|
44
|
+
window.location.reload()
|
45
|
+
} else {
|
46
|
+
this.lastTime = new Date().getTime()
|
47
|
+
}
|
48
|
+
} else {
|
49
|
+
// 如果在超时时间内点击,则把这次点击的时间记录覆盖掉之前存的最后一次点击的时间
|
50
|
+
this.lastTime = new Date().getTime()
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
</script>
|
Binary file
|
Binary file
|
@@ -0,0 +1,62 @@
|
|
1
|
+
<template>
|
2
|
+
<!-- 石泉单页面打包用-->
|
3
|
+
<div class="loadingdata" :class="{'loaderror': show, 'loadsuccess': !show}">
|
4
|
+
<!-- <h2 style="margin: 0" v-if="show">{{msg}}</h2> -->
|
5
|
+
<h2 style="margin: 0" v-if="show">参数加载失败,请检查网络状态和服务状态...</h2>
|
6
|
+
</div>
|
7
|
+
</template>
|
8
|
+
|
9
|
+
<script>
|
10
|
+
import co from 'co'
|
11
|
+
import Vue from "vue";
|
12
|
+
|
13
|
+
let saveGen = function* (self) {
|
14
|
+
try {
|
15
|
+
yield self.$login.login()
|
16
|
+
yield self.$appdata.load()
|
17
|
+
} catch (ret) {
|
18
|
+
console.error('登录失败', ret)
|
19
|
+
}
|
20
|
+
}
|
21
|
+
export default {
|
22
|
+
title: '加载参数',
|
23
|
+
data () {
|
24
|
+
return {
|
25
|
+
msg: '',
|
26
|
+
show: false
|
27
|
+
}
|
28
|
+
},
|
29
|
+
props: {
|
30
|
+
componentName: {}
|
31
|
+
},
|
32
|
+
ready () {
|
33
|
+
if (!this.componentName) {
|
34
|
+
this.componentName = Vue.$login.getUrlParames('goto')
|
35
|
+
}
|
36
|
+
console.log('跳转页面', this.componentName)
|
37
|
+
let gen = saveGen(this)
|
38
|
+
co(gen).then(() => {
|
39
|
+
this.$goto(this.componentName)
|
40
|
+
}).catch(() => {
|
41
|
+
this.$goto(this.componentName)
|
42
|
+
})
|
43
|
+
}
|
44
|
+
}
|
45
|
+
</script>
|
46
|
+
<style media="screen">
|
47
|
+
.loadingdata {
|
48
|
+
position: fixed;
|
49
|
+
background: #fff;
|
50
|
+
opacity: 0.6;
|
51
|
+
top: 0;
|
52
|
+
width: 100%;
|
53
|
+
}
|
54
|
+
|
55
|
+
.loaderror {
|
56
|
+
opacity: 1;
|
57
|
+
}
|
58
|
+
|
59
|
+
.loadsuccess {
|
60
|
+
display: none;
|
61
|
+
}
|
62
|
+
</style>
|
@@ -289,6 +289,7 @@ const sendRepair = function* (self) {
|
|
289
289
|
uploadData.model.f_repair_date = Util.getNowDate()
|
290
290
|
uploadData.model.f_repairtype = preData.f_repairtype
|
291
291
|
uploadData.model.f_remarks = preData.f_remarks
|
292
|
+
uploadData.model.f_paper_id = self.check.id
|
292
293
|
// 拼接failure
|
293
294
|
let failure = []
|
294
295
|
self.model.rows.forEach(row => {
|
@@ -0,0 +1,451 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="auto">
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
|
5
|
+
<div partial>
|
6
|
+
<form>
|
7
|
+
<div class="row app-row">
|
8
|
+
<div class="col-xs-4">
|
9
|
+
<img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
|
10
|
+
<label class="font text-left">用户编号:</label>
|
11
|
+
</div>
|
12
|
+
<div class="col-xs-8" >
|
13
|
+
<input class="search_input input-font"
|
14
|
+
v-model=model.f_userinfo_code condition="f_userinfo_code = '{}'" placeholder="请输入用户编号" />
|
15
|
+
</div>
|
16
|
+
</div>
|
17
|
+
<div class="row app-row">
|
18
|
+
<div class="col-xs-4">
|
19
|
+
<img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
|
20
|
+
<label class="font text-left">表 号:</label>
|
21
|
+
</div>
|
22
|
+
<div class="col-xs-8" >
|
23
|
+
<input class="search_input input-font"
|
24
|
+
v-model=model.f_meternumber condition="f_meternumber = '{}'" style="width: 70%" placeholder="请输入表号" />
|
25
|
+
<button type="button" name="button" class="btn btn-primary" style="width: 25%" @click="$parent.$parent.scan">扫码</button>
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
<div class="row app-row">
|
29
|
+
<div class="col-xs-4">
|
30
|
+
<img src="../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
|
31
|
+
<label class="font text-left">用户名称:</label>
|
32
|
+
</div>
|
33
|
+
<div class="col-xs-8" >
|
34
|
+
<input class="search_input input-font" v-model="model.f_username" placeholder="请输入用户名称(可模糊查询)">
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
<div class="row app-row">
|
38
|
+
<div class="col-xs-4">
|
39
|
+
<img src="../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
|
40
|
+
<label class="font text-left">用户类型:</label>
|
41
|
+
</div>
|
42
|
+
<div class="col-xs-8" >
|
43
|
+
<v-select :value.sync="$parent.$parent.model.f_user_type" class="input-font"
|
44
|
+
:options='$parent.$parent.user_types' placeholder='请选择用户类型' :value-single="true"
|
45
|
+
v-model="$parent.$parent.model.f_user_type" close-on-select clear-button></v-select>
|
46
|
+
</div>
|
47
|
+
</div>
|
48
|
+
<div class="row app-row">
|
49
|
+
<div class="col-xs-4">
|
50
|
+
<img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
|
51
|
+
<label class="font text-left">小区名称:</label>
|
52
|
+
</div>
|
53
|
+
<div class="col-xs-8" >
|
54
|
+
<input style="width: 100%" class="search_input input-font" v-model="model.f_districtname" placeholder="请输入用户小区(可模糊查询)">
|
55
|
+
</div>
|
56
|
+
</div>
|
57
|
+
<div class="row app-row">
|
58
|
+
<div class="col-xs-4">
|
59
|
+
<img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
|
60
|
+
<label class="font text-left">楼 号:</label>
|
61
|
+
</div>
|
62
|
+
<div class="col-xs-8" >
|
63
|
+
<input style="width: 100%" class="search_input input-font" v-model="model.f_building" placeholder="请输入用户楼号">
|
64
|
+
</div>
|
65
|
+
</div>
|
66
|
+
<div class="row app-row">
|
67
|
+
<div class="col-xs-4">
|
68
|
+
<img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
|
69
|
+
<label class="font text-left">单 元:</label>
|
70
|
+
</div>
|
71
|
+
<div class="col-xs-8" >
|
72
|
+
<input style="width: 100%" class="search_input input-font" v-model="model.f_unit" placeholder="请输入用户单元">
|
73
|
+
</div>
|
74
|
+
</div>
|
75
|
+
<div class="row app-row">
|
76
|
+
<div class="col-xs-4">
|
77
|
+
<img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
|
78
|
+
<label class="font text-left">用户地址:</label>
|
79
|
+
</div>
|
80
|
+
<div class="col-xs-8" >
|
81
|
+
<input style="width: 100%" class="search_input input-font" v-model="model.f_address" placeholder="请输入用户地址(可模糊查询)">
|
82
|
+
</div>
|
83
|
+
</div>
|
84
|
+
<div class="row app-row">
|
85
|
+
<div class="col-xs-4">
|
86
|
+
<img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
|
87
|
+
<label class="font text-left">表 封 号:</label>
|
88
|
+
</div>
|
89
|
+
<div class="col-xs-8" >
|
90
|
+
<input style="width: 100%" class="search_input input-font" v-model="model.f_metertitles" placeholder="请输入表封号" condition="uf.f_metertitles='{}'">
|
91
|
+
</div>
|
92
|
+
</div>
|
93
|
+
<div class="row app-row">
|
94
|
+
<div class="col-xs-4">
|
95
|
+
<img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
|
96
|
+
<label class="font text-left">电 话 号:</label>
|
97
|
+
</div>
|
98
|
+
<div class="col-xs-8" >
|
99
|
+
<input style="width: 100%" class="search_input input-font" v-model="model.f_user_phone" placeholder="请输入电话号" condition="ui.f_user_phone like '%{}%'">
|
100
|
+
</div>
|
101
|
+
</div>
|
102
|
+
<div class="row app-row">
|
103
|
+
<div class="col-xs-4">
|
104
|
+
<img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
|
105
|
+
<label class="font text-left">卡 号:</label>
|
106
|
+
</div>
|
107
|
+
<div class="col-xs-8" >
|
108
|
+
<input style="width: 100%" class="search_input input-font" v-model="model.f_card_id" placeholder="请输入卡号" condition="uf.f_card_id like '%{}%'">
|
109
|
+
</div>
|
110
|
+
</div>
|
111
|
+
<div class="row app-row">
|
112
|
+
<div class="col-xs-4">
|
113
|
+
<img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
114
|
+
<label class="font text-left">抄 表 册:</label>
|
115
|
+
</div>
|
116
|
+
<div class="col-xs-8" >
|
117
|
+
<v-select class="input-font"
|
118
|
+
placeholder='请选择抄表册'
|
119
|
+
:value.sync="model.f_meter_book_num"
|
120
|
+
v-model="model.f_meter_book_num"
|
121
|
+
:options='$parent.$parent.cbc'
|
122
|
+
condition="uf.f_meter_book_num='{}'"
|
123
|
+
close-on-select clear-button></v-select>
|
124
|
+
</div>
|
125
|
+
</div>
|
126
|
+
<!-- <div class="row app-row">
|
127
|
+
<div class="col-xs-4">
|
128
|
+
<img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
129
|
+
<label class="font text-left">安检情况</label>
|
130
|
+
</div>
|
131
|
+
<div class="col-xs-8" >
|
132
|
+
<v-select class="input-font"
|
133
|
+
placeholder='请选择安检情况'
|
134
|
+
:value.sync="model.f_ischeck"
|
135
|
+
v-model="model.f_ischeck"
|
136
|
+
:options='$parent.$parent.ischecks'
|
137
|
+
condition="{}"
|
138
|
+
close-on-select clear-button></v-select>
|
139
|
+
</div>
|
140
|
+
</div>
|
141
|
+
<div class="row app-row">
|
142
|
+
<div class="col-xs-4">
|
143
|
+
<img src="../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
144
|
+
<label class="font text-left">档案状态:</label>
|
145
|
+
</div>
|
146
|
+
<div class="col-xs-8" >
|
147
|
+
<v-select class="input-font"
|
148
|
+
placeholder='请选择档案状态'
|
149
|
+
:value.sync="$parent.$parent.model.f_user_state"
|
150
|
+
:options='$parent.$parent.f_user_states'
|
151
|
+
close-on-select clear-button></v-select>
|
152
|
+
</div>
|
153
|
+
</div>-->
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
<div class="row text-center" style="margin-top: 20px;">
|
158
|
+
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="search">查询</button>
|
159
|
+
</div>
|
160
|
+
<div style="height:30px;"></div>
|
161
|
+
</form>
|
162
|
+
</div>
|
163
|
+
</criteria>
|
164
|
+
|
165
|
+
<list :model="model" partial='list'>
|
166
|
+
<div partial>
|
167
|
+
<div @click="$parent.$parent.$parent.inspect(row)" class="auto app-text" style="margin-top: 5px;">
|
168
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
169
|
+
<div class="panel-body panel-self">
|
170
|
+
<div class="row">
|
171
|
+
<p class="panel-title col-xs-4 text-left font">用户编号</p>
|
172
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_userinfo_code }}</p>
|
173
|
+
</div>
|
174
|
+
<div class="row">
|
175
|
+
<p class="panel-title col-xs-4 text-left font">用户名称</p>
|
176
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_name }}</p>
|
177
|
+
</div>
|
178
|
+
<div class="row">
|
179
|
+
<p class="panel-title col-xs-4 text-left font">表号</p>
|
180
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_meternumber }}</p>
|
181
|
+
</div>
|
182
|
+
<div class="row">
|
183
|
+
<p class="panel-title col-xs-4 text-left font">用户类型</p>
|
184
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_type }}</p>
|
185
|
+
</div>
|
186
|
+
<div class="row">
|
187
|
+
<p class="panel-title col-xs-4 text-left font">用户电话</p>
|
188
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_phone2 ? row.f_user_phone2 : row.f_user_phone }}</p>
|
189
|
+
</div>
|
190
|
+
|
191
|
+
<div class="row">
|
192
|
+
<p class="panel-title col-xs-4 text-left font">小区名称</p>
|
193
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_residential_area }}</p>
|
194
|
+
</div>
|
195
|
+
<div class="row">
|
196
|
+
<p class="panel-title col-xs-4 text-left font">用户地址</p>
|
197
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_address }}</p>
|
198
|
+
</div>
|
199
|
+
<div class="row">
|
200
|
+
<p class="panel-title col-xs-4 text-left font">最后安检日期</p>
|
201
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_date }}</p>
|
202
|
+
</div>
|
203
|
+
<div class="row">
|
204
|
+
<p class="panel-title col-xs-4 text-left font">最后安检状态</p>
|
205
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_state }}</p>
|
206
|
+
</div>
|
207
|
+
</div>
|
208
|
+
</div>
|
209
|
+
|
210
|
+
</div>
|
211
|
+
</div>
|
212
|
+
</list>
|
213
|
+
</criteria-paged>
|
214
|
+
<!--<back-page :need-back='true' @flag="$back()"></back-page>-->
|
215
|
+
</div>
|
216
|
+
</template>
|
217
|
+
|
218
|
+
<script>
|
219
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
220
|
+
import Vue from 'vue'
|
221
|
+
import * as Util from '../Util'
|
222
|
+
|
223
|
+
export default {
|
224
|
+
title: '安检员B',
|
225
|
+
data () {
|
226
|
+
let model = new PagedList(`${this.$androidUtil.getProxyUrl()}/rs/sql/提取用户档案`, 20, { groupitem: '""', orderitem: '"f_residential_area,CAST(build as int),f_unit,CAST(floor1 as int),f_room"',f_check_type:'this.f_check_type[0]',
|
227
|
+
f_user_name:'this.model.f_username',myCycle: 'this.myCycle',fyCycle: 'this.fyCycle', f_user_type:'this.f_user_type',f_sign: 'this.f_sign[0]', f_residential_area:'this.model.f_districtname', f_address:'this.model.f_address',f_user_state: 'this.f_user_state[0]',f_orgids:'this.f_orgids',f_unit:'this.model.f_unit',f_building:'this.model.f_building',f_filialeid:'this.f_filialeid'})
|
228
|
+
model.f_sign = ['']
|
229
|
+
model.f_user_type = ''
|
230
|
+
model.f_user_state =['']
|
231
|
+
model.f_check_type =['']
|
232
|
+
model.myCycle = 0
|
233
|
+
model.fyCycle = 0
|
234
|
+
model.f_filialeid = Vue.user.orgid
|
235
|
+
//model.f_filialeid = 287
|
236
|
+
return {
|
237
|
+
model: model,
|
238
|
+
cbc:[],
|
239
|
+
showModal:false,
|
240
|
+
signs: [
|
241
|
+
{label:'请选择录入状态', value:''},
|
242
|
+
{label:'录入', value:'1'},
|
243
|
+
{label:'非录入', value:'0'},
|
244
|
+
],
|
245
|
+
ischecks: [
|
246
|
+
],
|
247
|
+
user_types: [
|
248
|
+
{label: '请选择用户类型', value: ''},
|
249
|
+
{label: '民用', value: '民用'},
|
250
|
+
{label: '非民用', value: '非民用'},
|
251
|
+
],
|
252
|
+
f_user_states: [
|
253
|
+
{label:'请选择档案状态', value:''},
|
254
|
+
{label:'正常', value:'正常'},
|
255
|
+
{label:'点火', value:'点火'},
|
256
|
+
],
|
257
|
+
f_check_types: [
|
258
|
+
{label:'请选择安检类型', value:''},
|
259
|
+
{label:'应检', value:'应检'},
|
260
|
+
{label:'超期', value:'超期'},
|
261
|
+
],
|
262
|
+
}
|
263
|
+
},
|
264
|
+
ready () {
|
265
|
+
// this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/getSafeCheckCycle`,{},{resolveMsg: null, rejectMsg: null}).then((res) => {
|
266
|
+
// //tag)
|
267
|
+
// if(res.data.code == 200){
|
268
|
+
// this.model.myCycle = res.data.civil.value
|
269
|
+
// this.model.fyCycle = res.data.civilian.value
|
270
|
+
// }else{
|
271
|
+
// //this.$showMessage(res.data.msg)
|
272
|
+
// }
|
273
|
+
//
|
274
|
+
// })
|
275
|
+
// this.getCheckTime()
|
276
|
+
// this.Mreadibook()
|
277
|
+
},
|
278
|
+
computed: {
|
279
|
+
reload(){
|
280
|
+
this.$refs.paged.loadPage(this.$refs.paged.model.pageIndex)
|
281
|
+
},
|
282
|
+
selected () {
|
283
|
+
return this.$refs.paged.$refs.grid.selected
|
284
|
+
}
|
285
|
+
},
|
286
|
+
methods:{
|
287
|
+
search(args){
|
288
|
+
args.condition += ` and f_handlercheck_id = '${Vue.user.id}' and f_handler_state = '已预约'`
|
289
|
+
this.model.search(args.condition, args.model, args.condValue)
|
290
|
+
},
|
291
|
+
scan(){
|
292
|
+
HostApp.__this__=this,
|
293
|
+
HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
|
294
|
+
},
|
295
|
+
getCode(){
|
296
|
+
let datapa = HostApp.getCode().data;
|
297
|
+
let indexnum = datapa.indexOf("]C1")
|
298
|
+
if(indexnum != -1){
|
299
|
+
datapa = datapa.substring(indexnum+3,datapa.length)
|
300
|
+
}
|
301
|
+
this.$refs.paged.$refs.cri.model.f_meternumber=datapa
|
302
|
+
},
|
303
|
+
getCheckTime(){
|
304
|
+
//tag
|
305
|
+
new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`,{data: {
|
306
|
+
items: 'f_circle,f_start_time',
|
307
|
+
tablename: 't_safe_circle',
|
308
|
+
condition: `f_filialeid = '${Vue.user.orgid}'`,
|
309
|
+
orderitem: 'id'
|
310
|
+
}}).then(res=>{
|
311
|
+
//tag)
|
312
|
+
let nocheck=''
|
313
|
+
let ischeck=''
|
314
|
+
if (res.data[0]){
|
315
|
+
if (res.data[0].f_circle=='1'){
|
316
|
+
nocheck=`(ua.f_last_check_date<'${res.data[0].f_start_time}' or ua.f_last_check_date is null)`
|
317
|
+
ischeck=`ua.f_last_check_date>'${res.data[0].f_start_time}'`
|
318
|
+
|
319
|
+
}else{
|
320
|
+
let addtime= (Util.toStandardTimeString().substring(0,4)-res.data[0].f_start_time.substring(0,4))%res.data[0].f_circle
|
321
|
+
//tag
|
322
|
+
let time =(Util.toStandardTimeString().substring(0,4)-addtime)+'-01-01 00:00:00'
|
323
|
+
//tag
|
324
|
+
nocheck=`(ua.f_last_check_date<'${time}' or ua.f_last_check_date is null)`
|
325
|
+
ischeck=`ua.f_last_check_date>'${time}'`
|
326
|
+
}
|
327
|
+
//tag
|
328
|
+
this.ischecks=[
|
329
|
+
{label: '全部', value: ''},
|
330
|
+
{label: '已检', value: ischeck },
|
331
|
+
{label: '未检', value: nocheck},
|
332
|
+
]
|
333
|
+
//tag
|
334
|
+
}else{
|
335
|
+
this.$showMessage("未配置安检周期")
|
336
|
+
}
|
337
|
+
|
338
|
+
})
|
339
|
+
//tag
|
340
|
+
},
|
341
|
+
inspect (info){
|
342
|
+
if(info.f_last_check_date){
|
343
|
+
this.$showMessage("该用户最后一次安检时间为 "+info.f_last_check_date+" 是否继续对该用户进行安检",['confirm', 'cancel']).then((butt)=>{
|
344
|
+
if(butt=="confirm"){
|
345
|
+
info.id = ''
|
346
|
+
info.f_state = '未检'
|
347
|
+
info.f_no_checkplan = '无计划安检'
|
348
|
+
//tag
|
349
|
+
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`,{data:{f_userid:info.f_userinfo_id}}).then((response)=>{
|
350
|
+
//tag)
|
351
|
+
info['f_plan_meters'] = response.data
|
352
|
+
var pardate = {
|
353
|
+
_this:this,
|
354
|
+
tittle:'安检详情',
|
355
|
+
safe:true
|
356
|
+
}
|
357
|
+
this.$dispatch('gotoson',pardate)
|
358
|
+
this.$goto('safecheck-order-v', {item: info, role: 'inspect',parentPage:'AddPlanItem'}, 'self', this.reload)
|
359
|
+
|
360
|
+
})
|
361
|
+
}
|
362
|
+
})
|
363
|
+
}else{
|
364
|
+
info.id = ''
|
365
|
+
info.f_state = '未检'
|
366
|
+
info.f_no_checkplan = '无计划安检'
|
367
|
+
//tag
|
368
|
+
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`,{data:{f_userid:info.f_userinfo_id}}).then((response)=>{
|
369
|
+
//tag)
|
370
|
+
info['f_plan_meters'] = response.data
|
371
|
+
var pardate = {
|
372
|
+
_this:this,
|
373
|
+
tittle:'安检详情',
|
374
|
+
safe:true
|
375
|
+
}
|
376
|
+
this.$dispatch('gotoson',pardate)
|
377
|
+
this.$goto('safecheck-order-v', {item: info, role: 'inspect',parentPage:'AddPlanItem'}, 'self', this.reload)
|
378
|
+
|
379
|
+
})
|
380
|
+
}
|
381
|
+
},
|
382
|
+
Mreadibook(){
|
383
|
+
this.cbc=[]
|
384
|
+
let http = new HttpResetClass()
|
385
|
+
http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/logic/getMeterBooksData`,
|
386
|
+
{data: {f_orgid: "('"+Vue.user.orgid+"')"}},
|
387
|
+
{resolveMsg: null, rejectMsg: '获取失败!!!'}).then((getMeterReadingBooks)=>{
|
388
|
+
this.cbc = [{label: '全部', value: ''}]
|
389
|
+
//tag
|
390
|
+
//tag)
|
391
|
+
//tag
|
392
|
+
getMeterReadingBooks.data.meterbooks.forEach((res) => {
|
393
|
+
this.cbc.push({label: res.f_book_name, value: res.id})
|
394
|
+
/*if(res.f_book_slice_area){
|
395
|
+
if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
|
396
|
+
this.sliceArea.push(res.f_book_slice_area)
|
397
|
+
}
|
398
|
+
}*/
|
399
|
+
})
|
400
|
+
})
|
401
|
+
|
402
|
+
|
403
|
+
}
|
404
|
+
}
|
405
|
+
}
|
406
|
+
</script>
|
407
|
+
<style scoped>
|
408
|
+
.app-row {
|
409
|
+
background-color: white;
|
410
|
+
padding: 10px 10px 0 10px;
|
411
|
+
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
412
|
+
}
|
413
|
+
.search_input {
|
414
|
+
border: 0;
|
415
|
+
outline: none;
|
416
|
+
}
|
417
|
+
.font{
|
418
|
+
font: 15px PingFang-SC-Medium;
|
419
|
+
color: #666666;
|
420
|
+
}
|
421
|
+
.input-font{
|
422
|
+
font: 15px PingFang-SC-Medium;
|
423
|
+
color: #333333;
|
424
|
+
}
|
425
|
+
.btn-font{
|
426
|
+
font:600 16px PingFang-SC-Bold;
|
427
|
+
color: #499EDF;
|
428
|
+
}
|
429
|
+
.btn-color{
|
430
|
+
background-color: #FFFFFF;
|
431
|
+
border-radius: 10px ;
|
432
|
+
border: 1px solid #499EDF;
|
433
|
+
}
|
434
|
+
.app-text {
|
435
|
+
font-size: 12px;
|
436
|
+
}
|
437
|
+
.panel-self{
|
438
|
+
border-radius: 10px;
|
439
|
+
border:1px solid #499EDF;
|
440
|
+
background-color: #F8F8F8;
|
441
|
+
}
|
442
|
+
.yybtn-color{
|
443
|
+
border-radius: 4px ;
|
444
|
+
border: 1px solid #499EDF;
|
445
|
+
}
|
446
|
+
.qxbtn-color{
|
447
|
+
background-color: #FFFFFF;
|
448
|
+
border-radius: 4px ;
|
449
|
+
border: 1px solid #499EDF;
|
450
|
+
}
|
451
|
+
</style>
|