|
@@ -240,7 +240,12 @@
|
|
|
if(num<=0){
|
|
|
num=0;
|
|
|
}
|
|
|
- this.$set(this.form,'usageAmount',num.toFixed(2))
|
|
|
+ if(Object.is(num, NaN)){
|
|
|
+ this.$set(this.form,'usageAmount','')
|
|
|
+ }else{
|
|
|
+ this.$set(this.form,'usageAmount',num.toFixed(2)?num.toFixed(2):'')
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
// //开始时间选中事件
|
|
|
// startChange(form,e){
|
|
@@ -364,6 +369,15 @@
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
+ if(!_this.form.usageAmount){
|
|
|
+ uni.showToast({
|
|
|
+ title: '请输入本次使用量!',
|
|
|
+ icon:"none",
|
|
|
+ mask:true,
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
this.$set(this.form,'stcokId',this.form.id);
|
|
|
this.$set(this.form,'id','');
|
|
|
this.$set(this.form,'usageImg',this.imgList.join(','));
|