|
|
|
@ -201,7 +201,7 @@
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<td>{$vo.statement_num}</td>
|
|
|
|
|
<td><input data-index_num="2" value="0" style="width: 80px;" type="number" data-id="{$vo.id}" name="unpay_amount" class="unpay_amount"></td>
|
|
|
|
|
<td><input data-index_num="2" value="0" style="width: 80px;" type="number" onblur="if(value<0) value=0" data-id="{$vo.id}" name="unpay_amount" class="unpay_amount"></td>
|
|
|
|
|
<td><input data-index_num="2" type="text" class="txt paymentset unPayRemark" data-id="{$vo.id}" name="remark" value="" placeholder="备注"></td>
|
|
|
|
|
<td><a class="del" href="#">删除</a></td>
|
|
|
|
|
</tr>
|
|
|
|
@ -216,6 +216,9 @@
|
|
|
|
|
$("#setPayment").on("click",function(){
|
|
|
|
|
var sendObj = {};
|
|
|
|
|
var url = "{:U('editPartPayment')}";
|
|
|
|
|
|
|
|
|
|
var tip = false;
|
|
|
|
|
|
|
|
|
|
$("input[name='ali_user'],input[name='ali_account'],input[name='remark'],input[name='payee_name'],input[name='bank_account'],input[name='opening_bank'],input[name='unpay_amount']").map(function(index,elem) {
|
|
|
|
|
var index_num = $(elem).data("index_num");
|
|
|
|
|
|
|
|
|
@ -235,6 +238,14 @@
|
|
|
|
|
var parent = $(elem).parent().parent().parent().attr('id');
|
|
|
|
|
|
|
|
|
|
if (parent!="add_item") {
|
|
|
|
|
|
|
|
|
|
if (e == 'unpay_amount') {
|
|
|
|
|
|
|
|
|
|
if (parseFloat(v) == 0) {
|
|
|
|
|
tip = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(index_num+id in sendObj){
|
|
|
|
|
if (!(e in sendObj[index_num+id])) {
|
|
|
|
|
sendObj[index_num+id][e] = v;
|
|
|
|
@ -249,6 +260,11 @@
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if (tip == true) {
|
|
|
|
|
layer.msg("<font style='color:white'>剩余支付金额不能小于等于0</font>");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
layer.confirm("若支付宝账号及真实姓名不全的公司,将无法进行打款。请认真核对,点击取消返回",{title:false}, function(index){
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "POST",
|
|
|
|
|