|
@@ -527,8 +527,20 @@
|
|
|
|
|
|
</view>
|
|
|
|
|
|
- </view>
|
|
|
- <view class="withdraw" v-if="info.applicationType!=2">
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
+ <view class="withdraw" v-if="info.applicationType!=2">
|
|
|
+
|
|
|
+ <view class="withdraw-head " v-if="info.applicationType==3&&applicationAmountTest">
|
|
|
+ <b class="asterisk">是否扣除电费</b>
|
|
|
+ <span class="withdraw-input" style="width: 63%;">
|
|
|
+ <u-button size="mini" type="primary" v-if="applicationAmountTestBl"
|
|
|
+ @click="coCost" >扣除电费</u-button>
|
|
|
+ <u-button size="mini" v-else
|
|
|
+ type="warning" @click="reCost">还原金额</u-button>
|
|
|
+ </span>
|
|
|
+ </view>
|
|
|
<view class="withdraw-head ">
|
|
|
<b class="asterisk"><text>*</text>申请提现金额</b>
|
|
|
<text class="unit" style="float: right;font-size: 16px;">元</text>
|
|
@@ -695,7 +707,8 @@
|
|
|
isSecond:false,
|
|
|
showcalendar:false,
|
|
|
showcalendar2:false,
|
|
|
-
|
|
|
+ applicationAmountTest:0,
|
|
|
+ applicationAmountTestBl:true,
|
|
|
isswitchshow:false,
|
|
|
id:'',
|
|
|
uuid:'',
|
|
@@ -856,6 +869,15 @@
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ coCost(){
|
|
|
+ this.info.applicationAmount=(this.info.applicationAmount-(this.info.electricityCost?this.info.electricityCost:0)).toFixed(2)
|
|
|
+ this.applicationAmountTestBl=false
|
|
|
+ },
|
|
|
+ reCost(){
|
|
|
+ this.info.applicationAmount=this.applicationAmountTest
|
|
|
+ this.applicationAmountTestBl=true
|
|
|
+ },
|
|
|
+
|
|
|
ckInput_Q(text) {
|
|
|
if (text.indexOf('.') > 0) {
|
|
|
|
|
@@ -1384,7 +1406,7 @@
|
|
|
applicationAmount-=this.info.applyAmount2
|
|
|
}
|
|
|
this.info.applicationAmount=applicationAmount.toFixed(2)
|
|
|
-
|
|
|
+ this.applicationAmountTest=applicationAmount.toFixed(2);
|
|
|
}
|
|
|
uni.hideLoading()
|
|
|
|