readmeter-changan 1.0.33 → 1.0.34
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/.idea/ReadMeterClient.iml +9 -0
- package/.idea/workspace.xml +62 -442
- package/.npmignore +7 -0
- package/build/dev-server.js +132 -132
- package/build/webpack.base.conf.js +75 -75
- package/hs_err_pid13284.log +207 -0
- package/package.json +1 -1
- package/package.json.bak +99 -99
- package/src/AndroidPlugin.js +28 -28
- package/src/App.vue +74 -74
- package/src/components/readingmeter/CheckInfo.vue +618 -618
- package/src/components/readingmeter/FinishHandInfo.vue +75 -75
- package/src/components/readingmeter/FinishHandInfocopy.vue +99 -99
- package/src/components/readingmeter/HandInfo.vue +87 -87
- package/src/components/readingmeter/HandMessage.vue +40 -40
- package/src/components/readingmeter/HistoryHandInfo.vue +114 -114
- package/src/components/readingmeter/MeterInfo.vue +183 -183
- package/src/components/readingmeter/PhoneHand.vue +93 -93
- package/src/components/readingmeter/PhoneHandHome.vue +2 -0
- package/src/components/readingmeter/PhoneHandplanInfo.vue +643 -643
- package/src/components/readingmeter/PictureArea.vue +156 -156
- package/src/components/readingmeter/PlanDown.vue +232 -232
- package/src/components/readingmeter/PlanUpdate.vue +186 -186
- package/src/components/readingmeter/ReadMeterCenter.vue +325 -325
- package/src/components/readingmeter/ReadMeterInfo.vue +349 -349
- package/src/components/readingmeter/ReadMeterInfoChangan.vue +1 -1
- package/src/components/readingmeter/SellHistory.vue +36 -36
- package/src/components/readingmeter/SellInfo.vue +88 -88
- package/src/components/readingmeter/UserInfo.vue +1 -0
- package/src/components/server/AppHeader.vue +65 -65
- package/src/components/server/ReadMeterHome.vue +192 -192
- package/src/components/server/ReadMeterLogin.vue +161 -161
- package/src/components/server/ReadMeterNavBottom.vue +119 -119
- package/src/components/server/ReadMeterRoute.vue +79 -79
- package/src/components/server/ReadMeterTop.vue +61 -61
- package/src/components/server/ReadMeterTopcopy.vue +53 -53
- package/src/expandcss.less +668 -668
- package/src/main.js +23 -23
- package/src/readmeter-android.js +34 -34
- package/src/readmeter.js +54 -54
- package/yarn.lock +7818 -0
|
@@ -1,325 +1,325 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="app-bg row" style="padding: 10px">
|
|
3
|
-
<div class="row app-row" style="height: 8%">
|
|
4
|
-
<div class="col-xs-3" style="margin-bottom: 6px">
|
|
5
|
-
<img src="../../assets/chaobiao.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
6
|
-
<span class="text-left font">抄表单条数</span>
|
|
7
|
-
</div>
|
|
8
|
-
<div class="col-xs-3 input-font " >
|
|
9
|
-
<p class="text-info">总数:{{handcount}}</p>
|
|
10
|
-
</div>
|
|
11
|
-
<div class="col-xs-3 input-font " >
|
|
12
|
-
<p class="text-suucess"> 已抄:{{hadcount}}</p>
|
|
13
|
-
</div>
|
|
14
|
-
<div class="col-xs-3 input-font " >
|
|
15
|
-
<p class="text-danger">未抄:{{leftcount}}</p>
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="row col-xs-12 col-sm-12 col-md-12" style="height: 90%">
|
|
19
|
-
<div class="col-xs-4 col-sm-4 col-md-4 select-form auto" >
|
|
20
|
-
<label for=""> 街道</label>
|
|
21
|
-
</div>
|
|
22
|
-
<div class="col-xs-4 col-sm-4 col-md-4 select-form auto" >
|
|
23
|
-
<label for=""> 用气单位</label>
|
|
24
|
-
</div>
|
|
25
|
-
<div class="col-xs-4 col-sm-4 col-md-4 select-form auto" >
|
|
26
|
-
<label for=""> 用气点</label>
|
|
27
|
-
</div>
|
|
28
|
-
<div class="col-xs-4 col-sm-4 col-md-4 " style="overflow: auto">
|
|
29
|
-
<div class="row auto select-row" v-for="street in data.streetArr" >
|
|
30
|
-
<p :class="{active: street === data.f_street}" @click="selectStreet(street)"> {{street}}</p>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
<div class="col-xs-4 col-sm-4 col-md-4 " style="overflow: auto">
|
|
34
|
-
<!--<label for=""> 用气单位</label>-->
|
|
35
|
-
<div class="row auto select-row" v-for="gasarr in data.gasArr" >
|
|
36
|
-
<p :class="{active: gasarr === data.f_gas_area}" @click="selectGasArea(gasarr)"> {{gasarr}}</p>
|
|
37
|
-
</div>
|
|
38
|
-
</div>
|
|
39
|
-
<div class="col-xs-4 col-sm-4 col-md-4 " class="text-center" style="overflow: auto">
|
|
40
|
-
<!--<label for=""> 用气点</label>-->
|
|
41
|
-
<div class="row auto select-row" v-for="pointarr in data.pointArr" >
|
|
42
|
-
<p :class="{active: pointarr === data.f_point_name}" @click="selectePointName(pointarr)"> {{pointarr}}</p>
|
|
43
|
-
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
</template>
|
|
49
|
-
<script>
|
|
50
|
-
import * as Util from '../Util'
|
|
51
|
-
import AppData from '../../stores/AppData'
|
|
52
|
-
import Vue from 'vue'
|
|
53
|
-
|
|
54
|
-
export default {
|
|
55
|
-
title: '抄表管理',
|
|
56
|
-
props: {
|
|
57
|
-
data: {
|
|
58
|
-
type: Object,
|
|
59
|
-
},
|
|
60
|
-
name:{
|
|
61
|
-
type:String,
|
|
62
|
-
default:'抄表列表'
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
data () {
|
|
66
|
-
return {
|
|
67
|
-
model: {},
|
|
68
|
-
show: false,
|
|
69
|
-
|
|
70
|
-
handcount: 0,
|
|
71
|
-
userInfo: {},
|
|
72
|
-
currentPage: 1,
|
|
73
|
-
leftcount:0,
|
|
74
|
-
hadcount:0,
|
|
75
|
-
totalPage: 0,
|
|
76
|
-
pageSize: 100,
|
|
77
|
-
startNumer: AppData.params.f_userinfo_id
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
// init(){
|
|
81
|
-
// window.alert('init')
|
|
82
|
-
// },
|
|
83
|
-
ready () {
|
|
84
|
-
|
|
85
|
-
this.userInfo = Object.assign({}, this.userInfo, Vue.user)
|
|
86
|
-
this.model.startDate = `${Util.toStandardYearMonth()}-01`
|
|
87
|
-
this.model.endDate = Util.toStandardDateString()
|
|
88
|
-
this.search()
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
methods: {
|
|
92
|
-
initStreet () {
|
|
93
|
-
if (this.data && this.data.returnData) {
|
|
94
|
-
let arr = [], res = new Map()
|
|
95
|
-
this.data.streetArr = []
|
|
96
|
-
for (let i = 0; i < this.data.returnData.length; i++) {
|
|
97
|
-
arr.push(this.data.returnData[i].f_street)
|
|
98
|
-
}
|
|
99
|
-
let obj = {}
|
|
100
|
-
for (let i of arr) {
|
|
101
|
-
if (!obj[i]) {
|
|
102
|
-
this.data.streetArr.push(i)
|
|
103
|
-
obj[i] = 1
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
if(arr.length<1){
|
|
107
|
-
this.data.gasArr = []
|
|
108
|
-
this.data.pointArr = []
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
|
|
113
|
-
selectStreet (row) {
|
|
114
|
-
this.data.pointArr = []
|
|
115
|
-
this.data.f_street = row
|
|
116
|
-
let arr = [], res = new Map()
|
|
117
|
-
this.data.gasArr = []
|
|
118
|
-
if (this.data.f_street) {
|
|
119
|
-
for (let i = 0; i < this.data.returnData.length; i++) {
|
|
120
|
-
if (this.data.returnData[i].f_street === this.data.f_street) {
|
|
121
|
-
arr.push(this.data.returnData[i].f_gas_area)
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
this.data.gasArr = arr.filter((a) => !res.has(a) && res.set(a, 1))
|
|
126
|
-
},
|
|
127
|
-
selectGasArea (row) {
|
|
128
|
-
this.data.f_gas_area = row
|
|
129
|
-
let arr = [], res = new Map()
|
|
130
|
-
this.data.pointArr = []
|
|
131
|
-
if (this.data.f_street) {
|
|
132
|
-
for (let i = 0; i < this.data.returnData.length; i++) {
|
|
133
|
-
if (this.data.returnData[i].f_gas_area === this.data.f_gas_area) {
|
|
134
|
-
arr.push(this.data.returnData[i].f_point_name)
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
this.data.pointArr = arr.filter((a) => !res.has(a) && res.set(a, 1))
|
|
139
|
-
console.log(this.pointArr)
|
|
140
|
-
},
|
|
141
|
-
selectePointName (row) {
|
|
142
|
-
this.data.f_point_name = row
|
|
143
|
-
this.$dispatch('changepage', this.data, 'selectpoint')
|
|
144
|
-
},
|
|
145
|
-
switchPage (type) {
|
|
146
|
-
if (type === 'last' && this.currentPage > 1) {
|
|
147
|
-
this.currentPage--
|
|
148
|
-
this.search()
|
|
149
|
-
return
|
|
150
|
-
}
|
|
151
|
-
if (type === 'next' && this.currentPage < this.totalPage) {
|
|
152
|
-
this.currentPage++
|
|
153
|
-
this.search()
|
|
154
|
-
return
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
confirm () {
|
|
158
|
-
this.currentPage = 1
|
|
159
|
-
this.search()
|
|
160
|
-
},
|
|
161
|
-
search () {
|
|
162
|
-
let condition = '1=1 and f_meter_state = \'未抄表\''
|
|
163
|
-
for (let item in this.model) {
|
|
164
|
-
if (this.model[item] !== '' && item !== 'startDate' && item !== 'endDate' && item !== 'f_address') {
|
|
165
|
-
condition += `and ${item} = '${this.model[item]}'`
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
if (this.model.f_address !== '') {
|
|
169
|
-
condition += `and f_address like '${this.model.f_address}%'`
|
|
170
|
-
}
|
|
171
|
-
if (AppData.params.f_userinfo_id !== undefined) {
|
|
172
|
-
condition += `and f_userinfo_id >= '${AppData.params.f_userinfo_id}'`
|
|
173
|
-
}
|
|
174
|
-
if (this.model.startDate === '') {
|
|
175
|
-
this.model.startDate = `${Util.toStandardYearMonth()}-01`
|
|
176
|
-
}
|
|
177
|
-
if (this.model.endDate === '') {
|
|
178
|
-
this.model.endDate = Util.toStandardDateString()
|
|
179
|
-
}
|
|
180
|
-
console.log(condition, 'condition')
|
|
181
|
-
condition = '1=1 and f_meter_state = \'未抄表\''
|
|
182
|
-
|
|
183
|
-
console.log('测试环境'+Vue.isTest)
|
|
184
|
-
// PC端
|
|
185
|
-
// this.$androidUtil.bzLogic('getUnHandMeterInfo', {
|
|
186
|
-
// data: {
|
|
187
|
-
// currentPage: this.currentPage,
|
|
188
|
-
// pageSize: this.pageSize,
|
|
189
|
-
// startDate: `${this.model.startDate}`,
|
|
190
|
-
// endDate: `${this.model.endDate}`,
|
|
191
|
-
// condition: condition,
|
|
192
|
-
// f_inputtor: `${this.userInfo.name}`
|
|
193
|
-
// }
|
|
194
|
-
// }).then((res) => {
|
|
195
|
-
// this.show = true
|
|
196
|
-
// let pages = parseInt(res.data.totalSize / this.pageSize)
|
|
197
|
-
// this.totalPage = parseInt(res.data.totalSize % this.pageSize) !== 0 ? pages + 1 : pages
|
|
198
|
-
// this.handcount = res.data.totalSize
|
|
199
|
-
// this.leftcount = res.data.leftSize
|
|
200
|
-
// this.hadcount = parseInt(this.handcount) - parseInt(this.leftcount)
|
|
201
|
-
// this.handinfo = [...res.data.data]
|
|
202
|
-
// this.data.returnData = res.data.data
|
|
203
|
-
// // this.mode.returnData = res.data.data
|
|
204
|
-
// this.initStreet()
|
|
205
|
-
// })
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
//安卓端
|
|
210
|
-
let res = this.$androidUtil.bzLogic('getUnHandMeterInfo', {
|
|
211
|
-
data: {
|
|
212
|
-
startDate: `${this.model.startDate}`,
|
|
213
|
-
endDate: `${this.model.endDate}`,
|
|
214
|
-
condition: condition,
|
|
215
|
-
f_inputtor: `${this.userInfo.name}`
|
|
216
|
-
}
|
|
217
|
-
})
|
|
218
|
-
if (res.code === 200) {
|
|
219
|
-
// console.log(JSON.stringify(res.data))
|
|
220
|
-
let pages = parseInt(res.data.length / this.pageSize)
|
|
221
|
-
this.totalPage = parseInt(res.data.totalSize % this.pageSize) !== 0 ? pages + 1 : pages
|
|
222
|
-
|
|
223
|
-
this.handcount = res.totalSize
|
|
224
|
-
this.leftcount = res.leftSize
|
|
225
|
-
this.hadcount = parseInt(this.handcount) - parseInt(this.leftcount)
|
|
226
|
-
this.handinfo = [...res.data]
|
|
227
|
-
this.data.returnData = res.data
|
|
228
|
-
this.initStreet()
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
},
|
|
233
|
-
events: {
|
|
234
|
-
'select' (val) {
|
|
235
|
-
this.$dispatch('changepage', val, 'save')
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
},
|
|
239
|
-
watch: {
|
|
240
|
-
'data.streetArr'(val){
|
|
241
|
-
if(this.data.streetArr.length=0){
|
|
242
|
-
this.data.gasArr = []
|
|
243
|
-
this.data.pointArr= []
|
|
244
|
-
this.data.streetArr = []
|
|
245
|
-
}
|
|
246
|
-
},
|
|
247
|
-
'data.returnData'(val){
|
|
248
|
-
this.userInfo = Object.assign({}, this.userInfo, Vue.user)
|
|
249
|
-
this.model.startDate = `${Util.toStandardYearMonth()}-01`
|
|
250
|
-
this.model.endDate = Util.toStandardDateString()
|
|
251
|
-
this.search()
|
|
252
|
-
// this.initStreet()
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
</script>
|
|
258
|
-
<style scoped>
|
|
259
|
-
.search_input {
|
|
260
|
-
border: 0;
|
|
261
|
-
outline: none;
|
|
262
|
-
}
|
|
263
|
-
.container{
|
|
264
|
-
/*padding: 10px 10px 6px 10px;*/
|
|
265
|
-
/*border: 1px solid rgba(235, 235, 235, 0.5);*/
|
|
266
|
-
}
|
|
267
|
-
.select-form {
|
|
268
|
-
border: 1px solid white;
|
|
269
|
-
border-radius: 2px;
|
|
270
|
-
/*padding: 0.25em;*/
|
|
271
|
-
/*margin: 10px;*/
|
|
272
|
-
background-color: #65b0e9;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
.select-row p {
|
|
276
|
-
border-radius: 0.5em;
|
|
277
|
-
padding: 0.25em;
|
|
278
|
-
text-align: center;
|
|
279
|
-
background-color: #97a8be;
|
|
280
|
-
|
|
281
|
-
}
|
|
282
|
-
p.active{
|
|
283
|
-
background: #499edf;
|
|
284
|
-
}
|
|
285
|
-
/*.select-form p:hover {*/
|
|
286
|
-
/*background-color: ;*/
|
|
287
|
-
/*}*/
|
|
288
|
-
|
|
289
|
-
.select-form p, label {
|
|
290
|
-
/*margin: 10 auto;*/
|
|
291
|
-
|
|
292
|
-
display: block;
|
|
293
|
-
vertical-align: middle;
|
|
294
|
-
cursor: pointer;
|
|
295
|
-
text-align: center;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
.row {
|
|
299
|
-
background-color: white;
|
|
300
|
-
padding: 10px 10px 3px 10px;
|
|
301
|
-
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
.font {
|
|
305
|
-
font: 15px PingFang-SC-Medium;
|
|
306
|
-
color: #666666;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
.btn-font {
|
|
310
|
-
font: 600 16px PingFang-SC-Bold;
|
|
311
|
-
color: #499EDF;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
.btn-color {
|
|
315
|
-
background-color: #FFFFFF;
|
|
316
|
-
border-radius: 10px;
|
|
317
|
-
border: 1px solid #499EDF;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
.input-font {
|
|
321
|
-
font: 15px PingFang-SC-Medium;
|
|
322
|
-
color: #333333;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="app-bg row" style="padding: 10px">
|
|
3
|
+
<div class="row app-row" style="height: 8%">
|
|
4
|
+
<div class="col-xs-3" style="margin-bottom: 6px">
|
|
5
|
+
<img src="../../assets/chaobiao.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
6
|
+
<span class="text-left font">抄表单条数</span>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="col-xs-3 input-font " >
|
|
9
|
+
<p class="text-info">总数:{{handcount}}</p>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="col-xs-3 input-font " >
|
|
12
|
+
<p class="text-suucess"> 已抄:{{hadcount}}</p>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="col-xs-3 input-font " >
|
|
15
|
+
<p class="text-danger">未抄:{{leftcount}}</p>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="row col-xs-12 col-sm-12 col-md-12" style="height: 90%">
|
|
19
|
+
<div class="col-xs-4 col-sm-4 col-md-4 select-form auto" >
|
|
20
|
+
<label for=""> 街道</label>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="col-xs-4 col-sm-4 col-md-4 select-form auto" >
|
|
23
|
+
<label for=""> 用气单位</label>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="col-xs-4 col-sm-4 col-md-4 select-form auto" >
|
|
26
|
+
<label for=""> 用气点</label>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="col-xs-4 col-sm-4 col-md-4 " style="overflow: auto">
|
|
29
|
+
<div class="row auto select-row" v-for="street in data.streetArr" >
|
|
30
|
+
<p :class="{active: street === data.f_street}" @click="selectStreet(street)"> {{street}}</p>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="col-xs-4 col-sm-4 col-md-4 " style="overflow: auto">
|
|
34
|
+
<!--<label for=""> 用气单位</label>-->
|
|
35
|
+
<div class="row auto select-row" v-for="gasarr in data.gasArr" >
|
|
36
|
+
<p :class="{active: gasarr === data.f_gas_area}" @click="selectGasArea(gasarr)"> {{gasarr}}</p>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="col-xs-4 col-sm-4 col-md-4 " class="text-center" style="overflow: auto">
|
|
40
|
+
<!--<label for=""> 用气点</label>-->
|
|
41
|
+
<div class="row auto select-row" v-for="pointarr in data.pointArr" >
|
|
42
|
+
<p :class="{active: pointarr === data.f_point_name}" @click="selectePointName(pointarr)"> {{pointarr}}</p>
|
|
43
|
+
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
</template>
|
|
49
|
+
<script>
|
|
50
|
+
import * as Util from '../Util'
|
|
51
|
+
import AppData from '../../stores/AppData'
|
|
52
|
+
import Vue from 'vue'
|
|
53
|
+
|
|
54
|
+
export default {
|
|
55
|
+
title: '抄表管理',
|
|
56
|
+
props: {
|
|
57
|
+
data: {
|
|
58
|
+
type: Object,
|
|
59
|
+
},
|
|
60
|
+
name:{
|
|
61
|
+
type:String,
|
|
62
|
+
default:'抄表列表'
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
data () {
|
|
66
|
+
return {
|
|
67
|
+
model: {},
|
|
68
|
+
show: false,
|
|
69
|
+
|
|
70
|
+
handcount: 0,
|
|
71
|
+
userInfo: {},
|
|
72
|
+
currentPage: 1,
|
|
73
|
+
leftcount:0,
|
|
74
|
+
hadcount:0,
|
|
75
|
+
totalPage: 0,
|
|
76
|
+
pageSize: 100,
|
|
77
|
+
startNumer: AppData.params.f_userinfo_id
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
// init(){
|
|
81
|
+
// window.alert('init')
|
|
82
|
+
// },
|
|
83
|
+
ready () {
|
|
84
|
+
|
|
85
|
+
this.userInfo = Object.assign({}, this.userInfo, Vue.user)
|
|
86
|
+
this.model.startDate = `${Util.toStandardYearMonth()}-01`
|
|
87
|
+
this.model.endDate = Util.toStandardDateString()
|
|
88
|
+
this.search()
|
|
89
|
+
},
|
|
90
|
+
|
|
91
|
+
methods: {
|
|
92
|
+
initStreet () {
|
|
93
|
+
if (this.data && this.data.returnData) {
|
|
94
|
+
let arr = [], res = new Map()
|
|
95
|
+
this.data.streetArr = []
|
|
96
|
+
for (let i = 0; i < this.data.returnData.length; i++) {
|
|
97
|
+
arr.push(this.data.returnData[i].f_street)
|
|
98
|
+
}
|
|
99
|
+
let obj = {}
|
|
100
|
+
for (let i of arr) {
|
|
101
|
+
if (!obj[i]) {
|
|
102
|
+
this.data.streetArr.push(i)
|
|
103
|
+
obj[i] = 1
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
if(arr.length<1){
|
|
107
|
+
this.data.gasArr = []
|
|
108
|
+
this.data.pointArr = []
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
|
|
113
|
+
selectStreet (row) {
|
|
114
|
+
this.data.pointArr = []
|
|
115
|
+
this.data.f_street = row
|
|
116
|
+
let arr = [], res = new Map()
|
|
117
|
+
this.data.gasArr = []
|
|
118
|
+
if (this.data.f_street) {
|
|
119
|
+
for (let i = 0; i < this.data.returnData.length; i++) {
|
|
120
|
+
if (this.data.returnData[i].f_street === this.data.f_street) {
|
|
121
|
+
arr.push(this.data.returnData[i].f_gas_area)
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
this.data.gasArr = arr.filter((a) => !res.has(a) && res.set(a, 1))
|
|
126
|
+
},
|
|
127
|
+
selectGasArea (row) {
|
|
128
|
+
this.data.f_gas_area = row
|
|
129
|
+
let arr = [], res = new Map()
|
|
130
|
+
this.data.pointArr = []
|
|
131
|
+
if (this.data.f_street) {
|
|
132
|
+
for (let i = 0; i < this.data.returnData.length; i++) {
|
|
133
|
+
if (this.data.returnData[i].f_gas_area === this.data.f_gas_area) {
|
|
134
|
+
arr.push(this.data.returnData[i].f_point_name)
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
this.data.pointArr = arr.filter((a) => !res.has(a) && res.set(a, 1))
|
|
139
|
+
console.log(this.pointArr)
|
|
140
|
+
},
|
|
141
|
+
selectePointName (row) {
|
|
142
|
+
this.data.f_point_name = row
|
|
143
|
+
this.$dispatch('changepage', this.data, 'selectpoint')
|
|
144
|
+
},
|
|
145
|
+
switchPage (type) {
|
|
146
|
+
if (type === 'last' && this.currentPage > 1) {
|
|
147
|
+
this.currentPage--
|
|
148
|
+
this.search()
|
|
149
|
+
return
|
|
150
|
+
}
|
|
151
|
+
if (type === 'next' && this.currentPage < this.totalPage) {
|
|
152
|
+
this.currentPage++
|
|
153
|
+
this.search()
|
|
154
|
+
return
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
confirm () {
|
|
158
|
+
this.currentPage = 1
|
|
159
|
+
this.search()
|
|
160
|
+
},
|
|
161
|
+
search () {
|
|
162
|
+
let condition = '1=1 and f_meter_state = \'未抄表\''
|
|
163
|
+
for (let item in this.model) {
|
|
164
|
+
if (this.model[item] !== '' && item !== 'startDate' && item !== 'endDate' && item !== 'f_address') {
|
|
165
|
+
condition += `and ${item} = '${this.model[item]}'`
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
if (this.model.f_address !== '') {
|
|
169
|
+
condition += `and f_address like '${this.model.f_address}%'`
|
|
170
|
+
}
|
|
171
|
+
if (AppData.params.f_userinfo_id !== undefined) {
|
|
172
|
+
condition += `and f_userinfo_id >= '${AppData.params.f_userinfo_id}'`
|
|
173
|
+
}
|
|
174
|
+
if (this.model.startDate === '') {
|
|
175
|
+
this.model.startDate = `${Util.toStandardYearMonth()}-01`
|
|
176
|
+
}
|
|
177
|
+
if (this.model.endDate === '') {
|
|
178
|
+
this.model.endDate = Util.toStandardDateString()
|
|
179
|
+
}
|
|
180
|
+
console.log(condition, 'condition')
|
|
181
|
+
condition = '1=1 and f_meter_state = \'未抄表\''
|
|
182
|
+
|
|
183
|
+
console.log('测试环境'+Vue.isTest)
|
|
184
|
+
// PC端
|
|
185
|
+
// this.$androidUtil.bzLogic('getUnHandMeterInfo', {
|
|
186
|
+
// data: {
|
|
187
|
+
// currentPage: this.currentPage,
|
|
188
|
+
// pageSize: this.pageSize,
|
|
189
|
+
// startDate: `${this.model.startDate}`,
|
|
190
|
+
// endDate: `${this.model.endDate}`,
|
|
191
|
+
// condition: condition,
|
|
192
|
+
// f_inputtor: `${this.userInfo.name}`
|
|
193
|
+
// }
|
|
194
|
+
// }).then((res) => {
|
|
195
|
+
// this.show = true
|
|
196
|
+
// let pages = parseInt(res.data.totalSize / this.pageSize)
|
|
197
|
+
// this.totalPage = parseInt(res.data.totalSize % this.pageSize) !== 0 ? pages + 1 : pages
|
|
198
|
+
// this.handcount = res.data.totalSize
|
|
199
|
+
// this.leftcount = res.data.leftSize
|
|
200
|
+
// this.hadcount = parseInt(this.handcount) - parseInt(this.leftcount)
|
|
201
|
+
// this.handinfo = [...res.data.data]
|
|
202
|
+
// this.data.returnData = res.data.data
|
|
203
|
+
// // this.mode.returnData = res.data.data
|
|
204
|
+
// this.initStreet()
|
|
205
|
+
// })
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
//安卓端
|
|
210
|
+
let res = this.$androidUtil.bzLogic('getUnHandMeterInfo', {
|
|
211
|
+
data: {
|
|
212
|
+
startDate: `${this.model.startDate}`,
|
|
213
|
+
endDate: `${this.model.endDate}`,
|
|
214
|
+
condition: condition,
|
|
215
|
+
f_inputtor: `${this.userInfo.name}`
|
|
216
|
+
}
|
|
217
|
+
})
|
|
218
|
+
if (res.code === 200) {
|
|
219
|
+
// console.log(JSON.stringify(res.data))
|
|
220
|
+
let pages = parseInt(res.data.length / this.pageSize)
|
|
221
|
+
this.totalPage = parseInt(res.data.totalSize % this.pageSize) !== 0 ? pages + 1 : pages
|
|
222
|
+
|
|
223
|
+
this.handcount = res.totalSize
|
|
224
|
+
this.leftcount = res.leftSize
|
|
225
|
+
this.hadcount = parseInt(this.handcount) - parseInt(this.leftcount)
|
|
226
|
+
this.handinfo = [...res.data]
|
|
227
|
+
this.data.returnData = res.data
|
|
228
|
+
this.initStreet()
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
},
|
|
233
|
+
events: {
|
|
234
|
+
'select' (val) {
|
|
235
|
+
this.$dispatch('changepage', val, 'save')
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
},
|
|
239
|
+
watch: {
|
|
240
|
+
'data.streetArr'(val){
|
|
241
|
+
if(this.data.streetArr.length=0){
|
|
242
|
+
this.data.gasArr = []
|
|
243
|
+
this.data.pointArr= []
|
|
244
|
+
this.data.streetArr = []
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
'data.returnData'(val){
|
|
248
|
+
this.userInfo = Object.assign({}, this.userInfo, Vue.user)
|
|
249
|
+
this.model.startDate = `${Util.toStandardYearMonth()}-01`
|
|
250
|
+
this.model.endDate = Util.toStandardDateString()
|
|
251
|
+
this.search()
|
|
252
|
+
// this.initStreet()
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
</script>
|
|
258
|
+
<style scoped>
|
|
259
|
+
.search_input {
|
|
260
|
+
border: 0;
|
|
261
|
+
outline: none;
|
|
262
|
+
}
|
|
263
|
+
.container{
|
|
264
|
+
/*padding: 10px 10px 6px 10px;*/
|
|
265
|
+
/*border: 1px solid rgba(235, 235, 235, 0.5);*/
|
|
266
|
+
}
|
|
267
|
+
.select-form {
|
|
268
|
+
border: 1px solid white;
|
|
269
|
+
border-radius: 2px;
|
|
270
|
+
/*padding: 0.25em;*/
|
|
271
|
+
/*margin: 10px;*/
|
|
272
|
+
background-color: #65b0e9;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.select-row p {
|
|
276
|
+
border-radius: 0.5em;
|
|
277
|
+
padding: 0.25em;
|
|
278
|
+
text-align: center;
|
|
279
|
+
background-color: #97a8be;
|
|
280
|
+
|
|
281
|
+
}
|
|
282
|
+
p.active{
|
|
283
|
+
background: #499edf;
|
|
284
|
+
}
|
|
285
|
+
/*.select-form p:hover {*/
|
|
286
|
+
/*background-color: ;*/
|
|
287
|
+
/*}*/
|
|
288
|
+
|
|
289
|
+
.select-form p, label {
|
|
290
|
+
/*margin: 10 auto;*/
|
|
291
|
+
|
|
292
|
+
display: block;
|
|
293
|
+
vertical-align: middle;
|
|
294
|
+
cursor: pointer;
|
|
295
|
+
text-align: center;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.row {
|
|
299
|
+
background-color: white;
|
|
300
|
+
padding: 10px 10px 3px 10px;
|
|
301
|
+
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.font {
|
|
305
|
+
font: 15px PingFang-SC-Medium;
|
|
306
|
+
color: #666666;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.btn-font {
|
|
310
|
+
font: 600 16px PingFang-SC-Bold;
|
|
311
|
+
color: #499EDF;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.btn-color {
|
|
315
|
+
background-color: #FFFFFF;
|
|
316
|
+
border-radius: 10px;
|
|
317
|
+
border: 1px solid #499EDF;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.input-font {
|
|
321
|
+
font: 15px PingFang-SC-Medium;
|
|
322
|
+
color: #333333;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
</style>
|