safecheck-client 3.0.34-7 → 3.0.34-70
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/App.vue +31 -31
- 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/AndroidDefectDeal.vue +1 -0
- 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/PaperFeedback.vue +1514 -1481
- package/src/components/android/PaperFeedbackTemp.vue +1470 -1470
- package/src/components/android/QRCode/QRCodeBinding.vue +300 -0
- package/src/components/android/QRCode/QRCodePage.vue +212 -0
- package/src/components/android/SafePlanItem.vue +509 -509
- package/src/components/android/SafecheckDevices.vue +1298 -1298
- package/src/components/android/SafecheckDevicesTemp.vue +1333 -1333
- package/src/components/android/SafecheckOrderV.vue +8 -12
- package/src/components/android/UserinfoSelect.vue +702 -0
- package/src/components/android/examples/SafeListExamples.vue +96 -0
- package/src/components/android/examples/UserExamples.vue +130 -0
- package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
- package/src/components/rongcheng/AddPlanItem.vue +4 -0
- package/src/components/rongcheng/AspiratedUserInfo.vue +1 -1
- package/src/components/rongcheng/CheckSearchUser.vue +40 -14
- 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/components/safecheckNew/android/SafecheckOrderV.vue +2731 -2731
- 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/PaperFeedback.vue +1651 -1651
- package/src/filiale/bayan/android/SafecheckDevices.vue +1303 -1303
- package/src/filiale/bayan/android/SafecheckOrderV.vue +52 -29
- package/src/filiale/bayan/android/SafecheckUserInfo.vue +863 -863
- package/src/filiale/bayan/pc/PaperList.vue +1 -0
- package/src/filiale/dexin/android/SafecheckDevices.vue +1305 -1305
- package/src/filiale/fugou/pc/CheckBookSearchUser.vue +35 -15
- package/src/filiale/hanzhong/android/PaperFeedback.vue +1477 -1477
- package/src/filiale/hanzhong/android/SafecheckDevices.vue +1313 -1313
- package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
- 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 +1298 -1298
- 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/jingyang/android/AddPlanItem.vue +458 -458
- package/src/filiale/jingyang/android/CurrentCreate.vue +1080 -1080
- package/src/filiale/jingyang/android/PaperFeedback.vue +1493 -1493
- package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
- package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
- package/src/filiale/jingyang/android.js +15 -15
- package/src/filiale/kelai/pc/CheckPlanAreaList.vue +15 -7
- package/src/filiale/pingxiang/android/PaperFeedback.vue +1399 -1399
- package/src/filiale/qingjian/android/SafecheckDevices.vue +1269 -1269
- package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
- 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 +14 -10
- package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
- 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/pc/checkUserList.vue +4 -4
- package/src/filiale/shiquan/android/SafecheckDevices.vue +1269 -1269
- package/src/filiale/siyang/android/AddPlanItem.vue +446 -0
- package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
- package/src/filiale/siyang/android.js +1 -0
- package/src/filiale/siyang/pc/CheckBookSearchArea.vue +645 -0
- package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -0
- package/src/filiale/siyang/pc/CheckSearchUser.vue +982 -0
- package/src/filiale/siyang/pc/HiddenSituation.vue +167 -0
- package/src/filiale/siyang/pc/NewCheckpaper.vue +1938 -1938
- package/src/filiale/siyang/pc/checkPlanList.vue +367 -0
- package/src/filiale/siyang/pc/checkUserList.vue +790 -786
- package/src/filiale/siyang/pc.js +21 -16
- 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 +1295 -1295
- package/src/filiale/weinan/android/SafecheckOrderV.vue +1 -1
- 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/yangchunboneng/android/PaperFeedback.vue +1731 -1731
- package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +1332 -1332
- package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
- package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +13 -11
- package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +269 -269
- 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 +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 +1519 -1519
- package/src/filiale/yongzhou/android/SafecheckDevices.vue +1294 -1294
- package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
- package/src/filiale/yuansheng/android/SafecheckDevices.vue +11 -1
- package/src/filiale/yuansheng/android/SwitchValve.vue +322 -322
- package/src/filiale/yuansheng/android.js +17 -17
- package/src/filiale/yuansheng/pc/NewCheckpaper.vue +10 -2
- package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1508 -1508
- package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1270 -1270
- package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +784 -784
- 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 +33 -33
- package/src/safecheck-android.js +9 -0
- package/src/safecheck-page.js +10 -0
@@ -0,0 +1,313 @@
|
|
1
|
+
<template>
|
2
|
+
<!--安检综合查询主界面-->
|
3
|
+
<div id="unit" class="flex-row" :class="{'binary':showItem || showItemUser}">
|
4
|
+
<div :class="{'basic-main':!(showItem || showItemUser),'binary-left':showItem || showItemUser}">
|
5
|
+
<!--展示查询界面-->
|
6
|
+
<check-book-list class="flex" :tempval="hidden" :style="style" :style2="style2" :showtype="showtype"
|
7
|
+
@select-changed="selected"
|
8
|
+
@canel-main="close"
|
9
|
+
@addbook="addbook"
|
10
|
+
:needprops="needProps"
|
11
|
+
@showdetails="showdetails"
|
12
|
+
v-ref:checkbook></check-book-list>
|
13
|
+
</div>
|
14
|
+
<div class="binary-right" v-if="showItemUser || showItem">
|
15
|
+
<div class="flex">
|
16
|
+
<check-book-user style="height: 100%" :row="rowData"
|
17
|
+
v-if="showItemUser && rowData.f_check_book_type==='用户'"></check-book-user>
|
18
|
+
<check-book-area style="height: 100%" @showuser="showuser" :row="rowData" :needprops="needProps"
|
19
|
+
v-if="showItemUser && rowData.f_user_type==='民用'"></check-book-area>
|
20
|
+
<check-book-company style="height: 100%" @showuser="showusercompany" :row="rowData" :needprops="needProps"
|
21
|
+
v-if="showItemUser && rowData.f_user_type==='非民用'"></check-book-company>
|
22
|
+
<check-book-details style="height: 100%" :row="rowData" :showtype="showtype"
|
23
|
+
v-if="showItem"></check-book-details>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
|
28
|
+
</template>
|
29
|
+
|
30
|
+
<script>
|
31
|
+
import {HttpResetClass} from "vue-client";
|
32
|
+
|
33
|
+
export default {
|
34
|
+
title: '安检册管理',
|
35
|
+
name: 'CheckPaperSearchUser',
|
36
|
+
props: ['showtype'],
|
37
|
+
data() {
|
38
|
+
return {
|
39
|
+
style: 'col-sm-2 form-group',
|
40
|
+
style2: 'col-sm-4 form-group',
|
41
|
+
showItemUser: false,
|
42
|
+
hidden: true,
|
43
|
+
barwidth: '100%',
|
44
|
+
showItem: false,
|
45
|
+
rowData: {},
|
46
|
+
needProps: {
|
47
|
+
meter_gasbrand: [],
|
48
|
+
checkBooks: [],
|
49
|
+
entry_status: [],
|
50
|
+
userTypes: [],
|
51
|
+
userStates: [],
|
52
|
+
gasproperties: [],
|
53
|
+
areaList: [],
|
54
|
+
sliceArea: [],
|
55
|
+
cbc: [],
|
56
|
+
meterbooks: [],
|
57
|
+
checker: [],
|
58
|
+
},
|
59
|
+
}
|
60
|
+
},
|
61
|
+
ready() {
|
62
|
+
this.init()
|
63
|
+
},
|
64
|
+
methods: {
|
65
|
+
init() {
|
66
|
+
this.getCheckBook()
|
67
|
+
this.setConList()
|
68
|
+
this.loadpage()
|
69
|
+
this.getGasbrand()
|
70
|
+
this.searchChecker()
|
71
|
+
},
|
72
|
+
//查询安检员selectChanged
|
73
|
+
async searchChecker() {
|
74
|
+
let res = await new HttpResetClass().load('POST', '/rs/search', {
|
75
|
+
source: 'tool.getChildrenOfResName($安检员$)',
|
76
|
+
userid: this.$login.f.id
|
77
|
+
}, {resolveMsg: null, rejectMsg: null})
|
78
|
+
this.needProps.checker = []
|
79
|
+
res.data.forEach((resRow) => {
|
80
|
+
if (resRow.orgid == this.$login.f.orgid) {
|
81
|
+
this.needProps.checker.push({label: resRow.name, value: resRow})
|
82
|
+
}
|
83
|
+
})
|
84
|
+
},
|
85
|
+
getGasbrand() {
|
86
|
+
this.needProps.meter_gasbrand = []
|
87
|
+
new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_GroupBy`, {
|
88
|
+
data: {
|
89
|
+
items: 'id,f_meter_brand',
|
90
|
+
tablename: 't_gasbrand',
|
91
|
+
condition: `f_orgid = '${this.$login.f.orgid}'`,
|
92
|
+
groupitem: 'id,f_meter_brand'
|
93
|
+
}
|
94
|
+
}, {resolveMsg: null, rejectMsg: null}).then(res => {
|
95
|
+
this.needProps.meter_gasbrand.push({label: '全部', value: ''})
|
96
|
+
//console.log('res=', JSON.stringify(res))
|
97
|
+
res.data.forEach(ress => {
|
98
|
+
//console.log('ress=', JSON.stringify(ress))
|
99
|
+
this.needProps.meter_gasbrand.push({
|
100
|
+
label: ress.f_meter_brand,
|
101
|
+
value: ress.id
|
102
|
+
})
|
103
|
+
})
|
104
|
+
})
|
105
|
+
},
|
106
|
+
getCheckBook() {
|
107
|
+
this.needProps.checkBooks = []
|
108
|
+
new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_OrderBy`, {
|
109
|
+
data: {
|
110
|
+
items: 'id,f_check_book_name,f_check_book_type',
|
111
|
+
tablename: 't_check_book',
|
112
|
+
condition: `f_orgid = '${this.$login.f.orgid}'`,
|
113
|
+
orderitem: 'id desc'
|
114
|
+
}
|
115
|
+
}, {resolveMsg: null, rejectMsg: null}).then(res => {
|
116
|
+
this.needProps.checkBooks.push({label: '全部', value: ''})
|
117
|
+
this.needProps.checkBooks.push({label: '未在安检册内', value: '111111'})
|
118
|
+
res.data.forEach(ress => {
|
119
|
+
this.needProps.checkBooks.push({
|
120
|
+
label: ress.f_check_book_name,
|
121
|
+
value: `${ress.id}-${ress.f_check_book_type}`
|
122
|
+
})
|
123
|
+
})
|
124
|
+
})
|
125
|
+
},
|
126
|
+
loadpage() {
|
127
|
+
this.select_search()
|
128
|
+
this.Mreadibook()
|
129
|
+
this.getSliceArea()
|
130
|
+
},
|
131
|
+
select_search(text, type) {
|
132
|
+
//tag
|
133
|
+
let pcdText = text ? ` and f_residential_area like '%${text}%'` : ''
|
134
|
+
if (type == 'pqId') {
|
135
|
+
if (text.length == 0) {
|
136
|
+
pcdText = text ? ` and 1=1` : ''
|
137
|
+
} else {
|
138
|
+
pcdText = text ? `and f_check_book_id in (${text})` : ''
|
139
|
+
}
|
140
|
+
|
141
|
+
}
|
142
|
+
new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
|
143
|
+
data: {
|
144
|
+
items: "*",
|
145
|
+
tablename: "t_area",
|
146
|
+
orderitem: "id",
|
147
|
+
condition: `f_orgid = '${this.$login.f.orgid}' ${pcdText} `
|
148
|
+
}
|
149
|
+
}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
150
|
+
//tag)
|
151
|
+
this.needProps.areaList = []
|
152
|
+
this.needProps.areaList.push({label: "全部", value: ""})
|
153
|
+
res.data.forEach((result) => {
|
154
|
+
this.needProps.areaList.push({label: result.f_residential_area, value: result.f_residential_area})
|
155
|
+
//console.log('this.areaList=', JSON.stringify(this.areaList))
|
156
|
+
})
|
157
|
+
//tag)
|
158
|
+
})
|
159
|
+
|
160
|
+
|
161
|
+
},
|
162
|
+
//获取抄表册
|
163
|
+
async Mreadibook() {
|
164
|
+
this.needProps.cbc = []
|
165
|
+
this.needProps.sliceArea = []
|
166
|
+
let http = new HttpResetClass()
|
167
|
+
let getMeterReadingBooks = await http.load('POST', 'rs/logic/getMeterBooksData',
|
168
|
+
{data: {f_orgid: "('" + this.$login.f.orgid + "')"}},
|
169
|
+
{resolveMsg: null, rejectMsg: '获取失败!!!'})
|
170
|
+
this.needProps.cbc = [{label: '全部', value: ''}]
|
171
|
+
//tag
|
172
|
+
//tag)
|
173
|
+
//tag
|
174
|
+
this.needProps.meterbooks = []
|
175
|
+
this.needProps.meterbooks = getMeterReadingBooks.data.meterbooks
|
176
|
+
this.needProps.meterbooks.forEach((res) => {
|
177
|
+
this.needProps.cbc.push({label: res.f_book_name, value: res.id})
|
178
|
+
/*if(res.f_book_slice_area){
|
179
|
+
if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
|
180
|
+
this.sliceArea.push(res.f_book_slice_area)
|
181
|
+
}
|
182
|
+
}*/
|
183
|
+
})
|
184
|
+
|
185
|
+
},
|
186
|
+
//安检册获取
|
187
|
+
async getSliceArea() {
|
188
|
+
let http = new HttpResetClass()
|
189
|
+
let getAllArea = await http.load('POST', '/rs/search', {
|
190
|
+
source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
|
191
|
+
userid: this.$login.f.id
|
192
|
+
}, {resolveMsg: null, rejectMsg: '获取安检册出错!!!'})
|
193
|
+
this.needProps.sliceArea = [{label: '全部', value: ''}]
|
194
|
+
//tag
|
195
|
+
//tag
|
196
|
+
//tag
|
197
|
+
getAllArea.data.forEach((res) => {
|
198
|
+
if (res.parentid == this.$login.f.orgid) {
|
199
|
+
this.needProps.sliceArea.push({label: res.name, value: res.name})
|
200
|
+
}
|
201
|
+
})
|
202
|
+
//tag
|
203
|
+
},
|
204
|
+
setConList() {
|
205
|
+
this.needProps.entry_status = this.$appdata.getParam('安检状态') ? [{
|
206
|
+
label: '全部',
|
207
|
+
value: ''
|
208
|
+
}, ...this.$appdata.getParam('安检状态')] : [{label: '全部', value: ''}]
|
209
|
+
|
210
|
+
this.needProps.userTypes = this.$appdata.getParam('用户类型') ? [{
|
211
|
+
label: '全部',
|
212
|
+
value: ''
|
213
|
+
}, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
|
214
|
+
this.needProps.userStates = this.$appdata.getParam('安检用户状态') ? [{
|
215
|
+
label: '全部',
|
216
|
+
value: ''
|
217
|
+
}, ...this.$appdata.getParam('安检用户状态')] : [{label: '全部', value: ''}]
|
218
|
+
this.needProps.gasproperties = this.$appdata.getParam('用气性质') ? [{
|
219
|
+
label: '全部',
|
220
|
+
value: ''
|
221
|
+
}, ...this.$appdata.getParam('用气性质')] : [{label: '全部', value: ''}]
|
222
|
+
// this.meter_classifys=this.$appdata.getParam('气表类型') ? [{
|
223
|
+
// label: '全部',
|
224
|
+
// value: ''
|
225
|
+
// }, ...this.$appdata.getParam('气表类型')] : [{label: '全部', value: ''}]
|
226
|
+
},
|
227
|
+
show() {
|
228
|
+
this.showItem = this.showItem ? false : true
|
229
|
+
},
|
230
|
+
showdetails(row) {
|
231
|
+
console.log('showdetails', row)
|
232
|
+
this.rowData = row
|
233
|
+
this.showItem = false
|
234
|
+
this.showItemUser = true
|
235
|
+
},
|
236
|
+
showusercompany(row) {
|
237
|
+
console.log('showuser', row)
|
238
|
+
this.rowData = row
|
239
|
+
this.showItem = false
|
240
|
+
this.rowData.f_check_book_type = '用户'
|
241
|
+
this.rowData.f_check_book_type1 = '单位'
|
242
|
+
this.showItemUser = true
|
243
|
+
},
|
244
|
+
showuser(row) {
|
245
|
+
console.log('showuser', row)
|
246
|
+
this.rowData = row
|
247
|
+
this.showItem = false
|
248
|
+
this.rowData.f_check_book_type = '用户'
|
249
|
+
this.rowData.f_check_book_type1 = '小区'
|
250
|
+
this.showItemUser = true
|
251
|
+
},
|
252
|
+
addbook() {
|
253
|
+
this.rowData = {
|
254
|
+
f_is_auto: '否',
|
255
|
+
f_check_book_type: "用户",
|
256
|
+
}
|
257
|
+
this.showItem = true
|
258
|
+
},
|
259
|
+
selected(row) {
|
260
|
+
this.showItem = true
|
261
|
+
this.barwidth = '50%'
|
262
|
+
//tag
|
263
|
+
this.rowData = row.val
|
264
|
+
this.hidden = false
|
265
|
+
//tag
|
266
|
+
},
|
267
|
+
|
268
|
+
close() {
|
269
|
+
this.showItem = false
|
270
|
+
this.barwidth = '100%'
|
271
|
+
this.hidden = true
|
272
|
+
}
|
273
|
+
},
|
274
|
+
computed: {
|
275
|
+
showItemAll() {
|
276
|
+
return this.showItem && this.showItemUser
|
277
|
+
}
|
278
|
+
},
|
279
|
+
watch: {
|
280
|
+
'showItemUser'(val) {
|
281
|
+
//tag
|
282
|
+
console.log("showItemUser", val)
|
283
|
+
if (val) {
|
284
|
+
this.showItem = false
|
285
|
+
}
|
286
|
+
if (val || this.showItem) {
|
287
|
+
this.style = 'col-sm-3 form-group'
|
288
|
+
this.style2 = 'col-sm-6 form-group'
|
289
|
+
|
290
|
+
} else {
|
291
|
+
this.style = 'col-sm-2 form-group'
|
292
|
+
this.style2 = 'col-sm-4 form-group'
|
293
|
+
}
|
294
|
+
},
|
295
|
+
'showItem'(val) {
|
296
|
+
console.log("showItem", val)
|
297
|
+
if (val) {
|
298
|
+
this.showItemUser = false
|
299
|
+
}
|
300
|
+
if (val || this.showItemUser) {
|
301
|
+
this.style = 'col-sm-3 form-group'
|
302
|
+
this.style2 = 'col-sm-6 form-group'
|
303
|
+
|
304
|
+
} else {
|
305
|
+
this.style = 'col-sm-2 form-group'
|
306
|
+
this.style2 = 'col-sm-4 form-group'
|
307
|
+
}
|
308
|
+
}
|
309
|
+
}
|
310
|
+
}
|
311
|
+
|
312
|
+
</script>
|
313
|
+
|
@@ -0,0 +1,69 @@
|
|
1
|
+
<template>
|
2
|
+
<tab-button v-ref:list :active="-1">
|
3
|
+
<tabs header="居民用户台账">
|
4
|
+
<check-book v-if="show.includes('居民用户台账')" @deal-msg="dealMsg" v-ref:papermain
|
5
|
+
:showtype="'民用'"></check-book>
|
6
|
+
</tabs>
|
7
|
+
<tabs header="非居民用户台账">
|
8
|
+
<check-book v-if="show.includes('非居民用户台账')" @deal-msg="dealMsg" v-ref:paperfeimain
|
9
|
+
:showtype="'非民用'"></check-book>
|
10
|
+
</tabs>
|
11
|
+
<!-- <tabs header="用户管理">-->
|
12
|
+
<!-- <check-book-manage v-if="show.includes('用户管理')" @deal-msg="dealMsg"></check-book-manage>-->
|
13
|
+
<!-- </tabs>-->
|
14
|
+
</tab-button>
|
15
|
+
|
16
|
+
</template>
|
17
|
+
|
18
|
+
<script>
|
19
|
+
import TabButton from '../../../components/safecheck/common/TabButton.vue'
|
20
|
+
import Tabs from '../../../components/safecheck/common/Tabs.vue'
|
21
|
+
// import { HttpResetClass } from 'vue-client'
|
22
|
+
|
23
|
+
export default {
|
24
|
+
name: 'checkBookAll',
|
25
|
+
title: '用户台账管理',
|
26
|
+
data() {
|
27
|
+
return {// 页面开关
|
28
|
+
residentialArea: [],
|
29
|
+
f_start_date: '',
|
30
|
+
f_end_date: '',
|
31
|
+
listpage: true,
|
32
|
+
width: {
|
33
|
+
left: '100%',
|
34
|
+
right: '0%'
|
35
|
+
},
|
36
|
+
rowData: {},
|
37
|
+
show: []
|
38
|
+
}
|
39
|
+
},
|
40
|
+
components: {Tabs, TabButton},
|
41
|
+
ready() {
|
42
|
+
//tag
|
43
|
+
//tag
|
44
|
+
//tag
|
45
|
+
this.$refs.list.handleTabListClick(0, this.$refs.list.renderData[0])
|
46
|
+
},
|
47
|
+
methods: {
|
48
|
+
// permission(name) {
|
49
|
+
// if (!this.$login.r.find(value => value == name)) {
|
50
|
+
// return true
|
51
|
+
// }
|
52
|
+
// return true
|
53
|
+
// },
|
54
|
+
cancel(obj) {
|
55
|
+
this.listpage = true
|
56
|
+
},
|
57
|
+
dealMsg(obj) {
|
58
|
+
this.rowData = obj
|
59
|
+
this.listpage = false
|
60
|
+
this.f_start_date = obj.model.startDate
|
61
|
+
this.f_end_date = obj.model.endDate
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
</script>
|
66
|
+
|
67
|
+
<style scoped>
|
68
|
+
|
69
|
+
</style>
|
@@ -0,0 +1,170 @@
|
|
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_residential_area 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
|
+
<th>
|
45
|
+
<nobr>小区备注</nobr>
|
46
|
+
</th>
|
47
|
+
</tr>
|
48
|
+
</template>
|
49
|
+
<template partial='body'>
|
50
|
+
<tr>
|
51
|
+
<td style="text-align: center;"><input type="checkbox" onClick="event.cancelBubble = true"
|
52
|
+
:checked="$parent.$parent.$parent.isChecked(row.id)"
|
53
|
+
@change="$parent.$parent.$parent.setCheckes(row.id)"/></td>
|
54
|
+
<td style="text-align:center">{{ row.f_pcd }}</td>
|
55
|
+
<td style="text-align:center">{{ row.f_street }}</td>
|
56
|
+
<td style="text-align:center">{{ row.f_residential_area }}</td>
|
57
|
+
<td style="text-align:center">
|
58
|
+
<button @click.stop="$parent.$parent.$parent.details(row)" class="btn btn-link">
|
59
|
+
<b>{{ row.num ? row.num : 0 }}</b></button>
|
60
|
+
</td>
|
61
|
+
<td style="text-align:center">{{ row.f_area_address }}</td>
|
62
|
+
<td style="text-align:center">{{ row.f_comments }}</td>
|
63
|
+
</tr>
|
64
|
+
</template>
|
65
|
+
<template partial='foot'></template>
|
66
|
+
</data-grid>
|
67
|
+
</criteria-paged>
|
68
|
+
<modal :show.sync="showSendModal" :backdrop="false" width="90%" height="90%">
|
69
|
+
<article slot="modal-body" class="modal-body" style="height: 80vh">
|
70
|
+
<check-book-search-user-list v-if="showSendModal" :row="row" :addcondata="addcondata"
|
71
|
+
:bookrowsdata="{bookrows:checkes,checkAll:checkAll}" :needprops="needprops"
|
72
|
+
:userlogin="userlogin"></check-book-search-user-list>
|
73
|
+
</article>
|
74
|
+
<footer slot="modal-footer">
|
75
|
+
</footer>
|
76
|
+
|
77
|
+
</modal>
|
78
|
+
</div>
|
79
|
+
</template>
|
80
|
+
|
81
|
+
<script>
|
82
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
83
|
+
|
84
|
+
export default {
|
85
|
+
title: '安检记录列表',
|
86
|
+
props: ['row', 'needprops'],
|
87
|
+
data() {
|
88
|
+
return {
|
89
|
+
rowdata: this.row,
|
90
|
+
showSendModal: false,
|
91
|
+
checkBookRow: {},
|
92
|
+
userlogin: {
|
93
|
+
id: this.$login.f.id,
|
94
|
+
name: this.$login.f.name,
|
95
|
+
orgid: this.$login.f.orgid,
|
96
|
+
orgstr: this.$login.f.orgs,
|
97
|
+
},
|
98
|
+
model: new PagedList('rs/sql/getCheckBookArea', 50),
|
99
|
+
checkAll: false,
|
100
|
+
checkes: [],
|
101
|
+
addcondata: ''
|
102
|
+
}
|
103
|
+
},
|
104
|
+
ready() {
|
105
|
+
console.log(this.row)
|
106
|
+
const val = this.row
|
107
|
+
if (val) {
|
108
|
+
this.checkAll = false
|
109
|
+
this.checkes = []
|
110
|
+
this.rowdata = val
|
111
|
+
const condition = `f_check_book_id =${val.id}`
|
112
|
+
this.model.search(condition)
|
113
|
+
}
|
114
|
+
},
|
115
|
+
watch: {
|
116
|
+
'row'(val) {
|
117
|
+
if (val) {
|
118
|
+
this.checkAll = false
|
119
|
+
this.checkes = []
|
120
|
+
this.rowdata = val
|
121
|
+
const condition = `f_check_book_id =${val.id}`
|
122
|
+
this.model.search(condition)
|
123
|
+
}
|
124
|
+
}
|
125
|
+
},
|
126
|
+
methods: {
|
127
|
+
setCheckAll() {
|
128
|
+
this.checkAll = this.checkAll ? false : true;
|
129
|
+
// 全选改变后,清空选中数据
|
130
|
+
this.checkes = []
|
131
|
+
},
|
132
|
+
isChecked(v) {
|
133
|
+
// 如果全选,不在的按选中算,否则,在的按选中算
|
134
|
+
if (this.checkAll) {
|
135
|
+
return this.checkes.indexOf(v) == -1
|
136
|
+
} else {
|
137
|
+
return this.checkes.indexOf(v) != -1
|
138
|
+
}
|
139
|
+
},
|
140
|
+
setCheckes(id) {
|
141
|
+
let index = this.checkes.indexOf(id)
|
142
|
+
if (index < 0) {
|
143
|
+
this.checkes.push(id)
|
144
|
+
} else {
|
145
|
+
this.checkes.splice(index, 1)
|
146
|
+
}
|
147
|
+
},
|
148
|
+
send() {
|
149
|
+
if (!this.checkAll && this.checkes.length == 0) {
|
150
|
+
return this.$showMessage('请选择单位')
|
151
|
+
}
|
152
|
+
this.showSendModal = true
|
153
|
+
},
|
154
|
+
details(row) {
|
155
|
+
this.$emit('showuser', row)
|
156
|
+
},
|
157
|
+
selfSearch(args) {
|
158
|
+
if (this.rowdata.id) {
|
159
|
+
this.checkAll = false
|
160
|
+
this.checkes = []
|
161
|
+
args.condition += `and f_check_book_id =${this.rowdata.id}`
|
162
|
+
this.model.search(args.condition)
|
163
|
+
this.addcondata = args.model.f_residential_area ? ` and area.f_residential_area like '%${args.model.f_residential_area}%'` : ''
|
164
|
+
} else {
|
165
|
+
this.$showMessage('请选择安检册')
|
166
|
+
}
|
167
|
+
}
|
168
|
+
}
|
169
|
+
}
|
170
|
+
</script>
|