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.
Files changed (41) hide show
  1. package/.idea/workspace.xml +15 -17
  2. package/build/dev-server.js +132 -132
  3. package/build/webpack.base.conf.js +75 -75
  4. package/package.json +1 -1
  5. package/package.json.bak +99 -99
  6. package/src/AndroidPlugin.js +28 -28
  7. package/src/App.vue +74 -74
  8. package/src/components/readingmeter/CheckInfo.vue +761 -618
  9. package/src/components/readingmeter/FinishHandInfo.vue +75 -75
  10. package/src/components/readingmeter/FinishHandInfocopy.vue +99 -99
  11. package/src/components/readingmeter/HandInfo.vue +87 -87
  12. package/src/components/readingmeter/HandMessage.vue +40 -40
  13. package/src/components/readingmeter/HistoryHandInfo.vue +114 -114
  14. package/src/components/readingmeter/MeterInfo.vue +183 -183
  15. package/src/components/readingmeter/PhoneHand.vue +93 -93
  16. package/src/components/readingmeter/PhoneHandHome.vue +0 -2
  17. package/src/components/readingmeter/PhoneHandplanInfo.vue +673 -643
  18. package/src/components/readingmeter/PictureArea.vue +156 -156
  19. package/src/components/readingmeter/PlanDown.vue +233 -232
  20. package/src/components/readingmeter/PlanUpdate.vue +186 -186
  21. package/src/components/readingmeter/ReadMeterCenter.vue +325 -325
  22. package/src/components/readingmeter/ReadMeterInfo.vue +349 -349
  23. package/src/components/readingmeter/ReadMeterInfoChangan.vue +1 -1
  24. package/src/components/readingmeter/SellHistory.vue +36 -36
  25. package/src/components/readingmeter/SellInfo.vue +88 -88
  26. package/src/components/readingmeter/UserInfo.vue +0 -1
  27. package/src/components/server/AppHeader.vue +65 -65
  28. package/src/components/server/ReadMeterHome.vue +192 -192
  29. package/src/components/server/ReadMeterLogin.vue +161 -161
  30. package/src/components/server/ReadMeterNavBottom.vue +119 -119
  31. package/src/components/server/ReadMeterRoute.vue +79 -79
  32. package/src/components/server/ReadMeterTop.vue +61 -61
  33. package/src/components/server/ReadMeterTopcopy.vue +53 -53
  34. package/src/expandcss.less +668 -668
  35. package/src/main.js +23 -23
  36. package/src/readmeter-android.js +34 -34
  37. package/src/readmeter.js +54 -54
  38. package/.idea/ReadMeterClient.iml +0 -9
  39. package/.npmignore +0 -7
  40. package/hs_err_pid13284.log +0 -207
  41. package/yarn.lock +0 -7818
@@ -1,618 +1,761 @@
1
- <template>
2
- <div class="auto app-text" style="margin-top: 5px;">
3
- <header class="head">
4
- 周检表信息
5
- </header>
6
- <div class="panel" style="padding: 0 10px 5px 10px;">
7
- <div class="panel-body panel-self">
8
- <div class="row auto app-row col-xs-12 col-sm-6 col-md-6">
9
- <p class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">上次抄表日期</p>
10
- <p class="panel-title col-xs-8 col-sm-8 col-md-8 text-left font">{{ model.f_last_hand_date }}</p>
11
- </div>
12
- <div class="row auto app-row col-xs-12 col-sm-6 col-md-6">
13
- <p class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">上次基表底数</p>
14
- <p class="panel-title col-xs-8 col-sm-8 col-md-8 text-left font">{{ model.f_last_tablebase }}</p>
15
- </div>
16
- <div class="row auto app-row col-xs-12 col-sm-6 col-md-6">
17
- <p class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">上次剩余气量</p>
18
- <p class="panel-title col-xs-8 col-sm-8 col-md-8 text-left font">{{ model.f_last_lcd }}</p>
19
- </div>
20
- <div class="row auto app-row col-xs-12 col-sm-6 col-md-6">
21
- <p class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">上次剩余金额</p>
22
- <p class="panel-title col-xs-8 col-sm-8 col-md-8 text-left font">{{ model.f_iclastmoney}}</p>
23
- </div>
24
- <div class=" col-xs-12 col-sm-12 col-md-12 bg-white row auto app-row col-xs-12 ">
25
- <label for="f_card_id" class="panel-title col-xs-4 col-sm-2 col-md-2 text-left font">总购气量</label>
26
- <div class="col-xs-6 col-sm-4 col-md-4 ">
27
- <input type="number" id="f_card_id" class="form-control font " v-model="model.f_sumgas" readonly>
28
- </div>
29
- <div class="col-sm-2 col-xs-2 col-sm-offset-1 col-md-2 col-md-offset-1">
30
- <button type="button" name="button" class="btn btn-primary" @click="getSumGas(model.card_id)"
31
- >详情
32
- </button>
33
- </div>
34
- </div>
35
-
36
- <div class="row auto app-row col-xs-12 col-sm-3 col-md-3">
37
- <p class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">期间购气:</p>
38
- <p class="panel-title col-xs-8 col-sm-6 col-md-6 text-left font">{{ model.f_sumgas_moment}}</p>
39
- </div>
40
- <div class="row auto app-row col-xs-12 col-sm-3 col-md-3">
41
- <p class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">上次未充:</p>
42
- <p class="panel-title col-xs-8 col-sm-6 col-md-6 text-left font">{{ model.f_nogasvalue }}</p>
43
- </div>
44
- <div class="row auto app-row col-xs-12 col-sm-3 col-md-3">
45
- <p class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">本次已充:</p>
46
- <p class="panel-title col-xs-8 col-sm-6 col-md-6 text-left font">{{ model.f_hascharge }}</p>
47
- </div>
48
- <div class="row auto app-row col-xs-12 col-sm-3 col-md-3">
49
- <p class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">本次未充:</p>
50
- <p class="panel-title col-xs-8 col-sm-6 col-md-6 text-left font">{{ model.f_hasnotcharge }}</p>
51
- </div>
52
- <div class="row auto app-row col-xs-12 col-sm-12 col-md-12 bg-white ">
53
- <div class="auto col-xs-12 col-sm-4 col-md-4 bg-white app-row ">
54
- <label for="f_new_tablebase" class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">基表底数</label>
55
- <div class="col-xs-8 col-sm-6 col-md-6 ">
56
- <input type="number" id="f_new_tablebase" class="form-control font " v-el:f_new_tablebase @blur="getMeterMessage()" v-model="model.f_new_tablebase" v-next-el="f_new_lcd">
57
- </div>
58
- </div>
59
- <div class="auto col-xs-12 col-sm-4 col-md-4 bg-white app-row ">
60
- <label for="f_tablesnapsgas" class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">基表走气量</label>
61
- <div class="col-xs-8 col-sm-6 col-md-6 ">
62
- <input type="number" id="f_card_id" class="form-control font " v-model="model.f_tablesnapsgas" readonly>
63
- </div>
64
- </div>
65
- <div class="auto col-xs-12 col-sm-4 col-md-4 bg-white app-row ">
66
- <label for="f_meter_repair" class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">表维修</label>
67
- <div class="col-xs-8 col-sm-6 col-md-6 ">
68
- <input type="number" id="f_meter_repair" class="form-control font " v-model="model.f_meter_repair" readonly>
69
- </div>
70
- </div>
71
- </div>
72
- <div class="row auto app-row col-xs-12 col-sm-12 col-md-12 bg-white ">
73
- <div class="auto col-xs-12 col-sm-4 col-md-4 bg-white app-row ">
74
- <label for="f_new_tablebase" class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">卡剩余气量</label>
75
- <div class="col-xs-8 col-sm-6 col-md-6 ">
76
- <input type="number" id="f_new_lcd" class="form-control font " v-el:f_new_lcd @blur="getCardMessage()" v-model="model.f_new_lcd" v-next-el="f_insflow">
77
- </div>
78
- </div>
79
- <div class="auto col-xs-12 col-sm-4 col-md-4 bg-white app-row ">
80
- <label for="f_icsnapsgas" class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">IC卡扣气量</label>
81
- <div class="col-xs-8 col-sm-6 col-md-6 ">
82
- <input type="number" id="f_icsnapsgas" class="form-control font " v-model="model.f_icsnapsgas" readonly>
83
- </div>
84
- </div>
85
- <div class="auto col-xs-12 col-sm-4 col-md-4 bg-white app-row ">
86
- <label for="f_card_repair" class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">卡维修</label>
87
- <div class="col-xs-8 col-sm-6 col-md-6 ">
88
- <input type="number" id="f_card_repair" class="form-control font " v-model="model.f_card_repair" readonly>
89
- </div>
90
- </div>
91
- </div>
92
- <div class="row auto app-row col-xs-12 col-sm-12 col-md-12 bg-white ">
93
- <div class="auto col-xs-12 col-sm-4 col-md-4 bg-white app-row ">
94
- <label for="f_curbalance" class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">卡剩余金额</label>
95
- <div class="col-xs-8 col-sm-6 col-md-6 ">
96
- <input type="number" id="f_curbalance" class="form-control font " v-model="model.f_curbalance" @blur="getMoneyMessage()" >
97
- </div>
98
- </div>
99
-
100
- <div class="auto col-xs-12 col-sm-4 col-md-4 bg-white app-row ">
101
- <label for="f_datacomparison" class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">数据对比</label>
102
- <div class="col-xs-8 col-sm-6 col-md-6 ">
103
- <input type="number" id="f_datacomparison" class="form-control font " v-model="model.f_datacomparison" readonly>
104
- </div>
105
- </div>
106
- <div class="row auto bg-white app-row col-xs-12 col-sm-4 col-md-4">
107
- <p class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">抄表状态</p>
108
- <!--<p class="panel-title col-xs-8 col-sm-6 col-md-6 text-left font">{{ model.f_result_state}}</p>-->
109
- <div class="col-xs-8 col-sm-6 col-md-6 ">
110
- <input type="number" id="f_datacomparison" class="form-control font " v-model="model.f_result_state" readonly>
111
- </div>
112
- </div>
113
- </div>
114
- <div class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
115
- <label for="f_insflow" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">瞬时流量</label>
116
- <div class="col-xs-8 col-sm-8 col-md-8 ">
117
- <input type="number" id="f_insflow" class="form-control font " v-el:f_insflow v-model="model.f_insflow" v-next-el="f_temperature">
118
- </div>
119
- </div>
120
-
121
- <div class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
122
- <label for="f_temperature" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">温度</label>
123
- <div class="col-xs-8 col-sm-8 col-md-8 ">
124
- <input type="number" id="f_temperature" class="form-control font " v-el:f_temperature v-model="model.f_temperature" v-next-el="f_pressure">
125
- </div>
126
- </div>
127
-
128
- <div class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
129
- <label for="f_pressure" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">压力</label>
130
- <div class="col-xs-8 col-sm-8 col-md-8 ">
131
- <input type="number" id="f_pressure" class="form-control font" v-el:f_pressure v-model="model.f_pressure" v-next-el="f_condition">
132
- </div>
133
- </div>
134
- <div class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
135
- <label for="f_condition" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">工况</label>
136
- <div class="col-xs-8 col-sm-8 col-md-8 ">
137
- <input type="number" id="f_condition" class="form-control font "v-el:f_condition v-model="model.f_condition" v-next-el="f_remark">
138
- </div>
139
- </div>
140
- <div class="auto col-xs-12 col-sm-12 col-md-12 bg-white " style="padding: 0.5em" >
141
-
142
- <p class="panel-title col-xs-4 col-sm-2 col-md-2 text-left font">换表</p>
143
- <div class="col-xs-4 col-sm-2 col-md-2">
144
- <input type="radio" name="f_if_change" id="f_if_change" value="是" v-model="model.f_if_change" >
145
- </div>
146
- <div class="col-xs-4 col-sm-2 col-md-2">
147
- <input type="radio" name="f_if_change" id="f_if_change" value="否" v-model="model.f_if_change" checked> 否
148
- </div>
149
-
150
- </div>
151
- <div class="row auto app-row col-xs-12 col-sm-12 col-md-12 bg-white ">
152
- <label for="f_mark" class="panel-title col-xs-4 col-sm-2 col-md-2 text-left font">备注</label>
153
- <div class="col-xs-8 col-sm-10 col-md-10 ">
154
- <input type="text" id="f_remark" class="form-control font" v-el:f_remark v-model="model.f_remark" >
155
- </div>
156
- </div>
157
- <div class="auto row col-sm-12 col-xs-12 col-md-12 bg-white">
158
- <div class="auto col-sm-6 col-xs-6 col-md-6">
159
- <input class="magic-checkbox" type="checkbox" id="f_check_install" :true-value="'是'" :false-value="''"
160
- v-model="model.f_check_install" >
161
- <label class="text-left font" for="f_check_install">替换表安装信息</label>
162
- </div>
163
- </div>
164
- <div v-if="!model.f_check_unstall && model.f_check_install " class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
165
- <label for="f_weekchecknum" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表安装时表底数</label>
166
- <div class="col-xs-8 col-sm-8 col-md-8 ">
167
- <input type="number" id="f_weekchecknum" class="form-control font " v-el:f_weekchecknum v-model="model.f_weekchecknum" v-next-el="f_weekcheckicnum">
168
- </div>
169
- </div>
170
-
171
- <div v-if="!model.f_check_unstall && model.f_check_install " class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
172
- <label for="f_weekcheckicnum" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表安装时剩余气量</label>
173
- <div class="col-xs-8 col-sm-8 col-md-8 ">
174
- <input type="number" id="f_weekcheckicnum" class="form-control font " v-el:f_weekcheckicnum v-model="model.f_weekcheckicnum" v-next-el="f_weekchecksn">
175
- </div>
176
-
177
- </div>
178
-
179
-
180
-
181
- <div v-if="!model.f_check_unstall && model.f_check_install " class="auto col-xs-12 col-sm-12 col-md-12 bg-white ">
182
- <div class="col-xs-12 col-sm-6 col-md-6">
183
- <label for="f_weekchecksn" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表表号</label>
184
- <div class="col-xs-8 col-sm-8 col-md-8 ">
185
- <input type="text" id="f_weekchecksn" class="form-control font" v-el:f_weekchecksn v-model="model.f_weekchecksn" >
186
- </div>
187
- </div>
188
- </div>
189
- <div class="auto row bg-white col-sm-12 col-xs-12 col-md-12">
190
- <div class="auto col-sm-6 col-xs-6 col-md-6">
191
- <input class="magic-checkbox" type="checkbox" id="f_check_unstall" :true-value="'是'" :false-value="''"
192
- v-model="model.f_check_unstall" >
193
- <label class="text-left font" for="f_check_unstall">替换表卸载信息</label>
194
- </div>
195
- </div>
196
- <div v-if="model.f_check_unstall && !model.f_check_install " class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
197
- <label for="f_weekchecknum" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表上次读数</label>
198
- <div class="col-xs-8 col-sm-8 col-md-8 ">
199
- <input type="number" id="f_weekchecknum" class="form-control font " v-model="model.f_weekchecknum" readonly>
200
- </div>
201
- </div>
202
-
203
- <div v-if="model.f_check_unstall && !model.f_check_install " class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
204
- <label for="f_weekcheckicnum" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">上次剩余气量</label>
205
- <div class="col-xs-8 col-sm-8 col-md-8 ">
206
- <input type="number" id="f_weekcheckicnum" class="form-control font " v-model="model.f_weekcheckicnum" readonly>
207
- </div>
208
- </div>
209
-
210
- <div v-if="model.f_check_unstall && !model.f_check_install " class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
211
- <label for="f_weekcheckdishu" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表底数</label>
212
- <div class="col-xs-8 col-sm-8 col-md-8 ">
213
- <input type="number" id="f_weekcheckdishu" class="form-control font " v-el:f_weekcheckdishu v-model="model.f_weekcheckdishu" @blur="getWeekMeterMessage()" v-next-el="f_weekcheckicdishu">
214
- </div>
215
- </div>
216
- <div v-if="model.f_check_unstall && !model.f_check_install " class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
217
- <label for="f_weektablesnapsgas" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">走气量</label>
218
- <div class="col-xs-8 col-sm-8 col-md-8 ">
219
- <input type="number" id="f_weektablesnapsgas" class="form-control font " v-el:f_weektablesnapsgas v-model="model.f_weektablesnapsgas" readonly>
220
- </div>
221
- </div>
222
-
223
- <div v-if="model.f_check_unstall && !model.f_check_install " class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
224
- <label for="f_temperature" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">卡剩余气量</label>
225
- <div class="col-xs-8 col-sm-8 col-md-8 ">
226
- <input type="number" id="f_weekcheckicdishu" class="form-control font" v-el:f_weekcheckicdishu v-model="model.f_weekcheckicdishu" @blur="getWeekCardMessage()">
227
- </div>
228
- </div>
229
-
230
- <div v-if="model.f_check_unstall && !model.f_check_install " class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
231
- <label for="f_weekicsnapsgas" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">扣气量</label>
232
- <div class="col-xs-8 col-sm-8 col-md-8 ">
233
- <input type="number" id="f_weekicsnapsgas" class="form-control font " v-model="model.f_weekicsnapsgas" readonly>
234
- </div>
235
- </div>
236
- <div class="row auto bg-white app-row col-xs-12 col-sm-12 col-md-12" v-if="model.f_check_unstall && !model.f_check_install">
237
- <p class="panel-title col-xs-2 col-sm-2 col-md-2 text-left font">抄表状态</p>
238
- <div class="col-xs-4 col-sm-4 col-md-4 ">
239
- <input type="text" id="f_result_state" class="form-control font " v-model="model.f_result_state" readonly>
240
- </div>
241
- </div>
242
- <div class="row auto col-xs-12 col-sm-12 col-md-12 mt-20">
243
- <!--<img-area :model="model.imgs"></img-area>-->
244
- <picture-area :model="model.imgs"></picture-area>
245
- </div>
246
- <div class="row col-xs-12 col-sm-12 col-md-12 auto mt-20" v-if="!data.hidden">
247
- <div class="col-xs-2 col-sm-2 col-md-2 col-xs-offset-4 col-sm-offset-4 col-md-offset-4">
248
- <button type="button" class="btn btn-lg btn-color btn-font" @click="save()">保存</button>
249
- </div>
250
- <div class="col-xs-2 col-sm-2 col-md-2 col-xs-offset-1 col-sm-offset-1 col-md-offset-1" >
251
- <button type="button" class="btn btn-color btn-font btn-lg" @click="commit()">提交</button>
252
- </div>
253
- </div>
254
- </div>
255
- </div>
256
- </div>
257
- </template>
258
- <script>
259
- import * as Util from './../Util'
260
- import Vue from 'vue'
261
- export default {
262
- title: '手机单户抄表',
263
- data () {
264
- return {
265
- model: {
266
- f_mark:'',
267
- f_condition:'',
268
- f_pressure:'',
269
- f_temperature:'',
270
- f_check_install:'',
271
- f_check_unstall:'',
272
- imgInfo: '',
273
- imgName: '',
274
- sumgas_moment:0,
275
- f_datacomparison:0,
276
- f_weekcheckicnum:'',
277
- f_weekchecknum:'',
278
- f_weekchecksn:'',
279
- f_weekchecknum:'',
280
- f_weekcheckicnum:'',
281
- f_weekcheckdishu:'',
282
- f_insflow:0,
283
- f_weekcheckicdishu:'',
284
- f_oughtamount: 0,
285
- f_new_tablebase: 0,
286
- f_new_lcd:0,
287
- f_curbalance:0,
288
- f_meter_repair:0,
289
- f_card_repair:0,
290
- f_new_tablebase:0,
291
- f_tablesnapsgas:0,
292
- f_icsnapsgas:0,
293
- imgs:[]
294
- },
295
- imgurl:'',
296
- system:'',
297
- flag: false
298
- }
299
- },
300
- props: {
301
- data: {
302
- type: Object,
303
- default: function () {
304
- return {
305
- }
306
- }
307
- },
308
- showmessage:true,
309
- type: {
310
- type: String,
311
- default: 'save'
312
- }
313
- },
314
- watch:{
315
- 'model.f_check_install'(val){
316
- if(val){
317
- this.model.f_check_unstall = ''
318
- }
319
- },
320
- 'model.f_check_unstall'(val){
321
- if(val){
322
- this.model.f_check_install = ''
323
- }
324
- },
325
- 'data.f_download'(val){
326
- if(this.data.f_download){
327
- // this.$showMessage('数据更新成功,请核对数据重新计算')
328
- this.data.f_new_lcd = this.model.f_new_lcd,
329
- this.data.f_tablebase = this.model.f_new_tablebase,
330
- this.data.f_weekcheckdishu = this.model.f_weekcheckdishu,
331
- this.data.f_weekcheckicdishu = this.model.f_weekcheckicdishu
332
- }
333
-
334
- // this.model = Object.assign({}, this.model, this.data)
335
- this.updatedata()
336
- }
337
- },
338
- ready () {
339
- // 抄表按钮可以点击
340
- this.flag = true
341
- this.updatedata()
342
- },
343
- methods: {
344
- updatedata(){
345
- this.model = Object.assign({}, this.model, this.data)
346
- if(this.type === 'save'){
347
- this.model.f_sumgas = this.data.f_sumgas?this.data.f_sumgas:0,
348
- this.model.f_nogasvalue = this.data.f_nogasvalue?this.data.f_nogasvalue:0,
349
- this.model.f_hasnotcharge = this.data.f_hasnotcharge?this.data.f_hasnotcharge:0,
350
- this.model.f_hascharge = this.data.f_hascharge?this.data.f_hascharge:0,
351
- this.model.f_last_lcd = this.data.f_last_lcd?this.data.f_last_lcd:0,
352
- this.model.f_new_tablebase=this.data.f_new_tablebase?this.data.f_new_tablebase:0,
353
- this.model.f_new_lcd= this.data.f_new_lcd?this.data.f_new_lcd:0,
354
- this.model.f_tablesnapsgas=this.data.f_tablesnapsgas?this.data.f_tablesnapsgas:0,
355
- this.model.f_meter_repair=this.data.f_meter_repair?this.data.f_meter_repair:0,
356
- this.model.f_card_repair=this.data.f_card_repair?this.data.f_card_repair:0,
357
- this.model.f_icsnapsgas=this.data.f_icsnapsgas?this.data.f_icsnapsgas:0,
358
- this.model.f_result_state = this.data.f_result_state?this.data.f_result_state:'正常',
359
- this.model.f_sumgas_moment = this.data.f_sumgas_moment?this.data.f_sumgas_moment:0,
360
- this.model.f_curbalance = this.data.f_curbalance?this.data.f_curbalance:0,
361
- this.model.f_datacomparison = this.data.f_datacomparison?this.data.f_datacomparison:0
362
- }
363
- },
364
- getSumGas(){
365
- this.$goto('hand-sell-history', {model: this.model,showmessage:this.showmessage,temp:'check-info'}, 'list')
366
- },
367
- //获取ic卡表数据
368
- getMoneyMessage(){
369
- if (this.model.f_curbalance === '' || this.model.f_curbalance === undefined) {
370
- this.$showMessage('请检查你录入的金额')
371
- return
372
- }
373
- this.model.f_new_lcd = parseInt(this.model.f_curbalance / this.model.f_price)
374
- this.model.f_pregas = this.model.f_pregas?this.model.f_pregas:0
375
- this.model.f_sumgas_moment = this.model.f_sumgas_moment?this.model.f_sumgas_moment:0
376
- let res = this.$androidUtil.bzLogic('gasComputation', this.model,{rejectMsg: null, resolve: null})
377
- this.model.f_hasnotcharge = parseInt(res.hasnotCharge)
378
- this.model.f_hascharge = (parseInt(this.model.f_sumgas_moment)+ parseInt(this.model.f_nogasvalue) - parseInt(this.model.f_hasnotcharge))
379
- console.log('本期已充'+this.model.f_hascharge)
380
- this.model.f_last_lcd= this.model.f_last_lcd?this.model.f_last_lcd:0
381
- this.model.f_icsnapsgas = (parseInt(this.model.f_last_lcd)+ parseInt(this.model.f_hascharge)+parseInt(this.model.f_card_repair)- parseInt(this.model.f_new_lcd))
382
- console.log('IC走气'+this.model.f_icsnapsgas)
383
- this.model.f_result_state = res.f_result_state
384
- console.log('抄表状态'+this.model.f_result_state)
385
- this.model.f_datacomparison = (parseInt(this.model.f_icsnapsgas)-parseInt(this.model.f_tablesnapsgas))
386
- },
387
- getCardMessage(){
388
- if (this.model.f_new_lcd === '' || this.model.f_new_lcd === undefined) {
389
- this.$showMessage('请检查你录入的液晶示数')
390
- return
391
- }
392
- this.model.f_pregas = this.model.f_pregas?this.model.f_pregas:0
393
- this.model.f_sumgas_moment = this.model.f_sumgas_moment?this.model.f_sumgas_moment:0
394
- let res = this.$androidUtil.bzLogic('gasComputation', this.model,{rejectMsg: null, resolve: null})
395
- this.model.f_hasnotcharge = parseInt(res.hasnotCharge)
396
- this.model.f_hascharge = (parseInt(this.model.f_sumgas_moment)+ parseInt(this.model.f_nogasvalue) - parseInt(this.model.f_hasnotcharge))
397
- console.log('本期已充'+this.model.f_hascharge)
398
- this.model.f_last_lcd= this.model.f_last_lcd?this.model.f_last_lcd:0
399
- this.model.f_icsnapsgas = (parseInt(this.model.f_last_lcd)+ parseInt(this.model.f_hascharge)+parseInt(this.model.f_card_repair)- parseInt(this.model.f_new_lcd))
400
- console.log('IC走气'+this.model.f_icsnapsgas)
401
- this.model.f_result_state = res.f_result_state
402
- console.log('抄表状态'+this.model.f_result_state)
403
- this.model.f_datacomparison = (parseInt(this.model.f_icsnapsgas)-parseInt(this.model.f_tablesnapsgas))
404
- this.model.f_curbalance = parseInt(this.model.f_new_lcd * this.model.f_price)
405
- console.log('剩余金额'+this.model.f_curbalance)
406
-
407
- },
408
-
409
- getWeekCardMessage(){
410
- // if(this.model.f_weekcheck&&this.model.f_weekcheck ==='1'&& this.model.f_weekcheckicdishu){
411
- // this.model.f_new_lcd = this.model.f_weekcheckicdishu
412
- // }
413
- if (this.model.f_weekcheckicdishu === '' || this.model.f_weekcheckicdishu === undefined) {
414
- this.$showMessage('请检查你录入的液晶示数')
415
- return
416
- }
417
-
418
- let postdata = Object.assign({},this.model)
419
- postdata.week = '1',
420
-
421
- this.model.f_pregas = this.model.f_pregas?this.model.f_pregas:0
422
- this.model.f_sumgas_moment = this.model.f_sumgas_moment?this.model.f_sumgas_moment:0
423
- let res = this.$androidUtil.bzLogic('gasComputation', postdata,{rejectMsg: null, resolve: null})
424
- this.model.f_hasnotcharge = parseInt(res.hasnotCharge)
425
- this.model.f_hascharge = (parseInt(this.model.f_sumgas_moment)+ parseInt(this.model.f_nogasvalue) - parseInt(this.model.f_hasnotcharge))
426
- console.log('本期已充'+this.model.f_hascharge)
427
- this.model.f_weekcheckicnum= this.model.f_weekcheckicnum?this.model.f_weekcheckicnum:0
428
- this.model.f_weekicsnapsgas = (parseInt(this.model.f_weekcheckicnum)+ parseInt(this.model.f_hascharge)+parseInt(this.model.f_card_repair)- parseInt(this.model.f_weekcheckicdishu))
429
- console.log('IC走气'+this.model.f_icsnapsgas)
430
- this.model.f_result_state = res.f_result_state
431
- console.log('抄表状态'+this.model.f_result_state)
432
- this.model.f_datacomparison = (parseInt(this.model.f_icsnapsgas)-parseInt(this.model.f_tablesnapsgas))
433
- this.model.f_curbalance = parseInt(this.model.f_new_lcd * this.model.f_price)
434
- console.log('剩余金额'+this.model.f_curbalance)
435
- },
436
- //获取基表走气量
437
- getMeterMessage(){
438
- // if(this.model.f_weekcheck&&this.model.f_weekcheck ==='1'&& this.model.f_weekcheckdishu){
439
- // this.model.f_weekcheckdishu = this.model.f_new_tablebase
440
- // }
441
- if (this.model.f_new_tablebase === '' || this.model.f_new_tablebase === undefined) {
442
- this.$showMessage('请检查你录入的表底数')
443
- return
444
- }
445
- if (parseInt(this.model.f_new_tablebase) - parseInt(this.model.f_last_tablebase) < 0) {
446
- this.$showMessage('录入本期表底数不能小于上期表底数!')
447
- return
448
- }
449
- this.model.f_meter_repair= this.model.f_meter_repair?this.model.f_meter_repair:0
450
- this.model.f_last_tablebase= this.model.f_last_tablebase?this.model.f_last_tablebase:0
451
- // this.$set(this.model.f_tablesnapsgas,'')
452
- this.model.f_tablesnapsgas = parseInt(this.model.f_new_tablebase)- parseInt(this.model.f_last_tablebase)-parseInt(this.model.f_meter_repair)
453
- if (this.model.f_new_lcd ) {
454
- this.getCardMessage()
455
- }
456
- },
457
-
458
- //获取基表走气量
459
- getWeekMeterMessage(){
460
- // if(this.model.f_weekcheck&&this.model.f_weekcheck ==='1'&& this.model.f_weekcheckdishu){
461
- // this.model.f_weekcheckdishu = this.model.f_new_tablebase
462
- // }
463
- if (this.model.f_weekcheckdishu === '' || this.model.f_weekcheckdishu === undefined) {
464
- this.$showMessage('请检查你录入的表底数')
465
- return
466
- }
467
- if (parseInt(this.model.f_weekcheckdishu) - parseInt(this.model.f_weekchecknum) < 0) {
468
- this.$showMessage('录入本期表底数不能小于上期表底数!')
469
- return
470
- }
471
- this.model.f_meter_repair= this.model.f_meter_repair?this.model.f_meter_repair:0
472
- this.model.f_weekchecknum= this.model.f_weekchecknum?this.model.f_weekchecknum:0
473
- // this.$set(this.model.f_tablesnapsgas,'')
474
- this.model.f_weektablesnapsgas = parseInt(this.model.f_weekcheckdishu)- parseInt(this.model.f_weekchecknum)-parseInt(this.model.f_meter_repair)
475
- if (this.model.f_weekcheckicdishu ) {
476
- this.getWeekCardMessage()
477
- }
478
- },
479
-
480
- commit () {
481
- if ((parseInt(this.model.f_new_tablebase) - parseInt(this.model.f_last_tablebase) < 0) && this.model.f_if_change!=='') {
482
- this.$showMessage('录入本期表底数不能小于上期表底数!请核对抄表数据')
483
- return
484
- }
485
- if(this.model.f_check_install){
486
- this.model.f_weekcheck = 1
487
- }
488
- if(this.model.f_check_unstall){
489
- this.model.f_weekcheck = 0
490
- }
491
- if(this.model.f_weekcheck==='1'||this.model.f_weekcheck==='true'||this.model.f_weekcheck==='是'){
492
- if (parseInt(this.model.f_weekcheckdishu) - parseInt(this.model.f_weekchecknum) < 0) {
493
- this.$showMessage('录入本期表底数不能小于上期表底数!')
494
- return
495
- }
496
- // if (parseInt(this.model.f_weekcheckdishu) - parseInt(this.model.f_weekchecknum) < 0) {
497
- // this.$showMessage('录入本期表底数不能小于上期表底数!')
498
- // return
499
- // }
500
- }
501
- // if (!(this.model.imgName && this.model.imgName.length > 0)) {
502
- // this.$showMessage('请录入抄表照片!')
503
- // return
504
- // }
505
- if (!this.flag) {
506
- this.$showMessage(`系统正在进行抄表,请勿重复操作!`)
507
- // this.$showAlert('系统正在进行抄表,请勿重复操作!', 'warning', 2000)
508
- return
509
- }
510
- if(this.model.lastImgName){
511
- this.model.lastImgName = `.${this.model.f_user_name}${this.model.imgName.substring(this.model.imgName.indexOf('.'))}`
512
- }
513
- // 设置抄表按钮不可用
514
- this.flag = false
515
- // 将用户编号放入抄表照片名中
516
- console.log(this.model.lastImgName)
517
- this.model.f_oughtamount = parseInt(this.model.f_new_tablebase) - parseInt(this.model.f_last_tablebase)
518
- // this.model.f_last_hand_date = Util.getBeforeMonth(this.model.f_hand_date)
519
- // this.model.f_last_hand_date =
520
- this.model.f_new_tablebase = parseInt(this.model.f_new_tablebase)
521
- this.model.f_new_lcd = parseInt(this.model.f_new_lcd)
522
- this.model.f_end_time = this.data.f_end_time
523
- let res = this.$androidUtil.bzLogic('phone-readmeter', this.model, {rejectMsg: null, resolve: null})
524
- console.log(res)
525
- if (res.code === 200) {
526
- console.log('抄表完成!')
527
- // 抄表完成设置按钮可用
528
- this.flag = false
529
- this.$showMessage('抄表成功!')
530
- // this.$showAlert('抄表成功!', 'success', 2000)
531
- // 发送抄表成功事件给父页面
532
- // this.$dispatch('hand-success', this.type)
533
- }else{
534
- console.log('抄表失败')
535
- // 抄表完成设置按钮可用
536
- this.flag = true
537
- // this.$showMessage(`${res.backData.msg}!请前往表单上传重新提交`)
538
- // this.$showAlert(`${res.backData.msg}!请前往表单上传重新提交`, 'danger', 2000)
539
- }
540
- },
541
- //将数据存入本地数据库,下次进入页面回写数据
542
- save(){
543
- if (!this.flag) {
544
- this.$showMessage(`该抄表单已上传成功,请勿重复保存!`)
545
- return
546
- }
547
-
548
- if ((parseInt(this.model.f_new_tablebase) - parseInt(this.model.f_last_tablebase)) < 0 && this.model.f_if_change!=='是') {
549
- this.$showMessage('录入本期表底数不能小于上期表底数!请核对抄表数据')
550
- return
551
- }
552
- // window.alert(this.f_check_install)
553
- if(this.model.f_check_install){
554
- this.model.f_weekcheck = 1
555
- }
556
- if(this.model.f_check_unstall){
557
- this.model.f_weekcheck = 0
558
- }
559
- if(this.model.f_weekcheck==='1'||this.model.f_weekcheck==='true'||this.model.f_weekcheck==='是'){
560
- if (parseInt(this.model.f_weekcheckdishu) - parseInt(this.model.f_weekchecknum) < 0) {
561
- this.$showMessage('录入本期表底数不能小于上期表底数!')
562
- return
563
- }
564
- // if (parseInt(this.model.f_weekcheckdishu) - parseInt(this.model.f_weekchecknum) < 0) {
565
- // this.$showMessage('录入本期表底数不能小于上期表底数!')
566
- // return
567
- // }
568
- }
569
- this.model.f_end_time = this.data.f_end_time
570
- this.model.f_new_tablebase = parseInt(this.model.f_new_tablebase)
571
- this.model.f_new_lcd = parseInt(this.model.f_new_lcd)
572
- let res = this.$androidUtil.bzLogic('local-save',this.model,{rejectMsg: null, resolve: null})
573
- if(res.status === 200){
574
- // this.flag = false
575
- this.$showMessage('本地数据保存成功!')
576
- // this.$showAlert('本地数据保存成功!', 'success', 2000)
577
- }
578
- }
579
- }
580
- }
581
- </script>
582
- <style scoped>
583
- .mt-5 {
584
- margin-top: 5px;
585
- }
586
- .mt-10 {
587
- margin-top: 10px;
588
- }
589
- .mt-20 {
590
- margin-top: 20px;
591
- }
592
- .app-row-none-border {
593
- background-color: white;
594
- padding: 10px 10px 0 10px;
595
- }
596
- .font{
597
- font: 17px PingFang-SC-Medium;
598
- color: #666666
599
- }
600
- .show-font{
601
- font: 17px PingFang-SC-Medium;
602
- color: #333333
603
- }
604
- .btn-font{
605
- font:600 16px PingFang-SC-Bold;
606
- color: #499EDF;
607
- }
608
- .head{
609
- font-size: 1.25em;
610
- font-weight: bolder;
611
- padding: 0.5em;
612
- }
613
- .btn-color{
614
- background-color: #FFFFFF;
615
- border-radius: 10px ;
616
- border: 1px solid #499EDF;
617
- }
618
- </style>
1
+ <template>
2
+ <div class="auto app-text" style="margin-top: 5px;">
3
+ <header class="head">
4
+ 周检表信息
5
+ </header>
6
+ <div class="panel" style="padding: 0 10px 5px 10px;">
7
+ <div class="panel-body panel-self">
8
+ <div class="row auto app-row col-xs-12 col-sm-6 col-md-6">
9
+ <p class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">上次抄表日期</p>
10
+ <p class="panel-title col-xs-8 col-sm-8 col-md-8 text-left font">{{ model.f_last_hand_date }}</p>
11
+ </div>
12
+ <div class="row auto app-row col-xs-12 col-sm-6 col-md-6">
13
+ <p class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">上次基表底数</p>
14
+ <p class="panel-title col-xs-8 col-sm-8 col-md-8 text-left font">{{ model.f_last_tablebase }}</p>
15
+ </div>
16
+ <div class="row auto app-row col-xs-12 col-sm-6 col-md-6">
17
+ <p class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">上次剩余气量</p>
18
+ <p class="panel-title col-xs-8 col-sm-8 col-md-8 text-left font">{{ model.f_last_lcd }}</p>
19
+ </div>
20
+ <div class="row auto app-row col-xs-12 col-sm-6 col-md-6">
21
+ <p class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">上次剩余金额</p>
22
+ <p class="panel-title col-xs-8 col-sm-8 col-md-8 text-left font">{{ model.f_iclastmoney}}</p>
23
+ </div>
24
+ <div class=" col-xs-12 col-sm-12 col-md-12 bg-white row auto app-row col-xs-12 ">
25
+ <label for="f_card_id" class="panel-title col-xs-4 col-sm-2 col-md-2 text-left font">总购气量</label>
26
+ <div class="col-xs-6 col-sm-4 col-md-4 ">
27
+ <input type="number" id="f_card_id" class="form-control font " v-model="model.f_sumgas" readonly>
28
+ </div>
29
+ <div class="col-sm-2 col-xs-2 col-sm-offset-1 col-md-2 col-md-offset-1">
30
+ <button type="button" name="button" class="btn btn-primary" @click="getSumGas(model.card_id)"
31
+ >详情
32
+ </button>
33
+ </div>
34
+ </div>
35
+
36
+ <div class="row auto app-row col-xs-12 col-sm-3 col-md-3">
37
+ <p class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">期间购气:</p>
38
+ <p class="panel-title col-xs-8 col-sm-6 col-md-6 text-left font">{{ model.f_sumgas_moment}}</p>
39
+ </div>
40
+ <div class="row auto app-row col-xs-12 col-sm-3 col-md-3">
41
+ <p class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">上次未充:</p>
42
+ <p class="panel-title col-xs-8 col-sm-6 col-md-6 text-left font">{{ model.f_nogasvalue }}</p>
43
+ </div>
44
+ <div class="row auto app-row col-xs-12 col-sm-3 col-md-3">
45
+ <p class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">本次已充:</p>
46
+ <p class="panel-title col-xs-8 col-sm-6 col-md-6 text-left font">{{ model.f_hascharge }}</p>
47
+ </div>
48
+ <div class="row auto app-row col-xs-12 col-sm-3 col-md-3">
49
+ <p class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">本次未充:</p>
50
+ <p class="panel-title col-xs-8 col-sm-6 col-md-6 text-left font">{{ model.f_hasnotcharge }}</p>
51
+ </div>
52
+ <div class="row auto app-row col-xs-12 col-sm-12 col-md-12 bg-white ">
53
+ <div class="auto col-xs-12 col-sm-4 col-md-4 bg-white app-row ">
54
+ <label for="f_new_tablebase" class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">基表底数</label>
55
+ <div class="col-xs-8 col-sm-6 col-md-6 ">
56
+ <input type="number" id="f_new_tablebase" class="form-control font " v-el:f_new_tablebase @blur="getMeterMessage()" v-model="model.f_new_tablebase" v-next-el="f_new_lcd">
57
+ </div>
58
+ </div>
59
+ <div class="auto col-xs-12 col-sm-4 col-md-4 bg-white app-row ">
60
+ <label for="f_tablesnapsgas" class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">基表走气量</label>
61
+ <div class="col-xs-8 col-sm-6 col-md-6 ">
62
+ <input type="number" id="f_card_id" class="form-control font " v-model="model.f_tablesnapsgas" readonly>
63
+ </div>
64
+ </div>
65
+ <div class="auto col-xs-12 col-sm-4 col-md-4 bg-white app-row ">
66
+ <label for="f_meter_repair" class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">表维修</label>
67
+ <div class="col-xs-8 col-sm-6 col-md-6 ">
68
+ <input type="number" id="f_meter_repair" class="form-control font " v-model="model.f_meter_repair" readonly>
69
+ </div>
70
+ </div>
71
+ </div>
72
+ <div class="row auto app-row col-xs-12 col-sm-12 col-md-12 bg-white ">
73
+ <div class="auto col-xs-12 col-sm-4 col-md-4 bg-white app-row ">
74
+ <label for="f_new_tablebase" class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">卡剩余气量</label>
75
+ <div class="col-xs-8 col-sm-6 col-md-6 ">
76
+ <input type="number" id="f_new_lcd" class="form-control font " v-el:f_new_lcd @blur="getCardMessage()" v-model="model.f_new_lcd" v-next-el="f_insflow">
77
+ </div>
78
+ </div>
79
+ <div class="auto col-xs-12 col-sm-4 col-md-4 bg-white app-row ">
80
+ <label for="f_icsnapsgas" class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">IC卡扣气量</label>
81
+ <div class="col-xs-8 col-sm-6 col-md-6 ">
82
+ <input type="number" id="f_icsnapsgas" class="form-control font " v-model="model.f_icsnapsgas" readonly>
83
+ </div>
84
+ </div>
85
+ <div class="auto col-xs-12 col-sm-4 col-md-4 bg-white app-row ">
86
+ <label for="f_card_repair" class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">卡维修</label>
87
+ <div class="col-xs-8 col-sm-6 col-md-6 ">
88
+ <input type="number" id="f_card_repair" class="form-control font " v-model="model.f_card_repair" readonly>
89
+ </div>
90
+ </div>
91
+ </div>
92
+ <div class="row auto app-row col-xs-12 col-sm-12 col-md-12 bg-white ">
93
+ <div class="auto col-xs-12 col-sm-4 col-md-4 bg-white app-row ">
94
+ <label for="f_curbalance" class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">卡剩余金额</label>
95
+ <div class="col-xs-8 col-sm-6 col-md-6 ">
96
+ <input type="number" id="f_curbalance" class="form-control font " v-model="model.f_curbalance" @blur="getMoneyMessage()" >
97
+ </div>
98
+ </div>
99
+
100
+ <div class="auto col-xs-12 col-sm-4 col-md-4 bg-white app-row ">
101
+ <label for="f_datacomparison" class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">数据对比</label>
102
+ <div class="col-xs-8 col-sm-6 col-md-6 ">
103
+ <input type="number" id="f_datacomparison" class="form-control font " v-model="model.f_datacomparison" readonly>
104
+ </div>
105
+ </div>
106
+ <div class="row auto bg-white app-row col-xs-12 col-sm-4 col-md-4">
107
+ <p class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">抄表状态</p>
108
+ <!--<p class="panel-title col-xs-8 col-sm-6 col-md-6 text-left font">{{ model.f_result_state}}</p>-->
109
+ <div class="col-xs-8 col-sm-6 col-md-6 ">
110
+ <input type="text" id="f_datacomparison" class="form-control font " v-model="model.f_result_state" readonly>
111
+ </div>
112
+ </div>
113
+ <div class="row auto bg-white app-row col-xs-12 col-sm-12 col-md-12" v-if="showic1">
114
+ <p class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">IC卡累计</p>
115
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
116
+ <input type="text" id="" class="form-control font " v-model="model.f_checkic1" @blur="checkbyic1()">
117
+ </div>
118
+ </div>
119
+ </div>
120
+ <div class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
121
+ <label for="f_insflow" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">瞬时流量</label>
122
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
123
+ <input type="number" id="f_insflow" class="form-control font " v-el:f_insflow v-model="model.f_insflow" v-next-el="f_temperature">
124
+ </div>
125
+ </div>
126
+
127
+ <div class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
128
+ <label for="f_temperature" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">温度</label>
129
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
130
+ <input type="number" id="f_temperature" class="form-control font " v-el:f_temperature v-model="model.f_temperature" v-next-el="f_pressure">
131
+ </div>
132
+ </div>
133
+
134
+ <div class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
135
+ <label for="f_pressure" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">压力</label>
136
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
137
+ <input type="number" id="f_pressure" class="form-control font" v-el:f_pressure v-model="model.f_pressure" v-next-el="f_condition">
138
+ </div>
139
+ </div>
140
+ <div class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
141
+ <label for="f_condition" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">工况</label>
142
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
143
+ <input type="number" id="f_condition" class="form-control font "v-el:f_condition v-model="model.f_condition" v-next-el="f_remark">
144
+ </div>
145
+ </div>
146
+ <div class="auto col-xs-12 col-sm-12 col-md-12 bg-white " style="padding: 0.5em" >
147
+
148
+ <p class="panel-title col-xs-4 col-sm-2 col-md-2 text-left font">换表</p>
149
+ <div class="col-xs-4 col-sm-2 col-md-2">
150
+ <input type="radio" name="f_if_change" id="f_if_change" value="是" v-model="model.f_if_change" >
151
+ </div>
152
+ <div class="col-xs-4 col-sm-2 col-md-2">
153
+ <input type="radio" name="f_if_change" id="f_if_change" value="否" v-model="model.f_if_change" checked>
154
+ </div>
155
+
156
+ </div>
157
+ <div class="row auto app-row col-xs-12 col-sm-12 col-md-12 bg-white ">
158
+ <label for="f_mark" class="panel-title col-xs-4 col-sm-2 col-md-2 text-left font">备注</label>
159
+ <div class="col-xs-8 col-sm-10 col-md-10 ">
160
+ <input type="text" id="f_remark" class="form-control font" v-el:f_remark v-model="model.f_remark" >
161
+ </div>
162
+ </div>
163
+ <div class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
164
+ <label for="f_condition" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">未安装替换表周检</label>
165
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
166
+ <v-select id="f_new_install"
167
+ v-model="model.f_new_install"
168
+ placeholder='请选择'
169
+ :value.sync="model.f_new_install"
170
+ :value-single="true"
171
+ :options='install'
172
+ close-on-select clear-button>
173
+ </v-select>
174
+ </div>
175
+ </div>
176
+ <div class="auto row col-sm-12 col-xs-12 col-md-12 bg-white">
177
+ <div class="auto col-sm-6 col-xs-6 col-md-6">
178
+ <input class="magic-checkbox" type="checkbox" id="f_check_install" :true-value="'是'" :false-value="''"
179
+ v-model="model.f_check_install" >
180
+ <label class="text-left font" for="f_check_install">替换表安装信息</label>
181
+ </div>
182
+ </div>
183
+ <div v-if="!model.f_check_unstall && model.f_check_install " class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
184
+ <label for="f_weekchecknum" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表安装时表底数</label>
185
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
186
+ <input type="number" id="f_weekchecknum" class="form-control font " v-el:f_weekchecknum v-model="model.f_weekchecknum" v-next-el="f_weekcheckicnum">
187
+ </div>
188
+ </div>
189
+ <!-- <div v-if="!model.f_check_unstall && model.f_check_install " class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">-->
190
+ <!-- <label for="f_weekchecknum" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表IC卡累计底数</label>-->
191
+ <!-- <div class="col-xs-8 col-sm-8 col-md-8 ">-->
192
+ <!-- <input type="number" id="f_weekcheckcardnum" class="form-control font " v-el:f_weekchecknum v-model="model.f_weekcheckcardnum" v-next-el="f_weekcheckicnum">-->
193
+ <!-- </div>-->
194
+ <!-- </div>-->
195
+ <div v-if="!model.f_check_unstall && model.f_check_install " class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
196
+ <label for="f_weekcheckicnum" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表安装时剩余气量</label>
197
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
198
+ <input type="number" id="f_weekcheckicnum" class="form-control font " v-el:f_weekcheckicnum v-model="model.f_weekcheckicnum" v-next-el="f_weekchecksn">
199
+ </div>
200
+
201
+ </div>
202
+
203
+ <div v-if="!model.f_check_unstall && model.f_check_install " class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
204
+ <label for="f_weekcheckicsn" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表安装时间</label>
205
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
206
+ <datepicker
207
+ :value.sync="model.f_weekchecktime"
208
+ :format="'yyyy-MM-dd HH:mm:ss'"
209
+ v-model="model.f_weekchecktime"
210
+ :show-reset-button="reset" placeholder="替换表安装时间" style="margin-bottom: 8px">
211
+ </datepicker>
212
+ </div>
213
+ </div>
214
+ <div v-if="!model.f_check_unstall && model.f_check_install " class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
215
+
216
+ <label for="f_weekcheckicsn" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表卡号</label>
217
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
218
+ <input type="text" id="f_weekchecksn" class="form-control font" v-el:f_weekcheckicsn v-model="model.f_weekcheckicsn" @blur="getWeekByCard(model.f_weekcheckicsn)" >
219
+ </div>
220
+ </div>
221
+ <div v-if="!model.f_check_unstall && model.f_check_install " class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
222
+
223
+ <label for="f_weekchecksn" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表基表表号</label>
224
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
225
+ <input type="text" id="f_weekcheckmeternum" class="form-control font" v-el:f_weekcheckmeternum v-model="model.f_weekcheckmeternum" >
226
+ </div>
227
+ </div>
228
+ <div v-if="!model.f_check_unstall && model.f_check_install " class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
229
+
230
+ <label for="f_weekchecksn" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表表号</label>
231
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
232
+ <input type="text" id="f_weekchecksn" class="form-control font" v-el:f_weekchecksn v-model="model.f_weekchecksn" >
233
+ </div>
234
+ </div>
235
+ <div class="auto row bg-white col-sm-12 col-xs-12 col-md-12">
236
+ <div class="auto col-sm-6 col-xs-6 col-md-6">
237
+ <input class="magic-checkbox" type="checkbox" id="f_check_unstall" :true-value="'是'" :false-value="''"
238
+ v-model="model.f_check_unstall" >
239
+ <label class="text-left font" for="f_check_unstall">替换表卸载信息</label>
240
+ </div>
241
+ </div>
242
+ <div v-if="model.f_check_unstall && !model.f_check_install " class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
243
+ <label for="f_weekcheckicsn" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表拆卸时间</label>
244
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
245
+ <datepicker
246
+ :value.sync="model.f_weekchecktime"
247
+ :format="'yyyy-MM-dd HH:mm:ss'"
248
+ v-model="model.f_weekchecktime"
249
+ :show-reset-button="reset" placeholder="替换表拆卸时间" style="margin-bottom: 8px">
250
+ </datepicker>
251
+ </div>
252
+ </div>
253
+ <div v-if="model.f_check_unstall && !model.f_check_install " class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
254
+
255
+ <label for="f_weekcheckicsn" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表卡号</label>
256
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
257
+ <input type="text" id="f_weekchecksn" class="form-control font" v-el:f_weekcheckicsn v-model="model.f_weekcheckicsn" readonly >
258
+ </div>
259
+
260
+ </div>
261
+ <div v-if="model.f_check_unstall && !model.f_check_install" class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
262
+
263
+ <label for="f_weekchecksn" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表基表表号</label>
264
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
265
+ <input type="text" id="f_weekcheckmeternum" class="form-control font" v-el:f_weekcheckmeternum v-model="model.f_weekcheckmeternum" readonly>
266
+ </div>
267
+ </div>
268
+ <div v-if="model.f_check_unstall && !model.f_check_install " class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
269
+
270
+ <label for="f_weekchecksn" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表表号</label>
271
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
272
+ <input type="text" id="f_weekchecksn" class="form-control font" v-el:f_weekchecksn v-model="model.f_weekchecksn" readonly>
273
+ </div>
274
+ </div>
275
+ <div v-if="model.f_check_unstall && !model.f_check_install " class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
276
+ <label for="f_weekchecknum" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表上次读数</label>
277
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
278
+ <input type="number" id="f_weekchecknum" class="form-control font " v-model="model.f_weekchecknum" readonly>
279
+ </div>
280
+ </div>
281
+
282
+ <div v-if="model.f_check_unstall && !model.f_check_install " class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
283
+ <label for="f_weekcheckicnum" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">上次剩余气量</label>
284
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
285
+ <input type="number" id="f_weekcheckicnum" class="form-control font " v-model="model.f_weekcheckicnum" readonly>
286
+ </div>
287
+ </div>
288
+
289
+ <div v-if="model.f_check_unstall && !model.f_check_install " class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
290
+ <label for="f_weekcheckdishu" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表底数</label>
291
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
292
+ <input type="number" id="f_weekcheckdishu" class="form-control font " v-el:f_weekcheckdishu v-model="model.f_weekcheckdishu" @blur="getWeekMeterMessage()" v-next-el="f_weekcheckicdishu">
293
+ </div>
294
+ </div>
295
+ <div v-if="model.f_check_unstall && !model.f_check_install " class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
296
+ <label for="f_weektablesnapsgas" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">走气量</label>
297
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
298
+ <input type="number" id="f_weektablesnapsgas" class="form-control font " v-el:f_weektablesnapsgas v-model="model.f_weektablesnapsgas" readonly>
299
+ </div>
300
+ </div>
301
+
302
+ <div v-if="model.f_check_unstall && !model.f_check_install " class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
303
+ <label for="f_temperature" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">卡剩余气量</label>
304
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
305
+ <input type="number" id="f_weekcheckicdishu" class="form-control font" v-el:f_weekcheckicdishu v-model="model.f_weekcheckicdishu" @blur="getWeekCardMessage()">
306
+ </div>
307
+ </div>
308
+
309
+ <div v-if="model.f_check_unstall && !model.f_check_install " class="auto col-xs-12 col-sm-6 col-md-6 bg-white app-row ">
310
+ <label for="f_weekicsnapsgas" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">扣气量</label>
311
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
312
+ <input type="number" id="f_weekicsnapsgas" class="form-control font " v-model="model.f_weekicsnapsgas" readonly>
313
+ </div>
314
+ </div>
315
+ <div class="row auto bg-white app-row col-xs-12 col-sm-12 col-md-12" v-if="model.f_check_unstall && !model.f_check_install">
316
+ <p class="panel-title col-xs-2 col-sm-2 col-md-2 text-left font">抄表状态</p>
317
+ <div class="col-xs-4 col-sm-4 col-md-4 ">
318
+ <input type="text" id="f_result_state" class="form-control font " v-model="model.f_check_result_state" readonly>
319
+ </div>
320
+ </div>
321
+ <div class="row auto bg-white app-row col-xs-12 col-sm-12 col-md-12" v-if="model.f_check_unstall && !model.f_check_install && showic">
322
+ <p class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">周检表IC卡累计</p>
323
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
324
+ <input type="text" id="" class="form-control font " v-model="model.f_checkic" @blur="checkbyic()">
325
+ </div>
326
+ </div>
327
+ <div class="row auto col-xs-12 col-sm-12 col-md-12 mt-20">
328
+ <!--<img-area :model="model.imgs"></img-area>-->
329
+ <picture-area :model="model.imgs"></picture-area>
330
+ </div>
331
+ <div class="row col-xs-12 col-sm-12 col-md-12 auto mt-20" v-if="!data.hidden">
332
+ <div class="col-xs-2 col-sm-2 col-md-2 col-xs-offset-4 col-sm-offset-4 col-md-offset-4">
333
+ <button type="button" class="btn btn-lg btn-color btn-font" @click="save()">保存</button>
334
+ </div>
335
+ <div class="col-xs-2 col-sm-2 col-md-2 col-xs-offset-1 col-sm-offset-1 col-md-offset-1" >
336
+ <button type="button" class="btn btn-color btn-font btn-lg" @click="commit()">提交</button>
337
+ </div>
338
+ </div>
339
+ </div>
340
+ </div>
341
+ </div>
342
+ </template>
343
+ <script>
344
+ import * as Util from './../Util'
345
+ import Vue from 'vue'
346
+ import co from 'co'
347
+ let getDataGen = function * (self, val) {
348
+
349
+ yield self.$resetpost(Vue.handdataUrl + 'rs/sql/getUserInfo', {data:{
350
+ condition:`card_id = '${self.model.f_weekcheckicsn}'`
351
+ }}, {resolveMsg: null, rejectMsg: null})
352
+ .then((res) =>{
353
+ console.log(JSON.stringify(res.data));
354
+ if(res.data.length>0){
355
+ self.model.f_weekcheckmeternum = res.data[0].f_jb_table_code
356
+ self.model.f_weekchecksn = res.data[0].f_meternumber
357
+ }
358
+
359
+ })
360
+ }
361
+ export default {
362
+ title: '手机单户抄表',
363
+ data () {
364
+ return {
365
+ install:[{label:'开始',value:'开始'},{label:'结束',value:'结束'}],
366
+ model: {
367
+ f_mark:'',
368
+ f_condition:'',
369
+ f_pressure:'',
370
+ f_temperature:'',
371
+ f_new_install:'',
372
+ f_result_state:'',
373
+ f_check_result_state:'',
374
+ f_check_install:'',
375
+ f_check_unstall:'',
376
+ imgInfo: '',
377
+ imgName: '',
378
+ sumgas_moment:0,
379
+ f_datacomparison:0,
380
+ f_weekcheckmeternum:'',
381
+ f_weekchecktime:'',
382
+ f_weekcheckicsn:'',
383
+ f_weekchecksn:'',
384
+ f_weekchecknum:'',
385
+ f_weekcheckicnum:'',
386
+ f_weekcheckdishu:'',
387
+ f_insflow:0,
388
+ f_weekcheckicdishu:'',
389
+ f_oughtamount: 0,
390
+ f_new_lcd:0,
391
+ f_curbalance:0,
392
+ f_meter_repair:0,
393
+ f_card_repair:0,
394
+ f_new_tablebase:0,
395
+ f_tablesnapsgas:0,
396
+ f_icsnapsgas:0,
397
+ imgs:[]
398
+ },
399
+ showic:false,
400
+ showic1:false,
401
+ imgurl:'',
402
+ system:'',
403
+ flag: false
404
+ }
405
+ },
406
+ props: {
407
+ data: {
408
+ type: Object,
409
+ default: function () {
410
+ return {
411
+ }
412
+ }
413
+ },
414
+ showmessage:true,
415
+ type: {
416
+ type: String,
417
+ default: 'save'
418
+ }
419
+ },
420
+ watch:{
421
+ 'model.f_result_state'(val){
422
+ if(val && val==='异常'){
423
+ this.showic1 = true
424
+ }
425
+ },
426
+ 'model.f_check_result_state'(val){
427
+ if(val && val==='异常'){
428
+ this.showic = true
429
+ }
430
+ },
431
+ 'model.f_check_install'(val){
432
+ if(val){
433
+ this.model.f_check_unstall = ''
434
+ }
435
+ },
436
+ 'model.f_check_unstall'(val){
437
+ if(val){
438
+ this.model.f_check_install = ''
439
+ }
440
+ },
441
+ 'data.f_download'(val){
442
+ if(this.data.f_download){
443
+ // this.$showMessage('数据更新成功,请核对数据重新计算')
444
+ this.data.f_new_lcd = this.model.f_new_lcd,
445
+ this.data.f_tablebase = this.model.f_new_tablebase,
446
+ this.data.f_weekcheckdishu = this.model.f_weekcheckdishu,
447
+ this.data.f_weekcheckicdishu = this.model.f_weekcheckicdishu
448
+ }
449
+
450
+ // this.model = Object.assign({}, this.model, this.data)
451
+ this.updatedata()
452
+ }
453
+ },
454
+ ready () {
455
+ // Vue.handdataUrl = ''
456
+ // this.$resetpost( 'rs/sql/getUserInfo', {data:{
457
+ // condition:`card_id = '9999999014'`
458
+ // }}, {resolveMsg: null, rejectMsg: null})
459
+ // .then((res) =>{
460
+ // console.log(JSON.stringify(res.data));
461
+ // if(res.data.length>0){
462
+ // this.data = Object.assign(this.data,res.data[0])
463
+ // this.model = Object.assign(this.model,res.data[0])
464
+ // this.model.f_result_state = '异常'
465
+ // }
466
+ //
467
+ // this.flag = true
468
+ // this.updatedata()
469
+ // this.model.f_result_state = '异常'
470
+ // })
471
+
472
+ // 抄表按钮可以点击
473
+ this.flag = true
474
+ this.updatedata()
475
+ },
476
+ methods: {
477
+ checkbyic(){
478
+ this.model.f_check_result_state = Math.abs(parseInt(this.model.f_checkic)-parseInt(this.model.f_weekcheckdishu))<=this.model.f_tablewitherrorvalue?'正常':'异常'
479
+ },
480
+ checkbyic1(){
481
+ this.model.f_result_state = Math.abs(parseInt(this.model.f_checkic1)-parseInt(this.model.f_new_tablebase))<=this.model.f_tablewitherrorvalue?'正常':'异常'
482
+ },
483
+ getWeekByCard(){
484
+ let gen = getDataGen(this)
485
+ co(gen)
486
+ },
487
+ updatedata(){
488
+ this.model = Object.assign({}, this.model, this.data)
489
+ if(this.type === 'save'){
490
+ this.model.f_sumgas = this.data.f_sumgas?this.data.f_sumgas:0,
491
+ this.model.f_nogasvalue = this.data.f_nogasvalue?this.data.f_nogasvalue:0,
492
+ this.model.f_hasnotcharge = this.data.f_hasnotcharge?this.data.f_hasnotcharge:0,
493
+ this.model.f_hascharge = this.data.f_hascharge?this.data.f_hascharge:0,
494
+ this.model.f_last_lcd = this.data.f_last_lcd?this.data.f_last_lcd:0,
495
+ this.model.f_new_tablebase=this.data.f_new_tablebase?this.data.f_new_tablebase:0,
496
+ this.model.f_new_lcd= this.data.f_new_lcd?this.data.f_new_lcd:0,
497
+ this.model.f_tablesnapsgas=this.data.f_tablesnapsgas?this.data.f_tablesnapsgas:0,
498
+ this.model.f_meter_repair=this.data.f_meter_repair?this.data.f_meter_repair:0,
499
+ this.model.f_card_repair=this.data.f_card_repair?this.data.f_card_repair:0,
500
+ this.model.f_icsnapsgas=this.data.f_icsnapsgas?this.data.f_icsnapsgas:0,
501
+ this.model.f_result_state = this.data.f_result_state?this.data.f_result_state:'正常',
502
+ this.model.f_sumgas_moment = this.data.f_sumgas_moment?this.data.f_sumgas_moment:0,
503
+ this.model.f_curbalance = this.data.f_curbalance?this.data.f_curbalance:0,
504
+ this.model.f_datacomparison = this.data.f_datacomparison?this.data.f_datacomparison:0
505
+ }
506
+ },
507
+ getSumGas(){
508
+ this.$goto('hand-sell-history', {model: this.model,showmessage:this.showmessage,temp:'check-info'}, 'list')
509
+ },
510
+ //获取ic卡表数据
511
+ getMoneyMessage(){
512
+ if (this.model.f_curbalance === '' || this.model.f_curbalance === undefined) {
513
+ this.$showMessage('请检查你录入的金额')
514
+ return
515
+ }
516
+ this.model.f_new_lcd = parseInt(this.model.f_curbalance / this.model.f_price)
517
+ this.model.f_pregas = this.model.f_pregas?this.model.f_pregas:0
518
+ this.model.f_sumgas_moment = this.model.f_sumgas_moment?this.model.f_sumgas_moment:0
519
+ let res = this.$androidUtil.bzLogic('gasComputation', this.model,{rejectMsg: null, resolve: null})
520
+ this.model.f_hasnotcharge = parseInt(res.hasnotCharge)
521
+ this.model.f_hascharge = (parseInt(this.model.f_sumgas_moment)+ parseInt(this.model.f_nogasvalue) - parseInt(this.model.f_hasnotcharge))
522
+ console.log('本期已充'+this.model.f_hascharge)
523
+ this.model.f_last_lcd= this.model.f_last_lcd?this.model.f_last_lcd:0
524
+ this.model.f_icsnapsgas = (parseInt(this.model.f_last_lcd)+ parseInt(this.model.f_hascharge)+parseInt(this.model.f_card_repair)- parseInt(this.model.f_new_lcd))
525
+ console.log('IC走气'+this.model.f_icsnapsgas)
526
+ this.model.f_result_state = res.f_result_state
527
+ console.log('抄表状态'+this.model.f_result_state)
528
+ this.model.f_datacomparison = (parseInt(this.model.f_icsnapsgas)-parseInt(this.model.f_tablesnapsgas))
529
+ },
530
+ getCardMessage(){
531
+ if (this.model.f_new_lcd === '' || this.model.f_new_lcd === undefined) {
532
+ this.$showMessage('请检查你录入的液晶示数')
533
+ return
534
+ }
535
+ this.model.f_pregas = this.model.f_pregas?this.model.f_pregas:0
536
+ this.model.f_sumgas_moment = this.model.f_sumgas_moment?this.model.f_sumgas_moment:0
537
+ let res = this.$androidUtil.bzLogic('gasComputation', this.model,{rejectMsg: null, resolve: null})
538
+ this.model.f_hasnotcharge = parseInt(res.hasnotCharge)
539
+ this.model.f_hascharge = (parseInt(this.model.f_sumgas_moment)+ parseInt(this.model.f_nogasvalue) - parseInt(this.model.f_hasnotcharge))
540
+ console.log('本期已充'+this.model.f_hascharge)
541
+ this.model.f_last_lcd= this.model.f_last_lcd?this.model.f_last_lcd:0
542
+ this.model.f_icsnapsgas = (parseInt(this.model.f_last_lcd)+ parseInt(this.model.f_hascharge)+parseInt(this.model.f_card_repair)- parseInt(this.model.f_new_lcd))
543
+ console.log('IC走气'+this.model.f_icsnapsgas)
544
+ this.model.f_result_state = res.f_result_state
545
+ console.log('抄表状态'+this.model.f_result_state)
546
+ this.model.f_datacomparison = (parseInt(this.model.f_icsnapsgas)-parseInt(this.model.f_tablesnapsgas))
547
+ this.model.f_curbalance = parseInt(this.model.f_new_lcd * this.model.f_price)
548
+ console.log('剩余金额'+this.model.f_curbalance)
549
+
550
+ },
551
+
552
+ getWeekCardMessage(){
553
+ // if(this.model.f_weekcheck&&this.model.f_weekcheck ==='1'&& this.model.f_weekcheckicdishu){
554
+ // this.model.f_new_lcd = this.model.f_weekcheckicdishu
555
+ // }
556
+ if (this.model.f_weekcheckicdishu === '' || this.model.f_weekcheckicdishu === undefined) {
557
+ this.$showMessage('请检查你录入的液晶示数')
558
+ return
559
+ }
560
+
561
+ let postdata = Object.assign({},this.model)
562
+ postdata.week = '1',
563
+
564
+ this.model.f_pregas = this.model.f_pregas?this.model.f_pregas:0
565
+ this.model.f_sumgas_moment = this.model.f_sumgas_moment?this.model.f_sumgas_moment:0
566
+ let res = this.$androidUtil.bzLogic('gasComputation', postdata,{rejectMsg: null, resolve: null})
567
+ this.model.f_hasnotcharge = parseInt(res.hasnotCharge)
568
+ this.model.f_hascharge = (parseInt(this.model.f_sumgas_moment)+ parseInt(this.model.f_nogasvalue) - parseInt(this.model.f_hasnotcharge))
569
+ console.log('本期已充'+this.model.f_hascharge)
570
+ this.model.f_weekcheckicnum= this.model.f_weekcheckicnum?this.model.f_weekcheckicnum:0
571
+ this.model.f_weekicsnapsgas = (parseInt(this.model.f_weekcheckicnum)+ parseInt(this.model.f_hascharge)+parseInt(this.model.f_card_repair)- parseInt(this.model.f_weekcheckicdishu))
572
+ console.log('IC走气'+this.model.f_icsnapsgas)
573
+ this.model.f_check_result_state = res.f_result_state
574
+ console.log('抄表状态'+this.model.f_result_state)
575
+ this.model.f_datacomparison = (parseInt(this.model.f_icsnapsgas)-parseInt(this.model.f_tablesnapsgas))
576
+ this.model.f_curbalance = parseInt(this.model.f_new_lcd * this.model.f_price)
577
+ console.log('剩余金额'+this.model.f_curbalance)
578
+ },
579
+ //获取基表走气量
580
+ getMeterMessage(){
581
+ // if(this.model.f_weekcheck&&this.model.f_weekcheck ==='1'&& this.model.f_weekcheckdishu){
582
+ // this.model.f_weekcheckdishu = this.model.f_new_tablebase
583
+ // }
584
+ if (this.model.f_new_tablebase === '' || this.model.f_new_tablebase === undefined) {
585
+ this.$showMessage('请检查你录入的表底数')
586
+ return
587
+ }
588
+ if (parseInt(this.model.f_new_tablebase) - parseInt(this.model.f_last_tablebase) < 0) {
589
+ this.$showMessage('录入本期表底数不能小于上期表底数!')
590
+ return
591
+ }
592
+ this.model.f_meter_repair= this.model.f_meter_repair?this.model.f_meter_repair:0
593
+ this.model.f_last_tablebase= this.model.f_last_tablebase?this.model.f_last_tablebase:0
594
+ // this.$set(this.model.f_tablesnapsgas,'')
595
+ this.model.f_tablesnapsgas = parseInt(this.model.f_new_tablebase)- parseInt(this.model.f_last_tablebase)-parseInt(this.model.f_meter_repair)
596
+ if (this.model.f_new_lcd ) {
597
+ this.getCardMessage()
598
+ }
599
+ },
600
+
601
+ //获取基表走气量
602
+ getWeekMeterMessage(){
603
+ // if(this.model.f_weekcheck&&this.model.f_weekcheck ==='1'&& this.model.f_weekcheckdishu){
604
+ // this.model.f_weekcheckdishu = this.model.f_new_tablebase
605
+ // }
606
+ if (this.model.f_weekcheckdishu === '' || this.model.f_weekcheckdishu === undefined) {
607
+ this.$showMessage('请检查你录入的表底数')
608
+ return
609
+ }
610
+ if (parseInt(this.model.f_weekcheckdishu) - parseInt(this.model.f_weekchecknum) < 0) {
611
+ this.$showMessage('录入本期表底数不能小于上期表底数!')
612
+ return
613
+ }
614
+ this.model.f_meter_repair= this.model.f_meter_repair?this.model.f_meter_repair:0
615
+ this.model.f_weekchecknum= this.model.f_weekchecknum?this.model.f_weekchecknum:0
616
+ // this.$set(this.model.f_tablesnapsgas,'')
617
+ this.model.f_weektablesnapsgas = parseInt(this.model.f_weekcheckdishu)- parseInt(this.model.f_weekchecknum)-parseInt(this.model.f_meter_repair)
618
+ if (this.model.f_weekcheckicdishu ) {
619
+ this.getWeekCardMessage()
620
+ }
621
+ },
622
+
623
+ commit () {
624
+ if ((parseInt(this.model.f_new_tablebase) - parseInt(this.model.f_last_tablebase) < 0) && this.model.f_if_change!=='是') {
625
+ this.$showMessage('录入本期表底数不能小于上期表底数!请核对抄表数据')
626
+ return
627
+ }
628
+ if(this.model.f_check_install){
629
+ this.model.f_weekcheck = 1
630
+ }
631
+ if(this.model.f_check_unstall){
632
+ this.model.f_weekcheck = 0
633
+ }
634
+ if(this.model.f_weekcheck==='1'||this.model.f_weekcheck==='true'||this.model.f_weekcheck==='是'){
635
+ if (parseInt(this.model.f_weekcheckdishu) - parseInt(this.model.f_weekchecknum) < 0) {
636
+ this.$showMessage('录入本期表底数不能小于上期表底数!')
637
+ return
638
+ }
639
+ // if (parseInt(this.model.f_weekcheckdishu) - parseInt(this.model.f_weekchecknum) < 0) {
640
+ // this.$showMessage('录入本期表底数不能小于上期表底数!')
641
+ // return
642
+ // }
643
+ }
644
+ // if (!(this.model.imgName && this.model.imgName.length > 0)) {
645
+ // this.$showMessage('请录入抄表照片!')
646
+ // return
647
+ // }
648
+ if (!this.flag) {
649
+ this.$showMessage(`系统正在进行抄表,请勿重复操作!`)
650
+ // this.$showAlert('系统正在进行抄表,请勿重复操作!', 'warning', 2000)
651
+ return
652
+ }
653
+ if(this.model.lastImgName){
654
+ this.model.lastImgName = `.${this.model.f_user_name}${this.model.imgName.substring(this.model.imgName.indexOf('.'))}`
655
+ }
656
+ // 设置抄表按钮不可用
657
+ this.flag = false
658
+ // 将用户编号放入抄表照片名中
659
+ console.log(this.model.lastImgName)
660
+ this.model.f_oughtamount = parseInt(this.model.f_new_tablebase) - parseInt(this.model.f_last_tablebase)
661
+ // this.model.f_last_hand_date = Util.getBeforeMonth(this.model.f_hand_date)
662
+ // this.model.f_last_hand_date =
663
+ this.model.f_new_tablebase = parseInt(this.model.f_new_tablebase)
664
+ this.model.f_new_lcd = parseInt(this.model.f_new_lcd)
665
+ this.model.f_end_time = this.data.f_end_time
666
+ let res = this.$androidUtil.bzLogic('phone-readmeter', this.model, {rejectMsg: null, resolve: null})
667
+ console.log(res)
668
+ if (res.code === 200) {
669
+ console.log('抄表完成!')
670
+ // 抄表完成设置按钮可用
671
+ this.flag = false
672
+ this.$showMessage('抄表成功!')
673
+ // this.$showAlert('抄表成功!', 'success', 2000)
674
+ // 发送抄表成功事件给父页面
675
+ // this.$dispatch('hand-success', this.type)
676
+ }else{
677
+ console.log('抄表失败')
678
+ // 抄表完成设置按钮可用
679
+ this.flag = true
680
+ // this.$showMessage(`${res.backData.msg}!请前往表单上传重新提交`)
681
+ // this.$showAlert(`${res.backData.msg}!请前往表单上传重新提交`, 'danger', 2000)
682
+ }
683
+ },
684
+ //将数据存入本地数据库,下次进入页面回写数据
685
+ save(){
686
+ if (!this.flag) {
687
+ this.$showMessage(`该抄表单已上传成功,请勿重复保存!`)
688
+ return
689
+ }
690
+
691
+ if ((parseInt(this.model.f_new_tablebase) - parseInt(this.model.f_last_tablebase)) < 0 && this.model.f_if_change!=='是') {
692
+ this.$showMessage('录入本期表底数不能小于上期表底数!请核对抄表数据')
693
+ return
694
+ }
695
+ // window.alert(this.f_check_install)
696
+ if(this.model.f_check_install){
697
+ this.model.f_weekcheck = 1
698
+ }
699
+ if(this.model.f_check_unstall){
700
+ this.model.f_weekcheck = 0
701
+ }
702
+ if(this.model.f_weekcheck==='1'||this.model.f_weekcheck==='true'||this.model.f_weekcheck==='是'){
703
+ if (parseInt(this.model.f_weekcheckdishu) - parseInt(this.model.f_weekchecknum) < 0) {
704
+ this.$showMessage('录入本期表底数不能小于上期表底数!')
705
+ return
706
+ }
707
+ // if (parseInt(this.model.f_weekcheckdishu) - parseInt(this.model.f_weekchecknum) < 0) {
708
+ // this.$showMessage('录入本期表底数不能小于上期表底数!')
709
+ // return
710
+ // }
711
+ }
712
+ this.model.f_end_time = this.data.f_end_time
713
+ this.model.f_new_tablebase = parseInt(this.model.f_new_tablebase)
714
+ this.model.f_new_lcd = parseInt(this.model.f_new_lcd)
715
+ let res = this.$androidUtil.bzLogic('local-save',this.model,{rejectMsg: null, resolve: null})
716
+ if(res.status === 200){
717
+ // this.flag = false
718
+ this.$showMessage('本地数据保存成功!')
719
+ // this.$showAlert('本地数据保存成功!', 'success', 2000)
720
+ }
721
+ }
722
+ }
723
+ }
724
+ </script>
725
+ <style scoped>
726
+ .mt-5 {
727
+ margin-top: 5px;
728
+ }
729
+ .mt-10 {
730
+ margin-top: 10px;
731
+ }
732
+ .mt-20 {
733
+ margin-top: 20px;
734
+ }
735
+ .app-row-none-border {
736
+ background-color: white;
737
+ padding: 10px 10px 0 10px;
738
+ }
739
+ .font{
740
+ font: 17px PingFang-SC-Medium;
741
+ color: #666666
742
+ }
743
+ .show-font{
744
+ font: 17px PingFang-SC-Medium;
745
+ color: #333333
746
+ }
747
+ .btn-font{
748
+ font:600 16px PingFang-SC-Bold;
749
+ color: #499EDF;
750
+ }
751
+ .head{
752
+ font-size: 1.25em;
753
+ font-weight: bolder;
754
+ padding: 0.5em;
755
+ }
756
+ .btn-color{
757
+ background-color: #FFFFFF;
758
+ border-radius: 10px ;
759
+ border: 1px solid #499EDF;
760
+ }
761
+ </style>