readmeter-changan 1.0.37 → 1.0.39

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.
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="PublishConfigData">
4
+ <serverData>
5
+ <paths name="50.4">
6
+ <serverdata>
7
+ <mappings>
8
+ <mapping local="$PROJECT_DIR$" web="/" />
9
+ </mappings>
10
+ </serverdata>
11
+ </paths>
12
+ </serverData>
13
+ </component>
14
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="GitToolBoxBlameSettings">
4
+ <option name="version" value="2" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="MaterialThemeProjectNewConfig">
4
+ <option name="metadata">
5
+ <MTProjectMetadataState>
6
+ <option name="migrated" value="true" />
7
+ <option name="pristineConfig" value="false" />
8
+ <option name="userId" value="-6f1eb44e:197b041cf4e:-7ff9" />
9
+ </MTProjectMetadataState>
10
+ </option>
11
+ </component>
12
+ </project>
@@ -1,5 +1,8 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
+ <component name="AutoImportSettings">
4
+ <option name="autoReloadType" value="SELECTIVE" />
5
+ </component>
3
6
  <component name="ChangeListManager">
4
7
  <list default="true" id="3ff22a91-c12c-46e5-8072-9f6930fa055a" name="Default Changelist" comment="修复抄表记录界面翻页选项被遮挡">
5
8
  <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
@@ -163,6 +166,9 @@
163
166
  <path value="$PROJECT_DIR$/package.json" />
164
167
  </packageJsonPaths>
165
168
  </component>
169
+ <component name="ProjectColorInfo">{
170
+ &quot;associatedIndex&quot;: 2
171
+ }</component>
166
172
  <component name="ProjectFrameBounds" extendedState="6">
167
173
  <option name="x" value="-8" />
168
174
  <option name="y" value="-8" />
@@ -225,9 +231,17 @@
225
231
  </component>
226
232
  <component name="PropertiesComponent">{
227
233
  &quot;keyToString&quot;: {
234
+ &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
228
235
  &quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;,
236
+ &quot;git-widget-placeholder&quot;: &quot;changan&quot;,
237
+ &quot;kotlin-language-version-configured&quot;: &quot;true&quot;,
229
238
  &quot;last_opened_file_path&quot;: &quot;D:/WorkSpace/module/ReadMeterClient&quot;,
239
+ &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
240
+ &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
241
+ &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
242
+ &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
230
243
  &quot;nodejs_package_manager_path&quot;: &quot;yarn&quot;,
244
+ &quot;ts.external.directory.path&quot;: &quot;C:\\Program Files\\JetBrains\\IntelliJ IDEA 2024.1.2\\plugins\\javascript-plugin\\jsLanguageServicesImpl\\external&quot;,
231
245
  &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
232
246
  }
233
247
  }</component>
@@ -291,6 +305,14 @@
291
305
  </list>
292
306
  </recent_temporary>
293
307
  </component>
308
+ <component name="SharedIndexes">
309
+ <attachedChunks>
310
+ <set>
311
+ <option value="bundled-jdk-9f38398b9061-39b83d9b5494-intellij.indexing.shared.core-IU-241.17011.79" />
312
+ <option value="bundled-js-predefined-1d06a55b98c1-0b3e54e931b4-JavaScript-IU-241.17011.79" />
313
+ </set>
314
+ </attachedChunks>
315
+ </component>
294
316
  <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="应用程序级" UseSingleDictionary="true" transferred="true" />
295
317
  <component name="SvnConfiguration">
296
318
  <configuration />
@@ -390,6 +412,13 @@
390
412
  <workItem from="1716450078610" duration="20000" />
391
413
  <workItem from="1716544621445" duration="650000" />
392
414
  <workItem from="1716774878936" duration="1241000" />
415
+ <workItem from="1752048487894" duration="2137000" />
416
+ <workItem from="1752111008561" duration="62000" />
417
+ <workItem from="1752126323817" duration="2112000" />
418
+ <workItem from="1752231583671" duration="550000" />
419
+ <workItem from="1752238191936" duration="1822000" />
420
+ <workItem from="1753265804521" duration="1171000" />
421
+ <workItem from="1753320827001" duration="1546000" />
393
422
  </task>
394
423
  <task id="LOCAL-00001" summary="新增卡表抄表气量核算">
395
424
  <created>1553677761707</created>
@@ -486,6 +515,21 @@
486
515
  <option name="version" value="3" />
487
516
  </component>
488
517
  <component name="Vcs.Log.Tabs.Properties">
518
+ <option name="RECENT_FILTERS">
519
+ <map>
520
+ <entry key="Branch">
521
+ <value>
522
+ <list>
523
+ <RecentGroup>
524
+ <option name="FILTER_VALUES">
525
+ <option value="origin/changan" />
526
+ </option>
527
+ </RecentGroup>
528
+ </list>
529
+ </value>
530
+ </entry>
531
+ </map>
532
+ </option>
489
533
  <option name="TAB_STATES">
490
534
  <map>
491
535
  <entry key="MAIN">
@@ -507,21 +551,6 @@
507
551
  </entry>
508
552
  </map>
509
553
  </option>
510
- <option name="RECENT_FILTERS">
511
- <map>
512
- <entry key="Branch">
513
- <value>
514
- <list>
515
- <RecentGroup>
516
- <option name="FILTER_VALUES">
517
- <option value="origin/changan" />
518
- </option>
519
- </RecentGroup>
520
- </list>
521
- </value>
522
- </entry>
523
- </map>
524
- </option>
525
554
  </component>
526
555
  <component name="VcsManagerConfiguration">
527
556
  <ignored-roots>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "readmeter-changan",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "description": "手机抄表客户端",
5
5
  "author": "15529257852@163.com",
6
6
  "private": false,
@@ -50,66 +50,66 @@
50
50
  <p class="panel-title col-xs-8 col-sm-6 col-md-6 text-left font">{{ model.f_hasnotcharge }}</p>
51
51
  </div>
52
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">
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>
57
58
  </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>
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>
63
64
  </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>
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>
69
70
  </div>
70
71
  </div>
71
- </div>
72
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">
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>
77
78
  </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>
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>
83
84
  </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>
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>
89
90
  </div>
90
91
  </div>
91
- </div>
92
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()" >
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>
97
98
  </div>
98
- </div>
99
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>
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>
104
105
  </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>
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>
111
112
  </div>
112
- </div>
113
113
  <div class="row auto bg-white app-row col-xs-12 col-sm-12 col-md-12" v-if="showic1">
114
114
  <p class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">IC卡累计</p>
115
115
  <div class="col-xs-8 col-sm-8 col-md-8 ">
@@ -231,12 +231,12 @@
231
231
  <input type="number" id="f_weekchecknum" class="form-control font " v-el:f_weekchecknum v-model="model.f_weekchecknum" v-next-el="f_weekcheckicnum">
232
232
  </div>
233
233
  </div>
234
- <!-- <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 ">-->
235
- <!-- <label for="f_weekchecknum" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表IC卡累计底数</label>-->
236
- <!-- <div class="col-xs-8 col-sm-8 col-md-8 ">-->
237
- <!-- <input type="number" id="f_weekcheckcardnum" class="form-control font " v-el:f_weekchecknum v-model="model.f_weekcheckcardnum" v-next-el="f_weekcheckicnum">-->
238
- <!-- </div>-->
239
- <!-- </div>-->
234
+ <!-- <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 ">-->
235
+ <!-- <label for="f_weekchecknum" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表IC卡累计底数</label>-->
236
+ <!-- <div class="col-xs-8 col-sm-8 col-md-8 ">-->
237
+ <!-- <input type="number" id="f_weekcheckcardnum" class="form-control font " v-el:f_weekchecknum v-model="model.f_weekcheckcardnum" v-next-el="f_weekcheckicnum">-->
238
+ <!-- </div>-->
239
+ <!-- </div>-->
240
240
  <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 ">
241
241
  <label for="f_weekcheckicnum" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表安装时剩余气量</label>
242
242
  <div class="col-xs-8 col-sm-8 col-md-8 ">
@@ -246,37 +246,37 @@
246
246
  </div>
247
247
 
248
248
  <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 ">
249
- <label for="f_weekcheckicsn" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表安装时间</label>
250
- <div class="col-xs-8 col-sm-8 col-md-8 ">
251
- <datepicker
252
- :value.sync="model.f_weekchecktime"
253
- :format="'yyyy-MM-dd HH:mm:ss'"
254
- v-model="model.f_weekchecktime"
255
- :show-reset-button="reset" placeholder="替换表安装时间" style="margin-bottom: 8px">
256
- </datepicker>
257
- </div>
249
+ <label for="f_weekcheckicsn" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表安装时间</label>
250
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
251
+ <datepicker
252
+ :value.sync="model.f_weekchecktime"
253
+ :format="'yyyy-MM-dd HH:mm:ss'"
254
+ v-model="model.f_weekchecktime"
255
+ :show-reset-button="reset" placeholder="替换表安装时间" style="margin-bottom: 8px">
256
+ </datepicker>
257
+ </div>
258
258
  </div>
259
259
  <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 ">
260
260
 
261
- <label for="f_weekcheckicsn" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表卡号</label>
262
- <div class="col-xs-8 col-sm-8 col-md-8 ">
263
- <input type="text" id="f_weekchecksn" class="form-control font" v-el:f_weekcheckicsn v-model="model.f_weekcheckicsn" @blur="getWeekByCard(model.f_weekcheckicsn)" >
264
- </div>
261
+ <label for="f_weekcheckicsn" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表卡号</label>
262
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
263
+ <input type="text" id="f_weekchecksn" class="form-control font" v-el:f_weekcheckicsn v-model="model.f_weekcheckicsn" @blur="getWeekByCard(model.f_weekcheckicsn)" >
265
264
  </div>
265
+ </div>
266
266
  <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 ">
267
267
 
268
- <label for="f_weekchecksn" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表基表表号</label>
269
- <div class="col-xs-8 col-sm-8 col-md-8 ">
270
- <input type="text" id="f_weekcheckmeternum" class="form-control font" v-el:f_weekcheckmeternum v-model="model.f_weekcheckmeternum" >
271
- </div>
268
+ <label for="f_weekchecksn" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表基表表号</label>
269
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
270
+ <input type="text" id="f_weekcheckmeternum" class="form-control font" v-el:f_weekcheckmeternum v-model="model.f_weekcheckmeternum" >
272
271
  </div>
272
+ </div>
273
273
  <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 ">
274
274
 
275
- <label for="f_weekchecksn" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表表号</label>
276
- <div class="col-xs-8 col-sm-8 col-md-8 ">
277
- <input type="text" id="f_weekchecksn" class="form-control font" v-el:f_weekchecksn v-model="model.f_weekchecksn" >
278
- </div>
275
+ <label for="f_weekchecksn" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表表号</label>
276
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
277
+ <input type="text" id="f_weekchecksn" class="form-control font" v-el:f_weekchecksn v-model="model.f_weekchecksn" >
279
278
  </div>
279
+ </div>
280
280
  <div class="auto row bg-white col-sm-12 col-xs-12 col-md-12">
281
281
  <div class="auto col-sm-6 col-xs-6 col-md-6">
282
282
  <input class="magic-checkbox" type="checkbox" id="f_check_unstall" :true-value="'是'" :false-value="''"
@@ -285,37 +285,37 @@
285
285
  </div>
286
286
  </div>
287
287
  <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 ">
288
- <label for="f_weekcheckicsn" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表拆卸时间</label>
289
- <div class="col-xs-8 col-sm-8 col-md-8 ">
290
- <datepicker
291
- :value.sync="model.f_weekchecktime"
292
- :format="'yyyy-MM-dd HH:mm:ss'"
293
- v-model="model.f_weekchecktime"
294
- :show-reset-button="reset" placeholder="替换表拆卸时间" style="margin-bottom: 8px">
295
- </datepicker>
296
- </div>
288
+ <label for="f_weekcheckicsn" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表拆卸时间</label>
289
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
290
+ <datepicker
291
+ :value.sync="model.f_weekchecktime"
292
+ :format="'yyyy-MM-dd HH:mm:ss'"
293
+ v-model="model.f_weekchecktime"
294
+ :show-reset-button="reset" placeholder="替换表拆卸时间" style="margin-bottom: 8px">
295
+ </datepicker>
296
+ </div>
297
297
  </div>
298
298
  <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 ">
299
299
 
300
- <label for="f_weekcheckicsn" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表卡号</label>
301
- <div class="col-xs-8 col-sm-8 col-md-8 ">
302
- <input type="text" id="f_weekchecksn" class="form-control font" v-el:f_weekcheckicsn v-model="model.f_weekcheckicsn" readonly >
303
- </div>
300
+ <label for="f_weekcheckicsn" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表卡号</label>
301
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
302
+ <input type="text" id="f_weekchecksn" class="form-control font" v-el:f_weekcheckicsn v-model="model.f_weekcheckicsn" readonly >
303
+ </div>
304
304
 
305
305
  </div>
306
306
  <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 ">
307
307
 
308
- <label for="f_weekchecksn" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表基表表号</label>
309
- <div class="col-xs-8 col-sm-8 col-md-8 ">
310
- <input type="text" id="f_weekcheckmeternum" class="form-control font" v-el:f_weekcheckmeternum v-model="model.f_weekcheckmeternum" readonly>
311
- </div>
308
+ <label for="f_weekchecksn" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表基表表号</label>
309
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
310
+ <input type="text" id="f_weekcheckmeternum" class="form-control font" v-el:f_weekcheckmeternum v-model="model.f_weekcheckmeternum" readonly>
311
+ </div>
312
312
  </div>
313
313
  <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 ">
314
314
 
315
- <label for="f_weekchecksn" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表表号</label>
316
- <div class="col-xs-8 col-sm-8 col-md-8 ">
317
- <input type="text" id="f_weekchecksn" class="form-control font" v-el:f_weekchecksn v-model="model.f_weekchecksn" readonly>
318
- </div>
315
+ <label for="f_weekchecksn" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表表号</label>
316
+ <div class="col-xs-8 col-sm-8 col-md-8 ">
317
+ <input type="text" id="f_weekchecksn" class="form-control font" v-el:f_weekchecksn v-model="model.f_weekchecksn" readonly>
318
+ </div>
319
319
  </div>
320
320
  <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 ">
321
321
  <label for="f_weekchecknum" class="panel-title col-xs-4 col-sm-4 col-md-4 text-left font">替换表上次读数</label>
@@ -386,426 +386,442 @@
386
386
  </div>
387
387
  </template>
388
388
  <script>
389
- import * as Util from './../Util'
390
- import Vue from 'vue'
391
- import co from 'co'
392
- import AppData from '../../stores/AppData'
393
- let getDataGen = function * (self, val) {
389
+ import * as Util from './../Util'
390
+ import Vue from 'vue'
391
+ import co from 'co'
392
+ import LoadData from '../../plugins/LoadData'
393
+ import AppData from 'readmeter-changan/src/stores/AppData'
394
+ let getDataGen = function * (self, val) {
395
+ yield self.$resetpost(Vue.handdataUrl + 'rs/sql/getUserInfo', {data:{
396
+ condition:`card_id = '${self.model.f_weekcheckicsn}'`
397
+ }}, {resolveMsg: null, rejectMsg: null})
398
+ .then((res) =>{
399
+ console.log(JSON.stringify(res.data));
400
+ if(res.data.length>0){
401
+ self.model.f_weekcheckmeternum = res.data[0].f_jb_table_code
402
+ self.model.f_weekchecksn = res.data[0].f_meternumber
403
+ }
394
404
 
395
- yield self.$resetpost(Vue.handdataUrl + 'rs/sql/getUserInfo', {data:{
396
- condition:`card_id = '${self.model.f_weekcheckicsn}'`
397
- }}, {resolveMsg: null, rejectMsg: null})
398
- .then((res) =>{
399
- console.log(JSON.stringify(res.data));
400
- if(res.data.length>0){
401
- self.model.f_weekcheckmeternum = res.data[0].f_jb_table_code
402
- self.model.f_weekchecksn = res.data[0].f_meternumber
405
+ })
406
+ }
407
+ export default {
408
+ title: '手机单户抄表',
409
+ data () {
410
+ return {
411
+ result:{params:{}},
412
+ cleanperson:[],
413
+ checkperson:[],
414
+ formperson:[],
415
+ install:[{label:'开始',value:'开始'},{label:'结束',value:'结束'}],
416
+ model: {
417
+ f_mark:'',
418
+ f_condition:'',
419
+ f_pressure:'',
420
+ f_temperature:'',
421
+ f_new_install:'',
422
+ f_result_state:'',
423
+ f_check_result_state:'',
424
+ f_check_install:'',
425
+ f_check_unstall:'',
426
+ f_wirelock:'',
427
+ imgInfo: '',
428
+ imgName: '',
429
+ sumgas_moment:0,
430
+ f_datacomparison:0,
431
+ f_weekcheckmeternum:'',
432
+ f_weekchecktime:Util.toStandardTimeString(),
433
+ f_weekcheckicsn:'',
434
+ f_weekchecksn:'',
435
+ f_weekchecknum:'',
436
+ f_weekcheckicnum:'',
437
+ f_weekcheckdishu:'',
438
+ f_insflow:0,
439
+ f_weekcheckicdishu:'',
440
+ f_oughtamount: 0,
441
+ f_new_lcd:0,
442
+ f_curbalance:0,
443
+ f_meter_repair:0,
444
+ f_card_repair:0,
445
+ f_new_tablebase:0,
446
+ f_tablesnapsgas:0,
447
+ f_icsnapsgas:0,
448
+ imgs:[]
449
+ },
450
+ showic:false,
451
+ showic1:false,
452
+ imgurl:'',
453
+ system:'',
454
+ flag: false
455
+ }
456
+ },
457
+ props: {
458
+ data: {
459
+ type: Object,
460
+ default: function () {
461
+ return {
403
462
  }
404
-
405
- })
406
- }
407
- export default {
408
- title: '手机单户抄表',
409
- data () {
410
- return {
411
- cleanperson: AppData.getParam('清滤芯人员'),
412
- checkperson: AppData.getParam('查漏人员'),
413
- formperson: AppData.getParam('单据填算人员'),
414
- install:[{label:'开始',value:'开始'},{label:'结束',value:'结束'}],
415
- model: {
416
- f_mark:'',
417
- f_condition:'',
418
- f_pressure:'',
419
- f_temperature:'',
420
- f_new_install:'',
421
- f_result_state:'',
422
- f_check_result_state:'',
423
- f_check_install:'',
424
- f_check_unstall:'',
425
- f_wirelock:'',
426
- imgInfo: '',
427
- imgName: '',
428
- sumgas_moment:0,
429
- f_datacomparison:0,
430
- f_weekcheckmeternum:'',
431
- f_weekchecktime:Util.toStandardTimeString(),
432
- f_weekcheckicsn:'',
433
- f_weekchecksn:'',
434
- f_weekchecknum:'',
435
- f_weekcheckicnum:'',
436
- f_weekcheckdishu:'',
437
- f_insflow:0,
438
- f_weekcheckicdishu:'',
439
- f_oughtamount: 0,
440
- f_new_lcd:0,
441
- f_curbalance:0,
442
- f_meter_repair:0,
443
- f_card_repair:0,
444
- f_new_tablebase:0,
445
- f_tablesnapsgas:0,
446
- f_icsnapsgas:0,
447
- imgs:[]
448
- },
449
- showic:false,
450
- showic1:false,
451
- imgurl:'',
452
- system:'',
453
- flag: false
454
463
  }
455
464
  },
456
- props: {
457
- data: {
458
- type: Object,
459
- default: function () {
460
- return {
461
- }
462
- }
463
- },
464
- showmessage:true,
465
- type: {
466
- type: String,
467
- default: 'save'
465
+ showmessage:true,
466
+ type: {
467
+ type: String,
468
+ default: 'save'
469
+ }
470
+ },
471
+ watch:{
472
+ 'model.f_result_state'(val){
473
+ if(val && val==='异常'){
474
+ this.showic1 = true
468
475
  }
469
476
  },
470
- watch:{
471
- 'model.f_result_state'(val){
472
- if(val && val==='异常'){
473
- this.showic1 = true
474
- }
475
- },
476
- 'model.f_check_result_state'(val){
477
- if(val && val==='异常'){
478
- this.showic = true
479
- }
480
- },
481
- 'model.f_check_install'(val){
482
- if(val){
483
- this.model.f_check_unstall = ''
484
- }
485
- },
486
- 'model.f_check_unstall'(val){
487
- if(val){
488
- this.model.f_check_install = ''
489
- }
490
- },
491
- 'data.f_download'(val){
492
- if(this.data.f_download){
493
- // this.$showMessage('数据更新成功,请核对数据重新计算')
494
- this.data.f_new_lcd = this.model.f_new_lcd,
495
- this.data.f_tablebase = this.model.f_new_tablebase,
496
- this.data.f_weekcheckdishu = this.model.f_weekcheckdishu,
497
- this.data.f_weekcheckicdishu = this.model.f_weekcheckicdishu
498
- }
477
+ 'model.f_check_result_state'(val){
478
+ if(val && val==='异常'){
479
+ this.showic = true
480
+ }
481
+ },
482
+ 'model.f_check_install'(val){
483
+ if(val){
484
+ this.model.f_check_unstall = ''
485
+ }
486
+ },
487
+ 'model.f_check_unstall'(val){
488
+ if(val){
489
+ this.model.f_check_install = ''
490
+ }
491
+ },
492
+ 'data.f_download'(val){
493
+ if(this.data.f_download){
494
+ // this.$showMessage('数据更新成功,请核对数据重新计算')
495
+ this.data.f_new_lcd = this.model.f_new_lcd,
496
+ this.data.f_tablebase = this.model.f_new_tablebase,
497
+ this.data.f_weekcheckdishu = this.model.f_weekcheckdishu,
498
+ this.data.f_weekcheckicdishu = this.model.f_weekcheckicdishu
499
+ }
499
500
 
500
- // this.model = Object.assign({}, this.model, this.data)
501
- this.updatedata()
501
+ // this.model = Object.assign({}, this.model, this.data)
502
+ this.updatedata()
503
+ }
504
+ },
505
+ async ready () {
506
+ Vue.resetpost(Vue.handdataUrl + 'NewSaleRest/rs/logic/getSaleInitData', {data: {f_filialeids:''}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
507
+ res.data.params.forEach((item) => {
508
+ let value = []
509
+ item.f_paramvalues.forEach((item, index) => {
510
+ value[index] = {}
511
+ value[index].label = item.name
512
+ value[index].value = item.name
513
+ })
514
+ this.result.params[item.name] = value
515
+ })
516
+ this.cleanperson = this.result.params['清理滤芯人员']
517
+ this.checkperson = this.result.params['查漏人员']
518
+ this.formperson = this.result.params['单据填算人员']
519
+ })
520
+ // Vue.handdataUrl = ''
521
+ // this.$resetpost( 'rs/sql/getUserInfo', {data:{
522
+ // condition:`card_id = '9999999014'`
523
+ // }}, {resolveMsg: null, rejectMsg: null})
524
+ // .then((res) =>{
525
+ // console.log(JSON.stringify(res.data));
526
+ // if(res.data.length>0){
527
+ // this.data = Object.assign(this.data,res.data[0])
528
+ // this.model = Object.assign(this.model,res.data[0])
529
+ // this.model.f_result_state = '异常'
530
+ // }
531
+ //
532
+ // this.flag = true
533
+ // this.updatedata()
534
+ // this.model.f_result_state = '异常'
535
+ // })
536
+
537
+ // 抄表按钮可以点击
538
+ this.flag = true
539
+ this.updatedata()
540
+ },
541
+ methods: {
542
+ checkbyic(){
543
+ this.model.f_check_result_state = Math.abs(parseInt(this.model.f_checkic)-parseInt(this.model.f_weekcheckdishu))<=this.model.f_tablewitherrorvalue?'正常':'异常'
544
+ },
545
+ checkbyic1(){
546
+ this.model.f_result_state = Math.abs(parseInt(this.model.f_checkic1)-parseInt(this.model.f_new_tablebase))<=this.model.f_tablewitherrorvalue?'正常':'异常'
547
+ },
548
+ getWeekByCard(){
549
+ let gen = getDataGen(this)
550
+ co(gen)
551
+ },
552
+ updatedata(){
553
+ this.model = Object.assign({}, this.model, this.data)
554
+ this.model.f_weekchecktime = Util.toStandardTimeString()
555
+ if(this.type === 'save'){
556
+ this.model.f_sumgas = this.data.f_sumgas?this.data.f_sumgas:0,
557
+ this.model.f_nogasvalue = this.data.f_nogasvalue?this.data.f_nogasvalue:0,
558
+ this.model.f_hasnotcharge = this.data.f_hasnotcharge?this.data.f_hasnotcharge:0,
559
+ this.model.f_hascharge = this.data.f_hascharge?this.data.f_hascharge:0,
560
+ this.model.f_last_lcd = this.data.f_last_lcd?this.data.f_last_lcd:0,
561
+ this.model.f_new_tablebase=this.data.f_new_tablebase?this.data.f_new_tablebase:0,
562
+ this.model.f_new_lcd= this.data.f_new_lcd?this.data.f_new_lcd:0,
563
+ this.model.f_tablesnapsgas=this.data.f_tablesnapsgas?this.data.f_tablesnapsgas:0,
564
+ this.model.f_meter_repair=this.data.f_meter_repair?this.data.f_meter_repair:0,
565
+ this.model.f_card_repair=this.data.f_card_repair?this.data.f_card_repair:0,
566
+ this.model.f_icsnapsgas=this.data.f_icsnapsgas?this.data.f_icsnapsgas:0,
567
+ this.model.f_result_state = this.data.f_result_state?this.data.f_result_state:'正常',
568
+ this.model.f_sumgas_moment = this.data.f_sumgas_moment?this.data.f_sumgas_moment:0,
569
+ this.model.f_curbalance = this.data.f_curbalance?this.data.f_curbalance:0,
570
+ this.model.f_datacomparison = this.data.f_datacomparison?this.data.f_datacomparison:0
502
571
  }
503
572
  },
504
- ready () {
505
- // Vue.handdataUrl = ''
506
- // this.$resetpost( 'rs/sql/getUserInfo', {data:{
507
- // condition:`card_id = '9999999014'`
508
- // }}, {resolveMsg: null, rejectMsg: null})
509
- // .then((res) =>{
510
- // console.log(JSON.stringify(res.data));
511
- // if(res.data.length>0){
512
- // this.data = Object.assign(this.data,res.data[0])
513
- // this.model = Object.assign(this.model,res.data[0])
514
- // this.model.f_result_state = '异常'
515
- // }
516
- //
517
- // this.flag = true
518
- // this.updatedata()
519
- // this.model.f_result_state = '异常'
520
- // })
573
+ getSumGas(){
574
+ this.$goto('hand-sell-history', {model: this.model,showmessage:this.showmessage,temp:'check-info'}, 'list')
575
+ },
576
+ //获取ic卡表数据
577
+ getMoneyMessage(){
578
+ if (this.model.f_curbalance === '' || this.model.f_curbalance === undefined) {
579
+ this.$showMessage('请检查你录入的金额')
580
+ return
581
+ }
582
+ this.model.f_new_lcd = parseInt(this.model.f_curbalance / this.model.f_price)
583
+ this.model.f_pregas = this.model.f_pregas?this.model.f_pregas:0
584
+ this.model.f_sumgas_moment = this.model.f_sumgas_moment?this.model.f_sumgas_moment:0
585
+ let res = this.$androidUtil.bzLogic('gasComputation', this.model,{rejectMsg: null, resolve: null})
586
+ this.model.f_hasnotcharge = parseInt(res.hasnotCharge)
587
+ this.model.f_hascharge = (parseInt(this.model.f_sumgas_moment)+ parseInt(this.model.f_nogasvalue) - parseInt(this.model.f_hasnotcharge))
588
+ console.log('本期已充'+this.model.f_hascharge)
589
+ this.model.f_last_lcd= this.model.f_last_lcd?this.model.f_last_lcd:0
590
+ 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))
591
+ console.log('IC走气'+this.model.f_icsnapsgas)
592
+ this.model.f_result_state = res.f_result_state
593
+ console.log('抄表状态'+this.model.f_result_state)
594
+ this.model.f_datacomparison = (parseInt(this.model.f_icsnapsgas)-parseInt(this.model.f_tablesnapsgas))
595
+ },
596
+ getCardMessage(){
597
+ if (this.model.f_new_lcd === '' || this.model.f_new_lcd === undefined) {
598
+ this.$showMessage('请检查你录入的液晶示数')
599
+ return
600
+ }
601
+ this.model.f_pregas = this.model.f_pregas?this.model.f_pregas:0
602
+ this.model.f_sumgas_moment = this.model.f_sumgas_moment?this.model.f_sumgas_moment:0
603
+ let res = this.$androidUtil.bzLogic('gasComputation', this.model,{rejectMsg: null, resolve: null})
604
+ this.model.f_hasnotcharge = parseInt(res.hasnotCharge)
605
+ this.model.f_hascharge = (parseInt(this.model.f_sumgas_moment)+ parseInt(this.model.f_nogasvalue) - parseInt(this.model.f_hasnotcharge))
606
+ console.log('本期已充'+this.model.f_hascharge)
607
+ this.model.f_last_lcd= this.model.f_last_lcd?this.model.f_last_lcd:0
608
+ 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))
609
+ console.log('IC走气'+this.model.f_icsnapsgas)
610
+ this.model.f_result_state = res.f_result_state
611
+ console.log('抄表状态'+this.model.f_result_state)
612
+ this.model.f_datacomparison = (parseInt(this.model.f_icsnapsgas)-parseInt(this.model.f_tablesnapsgas))
613
+ this.model.f_curbalance = parseInt(this.model.f_new_lcd * this.model.f_price)
614
+ console.log('剩余金额'+this.model.f_curbalance)
521
615
 
522
- // 抄表按钮可以点击
523
- this.flag = true
524
- this.updatedata()
525
616
  },
526
- methods: {
527
- checkbyic(){
528
- this.model.f_check_result_state = Math.abs(parseInt(this.model.f_checkic)-parseInt(this.model.f_weekcheckdishu))<=this.model.f_tablewitherrorvalue?'正常':'异常'
529
- },
530
- checkbyic1(){
531
- this.model.f_result_state = Math.abs(parseInt(this.model.f_checkic1)-parseInt(this.model.f_new_tablebase))<=this.model.f_tablewitherrorvalue?'正常':'异常'
532
- },
533
- getWeekByCard(){
534
- let gen = getDataGen(this)
535
- co(gen)
536
- },
537
- updatedata(){
538
- this.model = Object.assign({}, this.model, this.data)
539
- if(this.type === 'save'){
540
- this.model.f_sumgas = this.data.f_sumgas?this.data.f_sumgas:0,
541
- this.model.f_nogasvalue = this.data.f_nogasvalue?this.data.f_nogasvalue:0,
542
- this.model.f_hasnotcharge = this.data.f_hasnotcharge?this.data.f_hasnotcharge:0,
543
- this.model.f_hascharge = this.data.f_hascharge?this.data.f_hascharge:0,
544
- this.model.f_last_lcd = this.data.f_last_lcd?this.data.f_last_lcd:0,
545
- this.model.f_new_tablebase=this.data.f_new_tablebase?this.data.f_new_tablebase:0,
546
- this.model.f_new_lcd= this.data.f_new_lcd?this.data.f_new_lcd:0,
547
- this.model.f_tablesnapsgas=this.data.f_tablesnapsgas?this.data.f_tablesnapsgas:0,
548
- this.model.f_meter_repair=this.data.f_meter_repair?this.data.f_meter_repair:0,
549
- this.model.f_card_repair=this.data.f_card_repair?this.data.f_card_repair:0,
550
- this.model.f_icsnapsgas=this.data.f_icsnapsgas?this.data.f_icsnapsgas:0,
551
- this.model.f_result_state = this.data.f_result_state?this.data.f_result_state:'正常',
552
- this.model.f_sumgas_moment = this.data.f_sumgas_moment?this.data.f_sumgas_moment:0,
553
- this.model.f_curbalance = this.data.f_curbalance?this.data.f_curbalance:0,
554
- this.model.f_datacomparison = this.data.f_datacomparison?this.data.f_datacomparison:0
555
- }
556
- },
557
- getSumGas(){
558
- this.$goto('hand-sell-history', {model: this.model,showmessage:this.showmessage,temp:'check-info'}, 'list')
559
- },
560
- //获取ic卡表数据
561
- getMoneyMessage(){
562
- if (this.model.f_curbalance === '' || this.model.f_curbalance === undefined) {
563
- this.$showMessage('请检查你录入的金额')
564
- return
565
- }
566
- this.model.f_new_lcd = parseInt(this.model.f_curbalance / this.model.f_price)
567
- this.model.f_pregas = this.model.f_pregas?this.model.f_pregas:0
568
- this.model.f_sumgas_moment = this.model.f_sumgas_moment?this.model.f_sumgas_moment:0
569
- let res = this.$androidUtil.bzLogic('gasComputation', this.model,{rejectMsg: null, resolve: null})
570
- this.model.f_hasnotcharge = parseInt(res.hasnotCharge)
571
- this.model.f_hascharge = (parseInt(this.model.f_sumgas_moment)+ parseInt(this.model.f_nogasvalue) - parseInt(this.model.f_hasnotcharge))
572
- console.log('本期已充'+this.model.f_hascharge)
573
- this.model.f_last_lcd= this.model.f_last_lcd?this.model.f_last_lcd:0
574
- 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))
575
- console.log('IC走气'+this.model.f_icsnapsgas)
576
- this.model.f_result_state = res.f_result_state
577
- console.log('抄表状态'+this.model.f_result_state)
578
- this.model.f_datacomparison = (parseInt(this.model.f_icsnapsgas)-parseInt(this.model.f_tablesnapsgas))
579
- },
580
- getCardMessage(){
581
- if (this.model.f_new_lcd === '' || this.model.f_new_lcd === undefined) {
582
- this.$showMessage('请检查你录入的液晶示数')
583
- return
584
- }
585
- this.model.f_pregas = this.model.f_pregas?this.model.f_pregas:0
586
- this.model.f_sumgas_moment = this.model.f_sumgas_moment?this.model.f_sumgas_moment:0
587
- let res = this.$androidUtil.bzLogic('gasComputation', this.model,{rejectMsg: null, resolve: null})
588
- this.model.f_hasnotcharge = parseInt(res.hasnotCharge)
589
- this.model.f_hascharge = (parseInt(this.model.f_sumgas_moment)+ parseInt(this.model.f_nogasvalue) - parseInt(this.model.f_hasnotcharge))
590
- console.log('本期已充'+this.model.f_hascharge)
591
- this.model.f_last_lcd= this.model.f_last_lcd?this.model.f_last_lcd:0
592
- 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))
593
- console.log('IC走气'+this.model.f_icsnapsgas)
594
- this.model.f_result_state = res.f_result_state
595
- console.log('抄表状态'+this.model.f_result_state)
596
- this.model.f_datacomparison = (parseInt(this.model.f_icsnapsgas)-parseInt(this.model.f_tablesnapsgas))
597
- this.model.f_curbalance = parseInt(this.model.f_new_lcd * this.model.f_price)
598
- console.log('剩余金额'+this.model.f_curbalance)
599
617
 
600
- },
618
+ getWeekCardMessage(){
619
+ // if(this.model.f_weekcheck&&this.model.f_weekcheck ==='1'&& this.model.f_weekcheckicdishu){
620
+ // this.model.f_new_lcd = this.model.f_weekcheckicdishu
621
+ // }
622
+ if (this.model.f_weekcheckicdishu === '' || this.model.f_weekcheckicdishu === undefined) {
623
+ this.$showMessage('请检查你录入的液晶示数')
624
+ return
625
+ }
601
626
 
602
- getWeekCardMessage(){
603
- // if(this.model.f_weekcheck&&this.model.f_weekcheck ==='1'&& this.model.f_weekcheckicdishu){
604
- // this.model.f_new_lcd = this.model.f_weekcheckicdishu
605
- // }
606
- if (this.model.f_weekcheckicdishu === '' || this.model.f_weekcheckicdishu === undefined) {
607
- this.$showMessage('请检查你录入的液晶示数')
608
- return
609
- }
627
+ let postdata = Object.assign({},this.model)
628
+ postdata.week = '1',
610
629
 
611
- let postdata = Object.assign({},this.model)
612
- postdata.week = '1',
630
+ this.model.f_pregas = this.model.f_pregas?this.model.f_pregas:0
631
+ this.model.f_sumgas_moment = this.model.f_sumgas_moment?this.model.f_sumgas_moment:0
632
+ let res = this.$androidUtil.bzLogic('gasComputation', postdata,{rejectMsg: null, resolve: null})
633
+ this.model.f_hasnotcharge = parseInt(res.hasnotCharge)
634
+ this.model.f_hascharge = (parseInt(this.model.f_sumgas_moment)+ parseInt(this.model.f_nogasvalue) - parseInt(this.model.f_hasnotcharge))
635
+ console.log('本期已充'+this.model.f_hascharge)
636
+ this.model.f_weekcheckicnum= this.model.f_weekcheckicnum?this.model.f_weekcheckicnum:0
637
+ 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))
638
+ console.log('IC走气'+this.model.f_icsnapsgas)
639
+ this.model.f_check_result_state = res.f_result_state
640
+ console.log('抄表状态'+this.model.f_result_state)
641
+ this.model.f_datacomparison = (parseInt(this.model.f_icsnapsgas)-parseInt(this.model.f_tablesnapsgas))
642
+ this.model.f_curbalance = parseInt(this.model.f_new_lcd * this.model.f_price)
643
+ console.log('剩余金额'+this.model.f_curbalance)
644
+ },
645
+ //获取基表走气量
646
+ getMeterMessage(){
647
+ // if(this.model.f_weekcheck&&this.model.f_weekcheck ==='1'&& this.model.f_weekcheckdishu){
648
+ // this.model.f_weekcheckdishu = this.model.f_new_tablebase
649
+ // }
650
+ if (this.model.f_new_tablebase === '' || this.model.f_new_tablebase === undefined) {
651
+ this.$showMessage('请检查你录入的表底数')
652
+ return
653
+ }
654
+ if (parseInt(this.model.f_new_tablebase) - parseInt(this.model.f_last_tablebase) < 0) {
655
+ this.$showMessage('录入本期表底数不能小于上期表底数!')
656
+ return
657
+ }
658
+ this.model.f_meter_repair= this.model.f_meter_repair?this.model.f_meter_repair:0
659
+ this.model.f_last_tablebase= this.model.f_last_tablebase?this.model.f_last_tablebase:0
660
+ // this.$set(this.model.f_tablesnapsgas,'')
661
+ this.model.f_tablesnapsgas = parseInt(this.model.f_new_tablebase)- parseInt(this.model.f_last_tablebase)-parseInt(this.model.f_meter_repair)
662
+ if (this.model.f_new_lcd ) {
663
+ this.getCardMessage()
664
+ }
665
+ },
613
666
 
614
- this.model.f_pregas = this.model.f_pregas?this.model.f_pregas:0
615
- this.model.f_sumgas_moment = this.model.f_sumgas_moment?this.model.f_sumgas_moment:0
616
- let res = this.$androidUtil.bzLogic('gasComputation', postdata,{rejectMsg: null, resolve: null})
617
- this.model.f_hasnotcharge = parseInt(res.hasnotCharge)
618
- this.model.f_hascharge = (parseInt(this.model.f_sumgas_moment)+ parseInt(this.model.f_nogasvalue) - parseInt(this.model.f_hasnotcharge))
619
- console.log('本期已充'+this.model.f_hascharge)
620
- this.model.f_weekcheckicnum= this.model.f_weekcheckicnum?this.model.f_weekcheckicnum:0
621
- 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))
622
- console.log('IC走气'+this.model.f_icsnapsgas)
623
- this.model.f_check_result_state = res.f_result_state
624
- console.log('抄表状态'+this.model.f_result_state)
625
- this.model.f_datacomparison = (parseInt(this.model.f_icsnapsgas)-parseInt(this.model.f_tablesnapsgas))
626
- this.model.f_curbalance = parseInt(this.model.f_new_lcd * this.model.f_price)
627
- console.log('剩余金额'+this.model.f_curbalance)
628
- },
629
- //获取基表走气量
630
- getMeterMessage(){
631
- // if(this.model.f_weekcheck&&this.model.f_weekcheck ==='1'&& this.model.f_weekcheckdishu){
632
- // this.model.f_weekcheckdishu = this.model.f_new_tablebase
633
- // }
634
- if (this.model.f_new_tablebase === '' || this.model.f_new_tablebase === undefined) {
635
- this.$showMessage('请检查你录入的表底数')
636
- return
637
- }
638
- if (parseInt(this.model.f_new_tablebase) - parseInt(this.model.f_last_tablebase) < 0) {
639
- this.$showMessage('录入本期表底数不能小于上期表底数!')
640
- return
641
- }
642
- this.model.f_meter_repair= this.model.f_meter_repair?this.model.f_meter_repair:0
643
- this.model.f_last_tablebase= this.model.f_last_tablebase?this.model.f_last_tablebase:0
644
- // this.$set(this.model.f_tablesnapsgas,'')
645
- this.model.f_tablesnapsgas = parseInt(this.model.f_new_tablebase)- parseInt(this.model.f_last_tablebase)-parseInt(this.model.f_meter_repair)
646
- if (this.model.f_new_lcd ) {
647
- this.getCardMessage()
648
- }
649
- },
667
+ //获取基表走气量
668
+ getWeekMeterMessage(){
669
+ // if(this.model.f_weekcheck&&this.model.f_weekcheck ==='1'&& this.model.f_weekcheckdishu){
670
+ // this.model.f_weekcheckdishu = this.model.f_new_tablebase
671
+ // }
672
+ if (this.model.f_weekcheckdishu === '' || this.model.f_weekcheckdishu === undefined) {
673
+ this.$showMessage('请检查你录入的表底数')
674
+ return
675
+ }
676
+ if (parseInt(this.model.f_weekcheckdishu) - parseInt(this.model.f_weekchecknum) < 0) {
677
+ this.$showMessage('录入本期表底数不能小于上期表底数!')
678
+ return
679
+ }
680
+ this.model.f_meter_repair= this.model.f_meter_repair?this.model.f_meter_repair:0
681
+ this.model.f_weekchecknum= this.model.f_weekchecknum?this.model.f_weekchecknum:0
682
+ // this.$set(this.model.f_tablesnapsgas,'')
683
+ this.model.f_weektablesnapsgas = parseInt(this.model.f_weekcheckdishu)- parseInt(this.model.f_weekchecknum)-parseInt(this.model.f_meter_repair)
684
+ if (this.model.f_weekcheckicdishu ) {
685
+ this.getWeekCardMessage()
686
+ }
687
+ },
650
688
 
651
- //获取基表走气量
652
- getWeekMeterMessage(){
653
- // if(this.model.f_weekcheck&&this.model.f_weekcheck ==='1'&& this.model.f_weekcheckdishu){
654
- // this.model.f_weekcheckdishu = this.model.f_new_tablebase
655
- // }
656
- if (this.model.f_weekcheckdishu === '' || this.model.f_weekcheckdishu === undefined) {
657
- this.$showMessage('请检查你录入的表底数')
658
- return
659
- }
689
+ commit () {
690
+ if ((parseInt(this.model.f_new_tablebase) - parseInt(this.model.f_last_tablebase) < 0) && this.model.f_if_change!=='是') {
691
+ this.$showMessage('录入本期表底数不能小于上期表底数!请核对抄表数据')
692
+ return
693
+ }
694
+ if(this.model.f_check_install){
695
+ this.model.f_weekcheck = 1
696
+ }
697
+ if(this.model.f_check_unstall){
698
+ this.model.f_weekcheck = 0
699
+ }
700
+ if(this.model.f_weekcheck==='1'||this.model.f_weekcheck==='true'||this.model.f_weekcheck==='是'){
660
701
  if (parseInt(this.model.f_weekcheckdishu) - parseInt(this.model.f_weekchecknum) < 0) {
661
702
  this.$showMessage('录入本期表底数不能小于上期表底数!')
662
703
  return
663
704
  }
664
- this.model.f_meter_repair= this.model.f_meter_repair?this.model.f_meter_repair:0
665
- this.model.f_weekchecknum= this.model.f_weekchecknum?this.model.f_weekchecknum:0
666
- // this.$set(this.model.f_tablesnapsgas,'')
667
- this.model.f_weektablesnapsgas = parseInt(this.model.f_weekcheckdishu)- parseInt(this.model.f_weekchecknum)-parseInt(this.model.f_meter_repair)
668
- if (this.model.f_weekcheckicdishu ) {
669
- this.getWeekCardMessage()
670
- }
671
- },
672
-
673
- commit () {
674
- if ((parseInt(this.model.f_new_tablebase) - parseInt(this.model.f_last_tablebase) < 0) && this.model.f_if_change!=='是') {
675
- this.$showMessage('录入本期表底数不能小于上期表底数!请核对抄表数据')
676
- return
677
- }
678
- if(this.model.f_check_install){
679
- this.model.f_weekcheck = 1
680
- }
681
- if(this.model.f_check_unstall){
682
- this.model.f_weekcheck = 0
683
- }
684
- if(this.model.f_weekcheck==='1'||this.model.f_weekcheck==='true'||this.model.f_weekcheck==='是'){
685
- if (parseInt(this.model.f_weekcheckdishu) - parseInt(this.model.f_weekchecknum) < 0) {
686
- this.$showMessage('录入本期表底数不能小于上期表底数!')
687
- return
688
- }
689
- // if (parseInt(this.model.f_weekcheckdishu) - parseInt(this.model.f_weekchecknum) < 0) {
690
- // this.$showMessage('录入本期表底数不能小于上期表底数!')
691
- // return
692
- // }
693
- }
694
- // if (!(this.model.imgName && this.model.imgName.length > 0)) {
695
- // this.$showMessage('请录入抄表照片!')
705
+ // if (parseInt(this.model.f_weekcheckdishu) - parseInt(this.model.f_weekchecknum) < 0) {
706
+ // this.$showMessage('录入本期表底数不能小于上期表底数!')
696
707
  // return
697
708
  // }
698
- if (!this.flag) {
699
- this.$showMessage(`系统正在进行抄表,请勿重复操作!`)
700
- // this.$showAlert('系统正在进行抄表,请勿重复操作!', 'warning', 2000)
701
- return
702
- }
703
- if(this.model.lastImgName){
704
- this.model.lastImgName = `.${this.model.f_user_name}${this.model.imgName.substring(this.model.imgName.indexOf('.'))}`
705
- }
706
- // 设置抄表按钮不可用
709
+ }
710
+ // if (!(this.model.imgName && this.model.imgName.length > 0)) {
711
+ // this.$showMessage('请录入抄表照片!')
712
+ // return
713
+ // }
714
+ if (!this.flag) {
715
+ this.$showMessage(`系统正在进行抄表,请勿重复操作!`)
716
+ // this.$showAlert('系统正在进行抄表,请勿重复操作!', 'warning', 2000)
717
+ return
718
+ }
719
+ if(this.model.lastImgName){
720
+ this.model.lastImgName = `.${this.model.f_user_name}${this.model.imgName.substring(this.model.imgName.indexOf('.'))}`
721
+ }
722
+ // 设置抄表按钮不可用
723
+ this.flag = false
724
+ // 将用户编号放入抄表照片名中
725
+ console.log(this.model.lastImgName)
726
+ this.model.f_oughtamount = parseInt(this.model.f_new_tablebase) - parseInt(this.model.f_last_tablebase)
727
+ // this.model.f_last_hand_date = Util.getBeforeMonth(this.model.f_hand_date)
728
+ // this.model.f_last_hand_date =
729
+ this.model.f_new_tablebase = parseInt(this.model.f_new_tablebase)
730
+ this.model.f_new_lcd = parseInt(this.model.f_new_lcd)
731
+ this.model.f_end_time = this.data.f_end_time
732
+ let res = this.$androidUtil.bzLogic('phone-readmeter', this.model, {rejectMsg: null, resolve: null})
733
+ console.log(res)
734
+ if (res.code === 200) {
735
+ console.log('抄表完成!')
736
+ // 抄表完成设置按钮可用
707
737
  this.flag = false
708
- // 将用户编号放入抄表照片名中
709
- console.log(this.model.lastImgName)
710
- this.model.f_oughtamount = parseInt(this.model.f_new_tablebase) - parseInt(this.model.f_last_tablebase)
711
- // this.model.f_last_hand_date = Util.getBeforeMonth(this.model.f_hand_date)
712
- // this.model.f_last_hand_date =
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
- this.model.f_end_time = this.data.f_end_time
716
- let res = this.$androidUtil.bzLogic('phone-readmeter', this.model, {rejectMsg: null, resolve: null})
717
- console.log(res)
718
- if (res.code === 200) {
719
- console.log('抄表完成!')
720
- // 抄表完成设置按钮可用
721
- this.flag = false
722
- this.$showMessage('抄表成功!')
723
- // this.$showAlert('抄表成功!', 'success', 2000)
724
- // 发送抄表成功事件给父页面
725
- // this.$dispatch('hand-success', this.type)
726
- }else{
727
- console.log('抄表失败')
728
- // 抄表完成设置按钮可用
729
- this.flag = true
730
- // this.$showMessage(`${res.backData.msg}!请前往表单上传重新提交`)
731
- // this.$showAlert(`${res.backData.msg}!请前往表单上传重新提交`, 'danger', 2000)
732
- }
733
- },
734
- //将数据存入本地数据库,下次进入页面回写数据
735
- save(){
736
- if (!this.flag) {
737
- this.$showMessage(`该抄表单已上传成功,请勿重复保存!`)
738
- return
739
- }
738
+ this.$showMessage('抄表成功!')
739
+ // this.$showAlert('抄表成功!', 'success', 2000)
740
+ // 发送抄表成功事件给父页面
741
+ // this.$dispatch('hand-success', this.type)
742
+ }else{
743
+ console.log('抄表失败')
744
+ // 抄表完成设置按钮可用
745
+ this.flag = true
746
+ // this.$showMessage(`${res.backData.msg}!请前往表单上传重新提交`)
747
+ // this.$showAlert(`${res.backData.msg}!请前往表单上传重新提交`, 'danger', 2000)
748
+ }
749
+ },
750
+ //将数据存入本地数据库,下次进入页面回写数据
751
+ save(){
752
+ if (!this.flag) {
753
+ this.$showMessage(`该抄表单已上传成功,请勿重复保存!`)
754
+ return
755
+ }
740
756
 
741
- if ((parseInt(this.model.f_new_tablebase) - parseInt(this.model.f_last_tablebase)) < 0 && this.model.f_if_change!=='是') {
742
- this.$showMessage('录入本期表底数不能小于上期表底数!请核对抄表数据')
757
+ if ((parseInt(this.model.f_new_tablebase) - parseInt(this.model.f_last_tablebase)) < 0 && this.model.f_if_change!=='是') {
758
+ this.$showMessage('录入本期表底数不能小于上期表底数!请核对抄表数据')
759
+ return
760
+ }
761
+ // window.alert(this.f_check_install)
762
+ if(this.model.f_check_install){
763
+ this.model.f_weekcheck = 1
764
+ }
765
+ if(this.model.f_check_unstall){
766
+ this.model.f_weekcheck = 0
767
+ }
768
+ if(this.model.f_weekcheck==='1'||this.model.f_weekcheck==='true'||this.model.f_weekcheck==='是'){
769
+ if (parseInt(this.model.f_weekcheckdishu) - parseInt(this.model.f_weekchecknum) < 0) {
770
+ this.$showMessage('录入本期表底数不能小于上期表底数!')
743
771
  return
744
772
  }
745
- // window.alert(this.f_check_install)
746
- if(this.model.f_check_install){
747
- this.model.f_weekcheck = 1
748
- }
749
- if(this.model.f_check_unstall){
750
- this.model.f_weekcheck = 0
751
- }
752
- if(this.model.f_weekcheck==='1'||this.model.f_weekcheck==='true'||this.model.f_weekcheck==='是'){
753
- if (parseInt(this.model.f_weekcheckdishu) - parseInt(this.model.f_weekchecknum) < 0) {
754
- this.$showMessage('录入本期表底数不能小于上期表底数!')
755
- return
756
- }
757
- // if (parseInt(this.model.f_weekcheckdishu) - parseInt(this.model.f_weekchecknum) < 0) {
758
- // this.$showMessage('录入本期表底数不能小于上期表底数!')
759
- // return
760
- // }
761
- }
762
- this.model.f_end_time = this.data.f_end_time
763
- this.model.f_new_tablebase = parseInt(this.model.f_new_tablebase)
764
- this.model.f_new_lcd = parseInt(this.model.f_new_lcd)
765
- let res = this.$androidUtil.bzLogic('local-save',this.model,{rejectMsg: null, resolve: null})
766
- if(res.status === 200){
767
- // this.flag = false
768
- this.$showMessage('本地数据保存成功!')
769
- // this.$showAlert('本地数据保存成功!', 'success', 2000)
770
- }
773
+ // if (parseInt(this.model.f_weekcheckdishu) - parseInt(this.model.f_weekchecknum) < 0) {
774
+ // this.$showMessage('录入本期表底数不能小于上期表底数!')
775
+ // return
776
+ // }
777
+ }
778
+ this.model.f_end_time = this.data.f_end_time
779
+ this.model.f_new_tablebase = parseInt(this.model.f_new_tablebase)
780
+ this.model.f_new_lcd = parseInt(this.model.f_new_lcd)
781
+ let res = this.$androidUtil.bzLogic('local-save',this.model,{rejectMsg: null, resolve: null})
782
+ if(res.status === 200){
783
+ // this.flag = false
784
+ this.$showMessage('本地数据保存成功!')
785
+ // this.$showAlert('本地数据保存成功!', 'success', 2000)
771
786
  }
772
787
  }
773
788
  }
789
+ }
774
790
  </script>
775
791
  <style scoped>
776
- .mt-5 {
777
- margin-top: 5px;
778
- }
779
- .mt-10 {
780
- margin-top: 10px;
781
- }
782
- .mt-20 {
783
- margin-top: 20px;
784
- }
785
- .app-row-none-border {
786
- background-color: white;
787
- padding: 10px 10px 0 10px;
788
- }
789
- .font{
790
- font: 17px PingFang-SC-Medium;
791
- color: #666666
792
- }
793
- .show-font{
794
- font: 17px PingFang-SC-Medium;
795
- color: #333333
796
- }
797
- .btn-font{
798
- font:600 16px PingFang-SC-Bold;
799
- color: #499EDF;
800
- }
801
- .head{
802
- font-size: 1.25em;
803
- font-weight: bolder;
804
- padding: 0.5em;
805
- }
806
- .btn-color{
807
- background-color: #FFFFFF;
808
- border-radius: 10px ;
809
- border: 1px solid #499EDF;
810
- }
792
+ .mt-5 {
793
+ margin-top: 5px;
794
+ }
795
+ .mt-10 {
796
+ margin-top: 10px;
797
+ }
798
+ .mt-20 {
799
+ margin-top: 20px;
800
+ }
801
+ .app-row-none-border {
802
+ background-color: white;
803
+ padding: 10px 10px 0 10px;
804
+ }
805
+ .font{
806
+ font: 17px PingFang-SC-Medium;
807
+ color: #666666
808
+ }
809
+ .show-font{
810
+ font: 17px PingFang-SC-Medium;
811
+ color: #333333
812
+ }
813
+ .btn-font{
814
+ font:600 16px PingFang-SC-Bold;
815
+ color: #499EDF;
816
+ }
817
+ .head{
818
+ font-size: 1.25em;
819
+ font-weight: bolder;
820
+ padding: 0.5em;
821
+ }
822
+ .btn-color{
823
+ background-color: #FFFFFF;
824
+ border-radius: 10px ;
825
+ border: 1px solid #499EDF;
826
+ }
811
827
  </style>