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.
Files changed (41) hide show
  1. package/.idea/ReadMeterClient.iml +9 -0
  2. package/.idea/workspace.xml +62 -442
  3. package/.npmignore +7 -0
  4. package/build/dev-server.js +132 -132
  5. package/build/webpack.base.conf.js +75 -75
  6. package/hs_err_pid13284.log +207 -0
  7. package/package.json +1 -1
  8. package/package.json.bak +99 -99
  9. package/src/AndroidPlugin.js +28 -28
  10. package/src/App.vue +74 -74
  11. package/src/components/readingmeter/CheckInfo.vue +618 -618
  12. package/src/components/readingmeter/FinishHandInfo.vue +75 -75
  13. package/src/components/readingmeter/FinishHandInfocopy.vue +99 -99
  14. package/src/components/readingmeter/HandInfo.vue +87 -87
  15. package/src/components/readingmeter/HandMessage.vue +40 -40
  16. package/src/components/readingmeter/HistoryHandInfo.vue +114 -114
  17. package/src/components/readingmeter/MeterInfo.vue +183 -183
  18. package/src/components/readingmeter/PhoneHand.vue +93 -93
  19. package/src/components/readingmeter/PhoneHandHome.vue +2 -0
  20. package/src/components/readingmeter/PhoneHandplanInfo.vue +643 -643
  21. package/src/components/readingmeter/PictureArea.vue +156 -156
  22. package/src/components/readingmeter/PlanDown.vue +232 -232
  23. package/src/components/readingmeter/PlanUpdate.vue +186 -186
  24. package/src/components/readingmeter/ReadMeterCenter.vue +325 -325
  25. package/src/components/readingmeter/ReadMeterInfo.vue +349 -349
  26. package/src/components/readingmeter/ReadMeterInfoChangan.vue +1 -1
  27. package/src/components/readingmeter/SellHistory.vue +36 -36
  28. package/src/components/readingmeter/SellInfo.vue +88 -88
  29. package/src/components/readingmeter/UserInfo.vue +1 -0
  30. package/src/components/server/AppHeader.vue +65 -65
  31. package/src/components/server/ReadMeterHome.vue +192 -192
  32. package/src/components/server/ReadMeterLogin.vue +161 -161
  33. package/src/components/server/ReadMeterNavBottom.vue +119 -119
  34. package/src/components/server/ReadMeterRoute.vue +79 -79
  35. package/src/components/server/ReadMeterTop.vue +61 -61
  36. package/src/components/server/ReadMeterTopcopy.vue +53 -53
  37. package/src/expandcss.less +668 -668
  38. package/src/main.js +23 -23
  39. package/src/readmeter-android.js +34 -34
  40. package/src/readmeter.js +54 -54
  41. package/yarn.lock +7818 -0
@@ -1,618 +1,618 @@
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="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>