safecheck-client 3.0.32-36 → 3.0.32-37
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/components/android/PhoneUpUserinfo.vue +1230 -1230
- package/src/components/map/checkScreen.vue +880 -880
- package/src/filiale/Util.js +332 -332
- package/src/filiale/ankangyihua/android/AndroidDefectDeal.vue +648 -648
- package/src/filiale/ankangyihua/android/CurrentCreate.vue +1039 -1039
- package/src/filiale/bayan/pc/NewCheckpaper.vue +1958 -1958
- package/src/filiale/dexin/android/SafecheckOrderV.vue +2851 -2851
- package/src/filiale/fugou/pc/DefectPaperNew.vue +1081 -1081
- package/src/filiale/fugou/pc/PlanManage.vue +1007 -1019
- package/src/filiale/kelai/android/SafecheckDevices.vue +1232 -1232
- package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
- package/src/filiale/rongchuang/android/SafecheckDevices.vue +1680 -1680
- package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2942 -2942
- package/src/filiale/shanxian/android/SafecheckOrderV.vue +2979 -2979
- package/src/filiale/tongchuan/pc/CheckPlanCountChartArea.vue +135 -135
- package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +869 -869
- package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +198 -198
- package/src/main.js +33 -33
@@ -1,198 +1,198 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="auto select-overspread">
|
3
|
-
<criteria-paged :model="model" v-ref:paged>
|
4
|
-
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
|
5
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
6
|
-
<div class="row">
|
7
|
-
<div class="form-group col-sm-3" >
|
8
|
-
<label class="font_normal_body">客户编号</label>
|
9
|
-
<input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code" placeholder='客户编号'
|
10
|
-
condition="f_userinfo_code = '{}'" @keyup.enter="search()">
|
11
|
-
</div>
|
12
|
-
<div class="form-group col-sm-2 button-range" >
|
13
|
-
<button class="button_search" style="margin-right: 10px" @click="search()" v-el:cba>查询</button>
|
14
|
-
<button class="button_spacing button_search-1" @click='$parent.$parent.removes()' v-if="$parent.$parent.bookList.length>0" >移出安检册</button>
|
15
|
-
</div>
|
16
|
-
</div>
|
17
|
-
</div>
|
18
|
-
</criteria>
|
19
|
-
<data-grid :model="model" class="table_sy" partial='list' v-ref:grid >
|
20
|
-
<template partial='head' >
|
21
|
-
<tr>
|
22
|
-
<th>
|
23
|
-
<nobr><input type="checkbox" v-model="$parent.$parent.$parent.checkAll"></input>全选</nobr>
|
24
|
-
</th>
|
25
|
-
<th><nobr>序号</nobr></th>
|
26
|
-
<th><nobr>用户编号</nobr></th>
|
27
|
-
<th><nobr>用户姓名</nobr></th>
|
28
|
-
<th><nobr>用户电话</nobr></th>
|
29
|
-
<th><nobr>用户地址</nobr></th>
|
30
|
-
<th><nobr>操作</nobr></th>
|
31
|
-
</tr>
|
32
|
-
</template>
|
33
|
-
<template partial='body' >
|
34
|
-
<tr >
|
35
|
-
<td style="text-align: center">
|
36
|
-
<nobr><input type="checkbox" :checked="$parent.$parent.$parent.checkModel(row)"
|
37
|
-
@change="$parent.$parent.$parent.checkChange(row, $event)"></input>
|
38
|
-
</nobr>
|
39
|
-
</td>
|
40
|
-
<td style="text-align:center;">{{$index+1}}</td>
|
41
|
-
<td style="text-align:center">{{row.f_userinfo_code}}</td>
|
42
|
-
<td style="text-align:center">{{row.f_user_name}}</td>
|
43
|
-
<td style="text-align:center">{{row.f_user_phone}}</td>
|
44
|
-
<td style="text-align:center">{{row.f_address}}</td>
|
45
|
-
<td style="text-align: center">
|
46
|
-
<button class="button_spacing button_search-1" @click='$parent.$parent.$parent.remove(row)'>移出安检册</button>
|
47
|
-
</td>
|
48
|
-
</tr>
|
49
|
-
</template>
|
50
|
-
<template partial='foot'></template>
|
51
|
-
</data-grid>
|
52
|
-
</criteria-paged>
|
53
|
-
</div>
|
54
|
-
</template>
|
55
|
-
|
56
|
-
<script>
|
57
|
-
import {PagedList} from 'vue-client'
|
58
|
-
import bus from "../../../bus";
|
59
|
-
|
60
|
-
export default {
|
61
|
-
title: '安检记录列表',
|
62
|
-
props: ['row'],
|
63
|
-
data () {
|
64
|
-
return {
|
65
|
-
checkAll:false,
|
66
|
-
rowdata: this.row,
|
67
|
-
bookList: [],
|
68
|
-
model: new PagedList('rs/sql/getUserByCheckBook', 50)
|
69
|
-
}
|
70
|
-
},
|
71
|
-
ready(){
|
72
|
-
if(this.row){
|
73
|
-
let condition=''
|
74
|
-
if(this.row.id){
|
75
|
-
|
76
|
-
condition = `tua.f_check_book_id ='${this.row.id}'`
|
77
|
-
}else{
|
78
|
-
condition = `1=1`
|
79
|
-
}
|
80
|
-
|
81
|
-
// if(this.row.f_check_book_type1=='小区'){
|
82
|
-
// this.model.url = 'rs/sql/getUserByCheckBook'
|
83
|
-
// condition = `ta.f_check_book_id =${this.row.f_check_book_id} and ta.id=${this.row.id}`
|
84
|
-
// }else{
|
85
|
-
// this.model.url = 'rs/sql/getUserByCheckBookCompany'
|
86
|
-
// condition = `tc.f_check_book_id =${this.row.f_check_book_id} and tc.id=${this.row.id}`
|
87
|
-
// }
|
88
|
-
this.model.search(condition)
|
89
|
-
//只显示用户页面
|
90
|
-
this.row.f_check_book_type='用户'
|
91
|
-
}
|
92
|
-
},
|
93
|
-
watch: {
|
94
|
-
'checkAll'(val){
|
95
|
-
if(!val){
|
96
|
-
this.bookList=[]
|
97
|
-
}
|
98
|
-
//如果是全选,则查询这个安检册下的用户
|
99
|
-
|
100
|
-
if(val){
|
101
|
-
//遍历this.model.rows
|
102
|
-
this.model.rows.forEach(res=>{
|
103
|
-
this.bookList.push(res.f_userinfo_id)
|
104
|
-
})
|
105
|
-
}
|
106
|
-
},
|
107
|
-
'row' (val) {
|
108
|
-
if (val) {
|
109
|
-
this.rowdata = val
|
110
|
-
let condition=''
|
111
|
-
condition = `tua.f_check_book_id ='${val.id}'`
|
112
|
-
// if(this.row.f_check_book_type1=='小区'){
|
113
|
-
// condition = `ta.f_check_book_id =${val.f_check_book_id} and ta.id=${val.id}`
|
114
|
-
// }else{
|
115
|
-
// condition = `tc.f_check_book_id =${val.f_check_book_id} and tc.id=${val.id}`
|
116
|
-
// }
|
117
|
-
this.model.search(condition)
|
118
|
-
}
|
119
|
-
}
|
120
|
-
},
|
121
|
-
methods: {
|
122
|
-
setCheckAll() {
|
123
|
-
this.checkAll=this.checkAll?false:true;
|
124
|
-
// 全选改变后,清空选中数据
|
125
|
-
this.bookList = []
|
126
|
-
},
|
127
|
-
checkModel (row) {
|
128
|
-
if (this.bookList.findIndex(res => res === row.f_userinfo_id) !== -1) {
|
129
|
-
return true
|
130
|
-
} else {
|
131
|
-
return false
|
132
|
-
}
|
133
|
-
},
|
134
|
-
checkChange (row, e) {
|
135
|
-
if (e.target.checked) {
|
136
|
-
this.bookList.push(row.f_userinfo_id)
|
137
|
-
} else {
|
138
|
-
this.bookList.splice(this.bookList.findIndex(res => res === row.f_userinfo_id), 1)
|
139
|
-
}
|
140
|
-
},
|
141
|
-
removes(){
|
142
|
-
|
143
|
-
if(this.bookList.length===0){
|
144
|
-
this.$showMessage('请选择用户')
|
145
|
-
return
|
146
|
-
}
|
147
|
-
this.$showMessage("确认将用户移出此安检册?",['confirm']).then(res=>{
|
148
|
-
if(res==='confirm'){
|
149
|
-
//for遍历this.bookList,将每个用户移出安检册
|
150
|
-
var c="("
|
151
|
-
for(var i=0;i<this.bookList.length;i++){
|
152
|
-
c+=`'${this.bookList[i]}'`+","
|
153
|
-
}
|
154
|
-
//去掉最后一个逗号
|
155
|
-
c=c.substring(0,c.length-1)
|
156
|
-
c+=")"
|
157
|
-
let data = {
|
158
|
-
condition: c,
|
159
|
-
f_book_id: this.row.id
|
160
|
-
}
|
161
|
-
this.$http.post('rs/logic/removesCheckBookUser', {data: data}).then(res=>{
|
162
|
-
this.$showMessage('移出成功')
|
163
|
-
this.$refs.paged.$refs.criteria.search()
|
164
|
-
})
|
165
|
-
}
|
166
|
-
})
|
167
|
-
},
|
168
|
-
remove(row){
|
169
|
-
|
170
|
-
this.$showMessage("确认移出此安检册?",['confirm']).then(res=>{
|
171
|
-
if(res==='confirm'){
|
172
|
-
let data = {
|
173
|
-
f_userinfo_id: row.f_userinfo_id,
|
174
|
-
f_book_id: this.row.id
|
175
|
-
}
|
176
|
-
this.$http.post('rs/logic/removeUserByCheckBook', {data: data}).then(res=>{
|
177
|
-
this.$showMessage('移出成功')
|
178
|
-
this.$refs.paged.$refs.criteria.search()
|
179
|
-
})
|
180
|
-
}
|
181
|
-
})
|
182
|
-
},
|
183
|
-
selfSearch (args) {
|
184
|
-
if (this.rowdata.id) {
|
185
|
-
args.condition +=` and tua.f_check_book_id ='${this.rowdata.id}'`
|
186
|
-
// if(this.rowdata.f_check_book_type1=='小区'){
|
187
|
-
// args.condition += `and ta.f_check_book_id =${this.rowdata.f_check_book_id} and ta.id=${this.rowdata.id}`
|
188
|
-
// }else{
|
189
|
-
// args.condition += `and tc.f_check_book_id =${this.rowdata.f_check_book_id} and tc.id=${this.rowdata.id}`
|
190
|
-
// }
|
191
|
-
this.model.search(args.condition)
|
192
|
-
} else {
|
193
|
-
this.$showMessage('请选择片区')
|
194
|
-
}
|
195
|
-
}
|
196
|
-
}
|
197
|
-
}
|
198
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<div class="auto select-overspread">
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
6
|
+
<div class="row">
|
7
|
+
<div class="form-group col-sm-3" >
|
8
|
+
<label class="font_normal_body">客户编号</label>
|
9
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code" placeholder='客户编号'
|
10
|
+
condition="f_userinfo_code = '{}'" @keyup.enter="search()">
|
11
|
+
</div>
|
12
|
+
<div class="form-group col-sm-2 button-range" >
|
13
|
+
<button class="button_search" style="margin-right: 10px" @click="search()" v-el:cba>查询</button>
|
14
|
+
<button class="button_spacing button_search-1" @click='$parent.$parent.removes()' v-if="$parent.$parent.bookList.length>0" >移出安检册</button>
|
15
|
+
</div>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
</criteria>
|
19
|
+
<data-grid :model="model" class="table_sy" partial='list' v-ref:grid >
|
20
|
+
<template partial='head' >
|
21
|
+
<tr>
|
22
|
+
<th>
|
23
|
+
<nobr><input type="checkbox" v-model="$parent.$parent.$parent.checkAll"></input>全选</nobr>
|
24
|
+
</th>
|
25
|
+
<th><nobr>序号</nobr></th>
|
26
|
+
<th><nobr>用户编号</nobr></th>
|
27
|
+
<th><nobr>用户姓名</nobr></th>
|
28
|
+
<th><nobr>用户电话</nobr></th>
|
29
|
+
<th><nobr>用户地址</nobr></th>
|
30
|
+
<th><nobr>操作</nobr></th>
|
31
|
+
</tr>
|
32
|
+
</template>
|
33
|
+
<template partial='body' >
|
34
|
+
<tr >
|
35
|
+
<td style="text-align: center">
|
36
|
+
<nobr><input type="checkbox" :checked="$parent.$parent.$parent.checkModel(row)"
|
37
|
+
@change="$parent.$parent.$parent.checkChange(row, $event)"></input>
|
38
|
+
</nobr>
|
39
|
+
</td>
|
40
|
+
<td style="text-align:center;">{{$index+1}}</td>
|
41
|
+
<td style="text-align:center">{{row.f_userinfo_code}}</td>
|
42
|
+
<td style="text-align:center">{{row.f_user_name}}</td>
|
43
|
+
<td style="text-align:center">{{row.f_user_phone}}</td>
|
44
|
+
<td style="text-align:center">{{row.f_address}}</td>
|
45
|
+
<td style="text-align: center">
|
46
|
+
<button class="button_spacing button_search-1" @click='$parent.$parent.$parent.remove(row)'>移出安检册</button>
|
47
|
+
</td>
|
48
|
+
</tr>
|
49
|
+
</template>
|
50
|
+
<template partial='foot'></template>
|
51
|
+
</data-grid>
|
52
|
+
</criteria-paged>
|
53
|
+
</div>
|
54
|
+
</template>
|
55
|
+
|
56
|
+
<script>
|
57
|
+
import {PagedList} from 'vue-client'
|
58
|
+
import bus from "../../../bus";
|
59
|
+
|
60
|
+
export default {
|
61
|
+
title: '安检记录列表',
|
62
|
+
props: ['row'],
|
63
|
+
data () {
|
64
|
+
return {
|
65
|
+
checkAll:false,
|
66
|
+
rowdata: this.row,
|
67
|
+
bookList: [],
|
68
|
+
model: new PagedList('rs/sql/getUserByCheckBook', 50)
|
69
|
+
}
|
70
|
+
},
|
71
|
+
ready(){
|
72
|
+
if(this.row){
|
73
|
+
let condition=''
|
74
|
+
if(this.row.id){
|
75
|
+
|
76
|
+
condition = `tua.f_check_book_id ='${this.row.id}'`
|
77
|
+
}else{
|
78
|
+
condition = `1=1`
|
79
|
+
}
|
80
|
+
|
81
|
+
// if(this.row.f_check_book_type1=='小区'){
|
82
|
+
// this.model.url = 'rs/sql/getUserByCheckBook'
|
83
|
+
// condition = `ta.f_check_book_id =${this.row.f_check_book_id} and ta.id=${this.row.id}`
|
84
|
+
// }else{
|
85
|
+
// this.model.url = 'rs/sql/getUserByCheckBookCompany'
|
86
|
+
// condition = `tc.f_check_book_id =${this.row.f_check_book_id} and tc.id=${this.row.id}`
|
87
|
+
// }
|
88
|
+
this.model.search(condition)
|
89
|
+
//只显示用户页面
|
90
|
+
this.row.f_check_book_type='用户'
|
91
|
+
}
|
92
|
+
},
|
93
|
+
watch: {
|
94
|
+
'checkAll'(val){
|
95
|
+
if(!val){
|
96
|
+
this.bookList=[]
|
97
|
+
}
|
98
|
+
//如果是全选,则查询这个安检册下的用户
|
99
|
+
|
100
|
+
if(val){
|
101
|
+
//遍历this.model.rows
|
102
|
+
this.model.rows.forEach(res=>{
|
103
|
+
this.bookList.push(res.f_userinfo_id)
|
104
|
+
})
|
105
|
+
}
|
106
|
+
},
|
107
|
+
'row' (val) {
|
108
|
+
if (val) {
|
109
|
+
this.rowdata = val
|
110
|
+
let condition=''
|
111
|
+
condition = `tua.f_check_book_id ='${val.id}'`
|
112
|
+
// if(this.row.f_check_book_type1=='小区'){
|
113
|
+
// condition = `ta.f_check_book_id =${val.f_check_book_id} and ta.id=${val.id}`
|
114
|
+
// }else{
|
115
|
+
// condition = `tc.f_check_book_id =${val.f_check_book_id} and tc.id=${val.id}`
|
116
|
+
// }
|
117
|
+
this.model.search(condition)
|
118
|
+
}
|
119
|
+
}
|
120
|
+
},
|
121
|
+
methods: {
|
122
|
+
setCheckAll() {
|
123
|
+
this.checkAll=this.checkAll?false:true;
|
124
|
+
// 全选改变后,清空选中数据
|
125
|
+
this.bookList = []
|
126
|
+
},
|
127
|
+
checkModel (row) {
|
128
|
+
if (this.bookList.findIndex(res => res === row.f_userinfo_id) !== -1) {
|
129
|
+
return true
|
130
|
+
} else {
|
131
|
+
return false
|
132
|
+
}
|
133
|
+
},
|
134
|
+
checkChange (row, e) {
|
135
|
+
if (e.target.checked) {
|
136
|
+
this.bookList.push(row.f_userinfo_id)
|
137
|
+
} else {
|
138
|
+
this.bookList.splice(this.bookList.findIndex(res => res === row.f_userinfo_id), 1)
|
139
|
+
}
|
140
|
+
},
|
141
|
+
removes(){
|
142
|
+
|
143
|
+
if(this.bookList.length===0){
|
144
|
+
this.$showMessage('请选择用户')
|
145
|
+
return
|
146
|
+
}
|
147
|
+
this.$showMessage("确认将用户移出此安检册?",['confirm']).then(res=>{
|
148
|
+
if(res==='confirm'){
|
149
|
+
//for遍历this.bookList,将每个用户移出安检册
|
150
|
+
var c="("
|
151
|
+
for(var i=0;i<this.bookList.length;i++){
|
152
|
+
c+=`'${this.bookList[i]}'`+","
|
153
|
+
}
|
154
|
+
//去掉最后一个逗号
|
155
|
+
c=c.substring(0,c.length-1)
|
156
|
+
c+=")"
|
157
|
+
let data = {
|
158
|
+
condition: c,
|
159
|
+
f_book_id: this.row.id
|
160
|
+
}
|
161
|
+
this.$http.post('rs/logic/removesCheckBookUser', {data: data}).then(res=>{
|
162
|
+
this.$showMessage('移出成功')
|
163
|
+
this.$refs.paged.$refs.criteria.search()
|
164
|
+
})
|
165
|
+
}
|
166
|
+
})
|
167
|
+
},
|
168
|
+
remove(row){
|
169
|
+
|
170
|
+
this.$showMessage("确认移出此安检册?",['confirm']).then(res=>{
|
171
|
+
if(res==='confirm'){
|
172
|
+
let data = {
|
173
|
+
f_userinfo_id: row.f_userinfo_id,
|
174
|
+
f_book_id: this.row.id
|
175
|
+
}
|
176
|
+
this.$http.post('rs/logic/removeUserByCheckBook', {data: data}).then(res=>{
|
177
|
+
this.$showMessage('移出成功')
|
178
|
+
this.$refs.paged.$refs.criteria.search()
|
179
|
+
})
|
180
|
+
}
|
181
|
+
})
|
182
|
+
},
|
183
|
+
selfSearch (args) {
|
184
|
+
if (this.rowdata.id) {
|
185
|
+
args.condition +=` and tua.f_check_book_id ='${this.rowdata.id}'`
|
186
|
+
// if(this.rowdata.f_check_book_type1=='小区'){
|
187
|
+
// args.condition += `and ta.f_check_book_id =${this.rowdata.f_check_book_id} and ta.id=${this.rowdata.id}`
|
188
|
+
// }else{
|
189
|
+
// args.condition += `and tc.f_check_book_id =${this.rowdata.f_check_book_id} and tc.id=${this.rowdata.id}`
|
190
|
+
// }
|
191
|
+
this.model.search(args.condition)
|
192
|
+
} else {
|
193
|
+
this.$showMessage('请选择片区')
|
194
|
+
}
|
195
|
+
}
|
196
|
+
}
|
197
|
+
}
|
198
|
+
</script>
|
package/src/main.js
CHANGED
@@ -1,33 +1,33 @@
|
|
1
|
-
import Vue from 'vue'
|
2
|
-
import App from './App'
|
3
|
-
import { all } from 'vue-client'
|
4
|
-
import { system } from 'system-clients'
|
5
|
-
import safecheck from './safecheck'
|
6
|
-
import echarts from 'echarts'
|
7
|
-
// import safecheck from './rongcheng'
|
8
|
-
|
9
|
-
all()
|
10
|
-
// 验证码开关赋值
|
11
|
-
var Verificationfalg = false
|
12
|
-
system(Verificationfalg)
|
13
|
-
// system()
|
14
|
-
safecheck(process.env.SAFE_CHECK);
|
15
|
-
|
16
|
-
require('./bootstrap/less/bootstrap.less')
|
17
|
-
require('./expandcss.less')
|
18
|
-
|
19
|
-
Vue.prototype.$echarts = echarts
|
20
|
-
Vue.android = false
|
21
|
-
|
22
|
-
Vue.url = '/SafeCheck/rs/'
|
23
|
-
if(Vue.android)
|
24
|
-
Vue.url = Vue.staticUrl
|
25
|
-
Vue.interval = 1*60*1000
|
26
|
-
Vue.nopic = 'file:///android_asset/nopic.png'
|
27
|
-
Vue.mapSetup = false
|
28
|
-
|
29
|
-
/* eslint-disable no-new */
|
30
|
-
new Vue({
|
31
|
-
el: 'body',
|
32
|
-
components: { App }
|
33
|
-
})
|
1
|
+
import Vue from 'vue'
|
2
|
+
import App from './App'
|
3
|
+
import { all } from 'vue-client'
|
4
|
+
import { system } from 'system-clients'
|
5
|
+
import safecheck from './safecheck'
|
6
|
+
import echarts from 'echarts'
|
7
|
+
// import safecheck from './rongcheng'
|
8
|
+
|
9
|
+
all()
|
10
|
+
// 验证码开关赋值
|
11
|
+
var Verificationfalg = false
|
12
|
+
system(Verificationfalg)
|
13
|
+
// system()
|
14
|
+
//safecheck(process.env.SAFE_CHECK);
|
15
|
+
safecheck('fugou')
|
16
|
+
require('./bootstrap/less/bootstrap.less')
|
17
|
+
require('./expandcss.less')
|
18
|
+
|
19
|
+
Vue.prototype.$echarts = echarts
|
20
|
+
Vue.android = false
|
21
|
+
|
22
|
+
Vue.url = '/SafeCheck/rs/'
|
23
|
+
if(Vue.android)
|
24
|
+
Vue.url = Vue.staticUrl
|
25
|
+
Vue.interval = 1*60*1000
|
26
|
+
Vue.nopic = 'file:///android_asset/nopic.png'
|
27
|
+
Vue.mapSetup = false
|
28
|
+
|
29
|
+
/* eslint-disable no-new */
|
30
|
+
new Vue({
|
31
|
+
el: 'body',
|
32
|
+
components: { App }
|
33
|
+
})
|