Browse Source

[feat]: 修改:借方信息详细添加,显示条件条件修改为null值判断

dev
zhangsiqi 3 weeks ago
parent
commit
b71628d23c
  1. 13
      ruoyi-admin/src/main/resources/templates/financial/receivables/receivables.html

13
ruoyi-admin/src/main/resources/templates/financial/receivables/receivables.html

@ -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;
}

Loading…
Cancel
Save