safecheck-client 3.0.34-3 → 3.0.34-31
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 +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/android/AndroidDefectDeal.vue +1 -0
- package/src/components/android/AreaPlan.vue +1 -7
- package/src/components/android/PaperFeedback.vue +1 -1
- package/src/components/android/PaperFeedbackTemp.vue +1 -1
- package/src/components/android/QRCode/QRCodeBinding.vue +247 -0
- package/src/components/android/QRCode/QRCodePage.vue +199 -0
- package/src/components/android/SafePlanItem.vue +509 -509
- package/src/components/android/SafecheckDevices.vue +1 -1
- package/src/components/android/SafecheckDevicesTemp.vue +1 -1
- package/src/components/android/examples/SafeListExamples.vue +95 -0
- package/src/components/android/examples/UserExamples.vue +125 -0
- package/src/components/android/userinfo/SafecheckUserInfo.vue +1 -1
- package/src/components/pc/DeviceChange.vue +1088 -1068
- package/src/components/safecheckNew/android/SafecheckOrderV.vue +2731 -2731
- package/src/filiale/baiyin/android/SafecheckOrderV.vue +2798 -0
- package/src/filiale/baiyin/android.js +1 -0
- package/src/filiale/bayan/android/PaperFeedback.vue +1 -1
- package/src/filiale/bayan/android/SafecheckDevices.vue +1 -1
- package/src/filiale/bayan/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/bayan/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/dexin/android/SafecheckDevices.vue +1 -1
- package/src/filiale/fugou/pc/CheckBookSearchUser.vue +35 -15
- package/src/filiale/hanzhong/android/PaperFeedback.vue +1 -1
- package/src/filiale/hanzhong/android/SafecheckDevices.vue +1 -1
- package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -0
- package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1231 -0
- package/src/filiale/jiaxian/android/SafecheckDevices.vue +4 -4
- package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2811 -0
- package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -0
- package/src/filiale/jiaxian/android.js +4 -0
- package/src/filiale/jingyang/android/PaperFeedback.vue +1 -1
- package/src/filiale/jingyang/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/kelai/pc/CheckPlanAreaList.vue +15 -7
- package/src/filiale/pingxiang/android/PaperFeedback.vue +1 -1
- package/src/filiale/qingjian/android/SafecheckDevices.vue +1 -1
- package/src/filiale/qingjian/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
- package/src/filiale/shiquan/android/SafecheckDevices.vue +1 -1
- package/src/filiale/siyang/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/siyang/pc/NewCheckpaper.vue +1938 -1938
- package/src/filiale/siyang/pc/checkUserList.vue +786 -786
- package/src/filiale/siyang/pc.js +16 -16
- package/src/filiale/weinan/android/SafecheckDevices.vue +1 -1
- package/src/filiale/weinan/android/SafecheckOrderV.vue +3335 -3335
- package/src/filiale/weinan/pc/DefectPaperNew.vue +31 -0
- package/src/filiale/wuan/android/SafecheckOrderV.vue +2240 -2240
- package/src/filiale/wuan/android/SafecheckUserInfo.vue +592 -592
- package/src/filiale/yangchunboneng/android/CurrentCreate.vue +8 -11
- package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +8 -13
- package/src/filiale/yangchunboneng/android/PaperFeedback.vue +1 -1
- package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +2 -2
- package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +8 -13
- package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +9 -7
- package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +269 -269
- package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1128 -1128
- package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +972 -972
- package/src/filiale/yangchunboneng/pc/PaperList.vue +773 -773
- package/src/filiale/yongzhou/android/PaperFeedback.vue +1 -1
- package/src/filiale/yongzhou/android/SafecheckDevices.vue +1 -1
- package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/yuansheng/android/SwitchValve.vue +322 -322
- package/src/filiale/yuansheng/android.js +17 -17
- package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1 -1
- package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1 -1
- package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +1 -1
- 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/main.js +1 -1
- package/src/safecheck-android.js +4 -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-31",
|
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>
|
@@ -497,6 +497,7 @@
|
|
497
497
|
if (this.deletebacklistisselect){
|
498
498
|
this.deletebacklist()
|
499
499
|
}
|
500
|
+
this.deal.f_other_dealpath = this.deal.f_deal_path
|
500
501
|
HostApp.__this__ = this
|
501
502
|
HostApp.logicWithHint({
|
502
503
|
'logic': 'safe_dealWithDefect', 'callback': 'javascript: HostApp.__this__.commitCallBack()',
|
@@ -424,13 +424,7 @@
|
|
424
424
|
{label: '未检', value: '未检'},
|
425
425
|
{label: '已检', value: '已检'},
|
426
426
|
],
|
427
|
-
last_check_states:
|
428
|
-
{label: '请选择上次安检状态', value: ''},
|
429
|
-
{label: '入户', value: '入户'},
|
430
|
-
{label: '拒检', value: '拒检'},
|
431
|
-
{label: '到访不遇', value: '到访不遇'},
|
432
|
-
{label: '未使用天然气', value: '未使用天然气'}
|
433
|
-
],
|
427
|
+
last_check_states: Vue.$appdata.getParam('安检状态'),
|
434
428
|
upload_states: [
|
435
429
|
{label: '请选择上传状态', value: ''},
|
436
430
|
{label: '未传', value: '未传'},
|
@@ -610,7 +610,6 @@ export default {
|
|
610
610
|
HostApp.__this__ = null
|
611
611
|
},
|
612
612
|
takePic(prop, title, index) {
|
613
|
-
const obj = HostApp.getGpsDetailAddress()
|
614
613
|
HostApp.__callback__ = this.cameraCallBack
|
615
614
|
HostApp.__this__ = this
|
616
615
|
////tag
|
@@ -631,6 +630,7 @@ export default {
|
|
631
630
|
}
|
632
631
|
let jingweidu = ''
|
633
632
|
if (this.$parent.$parent.is_has_jingweidu == 'true'){
|
633
|
+
const obj = HostApp.getGpsDetailAddress()
|
634
634
|
jingweidu = '\t经度:' + obj.longitude+ '\t纬度:' + obj.latitude
|
635
635
|
}
|
636
636
|
HostApp._open_a_page({
|
@@ -610,7 +610,6 @@
|
|
610
610
|
HostApp.__this__ = null
|
611
611
|
},
|
612
612
|
takePic(prop, title, index) {
|
613
|
-
const obj = HostApp.getGpsDetailAddress()
|
614
613
|
HostApp.__callback__ = this.cameraCallBack
|
615
614
|
HostApp.__this__ = this
|
616
615
|
////tag
|
@@ -631,6 +630,7 @@
|
|
631
630
|
}
|
632
631
|
let jingweidu = ''
|
633
632
|
if (this.$parent.$parent.is_has_jingweidu == 'true'){
|
633
|
+
const obj = HostApp.getGpsDetailAddress()
|
634
634
|
jingweidu = '\t经度:' + obj.longitude+ '\t纬度:' + obj.latitude
|
635
635
|
}
|
636
636
|
HostApp._open_a_page({
|
@@ -0,0 +1,247 @@
|
|
1
|
+
<template>
|
2
|
+
<div style="height: 100%">
|
3
|
+
<div class="panel auto">
|
4
|
+
<div class="panel-body ">
|
5
|
+
<div class="row auto" style="margin: 5px 0">
|
6
|
+
<label class="righttxt">负责人姓名:</label>
|
7
|
+
<input v-model="bindingData.f_head_name" class="form-control rightipt" type="text"/>
|
8
|
+
</div>
|
9
|
+
</div>
|
10
|
+
</div>
|
11
|
+
<div class="panel auto">
|
12
|
+
<div class="panel-body ">
|
13
|
+
<div class="row auto" style="margin: 5px 0">
|
14
|
+
<label class="righttxt">负责人职务:</label>
|
15
|
+
<input v-model="bindingData.f_head_post" class="form-control rightipt" type="text"/>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
<div class="panel auto">
|
20
|
+
<div class="panel-body ">
|
21
|
+
<div class="row auto" style="margin: 5px 0">
|
22
|
+
<label class="righttxt">负责人电话:</label>
|
23
|
+
<input v-model="bindingData.f_head_phone" class="form-control rightipt" type="text"/>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
<div class="panel auto">
|
28
|
+
<div class="panel-body ">
|
29
|
+
<div class="row auto" style="margin: 5px 0">
|
30
|
+
<label class="righttxt">绑定类型:</label>
|
31
|
+
<v-select v-model="bindingData.f_type" :options='types' :value.sync="bindingData.f_type" :width="'60%'"
|
32
|
+
class="input-font" clear-button close-on-select placeholder='类型' style="margin-left: 5%;"
|
33
|
+
value-single></v-select>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
<div v-if="bindingData.f_type == '小区'" class="panel auto">
|
38
|
+
<div class="panel-body ">
|
39
|
+
<div class="row auto" style="margin: 5px 0">
|
40
|
+
<label class="righttxt">小区名称:</label>
|
41
|
+
<v-select v-model="bindingData.f_user_name" :options='residentialAreas' :value.sync="bindingData.f_user_name" :width="'60%'"
|
42
|
+
class="input-font" clear-button close-on-select placeholder='小区名称'
|
43
|
+
style="margin-left: 5%;" value-single></v-select>
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
<div v-if="bindingData.f_type == '用户'" class="panel auto">
|
48
|
+
<div class="panel-body ">
|
49
|
+
<div class="row auto" style="margin: 5px 0">
|
50
|
+
<label class="righttxt">用户名称:</label>
|
51
|
+
<v-select v-model="bindingData.f_user_name" :options='userNames' :value.sync="bindingData.f_user_name" :width="'60%'"
|
52
|
+
class="input-font" clear-button close-on-select placeholder='用户名称'
|
53
|
+
style="margin-left: 5%;"
|
54
|
+
value-single></v-select>
|
55
|
+
</div>
|
56
|
+
</div>
|
57
|
+
</div>
|
58
|
+
<div class="panel auto">
|
59
|
+
<div class="panel-body">
|
60
|
+
<label class="row auto text-left col-md-4 col-xs-4">备注</label>
|
61
|
+
<div class="col-md-12 col-sm-12 col-xs-12">
|
62
|
+
<textarea v-model="bindingData.f_comments" class="form-control"></textarea>
|
63
|
+
</div>
|
64
|
+
</div>
|
65
|
+
</div>
|
66
|
+
<div class="panel auto">
|
67
|
+
<div class="panel-body ">
|
68
|
+
<div class="row auto" style="margin: 5px 0">
|
69
|
+
<label class="righttxt">图片:</label>
|
70
|
+
<div class="col-xs-6" style="height: 160px;width:160px;overflow: scroll;top: 1px">
|
71
|
+
<img-self v-if="bindingData.f_head_pic" :src="bindingData.f_head_pic" width="140" height="140"></img-self>
|
72
|
+
<button v-if="!bindingData.f_head_pic" type="button" name="button" class="btn btn-primary" @click="takePictures('com.aofeng.hybrid.android.peripheral.CameraActivity')">拍照</button>
|
73
|
+
<button v-if="!bindingData.f_head_pic" type="button" name="button" class="btn btn-primary" @click="takePictures('com.aofeng.hybrid.android.peripheral.ActionMultiplePickActivity')">相册</button>
|
74
|
+
</div>
|
75
|
+
</div>
|
76
|
+
</div>
|
77
|
+
</div>
|
78
|
+
<div class="panel auto">
|
79
|
+
<div class="panel-body">
|
80
|
+
<div style="display: flex;justify-content: center;">
|
81
|
+
<button class="col-sm-3 btn btn-primary" @click="binding()">绑定</button>
|
82
|
+
</div>
|
83
|
+
</div>
|
84
|
+
</div>
|
85
|
+
</div>
|
86
|
+
</template>
|
87
|
+
|
88
|
+
<script>
|
89
|
+
import {HttpResetClass} from 'vue-client'
|
90
|
+
import * as Util from '../../Util'
|
91
|
+
|
92
|
+
|
93
|
+
export default {
|
94
|
+
title: '二维码绑定',
|
95
|
+
data() {
|
96
|
+
return {
|
97
|
+
bindingData: {},
|
98
|
+
residentialAreas: [{label: '请选择', value: ''}],
|
99
|
+
userNames: [{label: '请选择', value: ''}],
|
100
|
+
types: [{label: '请选择', value: ''}, {label: '小区', value: '小区'}, {label: '用户', value: '用户'}]
|
101
|
+
}
|
102
|
+
},
|
103
|
+
props: {
|
104
|
+
row: {
|
105
|
+
type: Object
|
106
|
+
}
|
107
|
+
},
|
108
|
+
methods: {
|
109
|
+
cameraCallBack(prop,fileName) {
|
110
|
+
this.$set('bindingData.f_head_pic',fileName)
|
111
|
+
},
|
112
|
+
takePictures(page){
|
113
|
+
HostApp.__callback__ = this.cameraCallBack
|
114
|
+
HostApp.__this__ = this
|
115
|
+
let prop = 'QRCode'
|
116
|
+
this.fileName = Util.guid() +'.jpg'
|
117
|
+
HostApp._open_a_page({
|
118
|
+
type: 'boomerang',
|
119
|
+
page: page,
|
120
|
+
param: {
|
121
|
+
file: this.fileName,
|
122
|
+
requestCode: 111,
|
123
|
+
callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
|
124
|
+
watermark: ''
|
125
|
+
}
|
126
|
+
})
|
127
|
+
},
|
128
|
+
async binding() {
|
129
|
+
let tableImages = []
|
130
|
+
tableImages.push({
|
131
|
+
path:this.bindingData.f_head_pic
|
132
|
+
})
|
133
|
+
let data = {
|
134
|
+
tableImages: tableImages
|
135
|
+
}
|
136
|
+
HostApp.__this__ = this
|
137
|
+
HostApp.logicWithHint({
|
138
|
+
'logic': 'imagesUploadAndroid', 'callback': 'javascript: HostApp.__this__.commitCallBack()',
|
139
|
+
'data': data, 'backresult': 1
|
140
|
+
})
|
141
|
+
},
|
142
|
+
async commitCallBack(jo) {
|
143
|
+
if (jo.state == 'ok') {
|
144
|
+
const res = JSON.parse(jo.result)
|
145
|
+
let sql = `update t_qr_code set f_head_name = '${this.bindingData.f_head_name}',f_head_post = '${this.bindingData.f_head_post}',f_head_phone = '${this.bindingData.f_head_phone}',f_type = '${this.bindingData.f_type}',f_user_name = '${this.bindingData.f_user_name}',f_userinfo_id = '${this.bindingData.f_userinfo_id}',f_comments = '${this.bindingData.f_comments}',f_head_pic='${res.images[0].imgfileName}' where id = '${this.bindingData.id}'`
|
146
|
+
new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/runSQL`, {data: {sql: sql}}).then(res=>{
|
147
|
+
this.$showMessage('绑定成功')
|
148
|
+
this.$dispatch('confirm')
|
149
|
+
}).catch(e=>{
|
150
|
+
this.$showMessage('绑定失败')
|
151
|
+
})
|
152
|
+
}else {
|
153
|
+
this.$showMessage('图片上传失败')
|
154
|
+
}
|
155
|
+
},
|
156
|
+
},
|
157
|
+
async ready() {
|
158
|
+
this.bindingData = JSON.parse(JSON.stringify(this.row))
|
159
|
+
let residentialArea = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {
|
160
|
+
data: {
|
161
|
+
items: 'f_residential_area,id',
|
162
|
+
tablename: 't_area',
|
163
|
+
condition: `1=1 and f_residential_area is not null`,
|
164
|
+
orderitem: '1'
|
165
|
+
}
|
166
|
+
})
|
167
|
+
residentialArea.data.forEach(item => {
|
168
|
+
this.residentialAreas.push({label: item.f_residential_area, value: `${item.f_residential_area}:${item.id}`});
|
169
|
+
})
|
170
|
+
let users = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {
|
171
|
+
data: {
|
172
|
+
items: 'ui.f_user_name,ui.f_userinfo_id',
|
173
|
+
tablename: 't_userinfo ui LEFT JOIN t_userfiles uf on ui.f_userinfo_id = uf.f_userinfo_id',
|
174
|
+
condition: `1=1 and f_user_name is not null and uf.f_user_type = '非民用' and uf.f_table_state in ('正常','停用')`,
|
175
|
+
orderitem: '1'
|
176
|
+
}
|
177
|
+
})
|
178
|
+
users.data.forEach(item => {
|
179
|
+
this.userNames.push({label: item.f_user_name, value: `${item.f_user_name}:${item.f_userinfo_id}`});
|
180
|
+
})
|
181
|
+
}
|
182
|
+
}
|
183
|
+
</script>
|
184
|
+
<style lang="less" scoped>
|
185
|
+
.butt3 {
|
186
|
+
float: right;
|
187
|
+
width: 12px;
|
188
|
+
margin: 1% 2% 0 0;
|
189
|
+
}
|
190
|
+
|
191
|
+
.rightipt {
|
192
|
+
width: 60%;
|
193
|
+
float: left;
|
194
|
+
margin-left: 5%;
|
195
|
+
}
|
196
|
+
|
197
|
+
.righttxt {
|
198
|
+
border: none;
|
199
|
+
margin-left: 5px;
|
200
|
+
/*border-left: 5px solid #A2C2EB;*/
|
201
|
+
float: left;
|
202
|
+
width: 25%;
|
203
|
+
margin-bottom: 3px;
|
204
|
+
text-align: left;
|
205
|
+
word-wrap: break-word;
|
206
|
+
white-space: normal;
|
207
|
+
}
|
208
|
+
|
209
|
+
.spanboder {
|
210
|
+
border-bottom: 2px solid #499edf;
|
211
|
+
padding-bottom: 8px
|
212
|
+
}
|
213
|
+
|
214
|
+
#upuserinfo_sel /deep/ ul {
|
215
|
+
width: 100% !important;
|
216
|
+
left: 0 !important;
|
217
|
+
}
|
218
|
+
|
219
|
+
.btn-photo {
|
220
|
+
border: 0;
|
221
|
+
border-radius: 7px;
|
222
|
+
background-color: #7dc1f4;
|
223
|
+
font: 15px PingFang-SC-Bold;
|
224
|
+
height: 20%;
|
225
|
+
}
|
226
|
+
|
227
|
+
.panel-self {
|
228
|
+
border-radius: 10px;
|
229
|
+
border: 1px solid #499EDF;
|
230
|
+
background-color: #F8F8F8;
|
231
|
+
}
|
232
|
+
|
233
|
+
.div-photo {
|
234
|
+
width: auto;
|
235
|
+
height: auto;
|
236
|
+
/* margin-top: 10px; */
|
237
|
+
position: absolute;
|
238
|
+
bottom: 10px;
|
239
|
+
right: 10px;
|
240
|
+
}
|
241
|
+
</style>
|
242
|
+
<style lang="less">
|
243
|
+
#upuserinfo_sel ul {
|
244
|
+
width: 100% !important;
|
245
|
+
left: 0 !important;
|
246
|
+
}
|
247
|
+
</style>
|
@@ -0,0 +1,199 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="auto">
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
4
|
+
<criteria partial='criteria' @condition-changed='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" style="width: 70%" placeholder="请输入或扫码" v-model="model.id"/>
|
14
|
+
<button type="button" name="button" class="btn btn-primary" style="width: 25%" @click="$parent.$parent.scan">扫码</button>
|
15
|
+
</div>
|
16
|
+
</div>
|
17
|
+
<div class="row app-row">
|
18
|
+
<div class="col-xs-4">
|
19
|
+
<img src="../../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
|
20
|
+
<label class="font text-left">负责人:</label>
|
21
|
+
</div>
|
22
|
+
<div class="col-xs-8">
|
23
|
+
<v-select :value.sync="model.f_head_name" class="input-font"
|
24
|
+
:options='$parent.$parent.head_names' placeholder='请选择负责人' :value-single="true"
|
25
|
+
v-model="model.f_head_name" close-on-select clear-button></v-select>
|
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_user_name" placeholder="请输入小区名称/用户名称(可模糊查询)">
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
<div class="row text-center" style="margin-top: 20px;">
|
38
|
+
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="$parent.$parent.search">查询</button>
|
39
|
+
</div>
|
40
|
+
<div style="height:30px;"></div>
|
41
|
+
</form>
|
42
|
+
</div>
|
43
|
+
</criteria>
|
44
|
+
|
45
|
+
<list :model="model" partial='list'>
|
46
|
+
<div partial>
|
47
|
+
<div class="auto app-text" style="margin-top: 5px;">
|
48
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
49
|
+
<div class="panel-body panel-self">
|
50
|
+
<div class="row">
|
51
|
+
<p class="panel-title col-xs-4 text-left font">二维码编号</p>
|
52
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.id }}</p>
|
53
|
+
</div>
|
54
|
+
<div class="row">
|
55
|
+
<p class="panel-title col-xs-4 text-left font">负责人二维码编号</p>
|
56
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_head_code }}</p>
|
57
|
+
</div>
|
58
|
+
<div class="row">
|
59
|
+
<p class="panel-title col-xs-4 text-left font">安检情况二维码编号</p>
|
60
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_safecheck_code }}</p>
|
61
|
+
</div>
|
62
|
+
<div class="row">
|
63
|
+
<p class="panel-title col-xs-4 text-left font">负责人姓名</p>
|
64
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_head_name }}</p>
|
65
|
+
</div>
|
66
|
+
<div class="row">
|
67
|
+
<p class="panel-title col-xs-4 text-left font">小区/用户名称</p>
|
68
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_name}}</p>
|
69
|
+
</div>
|
70
|
+
<div class="row">
|
71
|
+
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="$parent.$parent.$parent.handle(row)">处理</button>
|
72
|
+
</div>
|
73
|
+
</div>
|
74
|
+
</div>
|
75
|
+
</div>
|
76
|
+
</div>
|
77
|
+
</list>
|
78
|
+
</criteria-paged>
|
79
|
+
</div>
|
80
|
+
</template>
|
81
|
+
|
82
|
+
<script>
|
83
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
84
|
+
export default {
|
85
|
+
title: '二维码绑定',
|
86
|
+
data () {
|
87
|
+
return {
|
88
|
+
model: new PagedList(`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, 50, {
|
89
|
+
items: '"id,f_head_code,f_safecheck_code,f_head_name,f_user_name,f_head_post,f_head_phone,f_type"',
|
90
|
+
tablename: '"t_qr_code"',
|
91
|
+
orderitem: '"1"'
|
92
|
+
}),
|
93
|
+
QRCode:{},
|
94
|
+
head_names:[{ label: '请选择', value: '' }]
|
95
|
+
}
|
96
|
+
},
|
97
|
+
ready () {
|
98
|
+
new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`,{data: {
|
99
|
+
items: 'f_head_name',
|
100
|
+
tablename: 't_qr_code',
|
101
|
+
condition: `1=1 and f_head_name is not null`,
|
102
|
+
orderitem: '1'
|
103
|
+
}}).then(res=>{
|
104
|
+
res.data.forEach(item=>{
|
105
|
+
this.head_names.push({label:item.f_head_name,value:item.f_head_name})
|
106
|
+
})
|
107
|
+
})
|
108
|
+
},
|
109
|
+
computed: {
|
110
|
+
reload(){
|
111
|
+
this.$refs.paged.loadPage(this.$refs.paged.model.pageIndex)
|
112
|
+
},
|
113
|
+
selected () {
|
114
|
+
return this.$refs.paged.$refs.grid.selected
|
115
|
+
}
|
116
|
+
},
|
117
|
+
methods:{
|
118
|
+
scan(){
|
119
|
+
HostApp.__this__=this,
|
120
|
+
HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
|
121
|
+
},
|
122
|
+
getCode(){
|
123
|
+
let datapa = HostApp.getCode().data;
|
124
|
+
this.this.$refs.paged.$refs.cri.model.id=datapa
|
125
|
+
},
|
126
|
+
handle(row){
|
127
|
+
var pardate = {
|
128
|
+
_this:this,
|
129
|
+
tittle:'二维码绑定',
|
130
|
+
safe:true
|
131
|
+
}
|
132
|
+
this.$dispatch('gotoson',pardate)
|
133
|
+
this.$goto('qr-code-binding', {row: row}, 'self')
|
134
|
+
},
|
135
|
+
search(){
|
136
|
+
let condition = `1=1`
|
137
|
+
if (this.$refs.paged.$refs.cri.model.id) {
|
138
|
+
condition += ` and (qr.f_head_code = '${this.$refs.paged.$refs.cri.model.id}' or qr.f_safecheck_code= '${this.$refs.paged.$refs.cri.model.id}')`
|
139
|
+
}
|
140
|
+
if (this.$refs.paged.$refs.cri.model.f_head_name) {
|
141
|
+
condition += ` and qr.f_head_name = ${this.$refs.paged.$refs.cri.model.f_head_name}`
|
142
|
+
}
|
143
|
+
if (this.$refs.paged.$refs.cri.model.f_user_name) {
|
144
|
+
condition += ` and ui.f_user_name = ${this.$refs.paged.$refs.cri.model.f_user_name}`
|
145
|
+
}
|
146
|
+
if (this.$refs.paged.$refs.cri.model.f_residential_area) {
|
147
|
+
condition += ` and ua.f_residential_area = ${this.$refs.paged.$refs.cri.model.f_residential_area}`
|
148
|
+
}
|
149
|
+
this.model.search(condition)
|
150
|
+
}
|
151
|
+
|
152
|
+
}
|
153
|
+
}
|
154
|
+
</script>
|
155
|
+
<style scoped>
|
156
|
+
.app-row {
|
157
|
+
background-color: white;
|
158
|
+
padding: 10px 10px 0 10px;
|
159
|
+
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
160
|
+
}
|
161
|
+
.search_input {
|
162
|
+
border: 0;
|
163
|
+
outline: none;
|
164
|
+
}
|
165
|
+
.font{
|
166
|
+
font: 15px PingFang-SC-Medium;
|
167
|
+
color: #666666;
|
168
|
+
}
|
169
|
+
.input-font{
|
170
|
+
font: 15px PingFang-SC-Medium;
|
171
|
+
color: #333333;
|
172
|
+
}
|
173
|
+
.btn-font{
|
174
|
+
font:600 16px PingFang-SC-Bold;
|
175
|
+
color: #499EDF;
|
176
|
+
}
|
177
|
+
.btn-color{
|
178
|
+
background-color: #FFFFFF;
|
179
|
+
border-radius: 10px ;
|
180
|
+
border: 1px solid #499EDF;
|
181
|
+
}
|
182
|
+
.app-text {
|
183
|
+
font-size: 12px;
|
184
|
+
}
|
185
|
+
.panel-self{
|
186
|
+
border-radius: 10px;
|
187
|
+
border:1px solid #499EDF;
|
188
|
+
background-color: #F8F8F8;
|
189
|
+
}
|
190
|
+
.yybtn-color{
|
191
|
+
border-radius: 4px ;
|
192
|
+
border: 1px solid #499EDF;
|
193
|
+
}
|
194
|
+
.qxbtn-color{
|
195
|
+
background-color: #FFFFFF;
|
196
|
+
border-radius: 4px ;
|
197
|
+
border: 1px solid #499EDF;
|
198
|
+
}
|
199
|
+
</style>
|