|
@@ -169,11 +169,20 @@
|
169
|
169
|
|
170
|
170
|
</div>
|
171
|
171
|
|
172
|
|
- </div><br>
|
|
172
|
+ </div><br>
|
|
173
|
+
|
|
174
|
+ <div class="row cl">
|
|
175
|
+ <label class="form-label col-xs-4 col-sm-2">
|
|
176
|
+ 应收金额:</label>
|
|
177
|
+ <div class="formControls col-xs-6 col-sm-6">
|
|
178
|
+ <span id='should_amount_show'>{{old('should_amount')}}</span>
|
|
179
|
+ <input id='should_amount' type="hidden" class="input-text" value="{{old('should_amount')}}" placeholder="" name="should_amount">
|
|
180
|
+ </div>
|
|
181
|
+ </div>
|
173
|
182
|
|
174
|
183
|
<div class="row cl">
|
175
|
184
|
<label class="form-label col-xs-4 col-sm-2">
|
176
|
|
- <font color='red'>* </font>付款金额:</label>
|
|
185
|
+ <font color='red'>* </font>实收金额:</label>
|
177
|
186
|
<div class="formControls col-xs-6 col-sm-6">
|
178
|
187
|
<input id='receivedAmount' type="text" class="input-text" value="{{old('receivedAmount')}}" placeholder="" name="receivedAmount">
|
179
|
188
|
</div>
|
|
@@ -413,9 +422,11 @@
|
413
|
422
|
});
|
414
|
423
|
|
415
|
424
|
if(total>0){
|
416
|
|
- $("#receivedAmount").val(total);
|
|
425
|
+ $("#should_amount").val(total);
|
|
426
|
+ $("#should_amount_show").html(total);
|
417
|
427
|
}else{
|
418
|
|
- $("#receivedAmount").val('');
|
|
428
|
+ $("#should_amount").val('');
|
|
429
|
+ $("#should_amount_show").html('');
|
419
|
430
|
}
|
420
|
431
|
return false;
|
421
|
432
|
}
|
|
@@ -665,11 +676,11 @@
|
665
|
676
|
}
|
666
|
677
|
var receivedAmount = $("input[name=receivedAmount]").val();
|
667
|
678
|
if(!receivedAmount){
|
668
|
|
- layer.msg('付款金额不能为空!',{icon:2,time:1500});
|
|
679
|
+ layer.msg('实付金额不能为空!',{icon:2,time:1500});
|
669
|
680
|
return false;
|
670
|
681
|
}
|
671
|
682
|
if(isNaN(receivedAmount)){
|
672
|
|
- layer.msg('付款金额必须为数字!',{icon:2,time:1500});
|
|
683
|
+ layer.msg('实付金额必须为数字!',{icon:2,time:1500});
|
673
|
684
|
return false;
|
674
|
685
|
}
|
675
|
686
|
//验证称重>0.5
|