readmeter-changan 1.0.29 → 1.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
<div class="auto col-xs-12 col-sm-4 col-md-4 bg-white app-row ">
|
|
94
94
|
<label for="f_curbalance" class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">卡剩余金额</label>
|
|
95
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"
|
|
96
|
+
<input type="number" id="f_curbalance" class="form-control font " v-model="model.f_curbalance" @blur="getMoneyMessage()" >
|
|
97
97
|
</div>
|
|
98
98
|
</div>
|
|
99
99
|
|
|
@@ -365,6 +365,25 @@
|
|
|
365
365
|
this.$goto('hand-sell-history', {model: this.model,showmessage:this.showmessage,temp:'check-info'}, 'list')
|
|
366
366
|
},
|
|
367
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
|
+
},
|
|
368
387
|
getCardMessage(){
|
|
369
388
|
if (this.model.f_new_lcd === '' || this.model.f_new_lcd === undefined) {
|
|
370
389
|
this.$showMessage('请检查你录入的液晶示数')
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
<div class="auto col-xs-12 col-sm-4 col-md-4 bg-white app-row " v-if="model.f_meter_classify!=='机表'">
|
|
94
94
|
<label for="f_curbalance" class="panel-title col-xs-4 col-sm-6 col-md-6 text-left font">卡剩余金额</label>
|
|
95
95
|
<div class="col-xs-8 col-sm-6 col-md-6 ">
|
|
96
|
-
<input type="text" id="f_curbalance" class="form-control font " v-model="model.f_curbalance" >
|
|
96
|
+
<input type="text" id="f_curbalance" class="form-control font " @blur="getMoneyMessage()" v-model="model.f_curbalance" >
|
|
97
97
|
</div>
|
|
98
98
|
</div>
|
|
99
99
|
|
|
@@ -355,6 +355,25 @@
|
|
|
355
355
|
getSumGas(){
|
|
356
356
|
this.$goto('hand-sell-history', {model: this.model,showmessage:this.showmessage,temp:'phone-handplan-info'}, 'list')
|
|
357
357
|
},
|
|
358
|
+
getMoneyMessage(){
|
|
359
|
+
if (this.model.f_curbalance === '' || this.model.f_curbalance === undefined) {
|
|
360
|
+
this.$showMessage('请检查你录入的金额')
|
|
361
|
+
return
|
|
362
|
+
}
|
|
363
|
+
this.model.f_new_lcd = parseInt(this.model.f_curbalance / this.model.f_price)
|
|
364
|
+
this.model.f_pregas = this.model.f_pregas?this.model.f_pregas:0
|
|
365
|
+
this.model.f_sumgas_moment = this.model.f_sumgas_moment?this.model.f_sumgas_moment:0
|
|
366
|
+
let res = this.$androidUtil.bzLogic('gasComputation', this.model,{rejectMsg: null, resolve: null})
|
|
367
|
+
this.model.f_hasnotcharge = parseInt(res.hasnotCharge)
|
|
368
|
+
this.model.f_hascharge = (parseInt(this.model.f_sumgas_moment)+ parseInt(this.model.f_nogasvalue) - parseInt(this.model.f_hasnotcharge))
|
|
369
|
+
console.log('本期已充'+this.model.f_hascharge)
|
|
370
|
+
this.model.f_last_lcd= this.model.f_last_lcd?this.model.f_last_lcd:0
|
|
371
|
+
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))
|
|
372
|
+
console.log('IC走气'+this.model.f_icsnapsgas)
|
|
373
|
+
this.model.f_result_state = res.f_result_state
|
|
374
|
+
console.log('抄表状态'+this.model.f_result_state)
|
|
375
|
+
this.model.f_datacomparison = (parseInt(this.model.f_icsnapsgas)-parseInt(this.model.f_tablesnapsgas))
|
|
376
|
+
},
|
|
358
377
|
//获取ic卡表数据
|
|
359
378
|
getCardMessage(){
|
|
360
379
|
if (this.model.f_new_lcd === '' || this.model.f_new_lcd === undefined) {
|