readmeter-changan 1.0.34 → 1.0.36
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/workspace.xml +15 -17
- package/build/dev-server.js +132 -132
- package/build/webpack.base.conf.js +75 -75
- 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 +761 -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 +0 -2
- package/src/components/readingmeter/PhoneHandplanInfo.vue +673 -643
- package/src/components/readingmeter/PictureArea.vue +156 -156
- package/src/components/readingmeter/PlanDown.vue +233 -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 +0 -1
- 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/.idea/ReadMeterClient.iml +0 -9
- package/.npmignore +0 -7
- package/hs_err_pid13284.log +0 -207
- package/yarn.lock +0 -7818
|
@@ -1,186 +1,186 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="row" >
|
|
3
|
-
<div class="row" style="overflow: auto">
|
|
4
|
-
<div class="col-xs-12 col-sm-12 col-md-12 row auto app-row " >
|
|
5
|
-
<div class="col-xs-4 ">
|
|
6
|
-
<img src="../../assets/抄表员.png" style="margin-bottom: 5px" alt="">
|
|
7
|
-
<span class="text-left font">抄表员</span>
|
|
8
|
-
</div>
|
|
9
|
-
<div class="col-xs-8 input-font">
|
|
10
|
-
{{userInfo.name}}
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
13
|
-
<div class="col-xs-12 col-sm-12 col-md-12 row auto app-row ">
|
|
14
|
-
<div class="col-xs-4 " style="margin-top: 8px">
|
|
15
|
-
<img src="../../assets/开始时间.png" style="margin-bottom: 5px;width: 32px" alt="">
|
|
16
|
-
<span class="text-left font">始时间</span>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="col-xs-8">
|
|
19
|
-
<datepicker
|
|
20
|
-
:value.sync="model.startDate"
|
|
21
|
-
:format="'yyyy-MM-dd'"
|
|
22
|
-
v-model="model.startDate"
|
|
23
|
-
:show-reset-button="reset" placeholder="请输入起时间" style="margin-bottom: 8px">
|
|
24
|
-
</datepicker>
|
|
25
|
-
<!-- <input type="text" class="search_input" v-model="model.startDate" placeholder="请输入起下发时间"/> -->
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
<div class=" col-xs-12 col-sm-12 col-md-12 row auto app-row ">
|
|
29
|
-
<div class="col-xs-4 " style="margin-top: 8px">
|
|
30
|
-
<img src="../../assets/结束时间.png" style="margin-bottom: 5px;width: 32px" alt="">
|
|
31
|
-
<span class="text-left font">止时间</span>
|
|
32
|
-
</div>
|
|
33
|
-
<div class="col-xs-8">
|
|
34
|
-
<datepicker
|
|
35
|
-
:value.sync="model.endDate"
|
|
36
|
-
:format="'yyyy-MM-dd'"
|
|
37
|
-
v-model="model.endDate"
|
|
38
|
-
:show-reset-button="reset" placeholder="请输入止时间" style="margin-bottom: 8px">
|
|
39
|
-
</datepicker>
|
|
40
|
-
<!-- <input type="text" class="search_input" v-model="model.endDate" placeholder="请输入止下发时间"/> -->
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
<div class="col-xs-12 col-sm-12 col-md-12 row auto app-row ">
|
|
44
|
-
<div class="col-xs-4 " style="margin-bottom: 6px">
|
|
45
|
-
<img src="../../assets/chaobiao.png" style="margin-bottom: 5px" alt="">
|
|
46
|
-
<span class="text-left font">抄表单条数</span>
|
|
47
|
-
</div>
|
|
48
|
-
<div class="col-xs-8 input-font" style="margin-top: 1px">
|
|
49
|
-
{{handcount}}
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
<div class="row auto text-center" style="margin-top: 10px;">
|
|
53
|
-
<div class="auto">
|
|
54
|
-
<button type="button" class="btn btn-color btn-font btn-lg" style="width: 45%; " @click="search()">搜索</button>
|
|
55
|
-
</div>
|
|
56
|
-
<div class="auto" style="margin-top: 20px;" >
|
|
57
|
-
<button type="button" class="btn btn-color btn-font btn-lg" style="width: 45%;" @click="handUpdate()">全部上传</button>
|
|
58
|
-
</div>
|
|
59
|
-
|
|
60
|
-
</div>
|
|
61
|
-
<div class="auto" style="padding-top: 20px;">
|
|
62
|
-
<finish-hand-info v-if="showHandInfo" :data="rows"></finish-hand-info>
|
|
63
|
-
</div>
|
|
64
|
-
<div class="auto" v-if="!showHandInfo">
|
|
65
|
-
<p class="text-warning" style="padding: 0 10px">
|
|
66
|
-
暂无可操作的已抄表信息
|
|
67
|
-
</p>
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
</div>
|
|
71
|
-
</template>
|
|
72
|
-
<script>
|
|
73
|
-
import AppData from '../../stores/AppData'
|
|
74
|
-
import * as Util from '../Util'
|
|
75
|
-
import Vue from 'vue'
|
|
76
|
-
export default {
|
|
77
|
-
title: '计划管理',
|
|
78
|
-
data () {
|
|
79
|
-
return {
|
|
80
|
-
model: {
|
|
81
|
-
startDate: '',
|
|
82
|
-
endDate: ''
|
|
83
|
-
},
|
|
84
|
-
showHandInfo: false,
|
|
85
|
-
show: false,
|
|
86
|
-
rows: {},
|
|
87
|
-
userInfo: {},
|
|
88
|
-
handcount: 0
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
ready () {
|
|
92
|
-
this.userInfo = Object.assign({}, this.userInfo, Vue.user)
|
|
93
|
-
this.model.startDate = Util.toStandardDateString()
|
|
94
|
-
this.model.endDate = Util.toStandardDateString()
|
|
95
|
-
this.search()
|
|
96
|
-
},
|
|
97
|
-
methods: {
|
|
98
|
-
search () {
|
|
99
|
-
if (this.model.startDate === '') {
|
|
100
|
-
this.model.startDate = Util.toStandardDateString()
|
|
101
|
-
}
|
|
102
|
-
if (this.model.endDate === '') {
|
|
103
|
-
this.model.endDate = Util.toStandardDateString()
|
|
104
|
-
}
|
|
105
|
-
let params = {
|
|
106
|
-
condition: "1 = 1 and f_meter_state = '待上传'",
|
|
107
|
-
startDate: this.model.startDate,
|
|
108
|
-
endDate: this.model.endDate,
|
|
109
|
-
f_inputtor: this.userInfo.name,
|
|
110
|
-
f_meter_state : '待上传'
|
|
111
|
-
}
|
|
112
|
-
//模拟pc
|
|
113
|
-
// this.$androidUtil.bzLogic('getHandMeterInfo', {data: params}) .then((result) => {
|
|
114
|
-
// console.log(result.data)
|
|
115
|
-
// this.show = true
|
|
116
|
-
// this.showHandInfo = true
|
|
117
|
-
// this.rows = result.data.data.data
|
|
118
|
-
// })
|
|
119
|
-
|
|
120
|
-
//安卓
|
|
121
|
-
let result = this.$androidUtil.bzLogic('getHandMeterInfo', {data: params})
|
|
122
|
-
// console.log('计划上传'+result)
|
|
123
|
-
// console.log('计划上传'+JSON.stringify(result))
|
|
124
|
-
if (result.data.code === 200) {
|
|
125
|
-
if (result.data.data.length > 0) {
|
|
126
|
-
|
|
127
|
-
this.show = true
|
|
128
|
-
this.showHandInfo = true
|
|
129
|
-
this.rows = [...result.data.data]
|
|
130
|
-
this.handcount = this.rows.length
|
|
131
|
-
}else{
|
|
132
|
-
this.showHandInfo = false
|
|
133
|
-
this.show = false
|
|
134
|
-
this.handcount = 0
|
|
135
|
-
}
|
|
136
|
-
} else {
|
|
137
|
-
this.$showMessage(`加载数据失败, 返回码: ${result.code}, 错误信息:${result.data}`)
|
|
138
|
-
this.showHandInfo = false
|
|
139
|
-
this.show = false
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
handUpdate () {
|
|
143
|
-
|
|
144
|
-
if(this.handcount<=0){
|
|
145
|
-
this.$showMessage('暂无待上传抄表单')
|
|
146
|
-
return
|
|
147
|
-
}else{
|
|
148
|
-
let result = this.$androidUtil.bzLogic('uploadHandMeterAll', {data: this.rows})
|
|
149
|
-
if(result.state === 0){
|
|
150
|
-
this.$showMessage(`${result.successcount}条抄表单上传成功,${result.failedcount}条抄表单上传失败!`)
|
|
151
|
-
}
|
|
152
|
-
this.search()
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
</script>
|
|
159
|
-
<style scoped>
|
|
160
|
-
.search_input {
|
|
161
|
-
border: 0;
|
|
162
|
-
outline: none;
|
|
163
|
-
}
|
|
164
|
-
.app-row {
|
|
165
|
-
background-color: white;
|
|
166
|
-
padding: 10px 10px 3px 10px;
|
|
167
|
-
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
|
168
|
-
}
|
|
169
|
-
.font{
|
|
170
|
-
font: 15px PingFang-SC-Medium;
|
|
171
|
-
color: #666666;
|
|
172
|
-
}
|
|
173
|
-
.btn-font{
|
|
174
|
-
font:600 16px PingFang-SC-Bold;
|
|
175
|
-
color: #499EDF;
|
|
176
|
-
}
|
|
177
|
-
.btn-color{
|
|
178
|
-
background-color: #FFFFFF;
|
|
179
|
-
border-radius: 10px ;
|
|
180
|
-
border: 1px solid #499EDF;
|
|
181
|
-
}
|
|
182
|
-
.input-font{
|
|
183
|
-
font: 15px PingFang-SC-Medium;
|
|
184
|
-
color: #333333;
|
|
185
|
-
}
|
|
186
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="row" >
|
|
3
|
+
<div class="row" style="overflow: auto">
|
|
4
|
+
<div class="col-xs-12 col-sm-12 col-md-12 row auto app-row " >
|
|
5
|
+
<div class="col-xs-4 ">
|
|
6
|
+
<img src="../../assets/抄表员.png" style="margin-bottom: 5px" alt="">
|
|
7
|
+
<span class="text-left font">抄表员</span>
|
|
8
|
+
</div>
|
|
9
|
+
<div class="col-xs-8 input-font">
|
|
10
|
+
{{userInfo.name}}
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="col-xs-12 col-sm-12 col-md-12 row auto app-row ">
|
|
14
|
+
<div class="col-xs-4 " style="margin-top: 8px">
|
|
15
|
+
<img src="../../assets/开始时间.png" style="margin-bottom: 5px;width: 32px" alt="">
|
|
16
|
+
<span class="text-left font">始时间</span>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="col-xs-8">
|
|
19
|
+
<datepicker
|
|
20
|
+
:value.sync="model.startDate"
|
|
21
|
+
:format="'yyyy-MM-dd'"
|
|
22
|
+
v-model="model.startDate"
|
|
23
|
+
:show-reset-button="reset" placeholder="请输入起时间" style="margin-bottom: 8px">
|
|
24
|
+
</datepicker>
|
|
25
|
+
<!-- <input type="text" class="search_input" v-model="model.startDate" placeholder="请输入起下发时间"/> -->
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
<div class=" col-xs-12 col-sm-12 col-md-12 row auto app-row ">
|
|
29
|
+
<div class="col-xs-4 " style="margin-top: 8px">
|
|
30
|
+
<img src="../../assets/结束时间.png" style="margin-bottom: 5px;width: 32px" alt="">
|
|
31
|
+
<span class="text-left font">止时间</span>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="col-xs-8">
|
|
34
|
+
<datepicker
|
|
35
|
+
:value.sync="model.endDate"
|
|
36
|
+
:format="'yyyy-MM-dd'"
|
|
37
|
+
v-model="model.endDate"
|
|
38
|
+
:show-reset-button="reset" placeholder="请输入止时间" style="margin-bottom: 8px">
|
|
39
|
+
</datepicker>
|
|
40
|
+
<!-- <input type="text" class="search_input" v-model="model.endDate" placeholder="请输入止下发时间"/> -->
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="col-xs-12 col-sm-12 col-md-12 row auto app-row ">
|
|
44
|
+
<div class="col-xs-4 " style="margin-bottom: 6px">
|
|
45
|
+
<img src="../../assets/chaobiao.png" style="margin-bottom: 5px" alt="">
|
|
46
|
+
<span class="text-left font">抄表单条数</span>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="col-xs-8 input-font" style="margin-top: 1px">
|
|
49
|
+
{{handcount}}
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="row auto text-center" style="margin-top: 10px;">
|
|
53
|
+
<div class="auto">
|
|
54
|
+
<button type="button" class="btn btn-color btn-font btn-lg" style="width: 45%; " @click="search()">搜索</button>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="auto" style="margin-top: 20px;" >
|
|
57
|
+
<button type="button" class="btn btn-color btn-font btn-lg" style="width: 45%;" @click="handUpdate()">全部上传</button>
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
</div>
|
|
61
|
+
<div class="auto" style="padding-top: 20px;">
|
|
62
|
+
<finish-hand-info v-if="showHandInfo" :data="rows"></finish-hand-info>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="auto" v-if="!showHandInfo">
|
|
65
|
+
<p class="text-warning" style="padding: 0 10px">
|
|
66
|
+
暂无可操作的已抄表信息
|
|
67
|
+
</p>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
</template>
|
|
72
|
+
<script>
|
|
73
|
+
import AppData from '../../stores/AppData'
|
|
74
|
+
import * as Util from '../Util'
|
|
75
|
+
import Vue from 'vue'
|
|
76
|
+
export default {
|
|
77
|
+
title: '计划管理',
|
|
78
|
+
data () {
|
|
79
|
+
return {
|
|
80
|
+
model: {
|
|
81
|
+
startDate: '',
|
|
82
|
+
endDate: ''
|
|
83
|
+
},
|
|
84
|
+
showHandInfo: false,
|
|
85
|
+
show: false,
|
|
86
|
+
rows: {},
|
|
87
|
+
userInfo: {},
|
|
88
|
+
handcount: 0
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
ready () {
|
|
92
|
+
this.userInfo = Object.assign({}, this.userInfo, Vue.user)
|
|
93
|
+
this.model.startDate = Util.toStandardDateString()
|
|
94
|
+
this.model.endDate = Util.toStandardDateString()
|
|
95
|
+
this.search()
|
|
96
|
+
},
|
|
97
|
+
methods: {
|
|
98
|
+
search () {
|
|
99
|
+
if (this.model.startDate === '') {
|
|
100
|
+
this.model.startDate = Util.toStandardDateString()
|
|
101
|
+
}
|
|
102
|
+
if (this.model.endDate === '') {
|
|
103
|
+
this.model.endDate = Util.toStandardDateString()
|
|
104
|
+
}
|
|
105
|
+
let params = {
|
|
106
|
+
condition: "1 = 1 and f_meter_state = '待上传'",
|
|
107
|
+
startDate: this.model.startDate,
|
|
108
|
+
endDate: this.model.endDate,
|
|
109
|
+
f_inputtor: this.userInfo.name,
|
|
110
|
+
f_meter_state : '待上传'
|
|
111
|
+
}
|
|
112
|
+
//模拟pc
|
|
113
|
+
// this.$androidUtil.bzLogic('getHandMeterInfo', {data: params}) .then((result) => {
|
|
114
|
+
// console.log(result.data)
|
|
115
|
+
// this.show = true
|
|
116
|
+
// this.showHandInfo = true
|
|
117
|
+
// this.rows = result.data.data.data
|
|
118
|
+
// })
|
|
119
|
+
|
|
120
|
+
//安卓
|
|
121
|
+
let result = this.$androidUtil.bzLogic('getHandMeterInfo', {data: params})
|
|
122
|
+
// console.log('计划上传'+result)
|
|
123
|
+
// console.log('计划上传'+JSON.stringify(result))
|
|
124
|
+
if (result.data.code === 200) {
|
|
125
|
+
if (result.data.data.length > 0) {
|
|
126
|
+
|
|
127
|
+
this.show = true
|
|
128
|
+
this.showHandInfo = true
|
|
129
|
+
this.rows = [...result.data.data]
|
|
130
|
+
this.handcount = this.rows.length
|
|
131
|
+
}else{
|
|
132
|
+
this.showHandInfo = false
|
|
133
|
+
this.show = false
|
|
134
|
+
this.handcount = 0
|
|
135
|
+
}
|
|
136
|
+
} else {
|
|
137
|
+
this.$showMessage(`加载数据失败, 返回码: ${result.code}, 错误信息:${result.data}`)
|
|
138
|
+
this.showHandInfo = false
|
|
139
|
+
this.show = false
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
handUpdate () {
|
|
143
|
+
|
|
144
|
+
if(this.handcount<=0){
|
|
145
|
+
this.$showMessage('暂无待上传抄表单')
|
|
146
|
+
return
|
|
147
|
+
}else{
|
|
148
|
+
let result = this.$androidUtil.bzLogic('uploadHandMeterAll', {data: this.rows})
|
|
149
|
+
if(result.state === 0){
|
|
150
|
+
this.$showMessage(`${result.successcount}条抄表单上传成功,${result.failedcount}条抄表单上传失败!`)
|
|
151
|
+
}
|
|
152
|
+
this.search()
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
</script>
|
|
159
|
+
<style scoped>
|
|
160
|
+
.search_input {
|
|
161
|
+
border: 0;
|
|
162
|
+
outline: none;
|
|
163
|
+
}
|
|
164
|
+
.app-row {
|
|
165
|
+
background-color: white;
|
|
166
|
+
padding: 10px 10px 3px 10px;
|
|
167
|
+
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
|
168
|
+
}
|
|
169
|
+
.font{
|
|
170
|
+
font: 15px PingFang-SC-Medium;
|
|
171
|
+
color: #666666;
|
|
172
|
+
}
|
|
173
|
+
.btn-font{
|
|
174
|
+
font:600 16px PingFang-SC-Bold;
|
|
175
|
+
color: #499EDF;
|
|
176
|
+
}
|
|
177
|
+
.btn-color{
|
|
178
|
+
background-color: #FFFFFF;
|
|
179
|
+
border-radius: 10px ;
|
|
180
|
+
border: 1px solid #499EDF;
|
|
181
|
+
}
|
|
182
|
+
.input-font{
|
|
183
|
+
font: 15px PingFang-SC-Medium;
|
|
184
|
+
color: #333333;
|
|
185
|
+
}
|
|
186
|
+
</style>
|