优化账户中的单据明细页面

This commit is contained in:
季圣华
2020-06-23 23:48:56 +08:00
parent 57f1c5bff4
commit d9412d5fec
4 changed files with 13 additions and 5 deletions

View File

@@ -205,8 +205,8 @@
$("#bill .AccountIdShow").text(data.accountName); //结算账户 $("#bill .AccountIdShow").text(data.accountName); //结算账户
} }
else if(data.accountidlist && data.accountmoneylist) { else if(data.accountidlist && data.accountmoneylist) {
var accountArr = data.accountidlist; //账户id列表 var accountArr = data.accountidlist.split(","); //账户id列表
var accountMoneyArr = data.accountmoneylist; //账户金额列表 var accountMoneyArr = data.accountmoneylist.split(","); //账户金额列表
var accountIdShow = ""; var accountIdShow = "";
for (var j = 0; j < accountArr.length; j++) { for (var j = 0; j < accountArr.length; j++) {
if (accountList != null) { if (accountList != null) {

View File

@@ -131,7 +131,7 @@
title: '是否默认', field: 'isdefault', width: 100, align: "center", title: '是否默认', field: 'isdefault', width: 100, align: "center",
formatter: function (value, rec) { formatter: function (value, rec) {
if (rec.isdefault) { if (rec.isdefault) {
return "<b style='color:green'></b>"; return "<span style='color:green'></span>";
} }
else { else {
return ""; return "";
@@ -569,7 +569,7 @@
//初始化表格数据 //初始化表格数据
function initAccountDetailData(accountId) { function initAccountDetailData(accountId) {
$('#accountTableData').datagrid({ $('#accountTableData').datagrid({
height: heightInfo, height: 435,
nowrap: false, nowrap: false,
rownumbers: false, rownumbers: false,
//动画效果 //动画效果

View File

@@ -180,7 +180,7 @@
title: '是否默认', field: 'isDefault', width: 100, align: "center", title: '是否默认', field: 'isDefault', width: 100, align: "center",
formatter: function (value, rec) { formatter: function (value, rec) {
if (rec.isDefault) { if (rec.isDefault) {
return "<b style='color:green'></b>"; return "<span style='color:green'></span>";
} }
else { else {
return ""; return "";

View File

@@ -422,6 +422,14 @@ public class DepotHeadService {
} }
if (null != list) { if (null != list) {
for (DepotHeadVo4List dh : list) { for (DepotHeadVo4List dh : list) {
if(dh.getAccountidlist() != null) {
String accountidlistStr = dh.getAccountidlist().replace("[", "").replace("]", "").replaceAll("\"", "");
dh.setAccountidlist(accountidlistStr);
}
if(dh.getAccountmoneylist() != null) {
String accountmoneylistStr = dh.getAccountmoneylist().replace("[", "").replace("]", "").replaceAll("\"", "");
dh.setAccountmoneylist(accountmoneylistStr);
}
if(dh.getOthermoneylist() != null) { if(dh.getOthermoneylist() != null) {
String otherMoneyListStr = dh.getOthermoneylist().replace("[", "").replace("]", "").replaceAll("\"", ""); String otherMoneyListStr = dh.getOthermoneylist().replace("[", "").replace("]", "").replaceAll("\"", "");
dh.setOthermoneylist(otherMoneyListStr); dh.setOthermoneylist(otherMoneyListStr);