safecheck-client 3.0.32 → 3.0.33-2
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 +133 -133
- package/src/App.vue +31 -31
- package/src/assets//345/215/225/345/205/203/345/217/267.png +0 -0
- package/src/assets//345/234/260/345/235/200.png +0 -0
- package/src/assets//345/247/223/345/220/215.png +0 -0
- package/src/assets//345/260/217/345/214/272.png +0 -0
- package/src/assets//345/260/217/345/214/272/350/223/235/350/211/262.png +0 -0
- package/src/assets//345/272/225/346/225/260.png +0 -0
- package/src/assets//346/210/267/347/274/226/345/217/267.png +0 -0
- package/src/assets//346/245/274/345/217/267.png +0 -0
- package/src/assets//346/245/274/345/261/202.png +0 -0
- package/src/assets//350/241/250/347/261/273/345/236/213.png +0 -0
- package/src/assets//351/227/250/347/211/214/345/217/267.png +0 -0
- package/src/components/android/AndroidDefectDeal.vue +5 -5
- package/src/components/android/PhoneUpUserinfo.vue +6 -0
- package/src/components/android/SafecheckOrderV.vue +4 -1
- package/src/components/map/checkScreen.vue +1 -1
- package/src/components/planmanage/checkPlanList.vue +3 -3
- package/src/components/rongcheng/AspiratedDevices.vue +34 -1
- package/src/components/rongcheng/DefectPaper.vue +4 -1
- package/src/components/rongcheng/SafecheckDevices.vue +34 -1
- package/src/components/rongcheng/SafecheckOrderV.vue +1 -0
- package/src/components/rongcheng/SafecheckUserInfo.vue +17 -0
- package/src/filiale/Util.js +7 -0
- package/src/filiale/ankangyihua/android/AndroidDefectDeal.vue +1 -1
- package/src/filiale/ankangyihua/android/CurrentCreate.vue +1 -1
- package/src/filiale/bayan/pc/NewCheckpaper.vue +1 -1
- package/src/filiale/dexin/android/CasualSave.vue +1050 -0
- package/src/filiale/dexin/android/SafecheckDevices.vue +4 -4
- package/src/filiale/dexin/android/SafecheckOrderV.vue +2407 -2355
- package/src/filiale/dexin/android/WebMeterOpen.vue +377 -0
- package/src/filiale/dexin/android/WebMeterOpenEdit.vue +225 -0
- package/src/filiale/dexin/android.js +4 -1
- package/src/filiale/fugou/pc/AddToCheckBook.vue +160 -0
- package/src/filiale/fugou/pc/CheckBook.vue +301 -0
- package/src/filiale/fugou/pc/CheckBookAll.vue +67 -0
- package/src/filiale/fugou/pc/CheckBookArea.vue +146 -0
- package/src/filiale/fugou/pc/CheckBookCompany.vue +144 -0
- package/src/filiale/fugou/pc/CheckBookDetails.vue +161 -0
- package/src/filiale/fugou/pc/CheckBookEntry.vue +66 -0
- package/src/filiale/fugou/pc/CheckBookList.vue +366 -0
- package/src/filiale/fugou/pc/CheckBookSearchArea.vue +560 -0
- package/src/filiale/fugou/pc/CheckBookSearchUnit.vue +229 -0
- package/src/filiale/fugou/pc/CheckBookSearchUser.vue +651 -0
- package/src/filiale/fugou/pc/CheckBookSearchUserList.vue +674 -0
- package/src/filiale/fugou/pc/CheckBookUser.vue +101 -0
- package/src/filiale/fugou/pc/DefectPaperNew.vue +1 -1
- package/src/filiale/fugou/pc/PaperDefectMain.vue +22 -1
- package/src/filiale/fugou/pc/PlanManage.vue +1007 -0
- package/src/filiale/fugou/pc/checkPlanList.vue +371 -0
- package/src/filiale/fugou/pc/checkUserList.vue +20 -120
- package/src/filiale/fugou/pc.js +60 -5
- package/src/filiale/jingyang/android/AddPlanItem.vue +246 -246
- package/src/filiale/jingyang/android/CurrentCreate.vue +18 -18
- package/src/filiale/jingyang/android/SafecheckOrderV.vue +2281 -2281
- package/src/filiale/jingyang/android/SafecheckUserInfo.vue +1 -0
- package/src/filiale/jingyang/android.js +4 -0
- package/src/filiale/kelai/android/SafecheckDevices.vue +1 -1
- package/src/filiale/qianneng/pc/NewCheckpaper.vue +1 -1
- package/src/filiale/qingjian/android/SafecheckOrderV.vue +1 -0
- package/src/filiale/qingjian/android/SafecheckUserInfo.vue +4 -0
- package/src/filiale/rongchuang/android/SafecheckDevices.vue +1680 -0
- package/src/filiale/rongchuang/android/SafecheckOrderV.vue +975 -488
- package/src/filiale/rongchuang/pc/NewCheckpaper.vue +111 -48
- package/src/filiale/shanxian/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/shexian/pc/PaperList.vue +822 -0
- package/src/filiale/shexian/pc.js +1 -0
- package/src/filiale/tongchuan/pc/CheckPlanCountChartArea.vue +1 -1
- package/src/filiale/wensu/android/CurrentCreate.vue +1 -1
- package/src/filiale/wensu/pc/CheckSearchUser.vue +58 -53
- package/src/filiale/wensu/pc/DefectPaperNew.vue +15 -9
- package/src/filiale/wensu/pc/PlanManage.vue +831 -0
- package/src/filiale/wensu/pc/PrintMaterialBill.vue +28 -11
- package/src/filiale/wensu/pc/RoleSelector.vue +2 -2
- package/src/filiale/wensu/pc/SelectCheckPlan.vue +208 -168
- package/src/filiale/wensu/pc/checkUserList.vue +5 -1
- package/src/filiale/wensu/pc.js +20 -19
- package/src/filiale/yangchunboneng/android/CurrentCreate.vue +6 -2
- package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +3 -3
- package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +3 -3
- package/src/filiale/yongzhou/pc/safeStatistics.vue +1 -0
- package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +1 -0
- package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +3 -0
- package/src/filiale/zhongyi/pc/DefectListNew.vue +6 -6
- package/src/main.js +33 -33
- package/static/stretch_bottom.png +0 -0
- package/static/stretch_top.png +0 -0
@@ -0,0 +1,229 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="flex-row">
|
3
|
+
<div class="basic-main">
|
4
|
+
<criteria-paged :model="model" v-ref:paged>
|
5
|
+
<criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
|
6
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
7
|
+
<div class="row">
|
8
|
+
|
9
|
+
<div class="col-sm-3 form-group" style="margin-bottom: 0px">
|
10
|
+
<label class="font_normal_body">公  司</label>
|
11
|
+
<right-tree-safe @re-res="$parent.$parent.getResm" v-model="model.f_orgid" condition="tc.f_orgid in {}"></right-tree-safe>
|
12
|
+
</div>
|
13
|
+
<div class="form-group col-sm-3">
|
14
|
+
<label class="font_normal_body">单位名称</label>
|
15
|
+
<input type="text" class="input_search" v-model="model.f_company_name"
|
16
|
+
style="width: 60%" placeholder="单位名称" condition="f_company_name like '%{}%'">
|
17
|
+
</div>
|
18
|
+
<div class="form-group col-sm-3">
|
19
|
+
<label class="font_normal_body">是否在册</label>
|
20
|
+
<v-select :value.sync="model.f_is_checkbook" v-model='model.f_is_checkbook'
|
21
|
+
:value-single="true" style="width: 60%"
|
22
|
+
class="select_list select"
|
23
|
+
@change="$parent.$parent.changeState"
|
24
|
+
:options='$parent.$parent.isCheckBook' placeholder='有无所属片区'
|
25
|
+
close-on-select
|
26
|
+
condition="{}"></v-select>
|
27
|
+
</div>
|
28
|
+
<div class="form-group col-sm-3">
|
29
|
+
<button class="button_spacing button_search" @click="search()">查询</button>
|
30
|
+
<!-- <div style="float: right" class="button_spacing"
|
31
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
32
|
+
@click="$parent.$parent.hidden()"></div> -->
|
33
|
+
</div>
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
</criteria>
|
41
|
+
<data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
|
42
|
+
<template partial='head'>
|
43
|
+
<tr @dblclick.stop="">
|
44
|
+
<th>
|
45
|
+
<nobr><input type="checkbox" v-model="$parent.$parent.$parent.bookAll"></input>全选</nobr>
|
46
|
+
</th>
|
47
|
+
<th>
|
48
|
+
<nobr>区</nobr>
|
49
|
+
</th>
|
50
|
+
<th>
|
51
|
+
<nobr>街道</nobr>
|
52
|
+
</th>
|
53
|
+
<th>
|
54
|
+
<nobr>单位名称</nobr>
|
55
|
+
</th>
|
56
|
+
<th>
|
57
|
+
<nobr>单位地址</nobr>
|
58
|
+
</th>
|
59
|
+
<th>
|
60
|
+
<nobr>所属片区</nobr>
|
61
|
+
</th>
|
62
|
+
</tr>
|
63
|
+
</template>
|
64
|
+
<template partial='body'>
|
65
|
+
<td style="text-align: center">
|
66
|
+
<nobr><input type="checkbox" :checked="$parent.$parent.$parent.checkModel(row)"
|
67
|
+
@change="$parent.$parent.$parent.checkChange(row, $event)"></input>
|
68
|
+
</nobr>
|
69
|
+
</td>
|
70
|
+
<td style="text-align: center">{{ row.f_rea }}</td>
|
71
|
+
<td style="text-align: center">{{ row.f_company_street }}</td>
|
72
|
+
<td style="text-align: center">{{ row.f_company_name }}</td>
|
73
|
+
<td style="text-align: center">{{ row.f_company_position }}</td>
|
74
|
+
<td style="text-align: center">{{ row.f_check_book_name }}</td>
|
75
|
+
</template>
|
76
|
+
</data-grid>
|
77
|
+
</criteria-paged>
|
78
|
+
</div>
|
79
|
+
</div>
|
80
|
+
</template>
|
81
|
+
|
82
|
+
<script>
|
83
|
+
import {PagedList, HttpResetClass} from 'vue-client'
|
84
|
+
import * as Util from '../../../components/Util'
|
85
|
+
import bus from "../../../bus";
|
86
|
+
|
87
|
+
export default {
|
88
|
+
title: '片区管理',
|
89
|
+
data () {
|
90
|
+
let model = new PagedList('rs/sql/safe_singleTable_OrderBy', 20,{
|
91
|
+
items: "'tc.*,tcb.f_check_book_name'",
|
92
|
+
tablename: "'t_company tc left join t_check_book tcb on tc.f_check_book_id=tcb.id'",
|
93
|
+
orderitem: "'id desc'"
|
94
|
+
})
|
95
|
+
return {
|
96
|
+
model: model,
|
97
|
+
criteriaShow: false,
|
98
|
+
excelHeaders: {},
|
99
|
+
checkBooks: [],
|
100
|
+
f_orgid: '',
|
101
|
+
bookAll: false,
|
102
|
+
bookList: [],
|
103
|
+
selectBook:'',
|
104
|
+
// init:false,
|
105
|
+
isCheckBook: [{label: '全部', value: ''}, {label: '是', value: 'f_check_book_id is not null'}, {label: '否', value: 'f_check_book_id is null'}],
|
106
|
+
isSearch: false,
|
107
|
+
checkBook: {
|
108
|
+
f_check_book_name: '',
|
109
|
+
f_run_date: '',
|
110
|
+
f_around_time: '',
|
111
|
+
f_around_unit: '',
|
112
|
+
f_create_date: Util.toStandardDateString(),
|
113
|
+
f_create_person: this.$login.f.name,
|
114
|
+
f_orgid: '',
|
115
|
+
f_checker_name: ''
|
116
|
+
}
|
117
|
+
}
|
118
|
+
},
|
119
|
+
beforeDestroy() {
|
120
|
+
//tag
|
121
|
+
bus.$off('fresh-area')
|
122
|
+
},
|
123
|
+
computed: {
|
124
|
+
searchData () {
|
125
|
+
return {condition: this.model.condition}
|
126
|
+
},
|
127
|
+
bookCondition () {
|
128
|
+
return this.model.condition
|
129
|
+
},
|
130
|
+
isCreateBook () {
|
131
|
+
return this.$refs.paged.$refs.criteria.model.f_is_checkbook === 'f_check_book_name is null'
|
132
|
+
},
|
133
|
+
isChangeBook () {
|
134
|
+
return this.$refs.paged.$refs.criteria.model.f_is_checkbook === 'f_check_book_name is not null'
|
135
|
+
}
|
136
|
+
},
|
137
|
+
watch:{
|
138
|
+
'bookList'(){
|
139
|
+
this.$emit('book-list',this.bookList)
|
140
|
+
},
|
141
|
+
'bookAll'(val){
|
142
|
+
if(!val){
|
143
|
+
this.bookList=[]
|
144
|
+
}
|
145
|
+
this.$emit('book-all',this.bookAll)
|
146
|
+
}
|
147
|
+
},
|
148
|
+
methods: {
|
149
|
+
changeState (val) {
|
150
|
+
//tag
|
151
|
+
//tag
|
152
|
+
this.bookAll = false
|
153
|
+
this.bookList = []
|
154
|
+
if (this.$refs.paged.$refs.criteria.model.f_orgid){
|
155
|
+
this.$refs.paged.$refs.criteria.search()
|
156
|
+
}
|
157
|
+
},
|
158
|
+
checkModel (row) {
|
159
|
+
if (this.bookAll) {
|
160
|
+
//tag)
|
161
|
+
return true
|
162
|
+
} else {
|
163
|
+
if (this.bookList.findIndex(res => res === row.id) !== -1) {
|
164
|
+
return true
|
165
|
+
} else {
|
166
|
+
return false
|
167
|
+
}
|
168
|
+
}
|
169
|
+
},
|
170
|
+
checkChange (row, e) {
|
171
|
+
//tag
|
172
|
+
if (e.target.checked) {
|
173
|
+
this.bookList.push(row.id)
|
174
|
+
} else {
|
175
|
+
this.bookList.splice(this.bookList.findIndex(res => res === row.id), 1)
|
176
|
+
}
|
177
|
+
},
|
178
|
+
getResm (obj) {
|
179
|
+
this.$refs.paged.$refs.criteria.model.f_orgid = this.$login.convertToIn(obj.resids)
|
180
|
+
},
|
181
|
+
hidden () {
|
182
|
+
this.criteriaShow = !this.criteriaShow
|
183
|
+
},
|
184
|
+
selfSearch (args) {
|
185
|
+
this.isSearch = true
|
186
|
+
this.bookAll = false
|
187
|
+
this.bookList = []
|
188
|
+
this.$emit('book-condition',args.condition)
|
189
|
+
this.model.search(args.condition, args.model)
|
190
|
+
},
|
191
|
+
// freshCheckBook () {
|
192
|
+
// this.checkBooks = []
|
193
|
+
// new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_OrderBy`, {
|
194
|
+
// data: {
|
195
|
+
// items: 'id,f_check_book_name',
|
196
|
+
// tablename: 't_check_book',
|
197
|
+
// condition: this.$refs.paged.$refs.criteria.model.f_orgid?`f_orgid in ${this.$refs.paged.$refs.criteria.model.f_orgid}`:'1=1',
|
198
|
+
// orderitem: 'id desc'
|
199
|
+
// }
|
200
|
+
// }, {resolveMsg: null, rejectMsg: null}).then(res => {
|
201
|
+
// this.checkBooks.push({label: '全部', value: ''})
|
202
|
+
// res.data.forEach(ress => {
|
203
|
+
// this.checkBooks.push({
|
204
|
+
// label: ress.f_check_book_name,
|
205
|
+
// value: ress.id
|
206
|
+
// })
|
207
|
+
// })
|
208
|
+
// })
|
209
|
+
// }
|
210
|
+
},
|
211
|
+
|
212
|
+
ready () {
|
213
|
+
bus.$on('fresh-area',()=>{
|
214
|
+
console.log("进入方法",this.bookAll,this.bookList)
|
215
|
+
this.bookAll = false
|
216
|
+
this.bookList = []
|
217
|
+
this.$refs.paged.$refs.criteria.search()
|
218
|
+
})
|
219
|
+
this.$refs.paged.$refs.criteria.model.f_is_checkbook = 'f_check_book_id is null'
|
220
|
+
// this.freshCheckBook()
|
221
|
+
}
|
222
|
+
}
|
223
|
+
</script>
|
224
|
+
<style scoped>
|
225
|
+
/*.btn-group > .btn:first-child {*/
|
226
|
+
/* margin-left: 0;*/
|
227
|
+
/* width: 100%;*/
|
228
|
+
/*}*/
|
229
|
+
</style>
|