safecheck-client 3.0.34-35 → 3.0.34-39
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.vue +31 -31
- package/src/components/android/QRCode/QRCodePage.vue +208 -208
- package/src/components/android/examples/SafeListExamples.vue +96 -96
- package/src/components/android/examples/UserExamples.vue +126 -126
- package/src/filiale/bayan/android/SafecheckOrderV.vue +49 -26
- package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
- package/src/filiale/huaran/android.js +12 -12
- package/src/filiale/huaran/pc/CheckBook.vue +313 -313
- package/src/filiale/huaran/pc/CheckBookAll.vue +69 -69
- package/src/filiale/huaran/pc/CheckBookArea.vue +170 -170
- package/src/filiale/huaran/pc/CheckBookCompany.vue +166 -166
- package/src/filiale/huaran/pc/CheckBookDetails.vue +196 -196
- package/src/filiale/huaran/pc/CheckBookEntry.vue +61 -61
- package/src/filiale/huaran/pc/CheckBookList.vue +386 -386
- package/src/filiale/huaran/pc/CheckBookSearchArea.vue +564 -564
- package/src/filiale/huaran/pc/CheckBookSearchUnit.vue +229 -229
- package/src/filiale/huaran/pc/CheckBookSearchUser.vue +604 -604
- package/src/filiale/huaran/pc/CheckBookUser.vue +112 -112
- package/src/filiale/huaran/pc/PaperList.vue +822 -822
- package/src/filiale/huaran/pc/PlanManage.vue +887 -887
- package/src/filiale/huaran/pc/checkPlanList.vue +419 -419
- package/src/filiale/huaran/pc/checkUserList.vue +867 -867
- package/src/filiale/huaran/pc.js +27 -27
- 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/weinan/android/SafecheckDevices.vue +1295 -1295
- package/src/filiale/weinan/android/SafecheckOrderV.vue +3335 -3335
- package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
- package/src/filiale/weinan/pc.js +47 -47
- package/src/main.js +33 -33
@@ -1,166 +1,166 @@
|
|
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_residential_area"
|
10
|
-
placeholder='单位名称'
|
11
|
-
condition="f_company_name like '%{}%'" @keyup.enter="search()">
|
12
|
-
</div>
|
13
|
-
<div class="form-group col-sm-2 button-range">
|
14
|
-
<button class="button_search" style="margin-right: 10px" @click="search()" v-el:cba>查询</button>
|
15
|
-
<button class="button_search" style="margin-right: 10px" @click="$parent.$parent.send()" v-el:cba>下发
|
16
|
-
</button>
|
17
|
-
</div>
|
18
|
-
</div>
|
19
|
-
</div>
|
20
|
-
</criteria>
|
21
|
-
<data-grid :model="model" class="table_sy" partial='list' v-ref:grid>
|
22
|
-
<template partial='head'>
|
23
|
-
<tr>
|
24
|
-
<th>
|
25
|
-
<nobr><input type="checkbox" onClick="event.cancelBubble = true"
|
26
|
-
:checked="$parent.$parent.$parent.checkAll" @change="$parent.$parent.$parent.setCheckAll()"/>全选
|
27
|
-
</nobr>
|
28
|
-
</th>
|
29
|
-
<th>
|
30
|
-
<nobr>省市区/县</nobr>
|
31
|
-
</th>
|
32
|
-
<th>
|
33
|
-
<nobr>街道/乡镇</nobr>
|
34
|
-
</th>
|
35
|
-
<th>
|
36
|
-
<nobr>单位名称</nobr>
|
37
|
-
</th>
|
38
|
-
<th>
|
39
|
-
<nobr>用户数量</nobr>
|
40
|
-
</th>
|
41
|
-
<th>
|
42
|
-
<nobr>详细地址</nobr>
|
43
|
-
</th>
|
44
|
-
</tr>
|
45
|
-
</template>
|
46
|
-
<template partial='body'>
|
47
|
-
<tr>
|
48
|
-
<td style="text-align: center;"><input type="checkbox" onClick="event.cancelBubble = true"
|
49
|
-
:checked="$parent.$parent.$parent.isChecked(row.id)"
|
50
|
-
@change="$parent.$parent.$parent.setCheckes(row.id)"/></td>
|
51
|
-
<td style="text-align:center">{{ row.f_rea }}</td>
|
52
|
-
<td style="text-align:center">{{ row.f_company_street }}</td>
|
53
|
-
<td style="text-align:center">{{ row.f_company_name }}</td>
|
54
|
-
<td style="text-align:center">
|
55
|
-
<button @click.stop="$parent.$parent.$parent.details(row)" class="btn btn-link">
|
56
|
-
<b>{{ row.num ? row.num : 0 }}</b></button>
|
57
|
-
</td>
|
58
|
-
<td style="text-align:center">{{ row.f_company_position }}</td>
|
59
|
-
</tr>
|
60
|
-
</template>
|
61
|
-
<template partial='foot'></template>
|
62
|
-
</data-grid>
|
63
|
-
</criteria-paged>
|
64
|
-
<modal :show.sync="showSendModal" :backdrop="false" width="90%" height="90%">
|
65
|
-
<article slot="modal-body" class="modal-body" style="height: 80vh">
|
66
|
-
<check-book-search-user-list v-if="showSendModal" :row="row" :addcondata="addcondata"
|
67
|
-
:bookrowsdata="{bookrows:checkes,checkAll:checkAll}" :needprops="needprops"
|
68
|
-
:userlogin="userlogin"></check-book-search-user-list>
|
69
|
-
</article>
|
70
|
-
<footer slot="modal-footer">
|
71
|
-
</footer>
|
72
|
-
|
73
|
-
</modal>
|
74
|
-
</div>
|
75
|
-
</template>
|
76
|
-
|
77
|
-
<script>
|
78
|
-
import {HttpResetClass, PagedList} from 'vue-client'
|
79
|
-
|
80
|
-
export default {
|
81
|
-
title: '非民用安检册单位',
|
82
|
-
props: ['row', 'needprops'],
|
83
|
-
data() {
|
84
|
-
return {
|
85
|
-
rowdata: this.row,
|
86
|
-
showSendModal: false,
|
87
|
-
checkBookRow: {},
|
88
|
-
userlogin: {
|
89
|
-
id: this.$login.f.id,
|
90
|
-
name: this.$login.f.name,
|
91
|
-
orgid: this.$login.f.orgid,
|
92
|
-
orgstr: this.$login.f.orgs,
|
93
|
-
},
|
94
|
-
model: new PagedList('rs/sql/getCheckBookCompany', 50),
|
95
|
-
checkAll: false,
|
96
|
-
checkes: [],
|
97
|
-
addcondata: '',
|
98
|
-
}
|
99
|
-
},
|
100
|
-
ready() {
|
101
|
-
console.log(this.row)
|
102
|
-
const val = this.row
|
103
|
-
if (val) {
|
104
|
-
this.checkAll = false
|
105
|
-
this.checkes = []
|
106
|
-
this.rowdata = val
|
107
|
-
const condition = `f_check_book_id =${val.id}`
|
108
|
-
this.model.search(condition)
|
109
|
-
}
|
110
|
-
},
|
111
|
-
watch: {
|
112
|
-
'row'(val) {
|
113
|
-
if (val) {
|
114
|
-
this.checkAll = false
|
115
|
-
this.checkes = []
|
116
|
-
this.rowdata = val
|
117
|
-
const condition = `f_check_book_id =${val.id}`
|
118
|
-
this.model.search(condition)
|
119
|
-
}
|
120
|
-
}
|
121
|
-
},
|
122
|
-
methods: {
|
123
|
-
setCheckAll() {
|
124
|
-
this.checkAll = this.checkAll ? false : true;
|
125
|
-
// 全选改变后,清空选中数据
|
126
|
-
this.checkes = []
|
127
|
-
},
|
128
|
-
isChecked(v) {
|
129
|
-
// 如果全选,不在的按选中算,否则,在的按选中算
|
130
|
-
if (this.checkAll) {
|
131
|
-
return this.checkes.indexOf(v) == -1
|
132
|
-
} else {
|
133
|
-
return this.checkes.indexOf(v) != -1
|
134
|
-
}
|
135
|
-
},
|
136
|
-
setCheckes(id) {
|
137
|
-
let index = this.checkes.indexOf(id)
|
138
|
-
if (index < 0) {
|
139
|
-
this.checkes.push(id)
|
140
|
-
} else {
|
141
|
-
this.checkes.splice(index, 1)
|
142
|
-
}
|
143
|
-
},
|
144
|
-
send() {
|
145
|
-
if (!this.checkAll && this.checkes.length == 0) {
|
146
|
-
return this.$showMessage('请选择单位')
|
147
|
-
}
|
148
|
-
this.showSendModal = true
|
149
|
-
},
|
150
|
-
details(row) {
|
151
|
-
this.$emit('showuser', row)
|
152
|
-
},
|
153
|
-
selfSearch(args) {
|
154
|
-
if (this.rowdata.id) {
|
155
|
-
this.checkAll = false
|
156
|
-
this.checkes = []
|
157
|
-
args.condition += `and f_check_book_id =${this.rowdata.id}`
|
158
|
-
this.model.search(args.condition)
|
159
|
-
this.addcondata = args.model.f_residential_area ? ` and tc.f_company_name like '%${args.model.f_residential_area}%'` : ''
|
160
|
-
} else {
|
161
|
-
this.$showMessage('请选择安检册')
|
162
|
-
}
|
163
|
-
}
|
164
|
-
}
|
165
|
-
}
|
166
|
-
</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_residential_area"
|
10
|
+
placeholder='单位名称'
|
11
|
+
condition="f_company_name like '%{}%'" @keyup.enter="search()">
|
12
|
+
</div>
|
13
|
+
<div class="form-group col-sm-2 button-range">
|
14
|
+
<button class="button_search" style="margin-right: 10px" @click="search()" v-el:cba>查询</button>
|
15
|
+
<button class="button_search" style="margin-right: 10px" @click="$parent.$parent.send()" v-el:cba>下发
|
16
|
+
</button>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
</criteria>
|
21
|
+
<data-grid :model="model" class="table_sy" partial='list' v-ref:grid>
|
22
|
+
<template partial='head'>
|
23
|
+
<tr>
|
24
|
+
<th>
|
25
|
+
<nobr><input type="checkbox" onClick="event.cancelBubble = true"
|
26
|
+
:checked="$parent.$parent.$parent.checkAll" @change="$parent.$parent.$parent.setCheckAll()"/>全选
|
27
|
+
</nobr>
|
28
|
+
</th>
|
29
|
+
<th>
|
30
|
+
<nobr>省市区/县</nobr>
|
31
|
+
</th>
|
32
|
+
<th>
|
33
|
+
<nobr>街道/乡镇</nobr>
|
34
|
+
</th>
|
35
|
+
<th>
|
36
|
+
<nobr>单位名称</nobr>
|
37
|
+
</th>
|
38
|
+
<th>
|
39
|
+
<nobr>用户数量</nobr>
|
40
|
+
</th>
|
41
|
+
<th>
|
42
|
+
<nobr>详细地址</nobr>
|
43
|
+
</th>
|
44
|
+
</tr>
|
45
|
+
</template>
|
46
|
+
<template partial='body'>
|
47
|
+
<tr>
|
48
|
+
<td style="text-align: center;"><input type="checkbox" onClick="event.cancelBubble = true"
|
49
|
+
:checked="$parent.$parent.$parent.isChecked(row.id)"
|
50
|
+
@change="$parent.$parent.$parent.setCheckes(row.id)"/></td>
|
51
|
+
<td style="text-align:center">{{ row.f_rea }}</td>
|
52
|
+
<td style="text-align:center">{{ row.f_company_street }}</td>
|
53
|
+
<td style="text-align:center">{{ row.f_company_name }}</td>
|
54
|
+
<td style="text-align:center">
|
55
|
+
<button @click.stop="$parent.$parent.$parent.details(row)" class="btn btn-link">
|
56
|
+
<b>{{ row.num ? row.num : 0 }}</b></button>
|
57
|
+
</td>
|
58
|
+
<td style="text-align:center">{{ row.f_company_position }}</td>
|
59
|
+
</tr>
|
60
|
+
</template>
|
61
|
+
<template partial='foot'></template>
|
62
|
+
</data-grid>
|
63
|
+
</criteria-paged>
|
64
|
+
<modal :show.sync="showSendModal" :backdrop="false" width="90%" height="90%">
|
65
|
+
<article slot="modal-body" class="modal-body" style="height: 80vh">
|
66
|
+
<check-book-search-user-list v-if="showSendModal" :row="row" :addcondata="addcondata"
|
67
|
+
:bookrowsdata="{bookrows:checkes,checkAll:checkAll}" :needprops="needprops"
|
68
|
+
:userlogin="userlogin"></check-book-search-user-list>
|
69
|
+
</article>
|
70
|
+
<footer slot="modal-footer">
|
71
|
+
</footer>
|
72
|
+
|
73
|
+
</modal>
|
74
|
+
</div>
|
75
|
+
</template>
|
76
|
+
|
77
|
+
<script>
|
78
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
79
|
+
|
80
|
+
export default {
|
81
|
+
title: '非民用安检册单位',
|
82
|
+
props: ['row', 'needprops'],
|
83
|
+
data() {
|
84
|
+
return {
|
85
|
+
rowdata: this.row,
|
86
|
+
showSendModal: false,
|
87
|
+
checkBookRow: {},
|
88
|
+
userlogin: {
|
89
|
+
id: this.$login.f.id,
|
90
|
+
name: this.$login.f.name,
|
91
|
+
orgid: this.$login.f.orgid,
|
92
|
+
orgstr: this.$login.f.orgs,
|
93
|
+
},
|
94
|
+
model: new PagedList('rs/sql/getCheckBookCompany', 50),
|
95
|
+
checkAll: false,
|
96
|
+
checkes: [],
|
97
|
+
addcondata: '',
|
98
|
+
}
|
99
|
+
},
|
100
|
+
ready() {
|
101
|
+
console.log(this.row)
|
102
|
+
const val = this.row
|
103
|
+
if (val) {
|
104
|
+
this.checkAll = false
|
105
|
+
this.checkes = []
|
106
|
+
this.rowdata = val
|
107
|
+
const condition = `f_check_book_id =${val.id}`
|
108
|
+
this.model.search(condition)
|
109
|
+
}
|
110
|
+
},
|
111
|
+
watch: {
|
112
|
+
'row'(val) {
|
113
|
+
if (val) {
|
114
|
+
this.checkAll = false
|
115
|
+
this.checkes = []
|
116
|
+
this.rowdata = val
|
117
|
+
const condition = `f_check_book_id =${val.id}`
|
118
|
+
this.model.search(condition)
|
119
|
+
}
|
120
|
+
}
|
121
|
+
},
|
122
|
+
methods: {
|
123
|
+
setCheckAll() {
|
124
|
+
this.checkAll = this.checkAll ? false : true;
|
125
|
+
// 全选改变后,清空选中数据
|
126
|
+
this.checkes = []
|
127
|
+
},
|
128
|
+
isChecked(v) {
|
129
|
+
// 如果全选,不在的按选中算,否则,在的按选中算
|
130
|
+
if (this.checkAll) {
|
131
|
+
return this.checkes.indexOf(v) == -1
|
132
|
+
} else {
|
133
|
+
return this.checkes.indexOf(v) != -1
|
134
|
+
}
|
135
|
+
},
|
136
|
+
setCheckes(id) {
|
137
|
+
let index = this.checkes.indexOf(id)
|
138
|
+
if (index < 0) {
|
139
|
+
this.checkes.push(id)
|
140
|
+
} else {
|
141
|
+
this.checkes.splice(index, 1)
|
142
|
+
}
|
143
|
+
},
|
144
|
+
send() {
|
145
|
+
if (!this.checkAll && this.checkes.length == 0) {
|
146
|
+
return this.$showMessage('请选择单位')
|
147
|
+
}
|
148
|
+
this.showSendModal = true
|
149
|
+
},
|
150
|
+
details(row) {
|
151
|
+
this.$emit('showuser', row)
|
152
|
+
},
|
153
|
+
selfSearch(args) {
|
154
|
+
if (this.rowdata.id) {
|
155
|
+
this.checkAll = false
|
156
|
+
this.checkes = []
|
157
|
+
args.condition += `and f_check_book_id =${this.rowdata.id}`
|
158
|
+
this.model.search(args.condition)
|
159
|
+
this.addcondata = args.model.f_residential_area ? ` and tc.f_company_name like '%${args.model.f_residential_area}%'` : ''
|
160
|
+
} else {
|
161
|
+
this.$showMessage('请选择安检册')
|
162
|
+
}
|
163
|
+
}
|
164
|
+
}
|
165
|
+
}
|
166
|
+
</script>
|