diff --git a/erp_web/js/pages/materials/bill_detail.js b/erp_web/js/pages/materials/bill_detail.js index 35562a29..a127b801 100644 --- a/erp_web/js/pages/materials/bill_detail.js +++ b/erp_web/js/pages/materials/bill_detail.js @@ -237,24 +237,32 @@ $("#bill .DebtShow").text((data.discountlastmoney+data.othermoney-data.changeamount).toFixed(2)); $("#bill .OtherMoneyShow").text(data.othermoney==null ? "": data.othermoney); $("#bill .AccountDayShow").text(data.accountday==null ? "": data.accountday); //结算天数 - var otherMoney = data.othermoney + ""; - var otherMoneyList = data.othermoneylist + ""; - var otherMoneyItem = data.othermoneyitem + ""; - if(otherMoneyList && otherMoneyItem){ - var itemArr = otherMoneyList.split(","); //支出项目id列表 - var itemMoneyArr = otherMoneyItem.split(","); //支出项目金额列表 + if(data.othermoney && data.othermoneylist && data.othermoneyitem) { + var itemArr = data.othermoneylist.split(","); //支出项目id列表 + var itemMoneyArr = null; + if (data.othermoneyitem != null) { + itemMoneyArr = eval("([" + data.othermoneyitem + "])"); //支出项目金额列表 + } var otherMoneyShow = ""; for(var j =0;j