|
|
@ -154,7 +154,7 @@ |
|
|
|
{title: '操作', align: 'center', |
|
|
|
formatter: function(value, row, index) { |
|
|
|
var actions = []; |
|
|
|
if (row.debitAccount =="" || row.debitBank =="") { |
|
|
|
if (row.debitAccount == null || row.debitBank == null) { |
|
|
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="addDebit(\'' + row.financialReceivablesId + '\')"><i class="fa fa-edit"></i>添加借方明细</a> ') |
|
|
|
}else{ |
|
|
|
actions.push('<a class="btn btn-success btn-xs ' + addReceivablesVoucherFlag + '" href="javascript:void(0)" onclick="addReceivablesVoucher(\'' + row.financialReceivablesId + '\')"><i class="fa fa-edit"></i>创建收款凭证</a> '); |
|
|
@ -232,9 +232,14 @@ |
|
|
|
|
|
|
|
//导出应收款账单收款凭证,单个导出 |
|
|
|
function exportReceivablesVoucher() { |
|
|
|
var bootstrpa = $("#bootstrap-table").bootstrapTable('getSelections'); |
|
|
|
var financialReceivablesId = bootstrpa[0].financialReceivablesId; |
|
|
|
if (bootstrpa.length !== 1) { |
|
|
|
//导出前需要确定借方明细 |
|
|
|
var bootstrap = $("#bootstrap-table").bootstrapTable('getSelections'); |
|
|
|
if ($.common.isEmpty(bootstrap.debitAccount) || $.common.isEmpty(bootstrap.debitBank)) { |
|
|
|
$.modal.alertWarning("请先添加借方明细"); |
|
|
|
return; |
|
|
|
} |
|
|
|
var financialReceivablesId = bootstrap[0].financialReceivablesId; |
|
|
|
if (bootstrap.length !== 1) { |
|
|
|
$.modal.alertWarning("请选择一条数据"); |
|
|
|
return; |
|
|
|
} |
|
|
|